text
stringlengths
1
1.04M
language
stringclasses
25 values
Bhojpuri video: Pawan Singh and Akshara Singh's song 'Bhar Jata Mor Dhodi Pasina Se' goes viral on YouTube with over 13M views and over 500 comments. Pawan Singh and Akshara Singh are two of the most well-known Bhojpuri cinema actors who have consistently delivered outstanding performances. Their song "Bhar Jata Mor Dhodhi Pasina Se" has become a smash hit among Bhojpuri music fans. Their smouldering chemistry has made headlines. (WATCH VIDEO) The song is an instant smash due to its ideal combination of upbeat sounds and deep vocals. The connection between Pawan and Akshara, however, is what makes the song stand out. Their passionate and seductive chemistry has set the screens on fire, making it a pleasure for the watchers. Pawan Singh and Akshara Singh have collaborated on several Bhojpuri songs. The crowd has always admired their on-screen connection. They've taken it to a whole new level in "Bhar Jata Mor Dhodhi Pasina Se. " The way they gaze at each other and touch. Everything about them screams chemistry, including the way they dance together. Pawan Singh appears in the song sporting a green shirt and pants, while Akshara Singh wears a green saree. How she flaunts her curves in the pink attire will captivate the audience. Their facial expressions, body language, and the way they coordinated their dancing motions were all spot on. "Bhar Jata Mor Dhodhi Pasina Se" is a song from the film Pawan Raja sung by Pawan Singh and Priyanka Pandit.
english
<reponame>gilatoes/arduino-optiga-trust-x<gh_stars>1-10 { "sketch": "E03_GetUniqueID.ino", "port": "COM37", "board": "Infineon:arm:XMC1100_XMC2GO", "configuration": "UART=debug" }
json
<filename>Excersises/FindGCD.java<gh_stars>0 package basics; import java.util.*; public class FindGCD { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { // TODO Auto-generated method stub int a,b,m=0; System.out.println(" GCD(a,b) "); System.out.println("Enter the value of a: "); a=sc.nextInt(); System.out.println("Enter the value of b: "); b=sc.nextInt(); int p=a; int q=b; while(a!=0) { if(a%b==0) { System.out.println("The GCD("+p+","+q+") = "+m); break; } else { m=a%b; a=b; b=m; } } } }
java
<gh_stars>0 # Change Log All notable changes to the "Crank Scenario Language" extension will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). ## v0.3.0 - 2020.03.27 - Added IntelliSense support for _dynamic_ `{{tokens}}`, for steps that follow others that provide them. Note: Dynamic token support was added in Crank in `v0.10.0`, and may not yet be fully supported/exposed by all Cog versions. - Fixed a bug where IntelliSense would not show up due to a case mismatch on some Scenario step expression text. ## v0.2.0 - 2019.11.10 - Added IntelliSense support for defined `{{tokens}}` when present in scenario. ## v0.1.1 - 2019.11.10 - YAML format specification for `.crank.yml` files. - IntelliSense support for step expression text (based on Crank cog registry) - IntelliSense support for data keys (based on Crank cog registry) - IntelliSense support for cog and stepId keys (based on Crank cog registry) - File contextual menu item to run the given scenario in a VS Code terminal
markdown
{ "mailgun_failed_load_api_key": "Failed to load MailGun API key", "mailgun_failed_load_domain": "Failed to load MailGun domain", "mailgun_error_send_email": "Error in sending confirmation email, user registration failed", "confirmation_not_found": "Confirmation not found", "confirmation_link_expired": "Confirmation link already expired", "confirmation_already_confirmed": "User registration already confirmed", "confirmation_confirm_error": "Internal server error. Registration could not be confirmed at this time", "confirmation_resend_fail": "Internal server error. Failed to resend confirmation email", "confirmation_resend_successful": "E-mail confirmation successfully re-sent", "algorithm_blank_error": "'{}' cannot be blank", "algorithm_name_exists": "An algorithm with name '{}' already exists", "algorithm_error_inserting": "An error occurred while inserting the algorithm", "algorithm_error_deleting": "An error occurred while deleting the algorithm", "algorithm_not_found": "Algorithm {} not found", "algorithm_deleted": "Algorithm deleted", "algorithm_uploaded": "Algorithm {} uploaded successfully", "user_username_exists": "A user with that username already exists", "user_email_exists": "A user with that email already exists", "user_email_incorrect": "Incorrect email address", "user_not_found": "User {} not found", "user_via_oauth": "Please login via Google or GitHub", "user_password_mismatch": "<PASSWORD>", "user_password_too_short": "<PASSWORD>", "user_deleted": "User deleted", "user_invalid_password": "<PASSWORD>", "user_logged_in": "User {} successfully logged in", "user_logged_out": "User successfully logged out", "user_not_confirmed": "You have not confirmed registration, please check your email <{}>", "user_not_logged_in": "You have to log in first", "user_error_creating": "Internal server error. Failed to create user", "user_registered": "Thank you. Your registration has been confirmed through {}" }
json
If you did everything we asked you to do for John Williams Week, congrats, take a day off. If not, you deserve to be punished, so go count the number of drone deaths in Star Wars: Episode II — Attack of the Clones. *ANY SUBMISSIONS, PHOTOS, VIDEOS, OR OTHER MATERIAL YOU SHARE MAY BE PUBLISHED ON WIRED.COM OR WIRED’S SOCIAL MEDIA FEEDS, AND MAY BE CROPPED OR EDITED.
english
# Customizing your bundle Phansible is meant to help you bootstrapping a Vagrant setup with Ansible. You are encouraged to explore the downloaded bundle and extend your setup by adding new roles and tasks that are more specific for your project. ## Adding app-specific tasks In many cases, in order to have our app up and running, we need to run more specific tasks, like clearing a cache or running composer. This specific tasks can be placed in the special role "app", already included in your bundle. This role has no default tasks, and it's supposed to hold tasks that are application-specific. Let's say you want to run `composer install` to download the vendor libraries for your project. Edit the file `ansible/roles/app/tasks/main.yml` and add the task: --- # application tasks to be customized and to run after the main provision - name: Run Composer become: false shell: /usr/local/bin/composer install chdir={{ project_root }} To test the changes, run: $ vagrant provision And the Ansible provisioning will run again. At the end you should see the execution of the "Run Composer" task. You can add any other app-specific tasks in this role. ## Including a new Role You can include custom roles in your bundle by just adding the role directory to the folder **"roles"** in your `ansible` directory, and including it from the main `playbook.yml`. Let's say you want to include a custom role to install a new service in your VM. The role should follow this generic structure: ansible/roles/myCustomRole ├── handlers │   └── main.yml ├── tasks │   └── main.yml └── templates └── default.tpl Where only the `tasks/main.yml` file is really mandatory. This file should contain the tasks necessary to install and configure the new service (say, a database for instance). After including this folder inside the "roles" folder of your bundle (`ansible/roles`), you need to import it from the playbook. Just edit the file **ansible/playbook.yml** and include the name of the role (folder name) in the **roles** array. Mind the order of inclusions, the tasks are always executed in the order you define them, same applied for the roles included. For this example, let's consider we would like to execute the role after the initial bootstrap of the server, but before the application-specific tasks that are included in the "app" role: --- - hosts: all become: true vars: web_server: nginxphp servername: myApp.vb www.myApp.vb timezone: UTC vars_files: - vars/common.yml - [ "vars/nginxphp.yml", "vars/ws_defaults.yml" ] roles: - init - nginx - php5-fpm - myCustomRole #after initial bootstrap, before app-specific tasks - app
markdown
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE> [antlr-interest] String Template iteration </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:antlr-interest%40antlr.org?Subject=Re:%20%5Bantlr-interest%5D%20String%20Template%20iteration&In-Reply-To=%3C3FDBFA5A9BC6BD4EB5FFE1B29E33DB4802E32685%40BD01MSXMB021.US.Cingular.Net%3E"> <META NAME="robots" CONTENT="index,nofollow"> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="022743.html"> <LINK REL="Next" HREF="022730.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[antlr-interest] String Template iteration</H1> <B><NAME></B> <A HREF="mailto:antlr-interest%40antlr.org?Subject=Re:%20%5Bantlr-interest%5D%20String%20Template%20iteration&In-Reply-To=%3C3FDBFA5A9BC6BD4EB5FFE1B29E33DB4802E32685%40BD01MSXMB021.US.Cingular.Net%3E" TITLE="[antlr-interest] String Template iteration"><EMAIL> </A><BR> <I>Tue Jul 24 09:35:06 PDT 2007</I> <P><UL> <LI>Previous message: <A HREF="022743.html">[antlr-interest] Newbie question... </A></li> <LI>Next message: <A HREF="022730.html">[antlr-interest] Troubles lexing a decimal, (from an antlr beginner) </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#22729">[ date ]</a> <a href="thread.html#22729">[ thread ]</a> <a href="subject.html#22729">[ subject ]</a> <a href="author.html#22729">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>I've been trying new things (to me) with StringTemplate and made a couple of observations. The separation of concerns is very clear. It makes it easy to think in an MVC manner. I've done successful &quot;versions&quot; of UI's using html and xml. The compiled code doesn't change... only the template/group. Very nice! One of the things I was hoping to avoid was iteration code for, say, a combo box. for (int i = 0; i &lt; options.length; i++) { StringTemplate option = group.getInstanceOf(&quot;option&quot;); option.setAttribute(&quot;value&quot;, myval[i]); option.setAttribute(&quot;text&quot;, mytext[i]); option.setAttribute(&quot;selected&quot;, ( myval[i].equals(selectedVal) )? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;); } The piping feature in StringTemplate allows me to let StringTemplate handle some iteration. I abstract a &quot;form&quot; into an object with accessors and pass it to StringTemplate. Very nice!!! But that &quot;selected&quot; problem represents a state of the ui, so I don't know how to pass that except as a Boolean array. So that &lt;select&gt; $myForm.options, selectedIndices:{option, isSelected | &lt;option value=&quot;$option.value$&quot; $if(isSelected)$selected=&quot;selected&quot;$endif$&gt;$option.text$&lt;/option&gt;};separ ator=&quot;\n&quot;$ &lt;/select&gt; I feel an objection rising in me about creating a Boolean array just for the selected state. The objection is along the lines of &quot;that's a lot of work!&quot; I answer myself with, &quot;but it represents a very clear separation of model/view concerns&quot;. I was wondering if there was another way to look at the problem that provides a solution using StringTemplate without iteration. Best regards, Jeff </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="022743.html">[antlr-interest] Newbie question... </A></li> <LI>Next message: <A HREF="022730.html">[antlr-interest] Troubles lexing a decimal, (from an antlr beginner) </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#22729">[ date ]</a> <a href="thread.html#22729">[ thread ]</a> <a href="subject.html#22729">[ subject ]</a> <a href="author.html#22729">[ author ]</a> </LI> </UL> <hr> <a href="http://www.antlr.org/mailman/listinfo/antlr-interest">More information about the antlr-interest mailing list</a><br> </body></html>
html
Australia coach Graham Arnold has recalled experienced winger Mathew Leckie among four home-based players in his squad for the World Cup qualifier against Saudi Arabia, the Socceroos' first match on home soil in over two years. Leckie is joined by fellow A-League forwards Jamie Maclaren and Andrew Nabbout, along with Sydney FC defender Rhyan Grant in Arnold's 24-man squad for the November 11 clash at Western Sydney Stadium. Tom Rogic, Aaron Mooy and Adam Taggart were unavailable for selection "due to injury or quarantine", Arnold said in a media release on Friday. "However we have developed good depth in the Socceroos over the past few years and the squad that has been selected is one that we have full belief in to perform strongly for the Australian public," he added. Norway-based midfielder Gianni Stensness is the sole uncapped player in the squad. Australia has not played at home due to COVID-19 issues since defeating Nepal 5-0 in Canberra in October 2019. It will have the support of up to 30,000 people at Western Sydney Stadium after authorities recently lifted caps on crowd sizes at sports venues as COVID-19 vaccination rates rise. Despite playing 11 of its 12 qualifiers for next year's finals outside Australia, the Socceroos have put themselves in a strong position to seal a berth at a fifth successive World Cup. Japan brought an end to its 11-match winning streak with a 2-1 win last month but Australia is second in its group, three points behind the Saudis. The top two teams from each group earn tickets to Qatar. "The players selected for our upcoming FIFA window are brimming with excitement to return home and to play in front of Australian supporters, as well as their family and friends,” said Arnold. "The players will get so much energy from playing in front of a strong home crowd at a first class stadium." Australia's following qualifier is against China on November 16 at Sharjah in the United Arab Emirates.
english
{"project": "fe372daf01f75276c7e5228e6e000024", "_rev": "2-20123640f904d39cbe93b46668558e79", "_id": "ba92af479eff32dcdae75d1ef3c29c06", "type": "bookmark", "_attachments": {"bookmark": {"digest": "md5-cFxJfn3Sr2IyVs+GRXCCrA==", "data": "<KEY>", "revpos": 2, "content_type": "application/json"}}}
json
Outgoing Indian high commissioner to Bangladesh Vikram Kumar Doraiswami has said Bangladesh-India relationship is a “train” that must keep moving to do more great things together. “That energy needs to be carried through,” he said, adding that there are many great things that the two countries have achieved together in the past decade which should be celebrated. Speaking at a reception at the High Commission of India in Dhaka Thursday evening, Doraiswami said people of Bangladesh and India are connected through hearts and souls; and it is stronger than blood relations. Doraiswami said Bangladesh-India relationship will have challenges but it is a relationship built with the connection between hearts. Therefore, he said, expectations from each other can sometimes be unrealistic. The high commissioner urged his friends in Bangladesh to always look at the glass as “half full”. “We have, of course, things that we need to do together,” he said. Doraiswami said there are many kinds of honour that one has in life but serving in a country like Bangladesh, the country that is of such significance and importance to India, has doubled the honour. Current and former ministers, opposition leaders, business leaders, diplomats, civil society members, artistes and senior journalists joined the reception hosted by the High Commission to say goodbye. High commissioner Doraiswami is likely to leave Dhaka on 18 September, wrapping up his “engaging” tenure in Bangladesh. He has been appointed as the next high commissioner of India to the United Kingdom and is expected to take up the assignment shortly. Pranay Kumar Verma, who most recently served as ambassador of India to Vietnam, has been appointed the next high commissioner of India to Bangladesh. He is expected to arrive in Dhaka on 21 September and formally take up the assignment shortly after submitting his credentials to president Abdul Hamid. Pranay Verma joined Indian Foreign Service in 1994 and has held diplomatic assignments in Hong Kong, San Francisco, Beijing, Kathmandu and Washington DC. He has served as the joint secretary of the East Asia Division at the Ministry of External Affairs in New Delhi since June 2017. Earlier, he also served as the joint secretary for external relations at the Department of Atomic Energy looking after India’s nuclear diplomacy.
english
--- title: 기본 활동 구성 ms.date: 03/30/2017 ms.assetid: c283a1a7-1245-4ecd-8072-206c1b4ca379 ms.openlocfilehash: ade8187ca44a8182b55cf0f01e5bfe5a9a747255 ms.sourcegitcommit: 2eceb05f1a5bb261291a1f6a91c5153727ac1c19 ms.translationtype: MT ms.contentlocale: ko-KR ms.lasthandoff: 09/04/2018 ms.locfileid: "43518378" --- # <a name="basic-activity-composition"></a>기본 활동 구성 이 샘플에서는 사용자 지정 활동을 추가로 빌드하기 위해 사용자 지정 활동과 시스템 제공 활동을 구성하는 방법을 보여 줍니다. 설문 조사 활동을 사용하는 워크플로에서 질문 목록을 준비하여 설문 조사 일정을 예약한 다음 설문을 통해 수집된 응답을 출력합니다. ## <a name="sample-details"></a>샘플 세부 정보 이 샘플에서는 다음과 같이 세 개의 사용자 지정 활동을 사용합니다. `ReadLine` 단순 <xref:System.Activities.NativeActivity> \<문자열 > 만들어지는 <xref:System.Activities.Bookmark> 예약 되 고 다음을 설정 하는 경우는 `Return` <xref:System.Activities.OutArgument%601> 있는 값으로는 <xref:System.Activities.Bookmark> 다시 시작 됩니다. `Prompt` <xref:System.Activities.Activity%601> \<문자열 >를 사용 하는 <xref:System.Activities.InArgument%601>< 문자열\> 이라는 `Text` 사용자의 응답을 반환 하 고는 `Result` <xref:System.Activities.OutArgument%601> \<문자열 >. `Prompt` 활동에는 .NET Framework의 일부로 제공되는 <xref:System.Activities.Statements.Sequence> 및 <xref:System.Activities.Statements.WriteLine> 활동이 사용되며, 사용자로부터 입력을 받기 위한 사용자 지정 `ReadLine` 활동도 여기에 통합됩니다. 마지막 사용자 지정 활동은 `Survey` 활동입니다. 것을 <xref:System.Activities.Activity>< ICollection\<문자열 >> 합니다. 이 활동은는 <xref:System.Activities.InArgument%601>< IEnumerable < 문자열\>> 이라는 `Questions` 채웁니다는 `Result` out 인수에 응답 합니다. `Survey` 활동에는 .NET Framework의 <xref:System.Activities.Statements.ForEach%601>, <xref:System.Activities.Statements.Sequence> 및 <xref:System.Activities.Statements.AddToCollection%601>이 사용되며, 설문 조사 문항을 묻고 응답을 얻기 위한 `Prompt` 활동도 사용됩니다. #### <a name="to-set-up-build-and-run-the-sample"></a>샘플을 설치, 빌드 및 실행하려면 1. 엽니다는 **BasicActivityComposition.sln** 샘플 솔루션 [!INCLUDE[vs2010](../../../../includes/vs2010-md.md)]합니다. 2. 솔루션을 빌드하고 실행합니다. > [!IMPORTANT] > 컴퓨터에 이 샘플이 이미 설치되어 있을 수도 있습니다. 계속하기 전에 다음(기본) 디렉터리를 확인하세요. > > `<InstallDrive>:\WF_WCF_Samples` > > 이 디렉터리가 없으면로 이동 [Windows Communication Foundation (WCF) 및.NET Framework 4 용 Windows WF (Workflow Foundation) 샘플](https://go.microsoft.com/fwlink/?LinkId=150780) 모든 Windows Communication Foundation (WCF)를 다운로드 하 고 [!INCLUDE[wf1](../../../../includes/wf1-md.md)] 샘플. 이 샘플은 다음 디렉터리에 있습니다. > > `<InstallDrive>:\WF_WCF_Samples\WF\Basic\CustomActivities\Composite\ActivityComposition`
markdown
<filename>vuln/npm/151.json<gh_stars>1-10 { "id": 151, "created_at": "2016-10-27T16:03:12+00:00", "updated_at": "2016-12-06T01:10:10+00:00", "title": "Authentication bypass", "author": "Unknown", "module_name": "passport-azure-ad", "publish_date": "2016-12-06T01:10:10+00:00", "cves": [ "CVE-2016-7191" ], "vulnerable_versions": ">= 1.0.0 < 1.4.6 || 2.0.0", "patched_versions": ">= 1.4.6 < 2.0.0 || >= 2.0.1", "slug": "passport-azure-ad_authentication-bypass", "overview": "The Microsoft Azure Active Directory Passport (aka Passport-Azure-AD) library 1.x before 1.4.6 and 2.x before 2.0.1 for Node.js does not recognize the validateIssuer setting, which allows remote attackers to bypass authentication via a crafted token.", "recommendation": "If using passport-azure-ad 1.x update to at least version 1.4.6, if using 2.x update to at least version 2.0.1", "references": "- https://github.com/AzureAD/passport-azure-ad/blob/master/SECURITY-NOTICE.MD\n- https://support.microsoft.com/en-us/kb/3187742", "cvss_vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N", "cvss_score": 10, "coordinating_vendor": "^Lift Security" }
json
In the second Wimbledon semifinal on Thursday, Russian-born Kazakhstani player Elena Rybakina stunned the 2019 Wimbledon champion Simona Halep in straight sets to reach her first-ever Grand Slam final. World No. 23 Rybakina outclassed 18th-ranked Halep 6-3, 6-3 to set up a title clash against Ons Jabeur on Saturday. Before this, 23-year-old Rybakina's best result at a Major was in the quarterfinals of the 2021 French Open where she lost to Russia's Anastasia Pavlyuchenkova. Halep's coach Patrick Mouratoglou took to social media to congratulate Rybakina and thank Halep's fans for their support. "Elena Rybakina was too good for us today. A loss is always very disappointing, especially when you give everything you have on all levels. But it is always to put it in perspective, and the last three months with @simonahalep have been amazing. Now time to rest before an exciting summer. A massive thank you to all the fans of @simonahalep who are supporting her the good but also the bad days. And special thanks to our amazing Team," Mouratoglou wrote. After the match, Rybakina stated that she was nervous about her semifinal since it was her first appearance on Centre Court, but added that her matches on Court 1 helped her immensely. “Simona is a great champion but I was really focused today and really happy with my performance. I was nervous, of course, but the matches I had before on Court 1 helped. It was my first time on Centre Court but the atmosphere I had before helped me a lot. I think today I was mentally prepared and did everything I could. It was an amazing match," Rybakina said. A new Wimbledon champion is guaranteed this Saturday as Elena Rybakina locks horns with Tunisia's Ons Jabeur for the coveted Wimbledon trophy. It is the first Grand Slam final for both players. Like Rybakina, the best result at a Major for World No. 2 Jabeur is in the quarterfinals of the 2020 Australian Open and 2021 Wimbledon. With Jabeur winning two of their previous three encounters, Rybakina realizes the challenges she needs to overcome to etch her name into history. “Ons is a very good, very tricky player and it’s not going to be easy to play her drop shots. But I think it’s going to be a great match," Rybakina said.
english
New American Bible (Revised Edition) New American Bible (Revised Edition) - 1:19 James the brother of the Lord: not one of the Twelve, but a brother of Jesus (see note on Mk 6:3). He played an important role in the Jerusalem church (see note on Gal 2:9), the leadership of which he took over from Peter (Acts 12:17). Paul may have regarded James as an apostle. New American Bible (Revised Edition) (NABRE) Scripture texts, prefaces, introductions, footnotes and cross references used in this work are taken from the New American Bible, revised edition © 2010, 1991, 1986, 1970 Confraternity of Christian Doctrine, Inc., Washington, DC All Rights Reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from the copyright owner.
english
Lviv (Ukraine) (AFP), Mar 7 – Statues wrapped in foam and fireproof material can be seen all around the historic city of Lviv, where the race is on to protect cultural treasures against possible Russian bombardment. In the western Ukrainian city’s Market Square, only a trident can be seen sticking out from a statue of Neptune — the Roman god of the seas — that is entirely covered in a plastic sheeting. “I got some money, gathered a team and bought some material,” said Andriy Salyuk, head of the Society for the Protection of Monuments, and one of the main drivers behind the protection effort. Volunteers have joined up with city workers and builders in the movement to defend the rich heritage of Lviv, a city of 700,000 people whose centre is on the UNESCO World Heritage List. Salyuk said he was moved to act when an art historian “told me that if there was a bombing, God help us, we could lose the stained glass windows! ”. Speaking to AFP in an office decorated with Ukrainian flags and the colours of various battalions fighting in eastern Ukraine, he said he has received donations from wealthy benefactors. The effort has brought together an unlikely coalition, including construction companies which have advised on the best material to use to protect the stained glass windows of various churches. At the Cathedral Basilica of the Assumption, which dates back to the 14th century, Andriy Pochekva was overseeing the installation of one such panel. “We cannot protect from a direct impact but we are trying as much as possible to protect from light damage, whether it’s a fire or a shockwave or small fragments,” he said, as a crane manoeuvred the panel into position. On one side of the cathedral, a large sculpture of the Holy Sepulchre has already been covered up under the watchful eye of Liliya Onishchenko from the city’s cultural heritage protection department. “I have devoted my entire life to defending cultural heritage,” the 66-year-old told AFP. “I do not want to see the results of our work destroyed by the war,” she said. In another part of the city, she said a recently restored wooden altar from the 14th century in an Armenian church has been dismantled and placed under protection “like the First World War”. Onishchenko said that museums in the city have also been storing away their exhibits for safekeeping. After protecting “the most fragile objects”, Salyuk said he wanted to pass on to the next stage.
english
<filename>src/main/java/io/connectedhealth_idaas/eventbuilder/pojos/edi/hipaa/VAT.java package io.connectedhealth_idaas.eventbuilder.pojos.edi.hipaa; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; public class VAT { private String VAT_01_IndustryCode; private String VAT_02_AmountQualifierCode; private String VAT_03_Amount; private String VAT_04_CurrencyCode; private String VAT_05_ProductProcessCharacteristicCode; private String VAT_06_AgencyQualifierCode; private String VAT_07_SourceSubqualifier; private String VAT_08_IndustryCode; private String VAT_09_Description; private String VAT_10_Quantity; private String VAT_11_UnitorBasisforMeasurementCode; private String VAT_12_SurfaceLayerPositionCode; public String toString() { return ReflectionToStringBuilder.toString(this);} }
java
<reponame>jcunisabana/logica1 /* Resets and base styles from HTML5 Boilerplate */ div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; } ins { background-color: #ff9; color: #000; text-decoration: none; } mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; } del { text-decoration: line-through; } abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; } table { border-collapse: collapse; border-spacing: 0; } hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; } input, select { vertical-align: middle; } select, input, textarea, button { font: 99% sans-serif; } pre, code, kbd, samp { font-family: monospace, sans-serif; } a { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } a:hover, a:active { outline: none; } ul, ol { margin-left: 2em; vertical-align: top; } ol { list-style-type: decimal; } nav ul, nav li { margin: 0; list-style: none; list-style-image: none; } small { font-size: 85%; } strong, th { font-weight: bold; } td { vertical-align: top; } sub, sup { font-size: 75%; line-height: 0; position: relative; } sup { top: -0.5em; } sub { bottom: -0.25em; } textarea { overflow: auto; } input[type="radio"] { vertical-align: text-bottom; } input[type="checkbox"] { vertical-align: bottom; } label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; } button, input, select, textarea { margin: 0; } input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; } input:invalid .no-boxshadow, textarea:invalid .no-boxshadow { background-color: #f0dddd; } button { width: auto; overflow: visible; } select, input, textarea { color: #444444; } a { color: #607890; } a:hover, a:focus { color: #036; } a:link { -webkit-tap-highlight-color: #fff; } /* End HTML5 Boilerplate adaptations */ h1 { text-transform: uppercase; font-size: 3.25em; font-weight: bold; border-bottom: 5px #000 solid; margin: 0 0 70px 0; } h1, .vcenter { font-weight: bold; /* text-align: center;*/ padding-top: 1em; max-height: 100%; } .csstransforms h1, .csstransforms .vcenter { padding: 0 48px; position: absolute; left: 0; right: 0; top: 50%; -webkit-transform: translate(0, -50%); -moz-transform: translate(0, -50%); -ms-transform: translate(0, -50%); -o-transform: translate(0, -50%); transform: translate(0, -50%); } .vcenter h1 { position: relative; top: auto; padding: 0; -webkit-transform: none; -moz-transform: none; -ms-transform: none; -o-transform: none; transform: none; } h2 { font-size: 2.25em; font-weight: bold; padding-top: .5em; margin: 0 0 .66666em 0; border-bottom: 3px solid #888; } h3 { font-size: 1.4375em; font-weight: bold; margin-bottom: .30435em; } h4 { font-size: 1.25em; font-weight: bold; margin-bottom: .25em; } h5 { font-size: 1.125em; font-weight: bold; margin-bottom: .2222em; } h6 { font-size: 1em; font-weight: bold; } h7{ margin: 0; position: absolute; top: 80%; /* left: 50%;*/ /* margin-right: -50%;*/ transform: translate(-50%, -50%) text-transform: uppercase; border-bottom: 5px #000 solid; margin: 0 0 70px 0; } img, iframe, video { display: block; max-width: 100%; } video, iframe, img { display: block; margin: 0 auto; } p, blockquote, iframe, img, ul, ol, pre, video { margin-bottom: 1em; } pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 1em; border: 1px solid #888; } slide emph { text-shadow: 0 0 15px #fff, 0 0 2px #fff; } li { padding: .25em 0; vertical-align: middle; } li > ol, li > ul { margin-bottom: inherit; } .slide { -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; } h1 { color: #0af; font-weight: normal; font-weight: 100; text-shadow: 0 0 50px #0af, 0 0 3px #fff; } h2 { color: #af0; border-bottom-color: #ccc; font-weight: normal; font-weight: 100; text-shadow: 0 0 15px #af0, 0 0 2px #fff; border-bottom: 1px solid #333; } h3 { color: #fff; font-weight: normal; font-weight: 100; text-shadow: 0 0 10px #fff, 0 0 2px #fff; } pre { border-color: #333; } pre code { color: #fff; } code { color: #f0a; } blockquote { font-size: 2em; padding: 1em 2em; color: #fff; border-left: 5px solid #fff; } blockquote p { margin: 0; } blockquote cite { font-size: .5em; font-style: normal; font-weight: normal; font-weight: 100; color: #aaa; text-shadow: 0 0 15px #fff, 0 0 2px #fff; } ::-moz-selection { background: #a0f; } ::selection { background: #a0f; } a, a:hover, a:focus, a:active, a:visited { color: #f0a; text-decoration: none; } a:hover, a:focus { text-decoration: underline; } .slide .deck-before, .slide .deck-previous { opacity: 0.7; } .slide .deck-after, .slide .deck-next { opacity: 0.0; } .slide .deck-following .slide .deck-before:not(.deck-child-current) .deck-before, .slide .deck-before:not(.deck-child-current) .deck-previous, .slide .deck-previous:not(.deck-child-current) .deck-before, .slide .deck-previous:not(.deck-child-current) .deck-previous { opacity: 0; } .slide .deck-child-current { opacity: 1; } .deck-prev-link, .deck-next-link { background: #f0a; text-shadow: 0 0 3px #fff; } .deck-prev-link, .deck-prev-link:hover, .deck-prev-link:focus, .deck-prev-link:active, .deck-prev-link:visited, .deck-next-link, .deck-next-link:hover, .deck-next-link:focus, .deck-next-link:active, .deck-next-link:visited { color: #fff; } .deck-prev-link:hover, .deck-prev-link:focus, .deck-next-link:hover, .deck-next-link:focus { text-decoration: none; box-shadow: 0 0 20px #f0a, 0 0 5px #fff; } .deck-status { font-size: 0.6666em; } .goto-form { background: #000; border: 1px solid #f0a; } .goto-form label { color: #fff; } .deck-menu .slide { background: #333; } .deck-menu .deck-current { background: #444; } .boxshadow .deck-menu .deck-current { background: #000; box-shadow: 0 0 20px #f0a, 0 0 5px #fff; } .no-touch .deck-menu .slide:hover { background: #444; } .no-touch.boxshadow .deck-menu .slide:hover { background: #000; box-shadow: 0 0 20px #f0a, 0 0 5px #fff; } .flexbox-container { display: -ms-flex; display: -webkit-flex; display: flex; padding: 10px; } .flexbox-container > div { width: 50%; padding: 20px; } .flexbox-container > div:first-child { margin-right: 20px; } /* ============================================================================================================================ == White box black text ** from http://nicolasgallagher.com/pure-css-speech-bubbles/demo/default.css ============================================================================================================================ */ .example-twitter { position:relative; /* padding:15px;*/ margin:100px 0 0.5em; color:#333; background:#eee; /* css3 */ -webkit-border-radius:10px; -moz-border-radius:10px; border-radius:10px; } /* ============================================================================================================================ == BUBBLE WITH A BORDER AND TRIANGLE ** ============================================================================================================================ http://nicolasgallagher.com/pure-css-speech-bubbles/demo/default.css */ /* THE SPEECH BUBBLE ------------------------------------------------------------------------------------------------------------------------------- */ .triangle-border { position:relative; padding:15px; margin:1em 0 3em; border:5px solid #af0; color:#fff; background:#000; /* css3 */ -webkit-border-radius:10px; -moz-border-radius:10px; border-radius:10px; } /* color: #af0; border-bottom-color: #ccc; font-weight: normal; font-weight: 100; text-shadow: 0 0 15px #af0, 0 0 2px #fff; border-bottom: 1px solid #333; */ /* Variant : for left positioned triangle ------------------------------------------ */ .triangle-border.left { margin-left:30px; } /* Variant : for right positioned triangle ------------------------------------------ */ .triangle-border.right { margin-right:30px; } /* THE TRIANGLE ------------------------------------------------------------------------------------------------------------------------------- */ .triangle-border:before { content:""; position:absolute; bottom:-20px; /* value = - border-top-width - border-bottom-width */ left:40px; /* controls horizontal position */ border-width:20px 20px 0; border-style:solid; border-color:#5a8f00 transparent; /* reduce the damage in FF3.0 */ display:block; width:0; } /* creates the smaller triangle */ .triangle-border:after { content:""; position:absolute; bottom:-13px; /* value = - border-top-width - border-bottom-width */ left:47px; /* value = (:before left) + (:before border-left) - (:after border-left) */ border-width:13px 13px 0; border-style:solid; border-color:#fff transparent; /* reduce the damage in FF3.0 */ display:block; width:0; } /* Variant : top ------------------------------------------ */ /* creates the larger triangle */ .triangle-border.top:before { top:-20px; /* value = - border-top-width - border-bottom-width */ bottom:auto; left:auto; right:40px; /* controls horizontal position */ border-width:0 20px 20px; } /* creates the smaller triangle */ .triangle-border.top:after { top:-13px; /* value = - border-top-width - border-bottom-width */ bottom:auto; left:auto; right:47px; /* value = (:before right) + (:before border-right) - (:after border-right) */ border-width:0 13px 13px; } /* Variant : left ------------------------------------------ */ /* creates the larger triangle */ .triangle-border.left:before { top:10px; /* controls vertical position */ bottom:auto; left:-30px; /* value = - border-left-width - border-right-width */ border-width:15px 30px 15px 0; border-color:transparent #af0; } /* creates the smaller triangle */ .triangle-border.left:after { top:16px; /* value = (:before top) + (:before border-top) - (:after border-top) */ bottom:auto; left:-21px; /* value = - border-left-width - border-right-width */ border-width:9px 21px 9px 0; border-color:transparent #000; } /* Variant : right ------------------------------------------ */ /* creates the larger triangle */ .triangle-border.right:before { top:10px; /* controls vertical position */ bottom:auto; left:auto; right:-30px; /* value = - border-left-width - border-right-width */ border-width:15px 0 15px 30px; border-color:transparent #af0; } /* creates the smaller triangle */ .triangle-border.right:after { top:16px; /* value = (:before top) + (:before border-top) - (:after border-top) */ bottom:auto; left:auto; right:-21px; /* value = - border-left-width - border-right-width */ border-width:9px 0 9px 21px; border-color:transparent #000; } /* For fullscreen images*/ .imgfull { float: left; height: auto; position: absolute; top: 0; left: 0; } /*For fit.js*/ .deck-container { width: 100%; height: 100%; /* to get a proper filling of the parent */ margin: 0; padding: 0; /* any margin is handled by the parent or the fit extension */ position: absolute; left:0; top:0; width:100%; height:100%; border: 0; line-height: 1.25; font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif; font-size: 1.75em; color: #aaa; background: #000; width: 100%; height: 100%; /* to get a proper filling of the parent */ margin: 0; padding: 0; /* any margin is handled by the parent or the fit extension */ } .deck-container>.slide { width: 100%; height: 100%; /* to get a proper filling of the parent */ min-width:0; min-height:0; /* undoing some hurting style in the defaults of deck.js */ overflow: hidden; /* don't show slides outside of their box */ /* margin:0; padding:0; /* remove possible margins */ . width: 100%; height: 100%; padding: 0 48px; min-width:0; min-height:0; /* undoing some hurting style in the defaults of deck.js */ overflow: hidden; } .deck-container { }
css
<gh_stars>1-10 package edu.ucdavis.dss.ipa.services; import edu.ucdavis.dss.ipa.entities.Budget; import edu.ucdavis.dss.ipa.entities.BudgetScenario; import edu.ucdavis.dss.ipa.entities.InstructorCost; import org.springframework.validation.annotation.Validated; import java.util.List; @Validated public interface InstructorCostService { List<InstructorCost> findByBudgetId(Long budgetId); InstructorCost findByInstructorIdAndBudgetId(Long instructorId, Long budgetId); InstructorCost findById(Long instructorCostId); InstructorCost findOrCreate(InstructorCost instructorCostDto); void deleteById(long instructorCostId); InstructorCost update(InstructorCost instructorCost); List<InstructorCost> findOrCreateManyFromBudget(Budget budget); void removeAssociationByInstructorTypeId(long instructorTypeId); List<InstructorCost> findByWorkgroupIdAndYear(long workgroupId, long year); List<InstructorCost> snapshotInstructorCosts(BudgetScenario snapshotScenario, BudgetScenario originalScenario); InstructorCost findByInstructorIdAndBudgetScenarioId(Long instructorId, Long budgetScenarioId); List<InstructorCost> findByBudgetScenarioId(Long budgetScenarioId); }
java
Disco Inferno recently shared his thoughts on Cody Rhodes and Andrade El Idolo's brutal Atlanta Street Fight from last week's episode of AEW Dynamite. The match ended controversially after Cody's wife, Brandi Rhodes, showed up. She lit a table in the ring on fire for Cody to execute a suplex on Andrade. However, despite suplexing his opponent, Cody crashed through the flaming table. Cody quickly got back to his feet and pinned Andrade. The finish has attracted criticism from many corners, with WCW veteran Disco Inferno blasting it on the latest episode of the Keepin' It 100 podcast. Disco Inferno said it made little sense for Cody to win after going through the table. He added that the way the spot was executed, Andrade should have pinned Cody for the win: "Cody literally suplexed himself through the table, and he was the one who got up and pinned Andrade. The wrong guy won the match! Andrade should have pinned Cody because Cody's the one who went through the flaming table. This finish is botched. The way they executed that move, Andrade should have covered Cody." On a recent episode of Sportskeeda's Writing with Russo, the former WWE writer made a hilarious comment about the fiasco on AEW Dynamite. Vince Russo said if his wife had done what Brandi Rhodes did during the match, the two would have parted ways the very next day: "I'm just curious if I was involved in that match, and my wife came down and ordered me to put myself through a flame, we'd be divorced the next day." Going by the hostile reaction Cody Rhodes received following his win over Andrade, it remains to be seen if he finally embraces the crowd reception and turns heel in AEW. Do you see agree with Disco Inferno's assessment of the match from AEW Dynamite? Sound off in the comments section below.
english
1992, 1999 and 2011. India’s wait to register a win against South Africa in a World Cup game finally ended after 19 years. What it brought was a lot of joy to the faces of the Indian supporters who thronged the MCG in thousands. While South Africa’s aura of invincibility got heavily damaged, India sent out a message that they were here to compete. Here is how players from both the teams fared in the match: One of the only three Indians to have scored an ODI century at the Melbourne Cricket Ground, Rohit Sharma added to his woeful first game by not contributing anything to his team’s victory. After spending more than ten minutes at the crease, he got himself sloppily run out without troubling the scorers. There was very little that one could expect out of Dhawan before the World Cup began. But after his performance in the recent games, including the warm-up, one can confidently say that the Delhi batsman has regained his mojo. The innings that he played in front of the packed house knocked the wind out of the tournament favourites. Scoring heavily behind square, Dhawan unleashed his mustachioed madness against Steyn & Co with the help of sixteen fours and two sixes. In the field, he committed himself to saving every run and also held on to two catches. Virat Kohli’s knock had more value than what is reflected on the scorecard. Like in the game against Pakistan, he came in early, facing what promised to be a menacing attack. He not only steadied the ship with Dhawan, but also ensured that the ones and the twos kept coming. In no time, Kohli, alongwith Dhawan had strung together a partnership worth 127 – their second consecutive hundred run stand. It’s a pity that Kohli got out just when he looked like taking off. In terms of the impact that it had on the game, there’s very little to differentiate between Rahane’s knock from Dhawan’s. Quite contrary to the way he is perceived, Rahane went after the bowling from the word go and not for once allowed Kohli to be missed. Scoring nearly 50 runs in front of the wicket, he was particularly aggressive against Wayne Parnell – scoring 29 off the 16 balls bowled to him by the left-arm pacer. His 79 runs from 60 balls in a high pressure game made sure that India’s middle overs were highly productive, and somewhat compensated for the lack of big shots in the end overs. The southpaw had an ordinary day in the field. First, he got out trying to play a pull that he was being set up for, and later he missed a simple run out opportunity of Hashim Amla. The only consolation was that he held on to JP Duminy’s catch at slip quite efficiently. Skipper MS Dhoni showed why captaincy is his strongest suit, yet again. After his brief cameo with the bat, he came on to the field resolute and determined. The decisions that he took on the field were masterstrokes – be it in placing the field, switching his bowlers or laying out traps for the South Africans, he was clinical to say the least. Usually unexpressive, Dhoni leapt in the air when de Villiers got out, telling us just how much winning this game meant to him. Although Jadeja bowled well, getting done with his overs quickly and bowling stump to stump – his inability to hit big in the death overs will be a cause of concern for India. But where Jadeja misses out on scoring, he compensates by saving those extra runs while fielding. After his performance against Pakistan, Ashwin was the bowler to watch out for in the Indian camp. And it looks like he has carried forward his form big time. He gave away very little while he was bowling, and took quick wickets in the end to destroy any possibilities of a South African counter attack. Nearly six overs worth of dot balls came from Ashwin’s bowling, making him invaluable to the current India setup. Eight overs, one maiden, two wickets for thirty runs. These were the bowling figures of 2014’s highest ODI wicket-taker. Shami has by far been the most improved Indian bowler on display ever since India’s tour to Australia started in end-November last year. Throughout the game against South Africa, he consistently hit the 140-mark, and didn’t shy away to bounce the batsmen. It’s always fun to watch a bowler steaming in to bowl even in the final moments of the game. One such bowler is Mohammed Shami. Often in the shadow of his more illustrious bowling partners, Mohit Sharma has gone about doing his job of a third seamer perfectly well, second time in a row. Not only did he pick up two crucial wickets at the top of the order, he also effected a run-out that saw the back of the ever so dangerous AB de Villiers. With Bhuvneshwar still recovering from injury, looks like the Haryana pacer has found himself a permanent spot in the Indian lineup. Umesh Yadav started off the innings well, putting in some tidy overs with Mohammed Shami, but soon found himself to be at the receiving end of du Plessis and de Villiers’ counter attack. The most memorable moment involving Yadav today was the run out of David Miller that brought an end to any hope of a South Africa fightback. Hashim Amla carries with him a sense of calmness wherever he goes, and hence, it was obvious that people expected a lot out of him during South Africa’s tall chase. A pillar of South Africa’s recent ODI successes, Amla was edging and being beaten around the bat for quite some time early on in his innings. Maybe those were ominous signs of a dismissal to follow. While fielding at backward point, he dropped a catch of Shikhar Dhawan, well before the left-hander created the havoc that he did. In all, quite a forgettable day for the Protean monk. Quinton de Kock is perhaps South Africa’s go to man whenever they face India in ODIs. But today was not to be the same. Although the twenty-something did an impressive job behind the stumps, he was edgy and impatient right from the start of his innings. The shot which he played to get out too was reckless and deprived his team a much needed platform for the chase. All the while that du Plessis batted, not for once did it seem that the Proteas were going to be handed out as big a thrashing as they did eventually. MS Dhoni’s Chennai IPL teammate, du Plessis, hung around for more than an hour and a half enroute to his half-century. While he was brilliant in spurts, the magic wasn’t sustained as he fell cheaply to Mohit Sharma’s bowling. It was an innings of promise but not a great one, unlike the catch that he took to dismiss Kohli. The South African captaine executed two brilliant run outs on the field and stitched a 68 run partnership with his school mate, du Plessis. But all of that just wasn’t enough given India’s performances on the day. There was a phase in the match when South Africans in the crowd were hoping for a better contest, but all of that ended when de Villiers got run out thanks to a good throw from Mohit Sharma in the deep. Unlike his performance against Zimbabwe, David Miller failed to flatter against a stronger Indian bowling unit. His stay in the crease was exciting, but lasted only 45 minutes when clearly more was needed from him. 22 off 23, wasn’t going to win South Africa the match. One can’t blame Duminy for having to fill in for an injured Philander. But one can blame him for attempting a cute shot when all that he needed to do was build a partnership. He was South Africa’s last hope, and after his dismissal, everyone else around him fell like a pack of cards. Being your team’s fourth highest scorer doesn’t compensate for the poor bowling that you put in. A lesson that Wayne Parnell would’ve learnt at the end of the MCG game. He bowled all over the place, going for nearly ten an over. Dhawan, Rahane and Dhoni – all had a go at him with strike-rates ranging from the 120s to 300. Four wides and two no-balls speak volumes about his indiscipline on the given day. The real cause of South Africa's worries on Sunday, Philander's missing six overs caused a lot of headache to AB de Villiers. Add to that his zero contribution with the bat. Injury or no injury, it was a forgettable day for this fast-bowler. Imran Tahir was one of the better performers from South Africa with respectable match figures of 1/48 from his ten overs. The wicket that he took came at a crucial time, and broke a very dangerous looking partnership between Kohli and Dhawan. With the bat, he tried to hang around, but eventually managed only 8 runs. Morne Morkel was expensive, but eventually was responsible for India’s fizzle towards the end overs. His wickets of Dhoni and Raina ensured that South Africa were given a target of just above 300, and not 350. Although the world’s best fast bowler was taken to the cleaners by his IPL team-mate, all wasn’t lost as he bowled some superb overs in the death. Constantly hitting the blockhole and eventually extracting Rahane’s wicket were two of his brightest takeways from the game on Sunday.
english
<filename>Krytyka/kr186.json {"komentarz": "JA PO 30 LATACH ZA PO TEŻ BYŁEM ZWOLNIONY .NIE NALEŻAŁEM DO ŻADNEJ PARTII.ZATRUDNILI SWOJEGO KOLEGĘ.CZEŚĆ!", "nie": 1851, "tak": 1131}
json
New Delhi, Dec 15: While opposing the bail of E Abubacker, the former leader of the banned Popular Front of India on health grounds, the National Investigation Agency told a court that he is fine. Special public prosecutor, Akshai Malik told the court that they had filed a status report along with the report of the AIIMS. He is absolutely fine and under treatment. As and when wanted, he is taken to the hospital, Malik told a Bench of the Delhi High Court comprising Justices Siddharth Malik and Talwant Singh. Adit Pujari, counsel representing Abubacker requested time to obtain dierections on the NIA's status report. The court has listed the matter for hearing on December 19. "The counsel for the appellant prays for and is granted time to obtain instructions qua the further prosecution of the present appeal," the Bench ordered. Last month the court was told that Abubacker was suffering from cancer and Parkinson disease and was in great pain as a result of which he needed urgent medical attention. The court had then asked the NIA to file a status report in response to the plea for medical treatment. Abubacker was arrested by the National Investigation Agency following a massive crackdown on the PFI in September. He is currently in judicial custody. Last month the court had said that requisite medical treatment will be provided to the accused. The court made the observation while rejecting the plea that he be placed under house arrest. "We are not inclined to do that. AIIMS is a premier hospital in the country. If you are using this as a pretext for house arrest, we are not granting that. We are only concerned with his medical condition," the Bench had said. The court said that it would hear the appeal for medical treatment and the accused could approach the trial court for regular bail. The NIA had said that it was not against medical treatment to the accused and added that the investigation is still going on in the case. On September 28, the Union Government banned the PFI for a period of 5 years. In the two raids conducted in the run up to the ban, the NIA had arrested nearly 350 operatives of the PFI. Abubacker was one of them.
english
<gh_stars>1-10 from PreprocessData.all_class_files.StructuredValue import StructuredValue import global_data class ContactPoint(StructuredValue): def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialAction=None, sameAs=None, url=None, areaServed=None, availableLanguage=None, contactOption=None, contactType=None, email=None, faxNumber=None, hoursAvailable=None, productSupported=None, telephone=None): StructuredValue.__init__(self, additionalType, alternateName, description, disambiguatingDescription, identifier, image, mainEntityOfPage, name, potentialAction, sameAs, url) self.areaServed = areaServed self.availableLanguage = availableLanguage self.contactOption = contactOption self.contactType = contactType self.email = email self.faxNumber = faxNumber self.hoursAvailable = hoursAvailable self.productSupported = productSupported self.telephone = telephone def set_areaServed(self, areaServed): self.areaServed = areaServed def get_areaServed(self): return self.areaServed def set_availableLanguage(self, availableLanguage): self.availableLanguage = availableLanguage def get_availableLanguage(self): return self.availableLanguage def set_contactOption(self, contactOption): self.contactOption = contactOption def get_contactOption(self): return self.contactOption def set_contactType(self, contactType): self.contactType = contactType def get_contactType(self): return self.contactType def set_email(self, email): self.email = email def get_email(self): return self.email def set_faxNumber(self, faxNumber): self.faxNumber = faxNumber def get_faxNumber(self): return self.faxNumber def set_hoursAvailable(self, hoursAvailable): self.hoursAvailable = hoursAvailable def get_hoursAvailable(self): return self.hoursAvailable def set_productSupported(self, productSupported): self.productSupported = productSupported def get_productSupported(self): return self.productSupported def set_telephone(self, telephone): self.telephone = telephone def get_telephone(self): return self.telephone def __setattr__(self, key, value_list): if type(value_list).__name__ == "NoneType" or key == "node_id": self.__dict__[key] = value_list return for value in value_list: str_value = type(value).__name__ if str_value not in global_data.get_table()[key]: raise ValueError("非法类型!") self.__dict__[key] = value_list
python
<reponame>Cleste/LearnJava package ch6.Stack; /*Помимо очереди, в программах часто используется структура данных, которая называется стеком. Обращение к стеку осуществляется по принципу "первым пришел - последним обслужен". Стек можно сравнить со стопкой тарелок, стоящих на столе. Последней берется тарелка, поставленная на стол первой. Создайте класс Stack, реализующий стек для хранения символов. Используйте методы push ( ) и рор () для манипулирования содержимым стека. Пользователь класса Stack должен иметь возможность задавать размер стека при ero создании. Все члены класса Stack, кроме методов push () и рор (), должны быть объявлены как pri vate. (Подсказка: в качестве исходной заготовки можете воспользоваться классом Queue, изменив в нем лишь способ доступа к данным.)*/ //ex 9_10 /*Отвечая на вопрос 3 упражнения для самопроверки по материалу главы 6, вы создали класс Stack. Добавьте в него специальные исключения, реагирующие на попытку поместить элемент в переполненный стек и извлечь элемент из пустого стека.*/ public class StackDemo { public static void main(String[] args) { Stack stack1 = new Stack(2); try { stack1.push('A'); stack1.push('B'); stack1.push('C'); } catch (StackFullException exc) { System.out.println(exc); } try { stack1.showStack(); System.out.println(stack1.pop()); } catch (StackEmptyException exc) { System.out.println(exc); } } }
java
People really need to think about this as a sci-fi many worlds scenario. People really need to think about this as a sci-fi many worlds scenario. This is why heroic epics for a very long time but ESPECIALLY in the current era with Star Wars and the like encode their satisfying narrative resolutions with “fate,” and why some of us feel that “grim and gritty,” anyone-can-die stories reflect experience better. It’s not because everything sucks necessarily - when things are already bad enough, random chance contains the seeds of hope. See Inglorious Basterds (2009) for a literal elseworlds example of this that’s about as blunt as you can get. (It’s also why Terminator: Dark Fate isn’t in any way a betrayal of the hopeful ending of Terminator 2, because if there “no fate but what we make,” Sarah and John could have screwed up, and they did, making the Dark Fate.) Anyway, if there’s no mystical energy field guiding our destiny, what we have are the predictions of statistics, and more colloquially, of our own expectations and experiences - but the latter can be colored by trauma, so I personally like sticking to stats. Getting technical again for a moment, I was confused for a very long time about how “probability” could be a mathematic domain in the way that calculating, like, the number of oranges if you add 2+3 is, bc it seemed to imply time travel. I have an answer I want ppl to get. (And I want to be clear that this is the actual statistics-field answer, not me just going wild with metaphors or whatever) “Big data,” the thing I’m making into my career, is trying to predict as much as possible by incorporating as many factors into your model as possible. For instance, not to bang on a drum, but a 2019 big data predictor-man like Nate Silver probably had a complex model of the 2020 World Series which had a different and more “accurate” model of what the likelihood of the Chicago Cubs winning the World Series was. That stuff would most easily have been developed from correlating his analysis of politics with his analysis of baseball stats, because those are the two things he has information about existing in the past relevant to the Cubs’ performance. My guess is that Silver has done a lot of work determining the extent that politics impacts baseball, and that baseball impacts politics, too, because when you’re a data scientist you work with the data you have.
english
<filename>backend/nodejs/src/managers/index.js export { AuthManager } from './auth' export { SeriesManager } from './seriesManager' export { EpisodesManager } from './episodesManager'
javascript
French midfielder Zinedine Zidane says he will end his playing days at his Spanish club Real Madrid and is also considering when to quit the national side. "Today I am sure that I will end my career at Real Madrid," Zidane told the Spanish sports newspaper Marca in an interview on Friday. "It's the best thing I can do. It's unlikely that I'll play for another team and carry on for more years." Last month Zidane, 31, told France's Onze magazine that he was not certain if he would retire when his Real Madrid contract ended in 2005. "I'm also thinking about when I'm going to retire from the French team," Zidane told Marca. "We'll see what happens in Euro 2004. I'll take a decision after that competition." Zidane was named this month as FIFA's World Player of the Year, the third time he has won the award in six years.
english
<reponame>MufidJamaluddin/ComeToGarut<filename>app/src/main/java/id/ac/polban/jtk/cometogarut/mvp/model/Suggestion.java package id.ac.polban.jtk.cometogarut.mvp.model; /** * Class Suggestion sesuai dg struktur JSON * @author <NAME> */ public class Suggestion { private Integer place_id; private Integer id; private String name; private String email; private String description; public Integer getPlace_id() { return place_id; } public void setPlace_id(Integer place_id) { this.place_id = place_id; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }
java
The BJP is set to form a government in the State by bagging 99 seats in the two-phase Assembly polls. However, it has got a reduced majority, with the Congress managing to get 77 seats. This will be the sixth straight term for the BJP in the State. But the spirited campaign by Rahul Gandhi has not gone in vain. The elections have catapulted young leaders in the State — Jignesh Mevani, Alpesh Thakor and Hardik Patel — from social activism to politics. Over 2,000 candidates were in the fray for the 182 seats. Later, the Assembly will get one nominated member, making the total strength 183. An average 68. 41 per cent polling was recorded in the two-phase polls. All data are from the Election Commission of India. Updates: 99 and unbeaten - those are the final figures after several hours of counting in Gujarat. The incumbent BJP, one short of the 'psychological' century mark, retains Gujarat . They were ahead in the race for most part and the trends pointed to a victory. Yet, they were given a good fight by the Congress party, that finished with 77 seats. So how did Gujarat manage to fight off anti-incumbency and retain their bastion of Gujarat having been in power for 22 years? The most obvious answer is their frontman, Prime Minister Narendra Modi, but there was more to this than Modi. This piece should explain why Gujarat voted the way it did. The BJP Parliamentary board has decided that Arun Jaitley and Saroj Pandey will go as observers to Gujarat. Nirmala Sitharaman and Narendra Singh Tomar will go to Himachal Pradesh. 27,185 - That's the victory margin for Gujarat BJP president Jitu Vaghani over Congress' Dilipsinh Gohil in Bhavnagar West constituency. Meanwhile, Congress' Alpesh Thakor has claimed the Radhanpur seat with a margin of 14,857 votes. He defeated the BJP's Lavingji Muljiji Solanki. The same seat went to the BJP in 2012. Mr. Thakor, an OBC leader, is new to politics. He rose to prominence after the Patidar agitation led by 24 year old Hardik Patel demanding OBC status and quota benefits for the Patidar community in the State. Mr. Thakor launched a counter agitation under the OBC, ST, SC Ekta Manch to safeguard the interests of those communities which are entitled to quotas in education and government jobs. Gujarat Deputy CM Nitinbhai Patel wins his Mahesana assembly seat, defeating Jivabhai Ambalal Patel of the Congress by 7137 votes. Mr. Patel is also the cabinet minister for Health, Medical Education, Family Welfare, Road and Building, Capital Project. Candidates with criminal cases have by and large been rejected by the people in the Gujarat and Himachal Assembly elections. But one of the most significant wins by a first-timer has been the Bharatiya Tribal Party’s Mahesh Vasava, a candidate with the most number of criminal cases against him among all the others who filed nominations. Rahul Gandhi says he "accepts the verdict of the people" and thanks Congress workers for their efforts. In Godhra, Congress's Parmar Rajendrasinh Balvantsinh is leading over BJP's C. K. Raulji's by 167 votes. In Dangs, Congress has managed to hold on to its seat by 768 votes. Its incumbent Gangajibhai Gavit has won against BJP's Vijaybhai Patel. The two had sparred previously in the 2012 election where Mr. Gavit won by 2422 votes. In Dholka in Ahmedabad, BJP's Bhupendrasinh Manubha Chudasama won over Congress's Rathod Ashvinbhai Kamsubhai by a narrow margin of 327. This is a considerable low for the party which had won by 18,845 votes in 2012. The reverse happens too. In Kaprada in Valsad, Congress's Harjibhai Chaudhari won by a meagre 170 votes over his BJP competitor. Interestingly, Mr. Chaudhari had won by 18,685 when he contested from the same seat in 2012. Dalit leader Jignesh Mevani, who stood as an independent candidate with the support of Congress has won from Vadgam with a margin of 19,696 votes. The new Gujarat Assembly too is poised to have its share of legislators with past criminal records. Leading the pack is BTP leader Maheshbhai Vasava with 24 criminal cases pending against him. Congress's Kiritkumar Patel, who is leading in Patan has 12 such pending cases, while BJP’s Shailesbhai Kanaiyalal Mehta of Dabhoi has 11 cases. "BJP won with money power. " That was Patidar leader Hardik Patel's first reaction to the Gujarat poll results. The 24-year-old leader who had a pre-poll arrangement with Congress, claimed "In some Patidar-dominated areas where BJP won with thin margin, it’s because of EVMs. " Mr. Patel vowed to continue his agitation for securing reservation for economically backward Patidars. How are the ministers doing? Chief Minister Vijay Rupani won his Rajkot West seat, a seat formerly occupied by Narendra Modi, by a margin of over 25,000 votes. Nitinbhai Patel, the Deputy CM, and Finance and Urban Development Minister is leading in Mahesana, against Congress candidate Jivabhai Patel. Tourism and Tribal Welfare Minister Ganpat Vasava has won from Mangrol (ST) beating the Congress candidate by over 40,000 votes. Bhupendrasinh Chudasama of the BJP, and Revenue and Education Minister is leading in Dholka by a margin of just 300 votes. Water Supply Minister Babubhai Bokhiriya has won in Porbandar against Congress' Arjun Modhvadiya by a margin of 2,000 votes. Jayesh Radadiya, the Food and Civil Supplies Minister is leading in the Jetpur constituency, against Ravi Ambaliya of the Congress by a margin of over 25,000 votes. Agriculture Minister Chiman Saparaiya has lost his seat in Jamjaodhpur to the Congress' Chirag Kalariya. Atmaram Parmar, the Social Justice and Welfare Minister too lost his seat in Gadhada to Congress candidate Pravin Maru. Chhotubhai Vasava, the founder of Bharatiya Tribal Party has won from Jhagadia constituency with a whopping margin of 48,948 votes. Mr. Vasava represented Jhagadia in the 2012-2017 term too, but as a JD(U) candidate. Mr. Vasava's son, Mahesh Vasava, too won from Dediapada. The BTP has tied up with the Congress this time. Umreth — Another constituency where NOTA has played the spoilsport. The BJP's Govindbhai Parmer defeated his rival Congress candidate Kapilaben Chavada by 1,883 votes. The NOTA received 3710 votes here. In Talaja, however, NOTA has helped Congress. Kanubhai Baraiya won with the margin of 1,779 and NOTA got 2918 votes. Arjun Modhvadia, Sidhdharth Patel, Shaktisinh Gohil and Tushar Chaudhary — all veteran Congressmen have lost the elections. A total of 122 women contested in this elections. That roughly translates as 7% of all candidates. Of the 10 women candidates BJP fielded, 9 are leading — in Limbayat, Choryasi, Akota, Vadodara, Gandhidham, Gondal, Bhavnagar East, Kalol and Bhuj. Congress fielded 11 women candidates. Four of them leading in Vav, Unjha, Garbada and Rapar. Assuming all them win polls, that would still be lesser than 2012. The present Gujarat Assembly has 13 women candidates in all. Of the 32 constituencies in North Gujarat region, BJP is leading in 15 seats. Considered as a Congress stronghold, the party is leading in 17 seats including the one in Vadgam where it is silently supporting Dalit leader Jignesh Mewani. As of now, it looks like Congress has managed to chip into BJP's vote share in Radhanpur and Patan in Sabarkantha district and is leading in these seats which were won by BJP in the 2012 elections. Congress has also managed to maintain their majority in Aravalli district where it is leading in all the three constituencies as they had in 2012. It is also leading in Gandhinagar Uttar, Vav, Unjha, Becharaji and, by a narrow margin, in Deodar. Nationalist Congress Party (NCP) leader Praful Patel said the Congress would have “done better” in the Gujarat election if it had formed an alliance with his party. For Gujarat elections, the Congress was seen trying to stitch a coalition with the NCP against the ruling BJP. However, it could not fructify. Congress has retained Borsad and Dahad. Both constituencies have re-elected their incumbent MLAs Rajendersinh Parmar and Vajesinghbhai Panada respectively. Shaikh Gyasuddin Habibuddeen has also been re-elected from Dariapur. Junagadh has gone to Congress this time. Bhikhabhai Joshi has defeated sitting MLA Mahendrabhai Mashru. Modi or not, voters in Maninagar appear to prefer BJP. To nobody's surprise, BJP's Suresh Patel won from Maninagar with a margin of 75,199 votes. Mr. Patel defeated Congress's Shwetaben Brahmbhatt to retain the seat, which he took over from Prime Minister Modi. Mr. Modi had been a regular at Maninagar since 2002 till 2014 when he resigned following his elevation as the Prime Minister of the country. Vinubhai Desai gets another term to represent Nadiad, this time with a higher margin. In 2012, his victory margin was 6587, but in the current polls, he defeated Congress candidate Jitendra Patel by 20838 votes. In Dharampur, BJP's Arvind Patel has won by 22246 votes over Congress's Ishvarbhai Patel, who had won in 2012 by 15298 votes. In Umbergaon, BJP retained it's seat with a margin of 41690 votes. The incumbent Ramanlal Patkar defeated Congress's Ashokbhai Patel. Celebrations broke out at the Gujarat BJP headquarters ‘Kamalam’ in Gandhinagar as soon as the trends suggested that the ruling party was poised for a victory, reports PTI . “The Congress carried out negative politics and talked about caste. They said development has gone crazy, when in fact people in the opposition party had gone crazy. The people in Gujarat supported development over caste,” said a supporter of the ruling party. Congress MP Sushmita Dev on Gujarat polling trends: "I believe we have improved. Bottomline is narrative has changed. There was narrative Congress was not force to reckon with. That is not true anymore. We are formidable force to counter BJP. " Congress MP Raj Babbar says: "We fought elections on the real ground issues unlike BJP who brought in Pakistan and communalism to fore. No one can comment on Election Commission. But the EC should not behave like a political party claiming victory for EVM. " Of the 26 seats reserved for Scheduled Tribes in Gujarat, Congress is leading in 12 seats while BJP is leading in 11. Bharatiya Tribal Party, a Congress ally, is leading in two while Independent is leading in one. Most of the seats have been retained by the party that won it in the 2012 Assembly election. However, in certain constituencies such as Santrampur, Jetpur, Chhota Udaipur, Sankheda, Sankheda, Dediapada, Jhagadiya, Nizar and Dharampur, there has been an anti-incumbency trend. In Kaprada, where the Congress had won with a majority of over 18,000 votes in 2012, the current Congress candidate is holding on to the lead with a meagre 70 votes. In Mahudha, Congress's Indrajitsinh Parmar has won by a margin of 13,601 over BJP's Bharatsinh Raysingbhai Parmar. In 2012, Congress had won this seat with a similar margin. While the BJP is leading in 105 seats, Congress is leading in another 69. How are parties faring in reserved constituencies? During the election campaign Dalit leader Jignesh Mevani asserted that the BJP would not win even a single SC constituency. But voters thought otherwise. Early trends show that the BJP is leading in majority of the seats reserved for Scheduled Caste candidates. In seven of the 13 reserved constituencies, BJP is leading with a solid majority, though it needs to be noted that most of these constituencies, with the exception of a few like Kadi, have sitting BJP MLAs. Mr. Mevani, though is set to win from Vadgam. In Maninagar, from where Prime Minister Narendra Modi had won with a margin of 86,373 votes during the 2012 elections, BJP's Suresh Patel is leading over the Congress candidate by 70,678 votes. Maninagar has been a BJP bastion for over a decade — Mr. Modi had won from the seat consecutively thrice in 2002, 2007 and 2012 until he resigned from the seat after the 2014 Lok Sabha elections. The BJP has retained Porbandar, but with a lesser margin. Babubhai Bokhriya has won by a margin of 1,855 votes over his nearest rival Arjun Modhwadia of Congress. In 2012, Mr. Bokhiriya had won by a whopping margin of 17,146 votes. Incidentally, 3,433 votes were polled for NOTA in this constituency. As early trends from the Gujarat election appears, the rural-urban divide between the voters appear to be widening. Congress appears to be winning in the rural areas while BJP has the upper hand in the urban and semi-urban regions. For instance, BJP is leading in Ahmedabad, Surat, Vadodara and Rajkot while Congress is making gains in rural seats, especially in the Patidar-dominated Sourashtra region. Constituencies like Sanad, which the Congress had won in 2012 by good margins, have shifted to BJP in this election. While BJP is poised to win the State and Congress to claim solace in increasing its strength in the Assembly, the elections has one more winner — NOTA. The None of the Above option that enables a voter to say he/she doesn't wish to vote for any candidate contesting, has received over four lakh votes so far. The vote share of NOTA stands at 1. 9%, higher than that of parties such as BSP and NCP. In constituencies such as Somnath, Naranpura, Gandhidham, the NOTA registered more votes than some registered parties. An upbeat BJP says the poll trends in its favour indicated that Prime Minister Narendra Modi’s popularity was intact in his home State Gujarat and it was on its way to form government with a “comfortable majority“. “We have set a record in the history of the BJP by winning six consecutive polls: four assembly and two general elections, says BJP vice president Shyam Jaju. “Anti-incumbency is not working there. The prime minister’s popularity is intact. Amit Shah’s strategy has worked,” he added. 11. 20 a. m. It appears that that BJP crossed the magic 92 mark, needed to form the government. The party is leading in 101 seats. Congress is leading in 74, and the Bharatiya Tribal Party in 2 constituencies. The Bharatiya Tribal Party was floated by former JD(U) MLA Chhotubhai Vasava just days before the announcement of polls. The party has contested in 5 constituencies, after a seat-sharing deal with the Congress. Mr. Vasava supported Ahmed Patel in the Rajya Sabha elections much to the embarrassment of NDA ally, JD(U). He later quit the party after Sharad Yadav was expelled. Congress’ Alpesh Thakor is leading in Radhanpur seat against Lavingji Thakor of BJP. Senior Congress leader Shaktisinh Gohil is trailing against BJP’s Virendrasinh Jadeja from Mandvi seat. State BJP chief Jitu Vaghani is leading over Dilipsinh Gohil of Congress in Bhavnagar West. Danta, a constituency in north Gujarat, is seeing tough competition between the sitting Congress candidate Kharadi Kantibhai Kalabhai and the BJP candidate Kodarvi Maljibhai Narayanbhai — the former is leading by less than 300 votes. The 2017 Assembly elections in Gujarat is grabbing eyeballs for multiple reasons. Besides being a mark of BJP's popularity in PM Modi's home State, political analysts consider it to be indicative of the upcoming 2019 elections. We saw this during the 2014 Lok Sabha elections too. In 2014, BJP had used their now-famous slogan of "Sabka Vikas" (development for all) largely based on the so-called Gujarat model of development. Their success in the Gujarat Assembly election of 2012 too had played an important part in the parliamentary election that followed in less than two years. Early trends from Gujarat show that the Congress is gaining ground across the State and posing a closer fight than most exit polls predicted, especially in areas like Saurashtra and South Gujarat. According to early trends, Hardik Patel may have succeeded in breaching BJP's loyal Patidar votebank for the Congress to gain ground in Saurashtra region that has 54 seats. However, in the 24-year-old leader's hometown in Viramgam, the BJP candidate is leading by a few hundred votes. In Varacha Road seat of Surat, where the young Patidar leader had taken out a massive roadshow, BJP is leading by slim margin of 1000 votes. And the first result is out. Imran Khedawala of Congress won from Jamalpur-Khadia. He defeated rival Bhushan Ashok Bhatt who was seeking a re-election, by a margin of over 37,000 votes. The Patel-dominated Saurashtra region in Gujarat is said to be the ruling-BJP's weak link in the plan to win in 2017. The region had voted in the first phase of the election and will send 48 legislators to the 182-member assembly. The region has been through the rough sea in the past when BJP leader and former CM Keshubhai Patel split from the party and floated his own Gujarat Parivarthan party in 2012. With a mini-revolt brewing here against the BJP, the Congress had decided to focus on Saurashtra and Kutch, which together account for 54 of the 182 seats in the State Assembly. As of trends available from the ECI website, the BJP is leading in 96 seats and the Congress in 63. The Bhartiya Tribal Party is leading in 3 seats, the NCP 1 and independents 3. When asked about the outcome, former Rajasthan Chief Minister and Congress leader Ashok Gehlot said, "come what may, we have done an magnificent campaign under Rahul Gandhi. Modiji and Amitji couldn't reply even a single question raised by us. They didn't talk about development. . . They were just playing son-of-the-soil card, he said. Dalit leader Jignesh Kumar Natvarlal Mevani is leading by over 100 votes. He is contesting the Assembly polls as an independent candidate from the reserved Vadgam constituency in North Gujarat. The Congress is supporting him. A lawyer and activist, Mr. Mevani rose to fame during the Una protests in August 2016. Since then, he has emerged as the face of anti-Hindutva politics in Gujarat. Another independent candidate, Mavjibhai Chatrabhai Patel from Tharad, is leading over BJP's incumbent Parbatbhai Savabhai Patel. Patidar votes helped Congress? Upbeat over the initial leads, Congress spokesman Manish Doshi has said: "We are sure of winning Gujarat. " Congress has been out of power in the western State for over two decades. As per the initial trends, Patidar impact is huge in Gujarat. In Patidar pockets, like Morbi, Tankara, Mehsana, Dhoraji, Patan, Unjha Congress is leading. In the days leading to the election, Congress had wooed the Patidar party with promises of the much-contested special category quota to Patidars, stipend to unemployed youth, cheaper fuel and farm debt waiver in its manifesto. For over 22 years, the Patel community had faithfully voted for the BJP, even when Patel strongman and former State Chief Minister Keshubhai Patel rebelled against the party and floated his own party, the Gujarat Parivartan Party (GPP). Gujarat Chief Minister and BJP leader Vijay Rupani is trailing behind Congress candidate Indranil Rajyaguru from Rajkot West, as per the initial trends, according to news agency PTI. Rajyaguru secured 1,258 votes while Mr. Rupani got 491 votes after the end of first round of counting, as per election officials at the counting centre. Barely 10 minutes into the counting, the contest appears neck and neck. The BJP and Congress are leading in 17 constituencies each. Chief Minister Vijay Rupani and Deputy Chief Minister Nitin Patel, both are trailing, according to information coming from the counting centres, reports Mahesh Langa. Mr. Rupani is trailing by 900 votes. In Visavadar, where Keshubhai Patel of Gujarat Parivartan Party had won in 2012, Congress's Ribadiya is currently leading with a margin of 1,253 votes. In Palitana, Congress's incumbent Rathod Pravinbhai Jinabhai is trailing behind BJP's Baraiya Bhikhabhai Ravajibhai. In Dhaboi, Siddarth Chimanbhai Patel, son of former Chief Minister of Gujarat Chimanbhai Patel, is trailing by 1581 to BJP. The BJP is leading in six out of nine constituencies at the moment. According to initial trends, BJP is leading in Bhavnagar Rural, Nadiad, Bhavnagar East, Porbandar, Umbergaon and Umbergaon while Congress is leading in Mahudha, Mandvi and Talaja. In Talaja, where BJP's Shyal Bhartiben Dirubhai won in 2014, Congress's Kanubhai Mathurambhai Baraiya is currently leading with 1865 margin. Gujarat’s Deputy Chief Minister Nitin Patel is trailing in initial trend from Mehsana constituency, reports Mahesh Langa. Mehsana was the epicentre of the Patidar quota agitation. Congress has fielded veteran Jivabhai Patel here. Stock traders are keeping a close watch on Gujarat polls. Market is likely to soar with opening as BJP is comfortably ahead as per the initial trends, says Mahesh Langa. Congress is leading in Mandvi (Constituency No. 157), Chaudhari Anandbhai Mohanbhai leads by 2013 votes. In 2012, the Congress won the seat by a margin of 24,394 votes. Congress is leading in Nadiad too. The BJP has established a marginal lead in Porbandar and Bhavnagar East. Parties have arranged mobile television booths in several prominent roads. Gujarati channels are reporting BJP is leading in 69, while Congress in 45. But Election Commission is yet to officially announce the trends. On the day of counting, Chief Election Commissioner A. K. Joti has reiterated that the electronic voting machines are safe and cannot be tampered with. In an interview to news gency ANI, Mr Joti said, the voters could check if their votes went to the candidate of their choice since the VVPAT was in place. The voters had no complaints, he claimed. Counting of votes have begun at 37 locations across 33 districts. Postal ballots will be counted first, followed by Electronic Voting Machine. The VVPAT or voter verified paper audit trial is used this time. The Supreme Court rejected an “11th hour” plea by Secretary, Gujarat Pradesh Congress, to direct the Election Commission of India to count and cross-verify at least 25% of Voter Verified Paper Audit Trail (VVPAT) paper trail with the Electronic Voting Machines (EVM) votes polled in the State Assembly elections. A three-judge Bench of Chief Justice Dipak Misra, Justices A. M. Khanwilkar and D. Y. Chandrachud refused to entertain the plea, saying that the judiciary cannot question the discretion of the Election Commission (EC) to restrict the exercise to just one random booth per constituency. “How can the court substitute the discretion of the Election Commission? And why have you put the margin at 25%? Why not 5% or 10% or even 30%? We cannot encroach into the Election Commission’s authority,” Justice Chandrachud orally observed. Rajkot West: BJP's Vijay Rupani vs. Congress's Indranil Rajyaguru. Mr. Rupani is the current chief minister of Gujarat, while Mr. Rajyaguru is the second richest candidate. Backed by the Congress, Dalit leader Jignesh Mevani is contesting as an independent candidate. Mr. Chakravarti is a known local face who joined BJP two years back. Mehsana was the epicentre of the Patidar quota agitation. It's a no brainer why both the BJP and Congress have fielded Patel candidates. While BJP's Nitin Patel is the current Deputy Chief Minister, Congress has fielded a sitting parliamentarian and a party veteran. Mr. Vaghani is the Gujart BJP president, while Mr. Gohil is a former Congress MLA. Mr. Bokhiria is the Water Resources Minister and Mr. Modhwadia, a former GPCC president. They are fighting for the Porbandar seat once again. Re-polling was held at six polling booths in four Assembly constituencies, following an Election Commission directive. The polling was held at two booths each in Vadgam and Savli constituencies and one each in Viramgam and Daskroi. While the Chhaniyana 1 and 2 booths of the Vadgam seat clocked a 74% and 73% turnout, respectively, booth number 27 in Viramgam recorded 83%, Chief Electoral Officer B. B. Swain said. Dalit leader Jignesh Mevani is contesting from the Vadgam (SC) seat as an Independent candidate supported by the Congress. The Nava Naroda booth of the Daskroi seat registered a 73% turnout, while the Nhara and Sankrada booths in the Savli constituency registered 71% and 75% respectively. The poll panel, however, did not specify the reason for the fresh polling at these six booths. Last night, the Election Commission withdrew the show-cause notice to newly elected Congress president Rahul Gandhi in connection with his interviews to TV channels ahead of the second phase of the Gujarat Assembly elections on December 14. “Counting of votes will be held at 37 locations across 33 districts in the State under elaborate security arrangements,” Gujarat Chief Electoral Officer B. B. Swain has said. Following the exit poll results which predicted a majority for the BJP, several leaders in Gujarat from the Congress, Patidar leader Hardik Patel and Dalit leader Jignesh Mevani, raised the issue EVMs being hacked. Posting on Twitter, Mr. Patel on December 17 said, “If a human body, made by God, could be tampered with, then why not an EVM, which is made by humans? ” He also alleged that there had been attempts to hack EVMs using its “source code” in the Patidar-dominated and tribal areas of the State.
english
<filename>astromine-technologies/src/main/resources/assets/astromine/models/item/rocket.json<gh_stars>100-1000 { "parent": "minecraft:item/generated", "textures": { "layer0": "astromine:item/rocket" } }
json
from enum import Enum class ConnectionType(Enum): PASSWORD = 1 class Connection: def __init__(self, address: str, user: str = None, password: str = None, type: ConnectionType = ConnectionType.PASSWORD): self.type = type self.password = password self.user = user self.address = address def __repr__(self): return str(self.__class__) + ": " + str(self.__dict__)
python
<reponame>FayazRahman/EliteHyperOps import numpy as np from model import TrafficFlowModel import data as dt # Initialize the model by data mod = TrafficFlowModel( dt.graph, dt.origins, dt.destinations, dt.demand, dt.free_time, dt.capacity ) # lp_matrix = mod._network.LP_matrix() # link_info_matrix = np.concatenate( # [mod._link_capacity[:, np.newaxis], mod._link_free_time[:, np.newaxis]], axis=1 # ) # demands = mod._demand # n_nodes = len(dt.graph) # od_demand_matrix = np.zeros((n_nodes, n_nodes)) # idx = 0 # for i, j in mod._network.OD_pairs(): # od_demand_matrix[int(i) - 1, int(j) - 1] = demands[idx] # idx += 1 # print(lp_matrix) # print(link_info_matrix) # print(od_demand_matrix) # print(lp_matrix.shape) # print(link_info_matrix.shape) # print(od_demand_matrix.shape) # Change the accuracy of solution if necessary mod._conv_accuracy = 1e-6 # Display all the numerical details of # each variable during the iteritions # mod.disp_detail() # Set the precision of display, which influences # only the digit of numerical component in arrays mod.set_disp_precision(4) # Solve the model by Frank-Wolfe Algorithm mod.solve() # Generate report to console mod.report() # Return the solution if necessary link_flow, link_time, path_time, link_vc = mod._formatted_solution() np.savetxt("linkflowfile", link_flow, fmt='%.18e', delimiter=' ', newline='\n', header='', footer='', comments='# ', encoding=None) np.savetxt("linktimefile", link_time, fmt='%.18e', delimiter=' ', newline='\n', header='', footer='', comments='# ', encoding=None) np.savetxt("pathtimefile", path_time, fmt='%.18e', delimiter=' ', newline='\n', header='', footer='', comments='# ', encoding=None) #print(path_time)
python
/*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ export type ModelMethods = 'peek' | 'get' | 'post' | 'add' | 'upd' | 'del'; export type SocketEvent<T = unknown> = (() => Dictionary<T>) | { type: string; instance: string; data: Dictionary<T>; }; export interface ProviderParams { listenAllEvents?: boolean; }
typescript
Garbine Muguruza on Wednesday took questions about being the "next big thing" in her stride — and pledged not to follow the example of the out-of-sorts Eugenie Bouchard. The Venezuelan-born Spaniard stands 6ft 1in (1.85m) tall and her reputation is growing ever higher after two impressive wins at the WTA Finals in Singapore. After beating Angelique Kerber 6-4, 6-4, Muguruza said she wouldn't fall into the trap of Sloane Stephens or Bouchard, who were both hotly tipped but have since fallen away. "It's an example of something that can happen, obviously. I think it's hard to manage a lot of things," Muguruza said, when asked about Stephens and Bouchard. "I saw an example in Genie. It's not a good example. But hopefully I can manage better these kind of situations and avoid a little bit (letting) my spirit down, kind of. So I'll just try not to let this happen to me." Muguruza rose to world number three this week on the back of reaching two straight finals in China, capped by her claiming a second career title in Beijing. This year's Wimbledon finalist, 22, is thriving under the guidance of France's Sam Sumyk, the former coach of Vera Zvonareva, Victoria Azarenka — and Bouchard. Canada's Bouchard, known as Genie, was tennis's golden girl after reaching last year's Wimbledon final and breaking into the top 10. But the 21-year-old is now back down to 48th after a chastening 2015, the lowlight of which was suffering concussion in a locker-room fall at the US Open. Muguruza, who baldly states she wants to reach world number one and stay there, said she was already used to questions about whether she could be tennis's next dominant force. "Well, every time they ask me I'm like, 'Okay, I don't know. Yes, I want to be. Let's see if it happens,'" she said. "I don't think there is an answer for that. "I mean, it's good that people sees in me like a future top player. Well, it's nice to hear that, but obviously that's what I'm trying to do."
english
A member of the infamous "Ripper Crew," convicted in the murder of a woman in the 1980's and who was released from prison on Friday has listed his address at an Aurora halfway house. Fifty-eight-year-old Thomas Kokoraleis notified Aurora Police on Sunday of his residence at Wayside Cross Ministries on E. New York St. in Aurora, according to police officials. According to their website, Wayside Cross' "New Life Corrections Prison Ministry provides the transforming Word of God, spiritual mentorship, teaches men to become better fathers, and offers a new pathway of redemption after jail." Kokoraleis was one of four-members of the Ripper Crew, said to be a sadistic, cult group who are alleged to have killed as many as 17 women and man in the 1980's with many of the victims sexually mutilated. Kokoraleis was released from the Illinois Department of Corrections on Friday after serving half of his 70-year sentence for the 1982 murder of 21 year-old Lorraine "Lorry" Ann Borowski of Elmhurst. Borowski was abducted near her work, was raped and was later killed with Kokoraleis, along with other members of the Ripper Crew, convicted of killing her. He was originally given a life sentence but in the late 1980's appealed his conviction and was re-sentenced to a shorter term in a second trial. We need to keep our community safe. We need to be aware and stand up for OUR rights to live and bring up our children in an environment where we can walk in our beautiful downtown without having to look over our shoulder. Sci Tech Museum, restaurants, Paramount, the river walk, so many places we want to enjoy. Just when we are starting to BUILD UP our city, this happens. If you agree, please sign this petition. If you believe, OUR right to safety is important, sign this petition. If you are afraid for your families safety, sign this petition. He needs to find another community to live his life.
english
Toronto: The Toronto film festival opened with action movie Looper starring Joseph Gordon-Levitt, but it was Twilight star Kristen Stewart who attracted the biggest buzz on the red carpet at the star-studded festival scattered with Oscar hopefuls. Anticipation was high for one of the world's premier film festivals that coming off Venice helps mark the beginning of Hollywood's awards season. Filmmakers see it as crucial launching pad and Toronto has previously propelled such films as The King's Speech to go on to success at the Academy Awards. Ben Affleck, Selena Gomez, Halle Berry, Tom Hanks and rapper-turned reggae wannabe Snoop Dogg, now known as Snoop Lion, are all among a lineup of top stars due to appear. But it was Kristen Stewart who wowed the red carpet, signing autographs to streams of cheering fans in her first media appearance since issuing an unusual public apology for cheating on long-term boyfriend and Twilight co-star Robert Pattinson with British film director Rupert Sanders. Without directly referring to the scandal, Stewart, 22, told Reuters she was thankful "to know that everyone is here" and the support she described as "amazing" before she walked into the premiere of On The Road based on Jack Kerouac's seminal book of the postwar Beat Generation. At a nearby theatre, Looper, a futuristic action blockbuster featuring Gordon Levitt and Bruce Willis about an assassin haunted by his time-traveling future self, officially kicked off the 11-day festival that will screen more than 280 films. It was the first US-China co-production to open the festival, but is not one of the films being keenly watched by Oscar observers. It was chosen as the opening film due to its perceived broad entertainment appeal in a slot once mostly reserved for Canadian productions or filmmakers. Director Rian Johnson told reporters that following China's input into the production, a Paris location was switched to Shanghai and that even a joke was later inserted into the script - when Gordon-Levitt's character dreams of France he is warned by his future self of China's influence: "I'm from the future; you should go to China. " In a sign of Hollywood's possible future, the festival's co-director Cameron Bailey backed that up speaking to a packed premiere audience about China's part in the movie, "It's not that common yet but this is the future of filmmaking. " Johnson and the film's stars said they believed the film had more emotional appeal than pure blockbuster entertainment value. Asked about the violence in Looper and the wider movie world coming off the Colorado movie house massacre where during a screening of The Dark Knight Rises in July a gunman killed 12 people, Willis defended violence in the movies as a part of their integral, emotional pull. "Violence is one of the hard, bad things that exist in the world. It's not just in films; it exists anywhere," he told reporters. "And to pick one thing out and say 'Well, you shouldn't have violence in films or you shouldn't make violence a part of a film, would be like taking the emotion out of it. " The movie's themes also prompted questions for the two stars about time travel and what they might change in the past. Gordon-Levitt said he would like to see the future - "I consider myself an optimist" - while Willis reflected: "I would remind myself every couple of minutes not to take myself seriously. " By the weekend, the festival will quickly turn toward some of the more anticipated films already gaining Oscar buzz, including Ben Affleck's Argo, based on the story of how the CIA smuggled six Americans under the cover of a Hollywood production during the 1979 Iran hostage crisis. Also competing for critics and audience attention will be Paul Thomas Anderson's The Master, David O. Russell's Silver Linings Playbook and Cloud Atlas, an adaptation of the best-selling novel directed by Tom Tykwer and Matrix co-directors Andy and Lana Wachowski and starring Tom Hanks and Halle Berry. Optimism by sellers and buyers added to the festival's excitement, with its reputation as a hot marketplace for its ability to grab media attention and attract quality productions. Summing up why Toronto has quickly risen from its launch in 1976 to become one of the world's most desirable film destinations, Gordon-Levitt noted its reputation for low-key serious moviegoers. "This is a festival that is full of cinephiles," he said. "It doesn't have the air of glitz and glamour and I really like that about it. It's more about the films. "(This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters)
english
The New York Jets signed defensive end Carl Lawson during free agency this offseason as a much-needed upgrade to their defense. Lawson and the Jets agreed to a three-year deal worth $45 million. The Jets, who now have a defensive-minded coach in Robert Saleh, were looking for an explosive edge rusher who could make an immediate impact. The Jets have already seen an improvement with the addition of Lawson. His teammates, including offensive lineman Mekhi Becton, have said that playing opposite Lawson has made them better. That brief momentum came to a grinding halt this week. On Thursday morning during training camp practice, Lawson suffered a lower leg injury and was carted off the practice field. The Jets are awaiting MRI results on his leg, specifically his Achilles, before making a formal announcement of his injury. If Lawson misses a significant amount of time, the Jets defense and the team as a whole could be in trouble. In 2020, Lawson was one of the better edge rushers in the NFL. He had 64 pressures and 24 QB hits. In the AFC East, having a valuable edge rusher of Lawson's caliber is a precious card to hold. With the possibility of the Jets losing Lawson for an extended period of time, the defense could take a significant hit. With Mekhi Becton telling the media that Carl Lawson has made him better, it has made an impact on the squad. Becton said that going up against Lawson every day in practice helped him get better, and that he realized it after the Jets' first preseason game against the New York Giants. Lawson's leadership, not only on the Jets defense but also his leadership for the team as a whole during practice, is what a young team like the Jets needs. With Lawson potentially missing practice throughout the 2021 season, the Jets will lose a true leader on the field. Defensive end Carl Lawson has a very high football IQ. He jumped right into the New York Jets' 4-3 defensive scheme and it didn't take him long to want to attack the offense, even if it was his own teammates. Lawson's ability to make plays and his decision-making skills as an edge rusher are some of the reasons the New York Jets signed Lawson to such a lucrative deal.
english
<reponame>ptrick/hdfs-hive-sql-playground version https://git-lfs.github.com/spec/v1 oid sha256:18d7959fd196524da3c67a7f00a062bf0bfd62d75c9d67dfadd9c4071271d2af size 60467
html
An elephant found dead in Jhapa being buried. (File photo) JHAPA: An elephant was found dead at Panchpokhari Community Forest of Buddhashanti Rural Municipality-5 in Jhapa district on Friday. The locals had informed the District Forest Office after they spotted the pachyderm dead in the afternoon. According to the District Forest Office (DFO), Jhapa’s Chief Bishnulal Ghimire, a team including veterinary doctor was sent to the incident site to bury the dead elephant. Earlier, the veterinary doctors had tranquillized and treated an elephant which had gone blind in the district. The elephant had sustained injuries in its body inflicted by the locals while it entered the human settlement. The team would also forward investigation to know the cause of the elephant’s death, according to the DFO, Jhapa.
english
import classNames from 'classnames'; function scope1() { function scope2() { return classNames('foo', 'bar'); } return scope2(); } scope1();
javascript
<reponame>focus-zhaos/UringForStratoVirt<filename>device_model/src/cpu/mod.rs // Copyright (c) 2020 Huawei Technologies Co.,Ltd. All rights reserved. // // StratoVirt is licensed under Mulan PSL v2. // You can use this software according to the terms and conditions of the Mulan // PSL v2. // You may obtain a copy of Mulan PSL v2 at: // http://license.coscl.org.cn/MulanPSL2 // THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO // NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. // See the Mulan PSL v2 for more details. //! # Cpu //! //! This mod is to initialize vcpus to assigned state and drive them to run. //! //! ## Design //! //! This module offers support for: //! 1. Create vcpu. //! 2. According configuration, initialize vcpu registers and run. //! 3. Handle vcpu VmIn/VmOut events. //! 4. Handle vcpu lifecycle. //! //! ## Platform Support //! //! - `x86_64` //! - `aarch64` #[cfg(target_arch = "aarch64")] mod aarch64; #[cfg(target_arch = "x86_64")] mod x86_64; use std::cell::RefCell; use std::sync::{Arc, Barrier, Condvar, Mutex}; use std::thread; use std::time::Duration; use kvm_ioctls::{VcpuExit, VcpuFd}; use libc::{c_int, c_void, siginfo_t}; use vmm_sys_util::signal::{register_signal_handler, Killable}; #[cfg(feature = "qmp")] use machine_manager::{qmp::qmp_schema as schema, qmp::QmpChannel}; use self::errors::{ErrorKind, Result}; #[cfg(target_arch = "aarch64")] pub use aarch64::errors as ArchCPUError; #[cfg(target_arch = "aarch64")] pub use aarch64::AArch64CPUBootConfig as CPUBootConfig; #[cfg(target_arch = "aarch64")] pub use aarch64::CPUAArch64 as ArchCPU; use machine_manager::machine::MachineInterface; #[cfg(target_arch = "x86_64")] pub use x86_64::errors as ArchCPUError; #[cfg(target_arch = "x86_64")] pub use x86_64::X86CPUBootConfig as CPUBootConfig; #[cfg(target_arch = "x86_64")] pub use x86_64::X86CPU as ArchCPU; pub mod errors { error_chain! { links { ArchCpu(super::ArchCPUError::Error, super::ArchCPUError::ErrorKind); } foreign_links { Signal(vmm_sys_util::errno::Error); } errors { CreateVcpu(err_info: String) { description("Create kvm vcpu error!") display("Failed to create kvm vcpu: {}!", err_info) } RealizeVcpu(err_info: String) { description("Configure vcpu error!") display("Failed to configure kvm vcpu: {}!", err_info) } StartVcpu(err_info: String) { description("Start vcpu error!") display("Failed to starting kvm vcpu: {}!", err_info) } StopVcpu(err_info: String) { description("Stop vcpu error!") display("Failed to stopping kvm vcpu: {}!", err_info) } DestroyVcpu(err_info: String) { description("Destroy vcpu error!") display("Failed to destroy kvm vcpu: {}!", err_info) } } } } // SIGRTMIN = 34 (GNU, in MUSL is 35) and SIGRTMAX = 64 in linux, VCPU signal // number should be assigned to SIGRTMIN + n, (n = 0...30). #[cfg(not(target_env = "musl"))] const VCPU_EXIT_SIGNAL: i32 = 34; #[cfg(target_env = "musl")] const VCPU_EXIT_SIGNAL: i32 = 35; #[cfg(not(target_env = "musl"))] const VCPU_PAUSE_SIGNAL: i32 = 35; #[cfg(target_env = "musl")] const VCPU_PAUSE_SIGNAL: i32 = 36; #[cfg(not(target_env = "musl"))] const VCPU_TASK_SIGNAL: i32 = 36; #[cfg(target_env = "musl")] const VCPU_TASK_SIGNAL: i32 = 37; const UNINITIALIZED_VCPU_ID: u32 = 9999; /// State for `CPU` lifecycle. #[derive(Copy, Clone, Debug, PartialEq)] pub enum CpuLifecycleState { /// `CPU` structure is only be initialized, but nothing set. Nothing = 0, /// `CPU` structure's property is set with configuration. Created = 1, /// `CPU` start to be running. Running = 2, /// `CPU` thread is sleeping. Paused = 3, /// `CPU` structure is going to destroy. Stopping = 4, /// `CPU` structure destroyed, will be dropped soon. Stopped = 5, } // Record vcpu information struct ThreadVcpu { dirty_stamps: u64, vcpu_id: u32, } thread_local! { static LOCAL_THREAD_VCPU: RefCell<ThreadVcpu> = RefCell::new( ThreadVcpu { dirty_stamps: 0, vcpu_id: UNINITIALIZED_VCPU_ID, } ) } fn init_local_thread_vcpu(vcpu_id: u8) { LOCAL_THREAD_VCPU.with(|thread_vcpu| { let mut vcpu_signal = thread_vcpu.borrow_mut(); vcpu_signal.vcpu_id = u32::from(vcpu_id); vcpu_signal.dirty_stamps = 0; }) } /// Trait to handle `CPU` lifetime. pub trait CPUInterface { /// Realize `CPU` structure, set registers value for `CPU`. fn realize(&self, boot: &CPUBootConfig) -> Result<()>; /// /// # Arguments /// /// * `cpu` - The cpu instance shared in thread. /// * `thread_barrier` - The cpu thread barrier. /// * `paused` - After started, paused vcpu or not. /// * `use seccomp` - Use seccomp in vcpu thread. fn start( cpu: Arc<Self>, thread_barrier: Arc<Barrier>, paused: bool, use_seccomp: bool, ) -> Result<()> where Self: std::marker::Sized; /// Make `CPU` lifecycle from `Running` to `Paused`. fn pause(&self) -> Result<()>; /// Make `CPU` lifecycle from `Paused` to `Running`. fn resume(&self) -> Result<()>; /// Make `CPU` lifecycle to `Stopping`, then `Stopped`. fn destroy(&self) -> Result<()>; /// Reset registers value for `CPU`. fn reset(&self) -> Result<()>; /// Handle vcpu event from `kvm`. fn kvm_vcpu_exec(&self) -> Result<bool>; } /// Trait to handle `CPU` running statement. pub trait CPUWorker { const SYNC_READ_CPU_STATE: u64 = 1; const SYNC_WRITE_CPU_STATE: u64 = 2; /// Handle `notify` change in vcpu thread. fn handle_workqueue(&self); /// Check vcpu thread is `paused` or `running`. fn ready_for_running(&self) -> bool; } /// `CPU` is a wrapper around creating and using a kvm-based VCPU. pub struct CPU { /// ID of this virtual CPU, `0` means this cpu is primary `CPU`. id: u8, /// The file descriptor of this kvm-based VCPU. fd: Arc<VcpuFd>, /// Architecture special CPU property. arch_cpu: Arc<Mutex<ArchCPU>>, /// LifeCycle state of kvm-based VCPU. state: Arc<(Mutex<CpuLifecycleState>, Condvar)>, /// Works need to handled by this VCPU. work_queue: Arc<(Mutex<u64>, Condvar)>, /// The thread handler of this virtual CPU. task: Arc<Mutex<Option<thread::JoinHandle<()>>>>, /// The thread tid of this VCPU. tid: Arc<Mutex<Option<u64>>>, /// The VM combined by this VCPU. vm: Arc<Box<Arc<dyn MachineInterface + Send + Sync>>>, } impl CPU { /// Allocates a new `CPU` for `vm` /// /// # Arguments /// /// * `vcpu_fd` - The file descriptor of this `CPU`. /// * `id` - ID of this `CPU`. /// * `arch_cpu` - Architecture special `CPU` property. /// * `vm` - The virtual machine this `CPU` gets attached to. pub fn new( vcpu_fd: Arc<VcpuFd>, id: u8, arch_cpu: Arc<Mutex<ArchCPU>>, vm: Arc<Box<Arc<dyn MachineInterface + Send + Sync>>>, ) -> Result<Self> { Ok(CPU { id, fd: vcpu_fd, arch_cpu, state: Arc::new((Mutex::new(CpuLifecycleState::Created), Condvar::new())), work_queue: Arc::new((Mutex::new(0), Condvar::new())), task: Arc::new(Mutex::new(None)), tid: Arc::new(Mutex::new(None)), vm, }) } /// Get this `CPU`'s ID. pub fn id(&self) -> u8 { self.id } /// Get this `CPU`'s file descriptor. #[cfg(target_arch = "aarch64")] pub fn fd(&self) -> &Arc<VcpuFd> { &self.fd } /// Get this `CPU`'s architecture-special property. #[cfg(target_arch = "aarch64")] pub fn arch(&self) -> &Arc<Mutex<ArchCPU>> { &self.arch_cpu } /// Set task the `CPU` to handle. pub fn set_task(&self, task: Option<thread::JoinHandle<()>>) { let mut data = self.task.lock().unwrap(); (*data).take().map(thread::JoinHandle::join); *data = task; } /// Get this `CPU`'s thread id. pub fn tid(&self) -> u64 { match *self.tid.lock().unwrap() { Some(tid) => tid, None => 0, } } /// Set thread id for `CPU`. pub fn set_tid(&self) { *self.tid.lock().unwrap() = Some(util::unix::gettid()); } /// Init signal for `CPU` event. fn init_signals() -> Result<()> { extern "C" fn handle_signal(signum: c_int, _: *mut siginfo_t, _: *mut c_void) { match signum { VCPU_EXIT_SIGNAL => LOCAL_THREAD_VCPU.with(|thread_vcpu| { let mut vcpu_signal = thread_vcpu.borrow_mut(); vcpu_signal.dirty_stamps = VCPU_EXIT_SIGNAL as u64; }), VCPU_PAUSE_SIGNAL => LOCAL_THREAD_VCPU.with(|thread_vcpu| { let mut vcpu_signal = thread_vcpu.borrow_mut(); vcpu_signal.dirty_stamps = VCPU_PAUSE_SIGNAL as u64; }), _ => {} } } register_signal_handler(VCPU_EXIT_SIGNAL, handle_signal)?; register_signal_handler(VCPU_PAUSE_SIGNAL, handle_signal)?; register_signal_handler(VCPU_TASK_SIGNAL, handle_signal)?; Ok(()) } } impl CPUInterface for CPU { fn realize(&self, boot: &CPUBootConfig) -> Result<()> { let (cpu_state, _) = &*self.state; if *cpu_state.lock().unwrap() != CpuLifecycleState::Created { return Err( ErrorKind::RealizeVcpu(format!("VCPU{} may has realized.", self.id())).into(), ); } self.arch_cpu.lock().unwrap().realize(&self.fd, boot)?; Ok(()) } fn resume(&self) -> Result<()> { let (cpu_state_locked, cvar) = &*self.state; let mut cpu_state = cpu_state_locked.lock().unwrap(); if *cpu_state == CpuLifecycleState::Running { warn!("vcpu{} in running state, no need to resume", self.id()); return Ok(()); } *cpu_state = CpuLifecycleState::Running; drop(cpu_state); cvar.notify_one(); Ok(()) } fn start( cpu: Arc<CPU>, thread_barrier: Arc<Barrier>, paused: bool, use_seccomp: bool, ) -> Result<()> { let (cpu_state, _) = &*cpu.state; if *cpu_state.lock().unwrap() == CpuLifecycleState::Running { return Err(ErrorKind::StartVcpu("Cpu is already running".to_string()).into()); } if paused { *cpu_state.lock().unwrap() = CpuLifecycleState::Paused; } else { *cpu_state.lock().unwrap() = CpuLifecycleState::Running; } let local_cpu = cpu.clone(); let handle = thread::Builder::new() .name(format!("CPU {}/KVM", cpu.id)) .spawn(move || { init_local_thread_vcpu(cpu.id); if let Err(e) = CPU::init_signals() { error!("Failed to init cpu{} signal:{}", cpu.id, e); } cpu.set_tid(); // The vcpu thread is going to run, // reset its running environment. cpu.reset().unwrap(); // Wait for all vcpu to complete the running // environment initialization. thread_barrier.wait(); info!("vcpu{} start running", cpu.id); if use_seccomp { if let Err(e) = crate::micro_vm::micro_syscall::register_seccomp() { error!("Failed to register seccomp in cpu{} thread:{}", cpu.id, e); } } loop { if !cpu.ready_for_running() { break; } if !cpu.kvm_vcpu_exec().unwrap() { break; } } // The vcpu thread is about to exit, marking the state // of the CPU state as Stopped. let (cpu_state, cvar) = &*cpu.state; *cpu_state.lock().unwrap() = CpuLifecycleState::Stopped; cvar.notify_one(); }) .unwrap(); local_cpu.set_task(Some(handle)); Ok(()) } fn reset(&self) -> Result<()> { self.arch_cpu.lock().unwrap().reset_vcpu(&self.fd)?; Ok(()) } fn pause(&self) -> Result<()> { let task = self.task.lock().unwrap(); let (cpu_state, cvar) = &*self.state; if *cpu_state.lock().unwrap() == CpuLifecycleState::Running { *cpu_state.lock().unwrap() = CpuLifecycleState::Paused; cvar.notify_one() } match &(*task) { Some(thread) => match thread.kill(VCPU_PAUSE_SIGNAL) { Ok(_) => Ok(()), Err(e) => Err(ErrorKind::StopVcpu(format!("{}", e)).into()), }, None => { warn!("VCPU thread not started, no need to stop"); Ok(()) } } } fn destroy(&self) -> Result<()> { let task = self.task.lock().unwrap(); let (cpu_state, cvar) = &*self.state; if *cpu_state.lock().unwrap() == CpuLifecycleState::Running { *cpu_state.lock().unwrap() = CpuLifecycleState::Stopping; } else { *cpu_state.lock().unwrap() = CpuLifecycleState::Stopped; } self.fd.set_kvm_immediate_exit(0); match &(*task) { Some(thread) => match thread.kill(VCPU_EXIT_SIGNAL) { Ok(_) => {} Err(e) => { error!( "killing VCPU{} thread({}) failed: {}", self.id(), self.tid(), e ); } }, None => {} } let mut cpu_state = cpu_state.lock().unwrap(); cvar.notify_all(); cpu_state = cvar .wait_timeout(cpu_state, Duration::from_millis(16)) .unwrap() .0; if *cpu_state == CpuLifecycleState::Stopped { *cpu_state = CpuLifecycleState::Nothing; Ok(()) } else { Err(ErrorKind::DestroyVcpu(format!("VCPU still in {:?} state", *cpu_state)).into()) } } fn kvm_vcpu_exec(&self) -> Result<bool> { match self.fd.run() { Ok(run) => match run { #[cfg(target_arch = "x86_64")] VcpuExit::IoIn(addr, data) => { self.vm.pio_in(u64::from(addr), data); } #[cfg(target_arch = "x86_64")] VcpuExit::IoOut(addr, data) => { self.vm.pio_out(u64::from(addr), data); } VcpuExit::MmioRead(addr, data) => { self.vm.mmio_read(addr, data); } VcpuExit::MmioWrite(addr, data) => { self.vm.mmio_write(addr, data); } #[cfg(target_arch = "x86_64")] VcpuExit::Hlt => { info!("Vcpu{} Received KVM_EXIT_HLT signal", self.id()); panic!("Hlt vpu {}", self.id()); } VcpuExit::Shutdown | VcpuExit::SystemEvent => { info!("Vcpu{} Received an KVM_EXIT_SHUTDOWN signal", self.id()); let (cpu_state, _) = &*self.state; *cpu_state.lock().unwrap() = CpuLifecycleState::Stopped; self.vm.destroy(); #[cfg(feature = "qmp")] { let shutdown_msg = schema::SHUTDOWN { guest: true, reason: "guest-shutdown".to_string(), }; event!(SHUTDOWN; shutdown_msg); } return Ok(false); } VcpuExit::FailEntry => { info!("Vcpu{} Received KVM_EXIT_FAIL_ENTRY signal", self.id()); return Ok(false); } VcpuExit::InternalError => { info!("Vcpu{} Received KVM_EXIT_INTERNAL_ERROR signal", self.id()); return Ok(false); } r => panic!("Unexpected exit reason: {:?}", r), }, Err(ref e) => { match e.errno() { libc::EAGAIN => {} libc::EINTR => { self.fd.set_kvm_immediate_exit(0); } _ => { error!("Failure during vcpu run: {}", e); panic!("VcpuUnhandledKvmExit"); } }; } } Ok(true) } } impl CPUWorker for CPU { fn handle_workqueue(&self) { LOCAL_THREAD_VCPU.with(|thread_vcpu| { let mut vcpu_signal = thread_vcpu.borrow_mut(); if vcpu_signal.dirty_stamps != 0 { vcpu_signal.dirty_stamps = 0; drop(vcpu_signal); let (work_queue_locked, cvar) = &*self.work_queue; let mut work_queue = work_queue_locked.lock().unwrap(); if *work_queue & Self::SYNC_READ_CPU_STATE == Self::SYNC_READ_CPU_STATE { *work_queue &= !Self::SYNC_READ_CPU_STATE; cvar.notify_all(); } if *work_queue & Self::SYNC_WRITE_CPU_STATE == Self::SYNC_WRITE_CPU_STATE { *work_queue &= !Self::SYNC_WRITE_CPU_STATE; cvar.notify_all(); } } }); } fn ready_for_running(&self) -> bool { let mut flag = 0_u32; let (cpu_state_locked, cvar) = &*self.state; let mut cpu_state = cpu_state_locked.lock().unwrap(); loop { self.handle_workqueue(); match *cpu_state { CpuLifecycleState::Paused => { if flag == 0 { info!("Vcpu{} paused", self.id); flag = 1; } cpu_state = cvar.wait(cpu_state).unwrap(); } CpuLifecycleState::Running => { return true; } CpuLifecycleState::Stopping => { info!("Vcpu{} shutdown", self.id); cvar.notify_all(); return false; } _ => { warn!("Unknown Vmstate"); return true; } } } } } /// The wrapper for topology for VCPU. #[derive(Clone)] pub struct CpuTopology { /// Number of sockets in VM. pub sockets: u8, /// Number of cores in VM. pub cores: u8, /// Number of threads in VM. pub threads: u8, /// Number of vcpus in VM. pub nrcpus: u8, /// Number of online vcpus in VM. pub max_cpus: u8, /// Online mask number of all vcpus. pub online_mask: Arc<Mutex<Vec<u8>>>, } impl CpuTopology { /// Get online mask for a cpu. /// /// # Notes /// /// When `online_mask` is `0`, vcpu is offline. When `online_mask` is `1`, /// vcpu is online. /// /// # Arguments /// /// * `vcpu_id` - ID of vcpu. pub fn get_mask(&self, vcpu_id: usize) -> u8 { let mask = self.online_mask.lock().unwrap(); mask[vcpu_id] } /// Get single cpu topology for vcpu, return this vcpu's `socket-id`, /// `core-id` and `thread-id`. /// /// # Arguments /// /// * `vcpu_id` - ID of vcpu. pub fn get_topo(&self, vcpu_id: usize) -> (u8, u8, u8) { let cpu_per_socket = self.cores * self.threads; let cpu_per_core = self.threads; let socketid: u8 = vcpu_id as u8 / cpu_per_socket; let coreid: u8 = (vcpu_id as u8 % cpu_per_socket) / cpu_per_core; let threadid: u8 = (vcpu_id as u8 % cpu_per_socket) % cpu_per_core; (socketid, coreid, threadid) } }
rust
Yes, that’s what the Paris Saint-Germain-AS Monaco match has been termed. It was billed as the battle of the big strikers, and it was truly that in every way, with the big-money men on the scoresheet. PSG’s Zlatan Ibrahimovic opened the scoring before Monaco’s $90m man Radamel Falcao leveled things up in the 75th minute. Monaco, cashing in on Russian riches, continue to lead Ligue 1 with the Qatari-financed PSG sitting two points back. The game was overshadowed a bit by the events which happened in Manchester, where the blue side of the city was quite literally overpowering their neighbors. Manchester United suffered the Etihad annihilation, while Napoli proved too strong for AC Milan, coming out 2-1 winners in the end. That also marked the first ever penalty miss by Mario Balotelli in his professional career. Coming back to France, the match at Parc des Princes shaped a few talking points: Yet another Russian billionaire decided to invest in a football club, quite generously. The club was Monaco, who were promoted to Ligue 1 this term and the billionaire is Dmitry Rybolovlev. Monaco spent about 170 million Euros ($230 million) this summer. PSG, on the other hand, cashed in by Qatar Sports Investments, splashed out 114 million Euros ($154 million), having spent more than that last season. Falcao joined Monaco from Atletico Madrid in a deal estimated to be worth 60 million Euros ($79 million), while Cavani cost PSG 64 million Euros ($84 million), the fifth most expensive transfer in history. The lure of money is of the highest order, and a club offering tax-free salaries to its players is a difficult offer to turn down. No wonder, three of the world’s best strikers are in France, and contested this game. As things stand at the top of the league table, Monaco lead PSG with 2 points. If they win Ligue 1 after 13 years, it could be yet another story of riches behind trophies. PSG by now should be used to extravagant riches. But with great money, comes even greater demand for trophies. It will be interesting to see which team comes out with flying colors. This is not yet a time to worry but Edinson Cavani uncannily seemed to fall behind PSG main man Zlatan Ibrahimovic. The star summer signing continues to tussle as the Uruguayan had to endure another night of frustration with PSG in need of his goals. Despite regularly playing wide for his country, the signs so far suggest that he does not work in Blanc’s 4-3-3 formation. Although the side from the capital played some lovely passing football, producing little or no end product is hardly what they were looking for. Before the duo of Cavani and Ibrahimovic were paired together on a football pitch for the first time, many suggested that Ibrahimovic would struggle to adapt to the partnership more than Cavani. But Ibrahimovic was particularly in one of his daring moods, trying his luck with ambitious shots, one from 35 yards and was mostly controlling possession. Cavani seemed at a loss, sometimes making the same runs and at other times isolated. It took 30 minutes for him to get any space and when he did, he fired a shot that flew above the post. “Their partnership could be better, We have to try and fight the right system”, acknowledged Blanc. Cavani did have two chances to win the match for PSG in injury time but first his shot was blocked by defender Andrea Raggi and then his header went wide moments later. Paris Saint-Germain has problems in defense with Thiago Silva set to be out for several weeks after pulling his hamstring in Sunday’s 1-1 draw against Monaco. “I think we’ll be without him for a little while,” Blanc said of Silva. That left Blanc to employ a temporary defensive pairing of 19-year-old Marquinhos and fourth-choice center back Zoumana Camara to face Falcao. That proved futile as three minutes later the Colombian sprinted to the near post and headed in Joao Moutinho’s cross from the left to level the match. Blanc must be wishing that he still had Mamadou Sakho to choose, who has been signed by Liverpool. His problems in central defense continue to persist. Who Are The Title Contenders? Monaco’s resilient performance against PSG offered encouraging signs that the newly-promoted side can challenge the big-spending PSG for the French title. Monaco coach Claudio Ranieri, who has also managed Chelsea, Juventus, Valencia and Roma, definitely had an edge over his PSG counterpart Laurent Blanc by cleverly shaping his side after it had conceded a goal in the fifth minute. Nonetheless, PSG will be looking to kick start their season once again hoping to defend the title. They can gain consolation from the fact that were still the better side in the match, only lacking the killer instinct needed to come out with a victory. From the PSG point of view, it was their midfield which seemed to inspire them throughout the game. The dominant performance displayed by the midfield trio of Thiago Motta, Blaise Matuidi and Marco Verratti demanded appreciation. The trio controlled the midfield and did not allow Monaco to take control of the game. As the Frenchman Blanc is looking reluctant to ditch the 4-3-3 with his midfield in such good form, it will be interesting to watch where he accommodates Cavani. With their defense shaky and Silva limping off due to a thigh injury, they can take solace in an above par midfield performance.
english
/******************************************************************************* * Copyright Duke Comprehensive Cancer Center and SemanticBits * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/c3pr/LICENSE.txt for details. ******************************************************************************/ package edu.duke.cabig.c3pr.utils; import java.util.ArrayList; import java.util.Collections; import java.util.List; import junit.framework.TestCase; import edu.duke.cabig.c3pr.domain.LocalStudy; import edu.duke.cabig.c3pr.domain.Study; public class AccrualCountComparatorTest extends TestCase{ public void testCompare(){ LocalStudy study1 = new LocalStudy(); study1.setShortTitleText("study1"); study1.setAccrualCount(10); LocalStudy study2 = new LocalStudy(); study2.setShortTitleText("study2"); study2.setAccrualCount(10); LocalStudy study3 = new LocalStudy(); study3.setShortTitleText("study3"); study3.setAccrualCount(11); LocalStudy study4 = new LocalStudy(); study4.setShortTitleText("study4"); study4.setAccrualCount(9); List<Study> studies = new ArrayList<Study>(); studies.add(study1); studies.add(study2); studies.add(study3); studies.add(study4); assertEquals("before sorting First study should be with short title study1", "study1", studies.get(0).getShortTitleText()); assertEquals("before sorting Last study should be with short title study4", "study4", studies.get(3).getShortTitleText()); Collections.sort(studies, new AccrualCountComparator()); assertEquals("First study should be with short title study4", "study4", studies.get(0).getShortTitleText()); assertEquals("Last study should be with short title study3", "study3", studies.get(3).getShortTitleText()); } }
java
import p2, { Body, Box, Ray, RaycastResult, TopDownVehicle, WheelConstraint, World } from 'p2'; import { CAR_MASK, CHECKPOINT_MASK, MINIMUM_AVERAGE_SPEED, MOVING_AVERAGE_ALPHA, SENSOR_MASK, Vector2, WALL_MASK, } from './constants'; interface SensorOptions { numSensors?: number; sensorLength?: number; sensorAngle?: number; } interface Sensor { localFrom: Vector2; localTo: Vector2; ray: Ray; hasHit: boolean; hitDistance?: number; hitPoint?: Vector2; hitNormal?: Vector2; } class Car { private readonly chassis: { body: Body; box: Box }; private readonly tdv: TopDownVehicle; private readonly wheels: [WheelConstraint, WheelConstraint, WheelConstraint, WheelConstraint]; private readonly sensors: Sensor[] = []; avgSpeed = 0; constructor( bodyWidth: number, bodyHeight: number, { numSensors = 3, sensorLength = 120, sensorAngle = 90 * (Math.PI / 180) }: SensorOptions = {} ) { const chassisBody = new Body({ mass: 1 }); const chassisBox = new Box({ width: bodyWidth, height: bodyHeight, collisionGroup: CAR_MASK, collisionMask: WALL_MASK | CHECKPOINT_MASK, }); chassisBody.addShape(chassisBox); const vehicle = new TopDownVehicle(chassisBody); const flWheel = vehicle.addWheel({ localPosition: [-bodyWidth / 2, bodyHeight / 2] }); const frWheel = vehicle.addWheel({ localPosition: [bodyWidth / 2, bodyHeight / 2] }); const blWheel = vehicle.addWheel({ localPosition: [-bodyWidth / 2, -bodyHeight / 2] }); const brWheel = vehicle.addWheel({ localPosition: [bodyWidth / 2, -bodyHeight / 2] }); flWheel.setSideFriction(400); frWheel.setSideFriction(400); blWheel.setSideFriction(300); brWheel.setSideFriction(300); flWheel.setBrakeForce(20); frWheel.setBrakeForce(20); for (let s = 0; s < numSensors; s++) { const r = numSensors === 1 ? 0.5 : s / (numSensors - 1); const w = bodyWidth * 0.9; const h = bodyHeight * 0.9; const localFrom = p2.vec2.fromValues(-w / 2 + w * r, h / 2); const localTo = p2.vec2.clone(localFrom); const angle = sensorAngle / 2 - sensorAngle * r + Math.PI / 2; p2.vec2.add(localTo, localTo, [ sensorLength * Math.cos(angle), sensorLength * Math.sin(angle), ]); const sensor = { localFrom, localTo, ray: new Ray({ mode: Ray.CLOSEST, from: localFrom, to: localTo, collisionGroup: SENSOR_MASK, collisionMask: WALL_MASK, }), hasHit: false, }; this.sensors.push(sensor); } this.tdv = vehicle; this.chassis = { body: chassisBody, box: chassisBox }; this.wheels = [flWheel, frWheel, blWheel, brWheel]; } get position(): Vector2 { return this.chassis.body.position; } set position(position: Vector2) { this.chassis.body.position = position; } set angle(angle: number) { this.chassis.body.angle = angle; } get numSensors(): number { return this.sensors.length; } getSpeed(): number { return (this.wheels[2].getSpeed() + this.wheels[3].getSpeed()) / 2; } getNormalizedSensorValues(): number[] { return this.sensors.map((sensor) => sensor.hasHit ? sensor.hitDistance! / sensor.ray.length : 1 ); } addToWorld(world: World): void { world.addBody(this.chassis.body); this.tdv.addToWorld(world); } computeSensorIntersections(world: World): void { const result = new RaycastResult(); for (const sensor of this.sensors) { const localFrom = p2.vec2.clone(sensor.localFrom); const localTo = p2.vec2.clone(sensor.localTo); p2.vec2.rotate(localFrom, localFrom, this.chassis.body.angle); p2.vec2.add(localFrom, localFrom, this.chassis.body.position); p2.vec2.rotate(localTo, localTo, this.chassis.body.angle); p2.vec2.add(localTo, localTo, this.chassis.body.position); sensor.ray.from = localFrom; sensor.ray.to = localTo; sensor.ray.update(); result.reset(); world.raycast(result, sensor.ray); sensor.hasHit = result.hasHit(); if (sensor.hasHit) { const hitPoint = p2.vec2.create(); result.getHitPoint(hitPoint, sensor.ray); sensor.hitDistance = result.getHitDistance(sensor.ray); sensor.hitPoint = hitPoint; sensor.hitNormal = result.normal; } else { sensor.hitDistance = undefined; sensor.hitPoint = undefined; sensor.hitNormal = undefined; } } } update(throttle: number, brake: number, steer: number): void { const steerValue = 0.63 * -(steer * 2 - 1); const engineForce = 150 * throttle; const brakeForce = 150 * brake; this.wheels[0].steerValue = steerValue; this.wheels[1].steerValue = steerValue; this.wheels[2].engineForce = engineForce; this.wheels[3].engineForce = engineForce; this.wheels[2].setBrakeForce(brakeForce); this.wheels[3].setBrakeForce(brakeForce); this.avgSpeed += MOVING_AVERAGE_ALPHA * (this.getSpeed() - this.avgSpeed); } draw(ctx: CanvasRenderingContext2D, steer: number): void { this.drawSensors(ctx); const [x, y] = this.chassis.body.position; ctx.save(); ctx.translate(x, y); ctx.rotate(this.chassis.body.angle); this.drawCar(ctx, steer); ctx.restore(); } private drawCar(ctx: CanvasRenderingContext2D, steer: number): void { const w = this.chassis.box.width; const h = this.chassis.box.height; if (Math.abs(this.avgSpeed) > MINIMUM_AVERAGE_SPEED) { ctx.strokeStyle = 'white'; ctx.fillStyle = 'rgba(18, 18, 18, 0.8)'; } else { ctx.strokeStyle = 'gray'; ctx.fillStyle = 'rgba(18, 18, 18, 0.8)'; } ctx.translate(-w / 2, -h / 2); ctx.fillRect(0, 0, w, h); ctx.beginPath(); ctx.rect(0, 0, w, h); ctx.translate(w / 2, h / 2); const wheelWidth = w / 6; const wheelHeight = h / 6; for (let i = 0; i < this.wheels.length; i++) { const wheel = this.wheels[i]; const wx = wheel.localPosition[0]; const wy = Math.sign(wheel.localPosition[1]) * (Math.abs(wheel.localPosition[1]) - wheelHeight); ctx.save(); ctx.translate(wx, wy); if (i < 2) { ctx.rotate(0.63 * -(steer * 2 - 1)); } ctx.translate(-wheelWidth / 2, -wheelHeight / 2); ctx.rect(0, 0, wheelWidth, wheelHeight); ctx.restore(); } ctx.stroke(); } private drawSensors(ctx: CanvasRenderingContext2D) { const hitPointRadius = 5; const normalLength = 10; for (const sensor of this.sensors) { ctx.strokeStyle = '#ff5050'; ctx.beginPath(); ctx.moveTo(sensor.ray.from[0], sensor.ray.from[1]); ctx.lineTo(sensor.ray.to[0], sensor.ray.to[1]); ctx.stroke(); if (sensor.hasHit) { const hitPoint = sensor.hitPoint!; const hitNormal = sensor.hitNormal!; ctx.beginPath(); ctx.arc(hitPoint[0], hitPoint[1], hitPointRadius, 0, 2 * Math.PI); ctx.stroke(); ctx.beginPath(); ctx.moveTo(hitPoint[0], hitPoint[1]); ctx.lineTo( hitPoint[0] + hitNormal[0] * normalLength, hitPoint[1] + hitNormal[1] * normalLength ); ctx.stroke(); } } } } export default Car;
typescript
Genie has other reasons to be blue, apart from being trapped in a lamp for thousands of years! It’s prince All D? This is the only way to introduce an oriental Kingdom. Disney's 'Aladdin' is surprisingly good when compared to the early reactions its trailers received. Will Smith's Genie steals everyone's thunder, and manages to make this en enjoyable magic carpet ride into a familiar story for a whole new world audience. A whole new world coming up! Walt Disney has collaborated with Badshah to create a song for the new live-action remake of 'Aladdin' and it is something.
english
<reponame>kreijstal-contributions/genesapi-data {"code": "VGR092", "lang": "de", "description": null, "name": "Bezugsgr\u00f6\u00dfe f\u00fcr die Sparquote", "type": "Merkmal"}
json
<reponame>CristhianMotoche/Curso-JS #announce { background-color: #0275D8; } .whitetext { text-align: center; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; line-height: 1.42857143; } .bs-docs-masthead .bs-docs-booticon { margin: 0 auto 30px; } .bs-docs-booticon-outline { background-color: transparent; border: 1px solid #cdbfe3; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(205, 191, 227); border-right-color: rgb(205, 191, 227); border-bottom-color: rgb(205, 191, 227); border-left-color: rgb(205, 191, 227); -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image-source: none; border-image-slice: 100% 100% 100% 100%; border-image-width: 1 1 1 1; border-image-outset: 0 0 0 0; border-image-repeat: stretch stretch; } .bs-docs-booticon-lg { width: 144px; height: 144px; font-size: 108px; line-height: 140px; } .bs-docs-booticon { margin: 0 auto; margin-top: 20px; float:none; display: block; font-weight: 500; color: #fff; text-align: center; cursor: default; background-color: #563d7c; border-radius: 15%; } .bs-docs-masthead .lead { margin: 0 auto 30px; font-size: 20px; color: #fff; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; } .bs-docs-featurette + .bs-docs-footer { margin-top: 0; border-top: 0; } .bs-docs-footer { padding-top: 50px; padding-bottom: 50px; margin-top: 100px; color: #99979c; text-align: center; background-color: #2a2730; } a { text-decoration: none; } .bs-docs-footer-links li { display: inline-block; } .box { display: block; width: 300px; margin: 0 auto; border: 1px solid #cdbfe3; background-color: transparent; border: 1px solid #cdbfe3; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(205, 191, 227); border-right-color: rgb(205, 191, 227); border-bottom-color: rgb(205, 191, 227); border-left-color: rgb(205, 191, 227); margin-top: 10px; margin-bottom: 30px; }
css
<reponame>dsp-testing/fp-frontend<gh_stars>1-10 { "AdopsjonVilkarForm.Adopsjon": "Adopsjon", "AdopsjonVilkarForm.TidligereUtbetaltStonad": "Tidligere utbetalte foreldrepenger eller engangsstønad", "AdopsjonVilkarForm.Oppfylt": "Er utbetalt for et annet barn, vilkåret er oppfylt", "AdopsjonVilkarForm.IkkeOppfylt": "Er utbetalt for dette barnet, vilkåret er <b>ikke</b> oppfylt", "ShowVilkarStatus.Check": "Informasjonen er utfylt" }
json
{ "id": 45938760, "name": "dcard-bar", "fullName": "lockys/dcard-bar", "owner": { "login": "lockys", "id": 3911469, "avatarUrl": "https://avatars1.githubusercontent.com/u/3911469?v=3", "gravatarId": "", "url": "https://api.github.com/users/lockys", "htmlUrl": "https://github.com/lockys", "followersUrl": "https://api.github.com/users/lockys/followers", "subscriptionsUrl": "https://api.github.com/users/lockys/subscriptions", "organizationsUrl": "https://api.github.com/users/lockys/orgs", "reposUrl": "https://api.github.com/users/lockys/repos", "receivedEventsUrl": "https://api.github.com/users/lockys/received_events", "type": "User" }, "private": false, "description": "[NOT WORK NOW] 一個小工具讓你快速看你今天 Dcard 抽到的是誰", "fork": false, "createdAt": "2015-11-10T20:38:45.000Z", "updatedAt": "2017-04-24T14:58:16.000Z", "pushedAt": "2015-12-24T18:18:41.000Z", "homepage": "http://lockys.github.io/dcard-bar", "size": 1167, "stargazersCount": 5, "watchersCount": 5, "language": "CSS", "hasIssues": true, "hasDownloads": true, "hasWiki": true, "hasPages": true, "forksCount": 0, "openIssuesCount": 0, "openIssues": 0, "watchers": 5, "defaultBranch": "master", "permissions": { "admin": false, "push": false, "pull": true }, "license": { "key": "mit", "name": "MIT License", "spdxId": "MIT", "url": "https://api.github.com/licenses/mit", "featured": true }, "networkCount": 0, "subscribersCount": 1, "status": 200, "packageJSON": { "name": "dcard", "version": "0.0.2", "description": "Get today's card of Dcard today!", "dependencies": { "dcard-card": "^0.0.2", "jquery": "^2.1.4", "menubar": "^2.3.0", "nconf": "^0.8.2", "node-notifier": "^4.3.1", "node-schedule": "^0.5.0", "request": "^2.65.0" }, "devDependencies": { "electron-packager": "^5.1.0", "electron-prebuilt": "^0.34.2", "grunt": "^0.4.5", "grunt-electron-installer": "^1.0.10" }, "main": "main.js", "scripts": { "build": "electron-packager . dcard --platform=darwin --arch=x64 --version=0.34.2 --overwrite --icon=Icon.icns", "build-win": "electron-packager . dcard --platform=win32 --arch=x64 --version=0.34.2 --overwrite --icon=Icon.ico --version-string.ProductName=dcard-bar", "build-win-32": "electron-packager . dcard --platform=win32 --arch=ia32 --version=0.34.2 --overwrite --icon=Icon.ico --version-string.ProductName=dcard-bar", "start": "electron ." }, "author": "<NAME> <<EMAIL>> (https://github.com/lockys)", "license": "MIT" }, "packageStatus": 200, "htmlUrl": "https://github.com/lockys/dcard-bar", "url": "https://api.github.com/repos/lockys/dcard-bar", "forksUrl": "https://api.github.com/repos/lockys/dcard-bar/forks", "teamsUrl": "https://api.github.com/repos/lockys/dcard-bar/teams", "hooksUrl": "https://api.github.com/repos/lockys/dcard-bar/hooks", "eventsUrl": "https://api.github.com/repos/lockys/dcard-bar/events", "tagsUrl": "https://api.github.com/repos/lockys/dcard-bar/tags", "languagesUrl": "https://api.github.com/repos/lockys/dcard-bar/languages", "stargazersUrl": "https://api.github.com/repos/lockys/dcard-bar/stargazers", "contributorsUrl": "https://api.github.com/repos/lockys/dcard-bar/contributors", "subscribersUrl": "https://api.github.com/repos/lockys/dcard-bar/subscribers", "subscriptionUrl": "https://api.github.com/repos/lockys/dcard-bar/subscription", "mergesUrl": "https://api.github.com/repos/lockys/dcard-bar/merges", "downloadsUrl": "https://api.github.com/repos/lockys/dcard-bar/downloads", "deploymentsUrl": "https://api.github.com/repos/lockys/dcard-bar/deployments", "gitUrl": "git://github.com/lockys/dcard-bar.git", "sshUrl": "git@github.com:lockys/dcard-bar.git", "cloneUrl": "https://github.com/lockys/dcard-bar.git", "svnUrl": "https://github.com/lockys/dcard-bar", "mirrorUrl": null, "firstCommit": { "sha": "7f5f47a37102e77a2aa923f0378397243bb4d46f", "commit": { "author": { "name": "lockys", "email": "<EMAIL>", "date": "2015-11-10T20:52:46Z" }, "committer": { "name": "lockys", "email": "<EMAIL>", "date": "2015-11-10T20:52:46Z" }, "message": "init", "tree": { "sha": "5ce548cfe434f6907fce45335dccfa35d68cd91f", "url": "https://api.github.com/repos/lockys/dcard-bar/git/trees/5ce548cfe434f6907fce45335dccfa35d68cd91f" }, "url": "https://api.github.com/repos/lockys/dcard-bar/git/commits/7f5f47a37102e77a2aa923f0378397243bb4d46f", "commentCount": 0 } }, "filename": "lockys___dcard-bar.json", "hasProjects": true, "lastFetchedAt": "2017-05-04T20:15:07.263Z", "packageLastFetchedAt": "2017-05-05T15:13:44.933Z" }
json
China Evergrande Group will make it a top priority to help retail investors redeem their investment products sold by the indebted property giant, its chairman said, as uncertainty looms over interest payment due for a dollar bond on Thursday. Hui Ka Yan's statement came after the developer said on Wednesday it had "resolved" a coupon payment on an onshore bond, pushing the company's stock price to its biggest single-day percentage rise since its listing in 2009. Global investors have been on tenterhooks in recent weeks as debt payment obligations of Evergrande, labouring under a $305 billion mountain of debt, triggered fears its malaise could pose systemic risks to China's financial system. The company faces $83. 5 million in dollar-bond interest payments due on Thursday on a $2 billion offshore bond. And more payments are coming due next week, with a $47. 5 million dollar-bond interest payment due. Without mentioning the offshore debt, the chairman late on Wednesday urged his executives to ensure the quality delivery of properties and redemption of wealth management products held by millions of mainly retail investors. There is mounting political pressure on the company to act as homebuyers and retail investors grow increasingly angry of having sunk their savings in its properties and opaque wealth management products. "Assuming this situation goes the way of a debt restructuring . . . we think the retail investor nature of the wealth management products would be prioritised for social stability," said Ezien Hoo, credit analyst at OCBC Bank. Foreign investors, who hold paper issued by offshore entities, might find it harder to get paid as they had "lower bargaining power versus other lenders closer to the assets," he said. Evergrande shares surged as much as 32 per cent on Thursday as trading resumed after a public holiday, though gains were soon pared and months of heavy losses still leave the stock down more than 80% for the year to date. Evergrande's property services unit also climbed. The sense of relief spread to mainland property stocks listed in Hong Kong, with Country Garden, China's largest developer, up as much as 14 per cent. Sunac China jumped 16 per cent and Guangzhou R&F Properties surged 26 per cent. Oscar Choi, founder and CIO of investment firm Oscar and Partners Capital Ltd, said Evergrande was wary of enflaming social tensions by leaving homes unbuilt, construction workers unpaid and retail investors counting their losses. Once those priorities had been met, Evergrande would talk to its other creditors, he said, adding: "Otherwise a few hundred thousand people will fight with the government. " A company spokesperson did not immediately respond to request for comment on its payment obligation due on Thursday. Evergrande, which epitomised the borrow-to-build business model and was once China's top-selling developer, ran into trouble over the past few months as Beijing tightened rules in its property sector to rein back too much debt and speculation. Investors worry that the rot could spread to creditors including banks in China and abroad, though analysts have been downplaying the risk that a collapse would result in a "Lehman moment", or a systemic liquidity crunch. Fitch Ratings said on Sept. 16 that it had cut its 2021 economic growth forecast for China to 8. 1 per cent from 8. 4 per cent, citing the impact of the slowdown in the country's property sector on domestic demand. Underscoring the scramble to avoid contagion risk, Chinese Estates Holdings, the No. 2 shareholder of Evergrande, said on Thursday it had sold $32 million worth of its company stake and planned to exit the holding completely. Some analysts say it could take weeks for investors to have any clarity about how the Evergrande situation will resolve. "The company could restructure its debts but continue in operation, or it could liquidate," wrote Paul Christopher, head of global market strategy at Wells Fargo Investment Institute. In either case, investors in the company's financial instruments likely would suffer some losses, he wrote. "In the event of a liquidation, however, Chinese and global investors could decide that the contagion could spread beyond China," he added. U. S. Federal Reserve Chair Jerome Powell said on Wednesday that Evergrande's problems seem particular to China and that he did not see a parallel with the U. S. corporate sector.
english
{ "author" : ["Kreusada"], "description" : "Detect hoisted usernames and change their nicknames as a result. A variety of tools to 'protect' your guild from hoisted users. Features include automatic dehoisting of usernames into configured nicknames, scanning against hoisted users, changing all hoisted display names at once, and more.", "disabled" : false, "end_user_data_statement" : "This cog does not persistently store data or metadata about users.", "hidden" : false, "install_msg" : "Thanks for installing, have fun. Please refer to my docs if you need any help: https://kreusadacogs.readthedocs.io/en/latest/dehoister.html", "name" : "Dehoister", "required_cogs" : {}, "requirements" : [], "short" : "Detect hoisted usernames and change their nicknames as a result.", "tags" : [ "Hoist", "Nickname" ], "type" : "COG" }
json
Star Wars: Jedi Survivor is the next video game of the Disney franchise and will arrive next April 28 to PS5, Xbox Series and PC. The Electronic Arts game will be the sequel to Star Wars: Fallen Order, and its protagonist will be Cal Kestis, the Jedi played by Cameron Monaghan who survived the fall of the Jedi Order. In the trailers for the new video game we’ve been able to see some very interesting details of what’s to come, such as the return of Night Sister Merrin or the added puzzle mechanics that borrow from titles like The Legend of Zelda: Breath of the Wild. However, the most interesting revelation is the appearance of a mysterious Jedi wearing a very unusual robe for the time. Instead of wearing the gold-detailed robes of the time in which the game takes place, he wears a classic High Republic robe, a time that occurred centuries before that time. This makes us wonder who this man is and why he is dressed like this, if he should have been dead for centuries. But to recognize the importance of this appearance, one must understand what the High Republic is and how important it is to the Star Wars universe. Is the High Republic canon? The High Republic is an era set some 200 years before the events of the Skywalker saga. It is a period when the galaxy was much less populated; a time of peak space exploration when the frontiers of the known universe were expanded and hundreds of populations everywhere began to be discovered and united. The history of the High Republic is completely canon, and began to be written as a multimedia project that includes novels, comics, podcasts, etc. that help to vertebrate the Star Wars universe. The idea to bring this galactic universe story to fruition came from Michael Siglain, the creative director of Lucasfilm Publishing, in 2018. Siglain met during this year with writers Cavan Scott, Claudia Gray, Charles Soule, Daniel José Older and Justina Ireland to propose them to carry out stories of this era. Since then, they have continued to publish novels, comics and more that help the Star Wars universe grow and its canon become more effective. As these authors write, the High Republic was a time of expansion and exploration, where the Galactic Republic and the Jedi worked together to keep the peace and protect the citizens of the galaxy. At that time the Jedi were considered heroes and were at the height of their power, with a large number of active knights and padawans. However, the tranquility and harmony would not last forever. The emergence of a new enemy in the form of the Nihil, a group of pirates and looters, changed the landscape. The band of criminals began attacking Republic border systems and wreaking havoc throughout the galaxy. With their ability to move quickly and strike without warning, the Nihil became a major threat to the peace and security of the galaxy. In the midst of this new threat, a group of Jedi led by Avar Kriss, joined together to form the Light Force, a special group created to confront the Nihil threat. Together, the Jedi and the Republic worked to confront this new threat and maintain peace and stability throughout the galaxy. In addition to the Nihil threat, there were also other conflicts and challenges during the High Republic. For example, the Drengir race, a species of intelligent plants, threatened the galaxy and the Jedi had to work hard to stop them. There were also political tensions between the Republic and trade corporations, and the discovery of new technologies and secrets hidden in the galaxy caused concern and ethical debates between the Jedi and the Republic. As the story of the High Republic continues to unfold, interesting new characters and relationships have also been introduced. For example, the character of Marcion Ro, the leader of the Nihil, has proven to be a dangerous and complex villain, while characters such as Avar Kriss, Elzar Mann and Keeve Trennis have proven to be brave and dedicated heroes in the fight for peace and justice in the galaxy. Undoubtedly, the stories that comprise this era will land sooner rather than later in theaters and Disney Plus, and thanks to that we will know even more about what happened in this period. But, for now, it will be Star Wars: Jedi Survivor that will tell us more about what happened before the Empire attacked. Or so it seems, at least from what we’ve seen in the trailers. Some of the links added in the article are part of affiliate campaigns and may represent benefits for Softonic.
english
/* Template Name: PhotoFolio File: Portfolio CSS Author: OS Templates Author URI: http://www.os-templates.com/ Licence: <a href="http://www.os-templates.com/template-terms">Website Template Licence</a> */ #portfolio{ display:block; width:100%; line-height:1.6em; } #portfolio .portfoliocontainer{ display:block; width:100%; margin-bottom:20px; padding:0; border-bottom:1px solid #DFDFDF; } #portfolio .fl_left{ width:220px; line-height:1.6em; } #portfolio .fl_right{ width:700px; } #portfolio ul, #portfolio h2, #portfolio p, #portfolio img{ margin:0; padding:0; list-style:none; } #portfolio .fl_left p{ margin:12px 0 0 0; } #portfolio .fl_right li{ float:left; margin:0 20px 20px 0; } #portfolio .fl_right li.last{ margin-right:0; } #portfolio .fl_right li img{ border:5px solid #DFDFDF; } #portfolio .fl_right p.name{ font-weight:bold; } #portfolio .fl_right p.readmore{ text-transform:uppercase; }
css
'Indian 2' is an upcoming magnum opus starring Ulaganayagan Kamal Haasan and directed by Shankar and is a sequel to the blockbuster hit 1996 film of the duo 'Indian'. The 400 Crores budgeted spectacle is produced by Lyca Productions and the shooting is planned in phases until the third quarter of 2020. Anirudh Ravichander is scoring the music, Rathnavelu is the cinematographer, T. Muthuraj is the production designer and A. Sreekhar Prasad the editor. 'Indian 2' has an ensemble cast that includes Kamal Haasan, Kajal Aggarwal, Rakul Preet Singh, Priya Bhavani Shankar, Bobby Simha, Siddharth, Manobala, Vivek and Samuthirakani. The release date has been locked for Pongal 2021.
english
{"appid": 472060, "name": "<NAME>", "windows": true, "mac": true, "linux": true, "early_access": false, "lookup_time": 1490995247}
json
{ "type": "minecraft:crafting_shaped", "pattern": [ "OCO", "COC", "OCO" ], "key": { "O": { "item": "minecraft:obsidian" }, "C": { "item": "minecraft:clay_ball" } }, "result": { "item": "superbalancedmodmultiblockfurnace2theempiresmeltsback:clay_lattice" } }
json
<reponame>giltayar/teenytest<gh_stars>10-100 var assert = require('core-assert') module.exports = { beforeAll: function () { 'I\'ll run once before both tests' }, beforeEach: function () { 'I\'ll run twice - once before each test' }, adds: function () { assert.equal(1 + 1, 2) }, subtracts: function () { assert.equal(4 - 2, 2) }, afterEach: function () { 'I\'ll run twice - once after each test' }, afterAll: function () { 'I\'ll run once after both tests' } }
javascript
// @flow function square(n: number): number { return n * n; } square(2);
javascript
<reponame>PiotrekGa/pruned-cv # pruned-cv ## Introduction The package implements `Pruned Cross-Validation` technique, which verifies whether all folds are worth calculating. It's components may be used as a standalone methods or as a part of hyperparameter optimization frameworks like `Hyperopt` or `Optuna`. It proved to be more less three times faster than Scikit-Learn GridSearchCV and RandomizedSearchCV yielding the same results (see benchmarks section). ![gs_vs_pgs](https://raw.githubusercontent.com/PiotrekGa/PiotrekGa.github.io/master/images/gs_vs_pgs.png) You can find a broader overview of the motivation an methodology under this [directory](https://piotrekga.github.io/Pruned-Cross-Validation/) or alternatively on [Medium](https://towardsdatascience.com/pruned-cross-validation-for-hyperparameter-optimization-1c4e0588191a). ## Motivation The idea was to improve speed of hyperparameter optimization. All the methods which are based on Cross-Validation require big folds number (8 is an absolute minimum) to assure that the surrogate model (whether it's GridSearch, RandomSearch or a Bayesian model) does not overfit to the training set. On the other hand Optuna proposes a mechanism of pruned learning for Artificial Neural Networks and Gradient Boosting Algorithms. It speeds the search process greatly but one issue with the method is that is prunes the trials based on a single validation sample. With relatively small datasets the model's quality variance may be high and lead to suboptimal hyperparameters choices. In addition it can only help to optimize an estimator and not the whople ML pipeline. Pruned-cv is a compromise between brut-force methods like GridSearch and more elaborate, but vulnerable ones like Optuna's pruning. ## How does it work? You can see example of correlations between cumulative scores on folds with the final score: ![correlations](https://raw.githubusercontent.com/PiotrekGa/PiotrekGa.github.io/master/images/correlations.png) You may find the whole study notebook [here](https://github.com/PiotrekGa/pruned-cv/blob/master/examples/Correlations_between_folds.ipynb). The package uses the fact that cumulative scores are highly correlated with the final score. In most cases after calculating 2 folds it's possible to predict the final score very accurately. If the partial score is very poor the cross-validation is stopped (pruned) and the final scores value is predicted based on best till now scores. If the partial score fits within some tolerance limit, next folds are evaluated. ## Installation The package works with Python 3. To install it clone the repository: `git clone <EMAIL>:PiotrekGa/pruned-cv.git` and run: `pip install -e pruned-cv` ## Examples You can find example notebooks in the _examples_ section of the repository. #### Usage with Optuna https://github.com/PiotrekGa/pruned-cv/blob/master/examples/Usage_with_Optuna.ipynb #### Usage with Hyperopt https://github.com/PiotrekGa/pruned-cv/blob/master/examples/Usage_with_Hyperopt.ipynb ## Benchmarks You can find benchmarks in examples section. #### Grid Search CV https://github.com/PiotrekGa/pruned-cv/blob/master/examples/GridSearchCV_Benchmark.ipynb #### Randmized Search CV https://github.com/PiotrekGa/pruned-cv/blob/master/examples/RandomizedSearchCV_Benchmark.ipynb
markdown
Children's Week is a yearly tradition in World of Warcraft: Dragonflight. It’s a great time for players to collect a few more pets and also has players taking poor orphans out for a fun time. From eating delicious sweets to showing these young children the excitement of the battlefield, this event is only available for the first week of May every year. Some players have skipped out on completing this event, but now's the time if you’re interested in more pets and achievements. Any player who is at least level 10 with access to one of the specific capital cities can participate in World of Warcraft: Dragonflight’s Children's Week. The event has already begun, so now is a terrific time to take an orphan across Azeroth and show them the sights. Unfortunately, for players this year, Children's Week has extended server maintenance taking place since patch 10.1 drops today (May 2). If you are at least level 10, just head to one of the areas listed below. You can begin the event at those spots where you receive a whistle to summon the orphan. Occasionally they might despawn, so keep the whistle around to bring them back if needed for these achievements. - Human: Orphan Matron Nightingale (Stormwind) - Orc: Orphan Matron Battlewail (Orgrimmar) - Kul Tiran Human: Orphan Matron Westerson (Boralus) - Zandalari Troll: Padae (Zuldazar) Children's Week lasts from May 1 through May 8, 2023, and all players, regardless of faction, can participate. Even better, all the orphans (except Wolvar and Oracle) now have a little mount to ride, so they stay close by no matter what you’re doing. Another one of the great parts of Children's Week in World of Warcraft: Dragonflight is unlocking pets. There are a few Battle Pets you can unlock by going through the quests attached to this event. Once you complete these, you can choose from a few pets, depending on which orphan you recruited. If you have all these, you’ll receive a Pet Care Package, which has a wealth of useful items for Pet Battles. While you’re participating in Children's Week in World of Warcraft: Dragonflight, there is a World Event achievement, For the Children. This requires you to take the orphan across several facets of the game. Whether PVPing or simply using your Hearthstone, this achievement takes a small child around the dangerous but beautiful world of Azeroth. This all culminates in helping you towards the What A Long, Strange Trip It’s Been achievement in World of Warcraft: Dragonflight. If you complete all the holiday events, you’ll receive that achievement and mount. If you want this World of Warcraft: Dragonflight achievement, you must complete several Meta-Achievements first. The developers have already said there will be some changes to how holiday events work. - Home Alone: Use your Hearthstone while your orphan is with you. - Daily Chores: Complete five daily quests with your orphan out. - Bad Example: Eat the sweets listed below while your orphan is watching. - Aw, Isn’t It Cute?: Obtain one of the Children’s Week reward pets through questing. - Hail to the King, Baby: Defeat King Ymiron in Utgarde Pinnacle with your orphan out. - Veteran Nanny: Acquire Egbert’s Egg, Sleepy Willy, and Elekk Training Collar on one character. (These unlock the Egbert, Willy, and Peanut pets). A hotfix was rolled out in March that removed "School of Hard Knocks" as a required meta-achievement. This means that frustrating PVP achievement is no longer necessary to complete this event. You can also start this in World of Warcraft Classic if you’d like. Children's Week orphanages are open for the Human, Orc, Draenei, and Blood Elf locations - Stormwind, Orgrimmar, and Shattrath as listed above. This is one of the many regular holiday events in World of Warcraft: Dragonflight, and if you have missed out on it, here’s your limited time to take part.
english
<reponame>Peefy/PeefyLeetCode class Solution: def canConstruct(self, ransomNote, magazine): """ :type ransomNote: str :type magazine: str :rtype: bool """ ransomNote = list(ransomNote) magazine = list(magazine) r_len = len(ransomNote) m_len = len(magazine) if r_len > m_len: return False if r_len == 0: return True i = 0 k = 0 while i < r_len and k < m_len: if ransomNote[i] == magazine[k]: magazine.pop(k) m_len -= 1 k = 0 i += 1 else: k += 1 return i == r_len if __name__ == '__main__': solution = Solution() print(solution.canConstruct("a", "b")) print(solution.canConstruct("aa", "ab")) print(solution.canConstruct("aa", "aa")) print(solution.canConstruct("bjaajgea", \ "affhiiicabhbdchbidghccijjbfjfhjeddgggbajhidhjchiedhdibgeaecffbbbefiabjdhggihccec")) else: pass
python
Raipur: Chhattisgarh Chief Minister Bhupesh Baghel has said stern action will be taken if the state police receive a complaint about central agencies targeting anyone unnecessarily. There is no need to fear the Enforcement Directorate, Department of Revenue Intelligence (DRI) or Income Tax departments, Baghel said at a function organised in Durg district on Monday evening. “If you are being targeted unnecessarily then as the head of the Chhattisgarh government, I assure you that if you lodge a complaint at any police station of the state against the officers concerned (of the central agencies), stern action will be taken, the CM said. “We have to fight the battle of truth. If someone commits wrong then he should be punished. The government can’t be run by creating fear," he added. Later talking to reporters, Baghel spoke about complaints regarding people being targeted by the DRI, I-T department and ED in the state. “. . We welcome all the central agencies. We do not oppose them. If anything wrong has happened then action must be taken. But if people are harassed and if police receive a complaint in this regard, then action will be taken against (officers concerned of central agencies)," he said. Asked about the turmoil within the ruling Congress in Rajasthan, Baghel said he didn’t know much and hoped the issue will be resolved soon. Read all the Latest Politics News and Breaking News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI)
english
package com.sagisu.vaultLibrary.utils; import androidx.annotation.StringDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public class FeatureNameDescriptor { public static final String SEND_CRYPTO = "Send Crypto"; public static final String BUY_CRYPTO = "Buy Crypto"; public static final String SELL_CRYPTO = "Sell Crypto"; public static final String RECEIVE_CRYPTO = "Receive Crypto"; public static final String BUY_NFT = "Buy NFT"; public static final String RECEIVE_NFT = "Receive NFT"; public static final String BUY_STOCKS = "Buy Stocks"; public static final String RECEIVE_STOCKS = "Receive Stocks"; public static final String BUY_INSURANCE = "Buy Insurance"; public static final String RECEIVE_INSURANCE = "Receive Insurance"; public static final String TRADE = "Trade"; public static final String PORTFOLIO = "Portfolio"; public static final String TOKENIZE_WILL_TRUST = "Tokenize will and trust"; public static final String SWAP_CRYPTO = "Swap Crypto"; public static final String TRANSFER_TO_ACCOUNT = "Transfer to account"; public static final String TRANSFER_TO_SELF = "Transfer to self"; public static final String FUND_WALLET = "Fund wallet"; public static final String TRANSFER_TO_CONTACT = "Transfer to contact"; @StringDef({BUY_CRYPTO,RECEIVE_CRYPTO,BUY_NFT,RECEIVE_NFT,BUY_STOCKS,RECEIVE_STOCKS,BUY_INSURANCE,RECEIVE_INSURANCE,TRADE,PORTFOLIO}) @Retention(RetentionPolicy.SOURCE) public @interface FeatureNameTypes {} }
java
New Zealand scientists have unlocked the mystery of why so many cancer patients die of blood clots while undergoing chemotherapy in a study. Chemotherapy stimulates release of tiny bubbles from the surface of cancer cells, causing the potentially fatal clots, said the study by University of Otago researchers that came out recently, Xinhua news reported. Most deaths from cancer were caused by uncontrolled growth of tumour in vital organs, but the second most common way that cancer kills is by triggering blood clotting resulting in thrombosis. The clots cause blockage of major blood vessels, preventing oxygen and nutrients to vital organs. Despite being life-prolonging, chemotherapy is thus associated with a six-to-seven fold increase in the risk of thrombosis in cancer patients. The link between cancer and thrombosis was noted over 100 years ago, but the reasons for the association had been elusive, Associate Professor Alex McLellan said in a statement. McLellan's team discovered cancer cells treated with chemotherapy releasing lipid-rich bubbles from their membranes that activated coagulation (clotting) processes. "We now have insight into how these bubbles from dying cancer cells may cause thrombosis during chemotherapy," McLellan said. The research had showed that certain solid cancers were more active in promoting blood coagulation, as compared to lymphomas. "A general pattern is that cancers such as pancreatic, lung and brain cancers carry the largest risk of thrombotic events," he said. The study opened the possibility of developing inhibitors to the major coagulation pathway identified in cancer cells. New Zealand scientists have unlocked the mystery of why so many cancer patients die of blood clots while undergoing chemotherapy in a study.
english
In its 279th Report, the Law Commission of India has recommended the retention of Section 124A of the Indian Penal Code which contains the Law of Sedition. It has also recommended enhanced punishment for this offence in the name of national security. While Section 124A provides for a minimum imprisonment of three years, the commission recommends a minimum of seven. In 2022, the Supreme Court of India had ordered a stay on all existing proceedings and also on the registration of fresh cases (S. G. Vombatkere vs Union of India) under sedition upon the Union Government assuring the Court of a review of this law at the earliest. The Court’s stay order was in consideration of the fact that this law was widely misused by the law enforcement authorities. The law of sedition in India has a long and infamous history. Section 124A was incorporated in the Indian Penal Code in 1870. The purpose was to suppress the voice of Indians who spoke against the British Raj, as the government did not want any voice of dissent or protest. The wording of Section 124A clearly reveals the intention of the colonial government. Sedition is an offence against the government and not against the country, as many think. The offence is in bringing or attempting to bring in hatred or contempt or exciting or attempting to excite disaffection towards the government established by law. The offence is committed by spoken or written words, by signs or by any other means. Thus, the gist of the offence is bringing a government into hatred or contempt or causing disaffection towards the government of the day. The law of sedition was defined and applied in two different ways during the British period. The first major case was Queen Empress vs Bal Gangadhar Tilak 1897 in which the Bombay Court found Bal Gangadhar Tilak guilty of sedition for writing a couple of articles in Kesari, a Marathi weekly, invoking Shivaji, which was interpreted as exciting disaffection towards the British government. Judge Stratchy explained the law as: “The offence (Sedition) consists in exciting or attempting to excite in others certain bad feelings towards the government. It is not the exciting or attempting to excite mutiny or rebellion or any sort of actual disturbance great or small. . . . but even if he neither excited nor intended to excite any rebellion or outbreak or forcible resistance to the authority of the government that is sufficient to make him guilty under the Section. ” Later, the Privy Council upheld this exposition of law. Thus,sedition meant exciting or attempting to excite bad feelings towards the government. It was a very draconian law. These two statements of the law of sedition given by two courts in British India differ from one another. One defines sedition as disaffection, which was interpreted as ‘political hatred of government’ and comes within the mischief of sedition. The other interprets it to mean that the offence is committed only when there is incitement to violence or disorder. It may be noted that the Privy Council, the highest appellate court of that time, approved the law stated by Justice Stratchy in Tilak’s case. Further, it is said that the opinion of the Privy Council on sedition was not brought to the notice of the Federal Court when it decided Majumdar’s case. Otherwise it would have followed the Privy Council’s decision. The brief journey into the British era is necessary to better understand the judgment in Kedarnath vs State of Bihar (1962) by the Constitution Bench of the Supreme Court and the Law Commission’s recommendations for incorporating the essence of that judgment. Kedarnath decided the constitutionality of sedition. The Court held that it is constitutionally valid for two reasons. One, sedition, though an offence against the government, is against the state because the government is a visible symbol of state and the existence of the state will be in jeopardy if the government is subverted. Second, Article 19(2) imposes restrictions in the interest of the security of the state which has wider amplitude and which includes the law on sedition. Sedition is an offence against the government. Anyone who causes disaffection towards the government is liable to be prosecuted under this law. Disaffection has been defined as ‘political hatred’ towards the government by the full Bench of the Bombay High Court which upheld the punishment of Tilak. So, causing political hatred towards the government in the minds of the public is the offence of sedition. In this sense, it clearly violates the fundamental right to freedom of speech and expression under Article 19(1)(a) of the Constitution. In a democratic republic where people have the freedom to change a bad government, disaffection towards a government cannot be an offence. In fact, it is a part of the democratic process and experience. Therefore, making it an offence directly conflicts with the fundamental rights of citizens. We cannot expect citizens to have any affection towards a bad government. The law declared by the Privy Council was final, according to which even a gesture which indicates political hatred towards the government comes within the mischief of sedition. Obviously, sedition contained in Section 124A goes against Article 19(1)(a). However, the Supreme Court had, in an attempt to declare sedition constitutionally valid, admittedly adopted the Federal Court’s approach and held that Section 124A is valid but can be invoked only when the words or gestures have a tendency to incite violence. The Court was aware that sedition, as it is worded in Section 124A in IPC and interpreted by the Privy Council, could not have remained in the statute book after the Constitution came into force in 1950. The Court was also conscious of the fact that sedition, as a reasonable restriction on the right of speech and expression, was deleted from the draft Constitution by the Constituent Assembly. The implication was clear. Sedition was not meant to be a reasonable restriction. But the Court wanted to retain sedition because it was genuinely worried about an imminent communist revolution in the country, which Kedarnath, a local communist in Begu Sarai in Bihar was advocating. But, on a closer scrutiny, we will find that the position taken by the court in Kedarnath is not radically different from Tilak. As per Kedarnath, a tendency to incite disorder would amount to sedition, and actual disorder need not occur. So, in substance there is not much difference between Kedarnath and Tilak. The Law Commission has suggested that the tendency to incite disorder should be incorporated in Section 124A. The commission defines tendency as a slight inclination. It is a policeman who will detect the tendency to incite disorder in a speech or article, and the citizen will be behind bars for seven years or even for life. In fact, the Kedarnath judgment did not soften the law on sedition. If anything it has brought it closer to the judgment in Tilak without mitigating the rigour of the law. The recommendation for the enhancement of punishment defies common sense when there is a universal demand for the scrapping of this law. The commission could not see the absurdity of a law which punishes citizens of a democratic country for making comments which may cause disaffection towards a government which they have the power to remove. The real issue is that the law of sedition contained in Section 124A of the IPC is unconstitutional. The Law Commission failed or did not want to see the fallacy in the Kedarnath judgment which did not in effect soften this harsh law but declared that it is constitutionally valid. Kedarnath equates government with state, which is illogical in the context of a democratic republic. Therefore, its attempt to bring sedition within the framework of reasonable restriction under Article 19(2) is constitutionally impermissible.
english
A password will be e-mailed to you. பிக்பாஸ் 3 : மதுமிதா காப்பாற்றப்பட்டார்! பிரதமர் பதவி: பக்காத்தான் ஹாராப்பான் தலைவர்கள் நாட்டு நலனை கருத்தில் கொள்ள வேண்டும்! பினாங்கு பாலத்திலிருந்து விழுந்த பெண்மணி உயிருடன் மீட்பு! சிலாங்கூர் மாநில சட்டமன்ற உறுப்பினர்கள் சந்திப்புக்கூட்டம் அரசியல் நோக்கமற்றது! Selliyal.com is a creation to cater for the growing need for balanced and objective news and information in Tamil, English and Malay for the internet and mobile phone users particularly aimed at Malaysians. Contact us: Do reforms still exist under Madani’s government? © Copyright 2020 Selliyal.com. All Rights Reserved.
english
#include "base_timer_select.h" NS_BASE_BEGIN Select_Timer_handler::Select_Timer_handler() { } Select_Timer_handler::~Select_Timer_handler() { } int Select_Timer_handler::handle_timeout(void *args) { int nRet = 0; return nRet; } //----------------------------------------- Select_Timer::Select_Timer(): _handler(NULL) { } Select_Timer::~Select_Timer() { DELETE_POINTER(_handler); } int Select_Timer::register_timer_handler(Select_Timer_handler *handler, unsigned long interval) { int nRet = 0; if(handler == NULL) { printf("handler == NULL\n"); return -1; } if(_handler != NULL) { printf("already register timer handler ago.\n"); return -2; } if(interval == 0) { printf("interval == 0.\n"); return -3; } _sec = interval/1000000; _usec = interval%1000000; _handler = handler; return nRet; } int Select_Timer::svc() { int nRet = 0; timeval timeout; timeout.tv_sec = _sec; timeout.tv_usec = _usec; nRet = select(1, NULL, NULL, NULL, &timeout); if(nRet > 0) { } else if(nRet == 0) { //printf("select timeout, errno:%d, errmsg:%s\n", errno, strerror(errno)); _handler->handle_timeout(); } else { if(errno == EINTR) { printf("select is interrupt, errno:%d, errmsg:%s\n", errno, strerror(errno)); return 0; } else if(errno == EINVAL) { printf("nfds is negative or the value contained within timeout is invalid.\n"); return -1; } else { printf("select failed, errno:%d, errmsg:%s\n", errno, strerror(errno)); return -2; } } return 0; } NS_BASE_END
cpp
<reponame>Anteycu/goit-js-hw<gh_stars>0 const products = [ { name: "Радар", price: 1300, quantity: 4, }, { name: "Сканер", price: 2700, quantity: 3, }, { name: "Дроид", price: 400, quantity: 7, }, { name: "Захват", price: 1200, quantity: 2, }, ]; const getAllPropValues = function (arr, prop) { const findedValuesOfProps = []; for (let object of arr) { if (object[prop] === undefined) { findedValuesOfProps; } else { findedValuesOfProps.push(object[prop]); } } return findedValuesOfProps; }; console.log(getAllPropValues(products, "name")); // ['Радар', 'Сканер', 'Дроид', 'Захват'] console.log(getAllPropValues(products, "quantity")); // [4, 3, 7, 2] console.log(getAllPropValues(products, "category")); // []
javascript
<reponame>AHS-Open-Sorcery/Dryve<filename>DryveBackend/user.py from typing import List from request import * from trip import * from datetime import datetime class User: name: str id: str def __init__(self, name, _id): self.name = name self.id = _id self.requests = [] self.offers = [] def __eq__(self, other): return other.id == self.id def request_join(self, trip, pickup) -> Request: req = Request(self, trip, pickup) return req def make_offer(self, origin, dest, capacity: int, arrival: datetime): # -> Trip trip = Trip(origin, dest, self, capacity, arrival) return trip
python
#!/usr/bin/env python3 import os import argparse import numpy as np from sklearn import preprocessing from sklearn import datasets from tqdm import tqdm class Network(object): def __init__(self): self.linear1 = Linear(64, 128) self.relu1 = ReLU() self.linear2 = Linear(128, 64) self.relu2 = ReLU() self.linear3 = Linear(64, 10) def forward(self, x): out = self.relu1(self.linear1(x)) out = self.relu2(self.linear2(out)) out = self.linear3(out) return out def __call__(self, x): return self.forward(x) class Linear(object): def __init__(self, input_size, output_size): self.W = np.zeros((input_size, output_size)) self.cache = None self.reset_parameters() def forward(self, x): self.cache = x return x @ self.W def backward(self, grad): pass def reset_parameters(self): var = 1 / self.W.shape[0] self.W = np.random.normal(loc=0, scale=var, size=self.W.shape) def __call__(self, x): return self.forward(x) class ReLU(object): def __init__(self): self.cache = None def forward(self, x): self.cache = x return np.clip(x, a_min=0, a_max=None) def __call__(self, x): return self.forward(x) def softmax(X): """https://deepnotes.io/softmax-crossentropy""" exps = np.exp(X - np.max(X)) return exps / np.sum(exps) def cross_entropy(X, y): """https://deepnotes.io/softmax-crossentropy""" m = y.shape[0] p = softmax(X) log_likelihood = -np.log(p[range(m),y]) loss = np.sum(log_likelihood) / m return loss def main(args): data, target = datasets.load_digits(return_X_y=True) indices = np.arange(data.shape[0]) np.random.shuffle(indices) data, target = data[indices], target[indices] splits = (int(0.7 * data.shape[0]), int(0.9 * data.shape[0])) scaler = preprocessing.StandardScaler().fit(data[:splits[0]]) data = scaler.transform(data) train, val, test = zip(np.split(data, splits), np.split(target, splits)) net = Network() for epoch in range(args.epochs): pred = net(train[0]) loss = cross_entropy(pred, train[1]) import ipdb; ipdb.set_trace() if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--epochs", type=int, default=100) args = parser.parse_args() main(args)
python
The Indian squad for the most anticipated test series of the summer in England has been announced. All the big names featured including injury prone Sehwag though he might be joining the squad only after 2 weeks. But after showing a series of poor run in the first 3 innings in the Caribbean Murali Vijay and Virat Kohli have been axed out of the 17 member squad. The squad: MS Dhoni (capt), Gautam Gambhir (vice-captain), Virender Sehwag, Sachin Tendulkar, Rahul Dravid, VVS Laxman, Yuvraj Singh, Suresh Raina, Abhinav Mukund, Wriddhiman Saha, Harbhajan Singh, Amit Mishra, Zaheer Khan, Sreesanth, Munaf Patel, Ishant Sharma, Praveen Kumar. One cannot argue that a steady 48 saved the spot in England for the Abinav Mukund. Though he did not contribute in the first 3 innings, he looked solid and had the ability to adapt to the conditions quickly. That was something Vijay certainly lacked and it was a good decision to go with Mukund. Despite injury, Sehwag had his name in the list and definitely he would not want to miss out this all important tour. Yuvraj Singh is back into the playing 11 but his position still is under watch as Raina is just behind him. The bowling has been emphasized a little more this time and certainly Praveen Kumar could not be left out. Though Sreesanth, Munaf and Praveen will fight for one spot, there could be a chance for a 5th regular bowler too if the conditions demand so. I was about to say Kholi could silence critics and score a hundred after a good start on the 5th day’s play but sadly I had to type this seeing his dismissal and the selectors just had this in their mind in advance. Another twist in the tale is Saha who has been brought in as a reserve keeper when Parthiv Patel was chosen as the reserve keeper for the Caribbean test series. Probably, the net session could have influenced this choice and Duncan Flethcher could have played a major role. But Pujara has been definitely missing and he is a natural test player and impressed in his first test.
english
New Delhi: In a major step, the Indian Navy has recently deployed four women officers onboard its warships after a gap of around 23 years when lady officers were posted for the first time on the maritime force's vessels. "Four Indian navy women officers have been deployed recently on warships in recent times. Two of them are posted on the aircraft carrier INS Vikramaditya while two other are deployed on the tanker ship INS Shakti," an Indian Navy spokesperson told ANI on International Women's Day. For the first time in 1998, women officers started getting deployed onboard warships but the decision was changed soon after due to certain logistical and other issues. The lady officers were posted on two different warships recently. Women officers deployed onboard the tanker vessel INS Shakti include a doctor who said the Indian Navy has given her an opportunity to serve both as a doctor and onboard warship. "We work shoulder to shoulder with our male counterparts," the lady officers said. Indian Navy had started building separate cabins and toilets for women officers a few years ago on its warships to prepare the vessels for lady officers. The force also recently deployed a lady officer as the first women defence attache posted abroad. The lady officer is Lieutenant Commander Karabi Gogoi who is posted at Moscow as naval attache.
english
{ "values": [ "#retina:grass_shaped", "#retina:sugar_cane_like", "#minecraft:replaceable_plants", "#minecraft:small_flowers", "#minecraft:tall_flowers", "#minecraft:crops", "minecraft:cobweb" ] }
json
{ "vorgangId": "120324", "VORGANG": { "WAHLPERIODE": "13", "VORGANGSTYP": "Kleine Anfrage", "TITEL": "Rechtssicherheit beim Sponsoring (G-SIG: 13010771)", "INITIATIVE": "Fraktion BÜNDNIS 90/DIE GRÜNEN", "AKTUELLER_STAND": "Beantwortet", "SIGNATUR": "", "GESTA_ORDNUNGSNUMMER": "", "WICHTIGE_DRUCKSACHE": [ { "DRS_HERAUSGEBER": "BT", "DRS_NUMMER": "13/2103", "DRS_TYP": "Kleine Anfrage", "DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/13/021/1302103.pdf" }, { "DRS_HERAUSGEBER": "BT", "DRS_NUMMER": "13/2173", "DRS_TYP": "Antwort", "DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/13/021/1302173.pdf" } ], "EU_DOK_NR": "", "SACHGEBIET": "Öffentliche Finanzen, Steuern und Abgaben", "SCHLAGWORT": [ "Aids (Krankheit)", "Gemeinnützigkeit", "Gesetzgebung", { "_fundstelle": "true", "__cdata": "Sponsoring" }, "Steuerbefreiung", "Steuerpolitik" ], "ABSTRAKT": "Beurteilung des Sponsorings sozialer und kultureller Einrichtungen durch Wirtschaftsunternehmen, Vermeiden einer Besteuerung solcher Einnahmen bei mildtätigen oder gemeinnützigen Organisationen, Entscheidung des Berliner Finanzsenators <NAME> beim Sozio-Sponsoring der Firma PSI AG für die Berliner Aids-Hilfe, Vorlage eines Gesetzentwurfs zur Beseitigung der steuerrechtlichen Probleme " }, "VORGANGSABLAUF": { "VORGANGSPOSITION": [ { "ZUORDNUNG": "BT", "URHEBER": "Kleine Anfrage, Urheber : Fraktion BÜNDNIS 90/DIE GRÜNEN ", "FUNDSTELLE": "01.08.1995 - BT-Drucksache 13/2103", "FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/13/021/1302103.pdf", "PERSOENLICHER_URHEBER": { "VORNAME": "Volker", "NACHNAME": "Beck", "WAHLKREISZUSATZ": "Köln", "FUNKTION": "MdB", "FRAKTION": "BÜNDNIS 90/DIE GRÜNEN", "AKTIVITAETSART": "Kleine Anfrage" } }, { "ZUORDNUNG": "BT", "URHEBER": "Antwort, Urheber : Bundesregierung, Bundesministerium der Finanzen (federführend)", "FUNDSTELLE": "22.08.1995 - BT-Drucksache 13/2173", "FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/13/021/1302173.pdf" } ] } }
json
<reponame>lmislm/realtime-chat /** * Created by lmislm on 2018/3/1- 16:25. */ var moment = require('moment'); var momentTime = moment().valueOf(); var generateMessage = function (from, text) { return { from, text, createdAt: momentTime }; }; var generateLocationMessage = (from, latitude, longitude) => { return { from, //调用高德地图URI API https://ditu.amap.com/lng=126.5537929&lat=45.8686024 url: `https://ditu.amap.com/lng=${longitude}&lat=${latitude}`, createdAt: momentTime } } module.exports = {generateMessage, generateLocationMessage};
javascript
package env import ( "errors" "os" "os/user" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/newrelic/newrelic-diagnostics-cli/tasks" ) var ( fileOpenErrorString = "Mock file open error" getEnvVarsErrorString = "Mock GetEnvVars error" isUserAdminErrorString = "Mock IsUserAdmin failure" ) func mockFileOpenerFailure(name string) (*os.File, error) { return nil, errors.New(fileOpenErrorString) } func mockFileOpenerSuccess(name string) (*os.File, error) { return nil, nil } func mockGetEnvVarsSuccess() (tasks.EnvironmentVariables, error) { envVars := make(map[string]string) envVars["USERNAME"] = "Administrator" return tasks.EnvironmentVariables{ All: envVars, }, nil } func mockGetEnvVarsUsernameNotAdministrator() (tasks.EnvironmentVariables, error) { envVars := make(map[string]string) envVars["USERNAME"] = "User1" return tasks.EnvironmentVariables{ All: envVars, }, nil } func mockGetEnvVarsWithError() (tasks.EnvironmentVariables, error) { return tasks.EnvironmentVariables{}, errors.New(getEnvVarsErrorString) } func mockGetCurrentUser() (*user.User, error) { return &user.User{ Username: `Domain\MockUser`, }, nil } func mockIsUserAdminSuccess(username string, domain string) (bool, error) { return true, nil } func mockIsUserAdminFailure(username string, domain string) (bool, error) { return false, errors.New(isUserAdminErrorString) } func mockIsUserAdminNotAdmin(username string, domain string) (bool, error) { return false, nil } var _ = Describe("Base/Env/CheckWindowsAdmin", func() { var p BaseEnvCheckWindowsAdmin //instance of our task struct to be used in tests Describe("Execute()", func() { var ( result tasks.Result options tasks.Options upstream map[string]tasks.Result ) JustBeforeEach(func() { result = p.Execute(options, upstream) }) Context("when the file is opened successfully", func() { BeforeEach(func() { p.fileOpener = mockFileOpenerSuccess }) It("should return an expected success result status", func() { Expect(result.Status).To(Equal(tasks.Success)) }) }) Context("when there is an error opening the file and USERNAME is set to Administrator", func() { BeforeEach(func() { p.fileOpener = mockFileOpenerFailure p.getEnvVars = mockGetEnvVarsSuccess }) It("should return an expected success result status", func() { Expect(result.Status).To(Equal(tasks.Success)) }) }) Context("when there is an error opening the file and USERNAME is not Administrator but logged in user is an Admin", func() { BeforeEach(func() { p.fileOpener = mockFileOpenerFailure p.getEnvVars = mockGetEnvVarsUsernameNotAdministrator p.getCurrentUser = mockGetCurrentUser p.isUserAdmin = mockIsUserAdminSuccess }) It("should return an expected success result status", func() { Expect(result.Status).To(Equal(tasks.Success)) }) }) Context("when there is an error opening the file and an error getting env vars and logged in user is an Admin", func() { BeforeEach(func() { p.fileOpener = mockFileOpenerFailure p.getEnvVars = mockGetEnvVarsWithError p.getCurrentUser = mockGetCurrentUser p.isUserAdmin = mockIsUserAdminSuccess }) It("should return an expected success result status", func() { Expect(result.Status).To(Equal(tasks.Success)) }) }) Context("when there is an error opening the file and an error getting env vars and logged in user is not an Admin", func() { BeforeEach(func() { p.fileOpener = mockFileOpenerFailure p.getEnvVars = mockGetEnvVarsWithError p.getCurrentUser = mockGetCurrentUser p.isUserAdmin = mockIsUserAdminNotAdmin }) It("should return an expected warning result status", func() { Expect(result.Status).To(Equal(tasks.Warning)) }) It(`should return an expected error "`+fileOpenErrorString+`"`, func() { Expect(result.Summary).To(ContainSubstring(fileOpenErrorString)) }) It(`should return an expected error "`+getEnvVarsErrorString+`"`, func() { Expect(result.Summary).To(ContainSubstring(getEnvVarsErrorString)) }) }) Context("when there is an error opening the file and an error getting env vars and an error checking current user permissions", func() { BeforeEach(func() { p.fileOpener = mockFileOpenerFailure p.getEnvVars = mockGetEnvVarsWithError p.getCurrentUser = mockGetCurrentUser p.isUserAdmin = mockIsUserAdminFailure }) It("should return an expected warning result status", func() { Expect(result.Status).To(Equal(tasks.Warning)) }) It(`should return an expected error "`+fileOpenErrorString+`"`, func() { Expect(result.Summary).To(ContainSubstring(fileOpenErrorString)) }) It(`should return an expected error "`+getEnvVarsErrorString+`"`, func() { Expect(result.Summary).To(ContainSubstring(getEnvVarsErrorString)) }) It(`should return an expected error "`+isUserAdminErrorString+`"`, func() { Expect(result.Summary).To(ContainSubstring(isUserAdminErrorString)) }) }) }) })
go
<reponame>jdakowicz/js-exercise-01 /*header*/ .header-services { height: 500px; margin-bottom: 150px; padding-top: 265px; background: url(../img/Contact/contact.jpg) 50% 100% no-repeat; background-size: cover; } .header-services__text { text-align: center; } /*services section*/ .services__top, .pricing__top { width: 750px; height: 90px; margin: 0 auto 100px; text-align: center; } .services__top-title, .pricing__top-title { position: relative; } .services__top-title:before, .pricing__top-title:before { position: absolute; z-index: -1; content: ''; width: 67px; height: 22px; background: #7beec7; bottom: 3px; } .services__bottom { display: flex; margin-bottom: 151px; height: 365px; } .services__bottom__content { margin-right: 30px; } .services__bottom__content-text { font: 400 14px/30px 'Open Sans'; margin-bottom: 35px; } .services__listed1 { margin-right: 96px; } .services__bottom__lists { display: flex; } .services__listed-list, .pricing__bottom__services-list { list-style-type: none; font: 400 14px/30px 'Open Sans'; } .services__listed-list:before, .pricing__bottom__services-list:before { content: '\e80a'; padding-right: 10px; font-family: "fontello"; font-style: normal; font-weight: normal; color: #bdf7e3; } .features { height: 210px; margin-bottom: 149px; } .features > .inner { padding: 0; } .features__content { display: flex; } .features__content-list { position: relative; margin: 0 15px; list-style-type: none; text-align: center; } .features__content-list i { font-size: 34.3px; } .features__content-list:before { position: absolute; top: 28px; z-index: -1; content: ''; width: 52px; height: 22px; background: #7beec7; } .features__content-title { padding-top: 30px; font: 700 18px/30px 'Montserrat'; } .features__content-text { font: 400 14px/30px 'Open Sans'; } /*pricing section*/ .pricing > .inner { padding: 0; } .pricing__bottom { display: flex; justify-content: space-around; } .pricing__bottom-list { width: 360px; height: 490px; margin-bottom: 150px; padding: 30px 0 40px 30px; list-style-type: none; border-top: 5px solid #7beec7; background: linear-gradient(to bottom left, #7beec7 2%, white 1%); } .pricing__bottom-list:hover { box-shadow: 0 7px 12px 0 rgba(0, 0, 0, 0.4); } .pricing__bottom-list .link { width: 135px; margin-top: 30px; } .price { display: flex; justify-content: center; align-items: center; width: 165px; height: 30px; margin-bottom: 30px; background: #7beec7; } .price p { font: 700 14px/48px 'Montserrat'; color: #ffffff; } .pricing__bottom__services-list { line-height: 36px; } /* RWD */ @media (min-width: 700px) and (max-width: 1020px) { .header-services { height: 400px; margin-bottom: 100px; padding-top: 150px; } .services__top, .pricing__top { max-width: 650px; height: auto; margin: 0 auto 50px; } .services__bottom { display: block; height: auto; margin-bottom: 100px; } .services__bottom figure { text-align: center; } .services__bottom__content-text { max-width: 720px; margin: 0 auto; padding-bottom: 30px; text-align: center; } .services__bottom__lists { justify-content: space-around; margin-bottom: 30px; } .services__listed1 { width: 30%; margin-right: 0; } .services__listed2 { width: 30%; } } @media (max-width: 699px) { .features__content { display: flex; flex-wrap: wrap; } .services__top, .pricing__top { width: auto; margin: 0 auto 30px; } .pricing__bottom { display: flex; justify-content: space-around; flex-wrap: wrap; } .services__bottom { height: auto; } .services__bottom figure { display: none; } .services__bottom { height: auto; margin-bottom: 50px; } .services__bottom__content { margin-right: 0; } .services__listed1, .services__listed2 { width: 50%; margin: 0; } .services__bottom__lists { justify-content: space-around; } .features { height: auto; margin-bottom: 50px; } .features__content { flex-wrap: wrap; } .pricing__bottom-list { margin-bottom: 15px; } }
css
Rosie Motene is a Pan African Media proprietor, who holds a Bachelor of Arts in Dramatic Arts (Honours) from the University of the Witwatersrand. Rosie is an award-winning actor, TV and radio presenter, TV and film producer. She has also excelled as an author, global emcee, and speaker; voice-over artist. Rosie is also a production consultant and activist. Rosie is an accredited international laughter coach. Rosie is a talent manager and casting agent. Rosie Motene is a registered trademark under the South African: Trademark Application for Rosie Motene (word mark) + visual representation in class 14 as well as class 16 and 41, physical representation and her name. Rosie Motene is a registered trademark under the South African: Trademark Application for Rosie Motene (word mark) + visual representation in class 14 as well as class 16 and 41, physical representation and her name. Known for: How much have you seen? Keep track of how much of Rosie Motene’s work you have seen. Go to your list.
english
Microsoft has announced that the add-ons store is now open for its upcoming Chromium-based Edge browser and developers can begin submitting their own add-ons for approval. The software giant has been previewing a new version of its Edge browser, which will be powered by the popular Chromium rendering engine, for some time now and Windows 10 users will finally get to try the official version of the browser when it is rolled out via an over-the-air update on January 15, 2020. Desktop users have been reluctant to make the switch to Edge and have instead continued using either Google Chrome or Mozilla Firefox because of the fact that Microsoft's latest browser did not offer support for add-ons at launch. However, this will change with the launch of the Chromium version of Edge and the browser may finally be able to compete with its rivals. One of the biggest advantages of swapping out the old rendering engine for Chromium in Edge is the fact that its users will soon be able to easily install extensions built for Chrome. To do so, users will just need to open Edge's settings menu, select extensions and then enable the option to allow extensions from other stores. Google Chrome already has a massive library of extensions available with a large base of developers creating new extensions for the browser. Thankfully, porting these extensions over to Microsoft's add-ons store will not be too difficult as the company says that extensions built for Chromium “will work without any modifications in the new Microsoft Edge”. Microsoft Edge will likely see a big uptick in users next year as it will be available instantly in Windows 10 and users will finally be able to use the extensions their familiar with on other browsers. Developers interested in creating an add-on for Microsoft Edge or porting their existing extensions over to the new browser can find out more on Microsoft's site. Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed! After working with the TechRadar Pro team for the last several years, Anthony is now the security and networking editor at Tom’s Guide where he covers everything from data breaches and ransomware gangs to the best way to cover your whole home or business with Wi-Fi. When not writing, you can find him tinkering with PCs and game consoles, managing cables and upgrading his smart home.
english
import torch import numpy as np import torch.nn as nn from torch.utils.data import Dataset, DataLoader def binary_reg(x: torch.Tensor): # forward: f(x) = (x>=0) # backward: f(x) = sigmoid a = torch.sigmoid(x) b = a.detach() c = (x.detach() >= 0).float() return a - b + c class HIN2vec(nn.Module): def __init__(self, node_size, path_size, embed_dim, sigmoid_reg=False, r=True): super().__init__() self.reg = torch.sigmoid if sigmoid_reg else binary_reg self.__initialize_model(node_size, path_size, embed_dim, r) def __initialize_model(self, node_size, path_size, embed_dim, r): self.start_embeds = nn.Embedding(node_size, embed_dim) self.end_embeds = self.start_embeds if r else nn.Embedding(node_size, embed_dim) self.path_embeds = nn.Embedding(path_size, embed_dim) # self.classifier = nn.Sequential( # nn.Linear(embed_dim, 1), # nn.Sigmoid(), # ) def forward(self, start_node: torch.LongTensor, end_node: torch.LongTensor, path: torch.LongTensor): # assert start_node.dim() == 1 # shape = (batch_size,) s = self.start_embeds(start_node) # (batch_size, embed_size) e = self.end_embeds(end_node) p = self.path_embeds(path) p = self.reg(p) agg = torch.mul(s, e) agg = torch.mul(agg, p) # agg = F.sigmoid(agg) # output = self.classifier(agg) output = torch.sigmoid(torch.sum(agg, axis=1)) return output def train(log_interval, model, device, train_loader: DataLoader, optimizer, loss_function, epoch): model.train() for idx, (data, target) in enumerate(train_loader): data, target = data.to(device), target.to(device) optimizer.zero_grad() output = model(data[:, 0], data[:, 1], data[:, 2]) loss = loss_function(output.view(-1), target) loss.backward() optimizer.step() if idx % log_interval == 0: print(f'\rTrain Epoch: {epoch} ' f'[{idx * len(data)}/{len(train_loader.dataset)} ({100. * idx / len(train_loader):.3f}%)]\t' f'Loss: {loss.item():.3f}\t\t', # f'data = {data}\t target = {target}', end='') print() class NSTrainSet(Dataset): """ 完全随机的负采样 todo 改进一下? """ def __init__(self, sample, node_size, neg=5): """ :param node_size: 节点数目 :param neg: 负采样数目 :param sample: HIN.sample()返回值,(start_node, end_node, path_id) """ print('init training dataset...') l = len(sample) x = np.tile(sample, (neg + 1, 1)) y = np.zeros(l * (1 + neg)) y[:l] = 1 # x[l:, 2] = np.random.randint(0, path_size - 1, (l * neg,)) x[l:, 1] = np.random.randint(0, node_size - 1, (l * neg,)) self.x = torch.LongTensor(x) self.y = torch.FloatTensor(y) self.length = len(x) print('finished') def __getitem__(self, index): return self.x[index], self.y[index] def __len__(self): return self.length if __name__ == '__main__': ## test binary_reg print('sigmoid') a = torch.tensor([-1.,0.,1.],requires_grad=True) b = torch.sigmoid(a) c = b.sum() print(a) print(b) print(c) c.backward() print(c.grad) print(b.grad) print(a.grad) print('binary') a = torch.tensor([-1., 0., 1.], requires_grad=True) b = binary_reg(a) c = b.sum() print(a) print(b) print(c) c.backward() print(c.grad) print(b.grad) print(a.grad)
python
Two former White House aides are expected to testify at the House Jan. 6 committee's prime-time hearing Thursday as the panel examines what Donald Trump was doing as his supporters broke into the Capitol, according to a person familiar with the plans. Matthew Pottinger, former deputy national security adviser, and Sarah Matthews, a former press aide, are expected to testify, according to the person, who was not authorised to publicly discuss the matter and requested anonymity. Both Pottinger and Matthews resigned immediately after the Jan. 6, 2021, insurrection that interrupted the congressional certification of President Joe Biden's victory. The two witnesses will add to the committee's narrative in its eighth, and possibly final, hearing this summer. The prime-time hearing will detail what Trump did or did not do during several hours that day as his supporters beat police officers and broke into the Capitol. Previous hearings have detailed chaos in the White House and aides and outsiders were begging the president to tell the rioters to leave. But he waited more than three hours to do so, and there are still many unanswered questions about what exactly he was doing and saying as the violence unfolded. A spokesperson for the committee declined to comment. Lawmakers on the nine-member panel have said the hearing will offer the most compelling evidence yet of Trump's dereliction of duty" that day, with witnesses detailing his failure to stem the angry mob. We have filled in the blanks, Rep. Adam Kinzinger, R-Ill. , a member of the House committee investigating the riot who will help lead Thursday's session, said Sunday. "This is going to open people's eyes in a big way. The president didn't do very much but gleefully watch television during this timeframe, he added. Throughout its yearlong investigation, the panel has uncovered several details regarding what the former president was doing as a mob of rioters breached the Capitol complex. Testimony and documents revealed that those closest to Trump, including his allies in Congress, Fox News anchors and even his own children, tried to persuade him to call off the mob or put out a statement calling for the rioters to go home. At one point, according to testimony, Ivanka Trump went to her father to plead with him personally when those around him had failed to get through. All those efforts were unsuccessful. Thursday's hearing will be the first in the prime-time slot since the June 9 debut that was viewed by an estimated 20 million people. The hearing comes nearly one week after committee members received a closed briefing from the watchdog for the Department of Homeland Security after it was discovered that the Secret Service had deleted text messages sent and received around Jan. 6. Shortly after, the committee subpoenaed the agency, seeking all relevant electronic communication from agents around the time of the attack. The deadline for the Secret Service to respond is Tuesday. Committee member Rep. Zoe Lofgren, D-Calif. , told The Associated Press on Monday that the Secret Service informed them it will turn over records within the requirements of the subpoena. (Only the headline and picture of this report may have been reworked by the Business Standard staff; the rest of the content is auto-generated from a syndicated feed. )
english
{ "title": { "zh": "中文分类", "en": "Category" }, "demos": [{ "filename": "rose.js", "title": { "zh": "南丁格尔玫瑰图", "en": "" }, "screenshot": "https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*kjt6Ro31ugcAAAAAAAAAAABkARQnAQ" }, { "filename": "color-rose.js", "title": { "zh": "多色南丁格尔玫瑰图", "en": "" }, "screenshot": "https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*9NEvS7uOrUMAAAAAAAAAAABkARQnAQ" }, { "filename": "donut-rose.js", "title": { "zh": "南丁格尔玫瑰环图", "en": "" }, "screenshot": "https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*T62aT6hOD2MAAAAAAAAAAABkARQnAQ" }, { "filename": "rose-ranged.js", "title": { "zh": "玫瑰图-限定角度范围", "en": "" }, "screenshot": "https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*tj_YSL7tCbAAAAAAAAAAAABkARQnAQ" }] }
json
["tebobok", "perei", "manas", "empunggas", "basah renyah", "gaok", "ngegeh", "empunok", "rungak", "engkodok kodok", "ari marek", "dudi", "pakey", "serey", "betebak", "sigek", "tiga igek", "mikik", "tersimbak", "nungo", "ucak", "perempan", "lesin", "enceber", "bedengah", "empusak", "melak", "leput", "enceret", "sidak nya", "nginang", "anang mancalmancal", "engkiluk engkilu'", "perauk", "ranggat", "nekik", "sitok", "ngindin", "singkol", "iboh", "kerepei", "nangga", "mongan", "ngancak", "itok", "engon ngengon ngibun", "engkalang", "maok", "manok", "empengo", "kedey", "labek", "empesut", "kecik omeng", "mutit", "mbekop", "malat", "agik", "isak", "asuk", "angol", "emperas", "pandok", "duak igek", "polah", "bakok", "engkuas", "tergelei", "ladin", "empawak", "golom", "engkalak", "kedak", "empango", "engtingal", "tupey", "sepetar", "empigit", "pusak", "beladin", "meleweh", "jaik", "entui", "sandit", "dolok", "nok ya", "kinektok", "kemaik", "lambey", "kamah remah", "tauk", "empak", "kerak boleng", "jemperong", "entingal", "pangkong", "njeren", "lejuk", "majoh", "sine", "gago", "engkodok", "lebur laur", "tedah", "bedok", "entingai entingal", "monyeng", "tauk sik kitak", "tebik", "jerak palak jerak ekor", "kunyap", "kajeron", "paluk", "kedehak", "tuyuk", "tukuk", "mandok", "enjok ngenjok", "pusuk", "ngeledin", "puror", "pozer", "nyerin", "empungas", "empeyak", "terbelak", "juruk", "emperong", "lempam", "berabi", "tertilit", "inggar", "semun", "bersusei", "engkalan", "congek", "bujat", "engkolang", "sinun", "mejus", "ponek", "sik ada", "kamek", "jungka", "menjus", "meranto", "selauk", "nembiak kecik", "enjeren", "pebulak", "pisok", "lempak", "nyering", "ngereco", "tunggah", "engkarung", "jeraya", "menyin", "engkelan", "mukol", "paloi", "ngando", "pesit", "dibah", "dabey", "jabei", "kenjet", "plente", "sekoh", "kapbot", "kenak", "bulak", "enjalak", "gadong", "empudai", "kamah", "mansang", "kenjit", "merinsak", "sebot", "mengambor", "nerais", "kitak", "kalas", "bungas", "jeraya leboh", "kayokayo", "ngerepak", "cali", "ngelepar", "sekda", "tunok", "ceridak"]
json
use crate::models; use crate::result::{Error, Result}; use crate::storage::Storage; use crate::updates::tg::TelegramSource; use crate::updates::UpdatesHandler; use async_trait::async_trait; use tg_collector::types::TelegramUpdate; #[async_trait] impl<S> UpdatesHandler<TelegramUpdate> for TelegramSource<S> where S: Storage + Send + Sync, { async fn create_source(&self, updates: &TelegramUpdate) -> Result<models::Source> { match updates { TelegramUpdate::FileDownloadFinished(_) => Err(Error::UpdateNotSupported( "FileDownloadFinished".to_string(), )), TelegramUpdate::Message(message) => { self.collector .read() .await .join_chat(&message.chat_id) .await?; let chann = self .collector .read() .await .get_channel(message.chat_id) .await?; if chann.is_none() { return Err(Error::SourceNotFound); } Ok(self .storage .save_sources(vec![chann.unwrap().into()]) .await? .pop() .unwrap()) } } } async fn process_updates(&self, updates: &TelegramUpdate) -> Result<usize> { match updates { TelegramUpdate::FileDownloadFinished(file) => { self.handle_file_downloaded(file).await?; Ok(1) } TelegramUpdate::Message(message) => { let mut sources = self .storage .search_source(message.chat_id.to_string().as_str()) .await?; let source = match sources.len() { 0 => self.create_source(updates).await?, _ => sources.pop().unwrap(), }; let message_id = message.message_id; let created = self .storage .save_records(vec![models::NewRecord { title: None, image: None, date: message .date .map(|d| chrono::NaiveDateTime::from_timestamp(d.into(), 0)), source_record_id: message_id.to_string(), source_id: source.id, content: message.content.clone().unwrap_or_default(), }]) .await? .pop(); match created { None => { if message.files.is_some() { debug!( "skip reaction for a file because record is not new; message: {:?}", message.files ); }; Ok(0) } Some(rec) if message.files.is_some() => { let files = message.files.as_ref().unwrap(); let (handle_file, handle_record) = tokio::join!( self.handle_new_files(files, rec.id), self.handle_record_inserted( message.chat_id, message_id, vec![(rec.source_record_id, rec.source_id)], ) ); match handle_file { Ok(_) => {} Err(e) => { error!("{}", e); } }; Ok(handle_record?) } Some(rec) if message.files.is_none() => Ok(self .handle_record_inserted( message.chat_id, message_id, vec![(rec.source_record_id, rec.source_id)], ) .await?), Some(_) => unreachable!("unexpected file: {:?}", message.files), } } } } }
rust
{ "id": 11724, "source": "ellicott", "verse_id": 18768, "verse_count": 1, "reference": "57:2", "title": "", "html": " <p> (2) He shall enter into peace . . .\u2014Notice- able as presenting the brighter side of the dim thoughts of Israel as to the life behind the veil, and so far contrasted with Hezekiah\u2019s shrinking fear. (Comp. <a class=\"ref\">Job 3:17<\/a>.) For the righteous there was peace in death as in life. For the wicked there was peace in neither (<a class=\"isa\" verses=\"WzE4Nzg3XQ==\">Isaiah 57:21<\/a>). <\/p> \n <p>They shall rest in their beds.\u2014The \u201cbed\u201d is obviously the grave, the thought following naturally on that of death being as the sleep \u201cafter life\u2019s fitful fever.\u201d (<a class=\"ref\">Ezekiel 32:25<\/a>.) <\/p> \n <p>Each one walking in his uprightness.\u2014Better, every one who has walked straight before him\u2014has taken, i.e., the straight path of duty (<a class=\"isa\" verses=\"WzE4MjM5XQ==\">Isaiah 30:21<\/a>.) <\/p> ", "audit": null }
json
var trajectoryStartingEdges = {}; function getLargestUnitCount(cy){ var biggestUnitCount = 0; cy.nodes().forEach(function( ele ){ var unitValuesDict = parseActionString(ele.data()); var currUnitCount = getNumberOfColumns(unitValuesDict); if (currUnitCount > biggestUnitCount){ biggestUnitCount = currUnitCount; } }); console.log("biggest unit count = " + biggestUnitCount); return biggestUnitCount; } // action_max present == friendly action, action_min present== enemy action //friendly does work for enemy actions - enemy key only references enemy state. For enemy action nodes the friendly max value is // taken from the perspective of the enemy actually being the friendly. function getNumberOfColumns(unitValuesDict){ var unitValuesDictEnemy = undefined; var maxActionTakenEnemy = undefined; var enemyMaxValue = undefined; if ("Enemy" in unitValuesDict){ // have to null out this value to prevent a dictionary from being interpreted as a value (it was made a dictionary to enable code reuse) unitValuesDictEnemy = JSON.parse(JSON.stringify(unitValuesDict["Enemy"])); unitValuesDict["Enemy"] = null; } var maxActionTaken = Object.keys(unitValuesDict).reduce(function(a, b){ return unitValuesDict[a] > unitValuesDict[b] ? a : b }); var maxValue = unitValuesDict[maxActionTaken]; if ("Enemy" in unitValuesDict){ maxActionTakenEnemy = Object.keys(unitValuesDictEnemy).reduce(function(a, b){ return unitValuesDictEnemy[a] > unitValuesDictEnemy[b] ? a : b }); enemyMaxValue = unitValuesDictEnemy[maxActionTakenEnemy]; if (enemyMaxValue > maxValue){ if (enemyMaxValue < 5){ return 5; } return enemyMaxValue; } else{ if (maxValue < 5){ return 5; } return maxValue; } } else{ if (maxValue < 5){ return 5; } return maxValue; } } function parseActionString(data){ var unitValuesDict = getStateAndActionValues(data); return unitValuesDict; } // html id's don't allow parens. Xian only removed the parens from one instance, not the duplicate, so we mop up. function trimBestNotationDuplicate(id){ var index = id.indexOf("(best)"); if (index != -1){ } return id; } function isNodeInCynodeList(node, cynodeList){ for (var i in cynodeList){ var cyNode = cynodeList[i]; var cyNodeId = cyNode["data"]["id"]; var nodeId = node["data"]["id"]; if (nodeId == cyNodeId){ return true; } } return false; } function gatherEnemyActionNodes(nodes){ var result = []; for (var i in nodes){ var node = nodes[i]; if (node["data"]["sc2_nodeType"] == "enemyAction"){ result.push(node); } } return result; } function restateLayout(cy){ cy.style().fromString(treeStyle).update() var layout = cy.layout(treeLayout); layout.run(); } var actionButtonIds = []; function generateNodeActionMenu(id, dp){ var div = document.getElementById(id); var bigDPDiv = document.createElement("div"); bigDPDiv.setAttribute("id", "big-dp-for-tree"); bigDPDiv.setAttribute("style", "margin:auto;padding:10px;"); var svgForBigDP = getSVGDP('big-dp-for-tree-svg', 85, 85, 35, dp, 0); bigDPDiv.innerHTML = svgForBigDP; div.append(bigDPDiv); //$("#" + id).css("visibility", "hidden"); $("#" + id).css("padding", "12px"); $("#" + id).css("background-color", "#E0E0E0"); var nodeActionsLabel = document.createElement("LABEL"); nodeActionsLabel.setAttribute("id", "node-actions-label"); nodeActionsLabel.innerHTML = "Node Actions"; div.append(nodeActionsLabel); $("#node-actions-label").css("font-size", "30px"); $("#node-actions-label").css("text-align", "center"); $("#node-actions-label").css("padding", "0px"); var nextBestActionId = "next-best-action-button"; var nextBestActionButton = getNodeActionButton(nextBestActionId, "Show next best action", showNextBestAction); div.append(nextBestActionButton) decorateNodeActionButton(nextBestActionId); actionButtonIds.push(nextBestActionId); // var nextBestFutureId = "next-best-future-button"; // var nextBestFutureButton = getNodeActionButton(nextBestFutureId, "Show next best future", showNextBestFuture); // div.append(nextBestFutureButton) // decorateNodeActionButton(nextBestFutureId); // actionButtonIds.push(nextBestFutureId); var expandPvId = "expand-pv-button"; var expandPvButton = getNodeActionButton(expandPvId, "Expand future", expandFuture); div.append(expandPvButton) decorateNodeActionButton(expandPvId); actionButtonIds.push(expandPvId); var hideNodeId = "hide-node-button"; var hideNodeButton = getNodeActionButton(hideNodeId, "Hide node", hideNode); div.append(hideNodeButton) decorateNodeActionButton(hideNodeId); actionButtonIds.push(hideNodeId); var hidePvId = "hide-pv-button"; var hidePvButton = getNodeActionButton(hidePvId, "Hide future", hideFuture); div.append(hidePvButton) decorateNodeActionButton(hidePvId); actionButtonIds.push(hidePvId); } function getNodeActionButton(id, buttonText, f){ var b = document.createElement("button"); b.setAttribute("id", id); b.setAttribute("width", "200px"); var text = document.createTextNode(buttonText); b.appendChild(text); b.onmousedown = function(){ depressButton(id); }; b.onmouseup = function(){ undepressButton(id); f() }; return b; } function decorateNodeActionButton(id){ var sel = "#" + id; $(sel).css("margin", "3px"); $(sel).css("border-width", "1px"); $(sel).css("opacity", "1.0"); $(sel).css("color", "white"); $(sel).css("font-family", "Arial"); $(sel).attr("disabled", "true"); colorButtonDisabled(id); } function checkMenuAvailibleActions(currFocusNode){ var actionButtonsToBeActivted = []; if ( currFocusNode.hasClass("principalVariation") == false || (currFocusNode.hasClass("principalVariation") == true && currFocusNode.hasClass("stateNode") == true)){ if (currFocusNode.data("id").indexOf("_max") != -1){ if (currFocusNode.outgoers().targets().size() > 0){ if (isTreatmentModelBased()){ actionButtonsToBeActivted.push("hide-node-button"); $('#hide-pv-button').css("display","block"); $('#expand-pv-button').css("display","block"); actionButtonsToBeActivted.push("hide-pv-button"); } else{ $('#hide-pv-button').css("display","none"); actionButtonsToBeActivted.push("hide-node-button"); } } else{ if (isTreatmentModelBased()){ $('#expand-pv-button').css("display","block"); $('#hide-pv-button').css("display","block"); actionButtonsToBeActivted.push("expand-pv-button"); actionButtonsToBeActivted.push("hide-node-button"); } else{ $('#hide-pv-button').css("display","none"); $('#expand-pv-button').css("display","none"); actionButtonsToBeActivted.push("hide-node-button"); } } } else if (currFocusNode.data("id").indexOf("state") != -1){ if (currFocusNode.outgoers().targets().size() != currFocusNode.data("sc2_cyChildren").length){ if (isTreatmentModelBased()){ $('#expand-pv-button').css("display","block"); $('#hide-pv-button').css("display","block"); actionButtonsToBeActivted.push("next-best-action-button"); } else{ $('#hide-pv-button').css("display","none"); $('#expand-pv-button').css("display","none"); actionButtonsToBeActivted.push("next-best-action-button"); } } } } return actionButtonsToBeActivted; } function isStateNode(data){ // special case for unit tests where id is located somewhere else., too hard to change in the unit tests given implementation // try { // var id = data.id; // var testDataNodeDepth = id.split(".").length - 1; // if (testDataNodeDepth == 0 || testDataNodeDepth == 3){ // return true; // } // return false; // } // catch{ // var id = data.id if (data.id.indexOf("state") != -1){ return true; } return false; // } } function isFriendlyActionNode(data){ // special case for unit tests where id is located somewhere else., too hard to change in the unit tests given implementation // try { // var id = node.id; // var testDataNodeDepth = id.split(".").length - 1; // if (testDataNodeDepth == 1 || testDataNodeDepth == 4){ // return true; // } // return false; // } // catch{ // var id = data.id if (data.id.indexOf("action_max") != -1){ return true; } return false; // } } function isEnemyActionNode(data){ // special case for unit tests where id is located somewhere else., too hard to change in the unit tests given implementation // try { // var id = node.id; // var testDataNodeDepth = id.split(".").length - 1; // if (testDataNodeDepth == 2){ // return true; // } // return false; // } // catch{ // var id = data.id if (data.id.indexOf("action_min") != -1){ return true; } return false; // } } function getBestScoreSibling(nodes) { var bestQValueNode = undefined; for (var nodeIndex in nodes){ var node = nodes[nodeIndex]; if (bestQValueNode == undefined){ bestQValueNode = node; } else{ try{ var nodeQValue = node.data("best q_value"); var bestNodeQValue = bestQValueNode.data("best q_value"); if (nodeQValue > bestNodeQValue){ bestQValueNode = node; } } catch(error){ var nodeQValue = node["data"]["best q_value"]; var bestNodeQValue = bestQValueNode["data"]["best q_value"] if (nodeQValue > bestNodeQValue){ bestQValueNode = node; } } } } return bestQValueNode; } function getWorstScoreSibling(nodes) { var worstQValueNode = undefined; for (var nodeIndex in nodes){ var node = nodes[nodeIndex]; if (worstQValueNode == undefined){ worstQValueNode = node; } else{ try{ var nodeQValue = node.data("best q_value"); var worstNodeQValue = worstQValueNode.data("best q_value"); if (nodeQValue < worstNodeQValue){ worstQValueNode = node; } } catch(error){ var nodeQValue = node["data"]["best q_value"]; var worstNodeQValue = worstQValueNode["data"]["best q_value"] if (nodeQValue < worstNodeQValue){ worstQValueNode = node; } } } } return worstQValueNode; }
javascript
- (1936 - 1947) Active on Broadway in the following productions: - (1936) Stage Play: The Women. Comedy. Written by Clare Boothe Luce. Scenic Design by Jo Mielziner. Ethel Barrymore Theare: 26 Dec 1936- Jul 1938 (closing date unknown/675 performances). Cast: Charita Bauer (as "Little Mary"), Eloise Bennett (as "Euphie"), Eileen Burns (as "Miss Fordyce")), Jessie Busley (as "Mrs. Morehead"), Mary Cecil (as "Maggie") [final Broadway role], Ilka Chase, Virgilia Chew (as "Miss Watts"), Audrey Christie (as "Miriam Aarons"), Beatrice Cole (as "Second Model"), Doris Day [not the Doris Day of later movie fame] (as "First Saleswoman"), Margaret Douglass (as "Countess de Lage"), Lucille Fenton (as "Head Saleswoman/A Nurse"), Arlene Francis, Margalo Gillmore (as "Mary, Mrs. Stephen Haines"), Ruth Hammond (as "Olga"), Joy Hathaway (as "A Fitter"), Anne Hunter (as "Exercise Instructress"), Ethel Jackson (as "Mrs. Wagstaff"), Betty Lawford (as "Crystal Allen"), Marjorie Main (as "Lucy"), Adrienne Marden (as "Peggy, Mrs. John Day"), Jane Moore (as "Second Hairdresser"), Mary Murray (as "Miss Trimmerback"), Lillian Norton (as "Cigarette Girl"), Phyllis Povah, Jean Rodney (as "Second Saleswoman"), Jane Seymour (as "Nancy Blake"), Mary Stuart (as "First Hairdresser"), Ann Teeman (as "Jane"), Martina Thomas (as "Third Saleswoman"), Beryl Wallace, Ann Watson (as "Pedicurist"), Marjorie Wood (as "Sadie"). Replacement actors: Claire Carleton (as "Crystal Allen"), Jeanne Cooley (as "Second Saleswoman"), Marjorie Dalton (as "Third Saleswoman"), Edith Gresham (as "Countess de Lage"), Gladys Griswold (as "Miriam Aarons"), Enid Markey (as "Olga"), Lillian Norton (as "Second Hairdresser"), Ethel Remey (as "Lucy"), Tanya Sanina (as "Helene/Princess Tamara"), Jacqueline Susann (as "First Model") [Broadway debut]. Produced by Max Gordon. Note: Filmed as The Women (1939), The Women (1955). - (1938) Stage Play: The Girl from Wyoming. Musical. Book by J. Van Ostend Van Antwerp. Music by J. Van Ostend Van Antwerp. Directed by Robert Ross. American Music Hall: 29 Oct 1938- 22 Jan 1939 (86 performances). Cast: Duncan Baldwin (as "Cow Hand"), Norman Barcliff (as "Cow Hand"), Alfred Brower (as "Cow Hand"), Jack Goldie (as "Bartender"), Bruce Gordon (as "Cow Hand"), Billy M. Greene (as "Sheriff Peters"), Anne Hunter (as "Chiquori"), Philip Huston (as "Ben Longwood"), Tony Kraber (as "Sleepy, a cowboy"), Mary La Roche (as "Cow Belle"), Donald MacDonald (as "Alkali, a prospector"), Irene Mann (as "Cow Belle"), Ruth Mann (as "Cow Belle"), George Petrie (as "Marcy Desmond"), Sherrand Pollard (as "Cow Belle"), Jack Riley (as "Cow Hand"), James Russo (as "Pedro"), Polly Smiley (as "Cow Belle"), Walter Smith (as "Cow Hand"), Jacqueline Susann [credited as Jackie Susanne] (as "Cow Belle"), Nellie Thorne (as "Mrs. Longwood"), June Walker (as "The Girl from Wyoming"). Produced by John Krimsky and Jerrold Krimsky. - (1941) Stage Play: My Fair Ladies. Comedy. Written by Arthur L. Jarrett, Marcel Klauber. Scenic Design by Watson Barratt. Directed by Albert Lewis. Hudson Theatre: 23 Mar 1941- 19 Apr 1941 (32 performances). Cast: Tom Coley (as "Ned Tate"), Vincent Donehue (as "Philip Gage"), Alfred Etcheverry (as "Tony Stiles"), Charles Furcolowe (as "Max"), Betty Furness (as "Lady Palfrey-Stuart"), Toni Gilman (as "Joyce Gage"), Russell Hardie (as "Richard Tolliver"), Celeste Holm (as "Lady Keith-Odlyn"), Otto Hulett (as "Driscoll "Happy" Felton"), Lionel Ince (as "Captain Lake"), Ethel Morrison (as "Mrs. Belden S. Stiles"), Randolph Preston (as "Finnegan"), Mary Sargent (as "Helen Gage"), Jacqueline Susann (as "Miss Grumley"), Henry Vincent (as "Griggs"), Barry O'Moore (as "Henry Gage"). Produced by Albert Lewis and Max Siegel. - (1941) Stage Play: Banjo Eyes. Musical comedy. Music by Vernon Duke. Material by Joseph Quillan and Irving Elinson [credited as Izzy Elinson]. Lyrics by John La Touche. Additional lyrics by Harold Adamson. Based on "Three Men on a Horse" by John Cecil Holm and George Abbott. "We Did It Before" by Charles Tobias and Cliff Friend. Orchestrations supervised by Domenico Savino. Music arranged by Domenico Savino and Charles L. Cooke. Vocal arrangements by Buck Warnick. The De Marco's arrangements by Alan Moran. Featuring songs by George Sumner. Costume Design by Irene Sharaff. Lighting Design by Hassard Short (also director). Hollywood Theatre: 25 Dec 1941-12 Apr 1942 (126 performances). Cast: Eddie Cantor (as "Erwin Trowbridge"), Ray Arnett, E.J. Blunkall, Betty Boyce, Norma Brown, Audrey Christie, June Clyde, Jimmy Corke, Kay Coulter, Ronnie Cunningham, Sally De Marco, Tony De Marco, Doris Dowling, Clark Eggleston, Carle Erbele, John Ervin, James Farrell, Florence Foster, Kate Friedlich, Chick Gagnon, Grace Gilren, Anne Graham, Arthur Grahl, Linda Griffeth, Miriam Gwinn, Ray Harrison, Doug Hawkins, Mitzi Haynes, Peggy Ann Holmes, Virginia Howe, Helene Hudson, Adele Jergens, Bill Johnson, Ray Johnson, Doris Kent, George Lovesee, Lynn, Royce and Vanya, Lynn Malone, Rayford Malone, Joseph Malvin, Remi Martell, Ray Mayer, Morton Mayo (as "Banjo Eyes"), Virginia Mayo (as "Ginger, The Girl with 'Banjo Eyes'"), John McCord, Jack Nagle, Leona Olsen, George Richmond, Tina Rigat, Richard Rober, Sherry Shadburne, Phil Shafer, Billy Skipper Jr., Puddy Smith, Lionel Stander (as "Patsy"), Jacqueline Susann (as "Miss Clark"), Shirl Thomas, Marie Vanneman, Mimi Walthers, Ray Weamer, Evelyn Weiss, Audrey Westphal, Tommy Wonder, Margie Young. Produced by Albert Lewis. - (1943) Stage Play: Blossom Time. Musical comedy/operetta (revival). Music by Sigmund Romberg. Lyrics by Dorothy Donnelly. Book by Dorothy Donnelly. Adapted from the Viennese singspiel "Das Dreimaderlhaus" by: Dr. A.M. Willner and Heinz Reichert. Based on the novel "Schwammerl" by: Rainer Bartsch. Music adapted and augmented from the melodies of: Franz Schubert. Music selected and arranged by: Heinrich Berte. Musical Director: Pierre De Reeder. Choreographed by Carthay. Directed by J.J. Shubert. Ambassador Theatre: 4 Sep 1943- 9 Oct 1943 (47 performances). Cast: Helene Arthur (as "Bella Bruna"), Lola Balser (as "Dancer"), Roy Barnes (as "Vogel"), George Beach (as "Erkmann"), Adelaide Bishop (as "Fritzi"), Greta Borjosen (as "Dancer"), Robert Chisholm (as "Count Sharntoff"), Nord Cornell (as "Kuepelweiser"), Roy Cropper (as "Baron Franz Schober"), Pamela Dow (as "Mrs. Coberg"), Alice Drake (as "Waiter"), Jay Flower (as "Chorus"), Alexander Gray (as "Franz Schubert"), Mary Grey (as "Dancer"), Jacqueline Jacoby (as "Dancer"), Walter Johnson (as "Domeyer/Waiter"), Douglas Leavitt (as "Kranz"), Helena LeBerthon (as "Rose"), Loraine Manners (as "Kitzi"), Marcella Markham (as "Chorus"), Virginia Meyer (as "Dancer"), George Mitchell (as "Von Schwind"), Monna Montes (as "Dancer"), Harry K. Morton (as "Novotny"), John O'Neill (as "Binder"), Zella Russell (as "Mrs. Kranz"), Barbara Scully (as "Mitzi"), Frances Spelz (as "Dancer"), Gloria Sterling (as "Chorus"), Vira Stowe (as "Chorus"), Jacqueline Susann (as "Greta"), Helen Thompson (as "Flower Girl"), Aura Vainio (as "Dancer"), Edith Vincent (as "Chorus"). Produced by The Shuberts. Note: This was the 5th (and latest as of 2010) revival of the venerable musical comedy/operetta that first debuted in 1921. The first revival in 1924 enjoyed a remarkable 592 performance run, with subsequent revivals all financial flops. - (1944) Stage Play: Jackpot. Musical comedy. Music by Vernon Duke. Lyrics by Howard Dietz. Based on material by Guy Bolton, Sidney Sheldon and Ben Roberts. Musical Direction by Max Meth. Vocal arrangements by Clay Warnick. Music arranged by Hans Spialek, Robert Russell Bennett and Vernon Duke. Choreography by Lauretta Jefferson and Charles Weidman. Directed by Roy Hargrave. Alvin Theatre: 13 Jan 1944- 11 Mar 1944 (69 performances). Cast: Benny Baker, Robert Beam, Connie Constant, Wendell Corey (as "Sergeant Naylor"), Althea Elder, Nanette Fabray (as "Sally Madison"), Betty Garrett (as "Sgt. Maguire"), John Hamill, Flower Hujer, Allan Jones (as "Hank Trimble"), Bill Jones, Ben Lackland (as "Bill Bender"), Jerry Lester, Walter Monroe, Houston Richards (as "Dexter De Wolf"), Sherry Shadburne, Morton Stevens (as "Mr. Dill"), Drucilla Strain, Betty Stuart, Jacqueline Susann (as "Edna"), Edith Turgell, Mary Wickes (as "Nancy Parker"), Billie Worth. Produced by Vinton Freedley. - (1945) Stage Play: A Lady Says Yes. Musical. Music by Fred Spielman and Arthur Gershwin. Book by Clayton Ashley. Lyrics by Stanley Adams. Featuring songs with lyrics by Bud Burton. Musical Director: Ving Merlin. Scenic Design by Watson Barratt. Choreographed by Boots McKenna. Ballets choreographed by Natalie Kamarova. Broadhurst Theatre: 10 Jan 1945- 25 Mar 1945 (87 performances). Cast: Lucas Aco (as "Dancer"), Jack Albertson (as "Dr. Bartoli"), Jack Allen (as "Dancer"), Cristine Ayres (as "Christine"), Doris Brent (as "Ensemble"), Jan Brooks (as "Ensemble"), Fred Catania (as "Killer Pepoli"), Pittman Corry (as "Captain Gordon/Captain Desiri"), Madeleine Detry (as "Dancer"), Blanche Grady (as "Third Nurse/Rosa"), Albertina Horstmann (as "Dancer"), Jackson Jordan (as "Second Nurse/Carmela"), Martha King (as "Isabella"), Al Klein (as "Second"), Carole Landis (as "Ghisella"), Helena Le Berthon (as "First Nurse/Francesca"), Patricia Leith (as "Dancer"), Jeanne Lewis (as "Dancer"), Arthur Maxwell (as "Anthony Caufield"), Earl McDonald (as "Dr. Gaspare"), Eddie Miller (as "Dancer"), Steve Mills (as "Pantaloon"), Candace Montgomery Ensemble"), Bobby Morris (as "Scapino"), Joseph Paz (as "Dancer"), Susan Pearce (as "Dancer"), Sue Ryan (as "Licetta"), Francelia Schmidt (as "Page Boy/Dancer"), Helen Schmidt (as "Dancer"), Fredi Sears (as "Ensemble"), Jacqueline Susann (as "Hildegarde") [final Broadway role], Alice Swanson (as "Dancer"), Eddie Wells (as "Dancer"). - (1946) Stage Play: Lovely Me. Comedy. Written by Jacqueline Susann [final Broadway credit]. Music by Arthur Siegel and Jeff Bailey. Directed by Jessie Royce Landis. Adelphi Theatre: (moved to The Coronet Theatre from 6 Jan 1947 to close): 25 Dec 1946- 25 Jan 1947 (37 performances). Cast: Joyce Allan, Mischa Auer (as "Stanislaus Stanislavsky"), Barbara Bulgakova, June Dayton, Reynolds Evans (as "Thomas van Stokes"), Luba Malina, Paul Marlin, Millard Mitchell (as "Mike Shane"), Houston Richards, Arthur Siegel. Produced by David Lowe. - (June 26, 1967) Guest on the daytime talk program "Carlton Fredericks". Jacqueline spoke about pill users in Hollywood.
english
<reponame>automaidan/judges {"2010":"","2016":"","Department":"Господарський суд Полтавської області","Region":"Полтавська область","Position":"Суддя Господарського суду Полтавської області","Name":"<NAME>","Link":"http://court.gov.ua/lustration/b5c52758fa5916fc5b400e8faddd825a.pdf","Note":"","AdditionalNote":"","декларації 2015":"","Youtube":"","ПІБ2":"","Кількість справ":"","Оскаржені":"","Кількість скарг":"1","Кількість дисциплінарних стягнень":"","Клейма":"3","Фото":"","Як живе":"","Декларація доброчесності судді подано у 2016 році (вперше)":"","Декларація родинних зв’язків судді подано у 2016 році":"","key":"timoshenko_katerina_volodimirivna","field8":"","Link 2015":"","field9":"","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"","type":"judge","analytics":[{"y":2014,"b":37632,"i":320681,"k":79.5,"ka":2,"h":9.8,"ha":1,"l":2700,"la":2},{"y":2015,"i":20551,"fi":41851,"fc":1,"ffa":1,"fha":1,"j":1},{"y":2016,"i":53287,"c":1,"k":29.11,"ka":1,"fi":72107,"fh":37.9,"fha":1},{"y":2017,"i":238362,"c":1,"k":29.11,"ka":1,"fi":98357,"fh":37.9,"fha":1}],"declarationsLinks":[{"id":"vulyk_45_178","year":2014,"url":"http://static.declarations.com.ua/declarations/chosen_ones/mega_batch/tymoshenko_kateryna_volodymyrivna.pdf","provider":"declarations.com.ua.opendata"},{"id":"nacp_f4ee3de5-6e24-4d63-97ec-72ef24fc6dbc","year":2015,"provider":"declarations.com.ua.opendata"},{"id":"nacp_9aa7c2c7-416e-4a68-a6f3-22109f26d1cf","year":2016,"provider":"declarations.com.ua.opendata"},{"id":"nacp_f97ee8fe-31bd-4a22-9a39-7c851bbacdc9","year":2017,"provider":"declarations.com.ua.opendata"}]}
json
The former Pakistan captain preferred not to speak to the media waiting outside the terminal building. Karachi: Pakistan‘s chief selector Moin Khan returned home from Australia today and escaped an embarrassing situation at the airport where a small group of protesters had gathered to vent their anger with eggs and banners. Recalled from Australia by the Pakistan Cricket Board (PCB) for visiting a Casino in Christchurch a night before the match against the West Indies, Moin slipped out of the Karachi international airport terminal building with a friend sans any baggage and drove away hurriedly. The former Pakistan captain preferred not to speak to the media waiting outside the terminal building and was seen also exchanging words with a youngster and a television channel reporter, who tried to film him and asked for comments. Appearing visibly shaken and tense, Moin avoided a group of youngsters who had gathered outside the terminal building and raised slogans against him and also had brought eggs to pelt him. One youngster when learnt that Moin had left the airport broke eggs on his own head. PCB Chairman, Shaharyar Khan told reporters in Lahore that he would be meeting with Moin soon to find out his version and why he went to the Casino. Moin who has held key positions in the board since last year on Wednesday publicly apologised for his actions and said while he had gone to only have dinner with some friends at the Casino but it was a bad error of judgement on his part. “I just went there to have some food but in hindsight it was a bad decision and I regret it now. But everyone knows my career and I will be giving my version to the board soon,” Moin told Samaa Channel. “The PCB has called me back and I respect their decision but I never knew my actions would have such serious repercussions,” Moin added. The former wicketkeeper-batsman? s motive of visiting the Casino and his past has been attacked by some channels and former Test players such as Sarfaraz Nawaz, Abdul Qadir and Shahid Nazir. While Nawaz on Thursday called for him to be blacklisted from Pakistan cricket Nazir said that the PCB should hold a judicial inquiry to find out the truth behind Moin going to the Casino. “The PCB should have a full scale inquiry. Moin was a great player but a failure in administration and as selector,” Nazir said. A sessions court in Lahore also ordered the Station House Officer of Islampura police station to submit a report whether action would be taken against Moin on legal grounds after an advocate submitted a petition in the court seeking action against the former captain. Pakistan’s former captain, Aamir Sohail said that Moin had chosen the wrong time to visit the Casino and was paying the price for his blunder.
english
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, <NAME> * * Project Info: https://plantuml.com * * If you like this project or if you find it useful, you can support us at: * * https://plantuml.com/patreon (only 1$ per month!) * https://plantuml.com/paypal * * This file is part of PlantUML. * * 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. * * * Original Author: <NAME> */ package net.sourceforge.plantuml.elk.proxy.graph; import java.util.Objects; import net.sourceforge.plantuml.elk.proxy.Reflect; public class ElkBendPoint { public final Object obj; public ElkBendPoint(Object obj) { this.obj = Objects.requireNonNull(obj); } @Override public int hashCode() { return this.obj.hashCode(); } @Override public boolean equals(Object other) { return this.obj.equals(((ElkBendPoint) other).obj); } public double getX() { return (Double) Reflect.call(obj, "getX"); } public double getY() { return (Double) Reflect.call(obj, "getY"); } }
java
With the increase in the gameplay quality of Garena Free Fire and its MAX variant, the in-game content has also diversified due to consistent updates. Furthermore, players can purchase a series of items in the game that cost diamonds. Thus, diamonds, being the in-game currency of Free Fire, have lots of significance. However, their expensive exchange rates are unaffordable for a section of users. Hence, many often try methods like hacks and generators to get free diamonds. Diamond generators are often identified with keywords like "100% Working," "Get free diamonds," "Generate 100,000 diamonds," and anything similar. Therefore, they are more clickbaity in nature than actually helpful. Still, even if gamers can claim free in-game currency, it may result in their accounts getting banned. The reason behind the ban is the diamond generators/hacks that try to modify or interact with the game clients. Therefore, these programs violate Garena's anti-hack policy and put the individuals' accounts in a vulnerable position. The rest of the work is completed by the anti-cheat system, i. e. , detection and suspension. Readers can look at the developers' stand on cheating in FF/FF MAX: "Free Fire has a zero-tolerance policy against cheating. We will permanently ban their accounts used for cheating. Devices used for cheating will also be banned from playing Free Fire again using any other accounts. " Additionally, the team has also clearly mentioned the consequences of any online advertisement regarding free or cheap diamonds and other in-game items: "Anyone who offers you free in-game stuff isn't doing it to be nice. Money from gamers has become valuable scams for con artists. Only buy your in-game diamonds from legitimate sources, and never trust an offer that sounds too good to be true. " Thus, users should avoid using a diamond generator or hack and report a hack (APK/mod) or hackers via Garena's help center. Here's how they can do the same: Step 1: Players should copy the link "https://ffsupport. garena. com/hc/en-us," paste it into their web browser to access the help center, and click the sign-in button. Step 2: On the zendesk login page, they can select their preferred platform attached to their game accounts. Step 3: After logging in, gamers may click on their profile and choose the "Submit a Request" option. Step 4: They need to select the game from the available options (which vary with servers). Step 5: Individuals have to fill in the particulars, choose the type of hack they found online or the enemy was using, upload evidence (APK of hack or video of a hacker), and tap on "submit. " Note: Garena Free Fire is no longer legally available in India after its ban in February 2022. Thus, fans should refrain from installing the game from any unauthorized means and download Free Fire MAX, which is still active. Check out the latest Free Fire MAX redeem codes here.
english
<filename>package.json { "name": "webex-status-bot", "version": "1.0.0", "description": "/* * Deployment of code * https://developers.google.com/apps-script/guides/clasp * * */", "main": "Main.ts", "dependencies": { "@types/google-apps-script": "^1.0.33" }, "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" } }
json
[ { "Manifest-Version": "1.0", "Ant-Version": "Apache Ant 1.6.5", "Created-By": "1.5.0_06-b03 (Sun Microsystems Inc.)", "Extension-Name": "javax.activation", "Specification-Title": "JavaBeans(TM) Activation Framework Specification", "Specification-Version": "1.1", "Specification-Vendor": "Sun Microsystems, Inc.", "Implementation-Version": "1.1", "Implementation-Vendor": "Sun Microsystems, Inc.", "Implementation-Vendor-Id": "com.sun", "Implementation-Title": "Sun Java System Application Server" } ]
json
package main import "fmt" func sheep(N int) int { if N <= 0 { return -1 } set := make(map[int]bool) for i := 0; i <= 9; i++ { set[i] = true } count := 0 for len(set) > 0 { count += 1 number := count * N for number != 0 { digit := number % 10 delete(set, digit) number /= 10 } } return count * N } func main() { var T int fmt.Scan(&T) for i := 1; i <= T; i++ { var N int fmt.Scan(&N) count := sheep(N) if count <= -1 { fmt.Printf("Case #%d: INSOMNIA\n", i) } else { fmt.Printf("Case #%d: %d\n", i, count) } } }
go
package images import ( "archive/tar" "context" "encoding/json" "io" "io/ioutil" "net/http" "net/url" "os" "path/filepath" "regexp" "strconv" "strings" "github.com/containers/buildah" "github.com/containers/podman/v2/pkg/auth" "github.com/containers/podman/v2/pkg/bindings" "github.com/containers/podman/v2/pkg/domain/entities" "github.com/docker/go-units" "github.com/hashicorp/go-multierror" jsoniter "github.com/json-iterator/go" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) // Build creates an image using a containerfile reference func Build(ctx context.Context, containerFiles []string, options entities.BuildOptions) (*entities.BuildReport, error) { params := url.Values{} if t := options.Output; len(t) > 0 { params.Set("t", t) } for _, tag := range options.AdditionalTags { params.Add("t", tag) } if options.Quiet { params.Set("q", "1") } if options.NoCache { params.Set("nocache", "1") } if options.Layers { params.Set("layers", "1") } // TODO cachefrom if options.PullPolicy == buildah.PullAlways { params.Set("pull", "1") } if options.RemoveIntermediateCtrs { params.Set("rm", "1") } if options.ForceRmIntermediateCtrs { params.Set("forcerm", "1") } if mem := options.CommonBuildOpts.Memory; mem > 0 { params.Set("memory", strconv.Itoa(int(mem))) } if memSwap := options.CommonBuildOpts.MemorySwap; memSwap > 0 { params.Set("memswap", strconv.Itoa(int(memSwap))) } if cpuShares := options.CommonBuildOpts.CPUShares; cpuShares > 0 { params.Set("cpushares", strconv.Itoa(int(cpuShares))) } if cpuSetCpus := options.CommonBuildOpts.CPUSetCPUs; len(cpuSetCpus) > 0 { params.Set("cpusetcpus", cpuSetCpus) } if cpuPeriod := options.CommonBuildOpts.CPUPeriod; cpuPeriod > 0 { params.Set("cpuperiod", strconv.Itoa(int(cpuPeriod))) } if cpuQuota := options.CommonBuildOpts.CPUQuota; cpuQuota > 0 { params.Set("cpuquota", strconv.Itoa(int(cpuQuota))) } if buildArgs := options.Args; len(buildArgs) > 0 { bArgs, err := jsoniter.MarshalToString(buildArgs) if err != nil { return nil, err } params.Set("buildargs", bArgs) } if shmSize := options.CommonBuildOpts.ShmSize; len(shmSize) > 0 { shmBytes, err := units.RAMInBytes(shmSize) if err != nil { return nil, err } params.Set("shmsize", strconv.Itoa(int(shmBytes))) } if options.Squash { params.Set("squash", "1") } if labels := options.Labels; len(labels) > 0 { l, err := jsoniter.MarshalToString(labels) if err != nil { return nil, err } params.Set("labels", l) } if options.CommonBuildOpts.HTTPProxy { params.Set("httpproxy", "1") } var ( headers map[string]string err error ) if options.SystemContext == nil { headers, err = auth.Header(options.SystemContext, auth.XRegistryConfigHeader, "", "", "") } else { if options.SystemContext.DockerAuthConfig != nil { headers, err = auth.Header(options.SystemContext, auth.XRegistryAuthHeader, options.SystemContext.AuthFilePath, options.SystemContext.DockerAuthConfig.Username, options.SystemContext.DockerAuthConfig.Password) } else { headers, err = auth.Header(options.SystemContext, auth.XRegistryConfigHeader, options.SystemContext.AuthFilePath, "", "") } } if err != nil { return nil, err } stdout := io.Writer(os.Stdout) if options.Out != nil { stdout = options.Out } // TODO network? var platform string if OS := options.OS; len(OS) > 0 { platform += OS } if arch := options.Architecture; len(arch) > 0 { platform += "/" + arch } if len(platform) > 0 { params.Set("platform", platform) } entries := make([]string, len(containerFiles)) copy(entries, containerFiles) entries = append(entries, options.ContextDirectory) tarfile, err := nTar(entries...) if err != nil { return nil, err } defer tarfile.Close() params.Set("dockerfile", filepath.Base(containerFiles[0])) conn, err := bindings.GetClient(ctx) if err != nil { return nil, err } response, err := conn.DoRequest(tarfile, http.MethodPost, "/build", params, headers) if err != nil { return nil, err } defer response.Body.Close() if !response.IsSuccess() { return nil, response.Process(err) } body := response.Body.(io.Reader) if logrus.IsLevelEnabled(logrus.DebugLevel) { if v, found := os.LookupEnv("PODMAN_RETAIN_BUILD_ARTIFACT"); found { if keep, _ := strconv.ParseBool(v); keep { t, _ := ioutil.TempFile("", "build_*_client") defer t.Close() body = io.TeeReader(response.Body, t) } } } dec := json.NewDecoder(body) re := regexp.MustCompile(`[0-9a-f]{12}`) var id string for { var s struct { Stream string `json:"stream,omitempty"` Error string `json:"error,omitempty"` } if err := dec.Decode(&s); err != nil { if errors.Is(err, io.EOF) { return &entities.BuildReport{ID: id}, nil } s.Error = err.Error() + "\n" } switch { case s.Stream != "": stdout.Write([]byte(s.Stream)) if re.Match([]byte(s.Stream)) { id = strings.TrimSuffix(s.Stream, "\n") } case s.Error != "": return nil, errors.New(s.Error) default: return &entities.BuildReport{ID: id}, errors.New("failed to parse build results stream, unexpected input") } } } func nTar(sources ...string) (io.ReadCloser, error) { if len(sources) == 0 { return nil, errors.New("No source(s) provided for build") } pr, pw := io.Pipe() tw := tar.NewWriter(pw) var merr error go func() { defer pw.Close() defer tw.Close() for _, src := range sources { s := src err := filepath.Walk(s, func(path string, info os.FileInfo, err error) error { if err != nil { return err } if !info.Mode().IsRegular() || path == s { return nil } f, lerr := os.Open(path) if lerr != nil { return lerr } name := strings.TrimPrefix(path, s+string(filepath.Separator)) hdr, lerr := tar.FileInfoHeader(info, name) if lerr != nil { f.Close() return lerr } hdr.Name = name if lerr := tw.WriteHeader(hdr); lerr != nil { f.Close() return lerr } _, cerr := io.Copy(tw, f) f.Close() return cerr }) merr = multierror.Append(merr, err) } }() return pr, merr }
go
The Chicago Bulls take on the Denver Nuggets in preseason on Sunday. The Bulls fired on all cylinders in their 133-124 double-OT win over the Denver Nuggets earlier this week. It might be only preseason, but Chicago has made their intent quite clear about going distance after a dismal 40-42 campaign last season, faling to make the playoffs. Against the defending champions, the Bulls bounced back from a 105-102 loss to the Milwaukee Bucks in their preseason opener. DeMar DeRozan led the show with 19 points and 4 steals, while Zach LaVine caught fire late on. After going 1-of-5 from beyond the arc, he made a massive impact, recording 17 points, 4 boards, 3 assists, and as many steals. For the second game in a row, the Bulls have focused on string defense and converting it into offense. They have let it fly from 3-point land, which has given them more space for DeRozan and LaVine to work with — even against a defensively better Nuggets outfit. The Chicago Bulls now head to the Ball Center to try and make it two in a row as they lock horns with the Nuggets on Sunday. Ahead of the marquee clash, here're the predictions and the odds for what promises to be another humdinger. The Nuggets will look to shake off their rust against a determined Bulls unit. While the outcome of preseason games don't necessarily determine how teams fare over an 82-game regular stretch, it provides insight into how the teams shape up in terms of health and rectifying errors from their previous season. For Nikola Jokic and the Nuggets, the preseason will be about hitting their straps again, while the Windy City franchise has all been about making a statement. As for injuries, there are no injured players listed. The Bulls starters except for Patrick Williams played over 20 minutes, so they could see limited minutes here. The Bulls could also look to ride on the momentum and have their stars play the same amount of minutes as last time and rest them in their upcoming clash against the Toronto Raptors. The Nuggets, meanwhile, are easing their starters into the season, and that would mean Jokic and Jamal Murray will see a bump in floor time. Moneyline: Nuggets (-200) vs Bulls (+160) After the first win by the Bulls in the season, Chicago is the favorites to repeat their heroics, but expect the Nuggets to make a strong comeback. - Michael Porter Jr. How did Michael Jordan's gambling "habit" taint his image?
english
#include "KGE.hpp" #include "Core/Interface/ComponentButton.hpp" namespace KGE { };
cpp
{"Department":"Лисичанська місцева прокуратура Луганської області","Name":"<NAME>","Position":"Прокурор Лисичанської місцевої прокуратури прокуратури Луганської області","Region":"Луганська область","analytics":[{"c":1,"ff":75.15,"ffa":2,"fi":106875,"i":138109,"y":2016},{"c":1,"ff":75.15,"ffa":2,"fi":133741,"i":200262,"y":2017},{"c":1,"ff":75.15,"ffa":2,"fi":205356,"i":334360,"y":2018},{"c":2,"ff":75.15,"ffa":2,"fi":445150,"y":2019}],"declarationsLinks":[{"id":"nacp_b06e5918-3f10-4829-9414-870a4197a170","provider":"declarations.com.ua.opendata","year":2016},{"id":"nacp_96412dc9-ee53-48c7-82bc-338947441618","provider":"declarations.com.ua.opendata","year":2017},{"id":"nacp_65172c62-de56-49db-9b56-d5fdc3ada081","provider":"declarations.com.ua.opendata","year":2018},{"id":"nacp_9c5c5df8-3a53-4ef7-8a16-bf3e80326d22","provider":"declarations.com.ua.opendata","year":2019}],"key":"polyakov_dmitro_viktorovich","type":"prosecutor","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"https://public.nazk.gov.ua/declaration/b06e5918-3f10-4829-9414-870a4197a170","Декларації доброчесності":"https://www.gp.gov.ua/integrity_profile/files/256a71eb8a68be3f5b6fbb5d54a99a5c.pdf","Фото":"","Я<NAME>":""}
json
package cn.myperf4j.base.metric.formatter; import cn.myperf4j.base.metric.JvmCompilationMetrics; /** * Created by LinShunkang on 2019/11/09 */ public interface JvmCompilationMetricsFormatter extends MetricsFormatter<JvmCompilationMetrics> { }
java