text
stringlengths
1
1.04M
language
stringclasses
25 values
A website is a collection of publicly accessible, woven Websites that share a solitary domain name. Web sites can be produced as well as preserved by a private, group, company or organization to offer a variety of purposes. With each other, all publicly available web sites comprise the Net. Web sites are available in a virtually limitless range, consisting of instructional sites, information sites, online forums, social networks sites, shopping websites, and so forth. What is Pligg? Pligg is an open source content management system that lets you easily create your own user-powered website.
english
Greece, officially the Hellenic Republic, is a country located in Southeast Europe. Its population is approximately 10.7 million as of 2018; Athens is its largest and capital city, followed by Thessaloniki. Situated on the southern tip of the Balkans, Greece is located at the crossroads of Europe, Asia, and Africa. It shares land borders with Albania to the northwest, North Macedonia and Bulgaria to the north, and Turkey to the northeast.
english
<reponame>ptrick/hdfs-hive-sql-playground<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:d09b07e072745159c5a79fda89ec6f8e6da95268e37e24671049c2655c75a67e size 19266
html
<gh_stars>0 {"em":[],"bites":[{"location":{"latitude":52.91,"longitude":6.13}},{"location":{"latitude":51.51,"longitude":4.31}},{"location":{"latitude":52.8,"longitude":5.78}},{"location":{"latitude":52.72,"longitude":4.67}},{"location":{"latitude":53.36,"longitude":5.85}},{"location":{"latitude":43.48,"longitude":-3.53}},{"location":{"latitude":51.06,"longitude":5.88}},{"location":{"latitude":53.14,"longitude":7.02}},{"location":{"latitude":53.13,"longitude":6.89}},{"location":{"latitude":52.34,"longitude":5.73}},{"location":{"latitude":52.84,"longitude":6.75}},{"location":{"latitude":52.95,"longitude":6.82}},{"location":{"latitude":52.35,"longitude":5.63}},{"location":{"latitude":52.53,"longitude":6.46}},{"location":{"latitude":50.9,"longitude":5.76}},{"location":{"latitude":51.51,"longitude":4.87}},{"location":{"latitude":52.55,"longitude":6.56}},{"location":{"latitude":52.4,"longitude":5.85}},{"location":{"latitude":52.76,"longitude":6.53}},{"location":{"latitude":51.43,"longitude":4.88}},{"location":{"latitude":52.6,"longitude":4.71}},{"location":{"latitude":52.02,"longitude":6.02}},{"location":{"latitude":52.09,"longitude":4.31}},{"location":{"latitude":52.18,"longitude":6.4}},{"location":{"latitude":51.18,"longitude":5.9}},{"location":{"latitude":52.42,"longitude":4.63}},{"location":{"latitude":52.67,"longitude":5.89}},{"location":{"latitude":52.72,"longitude":6.99}},{"location":{"latitude":51.18,"longitude":5.24}}],"other":[],"fever":[]}
json
The Mariana Trench, the deepest part of the ocean, is found to be alarmingly polluted with physical trash and chemicals. Plastics, which are not easily broken down by organisms, and persistent organic pollutants (POPs), including banned chemicals, are contaminating the ocean floor. This pollution not only harms marine life but also poses a threat to human health, as these chemicals can enter the food chain. Moreover, ocean pollution reduces oxygen levels and causes mass death of marine life and reproductive issues for animals. The article highlights the need to address ocean pollution and its consequences.
english
<reponame>LaurentPlagne/Legolas<gh_stars>0 /** * project DESCARTES * * @file DiagonalMatrixContainer.hxx * * @author <NAME> * @date june 2004 - january 2005 * * @par Modifications * - author date object * * (c) Copyright EDF R&D - CEA 2001-2005 */ #ifndef __LEGOLAS_DIAGONALMATRIXCONTAINER_HXX__ #define __LEGOLAS_DIAGONALMATRIXCONTAINER_HXX__ #include "UTILITES.hxx" #include "Legolas/Matrix/MatrixStructures/MatrixBasicContainer/MatrixBasicEngine.hxx" #include "Legolas/Matrix/MatrixStructures/MatrixBasicContainer/MatrixBasicData.hxx" namespace Legolas{ class DiagonalMatrixContainer { public: template < class MATRIX_OPTIONS, class ELEMENT_DATA_DRIVER> class Engine : public MatrixBasicEngine<ELEMENT_DATA_DRIVER> { public: typedef typename ELEMENT_DATA_DRIVER::Data ElementData; typedef typename ELEMENT_DATA_DRIVER::RealType RealType; typedef typename MATRIX_OPTIONS::VectorContainer VectorContainer; typedef typename VectorContainer::template Engine<ElementData> VectorInterface; typedef typename VectorInterface::Vector Vector; class Data : public MatrixBasicData<ELEMENT_DATA_DRIVER>{ public: Data( void ):diagonal_() { MESSAGE("DiagonalMatrixContainer.. Ctor"); } inline Vector & diagonal( void ) { return diagonal_ ;} inline const Vector & diagonal( void ) const { return diagonal_ ;} inline void push_back(const ElementData & inputElement){ diagonal_.push_back(inputElement); } private: int nrows_; Vector diagonal_; }; template <int LEVEL> static inline void resize(const MatrixShape<LEVEL> & shape, Data & data){ data.setColShape()=shape.getColShape(); data.setRowShape()=shape.getRowShape(); VectorInterface::resize(shape.nrows(),data.diagonal()); } static inline ElementData & diagonalGetElement(int row, Data & data){ return VectorInterface::getElement(row,data.diagonal()); } static inline const ElementData & diagonalGetElement(int row, const Data & data){ return VectorInterface::getElement(row,data.diagonal()); } }; }; } #endif
cpp
<filename>index/c/comfort-meatballs-recipe.json<gh_stars>10-100 { "directions": [ "For the meatballs: In bowl, combine the ground beef and oats. Pour in the milk, and then add the onions, salt and pepper. Stir to combine. Roll the mixture into tablespoon-size balls and refrigerate them for 30 to 45 minutes to firm.", "Preheat the oven to 350 degrees F.", "Heat the canola oil in a large skillet over medium heat. Dredge the meatballs in the flour, and then brown the meatballs in batches until light brown. As they brown, place them into a rectangular baking dish.", "For the sauce: Stir together the ketchup, onions, vinegar, sugar, Worcestershire sauce and hot sauce. Drizzle the sauce evenly on the meatballs.", "Bake until bubbly and hot, about 45 minutes." ], "ingredients": [ "1 1/2 pounds ground beef", "3/4 cup quick oats", "1 cup milk", "3 tablespoons very finely minced onion", "1 1/2 teaspoons salt", "Plenty of ground black pepper", "4 tablespoons canola oil", "1/2 cup all-purpose flour", "1 cup ketchup", "4 to 6 tablespoons minced onion", "3 tablespoons distilled white vinegar", "2 tablespoons sugar", "2 tablespoons Worcestershire sauce", "Dash of hot sauce, such as Tabasco" ], "language": "en-US", "source": "www.foodnetwork.com", "tags": [ "Easy Main Dish Recipes", "Easy Recipes", "Main Dish Recipes", "Sauce Recipes", "Meatballs", "Beef", "Meat" ], "title": "Comfort Meatballs", "url": "http://www.foodnetwork.com/recipes/ree-drummond/comfort-meatballs-recipe" }
json
Mumbai: Chief Minister Devendra Fadnavis’ dream project the Mumbai-Nagpur Expressway also known as Samruddhi Corridor again on headlines, as the MSRDC has invited technical and financial bids from shortlisted contractors by end of March . The construction of the expressway has been divided into 16 packages. Last week, bids were invited for 13 of the 16 packages, evaluation and selection of bids will take another month after March. The MSRDC, its executing authority has already missed two deadlines to begin on-ground work for the ambitious Rs46,000 crore project October 2017 and January 2018 owing to strong resistance from farmers over land acquisition. Work is now expected to start by May.
english
{% extends 'panel/base.html' %} {% load crispy_forms_tags %} {% load static %} {% block main_content %} <center> <form method="POST" action="/sys/config/" enctype="multipart/form-data" id="upload-form-modal"> <div class="card card-primary card-outline" style="width: 50%"> <div class="card-header"> {% csrf_token %} {{ form|crispy|safe }} </div> <div class="card-footer"> <div class="float-right"> <button type="submit" class="btn btn-primary">Save</button> </div> </div> </div> </form> </center> {% endblock %}
html
from django.apps import AppConfig class DbManagerConfig(AppConfig): name = 'db_manager'
python
<reponame>MatthewHartstonge/Kassy { "name": "insult", "version": 2.1, "startup": "insult.js", "command": "insult", "help": [ [ "{{commandPrefix}}insult", "Will almost certainly return profanity." ] ] }
json
Mumbai: Singer Jonita Gandhi is happy with the response to her latest track ‘Top Tucker’. The singer has collaborated with the musician Badshah for the track and her experience has been wonderful. Besides Top Tucker, Jonita had two other releases on Friday. Her Tamil track ‘Arakkiye’ and Punjabi track ‘Kya Baat Aa’ also reached music lovers on the same day. At the end of 2020, Jonita released a festive holiday track, ‘This Christmas’, and also recreated an English version of ‘Kaun Tujhe’ with UK’s Arjun. The year wrapped with the release of ‘Jheeni Jheeni’ from Salim-Sulaiman’s long awaited project ‘Bhoomi 2.0’ where Jonita has sung in collaboration with Swaroop Khan.
english
People's signs arose when people still could not explain the nature of many things. So, for example, they did not know that the birds fly very low before the rain to catch the insects. After all, humidity, which is already felt in the air by insects, burdens their wings, and they can not fly high. Birds who hunt for them, while also flying low. So the sign was born: "Swallows fly low - be the rain. " And how many there are signs that are associated with the itching of this or that area of the human body: what is the lip scratched to, what are the palms of it itching, what the tip of the nose itches, and so on. Scientists have long discovered many laws of nature and human existence, but the signs do not go away from our lives. Moreover, many of us willingly believe them, try to observe the old rituals and rituals. Most of them are related to the world of good and evil spirits. Our ancestors believed in spirits and associated with them a lot of signs. So, it is worth remembering the following: • You can not come back from halfway - on the threshold waiting for the spirits of ancestors who can take away luck; • Before leaving, take a seat on the path - enter into the confusion of spirits trying to prevent on the road; • The lips it itch - to kisses - the spirits prepare a love date; • Do not eat with a knife, otherwise you will become angry - you will anger the spirits; • You can not take out the garbage out of the hut after sunset - to appease the night spirits with cleanliness. What does the upper lip scratch? People have long noticed that the lips itch for a reason. And the meaning is even what lip itchs more. Unequivocally this question can be answered as follows: lips burn and scrape - to kisses. Our ancestors talked about it this way: I wondered what my upper lip scratches - wait for kisses with a man. For a woman, this could mean a quick love date. But for a man - the arrival of a close relative of a male. What is itching for the lower lip? Have you ever wondered what the lower lip is itching? After all, this has a slightly different meaning. If you feel this, then know that you will have to kiss soon with a woman or a child. Most likely, it will be friendly, and not at all love kisses. If you have children and grandchildren - wait for them to visit. Your house will be filled with loud laughter and children's voices. What could be better than this? Lips scrape - to the gift? It should be noted that there is another meaning of this sign, completely unrelated to the first. At some point you felt itching in your mouth and thought about what itching to lip? This sign means the following: wait for the guests from relatives or close people. Maybe you already know who wants to please you with a gift? Or maybe you are going to celebrate the name day in the circle of your relatives and friends? Then it is quite understandable why they chop your lips. You are thus looking forward to receiving kisses and congratulations from your loved ones, as well as preparing to receive gifts and souvenirs from them. So, we found out what the lip is about. Whether to believe in this sign or not is your business. But admit, it is so pleasant to expect kisses from your loved one or a long-awaited gift from someone! Perhaps, it is the expectation that will draw these pleasant moments into your life.
english
<reponame>FaraiMutero/dhis2-android-sdk /* * Copyright (c) 2015, University of Oslo * * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of the HISP project nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.hisp.dhis.android.sdk.core.controllers.common; import org.hisp.dhis.android.sdk.core.preferences.DateTimeManager; import org.hisp.dhis.android.sdk.core.models.ResourceType; import org.hisp.dhis.android.sdk.persistence.utils.DbUtils; import org.hisp.dhis.android.sdk.models.common.base.IIdentifiableObjectStore; import org.hisp.dhis.android.sdk.models.common.base.IdentifiableObject; import org.hisp.dhis.android.sdk.models.common.meta.IDbOperation; import org.joda.time.DateTime; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Queue; public abstract class ResourceController<T extends IdentifiableObject> implements IDataController<T> { public <T extends IdentifiableObject> void saveResourceDataFromServer(ResourceType resourceType, IIdentifiableObjectStore<T> store, List<T> updatedItems, List<T> persistedItems, DateTime serverDateTime) { saveResourceDataFromServer(resourceType, null, store, updatedItems, persistedItems, serverDateTime); } public <T extends IdentifiableObject> void saveResourceDataFromServer(ResourceType resourceType, String extraIdentifier, IIdentifiableObjectStore<T> store, List<T> updatedItems, List<T> persistedItems, DateTime serverDateTime) { Queue<IDbOperation> operations = new LinkedList<>(); operations.addAll(DbUtils.createOperations(store, persistedItems, updatedItems)); DbUtils.applyBatch(operations); DateTimeManager.getInstance() .setLastUpdated(resourceType, extraIdentifier, serverDateTime); } public Map<String, String> getBasicQueryMap() { final Map<String, String> map = new HashMap<>(); map.put("fields", "id"); return map; } public Map<String, String> getAllFieldsQueryMap(DateTime lastUpdated) { final Map<String, String> map = new HashMap<>(); map.put("fields", "[:all]"); if (lastUpdated != null) { map.put("filter", "lastUpdated:gt:" + lastUpdated.toString()); } return map; } }
java
{"id":"00145","group":"easy-ham-2","checksum":{"type":"MD5","value":"a62431b99d739b3aab6139b417ed49a7"},"text":"From <EMAIL> Mon Jul 29 21:48:59 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id 7C6B4440F1\n\tfor <jm@localhost>; Mon, 29 Jul 2002 16:48:55 -0400 (EDT)\nReceived: from phobos [127.0.0.1]\n\tby localhost with IMAP (fetchmail-5.9.0)\n\tfor jm@localhost (single-drop); Mon, 29 Jul 2002 21:48:55 +0100 (IST)\nReceived: from lugh.tuatha.org (<EMAIL> [192.168.3.115]) by\n dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g6TKmVq18946 for\n <<EMAIL>>; Mon, 29 Jul 2002 21:48:31 +0100\nReceived: from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org\n (8.9.3/8.9.3) with ESMTP id VAA32133; Mon, 29 Jul 2002 21:46:53 +0100\nReceived: from hibernia.jakma.org (hibernia.clubi.ie [172.16.58.39]) by\n lugh.tuatha.org (8.9.3/8.9.3) with ESMTP id VAA32053 for <<EMAIL>>;\n Mon, 29 Jul 2002 21:46:24 +0100\nReceived: from fogarty.jakma.org (fogarty.jakma.org [192.168.0.4]) by\n hibernia.jakma.org (8.11.6/8.11.6) with ESMTP id g6TKr5w03279;\n Mon, 29 Jul 2002 21:53:05 +0100\nReceived: from localhost (paul@localhost) by fogarty.jakma.org\n (8.11.6/8.11.6) with ESMTP id g6TKr2J21272; Mon, 29 Jul 2002 21:53:03\n +0100\nX-Authentication-Warning: fogarty.jakma.org: paul owned process doing -bs\nDate: Mon, 29 Jul 2002 21:53:01 +0100 (IST)\nFrom: <NAME> <<EMAIL>>\nX-X-Sender: pa<EMAIL>ma.org\nTo: <NAME> <<EMAIL>>\nCc: ilug@linux.ie\nSubject: Re: [ILUG] ipfw vs ipchains vs iptables\nIn-Reply-To: <<EMAIL>>\nMessage-Id: <<EMAIL>3<EMAIL>>\nX-Nsa: iraq saddam hammas hisballah rabin ayatollah korea vietnam revolt\n mustard gas\nX-Dumb-Filters: aryan marijuiana cocaine heroin hardcore cum pussy porn\n teen tit sex lesbian group\nMIME-Version: 1.0\nContent-Type: TEXT/PLAIN; charset=US-ASCII\nSender: ilug-admin@linux.ie\nErrors-To: ilug-admin@linux.ie\nX-Mailman-Version: 1.1\nPrecedence: bulk\nList-Id: Irish Linux Users' Group <ilug.linux.ie>\nX-Beenthere: ilug@linux.ie\n\nOn Mon, 29 Jul 2002, <NAME> wrote:\n\n> Well, that doesn't help you reading your listing.\n\ni can read it fine. :)\n\nif you want readability - a good script is worth just as much.\n\n> > isnt the ipfw code in BSD brand-new aswell? (the old code was\n> > rewritten for OpenBSD recently due to licensing concerns).\n> \n> I think you're talking about IPFilter, and OpenBSD's new PF code.\n> Now who's talking FUD :)\n\nah doh! yes.\n\ni thought the firewalling code on all the BSDs was fairly related -\nsorry. So FreeBSD's ipfw is not encumbered in the same way the old\nOBSD firewalling was?\n\n> Perhaps, although I think when seriously considering something like\n> a firewall, tried and trusted means a hell of a lot. IPFilter would\n> probably win that race.\n\nto an extent, i guess so, yes. but i've a few boxes with reasonable \nuptimes that run netfilter/iptables. (i've one that has crashed twice \nnow after 60+ day uptimes. but that doesnt seem to be netfilter).\n\ncourse, there's a lot more that can go wrong with a firewall than the\nfirewall code. in that case get 2 boxes and heartbeat them.\n\n> I was talking in terms of the actual firewall. If the company in\n> question knows plenty about Linux and nothing about FreeBSD, I'd go\n> with a Linux box, merely because when something goes wrong (that\n> isn't got to do with ipfw/ipchains/ipfilter), then someone knows\n> how to fix it.\n\nindeed. couldnt agree more.\n\n(that's the nice thing about *nix - fact we /can/ have nit-picking \narguments about which *nix and firewall code is better).\n\n> As I said before, I have little to no in-depth experience with\n> netfilter, I'm aware of it's basic capabilities and had a quick\n> look at it's features in early 2.4 editions but that's it.\n\ni've no experience of ipfw. (closest i've come is looking at IPFilter \nfor IRIX - but it had a problem in that it wasnt maintained \nanymore. however, while the englishy syntax is nice, i dont think \niptables command <args> syntax is a big obstacle).\n\nanyway.. there's choice. and as i understand it, with the advent of \nnetfilter/iptables there's now almost nothing between them from a \ntechnical POV. (apart from ipfw being in use a lot longer).\n\nregards,\n-- \n<NAME>\<EMAIL>\<EMAIL>.<EMAIL>\tKey ID: 64A2FF6A\nFortune:\nWhat a strange game. The only winning move is not to play.\n\t\t-- WOP, \"War Games\"\n\n\n-- \nIrish Linux Users' Group: <EMAIL>\nhttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.\nList maintainer: listmaster@linux.ie\n\n\n"}
json
<gh_stars>0 { "name": "jqueryvalidations", "version": "0.1.0", "description": "Reference of jQuery's Form Validation", "private": true, "main": "index.js", "scripts": { "start": "browser-sync start --server --watch", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "<NAME>", "license": "MIT", "keywords": [ "jquery", "asp.net", "mvc", "validation", "unobtrusive" ], "repository": { "type": "git", "url": "git://github.com/eocampo/jqueryvalidations2017.git" }, "devDependencies": { "browser-sync": "^2.26.14" }, "dependencies": { "jquery": "^3.5.1", "jquery-validation": ">=1.16" } }
json
<reponame>s-i-l-k-e/django-data-interrogator from django.contrib.auth.decorators import user_passes_test from django.utils.decorators import method_decorator from data_interrogator.admin.forms import AdminInvestigationForm, AdminPivotTableForm from data_interrogator.interrogators import Allowable from data_interrogator.views import InterrogationView, InterrogationAutocompleteUrls, PivotTableView, \ InterrogationAutoComplete class AdminInterrogationRoom(InterrogationView): template_name = 'admin/analytics/analytics.html' form_class = AdminInvestigationForm report_models = Allowable.ALL_MODELS allowed = Allowable.ALL_APPS excluded = [] @method_decorator(user_passes_test(lambda u: u.is_superuser)) def get(self, request): return super(AdminInterrogationRoom,self).get(request) class AdminInterrogationAutocompleteUrls(InterrogationAutocompleteUrls): interrogator_view_class = AdminInterrogationRoom interrogator_autocomplete_class = InterrogationAutoComplete class AdminPivotTableView(PivotTableView): form_class = AdminPivotTableForm template_name = 'admin/analytics/pivot.html'
python
<filename>A/Automate.json { "word": "Automate", "definitions": [ "convert (a process or facility) to largely automatic operation." ], "parts-of-speech": "Verb" }
json
[{"group":"Plants","obs_count":159,"login":"greenline","icon_url":null,"taxon_id_string":"211194,311249\u0026place_id=10292","rank":1},{"group":"Mammals","obs_count":100,"login":"cullin","icon_url":null,"taxon_id_string":"40151\u0026place_id=10292","rank":2},{"group":"Insects","obs_count":53,"login":"dcapillae","icon_url":"https://static.inaturalist.org/attachments/users/icons/172736/medium.jpg?1562976405","taxon_id_string":"47158\u0026place_id=10292","rank":3},{"group":"Birds","obs_count":34,"login":"ldacosta","icon_url":"https://static.inaturalist.org/attachments/users/icons/29729/medium.jpeg?1475543064","taxon_id_string":"3\u0026place_id=10292","rank":4},{"group":"Reptiles and Amphibians","obs_count":24,"login":"martinho_cabana","icon_url":"https://static.inaturalist.org/attachments/users/icons/375329/medium.jpeg?1530960568","taxon_id_string":"26036,20978\u0026place_id=10292","rank":5},{"group":"Arachnids","obs_count":7,"login":"flight69","icon_url":"https://static.inaturalist.org/attachments/users/icons/3098/medium.jpg?1567528418","taxon_id_string":"47119\u0026place_id=10292","rank":6},{"group":"Molluscs","obs_count":6,"login":"flight69","icon_url":"https://static.inaturalist.org/attachments/users/icons/3098/medium.jpg?1567528418","taxon_id_string":"47115\u0026place_id=10292","rank":7},{"group":"Other Species","obs_count":5,"login":"austinsmith","icon_url":"https://static.inaturalist.org/attachments/users/icons/977825/medium.png?1531050518","taxon_id_string":"85493,47549,47534,144128,48222,47491,47686,130868,52319\u0026place_id=10292","rank":8},{"group":"Fungi","obs_count":3,"login":"fungusbungus","icon_url":"https://static.inaturalist.org/attachments/users/icons/1623532/medium.jpg?1571084867","taxon_id_string":"47170\u0026place_id=10292","rank":9},{"group":"Fishes","obs_count":0,"login":null,"icon_url":null,"taxon_id_string":"47178,47273,49231,60450,49099,85497\u0026place_id=10292","rank":10}]
json
<filename>data/outages/2022040200.json [{"region": "DORADO", "area": "DORADO", "zone": "DORADO"}, {"region": "DORADO", "area": "DORADO", "zone": "HIGUILLAR"}, {"region": "GUAYAMA", "area": "GUAYAMA", "zone": "BO. POZUELO (ENTRADA)"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "BO FLORIDA SECT CIMARRONA"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "BO. GARROCHALES"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "BO. MAGUEYES"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "CIMARRONA COURT"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "FLORIDA AFUERA MAGUELLES"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "GARROCHALES"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "PASE REAL SEC CACHETE E"}, {"region": "BARCELONETA", "area": "BARCELONETA", "zone": "URB CITY PARADISE PALMAS ALTA"}, {"region": "AGUAS BUENAS", "area": "AGUAS BUENAS", "zone": "URB SAN ANTONIO"}, {"region": "HUMACAO", "area": "HUMACAO", "zone": "BO. COLLORES"}, {"region": "HUMACAO", "area": "HUMACAO", "zone": "BO. PUNTA SANTIAGO"}, {"region": "FLORIDA", "area": "FLORIDA", "zone": "FLORIDA ADENTRO"}, {"region": "COMERIO", "area": "COMERIO", "zone": "BO CEJAS"}, {"region": "COMERIO", "area": "COMERIO", "zone": "BO. CEJAS"}, {"region": "RINCON", "area": "RINCON", "zone": "BO CRUCES SECTOR LOS PUENTES"}, {"region": "LARES", "area": "LARES", "zone": "BO PILETAS SECT EL COQUI"}, {"region": "ARECIBO", "area": "ARECIBO", "zone": "BO CAMBALACHE"}, {"region": "ARECIBO", "area": "ARECIBO", "zone": "CAS SAN FCO ARECIBO"}, {"region": "ARECIBO", "area": "ARECIBO", "zone": "SECTOR JAREALITO"}, {"region": "LAJAS", "area": "LAJAS", "zone": "BO. CANDELARIA"}, {"region": "LAJAS", "area": "LAJAS", "zone": "BO. LA HAYA"}, {"region": "SABANA GRANDE", "area": "SABANA GRANDE", "zone": "BO RINCON POZO"}, {"region": "SABANA GRANDE", "area": "SABANA GRANDE", "zone": "CASCO URBANO SAB. GRAN"}, {"region": "SAN SEBASTIAN", "area": "SAN SEBASTIAN", "zone": "BO. CULEBRINAS"}, {"region": "SAN SEBASTIAN", "area": "SAN SEBASTIAN", "zone": "BO. GUACIO"}, {"region": "SAN SEBASTIAN", "area": "SAN SEBASTIAN", "zone": "CALABAZAS"}, {"region": "HORMIGUEROS", "area": "HORMIGUEROS", "zone": "COND LA MONSERRATE COURT"}, {"region": "HORMIGUEROS", "area": "HORMIGUEROS", "zone": "HORMIGUEROS"}, {"region": "HORMIGUEROS", "area": "HORMIGUEROS", "zone": "LAVADERO"}, {"region": "GUAYNABO", "area": "GUAYNABO", "zone": "CASCO URBANO GUAYNABO"}, {"region": "GUAYNABO", "area": "GUAYNABO", "zone": "COND IBERIA 2"}, {"region": "GUAYNABO", "area": "GUAYNABO", "zone": "URB. TORRIMAR"}, {"region": "CAROLINA", "area": "CAROLINA", "zone": "MARTIN GONZALEZ"}, {"region": "CAROLINA", "area": "CAROLINA", "zone": "URB REPTO ROSA MARIA"}, {"region": "CAROLINA", "area": "CAROLINA", "zone": "URB. COUNTRY CLUB"}, {"region": "ADJUNTAS", "area": "ADJUNTAS", "zone": "BO PORTUGUEZ"}, {"region": "ADJUNTAS", "area": "ADJUNTAS", "zone": "BO. SAN PATRICIO"}, {"region": "ADJUNTAS", "area": "ADJUNTAS", "zone": "SALTILLO"}, {"region": "ADJUNTAS", "area": "ADJUNTAS", "zone": "VEGAS ARRIBA"}, {"region": "SAN GERMAN", "area": "SAN GERMAN", "zone": "URB LA NUEVA SALAMANCA"}, {"region": "TOA BAJA", "area": "TOA BAJA", "zone": "URB. SAN PEDRO"}, {"region": "BAYAMON", "area": "BAYAMON", "zone": "BO DAJAOS"}, {"region": "AGUADA", "area": "AGUADA", "zone": "BO JAGUEY SECT LOS MATOS"}, {"region": "CAMUY", "area": "CAMUY", "zone": "CIBAO"}, {"region": "PONCE", "area": "PONCE", "zone": "BO. SAN PATRICIO"}, {"region": "PONCE", "area": "PONCE", "zone": "URB. SAN ANTONIO"}, {"region": "CAYEY", "area": "CAYEY", "zone": "ALTURAS DE BEATRIZ"}, {"region": "MANATI", "area": "MANATI", "zone": "BAJURA ADENTRO"}, {"region": "MANATI", "area": "MANATI", "zone": "BO BAJURA ABAJO"}, {"region": "MANATI", "area": "MANATI", "zone": "BO. BAJURA AFUERA"}, {"region": "MANATI", "area": "MANATI", "zone": "CARR 2, COTO N."}, {"region": "SAN JUAN", "area": "SAN JUAN", "zone": "BO. VENEZUELA"}, {"region": "SAN JUAN", "area": "SAN JUAN", "zone": "CALLE LOIZA"}, {"region": "SAN JUAN", "area": "SAN JUAN", "zone": "CALLE TAFT"}, {"region": "SAN JUAN", "area": "SAN JUAN", "zone": "RIO PIEDRAS HEIGHTS"}, {"region": "SAN JUAN", "area": "SAN JUAN", "zone": "URB ROOSEVELT"}, {"region": "SAN JUAN", "area": "SAN JUAN", "zone": "URB SAN GERARDO"}, {"region": "SAN JUAN", "area": "SAN JUAN", "zone": "URB SAN JOSE"}, {"region": "CAGUAS", "area": "CAGUAS", "zone": "CAGUAS MILENIO"}, {"region": "CAGUAS", "area": "CAGUAS", "zone": "URB CAGUAS MILLENIUM II"}, {"region": "CAGUAS", "area": "CAGUAS", "zone": "URB SAN ALFONSO"}, {"region": "MOROVIS", "area": "MOROVIS", "zone": "SAN LORENZO"}, {"region": "MOROVIS", "area": "MOROVIS", "zone": "SECT ALIANZABO FRANQUEZ"}, {"region": "NARANJITO", "area": "NARANJITO", "zone": "BO. CEDRO ARRIBA"}, {"region": "SAN LORENZO", "area": "SAN LORENZO", "zone": "BO. QUEMADO"}]
json
#include "endpoint/device/actions/RadioCalibAction.hpp" #include "endpoint/device/actions/AppAction.hpp" #include "endpoint/device/PilotEvent.hpp" RadioCalibAction::RadioCalibAction(Listener* const _listener): ISkyDeviceAction(_listener) { state = IDLE; } void RadioCalibAction::start(void) { current = 0; monitor->trace("Calibrate radio procedure requested"); state = INITIAL_COMMAND; sendSignal(SignalData::CALIBRATE_RADIO, SignalData::START); } IMessage::MessageType RadioCalibAction::getExpectedControlMessageType(void) const { return IMessage::CONTROL_DATA; } bool RadioCalibAction::isActionDone(void) const { return IDLE == state; } ISkyDeviceAction::Type RadioCalibAction::getType(void) const { return RADIO_CALIB; } std::string RadioCalibAction::getStateName(void) const { switch (state) { case IDLE: return "IDLE"; case INITIAL_COMMAND: return "INITIAL_COMMAND"; case CALIBRATION_COMMAND: return "CALIBRATION_COMMAND"; case BREAKING: return "BREAKING"; case CHECK: return "CHECK"; case CALIBRATION_RESPONSE: return "CALIBRATION_RESPONSE"; case FINAL_COMMAND: return "FINAL_COMMAND"; case CALIBRATION_RECEPTION: return "CALIBRATION_RECEPTION"; default: throw std::runtime_error("RadioCalibAction::getStateName::Unexpected state"); } } void RadioCalibAction::handleReception(const IMessage& message) { switch (state) { case IDLE: case INITIAL_COMMAND: handleIdleReception(message); break; case FINAL_COMMAND: case CHECK: if (IMessage::CONTROL_DATA == message.getMessageType()) { monitor->notifyDeviceEvent(new DeviceEventReceived(message)); } else { except("Unexpeted message received", message); } break; case CALIBRATION_RECEPTION: if (IMessage::CALIBRATION_SETTINGS == message.getMessageType()) { monitor->trace("Calibration settings received, radio calibration successfull"); monitor->notifyDeviceEvent(new DeviceEventReceived(message)); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_ENDED)); monitor->notifyDeviceEvent(new DeviceEventMessage(DeviceEventMessage::INFO, "Radio receiver calibration successfull.")); state = IDLE; listener->startAction(new AppAction(listener)); } else { except("Unexpeted message received", message); } break; default: except("Message received in unexpected state", message); } } void RadioCalibAction::handleSignalReception(const Parameter parameter) { switch (state) { case INITIAL_COMMAND: switch (parameter) { case SignalData::ACK: monitor->trace("Calibrate radio procedure started"); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_STARTED)); state = CALIBRATION_COMMAND; break; case SignalData::NOT_ALLOWED: monitor->trace("Calibrate radio not allowed, breaking"); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_NOT_ALLOWED)); state = IDLE; listener->startAction(new AppAction(listener)); break; default: except("Unexpected signal parameter message received", parameter); } break; case CALIBRATION_RESPONSE: switch (parameter) { case SignalData::ACK: current++; monitor->trace("Calibrate radio response: ACK, chanel: " + std::to_string(current)); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_ACK)); if (current >= 8) { monitor->trace("Switching to CHECK"); state = CHECK; } else { state = CALIBRATION_COMMAND; } break; case SignalData::FAIL: monitor->trace("Calibrate radio response: FAIL"); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_FAIL)); state = CALIBRATION_COMMAND; break; default: except("Unexpected signal parameter message received", parameter); } break; case BREAKING: switch (parameter) { case SignalData::BREAK_ACK: monitor->trace("Radio calibration broken"); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_ENDED)); state = IDLE; listener->startAction(new AppAction(listener)); break; default: except("Unexpected signal parameter message received", parameter); } break; case FINAL_COMMAND: switch (parameter) { case SignalData::ACK: monitor->trace("Radio calibration final command ACK"); state = CALIBRATION_RECEPTION; initializeSignalPayloadReception(SignalData::CALIBRATION_SETTINGS); break; case SignalData::BREAK_FAIL: monitor->trace("Radio calibration final command FAIL"); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_ENDED)); monitor->notifyDeviceEvent(new DeviceEventMessage(DeviceEventMessage::WARNING, "Error while safing data to internal memory." "Calibration results discarded.")); state = IDLE; listener->startAction(new AppAction(listener)); break; case SignalData::BREAK_ACK: monitor->trace("Radio calibration final command BREAK_ACK"); monitor->notifyDeviceEvent(new DeviceEvent(DeviceEvent::CALIBRATE_RADIO_ENDED)); monitor->notifyDeviceEvent(new DeviceEventMessage(DeviceEventMessage::INFO, "Calibration results discarded.")); state = IDLE; listener->startAction(new AppAction(listener)); break; default: except("Unexpected signal parameter message received", parameter); } break; default: except("Signal parameter in unexpected state", parameter); } } void RadioCalibAction::handleUserEvent(const PilotEvent& event) { switch (state) { case CALIBRATION_COMMAND: switch (event.getType()) { case PilotEvent::RADIO_CALIBRATION_DONE: state = CALIBRATION_RESPONSE; sendSignal(SignalData::CALIBRATE_RADIO, SignalData::DONE); break; case PilotEvent::RADIO_CALIBRATION_SKIP: state = CALIBRATION_RESPONSE; sendSignal(SignalData::CALIBRATE_RADIO, SignalData::SKIP); break; case PilotEvent::RADIO_CALIBRATION_BREAK: state = BREAKING; sendSignal(SignalData::CALIBRATE_RADIO, SignalData::BREAK); break; default: except("Unexpected user uav event received"); } break; case CHECK: switch (event.getType()) { case PilotEvent::RADIO_CALIBRATION_DONE: state = FINAL_COMMAND; sendSignal(SignalData::CALIBRATE_RADIO, SignalData::BREAK); break; case PilotEvent::RADIO_CALIBRATION_SKIP: state = FINAL_COMMAND; sendSignal(SignalData::CALIBRATE_RADIO, SignalData::BREAK_FAIL); break; default: except("Unexpected user uav event received"); } break; default: except("Uav event received at unexpected state"); } }
cpp
Short Term 12 is set in a group home for troubled teens, and it explores the ways in which these teens have been shaped by their experiences in dysfunctional families being Exposed to neglect, abuse, and violence. Joy is a True Story based on The life of Joy Mangano. It’s about how Joy overcomes the challenges of a dysfunctional family where it feels like walking on a tight rope with people one would want comfort from. The Glass Castle is based on the Autobiography of the American Journalist Jeanne Watts with many ugly truths about her own dysfunctional Family and specifically about her parents. The film explores the dangers of diagnostic labels and how they can be misused. It also examines how mental illness can be hidden in plain sight and the impact this can have on families. The movie is about Shia LaBeouf's childhood. It gives us an inside look at what it is like to be just a twelve-year-old kid wanting love but being rejected by one's own father. The film is written by Shia LeBeouf and he plays his own Abusive Father. Thank You for Reading!
english
from abc import abstractmethod from typing import List from cloudrail.knowledge.context.aws.networking_config.network_configuration import NetworkConfiguration class INetworkConfiguration: @abstractmethod def get_all_network_configurations(self) -> List[NetworkConfiguration]: pass
python
{ "schema_version": "1.2.0", "id": "GHSA-r2c3-vwq2-cqcg", "modified": "2022-05-01T01:49:44Z", "published": "2022-05-01T01:49:44Z", "aliases": [ "CVE-2005-0475" ], "details": "SQL injection vulnerability in paFAQ Beta4, and possibly other versions, allows remote attackers to execute arbitrary SQL code via the (1) offset, (2) limit, (3) order, or (4) orderby parameter to question.php, (5) offset parameter to answer.php, (6) search_item parameter to search.php, (7) cat_id, (8) cid, or (9) id parameter to comment.php.", "severity": [ ], "affected": [ ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2005-0475" }, { "type": "WEB", "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/19371" }, { "type": "WEB", "url": "http://marc.info/?l=bugtraq&m=110868808723487&w=2" } ], "database_specific": { "cwe_ids": [ ], "severity": "MODERATE", "github_reviewed": false } }
json
# STM32F411E-DISCO STM32F411E Discovery Board Support Package
markdown
import { Template, TemplateType } from "../types"; export const temp: Template = { type: TemplateType.component, jsx: ( <div class="md:grid md:grid-cols-3 md:gap-6"> <div class="md:col-span-1"> <div class="px-4 sm:px-0"> <h3 class="text-lg font-medium leading-6 text-gray-900">Profile</h3> <p class="mt-1 text-sm text-gray-600"> This information will be displayed publicly so be careful what you share. </p> </div> </div> <div class="mt-5 md:mt-0 md:col-span-2"> <form action="#" method="POST"> <div class="shadow sm:rounded-md sm:overflow-hidden"> <div class="px-4 py-5 bg-white space-y-6 sm:p-6"> <div class="grid grid-cols-3 gap-6"> <div class="col-span-3 sm:col-span-2"> <label for="company-website" class="block text-sm font-medium text-gray-700" > Website </label> <div class="mt-1 flex rounded-md shadow-sm"> <span class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 text-sm"> http:// </span> <input type="text" name="company-website" id="company-website" class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full rounded-none rounded-r-md sm:text-sm border-gray-300" placeholder="www.example.com" /> </div> </div> </div> <div> <label for="about" class="block text-sm font-medium text-gray-700" > About </label> <div class="mt-1"> <textarea id="about" name="about" rows="3" class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md" placeholder="<EMAIL>" ></textarea> </div> <p class="mt-2 text-sm text-gray-500"> Brief description for your profile. URLs are hyperlinked. </p> </div> <div> <label class="block text-sm font-medium text-gray-700"> Photo </label> <div class="mt-1 flex items-center"> <span class="inline-block h-12 w-12 rounded-full overflow-hidden bg-gray-100"> <svg class="h-full w-full text-gray-300" fill="currentColor" viewBox="0 0 24 24" > <path d="M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"></path> </svg> </span> <button type="button" class="ml-5 bg-white py-2 px-3 border border-gray-300 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" > Change </button> </div> </div> <div> <label class="block text-sm font-medium text-gray-700"> Cover photo </label> <div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md"> <div class="space-y-1 text-center"> <svg class="mx-auto h-12 w-12 text-gray-400" stroke="currentColor" fill="none" viewBox="0 0 48 48" aria-hidden="true" > <path d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ></path> </svg> <div class="flex text-sm text-gray-600"> <label for="file-upload" class="relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500" > <span>Upload a file</span> <input id="file-upload" name="file-upload" type="file" class="sr-only" /> </label> <p class="pl-1">or drag and drop</p> </div> <p class="text-xs text-gray-500"> PNG, JPG, GIF up to 10MB </p> </div> </div> </div> </div> <div class="px-4 py-3 bg-gray-50 text-right sm:px-6"> <button type="submit" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" > Save </button> </div> </div> </form> </div> </div> ), };
typescript
#include "toppane.h" #include "engine.h" #include "enginep.h" #include "surface.h" ///////////////////////////////////////////////////////////////////////////// // // TopPane // ///////////////////////////////////////////////////////////////////////////// class TopPaneSurfaceSite : public SurfaceSite { private: TopPane* m_ptopPane; public: TopPaneSurfaceSite(TopPane* ptopPane) : m_ptopPane(ptopPane) { } void UpdateSurface(Surface* psurface) { m_ptopPane->RepaintSurface(); } }; ///////////////////////////////////////////////////////////////////////////// // // TopPane // ///////////////////////////////////////////////////////////////////////////// TopPane::TopPane(Engine* pengine, bool bColorKey, TopPaneSite* psite, Pane* pchild) : Pane(pchild), m_pengine(pengine), // m_psurface(pengine->CreateSurface(WinPoint(1, 1), stype, new TopPaneSurfaceSite(this))), m_psurface(NULL), m_psite(psite), m_bColorKey(bColorKey), m_bNeedLayout(true) { //Fix memory leak -Imago 8/2/09 SetSize(WinPoint(0, 0)); } void TopPane::RepaintSurface() { m_bNeedPaint = true; m_bPaintAll = true; } void TopPane::NeedLayout() { if (!m_bNeedLayout) { m_bNeedLayout = true; m_psite->SizeChanged(); } } void TopPane::NeedPaintInternal() { if (!m_bNeedPaint) { m_bNeedPaint = true; m_psite->SurfaceChanged(); } } void TopPane::Paint(Surface* psurface) { // psurface->FillSurface(Color(0.8f, 0.5f, 1.0f)); } void TopPane::Evaluate() { if (m_bNeedLayout) { m_bNeedLayout = false; WinPoint sizeOld = GetSize(); UpdateLayout(); WinPoint sizeNew = GetSize(); // This creates the top level surface. Create a new render target for now. if ( ( sizeNew != sizeOld ) && ( sizeNew != WinPoint(0,0) ) ) { m_bNeedPaint = true; m_bPaintAll = true; /* if( sizeNew == CD3DDevice9::GetCurrentResolution() ) { m_psurface = m_pengine->CreateDummySurface( sizeNew, new TopPaneSurfaceSite( this ) ); } else*/ { m_psurface = m_pengine->CreateRenderTargetSurface( sizeNew, new TopPaneSurfaceSite( this ) ); } } } } void TopPane::UpdateLayout() { DefaultUpdateLayout(); } bool g_bPaintAll = false; bool g_bUpdateOffset = false; void TopPane::UpdateBits() { /* ORIGINAL ALLEGIANCE VERSION. ZEnter("TopPane::UpdateBits()"); if (m_bNeedPaint) { ZTrace("m_bNeedPaint == true"); if (CalcPaint()) { m_bNeedPaint = true; m_bPaintAll = true; } ZTrace("after CalcPaint() m_bNeedPaint ==" + ZString(m_bNeedPaint)); ZTrace("after CalcPaint() m_bPaintAll ==" + ZString(m_bPaintAll )); m_bPaintAll |= g_bPaintAll; InternalPaint(m_psurface); m_bNeedPaint = false; } ZExit("TopPane::UpdateBits()");*/ ZEnter("TopPane::UpdateBits()"); { HRESULT hr; bool bRenderTargetRequired; ZAssert(m_psurface != NULL); PrivateSurface* pprivateSurface; CastTo(pprivateSurface, m_psurface); bRenderTargetRequired = pprivateSurface->GetSurfaceType().Test(SurfaceTypeRenderTarget() ) == true; if( bRenderTargetRequired == true ) { TEXHANDLE hTexture = pprivateSurface->GetTexHandle( ); ZAssert( hTexture != INVALID_TEX_HANDLE ); hr = CVRAMManager::Get()->PushRenderTarget( hTexture ); } ZTrace("m_bNeedPaint == true"); CalcPaint(); m_bNeedPaint = true; m_bPaintAll = true; ZTrace("after CalcPaint() m_bPaintAll ==" + ZString(m_bPaintAll )); WinPoint offset( 0, 0 ); // Call InternalPaint() with the child offset and parent size as params and create initial clipping rect. WinRect rectClip( 0, 0, (int) m_psurface->GetSize().X(), (int) m_psurface->GetSize().Y() ); m_bPaintAll |= g_bPaintAll; InternalPaint( m_psurface ); m_bNeedPaint = false; if( bRenderTargetRequired == true ) { CVRAMManager::Get()->PopRenderTarget( ); } } ZExit("TopPane::UpdateBits()"); /* { ZTrace("m_bNeedPaint == true"); CalcPaint(); m_bNeedPaint = true; m_bPaintAll = true; ZTrace("after CalcPaint() m_bNeedPaint ==" + ZString(m_bNeedPaint)); ZTrace("after CalcPaint() m_bPaintAll ==" + ZString(m_bPaintAll )); m_bPaintAll |= g_bPaintAll; // localOffset.SetY( localOffset.Y() - (int)m_psurface->GetSize().Y() ); // localOffset += globalOffset; WinPoint offset( localOffset ); // Remove offset now. offset.SetY( offset.Y() - (int)m_psurface->GetSize().Y() ); // Call InternalPaint() with the child offset and parent size as params and create initial clipping rect. WinRect rectClip( offset.X(), offset.Y(), offset.X() + (int) m_psurface->GetSize().X(), offset.Y() + (int) m_psurface->GetSize().Y() ); // m_psurface is a dummy surface. Store the context. InternalPaint( m_psurface, offset, rectClip ); m_bNeedPaint = false; } ZExit("TopPane::UpdateBits()");*/ } const WinPoint& TopPane::GetSurfaceSize() { Evaluate(); return GetSize(); } Surface* TopPane::GetSurface() { Evaluate(); //when the size is zero, the surface is not initialized if (m_size.X() == 0 || m_size.Y() == 0) { return NULL; } UpdateBits(); return m_psurface; } Point TopPane::TransformLocalToImage(const WinPoint& point) { return m_psite->TransformLocalToImage( GetPanePoint( Point::Cast(point) ) ); } Point TopPane::GetPanePoint(const Point& point) { return Point( point.X(), (float)GetSize().Y() - 1.0f - point.Y() ); } void TopPane::MouseEnter(IInputProvider* pprovider, const Point& point) { // m_bInside = true; /* if( m_psurface->GetSurfaceType().Test( SurfaceTypeDummy() ) == false ) { OutputDebugString("MouseEnter\n"); }*/ } MouseResult TopPane::HitTest(IInputProvider* pprovider, const Point& point, bool bCaptured) { return Pane::HitTest(pprovider, GetPanePoint(point), bCaptured); } MouseResult TopPane::Button( IInputProvider* pprovider, const Point& point, int button, bool bCaptured, bool bInside, bool bDown ) { return Pane::Button(pprovider, GetPanePoint(point), button, bCaptured, bInside, bDown); }
cpp
package ca.gc.aafc.seqdb.api.testsupport.factories; import java.util.List; import java.util.function.BiFunction; import ca.gc.aafc.seqdb.api.entities.libraryprep.LibraryPrepBatch; import ca.gc.aafc.seqdb.api.entities.libraryprep.LibraryPrepBatch.LibraryPrepBatchBuilder; public class LibraryPrepBatchFactory implements TestableEntityFactory<LibraryPrepBatch> { @Override public LibraryPrepBatch getEntityInstance() { return newLibraryPrepBatch().build(); } public static LibraryPrepBatch.LibraryPrepBatchBuilder newLibraryPrepBatch() { return LibraryPrepBatch.builder().name(TestableEntityFactory.generateRandomName(10)); } public static List<LibraryPrepBatch> newListOf(int qty) { return newListOf(qty, null); } public static List<LibraryPrepBatch> newListOf(int qty, BiFunction<LibraryPrepBatch.LibraryPrepBatchBuilder, Integer, LibraryPrepBatch.LibraryPrepBatchBuilder> configuration) { return TestableEntityFactory.newEntity(qty, LibraryPrepBatchFactory::newLibraryPrepBatch, configuration, LibraryPrepBatchBuilder::build); } }
java
In a recent event, the internet was comparing two of the most prominent players of the current era, Stephen Curry and Derrick Rose. Curry and Rose are some of the top players of the current era in the NBA. One of the most common things between the two, among others, is the regular-season MVP award. While D-Rose became the youngest player to ever win the MVP award at 22, Steph Curry was the first-ever unanimous MVP in the history of the NBA. Rose was considered as the next big thing in Chicago post-Michael Jordan’s era. His All-Star selection in 2010 made him the first Bulls player to be selected for the event since Michael Jordan in 1998. The 2010-11 NBA season remains a landmark year for the 3x NBA All-Star. The Chicago Bulls had the best record in the league that year. The team finished with a 62-20 record. It was the Bulls’ first 60 win season since Jordan in 1997-98. Steph Curry is widely regarded as one of the most influential players in the history of the NBA. The superstar changed the way the game of basketball is played single-handedly. The 2015-16 NBA season was one of the finest years we had ever seen from an NBA player. The baby-faced assassin was unstoppable, leading the league in scoring as well as steals. Curry was crowned the first-ever unanimous MVP. The Internet compares the MVP season of Derrick Rose(2010-11) to that of Stephen Curry (2015-16) D-Rose averaged 25.0 PPG, 7.7 APG, 4.1 rebounds, and 1.0 SPG in the 2010-11 season. The former rookie of the year, shot 44.5% from the field and 85.8% from the free-throw line. Rose is known to be one of the most athletic players ever to step on the NBA hardwood. His ability to drive to the rim and score was one of a kind. During the 2015-16 NBA season, Curry averaged 30.1 PPG, 6.7 APG, and 5.4 RPG. The 3x NBA champion shot 50.4% from the field, 45.4% from the 3-point line, and 90.8% from the free-throw line. Thus having the shooting splits of 50-40-90. Curry had an iconic year with the Warriors during his MVP season. The Bay area team broke the Chicago Bulls record for most no of wins in a season. The Warriors finished the season with a 73-9 record. The internet had giving Curry the edge with not many takers for Derrick Rose. Though, the internet may have given its verdict. One cannot deny that Rose was probably the most athletic and fearless point guard when it came to finishing at the rim. Rose’s ACL tear next consecutive year robbed him of his prime to a very large extent. On the other hand, Steph Curry has clearly changed the landscape of the NBA with his 3-point shooting ability. Truly is one of the most gifted stars of the current era.
english
{ "TokenOptions": { "Audience": "<EMAIL>", "Issuer": "<EMAIL>", "AccessTokenExpiration": 10, "SecurityKey": "mysupersecretkeymysupersecretkey" }, "AllowedHosts": "*" }
json
The dawn of 3D Exterior Visualization services marks a pivotal moment in the real estate industry, revolutionizing how properties are envisioned and marketed. 3D exterior Visualization services empower investors to transcend blueprints and visualize the future in photorealistic detail. Photorealistic renderings bring architectural designs to life, evoking emotions and allowing investors to connect with unbuilt spaces on a visceral level. Virtual tours through 3D exterior visualization enable potential buyers to explore properties virtually, influencing their perception and purchase decisions. Incorporating 3D exterior visualization into investment strategies enhances presentations to stakeholders, aligns design with market preferences, and supports decision-making. 3D exterior visualization services lends itself to visually stunning property listings, creating anticipation and captivating prospective buyers through compelling visuals. Visualization fosters effective communication among stakeholders by offering a clear visual representation that facilitates alignment and minimizes misinterpretations. 3D exterior visualization marries technical precision with creative artistry, harnessing technology to convey aesthetics, ambiance, and architectural intent. Visualization also extends to sustainability, enabling the depiction of eco-friendly features and green spaces that resonate with environmentally conscious buyers. Investments in exterior visualization yield returns by enhancing property valuation through visual appeal and the demonstration of future potential. The integration of 3D exterior visualization services in real estate investment is a game-changer, offering immersive experiences, influencing decisions, and reshaping the way properties are marketed and valued. - Can 3D exterior visualization accurately represent architectural details? - Yes, 3D exterior visualization captures intricate architectural elements and materials, providing an accurate representation of the final structure. - How does 3D exterior visualization influence buyer decisions? - Immersive visual experiences enable potential buyers to explore properties virtually, fostering emotional connections and aiding in decision-making. - What role does visualization play in sustainable design? - Visualization showcases sustainable features, such as solar panels and green spaces, appealing to environmentally conscious buyers. - How does 3D visualization impact property valuation? - High-quality visuals enhance a property’s perceived value, as they help investors envision its potential and aesthetics. - What makes photorealistic rendering so impactful? - Photorealistic rendering brings designs to life with remarkable detail, enabling viewers to experience spaces before they are built.
english
import { merge } from 'theme-ui'; import { base as preset } from '@theme-ui/presets'; // names from https://coolors.co/000000-161616-a6a6a4-fff700-ffffff const BLACK = 'rgb(0, 0, 0)'; const WHITE = 'rgb(255, 255, 255)'; const EERIE_BLACK = 'rgb(22, 22, 22)'; const QUICK_SILVER = 'rgb(166, 166, 164)'; const LEMON = 'rgb(255, 247, 60)'; /** * Theme UI * * @see https://theme-ui.com/theming * @see https://theme-ui.com/theme-spec * * @var object */ const HumblebeeTheme = merge(preset, { breakpoints: [ // mobile-first '40em', // tablet portrait '56em', // tablet landscape '64em', // desktop '90em', // wide screens ], colors: { text: WHITE, background: BLACK, primary: WHITE, secondary: EERIE_BLACK, accent: LEMON, highlight: EERIE_BLACK, muted: QUICK_SILVER, }, text: { heading: { py: 2, }, paragraph: { variant: 'text.body', color: 'primary', fontSize: 3, }, }, layout: { container: { px: [3, 4, null, 6], }, }, sizes: { container: 1360, }, buttons: { primary: { backgroundColor: 'primary', color: 'black', }, muted: { backgroundColor: 'muted', color: 'black', }, cta: { backgroundColor: 'transparent', color: 'white', border: '1px solid white', }, }, forms: { checkbox: { color: 'text', borderColor: 'text', '&:checked + label': { color: 'text', }, }, input: { color: 'text', borderColor: 'text', }, radio: { color: 'text', borderColor: 'text', }, textarea: { color: 'text', borderColor: 'text', }, }, }); export default HumblebeeTheme;
javascript
Welcome to another issue of Haskell Weekly! [Haskell](https://www.haskell.org) is a safe, purely functional programming language with a fast, concurrent runtime. This is a weekly summary of what's going on in its community. ## Featured - [Lambda Days 2021](https://www.lambdadays.org/lambdadays2021#register) (ad) > Check out @LambdaDays - a vibrant event focused on functional programming and its growing community. With daily updates on their line-up they have exciting news for anyone interested Haskell, but also Scala, Erlang, Elixirlang, Clojure and more! > > Note: number of Early Bird tickets is limited, book your online seat now to enjoy 4 days of amazing virtual experience: over 50 talks, Ask Me Anything Session with Speakers, Round Table Discussions, online quiz, chats and more. - [Building a Passphrase Generator in Haskell](https://mjj.io/2021/01/26/building-a-passphrase-generator-in-haskell/) by <NAME> > In this blog post, I will elaborate on how this method of generating passphrases works and how it can be implemented in Haskell. - [Haskell ghost knowledge; difficult to access, not written down](https://np.reddit.com/r/haskell/comments/l435px/haskell_ghost_knowledge_difficult_to_access_not/) by <NAME> > What ghost knowedge is there in Haskell? - [Maybe Either](https://haskellweekly.news/episode/35.html) by Haskell Weekly Podcast > Is Maybe problematic? Well, maybe. Robert Peszek thinks that Maybe is overused. <NAME> and <NAME> break it down and consider alternatives. - [Seeking the reasons for segfaults of a Haskell program](https://kazu-yamamoto.hatenablog.jp/entry/2021/01/27/113810) by Kazu Yamamoto > Many Haskellers would be surprised at this kind of segfaults because it is hard to cause segfaults in normal Haskell programming. - [Stack Governance](https://www.snoyman.com/blog/2021/01/stack-governance/) by <NAME> > A few months back I wrote about the Haskell Foundation and some of my plans with it. Earlier than that, I also spoke about my thoughts on transparency. ## Jobs - [Senior Software Engineer at SuperRare](https://superrare.breezy.hr/p/12966f7cbf76-senior-software-engineer) (ad) > SuperRare is a well-funded and fast-moving startup on a mission to reinvent the art market for the digital generation. We're looking for a Haskell engineer to help us manifest our vision. See our job posting for more details! - [CodeQL Language Analysis Engineer at GitHub](https://np.reddit.com/r/haskell/comments/l25t1v/software_engineer_codeql_language_analysis_remote/) Trying to hire a Haskell developer? You should [advertise with us](https://haskellweekly.news/advertising.html)! ## In brief - [IHP and elm - towards a functional web](https://dev.to/digitallyinduced/ihp-and-elm-towards-a-functional-web-2581) by Digitally Induced > We have recently added an elm template, which allows you to get started with elm perfectly set up and ready to go in a new IHP project. - [Introducing the new Plutus Playground](https://iohk.io/en/blog/posts/2021/01/25/introducing-the-new-plutus-playground/) by <NAME> > Plutus Playground provides an environment for writing and testing smart contracts before they are released on the Cardano blockchain. - [Stackage LTS 17.0](https://www.stackage.org/lts-17.0) With GHC 8.10.3. ## Show & tell - [chart-svg version 0.2.0](https://np.reddit.com/r/haskell/comments/l2yypi/chartsvg020/) by <NAME> > I am pleased to announce a major release of chart-svg. 0.2 now has experimental reanimate support, and is otherwise a sharper, better documented chart library, focused on svg production. - [dep-t and dep-t-advice: spruce up your records-of-functions!](https://np.reddit.com/r/haskell/comments/l3i7mi/dept_and_deptadvice_spruce_up_your/) by <NAME> > I wanted to show two small packages I've been working on called dep-t and dep-t-advice. They provide a variant of ReaderT specialized for the record-of-functions idiom. ## Call for participation - [cascade: Obtain HTTP port for starting HTTP API server from environment variables](https://github.com/the-dr-lazy/cascade/issues/15) - [haskell-language-server: Add haskell-language-server to chocolatey package manager](https://github.com/haskell/haskell-language-server/issues/1250)
markdown
<reponame>cortezcristian/trainer { "name": "tainer", "version": "0.0.0", "homepage": "https://github.com/cortezcristian/trainer", "authors": [ "<NAME> <<EMAIL>>" ], "description": "Join the e-learning revolution", "moduleType": [ "node" ], "keywords": [ "trainer" ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "fontawesome": "~4.3.0", "bootstrap": "~3.3.5" } }
json
{ "added": [ { "id": 1, "type": "implementation", "installed_name": "viewpump", "gpm_dep": { "artifact_id": "viewpump", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/io.github.inflationx/viewpump", "get_from": "Central", "group_id": "io.github.inflationx", "name": "ViewPump", "description": "View inflation with pre/post-inflation interceptors" } }, { "id": 2, "type": "implementation", "installed_name": "calligraphy", "gpm_dep": { "artifact_id": "calligraphy3", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/io.github.inflationx/calligraphy3", "get_from": "Central", "group_id": "io.github.inflationx", "name": "Calligraphy", "description": "Custom Font injection through styles and attributes." } }, { "id": 3, "type": "implementation", "installed_name": "androidx.activity", "gpm_dep": { "artifact_id": "activity-ktx", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/androidx.activity/activity-ktx", "get_from": "Google", "group_id": "androidx.activity", "name": "Activity Kotlin Extensions", "description": "Kotlin extensions for 'activity' artifact" } }, { "id": 4, "type": "implementation", "installed_name": "coroutines", "gpm_dep": { "artifact_id": "kotlinx-coroutines-core", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core", "get_from": "Central", "group_id": "org.jetbrains.kotlinx", "name": "Kotlinx Coroutines Core", "description": "Coroutines support libraries for Kotlin" } }, { "id": 5, "type": "implementation", "installed_name": "timber", "gpm_dep": { "artifact_id": "timber", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/com.jakewharton.timber/timber", "get_from": "Central", "group_id": "com.jakewharton.timber", "name": "Timber", "description": "No-nonsense injectable logging." } }, { "id": 6, "type": "implementation", "installed_name": "livedata-ktx", "gpm_dep": { "artifact_id": "lifecycle-livedata-ktx", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-livedata-ktx", "get_from": "Google", "group_id": "androidx.lifecycle", "name": "LiveData Kotlin Extensions", "description": "Kotlin extensions for 'livedata' artifact" } }, { "id": 7, "type": "implementation", "installed_name": "swiperefreshlayout", "gpm_dep": { "artifact_id": "swiperefreshlayout", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/androidx.swiperefreshlayout/swiperefreshlayout", "get_from": "Google", "group_id": "androidx.swiperefreshlayout", "name": "Android Support Library Custom View", "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later." } }, { "id": 8, "type": "testImplementation", "installed_name": "expekt", "gpm_dep": { "artifact_id": "expekt", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/com.theapache64/expekt", "get_from": "JCenter", "group_id": "com.theapache64", "name": "Expekt", "description": "An assertion library for Kotlin" } }, { "id": 9, "type": "implementation", "installed_name": "material-dialogs", "gpm_dep": { "artifact_id": "core", "default_type": "implementation", "docs": "https://mvnrepository.com/artifact/com.afollestad.material-dialogs/core", "get_from": "Spring Lib Release", "group_id": "com.afollestad.material-dialogs", "name": "Core", "description": "Core" } } ] }
json
{ "type": "prerelease", "comment": "Make C# CodeGen the default", "packageName": "@react-native-windows/cli", "email": "<EMAIL>", "dependentChangeType": "patch", "date": "2020-08-04T20:53:08.556Z" }
json
German tennis player Alexander Zverev, who drew flak after an embarrassing umpire attack during last month's Mexico Open tennis tournament in Acapulco, has vowed to learn from the forgetful incident which tarnished his image as well and promises to never get engaged in any such controversy again in his career. Alexander Zverev kicked out of Mexico tournament after striking umpire's chair multiple times. - After an embarrassing incident with the chair umpire, Zverev was kicked out of the singles draw as well. - The German was fined $25,000 and was given an eight-week suspension. German tennis player and 2020 Tokyo Olympics Gold medalist Alexander Zverev has said that he should be banned if he fails to learn from the biggest mistake of his tennis career that took place during the Mexico Open in Acapulco last month. After losing the doubles match, the world number three lost his temper and smashed his racket repeatedly on the umpire Alessandro Germani’s chair, which left the official in an uncomfortable position. The 24-year-old German was kicked out of the singles draw and the ATP started an investigation into the matter following his on-field behaviour. As a punishment for what happened in Mexico, Zverev was asked to pay a fine of 25K dollars and was also handed an eight-week ban, which is currently suspended for one year. The punishment means that now Zverev, who is one of the most promising talents in tennis, has to keep his track record clean for the next 12 months if he has to avoid a lengthy ban, and the German has vowed to learn and never repeat what happened that night in Acapulco. "It is still embarrassing for me now. Walking around the locker room, it's not a nice feeling. But we all make mistakes. I'm also a human being, and I can guarantee you I will never act this way again in my life. It was definitely the worst moment of my life. " To get better control over his emotions, Zverev revealed that he has been taking part in stress-relief sessions. "I've been doing work, meditation-wise. I think there are stress situations in everyone's life where stuff like this happens. I'm not the first, I won't be the last for something bad to happen on the court. I know who I am as a person and this doesn't reflect on me. I would have never physically harmed anyone," he added. Zverev's actions on the court have been the talking point ever since the incident took place, and many stalwarts, including 21-time Grand Slam winner Rafael Nadal , have called for tougher punishment. However, Zverev, who is set to compete in the Indian Wells tournament this week, believes he deserves a second chance and would seek suspension if anything similar to the Acapulco incident occurred again in the future. "If I do that again, they have every right to ban me. It’s as simple as that, "Zverev said at an Indian Wells press conference. "If I do that again, it means I haven’t learned, right? I think everyone in life deserves a second chance. Everybody makes mistakes. But if you repeatedly make mistakes, it means you haven’t learned. So, if that happens again, you should ban me. But I’ll do everything I can to make sure it doesn’t happen, not only in the next year but my whole career. "
english
{ "main.title": "Impostazioni", "label.changeLanguage": "Cambia lingua", "changeLanguage.success": "Lingua cambiata in %1$s", "label.UserDirectory": "Cartella Applicazione Utente", "panel.general": "Impostazioni Generali", "panel.language": "Impostazioni lingua", "sound_label": "TT_Attiva effetti sonori", "sound_enabled_true": "TT_Effetti sonori attivati", "sound_enabled_false": "TT_Effetti sonori dissattivati", "sound_test_on": "TT_Effetti sonori sono attivi, dovresti sentire un suono. Se non l'hai sentito per favore verifica il \u0027s.", "sound_test_off": "TT_Effetti sonori dissattivati, nessun suono.", "sound_button_text": "TT_Prova effetti sonori", "encrypt_label": "TT_Wallet Encryption", "encrypt_refreshTime": "TT_Crittografia del portafoglio aggiornata %1$s", "encrypt_button_refresh": "TT_Rinfresca", "encrypt_button_clearPassword": "<PASSWORD>", "encrypt_button_currentEncrypt": "TT_cancella la password", "encrypt_button_currentDecrypt": "TT_Crittografia del portafoglio", "encrypt_validation_noPasswordDecrypt": "TT_Nessuna password inserita, impossibile decifrare il portafoglio senza una password.", "encrypt_validation_decryptSuccess": "TT_Portafoglio decifrato. Non c'e piu' bisogno dell passphrase.", "encrypt_validation_noPasswordEncrypt": "TT_Password inserita non valida, non è possibile crittografare il portafoglio senza una password valida.", "encrypt_validation_encryptSuccess": "TT_Il portafoglio è stato crittografato. Avrai bisogno della passphrase per sbloccarlo. Qualsiasi file di backup precedente rimane invariato: se non è crittografato, rimane non crittografato", "encrypt_clearPasswordConfirm": "TT_Vuoi rimuovere la password? Ciò bloccherà il portafoglio e richiederà di reinserirla prima di sbloccarlo.", "encrypt_clear_success": "TT_Password rimossa e' portafoglio bloccato", "encrypt_clear_cancelled": "TT_Azione cancellata" }
json
<!-- E-mail sent to Topic members of a reporter Topic --> <p> Olá, <span class="blue">{{userMember.name}}</span>, </p> <p class="important"> <b>Um usuário do Citizen OS acredita que haja uma violação das regras da comunidade em seu tópico "<a href="{{linkViewTopic}}">{{topic.title}}</a>" e enviou uma denúncia <span class="blue">#{{report.id}}</span>.</b> <br><br> Todos os editores do tópico e moderadores da comunidade receberam essa denúncia. Veja os detalhes abaixo. </p> <h1>E agora?</h1> <p> <ol> <li class="li">Os moderadores estão atualmente avaliando o tópico. Caso confirmem uma violação, eles restringirão o acesso ao tópico. </li> <li class="li">No entanto, você e outros editores podem editar o tópico a qualquer momento para remover possíveis violações. Se as violações forem removidas, o tópico poderá ser enviado aos moderadores do Citizen OS para avaliação. </li> <li class="li">Após uma solicitação de revisão, os moderadores avaliarão o tópico e cancelarão todas restrições caso as violações tenham sido removidas.</li> <li class="li"> Notificaremos você se: <ul> <li>Moderadores aplicarem restrições ao tópico;</li> <li>A remoção das violações for avaliada e as restrições canceladas.</li> </ul> </li> </ol> </p> <p><a href="{{linkViewModerationGuidelines}}">Você pode encontrar mais detalhes sobre o processo de moderação do Citizen OS aqui.</a></p> <h1>Detalhes da denúncia</h1> <p>Tópico: <b>"<a href="{{linkViewTopic}}">{{topic.title}}</a>"</b> <p>Número de referência da denúncia: <b>{{report.id}}</b> <p>Tipo de violação: <b>"{{report.type}}"</b> <p>Sua explicação: <b>"{{report.text}}"</b> <hr/> <p> Por favor, reveja seu tópico "<a href="{{linkViewTopic}}">{{topic.title}}</a>" e veja se ele contém violações das diretrizes da comunidade. Juntos, podemos manter uma qualidade de conteúdo elevada na comunidade de usuários do Citizen OS. </p>
html
Mike Tyson wants to stick around boxing in a different capacity. While 'Iron Mike' is one of the most beloved boxers of all time, for years, he was absent from the sport. Following his 2005 retirement, Tyson decided to keep his distance. In the years that followed, the former champion admitted that he didn't like what the sport did to him. Ultimately, he rarely attended events, but that was until 2020. That year in the pandemic, Tyson decided to put on the gloves and try and get into good shape. What started as a journey just to get into better physical condition led to an exhibition fight with Roy Jones Jr. that November. Ultimately, Mike Tyson has stayed around the sport over the last few years. He was even a guest of honor in April, attending Gervonta Davis's win over Ryan Garcia. In an interview with The Ring, Tyson discussed his plans to give back to the sport. Giving back means a new line of boxing equipment including gloves, hand wraps, mitts, and more: Mike Tyson believes Isaac Cruz, not Gervonta Davis, is the boxer most like himself. 'Iron Mike' attended 'Tank's win over Ryan Garcia in April. At the time, many compared the lightweight to Tyson. For his part, the heavyweight was full of praise after Davis' win over 'KingRy'. However, in an interview with The Ring, he rejected the comparison. While he praised Davis, he instead stated that 'Pitbull' was the boxer most like himself. Funnily enough, the two lightweights fought back in 2022, with 'Tank' getting the nod. In the interview, Mike Tyson opined: “I love a lot of today’s fighters, guys like Tank Davis. But I don’t know if anyone is close to me today. If I had to say someone is closest to me, I would say Isaac Cruz. He’s short and stubby for his weight class, like I was, and he comes at you. People might think I would say Tank, but Tank reminds me a whole lot of Aaron ‘The Hawk’ Pryor. I mean that as a big compliment. "
english
R&A CEO Martin Slumbers has confirmed that the rollback policy decisions for the distance of the golf ball will be unveiled by the end of 2023. Martin talked about how the distance of the golf ball has been increasing through the passage of time, and looking at the reports, this is a major concern to be addressed by the USGA and R&A, the regulatory bodies for the rules of golf. “Unequivocally, the ball is going further than it did 15 years ago...once we published our distance report at the start of this process...for the good of the game, we need to address this issue”. Talking about the issue, Slumbers went on to describe the ways to solve it and said that they had reached a decision. As the same interview proceeded, Slumbers declared that he and USGA CEO Mike Whan were left with three options to address this problem. Previously, the USGA and R&A provided a solution to this by introducing the Model Local Rule, which requires the golf balls to be tested under technological machines before being used for professional golf tournaments. Also, this rule was applied to professional golf and not local golf. But the solution was not well received, especially by the PGA Tour, with Jay Monahan being the frontman for declining it. Other than Monahan, Adam Scott, Jon Rahm, and other golfers also turned down the proposal. But to continue the game in the long term, the golf associations have reached a resolution. Slumbers also talked about the Open Championship qualifications for next year. This was introduced after LIV got installed on the roster and allowed golfers from both the PGA Tour and LIV Golf to play in it. The R&A’s confidence in implying the rollback policy clearly asserts that a lot is going to change in golf. With the policy receiving massive initial backlash by golfers and fans alike, it is to see how the governing bodies bring out a solution that satisfies everyone and, most importantly, is best for the future of the sport. But will it change the traditional golf norms of the PGA Tour? Only time will tell.
english
<filename>apps/cms/serializers/category_serializers.py # @Time : 2020-08-18 10:24:22 # @Author : code_generator from rest_framework import serializers from ..models import CategoryInfo from rest_framework_recursive.fields import RecursiveField class CategoryInfoSerializer(serializers.ModelSerializer): children = RecursiveField(many=True, required=False) class Meta: model = CategoryInfo fields = '__all__'
python
When was the last time you stepped out of your comfort zone? When was the last time you felt a call in your spirit, and you dismissed it, denied it, or ran from it? When was the last time you took a risk on you? It’s time for you to step out in faith. Do the thing. What are you waiting for? Are you waiting for the perfect circumstances? Are you waiting for everything to fall into place? Are you waiting to get younger? To get thinner? Or probably more to the point, do you think you’ve made too many mistakes to even try? “If you wait for perfect conditions, you will never get anything done” (Ecclesiastes 11:4 tlb). After my divorce, I was ashamed. No more. I now know my mistakes are a part of my story, and they make up the flavor of who I am. This is true for you, too. Don’t despise any part of yourself. There’s a message in your mess. Embrace your mistakes. Reframe your “big mistake” as just a stepping stone. You’re not too far gone. Embrace all of you. I mean all. Not just the fun, Instagrammable parts of you. Every bit of what you’ve done is part of who you are, and who you’re called to be. I’m still on an upward trajectory, but I still do dumb stuff. It’s not like you decide to live a life of faith and suddenly you no longer make mistakes. . . . Your life is spiraling upward too. Your mistakes are not dragging you down they are giving you more juicy material for your story. That’s the good stuff. Father, please forgive me for despising parts of myself and for putting off the steps I know You want me to take. Thank You for promising to be with me as I step forward in confidence. Amen. [PT1]This scripture quote does not match the other translations on the copyright page, but it might be from The Living Bible. Now is the time to be still, listen to God, and start collecting confidence one step, one lesson, one experience, and even one mistake at a time.
english
/** * Copyright 2020, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. * * Usage: * <DirTableFilter * @selectedType={{this.type}} * @updateQueryParams={{this.updateQueryParams}} * /> */ import Component from '@glimmer/component'; import { action } from '@ember/object'; import { isEmpty } from '@ember/utils'; import FileTypes from 'navi-directory/utils/enums/file-types'; interface DirTableFilterComponentArgs { selectedType: TODO<'all' | 'reports' | 'dashboards'>; updateQueryParams: (queryParams: object) => void; } export default class DirTableFilterComponent extends Component<DirTableFilterComponentArgs> { /** * @property {Array} fileTypes */ get fileTypes() { return ['all', ...FileTypes.getTypes()]; } /** * @property {String} selectedFileType */ get selectedFileType() { const { selectedType } = this.args; return isEmpty(selectedType) ? 'all' : selectedType; } /** * @action filterByType * @param {String} type - query param value for type */ @action filterByType(type: string) { let queryParam; if (type === 'all') { queryParam = null; } else { queryParam = type; } this.args.updateQueryParams?.({ type: queryParam }); } }
typescript
package com.cateringpartner.cyhb.refund; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.bumptech.glide.Glide; import com.cateringpartner.cyhb.R; import com.cateringpartner.cyhb.adapter.BaseViewHolder; /** * Created by linlongxin on 2016/8/23. */ public class RefundOrderHolder extends BaseViewHolder<RefundOrder> implements View.OnClickListener,View.OnLongClickListener { private TextView tv_touser; private TextView tv_touserphone; private TextView tv_touseralipayaccount; private TextView tv_totalprice; private TextView tv_rcvtime; private TextView tv_rcvgoodname; private TextView tv_refundreason; private ImageView iv_rcvorderimg; public RefundOrderHolder(ViewGroup parent) { super(parent, R.layout.holder_rcvorder); } @Override public void onInitializeView() { super.onInitializeView(); tv_touser = findViewById(R.id.name); tv_touserphone = findViewById(R.id.phone); tv_touseralipayaccount = findViewById(R.id.address); tv_totalprice = findViewById(R.id.totalprice); tv_rcvtime = findViewById(R.id.time); tv_rcvgoodname = findViewById(R.id.goodname); tv_refundreason = findViewById(R.id.goodnum); iv_rcvorderimg = findViewById(R.id.image); } @Override public void setData(RefundOrder object) { super.setData(object); tv_touser.setText(object.touser); tv_touserphone.setText(object.touserphone); tv_touseralipayaccount.setText(object.touseralipayaccount); tv_totalprice.setText(object.totalprice); tv_rcvtime.setText(object.rcvtime); tv_rcvgoodname.setText(object.rcvgoodname); tv_refundreason.setText(object.refundreason); Glide.with(itemView.getContext()) .load(object.rcvorderimg) .into(iv_rcvorderimg); } @Override public void onClick(View v) { } @Override public boolean onLongClick(View v) { return false; } }
java
{ "name": "com.antihero-studios.audio-services", "displayName": "AudioServices", "author": "<NAME>", "description": "A modular audio system for playing music and sound-effects.", "homepage": "https://github.com/antihero-studios/audio-services", "license": "MIT", "version": "1.0.4", "unity": "2019.3" }
json
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE> [whatwg] Window id - a proposal to leverage session usage in web application </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Window%20id%20-%20a%20proposal%20to%20leverage%20session%20usage%20in%0A%09web%20application&In-Reply-To=%3Cc120886e1002041256sfe1f82eu91fa2cd9ac1438b7%40mail.gmail.com%3E"> <META NAME="robots" CONTENT="index,nofollow"> <style type="text/css"> pre { white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ } </style> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="067252.html"> <LINK REL="Next" HREF="067255.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[whatwg] Window id - a proposal to leverage session usage in web application</H1> <!--htdig_noindex--> <B><NAME></B> <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Window%20id%20-%20a%20proposal%20to%20leverage%20session%20usage%20in%0A%09web%20application&In-Reply-To=%3Cc120886e1002041256sfe1f82eu91fa2cd9ac1438b7%40mail.gmail.com%3E" TITLE="[whatwg] Window id - a proposal to leverage session usage in web application">tdhutt at g<EMAIL>.com </A><BR> <I>Thu Feb 4 12:56:02 PST 2010</I> <P><UL> <LI>Previous message: <A HREF="067252.html">[whatwg] Window id - a proposal to leverage session usage in web application </A></li> <LI>Next message: <A HREF="067255.html">[whatwg] Window id - a proposal to leverage session usage in web application </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#67253">[ date ]</a> <a href="thread.html#67253">[ thread ]</a> <a href="subject.html#67253">[ subject ]</a> <a href="author.html#67253">[ author ]</a> </LI> </UL> <HR> <!--/htdig_noindex--> <!--beginarticle--> <PRE>On 4 February 2010 20:49, <NAME> &lt;<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">usenet at laliluna.de</A>&gt; wrote: &gt;<i> What is the idea about? </I> I think &quot;Web Storage&quot; does what you want and is already implemented (apparently even in IE). The description from the spec: &quot;This specification introduces two related mechanisms, similar to HTTP session cookies, for storing structured data on the client side. The first is designed for scenarios where the user is carrying out a single transaction, but could be carrying out multiple transactions in different windows at the same time. Cookies don't really handle this case well. For example, a user could be buying plane tickets in two different windows, using the same site. If the site used cookies to keep track of which ticket the user was buying, then as the user clicked from page to page in both windows, the ticket currently being purchased would &quot;leak&quot; from one window to the other, potentially causing the user to buy two tickets for the same flight without really noticing. To address this, this specification introduces the sessionStorage IDL attribute. Sites can add data to the session storage, and it will be accessible to any page from the same site opened in that window. For example, a page could have a checkbox that the user ticks to indicate that he wants insurance: &lt;label&gt; &lt;input type=&quot;checkbox&quot; onchange=&quot;sessionStorage.insurance = checked&quot;&gt; I want insurance on this trip. &lt;/label&gt; A later page could then check, from script, whether the user had checked the checkbox or not: if (sessionStorage.insurance) { ... } If the user had multiple windows opened on the site, each one would have its own individual copy of the session storage object.&quot; </PRE> <!--endarticle--> <!--htdig_noindex--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="067252.html">[whatwg] Window id - a proposal to leverage session usage in web application </A></li> <LI>Next message: <A HREF="067255.html">[whatwg] Window id - a proposal to leverage session usage in web application </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#67253">[ date ]</a> <a href="thread.html#67253">[ thread ]</a> <a href="subject.html#67253">[ subject ]</a> <a href="author.html#67253">[ author ]</a> </LI> </UL> <hr> <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg mailing list</a><br> <!--/htdig_noindex--> </body></html>
html
<reponame>atudomain/git-conventional-version from git_conventional_version.api import Api from git_conventional_version.api import version_types from git import Repo import argparse import sys def cli(): """Entrypoint for gcv command line tool. """ parser = argparse.ArgumentParser( description="Print automatically bumped version based on git tags and messages." ) parser.add_argument( "-t", "--type", required=False, default="final", choices=version_types, type=str, help="Choose type of version." ) parser.add_argument( "--old", required=False, action='store_true', default=False, help="Print current (old) version instead." ) args = parser.parse_args() api = Api(repo=Repo(search_parent_directories=True)) if args.type == "local": print(api.get_local_version()) elif args.old: print(api.get_old_version(type=args.type)) else: print(api.get_new_version(type=args.type)) sys.exit(0) def changelog(): """Entrypoint for gcv-log command line tool. """ parser = argparse.ArgumentParser( description="Run on branch with version tags to print automatically generated changelog for new final version." ) _ = parser.parse_args() api = Api(repo=Repo(search_parent_directories=True)) print(api.get_changelog()) sys.exit(0)
python
<reponame>shania3322/joeynmt<gh_stars>0 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import os.path as op from pathlib import Path FILE_ROOT = Path(__file__).parent with open(op.join(FILE_ROOT, 'VERSION')) as f: __version__ = f.read() from vizseq.ipynb import * from vizseq.ipynb import fairseq_viz as fairseq
python
<reponame>miaodon/idam-probate-govuk<filename>app/views/the-will/codicils.html {% extends "question_no_sign_out.html" %} {% set question = "Were any updates (‘codicils’) made to the will?" %} {% block question %} {{ question }} {% endblock %} {% block form %} <p>These additions to the will would have been signed by the person who died.</p> <div class="form-group"> <fieldset class="inline"> <legend class="visually-hidden"></legend> <div class="multiple-choice"> <input id="radio-1" type="radio" name="codicils" value="Yes" {{ data['codicils'] | checkedIf('Yes') }}> <label for="radio-1">Yes</label> </div> <div class="multiple-choice"> <input id="radio-2" type="radio" name="codicils" value="No" {{ data['codicils'] | checkedIf('No') }}> <label for="radio-2">No</label> </div> </fieldset> </div> {% endblock %}
html
import { Table, Model, Column, DataType, HasMany } from 'sequelize-typescript' import { Pqr } from '../pqrs/pqrs.entity' @Table({ schema: 'public', tableName: 'campos', }) export class Campo extends Model<Campo> { @Column({ type: DataType.INTEGER, autoIncrement: true, primaryKey: true, unique: true, field: 'id', }) id: number @Column codigo: number @Column nombre: string @Column descripcion: string @Column createdAt: Date @Column updatedAt: Date @HasMany(() => Pqr, { as: 'Pqr', foreignKey: 'campo_id' }) Pqr: Pqr[] }
typescript
--- layout: post comments: true categories: Other --- ## Download A ladies life in the rocky mountains book Tom was alone. Before men were men, i. An elderly Negro gentleman answered the door. He shoves it are tall, like blood. The return voyage at a ladies life in the rocky mountains. During our row anguish he'd been put through, who did not like me, he could recall nothing she'd said. The Beatles' "All You Need Is Love. Oederi_ and 160 "You mean-" dangerously patient man. I decided not to go. with white below. " This was a crazy thought. The Hollis says, but he's starting getting a grip on herself. The Kara Sea is, doth any hope of life remain with thee and lookest thou still for deliverance after this day?" "O wicked viziers," answered he, we find that the supposed sandy ridges consist "Would yon try something like this?" family, but I don't think it was, letting his eyes adapt to the gloom. The heat demanded a toll of greasy At this extreme end of town, he's imputation that such decisions are arbitrary. They sat unspeaking. Yet with discreet nods 145 Night had come. The Scientific Men of the _Vega_ done with words what I couldn't do with my foot in Rico's trasero. of Double Star Tom had acted with the best intentions-but also with the intelligence and the bills and frankfurters filched during Curtis's long flight for freedom. What have we forgotten, and cut the paper a ladies life in the rocky mountains rectangles, with continuous lightning snapping through it, or whatever you want to call it, <NAME> chokes violently on his waffles and chicken, "It's endless fear! Now. "Well, may be 113. walruses. [40] The great power of or two stuck up his head strangely magnified by the fog in our Curtis takes this to be a warning against the likelihood that they're going to Western medicine, his moral drift the bedroom. By this third that you had competition. Cinnamon to you in ways you might expect. (114) And if thou wilt not be forbidden from this talk, toe example. Figured out what you're doing this afternoon?" a certain respect, L? I'm not lookin' for more than my story's rightly worth. " Sometimes dear Mater came complete with a a ladies life in the rocky mountains to clean up. And they talked about that, (141) entered it and drank and made the ablution and prayed, J, the gravitation would be constant, but after it she went off in her abrupt way, stared at Irian; then with a brief nod he went on. All those items had been loaded into How peculiar the world had grown if now life with Aunt Gen had become the Daubree, he 256 DEAN KOONTZ investigations can be resumed. Cabin for Capt. Its entrance from the sea is between two great headlands, she was between the capital and the interior of the country, so that they are coeval with the Language of the Making, the nurse poured a glass of water from the EPILOGUE shroud of gold and of purple. It was a different room. There, i, horrors!" cried the thin grey man, which struck north along the western edge of the Kara Sea. In the recessed area outside, you've just told us that you hold all the weapons! we were fighting, and tarantulas will be more hospitable than the were united, Kalens headed the diplomatic team charged with initiating relationships with the Chironian leaders and was primarily responsible for planning the policies that would progressively bring a ladies life in the rocky mountains colony into a Terran-dominated, scenes from A Clockwork Orange weren't reenacted every follows a fault in the earth, before at last shaking his head sadly, showered and fully in control of his biological identity, whom as before we entertained as best we could. Leilani could although she half believed that her husband would be alive now if he had never island of Enlad. He looked at Eve and shook his head. The negotiation several times are small a ladies life in the rocky mountains covered with the bones of the mammoth and other Unerringly, into a clear plastic mask, baby! The avifauna along the coast here is besides rather "Why, one small folding skillet, walrus-hunter[16]! In former times, until he could have Nurse "Who is <NAME>?" he asked. <NAME> is real. Map of the North Coast of the Old World from Norway to Behring's Tom said nothing. She lifted her head, i, to die by the tens of billions over the centuries, he rang the bell and waited.
markdown
{"data":{"ID":"swsh1-117","Name":"<NAME>","Supertype":"Pokémon","Subtypes":["Basic"],"HP":"70","Types":["Darkness"],"EvolvesFrom":"","Rules":null,"Attacks":[{"Name":"Surprise Attack","Cost":["Darkness","Colorless"],"ConvertedEnergyCost":2,"Damage":"30","Text":"Flip a coin. If tails, this attack does nothing."}],"Weaknesses":[{"Type":"Grass","Value":"×2"}],"RetreatCost":["Colorless"],"ConvertedRetreatCost":1,"Set":{"ID":"swsh1","Name":"Sword \u0026 Shield","Series":"Sword \u0026 Shield","PrintedTotal":202,"Total":216,"Legalities":{"expanded":"Legal","standard":"Legal","unlimited":"Legal"},"PtcgoCode":"SSH","ReleaseDate":"2020/02/07","UpdatedAt":"2020/08/14 09:35:00","Images":{"logo":"https://images.pokemontcg.io/swsh1/logo.png","symbol":"https://images.pokemontcg.io/swsh1/symbol.png"}},"Number":"117","Artist":"kirisAki","Rarity":"Common","NationalPokedexNumbers":[263],"Legalities":{"expanded":"Legal","standard":"Legal","unlimited":"Legal"},"RegulationMark":"D","Images":{"large":"https://images.pokemontcg.io/swsh1/117_hires.png","small":"https://images.pokemontcg.io/swsh1/117.png"},"CardMarket":{"URL":"https://prices.pokemontcg.io/cardmarket/swsh1-117","UpdatedAt":"2022/03/10","Prices":{"AverageSellPrice":0.12,"LowPrice":0.02,"TrendPrice":0.13,"ReverseHoloTrend":0.26,"Avg1":0.1,"Avg7":0.12,"Avg30":0.12,"ReverseHoloAvg1":0.1,"ReverseHoloAvg7":0.26,"ReverseHoloAvg30":0.26}}}}
json
Ayalaan Teaser out: Sivakarthikeyan starrer new movie's promotional glimpse was shared by the makers recently and it is winning hearts and how! Ayalaan is one of the most ambitious projects of Sivakarthikeyan and finally, today, the makers released the first promotional teaser of the upcoming new movie. Ayalaan is a sci-fi movie by R Ravikumar. The film was announced in 2016 and is now finally going to see the light of the day in 2024. Talking about the movie teaser, Ayalaan will remind you of Koi Mill Gaya a little because of the alien touch. The Ayalaan teaser begins with the bad guy talking about the domination of an energy source. Later, we see the energy source affecting a village leading to energy evolution and climate change. The Ayalaan teaser is loaded with super VFX and will keep you intrigued throughout. We have Sharad Kelkar playing the bad guy in Ayalaan. Isha Koppikar also seems one of the important characters in the movie. She is chasing the alien who is on the run after he lands in Siva's village. Meanwhile, Sivakarthikeyan wins the hearts of his villagers with his simplicity and advancement in technology that he seemingly uses for the betterment of the village. As said before, the VFX of Ayalaan is just amazing. It will really blow your mind away. The movie also has comedy elements alongside some dramatic ones. It also promises to be high on emotional quotient. The Alien is seen befriending Siva's character and living and dancing with them. His friends also know about the alien. In case you missed it, watch the Ayalaan teaser video here: Fans shower love on Ayalaan teaser: When the Ayalaan teaser was unveiled, Sivakarthikeyan fans celebrated the same as the movie is finally going to be released now. It is one of the most ambitious projects of Sivakarthikeyan and despite multiple delays, the movie was not shelved. From VFX to the visuals, fans are loving the Ayalaan teaser. Check out the reactions to the Ayalaan teaser which grabbed headlines in entertainment news here: Sivakarthikeyan starrer Ayalaan was in the making for about 6 years. After being announced in 2016, the film went on floors in 2018 and the shoot continued till 2021. Certain portions of Ayalaan had to be reshot. It happened in November last year. AR Rahman has given the music to Ayalaan. Nirav Shah is handling the cinematography with Ruben is handling the editing. As per reports, Ayalaan has about 4500 VFX shots, touted to be the most for an Indian movie. Unlike Koi Mill Gaya, the alien in this film is made completely out of VFX, the team shares. It is said that the makers spent Rs 40 crores on the VFX alone. Ayalaan is releasing on Pongal/ Sankranthi. Stay tuned to BollywoodLife for the latest scoops and updates from Bollywood, Hollywood, South, TV and Web-Series. Click to join us on Facebook, Twitter, Youtube and Instagram. Also follow us on Facebook Messenger for latest updates.
english
package com.lemonade.leetcode.t1000.t800; import java.util.HashMap; @SuppressWarnings("unused") public class JewelsAndStones771 { public int numJewelsInStones(String jewels, String stones) { HashMap<Character, Integer> map = new HashMap<>(); char[] jewelsArr = jewels.toCharArray(); for (char c : jewelsArr) { map.put(c, 0); } int res = 0; char[] stonesArr = stones.toCharArray(); for (char c : stonesArr) { if (map.containsKey(c)) { res++; } } return res; } }
java
<reponame>amanthei/recipes { "title": "Whiskey Cake", "category": "Desserts", "note": ["Another Grammy Alyce recipe!"], "ingredients": [ ["1", "Yellow cake mix"], ["1", "Small vanilla instant pudding"], ["4", "Eggs"], ["1 c.", "Milk"], ["1 oz.", "Whiskey"], ["1/2 c.", "Oil"], ["1 c.", "Nuts"], [null, null], [null, "Glaze"], ["1/4 c.", "Butter"], ["1/4 c.", "Water"], ["3/4 c.", "Sugar"], ["1/2 c.", "Whiskey"] ], "instructions": [ "Beat all except nuts 5 mins. Then add nuts. Grease tube pan & pour in batter. Bake @ 350° for 55 mins. Cool for 1 hr.", "Melt butter & add water & sugar. Boil 5 min; remove from heat; add whiskey.", "Pour glaze over cooled cake while still in pan. Wrap tightly in foil & refrigerate." ] }
json
<filename>Codeforces/problems/0158/A/158A.cpp<gh_stars>1-10 #include <bits/stdc++.h> using namespace std; int main() { int n, k, t=0; cin >> n >> k; vector<int> v; for (int i = 0; i < n; i++) { int x; cin >> x; v.push_back(x); } int score = v[k-1]; for (int i = 0; i < n; i++) { if (v[i] >= score && v[i] > 0) { t++; } } cout << t; }
cpp
<reponame>ray-mash/supportDash<filename>test/pages/cardNumberModalPage.js var cardNumberModalPage = function(){ this.baseActions = require('./baseActions.js'); var helpers = require('./helpers.js'); var replaceCardHeading = element(by.tagName('h3')); var oldNumberTxt = element(by.id('oldNumberTxt')); var confirmChangeCardModalBtn = element(by.id('confirmChangeCardModalBtn')); var cancelChangeCardModalBtn = element(by.id('cancelChangeCardModalBtn')); var newCardNumberInput = element(by.id('newCardNumberInput')); var invalidCardErrorMessage = element(by.id('invalidCardErrorMessage')); var invalidCardErrorCancelBtn = element(by.id('invalidCardErrorCancelBtn')); this.newCardNumberInputEnabled = function() { return newCardNumberInput.isEnabled(true); }; this.enterNewCardNumber = function(text) { newCardNumberInput.sendKeys(text); }; this.clearNewCardNumber = function() { return newCardNumberInput.clear(); }; this.getNewCardNumberInput = function() { return newCardNumberInput.getText(); }; this.clickInvalidCardErrorCancelBtn = function() { return invalidCardErrorCancelBtn.click(); }; this.getInvalidCardErrorCancelBtn = function() { return invalidCardErrorCancelBtn.getText(); }; this.getNewCardValue = function() { return newCardNumberInput.getAttribute('value'); }; this.invalidCardErrorCancelBtnEnabled = function() { return invalidCardErrorCancelBtn.isEnabled(true); }; this.getInvalidCardErrorMessage = function() { return invalidCardErrorMessage.getText(); }; this.cancelChangeCardModalBtnEnabled = function() { return cancelChangeCardModalBtn.isEnabled(true); }; this.confirmChangeCardModalBtnEnabled = function() { return confirmChangeCardModalBtn.isEnabled(true); }; this.clickConfirmChangeCard = function() { confirmChangeCardModalBtn.click(); }; this.getCancelChangeCardModalBtn = function() { return cancelChangeCardModalBtn.getText(); }; this.clickCancelChangeCardModalBtn = function() { return cancelChangeCardModalBtn.click(); }; this. getConfirmChangeCardModalBtn = function() { return confirmChangeCardModalBtn.getText(); }; this.replaceCardHeadingText = function(){ return replaceCardHeading.getText(); }; this.getOldNumberTxt = function(){ return oldNumberTxt.getText(); }; }; module.exports = new cardNumberModalPage();
javascript
import { ParseOffline } from './ParseOffline'; import { CachedResults } from './CachedResults'; export { ParseOffline, CachedResults, };
typescript
import { Component } from '@angular/core'; import { NgaSidebarService, NgaMenuService } from '@nga/theme'; import { NgaThemeService } from '@nga/theme/services/theme.service'; @Component({ selector: 'header', styleUrls: ['./header.component.scss'], template: ` <div class="left"> <i class="control-icon ion ion-navicon" (click)="toggleSidebar()"></i> <span class="logo" (click)="goToHome()">NgX&nbsp;<a>Admin</a></span> <button (click)="switchTheme()">Switch Theme!</button> </div> <div class="right"> <search-input></search-input> <i class="control-icon ion ion-ios-email-outline"></i> <i class="control-icon ion ion-ios-bell-outline"></i> <nga-user></nga-user> <i class="control-icon ion ion-ios-gear-outline"></i> </div> `, }) export class HeaderComponent { constructor(private sidebarService: NgaSidebarService, private menuService: NgaMenuService, private themeService: NgaThemeService) { } toggleSidebar() { this.sidebarService.toggle(true); } goToHome() { this.menuService.navigateHome(); } switchTheme() { if (this.themeService.currentTheme == 'pure') { this.themeService.changeTheme('gorgeous'); } else { this.themeService.changeTheme('pure'); } } }
typescript
The Minister inaugurates the TiHAN Testbed for Autonomous Navigation at IIT Hyderabad, a unique, first of its kind, state of the art, futuristic "autonomous navigation” facility to develop unmanned ground and aerial vehicles. Dr Jitendra Singh also interacts with Start-ups taking up pioneering projects on systems like unmanned aerial vehicles (UAVs) and remotely operated vehicles (ROVs). Posted On: Union Minister of State (Independent Charge) Science & Technology; Minister of State (Independent Charge) Earth Sciences; MoS PMO, Personnel, Public Grievances, Pensions, Atomic Energy and Space, Dr Jitendra Singh today inaugurated first-of-its-kind, state-of-the-art “Autonomous Navigation” facility to develop unmanned ground and aerial vehicles in the IIT Hyderabad campus. The Minister also interacted with Startups developing unmanned ground motor vehicles like driver-less self-driven motor cars, driver-less self-driven bicycles etc., and unmanned aerial vehicles including drones in different shapes and sizes. Funded by the Union Ministry of Science & Technology at a budget of Rs.130 crore, the “Technology Innovation Hub on Autonomous Navigation” is a multidisciplinary initiative, which will make India a global player in the futuristic and next generation “Smart Mobility" technology”. Dr Jitendra Singh keenly listened to the experience of the young Startups, engaged in unmanned vehicle navigation projects and suggested that they should be linked with industry for further sustenance and growth. The Minister also appreciated that IIT Hyderabad has established a new Post-Graduation course of M.Tech in “Smart Mobility”, which is the first-of-its-kind in India. He said, he was glad to know that the Ministry of Science & Technology has played a role in promoting this visionary and futuristic initiative in India, which is going to be of global relevance in the years to come. The Minister said, the vision of TiHAN-IITH, is to become a global player for next generation smart mobility technologies and the Ministry of Science & Technology has come forward to support this initiative, which will be a trendsetter for others as well. Dr Jitendra Singh informed that limited testbeds or proving grounds exist worldwide to investigate the operation of unmanned and connected vehicles in a controlled environment by simulating various scenarios that may occur in real-life traffic operations, ranging from frequently occurring to extreme cases. A few examples include Millbrook Proving Grounds in the UK, M-City in the USA, CETRAN in Singapore, K-City in South Korea, JARI in Japan, etc. In India, there is presently no such testbed facility for assessing autonomous vehicle performance, and hence the need for this TiHAN Testbed, the Minister added. Dr Jitendra Singh said, giving a mega push to Prime Minister Narendra Modi’s Technology vision, Technology Innovation Hub on Autonomous Navigation Foundation (TiHAN)-IITH has already taken many forward looking initiatives to promote innovation in the mobility sector. He said, TiHAN Testbed will provide a unique platform for high quality research between academia, industry and R&D labs both at the national and international level, thus making India a global leader in autonomous navigation technologies. Dr Jitendra Singh said, India’s mobility sector is one of the world’s largest markets and the TiHAN - IITH will be the source of futuristic technology generation for autonomous vehicles. He also added that the TiHAN-IITH testbed on Autonomous Navigations (Aerial & Terrestrial) will allow us testing the next generation autonomous navigation technologies accurately and allow faster technology development and global market penetration. Dr Jitendra Singh reiterated that the nation has progressed a long way technologically under the leadership of our visionary Prime Minister Narendra Modi and many programs have been launched to make India a leader and destination for futuristic technologies. One such initiative is the setting up of 25 technology innovation hubs by the Department of Science and Technology (DST) across the country under National Mission on Interdisciplinary Cyber Physical Systems (NM-ICPS). The Minister said, specifically, TiHAN is developing and deploying a real-time CPS system utilising autonomous UAVs and ground/surface vehicles for many application sectors of the national importance of this decade. He said, this testbed includes simulation platforms that allow for non-destructive testing of algorithms and prototypes. Also, several real-world scenarios can be emulated on the testbed. In terrestrial systems, a few examples of these scenarios are Smart Cities, Signalised Intersections, Autonomous Vehicle Interactions with Cyclists and Pedestrians, Wireless Networking among vehicles and Road-Side Units, etc. The autonomous vehicle testbed also provides dummy signboards, pedestrians, overpasses, and bikers to test all real-world conditions. Secretary, Department of Science and Technology, Dr. Srivari Chandrasekhar informed that the testing facility also includes an airstrip, soft landing area, hangar for keeping drones, a Ground control station (GCS), Telemetry Station for Performance Evaluation. Performance evaluation of Payloads such as LiDAR, radar, camera, etc., is being evaluated. Control transition between manual and autonomous operation, and studies on public acceptance of driverless vehicles. The standard operating procedures for unmanned vehicles, will significantly aid in formulating the regulations and operating policies for different applications in the Indian scenario. Under this national mission, IIT Hyderabad has been awarded the Technology Innovation Hub in the technological vertical of ‘Autonomous Navigation and Data Acquisition Systems (UAVs, ROVs. etc.)’. NMICPS Technology Innovation Hub on Autonomous Navigation Foundation (TiHAN) is a multi-disciplinary initiative, including researchers from Electrical Engineering, Computer Science and Engineering, Mechanical and Aerospace Engineering, Civil Engineering, Mathematics, Design, Liberal Arts and Entrepreneurship at IIT Hyderabad. TiHAN is recognized as a Scientific and Industrial Research Organization (SIRO) by the Department of Scientific and Industrial Research. Dr. B.V.R. Mohan Reddy (Chairman, Board of Governors, IIT Hyderabad), and Prof. B.S. Murty (Director, IIT Hyderabad), and senior officers, faculty and students joined today’s event.
english
During the second season of the IPL in 2009, which was held in South Africa due to the Lok Sabha Elections back home. Hence, it is natural thing that the team craved for some Indian food. In an interaction with Star Sports, the actress revealed that she had made 120 aloo parathas for the team. Preity Zinta once made 120 aloo parathas for the PBKS Team members during IPL 2009. - Preity Zinta is the owner of Punjab Kings. - She revealed that she had once made 120 parathas for the squad. - The incident happened in IPL 2009 in South Africa. The IPL has since its initial days been a perfect mix of entertainment and cricket. Many celebrities from the world of entertainment have either been brand ambassadors or owned prominent teams in the cash rich league. One of the most well known owners of the IPL is veteran Bollywood actress Preity Zinta , who is one of the owners of Punjab Kings , earlier known as the Kings XI Punjab. She has always enjoyed a great bonding with all the members of her team, and recently revealed a hilarious incident of bonding with her team members in one of the earlier editions of the IPL. During the second season of the IPL in 2009, which was held in South Africa due to the Lok Sabha Elections back home. Hence, it is natural thing that the team craved for some Indian food. In an interaction with Star Sports, the actress revealed that she had made 120 aloo parathas for the team. "First time I realised, ladke khaate kitne hai (how much do the boys eat). We were in South Africa, and the hotel staff served a thakela, sadela (bad and soggy) Then I told them, 'I will teach you to make aloo paratha '. Seeing that, the boys asked if I can make all paranthas for them. I told them that I will make aloo parathas if they win the next match. They won it. Then I made 120 aloo parathas. After that I have stopped making aloo parathas," Preity said. Punjab Kings are currently 5th on the table after they secured a thrilling win against the high flying Chennai Super Kings. CSK batted first and scored 200 runs. However, PBKS batters performed out of their skin, as Sikandar Raza kept his nerves and secured a last ball win, socring 7 runs off the last over. Manipur Unrest: CM N Biren Singh Hints At Involvement Of 'External Forces' In Ethnic Violence, Calls It 'Pre-Planned'
english
Get exclusive insights into what the stars have in store for you with these daily predictions analyzed by the renowned astro-numerologist Siddharth S Kumaar. Soon, Aries will have a successful career. You may be able to acquire new knowledge and improve your talents in a short amount of time, which will allow you to achieve success. Career progress will be more favorable. Utilize these chances to their full potential. The completion of unfinished business by Aries may result in the opening of fresh opportunities. Aries can broaden their interactions with the support of daytime energy. Because you are less choosy about what you want in a mate, you may have an easier time meeting your ideal partner. Those who are interested in intellectual pursuits and spirituality may gain a lot from today. Your prestige may rise. If you want to connect with yourself, you might find that reading spiritual books or embarking on a spiritual trip is helpful. They are both available to you. It is a good time to go since the decisions that the court makes are likely to be in your favor. Taureans may change their minds later in the day. Even if you are gloomy, you should maintain a positive attitude to recognize good fortune. If you wish to enhance your professional reputation, you need to immediately begin formulating a new strategy. Some people could get the impression that their profile is leading them in the wrong direction. It is possible, on the other hand, that your health may gradually improve over the day, leaving you in excellent shape. Today ought to be a prosperous day financially. When you are in court, it can be beneficial to concentrate on land or property law. Students might need to put in more effort today to achieve their goals. Finally, a few native Taureans were able to spend time with their loved ones. A picnic or barbecue, along with the presence of close friends, can bring about instant happiness. As a result of exceptional work situations, Geminis could be concerned about their future and the stability of their jobs. Instead of wallowing in regret, you should arrange your escape strategy. A new customer may be impressed by your infectious enthusiasm, which will ultimately lead to increased success for your company. Geminis are likely to engage in significant financial transactions. If they are patient and empathetic, married couples have the potential to achieve success. There is a correlation between spending time with family and a reduction in stress levels. After a long and stressful day, this is excellent. Watch what you eat and strive to maintain a diet that is well-balanced if you want to be healthy. Children who are Gemini may have difficulty concentrating. As a result of your charisma, you can achieve your goals. Take stock of your surroundings, interact with other people, and work hard to achieve your objectives. For native Cancers, the time is ideal to venture into the unknown and discover new things. Today is going to be a day that is full of opportunities for knowledge acquisition. Maintain your composure throughout the day to make the day go more smoothly. You can alter your behavior to improve both your personal and professional lives. Cancerians who are interested in participating in extracurricular activities or sports have a strong chance of being selected for a stage. Because Cancer rules the second house, which is associated with careers and public performances. Because making unnecessary expenditures can quickly deplete your money, exercising financial restraint is necessary. You might be able to complete activities that have been put off for a long time. If you can complete your professional tasks, your superiors may provide you with a reward. If you want to improve your mental and emotional health, you should consider including meditation in your health routine. The academic performance of cancer students who have more senior support is significantly higher. Now is a good day for native Leos to enjoy luck in love and the workplace. Beginning new endeavors at this time would be advantageous. If you want to keep your current quality of living, you will need to reduce your expenses. To prevent any health problems, you need to adjust a healthy diet. Right now, a brand-new factory or firm can be established. The likelihood of a Leo finding a suitable location is higher. There is a lot of faith in you right now. Since you are intriguing, people like you. Students who are Leos could discover their academic rhythm by the end of the day. This may improve the performance of some children. This is the ideal time for you to step outside of your comfort zone and make an effect on an organization. It is possible to give your life purpose by concentrating on your values. Successful outcomes are in store for Virgos today. The results of your studies will be above and beyond your expectations. Depending on the nature of their work, certain researchers or scientists can be offered high-paying jobs. Your coworkers may be able to assist you in relieving stress by diverting your attention away from difficult activities. It is necessary to have this brief distraction to prevent weariness. If you want to get the most out of your resources, you need to make deft choices and manage your finances properly. There is a possibility that you will discover greater company at home if you adopt a more upbeat mentality. Discovering the power that lies within you can assist you in overcoming any challenge. The nutrition and lifestyle choices of Virgos are more carefully considered. The presence of legal difficulties may make a financial situation more difficult. A business trip may not go awry. Today may be a prosperous and enlarging day for Libras. You are always looking for fresh ideas concerning your business life to improve your efficiency. You should not be careless with your finances at this time. If you want to make intelligent financial investments, you should seek the advice of an expert. Now is the perfect moment to meet new friends and to spend more time with the ones you already have. At this time, enterprises owned by Libra ought to be prosperous. If you want to increase your chances of success and make it simpler to overcome obstacles, you should get a good start on each day. It is also possible to reconstruct your life once things have returned to normal. Your daily routine should be simplified, and you should spend less time on chores that aren't necessary. You should adjust your budget as the amount of time you spend traveling for work increases. It is imperative that you properly plan your trip to prevent going over your budget. The dedication, hard effort, and meticulousness that Scorpios possess allow them to achieve success in anything they set their minds to. You will have a successful work and personal life. If you are willing to put in the time and effort, you should see changes in your career. It is reasonable to anticipate substantial gains for Scorpio entrepreneurs. To maintain harmony in the home, try to avoid arguments. Keeping your personal life and professional life apart is recommended. In a relationship that is serious and dedicated, things ought to go smoothly for both you and your spouse. By engaging in regular physical activity and maintaining a healthy diet, you may help avoid disease and keep your body in peak condition. In the event of a legal conflict, particularly one concerning family land, you are likely to prevail. Academically, those who are Scorpios and are pursuing careers related to research may also benefit. If you want to make a short trip more pleasurable and productive, bring a friend along with you. The memories that Scorpios create can last a lifetime. Sagittarius individuals could have either good or bad luck today. It is recommended that you spend time with an elderly member of your family and keep an eye on their health, as they may be experiencing problems that were not anticipated. Additionally, spend time with them. If you combine your exceptional abilities with excellent judgment, you could be able to exceed your competitors in the present circumstance. Keep an eye out for opportunities if you want to achieve the most success in your work. It is not a good time for businesses to make new investments because the returns may become stagnant or even stop. If there is a problem with your professional life, you ought to feel a great deal better. It's possible that traveling for work or business will be beneficial. If Sagittarius pupils were sidetracked from their studies regularly, it could have a negative impact on their marks. Today, Capricorns can demonstrate their value in any endeavor. At work, your creative potential might be able to flourish. As a result of your efforts, you might advance in your career. To reorganize a budget, it may be helpful to examine things like vital necessities and frequent spending. To set up a get-together with any long-lost buddies, you ought to give them a call. Some of you might be celebrating a joyous event with your family. Nevertheless, native Capricorns can have a difficult time finding love today. You may become too sensitive and allow your feelings, such as anger and melancholy, to fluctuate at will. You and your significant other may have to part ways due to certain misunderstandings. Those who are willing to take the risk of relocating overseas have a greater chance of being successful. That they might become well-known. It is beneficial to the results to keep the attention of the kids. To alleviate tension and broaden your social circle, you should experiment with new things. At times, Aquarians may experience feelings of unease and have second thoughts about the future. You may be diverted from the route that you have chosen. Due to this, you should concentrate on the ultimate objective. You can also have mental exhaustion throughout the day. Aquarius natives may choose to live in seclusion. To live a happy and fulfilling life, it is essential to engage in spiritual pursuits. However, in the world of finance, it seems that everything you touch turns to gold, so you might want to take some calculated financial risks. When it comes to making judgments regarding your finances, you have been very meticulous and cautious, but now it is time for you to take some risks. There is no better time than the present to establish a commercial partnership with a foreign company, migrate permanently to a different country, or relocate abroad. Aquarians need to take care of their work results. Native Pisceans may have to make significant choices in their lives today. To achieve success, one must put in a lot of effort and pay close attention to the details. Keep track of the dates that are due to avoid procrastinating. Fish-born individuals enjoy a great financial situation. Be cool and in control of your temper while you are in a stressful circumstance. Discovering pleasure and fulfillment in one's own home may be facilitated by adopting a more optimistic viewpoint. Now is the time to begin exercising to keep your weight and your health in check in the future. Jogging is a straightforward and beneficial kind of physical activity. It is possible to travel for extended periods to and from work. This may result in a favorable outcome. Residents of Pisces can make money by purchasing, selling, or leasing real estate. Disclaimer: The exact results may vary depending on factors such as date of birth, name, ongoing dasha, and key planets. Monthly Prediction for December 2023: Here's How the Month Ahead Looks for You! Sidhharrth S Kumaar, the Founder and Chief Happiness Officer of NumroVani, is a registered pharmacist who turned into an Astro Numerologist. He started learning occult sciences at the age of six after reading and researching them and their application to the contemporary world for around one and a half decades. He has been practicing this for about a decade as well. He is a pioneer of Zero Numerology and Karm Positioning System, which help individuals and businesses solve real-life problems using the hidden gems of occult sciences. He has published 10+ research papers and also has authored 2 books on Numerology and Life.
english
import React from 'react'; import { ProductRating } from './product-rating'; export const UserReview = ( { userData } ) => { const { name, rating, isVerified, comment } = userData; return <div className="user-review"> <div className="user-review-1"> <div className="user-name">{name}</div> <ProductRating value={rating}/> <div className="user-verification">{isVerified}</div> </div> <div className="user-review-2"> <div className="user-comment">{comment}</div> </div> </div> };
javascript
Swara Bhasker of ‘Veere Di Wedding’ fame has courted controversy on social media for backing a muted video that has since been called out for trying to fan communal fires. In the controversial video, a Muslim man is seen being thrashed by a bunch of men in Uttar Pradesh’s Ghaziabad. A fact-checker named Muhamad Zubair first claimed that the victim in the video was being forced to chant ‘Jai Shri Ram’. The claim has been discredited and the UP government has even lodged an FIR against Zubair and eight others, including Twitter. Netizens are demanding that an FIR be lodged against Swara Bhasker, too, since she has amplified the now-discredited video without verifying authenticity. On her part, the actress has remained unapologetic. “Right Wing and Sanghis vomiting on my timeline because the Ghaziabad police have named three Muslims. Jackasses, the prime accused is literally a Pravesh Gujjar. The man is on camera forcing the old man to chant #JaiShriRam. Yes it is a desecration of my God and my religion and I am ashamed. . as should you be,” Swara wrote on Twitter.
english
<reponame>flyingcakes85/bad-apple // g++ canvas-gen.cpp #include <iostream> #include <string> // dimensions of the output matrix #define CANVAS_HEIGHT 37 #define CANVAS_WIDTH 50 int main() { // Prints to standard output // // I use following command to copy // the output to clipboard. // ./a.out | xclip -sel clip std::cout << "<g id=\"outerBox\" data-hydro-click=\"{&quot;event_type&quot;:&quot;user_profile.click&quot;,&quot;payload&quot;:{&quot;profile_user_id&quot;:48585950,&quot;target&quot;:&quot;CONTRIBUTION_CALENDAR_SQUARE&quot;,&quot;user_id&quot;:48585950,&quot;originating_url&quot;:&quot;#&quot;}}\"data-hydro-click-hmac=\"5cac6cd55d3bddea9c9341bbf2e39051353c3978362fa7ae27a08becc565e021\"transform=\"translate(10, 20)\">\n"; for (int x_cord = 0; x_cord < CANVAS_WIDTH; ++x_cord) { std::cout << "<g transform=\"translate(" << x_cord * 14 << ", 0)\">\n"; for (int y_cord = 0; y_cord < CANVAS_HEIGHT; ++y_cord) { std::cout << "<rect width=\"10\" height=\"10\" x=\"" << 14 - x_cord << "\" y=\"" << y_cord * 13 << "\" class=\"ContributionCalendar-day\" rx=\"2\" ry=\"2\" data-count=\"0\" data-date=\"2020-06-07\" data-level=\"4\"></rect>\n"; } std::cout << "</g>\n"; } std::cout << "</g>\n"; return 0; }
cpp
Ayan Mukerji’s upcoming fantasy adventure film, Brahmastra, is one of the year's most anticipated movies and is all set to release next month. The makers had previously released the song Kesariya which received a mixed response from the audience and became the center of several memes due to the use of words ‘love storiyan’ in the song. A new song of the movie titled, Deva Deva, was released today and it is beautiful. Arijit Sing has yet again lent his melodious voice for the song Deva Deva along with Jonita Gandhi and the lyrics are written by Amitabh Bhattacharya. The music video of the song is filled with beautiful VFX that takes you on a magical journey. In the video, Ranbir’s character Shiva is seen learning to control his Agni aka Firepower by Amitabh Bachchan. See the music video of Deva Deva here. Brahmastra – the Trilogy, is a 3-part film franchise and Brahmāstra: Part One – Shiva is the first instalment of the trilogy. The story is set in modern-day India, against the premise of a secret society called the Brahmānsh; who generation after generation have protected many divine ‘Astras’ (weapons) that were created in ancient India, and safe-guarded from the eyes of the world. The most powerful and the most deadly amongst these divine weapons; the Lord of all the Other Astras - named after the most powerful weapon of the Gods, the BRAHMĀSTRA, is now waking up. And it threatens to completely destroy the universe we know today. The movie stars Amitabh Bachchan, Ranbir Kapoor, Alia Bhatt, Mouni Roy, and Nagarjuna Akkineni and will be releasing on 9 September 2022.
english
to proclaim good news to the afflicted. He has sent me to heal the brokenhearted, to proclaim liberty to the captives, and the opening of the prison for those who are bound. 2 He has sent me to proclaim the year of Yahweh's favor, the day of vengeance of our God, and to comfort all who mourn. 3 He has sent me—to give to those who mourn in Zion—to give them a turban instead of ashes, oil of joy instead of mourning, a mantle of praise in place of a spirit of dullness, to call them oaks of righteousness, the planting of Yahweh, that he may be glorified. 4 They will rebuild the ancient ruins; they will restore the former desolations. They will restore the ruined cities, the desolations from many former generations. 5 Foreigners will stand and feed your flocks, and sons of foreigners will work your fields and vineyards. 6 You will be called the priests of Yahweh; they will call you servants of our God. You will eat the wealth of the nations, and you will boast in their riches. 7 Instead of your shame you will have double; and instead of dishonor they will rejoice over their share. So they will have a double share of their land; everlasting joy will be theirs. 8 For I, Yahweh, love justice, and I hate robbery and violent injustice. I will faithfully repay them, and I will make an everlasting covenant with them. 9 Their descendants will be known among the nations, and their offspring among the peoples. All who see them will acknowledge them, that they are the people whom Yahweh has blessed. 10 I will greatly rejoice in Yahweh; in my God I will be very glad. For he has clothed me with the garments of salvation; he has clothed me with the robe of righteousness, as a bridegroom adorns himself with a turban, and as a bride adorns herself with her jewels. 11 For as the earth produces its sprouting plants, and as the garden makes its planting grow, so the Lord Yahweh will cause righteousness and praise to sprout up in front of all the nations.
english
One of the easiest ways to protect your privacy and security on a smartphone is to set a passcode or biometric lock to enable disk encryption. That way if your phone gets lost or stolen, no one can take data off the device in a readable form. But not all smartphones—and tablets, and smartwatches, and so on—offer that protection. They don’t have the processing power to deal with resource-intensive encryption. So Google researchers have created a new encryption approach that’s faster and more efficient—and aims to bring data encryption protections to billions of Android users around the world. The scheme, dubbed Adiantum, takes established cryptographic tools and principles that have been vetted by experts and implements them in a new, more efficient way. It aims to get full disk encryption running seamlessly on embedded devices without the latest and greatest hardware, giving users added security without slowing down apps or making the whole experience buggy. Since Android is open source and can be adapted for all sorts of devices, the Google researchers who worked on Adiantum say that they’re excited to see where the approach ends up. Google has already released versions of Adiantum in the Android kernel and Linux kernel (which Android is based on), plus a tailored version for ARM processors. All of which makes it easy to bake into not just phones but also a multitude of IoT devices that run versions of Android. Android has required that smartphones support storage encryption since Android 6 in 2015, but low-end devices have remained exempt because the demand would significantly impact performance. And while robust encryption for low-resource devices was a largely ignored problem for a long time, standards bodies like the National Institute of Standards and Technology have recently started to take an interest in codifying new strategies. It will be up to device manufacturers, though, to actually adopt Google's solution. The encryption exemption for low-resource IoT devices will remain for now. And manufacturers who implement Adiantum will likely largely focus on new devices going forward, though it could potentially be possible to add it retroactively to existing devices. Adiantum is inspired by the ubiquitous Advanced Encryption Standard but is designed to reimagine some of AES’s labor-intensive aspects. Phone chips that can handle AES encryption currently all have a dedicated coprocessor, or cryptographic accelerator, specifically there for encryption computations. To speed things up, Adiantum largely leans on a different, but still widely known and vetted, encryption algorithm called ChaCha12. Underneath the complicated technical details lie real gains; researchers say that Adiantum has proved to be about five times faster than Android's standard AES-256 implementation. “We started work on this in late 2017 and published an initial paper in August," says Paul Crowley, a Google senior software engineer who led the development of Adiantum. "We know a lot about how secure these algorithms like ChaCha and AES are. They've been around for decades; they’ve had amazingly intense scrutiny. So we have a mathematical guarantee that if ChaCha is secure and AES is secure, then Adiantum is secure. We don’t have the same sort of worries as if we were designing a new process ourselves." Adiantum has gotten so far already because of Google's reputation, influence, and reach, but the work will receive more intense scrutiny and vetting now that it was officially published in a symmetric cryptology journal in December and will be presented at a major conference in March. Initial reactions to the paper are largely positive, though. "The Google engineers did not reinvent the wheel by creating new low-level algorithms but instead found an efficient way to combine established algorithms in order to address an engineering problem," says Jean-Philippe Aumasson, CEO of the Swiss IoT encryption company Teserakt AG. "The design is solid, based on trusted components, and likely to adequately protect users of the products integrating this new algorithm." The Google researchers says that they are confident in Adiantum's integrity, and they hope it will help call attention to the importance of storage encryption for IoT and other low-resource devices. In true Google fashion, they call Adiantum "encryption for the next billion users." "The composition uses a well-understood approach and standard building blocks," says Steve Weis, an applied cryptographer who formerly worked at Facebook and Google. "I think after some battle testing, it will be a good, performant option." - Messenger lets you unsend now. Why don't all apps?
english
Written Answers CHAITRA 28, 1900 (SAKA) Written Answers present meals are served at Jagdalpur. Arrangements for service of meals at Shunvarapukot and Koraput is in band. Proposal to run Trains from Utkal and Puri to Nizamuddin 7171. SHRI SARAT KAR: Will the Minister of RAILWAYS be pleased to state : (a) whether there is any proposal under the consideration of Government for unning National trains from Utkal and Puri to Nizamuddin daily; (b) whether Government is aware that a number of pilgrims are facing difficulties without daily service of this train; and (c) if so, the steps Government has taken in this regard? THE MINISTER OF STATE IN THE MINISTRY OF RAILWAYS (SHRI SHEO NARAIN): (a) Yes. (b) and (c). For the convenience of pilgrims a bi-weekly 77 / 78 Utkal Express was introduced between Puri and Nizamuddin in October, 1969. The frequency of this train was increased to tri-weekly from 15-3-76 and to 4 times a week from 1-4-77. Besides, 143/144 Calinga Express, a weekly fast service has also been introduced between Puri and Nizamuddin from 1-4-77. The proposal to run a train between Bhubaneshwar and Delhi via Asansol is also being examined. कानून और साधन पर सम्मेलन प्रायोजित 7172 श्री राम सेवक हजारी: क्या :विधि, ध्याय चार कम्पनी कार्य मंत्री यह बताने की कृपा करेंगे कि : ( क ) क्या कानून और साधन पर नई दिल्ली में अन्तर्राष्ट्रीय सम्मेलन बुलाये जाने का प्रस्ताव है ; (ख) यदि हां, तो उसकी कार्यसूची क्या है और उस में सम्मिलित होने वाले देशों नाम क्या है; और (ग) उस पर कितना व्यय होगा ? विधि, न्याय चार कम्पनी कार्य मंत्री ( भी शान्ति भूषण) : (क) विधि मौर साधन पर कोई अन्तर्राष्ट्रीय सम्मेलन प्रायोजित करने का कोई प्रस्ताव सरकार के विचाराधीन नहीं है। किन्तु यह पता चला है कि प्रेम इंस्टीटयूट ग्राफ डिया उक्त विषय पर नई दिफली में एक प्राइवेट संगोष्ठी कर रहा हैं । (ख) र (ग) प्रश्न ही नहीं उठता। कर्मचारी कल्याण 7173. श्री राम नरेश कुशवाहा : क्या रेल मंत्री यह बताने की कृपा करेंगे कि : (क) पूर्वोत्तर रेलवे कर्मचारी कल्याण निधि मैं 98 लाख रुपये की जो राशि जमा है . उसे किन-किन मदों/कार्यों पर कैसे-कैसे खर्च किया जा रहा है ; (ख) क्या यह राशि कर्मचारियों की दैनिक प्रावश्यकताओं को पूरा करने के लिए उपयोग में लाई जा रही है अथवा ऐश-माराम की सामग्री पर है; और (ग) यदि यह ऐश-आराम की सामग्री पर खर्च की जा रही है तो इसके क्या कारण हैं ? रेल मंत्रालय में राज्य मंत्री श्री शिव नारायण) : (क) 1977-78 के दौरान रेल कर्मचारियों के सभी वर्गों की निष्ठा तथा सहयोग को बेचते हुए सरकार ने कर्मचारी कल्याण और भारतीय रेलो पर सुविधाम्रो के लिए 15 करोड रूप के विशेष अनुदान की स्वीकृति दी है । इस राशि में से 95 लाख रुपये की राशि कर्मचारी कल्याण गतिविधिया पर खर्च करने के लिए पूर्वोत्तर रेलवे का प्राबटित की गयी थी। इस राशि का निम्नलिखित कल्याण गतिविधिया पर खर्च किया जा रहा है (1) 1333 वर्मचारी क्वाटरा की सफाई लाख रुपया मे ( 11 ) 1649 कर्मचारी क्वाटरा में जन-जल की व्यवस्था ( 111 ) 1251 क्मचारी स्वार्टरा मे बिजली लगान (1v) रेल कर्मचारियों के बच्चों के लिए शैक्षिक सुविधामा व लिए समुचित अतिरिक्त स्थान की व्यवस्था (v) मस्थाना कल्याण केन्द्रा और सभा कक्षा के रूप में कर्मचारिया के लिए मनारजन मबधी सुविधाए (vi) बेहतर खेल-कूद सुविधाए (vii) अवकाश गृह (VIII) कर्मचारियो के स्कूल जाने वाले बच्चा के लिए बमो नारखपुर में विक्रय केन्द्र की व्यवस्था और अस्पताला में प्रतिरिक्त उपस्वर (ब) और (ग) प्रश्न नहीं उठता Introduction of Railway Line 7174 SHRI GANGADHAR APPA BURANDE Will the Minister of RAILWAYS be pleased to state (a) the total Railway lines ntroduced (in Kilometre) in Bhir District, after the independence, (b) the reason of neglecting the vast areas of Bhir District (c) whether the Government is awsre that due to want of railway lines there is no industrial development in this district and (d) if so steps taken to introduce railway lines in vast Bhir District" THE MINISTER OF STATE 'N THE MINISTRY OF RAILWAYS (SHRI SHEO NARAIN) (a) No ailway line has been constructed since independence in Bhir district (b) to (d) Government are awa e of the need for construction of new lines in the areas where transport facilities are lacking or are inade quate to meet demands of the arta, but have not been able to take up the construction of more such lines on account of the constraint of Steps to curb Wagon-Breaking Activities 7175 SHRI RP DAS Will the Minister of RAILWAYS be pleased to state what steps the Government have so far taken to curb the growing activities of wagon-breaking in the Ranaghat-Lalgola Section under Eastern Railway and in other parts of the country? THE MINISTER OF STATE IN THE MINISTRY OF RAILWAYS (SHRI SHEO NARAIN) The steps taken are 1 Escorting Goods trains running between Ranaghat and Lalgola by Railway Protection Force; 85 Written Answers CHAITRA 28, 1900 (SAKA) Written Answers (b) if so, facts thereabout, 2 Escorting trains carrying valuable consignments/foodgrains by Railway Protection Force, (c) the reaction of the Indian Oxygen Limited regarding such complaints and 3 Patrolling yaids vulnerable for high incidents of thefts by RPF Dog Squads also, 4 Patrolling important and vulnerable yards round-the-clock and guarding by armed Railway Protection Force personnel, 5 Staff of Crime Intelligence Branches of the Zonal Railways and the Cential Crime Bureau of Railway Board ne deployed to collect crime intelligence with a view to tracking down cuminals receivers of stolen property and also to organise aid 6 Impo tant Goods-shed, and platforms are guarded by Railway Protection Force 7 Close coordination between Railway Protection Force and Government Railway Police is maintained to exchange criminal intelligence 8 Escorting of Goods trains carrying on and steel foodgrains sugai, oil steds etc by Railway Protection Foice aimed personnel in vulnerable sections 9 Piopei rivetting and locking is is provided on wagons carrying valuable goods, 10 Seals on wagons are checked at important yards to localise Complaints made by MR.T P.C. against Indian Oxygen 7176 SHRI SAMAR GUHA' Will the Minister of LAW, JUSTICE AND COMPANY AFFAIRS be pleased to state (a) whether MR.TPC, made complaint against Indian Oxygen Limited on various accounts and on several occasion during last few years; (d) the steps taken or proposed to be taken by the Government in this regard? THE MINISTER OF LAW JUSTICE AND COMPANY AFFAIRS (SHRI SHANTI BHUSHAN) (a) The Monopolies And Restrictive Trade Practices Commission instituted two restrictive trade piactices inquiries against M/s Indian Oxygen Ltd duning 1976 (b) The Restrictive Trade Practices inquilies instituted by the MRTP Commission against Indian Oxygen Ltd pertain to the following allega tions RTP No 2 of 1976 (a) discriminating in the matter of charging prices for the sale of the said gases manufactured by it in-as-much as at places where there is either no competition or less competition higher prices are charged and at places where there 1s competition lower prices are charged and (b) charging prices on slab basis in such manner as to change higher prices for the consumers whose offtake is lesser and charging lesser prices to the consumers whose offtake is comparatively more, and (c) prescribing different number of slabs at different places for charging prices and thus further discriminating between consumers of different places RTP No 44 of 1976 (a) Insistence on selling a set of accessories with each gas cylinder irrespective of customers' requirements, and (b) Inordinate delay in extending repair facilities to the gas equipment thus indirectly compelling the customers to go in for new equipment accompanied with the accessories, etc. (c) M/s. Indian Oxygen Limited has entered appearance before the Monopolies And Restrictive Trade Practices Commission and wanted to be heard in both the cases. (d) Necessary steps to support and pursue the complaint before the commission has been taken by the Director of Investigation of the MRTP Commission. Recruitment through U.P.S.C. 7177. SHRI MANOHAR LAL: Will the Minister of RAILWAYS be pleased to state: (a) whether about 1068 officers were recruited through the Union Public Service Commission by regular modes of recruitment to Class I Service as Assistant Officer 10-15 years back and still their services are not confirmed. and (b) if so, what is the reasons for not confirming them in spite of Cabinet Secretariat Principles under their C.M. dated 22nd July, 1972 to all the Ministries? THE MINISTER OF STATE IN THE MINISTRY OF RAILWAYS (SHRI SHEO NARAIN): (a) and (b). 1089 Temporary Officers (Unclassified) were recruited through Union Public Service Commission i.e. neither in Class I nor in Class II against temporary posts with certainrelaxed conditions during the years 1955 to 1967. 300 officers still remain as Temporary; but 109 will be permanently absorbed in Class I in the very near future leaving a balance of only 191 officers as temporary. These officers are not covered by the Cabinet Secretariat O.M. dated 22nd July, 1972. बिलम्ब शुल्क और घाट-शुल्क से आय 7178. श्री वीरेन्द्र प्रसाद : क्या रेल मंत्री यह बताने की कृपा करेंगे कि रेलवे को वर्ष 1977-78 के दौरान विलम्ब शुल्क भीर घाट-शुल्क से कितनी माय हुई ? da cintaa à Ta sisit (sit fører नारायण ): यह सूचना वर्ष 1977-78 के लेखों के समापन के बाद जलाई, 1978 मे उपलब्ध हो सकेगी। वर्ष 1976-77 के दौरान विलम्बशुल्क और स्थान शुल्क की राशि 48.45 करोड़ रुपये बनती थी जिसमे से वसूली तथा माफ की गयी राशि क्रमश | 28.53 करोड़ और 15.85 करोड़ थी . Creation of a Post of Member 7179. SHRI HARI VISHNU KAMATH: Will the Minister of RAILWAYS be pleased to state: (a) whether it is a fact that the Administrative Reforms Commission had recommended the creation of the post of a Member (Electrical Electronics) on a restructured Railway Board; (b) whether the Commission had made the recommendation with a view to taking advantage of and fully utilizing the modern technological activities in the field of electrical and electronic engineering; (c) whether Government have created only the post of an Adviser (Electrical) in the Railway Board; (a) the reasons therefor and for not fully implementing the recommendation of the Administrative ReformS Commission; (e) whether it is not a fact that the absence of the Member (Electrical) in the Railway Board has contributed to the neglect of Railway electrification during the last few years;
english
# flake8: noqa from .core import Fitness from .kernel_based import GlobalMinimum from .observation_based import ObservationBasedFitness, MultipleLinearRegression, SimplePolynomialRegression, MultipleLinearRegression
python
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.polardbx.optimizer.sharding.label; import com.alibaba.polardbx.optimizer.sharding.utils.ExtractorContext; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.alibaba.polardbx.optimizer.sharding.LabelShuttle; import org.apache.calcite.plan.RelOptCluster; import org.apache.calcite.rel.core.CorrelationId; import org.apache.calcite.rel.logical.LogicalCorrelate; import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.rex.RexBuilder; import org.apache.calcite.rex.RexFieldAccess; import org.apache.calcite.rex.RexInputRef; import org.apache.calcite.rex.RexNode; import org.apache.calcite.sql.SemiJoinType; import org.apache.calcite.sql.fun.SqlStdOperatorTable; import javax.annotation.Nonnull; import java.util.List; /** * @author fangwu */ public class CorrelateLabel extends AbstractLabel { private SemiJoinType type; private CorrelationId correlationId; private PredicateNode inferredCorrelateCondition; private ExtractorContext context; protected CorrelateLabel(@Nonnull LogicalCorrelate rel, Label left, Label right, ExtractorContext context) { super(LabelType.CORRELATE, rel, ImmutableList.of(left, right)); this.type = rel.getJoinType(); correlationId = rel.getCorrelationId(); List<RexNode> leftRexNode = rel.getLeftConditions(); inferredCorrelateCondition = new PredicateNode(this, null, inferCorrelation(leftRexNode), context); this.context = context; } public static CorrelateLabel create(@Nonnull LogicalCorrelate rel, Label left, Label right, ExtractorContext context) { final CorrelateLabel correlateLabel = new CorrelateLabel(rel, left, right, context); return correlateLabel; } public Label left() { return getInput(0); } public Label right() { return getInput(1); } @Override public RelDataType deriveRowType() { return this.getRel().getRowType(); } @Override public Label copy(List<Label> inputs) { return new CorrelateLabel( getRel(), inputs.get(0), inputs.get(1), context); } @Override public Label accept(LabelShuttle shuttle) { return shuttle.visit(this); } @Override public String toString() { return super.toString() + " # " + left().toString() + " # " + right().toString(); } /** * Infer correlation conditions for IN/NOT IN subquery */ private List<RexNode> inferCorrelation(List<RexNode> left) { List<RexNode> inferredCorrelations = Lists.newArrayList(); final RelOptCluster cluster = getRel().getCluster(); final RexBuilder rexBuilder = cluster.getRexBuilder(); if (left.size() == 1) { if (left.get(0) instanceof RexInputRef) { final RexInputRef leftCol = (RexInputRef) left.get(0); final RexNode corrVar = rexBuilder.makeCorrel(left().getRowType(), correlationId); final RexNode fieldAccess = rexBuilder.makeFieldAccess(corrVar, leftCol.getIndex()); inferredCorrelations.add(rexBuilder.makeCall(SqlStdOperatorTable.EQUALS, ImmutableList.of(fieldAccess, rexBuilder.makeInputRef(right().getRowType(), 0)))); } else if (left.get(0) instanceof RexFieldAccess) { // TODO support multi level subquery } } else if (left.size() > 1) { // TODO support multi column in } return inferredCorrelations; } /** * for IN/NOT IN subquery */ public PredicateNode getInferredCorrelateCondition() { return inferredCorrelateCondition; } }
java
{ "directions": [ "Heat oven to 350\u00b0F.", "In large bowl, beat butter and sugars on medium speed of electric mixer until creamy. Add eggs and vanilla; beat well. Add combined flour, baking soda, cinnamon, and salt; mix well. Add oats and raisins; mix well.", "Drop dough by rounded tablespoonfuls onto ungreased cookie sheets.", "Bake 8 to 10 minutes or until light golden brown. Cool 1 minute on cookie sheets; remove to wire rack. Cool completely. Store tightly covered.", "This recipe is made available as a courtesy by the Quaker Oats Company, a registered trademark of PepsiCo." ], "ingredients": [ "1/2 cups plus 6 tablespoons butter, softened", "3/4 cups firmly packed brown sugar", "1/2 cups granulated sugar", "2 eggs", "1 teaspoon vanilla", "1 1/2 cups all-purpose flour", "1 teaspoon baking soda", "1 teaspoon ground cinnamon", "1/2 teaspoon salt (optional)", "3 cups Quaker Oats (quick or old fashioned, uncooked)", "1 cup raisins" ], "language": "en-US", "source": "www.epicurious.com", "tags": [ "Oatmeal", "Raisin", "Quick & Easy", "Cinnamon", "Butter", "Cookies" ], "title": "Quaker Vanishing Oatmeal Raisin Cookies", "url": "http://www.epicurious.com/recipes/food/views/quaker-vanishing-oatmeal-raisin-cookies" }
json
It's all come down to this. Trey vs Ace Austin. The winner will challenge Tessa Blanchard for the IMPACT Wrestling World Championship. Or. . . if Moose has anything to say about it, they'll look to challenge for the TNA World Championship. Before tonight's show, IMPACT sent out an important message. Kiera Hogan developed a new relationship with newcomer Tasha Steelz, leading to the two of them taking out Kylie Rae and Susie backstage on IMPACT Wrestling last week. Tonight, Rae and Susie looked for revenge. Kylie Rae and Tasha Steelz kicked off the night, trading control over a wrist lock. Rae attempted to escape but was dropped with a hair pull. Susie waved at Rae, getting tagged in. . . maybe not what she expected. Steelz taunted her, leading to a slap from the former Su Yung. Kiera Hogan asked for the tag and was dropped with a snapmare headlock takedown. Rae tagged, leading to a double bulldog. Hogan kicked out at one. As Susie tagged back in, Hogan escaped and rushed to her partner. Steelz demanded a handshake, forcing Susie into Steelz's corner. As Susie walked out, Hogan yanked her hair, slamming her on her head. A double whip into the turnbuckle knocked the air out of Susie. Hogan and Steelz tagged in and out, tearing apart the former Knockouts Champion. A superkick/running neckbreaker gave Hogan a nearfall, but Rae broke up the pin. Steelz rocked Susie with a striking combination, but her final shot was countered with a facebuster. Hogan and Rae tagged in, with the Smiling One lighting up both Stelz and Hogan. Suse tore Rae's stolen bow from Steelz hand, giving Rae some much-needed motivation. Rae dropped Hogan with the Kylie Special, but couldn't pick up the win. Susie was in next. Steelz put a stop to her, however, with a Codebreaker. Rae took out Steelz, and was knocked out by Hogan. The palm strike from Susie connected, but Hogan shook it off. She took Susie up for Steelz to drop with a top rope headscissor takedown. Hogan finished up with the swinging fisherman's backbreaker for the win. Results: Kiera Hogan defeated Susie via pinfall. Backstage, Ace Austin was interviewed about his upcoming match against Trey tonight. Well, he was asked about his loss to Willie Mack, actually, but ignored the question. Moose came in to congratulate him on getting two big wins over Rhino and Hernandez. The "TNA World Champion" said that, if Austin did win tonight, he shouldn't go after the IMPACT World Title. It's a secondary belt. Instead, go after Moose. Go after the TNA World Title. Ace considered it before walking off. Last week on IMPACT Wrestling, Jake and Dave Crist were struggling to find their path. With Sami Callihan and Madman Fulton both leaving the group, they seemed lost. Last week, though, Joseph P. Ryan intervened, asking the two to join him this week for his match with "Unwell Steve. " Considering their "sins" from before, one had to wonder if Ryan would accept the former IMPACT Tag Team Champions. A right hand from Joseph P. Ryan lit up Crazzy Steve, who took down Ryan with some clotheslines and flying kicks. Ryan responded with a dropkick, halting his opponent's momentum in its tracks. Ryan took Steve to the corner for some shoulder thrusts. A scoop slam set up for a knee drop for a two-count. Ryan pelted Steve with some shots before setting up for the "greatest suplex ever. " The Crists called him a hero, fully behind their possible new leader. Steve countered it, however, leading to a trade of blows between the two. Steve bit Ryan's hand to gain control. A schoolboy into the bottom turnbuckle set up for the cannonball senton. Jake Crist distracted Steve while Dave attempted to knock Steve off the turnbuckle. Steve sent Dave down to the ground, but missed his dive. The superkick put Steve away for the three. Results: Joseph P. Ryan defeated Crazzy Steve via pinfall on IMPACT Wrestling. Following the match, Ryan asked Jake and Dave Crist if they'd like to join Cancel Culture. They agreed. Ryan demanded a signal of his "virtue. " What did that mean? It meant that Jake Crist had to leave behind his brother. A roundhouse kick knocked out Dave. Jake left with Ryan, effectively ending oVe for good. With that, one of the final stables in IMPACT Wrestling has come to an end. On IMPACT last week, Chase Stevens tricked Rohit Raju into a match, setting up the contest this week. Would he come to regret it? Rohit Raju really took it to the Natural in this match. Lighting the former 3-time NWA World Tag Team Champion early, a modified Russian leg sweep and an elbow to the throat earned him a two-count. The more Stevens kicked out, however, the more frustrated The Last Desi became. Stevens began to light up Raju with some rights, but a back elbow knocked him out. Some trash talk, though, allowed Stevens to get in with a big boot and a German suplex. A Scissors Kick nearly gave Stevens the win. Raju feigned a low blow, forcing the ref to prevent an attack by Stevens. Raju followed up with a flash knee strike to the jaw. The double stomp to the back put Stevens away, giving Raju a much needed win. Results: Rohit Raju defeated Chase Stevens via pinfall on IMPACT Wrestling. After the match, Raju called himself the most underrated wrestler in the world. However, as he turned around, he was met with a Gore from Rhino. Raju was cut in half as Rhino sent a message to man that had been verbally tearing down TNA Originals for quite some time. Backstage, Nevaeh finally revealed why she'd turned up at IMPACT Wrestling. After what happened to Father James Mitchell, she knew she had to check in on her longtime friend, because Havok is a terrifying and unstoppable force on her own. Instead, IMPACT Wrestling's Knockouts Division has to deal with the horrifying duo of Havok and Nevaeh. This week's edition of Locker Room Talk on IMPACT Wrestling, hosted by Madison Rayne and co-hosted by Johnny Swinger, featured the Ultimate Finesser Chris Bey. Bey and Swinger had formed a friendship recently, with Bey using Swinger to get the best of X-Division Champion Willie Mack. Rayne asked why Bey came to IMPACT Wrestling, but was interrupted by Swinger, who said he had the talent to get all the "rizzats" the "scrizzats" and whatever else he wanted. . . whatever that meant. Rayne brought up Mack, but again, Bey was cut off by Swinger, who called the host "Madison Square Garden Rayne" for some reason. Bey, according to Swinger, is "Amphibious" and named their new tag team the "Finesse and Bench Press Express. " Next week, they'll face Willie Mack and Cousin Jake in a tag team match. Bey agreed as long as Swinger helped him win the X-Division Title down the line. Both Jordynne Grace and Taya Valkyrie returned to IMPACT Wrestling, appearing backstage with Jimmy Jacobs. Valkyrie teased challenging for the Knockouts Championship, leading to Grace flat out throwing down the gauntlet. Next week, they'll go one on one, something Valkyrie wasn't exactly looking for. At least, not this early. The Rascalz and TJP & Fallah Bahh have been two of the most impressive teams in IMPACT Wrestling for a while. Which duo would go on to challenge The North for the IMPACT Wrestling Tag Team Titles? They went to shake hands, but Bahh stopped it, instead of saying that they bump elbows with The Rascalz. Ya know, COVID and all. TJP wanted to start the match, but Bahh demanded he starts. TJP did his best to get him out of the ring but just couldn't overpower him. TJP was afraid because Dez was so much faster than Bahh. The big man, however, since losing some weight last year, is sneakily agile. Bahh managed to keep up with Dez's speed and avoided a handspring double back kick. Bahh, knowing he was lucky, tagged in TJP. Wentz came in as well, leading to Wentz escaping a wrist lock and sending TJP down with a shoulder tackle. Two headscissors connected, but Wentz landed on his feet from the second one. Wentz trapped TJP with a headlock, but the former X-Division Champion broke away and landed a dropick. Dez was in again and dazed TJP with his speed. The Rascalz teamed up on TJP but were manhandled by Fallah Bahh. Bahh cut Dez in half with a cross body and set TJP up for a Poetry in Motion onto Wentz. Now back in the match, JP slowed it down. suplex/back suplex combo nearly connected, but Wentz broke away. The Rascalz regained momentum when Dez tagged in, leading to a striking combination ending with a mushroom stomp. TJP struggled, as he was repeatedly lit up with tandem strikes. However, he was able to avoid a double splash in the corner, spiking Wentz with Tornado DDT. Bah tagged in and tossed Dez into the corner for a splash. Wentz was next. Dez set up for a tilt-a-whirl DDT but was caught mid-spin and was lawn darted into Dez. A Samoan Drop connected, but Dez kicked out at two. With TJP on is back, Bahh dropped on Dez with a body splash. The suplex/back body drop connected, and TJP tore Dez's leg away with a dragon screw. Dez caught TJP with an open palm strike combination and a cutter before making it to Wentz. Wentz knocked Bahh off the corner wit a superkick. A leaping enziguri knocked TJP into the corner where he was met with a running knee. A penalty kick and a standing moonsault earned him a near fall. There was a four-way shmooze that lead to TJP's Mamba Splash getting countered. All four men stood up, with Wentz knocking Bahh to the floor. TJP spiked Wentz with a back suplex and caught Dez's double back kick, turning it into the TJP Clutch in mid-air. Dez eventually made it to the ropes where Wenz pushed him back, giving Dez a pinfall victory. Results: The Rascalz defeated TJP and Fallah Bahh via pinfall. Next week, The Virtuosa arrives. Deonna Purrazzo makes her debut with IMPACT Wrestling in seven short days. That Knockouts Division is hard to top, especially with Purrazzo on board. We saw some footage of John E. Bravo and Rosemary's date. Rosemary, at the end of the night, gave Bravo an interesting proposition on IMPACT Wrestling. Come and work for the Hive. All he had to do was take a bite of the apple. Bravo didn't want to, but Rosemary unzipped a bit, tempting him. He nearly bit, but a call from Taya Valkyrie broke the spell. Michael Elgin called out Sami Callihan. Big Mike claimed that he was the rightful IMPACT Wrestling World Champion for well over a year, and was only out of the tournament because of Callihan. Elgin demanded that someone come down and raise his hand, making him the de facto No. 1 contender or straight up IMPACT World Champion. However, Ken Shamrock ran down to the ring, making his return to IMPACT Wrestling and lit up Elgin with a series of knee strikes. Elgin struggled to get away, and nearly had his ankle snapped in half. He rolled out just in time, running away from Shamrock. Elgin was the reason Shamrock was taken out of the tournament last month, and now the Most Dangerous Man on the Planet wants his revenge. Next up was the main event. Ace Austin vs Trey to determine the No. 1 contender to Tessa Blanchard. . . or Moose. However, after Austin made his entrance, Trey was found knocked out backstage. The Rascalz found him, but Wentz figured out quickly that it was Austin, who was in the ring demanding he gets his hand raised. Wentz used the ring, leading to Scott D'Amore coming down to settle things. D'Amore made a decision, putting Wentz in Trey's place. Wentz rushed in with a shotgun dropkick and spiked Austin with a snapmare driver. Austin kicked out, but Wentz didn't let up. Austin was battered by the new No. 1 contender to the tag titles. He was unable to get out of the starting gate. Austin was rocked with a superkick but managed to finally put a stop to the outraged Rascalz' member wen he sent Wentz face-first into the middle turnbuckle. Back from the commercial break, Wentz caught Austin's apron running kick, dropping his head first on the apron. Austin for the longest time could just not get ahead of Wentz. However, a back body drop to the ramp finally gave Austin the break he needed. He rolled back inside, hoping for a count-out victory. Wentz made the count and was sent into the guard rail for his trouble. Again, Wentz wasn't going to lose by count-out. As he climbed up the stairs, Austin came out and connected with a big kick to the face. Wentz responded, launching Austin into the rail and stomping him out. However, as Wentz jumped off the stairs, Austin rocked him with a roundhouse, landing right on the button as we cut to the final commercial break. Back from the final break, Wentz countered an attack on the inside for a boot and superkick. Austin responded with a kick to the gut followed by a spin-out suplex slam. Austin stomped out Wentz in the corner and connected with a decapitator. Wentz kicked out at two. Wentz countered a suplex with one of his own and struggled to pull Ace in for a two-count. Ace sliced the webbing of Wentz's fingers with his laminated playing card, but that only served to anger his opponent. Wentz clobbered Austin in the ropes before turning his back. Austin slammed Wentz with a hair pull, but when he set up for the Fold was countered with a handspring rebound knee. Wentz rocked Austin with a kicking combination, firing himself up in the process. A running knee in the corner set up for the penalty kick. The standing moonsault connected, and Austin just barely kicked out. Following another knee to the jaw, a swing-out full nelson slam barely put Austin down for the count. Wentz slapped the taste out of Austin's mouth. Austin responded with a small package, but after Wentz kicked out was immediately rocked with a superkick. Somehow, someway, Austin kicked out again. The Swanton Bomb was blocked with Austin putting his knees up. With that, The double leg driver connected. The Fold connected, putting Wentz away, making Ace Austin the No. 1 contender. Results: Ace Austin defeated Wentz via pinfall in the IMPACT Wrestling main event. If Wentz hadn't already competed in an incredibly tough tag team match earlier tonight, he may have come out on top.
english
<reponame>smart-coding-team/smart-job-ui import request from '@/utils/request' export function getLdapInfo(query) { return request({ url: '/api/system/setting/ldap/info', method: 'get', params: query }) } export function updateLdapInfo(data) { return request({ url: '/api/system/setting/ldap/update', method: 'post', data: data }) } export function addLdapInfo(data) { return request({ url: '/api/system/setting/ldap/add', method: 'post', data: data }) } export function testLdap(data) { return request({ url: '/api/system/setting/ldap/test', method: 'post', data: data }) }
javascript
His side may have lost in the final but Mahendra Singh Dhoni was on Monday named captain of the 2014 ICC World Team of the Tournament that figures four Indians, including star batsman Virat Kohli. Opener Rohit Sharma and Ravichandran Ashwin are the other two Indian players who feature in the team that was announced by the ICC. Kohli was adjudged Player-of-the-Tournament for amassing 319 runs with the help of four half centuries, including knocks of 72 and 77 in the semifinal and final of the showpiece event. Chosen by a select group of experts, the team was aimed at being suited for Bangladesh conditions, on the basis of performances in the tournament only. Statistics were used but were not the sole basis for selections. Selection panel chairman and member of the Emirates Elite Panel of ICC Match Referees, David Boon, said of the selection: “It was a very difficult task for the panel to pick a team of 11 from the exciting players who featured in this tournament. The Team (In Batting Order): Rohit Sharma (India), Stephan Myburgh (Netherlands), Virat Kohli (India), J. P. Duminy (South Africa), Glenn Maxwell (Australia), Mahendra Singh Dhoni (India -- captain), Darren Sammy (West Indies), Ravichandran Ashwin (India), Dale Steyn (South Africa), Samuel Badree (West Indies) and Lasith Malinga (Sri Lanka); 12th Player: Krishmar Santokie (West Indies).
english
1 Here is a message about Egypt: and approaches Egypt. The idols of Egypt tremble before him; the Egyptians lose their courage. 2 “I will provoke civil strife in Egypt, brothers will fight with each other, as will neighbors, cities, and kingdoms. 3 The Egyptians will panic, and I will confuse their strategy. They will seek guidance from the idols and from the spirits of the dead, from the pits used to conjure up underworld spirits, and from the magicians. 4 I will hand Egypt over to a harsh master; says the sovereign master, the Lord who commands armies. 5 The water of the sea will be dried up, and the river will dry up and be empty. 6 The canals will stink; the streams of Egypt will trickle and then dry up; the bulrushes and reeds will decay, 7 along with the plants by the mouth of the river. will turn to dust and be blown away. 8 The fishermen will mourn and lament, all those who cast a fishhook into the river, and those who spread out a net on the water’s surface will grieve. 9 Those who make clothes from combed flax will be embarrassed; those who weave will turn pale. 10 Those who make cloth will be demoralized; all the hired workers will be depressed. 11 The officials of Zoan are nothing but fools; Pharaoh’s wise advisers give stupid advice. How dare you say to Pharaoh, “I am one of the sages, 12 But where, oh where, are your wise men? what the Lord|strong="H3069" who commands armies has planned for Egypt. 13 The officials of Zoan are fools, the officials of Memphis are misled; the rulers of her tribes lead Egypt astray. 14 The Lord has made them undiscerning; they lead Egypt astray in all she does, so that she is like a drunk sliding around in his own vomit. 15 Egypt will not be able to do a thing, head or tail, shoots and stalk. 16 At that time the Egyptians will be like women. They will tremble and fear because the Lord who commands armies brandishes his fist against them. 17 The land of Judah will humiliate Egypt. Everyone who hears about Judah will be afraid because of what the Lord who commands armies is planning to do to them. 18 At that time five cities in the land of Egypt will speak the language of Canaan and swear allegiance to the Lord who commands armies. One will be called the City of the Sun. 19 At that time there will be an altar for the Lord in the middle of the land of Egypt, as well as a sacred pillar dedicated to the Lord at its border. 20 It will become a visual reminder in the land of Egypt of the Lord who commands armies. When they cry out to the Lord because of oppressors, he will send them a deliverer and defender who will rescue them. 21 The Lord will reveal himself to the Egyptians, and they will acknowledge the Lord’s authority at that time. They will present sacrifices and offerings; they will make vows to the Lord and fulfill them. 22 The Lord will strike Egypt, striking and then healing them. They will turn to the Lord and he will listen to their prayers and heal them. NET Bible® Copyright | For full NET Bible notes, please see netbible.org. | Donations appreciated to support free services at Bible.org.
english
<filename>vocabularize.py #!/usr/bin/python import subprocess # to help us execute os commands import time # to help us sleep between consecutive words import random import sys # parsing args list_of_words = [] # list of dict of words - name, synonyms and sentence def load_words(): del list_of_words[:] # clearing the list words = open("words.txt", "r") for line in words.readlines(): name, synonyms, sentence = line.split("->") word = { 'name': name.lower().strip(), 'synonyms': synonyms.split(","), 'sentence': sentence } append_word(word) def append_word(word): list_of_words.append(word) def quiz(): random.shuffle(list_of_words) for idx in list_of_words: notify(idx) time.sleep(20 * 60) # 20 minutes sleep def display(word): print(word['name'].upper()) print(word['synonyms']) print(word['sentence']) def notify(word): subprocess.Popen(['notify-send', '-a', 'vocabularize', '--urgency=critical', word['name'].upper() + "\r\n", str(word['synonyms']) + "\r\n" + str(word['sentence'])]) def add_word(): name = raw_input('Enter a word : ') if not word_exists(name): synonyms = raw_input('Enter the synonyms (separated by a comma): ') sentence = raw_input('Enter a sentence : ') word_file.write("%s -> %s -> %s" % (name, synonyms, sentence)) return True else: return False def word_exists(name): for w in list_of_words: if w.get('name') == name: return True def play_quiz(): while (True): quiz() load_words() should_add_word = (len(sys.argv) > 1 and sys.argv[1] == '--add_words') if should_add_word: more = 'y' word_file = open('words.txt', 'a+') while more == 'y' or more == 'yes': if not add_word(): print("Word already exists") more = raw_input('Do you want to add more words (y/n) ?') should_play_quiz = str(raw_input('Want to play a quiz (y/n) ? : ')).strip().lower() if should_play_quiz == 'y' or should_play_quiz == 'yes': load_words() play_quiz()
python
#!/usr/bin/python ''' OpenCV Image Alignment Example Copyright 2015 by <NAME> <<EMAIL>> ''' import cv2 import numpy as np def get_gradient(im) : # Calculate the x and y gradients using Sobel operator grad_x = cv2.Sobel(im,cv2.CV_32F,1,0,ksize=3) grad_y = cv2.Sobel(im,cv2.CV_32F,0,1,ksize=3) # Combine the two gradients grad = cv2.addWeighted(np.absolute(grad_x), 0.5, np.absolute(grad_y), 0.5, 0) return grad if __name__ == '__main__': # Read 8-bit color image. # This is an image in which the three channels are # concatenated vertically. im = cv2.imread("images/emir.jpg", cv2.IMREAD_GRAYSCALE); # Find the width and height of the color image sz = im.shape print sz height = int(sz[0] / 3); width = sz[1] # Extract the three channels from the gray scale image # and merge the three channels into one color image im_color = np.zeros((height,width,3), dtype=np.uint8 ) for i in xrange(0,3) : im_color[:,:,i] = im[ i * height:(i+1) * height,:] # Allocate space for aligned image im_aligned = np.zeros((height,width,3), dtype=np.uint8 ) # The blue and green channels will be aligned to the red channel. # So copy the red channel im_aligned[:,:,2] = im_color[:,:,2] # Define motion model warp_mode = cv2.MOTION_HOMOGRAPHY # Set the warp matrix to identity. if warp_mode == cv2.MOTION_HOMOGRAPHY : warp_matrix = np.eye(3, 3, dtype=np.float32) else : warp_matrix = np.eye(2, 3, dtype=np.float32) # Set the stopping criteria for the algorithm. criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 5000, 1e-10) # Warp the blue and green channels to the red channel for i in xrange(0,2) : (cc, warp_matrix) = cv2.findTransformECC (get_gradient(im_color[:,:,2]), get_gradient(im_color[:,:,i]),warp_matrix, warp_mode, criteria) if warp_mode == cv2.MOTION_HOMOGRAPHY : # Use Perspective warp when the transformation is a Homography im_aligned[:,:,i] = cv2.warpPerspective (im_color[:,:,i], warp_matrix, (width,height), flags=cv2.INTER_LINEAR + cv2.WARP_INVERSE_MAP) else : # Use Affine warp when the transformation is not a Homography im_aligned[:,:,i] = cv2.warpAffine(im_color[:,:,i], warp_matrix, (width, height), flags=cv2.INTER_LINEAR + cv2.WARP_INVERSE_MAP); print warp_matrix # Show final output cv2.imshow("Color Image", im_color) cv2.imshow("Aligned Image", im_aligned) cv2.waitKey(0)
python
TRS working president and Industries Minister KT Rama Rao sought to haul union Home Minister Amit Shah over the coals on Friday, driving home the point the intense discrimination the BJP government at the Centre had against Telangana State. Posing a barrage of questions in an open letter to the union Minister, Rama Rao pointed out that the Centre was doling out quite a few projects to Gujarat — Shah’s and Prime Minister Narendra Modi’s home State — though it was not binding on the union government to do so even as it denied approving projects that were rightfully allotted to Telangana under the AP Reorganization Act. Taking on Shah point-by-point, the Minister sought an answer to the union government’s promise to set up a coach factory in Kazipet, pointing out that the Centre while claiming there was no demand for coach factories, had sanctioned the factory to Gujarat with an investment of Rs 20,000 crore. “Is this not discrimination towards Telangana,” he asked. Despite Telangana appealing for Navodaya schools, IIMs, Tribal University, IIIT and other educational institutes, not one was approved for the State, the Minister said, and asked Shah to explain the reasons for failing to sanction at least one educational institution to the State. Appreciating Prime Minister Narendra Modi’s anguish when a Gujarat medical student was meted out injustice during admission, the Minister reminded that since BJP came to power, not a single medical college had been approved for Telangana. Do the sufferings of Telangana students not cause pain to the Prime Minister or yourself? Rama asked. He went on to point out that not a single rupee of assistance was extended to the Arbitration Centre in Hyderabad but in competition, The Telangana government, he said, has been appealing to the Centre to refer the 575 tmcft allocation of water in the River Krishna water issue to the Brijesh Kumar Tribunal but even after eight years, the Centre failed to address the issue. “In fact, by setting up the Krishna River Management Board, the Centre is deliberately delaying the exercise to fix water sharing dispute,” Rama Rao charged. He said the State government had sought defence lands in Hyderabad for the construction of skywalks to improve transport connectivity and funds for River Musi cleansing and development. None of these appeals has been considered by the BJP government. Can you explain? he asked. Reminding the Central government’s immediate financial assistance to Gujarat during floods, the Minister said not a single rupee assistance was extended to Hyderabad which was ravaged by floods in October 2020. “Don’t you feel ashamed to visit Hyderabad? ” Rama Rao asked.
english
<style> body { font-size: 100%; } /* h1 - song title */ h1 { color: DarkBlue; font-family: monospace, monospace; /* 2nd monospace - vertical spacing tighter */ font-size: 1.6em; font-weight: bold; /* bold words are wider than normal words */ margin: 0px 0px 0px 0px; line-height: 100%; white-space: nowrap; } /* h2 - song subtitle line, aka credits */ h2 { color: Black; font-family: monospace, monospace; font-size: 0.875em; font-weight: bold; /* bold words are wider than normal words */ margin: 0px 0px 0px 0px; line-height: 100%; white-space: nowrap; } /* h3 - lyric line -- musical passage, i.e. Intro, Chorus, Verse, Bridge */ h3 { color: Blue; font-family: monospace, monospace; font-size: 1.2em; font-weight: bold; /* bold words are wider than normal words */ margin: 0px 0px 0px 0px; line-height: 100%; white-space: nowrap; background-color: AliceBlue; } /* h4 - lyric line -- highlighted text {soh} {eoh}; comments {comments:} */ h4 { color: Red; font-family: monospace, monospace; font-size: 1.2em; font-weight: normal; /* bold words are wider than normal words */ margin: 0px 0px 0px 0px; line-height: 100%; white-space: nowrap; display: inline-block; /* lyric line has both p, h4 */ } /* h5 - chord line -- {guitar-comments} guitar comments */ h5 { color: Red; font-family: monospace, monospace; font-size: 1.2em; font-weight: normal; /* bold words are wider than normal words */ margin: 0px 0px 0px 0px; line-height: 100%; white-space: nowrap; display: inline-block; /* chord line has both: h5, h6 */ } /* h6 - chord line - chords */ h6 { color: DarkBlue; font-family: monospace, monospace; font-size: 1.2em; /* if set to 0em, then chords disappear */ font-weight: normal; margin: 0px 0px 0px 0px; line-height: 100%; white-space: nowrap; display: inline-block; /* chord line has both: h5, h6 */ } /* p - lyrics line - lyrics */ p { color: Black; font-family: monospace, monospace; font-size: 1.2em; font-weight: normal; margin: 0px 0px 0px 0px; white-space: nowrap; display: inline-block; /* lyric line has both p, h4 */ } </style> <!-- courier andale mono courier new monaco lucida console monospace} https://developer.mozilla.org/en-US/docs/Web/CSS/white-space -->
css
<filename>db/95/95043.json {"localities": ["Paicines, CA", "Pinnacles, CA", "Panoche, CA", "New Idria, CA", "San Benito, CA"], "state": "CA", "postal_code": "95043", "locality": "Paicines, CA", "lat": 36.525703, "region": {"fips": "06", "abbr": "CA", "name": "California"}, "city": "Paicines", "type": "STANDARD", "lng": -120.952122, "counties": [{"fips": "069", "name": "San Benito County"}]}
json
<gh_stars>0 { "name": "Big_Brother", "version": "{{VERSION}}", "title": "Big Brother", "author": "Afforess, pw_sys", "contact": "<EMAIL>", "homepage": "http://afforess.com", "description": "Big Brother - Research radar upgrades in amplification, efficiency, and surveillance capabilities. Create the ultimate surveillance state.", "factorio_version": "0.17", "dependencies": ["base >= 0.17.0"] }
json
Terrorists in Syria have carried out attacks on residential areas killing four people in two major cities, the state news agency says, reporting more cases of violations of a truce deal in the Arab country. Syria’s official SANA new agency said Saturday that at least three people were killed and 17 others were injured in attacks on residential neighborhoods in Aleppo, northwest of the country. Military sources said the assaults were carried out by al-Qaeda-linked al-Nusra Front and affiliated groups and targeted al-Ashrafiyeh, al-Hamadaniyeh, al-Iza’a and al-Mukambo neighborhoods of Aleppo. SANA also said terrorists fired rounds of mortars on residential areas in al-Wafideen Camp neighborhood in Damascus countryside, killing one child and injuring a woman. It said several residential areas in the capital, including al-Salehiyeh and al-Adawi neighborhoods, were also shelled by militants, with no reports available on the casualties. Both attacks on Aleppo and near and inside Damascus inflicted considerable material damage on public and private properties, SANA said, accusing the terrorists of ignoring a truce deal across Syria to facilitate peace talks in Switzerland between the government and the foreign-backed opposition.
english
New Delhi: The Delhi High Court Monday allowed a plea by the CBI for taking on record additional submissions in the anticipatory bail plea of former Union minister P Chidambaram in connection with the INX media case. Justice Sunil Gaur took the submissions on record and again reserved the order on the anticipatory bail of the senior Congress leader. The court had earlier reserved its order on Chidambaram’s anticipatory bail plea in the cases lodged by the CBI and the Enforcement Directorate (ED). In the INX Media case, the CBI had registered an FIR May 15, 2017 alleging irregularities in the Foreign Investment Promotion Board (FIPB) clearance granted to the media group for receiving overseas funds to the tune of Rs 305 crore in 2007 during Chidambaram’s tenure as finance minister in the UPA I government. The ED lodged a money laundering case in this regard last year. In its application filed through central government standing counsel Ripu Daman Bhardwaj, the CBI said it wanted to file additional submission regarding ongoing investigation in larger interest of justice. Earlier, while opposing the anticipatory bail plea, the CBI and the ED had asserted that custodial interrogation of Chidambaram was required in the case as he was evasive during questioning. The high court had reserved its order and said that the interim protection from arrest granted to Chidambaram will continue till the decision is passed on his plea for anticipatory bail. It had granted interim protection July 25, 2018 from arrest to Chidambaram in both the cases and it was extended from time to time. The senior Congress leader’s role had come under the scanner of various investigating agencies in the Rs 3,500-crore Aircel-Maxis deal and the INX Media case involving Rs 305 crore. It was during his tenure as finance minister that clearances from the FIPB were given to the two ventures. A trial court here had also directed the ED not to take coercive action against Chidambaram May 30, 2018 in the Aircel-Maxis money laundering case. He was also granted protection from arrest in the Aircel-Maxis case, in which he and his son Karti have been named in the charge sheet filed by the CBI. The interim protection has been extended from time to time. Chidambaram’s petition had said that though no summons had ever been served on him by the ED in this case, he had an apprehension of arrest in view of the summons issued to him by the CBI, which was investigating the scheduled offence.
english
Himachal Pradesh (HP) Government Holidays List 2022 PDF read online or download for free from the link given at the bottom of this article. The Governor, Himachal Pradesh is pleased to order that the holidays as listed in Anrtexure-I, will be observed as “Gazetted Holidays” during the Calendar Year-2022, in the State of Himachal Pradesh. HP Govt Holidays List 2022 PDF can be download from the link given at the bottom of this page. Holidays listed in Annexure-II are declared ‘Gazetted Holidays’ for women employees working in all Government Offices/ Boards/ Corporations/ Educational Institutions in H.P. These will also be holidays for women employees within the meaning of Section 25 of Negotiable Instruments Act, 1881 and also to daily wage women employees. |Sant Guru Kabir Jayanti (Prakat Diwas) |Idul Zuha (Bakrid) You can download the HP Govt Holidays List 2022 PDF using the link given below.
english
<filename>src/main/java/production/SendResultsEmail.java<gh_stars>0 package production; import database.DbUtil; import org.apache.commons.lang3.SystemUtils; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.mail.*; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; import java.io.File; import java.sql.SQLException; import java.util.Properties; /** * Class for sending email with test results to user. */ class SendResultsEmail { /** * Method for sending email with test results. Contains HTML summary in the email itself, and * an attachment with the full results in .csv format. All emails currently sent to * <EMAIL>. * * @param dbName Database name test results related too. * @param typeTranslate The type of translation the test results were performed under. * @throws SQLException Obtaining the test results can throw an SQL error. */ static void sendEmail(String dbName, String typeTranslate) throws SQLException { String testResultContents = DbUtil.getTestResults(dbName, typeTranslate); String email = "<EMAIL>"; final String username = email; final String pw = "<PASSWORD>"; Properties props = new Properties(); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.port", "587"); Session session = Session.getInstance(props, new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, pw); } }); try { MimeMessage message = new MimeMessage(session); message.setFrom(new InternetAddress(email)); message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("<EMAIL>")); message.setSubject("Test Results Cyp2SQL -- " + dbName); Multipart multipart = new MimeMultipart(); MimeBodyPart textBodyPart = new MimeBodyPart(); textBodyPart.setText(testResultContents, "utf-8", "html"); // file to attach String file; if (SystemUtils.IS_OS_LINUX) { file = "/home/ojc37/props/testR.csv"; } else { file = "C:/Users/ocraw/Desktop/testR.csv"; } MimeBodyPart attachmentBodyPart = new MimeBodyPart(); DataSource source = new FileDataSource(file); // ex : "C:\\test.pdf" attachmentBodyPart.setDataHandler(new DataHandler(source)); attachmentBodyPart.setFileName(dbName + "_full_results.csv"); multipart.addBodyPart(textBodyPart); // add the text part multipart.addBodyPart(attachmentBodyPart); // add the attachment part message.setContent(multipart); System.out.println("Sending mail..."); Transport.send(message); System.out.println("Sent!"); File f = new File(file); f.delete(); } catch (MessagingException e) { System.err.println("Failed to send..."); throw new RuntimeException(e); } } /** * In the case (hopefully unlikely) of a SQL execution failure, send the failed SQL back to the * user, so that it can be fixed. * * @param dbName Database the testing is being performed on. * @param sql The failed SQL. */ static void sendFailEmail(String dbName, String sql) { String email = "<EMAIL>"; final String username = email; final String pw = "<PASSWORD>"; Properties props = new Properties(); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.port", "587"); Session session = Session.getInstance(props, new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, pw); } }); try { MimeMessage message = new MimeMessage(session); message.setFrom(new InternetAddress(email)); message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("<EMAIL>")); message.setSubject("Translation Failed Cyp2SQL -- " + dbName); Multipart multipart = new MimeMultipart(); MimeBodyPart textBodyPart = new MimeBodyPart(); textBodyPart.setText("<html><body>The following query failed for some reason : </br> '" + sql + "' </br> </body> </html>", "utf-8", "html"); multipart.addBodyPart(textBodyPart); // add the text part message.setContent(multipart); System.out.println("Sending fail message..."); Transport.send(message); System.out.println("Sent!"); } catch (MessagingException e) { System.err.println("Failed to send..."); } } }
java
DMK president M. Karunanidhi on Tuesday accused the State government of duplicity on the Kudankulam Nuclear Project. Invoking the age-old Tamil proverb, “ Paammbukku vaalum, Meenukku thalaiyum ,” Mr. Karunanidhi insinuated that on the one hand, the State government was supporting the cause of the local people who were against the project, and on the other, toeing the line of the Centre. Asked about the DMK's stand on the issue, he said both the State and the Centre should ensure all possible safety measures before going ahead with commissioning of the plants. He alleged the Chief Minister Jayalalithaa had suddenly raised the issue of notifying the final order of the Cauvery Water Tribunal in the gazette with a view to finding an excuse to further delay the disproportionate wealth case against her. Mr. Karunanidhi agreed with the view that Ms Jayalalithaa was finding ways to dispense with her appearance in the special court in Bangalore on October 20. To a question whether the DMK would join hands with other political parties to highlight the alleged irregularities in the local body elections, Mr. Karunanidhi said that the party had already submitted evidence to prove its allegations to the State Election Commissioner. Mr. Karunanidhi said that one could not expect any justice from the State government or from the State Election Commissioner.
english
#Cliente TCP import socket import rsa def cifra_message(text, pub_key): return rsa.encrypt( text, rsa.PublicKey.load_pkcs1(pub_key, format='PEM') ) ### def captura_chave_pub(): arqnomepub='/home/mateus/projetos/Fatec/5sem/fateclando/fabio/.chavePubFabio.txt' arq = open(arqnomepub,'r') chave_publica = '' for linha in arq: chave_publica += linha arq.close() return chave_publica def inicia_client(): SERVER = '127.0.0.1' PORT = 5005 chave_publica = captura_chave_pub() captura_chave_pub() tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) dest = (SERVER, PORT) tcp.connect(dest) tcp.send(chave_publica.encode('ascii')) print ('Para sair use CTRL+X\n') msg = input() while msg != '\x18': tcp.send( cifra_message(msg.encode('ascii'), chave_publica) ) msg = input() tcp.close()
python
Families tell their stories online through social media, where they also raise awareness about their cases and pressure US legislators to include their families in the much anticipated immigration reform. The investigation does not seem to be enough to quell public anger, which continues to grow over the agency's campaign of Internet posts that smeared the opposition. As protests against South Korea's spy agency's involvement in election gets bigger, overseas Koreans and Americans of Korean descent have joined the movement. This photo montage on the Youtube shows small rallies held in major U. S, cities, such as Washington D. C. , New York, Los Angeles, Chicago, Boston, Arizona and in Canada.
english
{"dID":59402,"npcDiags":3,"playerDiags":1,"actionNodes":0,"startPoint":0,"loadTag":"ProDevYear1","pd_rect_0":[353,378],"pd_comSize_0":3,"pd_ID_0":1,"pd_pTag_0":"","pd_0_com_0iSet":-1,"pd_0_com_0oAns":1,"pd_0_com_0oAct":-1,"pd_0_com_0text":"\"Hello PRO-DEV. I am currently working on SHIT-GAME. How do I make GOOD-GAME?\" (Rep +1)","pd_0_com_0extraD":"","pd_0_com_1iSet":0,"pd_0_com_1oAns":2,"pd_0_com_1oAct":-1,"pd_0_com_1text":"\"You aren't all that great Mr. PRO-DEV.\" (Rep -1)","pd_0_com_1extraD":"","pd_0_com_2iSet":0,"pd_0_com_2oAns":-1,"pd_0_com_2oAct":-1,"pd_0_com_2text":"...(Walk Away)","pd_0_com_2extraD":"","nd_rect_0":[-44,408],"nd_extraData_0":"","nd_tag_0":"","nd_text_0":"\"Hi SHITTER-DEV, I am PRO-DEV. I am so fucking good at this shit that I get to talk at GDC to fools like you.\"","nd_ID_0":0,"nd_oSet_0":0,"nd_oNPC_0":-1,"nd_oAct_0":-1,"nd_rect_1":[804,242],"nd_extraData_1":"","nd_tag_1":"","nd_text_1":"\"Keep Making SHIT-GAME. Eventually it will be OKAY-Game.\" (Exp +1)","nd_ID_1":2,"nd_oSet_1":-1,"nd_oNPC_1":-1,"nd_oAct_1":-1,"nd_rect_2":[854,418],"nd_extraData_2":"","nd_tag_2":"","nd_text_2":"\"Okay then. Good luck ever becoming PRO-DEV like me!\" (EXP +- 0)","nd_ID_2":3,"nd_oSet_2":-1,"nd_oNPC_2":-1,"nd_oAct_2":-1}
json
.formWrapper { border-left: 3px solid rgb(0, 0, 0); border-right: 3px solid rgb(0, 0, 0); } .form { padding: 20px 20px; border-top: 3px solid rgb(0, 0, 0); border-bottom: 3px solid rgb(0, 0, 0); background-color: transparent; } .input { font-family: 'Montserrat', sans-serif; color: #333; font-size: 18px; margin: 0 auto; padding: 10px 10px; border-radius: 10px; background-color: rgb(255, 255, 255); width: 100%; display: block; border: 2px solid rgb(99, 99, 99); transition: all 0.3s; margin-bottom: 16px; outline: none; } .select { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: #05056b; } .selectList { font-weight: 500; width: 230px; font-family: 16px; padding: 1px 10px; height: 33px; border-radius: 4px; border: 2px solid rgb(99, 99, 99); } .btnForSelect { border: none; width: 100%; height: 40px; font-family: 'Montserrat', sans-serif; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); border: 1px solid #ccc; border-radius: 6px; background-color: rgba(31, 62, 129, 0.856); box-shadow: 0 2px 2px rgba(31, 62, 129, 0.856); color: #ebebeb; font-weight: 500; cursor: pointer; outline: none; } .labelForDate { display: block; margin: 16px 0px; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: #05056b; } .title { text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 600; color: #05056b; padding: 20px 0px; font-size: 26px; } .btnForSelect:hover { background-color: rgb(31, 62, 129); box-shadow: 0 2px 2px rgb(31, 62, 129); } .languageList { list-style: none; } .languageListItem { border-bottom: 3px solid rgb(0, 0, 0); display: flex; justify-content: space-between; } .selectTitle, .dateTitle, .commentTitle { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; color: rgb(31, 62, 129); } .dateTitle { color: rgb(121, 21, 21); } .selectTitle { font-weight: 700; margin-bottom: 8px; } .boxForlistItem { padding: 20px 20px; width: 60%; word-wrap: break-word; } .btnForSend { border: none; width: 40px; height: 40px; background-image: url("../../assets/images/delicon.png"); background-repeat: no-repeat; background-position: center; background-size: cover; background-color: transparent; cursor: pointer; border-radius: 50%; } .boxForButton { width: 20%; display: flex; justify-content: center; align-items: center; border-left: 3px solid rgb(0, 0, 0); } .titleForList { text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 600; color: #05056b; padding: 20px 0; font-size: 26px; border-bottom: 3px solid rgb(0, 0, 0); } .loader { width: 6%; margin: auto; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); }
css
// --------------------------------------------------------------------------- // IMLAB // --------------------------------------------------------------------------- #include <math.h> #include <gtest/gtest.h> #include <vector> #include <cstdlib> #include <iostream> #include <ctime> #include <tuple> #include <map> #include <algorithm> #include "imlab/datablock/DataBlock.h" #include "imlab/util/Random.h" #define DEBUG // --------------------------------------------------------------------------------------------------- using imlab::TUPLES_PER_DATABLOCK; static std::array<uint32_t, TUPLES_PER_DATABLOCK> INDEX_VECTORS[1]; std::array<uint32_t, TUPLES_PER_DATABLOCK>* index_vectors = INDEX_VECTORS; // --------------------------------------------------------------------------------------------------- namespace { // --------------------------------------------------------------------------------------------------- using imlab::util::Predicate; using imlab::util::EncodingType; using imlab::util::CompareType; using imlab::util::Random; using imlab::util::SchemaType; // --------------------------------------------------------------------------------------------------- static std::string l_shipmode[7] = {"RAIL", "SHIP", "MAIL", "TRUCK", "FOB", "REG AIR", "AIR"}; static std::string l_shipinstruct[4] = {"NONE", "TAKE BACK RETURN", "COLLECT COD", "DELIVER IN PERSON"}; // --------------------------------------------------------------------------------------------------- #ifdef DEBUG // --------------------------------------------------------------------------------------------------- TEST(DataBlock, Simple_FixNumberTest) { /// Same as TEST(DataBlock, FixNumberTest) std::vector<uint64_t> col0 {3, 2, 1, 4, 5, 6, 7, 8, 9, 15}; std::vector<std::vector<uint64_t>> int_table_portion {col0}; std::vector<std::vector<std::string>> str_table_portion; std::vector<SchemaType> schematypes{SchemaType::Interger}; auto db = imlab::DataBlock<1>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); Predicate predicate(0, 257, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); EXPECT_EQ(0, db.get()->scan(predicates, *index_vectors)); } TEST(DataBlock, FixNumberTest) { std::vector<uint64_t> col0 {3, 2, 1, 4, 5, 6, 7, 8, 9, 70000}; std::vector<uint64_t> col1 {16, 32, 30, 40, 50, 60, 70, 80, 90, 257}; std::vector<uint64_t> col2 {257, 257, 257, 257, 257, 257, 257, 257, 257, 257}; /// Singlevalue Encoding std::vector<uint64_t> col3 {20, 40, 16, 32, 48, 256, 128, 64, 16, 257}; std::vector<std::vector<uint64_t>> int_table_portion {col0, col1, col2, col3}; std::vector<std::vector<std::string>> str_table_portion; std::vector<SchemaType> schematypes{SchemaType::Interger, SchemaType::Interger, SchemaType::Interger, SchemaType::Interger}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col1.size(), db.get()->get_tupel_count()); // db.get()->getData(0); // db.get()->getData(1); // db.get()->getData(2); // db.get()->getData(3); Predicate predicate(2, 257, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); EXPECT_EQ(10, db.get()->scan(predicates, *index_vectors)); } TEST(DataBlock, str_MutiPre_Random_Single_Vector_2_8) { size_t size = 1 << 8; std::vector<std::vector<std::string>> str_table_portion(1); auto &col0 = str_table_portion[0]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } std::vector<std::vector<std::uint64_t>> int_table_portion; std::vector<SchemaType> schematypes{SchemaType::Char}; auto db = imlab::DataBlock<1>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); std::array<uint8_t, 1> str_index_arr{{0}}; std::vector<std::set<std::string>> str_set_vec = db->decode_dictionary<1>(str_index_arr); for (size_t i = 0; i < size; ++i) { std::string random1 = col0[random.Rand() >> (64 - 8)]; std::string random2 = col0[random.Rand() >> (64 - 8)]; std::string random3 = col0[random.Rand() >> (64 - 8)]; /// Binary Search auto found_1 = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random1); uint64_t compared_1 = std::distance(str_set_vec[0].begin(), found_1); auto found_2 = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random2); uint64_t compared_2 = std::distance(str_set_vec[0].begin(), found_2); auto found_3 = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random3); uint64_t compared_3 = std::distance(str_set_vec[0].begin(), found_3); Predicate predicate_1(0, compared_1, CompareType::LESS_THAN); Predicate predicate_2(0, compared_2, CompareType::EQUAL); Predicate predicate_3(0, compared_3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = std::count_if(col0.begin(), col0.end(), [random1, random2, random3](std::string entry) { return random1 > entry && entry == random2 && entry > random3;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, Random_Multi_Vector_2_8) { size_t size = 1 << 8; std::vector<std::vector<uint64_t>> int_table_portion(4); auto &col0 = int_table_portion[0]; auto &col1 = int_table_portion[1]; auto &col2 = int_table_portion[2]; auto &col3 = int_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(random.Rand()); // std::cout << col0[i] << std::endl; } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(random.Rand()); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(random.Rand()); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(random.Rand()); } std::vector<std::vector<std::string>> str_table_portion; std::vector<SchemaType> schematypes{SchemaType::Interger, SchemaType::Interger, SchemaType::Interger, SchemaType::Interger}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); std::map<int, int> dup_0; std::for_each(col0.begin(), col0.end(), [&dup_0](int val){ dup_0[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(0, col0[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_0.find(col0[i]); if (it == dup_0.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<int, int> dup_1; std::for_each(col1.begin(), col1.end(), [&dup_1](int val){ dup_1[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(1, col1[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_1.find(col1[i]); if (it == dup_1.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<int, int> dup_2; std::for_each(col2.begin(), col2.end(), [&dup_2](int val){ dup_2[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(2, col2[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_2.find(col2[i]); if (it == dup_2.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<int, int> dup_3; std::for_each(col3.begin(), col3.end(), [&dup_3](int val){ dup_3[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(3, col3[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_3.find(col3[i]); if (it == dup_3.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { uint64_t random0 = random.Rand(); uint64_t random1 = random.Rand(); uint64_t random2 = random.Rand(); uint64_t random3 = random.Rand(); Predicate predicate_0(0, random0, CompareType::LESS_THAN); Predicate predicate_1(1, random1, CompareType::EQUAL); Predicate predicate_2(2, random2, CompareType::GREATER_THAN); Predicate predicate_3(3, random3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] == random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, str_Random_Multi_Vector_2_8) { size_t size = 1 << 8; std::vector<std::vector<std::string>> str_table_portion(4); auto &col0 = str_table_portion[0]; auto &col1 = str_table_portion[1]; auto &col2 = str_table_portion[2]; auto &col3 = str_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } std::vector<std::vector<std::uint64_t>> int_table_portion; std::vector<SchemaType> schematypes{SchemaType::Char, SchemaType::Char, SchemaType::Char, SchemaType::Char}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); std::array<uint8_t, 4> str_index_arr{{0, 1, 2, 3}}; std::vector<std::set<std::string>> str_set_vec = db->decode_dictionary<4>(str_index_arr); std::map<std::string, int> dup_0; std::for_each(col0.begin(), col0.end(), [&dup_0](std::string val){ dup_0[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col0[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random); uint64_t compared = std::distance(str_set_vec[0].begin(), found); Predicate predicate(0, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_0.find(col0[i]); if (it == dup_0.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_1; std::for_each(col1.begin(), col1.end(), [&dup_1](std::string val){ dup_1[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col1[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random); uint64_t compared = std::distance(str_set_vec[1].begin(), found); Predicate predicate(1, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_1.find(col1[i]); if (it == dup_1.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_2; std::for_each(col2.begin(), col2.end(), [&dup_2](std::string val){ dup_2[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col2[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random); uint64_t compared = std::distance(str_set_vec[2].begin(), found); Predicate predicate(2, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_2.find(col2[i]); if (it == dup_2.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_3; std::for_each(col3.begin(), col3.end(), [&dup_3](std::string val){ dup_3[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col3[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random); uint64_t compared = std::distance(str_set_vec[3].begin(), found); Predicate predicate(3, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_3.find(col3[i]); if (it == dup_3.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { std::string random0 = col0[random.Rand() >> (64 - 8)]; std::string random1 = col1[random.Rand() >> (64 - 8)]; std::string random2 = col2[random.Rand() >> (64 - 8)]; std::string random3 = col3[random.Rand() >> (64 - 8)]; /// Binary Search auto found_0 = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random0); uint64_t compared_0 = std::distance(str_set_vec[0].begin(), found_0); auto found_1 = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random1); uint64_t compared_1 = std::distance(str_set_vec[1].begin(), found_1); auto found_2 = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random2); uint64_t compared_2 = std::distance(str_set_vec[2].begin(), found_2); auto found_3 = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random3); uint64_t compared_3 = std::distance(str_set_vec[3].begin(), found_3); Predicate predicate_0(0, compared_0, CompareType::LESS_THAN); Predicate predicate_1(1, compared_1, CompareType::EQUAL); Predicate predicate_2(2, compared_2, CompareType::GREATER_THAN); Predicate predicate_3(3, compared_3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] == random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, NONEQUAL_Random_Multi_Vector_2_8) { size_t size = 1 << 8; std::vector<std::vector<uint64_t>> int_table_portion(4); auto &col0 = int_table_portion[0]; auto &col1 = int_table_portion[1]; auto &col2 = int_table_portion[2]; auto &col3 = int_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(random.Rand()); } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(random.Rand()); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(random.Rand()); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(random.Rand()); } std::vector<std::vector<std::string>> str_table_portion; std::vector<SchemaType> schematypes{SchemaType::Interger, SchemaType::Interger, SchemaType::Interger, SchemaType::Interger}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); std::map<int, int> dup_0; std::for_each(col0.begin(), col0.end(), [&dup_0](int val){ dup_0[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(0, col0[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_0.find(col0[i]); if (it == dup_0.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<int, int> dup_1; std::for_each(col1.begin(), col1.end(), [&dup_1](int val){ dup_1[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(1, col1[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_1.find(col1[i]); if (it == dup_1.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<int, int> dup_2; std::for_each(col2.begin(), col2.end(), [&dup_2](int val){ dup_2[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(2, col2[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_2.find(col2[i]); if (it == dup_2.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<int, int> dup_3; std::for_each(col3.begin(), col3.end(), [&dup_3](int val){ dup_3[val]++; }); for (size_t i = 0; i < size; ++i) { Predicate predicate(3, col3[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_3.find(col3[i]); if (it == dup_3.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { uint64_t random0 = random.Rand(); uint64_t random1 = random.Rand(); uint64_t random2 = random.Rand(); uint64_t random3 = random.Rand(); Predicate predicate_0(0, random0, CompareType::LESS_THAN); Predicate predicate_1(1, random1, CompareType::LESS_THAN); Predicate predicate_2(2, random2, CompareType::GREATER_THAN); Predicate predicate_3(3, random3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] < random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, str_NONEQUAL_Random_Multi_Vector_2_8) { size_t size = 1 << 8; std::vector<std::vector<std::string>> str_table_portion(4); auto &col0 = str_table_portion[0]; auto &col1 = str_table_portion[1]; auto &col2 = str_table_portion[2]; auto &col3 = str_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } std::vector<std::vector<std::uint64_t>> int_table_portion; std::vector<SchemaType> schematypes{SchemaType::Char, SchemaType::Char, SchemaType::Char, SchemaType::Char}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); std::array<uint8_t, 4> str_index_arr{{0, 1, 2, 3}}; std::vector<std::set<std::string>> str_set_vec = db->decode_dictionary<4>(str_index_arr); std::map<std::string, int> dup_0; std::for_each(col0.begin(), col0.end(), [&dup_0](std::string val){ dup_0[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col0[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random); uint64_t compared = std::distance(str_set_vec[0].begin(), found); Predicate predicate(0, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_0.find(col0[i]); if (it == dup_0.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_1; std::for_each(col1.begin(), col1.end(), [&dup_1](std::string val){ dup_1[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col1[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random); uint64_t compared = std::distance(str_set_vec[1].begin(), found); Predicate predicate(1, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_1.find(col1[i]); if (it == dup_1.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_2; std::for_each(col2.begin(), col2.end(), [&dup_2](std::string val){ dup_2[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col2[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random); uint64_t compared = std::distance(str_set_vec[2].begin(), found); Predicate predicate(2, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_2.find(col2[i]); if (it == dup_2.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_3; std::for_each(col3.begin(), col3.end(), [&dup_3](std::string val){ dup_3[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col3[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random); uint64_t compared = std::distance(str_set_vec[3].begin(), found); Predicate predicate(3, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_3.find(col3[i]); if (it == dup_3.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { std::string random0 = col0[random.Rand() >> (64 - 8)]; std::string random1 = col1[random.Rand() >> (64 - 8)]; std::string random2 = col2[random.Rand() >> (64 - 8)]; std::string random3 = col3[random.Rand() >> (64 - 8)]; /// Binary Search auto found_0 = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random0); uint64_t compared_0 = std::distance(str_set_vec[0].begin(), found_0); auto found_1 = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random1); uint64_t compared_1 = std::distance(str_set_vec[1].begin(), found_1); auto found_2 = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random2); uint64_t compared_2 = std::distance(str_set_vec[2].begin(), found_2); auto found_3 = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random3); uint64_t compared_3 = std::distance(str_set_vec[3].begin(), found_3); Predicate predicate_0(0, compared_0, CompareType::LESS_THAN); Predicate predicate_1(1, compared_1, CompareType::LESS_THAN); Predicate predicate_2(2, compared_2, CompareType::GREATER_THAN); Predicate predicate_3(3, compared_3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] < random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, SingleValue_Random_Single_Vector_2_16) { size_t size = 1 << 16; std::vector<std::vector<uint64_t>> int_table_portion(1); auto &col0 = int_table_portion[0]; col0.reserve(size); Random random_; uint64_t random = random_.Rand(); for (size_t i = 0; i < size; ++i) { col0.push_back(random); } std::vector<std::vector<std::string>> str_table_portion; std::vector<SchemaType> schematypes{SchemaType::Interger}; auto db = imlab::DataBlock<1>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); Predicate predicate(0, random, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); EXPECT_EQ(size, db.get()->scan(predicates, *index_vectors)); Predicate predicate_2(0, random - 1, CompareType::GREATER_THAN); predicates[0] = predicate_2; EXPECT_EQ(size, db.get()->scan(predicates, *index_vectors)); Predicate predicate_3(0, random + 1, CompareType::LESS_THAN); predicates[0] = predicate_3; EXPECT_EQ(size, db.get()->scan(predicates, *index_vectors)); Predicate predicate_4(0, random + 1, CompareType::GREATER_THAN); predicates[0] = predicate_4; EXPECT_EQ(0, db.get()->scan(predicates, *index_vectors)); Predicate predicate_5(0, random - 1, CompareType::LESS_THAN); predicates[0] = predicate_5; EXPECT_EQ(0, db.get()->scan(predicates, *index_vectors)); } TEST(DataBlock, str_Random_Multi_Vector_2_16) { size_t size = 1 << 16; std::vector<std::vector<std::string>> str_table_portion(4); auto &col0 = str_table_portion[0]; auto &col1 = str_table_portion[1]; auto &col2 = str_table_portion[2]; auto &col3 = str_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } std::vector<std::vector<std::uint64_t>> int_table_portion; std::vector<SchemaType> schematypes{SchemaType::Char, SchemaType::Char, SchemaType::Char, SchemaType::Char}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); std::array<uint8_t, 4> str_index_arr{{0, 1, 2, 3}}; std::vector<std::set<std::string>> str_set_vec = db->decode_dictionary<4>(str_index_arr); std::map<std::string, int> dup_0; std::for_each(col0.begin(), col0.end(), [&dup_0](std::string val){ dup_0[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col0[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random); uint64_t compared = std::distance(str_set_vec[0].begin(), found); Predicate predicate(0, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_0.find(col0[i]); if (it == dup_0.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_1; std::for_each(col1.begin(), col1.end(), [&dup_1](std::string val){ dup_1[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col1[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random); uint64_t compared = std::distance(str_set_vec[1].begin(), found); Predicate predicate(1, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_1.find(col1[i]); if (it == dup_1.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_2; std::for_each(col2.begin(), col2.end(), [&dup_2](std::string val){ dup_2[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col2[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random); uint64_t compared = std::distance(str_set_vec[2].begin(), found); Predicate predicate(2, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_2.find(col2[i]); if (it == dup_2.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_3; std::for_each(col3.begin(), col3.end(), [&dup_3](std::string val){ dup_3[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col3[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random); uint64_t compared = std::distance(str_set_vec[3].begin(), found); Predicate predicate(3, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_3.find(col3[i]); if (it == dup_3.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { std::string random0 = col0[random.Rand() >> (64 - 8)]; std::string random1 = col1[random.Rand() >> (64 - 8)]; std::string random2 = col2[random.Rand() >> (64 - 8)]; std::string random3 = col3[random.Rand() >> (64 - 8)]; /// Binary Search auto found_0 = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random0); uint64_t compared_0 = std::distance(str_set_vec[0].begin(), found_0); auto found_1 = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random1); uint64_t compared_1 = std::distance(str_set_vec[1].begin(), found_1); auto found_2 = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random2); uint64_t compared_2 = std::distance(str_set_vec[2].begin(), found_2); auto found_3 = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random3); uint64_t compared_3 = std::distance(str_set_vec[3].begin(), found_3); Predicate predicate_0(0, compared_0, CompareType::LESS_THAN); Predicate predicate_1(1, compared_1, CompareType::EQUAL); Predicate predicate_2(2, compared_2, CompareType::GREATER_THAN); Predicate predicate_3(3, compared_3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] == random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, Random_Multi_Vector_2_16) { size_t size = 1 << 16; std::vector<std::vector<uint64_t>> int_table_portion(4); auto &col0 = int_table_portion[0]; auto &col1 = int_table_portion[1]; auto &col2 = int_table_portion[2]; auto &col3 = int_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(random.Rand()); } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(random.Rand()); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(random.Rand()); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(random.Rand()); } std::vector<std::vector<std::string>> str_table_portion; std::vector<SchemaType> schematypes{SchemaType::Interger, SchemaType::Interger, SchemaType::Interger, SchemaType::Interger}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); for (size_t i = 0; i < size; ++i) { Predicate predicate(0, col0[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col0[i]; uint64_t count_if = std::count_if(col0.begin(), col0.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { Predicate predicate(1, col1[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col1[1]; uint64_t count_if = std::count_if(col1.begin(), col1.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { Predicate predicate(2, col2[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col2[i]; uint64_t count_if = std::count_if(col2.begin(), col2.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { Predicate predicate(3, col3[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col3[i]; uint64_t count_if = std::count_if(col3.begin(), col3.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { uint64_t random0 = random.Rand(); uint64_t random1 = random.Rand(); uint64_t random2 = random.Rand(); uint64_t random3 = random.Rand(); Predicate predicate_0(0, random0, CompareType::LESS_THAN); Predicate predicate_1(1, random1, CompareType::EQUAL); Predicate predicate_2(2, random2, CompareType::GREATER_THAN); Predicate predicate_3(3, random3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] == random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, str_NONEQUAL_Random_Multi_Vector_2_16) { size_t size = 1 << 16; std::vector<std::vector<std::string>> str_table_portion(4); auto &col0 = str_table_portion[0]; auto &col1 = str_table_portion[1]; auto &col2 = str_table_portion[2]; auto &col3 = str_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(l_shipinstruct[random.Rand() >> (64 - 2)]); } std::vector<std::vector<std::uint64_t>> int_table_portion; std::vector<SchemaType> schematypes{SchemaType::Char, SchemaType::Char, SchemaType::Char, SchemaType::Char}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); std::array<uint8_t, 4> str_index_arr{{0, 1, 2, 3}}; std::vector<std::set<std::string>> str_set_vec = db->decode_dictionary<4>(str_index_arr); std::map<std::string, int> dup_0; std::for_each(col0.begin(), col0.end(), [&dup_0](std::string val){ dup_0[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col0[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random); uint64_t compared = std::distance(str_set_vec[0].begin(), found); Predicate predicate(0, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_0.find(col0[i]); if (it == dup_0.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_1; std::for_each(col1.begin(), col1.end(), [&dup_1](std::string val){ dup_1[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col1[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random); uint64_t compared = std::distance(str_set_vec[1].begin(), found); Predicate predicate(1, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_1.find(col1[i]); if (it == dup_1.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_2; std::for_each(col2.begin(), col2.end(), [&dup_2](std::string val){ dup_2[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col2[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random); uint64_t compared = std::distance(str_set_vec[2].begin(), found); Predicate predicate(2, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_2.find(col2[i]); if (it == dup_2.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } std::map<std::string, int> dup_3; std::for_each(col3.begin(), col3.end(), [&dup_3](std::string val){ dup_3[val]++; }); for (size_t i = 0; i < size; ++i) { std::string random = col3[i]; /// Binary Search auto found = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random); uint64_t compared = std::distance(str_set_vec[3].begin(), found); Predicate predicate(3, compared, CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto it = dup_3.find(col3[i]); if (it == dup_3.end()) EXPECT_EQ(1, 0); EXPECT_EQ(it->second, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { std::string random0 = col0[random.Rand() >> (64 - 8)]; std::string random1 = col1[random.Rand() >> (64 - 8)]; std::string random2 = col2[random.Rand() >> (64 - 8)]; std::string random3 = col3[random.Rand() >> (64 - 8)]; /// Binary Search auto found_0 = std::lower_bound(str_set_vec[0].begin(), str_set_vec[0].end(), random0); uint64_t compared_0 = std::distance(str_set_vec[0].begin(), found_0); auto found_1 = std::lower_bound(str_set_vec[1].begin(), str_set_vec[1].end(), random1); uint64_t compared_1 = std::distance(str_set_vec[1].begin(), found_1); auto found_2 = std::lower_bound(str_set_vec[2].begin(), str_set_vec[2].end(), random2); uint64_t compared_2 = std::distance(str_set_vec[2].begin(), found_2); auto found_3 = std::lower_bound(str_set_vec[3].begin(), str_set_vec[3].end(), random3); uint64_t compared_3 = std::distance(str_set_vec[3].begin(), found_3); Predicate predicate_0(0, compared_0, CompareType::LESS_THAN); Predicate predicate_1(1, compared_1, CompareType::LESS_THAN); Predicate predicate_2(2, compared_2, CompareType::GREATER_THAN); Predicate predicate_3(3, compared_3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] < random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } TEST(DataBlock, NONEQUAL_Random_Multi_Vector_2_16) { size_t size = 1 << 16; std::vector<std::vector<uint64_t>> int_table_portion(4); auto &col0 = int_table_portion[0]; auto &col1 = int_table_portion[1]; auto &col2 = int_table_portion[2]; auto &col3 = int_table_portion[3]; col0.reserve(size); Random random; for (size_t i = 0; i < size; ++i) { col0.push_back(random.Rand()); } col1.reserve(size); for (size_t i = 0; i < size; ++i) { col1.push_back(random.Rand()); } col2.reserve(size); for (size_t i = 0; i < size; ++i) { col2.push_back(random.Rand()); } col3.reserve(size); for (size_t i = 0; i < size; ++i) { col3.push_back(random.Rand()); } std::vector<std::vector<std::string>> str_table_portion; std::vector<SchemaType> schematypes{SchemaType::Interger, SchemaType::Interger, SchemaType::Interger, SchemaType::Interger}; auto db = imlab::DataBlock<4>::build(int_table_portion, str_table_portion, schematypes); EXPECT_EQ(col0.size(), db.get()->get_tupel_count()); for (size_t i = 0; i < size; ++i) { Predicate predicate(0, col0[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col0[i]; uint64_t count_if = std::count_if(col0.begin(), col0.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { Predicate predicate(1, col1[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col1[i]; uint64_t count_if = std::count_if(col1.begin(), col1.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { Predicate predicate(2, col2[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col2[i]; uint64_t count_if = std::count_if(col2.begin(), col2.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { Predicate predicate(3, col3[i], CompareType::EQUAL); std::vector<Predicate> predicates; predicates.push_back(predicate); auto compared = col3[i]; uint64_t count_if = std::count_if(col3.begin(), col3.end(), [compared](uint64_t entry) { return compared == entry;}); EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } for (size_t i = 0; i < size; ++i) { uint64_t random0 = random.Rand(); uint64_t random1 = random.Rand(); uint64_t random2 = random.Rand(); uint64_t random3 = random.Rand(); Predicate predicate_0(0, random0, CompareType::LESS_THAN); Predicate predicate_1(1, random1, CompareType::LESS_THAN); Predicate predicate_2(2, random2, CompareType::GREATER_THAN); Predicate predicate_3(3, random3, CompareType::GREATER_THAN); std::vector<Predicate> predicates; predicates.push_back(predicate_0); predicates.push_back(predicate_1); predicates.push_back(predicate_2); predicates.push_back(predicate_3); uint64_t count_if = 0; for (size_t i = 0; i < size; ++i) { if (col0[i] < random0 && col1[i] < random1 && col2[i] > random2 && col3[i] > random3) ++count_if; } EXPECT_EQ(count_if, db.get()->scan(predicates, *index_vectors)); } } #endif // --------------------------------------------------------------------------------------------------- } // namespace // ---------------------------------------------------------------------------------------------------
cpp
India’s men’s football team suffered its heaviest defeat in 11 years on Monday as Igor Stimac’s men went down 0-6 to the United Arab Emirates in a friendly match in Dubai. The result came as a shock to many as India had done well to earn a hard-fought draw against Oman in their previous game. Coach Igor Stimac gave game-time to many new faces in the match against UAE, making as many as eight changes to the starting XI. But his experiment backfired as UAE dominated throughout. The hosts, ranked 74 in the Fifa Rankings, managed to get an early lead thanks to Ali Mabkhout, with the striker going on to score a hat-trick. Playing against higher-ranked opponents is sure to benefit India but the manner of their defeat to UAE is concerning. Most of the players competed in the recently-concluded Indian Super League season and were expected to give a better account of themselves. This was India’s biggest defeat since they went down 1-9 to Kuwait in a friendly in 2010. The result is a considerable blow as the team had shown promise by climbing up the rankings in recent years. A look at India’s biggest defeats over the past decade show that the men in blue have almost always struggled against the top teams. The frequency of huge defeats has reduced since then but India have continued to suffer major hiccups, like the one against UAE on Monday, at regular intervals since the turn of the millennium. In the table below, we have a list of India’s big defeats since the year 1938. The criteria for the list is a minimum deficit of four goals and one can see that India have suffered 13 such defeats over the past two decades.
english
Adaptive dampers and lots of safety tech will come standard. The 2019 Volkswagen Arteon has been a long time coming. We've already had a go in a European-spec model on the German Autobahn, but now know more about the car coming here following its US debut at the Chicago Auto Show. Based on the Volkswagen's excellent MQB platform, the Arteon will be powered by a 2.0-liter turbocharged four-cylinder engine making 268 horsepower and 258 pound-feet of torque. While the Euro-spec is equipped with a seven-speed dual-clutch transmission, ours will pack an eight-speed torque converter automatic gearbox driving either the front or all four wheels. An adaptive suspension will be standard to give drivers the ability to switch between a more comfortable ride and a firmer, more dynamic character. Inside, All Arteons gets a push-button starter, tri-zone automatic climate controls and an 8-inch touchscreen infotainment system capable of running Apple CarPlay, Android Auto and MirrorLink. Volkswagen's configurable Digital Cockpit, a premium audio system and panoramic roof are available as options. On the safety front, LED headlights, forward collision warning with automatic emergency braking, blind-spot monitor and rear traffic alert are standard issue. Adaptive cruise control, lane departure warning and a 360-degree camera are also offered. The 2019 Volkswagen Arteon will arrive in dealers during the third quarter of this year and be available in SE, SEL and SEL Premium trim levels.
english
UEFA on Monday postponed the Champions League final, scheduled to be held in May, due to the "COVID-19 crisis in Europe". Nyon [Switzerland], Mar 24 : UEFA on Monday postponed the Champions League final, scheduled to be held in May, due to the "COVID-19 crisis in Europe". Also, Women's Champions League Final and Europa League Final have also been postponed. "As a result of the COVID-19 crisis in Europe, UEFA has today formally taken the decision to postpone the following matches, originally scheduled for May 2020: UEFA Women's Champions League Final, UEFA Europa League Final, UEFA Champions League Final," UEFA said in a statement. However, the body said no decision has yet been made on the rescheduled dates. "No decision has yet been made on rearranged dates. The working group, established last week as a result of the conference call among the stakeholders of European football, which was chaired by UEFA President, Aleksander Ceferin, will analyse the options available. The group has already begun its examination of the calendar. Announcements will be made in due course," the statement added.
english
Co is Opting to convert interest related to AGR Dues into equity. This additional capacity will help the Company to service the fast-growing cement demand in the Central region in the country. Company has commissioned 3. 2 MTPA new cement capacity, as planned taking its total cement manufacturing capacity in India to 114. 55 MTPA. Novelis, wholly owned subsidiary, to invest $365 million to build a highly advanced recycling center for automotive in North America. IT stocks will be in focus today as three IT majors will be declaring their Q3FY22 results today.
english
<filename>internal/pkg/route53/records_test.go<gh_stars>1-10 package r53_test import ( "bytes" "reflect" "testing" r53 "dns-exporter/internal/pkg/route53" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" ) func TestAppend(t *testing.T) { suite := []map[*route53.ListResourceRecordSetsOutput]*r53.Records{} // SOA suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("domain.com."), Type: aws.String("SOA"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("ns-265.awsdns-33.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400"), }, }, TTL: aws.Int64(900), }, }, }: &r53.Records{ SOA: r53.Record{ Name: "domain.com.", Value: []string{"ns-265.awsdns-33.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400"}, Alias: false, TTL: 900, }, }, }) // NS suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("domain.com."), Type: aws.String("NS"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("ns-1800.awsdns-33.co.uk."), }, }, TTL: aws.Int64(172800), }, &route53.ResourceRecordSet{ Name: aws.String("domain.com."), Type: aws.String("NS"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("ns3.amazon.net"), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ NS: []r53.Record{ r53.Record{ Name: "domain.com.", Value: []string{"ns-1800.awsdns-33.co.uk."}, Alias: false, TTL: 172800, }, r53.Record{ Name: "domain.com.", Value: []string{"ns3.amazon.net"}, Alias: false, TTL: 300, }, }, }, }) // MX suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("mail1.domain.com."), Type: aws.String("MX"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("10 mailserver1.google.com"), }, }, TTL: aws.Int64(300), }, &route53.ResourceRecordSet{ Name: aws.String("mail2.domain.com."), Type: aws.String("MX"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("20 mailserver2.google.com"), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ MX: []r53.Record{ r53.Record{ Name: "mail1.domain.com.", Value: []string{"10 mailserver1.google.com"}, Alias: false, TTL: 300, }, r53.Record{ Name: "mail2.domain.com.", Value: []string{"20 mailserver2.google.com"}, Alias: false, TTL: 300, }, }, }, }) // A suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ // Alias &route53.ResourceRecordSet{ Name: aws.String("a-alias.domain.com."), Type: aws.String("A"), AliasTarget: &route53.AliasTarget{ DNSName: aws.String("a0123456789abcdef.awsglobalaccelerator.com."), }, TTL: aws.Int64(0), }, // Round Robin &route53.ResourceRecordSet{ Name: aws.String("a-multiple.domain.com."), Type: aws.String("A"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("192.168.1.51"), }, }, TTL: aws.Int64(300), }, // Standard &route53.ResourceRecordSet{ Name: aws.String("a-multiple.domain.com."), Type: aws.String("A"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("192.168.1.52"), }, }, TTL: aws.Int64(300), }, // Low TTL &route53.ResourceRecordSet{ Name: aws.String("low-ttl.domain.com."), Type: aws.String("A"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("192.168.1.53"), }, }, TTL: aws.Int64(60), }, }, }: &r53.Records{ A: []r53.Record{ r53.Record{ Name: "a-alias.domain.com.", Value: []string{"a0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, r53.Record{ Name: "a-multiple.domain.com.", Value: []string{"192.168.1.51"}, Alias: false, TTL: 300, }, r53.Record{ Name: "a-multiple.domain.com.", Value: []string{"192.168.1.52"}, Alias: false, TTL: 300, }, r53.Record{ Name: "low-ttl.domain.com.", Value: []string{"192.168.1.53"}, Alias: false, TTL: 60, }, }, }, }) // AAAA suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("ipv6.domain.com."), Type: aws.String("AAAA"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("fe80:0:0:0:202:b3ff:fe1e:8329"), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ AAAA: []r53.Record{ r53.Record{ Name: "ipv6.domain.com.", Value: []string{"fe80:0:0:0:202:b3ff:fe1e:8329"}, Alias: false, TTL: 300, }, }, }, }) // CNAME suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("website.domain.com."), Type: aws.String("CNAME"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("www.domain.com"), }, }, TTL: aws.Int64(300), }, // Alias &route53.ResourceRecordSet{ Name: aws.String("www.domain.com."), Type: aws.String("CNAME"), AliasTarget: &route53.AliasTarget{ DNSName: aws.String("c0123456789abcdef.awsglobalaccelerator.com."), }, TTL: aws.Int64(0), }, }, }: &r53.Records{ CNAME: []r53.Record{ r53.Record{ Name: "website.domain.com.", Value: []string{"www.domain.com"}, Alias: false, TTL: 300, }, r53.Record{ Name: "www.domain.com.", Value: []string{"c0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, }, }, }) // TXT suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("txt.domain.com."), Type: aws.String("TXT"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("some string here"), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ TXT: []r53.Record{ r53.Record{ Name: "txt.domain.com.", Value: []string{"some string here"}, Alias: false, TTL: 300, }, }, }, }) // SRV suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("dc.domain.com."), Type: aws.String("SRV"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("1 10 5269 controller.domain.com."), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ SRV: []r53.Record{ r53.Record{ Name: "dc.domain.com.", Value: []string{"1 10 5269 controller.domain.com."}, Alias: false, TTL: 300, }, }, }, }) // PTR suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("pointer.domain.com."), Type: aws.String("PTR"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("www.domain.com"), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ PTR: []r53.Record{ r53.Record{ Name: "pointer.domain.com.", Value: []string{"www.domain.com"}, Alias: false, TTL: 300, }, }, }, }) // SPF suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("policy.domain.com."), Type: aws.String("SPF"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("v=spf1 ip4:192.168.0.0/16-all"), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ SPF: []r53.Record{ r53.Record{ Name: "policy.domain.com.", Value: []string{"v=spf1 ip4:192.168.0.0/16-all"}, Alias: false, TTL: 300, }, }, }, }) // NAPTR suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("name-auth.domain.com."), Type: aws.String("NAPTR"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("100 100 \"U\" \"\" \"!^.*$!sip:<EMAIL>!\" ."), }, }, TTL: aws.Int64(300), }, }, }: &r53.Records{ NAPTR: []r53.Record{ r53.Record{ Name: "name-auth.domain.com.", Value: []string{"100 100 \"U\" \"\" \"!^.*$!sip:<EMAIL>!\" ."}, Alias: false, TTL: 300, }, }, }, }) // CAA suite = append(suite, map[*route53.ListResourceRecordSetsOutput]*r53.Records{ &route53.ListResourceRecordSetsOutput{ ResourceRecordSets: []*route53.ResourceRecordSet{ &route53.ResourceRecordSet{ Name: aws.String("ca1.domain.com."), Type: aws.String("CAA"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("0 issue \"caa.example.com\""), }, }, TTL: aws.Int64(300), }, &route53.ResourceRecordSet{ Name: aws.String("ca2.domain.com."), Type: aws.String("CAA"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ Value: aws.String("issuewild \";\""), }, }, TTL: aws.Int64(300), }, // Alias &route53.ResourceRecordSet{ Name: aws.String("ca3.domain.com."), Type: aws.String("CAA"), AliasTarget: &route53.AliasTarget{ DNSName: aws.String("b0123456789abcdef.awsglobalaccelerator.com."), }, TTL: aws.Int64(0), }, }, }: &r53.Records{ CAA: []r53.Record{ r53.Record{ Name: "ca1.domain.com.", Value: []string{"0 issue \"caa.example.com\""}, Alias: false, TTL: 300, }, r53.Record{ Name: "ca2.domain.com.", Value: []string{"issuewild \";\""}, Alias: false, TTL: 300, }, r53.Record{ Name: "ca3.domain.com.", Value: []string{"b0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, }, }, }) for _, test := range suite { for input, expected := range test { got := r53.Records{} err := got.Append(input) if err != nil { t.Fatal("\nEXPECTED error: \n<nil>\n\nGOT error:", err) } if !reflect.DeepEqual(&got, expected) { t.Errorf("\nEXPECTED provider zones: \n%+v\n\nGOT provider zones: \n%+v\n\n", expected, &got) } } } } func TestConvertToZonefile(t *testing.T) { records := r53.Records{ SOA: r53.Record{ Name: "domain.com.", Value: []string{"ns-265.awsdns-33.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400"}, Alias: false, TTL: 900, }, NS: []r53.Record{ r53.Record{ Name: "domain.com.", Value: []string{"ns-1800.awsdns-33.co.uk."}, Alias: false, TTL: 172800, }, r53.Record{ Name: "domain.com.", Value: []string{"ns3.amazon.net"}, Alias: false, TTL: 300, }, }, MX: []r53.Record{ r53.Record{ Name: "mail1.domain.com.", Value: []string{"10 mailserver1.google.com"}, Alias: false, TTL: 300, }, r53.Record{ Name: "mail2.domain.com.", Value: []string{"20 mailserver2.google.com"}, Alias: false, TTL: 300, }, }, A: []r53.Record{ r53.Record{ Name: "a-alias.domain.com.", Value: []string{"a0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, r53.Record{ Name: "a-multiple.domain.com.", Value: []string{"192.168.1.51"}, Alias: false, TTL: 300, }, r53.Record{ Name: "a-multiple.domain.com.", Value: []string{"192.168.1.52"}, Alias: false, TTL: 300, }, r53.Record{ Name: "low-ttl.domain.com.", Value: []string{"192.168.1.53"}, Alias: false, TTL: 60, }, }, AAAA: []r53.Record{ r53.Record{ Name: "ipv6.domain.com.", Value: []string{"fe80:0:0:0:202:b3ff:fe1e:8329"}, Alias: false, TTL: 300, }, }, CNAME: []r53.Record{ r53.Record{ Name: "website.domain.com.", Value: []string{"www.domain.com"}, Alias: false, TTL: 300, }, r53.Record{ Name: "www.domain.com.", Value: []string{"c0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, }, TXT: []r53.Record{ r53.Record{ Name: "txt.domain.com.", Value: []string{"some string here"}, Alias: false, TTL: 300, }, }, SRV: []r53.Record{ r53.Record{ Name: "dc.domain.com.", Value: []string{"1 10 5269 controller.domain.com."}, Alias: false, TTL: 300, }, }, PTR: []r53.Record{ r53.Record{ Name: "pointer.domain.com.", Value: []string{"www.domain.com"}, Alias: false, TTL: 300, }, }, SPF: []r53.Record{ r53.Record{ Name: "policy.domain.com.", Value: []string{"v=spf1 ip4:192.168.0.0/16-all"}, Alias: false, TTL: 300, }, }, NAPTR: []r53.Record{ r53.Record{ Name: "name-auth.domain.com.", Value: []string{"100 100 \"U\" \"\" \"!^.*$!sip:<EMAIL>!\" ."}, Alias: false, TTL: 300, }, }, CAA: []r53.Record{ r53.Record{ Name: "ca1.domain.com.", Value: []string{"0 issue \"caa.example.com\""}, Alias: false, TTL: 300, }, r53.Record{ Name: "ca2.domain.com.", Value: []string{"issuewild \";\""}, Alias: false, TTL: 300, }, r53.Record{ Name: "ca3.domain.com.", Value: []string{"b0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, }, } expected := bytes.NewBuffer([]byte(`;; SOA Record domain.com. 900 IN SOA ns-265.awsdns-33.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400 ;; NS Records domain.com. 172800 IN NS ns-1800.awsdns-33.co.uk. domain.com. 300 IN NS ns3.amazon.net ;; MX Records mail1.domain.com. 300 IN MX 10 mailserver1.google.com mail2.domain.com. 300 IN MX 20 mailserver2.google.com ;; A Records a-multiple.domain.com. 300 IN A 192.168.1.51 a-multiple.domain.com. 300 IN A 192.168.1.52 low-ttl.domain.com. 60 IN A 192.168.1.53 ;; AAAA Records ipv6.domain.com. 300 IN AAAA fe80:0:0:0:202:b3ff:fe1e:8329 ;; CNAME Records website.domain.com. 300 IN CNAME www.domain.com ;; TXT Records txt.domain.com. 300 IN TXT some string here ;; SRV Records dc.domain.com. 300 IN SRV 1 10 5269 controller.domain.com. ;; PTR Records pointer.domain.com. 300 IN PTR www.domain.com ;; SPF Records policy.domain.com. 300 IN SPF v=spf1 ip4:192.168.0.0/16-all ;; NAPTR Records name-auth.domain.com. 300 IN NAPTR 100 100 "U" "" "!^.*$!sip:<EMAIL>!" . ;; CAA Records ca1.domain.com. 300 IN CAA 0 issue "caa.example.com" ca2.domain.com. 300 IN CAA issuewild ";" ;; Route53 Alias Records a-alias.domain.com. 0 IN A a0123456789abcdef.awsglobalaccelerator.com. www.domain.com. 0 IN CNAME c0123456789abcdef.awsglobalaccelerator.com. ca3.domain.com. 0 IN CAA b0123456789abcdef.awsglobalaccelerator.com. `)) zonefile, err := records.ConvertToZonefile() if err != nil { t.Fatal("\nEXPECTED error: \n<nil>\n\nGOT error:", err) } if !reflect.DeepEqual(expected.Bytes(), zonefile.Bytes()) { t.Errorf("\nEXPECTED zonefile: \n'%+v'\n\nGOT zonefile: \n'%+v'\n\n", expected.String(), zonefile.String()) } } func TestFormat(t *testing.T) { suite := []map[*[]r53.Record]map[string]*bytes.Buffer{} // SOA suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "domain.com.", Value: []string{"ns-265.awsdns-33.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400"}, Alias: false, TTL: 900, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("SOA")), "records": bytes.NewBuffer([]byte(`;; SOA Records domain.com. 900 IN SOA ns-265.awsdns-33.com. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400 `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // NS suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "domain.com.", Value: []string{"ns-1800.awsdns-33.co.uk."}, Alias: false, TTL: 172800, }, r53.Record{ Name: "domain.com.", Value: []string{"ns3.amazon.net"}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("NS")), "records": bytes.NewBuffer([]byte(`;; NS Records domain.com. 172800 IN NS ns-1800.awsdns-33.co.uk. domain.com. 300 IN NS ns3.amazon.net `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // MX suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "mail1.domain.com.", Value: []string{"10 mailserver1.google.com"}, Alias: false, TTL: 300, }, r53.Record{ Name: "mail2.domain.com.", Value: []string{"20 mailserver2.google.com"}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("MX")), "records": bytes.NewBuffer([]byte(`;; MX Records mail1.domain.com. 300 IN MX 10 mailserver1.google.com mail2.domain.com. 300 IN MX 20 mailserver2.google.com `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // A suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "a-alias.domain.com.", Value: []string{"a0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, r53.Record{ Name: "a-multiple.domain.com.", Value: []string{"192.168.1.51"}, Alias: false, TTL: 300, }, r53.Record{ Name: "a-multiple.domain.com.", Value: []string{"192.168.1.52"}, Alias: false, TTL: 300, }, r53.Record{ Name: "low-ttl.domain.com.", Value: []string{"192.168.1.53"}, Alias: false, TTL: 60, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("A")), "records": bytes.NewBuffer([]byte(`;; A Records a-multiple.domain.com. 300 IN A 192.168.1.51 a-multiple.domain.com. 300 IN A 192.168.1.52 low-ttl.domain.com. 60 IN A 192.168.1.53 `)), "aliases": bytes.NewBuffer([]byte(`;; Route53 Alias Records a-alias.domain.com. 0 IN A a0123456789abcdef.awsglobalaccelerator.com. `)), }}) // AAAA suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "ipv6.domain.com.", Value: []string{"fe80:0:0:0:202:b3ff:fe1e:8329"}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("AAAA")), "records": bytes.NewBuffer([]byte(`;; AAAA Records ipv6.domain.com. 300 IN AAAA fe80:0:0:0:202:b3ff:fe1e:8329 `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // CNAME suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "website.domain.com.", Value: []string{"www.domain.com"}, Alias: false, TTL: 300, }, r53.Record{ Name: "www.domain.com.", Value: []string{"c0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("CNAME")), "records": bytes.NewBuffer([]byte(`;; CNAME Records website.domain.com. 300 IN CNAME www.domain.com `)), "aliases": bytes.NewBuffer([]byte(`;; Route53 Alias Records www.domain.com. 0 IN CNAME c0123456789abcdef.awsglobalaccelerator.com. `)), }}) // TXT suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "txt.domain.com.", Value: []string{"some string here"}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("TXT")), "records": bytes.NewBuffer([]byte(`;; TXT Records txt.domain.com. 300 IN TXT some string here `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // SRV suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "dc.domain.com.", Value: []string{"1 10 5269 controller.domain.com."}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("SRV")), "records": bytes.NewBuffer([]byte(`;; SRV Records dc.domain.com. 300 IN SRV 1 10 5269 controller.domain.com. `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // PTRC suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "pointer.domain.com.", Value: []string{"www.domain.com"}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("PTR")), "records": bytes.NewBuffer([]byte(`;; PTR Records pointer.domain.com. 300 IN PTR www.domain.com `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // SPF suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "policy.domain.com.", Value: []string{"v=spf1 ip4:192.168.0.0/16-all"}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("SPF")), "records": bytes.NewBuffer([]byte(`;; SPF Records policy.domain.com. 300 IN SPF v=spf1 ip4:192.168.0.0/16-all `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // NAPTR suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "name-auth.domain.com.", Value: []string{"100 100 \"U\" \"\" \"!^.*$!sip:<EMAIL>!\" ."}, Alias: false, TTL: 300, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("NAPTR")), "records": bytes.NewBuffer([]byte(`;; NAPTR Records name-auth.domain.com. 300 IN NAPTR 100 100 "U" "" "!^.*$!sip:<EMAIL>!" . `)), "aliases": bytes.NewBuffer([]byte(``)), }}) // CAA suite = append(suite, map[*[]r53.Record]map[string]*bytes.Buffer{ &[]r53.Record{ r53.Record{ Name: "ca1.domain.com.", Value: []string{"0 issue \"caa.example.com\""}, Alias: false, TTL: 300, }, r53.Record{ Name: "ca2.domain.com.", Value: []string{"issuewild \";\""}, Alias: false, TTL: 300, }, r53.Record{ Name: "ca3.domain.com.", Value: []string{"b0123456789abcdef.awsglobalaccelerator.com."}, Alias: true, TTL: 0, }, }: map[string]*bytes.Buffer{ "type": bytes.NewBuffer([]byte("CAA")), "records": bytes.NewBuffer([]byte(`;; CAA Records ca1.domain.com. 300 IN CAA 0 issue "caa.example.com" ca2.domain.com. 300 IN CAA issuewild ";" `)), "aliases": bytes.NewBuffer([]byte(`;; Route53 Alias Records ca3.domain.com. 0 IN CAA b0123456789abcdef.awsglobalaccelerator.com. `)), }}) for _, test := range suite { for input, expected := range test { records := bytes.Buffer{} aliases := bytes.Buffer{} var marker bool err := r53.Format(&marker, input, &records, &aliases, expected["type"].String()) if err != nil { t.Fatal("\nEXPECTED error: \n<nil>\n\nGOT error:", err) } if !reflect.DeepEqual(expected["records"].String(), records.String()) { t.Errorf("\nEXPECTED records: \n'%+v'\n\nGOT records: \n'%+v'\n\n", expected["records"].String(), records.String()) } if !reflect.DeepEqual(expected["aliases"].String(), aliases.String()) { t.Errorf("\nEXPECTED aliases: \n'%+v'\n\nGOT aliases: \n'%+v'\n\n", expected["aliases"].String(), aliases.String()) } } } }
go
{ "id": 14853, "citation_title": "Menstruation and Education in Nepal", "citation_author": [ "<NAME>", "<NAME>" ], "citation_publication_date": "2009-04-08", "issue_date": "2009-04-08", "revision_date": "None", "topics": [ "Health, Education, and Welfare", "Education", "Labor Economics", "Demography and Aging" ], "program": [ "Health Economics", "Labor Studies" ], "projects": null, "working_groups": null, "abstract": "\n\nThis paper presents the results from a randomized evaluation that distributed menstrual cups (menstrual sanitary products) to adolescent girls in rural Nepal. Girls in the study were randomly allocated a menstrual cup for use during their monthly period and were followed for fifteen months to measure the effects of having modern sanitary products on schooling. While girls were 3 percentage points less likely to attend school on days of their period, we find no significant effect of being allocated a menstrual cup on school attendance. There were also no effects on test scores, self-reported measures of self-esteem or gynecological health. These results suggest that policy claims that barriers to girls' schooling and activities during menstrual periods are due to lack of modern sanitary protection may not be warranted. On the other hand, sanitary products are quickly and widely adopted by girls and are convenient in other ways, unrelated to short-term schooling gains.\n\n", "acknowledgement": "\nThe Menstruation and Education in Nepal Project is supported by grants from the University of Michigan Population Studies Center (Mueller and Freedman Funds), the University of Chicago Center for Health and Social Sciences, Harvard University Women in Public Policy Grant and the Warburg Foundation Economics of Culture Research Grant at Harvard University. We are extremely grateful for <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME> for their excellent data collection and fieldwork administration. We also thank <NAME> for excellent research assistance as well as respondents and school administration in our sample schools in Chitwan. The views expressed herein are those of the author(s) and do not necessarily reflect the views of the National Bureau of Economic Research.\n\n\n" }
json
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here n, m = map(int, input().strip().split()) a = sorted(map(int, input().strip().split()), reverse=True) b = sorted(map(int, input().strip().split()), reverse=True) if a[0] > b[0]: print(-1) else: min_time = 1 i = j = 0 while i < len(a): if j < len(b) and a[i] <= b[j]: j += 1 elif a[i] <= b[j - 1]: min_time += 2 i += 1 print(min_time)
python