text
stringlengths
1
1.04M
language
stringclasses
25 values
from .. import models from django.shortcuts import redirect from django.http import HttpResponse import json from django.shortcuts import get_object_or_404 def question_form(request): if request.method == "POST": data = request.POST is_update = data.get("question_id", False) answers_info = [ { "answer": data.get("a1-answer", None), "is_correct": True if data.get("a1-is_correct", None) else False, }, { "answer": data.get("a2-answer", None), "is_correct": True if data.get("a2-is_correct", None) else False }, { "answer": data.get("a3-answer", None), "is_correct": True if data.get("a3-is_correct", None) else False }, { "answer": data.get("a4-answer", None), "is_correct": True if data.get("a4-is_correct", None) else False } ] question_info = { "id": data.get("question_id", None), "question": data.get("question", None), "info_link": data.get("info_link", None) } if is_update: question_bank = get_object_or_404( models.QuestionBank, pk=question_info["id"]) question_bank.question = question_info["question"] question_bank.info_link = question_info["info_link"] question_bank.save() answer_ids = json.loads(data.get("answers")) for i in range(len(answers_info)): form_answer = answers_info[i] if answer_ids[i]: answer = get_object_or_404( models.QuestionBankAnswer, pk=answer_ids[i]["id"]) if form_answer["answer"].strip(): answer.answer = form_answer["answer"] answer.is_correct = form_answer["is_correct"] answer.save() else: answer.delete() else: models.QuestionBankAnswer.objects.create( answer=form_answer["answer"], is_correct=form_answer["is_correct"], question_bank=question_bank ) pass return redirect('admin:question_detail', question_id=question_bank.id) else: question_bank = models.QuestionBank.objects.create( question=question_info["question"], info_link=question_info["info_link"], ) for answer in answers_info: if answer["answer"]: models.QuestionBankAnswer.objects.create( answer=answer["answer"], is_correct=answer["is_correct"], question_bank=question_bank ) return redirect('admin:question_detail', question_id=question_bank.id)
python
Japan’s Nakagin Capsule Tower, known to be a landmark in Japanese architectural history, will be demolished by mid-April, the building’s new owners have said. Last year, the owners of the building had announced the plans to dismantle and demolish the tower after years of looking for a buyer who would repair the building and maintain it. Nakagin Capsule Tower, built in 1972 by Kisho Kurokawa, is located in the Ginza district. Thirteen-storey tall, the tower comprises two buildings that contain 140 similar capsule units. Every 10-square-metre capsule unit has a small bathroom, television, radio set, kitchen essential, telephone, furniture, other appliances and a circular window. Kurokawa, while designing the tower, had meant for the capsules to be replaced once every 25 years but constant ownership issues and changes prevented the repairing of the tower. The towers are now generally used by people as storage or office space. Nakagin Capsule Tower was designed to be a capsule accommodation for workers or travellers who did not want to stay in one place for long. Each capsule unit of the building was designed such that it could be detached from the core structure and replaced. The capsule units, as designed by Kurokawa, are only attached to the core structure with four high-tension bolts so that they can be replaced every 25 years. The capsules can even be connected to each other, to change the interior if required. Kisho Kurokawa is one of the architects who revolutionised architecture during the metabolism architecture movement in Japan. According to ArchDaily, an architecture news organisation, the tower has not been maintained in over 33 years, leading to tenants facing a lot of problems, such as damaged water pipes. Docomomo International shortlisted the tower to be a world heritage of Modern Buildings and Sites in 1997. “There is no doubt that the building was famous, but the Capsule Tower also had a certain charm that appealed to people. Everyone who stayed there was creative in his or her own way, and the community that formed was truly fascinating. I am sad to see it go, but I hope it will live on in a new form,” Maeda told BBC. Students of Japanese architecture teacher Kenzo Tange – Kisho Kurokawa, Fumihiko Maki, Masato Otaka and Kiyonari Kikutake – brought the wave of modern metabolism architecture in the late 50s and early 60s. The wave picked up pace post the World War II destruction in Japan, when cities began to emerge and people began to migrate. As more and more people required living spaces, the metabolism movement brought in the idea of treating buildings like human bodies, where buildings were thought to be ever-changing and their parts were replaceable to elongate life. “I thought that architecture is not permanent art, something that is completed and fixed, but rather something that grows towards the future, is expanded upon, renovated and developed. This is the concept of metabolism (metabolise, circulate and recycle),” Kisho Kurokawa, one of the youngest Metabolism architects, had written in his book ‘From the age of machine to the age of life’. Born in 1934, Kisho Kurokawa graduated from Kyoto University after pursuing a bachelor’s course. He further pursued an architecture course from the Department of Architecture, Tokyo University and another Masters’s in architecture from the Graduate School of Architecture, Tokyo University. His major works in Japan and abroad are the National Ethnological Museum, Hiroshima City Museum of Contemporary Art, the Museum of Modern Art, Osaka International Convention Center (Grand Cube Osaka), Oita Stadium, the Japanese-German Centre of Berlin in Germany, Melbourne Central in Australia, Pacific Tower in Paris, France, the Kuala Lumpur International Airport, Malaysia (which has been certified as a sustainable airport). The Art Institute of Chicago named its architecture gallery as Kisho Kurokawa Gallery of Architecture in 1994. The awards received by Kurokawa are the Academy of Architecture, France (1986), the 48th Japan Art Academy Award, and the AIA Los Angeles Pacific Rim Award. Kurokawa was also the first architect from Japan to become an Honorary Fellow of the Royal Institute of British Architects and the Union of Architects in Bulgaria. He was awarded the Walpole Medal of Excellence and The Chicago Athenaeum Museum International Architecture Award in 2006. Kurokawa passed away in 2007 at the age of 73. A few capsules from the tower will be recycled and kept at various museums in Japan and abroad. One model of the capsule room is already on display at the Museum of Modern Art, which was designed by Kurokawa. Kisho Kurokawa architect and associates, an architecture firm started by Kurokawa, has expressed its interest in preserving the tower in a “digital space”.
english
Monday June 26, 2023, Drone maker's initial public offering (IPO) was oversubscribed by 3. 69 times on Day 1, as per data available on the Bombay Stock Exchange, with the retail portion getting fully subscribed in less than an hour of opening. Expected to conclude on June 29, the drone manufacturer has set the price band for the ideaForge IPO at Rs 638 to Rs 672 per equity share. The non-institutional investors' (NII) portion was subscribed 5. 13 times, while barely any bids were received from qualified institutional buyers—34,760 bids against a total of 25,28,596 shares on offer. At the end of the trading day, the retail portion was oversubscribed by 12. 48 times. Meanwhile, shares reserved for employees were oversubscribed by 8. 47 times. As per reports, the company's shares are commanding Rs 525-530 in the unlisted market. Earlier this month, the startup concluded its pre-IPO placement at a valuation of approximately Rs 2,500 crore, banking sources told The Economic Times. The IPO is expected to have a total size of approximately Rs 650 crore, with a fresh fundraising component of Rs 300 crore and an offer for sale (OFS) component of around Rs 350 crore. The capital raised will serve various purposes, including the repayment of existing debt, meeting operational capital requirements, and fueling investments in product development and general corporate goals. ideaForge counts itself as a market leader in India's unmanned aircraft systems (UAS) market, commanding a substantial market share of around 50% in FY22. The company's journey began in 2007 as an incubated project at IIT Bombay. Founded by Ankit Mehta, Rahul Singh, Vipul Joshi and Ashish Bhat, it has emerged as a key player in the production of drones in the dual-use category, serving both civil and defence sectors. Last year, it also won the largest single VTOL Mini UAV defence contract globally for its SWITCH UAV.
english
Mangaluru: Another life has perished due to the dengue fever as cases of Malaria and dengue are now high in DK. Nagesh Padu (35) a TV cameraman breathed his last at the KMC hospital on July 21 at 11:20 pm. Nagesh Padu was admitted to Yenepoya Hospital for fever. Later he was diagnosed to be suffering from Dengue fever. He was then shifted to the KMC hospital for further treatment and was being treated in the Intensive Care Unit. On July 21, at 11:20 pm Nagesh breathed his last without responding to the treatment. Nagesh is survived by a wife and a daughter.
english
The past few months have not been good to WhatsApp users. Unfortunately, that doesn't look like it's about to change any time soon. The past few months have not been good to WhatsApp users. Unfortunately, that doesn't look like it's about to change any time soon. The new guidelines require WhatsApp to allow the government to track the owner of a message and has been added to help with the crackdown of fake news on the platform. However, WhatsApp notes that it cannot just unmask a single user and that going around its end-to-end encryption will be the violation of user privacy. The company has three new VR headsets in the pipeline. The Indian government has asked WhatsApp to withdraw the recent changes in the privacy policy of the messaging app, saying unilateral changes are not fair and acceptable. WhatsApp has released a number of new features, including emoji replies for messages. These stunning pics of newlyweds Alia Bhatt and Ranbir Kapoor are unmissable. The company has kicked off the AR race with a wireless, hi-res headset. AliveCor shared its technology with Apple in 2015 in an effort to forge a business relationship with the well-known tech company. WhatsApp on iOS will reportedly come with a new feature very soon that will allow users to search chats by date. Follow these simple steps to share photos and videos using WhatsApp's View Once feature. When you receive a new message from an individual user or a group, the new feature will enable you to view tiny images of the sender in the notifications.
english
<reponame>frewsxcv/advent-of-code const FACTOR_A: u64 = 16807; const FACTOR_B: u64 = 48271; const DIVISOR: u64 = 2147483647; const BIT_MASK: u64 = 0b1111_1111_1111_1111; fn main() { let mut a = 783; let mut b = 325; let mut count = 0; for _ in 0..40_000_000 { next_value(&mut a, FACTOR_A); next_value(&mut b, FACTOR_B); if (a & BIT_MASK) == (b & BIT_MASK) { count += 1; } } println!("solution: {}", count); } fn next_value(prev_value: &mut u64, factor: u64) { *prev_value = *prev_value * factor % DIVISOR; }
rust
{ "schema_version": "1.2.0", "id": "GHSA-hh78-whh3-vp4q", "modified": "2022-05-01T17:42:01Z", "published": "2022-05-01T17:42:01Z", "aliases": [ "CVE-2007-0147" ], "details": "Cuyahoga before 1.0.1 installs the FCKEditor component with an incorrect deny statement in a Web.config file, which allows remote attackers to upload files when these privileges were intended only for the Administrator and Editor roles.", "severity": [ ], "affected": [ ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2007-0147" }, { "type": "WEB", "url": "http://cuyahoga.svn.sourceforge.net/viewvc/cuyahoga?view=rev&revision=551" }, { "type": "WEB", "url": "http://osvdb.org/32643" }, { "type": "WEB", "url": "http://secunia.com/advisories/23662" }, { "type": "WEB", "url": "http://www.cuyahoga-project.org/10/section.aspx/61" }, { "type": "WEB", "url": "http://www.securityfocus.com/bid/21927" } ], "database_specific": { "cwe_ids": [ ], "severity": "MODERATE", "github_reviewed": false } }
json
<reponame>TheDahv/keyword-cluster-finder [{"keyword":"apartments for rent parking","prominence":1,"competitor":"apartments.com"},{"keyword":"apartments for rent parking","prominence":2,"competitor":"apartmentfinder.com"},{"keyword":"apartments for rent parking","prominence":3,"competitor":"reinventingparking.org"},{"keyword":"apartments for rent parking","prominence":4,"competitor":"apartmentguide.com"},{"keyword":"apartments for rent parking","prominence":5,"competitor":"apartmentlist.com"},{"keyword":"apartments for rent parking","prominence":6,"competitor":"stevebrownapts.com"},{"keyword":"apartments for rent parking","prominence":7,"competitor":"nynesting.com"},{"keyword":"apartments for rent parking","prominence":8,"competitor":"zillow.com"},{"keyword":"apartments for rent parking","prominence":9,"competitor":"apartmenthomeliving.com"},{"keyword":"apartments for rent parking","prominence":10,"competitor":"hotpads.com"},{"keyword":"apartments for rent parking","prominence":11,"competitor":"rentprep.com"},{"keyword":"apartments for rent parking","prominence":12,"competitor":"trulia.com"},{"keyword":"apartments for rent parking","prominence":13,"competitor":"sfrb.org"},{"keyword":"apartments for rent parking","prominence":14,"competitor":"brickunderground.com"},{"keyword":"apartments for rent parking","prominence":15,"competitor":"tallardapartments.com"},{"keyword":"apartments for rent parking","prominence":16,"competitor":"camdenliving.com"},{"keyword":"apartments for rent parking","prominence":17,"competitor":"forrent.com"},{"keyword":"apartments for rent parking","prominence":18,"competitor":"zumper.com"},{"keyword":"apartments for rent parking","prominence":19,"competitor":"equityapartments.com"},{"keyword":"apartments for rent parking","prominence":20,"competitor":"<EMAIL>"}]
json
The International Olympic Committee (IOC) said on Monday the accusations made by ARD , a German broadcaster, of corruption and doping cover-ups at the International Weightlifting Federation (IWF) were “very serious and worrying”. ARD , which broke the story on Russia's state doping scandal, claims prominent weightlifters were rarely subject to tests, while some controllers were allegedly taking cash to accept manipulated urine samples. The ARD programme also cited documents allegedly showing at least $5 million (4.5 million euros) in funding flowing from the IOC to the IWF were transferred into two Swiss accounts, of which only federation president Tamas Ajan had oversight. “The IOC takes note of the ARD report. The accusations are very serious and worrying,” the IOC said. In a statement, the IWF said it was examining the allegations made in the broadcast. Hungary's anti-doping authority said on Monday it had been “maliciously targeted” in the documentary. The case is set to feature during the IOC's executive commission as it meets on Wednesday in Lausanne.
english
<gh_stars>10-100 {"template":{"small":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/1.0","medium":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/2.0","large":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/3.0"},"channels":{"yapyap30":{"title":"얍얍","channel_id":103861159,"link":"http://twitch.tv/yapyap30","desc":null,"plans":{"$4.99":"14983","$9.99":"52619","$24.99":"52620"},"id":"yapyap30","first_seen":null,"badge":"https://static-cdn.jtvnw.net/badges/v1/7ef05b3b-a841-4977-99c4-1fa89e278f18/1","badge_starting":"https://static-cdn.jtvnw.net/badges/v1/7ef05b3b-a841-4977-99c4-1fa89e278f18/3","badge_3m":"https://static-cdn.jtvnw.net/badges/v1/c73ba103-cdbf-4de6-af2c-416279ece795/3","badge_6m":"https://static-cdn.jtvnw.net/badges/v1/eed13ba0-38a1-4422-a931-4246cda7dd78/3","badge_12m":"https://static-cdn.jtvnw.net/badges/v1/b7f54708-e5a5-4c5b-a32a-54da2fab80af/3","badge_24m":"https://static-cdn.jtvnw.net/badges/v1/f26aa4d3-2f91-4153-be79-f387997eb525/3","badges":{"0":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/7ef05b3b-a841-4977-99c4-1fa89e278f18/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/7ef05b3b-a841-4977-99c4-1fa89e278f18/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/7ef05b3b-a841-4977-99c4-1fa89e278f18/3","description":"Subscriber","title":"Subscriber","click_action":"subscribe_to_channel","click_url":""},"3":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/c73ba103-cdbf-4de6-af2c-416279ece795/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/c73ba103-cdbf-4de6-af2c-416279ece795/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/c73ba103-cdbf-4de6-af2c-416279ece795/3","description":"3-Month Subscriber","title":"3-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"6":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/eed13ba0-38a1-4422-a931-4246cda7dd78/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/eed13ba0-38a1-4422-a931-4246cda7dd78/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/eed13ba0-38a1-4422-a931-4246cda7dd78/3","description":"6-Month Subscriber","title":"6-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"12":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/b7f54708-e5a5-4c5b-a32a-54da2fab80af/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/b7f54708-e5a5-4c5b-a32a-54da2fab80af/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/b7f54708-e5a5-4c5b-a32a-54da2fab80af/3","description":"1-Year Subscriber","title":"1-Year Subscriber","click_action":"subscribe_to_channel","click_url":""},"24":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/f26aa4d3-2f91-4153-be79-f387997eb525/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/f26aa4d3-2f91-4153-be79-f387997eb525/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/f26aa4d3-2f91-4153-be79-f387997eb525/3","description":"2-Year Subscriber","title":"2-Year Subscriber","click_action":"subscribe_to_channel","click_url":""}},"bits_badges":null,"cheermote1":null,"cheermote100":null,"cheermote1000":null,"cheermote5000":null,"cheermote10000":null,"set":14983,"emotes":[{"code":"angryyapF","image_id":87239,"set":14983},{"code":"angryyapE","image_id":87236,"set":14983},{"code":"angryyapG","image_id":89520,"set":14983},{"code":"angryyapA","image_id":146700,"set":14983},{"code":"angryyapH","image_id":121569,"set":14983},{"code":"angryyapJ","image_id":212104,"set":14983},{"code":"angryyapHeup","image_id":212107,"set":14983},{"code":"angryyapChex","image_id":212110,"set":14983},{"code":"angryyapD","image_id":152029,"set":14983},{"code":"angryyapGamza","image_id":152030,"set":14983},{"code":"angryyapB","image_id":152618,"set":14983},{"code":"angryyapC","image_id":148738,"set":14983},{"code":"angryyapK","image_id":212467,"set":14983},{"code":"angryyapL","image_id":214473,"set":14983},{"code":"angryyapGamzatrebel","image_id":214475,"set":14983},{"code":"angryyapWatching","image_id":191721,"set":14983},{"code":"angryyapI","image_id":186982,"set":14983}]}}}
json
.profile-page { width: 100%; height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; } .username { font-weight: bold; font-size: 1.2em; position: absolute; top: 2.5vh; } .edit-div { width: 90%; height: 20vh; display: flex; justify-content: space-around; align-items: center; } .avatar { display: flex; justify-content: flex-start; align-items: center; width: 50%; height: 100%; } .avatar img { width: 80%; height: 100%; border-radius: 50%; background-color: white; } .name, .biography { width: 50%; height: 4vh; } .name { font-weight: bold; margin-top: 1vh; } .edit-profile { width: 50%; height: 30%; display: flex; align-items: center; justify-content: center; text-align: center; background-color: var(--input-color); } .edit-profile a { font-size: 1.1em; font-weight: bold; color: var(--btn-text); margin: 0; } .posts { width: 100%; height: auto; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 110px; padding: 1%; } .small-post { width: 100%; height: 100%; padding: 2%; } .small-post img { width: 100%; height: 100%; background-color: white; } .big-post { width: 100%; height: 100%; background-color: var(--btn-text); position: absolute; top: 10%; display: flex; flex-direction: column; align-items: center; transition: transform 0.4s ease; padding: 10% 0; } .big-post img { width: 90%; height: 60%; margin: 10%; padding: 0; border: 3px solid var(--input-color); } .small-post i { display: none; } .small-post p { display: none; } .small-post button { display: none; } .exit { position: absolute; top: 12%; right: 3%; font-size: 2em; z-index: 1; } .big-post i { display: flex; } .big-post p { display: block; } .description { display: flex; width: 100%; height: auto; padding: 2vh; } .big-post .username-post { font-weight: bold; margin: 0 5vw 0 3vw; } .post-date { font-size: 0.8em; font-weight: 200; margin-left: 6vw; } .like { display: flex; width: 100%; height: 3%; justify-content: space-between; align-items: center; margin-top: -3vh; } .like i { position: absolute; right: 6vw; font-size: 2.3em; } .liked { color: var(--bb-color); } .big-post .btn-primary { display: block; background-color: var(--btn-color); border: none; border-radius: 3%; height: 5vh; width: 30vw; font-size: 5vw; color: var(--btn-text); } .big-post .like-button { display: block; } .post-buttons { width: 90%; display: flex; justify-content: space-around; } .edit-form { display: flex; flex-direction: column; justify-content: space-around; align-items: center; transition: opacity 0.4s ease; width: 90%; height: 30%; } .edit-inputs { width: 95%; height: 50%; } .confirm-edit { display: flex; width: 90%; align-items: center; justify-content: space-around; } .delete-form { display: flex; justify-content: space-around; align-items: center; transition: opacity 0.4s ease; width: 90%; height: 30%; } .confirm-delete-buttons { display: flex; width: 90%; align-items: center; justify-content: space-around; } .confirm-delete { display: flex; flex-direction: column; align-items: center; } .confirm-delete p { margin-bottom: 5%; } .update-description-field { width: 100%; height: 80%; } .visible { display: flex; } .hidden { display: none; } .hidden::before { display: none; } .posts-header { opacity: 0; width: 100vw; height: 20%; } .posts-header a { width: 30%; } .info { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 3% 0 3% 10%; } .upload { padding-bottom: 10%; width: 90%; display: flex; flex-direction: column; justify-content: space-around; align-items: center; margin-bottom: 5%; } .upload-post { font-size: 1.1em; font-weight: bold; background-color: var(--input-color); color: var(--btn-text); margin: 0; height: 6vh; width: 45%; text-align: center; padding-top: 2%; } .upload-post-group { background-color: var(--bg-color); margin-top: 10%; } .upload-post-group .form-group { height: 45vh; } .post-likes { position: absolute; right: 15vw; margin-top: 2vh; }
css
How to Make Natural Deodorant! Okay I know there's a lot of you hippies that rub lemons and bicarb under ya pits, and that's fine, but I'm a posh hippie bird that likes using something that smells lovely from a cute little tin. So if you'd like to do the same, and have been thinking about getting rid of horrible shop bought deodorants for ages, or you've tried natural deodorants but they're too expensive, listen up. This costs around $1.20 Australian a tin, and that's pretty good. You can even make it for all your smelly friends. I've written about this deodorant before, but since then I've perfected the recipe by measuring it all out in grams and working out how much candellia wax I need as an alternative to beeswax, mainly for my vegan friends who don't like using bee products. So if you have beeswax instead, simply double the weight of beeswax and you should be good. I actually like the consistancy of the beeswax one a lot better. The proportions below are in grams - I had been given tbsps and cup measurements which drove me crazy, and I did adapt it, so thought precise grams would be a more accurate way of getting it right every time. First of all, you want to melt the shea butter and mango butter and wax in a makeshift double boiler, like below. Super easy. Then, stir in your powders. Give it a good mix as you don't want it to be gritty. Really dissolve it. It doesn't take long so don't stress over it. Then, add about 30 drops of essential oil, mix, and pour into your tins! These are 30 gram tins, and I filled them right to the top because it's only us using them. If I was going to sell them to my friends I'd weigh them more carefully. Leave them to set before putting the lids on. Now, as for the scent, I spent ages working on one I like, so if I told you, I'd have to kill you. Or perhaps you could sneak a read of the ingredients on the side of the bottle below. Actually, I've just ran out of geranium, so this mix had a different blend of rose oil, ylang ylang and a few other oils. You might like it just plain. Remember, the butters smell quite sweet, so vanilla might be too much, or you could account for it in your oil blend. A straight oil you like would work great as well! Or you could even add a different set of oils to each tin, and use them on different days according to your mood! Damn, I like that idea - why didn't I think of it? He he. I had some stickers printed out for mine which are kinda cute, and play into my 'I like cute tins' thing I have going on. I like the 'note' reference as perfumes have notes too, and we can have more confidence to play our own note when we smell good. I hope this post gives you the courage to experiment with making your own deodorant. Honestly, I believe I've perfected this one after a lot of experimenting and reading online recipes, and both the husband and I have been using it for three years now and love it. So do the friends I've gifted it to. It does take a while for your body to adjust, so you might like to read a bit about the whys and hows of natural deodorant before you begin.
english
{ "name": "master-class-rest", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "production":"set NODE_ENV=production&&node index", "staging":"set NODE_ENV=staging&&node index", "start": "node index.js" }, "keywords": [], "author": "", "license": "MIT" }
json
New Delhi: German automobile manufacturer Mercedes-Benz on Thursday launched an exclusive ‘designo’ platform along with three new products. “We are launching in India the ‘designo’ platform which will offer our customers with innumerable customisation options to choose from, ranging from exclusive paint finishes, high quality interior appointments and trims,” said Eberhard Kern, managing director and chief executive, Mercedes-Benz India. At the event here, the company also launched three new products namely- the S 500 Coupé; AMG S 63 Coupé and the AMG G 63 ‘Crazy Colour’ edition. According to the company, the three simultaneous launches is in accordance with its ‘15 in 15’ strategy — whereby the automobile manufacturer will launch 15 products in 2015. Mercedes-Benz has till now introduced as many as nine new products in the Indian market this year. “It is never before that Mercedes-Benz has launched three exclusive luxury cars in a day. With the launch of these cars we once again strongly reiterate our unmatched prowess in product offering in the top end league of the luxury car segment in India,” Kern said. Product-wise, the S-Class Coupé is priced at Rs.2 crore, the top-end AMG S 63 Coupé at Rs.2.60 crore and the AMG G 63 ‘Crazy Colour’ edition at Rs.2.17 crore (ex-showroom Delhi). Hyundai India launched the much-awaited Creta Knight Edition in the country at a starting price of Rs 13.51 lakh (ex-showroom, all-India). This new variant is available in both petrol and diesel engine options and can be had either with a manual or an automatic transmission unit. To read more about the Creta Knight Edition, click here. In addition to this, the company has also introduced a model-year update for the Hyundai Creta with new feature additions. – Electronic Stability Control (ESC) – Vehicle Stability Management (VSM) – Hill start assist control (HAC) Mechanically, the SUV continues to be powered by the existing petrol and diesel engine options.
english
This story originally appeared on Undark and is part of the Climate Desk collaboration. Last September, Jace Tunnell discovered a layer of tiny round plastic pellets covering a beach on Padre Island, off the southern coast of Texas. There were “millions of them,” he recalled, “and it went on for miles.” Tunnell, a marine biologist, knew exactly what the pellets were, but says he had never actually seen them before. They’re called nurdles, and they’re the pre-production building blocks for nearly all plastic goods, from soft drink bottles to oil pipelines. But as essential as they are for consumer products, nurdles that become lost during transit or manufacturing are also an environmental hazard. In the ocean and along coastal waterways, they absorb toxic chemicals and are often mistaken for food by animals. They also wash up by the millions on beaches, leaving coastal communities to deal with the ramifications. Researchers say nurdles—which weigh approximately 20 milligrams each—are found virtually everywhere. It is estimated that more than 250,000 tons enter the ocean annually. In February, Fidra, an environmental group based in Scotland, reported nurdle pollution in 28 of the 32 countries they surveyed, from Ecuador to South Africa. “Pellets have been around and have been lost since plastic started to be produced,” says Madeleine Berg, a project manager for Fidra, which is working to reduce plastic waste and chemical pollution. And as plastic production continues to rise, researchers worry that the threat to beaches and coastal regions is growing worse. According to a study published in February by Tunnell’s colleague Kathleen Swanson and other researchers, accumulation rates of plastic pollution are 10 times higher in Texas than other Gulf Coast states sampled over a year-and-a-half period. Texas is also a major producer of plastic pellets. According to a Texas Commission on Environmental Quality document obtained by Tunnell, there are 46 companies in Texas with permits to manufacture plastics materials and synthetic resins; many are on the Texas coast. In a place like Padre Island, an important ecosystem for nearly 200 species of fish and almost 400 species of birds, including some endangered, nurdle pollution is a serious concern. Research shows that nurdles can absorb chemicals like DDT, a now widely banned insecticide; PCBs, a group of manmade industrial chemicals; and mercury. And if marine animals like turtles ingest the plastic instead of the food they need, it can clog their digestive systems and eventually cause them to starve to death. Surprised at the sheer number of nurdles on Padre Island last fall, Tunnell organized a local citizen scientist group called Nurdle Patrol, in which volunteers survey a beach or coastal area for 10 minutes and collect as many pellets as they see. They then send the location, date, and count, along with pictures, to Tunnell, who has been mapping out the surveys. Since November, more than 200 volunteers who have collected nearly 700 samples. Tunnell’s map of Nurdle Patrol samples shows that the locations of plastic pellet manufacturers overlap with the largest amount of nurdles found on the coast—in the town of Port Lavaca and the Houston area. In Point Comfort, just around 100 miles north of Padre Island, residents have sued Formosa Plastics, a known nurdle polluter, for violating the Clean Water Act and its Texas Commission on Environmental Quality permit. They want Formosa to pay $184 million in penalties, the maximum allowed by the Clean Water Act. For more than three years, Diane Wilson and two other local volunteers have collected more than 2,400 samples of nurdles and pellet powder discharged illegally by Formosa’s 2,500-acre Port Lavaca facility. Although the company has been fined several times by the Texas Commission on Environmental Quality for violating state and federal environmental laws, Wilson alleges the extent of illegal discharges far exceeds the fines the company has received. In a creek next to the facility, where the small white beads stand out against the darkness of the sediment, nurdle pollution is obvious. “I think a lot of the pellets or ‘the nurdles’ get caught in the vegetation,” Wilson said. When she bends down to grab a sample of soil—used as evidence in the lawsuit—hundreds of nurdles come up with it. Wilson’s suit went to trial in March, and two weeks ago, a federal judge ruled that “Formosa had historically and continues to violate” the Clean Water Act and its discharge permit. As The Texas Tribune reported, the judge also said Formosa has failed to report violations to authorities since 2016, which is a separate violation, and that TCEQ has failed to bring Formosa into compliance. Attorneys will argue in July how much Formosa should be fined, and Wilson says a decision will be announced in August or September. Often, however, there are few repercussions for polluters, given the challenges of tracing the nurdles back to their origin and tracking down offenders. There is also no database of manufacturers who make plastic pellets and where they ship. Even so, researchers can generally tell if nurdles are from a new spill. Resin, the core ingredient of plastic, turns yellow in the sun over time, so dark, dingy pellets are typically older than white ones. This can help determine whether a new spill has occurred or whether nurdles that have been out in the ocean for a while are simply washing up on shore. Evidence can be tricky to gather, however, depending on where the pollution takes place. Within days of the arrival of white-colored nurdles in September on Mustang and Padre Island beaches, which are drivable and also regularly graded, most had been covered up or pushed up against the dunes. And even when nurdles can be traced to a single spill, manufacturer, or location, there is seemingly little to no legal framework for regulating plastic pellet production. In 2007, California passed a law intended to prevent the discharge of nurdles into waterways across the state. But more typically, laws that regulate pollutant discharge apply to pollutants like solid waste in general, not nurdles specifically. Under the federal Clean Water Act, manufacturers can still discharge a certain amount of pollutants into waterways as long as they have a permit. “[Even that] actually allows them to release a reasonable amount,” Tunnell said. In addition, it is often unclear who is responsible when pollution crosses international borders. In 2017, for example, a storm caused containers filled with roughly 54 tons of nurdles to fall from a ship in Durban, South Africa. By the time the South African authorities began their cleanup attempts, the nurdles had already begun making their way to Australia, and were estimated to arrive about 450 days after the spill, according to Harriet Paterson, a professor at the University of Western Australia who is studying plastics in the aquatic environment. Through an industry-led program called Operation Clean Sweep, manufacturers can opt to follow guidelines and best practices to achieve zero pellet, flake and powder loss. But the program is voluntary and there is no external check to make sure companies are complying. Tunnell is bracing for what that could mean locally. A dozen new US facilities or expansions—nearly all of them in Texas—are expected within the next three years, according to information obtained by Tunnell from ICIS, a petrochemical market research company. “Seventy-five percent of the facilities that are either expanding or new are in Texas, out of the whole country,” he said, adding that at some point, there will inevitably be a spill that can be traced back to its source. Because of that potential, education has been a crucial part of citizen scientist projects like Tunnell’s. In addition to presentations to his local community, Tunnell visited all five Gulf states in May to collect samples and expand his Nurdle Patrol program. “Hopefully this is creating some awareness, not only with the typical environmental people,” Tunnell said, but also “the folks that work at the industry, the people that are making decisions, the city folks, the folks that are up in Austin making decisions for us. - Notifications are stressing us out. How did we get here? - 🏃🏽♀️ Want the best tools to get healthy? Check out our Gear team’s picks for the best fitness trackers, running gear (including shoes and socks), and best headphones.
english
<reponame>KutieKat/github-emojis-cheatsheet import React, { Component } from 'react'; import { connect } from 'react-redux'; import { updateKeyword, resetKeyword, filterEmojis } from '../../store/ActionCreators'; import './SearchBox.css'; class SearchBox extends Component { handleResetKeyword() { this.props.dispatch(resetKeyword()); this.props.dispatch(filterEmojis()); } handleChangeKeyword(e) { this.props.dispatch(updateKeyword(e.target.value)); this.props.dispatch(filterEmojis()); } render() { let removeButton = null; if(this.props.keyword != '') { removeButton = <button className="btn" onClick={ () => this.handleResetKeyword() }><i className="fas fa-times-circle btn-remove"></i></button>; } return ( <header className="search-box"> <input type="text" placeholder={ 'Search ' + this.props.filteredEmojis.length + ' emojis for...' } value={ this.props.keyword } onChange={ (e) => this.handleChangeKeyword(e) } /> { removeButton } </header> ); } } function mapStateToProps(state) { return { keyword: state.keyword, filteredEmojis: state.filteredEmojis } } export default connect(mapStateToProps)(SearchBox);
javascript
Before I start writing the review about WagonR let me explain some key points about WagonR. WagonR is one of the top 5 selling cars in India for nearly a decade. Nearly 15 lakh proud owners of WagonR are present in India. So this makes WagonR simply the best of its class. The new AGS in WagonR is the very impressive. It's best for city drive as you need not have to worry about the clutch. The car gives a pretty good mileage within the city and in the highway. This exterior and interior looks are very good. The impressive part is the Fog Lamp and the blue coloured glass in headlamps. The roof rails give a sporty look. The service of the car is very important and Maruti is the best when we compare with service by other automakers. Talking about safety, WagonR comes with Airbags and ABS. ABS is very important as it gives you protection in case of sudden brakes. WagonR is very easy to drive as it has AMT which means every member of your family can drive the car and they will enjoy the car. Especially wives will love driving AMT. So what else do you need rather than a happy family within your budget? So test drive the new WagonR and feel the difference. - Performance (184) - Interior (175)
english
<filename>jquery.pjax/1.8.1.json {"jquery.pjax.js":"<KEY>,"jquery.pjax.min.js":"<KEY>}
json
/* * 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 nl.unimaas.ids.data2services.registry; import java.util.ArrayList; import java.util.Base64; import java.util.HashMap; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import java.util.regex.Pattern; import nl.unimaas.ids.data2services.model.PathElement; import nl.unimaas.ids.data2services.model.Query; import nl.unimaas.ids.data2services.model.QueryVariable; import nl.unimaas.ids.data2services.model.ServiceRealm; import nl.unimaas.ids.data2services.util.URI2Prefix; import nl.unimaas.ids.rdf2api.io.utils.HttpURLConnect; import nl.unimaas.ids.rdf2api.io.utils.QueryParser; /** * * @author nuno */ public class BiolinkPathHandler extends AbstractPathHandler{ List<Query> queryList; private HttpURLConnect httpConnect = new HttpURLConnect(); private String endpointURL = "http://graphdb.dumontierlab.com/repositories/ncats-red-kg"; public static void main(String [ ] args){ new BiolinkPathHandler().replaceNamespacesByPrefixes("hello"); } public BiolinkPathHandler(){ this.setServiceRealm(new ServiceRealm("biolink")); QueryParser qp = new QueryParser(); this.queryList = qp.getQueryList(); for(Query query : queryList){ this.addQuery( query ); } setupSwaggerOperation(); } @Override public String process(String path){ //tempfix return this.process(path, null); } @Override public String process(String path, String acceptHeader) { if(acceptHeader == null) acceptHeader = "application/sparql-results+json"; List<Query> queryList = this.getQueryList(); int i = 0; for(Query query : queryList){ if(matchPath(path, query.getPath())){ // return "true"; String sQuery = this.queryList.get(i).getRawQuery(); List<PathElement> pathElementList = decomposePath(path); List<PathElement> pathModelElementList = decomposePath(query.getPath()); List<QueryVariable> queryVariableList = new ArrayList<QueryVariable>(); int n = 0; for(PathElement pathElement : pathModelElementList){ if(pathElement.isVariable()){ QueryVariable qv = new QueryVariable(); qv.setId(pathElement.getLabel(), true); qv.setLabel(pathElement.getLabel()); //qv.setValue( decodeVariable(pathElementList.get(n).getLabel()) ); qv.setValue( pathElementList.get(n).getLabel() ); qv.setRawValue(pathElementList.get(n).getLabel()); queryVariableList.add(qv); } n++; } //List<QueryVariable> queryVariableList = this.queryList.get(i).getVariables(); for(QueryVariable queryVariable : queryVariableList){ System.out.println(">>>>> "+ queryVariable.getId() + " " + queryVariable.getValue()); sQuery = sQuery.replaceAll("\\?_"+ queryVariable.getId(), queryVariable.getValue()); } System.out.println(sQuery); String finalQuery = sQuery; // String[] queryLines = sQuery.split("\n"); // for(String queryLine : queryLines){ // for(QueryVariable queryVariable : queryVariableList){ // if(queryLine.startsWith("?!="+queryVariable.getRawValue())){ // // } else { // queryLine = queryLine.replaceFirst("?!="+queryVariable.getRawValue(), sQuery); // finalQuery += queryLine+"\n"; // } // } // } //prepare hashmap HashMap<String, String> headers = new HashMap<String, String>(); headers.put("Accept", acceptHeader); String response; try { response = this.httpConnect.sendPost(this.endpointURL, finalQuery, headers); } catch (Exception ex) { Logger.getLogger(BiolinkPathHandler.class.getName()).log(Level.SEVERE, null, ex); return "processing issues"; } response = replaceNamespacesByPrefixes(response); return response; } i++; } return "path not found"; } private String replaceNamespacesByPrefixes(String response){ // Query to get the prefixes/namespace from the GraphDB triplestore String query = "PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\n" + "PREFIX dcat: <http://www.w3.org/ns/dcat#>\n" + "PREFIX dctypes: <http://purl.org/dc/dcmitype/>\n" + "PREFIX dct: <http://purl.org/dc/terms/>\n" + "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\n" + "PREFIX idot: <http://identifiers.org/idot/>\n" + "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n" + "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n" + "PREFIX void: <http://rdfs.org/ns/void#>\n" + "PREFIX d2svocab: <https://w3id.org/data2services/vocab/>\n" + "PREFIX bl: <http://w3id.org/biolink/vocab/>\n" + "SELECT ?prefix ?namespace {\n" + " GRAPH <https://w3id.org/data2services/graph/prefixes> {\n" + " [] a d2svocab:Prefix ;\n" + " d2svocab:prefix ?prefix;\n" + " d2svocab:namespace ?namespace .\n" + " }\n" + "}"; String keyValueString = ""; try { HashMap<String, String> headers = new HashMap<String, String>(); headers.put("Accept", "text/tab-separated-values"); keyValueString = this.httpConnect.sendPost(this.endpointURL, query, headers); HashMap<String, String> map = tsv2hash(keyValueString); for(String key: map.keySet()){ String value = map.get(key); System.out.println(">>>>>>>>>>>>>> replacing " + key + " with " + value); response = response.replaceAll(Pattern.quote(value), key); } } catch (Exception ex) { Logger.getLogger(BiolinkPathHandler.class.getName()).log(Level.SEVERE, null, ex); return response; } return response; } private boolean matchPath(String requestedPath, String modelPath){ List<PathElement> requestedPathElementList = decomposePath(requestedPath); List<PathElement> modelPathElementList = decomposePath(modelPath); if(requestedPathElementList.size()!=modelPathElementList.size()) return false; for(int i = 0; i < requestedPathElementList.size(); i++){ if(!modelPathElementList.get(i).isVariable()){ String modelPathElementString = modelPathElementList.get(i).getLabel(); String requestedPathElementString = requestedPathElementList.get(i).getLabel(); System.out.println("comparing -"+modelPathElementString + "- and -" + requestedPathElementString + "-"); if( ! modelPathElementString.equals(requestedPathElementString) ) return false; } } return true; } private List<PathElement> decomposePath(String path){ System.out.println("decomposing path "+ path + "<-"); System.out.flush(); path = path.charAt(0) == '/' ? path.substring(1) : path; String[] splitPath = path.split("/"); List<PathElement> pathElementList = new ArrayList<PathElement>(); for(String sPathElement : splitPath){ PathElement pathElement = new PathElement(sPathElement, sPathElement.charAt(0)=='{'); pathElementList.add(pathElement); } return pathElementList; } // decoding to base64 or expands prefix private String decodeVariable(String txt){ // check if it's base64 try { byte[] decodedData = Base64.getDecoder().decode(txt); return new String(decodedData); } catch(IllegalArgumentException iae) {} // expand prefixes to full URI's String uri; uri = URI2Prefix.prefixToUri(txt); return uri; } private HashMap<String, String> tsv2hash(String txt){ HashMap<String,String> map = new HashMap<String,String>(); String[] line = txt.split("\n"); String str[]; for(int i = 0; i < line.length; i++){ if(i>0){ System.out.println(line[i]); str = line[i].split("\t"); System.out.println(">>>>> "+ str[0] +" - " + str[1]); map.put(str[0], str[1]); } } return map; } }
java
Apple Computer is taking the stage Tuesday at an event it teased with the phrase "It's Showtime". At San Francisco's Yerba Buena Center for the Arts, CEO Steve Jobs is touting some of the company's newest products, including a new video iPod and version 7 of the iTunes music software. Apple will be shipping games for the new iPods, including the favorite of 21st-century poker players, Texas hold 'em. The devices will come in two models--a 30GB version for $249 and an 80GB for $349. "This is the lowest price for the iPod line and we're very excited. It does video and a whole lot more," Jobs said. The new iPods have a 60 percent brighter picture, Apple said. The will also have a search feature that allows users to look up songs or videos by name. Apple is bringing back color choices for its new generation of iPod Nanos, which have more storage capacity than their older brothers. The new Nano will come in three models--a 2GB version in silver only, a 4GB version in silver, blue, pink and green, and an 8GB version in black only. Jobs introduced a new iPod Shuffle, calling it the world's smallest MP3 player, "a fraction of the size of the first generation." The 1GB model is priced at $79. This little box connects a Mac or PC to your TV or home theater system over a wireless network. It allows you to download movies from iTunes to play on your TV. It's codenamed iTV, and coming in early 2007. The new iTV device, which Jobs demonstrated onstage, has built-in 802.11 wireless, wired networking, USB, and an HDMI connector. It also comes with component video, analog audio and optical audio. The iTV will come with HDMI ports, as well as component video. It's scheduled to sell for $299.
english
:root { --_ui5_radio_button_min_width: 2.75rem; --_ui5_radio_button_min_width_compact: 2rem; --_ui5_radio_button_hover_fill: var(--sapField_Hover_Background); --_ui5_radio_button_border_width: 1px; --_ui5_radio_button_checked_fill: var(--sapSelectedColor); --_ui5_radio_button_checked_error_fill: var(--sapField_InvalidColor); --_ui5_radio_button_checked_warning_fill: var(--sapField_TextColor); --_ui5_radio_button_warning_error_border_dash: 0; --_ui5_radio_button_outer_ring_color: var(--sapField_BorderColor); --_ui5_radio_button_outer_ring_width: 1; --_ui5_radio_button_outer_ring_bg: var(--sapField_Background); --_ui5_radio_button_outer_ring_hover_color: var(--sapField_Hover_BorderColor); --_ui5_radio_button_outer_ring_active_color: var(--sapField_Hover_BorderColor); --_ui5_radio_button_outer_ring_checked_hover_color: var(--sapField_Hover_BorderColor); --_ui5_radio_button_outer_ring_padding: 0 0.625rem; --_ui5_radio_button_outer_ring_padding_with_label: 0 0.625rem; --_ui5_radio_button_outer_ring_padding_rtl: 0 0.625rem; --_ui5_radio_button_border_radius: 0; --_ui5_radio_button_border: none; --_ui5_radio_button_focus_border: none; --_ui5_radio_button_focus_outline: block; --_ui5_radio_button_hover_shadow: none; --_ui5_radio_button_transition: none; --_ui5_radio_button_hover_background: inherit; --_ui5_radio_button_color: var(--sapField_BorderColor); --_ui5_radio_button_label_offset: 1px; --_ui5_radio_button_label_color: var(--sapContent_LabelColor); --_ui5_radio_button_items_align: unset; --_ui5_radio_button_inner_width: initial; --_ui5_radio_button_border_readonly_focus_style: var(--sapContent_FocusStyle); }
css
<gh_stars>0 { "name": "eventemitter3", "repository": "primus/eventemitter3", "description": "eventemitter3 focuses on performance while maintaining a Node.js AND browser compatible interface.", "version": "1.2.0", "keywords": [ "addEventListener", "addListener", "emit", "emits", "emitter", "event", "EventEmitter", "events", "once" ], "main": "index.js", "scripts": [ "index.js" ], "license": "MIT" }
json
How to distinguish the authenticity of Ya Aluminum. 1. Look at the smoothness. Yalum aluminum is squeezed by aluminum rods through molds. The fake profiles are generally used as raw materials with waste aluminum. The material contains a lot of impurities. The squeezing will cause different degrees of damage to the mold. It is rough, not smooth, and even marks. The profiles produced by scrap aluminum cannot meet the standards in the strength, hardness and other physical effects. The feel is more comfortable. 2. Look at the smoothness of the smoothness of the sketch of Asian aluminum. You can see that it is shiny and shiny by the horizontal section of the aluminum aluminum. This is easy to identify with the naked eye. 3. Packaging of aluminum materials. Asian aluminum is environmentally friendly cowhide packaging, which is very reasonable and economical, and effectively protects the surface of the aluminum. The packaging of sub -aluminum aluminum will be affixed with exclusive qualification certificates. 4. Looking at chemical ingredients, the chemical composition of fake aluminum is unqualified. In the product, a large amount of miscellaneous aluminum and waste aluminum are mixed, which greatly reduces the cost. 5. Looking at the thickness of the oxide film, the national standard stipulates that the thickness of the oxide film of the building aluminum should not be less than 10um (micron), the thickness of the counterfeit aluminum is not enough, the surface of the aluminum profile is easy to rust and corrodes. 2-4um, because each ton of alumina film is reduced, the cost of power consumption per ton can be reduced by about 150 yuan per ton. The use of aluminum products has the following taboos:. 1. Do not use aluminum products to be acidic or alkaline, if juice, wine, soy sauce, vinegar, etc. 2. Avoid stirring eggs in aluminum products. When the egg whites encounter aluminum, it will become gray -white. When the egg yolk encounters aluminum, it will become green, and porcelain products are better containers stirring eggs. 3. Do not use aluminum products to store flour for a long time. After the starch in the flour is fermented, organic acids will be produced, which will have corrosion effects on aluminum. The amount of water in the air will produce carbonate with water in the air. The erosion of acid, water and carbonate is destroyed and rust. 4. Do not use aluminum pot for a long time to put food. The corrosion resistance of aluminum is poor. Alcohol, alkali, acid, and salt can have a chemical reaction with aluminum. If people eat meals for a long time in aluminum pot, they will treat people's body Health causes damage. 5. Avoid using aluminum decoction. Use aluminum products to make the drug fail, and it may also generate toxic substances that are harmful to the human body. 6. Avoid using iron aluminum cooking utensils. Mixing iron aluminum cooking utensils is more common, but this usage is greatly harmful to health. After the iron and aluminum impact, after rubbing, the softer aluminum will fall into many powder particles. These The particles enter the human body with the meal, so that the aluminum volume in the body increases and forms chronic accumulation. When it is accumulated to a certain amount, it will cause harm to the human blood and brain function, aluminum material.
english
{ "sn22.76:0.1": "Linked Discourses 22 ", "sn22.76:0.2": "8. Itchy ", "sn22.76:0.3": "76. The Perfected Ones ", "sn22.76:1.1": "At Sāvatthī. ", "sn22.76:1.2": "“Mendicants, form is impermanent. ", "sn22.76:1.3": "What’s impermanent is suffering. ", "sn22.76:1.4": "What’s suffering is not-self. ", "sn22.76:1.5": "And what’s not-self should be truly seen with right understanding like this: ‘This is not mine, I am not this, this is not my self.’ ", "sn22.76:1.6": "Feeling … ", "sn22.76:1.7": "Perception … ", "sn22.76:1.8": "Choices … ", "sn22.76:1.9": "Consciousness is impermanent. ", "sn22.76:1.10": "What’s impermanent is suffering. ", "sn22.76:1.11": "What’s suffering is not-self. ", "sn22.76:1.12": "And what’s not-self should be truly seen with right understanding like this: ‘This is not mine, I am not this, this is not my self.’ ", "sn22.76:2.1": "Seeing this, a learned noble disciple grows disillusioned with form, feeling, perception, choices, and consciousness. ", "sn22.76:2.2": "Being disillusioned, desire fades away. When desire fades away they’re freed. When they’re freed, they know they’re freed. ", "sn22.76:2.3": "They understand: ‘Rebirth is ended, the spiritual journey has been completed, what had to be done has been done, there is no return to any state of existence.’ ", "sn22.76:2.4": "As far as there are abodes of sentient beings, even up until the pinnacle of existence, the perfected ones are the foremost and the best.” ", "sn22.76:3.1": "That is what the Buddha said. ", "sn22.76:3.2": "Then the Holy One, the Teacher, went on to say: ", "sn22.76:4.1": "“Oh! How happy are the perfected ones! ", "sn22.76:4.2": "Craving is not found in them, ", "sn22.76:4.3": "the conceit ‘I am’ is cut off, ", "sn22.76:4.4": "and the net of delusion is shattered. ", "sn22.76:5.1": "They’ve attained imperturbability, ", "sn22.76:5.2": "their minds are unclouded, ", "sn22.76:5.3": "nothing in the world clings to them, ", "sn22.76:5.4": "they’ve become holy, undefiled. ", "sn22.76:6.1": "Completely understanding the five aggregates, ", "sn22.76:6.2": "their domain is the seven good qualities. ", "sn22.76:6.3": "Those good people are praiseworthy, ", "sn22.76:6.4": "the Buddha’s rightful children. ", "sn22.76:7.1": "Endowed with the seven gems, ", "sn22.76:7.2": "and trained in the three trainings, ", "sn22.76:7.3": "the great heroes live on, ", "sn22.76:7.4": "with fear and dread given up. ", "sn22.76:8.1": "Endowed with ten factors, ", "sn22.76:8.2": "those giants have immersion. ", "sn22.76:8.3": "These are the best in the world, ", "sn22.76:8.4": "craving is not found in them. ", "sn22.76:9.1": "The master’s knowledge has arisen: ", "sn22.76:9.2": "‘This bag of bones is my last.’ ", "sn22.76:9.3": "They are independent of others ", "sn22.76:9.4": "in the core of the spiritual path. ", "sn22.76:10.1": "Unwavering in the face of discrimination, ", "sn22.76:10.2": "they’re freed from future lives. ", "sn22.76:10.3": "They’ve reached the level of the tamed, ", "sn22.76:10.4": "in the world, they’re the winners. ", "sn22.76:11.1": "Above, below, and all around, ", "sn22.76:11.2": "relishing is not found in them. ", "sn22.76:11.3": "They roar their lion’s roar: ", "sn22.76:11.4": "‘The awakened are supreme in the world!’” " }
json
A current WWE champion took to Twitter to share a bizarre reason for Dominik Mysterio's nickname, 'Dirty Dom.' The star in question is the current Women's Tag Team Champion, Chelsea Green. After Nia Jax's brutal attack on Green during last week's RAW, the Women's Tag Team Champion was not booked during the latest episode of the red brand. However, she made sure to engage with the fans from the comfort of her home. She was constantly tweeting throughout the episode, showing her witty side on Twitter. One of Chelsea Green's hilarious tweets was about Dominik Mysterio, as she claimed that his nickname 'Dirty Dom' was due to the fact that he does not shampoo his hair. "“dirty dom” cause it looks like he forgot to shampoo, rinse & REPEAT that mullet," Green wrote on Twitter. You can check out the tweet below: On the latest episode of RAW, Dominik Mysterio was all set to face off against Dragon Lee with the NXT North American Championship on the line. Both stars showed a great display of action, and it looked like Lee was going to win his first championship. However, Dirty Dom showed why he is the champion as he retained the title after hitting a Frog Splash on his opponent. Dominik has now retained his NXT North American Championship twice without any help from his Judgment Day teammates. He has improved his in-ring ability and his mic skills as well. The future looks even brighter for The Judgment Day star. After facing the NXT star, Dominik Mysterio was supposed to go one-on-one against Mustafa Ali at No Mercy on September 30. However, the latter was recently released by the company, and it remains to be seen who would be Dirty Dom's next opponent. Who do you think will go against Dominik at NXT No Mercy? Let us know in the comments section below.
english
<reponame>bric3/java-metadata {"vendor":"liberica","filename":"bellsoft-jdk8u302+8-macos-aarch64.dmg","release_type":"ga","version":"8u302+8","java_version":"8u302+8","jvm_impl":"hotspot","os":"macosx","architecture":"aarch64","file_type":"dmg","image_type":"jdk","features":[],"url":"https://github.com/bell-sw/Liberica/releases/download/8u302+8/bellsoft-jdk8u302+8-macos-aarch64.dmg","md5":"9d9e28cfa8167ced3f1141b213e874d7","md5_file":"bellsoft-jdk8u302+8-macos-aarch64.dmg.md5","sha1":"619f2e68cfa8cdffae3e3c788cb7a442601fec7f","sha1_file":"bellsoft-jdk8u302+8-macos-aarch64.dmg.sha1","sha256":"229863501a04551d2540191c1db6a3082f58d57ac50e2bb82fc396a3651fc4b7","sha256_file":"bellsoft-jdk8u302+8-macos-aarch64.dmg.sha256","sha512":"952b1728f73e7718ad996cea248c2c30a2c1b459d84160db5421b5143f2533afb77815f1b556684f4778b399bc8b6e0d53521f8682e3f614129232795d9aca08","sha512_file":"bellsoft-jdk8u302+8-macos-aarch64.dmg.sha512","size":105743106}
json
's future on the elite panel of umpires is in serious doubt after he was overlooked for the World Cup quarter-finals. de Silva was not even given a role as fourth official in any of the four games, and was the only one of the 12 members of the ICC's elite panel who has been excluded. Five men from the back-up group, the ICC's international panel, have been rewarded with quarter-final positions, including third-umpire roles for Richard Kettleborough and Kumar Dharmasena. Asad Rauf, the Pakistani official, was the only elite-panel umpire besides de Silva who won't have an on-field or TV role, and he will be the reserve umpire for the Australia-India game. The move is a major blow for de Silva, who has had a poor tournament and captured headlines for the wrong reasons when he gave Ireland's Gary Wilson lbw against West Indies. The decision was challenged by Wilson and replays showed the ball struck his pad outside off stump while he was playing a shot, but de Silva did not overturn his decision. de Silva was subsequently removed from duties in the important matches between England-West Indies and India-West Indies games, and instead was given roles in matches involving the Associates. The only other umpire used during the group stages who has not been given a job in the quarter-finals was the Indian Amiesh Saheba, who is on the international panel.
english
package it.clinicallab.model.implementation; import it.clinicallab.model.Box; import it.clinicallab.model.BoxType; public class StandardContainer extends AbstractContainer { public StandardContainer(int size) { super(size); } @Override public boolean canStoreBox(final Box box) { return box.type().equals(BoxType.STANDARD); } }
java
<reponame>Xiosn/YougoMall // pages/user/index.js Page({ /** * 页面的初始数据 */ data: { userInfo:{}, collectNum:0 }, /** * 获取用户信息 * @param {*} e */ handleGetuserinfo(e){ const {userInfo} = e.detail; wx.setStorageSync("userinfo", userInfo); this.setData({ userInfo }) }, onShow(){ const userInfo = wx.getStorageSync("userinfo") || []; const collect = wx.getStorageSync("collect") || [] this.setData({ userInfo, collectNum:collect.length }) }, handleRefund(){ wx.showToast({ title: '暂不支持该功能~', mask: true }); } })
javascript
The women's movement was on display at this week's State of the Union address as Democrat Congresswomen wore suffragette white to celebrate their solidarity and New York Democratic Rep. Alexandria Ocasio-Cortez celebrated the resistance to Supreme Court Justice Brett Kavanaugh by making the Kavanaugh protestor who cornered then-Senator Jeff Flake in an elevator her guest. One would expect that these same Democratic women would be similarly excited that a woman has been nominated for Kavanaugh's now empty seat on the U. S. Court of Appeals for the D. C. Circuit. But just the opposite was true when the Senate Judiciary Committee met Tuesday to hear from Neomi Rao, the D. C. Circuit nominee. I'd like to say I was surprised but Rao is a conservative and, on the Hill, the #MeToo movement is about partisan politics rather than about women. Rao was given the highest rating (“well-qualified”) by the liberal American Bar Association – a higher rating than Justice Elena Kagan received when nominated to the same court in 1999 – and should be a non-contentious choice. A former Supreme Court clerk, she was recently confirmed by the Senate as administrator of the Office of Information and Regulatory Affairs (OIRA) in 2017 and was previously the founder and director of the Center for the Study of the Administrative State at George Mason University's law school. The D. C. Circuit hears the largest share of cases related to administrative law and regulatory agencies, so Rao is the perfect fit. The problem for Democrats is that the D. C. Circuit, often called “the second highest court in the land”, is a stepping stone to the Supreme Court. Of the nine justices currently on the Supreme Court, four have come from the D. C. Circuit. Democrats see Rao, a minority woman, as a contender for the next Supreme Court vacancy and are determined to wound her in advance. This is nothing new. An irony of Democrats' judicial confirmation politics is that their efforts to thwart nominations deliberately and disproportionately impact stellar minority and female nominees. Just ask Miguel Estrada or Janice Rogers Brown. The feminist left hates the fact that conservative women think for themselves. Feminists would prefer to do the thinking for them. It’s a sentiment that is anti-progressive in every possible way. This accusation couldn’t be further from the truth. In the same article, Rao twice reiterated that rape is a crime and that a man who rapes a drunk woman should be prosecuted – a clear statement that rapists are to blame for rape. Judiciary Committee member Kamala Harris, a former prosecutor, should find this statement unambiguous. Instead, Harris asked several accusatory variations of the question: “Do you believe if a woman does not take those steps that she is at fault? ” She later attacked Rao via social media clips of the exchanges. Other women on the Committee, such as Mazie Hirono, questioned Rao with a similarly accusatory tone. If their attacks on Rao strike you as unseemly, remember that the identity politics of the #MeToo movement condones and even celebrates throwing women who get in the way under the bus. Last year may have been celebrated as the “Year of the Woman” due to the record-breaking number of women running for office. But as with the Democrat-only celebration at the State of the Union, a large group of women -- those without liberal viewpoints -- weren’t invited to the party. Naomi Rao knows this all too well and so do I. Last year, when I expressed my support of Brett Kavanaugh in the wake of sexual assault allegations – focusing on the unethical actions of Christine Blasey Ford’s lawyers and the harm they were doing to the women’s movement – Kavanaugh's opponents (primarily women) engaged in personal attacks against me. Some even wrote that I should be assaulted myself. To them, my arguments didn’t matter; only my politics did. The feminist left hates the fact that conservative women think for themselves. Feminists would prefer to do the thinking for them. It’s a sentiment that is anti-progressive in every possible way. Despite what prominent figures on the left would have you believe, conservative women aren’t men disguised as women, nor are their minds not fully formed, nor are they are being pressured by the men in their lives. Conservative women are women too. The female senators attacking Rao proudly display their feminist label and are surely aware that the early suffrage movement was held back by divisions among women. That makes it all the more unconscionable that, through their political posturing, Rao's opponents are adding to the growing divide among women that endangers the basic mission of the women's movement. The Senate should confirm Neomi Rao and send a strong signal that undermining the women's movement with baseless attacks against conservative women for partisan gain will not be tolerated.
english
<filename>docs/packagejson/django-cratis.json {"generated_at": "2017-01-27T09:37:28.952560", "required_by": ["django-cratis-cms", "django-cratis-base", "django-cratis-admin", "django-cratis-i18n", "django-cratis-common", "django-cratis-filer", "django-cratis-admin-suit"], "requires": [], "package": "django-cratis"}
json
Market regulator Securities and Exchange Board of India (Sebi) on Friday barred Cals Refineries from issuing equity shares and any other security for a further eight years, as the company was found guilty in a case involving irregularities in issuance of global depository receipts (GDRs). An interim prohibitory order was imposed on the company in 2011 and the company has already undergone restrictions for two years, while a final order was passed today imposing a ten-year ban on the company from issuance of any securities. The case is related to alleged market manipulation in trading of GDRs - a financial instrument used to raise capital overseas - of certain companies including Cals. Passing the order, Sebi directed "Cals not to issue equity shares or any other instrument convertible into equity shares or any other security, for a period of ten years". However, Sebi noted that Cals had already undergone the prohibition imposed on it for a period of about two years following an interim order in 2011 by the market regulator in view of the GDR manipulation charges against the company. "In view of this factual situation, it is clarified that the prohibition already undergone by Cals pursuant to. . . Sebi order shall be reduced while computing the period in respect of the prohibition imposed vide this order," it added. Sebi said "the modus operandi adopted by Cals Refineries in conceiving the fraudulent arrangement of GDR issue to defraud investors and also facilitating the unjust enrichment of its promoter at the expense of investors has been fraught with mala fides at every stage of its execution". The regulator's show cause notice had alleged Cals of entering into agreements wherein the firm itself financed the subscription of its GDR issue, which is prohibited under the Indian laws. Among others, Cals allegedly made false disclosures to leading bourse BSE that GDR issuances were successfully subscribed by foreign investors, and used this artifice and misleading information to induce the investors in India to deal in its shares.
english
Rumours state that Chef has been delayed since Saif Ali Khan injured his thumb on the sets of Akshat Varma's directorial debut. Though the actor was rushed to the hospital and went under a surgery for the same, he is still recovering and that is the reason the film was been delayed by a month. However, denying the rumours that Chef has been delayed, the film's producer Vikram Malhotra of Abundantia Entertainment says, "Chef was never scheduled to begin now. The film was always scheduled to commence shooting from October 1. So there is no question of a delay." Further talking about the prep for the film, Vikram adds, "Saif did get injured on sets of his current film, but will resume the same soon. As for Chef, Saif will begin prepping for the film from August 20, which will be a 45 day workshop that will see Saif getting trained in the art of cooking, food presentation and plating as well." When quizzed about why the film would commence work only in October, Vikram adds, "We selected October 1 as the start date since we will commence shooting in South India, and by that time the monsoons will have receded. Besides if you have seen the original there is a lot of travelling around the country and the Chef remake as well will see Saif travelling from city to city. Essentially we are currently in reccee stages since we have to finalize six to seven cities that will feature in the film." Directed by Raja Menon the remake of Jon Favreau's Chef is produced by Bhushan Kumar's T-Series and Vikram Malhotra's Abundantia Entertainment. Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
english
<reponame>jettjia/go-micro-frame<filename>core/register/consul/consul.go package consul import ( "fmt" "github.com/opentracing/opentracing-go" "google.golang.org/grpc" "github.com/hashicorp/consul/api" "github.com/jettjia/go-micro-frame/core/register/otgrpc" ) type Registry struct { Host string Port int } type RegistryClient interface { Register(address string, port int, name string, tags []string, id string) error RegisterHttp(address string, port int, name string, tags []string, id string) error DelRegister(serviceId string) error Discovery(address string, port int, name string) (*grpc.ClientConn, error) } func NewRegistryClient(host string, port int) RegistryClient { return &Registry{ Host: host, Port: port, } } func (r *Registry) Register(address string, port int, name string, tags []string, id string) error { cfg := api.DefaultConfig() cfg.Address = fmt.Sprintf("%s:%d", r.Host, r.Port) client, err := api.NewClient(cfg) if err != nil { panic(err) } //生成对应grpc的检查对象 check := &api.AgentServiceCheck{ GRPC: fmt.Sprintf("%s:%d", address, port), Timeout: "5s", Interval: "5s", DeregisterCriticalServiceAfter: "15s", } //生成注册对象 registration := new(api.AgentServiceRegistration) registration.Name = name registration.ID = id registration.Port = port registration.Tags = tags registration.Address = address registration.Check = check err = client.Agent().ServiceRegister(registration) if err != nil { panic(err) } return nil } func (r *Registry) RegisterHttp(address string, port int, name string, tags []string, id string) error { cfg := api.DefaultConfig() cfg.Address = fmt.Sprintf("%s:%d", r.Host, r.Port) client, err := api.NewClient(cfg) if err != nil { panic(err) } //生成对应的检查对象 check := &api.AgentServiceCheck{ HTTP: fmt.Sprintf("http://%s:%d/health", address, port), Timeout: "5s", Interval: "5s", DeregisterCriticalServiceAfter: "10s", } //生成注册对象 registration := new(api.AgentServiceRegistration) registration.Name = name registration.ID = id registration.Port = port registration.Tags = tags registration.Address = address registration.Check = check err = client.Agent().ServiceRegister(registration) if err != nil { panic(err) } return nil } func (r *Registry) DelRegister(serviceId string) error { cfg := api.DefaultConfig() cfg.Address = fmt.Sprintf("%s:%d", r.Host, r.Port) client, err := api.NewClient(cfg) if err != nil { return err } err = client.Agent().ServiceDeregister(serviceId) return err } func (r *Registry) Discovery(address string, port int, name string) (*grpc.ClientConn, error) { conn, err := grpc.Dial( fmt.Sprintf("consul://%s:%d/%s?wait=14s", address, port, name), grpc.WithInsecure(), grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy": "round_robin"}`), grpc.WithUnaryInterceptor(otgrpc.OpenTracingClientInterceptor(opentracing.GlobalTracer())), ) return conn, err }
go
<gh_stars>100-1000 package sort; /** * Created by TommyYang on 2018/3/9. */ import java.util.Arrays; /** * 计数排序 */ public class CountingSort implements IArraySort { @Override public int[] sort(int[] sourceArr) throws Exception { // 对 sourceArr 进行拷贝,不改变参数内容 int[] arr = Arrays.copyOf(sourceArr, sourceArr.length); int maxValue = getMaxValue(arr); return countingSort(arr, maxValue); } private int[] countingSort(int[] arr, int maxValue) { int bucketLen = maxValue + 1; int[] bucket = new int[bucketLen]; for (int value : arr) { bucket[value]++; } int sortedIndex = 0; for (int j = 0; j < bucketLen; j++) { while (bucket[j] > 0) { arr[sortedIndex++] = j; bucket[j]--; } } return arr; } private int getMaxValue(int[] arr) { int maxValue = arr[0]; for (int value : arr) { if (maxValue < value) { maxValue = value; } } return maxValue; } }
java
Saturday May 02, 2015, To help startups tap the capital markets to raise funds, Securities and Exchange Board of India (SEBI) will soon finalize norms for listing of such companies, although small investors might not be allowed to invest for at least a year. According to PTI, the norms will be issued later this month or early next month, sources said. Under the new norms, the entire pre-issue capital is expected to be locked-in for a period of six months for all shareholders, sources said. At present, promoters are required to offer a minimum of 20 per cent of post-issue capital as lock-in for a period of three years. Besides, SEBI is expected to make easier disclosure norms for startup listings. While filing the draft offer document with the capital market watchdog, such firms will only need to disclose broad objectives in line with the major international jurisdictions. The new norms will help startup companies raise funds from within India and stop their flight to overseas markets. For want of a price discovery within the country, many of these companies plan to get listed in Singapore or the US. The final guidelines would be put in place after taking into account public suggestions. In Late March, SEBI had floated a discussion paper and had sought public comments the same till April 20. The Securities and Exchange Board of India (SEBI), in its discussion paper, had proposed an 'Alternate Capital Raising Platform', wherein startups and firms can raise money from institutions and HNIs from the capital markets under a relaxed regulatory regime. However, retail investors would be restricted from investing in such companies, given the risks involved therein, the regulator had said in the draft papers. Besides, SEBI has proposed that capital raising would be allowed on the Institutional Trading platform (ITP). The proposed platform will have two categories of investors - Qualified Institutional Buyers (QIB) and Non-Institutional Investors (NII). The listing on institutional platform would be for a period of at least one year. After that, the company would have the option to migrate to main board subject to compliance with eligibility requirements of the stock exchanges. The new platform for raising money within the country will be initially made applicable to companies which are in the area of software product development, e-commerce, new-age companies having innovative business model.
english
Former WWE manager Jim Cornette recently spoke about the possibility of him returning to the company to manage CM Punk. Punk returned to WWE after nearly a decade-long hiatus at this year's Survivor Series: WarGames. Since then, The Best in the World has delivered some rousing promos on all three brands, and finally signed on to be an exclusive member of WWE RAW. On a recent clip from the Jim Cornette's Drive Thru podcast, the wrestling veteran claimed that he would have loved to work with Punk if the stars aligned. However, he mentioned the WWE fanbase was too broad for his return to make a huge impact. Cornette detailed that some fans might still remember him, but their current audience was too mainstream. You can watch the full video here: WWE has announced that CM Punk will finally enter the ring against Dominik Mysterio. The match will take place at the Madison Square Garden on December 26 as part of the company's Holiday Tour. The Best in the World will once again face the former NXT North American Champion on December 30 at The Kia Forum in Inglewood, CA. The Straightedge Superstar has already announced himself for the Royal Rumble. It will be interesting to see how Punk fares against Dirty Dom who has been a workhorse for WWE over the past year. Are you excited to see CM Punk back in WWE? Let us know in the comments section below. If you use the quotes from this article, please credit the Jim Cornette's Drive Thru and add an H/T to Sportskeeda Wrestling for the transcription.
english
Every woman has a unique pregnancy experience. This is primarily because every individual has a different medical history, diet, exercise routine and overall constitution, and all of these have a role to play in your pregnancy too. This is also the reason why some women experience severe symptoms during pregnancy while others may not even get any morning sickness at any given point. What every woman who’s expecting should know about and take precautions against are complications of pregnancy. As per the US National Institutes of Health (NIH), even women who were absolutely healthy before getting pregnant may face complications. Nobody wishes for complications in life but when there’s even a little risk of having such issues that may affect the health of both mother and baby, it’s important to be forewarned and cautious. The following are six key complications of pregnancy every mom-to-be should be aware of and take preventive measures against. 1. High blood pressure: Also known as gestational hypertension, high blood pressure during pregnancy may show up during the second trimester and resolve after childbirth. The body pumps more blood during pregnancy to supply oxygen and nutrients to the baby in the womb via the placenta and if there’s any disruption in this blood supply, it can slow the growth of the baby, jeopardize its health and cause further complications like preeclampsia and preterm labour. Frequent blood pressure checks, a healthy pregnancy diet with controlled salt intake and exercise may keep this complication at bay. 2. Gestational diabetes: While it usually resolves within a few months after you deliver your baby, gestational diabetes can have severe repercussions on your health as well as that of your baby. If not controlled, gestational diabetes can lead to gestational hypertension, preeclampsia, premature labour and excessive weight gain during pregnancy. Consulting a doctor for a proper treatment plan is important. 3. Infections: Pregnant women may be immunocompromised and therefore more susceptible to infections. This includes urinary tract, bladder, kidney and sexually transmitted infections. Taking stringent precautions against these infections is necessary since there’s a risk of passing them on to the baby in utero or right after birth. Talk to your doctor if you suspect you have an infection and they will be able to provide medications which are safe for consumption during pregnancy. 4. Preeclampsia: Health issues like hypertension, diabetes, kidney disease, lupus, older maternal age, obesity and carrying twins or more babies in the womb increases the risk of preeclampsia. This is a severe complication of pregnancy which can at best lead to preterm birth and at worse cause loss of the fetus. If any symptoms of preeclampsia like severe abdominal pain, headaches or blurred vision show up, it’s important to visit the doctor immediately. 5. Premature labour: Labour before the completion of the 37th week of pregnancy is known as premature labour. A weak cervix, infections, preeclampsia and placenta praevia can cause premature labour and birth. A baby born prematurely is also known as a preemie and these babies may not only have a lower birth weight and slower development but might also face a higher risk of diseases for the rest of their lives. Precautions against premature labour should therefore be taken very seriously. 6. Miscarriage and stillbirth: The spontaneous loss of pregnancy before in the first 20 weeks is known as a miscarriage, while stillbirth refers to the loss of foetus after 20 weeks. This complication may be caused by a number of risk factors, including poor foetal growth, placental abnormalities, infections, chromosomal abnormalities, maternal health, etc. Avoiding miscarriage or stillbirth is not completely under your control and can be very traumatic for expecting parents. Appropriate counselling and care are recommended for those who experience either of these issues. For more information, read our article on Pregnancy. Health articles on News18 are written by myUpchar. com, India’s first and biggest resource for verified medical information. At myUpchar, researchers and journalists work with doctors to bring you information on all things health.
english
Reference (R) Buddy Holly have a certain amount of philosophy in Buddy Holly's character but it lies dormant a good deal of the time. Buddy Holly are large-hearted and sincere, though a trifle blunt. Buddy Holly are somewhat proud and people who ponder to Buddy Holly's vanity become Buddy Holly's best friends.Buddy Holly have high ideals which cannot be realised. When they fail, Buddy Holly allow Buddy Holly'sself to be considerably dejected. There is a streak of restlessness in Buddy Holly, which causes Buddy Holly to cast aside an ideal before it has had sufficient time to mature. Consequently, Buddy Holly do not attain the success in life, nor the happiness and comfort, that Buddy Holly's qualities merit.Buddy Holly know how to express Buddy Holly's opinions in public and Buddy Holly have a neat gift for being humorous. It follows that Buddy Holly are credited by Buddy Holly's friends as being jolly good company. Certainly Buddy Holly are entertaining. Buddy Holly's friends by the way, have considerable influence on Buddy Holly and it is highly necessary that Buddy Holly should chose them wisely and deliberately.Buddy Holly's greatest failing is that Buddy Holly are versatile and that Buddy Holly's energies are directed into too many channels. Concentrate on fewer branches of work and pleasure, and Buddy Holly will greatly benefit by the change. Buddy Holly will often meet with disappointments and expect more, for Buddy Holly tend to worry so much that the very things Buddy Holly are afraid of usually happen. Very shy, Buddy Holly have great difficulty in communicating feelings and emotions. If Buddy Holly will clear Buddy Holly's head of all worldly matters for a small period each day and sit in meditation, Buddy Holly will feel much peace and realise that things are not as bad as they seem.Buddy Holly tend to keep wandering in various places, which is why the idea of studying for a prolonged duration will not be entertained by Buddy Holly. But , it can give birth to negative circumstances in Buddy Holly's educational life. Once Buddy Holly gain victory over Buddy Holly's lethargic nature, Buddy Holly will perform well in Buddy Holly's studies. Buddy Holly have a morbid curiosity about unfamiliar things. Buddy Holly's imagination skills will grant Buddy Holly considerable amount of success in Buddy Holly's respective subjects. On the other hand, Buddy Holly should try to boost Buddy Holly's concentration power so that Buddy Holly do not fleet in the world of imagination while studying. If Buddy Holly work hard enough, no power in this universe can stop Buddy Holly from being successful. Buddy Holly are motivated to work hard to earn money because Buddy Holly feel that beautiful surroundings are essential to gain the high regard of others. This is not true. Pursue these directions only if Buddy Holly find true happiness in them.
english
<filename>example/package.json { "private": true, "scripts": { "build": "yarn dotnet:run-script js:build", "clean": "rm -rf .cache dist src/bin src/obj", "dotnet:run-script": "cd src && dotnet fable yarn-run", "js:build": "parcel build src/index.html", "js:start": "parcel src/index.html", "postinstall": "dotnet restore", "start": "yarn dotnet:run-script js:start" }, "devDependencies": { "parcel-bundler": "^1.5.0", "parcel-plugin-fable": "^1.5.0" } }
json
{ "id": 578582, "title": "เตือนคนไทยในยูเออีงดวิจารณ์ปมคว่ำบาตรกาตาร์ | เดลินิวส์", "description": "บัวแก้วเตือนคนไทยในยูเออีงดวิจารณ์สื่อโซเชียลปมชาติอาหรับตัดสัมพันธ์“กาตาร์” ใครฝ่าฝืนโดนทางการยูเออีจับเข้าคุก-ปรับ 5 ล้านบาท\r\n", "keywords": "บัวแก้ว,ยูเออี,วิจารณ์สื่อโซเชีบัวแก้ว,ยูเออี,วิจารณ์สื่อโซเชียล,ชาติอาหรับ,ตัดสัมพันธ์กาตาร์,เดลินิวส์,เดลินิวส์ออนไลน์,เดลินิวส์วันนี้,ข่าวเดลินิวส์ออนไลน์,ข่าวเดลินิวส์ล่าสุด,ข่าว,ข่าวด่วน,ข่าววันนี้,ข่าวร้อน,ข่าวบันเทิง,ข่าวเด่นวันนี้,ข่าวดารา,ข่าวล่าสุด,คลิป,คลิปด่วน,คลิปข่าว,คลิปร้อน,คลิปฮอต,ท่องเที่ยว,สกู๊ปพิเศษ,ไลฟ์สไตล์,lifestyle,ความงาม,เรื่องย่อละคร,เทคนิค,ดวง,ตรวจหวย,special scoop,dailynews,เซ็กซ์,ไอที,ทิป,ยานยนตร์,หนังสือพิมพ์,สาระน่ารู้,ข่าวล่าสุด,สุขภาพ,แต่งบ้าน,อาหาร,แฟชั่น", "category": "politics", "content": "เมื่อวันที่ 8 มิ.ย.  ผู้สื่อข่าวรายงานว่า เฟซบุ๊กของสถานเอกอัครราชทูตไทย ณ กรุงอาบูดาบี ประเทศสหรัฐอาหรับเอมิเรตส์(ยูเออี) แจ้งถึงกรณีที่หลายประเทศในภูมิภาคตะวันออกกลางซึ่งรวมถึงยูเออี ตัดความสัมพันธ์ทางการทูตกับประเทศกาตาร์ ว่า ทางการสหรัฐอาหรับเอมิเรตส์ได้ประกาศเตือนประชาชนทุกคนที่อาศัยอยู่ในสหรัฐอาหรับเอมิเรตส์ ห้ามกล่าวถึงหรือวิจารณ์เหตุการณ์การตัดความสัมพันธ์ทางการทูตระหว่างยูเออีกับกาตาร์ในสื่อโซเชียลส่วนตัวโดยเด็ดขาด หากฝ่าฝืนหรือเจ้าหน้าที่ตรวจพบ อาจต้องเสียค่าปรับ 500,000 ดีแรห์ม (ประมาณ 5 ล้านบาท) และถูกจำคุกได้ โดยมีโทษจำคุกตั้งแต่ 3-15 ปี  ดังนั้น สถานเอกอัครราชทูตไทยฯจึงขอแนะนำให้คนไทยที่เดินทางหรือพักอยู่ในยูเออีหลีกเลี่ยงการดำเนินการใดๆที่อาจเข้าข่ายดังกล่าวได้.", "url": "https://www.dailynews.co.th/politics/578582", "date": "2017-06-08T14:05:51.760Z" }
json
New Delhi, Nov 11 : The Congress, which has not invited Prime Minister Narendra Modi to international conference it is hosting on Jawaharlal Nehru Nov 17-18, has, however, included a quotation from former prime minister Atal Bihari Vajpayee on the special website launched for the event. The website "nehruinternationalconference2014. com" takes a visitor through Nehru's life, his writings, his quotes and some of his famous speeches. The website has quotes on Nehru by famous personalities including Mahatma Gandhi and Sardar Patel, as well as Vajpayee, India's first non-Congress prime minister to complete a full-term. Vajpayee had headed the previous National Democratic Alliance government. The senior Bharatiya Janata Party leader has been described as "an Indian statesman. " "He was an advocate of individual freedom and yet was committed to bringing about economic equality. He was never afraid of a compromise with anybody, but he never compromised with anyone out of fear," it quoted Vajpayee as saying about Nehru.
english
Senior journalist, editor and activist Gauri Lankesh, 55, was shot dead by unidentified assailants at the entrance of her home in Bengaluru West on Tuesday evening. Four bullets were pumped into the editor of the Kannada weekly Lankesh Patrike at her doorstep after she had stepped out of her car and opened the gates to her home which lay in darkness at around 8 pm. Neighbours came out of a flat opposite the home where the journalist lived alone on what they thought were sounds of firecrackers and found Gauri lying in a pool of blood on her porch barely a metre away from the locked verandah to her home. “Normally, she works late hours because she is a journalist. Today she seemed to have returned home earlier than usual,’’ a neighbour said. Read | Who is Gauri Lankesh? The assailants were either following Lankesh on her way back home from work or were waiting in the neighborhood for her arrival, police said. “I just sat down for dinner when I heard the firecracker type of sounds. When I came out, there were people in all the balconies and the gate was lying open with a car waiting to enter. There was no one else around,’’ said Manohar a watchman at the apartments opposite the journalist’s house. Some neighbours claimed to have seen two men moving up and down several times on a motorcycle on the quiet street in the Ideal Homes colony in Rajarajeshwarinagar through the day. “The incident happened at exactly 8 pm and four bullets were fired in her chest,’’ a police inspector said. “The shots were fired from a very close range inside the compound of the house. She had been living alone in recent days after her elderly mother moved to her sister’s house,’’ said Shivasundar, a longtime journalist colleague of Gauri Lankesh. Police are hoping that CCTV footage from cameras Gauri Lankesh had put up at her home — at the insistence of friends — may yield some clues on the identities of the killers. “She has faced a lot of threats. If you see her social media profile, there are constant threats from right wing forces whom she strongly opposed all her life. She was reluctant and did not care too much for her personal safety. There were also some incidents of theft at the home a while ago so we forced her to set up some security cameras and we are hoping that it will yield some results because they were on when the incident occurred,’’ Shivasundar said. Supporters and friends of the journalist, who was known for her strident opposition to Hindutva forces, drew parallels between the killing of Gauri Lankesh and the 2015 murder of rationalist and writer M M Kalburgi. Kalburgi was shot dead by two unidentified persons who came on a motorcycle. The assailants knocked on the door of the Dharwad home of the 77-year-old Sahitya Akademi Award winner and shot Kalburgi on the doorstep with two bullets from a 7. 65 mm country made pistol. The murder of Kalburgi remains unsolved to date. The biggest finding in the Kalburgi murder case, being investigated by the Criminal Investigation Department of the Karnataka police, so far is the fact that the 7. 65 mm pistol used for the killing of the rationalist is the same gun that was used to murder 81-year-old Maharashtra rationalist and leftist thinker Govind Pansare in Kohlapur on February 16, 2015 by two unidentified men.
english
{ "contacts": [], "guideStarURL": "http://www.guidestarindia.org/Summary.aspx?CCReg=2408", "name": "<NAME>", "primaryEmail": "<EMAIL>", "website": "www.krcscbhavnagar.org", "organisationType": [ "Advocacy & Campaigning", "Intermediary", "Support" ], "telephone": [ "912782565999" ], "mainAddrress": { "state": "Gujarat", "address": [ "Kalyan Foundation Trust,", "6, Ashtavinayak City Mall, 2nd Floor, Waghawadi Road,", "Bhavnagar", "Gujarat", "364001" ] } }
json
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var ReactDOM = tslib_1.__importStar(require("react-dom")); var prosemirror_model_1 = require("prosemirror-model"); var info_1 = tslib_1.__importDefault(require("@atlaskit/icon/glyph/editor/info")); var success_1 = tslib_1.__importDefault(require("@atlaskit/icon/glyph/editor/success")); var note_1 = tslib_1.__importDefault(require("@atlaskit/icon/glyph/editor/note")); var warning_1 = tslib_1.__importDefault(require("@atlaskit/icon/glyph/editor/warning")); var error_1 = tslib_1.__importDefault(require("@atlaskit/icon/glyph/editor/error")); var hint_1 = tslib_1.__importDefault(require("@atlaskit/icon/glyph/editor/hint")); var panelIcons = { info: info_1.default, success: success_1.default, note: note_1.default, tip: hint_1.default, warning: warning_1.default, error: error_1.default, }; var toDOM = function (node) { return [ 'div', { class: 'ak-editor-panel', 'data-panel-type': node.attrs.panelType || 'info', }, ['span', { class: 'ak-editor-panel__icon' }], ['div', { class: 'ak-editor-panel__content' }, 0], ]; }; var PanelNodeView = /** @class */ (function () { function PanelNodeView(node) { var _a = prosemirror_model_1.DOMSerializer.renderSpec(document, toDOM(node)), dom = _a.dom, contentDOM = _a.contentDOM; this.node = node; this.dom = dom; this.contentDOM = contentDOM; this.icon = this.dom.querySelector('.ak-editor-panel__icon'); this.renderIcon(node.attrs.panelType); } PanelNodeView.prototype.renderIcon = function (panelType) { var Icon = panelIcons[panelType]; ReactDOM.render(React.createElement(Icon, { label: "Panel " + panelType }), this.icon); }; return PanelNodeView; }()); exports.panelNodeView = function () { return function (node) { return new PanelNodeView(node); }; }; //# sourceMappingURL=panel.js.map
javascript
package com.projectlite2.android.utils.popup; import android.app.Activity; import android.content.Context; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import androidx.annotation.NonNull; import com.alibaba.fastjson.JSONObject; import com.lxj.xpopup.core.BottomPopupView; import com.lxj.xpopup.util.XPopupUtils; import com.projectlite2.android.R; import com.projectlite2.android.app.MyApplication; import com.projectlite2.android.utils.CloudUtil; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import cn.leancloud.AVFile; import cn.leancloud.AVInstallation; import cn.leancloud.AVObject; import cn.leancloud.AVPush; import cn.leancloud.AVQuery; import cn.leancloud.AVUser; import io.reactivex.Observer; import io.reactivex.disposables.Disposable; import static com.projectlite2.android.utils.CloudUtil.CLASS_USER.TABLE_FIELD_USER_INSTALLATION_ID; public class QueryUserResultPopup extends BottomPopupView { @BindView(R.id.txtThisUserName) TextView txtUserName; @BindView(R.id.txtThisUserNum) TextView txtUserId; @BindView(R.id.txtThisStrongPoint) TextView txtUserBrief; @BindView(R.id.btnChatOrRequest) Button btnChatOrRequest; @BindView(R.id.txtIsMyFriend) TextView txtIsMyFriend; String userName, userId, objectId,installationId; AVFile userAvatar; Boolean isFriend = false; Activity parentActivity; public QueryUserResultPopup(@NonNull Context context) { super(context); parentActivity = (Activity) context; } public QueryUserResultPopup(@NonNull Context context, String name, String userid, AVFile avatar, String insId,String objId) { super(context); parentActivity = (Activity) context; userName = name; userId = userid; userAvatar = avatar; objectId = objId; installationId=insId; } @Override protected int getImplLayoutId() { return R.layout.user_card_bottom_popup; } @Override protected void onCreate() { super.onCreate(); ButterKnife.bind(this); txtUserName.setText(userName); txtUserId.setText(userId); // 设置头像 // 判断与他是否为好友关系 设置按钮文本 AVQuery<AVObject> followerQuery = CloudUtil.CURRENT_USER.user.followerQuery(); followerQuery.whereEqualTo("objectId", objectId); followerQuery.findInBackground().subscribe(new Observer<List<AVObject>>() { @Override public void onSubscribe(Disposable disposable) { } @Override public void onNext(List<AVObject> avObjects) { if (avObjects.isEmpty()) { //非好友 isFriend = false; btnChatOrRequest.setText("投递名片"); } else { //是好友 isFriend = true; btnChatOrRequest.setText("发消息"); } } @Override public void onError(Throwable throwable) { throwable.printStackTrace(); } @Override public void onComplete() { } }); } @OnClick({R.id.btnChatOrRequest}) public void OnClick(View v) { switch (v.getId()) { case R.id.btnChatOrRequest: if (isFriend) { Log.d("mytest", "OnClick: btnChatOrRequest isFriend"); } else { Log.d("mytest", "OnClick: btnChatOrRequest notFriend"); AVUser.getCurrentUser().followInBackground(objectId).subscribe(new Observer<JSONObject>() { @Override public void onSubscribe(Disposable disposable) { } @Override public void onNext(JSONObject object) { Log.d("mytest", "succeed follow. " + object.toString()); AVQuery pushQuery = AVInstallation.getQuery(); // 假设 THE_INSTALLATION_ID 是保存在用户表里的 installationId, // 可以在应用启动的时候获取并保存到用户表 pushQuery.whereEqualTo(TABLE_FIELD_USER_INSTALLATION_ID, installationId); AVPush push = new AVPush(); AVPush.sendMessageInBackground(CloudUtil.CURRENT_USER.name+"向你投递了名片",pushQuery).subscribe(new Observer() { @Override public void onSubscribe(Disposable d) { } @Override public void onNext(Object object) { btnChatOrRequest.setText("投递成功"); MyApplication.ToastySuccess("成功向该用户投递你的名片"); } @Override public void onError(Throwable e) { Log.d("mytest", "推送失败,错误信息:" + e.getMessage()); } @Override public void onComplete() { } }); } @Override public void onError(Throwable throwable) { throwable.printStackTrace(); } @Override public void onComplete() { } }); } } } // 最大高度为Window的0.85 @Override protected int getMaxHeight() { return (int) (XPopupUtils.getAppHeight(getContext()) * .85f); } // @OnClick({R.id.btnChatOrRequest}) // void OnClick(View v) { // switch (v.getId()) { // case R.id.btnApplyToJoin: // // // 判断与他是否为好友关系 // GetLeader(); // // 若该项目的leader为当前用户,则提示不可重复加入 // if (isMeLeader) { // MyApplication.ToastyInfo("你已经是该项目的负责人啦,不需要重复加入"); // return; // } // // 弹窗确认 // new XPopup.Builder(getContext()).asConfirm("提示", "你还未加入该项目,确定要加入吗?", // new OnConfirmListener() { // @Override // public void onConfirm() { // // // 实际是要发送加入申请->leader // // // 加入方法的测试 成功*********************** // Log.d("mytest", "onConfirm: pj objectId "+objectId); // Log.d("mytest", "onConfirm: user objectId "+AVUser.getCurrentUser().getObjectId()); // CloudUtil.CLASS_PROJECT.JoinProject(objectId,AVUser.getCurrentUser().getObjectId()); // // // 耗时操作,延时执行 // Handler handler = new Handler(); // handler.postDelayed(new Runnable() { // @Override // public void run() { // if(joinSuccess){ // // dismiss(); // MyApplication.ToastySuccess("success"); // joinSuccess=false; // // // 成功加入项目,向上个activity返回请求码,使其刷新 // Intent it=new Intent(); // it.putExtra("data_return","create success"); // parentActivity.setResult(RESULT_OK, it); // // parentActivity.finish(); // } // } // }, 500);//1秒后执行Runnable中的run方法 // // //***************************************** // // // 测试消息推送 //// AVQuery pushQuery = AVInstallation.getQuery(); //// // 假设 THE_INSTALLATION_ID 是保存在用户表里的 installationId, //// pushQuery.whereEqualTo(TABLE_FIELD_USER_ID,thisLeaderUserId); //// AVPush.sendMessageInBackground("申请加入项目",pushQuery).subscribe(new Observer() { //// @Override //// public void onSubscribe(Disposable d) { //// } //// @Override //// public void onNext(Object object) { //// Log.d("mytest", "推送成功" + object ); //// } //// @Override //// public void onError(Throwable e) { //// Log.d("mytest", "推送失败,错误信息:" + e.getMessage()); //// } //// @Override //// public void onComplete() { //// } //// }); // 可以发送推送消息到leader,但是有个小bug是也会发送推送消息到当前用户,怀疑installationId // // // // } // }) // .show(); // // break; // } } /** * 使用该方法判断本用户是否是该项目的负责人,结果存储在isMeLeader中,并且把项目负责人的 userId 储存在 thisLeaderUserId 中 */ // private void GetLeader() { // // AVObject project = AVObject.createWithoutData(TABLE_NAME_PROJECT, objectId); // // 构建多对多关系的查询 // AVQuery<AVObject> query = new AVQuery<>(RELATION_NAME_PROJECT_LEADER_MAP); // // 查询所有为该项目的leader(实际上只有一位) // query.whereEqualTo(RELATION_FILED_PROJECT, project); // // 执行查询 // query.findInBackground().subscribe(new Observer<List<AVObject>>() { // @Override // public void onSubscribe(Disposable d) { // } // // @Override // public void onNext(List<AVObject> list) { // // list 是所有 项目 等于 project 的leader // // 获取当前用户 // AVUser currentUser = AVUser.getCurrentUser(); // // 然后遍历过程中可以访问每一个的leader // for (AVObject projectLeaderMap : list) { // // AVObject leader = projectLeaderMap.getAVObject(RELATION_FIELD_LEADER); // // thisLeaderUserId=leader.getString(TABLE_FIELD_USER_ID); // // if (leader.getObjectId().equals(currentUser.getObjectId())) { // isMeLeader = true; // } else { // isMeLeader = false; // } // // Log.d("mytest", "is leader?: " + isMeLeader); // } // } // // @Override // public void onError(Throwable e) { // } // // @Override // public void onComplete() { // } // }); // }
java
Ishant to Elgar, no run, 133.5kph, peckering away outside off. No need for Elgar to play at that. It was that wide.. Ishant to Markram, out Lbw!! Oh dear. It's a pair for Markram. No, this ain't the action replay of the first innings. Hook, line and sinker. Booming inswinger again from Sharma, this kept low to compound Markram's troubles. Zips through and thuds him on the pads as he plays all around it. Umpire Nigel Llong's finger went up and Markram walks up to have a chat with his partner about the review, but nope, he isn't challenging it. Uff! HawkEye in and it shows that the ball is going over the stumps. This sums up South Africa's story in this Test. The Indians are all elated and a wicket off the second ball of the innings. What a terrible start for South Africa. Markram lbw b Ishant 0(2)
english
what is known as, the Criminal Law (Amendment) Bill of 1958. It has become law after it was passed in both the Houses of Parliament. So far as 'criminal misconduct' is concerned, two departures were made in that Bill. One was to the effect that there ought to be a minimum punishment. There are only a few cases where a minimum punishment has been prescribed by Parliament. Parliament thought that when an officer commits an offence of corruption then, naturally, he ought to be dealt with as severely as possible, provided the offence has been proved. My hon. friend, Shri Easwara Iyer, was perfectly right in pointing out the two aspects of the Penal Law: one was the preventive aspect and the other was the aspect. third aspect, which has also to be taken into account when we deal with persons of high intelligence but, naturally, perverted intelligence like those who deal in corruption? That is the deterrent aspect. It is not my view, it is not the view of Government alone, it is the view of this hon. House, because this House laid it down, when this amending Bill was passed, that, provided the offence was proved, the minimum punishment ought to be one year. It has been stated here: "Any public servant who commits criminal misconduct in the discharge of his duties shall be punished with imprisonment for a term which shall not be less than one year." So, Sir, this is a departure, to a certain extent, from the Criminal Law. Ordinarily they leave this matter to the discretion of the trying Judge or Magistrate, as the case may be, but here the legislature wisely took this fact into account that the punishment ought to be deterrent, and the should not be let off only with fine or punishment which is not commensurate with the gravity of the offence that he has committed. Secondly, SO far as fine is concerned, it is open to the Special Judge to award a fine of any amount. It has been laid down that the fine ought to be commensurate with the amount that the man has misappropriated, with the amount which is the subject matter of corruption and, naturally, commensurate with the moral side of the whole question. Therefore, the fine also the should not be a small amount; fine ought to have some proportion to the amount that that particular has made by illegitimate means thus rendered himself guilty of ruption. You will also find, especially so far as 'criminal misconduct' is concerned. the highest punishment is now seven years. Therefore, if all these circumstances are taken into account, if you take into account the purpose as also the scope of trial according to the summary procedure, if you take into account, on the other hand, by way of contrast, the serious nature of offences that have to be tried under the Prevention of Corruption Act, especially the offence of 'criminal misconduct', naturally you would agree that what the hon. Member has in mind, namely, that all trials should be under the summary procedure, is not the correct approach. It is perhaps a very wrong and objectionable approach. Some hon. Members suggested that the quantum of punishment is entirely immaterial. I am afraid it is not. There are classes of persons who, after they go a wrong way, become more or less habituated to that particular course. They become habituated to it and naturally, their conscience is hardened. If, for example, they are not punished in an adequate and effective manner, the small punishment of a few days or less than three months will be entirely lost upon them. Therefore, we should take into account also the deterrent aspect of punishment as has been done by this hon. House. (Shri Datar] Therefore, I feel that this Bill would be highly objectionable if it is accepted. It would not be possible for the Government to accept such a Bill which goes counter to what has been laid down by Parliament only in a recent amendment and to what is the underlying objective of the Prevention of Corruption Act. It is not that the punishment should be necessarily heavy, but it ought to be proportionate to the gravity of the offence. That point has to be taken into account. In view of what I have pointed out that such cases do not take so long as the hon. Member thinks, I hope after this elucidation, he will kindly withdraw the Bill. Otherwise, I would request this House to oppose this Bill. Shri Dasappa (Bangalore): What about greater vigilance? Shri Datar: I have answered that point a number of times. I have stated that in addition to the special police establishment that we have, in addition to the Anti-Corruption Departments that the various State Governments are having, we are keeping a very vigilant eye not only upon those persons who actually commit offences but we want to see to it that all temptations are removed as early as possible and as effectively as possible. That is the reason why, as the House is aware, we have got a Vigilance Organisation and branches of it are attached to all the departments. What is to be done immediately is, we want to remove those circumstances as a result of which or by virtue of which there is an effective temptation to the commission of corruption. We are taking into account that factor also. It has a preventive and to a certain extent a curative side also. But when it is found that an offence is commited, then action is to be taken either under the disciplinary provisions of the Government Servants Conduct Rules or prosecution also would be launched. I want to make one point clear and that is in relation to a statement made by Shri Keshava. He made a certain statement which is not correct. Government are no respecter offenders whether the offenders belong to Class IV, Class III, Class II or even to Class I, whatever they are. I may point out only one instance where in the case of a very high officer, only recently, the special judge had given him a punishment of only six months. The Government appealed to the High Court and the High Court enhanced the punishment to two years. That is what we have done. You will find that we are no respecter of persons. If a man commits an offence, he must be visited with punishment, but while doing so, it is necessary that he should pass through a procedure and the procedure should not be unfair to him also. We have got a procedure laid down in the Criminal Procedure Code and that is a very fair one both to the accused as also to the prosecution. Therefore, in all such cases, we should not do anything that would take away the right of the accused to a proper trial. I would appeal to my hon. friend to withdraw this Bill. Mr. Chairman: According to the provisions of the Prevention of Corruption Act, offences in regard to criminal misconduct are triable not by a magistrate of the first class but by a sessions judge, special judge or assistant sessions judge. That is the amendment which we made while we enacted that provision. Shri Data: Yes. It is by special judge. A provision has been made to that effect. Shri Jhulan Sinha: I am afraid 1 have been very much misunderstood. But I do not wonder. I ceased to be a legal practitioner about 30 years ago and so I am not the least sorry for having been misunderstood by my
english
<filename>library/src/skip_errors.rs use crate::Error; /// An iterator wrapper to skip missing manifests. pub struct SkipMissing<I: IntoIterator> { inner: I::IntoIter, to_skip: usize, } impl<I: IntoIterator> SkipMissing<I> { /// Create a wrapper. pub fn new(inner: I, to_skip: usize) -> Self { SkipMissing { inner: inner.into_iter(), to_skip, } } } impl<I: IntoIterator<Item = Result<T, Error>>, T> Iterator for SkipMissing<I> { type Item = Result<T, Error>; fn next(&mut self) -> Option<Self::Item> { loop { let next = self.inner.next()?; if self.to_skip == 0 { break Some(next); } else { match next { Ok(x) => break Some(Ok(x)), Err(Error::BadResponse(reqwest::StatusCode::NOT_FOUND, url)) => { log::warn!("Missing a manifest: {}", url); self.to_skip -= 1; } Err(e) => break Some(Err(e)), } } } } } /// An extension trait that adds a `skip_missing` method for iterators. pub trait SkipMissingExt: Iterator { /// Skips 404 HTTP errors, but not more than `days` times. fn skip_missing<T>(self, days: usize) -> SkipMissing<Self> where Self: Iterator<Item = Result<T, Error>> + Sized, { SkipMissing::new(self, days) } } impl<I: Iterator> SkipMissingExt for I {}
rust
In an embarrassing twist to a coordinated cyberattack on six major South Korean companies this week, investigators said Friday they wrongly identified a Chinese Internet Protocol address as the source. A joint team of government and private experts still maintains that hackers abroad were likely to blame, and many analysts suspect North Korea. But the error raises questions about investigators' ability to track down the source of an attack that shut down 32,000 computers Wednesday and exposed big Internet security holes in one of the world's most wired, tech-savvy countries. South Korean investigators said Thursday that a malicious code that spread through the server of one of the hackers' targets, Nonghyup Bank, was traced to an IP address in China. Even then it was clear that the attack could have originated elsewhere because hackers can easily manipulate such data. But the state-run Korea Communications Commission said Friday that the IP address actually belonged to a computer at the bank. The IP address was used only for the company's internal network and happened to be identical to a public Chinese address. "We were careless in our efforts to double-check and triple-check," KCC official Lee Seung-won told reporters. He blamed the error on investigators' rush to give the public details on the search for a culprit. Yonhap news agency, in an analysis Friday, called the blunder "ridiculous" and said the announcement is certain to undermine government credibility. Yonhap criticized officials for failing to dispel public anxiety in a country where people's lives are closely interwoven with services provided by media and financial institutions. An initial assumption that the attack came from abroad may have made investigators jump to conclusions, said Lee Kyung-ho, a cybersecurity expert at Seoul's Korea University. "They rushed," he said. "They should've investigated by checking the facts step by step. " The investigation will take weeks. Investigators have said the attacks appeared to come from "a single organization" and suspect the hackers were from outside the country. Lee Seung-won, the KCC official, discounted the possibility that the attack could have come from within South Korea, but he didn't elaborate. Lee Kyung-ho and many other South Korean experts suspect North Korea is behind the attack on broadcasters YTN, MBC and KBS, as well as Nonghyup and two other banks. While there are many possible explanations, he said, including a homegrown hacker, the culprits are most likely to be North Koreans angry over ongoing U. S. -South Korean military drills. Lee said Pyongyang is well aware that an attack on financial institutions and media companies would create lots of publicity and turmoil in South Korea's vibrantly capitalistic society. North Korea has issued many threats against the South and the U. S. in recent days, but by Friday it had yet to mention the South Korean computer crashes in state-run media. South Korean officials say they have no proof of Pyongyang's involvement. The country is preparing to deal with more possible attacks, presidential spokesman Yoon Chang-jung told reporters earlier Friday. He didn't elaborate. Determining who's behind a digital attack is often difficult, but North Korea is a leading suspect for several reasons. It has unleashed a torrent of threats against Seoul and Washington since punishing U. N. sanctions were imposed for Pyongyang's Feb. 12 nuclear test. It calls ongoing routine U. S. -South Korean military drills a threat to its existence. Pyongyang also threatened revenge after blaming Seoul and Washington for a separate Internet shutdown that disrupted its own network last week. Seoul alleges six previous cyberattacks by North Korea on South Korean targets since 2009. Wednesday's cyberattack did not affect South Korea's government, military or infrastructure, and there were no initial reports that customers' bank records were compromised. But it disabled cash machines and disrupted commerce. All three of the banks that were hit were back online and operating regularly Friday. It could be next week before the broadcasters' systems have fully recovered, though they said their programming was never affected.
english
out_data = b"\x1c\x91\x73\x94\xba\xfb\x3c\x30" + \ b"\x3c\x30\xac\x26\x62\x09\x74\x65" + \ b"\x73\x74\x31\x2e\x74\x78\x74\x5e" + \ b"\xc5\xf7\x32\x4c\x69\x76\x65\x20" + \ b"\x66\x72\x65\x65\x20\x6f\x72\x20" + \ b"\x64\x69\x65\x20\x68\x61\x72\x64" + \ b"\x0d\x0a\xd3\x14\x7c\x2e\x86\x89" + \ b"\x7a\x42\x58\xed\x06\x53\x9f\x15" + \ b"\xcc\xca\x7e\x7b\x37\x28\x5f\x3c"
python
# Alink Operator List ## Operators ### Data Sources * [AkSourceBatchOp](en/operator/source/AkSourceBatchOp.md) * [AkSourceStreamOp](en/operator/source/AkSourceStreamOp.md) * [CatalogSourceBatchOp](en/operator/source/CatalogSourceBatchOp.md) * [CatalogSourceStreamOp](en/operator/source/CatalogSourceStreamOp.md) * [CsvSourceBatchOp](en/operator/source/CsvSourceBatchOp.md) * [CsvSourceStreamOp](en/operator/source/CsvSourceStreamOp.md) * [KafkaSourceStreamOp](en/operator/source/KafkaSourceStreamOp.md) * [LibSvmSourceBatchOp](en/operator/source/LibSvmSourceBatchOp.md) * [LibSvmSourceStreamOp](en/operator/source/LibSvmSourceStreamOp.md) * [MemSourceBatchOp](en/operator/source/MemSourceBatchOp.md) * [MemSourceStreamOp](en/operator/source/MemSourceStreamOp.md) * [NumSeqSourceBatchOp](en/operator/source/NumSeqSourceBatchOp.md) * [NumSeqSourceStreamOp](en/operator/source/NumSeqSourceStreamOp.md) * [RandomTableSourceBatchOp](en/operator/source/RandomTableSourceBatchOp.md) * [RandomTableSourceStreamOp](en/operator/source/RandomTableSourceStreamOp.md) * [RandomVectorSourceBatchOp](en/operator/source/RandomVectorSourceBatchOp.md) * [RandomVectorSourceStreamOp](en/operator/source/RandomVectorSourceStreamOp.md) * [TableSourceBatchOp](en/operator/source/TableSourceBatchOp.md) * [TableSourceStreamOp](en/operator/source/TableSourceStreamOp.md) * [TextSourceBatchOp](en/operator/source/TextSourceBatchOp.md) * [TextSourceStreamOp](en/operator/source/TextSourceStreamOp.md) * [TsvSourceBatchOp](en/operator/source/TsvSourceBatchOp.md) * [TsvSourceStreamOp](en/operator/source/TsvSourceStreamOp.md) ### Data Sinks * [AkSinkBatchOp](en/operator/sink/AkSinkBatchOp.md) * [AkSinkStreamOp](en/operator/sink/AkSinkStreamOp.md) * [CatalogSinkBatchOp](en/operator/sink/CatalogSinkBatchOp.md) * [CatalogSinkStreamOp](en/operator/sink/CatalogSinkStreamOp.md) * [CsvSinkBatchOp](en/operator/sink/CsvSinkBatchOp.md) * [CsvSinkStreamOp](en/operator/sink/CsvSinkStreamOp.md) * [KafkaSinkStreamOp](en/operator/sink/KafkaSinkStreamOp.md) * [LibSvmSinkBatchOp](en/operator/sink/LibSvmSinkBatchOp.md) * [LibSvmSinkStreamOp](en/operator/sink/LibSvmSinkStreamOp.md) * [TextSinkBatchOp](en/operator/sink/TextSinkBatchOp.md) * [TextSinkStreamOp](en/operator/sink/TextSinkStreamOp.md) * [TsvSinkBatchOp](en/operator/sink/TsvSinkBatchOp.md) * [TsvSinkStreamOp](en/operator/sink/TsvSinkStreamOp.md) ### Data Processing * [AppendIdBatchOp](en/operator/dataproc/AppendIdBatchOp.md) * [FirstNBatchOp](en/operator/dataproc/FirstNBatchOp.md) * [ImputerPredictBatchOp](en/operator/dataproc/ImputerPredictBatchOp.md) * [ImputerPredictStreamOp](en/operator/dataproc/ImputerPredictStreamOp.md) * [ImputerTrainBatchOp](en/operator/dataproc/ImputerTrainBatchOp.md) * [IndexToStringPredictBatchOp](en/operator/dataproc/IndexToStringPredictBatchOp.md) * [IndexToStringPredictStreamOp](en/operator/dataproc/IndexToStringPredictStreamOp.md) * [JsonValueBatchOp](en/operator/dataproc/JsonValueBatchOp.md) * [JsonValueStreamOp](en/operator/dataproc/JsonValueStreamOp.md) * [KeyToValueBatchOp](en/operator/dataproc/KeyToValueBatchOp.md) * [KeyToValueStreamOp](en/operator/dataproc/KeyToValueStreamOp.md) * [KeyToValuesBatchOp](en/operator/dataproc/KeyToValuesBatchOp.md) * [KeyToValuesDynamicStreamOp](en/operator/dataproc/KeyToValuesDynamicStreamOp.md) * [KeyToValuesStreamOp](en/operator/dataproc/KeyToValuesStreamOp.md) * [MaxAbsScalerPredictBatchOp](en/operator/dataproc/MaxAbsScalerPredictBatchOp.md) * [MaxAbsScalerPredictStreamOp](en/operator/dataproc/MaxAbsScalerPredictStreamOp.md) * [MaxAbsScalerTrainBatchOp](en/operator/dataproc/MaxAbsScalerTrainBatchOp.md) * [MinMaxScalerPredictBatchOp](en/operator/dataproc/MinMaxScalerPredictBatchOp.md) * [MinMaxScalerPredictStreamOp](en/operator/dataproc/MinMaxScalerPredictStreamOp.md) * [MinMaxScalerTrainBatchOp](en/operator/dataproc/MinMaxScalerTrainBatchOp.md) * [MultiStringIndexerPredictBatchOp](en/operator/dataproc/MultiStringIndexerPredictBatchOp.md) * [MultiStringIndexerPredictStreamOp](en/operator/dataproc/MultiStringIndexerPredictStreamOp.md) * [MultiStringIndexerTrainBatchOp](en/operator/dataproc/MultiStringIndexerTrainBatchOp.md) * [SampleBatchOp](en/operator/dataproc/SampleBatchOp.md) * [SampleStreamOp](en/operator/dataproc/SampleStreamOp.md) * [SampleWithSizeBatchOp](en/operator/dataproc/SampleWithSizeBatchOp.md) * [ShuffleBatchOp](en/operator/dataproc/ShuffleBatchOp.md) * [SplitBatchOp](en/operator/dataproc/SplitBatchOp.md) * [SplitStreamOp](en/operator/dataproc/SplitStreamOp.md) * [StandardScalerPredictBatchOp](en/operator/dataproc/StandardScalerPredictBatchOp.md) * [StandardScalerPredictStreamOp](en/operator/dataproc/StandardScalerPredictStreamOp.md) * [StandardScalerTrainBatchOp](en/operator/dataproc/StandardScalerTrainBatchOp.md) * [StratifiedSampleBatchOp](en/operator/dataproc/StratifiedSampleBatchOp.md) * [StratifiedSampleStreamOp](en/operator/dataproc/StratifiedSampleStreamOp.md) * [StratifiedSampleWithSizeBatchOp](en/operator/dataproc/StratifiedSampleWithSizeBatchOp.md) * [StringIndexerPredictBatchOp](en/operator/dataproc/StringIndexerPredictBatchOp.md) * [StringIndexerPredictStreamOp](en/operator/dataproc/StringIndexerPredictStreamOp.md) * [StringIndexerTrainBatchOp](en/operator/dataproc/StringIndexerTrainBatchOp.md) * [WeightSampleBatchOp](en/operator/dataproc/WeightSampleBatchOp.md) #### Data Format * [ColumnsToCsvBatchOp](en/operator/dataproc/format/ColumnsToCsvBatchOp.md) * [ColumnsToCsvStreamOp](en/operator/dataproc/format/ColumnsToCsvStreamOp.md) * [ColumnsToJsonBatchOp](en/operator/dataproc/format/ColumnsToJsonBatchOp.md) * [ColumnsToJsonStreamOp](en/operator/dataproc/format/ColumnsToJsonStreamOp.md) * [ColumnsToKvBatchOp](en/operator/dataproc/format/ColumnsToKvBatchOp.md) * [ColumnsToKvStreamOp](en/operator/dataproc/format/ColumnsToKvStreamOp.md) * [ColumnsToTripleBatchOp](en/operator/dataproc/format/ColumnsToTripleBatchOp.md) * [ColumnsToTripleStreamOp](en/operator/dataproc/format/ColumnsToTripleStreamOp.md) * [ColumnsToVectorBatchOp](en/operator/dataproc/format/ColumnsToVectorBatchOp.md) * [ColumnsToVectorStreamOp](en/operator/dataproc/format/ColumnsToVectorStreamOp.md) * [CsvToColumnsBatchOp](en/operator/dataproc/format/CsvToColumnsBatchOp.md) * [CsvToColumnsStreamOp](en/operator/dataproc/format/CsvToColumnsStreamOp.md) * [CsvToJsonBatchOp](en/operator/dataproc/format/CsvToJsonBatchOp.md) * [CsvToJsonStreamOp](en/operator/dataproc/format/CsvToJsonStreamOp.md) * [CsvToKvBatchOp](en/operator/dataproc/format/CsvToKvBatchOp.md) * [CsvToKvStreamOp](en/operator/dataproc/format/CsvToKvStreamOp.md) * [CsvToTripleBatchOp](en/operator/dataproc/format/CsvToTripleBatchOp.md) * [CsvToTripleStreamOp](en/operator/dataproc/format/CsvToTripleStreamOp.md) * [CsvToVectorBatchOp](en/operator/dataproc/format/CsvToVectorBatchOp.md) * [CsvToVectorStreamOp](en/operator/dataproc/format/CsvToVectorStreamOp.md) * [JsonToColumnsBatchOp](en/operator/dataproc/format/JsonToColumnsBatchOp.md) * [JsonToColumnsStreamOp](en/operator/dataproc/format/JsonToColumnsStreamOp.md) * [JsonToCsvBatchOp](en/operator/dataproc/format/JsonToCsvBatchOp.md) * [JsonToCsvStreamOp](en/operator/dataproc/format/JsonToCsvStreamOp.md) * [JsonToKvBatchOp](en/operator/dataproc/format/JsonToKvBatchOp.md) * [JsonToKvStreamOp](en/operator/dataproc/format/JsonToKvStreamOp.md) * [JsonToTripleBatchOp](en/operator/dataproc/format/JsonToTripleBatchOp.md) * [JsonToTripleStreamOp](en/operator/dataproc/format/JsonToTripleStreamOp.md) * [JsonToVectorBatchOp](en/operator/dataproc/format/JsonToVectorBatchOp.md) * [JsonToVectorStreamOp](en/operator/dataproc/format/JsonToVectorStreamOp.md) * [KvToColumnsBatchOp](en/operator/dataproc/format/KvToColumnsBatchOp.md) * [KvToColumnsStreamOp](en/operator/dataproc/format/KvToColumnsStreamOp.md) * [KvToCsvBatchOp](en/operator/dataproc/format/KvToCsvBatchOp.md) * [KvToCsvStreamOp](en/operator/dataproc/format/KvToCsvStreamOp.md) * [KvToJsonBatchOp](en/operator/dataproc/format/KvToJsonBatchOp.md) * [KvToJsonStreamOp](en/operator/dataproc/format/KvToJsonStreamOp.md) * [KvToTripleBatchOp](en/operator/dataproc/format/KvToTripleBatchOp.md) * [KvToTripleStreamOp](en/operator/dataproc/format/KvToTripleStreamOp.md) * [KvToVectorBatchOp](en/operator/dataproc/format/KvToVectorBatchOp.md) * [KvToVectorStreamOp](en/operator/dataproc/format/KvToVectorStreamOp.md) * [TripleToColumnsBatchOp](en/operator/dataproc/format/TripleToColumnsBatchOp.md) * [TripleToCsvBatchOp](en/operator/dataproc/format/TripleToCsvBatchOp.md) * [TripleToJsonBatchOp](en/operator/dataproc/format/TripleToJsonBatchOp.md) * [TripleToKvBatchOp](en/operator/dataproc/format/TripleToKvBatchOp.md) * [TripleToVectorBatchOp](en/operator/dataproc/format/TripleToVectorBatchOp.md) * [VectorToColumnsBatchOp](en/operator/dataproc/format/VectorToColumnsBatchOp.md) * [VectorToColumnsStreamOp](en/operator/dataproc/format/VectorToColumnsStreamOp.md) * [VectorToCsvBatchOp](en/operator/dataproc/format/VectorToCsvBatchOp.md) * [VectorToCsvStreamOp](en/operator/dataproc/format/VectorToCsvStreamOp.md) * [VectorToJsonBatchOp](en/operator/dataproc/format/VectorToJsonBatchOp.md) * [VectorToJsonStreamOp](en/operator/dataproc/format/VectorToJsonStreamOp.md) * [VectorToKvBatchOp](en/operator/dataproc/format/VectorToKvBatchOp.md) * [VectorToKvStreamOp](en/operator/dataproc/format/VectorToKvStreamOp.md) * [VectorToTripleBatchOp](en/operator/dataproc/format/VectorToTripleBatchOp.md) * [VectorToTripleStreamOp](en/operator/dataproc/format/VectorToTripleStreamOp.md) #### Vector * [VectorAssemblerBatchOp](en/operator/dataproc/vector/VectorAssemblerBatchOp.md) * [VectorAssemblerStreamOp](en/operator/dataproc/vector/VectorAssemblerStreamOp.md) * [VectorElementwiseProductBatchOp](en/operator/dataproc/vector/VectorElementwiseProductBatchOp.md) * [VectorElementwiseProductStreamOp](en/operator/dataproc/vector/VectorElementwiseProductStreamOp.md) * [VectorImputerPredictBatchOp](en/operator/dataproc/vector/VectorImputerPredictBatchOp.md) * [VectorImputerPredictStreamOp](en/operator/dataproc/vector/VectorImputerPredictStreamOp.md) * [VectorImputerTrainBatchOp](en/operator/dataproc/vector/VectorImputerTrainBatchOp.md) * [VectorInteractionBatchOp](en/operator/dataproc/vector/VectorInteractionBatchOp.md) * [VectorInteractionStreamOp](en/operator/dataproc/vector/VectorInteractionStreamOp.md) * [VectorMaxAbsScalerPredictBatchOp](en/operator/dataproc/vector/VectorMaxAbsScalerPredictBatchOp.md) * [VectorMaxAbsScalerPredictStreamOp](en/operator/dataproc/vector/VectorMaxAbsScalerPredictStreamOp.md) * [VectorMaxAbsScalerTrainBatchOp](en/operator/dataproc/vector/VectorMaxAbsScalerTrainBatchOp.md) * [VectorMinMaxScalerPredictBatchOp](en/operator/dataproc/vector/VectorMinMaxScalerPredictBatchOp.md) * [VectorMinMaxScalerPredictStreamOp](en/operator/dataproc/vector/VectorMinMaxScalerPredictStreamOp.md) * [VectorMinMaxScalerTrainBatchOp](en/operator/dataproc/vector/VectorMinMaxScalerTrainBatchOp.md) * [VectorNormalizeBatchOp](en/operator/dataproc/vector/VectorNormalizeBatchOp.md) * [VectorNormalizeStreamOp](en/operator/dataproc/vector/VectorNormalizeStreamOp.md) * [VectorPolynomialExpandBatchOp](en/operator/dataproc/vector/VectorPolynomialExpandBatchOp.md) * [VectorPolynomialExpandStreamOp](en/operator/dataproc/vector/VectorPolynomialExpandStreamOp.md) * [VectorSizeHintBatchOp](en/operator/dataproc/vector/VectorSizeHintBatchOp.md) * [VectorSizeHintStreamOp](en/operator/dataproc/vector/VectorSizeHintStreamOp.md) * [VectorSliceBatchOp](en/operator/dataproc/vector/VectorSliceBatchOp.md) * [VectorSliceStreamOp](en/operator/dataproc/vector/VectorSliceStreamOp.md) * [VectorStandardScalerPredictBatchOp](en/operator/dataproc/vector/VectorStandardScalerPredictBatchOp.md) * [VectorStandardScalerPredictStreamOp](en/operator/dataproc/vector/VectorStandardScalerPredictStreamOp.md) * [VectorStandardScalerTrainBatchOp](en/operator/dataproc/vector/VectorStandardScalerTrainBatchOp.md) ### SQL * [AsBatchOp](en/operator/sql/AsBatchOp.md) * [AsStreamOp](en/operator/sql/AsStreamOp.md) * [DistinctBatchOp](en/operator/sql/DistinctBatchOp.md) * [FilterBatchOp](en/operator/sql/FilterBatchOp.md) * [FilterStreamOp](en/operator/sql/FilterStreamOp.md) * [FullOuterJoinBatchOp](en/operator/sql/FullOuterJoinBatchOp.md) * [GroupByBatchOp](en/operator/sql/GroupByBatchOp.md) * [IntersectAllBatchOp](en/operator/sql/IntersectAllBatchOp.md) * [IntersectBatchOp](en/operator/sql/IntersectBatchOp.md) * [JoinBatchOp](en/operator/sql/JoinBatchOp.md) * [LeftOuterJoinBatchOp](en/operator/sql/LeftOuterJoinBatchOp.md) * [MinusAllBatchOp](en/operator/sql/MinusAllBatchOp.md) * [MinusBatchOp](en/operator/sql/MinusBatchOp.md) * [OrderByBatchOp](en/operator/sql/OrderByBatchOp.md) * [RightOuterJoinBatchOp](en/operator/sql/RightOuterJoinBatchOp.md) * [SelectBatchOp](en/operator/sql/SelectBatchOp.md) * [SelectStreamOp](en/operator/sql/SelectStreamOp.md) * [UnionAllBatchOp](en/operator/sql/UnionAllBatchOp.md) * [UnionAllStreamOp](en/operator/sql/UnionAllStreamOp.md) * [UnionBatchOp](en/operator/sql/UnionBatchOp.md) * [WhereBatchOp](en/operator/sql/WhereBatchOp.md) * [WhereStreamOp](en/operator/sql/WhereStreamOp.md) * [WindowGroupByStreamOp](en/operator/sql/WindowGroupByStreamOp.md) ### Feature Engineering * [BinarizerBatchOp](en/operator/feature/BinarizerBatchOp.md) * [BinarizerStreamOp](en/operator/feature/BinarizerStreamOp.md) * [BucketizerBatchOp](en/operator/feature/BucketizerBatchOp.md) * [BucketizerStreamOp](en/operator/feature/BucketizerStreamOp.md) * [ChiSqSelectorBatchOp](en/operator/feature/ChiSqSelectorBatchOp.md) * [DCTBatchOp](en/operator/feature/DCTBatchOp.md) * [DCTStreamOp](en/operator/feature/DCTStreamOp.md) * [EqualWidthDiscretizerPredictBatchOp](en/operator/feature/EqualWidthDiscretizerPredictBatchOp.md) * [EqualWidthDiscretizerPredictStreamOp](en/operator/feature/EqualWidthDiscretizerPredictStreamOp.md) * [EqualWidthDiscretizerTrainBatchOp](en/operator/feature/EqualWidthDiscretizerTrainBatchOp.md) * [FeatureHasherBatchOp](en/operator/feature/FeatureHasherBatchOp.md) * [FeatureHasherStreamOp](en/operator/feature/FeatureHasherStreamOp.md) * [OneHotPredictBatchOp](en/operator/feature/OneHotPredictBatchOp.md) * [OneHotPredictStreamOp](en/operator/feature/OneHotPredictStreamOp.md) * [OneHotTrainBatchOp](en/operator/feature/OneHotTrainBatchOp.md) * [PcaPredictBatchOp](en/operator/feature/PcaPredictBatchOp.md) * [PcaPredictStreamOp](en/operator/feature/PcaPredictStreamOp.md) * [PcaTrainBatchOp](en/operator/feature/PcaTrainBatchOp.md) * [QuantileDiscretizerPredictBatchOp](en/operator/feature/QuantileDiscretizerPredictBatchOp.md) * [QuantileDiscretizerPredictStreamOp](en/operator/feature/QuantileDiscretizerPredictStreamOp.md) * [QuantileDiscretizerTrainBatchOp](en/operator/feature/QuantileDiscretizerTrainBatchOp.md) * [VectorChiSqSelectorBatchOp](en/operator/feature/VectorChiSqSelectorBatchOp.md) ### Text Processing * [DocCountVectorizerPredictBatchOp](en/operator/nlp/DocCountVectorizerPredictBatchOp.md) * [DocCountVectorizerPredictStreamOp](en/operator/nlp/DocCountVectorizerPredictStreamOp.md) * [DocCountVectorizerTrainBatchOp](en/operator/nlp/DocCountVectorizerTrainBatchOp.md) * [DocHashCountVectorizerPredictBatchOp](en/operator/nlp/DocHashCountVectorizerPredictBatchOp.md) * [DocHashCountVectorizerPredictStreamOp](en/operator/nlp/DocHashCountVectorizerPredictStreamOp.md) * [DocHashCountVectorizerTrainBatchOp](en/operator/nlp/DocHashCountVectorizerTrainBatchOp.md) * [DocWordCountBatchOp](en/operator/nlp/DocWordCountBatchOp.md) * [DocWordCountStreamOp](en/operator/nlp/DocWordCountStreamOp.md) * [KeywordsExtractionBatchOp](en/operator/nlp/KeywordsExtractionBatchOp.md) * [KeywordsExtractionStreamOp](en/operator/nlp/KeywordsExtractionStreamOp.md) * [NGramBatchOp](en/operator/nlp/NGramBatchOp.md) * [NGramStreamOp](en/operator/nlp/NGramStreamOp.md) * [RegexTokenizerBatchOp](en/operator/nlp/RegexTokenizerBatchOp.md) * [RegexTokenizerStreamOp](en/operator/nlp/RegexTokenizerStreamOp.md) * [SegmentBatchOp](en/operator/nlp/SegmentBatchOp.md) * [SegmentStreamOp](en/operator/nlp/SegmentStreamOp.md) * [StopWordsRemoverBatchOp](en/operator/nlp/StopWordsRemoverBatchOp.md) * [StopWordsRemoverStreamOp](en/operator/nlp/StopWordsRemoverStreamOp.md) * [TokenizerBatchOp](en/operator/nlp/TokenizerBatchOp.md) * [TokenizerStreamOp](en/operator/nlp/TokenizerStreamOp.md) * [Word2VecPredictBatchOp](en/operator/nlp/Word2VecPredictBatchOp.md) * [Word2VecPredictStreamOp](en/operator/nlp/Word2VecPredictStreamOp.md) * [Word2VecTrainBatchOp](en/operator/nlp/Word2VecTrainBatchOp.md) * [WordCountBatchOp](en/operator/nlp/WordCountBatchOp.md) ### Statistics * [ChiSquareTestBatchOp](en/operator/statistics/ChiSquareTestBatchOp.md) * [CorrelationBatchOp](en/operator/statistics/CorrelationBatchOp.md) * [SummarizerBatchOp](en/operator/statistics/SummarizerBatchOp.md) * [VectorChiSquareTestBatchOp](en/operator/statistics/VectorChiSquareTestBatchOp.md) * [VectorCorrelationBatchOp](en/operator/statistics/VectorCorrelationBatchOp.md) * [VectorSummarizerBatchOp](en/operator/statistics/VectorSummarizerBatchOp.md) ### Classification * [C45PredictBatchOp](en/operator/classification/C45PredictBatchOp.md) * [C45PredictStreamOp](en/operator/classification/C45PredictStreamOp.md) * [C45TrainBatchOp](en/operator/classification/C45TrainBatchOp.md) * [CartPredictBatchOp](en/operator/classification/CartPredictBatchOp.md) * [CartPredictStreamOp](en/operator/classification/CartPredictStreamOp.md) * [CartTrainBatchOp](en/operator/classification/CartTrainBatchOp.md) * [DecisionTreePredictBatchOp](en/operator/classification/DecisionTreePredictBatchOp.md) * [DecisionTreePredictStreamOp](en/operator/classification/DecisionTreePredictStreamOp.md) * [DecisionTreeTrainBatchOp](en/operator/classification/DecisionTreeTrainBatchOp.md) * [FmClassifierPredictBatchOp](en/operator/classification/FmClassifierPredictBatchOp.md) * [FmClassifierPredictStreamOp](en/operator/classification/FmClassifierPredictStreamOp.md) * [FmClassifierTrainBatchOp](en/operator/classification/FmClassifierTrainBatchOp.md) * [GbdtPredictBatchOp](en/operator/classification/GbdtPredictBatchOp.md) * [GbdtPredictStreamOp](en/operator/classification/GbdtPredictStreamOp.md) * [GbdtTrainBatchOp](en/operator/classification/GbdtTrainBatchOp.md) * [Id3PredictBatchOp](en/operator/classification/Id3PredictBatchOp.md) * [Id3PredictStreamOp](en/operator/classification/Id3PredictStreamOp.md) * [Id3TrainBatchOp](en/operator/classification/Id3TrainBatchOp.md) * [KnnPredictBatchOp](en/operator/classification/KnnPredictBatchOp.md) * [KnnTrainBatchOp](en/operator/classification/KnnTrainBatchOp.md) * [LinearSvmPredictBatchOp](en/operator/classification/LinearSvmPredictBatchOp.md) * [LinearSvmPredictStreamOp](en/operator/classification/LinearSvmPredictStreamOp.md) * [LinearSvmTrainBatchOp](en/operator/classification/LinearSvmTrainBatchOp.md) * [LogisticRegressionPredictBatchOp](en/operator/classification/LogisticRegressionPredictBatchOp.md) * [LogisticRegressionPredictStreamOp](en/operator/classification/LogisticRegressionPredictStreamOp.md) * [LogisticRegressionTrainBatchOp](en/operator/classification/LogisticRegressionTrainBatchOp.md) * [MultilayerPerceptronPredictBatchOp](en/operator/classification/MultilayerPerceptronPredictBatchOp.md) * [MultilayerPerceptronPredictStreamOp](en/operator/classification/MultilayerPerceptronPredictStreamOp.md) * [MultilayerPerceptronTrainBatchOp](en/operator/classification/MultilayerPerceptronTrainBatchOp.md) * [NaiveBayesPredictBatchOp](en/operator/classification/NaiveBayesPredictBatchOp.md) * [NaiveBayesPredictStreamOp](en/operator/classification/NaiveBayesPredictStreamOp.md) * [NaiveBayesTextPredictBatchOp](en/operator/classification/NaiveBayesTextPredictBatchOp.md) * [NaiveBayesTextPredictStreamOp](en/operator/classification/NaiveBayesTextPredictStreamOp.md) * [NaiveBayesTextTrainBatchOp](en/operator/classification/NaiveBayesTextTrainBatchOp.md) * [NaiveBayesTrainBatchOp](en/operator/classification/NaiveBayesTrainBatchOp.md) * [RandomForestPredictBatchOp](en/operator/classification/RandomForestPredictBatchOp.md) * [RandomForestPredictStreamOp](en/operator/classification/RandomForestPredictStreamOp.md) * [RandomForestTrainBatchOp](en/operator/classification/RandomForestTrainBatchOp.md) * [SoftmaxPredictBatchOp](en/operator/classification/SoftmaxPredictBatchOp.md) * [SoftmaxPredictStreamOp](en/operator/classification/SoftmaxPredictStreamOp.md) * [SoftmaxTrainBatchOp](en/operator/classification/SoftmaxTrainBatchOp.md) ### Regression * [AftSurvivalRegPredictBatchOp](en/operator/regression/AftSurvivalRegPredictBatchOp.md) * [AftSurvivalRegPredictStreamOp](en/operator/regression/AftSurvivalRegPredictStreamOp.md) * [AftSurvivalRegTrainBatchOp](en/operator/regression/AftSurvivalRegTrainBatchOp.md) * [CartRegPredictBatchOp](en/operator/regression/CartRegPredictBatchOp.md) * [CartRegPredictStreamOp](en/operator/regression/CartRegPredictStreamOp.md) * [CartRegTrainBatchOp](en/operator/regression/CartRegTrainBatchOp.md) * [DecisionTreeRegPredictBatchOp](en/operator/regression/DecisionTreeRegPredictBatchOp.md) * [DecisionTreeRegPredictStreamOp](en/operator/regression/DecisionTreeRegPredictStreamOp.md) * [DecisionTreeRegTrainBatchOp](en/operator/regression/DecisionTreeRegTrainBatchOp.md) * [FmRegressorPredictBatchOp](en/operator/regression/FmRegressorPredictBatchOp.md) * [FmRegressorPredictStreamOp](en/operator/regression/FmRegressorPredictStreamOp.md) * [FmRegressorTrainBatchOp](en/operator/regression/FmRegressorTrainBatchOp.md) * [GBRankPredictStreamOp](en/operator/regression/GBRankPredictStreamOp.md) * [GbdtRegPredictBatchOp](en/operator/regression/GbdtRegPredictBatchOp.md) * [GbdtRegPredictStreamOp](en/operator/regression/GbdtRegPredictStreamOp.md) * [GbdtRegTrainBatchOp](en/operator/regression/GbdtRegTrainBatchOp.md) * [GlmEvaluationBatchOp](en/operator/regression/GlmEvaluationBatchOp.md) * [GlmPredictBatchOp](en/operator/regression/GlmPredictBatchOp.md) * [GlmPredictStreamOp](en/operator/regression/GlmPredictStreamOp.md) * [GlmTrainBatchOp](en/operator/regression/GlmTrainBatchOp.md) * [IsotonicRegPredictBatchOp](en/operator/regression/IsotonicRegPredictBatchOp.md) * [IsotonicRegPredictStreamOp](en/operator/regression/IsotonicRegPredictStreamOp.md) * [IsotonicRegTrainBatchOp](en/operator/regression/IsotonicRegTrainBatchOp.md) * [LassoRegPredictBatchOp](en/operator/regression/LassoRegPredictBatchOp.md) * [LassoRegPredictStreamOp](en/operator/regression/LassoRegPredictStreamOp.md) * [LassoRegTrainBatchOp](en/operator/regression/LassoRegTrainBatchOp.md) * [LinearRegPredictBatchOp](en/operator/regression/LinearRegPredictBatchOp.md) * [LinearRegPredictStreamOp](en/operator/regression/LinearRegPredictStreamOp.md) * [LinearRegTrainBatchOp](en/operator/regression/LinearRegTrainBatchOp.md) * [RandomForestRegPredictBatchOp](en/operator/regression/RandomForestRegPredictBatchOp.md) * [RandomForestRegPredictStreamOp](en/operator/regression/RandomForestRegPredictStreamOp.md) * [RandomForestRegTrainBatchOp](en/operator/regression/RandomForestRegTrainBatchOp.md) * [RidgeRegPredictBatchOp](en/operator/regression/RidgeRegPredictBatchOp.md) * [RidgeRegPredictStreamOp](en/operator/regression/RidgeRegPredictStreamOp.md) * [RidgeRegTrainBatchOp](en/operator/regression/RidgeRegTrainBatchOp.md) ### Clustering * [BisectingKMeansPredictBatchOp](en/operator/clustering/BisectingKMeansPredictBatchOp.md) * [BisectingKMeansPredictStreamOp](en/operator/clustering/BisectingKMeansPredictStreamOp.md) * [BisectingKMeansTrainBatchOp](en/operator/clustering/BisectingKMeansTrainBatchOp.md) * [GeoKMeansPredictBatchOp](en/operator/clustering/GeoKMeansPredictBatchOp.md) * [GeoKMeansPredictStreamOp](en/operator/clustering/GeoKMeansPredictStreamOp.md) * [GeoKMeansTrainBatchOp](en/operator/clustering/GeoKMeansTrainBatchOp.md) * [GmmPredictBatchOp](en/operator/clustering/GmmPredictBatchOp.md) * [GmmPredictStreamOp](en/operator/clustering/GmmPredictStreamOp.md) * [GmmTrainBatchOp](en/operator/clustering/GmmTrainBatchOp.md) * [KMeansPredictBatchOp](en/operator/clustering/KMeansPredictBatchOp.md) * [KMeansPredictStreamOp](en/operator/clustering/KMeansPredictStreamOp.md) * [KMeansTrainBatchOp](en/operator/clustering/KMeansTrainBatchOp.md) * [LdaPredictBatchOp](en/operator/clustering/LdaPredictBatchOp.md) * [LdaPredictStreamOp](en/operator/clustering/LdaPredictStreamOp.md) * [LdaTrainBatchOp](en/operator/clustering/LdaTrainBatchOp.md) * [StreamingKMeansStreamOp](en/operator/clustering/StreamingKMeansStreamOp.md) ### Association Rule * [FpGrowthBatchOp](en/operator/associationrule/FpGrowthBatchOp.md) * [PrefixSpanBatchOp](en/operator/associationrule/PrefixSpanBatchOp.md) ### Recommendation * [AlsImplicitTrainBatchOp](en/operator/recommendation/AlsImplicitTrainBatchOp.md) * [AlsItemsPerUserRecommBatchOp](en/operator/recommendation/AlsItemsPerUserRecommBatchOp.md) * [AlsItemsPerUserRecommStreamOp](en/operator/recommendation/AlsItemsPerUserRecommStreamOp.md) * [AlsRateRecommBatchOp](en/operator/recommendation/AlsRateRecommBatchOp.md) * [AlsRateRecommStreamOp](en/operator/recommendation/AlsRateRecommStreamOp.md) * [AlsSimilarItemsRecommBatchOp](en/operator/recommendation/AlsSimilarItemsRecommBatchOp.md) * [AlsSimilarItemsRecommStreamOp](en/operator/recommendation/AlsSimilarItemsRecommStreamOp.md) * [AlsSimilarUsersRecommBatchOp](en/operator/recommendation/AlsSimilarUsersRecommBatchOp.md) * [AlsSimilarUsersRecommStreamOp](en/operator/recommendation/AlsSimilarUsersRecommStreamOp.md) * [AlsTrainBatchOp](en/operator/recommendation/AlsTrainBatchOp.md) * [AlsUsersPerItemRecommBatchOp](en/operator/recommendation/AlsUsersPerItemRecommBatchOp.md) * [AlsUsersPerItemRecommStreamOp](en/operator/recommendation/AlsUsersPerItemRecommStreamOp.md) * [FlattenKObjectBatchOp](en/operator/recommendation/FlattenKObjectBatchOp.md) * [FlattenKObjectStreamOp](en/operator/recommendation/FlattenKObjectStreamOp.md) * [FmItemsPerUserRecommBatchOp](en/operator/recommendation/FmItemsPerUserRecommBatchOp.md) * [FmItemsPerUserRecommStreamOp](en/operator/recommendation/FmItemsPerUserRecommStreamOp.md) * [FmRateRecommBatchOp](en/operator/recommendation/FmRateRecommBatchOp.md) * [FmRecommBinaryImplicitTrainBatchOp](en/operator/recommendation/FmRecommBinaryImplicitTrainBatchOp.md) * [FmRecommTrainBatchOp](en/operator/recommendation/FmRecommTrainBatchOp.md) * [FmUsersPerItemRecommBatchOp](en/operator/recommendation/FmUsersPerItemRecommBatchOp.md) * [FmUsersPerItemRecommStreamOp](en/operator/recommendation/FmUsersPerItemRecommStreamOp.md) * [ItemCfItemsPerUserRecommBatchOp](en/operator/recommendation/ItemCfItemsPerUserRecommBatchOp.md) * [ItemCfItemsPerUserRecommStreamOp](en/operator/recommendation/ItemCfItemsPerUserRecommStreamOp.md) * [ItemCfRateRecommBatchOp](en/operator/recommendation/ItemCfRateRecommBatchOp.md) * [ItemCfRateRecommStreamOp](en/operator/recommendation/ItemCfRateRecommStreamOp.md) * [ItemCfSimilarItemsRecommBatchOp](en/operator/recommendation/ItemCfSimilarItemsRecommBatchOp.md) * [ItemCfSimilarItemsRecommStreamOp](en/operator/recommendation/ItemCfSimilarItemsRecommStreamOp.md) * [ItemCfTrainBatchOp](en/operator/recommendation/ItemCfTrainBatchOp.md) * [ItemCfUsersPerItemRecommBatchOp](en/operator/recommendation/ItemCfUsersPerItemRecommBatchOp.md) * [ItemCfUsersPerItemRecommStreamOp](en/operator/recommendation/ItemCfUsersPerItemRecommStreamOp.md) * [LeaveKObjectOutBatchOp](en/operator/recommendation/LeaveKObjectOutBatchOp.md) * [LeaveTopKObjectOutBatchOp](en/operator/recommendation/LeaveTopKObjectOutBatchOp.md) * [NegativeItemSamplingBatchOp](en/operator/recommendation/NegativeItemSamplingBatchOp.md) * [UserCfItemsPerUserRecommBatchOp](en/operator/recommendation/UserCfItemsPerUserRecommBatchOp.md) * [UserCfItemsPerUserRecommStreamOp](en/operator/recommendation/UserCfItemsPerUserRecommStreamOp.md) * [UserCfRateRecommBatchOp](en/operator/recommendation/UserCfRateRecommBatchOp.md) * [UserCfRateRecommStreamOp](en/operator/recommendation/UserCfRateRecommStreamOp.md) * [UserCfSimilarUsersRecommBatchOp](en/operator/recommendation/UserCfSimilarUsersRecommBatchOp.md) * [UserCfSimilarUsersRecommStreamOp](en/operator/recommendation/UserCfSimilarUsersRecommStreamOp.md) * [UserCfTrainBatchOp](en/operator/recommendation/UserCfTrainBatchOp.md) * [UserCfUsersPerItemRecommBatchOp](en/operator/recommendation/UserCfUsersPerItemRecommBatchOp.md) * [UserCfUsersPerItemRecommStreamOp](en/operator/recommendation/UserCfUsersPerItemRecommStreamOp.md) ### Evaluation * [EvalBinaryClassBatchOp](en/operator/evaluation/EvalBinaryClassBatchOp.md) * [EvalBinaryClassStreamOp](en/operator/evaluation/EvalBinaryClassStreamOp.md) * [EvalClusterBatchOp](en/operator/evaluation/EvalClusterBatchOp.md) * [EvalMultiClassBatchOp](en/operator/evaluation/EvalMultiClassBatchOp.md) * [EvalMultiClassStreamOp](en/operator/evaluation/EvalMultiClassStreamOp.md) * [EvalMultiLabelBatchOp](en/operator/evaluation/EvalMultiLabelBatchOp.md) * [EvalRankingBatchOp](en/operator/evaluation/EvalRankingBatchOp.md) * [EvalRegressionBatchOp](en/operator/evaluation/EvalRegressionBatchOp.md) ### Outlier Detection * [SosBatchOp](en/operator/outlier/SosBatchOp.md) ### Online Learning * [FtrlModelFilterStreamOp](en/operator/onlinelearning/FtrlModelFilterStreamOp.md) * [FtrlPredictStreamOp](en/operator/onlinelearning/FtrlPredictStreamOp.md) * [FtrlTrainStreamOp](en/operator/onlinelearning/FtrlTrainStreamOp.md) ### Similarity * [StringApproxNearestNeighborPredictBatchOp](en/operator/similarity/StringApproxNearestNeighborPredictBatchOp.md) * [StringApproxNearestNeighborTrainBatchOp](en/operator/similarity/StringApproxNearestNeighborTrainBatchOp.md) * [StringNearestNeighborPredictBatchOp](en/operator/similarity/StringNearestNeighborPredictBatchOp.md) * [StringNearestNeighborTrainBatchOp](en/operator/similarity/StringNearestNeighborTrainBatchOp.md) * [StringSimilarityPairwiseBatchOp](en/operator/similarity/StringSimilarityPairwiseBatchOp.md) * [StringSimilarityPairwiseStreamOp](en/operator/similarity/StringSimilarityPairwiseStreamOp.md) * [TextApproxNearestNeighborPredictBatchOp](en/operator/similarity/TextApproxNearestNeighborPredictBatchOp.md) * [TextApproxNearestNeighborTrainBatchOp](en/operator/similarity/TextApproxNearestNeighborTrainBatchOp.md) * [TextNearestNeighborPredictBatchOp](en/operator/similarity/TextNearestNeighborPredictBatchOp.md) * [TextNearestNeighborTrainBatchOp](en/operator/similarity/TextNearestNeighborTrainBatchOp.md) * [TextSimilarityPairwiseBatchOp](en/operator/similarity/TextSimilarityPairwiseBatchOp.md) * [TextSimilarityPairwiseStreamOp](en/operator/similarity/TextSimilarityPairwiseStreamOp.md) * [VectorApproxNearestNeighborPredictBatchOp](en/operator/similarity/VectorApproxNearestNeighborPredictBatchOp.md) * [VectorApproxNearestNeighborTrainBatchOp](en/operator/similarity/VectorApproxNearestNeighborTrainBatchOp.md) * [VectorNearestNeighborPredictBatchOp](en/operator/similarity/VectorNearestNeighborPredictBatchOp.md) * [VectorNearestNeighborTrainBatchOp](en/operator/similarity/VectorNearestNeighborTrainBatchOp.md) ### Utilities * [PrintBatchOp](en/operator/utils/PrintBatchOp.md) * [PrintStreamOp](en/operator/utils/PrintStreamOp.md) * [UDFBatchOp](en/operator/utils/UDFBatchOp.md) * [UDFStreamOp](en/operator/utils/UDFStreamOp.md) * [UDTFBatchOp](en/operator/utils/UDTFBatchOp.md) * [UDTFStreamOp](en/operator/utils/UDTFStreamOp.md) ## Pipeline ### Data Processing * [Imputer](en/pipeline/dataproc/Imputer.md) * [ImputerModel](en/pipeline/dataproc/ImputerModel.md) * [IndexToString](en/pipeline/dataproc/IndexToString.md) * [KeyToValue](en/pipeline/dataproc/KeyToValue.md) * [KeyToValues](en/pipeline/dataproc/KeyToValues.md) * [MaxAbsScaler](en/pipeline/dataproc/MaxAbsScaler.md) * [MaxAbsScalerModel](en/pipeline/dataproc/MaxAbsScalerModel.md) * [MinMaxScaler](en/pipeline/dataproc/MinMaxScaler.md) * [MinMaxScalerModel](en/pipeline/dataproc/MinMaxScalerModel.md) * [MultiStringIndexer](en/pipeline/dataproc/MultiStringIndexer.md) * [MultiStringIndexerModel](en/pipeline/dataproc/MultiStringIndexerModel.md) * [StandardScaler](en/pipeline/dataproc/StandardScaler.md) * [StandardScalerModel](en/pipeline/dataproc/StandardScalerModel.md) * [StringIndexer](en/pipeline/dataproc/StringIndexer.md) * [StringIndexerModel](en/pipeline/dataproc/StringIndexerModel.md) #### Data Format * [ColumnsToCsv](en/pipeline/dataproc/format/ColumnsToCsv.md) * [ColumnsToJson](en/pipeline/dataproc/format/ColumnsToJson.md) * [ColumnsToKv](en/pipeline/dataproc/format/ColumnsToKv.md) * [ColumnsToVector](en/pipeline/dataproc/format/ColumnsToVector.md) * [CsvToColumns](en/pipeline/dataproc/format/CsvToColumns.md) * [CsvToJson](en/pipeline/dataproc/format/CsvToJson.md) * [CsvToKv](en/pipeline/dataproc/format/CsvToKv.md) * [CsvToVector](en/pipeline/dataproc/format/CsvToVector.md) * [JsonToColumns](en/pipeline/dataproc/format/JsonToColumns.md) * [JsonToCsv](en/pipeline/dataproc/format/JsonToCsv.md) * [JsonToKv](en/pipeline/dataproc/format/JsonToKv.md) * [JsonToVector](en/pipeline/dataproc/format/JsonToVector.md) * [KvToColumns](en/pipeline/dataproc/format/KvToColumns.md) * [KvToCsv](en/pipeline/dataproc/format/KvToCsv.md) * [KvToJson](en/pipeline/dataproc/format/KvToJson.md) * [KvToVector](en/pipeline/dataproc/format/KvToVector.md) * [VectorToColumns](en/pipeline/dataproc/format/VectorToColumns.md) * [VectorToCsv](en/pipeline/dataproc/format/VectorToCsv.md) * [VectorToJson](en/pipeline/dataproc/format/VectorToJson.md) * [VectorToKv](en/pipeline/dataproc/format/VectorToKv.md) #### Vector * [VectorAssembler](en/pipeline/dataproc/vector/VectorAssembler.md) * [VectorElementwiseProduct](en/pipeline/dataproc/vector/VectorElementwiseProduct.md) * [VectorImputer](en/pipeline/dataproc/vector/VectorImputer.md) * [VectorImputerModel](en/pipeline/dataproc/vector/VectorImputerModel.md) * [VectorInteraction](en/pipeline/dataproc/vector/VectorInteraction.md) * [VectorMaxAbsScaler](en/pipeline/dataproc/vector/VectorMaxAbsScaler.md) * [VectorMaxAbsScalerModel](en/pipeline/dataproc/vector/VectorMaxAbsScalerModel.md) * [VectorMinMaxScaler](en/pipeline/dataproc/vector/VectorMinMaxScaler.md) * [VectorMinMaxScalerModel](en/pipeline/dataproc/vector/VectorMinMaxScalerModel.md) * [VectorNormalizer](en/pipeline/dataproc/vector/VectorNormalizer.md) * [VectorPolynomialExpand](en/pipeline/dataproc/vector/VectorPolynomialExpand.md) * [VectorSizeHint](en/pipeline/dataproc/vector/VectorSizeHint.md) * [VectorSlicer](en/pipeline/dataproc/vector/VectorSlicer.md) * [VectorStandardScaler](en/pipeline/dataproc/vector/VectorStandardScaler.md) * [VectorStandardScalerModel](en/pipeline/dataproc/vector/VectorStandardScalerModel.md) ### SQL * [Select](en/pipeline/sql/Select.md) ### Feature Engineering * [Binarizer](en/pipeline/feature/Binarizer.md) * [Bucketizer](en/pipeline/feature/Bucketizer.md) * [DCT](en/pipeline/feature/DCT.md) * [EqualWidthDiscretizer](en/pipeline/feature/EqualWidthDiscretizer.md) * [EqualWidthDiscretizerModel](en/pipeline/feature/EqualWidthDiscretizerModel.md) * [FeatureHasher](en/pipeline/feature/FeatureHasher.md) * [OneHotEncoder](en/pipeline/feature/OneHotEncoder.md) * [OneHotEncoderModel](en/pipeline/feature/OneHotEncoderModel.md) * [PCA](en/pipeline/feature/PCA.md) * [PCAModel](en/pipeline/feature/PCAModel.md) * [QuantileDiscretizer](en/pipeline/feature/QuantileDiscretizer.md) * [QuantileDiscretizerModel](en/pipeline/feature/QuantileDiscretizerModel.md) ### Text Processing * [DocCountVectorizer](en/pipeline/nlp/DocCountVectorizer.md) * [DocCountVectorizerModel](en/pipeline/nlp/DocCountVectorizerModel.md) * [DocHashCountVectorizer](en/pipeline/nlp/DocHashCountVectorizer.md) * [DocHashCountVectorizerModel](en/pipeline/nlp/DocHashCountVectorizerModel.md) * [NGram](en/pipeline/nlp/NGram.md) * [RegexTokenizer](en/pipeline/nlp/RegexTokenizer.md) * [Segment](en/pipeline/nlp/Segment.md) * [StopWordsRemover](en/pipeline/nlp/StopWordsRemover.md) * [Tokenizer](en/pipeline/nlp/Tokenizer.md) * [Word2Vec](en/pipeline/nlp/Word2Vec.md) * [Word2VecModel](en/pipeline/nlp/Word2VecModel.md) ### Classification * [C45](en/pipeline/classification/C45.md) * [C45Model](en/pipeline/classification/C45Model.md) * [Cart](en/pipeline/classification/Cart.md) * [CartModel](en/pipeline/classification/CartModel.md) * [DecisionTreeClassificationModel](en/pipeline/classification/DecisionTreeClassificationModel.md) * [DecisionTreeClassifier](en/pipeline/classification/DecisionTreeClassifier.md) * [FmClassifier](en/pipeline/classification/FmClassifier.md) * [FmModel](en/pipeline/classification/FmModel.md) * [GbdtClassificationModel](en/pipeline/classification/GbdtClassificationModel.md) * [GbdtClassifier](en/pipeline/classification/GbdtClassifier.md) * [Id3](en/pipeline/classification/Id3.md) * [Id3Model](en/pipeline/classification/Id3Model.md) * [KnnClassificationModel](en/pipeline/classification/KnnClassificationModel.md) * [KnnClassifier](en/pipeline/classification/KnnClassifier.md) * [LinearSvm](en/pipeline/classification/LinearSvm.md) * [LinearSvmModel](en/pipeline/classification/LinearSvmModel.md) * [LogisticRegression](en/pipeline/classification/LogisticRegression.md) * [LogisticRegressionModel](en/pipeline/classification/LogisticRegressionModel.md) * [MultilayerPerceptronClassificationModel](en/pipeline/classification/MultilayerPerceptronClassificationModel.md) * [MultilayerPerceptronClassifier](en/pipeline/classification/MultilayerPerceptronClassifier.md) * [NaiveBayes](en/pipeline/classification/NaiveBayes.md) * [NaiveBayesModel](en/pipeline/classification/NaiveBayesModel.md) * [NaiveBayesTextClassifier](en/pipeline/classification/NaiveBayesTextClassifier.md) * [NaiveBayesTextModel](en/pipeline/classification/NaiveBayesTextModel.md) * [OneVsRest](en/pipeline/classification/OneVsRest.md) * [OneVsRestModel](en/pipeline/classification/OneVsRestModel.md) * [RandomForestClassificationModel](en/pipeline/classification/RandomForestClassificationModel.md) * [RandomForestClassifier](en/pipeline/classification/RandomForestClassifier.md) * [Softmax](en/pipeline/classification/Softmax.md) * [SoftmaxModel](en/pipeline/classification/SoftmaxModel.md) ### Regression * [AftSurvivalRegression](en/pipeline/regression/AftSurvivalRegression.md) * [AftSurvivalRegressionModel](en/pipeline/regression/AftSurvivalRegressionModel.md) * [CartReg](en/pipeline/regression/CartReg.md) * [CartRegModel](en/pipeline/regression/CartRegModel.md) * [DecisionTreeRegressionModel](en/pipeline/regression/DecisionTreeRegressionModel.md) * [DecisionTreeRegressor](en/pipeline/regression/DecisionTreeRegressor.md) * [FmRegressor](en/pipeline/regression/FmRegressor.md) * [GbdtRegressionModel](en/pipeline/regression/GbdtRegressionModel.md) * [GbdtRegressor](en/pipeline/regression/GbdtRegressor.md) * [GeneralizedLinearRegression](en/pipeline/regression/GeneralizedLinearRegression.md) * [GeneralizedLinearRegressionModel](en/pipeline/regression/GeneralizedLinearRegressionModel.md) * [IsotonicRegression](en/pipeline/regression/IsotonicRegression.md) * [IsotonicRegressionModel](en/pipeline/regression/IsotonicRegressionModel.md) * [LassoRegression](en/pipeline/regression/LassoRegression.md) * [LassoRegressionModel](en/pipeline/regression/LassoRegressionModel.md) * [LinearRegression](en/pipeline/regression/LinearRegression.md) * [LinearRegressionModel](en/pipeline/regression/LinearRegressionModel.md) * [RandomForestRegressionModel](en/pipeline/regression/RandomForestRegressionModel.md) * [RandomForestRegressor](en/pipeline/regression/RandomForestRegressor.md) * [RidgeRegression](en/pipeline/regression/RidgeRegression.md) * [RidgeRegressionModel](en/pipeline/regression/RidgeRegressionModel.md) ### Clustering * [BisectingKMeans](en/pipeline/clustering/BisectingKMeans.md) * [BisectingKMeansModel](en/pipeline/clustering/BisectingKMeansModel.md) * [GaussianMixture](en/pipeline/clustering/GaussianMixture.md) * [GaussianMixtureModel](en/pipeline/clustering/GaussianMixtureModel.md) * [GeoKMeans](en/pipeline/clustering/GeoKMeans.md) * [GeoKMeansModel](en/pipeline/clustering/GeoKMeansModel.md) * [KMeans](en/pipeline/clustering/KMeans.md) * [KMeansModel](en/pipeline/clustering/KMeansModel.md) * [Lda](en/pipeline/clustering/Lda.md) * [LdaModel](en/pipeline/clustering/LdaModel.md) ### Recommendation * [AlsItemsPerUserRecommender](en/pipeline/recommendation/AlsItemsPerUserRecommender.md) * [AlsRateRecommender](en/pipeline/recommendation/AlsRateRecommender.md) * [AlsSimilarItemsRecommender](en/pipeline/recommendation/AlsSimilarItemsRecommender.md) * [AlsSimilarUsersRecommender](en/pipeline/recommendation/AlsSimilarUsersRecommender.md) * [AlsUsersPerItemRecommender](en/pipeline/recommendation/AlsUsersPerItemRecommender.md) * [FlattenKObject](en/pipeline/recommendation/FlattenKObject.md) * [FmItemsPerUserRecommender](en/pipeline/recommendation/FmItemsPerUserRecommender.md) * [FmRateRecommender](en/pipeline/recommendation/FmRateRecommender.md) * [FmUsersPerItemRecommender](en/pipeline/recommendation/FmUsersPerItemRecommender.md) * [ItemCfItemsPerUserRecommender](en/pipeline/recommendation/ItemCfItemsPerUserRecommender.md) * [ItemCfRateRecommender](en/pipeline/recommendation/ItemCfRateRecommender.md) * [ItemCfSimilarItemsRecommender](en/pipeline/recommendation/ItemCfSimilarItemsRecommender.md) * [ItemCfUsersPerItemRecommender](en/pipeline/recommendation/ItemCfUsersPerItemRecommender.md) * [UserCfItemsPerUserRecommender](en/pipeline/recommendation/UserCfItemsPerUserRecommender.md) * [UserCfRateRecommender](en/pipeline/recommendation/UserCfRateRecommender.md) * [UserCfSimilarUsersRecommender](en/pipeline/recommendation/UserCfSimilarUsersRecommender.md) * [UserCfUsersPerItemRecommender](en/pipeline/recommendation/UserCfUsersPerItemRecommender.md) ### Model Selection and Tuning * [GridSearchCV](en/pipeline/tuning/GridSearchCV.md) * [GridSearchCVModel](en/pipeline/tuning/GridSearchCVModel.md) * [GridSearchTVSplit](en/pipeline/tuning/GridSearchTVSplit.md) * [GridSearchTVSplitModel](en/pipeline/tuning/GridSearchTVSplitModel.md) * [RandomSearchCV](en/pipeline/tuning/RandomSearchCV.md) * [RandomSearchCVModel](en/pipeline/tuning/RandomSearchCVModel.md) * [RandomSearchTVSplit](en/pipeline/tuning/RandomSearchTVSplit.md) * [RandomSearchTVSplitModel](en/pipeline/tuning/RandomSearchTVSplitModel.md) ### Similarity * [StringApproxNearestNeighbor](en/pipeline/similarity/StringApproxNearestNeighbor.md) * [StringApproxNearestNeighborModel](en/pipeline/similarity/StringApproxNearestNeighborModel.md) * [StringNearestNeighbor](en/pipeline/similarity/StringNearestNeighbor.md) * [StringNearestNeighborModel](en/pipeline/similarity/StringNearestNeighborModel.md) * [TextApproxNearestNeighbor](en/pipeline/similarity/TextApproxNearestNeighbor.md) * [TextApproxNearestNeighborModel](en/pipeline/similarity/TextApproxNearestNeighborModel.md) * [TextNearestNeighbor](en/pipeline/similarity/TextNearestNeighbor.md) * [TextNearestNeighborModel](en/pipeline/similarity/TextNearestNeighborModel.md) * [VectorApproxNearestNeighbor](en/pipeline/similarity/VectorApproxNearestNeighbor.md) * [VectorApproxNearestNeighborModel](en/pipeline/similarity/VectorApproxNearestNeighborModel.md) * [VectorNearestNeighbor](en/pipeline/similarity/VectorNearestNeighbor.md) * [VectorNearestNeighborModel](en/pipeline/similarity/VectorNearestNeighborModel.md)
markdown
Our goal is to provide high quality products at competitive prices, and top-notch service to customers around the world. We are ISO9001, CE, and GS certified and strictly adhere to their quality specifications for Expressing Breast Milk Electric Pump, Integrated Breast Pump For Mom , Power Pumping With Manual Pump , Trumom Manual Breast Pump ,Integrated Silicone Breast Pump . Now we have extensive goods source as well as price tag is our advantage. Welcome to inquire about our products and solutions. The product will supply to all over the world, such as Europe, America, Australia,kazan, Morocco,Madrid, United Arab Emirates.If any product meed your demand, remember to feel free to contact us. We're sure your any inquiry or requirement will get prompt attention, high-quality merchandise, preferential prices and cheap freight. Sincerely welcome friends all over the world to call or come to visit, to discuss cooperation for a better future!
english
<filename>bower.json { "name": "bower-opentimestamps", "version": "1.0.2", "description": "Javascript OpenTimestamps library for web.", "license": "LGPL", "main": "./bower-opentimestamps.js", "ignore": ["node_modules/", ".gitignore", "bower.json", "README.md", "index.js", "gulpfile.js", "package.json"], "dependencies": { } }
json
<gh_stars>0 [ { "title": "Nba predictions", "text": "Phenix Suns are going to win it all against the Milwaukee bucks in the Nba finals, u heard it hear first ya'll!!!", "user_id": "1" }, { "title": "Warzone best Meta load out", "text": "Best meta Weapon Load out to run on season 4 warzone is Ar:Fara 83(Grue suppressor| 19.5 liberator|axial arms 3x|spetnaz grip|spetsnaz 60 rnd) Smg:cw MP5(Agency Suppressor|tiger team spotlight|serpent grip|raider stock|stanag 50 round drum) trust my daddy, u will reck!!!", "user_id": "2" }, { "title": "Top 5 Movies of all time", "text": "my personal top 5 movies of all time, personally i think these movies are the best. lets start at the top. 5.the Wailing 4.blade runner(1982) 3.Parasite 2.MOONLIGHT 1.The GodFather", "user_id": "3" }, { "title": "Adult Swim", "text": "Anyone remember watching Late night anime section in the early 2000s, Cowboy Bebop, Mobile suite gundom and etc.", "user_id": "4" }, { "title": "Water", "text": "Is Water Wet", "user_id": "5" }, { "title": "Whats one conspiracy..", "text": "Do you think is true", "user_id": "6" } ]
json
// /******************************************************** // * * // * Copyright (C) Microsoft. All rights reserved. * // * * // ********************************************************/ // The module 'assert' provides assertion methods from node import * as assert from "assert"; import * as sarif from "sarif"; import { Range } from "vscode"; import { LocationFactory } from "../LocationFactory"; suite("parseRange", () => { test("Undefined range", async () => { const region = undefined; const expected = new Range(0, 0, 0, 1); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, false); }); test("Undefined lines and chars", async () => { const region = {} as sarif.Region; const expected = new Range(0, 0, 0, 1); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, false); }); test("Basic region", async () => { const region = { startLine: 1, startColumn: 2, endLine: 1, endColumn: 4 } as sarif.Region; const expected = new Range(0, 1, 0, 3); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, false); }); test("Basic using charLength", async () => { const region = { charLength: 2, charOffset: 2} as sarif.Region; const expected = new Range(0, 2, 0, 4); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, false); }); test("Different lines", async () => { const region = { startLine: 1, startColumn: 2, endLine: 2, endColumn: 1 } as sarif.Region; const expected = new Range(0, 1, 1, 0); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, false); }); test("No end values", async () => { const region = { startLine: 1, startColumn: 2 } as sarif.Region; const expected = new Range(0, 1, 1, 0); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, true); }); test("No end column", async () => { const region = { startLine: 1, startColumn: 2, endLine: 1 } as sarif.Region; const expected = new Range(0, 1, 1, 0); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, true); }); test("No end line", async () => { const region = { startLine: 1, startColumn: 2, endColumn: 4 } as sarif.Region; const expected = new Range(0, 1, 0, 3); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, false); }); test("only start line", async () => { const region = { startLine: 1 } as sarif.Region; const expected = new Range(0, 0, 1, 0); // @ts-ignore parseRange is a private static method on LocationFactory const result: { range: Range, endOfLine: boolean } = await LocationFactory.parseRange(region); assert.deepEqual(result.range, expected); assert.equal(result.endOfLine, true); }); });
typescript
#!/usr/bin/env python # filename: pair.py # # Copyright (c) 2015 <NAME> # License: The MIT license (http://opensource.org/licenses/MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, merge, publish, distribute, # sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all copies or # substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING # BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # import copy import sys import traceback from Bio.Seq import Seq from Bio.Alphabet import generic_dna from abtools import germlines from abtools.alignment import global_alignment from abtools.sequence import Sequence class Pair(object): ''' Holds a pair of sequences, corresponding to HC and LC of a single mAb. Input is a list of dicts, with each dict containing sequence information from a single chain, formatted as would be returned from a query on a MongoDB database containing AbStar output. ''' def __init__(self, seqs, name=None, h_selection_func=None, l_selection_func=None): self._seqs = seqs self._heavy = None self._light = None self._heavies = [s for s in seqs if s['chain'] == 'heavy'] self._lights = [s for s in seqs if s['chain'] in ['kappa', 'lambda']] self._name = name self._fasta = None self._sample = None self._subject = None self._group = None self._experiment = None self._timepoint = None self._is_pair = None self._vrc01_like = None self._lineage = None self._select_heavy = h_selection_func self._select_light = l_selection_func def __eq__(self, other): return (self.heavy, self.light) == (other.heavy, other.light) def __ne__(self, other): return not self == other def __hash(self): return hash((self.heavy, self.light)) @property def heavy(self): if self._heavy is None: # self._heavies = [s for s in self._seqs if s['chain'] == 'heavy'] if len(self._heavies) > 0: if self._select_heavy is not None: self._heavy = Sequence(self._select_heavy(self._heavies)) else: self._heavy = Sequence(self._heavies[0]) else: self._heavy = None return self._heavy @heavy.setter def heavy(self, heavy): self._heavy = heavy @property def light(self): if self._light is None: # self._lights = [s for s in self._seqs if s['chain'] in ['kappa', 'lambda']] if len(self._lights) > 0: if self._select_light is not None: self._light = Sequence(self._select_light(self._lights)) else: self._light = Sequence(self._lights[0]) else: self._light = None return self._light @light.setter def light(self, light): self._light = light @property def is_pair(self): if all([self.heavy is not None, self.light is not None]): return True return False @property def lineage(self): if self._lineage is None: self._lineage = self.heavy['clonify']['id'] return self._lineage @property def vrc01_like(self): if self._vrc01_like is None: if any([self.heavy is None, self.light is None]): self._vrc01_like = False else: self._vrc01_like = all([self.heavy['v_gene']['gene'] == 'IGHV1-2', self.light['cdr3_len'] == 5]) return self._vrc01_like @property def name(self): if self._name is None: if self.heavy is not None: self._name = self.heavy['seq_id'] elif self.light is not None: self._name = self.light['seq_id'] return self._name @name.setter def name(self, name): self._name = name @property def sample(self): if self._sample is None: slist = [] if self.experiment is not None: slist.append(str(self.experiment)) if self.group is not None: slist.append(str(self.group)) if self.subject is not None: slist.append(str(self.subject)) if self.timepoint is not None: slist.append(str(self.timepoint)) if slist: self._sample = '|'.join(slist) return self._sample @property def subject(self): if self._subject is None: if self.heavy is not None and 'subject' in list(self.heavy.keys()): self._subject = self.heavy['subject'] elif self.light is not None and 'subject' in list(self.light.keys()): self._subject = self.light['subject'] return self._subject @subject.setter def subject(self, subject): self._subject = subject @property def group(self): if self._group is None: if self.heavy is not None and 'group' in list(self.heavy.keys()): self._group = self.heavy['group'] elif self.light is not None and 'group' in list(self.light.keys()): self._group = self.light['group'] return self._group @group.setter def group(self, group): self._group = group @property def experiment(self): if self._experiment is None: if self.heavy is not None and 'experiment' in list(self.heavy.keys()): self._experiment = self.heavy['experiment'] elif self.light is not None and 'experiment' in list(self.light.keys()): self._experiment = self.light['experiment'] return self._experiment @experiment.setter def experiment(self, experiment): self._experiment = experiment @property def timepoint(self): if self._timepoint is None: if self.heavy is not None and 'timepoint' in list(self.heavy.keys()): self._timepoint = self.heavy['timepoint'] elif self.light is not None and 'timepoint' in list(self.light.keys()): self._timepoint = self.light['timepoint'] return self._timepoint @timepoint.setter def timepoint(self, timepoint): self._timepoint = timepoint def refine(self, heavy=True, light=True, species='human'): for seq in [s for s in [self.heavy, self.light] if s is not None]: try: self.remove_ambigs(seq) self._refine_v(seq, species) self._refine_j(seq, species) self._retranslate(seq) except: print('REFINEMENT FAILED: {}, {} chain'.format(s['seq_id'], s['chain'])) print(traceback.format_exception_only(sys.exc_info()[0], sys.exc_info()[1])) @staticmethod def remove_ambigs(seq): # fix Ns in the nucleotide sequence vdj = '' for s, g in zip(seq['vdj_nt'], seq['vdj_germ_nt']): if s.upper() == 'N': vdj += g else: vdj += s seq['vdj_nt'] = vdj # fix Xs in the amino acid sequence vdj = '' for s, g in zip(seq['vdj_aa'], seq['vdj_germ_aa']): if s.upper() == 'X': vdj += g else: vdj += s seq['vdj_aa'] = vdj @staticmethod def _refine_v(seq, species): ''' Completes the 5' end of a a truncated sequence with germline nucleotides. Input is a MongoDB dict (seq) and the species. ''' vgerm = germlines.get_germline(seq['v_gene']['full'], species) aln = global_alignment(seq['vdj_nt'], vgerm) prepend = '' for s, g in zip(aln.aligned_query, aln.aligned_target): if s != '-': break else: prepend += g seq['vdj_nt'] = prepend + seq['vdj_nt'] @staticmethod def _refine_j(seq, species): ''' Completes the 3' end of a a truncated sequence with germline nucleotides. Input is a MongoDB dict (seq) and the species. ''' jgerm = germlines.get_germline(seq['j_gene']['full'], species) aln = global_alignment(seq['vdj_nt'], jgerm) append = '' for s, g in zip(aln.aligned_query[::-1], aln.aligned_target[::-1]): if s != '-': break else: append += g seq['vdj_nt'] = seq['vdj_nt'] + append[::-1] @staticmethod def _retranslate(seq): ''' Retranslates a nucleotide sequence following refinement. Input is a Pair sequence (basically a dict of MongoDB output). ''' if len(seq['vdj_nt']) % 3 != 0: trunc = len(seq['vdj_nt']) % 3 seq['vdj_nt'] = seq['vdj_nt'][:-trunc] seq['vdj_aa'] = Seq(seq['vdj_nt'], generic_dna).translate() def fasta(self, key='vdj_nt', append_chain=True): ''' Returns the sequence pair as a fasta string. If the Pair object contains both heavy and light chain sequences, both will be returned as a single string. By default, the fasta string contains the 'vdj_nt' sequence for each chain. To change, use the <key> option to select an alternate sequence. By default, the chain (heavy or light) will be appended to the sequence name: >MySequence_heavy To just use the pair name (which will result in duplicate sequence names for Pair objects with both heavy and light chains), set <append_chain> to False. ''' fastas = [] for s, chain in [(self.heavy, 'heavy'), (self.light, 'light')]: if s is not None: c = '_{}'.format(chain) if append_chain else '' fastas.append('>{}{}\n{}'.format(s['seq_id'], c, s[key])) return '\n'.join(fastas) def get_pairs(db, collection, experiment=None, subject=None, group=None, name='seq_id', delim=None, delim_occurance=1, pairs_only=False): ''' Gets sequences and assigns them to the appropriate mAb pair, based on the sequence name. Inputs: ::db:: is a pymongo database connection object ::collection:: is the collection name, as a string If ::subject:: is provided, only sequences with a 'subject' field matching ::subject:: will be included. ::subject:: can be either a single subject (as a string) or an iterable (list or tuple) of subject strings. If ::group:: is provided, only sequences with a 'group' field matching ::group:: will be included. ::group:: can be either a single group (as a string) or an iterable (list or tuple) of group strings. ::name:: is the dict key of the field to be used to group the sequences into pairs. Default is 'seq_id' ::delim:: is an optional delimiter used to truncate the contents of the ::name:: field. Default is None, which results in no name truncation. ::delim_occurance:: is the occurance of the delimiter at which to trim. Trimming is performed as delim.join(name.split(delim)[:delim_occurance]), so setting delim_occurance to -1 will trucate after the last occurance of delim. Default is 1. ::pairs_only:: setting to True results in only truly paired sequences (pair.is_pair == True) will be returned. Default is False. Returns a list of Pair objects, one for each mAb pair. ''' match = {} if subject is not None: if type(subject) in (list, tuple): match['subject'] = {'$in': subject} elif type(subject) in (str, str): match['subject'] = subject if group is not None: if type(group) in (list, tuple): match['group'] = {'$in': group} elif type(group) in (str, str): match['group'] = group if experiment is not None: if type(experiment) in (list, tuple): match['experiment'] = {'$in': experiment} elif type(experiment) in (str, str): match['experiment'] = experiment seqs = list(db[collection].find(match)) return assign_pairs(seqs, name=name, delim=delim, delim_occurance=delim_occurance, pairs_only=pairs_only) def assign_pairs(seqs, name='seq_id', delim=None, delim_occurance=1, pairs_only=False): ''' Assigns sequences to the appropriate mAb pair, based on the sequence name. Inputs: ::seqs:: is a list of dicts, of the format returned by querying a MongoDB containing Abstar output. ::name:: is the dict key of the field to be used to group the sequences into pairs. Default is 'seq_id' ::delim:: is an optional delimiter used to truncate the contents of the ::name:: field. Default is None, which results in no name truncation. ::delim_occurance:: is the occurance of the delimiter at which to trim. Trimming is performed as delim.join(name.split(delim)[:delim_occurance]), so setting delim_occurance to -1 will trucate after the last occurance of delim. Default is 1. ::pairs_only:: setting to True results in only truly paired sequences (pair.is_pair == True) will be returned. Default is False. Returns a list of Pair objects, one for each mAb pair. ''' pdict = {} for s in seqs: if delim is not None: pname = delim.join(s[name].split(delim)[:delim_occurance]) else: pname = s[name] if pname not in pdict: pdict[pname] = [s, ] else: pdict[pname].append(s) pairs = [Pair(pdict[n], name=n) for n in list(pdict.keys())] if pairs_only: pairs = [p for p in pairs if p.is_pair] return pairs def deduplicate(pairs, aa=False, ignore_primer_regions=False): ''' Removes duplicate sequences from a list of Pair objects. If a Pair has heavy and light chains, both chains must identically match heavy and light chains from another Pair to be considered a duplicate. If a Pair has only a single chain, identical matches to that chain will cause the single chain Pair to be considered a duplicate, even if the comparison Pair has both chains. Note that identical sequences are identified by simple string comparison, so sequences of different length that are identical over the entirety of the shorter sequence are not considered duplicates. By default, comparison is made on the nucleotide sequence. To use the amino acid sequence instead, set aa=True. ''' nr_pairs = [] just_pairs = [p for p in pairs if p.is_pair] single_chains = [p for p in pairs if not p.is_pair] _pairs = just_pairs + single_chains for p in _pairs: duplicates = [] for nr in nr_pairs: identical = True vdj = 'vdj_aa' if aa else 'vdj_nt' offset = 4 if aa else 12 if p.heavy is not None: if nr.heavy is None: identical = False else: heavy = p.heavy[vdj][offset:-offset] if ignore_primer_regions else p.heavy[vdj] nr_heavy = nr.heavy[vdj][offset:-offset] if ignore_primer_regions else nr.heavy[vdj] if heavy != nr_heavy: identical = False if p.light is not None: if nr.light is None: identical = False else: light = p.light[vdj][offset:-offset] if ignore_primer_regions else p.light[vdj] nr_light = nr.light[vdj][offset:-offset] if ignore_primer_regions else nr.light[vdj] if light != nr_light: identical = False duplicates.append(identical) if any(duplicates): continue else: nr_pairs.append(p) return nr_pairs def refine(pairs, heavy=True, light=True, species='human'): refined_pairs = copy.deepcopy(pairs) for p in refined_pairs: p.refine(heavy, light, species) return refined_pairs
python
<reponame>FrederickOberg/frederickoberg.github.io<gh_stars>10-100 { "@metadata": { "authors": [ "<NAME>" ] }, "scribunto-lua-error": "Lua-Fehler: $2" }
json
<reponame>flexiant/krane<gh_stars>1-10 package testdata import ( "github.com/flexiant/concerto/api/types" "time" ) // GetLicenseeReportsData loads test data func GetLicenseeReportsData() *[]types.LicenseeReport { start, _ := time.Parse("2016-01-01T00:00:00.000Z", "2016-01-01T00:00:00.000Z") end, _ := time.Parse("2016-02-01T00:00:00.000Z", "2016-02-01T00:00:00.000Z") testLicenseeReports := []types.LicenseeReport{ { Id: "fakeID00", Year: 2016, Month: 1, StartTime: start, EndTime: end, ServerSeconds: 9805083.213000001, Closed: true, Lines: []types.Lines{}, // Lines: []types.Lines{ // { // ID: "fakeID0", // CommissionedAt: start, // DecommissionedAt: end, // InstanceID: "fakeInstanceID0", // InstanceName: "fakeInstanceName0", // InstanceFQDN: "fakeInstanceFQDN0", // Consumption: 1024, // }, // { // ID: "fakeID1", // CommissionedAt: start, // DecommissionedAt: end, // InstanceID: "fakeInstanceID1", // InstanceName: "fakeInstanceName1", // InstanceFQDN: "fakeInstanceFQDN1", // Consumption: 2048, // }, // }, }, { Id: "fakeID01", Year: 2016, Month: 1, StartTime: start, EndTime: end, ServerSeconds: 42866259.27299995, Closed: false, Lines: []types.Lines{}, }, } return &testLicenseeReports }
go
<filename>data/node/3667302194/details.json {"type":"Feature","id":"node/3667302194","properties":{"amenity":"vending_machine","vending":"potatoes;eggs","id":"node/3667302194"},"geometry":{"type":"Point","coordinates":[4.9680292,52.051392]}}
json
{ "name": "vscode-git-temporarily-ignore", "displayName": "Git Temporarily Ignore for VS Code", "description": "Temporarily ignore changes from Git", "version": "0.0.1", "publisher": "homeslicesolutions", "engines": { "vscode": "^1.20.0" }, "categories": [ "Other" ], "license": "MIT", "activationEvents": [ "onView:gitTempIgnore", "onCommand:gitTempIgnore.sayHello" ], "main": "./out/extension", "contributes": { "views": { "explorer": [ { "id": "gitTempIgnore", "name": "Temporarily Ignored files from Git" } ] }, "commands": [ { "command": "gitTempIgnore.stopTracking", "title": "Temporarily ignore changes from Git" }, { "command": "gitTempIgnore.restoreTracking", "title": "Restore Git tracking changes" } ], "menus": { "explorer/context": [ { "command": "gitTempIgnore.stopTracking", "when": "!explorerResourceIsRoot && !explorerResourceIsFolder", "group": "8_gitTempIgnore@1" }, { "command": "gitTempIgnore.restoreTracking", "when": "!explorerResourceIsRoot && !explorerResourceIsFolder", "group": "8_gitTempIgnore@2" } ] } }, "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "postinstall": "node ./node_modules/vscode/bin/install", "test": "npm run compile && node ./node_modules/vscode/bin/test", "preversion": "npm run test", "postversion": "git push && git push --tags" }, "devDependencies": { "typescript": "^2.6.1", "vscode": "^1.1.6", "tslint": "^5.8.0", "@types/node": "^7.0.43", "@types/mocha": "^2.2.42" } }
json
<filename>tests/test_warnings.py import pytest from fastaudio.augment.spectrogram import ( CropTime, Delta, MaskFreq, MaskTime, SGRoll, TfmResize ) from fastaudio.util import test_audio_tensor def invoke_class(cls, **args): audio = test_audio_tensor() with pytest.warns(Warning): cls(**args)(audio) def test_show_warning_with_tfm_on_sig(): """ When we invoke a transform intended for a spectrogram on something that is most likely a signal, we show a warning. Check Issue #17 """ transforms = [CropTime, Delta, MaskFreq, MaskTime, SGRoll, TfmResize] for t in transforms: # Some of the transforms require init arguments if t == CropTime: invoke_class(t, duration=1) elif t == TfmResize: invoke_class(t, size=2) else: invoke_class(t)
python
<reponame>ckemmler/sekund-plugin-react<filename>src/ui/icons.ts import { addIcon } from "obsidian"; export const icons: Record<string, string> = { "sekund-icon": `<svg version="1.1" id="Calque_1" x="0px" y="0px" viewBox="0 0 600 600" style="enable-background:new 0 0 600 600;" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> .st0{fill: currentColor;} .st1{fill: rgba(0, 0, 0, 0);} </style> <path d="M 600 300 C 600 465.685 465.685 600 300 600 C 134.315 600 0 465.685 0 300 C 0 134.315 134.315 0 300 0 C 465.685 0 600 134.315 600 300 Z M 181.39 201.53 C 126.63 201.53 82.24 244.92 82.24 300.68 C 82.24 369.87 140.11 400.89 173.13 400.89 C 165.91 439.16 148.33 472.23 101.88 513.56 C 223.78 480.49 284.71 391.66 284.71 306.94 C 284.7 239.76 236.15 201.53 181.39 201.53 Z M 416.28 201.53 C 361.52 201.53 317.13 244.92 317.13 300.68 C 317.13 369.87 375 400.89 408.02 400.89 C 400.8 439.16 383.22 472.23 336.77 513.56 C 458.67 480.49 519.6 391.66 519.6 306.94 C 519.59 239.76 471.04 201.53 416.28 201.53 Z" class="st0"/> </svg>`, "sekund-note": `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> <path d="M2 5a2 2 0 012-2h7a2 2 0 012 2v4a2 2 0 01-2 2H9l-3 3v-3H4a2 2 0 01-2-2V5z" /> <path d="M15 7v2a4 4 0 01-4 4H9.828l-1.766 1.767c.28.149.599.233.938.233h2l3 3v-3h2a2 2 0 002-2V9a2 2 0 00-2-2h-1z" /> </svg> `, "sekund-home": `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> <path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z" /> </svg>`, "sekund-peoples": `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> <path d="M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z" /> </svg>`, "sekund-groups": `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> <path d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z" /> </svg>`, }; export const addIcons = (): void => { Object.keys(icons).forEach((key) => { addIcon(key, icons[key]); }); };
typescript
import os import unittest from aruco import ArucoDetector class TestArucoDetectionBlue(unittest.TestCase): ar = ArucoDetector() BLUE = 13 def test_blue(self): result = self.ar.read_image(os.path.abspath("./datasets/blue.jpg")) self.assertEqual(self.BLUE, result) def test_blue_tilted_r(self): result = self.ar.read_image(os.path.abspath("./datasets/blue-tilted-r.jpg")) self.assertEqual(self.BLUE, result) def test_blue_reverse(self): result = self.ar.read_image(os.path.abspath("./datasets/blue-reverse.jpg")) self.assertEqual(self.BLUE, result) def test_blue_tilted_l(self): result = self.ar.read_image(os.path.abspath("./datasets/blue-tilted-l.jpg")) self.assertEqual(self.BLUE, result) if __name__ == '__main__': unittest.main(verbosity=3)
python
<reponame>patil215/v8 function main() { const v2 = new Float64Array(26421); let v5 = 0; const v6 = v5 + 1; v5 = v6; } %NeverOptimizeFunction(main); main();
javascript
// Libraries import * as Discord from "discord.js"; import * as MySQL from "mysql"; // Dependencies import * as devconfig from "../../config/devconfig"; import * as helper from "../helper_functions" // Configs import bot_config from "../../config/config.json"; import private_config from "../../config/private_config.json"; // Other events import * as mention_event from "./mention"; /** * The main function that will be invoked upon the event * @param client The discord client * @param args All the remaining arguments */ export const run: devconfig.event_function = async (client: Discord.Client, connection: MySQL.Connection, storage: devconfig.bot_storage, ...args: any): Promise<void> => { // Args const message: Discord.Message = args[0]; // If the message starts with a mention, run mention event if(message.content.startsWith(`<@!${client?.user?.id}>`)) return (async (): Promise<void> => { mention_event.run(client, connection, storage, message); })(); // Settings const prefix: string = await helper.get_prefix(message?.guild?.id, storage.settings); // If the message does not start with a prefix, break out of this command if(!message.content.startsWith(prefix)) return; const parts: string[] = message.content.slice(prefix.length).split(' '); const command_args: string[] = parts.slice(1); const command: string = parts[0]; // Find the necessary command and run it. storage.commands.forEach((cmd: devconfig.command, names: string[]): void => { if(names.includes(command)) cmd.run(client, message, connection, storage, command_args); }); } /** * The event's config. */ export const config: devconfig.event_config = { name: "message", noload: false }
typescript
{"localities": ["Louisville, KY", "So Baptist Theo Sem, KY"], "state": "KY", "postal_code": "40280", "locality": "Louisville, KY", "lat": 38.247636, "region": {"fips": "21", "abbr": "KY", "name": "Kentucky"}, "city": "Louisville", "type": "UNIQUE", "lng": -85.688309, "counties": [{"fips": "111", "name": "Jefferson County"}]}
json
The five-member sub-committee, constituted by the Supreme Court-appointed Supervisory Panel, inspected the Mullaperiyar dam on Tuesday as the level touched 141. 4 feet. With the completion of repairs in time, Tamil Nadu Public Works Department engineers operated all 13 shutters that were lowered as per a Supreme Court directive to increase the level to 142 feet from 136 feet. Committee chairman and Central Water Commission Executive Engineer Umberji Harish Girish inspected the operation of all 13 shutters and checked for leakage. Having satisfied himself with the repairs, he signed the register, declaring that the shutters were fit to be operated in an emergency. Earlier, the team inspected the main dam and the baby dam and checked measurements, including the water level, seepage and water pressure. It convened a meeting at Thekkady in the evening. Committee members George Daniel, N. S. Praseed and R. Soundaram and Tamil Nadu member A. Madhavan accompanied the chairman. During its last visit to the dam, Kerala wanted the panel to recommend scaling down the level to 136 feet as two shutters were not functioning properly. However, the Tamil Nadu PWD team ensured that the shutters worked normally. With sudden rains in the catchments, officials hoped that the flow into the dam would go up further, taking the level to 142 feet on Wednesday.
english
from data_reader.reader import CsvReader from util import * import numpy as np import matplotlib.pyplot as plt class LogisticRegression(object): def __init__(self, learning_rate=0.01, epochs=50): self.__epochs= epochs self.__learning_rate = learning_rate def fit(self, X, y): self.w_ = np.zeros(1 + X.shape[1]) self.cost_ = [] for i in range(self.__epochs): # 1- Calculate the net input W^T * x z = self.__net_input(X) # 2- Get the activation using Sigmoid function h = self.__activation(z) # 3- Calculate the gradient temp = X.T.dot(y - h) # 4- Update the weights and bias using the gradient and learning rate self.w_[1:] += self.__learning_rate * temp self.w_[0] += self.__learning_rate * sum(temp) # 5- Uncomment the cost collecting line self.cost_.append(self.__logit_cost(y, self.__activation(z))) def __logit_cost(self, y, y_val): logit = -y.dot(np.log(y_val)) - ((1 - y).dot(np.log(1 - y_val))) return logit def __sigmoid(self, z): return 1.0 / (1.0 + np.exp(-z)) def __net_input(self, X): return np.dot(X, self.w_[1:]) + self.w_[0] def __activation(self, X): return self.__sigmoid(X) def predict(self, X): # 1- Calculate the net input W^T * x z = self.__net_input(X) # 2- Return the activated values (0 or 1 classes) h = self.__activation(z) return np.where(self.__activation(z) >= 0.5, 1, 0) reader = CsvReader("./data/Iris.csv") iris_features, iris_labels = reader.get_iris_data() ignore_verginica = [i for i, v in enumerate(iris_labels) if v == 'Iris-virginica'] iris_features = [v for i, v in enumerate(iris_features) if i not in ignore_verginica] iris_labels = [v for i, v in enumerate(iris_labels) if i not in ignore_verginica] print(len(iris_features)) print(len(iris_labels)) iris_features, iris_labels = shuffle(iris_features, iris_labels) iris_labels = to_onehot(iris_labels) iris_labels = list(map(lambda v: v.index(max(v)), iris_labels)) train_x, train_y, test_x, test_y = iris_features[0:89], iris_labels[0:89], iris_features[89:], iris_labels[89:] train_x, train_y, test_x, test_y = np.asarray(train_x), np.asarray(train_y), np.asarray(test_x), np.asarray(test_y) train_x, means, stds = standardize(train_x) test_x = standardize(test_x, means, stds) lr = LogisticRegression(learning_rate=0.1, epochs=50) lr.fit(train_x, train_y) plt.plot(range(1, len(lr.cost_) + 1), np.log10(lr.cost_)) plt.xlabel('Epochs') plt.ylabel('Cost') plt.title('Logistic Regression - Learning rate 0.1') plt.tight_layout() plt.show() predicted_test = lr.predict(test_x) print("Test Accuracy: " + str(((sum([predicted_test[i] == test_y[i] for i in range(0, len(predicted_test))]) / len(predicted_test)) * 100.0)) + "%")
python
package nl.hinttech.hsleiden.pi.util; import nl.hinttech.hsleiden.pi.beans.ContentDocument; import nl.hinttech.hsleiden.pi.beans.ImageGalleryDocument; import nl.hinttech.hsleiden.pi.beans.Minor; import nl.hinttech.hsleiden.pi.beans.MinutesDocument; import org.hippoecm.hst.content.beans.standard.HippoAsset; import org.hippoecm.hst.content.beans.standard.HippoBean; import org.hippoecm.hst.core.component.HstRequest; import org.hippoecm.hst.core.sitemenu.HstSiteMenu; import org.hippoecm.hst.core.sitemenu.HstSiteMenuItem; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings("unchecked") public class HSLeiden { public static final Logger log = LoggerFactory.getLogger(HSLeiden.class); public static final String NAMESPACE = "intranet"; public static final String NAMESPACE_PREFIX = NAMESPACE + ":"; public static final String TYPE_STUDENT = "student"; public static final String TYPE_EMPLOYEE = "medewerker"; public static final String TYPE_SERVICE = "service"; public static final String METADATA_LABEL_INFO_FOR = "Informatie voor"; public static final String METADATA_LABEL_TRAINING = "Opleiding"; public static final String METADATA_LABEL_DEPARTMENT = "Afdeling"; public static final String VALUELIST_DEPARTMENTS = "afdelingen"; public static final String VALUELIST_TRAININGS = "opleidingen"; public static final String PAGE_NOT_FOUND = "/pagenotfound"; public static final String KEY_HOME_WELCOME = "home.welkom"; public static final String PATH_WEBSITE_TEXTS_DOCUMENT = "admin/website-teksten-en-labels"; public static final String PATH_WEBSITE_SETTINGS_DOCUMENT = "admin/instellingen"; public static final String KEY_GOOGLE_ANALYTICS_ACCOUNTID = "google.analytics.accountid"; public static final String KEY_CMS_URL = "cms.url"; private static Class<? extends HippoBean>[] searchableClasses; private static Class<? extends HippoBean>[] browsableClasses; static { searchableClasses = new Class[5]; searchableClasses[0] = ContentDocument.class; searchableClasses[1] = MinutesDocument.class; searchableClasses[2] = ImageGalleryDocument.class; searchableClasses[3] = HippoAsset.class; searchableClasses[4] = Minor.class; browsableClasses = new Class[3]; browsableClasses[0] = ContentDocument.class; browsableClasses[1] = MinutesDocument.class; browsableClasses[2] = ImageGalleryDocument.class; } public static Class<? extends HippoBean>[] getSearchableClasses() { return searchableClasses; } public static Class<? extends HippoBean>[] getBrowsableClasses() { return browsableClasses; } public static void rememberActiveMenu(final HstRequest request) { request.getSession().setAttribute("activeMenu", getActiveMenu(request)); } public static HstSiteMenuItem getActiveMenu(final HstRequest request) { HstSiteMenu mainMenu = request.getRequestContext().getHstSiteMenus().getSiteMenu("main"); return mainMenu.getSelectSiteMenuItem(); } public static HstSiteMenuItem getRememberedActiveMenu(final HstRequest request) { return (HstSiteMenuItem) request.getSession().getAttribute("activeMenu"); } }
java
A 3-0 defeat against Sri Lanka in Sri Lanka, followed by a 2-1 defeat back home against South Africa, and now on the verge of whitewashing Pakistan in a three-match series: Australia’s journey in the past 6 months has been nothing but topsy-turvy. They will then tour India for four Tests, a series they are likely to lose given the form the No. 1 team has been in of late. But that is a different tale for a different day. At present, Australia are 9 wickets away from beating Pakistan 3-0. This and more facts, figures, anecdotes, tweets will be shared on this CricketCountry’s live cricket updates of the third and final Test at SCG. In this very Test, Younis Khan reached 1,000 runs against Australia. In this very Test, he scored his 34th hundred. In this very Test, he may as well become the first Pakistan player to score 10,000 runs, for he is 36 runs shy. Younis has had a terrific time in the Sydney Test. He remained unbeaten on 175, helping Pakistan post 315 after Australia had scored 538 for 8 declared in the first innings. His innings was studded with 17 fours and 3 sixes. However, other than Azhar Ali (71) and Younis, none of the batsmen posed threat for the home team. For Australia, Josh Hazlewood (4) and Nathan Lyon (3) took bulk of the wickets. David Warner continued his rampage in the second innings as well, scoring 55 off 27 — the fastest half-century for Australia. In the first innings he had scored a stunning 113 in the first session on Day One, bagging yet another record. Nonetheless, Matt Renshaw, who scored 184 in the first innings, did not come to bat, following concussions. He was hit twice on his head during the match, and had complained of headaches. Hence, Usman Khawaja opened with Warner and blasted 79 off 98. To make matters worse for Pakistan, Steven Smith added 59 off just 43, helping his team post a target of 465 for the fallible visitors. In the series opener Pakistan fell short by 39 runs in the pursuit of 490. They, however, started off scoring runs at a rate of over 3.5 thanks to Sharjeel Khan’s 38-ball 40. At the crease is Azhar (11) and night watchman Yasir Shah (3). With one more day’s play still to go, Australia will look to wrap up the remaining 9 wickets and end the series 3-0.
english
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { FunctionComponent } from 'react'; import { i18n } from '@kbn/i18n'; import { FIELD_TYPES, fieldValidators, UseField, Field } from '../../../../../../shared_imports'; import { TextEditor } from '../field_components'; import { EDITOR_PX_HEIGHT, FieldsConfig } from './shared'; import { FieldNameField } from './common_fields/field_name_field'; import { IgnoreMissingField } from './common_fields/ignore_missing_field'; import { TargetField } from './common_fields/target_field'; const { emptyField } = fieldValidators; const fieldsConfig: FieldsConfig = { /* Required fields config */ pattern: { type: FIELD_TYPES.TEXT, label: i18n.translate('xpack.ingestPipelines.pipelineEditor.gsubForm.patternFieldLabel', { defaultMessage: 'Pattern', }), deserializer: String, helpText: i18n.translate('xpack.ingestPipelines.pipelineEditor.gsubForm.patternFieldHelpText', { defaultMessage: 'Regular expression used to match substrings in the field.', }), validations: [ { validator: emptyField( i18n.translate('xpack.ingestPipelines.pipelineEditor.gsubForm.patternRequiredError', { defaultMessage: 'A value is required.', }) ), }, ], }, replacement: { type: FIELD_TYPES.TEXT, label: i18n.translate('xpack.ingestPipelines.pipelineEditor.gsubForm.replacementFieldLabel', { defaultMessage: 'Replacement', }), helpText: i18n.translate( 'xpack.ingestPipelines.pipelineEditor.gsubForm.replacementFieldHelpText', { defaultMessage: 'Replacement text for matches.' } ), validations: [ { validator: emptyField( i18n.translate('xpack.ingestPipelines.pipelineEditor.gsubForm.replacementRequiredError', { defaultMessage: 'A value is required.', }) ), }, ], }, }; export const Gsub: FunctionComponent = () => { return ( <> <FieldNameField helpText={i18n.translate( 'xpack.ingestPipelines.pipelineEditor.gsubForm.fieldNameHelpText', { defaultMessage: 'Field to search for matches.' } )} /> <UseField config={fieldsConfig.pattern} component={TextEditor} componentProps={{ editorProps: { height: EDITOR_PX_HEIGHT.extraSmall, options: { minimap: { enabled: false } }, }, }} path="fields.pattern" /> <UseField config={fieldsConfig.replacement} component={Field} path="fields.replacement" /> <TargetField /> <IgnoreMissingField /> </> ); };
typescript
{"name":"fluxify","assets":[{"files":["fluxify.js","fluxify.min.js"],"version":"0.2.1","mainfile":"fluxify.min.js"},{"files":["fluxify.js","fluxify.min.js"],"version":"0.2.2","mainfile":"fluxify.min.js"},{"files":["fluxify.js","fluxify.min.js"],"version":"0.2.3","mainfile":"fluxify.min.js"}],"versions":["0.2.3","0.2.2","0.2.1"],"zip":"fluxify.zip","mainfile":"fluxify.min.js","author":{"name":"<NAME>","url":"http://arqex.com"},"lastversion":"0.2.3","homepage":null,"description":"The simplest flux implementation","github":"git+https://github.com/arqex/fluxify.git"}
json
<filename>data/song_data/A/B/U/TRABUIN128F93022FF.json {"artist_id":"ARZDUML1187B9AD101","artist_latitude":null,"artist_location":"","artist_longitude":null,"artist_name":"SKOLD vs. KMFDM","duration":327.88853,"num_songs":1,"song_id":"SOJBVLG12AB0180412","title":"Alkohol","year":0}
json
[ { "areas": [], "enum": "V\u00edtor, Paulo e M\u00e1rcia s\u00e3o copropriet\u00e1rios, em regime de condom\u00ednio pro indiviso, de uma casa, sendo cada um deles titular de parte ideal representativa de um ter\u00e7o (1/3) da coisa comum. Todos usam esporadicamente a casa nos finais de semana. Certo dia, ao visitar a casa, M\u00e1rcia descobre um vazamento no encanamento de \u00e1gua. Sem perder tempo, contrata, em nome pr\u00f3prio, uma sociedade empreiteira para a realiza\u00e7\u00e3o da substitui\u00e7\u00e3o do cano danificado. Pelo servi\u00e7o, ficou ajustado contratualmente o pagamento de R$ 900,00 (novecentos reais).\n\n Tendo em vista os fatos expostos, assinale a afirmativa correta.", "filename": "2016-20.txt", "number": "39", "options": [ { "correct": null, "letter": "A", "text": "A empreiteira pode cobrar a remunera\u00e7\u00e3o ajustada contratualmente de qualquer um dos cond\u00f4minos." }, { "correct": true, "letter": "B", "text": "A empreiteira pode cobrar a remunera\u00e7\u00e3o ajustada contratualmente apenas de M\u00e1rcia, que, por sua vez, tem direito de regresso contra os demais cond\u00f4minos." }, { "correct": null, "letter": "C", "text": "A empreiteira n\u00e3o pode cobrar a remunera\u00e7\u00e3o contratualmente ajustada de M\u00e1rcia ou de qualquer outro cond\u00f4mino, uma vez que o servi\u00e7o foi contratado sem a pr\u00e9via aprova\u00e7\u00e3o da totalidade dos cond\u00f4minos." }, { "correct": null, "letter": "D", "text": "A empreiteira pode cobrar a remunera\u00e7\u00e3o ajustada contratualmente apenas de M\u00e1rcia, que dever\u00e1 suportar sozinha a despesa, sem direito de regresso contra os demais cond\u00f4minos, uma vez que contratou a empreiteira sem o pr\u00e9vio consentimento dos demais cond\u00f4minos." } ], "valid": true } ]
json
<reponame>elliot2extreme/FDA-My-Studies-Mobile-Application-System<gh_stars>0 /******************************************************************************* * Copyright © 2017-2019 Harvard Pilgrim Health Care Institute (HPHCI) and its Contributors. * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,including without limitation the rights to use, copy,modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial * portions of the Software. * * Funding Source: Food and Drug Administration (“Funding Agency”) effective 18 September 2014 as * Contract no. HHSF22320140030I/HHSF22301006T (the “Prime Contract”). * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. ******************************************************************************/ package com.hphc.mystudies.dto; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate.annotations.NamedQueries; import org.hibernate.annotations.NamedQuery; /** * Provides questionnaire details for study. * <ol> * <li>Frequency type of activity * <li>Study identifier * <li>Activity identifier * <li>Lifetime of questionnaire * <li>Version details * <ol> * * @author BTC * */ @Entity @Table(name = "questionnaires") @NamedQueries({ @NamedQuery(name = "questionnairesListByStudyId", query = "from QuestionnairesDto QDTO" + " where QDTO.studyId =:studyId"), @NamedQuery(name = "getQuestionnaireDetailsByCustomStudyIdAndIsLive", query = "from QuestionnairesDto QDTO" + " where QDTO.status=true and QDTO.customStudyId=:customStudyId and QDTO.live=:live"), @NamedQuery(name = "getQuestionnaireDetailsByCustomStudyId", query = "from QuestionnairesDto QDTO" + " where QDTO.status=true and QDTO.customStudyId=:customStudyId and (QDTO.live=:live OR QDTO.active=:active)" + " ORDER BY QDTO.createdDate DESC") }) public class QuestionnairesDto implements Serializable { /** * */ private static final long serialVersionUID = 9053445608384935386L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") private Integer id; @Column(name = "study_id") private Integer studyId; @Column(name = "frequency") private String frequency; @Column(name = "title") private String title; @Column(name = "study_lifetime_start") private String studyLifetimeStart; @Column(name = "study_lifetime_end") private String studyLifetimeEnd; @Column(name = "created_by") private Integer createdBy; @Column(name = "created_date") private String createdDate; @Column(name = "modified_by") private Integer modifiedBy; @Column(name = "modified_date") private String modifiedDate; @Column(name = "day_of_the_week") private String dayOfTheWeek; @Column(name = "repeat_questionnaire") private Integer repeatQuestionnaire; @Column(name = "short_title") private String shortTitle; @Column(name = "branching") private Boolean branching = false; @Column(name = "active") private Boolean active; @Column(name = "status") private Boolean status; @Column(name = "version") private Float version = 0f; @Column(name = "custom_study_id") private String customStudyId; @Column(name = "is_live") private Integer live = 0; @Column(name = "schedule_type") private String scheduleType = ""; @Column(name = "anchor_date_id") private Integer anchorDateId; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getStudyId() { return studyId; } public void setStudyId(Integer studyId) { this.studyId = studyId; } public String getFrequency() { return frequency; } public void setFrequency(String frequency) { this.frequency = frequency; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getStudyLifetimeStart() { return studyLifetimeStart; } public void setStudyLifetimeStart(String studyLifetimeStart) { this.studyLifetimeStart = studyLifetimeStart; } public String getStudyLifetimeEnd() { return studyLifetimeEnd; } public void setStudyLifetimeEnd(String studyLifetimeEnd) { this.studyLifetimeEnd = studyLifetimeEnd; } public Integer getCreatedBy() { return createdBy; } public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } public String getCreatedDate() { return createdDate; } public void setCreatedDate(String createdDate) { this.createdDate = createdDate; } public Integer getModifiedBy() { return modifiedBy; } public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } public String getModifiedDate() { return modifiedDate; } public void setModifiedDate(String modifiedDate) { this.modifiedDate = modifiedDate; } public String getDayOfTheWeek() { return dayOfTheWeek; } public void setDayOfTheWeek(String dayOfTheWeek) { this.dayOfTheWeek = dayOfTheWeek; } public Integer getRepeatQuestionnaire() { return repeatQuestionnaire; } public void setRepeatQuestionnaire(Integer repeatQuestionnaire) { this.repeatQuestionnaire = repeatQuestionnaire; } public String getShortTitle() { return shortTitle; } public void setShortTitle(String shortTitle) { this.shortTitle = shortTitle; } public Boolean getBranching() { return branching; } public void setBranching(Boolean branching) { this.branching = branching; } public Boolean getActive() { return active; } public void setActive(Boolean active) { this.active = active; } public Boolean getStatus() { return status; } public void setStatus(Boolean status) { this.status = status; } public Float getVersion() { return version; } public void setVersion(Float version) { this.version = version; } public String getCustomStudyId() { return customStudyId; } public void setCustomStudyId(String customStudyId) { this.customStudyId = customStudyId; } public Integer getLive() { return live; } public void setLive(Integer live) { this.live = live; } public String getScheduleType() { return scheduleType; } public void setScheduleType(String scheduleType) { this.scheduleType = scheduleType; } public Integer getAnchorDateId() { return anchorDateId; } public void setAnchorDateId(Integer anchorDateId) { this.anchorDateId = anchorDateId; } }
java
Islamabad: At least 64 people were killed, and dozens of others were injured in heavy monsoon rain-triggered flash floods and different rain-related incidents, during the last three days in different regions of Pakistan, said a report from the National Disaster Management Authority (NDMA) Monday. According to the report released by the NDMA, at least 19 children and nine women are among those who lost their lives in different rain-related incidents in areas ranging from the north to the south of the country. The country’s northwest Khyber Pakhtunkhwa province was the worst-hit region with 25 deaths followed by southern Sindh with 12 deaths and southwest Balochistan and eastern Punjab provinces which reported eight deaths each. At least 10 people died in the Gilgit-Baltistan region in the north of the country. The flash flooding destroyed four bridges, three in Balochistan and one in Khyber Pakhtunkhwa, disconnecting road links among hundreds of villages, said the report, adding that over 300 houses were also damaged or completely destroyed. Hundreds of soldiers of Pakistan army backed by helicopters had to rush to affected areas to assist the local rescue and relief services having inadequate resources and expertise to cope with the current emergency situation. “Pakistan Army troops (are) busy in relief and rescue efforts in various areas of Dadu, a district in Sindh, to help people affected by recent hill torrent and breach of flood protection bund of Nai Gaj Dam,” Pakistani army’s media wing the Inter-Services Public Relations (ISPR) said Sunday. “Army Engineer boats and Army medical teams are rescuing stranded people to safer places. Medical camp established and providing necessary medical care. Hot meals being served to affected people,” added the ISPR. Deputy Commissioner of Dadu Raja Shahzaman Khuhro told media that multiple breaches developed in the flood protection bund of Nai Gaj Dam on Saturday evening, which triggered flooding in nearby villages forcing thousands of locals to rush for their safety. “We fear that some people have lost lives in the floods. Local people have lost their livestock and the summer cotton crop,” said the deputy commissioner, claiming that all roads and communication networks in the district had been affected. The monsoon rail spells have also severely inundated major cities, including the southern port city of Karachi and eastern city Lahore, and severely disrupted daily life in the two business cities.
english
<filename>src/components/Rate/Rate.tsx import * as React from 'react'; import * as classNames from 'classnames'; import Icon from '../Icon'; import {getOtherProperties} from '../common/Utils'; import Ripple from '../Ripple'; import {RateProps, RateState} from './PropsType'; export default class Rate extends React.PureComponent<RateProps, RateState> { static defaultProps: RateProps = { allowHalf: false, count: 5, defaultValue: 0, readOnly: false, disableRipple: true, prefixCls: 'bm-Rate', }; constructor(props: RateProps) { super(props); let value = 0; if (props.defaultValue! > 0) { value = props.defaultValue!; } this.state = { value, }; } componentWillReceiveProps(nextProps: RateProps) { if ('value' in nextProps && this.props.value !== nextProps.value) { this.setState({ value: nextProps.value!, }); } } getRange(len: number, start: number = 0, step: number = 1) { const range: any = []; for (let i = start; i < len; i += step) { range.push(i); } return range; } isIn(value: number) { const ex = this.state.value - value; return ex > 0 && ex < 1; } handleClick(value: number, half: boolean, event: any) { event.stopPropagation(); const {allowHalf, onChange, readOnly}: any = this.props; let _value: any = 0; if (!readOnly) { _value = value + 1; if (half && allowHalf) { _value -= 0.5; } this.setState({ value: _value, }); if (onChange) { onChange(_value); } } } render() { const { allowHalf, className, template, count, disableRipple, prefixCls, ...other, } = this.props; const styleClass = classNames(prefixCls, className); const {value} = this.state; const otherProps = getOtherProperties(other, ['defaultValue', 'value', 'readOnly', 'onChange']); const component = template ? template : (<Icon icon="star"/>); const children = (v: number, i: number) => { const isActive = v < value; const halfClass = classNames( { [`${prefixCls}-active`]: isActive, }, `${prefixCls}-half`, ); const styles = { opacity: this.isIn(v) ? 1 : 0, }; const iconClass = classNames( { [`${prefixCls}-active`]: allowHalf ? (!this.isIn(v) && isActive) : isActive, }, ); return ( <div key={i} className={`${prefixCls}-item`}> {allowHalf ? (<div className={halfClass} style={styles} onClick={this.handleClick.bind(this, i, true)} > {component} </div>) : null} <div className={iconClass} onClick={this.handleClick.bind(this, i, false)} > {component} {!disableRipple ? ( <Ripple centerMode={true} hidden={false}/>) : null} </div> </div> ); }; return ( <div className={styleClass} {...otherProps}> { this.getRange(count!).map((v: any, i: number) => { return children(v, i); }) } </div> ); } }
typescript
It's been over a decade since Sourav Ganguly last played for India, but the love and admiration for him doesn't seem to have diminished. As a mentor, Ganguly is helping out youngsters in the Delhi Capitals camp during the ongoing IPL 2019. As 90s kids, we saw Ganguly and Ponting go up against each other. Now, we have them working together for Delhi Capitals. How has it been for you? It has been good. We have enjoyed it. The good thing is the team has done well so far and that's what we are here for. The players, the staff and the coaches are here to make them a successful unit. We still sledge in the dugout, but in a positive way. As captains, you nurtured youngsters like Sehwag, Zaheer, Yuvraj. Now you have Shaw, Iyer and Pant. How different were those guys from the current ones? They are no different. They are young, they have aspirations and they are exceptionally talented. So there's no difference. Can you predict the Fab-5 of the future? It's too early. I see now that Virat Kohli is the leader of the pack. To predict the Fab-5 of the future, I will need a little more time. Any bright talent that you have spotted in this IPL? Loads. (Rishabh) Pant, (Shubman) Gill, (Prithvi) Shaw, Riyan Parag as well. There's some exceptional talent. Indian cricket will always produce talent because of the keenness for the sport. How did you feel when Dhoni asked you to lead the side in your last ever Test. Did you expect it? It's a long time; it's been 10 years. I did not expect it. What makes Dhoni, the captain, so special? The ability to understand the opposition as well as his own players and allowing them to deliver. That is very important. Freedom is important and I think Dhoni provides that. On a scale of 1-10, how do you rate Captain Dhoni? Very high. You don't rate people like that (1,2,3,4. . . ), but he's been one of India's greatest captains. How difficult was it to speak to Rishabh Pant after he was not included in the World Cup squad? We spoke to him, we made him understand that these things will happen in life, in sport. It's not like he'll be picked in all the teams. I hope he plays many World Cups because he has exceptional talent. Ambati Rayudu or Vijay Shankar - whom will you go for? Both are good. The selectors have gone for Vijay Shankar. The debate is over there. We wish him all the luck. Somebody plays and someone misses out. I feel for Ambati Rayudu, but I think Vijay Shankar will do the job. He is a good cricketer, he can bowl in those conditions. He has earned his place in the squad. Do you think India have the right combination for the World Cup with three frontline pacers? Of course. They can always have the fourth one. They actually have four in Hardik Pandya. If anything happens, it's only an eight-hour flight. How do you see Kohli - the batsman and captain? Exceptional. His record for India is phenomenal. Don't judge him by his T20 captaincy; his captaincy for India has been terrific. Do you see a little Dada in Captain Kohli? He is better than Dada. Kohli is better than Dada. As a mentor, how difficult is to keep players like Trent Boult and Colin Munro motivated when they are not part of the playing XI? They are great teammates. They understand team atmosphere and situations, and are just fantastic. There's a lot of talk about wrist spinners currently. What makes them so effective in this era? They are good, they spin the ball. They have variations. Even Harbhajan is good, he has done marvellously for CSK. It's all about quality. It's not just about wrist spin, or a certain kind of finger spin. If you're good, you're good. That's what is important. Who is going to be India's X-factor at the World Cup? There are a lot of X-factors. There is Kohli, the best ODI batsman. There's Rohit Sharma and Shikhar Dhawan, two of the best ODI batsmen. There's Jasprit Bumrah and also the spinners. Mohammed Shami has been in terrific form in the IPL and has just got better in the last year. It is a cracking side. It's an absolutely fantastic cricket team and I wish them all the best for the World Cup. Your favourites and dark horses for the 2019 World Cup? India, and dark horses will be the West Indies. They are a dangerous side. Andre Russell or Hardik Pandya - who would you have in your side? Both. Give me both! Did you try facing Kagiso Rabada in the nets? I am 25 kmph slower at the moment. I can't face him in the nets. If you play again, would you have coach Dravid or player Dravid in your side? Player Dravid, any day. What is administrator Ganguly's biggest challenge? To create an atmosphere for players to get better, because the game is for the players. There have been a lot of umpiring errors recently. Do you think technology makes it bigger than it actually is? Umpires are human; everybody makes mistakes. You have to give them the benefit of the doubt at times. Do you see social media moulding a cricketer in this era? I don't think so. It's the cricket that is important. Tell us about your association with Advanced Hair Studio. I have been with them for 4-5 years. They have looked after my hair. They have maintained it and kept it healthy. They have their own ways of looking after it and it has been great. The CEO & MD, Middle East & Indian Sub Continent of Advanced Hair Studio, Mr Sanket Shah, said: "It is immensely motivating to see the pace at which the brand has grown in the last 10 years. I thank our ambassadors and supporters for their trust in the brand which has always driven us to perform better. We promise to continue our endeavour to completely eliminate hair-loss challenges through product excellence and differentiated experience".
english
<reponame>zjn000/car<filename>Public/statics/js/contract/contract.js /** * Created by shenls on 2017/1/20. */ window.onload = function(){ var pageList = $('.page'); if(pageList){ addGz(); } } //添加骑缝章图片 function addGz(){ var pageList = $('.page'), _length=pageList.length, _html = '<div class="page_gz"></div>', publicUrl = $('body').attr('data-url'); pageList.append(_html); var pageGz = $('.page_gz'); pageGz.css({ position:'absolute', top:'50%', marginTop:'-85px', right:'0', height:'170px', background:'url('+publicUrl+'/statics/images/gz.png)0 0 no-repeat', }) //如果页面是四张 if(_length==4){ pageGz.css({ width:'42.5px', backgroundSize:'400%' }) for (var i = 0; i < _length;i++){ pageGz[i].style.backgroundPositionX = '-'+i*42.5+'px'; } } //如果页面是三张 if(_length==3){ pageGz.css({ width:'56.67px', backgroundSize:'300%' }) for (var i = 0; i < _length;i++){ var n = i+1; pageGz[i].style.backgroundPositionX = '-'+i*56.67+'px'; } } }
javascript
<filename>src/main/webapp/tvr.css<gh_stars>10-100 html, body { height: 100%; margin: 0; padding: 0; } div#container { position: relative; height: auto !important; height: 100%; min-height: 100%; padding-bottom: 3em; } div#content { padding: 1em; } #mouse-tip { position: fixed; right: 1em; bottom: 1em; background-color: darkgrey; font-weight: bold; padding: 0 0.5em; } div#footer { width: 100%; position: absolute; bottom: 0; text-align: center; font-size: small; } div#footer p { padding: 1em; margin: 0; } span.rawData { font-weight: bold; padding-right: 5px; white-space: nowrap; } span.decodedData { white-space: pre; } span.composite-label { font-weight: bold; } .highlight { background-color: #00ffff; } .tag-highlight { background-color: #05ff09; } .length-highlight { background-color: #ffc606; } .indent { margin-left: 20px; vertical-align: top; } .bytes { font-family: monospace; font-size: small; } #display { margin-top: 1em; } #value_field { resize: both; display: inline-block; } .composite-chunked { font-weight: normal; display: inline; } .collapsed.composite-chunked { opacity: 0; height: 0; overflow: hidden; width: 0; display: inline-block; } .expanded.composite-chunked, .expanded.detail { -webkit-transition: opacity 0.5s ease-out; transition: opacity 0.5s ease-out; opacity: 1; max-height: 100% } .expander:hover { opacity: 0.5; cursor: pointer; } .collapsed.detail { opacity: 0; max-height: 0; overflow: hidden; } .detail { -webkit-transition: height 0.5s ease-out; transition: height 0.5s ease-out; } .popover { max-width: 500px; font-weight: normal; } #permalink { width: 480px !important; } [data-category="c-apdu"].apdu-label, [data-category="r-apdu"].apdu-label { font-size: 1.2em; } [data-category="c-apdu"].apdu-label:before, [data-category="r-apdu"].apdu-label:before, .fa { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding-right: 2px; } [data-category="c-apdu"].apdu-label:before { content: "\f1ec"; } [data-category="r-apdu"].apdu-label:before { content: "\f09d"; } .fa-link:before { content: "\f0c1"; } .fa-close:before { content: "\f00d"; } .decoded,.composite-decoded { width: -webkit-fit-content; width: -moz-fit-content; } [data-category="c-apdu"].decoded, [data-category="c-apdu"].composite-decoded { margin-top: 10px; } [data-category="parse-error"] { color: red; } [data-category="parse-warning"] { color: #ff8b03; } .long-background { margin-top: 10px; font-size: 0.9em; } span.tag-name { font-weight: bold; } #tag-background { position: relative; max-width: 50em; display: none; background-color: #d9edf7; padding: 0.5em; } #hide-tag-background { position: absolute; top: 0; right: 0; } [data-short]:not([data-short=""]) { cursor: pointer; } [data-short]:not([data-short=""]):hover { opacity: 0.6; } .mousey-mode .decoded.highlight,.mousey-mode .composite-decoded.highlight { background: linear-gradient(270deg, #1fecf7, #ffffff); background-size: 400% 400%; -webkit-animation: AnimationName 2s ease infinite; -moz-animation: AnimationName 2s ease infinite; animation: AnimationName 2s ease infinite; } .mousey-mode .bytes.highlight { -moz-animation: pulse-background 2s infinite alternate; -webkit-animation: pulse-background 2s infinite alternate; animation: pulse-background 2s infinite alternate; } @keyframes pulse-background { 0% {opacity: 0.6} 100% {opacity: 1} } @-webkit-keyframes pulse-background { 0% {opacity: 0.6} 100% {opacity: 1} } @-moz-keyframes pulse-background { 0% {opacity: 0.6} 100% {opacity: 1} } @-webkit-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @-moz-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
css
{ "family": "Cuprum", "variants": ["regular", "500", "600", "700", "italic", "500italic", "600italic", "700italic"], "subsets": ["cyrillic", "cyrillic-ext", "latin", "latin-ext", "vietnamese"], "version": "v14", "lastModified": "2021-01-30", "files": { "500": "http://fonts.gstatic.com/s/cuprum/v14/dg45_pLmvrkcOkBnKsOzXyGWTBcmg9f6ZjzSJjQjgnU.ttf", "600": "http://fonts.gstatic.com/s/cuprum/v14/dg45_pLmvrkcOkBnKsOzXyGWTBcmgzv9ZjzSJjQjgnU.ttf", "700": "http://fonts.gstatic.com/s/cuprum/v14/dg45_pLmvrkcOkBnKsOzXyGWTBcmgwL9ZjzSJjQjgnU.ttf", "regular": "http://fonts.gstatic.com/s/cuprum/v14/dg45_pLmvrkcOkBnKsOzXyGWTBcmg-X6ZjzSJjQjgnU.ttf", "italic": "http://fonts.gstatic.com/s/cuprum/v14/dg47_pLmvrkcOkBNI_FMh0j91rkhli25jn_YIhYmknUPEA.ttf", "500italic": "http://fonts.gstatic.com/s/cuprum/v14/dg47_pLmvrkcOkBNI_FMh0j91rkhli25vH_YIhYmknUPEA.ttf", "600italic": "http://fonts.gstatic.com/s/cuprum/v14/dg47_pLmvrkcOkBNI_FMh0j91rkhli25UHjYIhYmknUPEA.ttf", "700italic": "http://fonts.gstatic.com/s/cuprum/v14/dg47_pLmvrkcOkBNI_FMh0j91rkhli25aXjYIhYmknUPEA.ttf" }, "category": "sans-serif", "kind": "webfonts#webfont" }
json
<gh_stars>0 """rio-stac: Create STAC items from raster file.""" from rio_stac.stac import create_stac_item # noqa __version__ = "0.3.0"
python
mod ecdsa; mod eddsa; mod keypair; mod publickey; mod rsa; mod secretkey; mod signature; mod wasi_glue; use crate::options::*; use crate::{asymmetric_common, error::*}; pub use keypair::*; pub use publickey::*; pub use secretkey::*; pub use signature::*; use std::any::Any; use std::convert::TryFrom; #[allow(non_camel_case_types)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum SignatureAlgorithm { ECDSA_P256_SHA256, ECDSA_K256_SHA256, Ed25519, RSA_PKCS1_2048_SHA256, RSA_PKCS1_2048_SHA384, RSA_PKCS1_2048_SHA512, RSA_PKCS1_3072_SHA384, RSA_PKCS1_3072_SHA512, RSA_PKCS1_4096_SHA512, RSA_PSS_2048_SHA256, RSA_PSS_2048_SHA384, RSA_PSS_2048_SHA512, RSA_PSS_3072_SHA384, RSA_PSS_3072_SHA512, RSA_PSS_4096_SHA512, } pub enum SignatureAlgorithmFamily { ECDSA, EdDSA, RSA, } impl SignatureAlgorithm { pub fn family(&self) -> SignatureAlgorithmFamily { match self { SignatureAlgorithm::ECDSA_P256_SHA256 | SignatureAlgorithm::ECDSA_K256_SHA256 => { SignatureAlgorithmFamily::ECDSA } SignatureAlgorithm::Ed25519 => SignatureAlgorithmFamily::EdDSA, SignatureAlgorithm::RSA_PKCS1_2048_SHA256 | SignatureAlgorithm::RSA_PKCS1_2048_SHA384 | SignatureAlgorithm::RSA_PKCS1_2048_SHA512 | SignatureAlgorithm::RSA_PKCS1_3072_SHA384 | SignatureAlgorithm::RSA_PKCS1_3072_SHA512 | SignatureAlgorithm::RSA_PKCS1_4096_SHA512 | SignatureAlgorithm::RSA_PSS_2048_SHA256 | SignatureAlgorithm::RSA_PSS_2048_SHA384 | SignatureAlgorithm::RSA_PSS_2048_SHA512 | SignatureAlgorithm::RSA_PSS_3072_SHA384 | SignatureAlgorithm::RSA_PSS_3072_SHA512 | SignatureAlgorithm::RSA_PSS_4096_SHA512 => SignatureAlgorithmFamily::RSA, } } } impl TryFrom<&str> for SignatureAlgorithm { type Error = CryptoError; fn try_from(alg_str: &str) -> Result<Self, CryptoError> { match alg_str.to_uppercase().as_str() { "ECDSA_P256_SHA256" => Ok(SignatureAlgorithm::ECDSA_P256_SHA256), "ECDSA_K256_SHA256" => Ok(SignatureAlgorithm::ECDSA_K256_SHA256), "ED25519" => Ok(SignatureAlgorithm::Ed25519), "RSA_PKCS1_2048_SHA256" => Ok(SignatureAlgorithm::RSA_PKCS1_2048_SHA256), "RSA_PKCS1_2048_SHA384" => Ok(SignatureAlgorithm::RSA_PKCS1_2048_SHA384), "RSA_PKCS1_2048_SHA512" => Ok(SignatureAlgorithm::RSA_PKCS1_2048_SHA512), "RSA_PKCS1_3072_SHA384" => Ok(SignatureAlgorithm::RSA_PKCS1_3072_SHA384), "RSA_PKCS1_3072_SHA512" => Ok(SignatureAlgorithm::RSA_PKCS1_3072_SHA512), "RSA_PKCS1_4096_SHA512" => Ok(SignatureAlgorithm::RSA_PKCS1_4096_SHA512), "RSA_PSS_2048_SHA256" => Ok(SignatureAlgorithm::RSA_PSS_2048_SHA256), "RSA_PSS_2048_SHA384" => Ok(SignatureAlgorithm::RSA_PSS_2048_SHA384), "RSA_PSS_2048_SHA512" => Ok(SignatureAlgorithm::RSA_PSS_2048_SHA512), "RSA_PSS_3072_SHA384" => Ok(SignatureAlgorithm::RSA_PSS_3072_SHA384), "RSA_PSS_3072_SHA512" => Ok(SignatureAlgorithm::RSA_PSS_3072_SHA512), "RSA_PSS_4096_SHA512" => Ok(SignatureAlgorithm::RSA_PSS_4096_SHA512), _ => bail!(CryptoError::UnsupportedAlgorithm), } } } #[derive(Clone, Debug, Default)] pub struct SignatureOptions {} impl OptionsLike for SignatureOptions { fn as_any(&self) -> &dyn Any { self } fn set(&mut self, _name: &str, _value: &[u8]) -> Result<(), CryptoError> { bail!(CryptoError::UnsupportedOption) } fn set_u64(&mut self, _name: &str, _value: u64) -> Result<(), CryptoError> { bail!(CryptoError::UnsupportedOption) } } #[test] fn test_signatures_ecdsa() { use crate::{AlgorithmType, CryptoCtx}; let ctx = CryptoCtx::new(); let alg = "ECDSA_P256_SHA256"; let kp_handle = ctx .keypair_generate(AlgorithmType::Signatures, alg, None) .unwrap(); let pk_handle = ctx.keypair_publickey(kp_handle).unwrap(); let pk_serialized = ctx .publickey_export(pk_handle, asymmetric_common::PublicKeyEncoding::Raw) .unwrap(); let mut raw = vec![0u8; ctx.array_output_len(pk_serialized).unwrap()]; ctx.array_output_pull(pk_serialized, &mut raw).unwrap(); let pk_handle = ctx .publickey_import( AlgorithmType::Signatures, alg, &raw, asymmetric_common::PublicKeyEncoding::Raw, ) .unwrap(); let kp_serialized = ctx .keypair_export(kp_handle, asymmetric_common::KeyPairEncoding::Raw) .unwrap(); let mut raw = vec![0u8; ctx.array_output_len(kp_serialized).unwrap()]; ctx.array_output_pull(kp_serialized, &mut raw).unwrap(); let kp2_handle = ctx .keypair_import( AlgorithmType::Signatures, alg, &raw, asymmetric_common::KeyPairEncoding::Raw, ) .unwrap(); let kp_handle = kp2_handle; let state_handle = ctx.signature_state_open(kp_handle).unwrap(); ctx.signature_state_update(state_handle, b"test").unwrap(); let signature_handle = ctx.signature_state_sign(state_handle).unwrap(); let verification_state_handle = ctx.signature_verification_state_open(pk_handle).unwrap(); ctx.signature_verification_state_update(verification_state_handle, b"test") .unwrap(); ctx.signature_verification_state_verify(verification_state_handle, signature_handle) .unwrap(); ctx.signature_verification_state_close(verification_state_handle) .unwrap(); ctx.signature_state_close(state_handle).unwrap(); ctx.keypair_close(kp_handle).unwrap(); ctx.publickey_close(pk_handle).unwrap(); ctx.signature_close(signature_handle).unwrap(); } #[test] fn test_signatures_eddsa() { use crate::{AlgorithmType, CryptoCtx}; let ctx = CryptoCtx::new(); let kp_handle = ctx .keypair_generate(AlgorithmType::Signatures, "Ed25519", None) .unwrap(); let pk_handle = ctx.keypair_publickey(kp_handle).unwrap(); let state_handle = ctx.signature_state_open(kp_handle).unwrap(); ctx.signature_state_update(state_handle, b"test").unwrap(); let signature_handle = ctx.signature_state_sign(state_handle).unwrap(); let verification_state_handle = ctx.signature_verification_state_open(pk_handle).unwrap(); ctx.signature_verification_state_update(verification_state_handle, b"test") .unwrap(); ctx.signature_verification_state_verify(verification_state_handle, signature_handle) .unwrap(); ctx.signature_verification_state_close(verification_state_handle) .unwrap(); ctx.signature_state_close(state_handle).unwrap(); ctx.keypair_close(kp_handle).unwrap(); ctx.publickey_close(pk_handle).unwrap(); ctx.signature_close(signature_handle).unwrap(); } #[test] fn test_signatures_rsa() { use crate::{AlgorithmType, CryptoCtx}; let alg = "RSA_PKCS1_2048_SHA256"; let ctx = CryptoCtx::new(); let kp_handle = ctx .keypair_generate(AlgorithmType::Signatures, alg, None) .unwrap(); let pk_handle = ctx.keypair_publickey(kp_handle).unwrap(); let pk_serialized = ctx .publickey_export(pk_handle, asymmetric_common::PublicKeyEncoding::Local) .unwrap(); let mut raw = vec![0u8; ctx.array_output_len(pk_serialized).unwrap()]; ctx.array_output_pull(pk_serialized, &mut raw).unwrap(); let pk_handle = ctx .publickey_import( AlgorithmType::Signatures, alg, &raw, asymmetric_common::PublicKeyEncoding::Local, ) .unwrap(); let kp_serialized = ctx .keypair_export(kp_handle, asymmetric_common::KeyPairEncoding::Local) .unwrap(); let mut raw = vec![0u8; ctx.array_output_len(kp_serialized).unwrap()]; ctx.array_output_pull(kp_serialized, &mut raw).unwrap(); let kp2_handle = ctx .keypair_import( AlgorithmType::Signatures, alg, &raw, asymmetric_common::KeyPairEncoding::Local, ) .unwrap(); let kp_handle = kp2_handle; let state_handle = ctx.signature_state_open(kp_handle).unwrap(); ctx.signature_state_update(state_handle, b"test").unwrap(); let signature_handle = ctx.signature_state_sign(state_handle).unwrap(); let verification_state_handle = ctx.signature_verification_state_open(pk_handle).unwrap(); ctx.signature_verification_state_update(verification_state_handle, b"test") .unwrap(); ctx.signature_verification_state_verify(verification_state_handle, signature_handle) .unwrap(); ctx.signature_verification_state_close(verification_state_handle) .unwrap(); ctx.signature_state_close(state_handle).unwrap(); ctx.keypair_close(kp_handle).unwrap(); ctx.publickey_close(pk_handle).unwrap(); ctx.signature_close(signature_handle).unwrap(); }
rust
<filename>fluent/composer.json { "name": "tractorcow/silverstripe-fluent", "description": "Simple localisation for Silverstripe", "type": "silverstripe-module", "keywords": [ "silverstripe", "localisation", "localization", "translation", "language", "locale", "multilingual", "translatable", "i18n", "internationalisation", "internationalization" ], "license": "BSD-3-Clause", "authors": [ { "name": "<NAME>", "email": "<EMAIL>" } ], "support": { "issues": "http://github.com/tractorcow/silverstripe-fluent/issues" }, "require": { "silverstripe/framework": "~3.2", "silverstripe/cms": "~3.2" }, "extra": { "branch-alias": { "dev-master": "3.6.x-dev" }, "installer-name": "fluent" } }
json
<reponame>jturner65/GraphicsProbExperiments<filename>src/base_RayTracer/scene/geometry/sceneObjects/lights/myLight.java package base_RayTracer.scene.geometry.sceneObjects.lights; import java.util.concurrent.ThreadLocalRandom; import base_RayTracer.myColor; import base_RayTracer.myRay; import base_RayTracer.rayHit; import base_RayTracer.scene.myScene; import base_RayTracer.scene.geometry.accelStruct.myKD_Tree; import base_RayTracer.scene.geometry.sceneObjects.mySceneObject; import processing.core.PImage; import base_Math_Objects.vectorObjs.doubles.myMatrix; import base_Math_Objects.vectorObjs.doubles.myVector; public abstract class myLight extends mySceneObject{ public myColor lightColor; //does not use super's color vals public int lightID; public myKD_Tree photonTree; public myVector orientation; //TODO light intensity should fall off by inverse sq dist public myLight(myScene _scn, int _lightID, double _r, double _g, double _b, double _x, double _y, double _z, double _dx, double _dy, double _dz) { super(_scn, _x,_y,_z); minVals = this.getMinVec(); maxVals = this.getMaxVec(); postProcBBox(); System.out.println("Making light " + ID); rFlags[isLightIDX] = true; setVals(_lightID, _r,_g,_b,_x,_y,_z); orientation = new myVector(_dx,_dy,_dz); orientation._normalize(); } @Override //assumes that transRay dir is toward light. public rayHit intersectCheck(myRay _ray, myRay transRay, myMatrix[] _ctAra){ myVector hitNorm = new myVector(transRay.direction); hitNorm._mult(-1);//norm is just neg ray direction hitNorm._normalize(); double t = transRay.origin._dist(getOrigin(transRay.getTime())); rayHit hit = transRay.objHit(this, _ray.direction, _ctAra, transRay.pointOnRay(t), new int[]{}, t); //rayHit hit = new rayHit(transRay, _ray.direction, this, _ctAra, hitNorm,transRay.pointOnRay(t),t, new int[]{}); return hit; } //point light always intersects //TODO textured light could give different color light to scene based on location? BATSIGNAL! public double[] findTxtrCoords(myVector isctPt, PImage myTexture, double time){ double v = findTextureV(isctPt,myTexture,time); return new double[]{findTextureU(isctPt,v,myTexture,time),v}; } protected double findTextureU(myVector isctPt, double v, PImage myTexture, double time){ return 0.0; } protected double findTextureV(myVector isctPt, PImage myTexture, double time){ return 0.0; } //public boolean intersectCheck(myRay ray){ return true;} public void setLightColor(double _r, double _g, double _b){ this.lightColor = new myColor(_r,_g,_b);} //sets color and position of a light public void setVals(int lightID, double r, double g, double b, double x, double y, double z){ this.setLightColor(r,g,b); super.origin.set(x,y,z); this.lightID = lightID; } //get a random direction for a photon to travel - from jensen photon mapping public myVector getRandDir(){ double x,y,z, sqmag, mag; //replace this with better random randomizer do{ x = ThreadLocalRandom.current().nextDouble(-1.0,1.0); y = ThreadLocalRandom.current().nextDouble(-1.0,1.0); z = ThreadLocalRandom.current().nextDouble(-1.0,1.0); sqmag = (x*x) + (y*y) + (z*z); } while ((sqmag > 1.0) || (sqmag < epsVal)); mag=Math.sqrt(sqmag); myVector res = new myVector(x/mag,y/mag,z/mag); //res._normalize(); return res; } //probability/weighting of angle between inner and outer radii - linear protected double getAngleProb(double angle, double innerThetRad, double outerThetRad, double radDiff){return (angle < innerThetRad ) ? 1 : (angle > outerThetRad ) ? 0 : (outerThetRad - angle)/radDiff;} //send direction vector, finds multiplier for penumbra effect protected double calcT_Mult(myVector dir, double time, double innerThetRad, double outerThetRad, double radDiff){ double angle = Math.acos(-1*dir._dot(getOrientation(time))); //intersection pt to light dir is neg light to intersection pt dir - want acos of this to get angle return getAngleProb(angle,innerThetRad,outerThetRad, radDiff);// (angle < innerThetRad ) ? 1 : (angle > outerThetRad ) ? 0 : (outerThetRad - angle)/radDiff; } //get starting point for photon ray - will vary based on light type public abstract myRay genRndPhtnRay(); @Override public myVector getOrigin(double _t){ return origin; } public myVector getOrientation(double _t){ return orientation; } public String toString(){ return super.toString() + " \ncolor : " + this.lightColor + " light ID : " + this.lightID; } }//class myLight
java
<reponame>GsDevKit/XML-XMLParser This class percent decodes octets for URIs.
markdown
BJP leader Hardik Patel, who was the face of the Patidar reservation agitation in 2015-’16, filed his nomination papers for the coming Assembly elections from the Viramgam constituency in Ahmedabad district on Tuesday, with the party praising his maturity and calling him a “fighter-leader”. Hardik released a manifesto for the constituency in the form of an “affidavit”, underlining his promise to get district status for Viramgam. Before filing the nomination, Hardik addressed a public meeting in Viramgam town. Fellow BJP leader Alpesh Thakor, who too is from the region like him, attended the event along with senior party leaders such as Union Minister Mahendra Munjapara, state BJP general secretary Pradipsinh Vaghela, and former Viramgam MLAs Vajubhai Dodiya, Tejashreeben Patel and Pragjibhai Patel. Several local religious leaders were also present on the stage to shower their blessings on Hardik. Among the other promises in Hardik’s constituency manifesto are the creation of a modern sports complex, the redevelopment of the historic Munsar and Gangasar lakes on the lines of Ahmedabad’s Kankaria lake, the establishment of arts, commerce, and science colleges, building a proper sewerage network like Ahmedabad, a government library, irrigation water for the people of Nal-kantho, and a board exam centre in Nal-kantho. Hardik said that if elected, he would use his monthly salary of Rs 1. 25 lakh for cattle pounds and education and social work in the constituency. Alpesh Thakor, who is from Endla village in Viramgam, referred to Hardik as a fighter. Alpesh, who belongs to the Other Backward Class (OBC) Thakor community, became a well-known figure in 2015 as a critic of Hardik’s Patidar agitation. “Last time, you elected an MLA (Congress’s Lakhabhai Bharwad) whom all refer to as a gentleman. That is fine. But a people’s leader must be a fighter who can give voice to people’s issues. He should always be toiling for your development. And you cannot get a better candidate than Hardik Patel here,” Alpesh said. After the public meeting, Hardik proceeded to the Viramgam Taluka Seva Sadan to file his nomination papers. In the poll affidavit, he declared that he has total assets worth Rs 61. 48 lakh, including that of his wife. Of these, movable assets account for Rs 23. 48 lakh and immovable assets are valued at Rs 38 lakh. Hardik has liabilities worth Rs 2 lakh. Twenty criminal cases are pending against him.
english
<gh_stars>0 package ses.notification.lambda; import com.amazonaws.services.lambda.runtime.events.SNSEvent; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; public class RequestHandlerTest { private static RequestHandler requestHandler; private static final ObjectMapper MAPPER = new ObjectMapper(); @BeforeAll public static void setupServer() { final ReportingConfiguration configuration = new ReportingConfiguration(); configuration.setTo("<EMAIL>"); configuration.setFrom("<EMAIL>"); requestHandler = new RequestHandler(); requestHandler.setEmailService(new MockEmailService()); requestHandler.setNotificationReportingService(new EmailReportingService(configuration)); } @AfterAll public static void stopServer() { if (requestHandler != null) { requestHandler.getApplicationContext().close(); } } @Test public void testHandler() throws JsonProcessingException { final SesBounceMessage notification = TestDataFactory.bounceNotification(); final SNSEvent event = TestDataFactory.snsEvent(notification); String result = requestHandler.execute(event); assertThat(result).isEqualTo("Done"); } }
java
/* Ion theme for The Lounge. Based on the Zenburn Theme by <NAME> Installation instructions can be found here https://thelounge.chat/docs/server/configuration.html#theme Author: <NAME> GitHub: https://github.com/jake-walker */ /* BACKGROUND #3f3f3f INPUT BACKGROUND #434443 PRIMARY #dcdccc SECONDARY #d2d39b BORDERS #333333 QUIT #bc6c4c */ @import url('https://fonts.googleapis.com/css?family=Inconsolata|Noto+Sans'); body { background: #3f51b5; font-family: 'Noto Sans', sans-serif; } #sidebar { background: #3f51b5; } a, a:hover, a:focus { color: #3f51b5; text-decoration: underline; } a:hover { text-decoration: none; } /*#footer .icon { color: #c5cae9; } #sidebar .chan .name::after { background: linear-gradient(to right, rgba(63, 81, 181, 0) 0%, rgba(63, 81, 181, 1) 100%); }*/ button.icon { border: none; border-radius: 0px !important; background: transparent; color: #fff; } button.icon:hover { border: none; border-radius: 0px !important; } button.icon.active { border: none; border-radius: 0px !important; } #sidebar button, #sidebar .chan, #sidebar .sign-out, #sidebar .empty { color: #c5cae9; } #sidebar button:hover, #sidebar .chan:hover, #sidebar .active { color: #fff; } #sidebar .chan:first-child { color: #ff4081; } #sidebar .chan:first-child:hover, #sidebar .chan:first-child.active { color: #ff80ab; } #windows #chat-container.active { font-family: 'Inconsolata', monospace; } .btn { border: none; border-radius: 2px; height: 36px; line-height: 36px; padding: 0 16px; text-transform: uppercase; letter-spacing: 0.5px; background: #3f51b5; color: #fff; } .btn:disabled, .btn:hover { background: #5c6bc0; color: #fff; box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2); opacity: 1; } #viewport .lt::after { background-color: #f44336; } #chat .unread-maker::before { border-top: 1px solid rgba(244, 67, 54, 0.5); } #chat .unread-marker-text::before { color: rgba(244, 67, 54, 0.5); } #chat .date-marker::before { border-top: 1px solid rgba(76, 175, 80, 0.5); } #chat .date-marker-text::before { color: rgba(76, 175, 80, 0.5); } #chat table.channel-list td.channel .inline-channel { color: #2196f3; } #chat .condensed .content, #chat .away .content, #chat .back .content, #chat .join .content, #chat .kick .content, #chat .mode .content, #chat .nick .content, #chat .part .content, #chat .quit .content, #chat .topic .content, #chat .topic_set_by .content { color: #9e9e9e; } #chat .action .from, #chat .action .text, #chat .action .user { color: #ff9800; } #chat .notice .time, #chat .notice .text, #chat .chan .notice .user { color: #2196f3 !important; } #chat .error, #chat .error .from, #chat .channel .highlight .from, #chat .channel .highlight .text, #chat .channel .highlight .user { color: #f44336; } #sign-in .error { color: #f44336; } #settings .error { color: #f44336; } #settings #change-password .error { color: #f44336; } #settings #change-password .success { color: #4caf50; } #connection-error { background: #f44336; } #chat.colored-nicks .user.color-1 { color: #f44336; } #chat.colored-nicks .user.color-2 { color: #e91e63; } #chat.colored-nicks .user.color-3 { color: #9c27b0; } #chat.colored-nicks .user.color-4 { color: #673ab7; } #chat.colored-nicks .user.color-5 { color: #3f51b5; } #chat.colored-nicks .user.color-6 { color: #2196f3; } #chat.colored-nicks .user.color-7 { color: #03a9f4; } #chat.colored-nicks .user.color-8 { color: #00bcd4; } #chat.colored-nicks .user.color-9 { color: #009688; } #chat.colored-nicks .user.color-10 { color: #4caf50; } #chat.colored-nicks .user.color-11 { color: #8bc34a; } #chat.colored-nicks .user.color-12 { color: #cddc39; } #chat.colored-nicks .user.color-13 { color: #ffeb3b; } #chat.colored-nicks .user.color-14 { color: #ffc107; } #chat.colored-nicks .user.color-15 { color: #ff9800; } #chat.colored-nicks .user.color-16 { color: #ff5722; } #chat.colored-nicks .user.color-17 { color: #795548; } #chat.colored-nicks .user.color-18 { color: #9e9e9e; } #chat.colored-nicks .user.color-19 { color: #607d8b; } #chat.colored-nicks .user.color-20 { color: #ff1744; } #chat.colored-nicks .user.color-21 { color: #f50057; } #chat.colored-nicks .user.color-22 { color: #d500f9; } #chat.colored-nicks .user.color-23 { color: #651fff; } #chat.colored-nicks .user.color-24 { color: #3d5afe; } #chat.colored-nicks .user.color-25 { color: #2979ff; } #chat.colored-nicks .user.color-26 { color: #00b0ff; } #chat.colored-nicks .user.color-27 { color: #00e5ff; } #chat.colored-nicks .user.color-28 { color: #1de9b6; } #chat.colored-nicks .user.color-29 { color: #00e676; } #chat.colored-nicks .user.color-30 { color: #76ff03; } #chat.colored-nicks .user.color-31 { color: #c6ff00; } #chat.colored-nicks .user.color-32 { color: #ffea00; } .irc-fg0 { color: #fff; } .irc-fg1 { color: #000; } .irc-fg2 { color: #2196f3; } .irc-fg3 { color: #4caf50; } .irc-fg4 { color: #f44336; } .irc-fg5 { color: #795548; } .irc-fg6 { color: #d500f9; } .irc-fg7 { color: #ff9800; } .irc-fg8 { color: #ffeb3b; } .irc-fg9 { color: #8bc34a; } .irc-fg10 { color: #00bcd4; } .irc-fg11 { color: #18ffff; } .irc-fg12 { color: #03a9f4; } .irc-fg13 { color: #e91e63; } .irc-fg14 { color: #9e9e9e; } .irc-fg15 { color: #e0e0e0; } .irc-bg0 { background: #fff; } .irc-bg1 { background: #000; } .irc-bg2 { background: #2196f3; } .irc-bg3 { background: #4caf50; } .irc-bg4 { background: #f44336; } .irc-bg5 { background: #795548; } .irc-bg6 { background: #d500f9; } .irc-bg7 { background: #ff9800; } .irc-bg8 { background: #ffeb3b; } .irc-bg9 { background: #8bc34a; } .irc-bg10 { background: #00bcd4; } .irc-bg11 { background: #18ffff; } .irc-bg12 { background: #03a9f4; } .irc-bg13 { background: #e91e63; } .irc-bg14 { background: #9e9e9e; } .irc-bg15 { background: #e0e0e0; }
css
Nawazuddin Siddiqui’s legal battle with estranged wife Aaliya has been grabbing the headlines for a long time. Recently Aaliya shared a video she made of her argument with Nawaz who was seen locked outside his own bungalow. Siddiqui’s Tiku Weds Sheru producer Kangana Ranaut has now reacted to the disturbing incident. “I never met the ex-wife but now suddenly she has taken over the bungalow and not allowing him to enter, I just saw he is standing on the road and she is making videos of such a big star, kya badmashi hai yeh, I feel like crying… it’s not easy to make money from acting jobs, actors work very hard, how can she just decide to keep the house and lock him outside like that,” Ranaut expressed. “She can most definitely not defame him by making secret videos of conversations and release them out of context in bits and pieces so that he even fears coming home …. this is so wrong,” Kangana concluded. (For more news and updates from the world of celebrities from Bollywood and Hollywood, keep reading Indiatimes Entertainment, and let us know your thoughts on this story in the comments below. )
english
package namematcher; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.stream.Stream; import java.util.stream.Collectors; public class NameMatcher { /** * Returns pairs of matched names in two group. They must be same size collections. * @param subjects * @param candidates * @return */ public static Map<String, String> groupToGroup (Set<String> subjects, Set<String> candidates) { NameMatcher nm = new NameMatcher(); if (subjects.size() != candidates.size()) return nm.results; nm.subjects = subjects; nm.candidates = candidates; nm.matchGroups(); return nm.results; } /** * Returns matched names from candidates. * MatcherTokens doesn't work well for one to group match. * e.g. Man City matches Hull City, Stoke City, and Leicester City because of 'City' * @param subject * @param candidates * @return */ public static Set<String> oneToGroup (String subject, Set<String> candidates) { NameMatcher nm = new NameMatcher(); nm.subject = subject; nm.candidates = candidates; return Stream.of( new MatcherExactly(), new MatcherAbbrev(), new MatcherDoubleMetaphone(0), new MatcherDoubleMetaphone(1)) .map(nm::getMatches) .flatMap(Set::stream) .collect(Collectors.toSet()); } /** * a single subject. */ private String subject; /** * list of subjects. */ private Set<String> subjects; /** * list of candidates. */ private Set<String> candidates; /** * Result as Map. Key is a subject and value is a candidate matched. */ private Map<String, String> results = new HashMap<String, String>(); /** * Returns list of candidates matched by matcher. * @param matcher * @return */ private Set<String> getMatches (Matcher matcher) { return matcher.getMatches(this.subject, this.candidates); } /** * Finds names matching each other from two groups. * * Once it finds out a pair of two names matching each other, * they will be removed from both groups respectively. Thus order of procedure matters. * 1. removes a pair of names matching exactly each other. * 2. removes a pair of names if one is an abbreviation of another. * 3. removes a pair of names if two metaphones matching each other's. * 4. removes a pair of names if levenshtein distance of metaphones is less than 1. * 5. removes a pair of names if a part of one name matches a part of another name. * 6. A last pair matches automatically. */ private void matchGroups () { this.findMatches(new MatcherExactly()); this.findMatches(new MatcherAbbrev()); this.findMatches(new MatcherDoubleMetaphone(0)); this.findMatches(new MatcherDoubleMetaphone(1)); this.findMatches(new MatcherTokens()); this.lastOneMatchesAutomatically(); } /** * Finds matches for every subjects to candidates by the matcher. * @param matcher */ private void findMatches (Matcher matcher) { String[] tempSubjects = this.subjects.toArray(new String[this.subjects.size()]); for (String subject : tempSubjects) { Set<String> matches = matcher.getMatches(subject, this.candidates); if (matches.size() == 1) this.setMatches(subject, matches.iterator().next()); } } /** * Sets matched names as a pair and removes them from subjects * and candidates respectively. * @param subject * @param candidate */ private void setMatches (String subject, String candidate) { this.results.put(subject, candidate); this.subjects.remove(subject); this.candidates.remove(candidate); } /** * Last names in subjects and candidates must match automatically. */ private void lastOneMatchesAutomatically () { if (this.subjects.size() == 1 && this.candidates.size() == 1) { this.results.put(this.subjects.iterator().next(), this.candidates.iterator().next()); } } }
java
<filename>public/json/artist_map.json {"\u8212\u4f2f\u7279":{"type":"artist","id":"HY87dt2oa-MNWXH5FZ","photo_url":"https:\/\/i.kfs.io\/artist\/global\/10206,0v13\/fit\/300x300.jpg"},"\u5b89\u5fb7\u9b6f\uff0e\u97cb\u4f2f":{"type":"artist","id":"WlAU0XV5c-7cT6q1L6","photo_url":"https:\/\/i.kfs.io\/artist\/global\/2098,0v2\/fit\/300x300.jpg"},"\u9127\u9e97\u541b":{"type":"artist","id":"HX4pQTKP8cmeHPxcfh","photo_url":"https:\/\/i.kfs.io\/artist\/global\/38,0v1\/fit\/300x300.jpg"},"\u9ad8\u5049\u52db":{"type":"artist","id":"Gre9CWYUMQFlM4wdTA","photo_url":"https:\/\/i.kfs.io\/artist\/global\/18843578,0v2\/fit\/300x300.jpg"},"TommyBlue":{"type":"artist","id":"Gq8kNjiwyaDAmeCHTu","photo_url":"https:\/\/i.kfs.io\/artist\/global\/23767865,0v2\/fit\/300x300.jpg"},"\u8377\u723e\u8499\u5c11\u5e74":{"type":"artist","id":"9Z9WOpi6Jj_jIg8FMy","photo_url":"https:\/\/i.kfs.io\/artist\/global\/10375024,0v3\/fit\/300x300.jpg"},"\u80e1\u51f1\u5152":{"type":"artist","id":"4t1LJFjJ8jt7H2YsTu","photo_url":"https:\/\/i.kfs.io\/artist\/global\/7020876,0v2\/fit\/300x300.jpg"},"\u694a\u4e1e\u7433":{"type":"artist","id":"PX20oRGILmWjhcjoSy","photo_url":"https:\/\/i.kfs.io\/artist\/global\/12749,0v11\/fit\/300x300.jpg"},"\u8521\u4f9d\u6797":{"type":"artist","id":"XYAeW1U8w9TEaVENYH","photo_url":"https:\/\/i.kfs.io\/artist\/global\/74,0v7\/fit\/300x300.jpg"},"\u5468\u8559":{"type":"artist","id":"H_I5QAq305ZsbRDRd0","photo_url":"https:\/\/i.kfs.io\/artist\/global\/3132,0v4\/fit\/300x300.jpg"},"\u8f9b\u66c9\u742a":{"type":"artist","id":"WowUWOPmMb0q4dE7-8","photo_url":"https:\/\/i.kfs.io\/artist\/global\/3121,0v2\/fit\/300x300.jpg"},"A\uff0dLin":{"type":"artist","id":"Osbh3TUzyafhBl0WD5","photo_url":"https:\/\/i.kfs.io\/artist\/global\/13667,0v23\/fit\/300x300.jpg"},"Super Napkin":{"type":"artist","id":"4ltauOX_8ga0uphNRU","photo_url":"https:\/\/i.kfs.io\/artist\/global\/11162763,0v2\/fit\/300x300.jpg"},"\u56db\u679d\u7b46":{"type":"artist","id":"Cqxk6jAUuRkVa8cxUp","photo_url":"https:\/\/i.kfs.io\/artist\/global\/6412265,0v3\/fit\/300x300.jpg"},"\u5a01\u723e\u7b2c":{"type":"artist","id":"SoZU9QHMNfK7UDdxUa","photo_url":"https:\/\/i.kfs.io\/artist\/global\/14054,0v8\/fit\/300x300.jpg"},"\u5d14\u632f\u8d6b":{"type":"artist","id":"H-7ACF60vbB0Uq6cvM","photo_url":"https:\/\/i.kfs.io\/artist\/global\/6088172,0v1\/fit\/300x300.jpg"},"\u897f\u5c6f\u7d14\u611b\u7d44":{"type":"artist","id":"5-eBXuV88AiCKpkjFo","photo_url":"https:\/\/i.kfs.io\/artist\/global\/13290667,0v4\/fit\/300x300.jpg"},"\u6b65\u884c\u8005":{"type":"artist","id":"CqQCuwAUuRkVaqdne6","photo_url":"https:\/\/i.kfs.io\/artist\/global\/7516783,0v2\/fit\/300x300.jpg"},"\u856d\u90a6":{"type":"artist","id":"D_NEPGkl50EDPYTpJc","photo_url":"https:\/\/i.kfs.io\/artist\/global\/10168,0v1\/fit\/300x300.jpg"},"\u83ef\u683c\u7d0d":{"type":"artist","id":"Om2uNHy93wEMAVlSPM","photo_url":"https:\/\/i.kfs.io\/artist\/global\/961461,0v18\/fit\/300x300.jpg"},"\u7c21\u6587\u5f6c":{"type":"artist","id":"L-QHuEZCGWw2r3pPfj","photo_url":"https:\/\/i.kfs.io\/artist\/global\/29796,0v1\/fit\/300x300.jpg"},"\u9019\u7fa4\u4eba":{"type":"artist","id":"H_UjFWqn05ZsY17oMt","photo_url":"https:\/\/i.kfs.io\/artist\/global\/22456653,0v2\/fit\/300x300.jpg"},"\u66fe\u5b87\u8b19":{"type":"artist","id":"P_CzYc5yVKWxtlrzJe","photo_url":"https:\/\/i.kfs.io\/artist\/global\/7407280,0v3\/fit\/300x300.jpg"},"\u96e8 \u570b":{"type":"artist","id":"SpOxaCYIHt6I8ZwN8C","photo_url":"https:\/\/i.kfs.io\/artist\/global\/9225781,0v4\/fit\/300x300.jpg"},"\u663c\u98df\u5f7c\u5973":{"type":"artist","id":"Woj1iaP2Mb0q6wRE4Q","photo_url":"https:\/\/i.kfs.io\/artist\/global\/18092415,0v1\/fit\/300x300.jpg"},"\u67f4\u79d1\u592b\u65af\u57fa":{"type":"artist","id":"GrNoS_YUMQFlO76gGp","photo_url":"https:\/\/i.kfs.io\/artist\/global\/20370423,0v1\/fit\/300x300.jpg"},"\u99ac\u52d2":{"type":"artist","id":"GnSWwTRjnXAaQygy8-","photo_url":"https:\/\/i.kfs.io\/artist\/global\/14125,0v6\/fit\/300x300.jpg"},"PiA\u5433\u84d3\u96c5":{"type":"artist","id":"XZm8SPOqKE5Mw0ESzK","photo_url":"https:\/\/i.kfs.io\/artist\/global\/272606,0v10\/fit\/300x300.jpg"},"\u83ab\u672d\u7279":{"type":"artist","id":"Gl7XhK8JxUb9-9H179","photo_url":"https:\/\/i.kfs.io\/artist\/global\/4595,0v1\/fit\/300x300.jpg"}}
json
<reponame>mhemmings/LSStorage<gh_stars>0 package com.mhemmings.lsstorage.test; import com.mhemmings.lsstorage.LSDatabase; import com.mhemmings.lsstorage.LSObject; import com.mhemmings.lsstorage.LSTable; public class MyDatabase extends LSDatabase { public static final LSTable<Car> carTable = new CarTable(); public static final LSTable<Manufacturer> manufacturerTable = new ManufacturerTable(); public MyDatabase() { super("CarsDatabase", 1); } @Override public LSTable<LSObject>[] tables() { return new LSTable[] { carTable, manufacturerTable }; } @Override public String[] onUpgrade(int oldVersion) { String sql[] = new String[0]; switch (oldVersion) { case 1: } return sql; } }
java
<filename>remote-content-api/unused-for-now/sample-http-api/src/main/resources/SLING-INF/initial-content/content/articles/business/otho-paucek-on-the-array-of-open-source-placeat-voluptas-aka-ram.json<gh_stars>10-100 {"source":"Apache Sling's fake-content-generator","section":"Business","folder":"business","filename":"otho-paucek-on-the-array-of-open-source-placeat-voluptas-aka-ram","title":"Business - <NAME> on the array of open-source 'placeat voluptas' (aka RAM)","tags":["protocol","array"],"seeAlso":[],"text":"As <NAME> often says, In in vel ratione. Quia corrupti aspernatur. Unde neque earum tenetur est cupiditate eum minus eos. Harum voluptate perspiciatis quibusdam est excepturi non reprehenderit. Repudiandae quia enim.<br/>\nQuis rerum unde totam optio ipsam. Repellat qui omnis. Voluptas beatae incidunt doloribus. Nulla laboriosam quia et tenetur.<br/>\nAut qui delectus est. Repudiandae tempora sed ab rerum qui nostrum rerum et veniam. Repellendus in dolores.<br/>\nAlias ratione praesentium repudiandae est consequatur porro voluptatem dolorem. Dolor vel non minus voluptas inventore enim. Esse et vitae eligendi cumque dolores. Voluptatem quos enim earum id quidem omnis. Illum recusandae blanditiis esse eligendi. Magni qui et inventore numquam sit eum.<br/>\nSint enim unde laudantium vitae harum. Facere non aspernatur dolor deserunt accusantium. Quis aperiam ipsum adipisci quia sed voluptate. Molestias voluptas error vel tempore.<br/>\nEt itaque voluptatem natus occaecati suscipit. Aperiam placeat est culpa consequatur ea ex natus qui cumque. Laudantium eligendi adipisci ut consectetur omnis dolorem. Sunt vel qui fugit voluptas facilis.<br/>\nVoluptatibus voluptatum enim quisquam. Ut maiores corporis et expedita quis similique. Minima quidem ex totam. Et laudantium sit quaerat sed voluptatem quis.<br/>\nEt qui necessitatibus. Cupiditate natus sequi sunt est iste neque amet et culpa. Doloribus voluptatem qui provident quia commodi. At ducimus sunt amet est rerum veritatis optio quae perspiciatis.<br/>\nEt consequatur officiis enim nulla occaecati in nemo magnam quis. Totam impedit voluptatem a atque ea et. Ea maxime est. Nemo voluptatem libero voluptates quia tempora quia placeat asperiores nemo.<br/>\nAssumenda ut voluptatibus totam porro at officiis. Dolores aut ducimus qui molestiae architecto quod nesciunt. Ea ipsum commodi at. Sapiente quod quasi ea et maiores mollitia ut.","jcr:primaryType":"nt:unstructured","sling:resourceType":"samples/article/business","sling:resourceSuperType":"samples/article"}
json
<reponame>BradZzz/telos<gh_stars>0 /*! definitions.less * * NOTE: the css version of this file is auto-generated, so only edit the original * less version if you don't want your changes to be overwritten. */ /*** Fonts ***/ @font-face { font-family: "AustinHeadlineBold"; src: url('../fonts/AustinHeadlineBold.otf'); } @font-face { font-family: "TheinhardtReg"; src: url('../fonts/TheinhardtReg.otf'); } @font-face { font-family: "TheinhardtBold"; src: url('../fonts/TheinhardtBold.otf'); } .header { font-family: "AustinHeadlineBold", sans-serif !important; } .header-sub { font-family: "TheinhardtBold", sans-serif !important; } /*** Colors ***/ /*** General ***/ h2 { font-family: "AustinHeadlineBold", sans-serif !important; color: #EEEEEE; } .login span { color: #111111 !important; font-weight: bold !important; } .input { width: 200px; background: #EEEEEE; } .input.mdl-textfield { height: 50px; padding: 10px 0; margin: 10px 0; } .input .mdl-textfield__input { padding-left: 10px; border-bottom: none; width: 90%; } .input .mdl-textfield__label { padding-left: 10px; top: 18px; } .input .mdl-textfield__label:after { background-color: transparent; } .dropdown { width: 300px !important; height: 50px !important; margin: .5em 0 1.5em 0 !important; } .dropdown > div { background-color: #EEEEEE !important; margin-top: 0 !important; } .dropdown > div div div:nth-child(2) { padding-left: 10px !important; top: 0 !important; } .dropdown.selected label { display: none !important; } .dropdown label { padding-left: 10px; font-family: "TheinhardtReg", sans-serif !important; font-size: 20px !important; font-weight: bold; } .dropdown button { top: 0 !important; } .dropdown hr { display: none !important; } /*** Site ***/ body { font-family: "TheinhardtReg", sans-serif !important; } /*** Splash ***/ .splash { background: url('../images/alexblue.jpg') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; display: block; position: relative; } .splash .overlay { background: rgba(0, 0, 0, 0.6); z-index: 1; position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .splash .content { z-index: 2; bottom: 0; position: absolute; min-height: 25em; min-width: 50em; margin: auto 0 auto 15em; vertical-align: bottom; } .splash img { margin: 5em 0 0 10em; } /*** Footer ***/ .footer { background: #bfbfbf; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; display: block; position: relative; } .footer .underlay { background: url('../images/logo_w.svg') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: 400px 400px; z-index: 1; position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .footer .content { z-index: 2; bottom: 5em; position: absolute; min-height: 20em; min-width: 50em; margin: auto 0 auto 15em; vertical-align: bottom; } .footer .content .submit button { background-color: #111111 !important; } .footer .content .teaser { font-weight: bold; font-size: 1.2em; } /*** Mobile ***/ @media only screen and (max-width: 600px) { /* Styles */ h2 { font-size: 2.4em !important; } .splash img { margin: 1em 0 0 1em; } .footer .underlay { background-size: 200px 200px; background-position: 50% 18%; } .content { margin: auto 0 auto 1em !important; min-width: 80% !important; } .mdl-textfield, .dropdown, .submit, .login { width: 260px !important; } } @media only screen and (max-width: 460px) { /* Styles */ /* .mdl-textfield, .dropdown, .submit, .login { width: 280px !important; } .content { margin: auto 0 auto 1em !important; min-width: 80% !important; } .splash h2 { font-size : 1.2em !important; } .footer .teaser { font-size : .9em !important; }*/ }
css
// Copyright (c) 2012 Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH. All rights reserved. #include "io/Loader.h" #include <log4cxx/logger.h> #include "helper/types.h" #include "io/EmptyLoader.h" #include "io/LoaderException.h" #include "storage/AbstractTable.h" #include "storage/AbstractMergeStrategy.h" #include "storage/DictionaryFactory.h" #include "storage/FixedLengthVector.h" #include "storage/SequentialHeapMerger.h" #include "storage/Store.h" #include "storage/MutableVerticalTable.h" namespace hyrise { namespace io { log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("hyrise.io.Loader")); param_ref_member_impl(Loader::params, AbstractInput, Input) param_ref_member_impl(Loader::params, AbstractHeader, Header) param_member_impl(Loader::params, std::string, BasePath) param_member_impl(Loader::params, std::string, TableName) param_member_impl(Loader::params, bool, ModifiableMutableVerticalTable) param_member_impl(Loader::params, bool, ReturnsMutableVerticalTable) param_member_impl(Loader::params, bool, Compressed) param_member_impl(Loader::params, storage::c_atable_ptr_t, ReferenceTable) param_member_impl(Loader::params, bool, DeltaDataStructure) Loader::params::params() : Input(nullptr), Header(nullptr), BasePath(""), TableName(""), ModifiableMutableVerticalTable(false), ReturnsMutableVerticalTable(false), Compressed(false), ReferenceTable(), DeltaDataStructure(false) {} Loader::params::params(const Loader::params& other) : BasePath(other.getBasePath()), TableName(other.getTableName()), ModifiableMutableVerticalTable(other.getModifiableMutableVerticalTable()), ReturnsMutableVerticalTable(other.getReturnsMutableVerticalTable()), Compressed(other.getCompressed()) { if (other.Input != nullptr) Input = other.Input->clone(); if (other.Header != nullptr) Header = other.Header->clone(); if (other.ReferenceTable != nullptr) ReferenceTable = other.ReferenceTable; } Loader::params& Loader::params::operator=(const Loader::params& other) { if (this != &other) { // protect against invalid self-assignment if (Input != nullptr) delete Input; if (Header != nullptr) delete Header; Input = other.getInput()->clone(); Header = other.getHeader()->clone(); setBasePath(other.getBasePath()); setTableName(other.getTableName()); setReturnsMutableVerticalTable(other.getReturnsMutableVerticalTable()); setModifiableMutableVerticalTable(other.getModifiableMutableVerticalTable()); setCompressed(other.getCompressed()); setReferenceTable(other.getReferenceTable()); } // by convention, always return *this return *this; } Loader::params* Loader::params::clone() const { Loader::params* p = new Loader::params(); if (Input != nullptr) p->setInput(*Input); if (Header != nullptr) p->setHeader(*Header); p->setBasePath(BasePath); p->setTableName(TableName); p->setReturnsMutableVerticalTable(ReturnsMutableVerticalTable); p->setModifiableMutableVerticalTable(ModifiableMutableVerticalTable); p->setReferenceTable(ReferenceTable); p->setCompressed(Compressed); return p; } Loader::params::~params() { if (Input != nullptr) delete Input; if (Input != nullptr) delete Header; } std::shared_ptr<storage::AbstractTable> Loader::load(const params& args) { AbstractHeader* header = args.getHeader(); AbstractInput* input = args.getInput(); // TODO avoid leakage if (input == nullptr) { input = new EmptyInput(); } if (header == nullptr) { header = new EmptyHeader(); } LOG4CXX_DEBUG(logger, "Loading header"); storage::compound_metadata_list* meta = header->load(args); LOG4CXX_DEBUG(logger, "Header done"); std::vector<storage::atable_ptr_t> tables; for (const auto& partition : *meta) { std::vector<storage::adict_ptr_t> dicts; for (const auto& column : *partition) { dicts.push_back(storage::makeDictionary(column)); } auto tbl = std::make_shared<storage::Table>( *partition, std::make_shared<storage::FixedLengthVector<value_id_t>>(dicts.size(), 0), dicts); tables.push_back(tbl); } std::shared_ptr<storage::AbstractTable> result, // initialize empty table = std::make_shared<storage::MutableVerticalTable>(tables); LOG4CXX_DEBUG(logger, "Loading data"); try { result = input->load(table, meta, args); } catch (std::exception& e) { // TODO: Memory management is not exception safe for (const auto& ml : *meta) { delete ml; } throw Loader::Error(e.what()); } // Memory Cleanup, this is so dirty here, it makes me shiver for (auto e : *meta) { delete e; } delete meta; LOG4CXX_DEBUG(logger, "Data done"); if (!args.getModifiableMutableVerticalTable() && input->needs_store_wrap()) { storage::store_ptr_t s; if (args.getTableName().empty()) { s = std::make_shared<storage::Store>(result); } else { s = std::make_shared<storage::Store>(args.getTableName(), result); } auto merger = new storage::TableMerger( new storage::DefaultMergeStrategy(), new storage::SequentialHeapMerger(), args.getCompressed()); s->setMerger(merger); if (input->needs_merge()) { s->merge(); } result = s; } if (!args.getModifiableMutableVerticalTable() && args.getReturnsMutableVerticalTable()) { table = std::dynamic_pointer_cast<storage::Store>(result)->getMainTable(); result = table; } if (args.getHeader() == nullptr) delete header; if (args.getInput() == nullptr) delete input; return result; } } } // namespace hyrise::io
cpp
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content="Personal website of <NAME>" /> <meta name="author" content="<NAME>" /> <title><NAME></title> <!-- Bootstrap core CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous"> <!-- Font Awesome icons (free version)--> <script src="https://use.fontawesome.com/releases/v5.13.0/js/all.js" crossorigin="anonymous"></script> <!-- Google fonts--> <link href="https://fonts.googleapis.com/css?family=Saira+Extra+Condensed:500,700" rel="stylesheet" type="text/css" /> <link href="https://fonts.googleapis.com/css?family=Muli:400,400i,800,800i" rel="stylesheet" type="text/css" /> <!-- Core theme CSS (includes Bootstrap)--> <link href="css/styles.css" rel="stylesheet" /> <link rel="shortcut icon" type="image/x-icon" href="img/M_Letter_Cropped.png" /> <!-- <link href='css/devicons.css' rel='stylesheet'> --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/konpa/devicon@master/devicon.min.css"> </head> <body id="page-top"> <!-- Navigation--> <nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top" id="sideNav"> <a class="navbar-brand js-scroll-trigger" href="#page-top"> <span class="d-block d-lg-none"><NAME></span> <span class="d-none d-lg-block"><img class="img-fluid img-profile rounded-circle mx-auto mb-2" src="img/Mahesh_Profile_circle.png" alt="" /></span> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav"> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#about">About</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#experience">Experience</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#education">Education</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#skills">Skills</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#projects">Projects</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#certifications">Certifications</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#publications">Publications</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#extracurriculars">Organizations</a></li> <li class="nav-item"><a class="nav-link js-scroll-trigger" href="#contact">Contact Me</a></li> </ul> </div> </nav> <!-- Page Content--> <div class="container-fluid p-0"> <!-- About--> <section class="resume-section" id="about"> <div class="resume-section-content"> <h1 class="mb-0"> Mahesh <span class="text-primary">Gopinathan</span> </h1> <div class="subheading mb-5"> <a href="./Mahesh_Gopinathan_Resume.pdf" target="_blank">Resume</a> · <a href="tel:+13476523062" target="_blank">(+1) 3476523062 </a> · <a href="mailto:<EMAIL>" target="_blank"><EMAIL></a> · <!-- <a href="https://maps.google.com/?q=MicrosoftBuilding44" target="_blank">Redmond, Washington</a> --> Brooklyn, New York, 11220 <br /> <br /> Dream it, Believe it, Build it !!! </div> <p class="lead mb-5">Hello, I am an experienced Software Engineer who has been involved in application development with a demonstrated history of solving business problems efficiently using my plethora of skills in various domains such as Full-stack and Backend Web Development, Cloud Services and Big Data Management. I take immense pride in my professional achievements and skillset by working diligently and get things done. I am currently a final year Master's in Computer Science Student at New York University, seeking full-time opportunities from May 2021. </p> <div class="social-icons"> <a class="social-icon" href="https://www.linkedin.com/in/maheshg23/" target="_blank"><i class="fab fa-linkedin-in"></i></a> <a class="social-icon" href="https://github.com/maheshg23" target="_blank"><i class="fab fa-github"></i></a> <!-- <a class="social-icon" href="#"><i class="fab fa-twitter"></i></a> --> <a class="social-icon" href="https://www.instagram.com/maheshg_23/" target="_blank"><i class="fab fa-instagram"></i></a> </div> <div class="resume-section-link text-md-center"> <a href="./Mahesh_Gopinathan_Resume.pdf" target="_blank"><button type="button" class="btn btn-primary">Resume</button></a> </div> </div> </section> <hr class="m-0" /> <!-- Experience--> <section class="resume-section p-3 p-lg-5 d-flex flex-column" id="experience"> <div class="my-auto"> <h2 class="mb-5">Experience</h2> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">M&M TRADING CO. LLC | DODIHOME</h3> <div class="subheading mb-3">Software Development Intern</div> <p> <ul class="fa-ul mb-3"> <li> <i class="fa-li fa fa-circle text-info"></i> Developed various features for a MVP Application that offers users to design and order kitchen cabinets online. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Designed and implemented the Product structure by creating a new database schema using NodeJS and Mongoose Schema. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Integrated with backend services like Twilio to send and receives SMS by utilizing webhooks. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Migrated legacy data from Excel sheets into MongoDB using starter scripts also modifying the schema definition in the process. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Successfully automated the CI/CD, build & deployment process into Digital Ocean using Bitbucket pipelines and shell scripts. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Tech stack - NodeJS, Express, MongoDB, React, Typescript, DigitalOcean. </li> </ul> </p> </div> <div class="resume-date text-md-center"> <span class="text-primary">May 2020 - July 2020</span> <br> <span class="text-primary">(3 Months)</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">Doppio Group</h3> <div class="subheading mb-3">Senior Software Engineer</div> <p> <ul class="fa-ul mb-0"> <li> <i class="fa-li fa fa-circle text-info"></i> Developed an integrated software solutions in Java between an MES (Manufacturing Execution System) and Infor M3 Cloud service to process various transactions in real-time. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Designed and developed solutions by understanding the manufacturing industry workflow and acted as the subject matter expert by recommending suggestions to the automation of the tasks performed at the warehouse plant. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Engineered a high-level design discussion to formulate a plan for cloud migration for a global ERP rollout. Also executed the plan with different stakeholders involved. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Improved the tax calculation process by 50% using Avalara’s REST API calls and used shell scripts to schedule repetitive tasks. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Tech stack - Java, MySQL, AWS, Infor ERP (ION, M3, Smart Office, IES, Factory Track). </li> </ul> </p> </div> <div class="resume-date text-md-center"> <span class="text-primary">January 2019 - July 2019</span> <br> <span class="text-primary">(7 Months)</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">Doppio Group</h3> <div class="subheading mb-3">Software Engineer</div> <p> <ul class="fa-ul mb-0"> <li> <i class="fa-li fa fa-circle text-info"></i> Developed EDI software solutions to facilitate document flow between ERP systems and third party applications using REST APIs that handle real-time transactions. • Automated financial payments between banks and various clients using ACH transactions. • Utilized Agile methodologies in sprint planning, project timelines, task estimation, development, code testing, and code review. • Achieved 50% increase in search program efficiency in the ERP software tool by customizing and remodeling the search patterns. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Acted as the subject matter expert while recommending solutions to process EDI transactions </li> <li> <i class="fa-li fa fa-circle text-info"></i> Designed and coded solutions to process Payments in real-time between time between various bank systems using Java and ERP tools. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Automated financial payments between banks and various clients using ACH transactions. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Utilized Agile methodologies in sprint planning, project timelines, task estimation, development, code testing, and code review. </li> <li> <i class="fa-li fa fa-circle text-info"></i> Achieved 50% increase in search program efficiency in the ERP software tool by customizing and remodeling the search patterns </li> <li> <i class="fa-li fa fa-circle text-info"></i> Tech stack - Java, MySQL, AWS, JSON, XML, JavaScript, Infor ERP (M3, MEC, Smart Office) </li> </ul> </p> </div> <div class="resume-date text-md-center"> <span class="text-primary">July 2016 - December 2018</span> <br> <span class="text-primary">(2 years 6 Months)</span> </div> </div> </div> </section> <hr class="m-0" /> <!-- Education--> <section class="resume-section p-3 p-lg-5 d-flex flex-column" id="education"> <div class="my-auto"> <h2 class="mb-5">Education</h2> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">New York Univeristy</h3> <div class="subheading mb-3">Master of Science, Computer Science</div> <p>GPA: 3.82/4</p> <p>Coursework:<br /> Design and Analysis of Algorithms<br /> Big Data<br /> Java Programming<br /> Cloud computing<br /> Machine Learning<br /> Operating Systems<br /> Computer Networks<br /> Principle of Database Systems <br /> Aplication Security <br /> </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">September 2019 - May 2021</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row"> <div class="resume-content mr-auto"> <h3 class="mb-0">Dayananda Sagar College of Engineering</h3> <div class="subheading mb-3">Bachelor of Engineering, Information Science and Engineering</div> <p>GPA: 3.82/4</p> <p>Coursework:<br /> Data structures and Algorithms<br /> Software Engineering<br /> Object-Oriented Analysis and Design<br /> Database Management System<br /> Computer Networks<br /> Unix System Programming<br /> Programming the Web<br /> Information and Network Security<br /> Data Warehousing and Mining<br /> </div> <div class="resume-date text-md-right"> <span class="text-primary">September 2012 - June 2016</span> </div> </div> </div> </section> <hr class="m-0" /> <!-- Skills--> <section class="resume-section p-3 p-lg-5 d-flex flex-column" id="skills"> <div class="my-auto"> <h2 class="mb-5">Skills</h2> <div class="subheading mb-3">Programming Languages</div> <p>Java, Python, JavaScript, Typescript, C, HTML, CSS, JSON, XML</p> <div class="subheading mb-3">Databases</div> <p>MySQL, MongoDB, DynamoDB</p> <div class="subheading mb-3">Tools &amp; Frameworks</div> <p>NodeJS, REST API’s, Kafka, Apache Spark, Elastic Search, Kibana, Git, Swagger, Postman, Docker</p> <div class="subheading mb-3">AWS Services</div> <p>EC2, S3, Lambda, Lex, Kinesis, Rekognition, SNS, SQS, API Gateway, Transcribe, VPC, ElasticSearch, AWS CloudFormation, Terraform</p> <ul class="list-inline list-icons"> <li class="list-inline-item"> <i class="devicons devicon-java-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-python-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-javascript-plain"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-typescript-plain"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-c-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-html5-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-css3-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-mongodb-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-mysql-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-nodejs-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-express-original-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-bootstrap-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-docker-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-git-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-github-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-amazonwebservices-plain-wordmark"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-linux-plain"></i> </li> <li class="list-inline-item"> <i class="devicons devicon-ubuntu-plain-wordmark"></i> </li> </ul> <div class="subheading mb-3">Workflow</div> <ul class="fa-ul mb-0"> <!-- <li> <span class="fa-li"><i class="fas fa-check"></i></span> Mobile-First, Responsive Design </li> --> <li> <span class="fa-li"><i class="fas fa-check"></i></span> Cross Functional Teams </li> <li> <span class="fa-li"><i class="fas fa-check"></i></span> Agile Development & Scrum </li> <!-- <li> <span class="fa-li"><i class="fas fa-check"></i></span> Cross Browser Testing & Debugging </li> --> </ul> </div> </section> <hr class="m-0" /> <!-- Projects--> <section class="resume-section p-3 p-lg-5 d-flex flex-column" id="projects"> <div class="my-auto"> <h2 class="mb-5">Projects</h2> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="https://github.com/maheshg23/Smart-Door-Authentication-System/" target="_blank">Smart Door Authentication System</a></h3> <p> Developed a serverless, microservice driven web app that authenticates users based on real-time images captured via Kinesis. It builds a distributed system that authenticates people and provides them with access to a virtual door. AWS Kinesis Video Stream would record the real-time video and Recognition would process the image and match it with existing valid faces that were added before. The User faceId and OTP information were stored in DynamoDB table. Endpoints were created in API Gateway and AWS Lambda was used as the connector between services.<br /> • Technologies - AWS Kinesis, Rekognition, SNS, Lambda, S3, DynamoDB, API gateway. </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">May 2020</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="https://github.com/maheshg23/Voice-Based-Photo-Album-Search" target="_blank">Voice Based Photo Album Search</a> </h3> <p> A voice & text-based serverless web app for searching of photos stored in S3. The App contains a Virtual private Cloud instance that is configured to implement secure data flow between client applications and servers. There is an Elastic Search instance inside the VPC that stores the indices of the images. AWS Rekognition services would tag the photos and the Elastic Search instance would index them at the time of Upload.<br /> • Technologies- AWS VPC, Rekognition, Lex, Transcribe, Elastic Search, Lambda, S3. </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">April 2020</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="https://github.com/maheshg23/Dining-Concierge-Chatbot" target="_blank">AI Customer Service Chatbot</a> </h3> <p> Developed a serverless web app that gives recommendations of restaurants in NYC by using AWS cloud-based services. Queried and scrapped out the data from the Yelp API in Python and stored it in DynamoDB and Elastic Search. Configured an API Gateway and Lambda function to handle post and get requests between the web app and AWS Lex. Worked with AWS Lex to extracted query parameters for search and sent a message to the user via AWS SNS with the search results.<br /> • Technologies: AWS Services ( Lambda, Lex, API Gateway, ElasticSeartch, DynamoDB) </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">March 2020</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="https://github.com/maheshg23/Life-Expectancy-Predictor-BigDataProject" target="_blank">Life Expectancy Predictor</a></h3> <p> The goal was to use Big data technologies to predict the average life expectancy of people in different countries using a number of economic factors that affect it. Used historical data to predict the current life expectancy given the data for the related economic factors of a country. The project was scalable to huge data sets. Data was taken as a stream of inputs using Kafka and Spark Streaming and then it was stored in Cassandra Database. Spark was used to do ETL operations on the data and then SparkML would predicit the Life Expectancy of a region based on the input parameters. After this we stored the results of the model in Elastic Search instance and then used Kibana to display the analysis using various graphics.<br /> • Technologies: Kafka, Spark, SparkML, Cassandra, Elastic Search, Kibana </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">November 2019</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="https://github.com/maheshg23/OS_SystemCalls" target="_blank">OS System Calls</a></h3> <p> Used xv6 Operating system to implement my own shell. Created Command Execution, I/O Redirection, and Pipes command logics. Added new System Calls in xv6 - date and dup2 </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">December 2019</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="#projects" target="_blank">Credit Card Transaction With Face Recognition Authentication</a></h3> <p> Developed a software solution that aims to provide secure Credit Card Transactions to a credit card user in order to avoid Internet fraud. The software uses Face Recognition technology and authenticates the online credit card transaction performed by the user to minimize the risk of online frauds and adds an extra layer of security. The proposed system describes a method for credit card transaction system which will integrate with the face detection and face recognition technology using Haar Cascade and GLCM algorithms, respectively<br /> • Technologies: Java, JSP, Servlets, MySQL. </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">May 2016</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="#projects" target="_blank">Payroll Management System</a></h3> <p> I had done this project during the 12th Grade to gain practical knowledge about the technologies used. I developed a portal where we can log in and check out the database of the employees in a company and also add and delete records. I can also check out the best employee based on performance ratings. All this was done using a custom dummy SQL in house database. This was a simple mini-project during the school days<br /> • Technologies: Java, JDBC connector, MySQL, NetbeansIDE, Java Swings. </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">April 2012</span> </div> </div> </div> </section> <hr class="m-0" /> <!-- Certifications--> <section class="resume-section" id="certifications"> <div class="resume-section-content"> <h2 class="mb-5">Certifications</h2> <ul class="fa-ul mb-0"> <li> <span class="fa-li"><i class="fas fa-trophy text-warning"></i></span> <a href="https://confirm.udacity.com/KYKCXF2G" target="_blank">AWS Cloud Architect</a> By Udacity in July 2020. </li> <br /> <li> <span class="fa-li"><i class="fas fa-trophy text-warning"></i></span> <a href="https://confirm.udacity.com/VV7GST2U" target="_blank">Blockchain Developer</a> By Udacity in May 2020. </li> <br /> <li> <span class="fa-li"><i class="fas fa-trophy text-warning"></i></span> <a href="https://www.coursera.org/account/accomplishments/certificate/QLH2RJ9DTSRN" target="_blank">Machine Learning</a> By Stanford Online in April 2020. </li> <br /> <li> <span class="fa-li"><i class="fas fa-trophy text-warning"></i></span> <a href="https://www.certmetrics.com/infor/public/badge.aspx?i=24&t=c&d=2019-05-06&ci=IN00127953" target="_blank">Infor Certified M3 Integration Consultant v13.3 (M3-INTC133-100)</a> by Infor in May 2019. </li> </ul> </div> </section> <!-- Publications --> <section class="resume-section" id="publications"> <div class="resume-section-content"> <h2 class="mb-5">Publications</h2> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0"><a href="http://www.ijircce.com/upload/2016/june/20_CREDIT.pdf" target="_blank">Credit Card Transaction Using Face Recognition Authentication</a></h3> <div class="subheading mb-3">Authors: <NAME>, <NAME>, <NAME>, <NAME></div> <p> Published in the <a href="http://www.ijircce.com/" target="_blank">International Journal of Innovative Research in Computer and Communication Engineering (IJIRCCE)</a><br /><br /> This paper proposes a method for a credit card transaction system that will integrate with face detection and face recognition technology using Haar Cascade and GLCM algorithms, respectively. Our solution proposes a technique by which the features extracted from the image clicked during the payment made by the user on the e-commerce portal will be compared to the features from the training dataset of the respective user. Features extracted from the Images stored in an administrator database acts as the training data set for authentication purposes. <br /> <br /> <a href="http://www.ijircce.com/upload/2016/june/20_CREDIT.pdf" target="_blank">Publication</a> </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">June 2016</span> </div> </div> </div> </section> <!-- Organizations--> <section class="resume-section p-3 p-lg-5 d-flex flex-column" id="extracurriculars"> <div class="my-auto"> <h2 class="mb-5">Organizations</h2> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">NYU IT - Global Office of Information Security (GOIS)</h3> <div class="subheading mb-3">Graduate Research Asistant</div> <p> • Implementing a new GRC RSAM Module for internal NYU departments. Working on data migration of the legacy data from word documents into the RSAM tool using RestAPI's. <br /> • Familiarizing with the RSM Software tool and understanding the Database Schema and testing out the RestAPI’s. <br /> • Worked on Corelink Software (an internal NYU Implementation) cloud network that can send and receive data from any device. <br /> • Researching on the Secure Data Environments across various universities on multiple domains and finalizing a report. <br /> </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">July 2020 - Present</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">iCoders Group</h3> <div class="subheading mb-3">Head Coordinator</div> <p> As a volunteer initially and then later becoming the head of the Technical Wing at Dayananda Sagar College of Engineering (Information Science Dept), I have organized several Intra and Intercollege coding competitions and also conducted other technical events, quiz and event planning. I also managed the volunteers assigned to this group to plan the events frequently. </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">August 2015 - June 2016</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">GLUG (GNU Linux User's Group) - DSCE</h3> <div class="subheading mb-3">Member of the founding committee</div> <p> Being one of the co-founders of GLUG-DSCE, a self-driven student organization on-campus affiliated to Free Software Movement Karnataka (FSMK), I have contributed as a volunteer, active member, and a resource person. <br /> I have upheld the mission to spread awareness on free and open-source software, GNU, and Free software movement ideology. I have played a pivotal role in bridging the organization with the home-grown student club GLUG-DSCE (Global Linux Users' Group). I have volunteered and organized various technical activities throughout the Karnataka State. I have shared my technical knowledge as a resource person for multiple technical events and workshops. </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">February 2013 - June 2016</span> </div> </div> <div class="resume-item d-flex flex-column flex-md-row mb-5"> <div class="resume-content mr-auto"> <h3 class="mb-0">Free Software Movement Karnataka</h3> <div class="subheading mb-3">Coordinator</div> <p> During my association with the organization, I have contributed as a volunteer, co-coordinator. I have participated and raised concerns about social matters such as Net Neutrality. I have actively engaged in technical summer camps and Sunday schools that provide a common platform for students, industrialists, and educationalists to interact and exchange knowledge about the trending technological advancements and burning social concerns. </p> </div> <div class="resume-date text-md-right"> <span class="text-primary">February 2013 - November 2015</span> </div> </div> </div> </section> <!-- Contact--> <section class="resume-section p-3 p-lg-5 d-flex flex-column" id="contact"> <div class="my-auto"> <h2 class="mb-5">CONTACT ME</h2> <!-- <h4 class="mb-0"><br /> --> <a href="tel:+13476523062" target="_blank">(+1) 3476523062 </a><br /> <a href="mailto:<EMAIL>" target="_blank"><EMAIL></a><br /> <a href="mailto:<EMAIL>" target="_blank"><EMAIL></a><br /> Brooklyn, New York 11220 <!-- </h4> --> <br /> <br /> <div class="social-icons"> <a class="social-icon" href="https://www.linkedin.com/in/maheshg23/" target="_blank"><i class="fab fa-linkedin-in"></i></a> <a class="social-icon" href="https://github.com/maheshg23" target="_blank"><i class="fab fa-github"></i></a> <!-- <a class="social-icon" href="#"><i class="fab fa-twitter"></i></a> --> <a class="social-icon" href="https://www.instagram.com/maheshg_23/" target="_blank"><i class="fab fa-instagram"></i></a> </div> </div> </section> </div> <!-- Bootstrap core JS--> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script> <!-- Third party plugin JS--> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script> <!-- Core theme JS--> <script src="js/scripts.js"></script> </body> </html>
html
<filename>.vscode/tasks.json // A task runner that calls the PXT compiler and { "version": "2.0.0", // The command is pxt. Assumes that PXT has been installed using npm install -g pxt "command": "pxt", "tasks": [] }
json
import LinkedList from '../linked-list/LinkedList'; const HASH_MAP_SIZE = 16; export default class HashMap { constructor(size = HASH_MAP_SIZE) { this.size = size; this.buckets = new Array(size); this.keys = {}; for (let i = 0; i < this.size; i++) { this.buckets[i] = new LinkedList(); } } delete(key) { const hash = this.hash(key); this.buckets[hash].delete((node) => node.key === key); delete this.keys[key]; } get(key) { const node = this.getNode(key); return node ? node.value : null; } getKeys() { return Object.keys(this.keys); } getNode(key) { const hash = this.hash(key); return this.buckets[hash].find((node) => node.key === key); } hash(key) { let hash; if (typeof key === 'string') { const getUnicodeSumFromString = (key) => { return key.split('').reduce( (sum, character) => sum + character.charCodeAt(0), 0 ); }; hash = getUnicodeSumFromString(key); } else if (typeof key === 'number') { hash = key; } else { throw 'Key is neither a string nor a number.' } return hash % this.buckets.length; } has(key) { return !!this.getNode(key); } set(key, value) { let node = this.getNode(key); if (node) { node.value = value; } else { const hash = this.hash(key); this.buckets[hash].append({ 'key': key, 'value': value }); this.keys[key] = hash; } } }
javascript