text
stringlengths 1
1.04M
| language
stringclasses 25
values |
|---|---|
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/openapi-v3
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {anOpenApiSpec} from '@loopback/openapi-spec-builder';
import {expect} from '@loopback/testlab';
import {api, get, getControllerSpec, oas, OperationVisibility} from '../../..';
/**
* Verification of the Controller Spec uses string literals (e.g.
* 'documented', 'undocumented') instead of the `OperationVisibility` enum so
* as to verify that the enum itself did not change.
*/
describe('visibility decorator', () => {
it('Returns a spec with all the items decorated from the class level', () => {
const expectedSpec = anOpenApiSpec()
.withOperationReturningString('get', '/greet', 'greet')
.withOperationReturningString('get', '/echo', 'echo')
.build();
@api(expectedSpec)
@oas.visibility(OperationVisibility.UNDOCUMENTED)
class MyController {
greet() {
return 'Hello world!';
}
echo() {
return 'Hello world!';
}
}
const actualSpec = getControllerSpec(MyController);
expect(actualSpec.paths['/greet'].get['x-visibility']).to.eql(
'undocumented',
);
expect(actualSpec.paths['/echo'].get['x-visibility']).to.eql(
'undocumented',
);
});
it('Returns a spec where only one method is undocumented', () => {
class MyController {
@get('/greet')
greet() {
return 'Hello world!';
}
@get('/echo')
@oas.visibility(OperationVisibility.UNDOCUMENTED)
echo() {
return 'Hello world!';
}
}
const actualSpec = getControllerSpec(MyController);
expect(actualSpec.paths['/greet'].get['x-visibility']).to.be.undefined();
expect(actualSpec.paths['/echo'].get['x-visibility']).to.eql(
'undocumented',
);
});
it('Allows a method to override the visibility of a class', () => {
@oas.visibility(OperationVisibility.UNDOCUMENTED)
class MyController {
@get('/greet')
greet() {
return 'Hello world!';
}
@get('/echo')
echo() {
return 'Hello world!';
}
@get('/yell')
@oas.visibility(OperationVisibility.DOCUMENTED)
yell() {
return 'HELLO WORLD!';
}
}
const actualSpec = getControllerSpec(MyController);
expect(actualSpec.paths['/greet'].get['x-visibility']).to.eql(
'undocumented',
);
expect(actualSpec.paths['/echo'].get['x-visibility']).to.eql(
'undocumented',
);
expect(actualSpec.paths['/yell'].get['x-visibility']).to.be.eql(
'documented',
);
});
it('Allows a class to not be decorated with @oas.visibility at all', () => {
class MyController {
@get('/greet')
greet() {
return 'Hello world!';
}
@get('/echo')
echo() {
return 'Hello world!';
}
}
const actualSpec = getControllerSpec(MyController);
expect(actualSpec.paths['/greet'].get['x-visibility']).to.be.undefined();
expect(actualSpec.paths['/echo'].get['x-visibility']).to.be.undefined();
});
it('Does not allow a member variable to be decorated', () => {
const shouldThrow = () => {
class MyController {
@oas.visibility(OperationVisibility.UNDOCUMENTED)
public foo: string;
@get('/greet')
greet() {}
}
return getControllerSpec(MyController);
};
expect(shouldThrow).to.throw(
/^\@oas.visibility cannot be used on a property:/,
);
});
});
|
typescript
|
<filename>dataset/klga/20090721.json<gh_stars>1-10
version https://git-lfs.github.com/spec/v1
oid sha256:d400d8fbe3dd2ceecdd71d5d4c2416017f6dbaad5f65a1757a70b2e86d82755a
size 35257
|
json
|
A new paper published on September 17 says that while the average height of people across the world is increasing, the average height of Indians is actually falling.
The paper examines the trends in the heights of Indian men and women between the age groups of 15-25 and 26-50 based on the National Family and Health Surveys – and concludes that India’s indicators are actually getting worse.
This is a worrying situation. Height is one of the most basic indicators of nutrition as well as public health and is directly linked to a country’s standard of living. It also reflects social and economic factors such as income and caste. Thus a fall in average heights indicates India is regressing on public health as well as economic goals.
“We believe, in the context of an overall increase in average heights worldwide the decline in average height of adults in India is alarming and demands an urgent enquiry,” write the authors of the paper.
The study, titled “Trends of adult height in India from 1998 to 2015: Evidence from the National Family and Health Survey”, by Krishna Kumar Choudhary, Sayan Das, and Prachinkumar Ghodajkar from the Centre of Social Medicine and Community Health, Jawaharlal Nehru University compared data from three NFHS rounds – NFHS-II (1998–’99), III (2005–’06), IV (2015–’16) – to look at changes in height over the years.
NFHS is carried out by the Union Ministry of Health and Family Welfare and is one of the foremost Indian sources to study public health and evaluate existing policies. The survey is representative of households across India at both the state and the national level. The latest NFHS-V survey (2019-’20) was conducted across 6 lakh households.
The researchers found out that between NFHS-III (2005-’06) and NFHS-IV (2015-’16), Indians in the 15-50 age bracket – with the exception of women between the ages 26-50 – have experienced a decline in their average height.
Women between 15-25 saw a decline in their mean height by 0.12 cm, while women between 26-50 showed an improvement by 0.13 cm. During the same period, men between 15-25 saw a decline of 1.10 cm in their mean height and those between 26-50 years had a decline of 0.86 cm.
The paper brings out a troubling mismatch between economic growth and public health. Between NFHS-II and NFHS-III, women between the ages of 15-25 saw their average height increase by 0.84 cm. However, the average age of this group saw a decline between NFHS-III and NFHS-IV. This is notable since in NFHS-IV, this group corresponds to a generation born right after India’s liberalisation, characterised by high economic growth.
Notably, disadvantaged groups have been especially impacted by this trend. For women in the ages 15-25, between NFHS-III and NFHS-IV, the average height of tribal women saw a decline of 0.42 cm while women from the poorest wealth fell by 0.63 cm. This is significantly worse than the average decline for the entire age group (0.12 cm).
In the age group of 26-50, women from the poorest wealth category saw a significant decline in their average height – 0.57 cm – while women from the middle, richer and richest wealth categories saw their average heights improve. Women from urban areas saw their average heights improve by 0.20 cm while rural women only saw an increase of 0.06 cm.
Men between the age groups of 26-50 from urban areas saw the sharpest decline in average height, with the highest fall being 2.04 cm in Karnataka.
While height is influenced by genetics, non-genetic factors such as nutrition and environment play a significant role as well. Variables such as household characteristics (such as number of siblings and class) and caste have a bearing on an individual’s nutrition and growth. Height is also highly correlated with wealth. People from the Scheduled Castes and Scheduled Tribes communities are, on average, shorter than those belonging to Other Backward Class and Upper Castes.
Thus, a person’s height is a marker of physical well-being and standard of living. Studying height could therefore lead to a better understanding of the impact of health policies.
Height, in turn, is also linked to productivity. According to World Bank estimates, a 1% loss in adult height due to childhood stunting can lead to a 1.4% loss in economic productivity. According to a study by industry body Assocham and consultancy firm EY, India loses around 4% of its gross domestic product every year due to its citizens being malnourished.
Studying average height will also help us know the results of our nutritional policies better. For instance, a study cited in the paper says that mid-day meals have lowered the rates of stunting in children.
Given the importance of height in measuring public health, the results of the study are worrying. This is especially so when the average height of humans worldwide is increasing.
India has had a history of faring poorly on health metrics. Currently, it is 94 out of 107 countries, as per the 2020 Global Hunger Index. It has one-third of the world’s stunted children. It also has the most number of children who are underweight according to their height.
To make matters even more troubling, public health indicators seem to be getting worse. As per NHFS-V (2019-’20), which has released its phase-1 data from 22 states and Union Territories, child nutrition levels have further worsened since NHFS-IV (the dataset used by this paper). This could also mean an increase in child stunting, which would be the first time this has happened in twenty years. In the past four years, seven out of ten major states saw an increase in the number of underweight children.
In addition, the Covid-19 pandemic in 2020 and 2021 has impacted public health severely. A survey conducted by Jean Drèze and Anmol Somanchi showed that 53%-77% respondents were eating less during the pandemic than the period before. Further, data from the Centre for Monitoring the Indian Economy shows a sharp decline in the consumption of nutrient and protein rich food, across all income groups, during the pandemic.
|
english
|
/******************************************************************
*
* Round for C
*
* Copyright (C) <NAME> 2015
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <boost/test/unit_test.hpp>
#include "RoundTest.h"
#include <round/cluster_internal.h>
const char* TEST_CLUSTER_NAME = "testCluster";
BOOST_AUTO_TEST_SUITE(cluster)
BOOST_AUTO_TEST_CASE(ClusterManager)
{
RoundClusterManager* mgr = round_cluster_manager_new();
BOOST_CHECK(mgr);
BOOST_CHECK_EQUAL(0, round_cluster_manager_size(mgr));
char clusterName[32];
RoundCluster* cluster[ROUND_TEST_MAP_SIZE];
for (int n = 0; n < ROUND_TEST_MAP_SIZE; n++) {
cluster[n] = round_cluster_new();
snprintf(clusterName, sizeof(clusterName), "%d", n);
BOOST_CHECK(round_cluster_setname(cluster[n], clusterName));
BOOST_CHECK(round_cluster_manager_addcluster(mgr, cluster[n]));
BOOST_CHECK_EQUAL((n + 1), round_cluster_manager_size(mgr));
BOOST_CHECK(round_cluster_manager_hascluster(mgr, clusterName));
}
BOOST_CHECK_EQUAL(ROUND_TEST_MAP_SIZE, round_cluster_manager_size(mgr));
BOOST_CHECK(round_cluster_manager_delete(mgr));
}
BOOST_AUTO_TEST_CASE(ClusterMgrAddNode)
{
RoundClusterManager* mgr = round_cluster_manager_new();
BOOST_CHECK(mgr);
RoundNode* node = round_node_local_new();
BOOST_CHECK(round_node_setclustername(node, TEST_CLUSTER_NAME));
BOOST_CHECK(round_cluster_manager_addnode(mgr, node));
BOOST_CHECK(round_cluster_manager_delete(mgr));
}
BOOST_AUTO_TEST_CASE(ClusterMgrAddSameHostNodes)
{
RoundClusterManager* mgr = round_cluster_manager_new();
BOOST_CHECK(mgr);
for (int n = 0; n < ROUND_TEST_MAP_SIZE; n++) {
RoundNode* node = round_node_new();
BOOST_CHECK(round_node_setaddress(node, "127.0.0.1"));
BOOST_CHECK(round_node_setport(node, (n + 1)));
BOOST_CHECK(round_cluster_manager_addnode(mgr, node));
const char* clusterName;
BOOST_CHECK(round_node_getclustername(node, &clusterName));
RoundCluster* cluster = round_cluster_manager_getclusterbyname(mgr, clusterName);
BOOST_CHECK(cluster);
BOOST_CHECK_EQUAL(round_cluster_size(cluster), (n + 1));
}
BOOST_CHECK(round_cluster_manager_delete(mgr));
}
BOOST_AUTO_TEST_SUITE_END()
|
cpp
|
<reponame>Zchristian955/Data_Warehouse
# Data_Warehouse
|
markdown
|
<reponame>w3c/groups
{"id":59704,"name":"Semantic Open Data Community Group","is_closed":false,"description":"This group intends to explore ways to leverage OData as a contributor to the Semantic Web vision and to help achieve a common understanding of both technologies as well as their relationship to each other.","shortname":"sodata","discr":"w3cgroup","type":"community group","_links":{"self":{"href":"https://api.w3.org/groups/cg/sodata"},"homepage":{"href":"https://www.w3.org/community/sodata/"},"users":{"href":"https://api.w3.org/groups/cg/sodata/users"},"services":{"href":"https://api.w3.org/groups/cg/sodata/services"},"chairs":{"href":"https://api.w3.org/groups/cg/sodata/chairs"},"join":{"href":"https://www.w3.org/community/sodata/join"},"participations":{"href":"https://api.w3.org/groups/cg/sodata/participations"}},"identifier":"cg/sodata"}
|
json
|
St Kitts and Nevis Patriots are one step away from completing a remarkable worst-to-first turnaround after defeating Trinbago Knight Riders by 38 runs on Tuesday night at the Brian Lara Stadium in Trinidad. Coming off the back of a last-place finish in 2016, and having never made the playoffs prior to this season, the win over Knight Riders put Patriots into Saturday night's final.
As was the case on the opening weekend in Florida, Chris Gayle turned in a slow, but steady, half-century that proved especially valuable by the end of play. The captain's fifty was backed up by three wickets from seamer Sheldon Cottrell as the Knight Riders batting order was left exposed by the absence of the injured Brendon McCullum.
Ronsford Beaton opened the match with a superb maiden to Gayle, but it arguably should have been a wicket maiden. Bowling over the stumps to the left-hander, Beaton swung a yorker into Gayle's left toe in front of middle stump. Perhaps surprised at his good fortune, Beaton gave a mild appeal and umpire Johan Cloete responded in kind with a mild shake of the head to give it not out. Replays confirmed the ball would have cannoned into middle and off stump.
Instead, Gayle went on to craft a patient 54 not out off 51 balls in a total of 149 for 7, earning himself a repeat trip to the final after leading the Tallawahs to the CPL title in 2016. The knock was reminiscent of his 66 not out off 55 balls against Guyana Amazon Warriors in a total of 132 for 3 earlier this season at Lauderhill. He dedicated the win to the people of Leeward Islands, who are bracing for Hurricane Irma.
Dan Christian was drafted in as a replacement for McCullum. Fresh off the plane from England, where he helped Nottinghamshire to the Natwest T20 Blast title, Christian gave Fabian Allen a stiff challenge for catch of the tournament.
Evin Lewis skied a drive over extra cover off Beaton in the third over, that appeared as if it would fall safely with no protection on the off side boundary. But Christian would not be denied. The ball hung in the air for six seconds, enough time for Christian to sprint 40 yards to his right from mid-off. He called off Colin Munro, who had also been running back from cover, and lunged to pull off a dramatic catch before giving Munro a piggyback ride into the circle for raucous celebrations as Knight Riders had struck a key blow early on.
Despite Christian's heroics, Knight Riders paid the price for being unable to dislodge Gayle. Dwayne Bravo ended with four wickets on the night, but he also conceded at least one boundary ball in each of his four overs. In almost every instance, the sequence started with a boundary, before a wicket to bounce back. It began in the 14th with a six over square leg by Brandon King, followed next ball by a top-edge that was taken by Denesh Ramdin.
Carlos Brathwaite drove Bravo twice down the ground in the 16th and again to start the 18th, before Bravo nabbed him on the second ball of the 18th, splicing a catch to cover. Mohammad Nabi was beaten by a Bravo yorker to end the over to leave the score on 122 for 5 with 12 balls to go. But Patriots clipped 17 runs in a crucial final over, in which Gayle finally brought up his fifty with another straight four. Devon Thomas cracked a six over midwicket before he was caught at long-on off the last ball of the innings.
William Perkins, who had yet to play this season, opened the batting with Sunil Narine but the results couldn't have been worse.
Perkins was already twitching after three scratchy dots in the first over; and his nerves were even more evident when he set off for a run off the fourth ball from Cottrell. He connected well and Lewis only needed to take four strides to his left at cover, before gathering and firing a direct hit at the striker's end. Narine had given up and was well short of his ground. Perkins' forgettable night ended soon after, when he feathered a pull shot to Thomas down the leg side off Ben Hilfenhaus. Knight Riders were 2 for 2, seven balls into the chase.
Military man Cottrell accomplished his mission of tying down Knight Riders even further to help secure the victory. Munro's attempted flick ended as a leading edge that floated tamely back to Cottrell, putting the hosts in a deep hole at 6 for 3. By the halfway point of the chase, the required rate had climbed to more than 10.
By the end of the 14th over, the Knight Riders were seven down when Dwayne Bravo attempted to resuscitate the chase, smashing Nabi's first two balls of the 15th over deep midwicket for six. But Cottrell dismantled the final threat posed by the Knight Riders, claiming Javon Searles at long-off and Bravo at third man in the space of three balls.
|
english
|
Ahead of her platinum Jubilee, Queen Elizabeth II has started celebrations with a campaign to promote planting of trees.
Called the ‘Queen’s Green Canopy’ (QGC), it is a UK-wide tree-planting initiative created to mark 70 years of the monarch’s reign in June 2022.
“People across the country will be invited to ‘Plant a Tree for the Jubilee’ from October this year, when the tree planting season begins,” read the official note on the royal family’s social media handle, alongside a video of Prince Charles preparing the garden for planting with Queen Elizabeth II at Windsor Castle, earlier this year.
The initiative was kick-started by none other than the patron of the project — the Prince of Wales himself. “Planting a tree is a statement of hope and faith in the future. As we approach this very special year, I invite you all to join me to plant a tree for the Jubilee. In other words, a ‘Treebilie’! ” he said in the video.
“Whether you are a seasoned gardener or a complete novice, we will guide you through the process of planting trees so that they survive and flourish for years to come,” QGC was quoted as saying by Independent. All the new trees planted across the country will reportedly be logged on an interactive map.
|
english
|
<reponame>francofgp/Syndeo
from django.urls import path
from ..views import idioma_views as views
urlpatterns = [
path('idiomasuser/', views.getIdiomasUser),
path('crear/', views.registerIdioma),
path('<str:pk>/', views.getIdioma),
path('update/<str:pk>/', views.updateIdioma),
path('delete/<str:pk>/', views.deleteIdioma),
path('', views.getIdiomas),
]
|
python
|
It's hard to breathe sometimes, or sometimes you feel light-headed... Processing a plethora of thoughts per second is what my brain does.
Sometimes I feel my brain is the only thing that can and does tolerate me, not that it has any other choice. Most of the time I think I would have been better if that day I successfully committed suicide. It would have been calm, peaceful, stressless, and for what it's worth away from my own toxic thoughts.
But I guess as long as I'll live my brain will be subjected to the torture of overthinking. It is not that easy to leash, its like you're very very very tired, to the extent that your body has given up but you can't rest or sleep. It's like being on a rollercoaster ride.
Even your body at some point starts to beg for mercy.
If fun how my mind is tired of overthinking and yet it can't stop thinking. How fast it jumps from one topic to another, how it curses itself for overthinking and yet never pays any heed to the damage it causes.
To have it in any other way, god would I do be blessed.
|
english
|
They don't call A. R. Rahman a musical maestro for nothing. Just couple of days back, he created history by launching the music of Ek Deewana Tha at the Taj Mahal. The man is in the spotlight again and how! This time round, he has teamed up with none other than the topnotch screenwriter Alex Kurtzman and the globally famous producer-director Steven Spielberg for the former's directorial debut called Welcome To People (WTP), starring Olivia Wilde, Elizabeth Banks, Michelle Pfeiffer, Chris Pine and Mark Duplass. Insiders say that its story is about a man who is tasked with delivering $1,50,000 of his deceased father's fortune to a sister he has never met.
Rahman confirmed the news saying that he has just finished the soundtrack for WTP and that it was great to work with Kurtzman, who is a top screenwriter in Hollywood, and have Spielberg backing it. Rahman went onto say that he really had a great experience working on the film. When asked about what set WTP apart from other Hollywood films that he has worked in the past, he said that this film's music is a bit different from 127 Hours and Couples Retreat, as this film's music is much more emotional and dramatized. Readers may recall that Steven Spielberg has once stated that he had heard interesting compositions of Rahman and that would love to work with him in the near future. With the coming together of these two stalwarts, Welcome To People seems to be one goldmine of a film.
With the coming together of these two stalwarts, Welcome To People seems to be one goldmine of a film.
Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
|
english
|
<filename>history/fruit/338/105/07.01.json<gh_stars>0
[{"transactionDate":"105.07.01","produceNumber":"T7","produceName":"\u897f\u74dc-\u79c0\u9234","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"10","middlePrice":"10","lowPrice":"10","averagePrice":"10","transactionAmount":"232","number":"T7","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"V1","produceName":"\u751c\u74dc-\u7f8e\u6fc3","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"15","middlePrice":"14.8","lowPrice":"14","averagePrice":"14.8","transactionAmount":"450","number":"V1","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"W1","produceName":"\u6d0b\u9999\u74dc-\u7db2\u72c0\u7d05\u8089","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"30","middlePrice":"16.3","lowPrice":"5","averagePrice":"16.3","transactionAmount":"244","number":"W1","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"I4","produceName":"\u6728\u74dc-\u9752\u6728\u74dc","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"18","middlePrice":"18","lowPrice":"18","averagePrice":"18","transactionAmount":"120","number":"I4","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"B2","produceName":"\u9cf3\u68a8-\u91d1\u947d\u9cf3\u68a8","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"27.6","middlePrice":"22.1","lowPrice":"16","averagePrice":"22.1","transactionAmount":"836","number":"B2","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"F1","produceName":"\u96dc\u67d1-\u6ab8\u6aac","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"29","middlePrice":"22.3","lowPrice":"10","averagePrice":"22.3","transactionAmount":"200","number":"F1","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"B6","produceName":"\u9cf3\u68a8-\u751c\u871c\u871c","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"27.5","middlePrice":"23.7","lowPrice":"21","averagePrice":"23.7","transactionAmount":"296","number":"B6","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"811","produceName":"\u706b\u9f8d\u679c-\u767d\u8089","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"37","middlePrice":"30.2","lowPrice":"23.9","averagePrice":"30.2","transactionAmount":"2175","number":"811","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"F5","produceName":"\u96dc\u67d1-\u7121\u5b50\u6ab8\u6aac","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"30","middlePrice":"30","lowPrice":"30","averagePrice":"30","transactionAmount":"213","number":"F5","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"812","produceName":"\u706b\u9f8d\u679c-\u7d05\u8089","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"46.6","middlePrice":"35.2","lowPrice":"24.9","averagePrice":"35.2","transactionAmount":"648","number":"812","main_category":"fruit","sub_category":""},{"transactionDate":"105.07.01","produceNumber":"51","produceName":"\u767e\u9999\u679c-\u6539\u826f\u7a2e","marketNumber":"338","marketName":"\u6843\u5712\u7e23","topPrice":"75","middlePrice":"65","lowPrice":"60","averagePrice":"65","transactionAmount":"34","number":"51","main_category":"fruit","sub_category":""}]
|
json
|
In fact, I'm on the Skywalk, one of the American West's greatest new tourist attractions, and the pride and joy of the Hualapai Nation, which owns and operates Grand Canyon West, a private resort that is far to the west of the popular South Rim location most tourists visit, and only about a three-hour drive from Las Vegas.
The Skywalk is a glass bridge that juts out into the canyon, 4,000 feet above the Colorado River. Construction of the project began in March 2004. It was supposed to open to the public in the summer of 2006, but for reasons that are not entirely clear--I was told that it may have been because the executive board of the Hualapai Nation changed and that the newcomers didn't like the project, and resisted its completion at first--its completion was delayed for around nine months. It finally opened in March with a gala event attended by the likes of former astronaut Buzz Aldrin.
I wasn't able to make it to that celebration, though I had desperately wanted to. But when I was thinking about where to go on my CNET Road Trip this summer, the Southwest seemed like a great destination because it would allow me to visit the Skywalk.
So here I am. I arranged for a private tour, and everything is going great except for the fact that I've been told upon arrival that I can't take photographs while standing on the Skywalk itself. I can take my camera to the very edge of it and shoot as many pictures as I want from there--using telephoto lenses, even--but there is to be no photography from the bridge itself. The Hualapai seem to be reserving that right for themselves so that they can sell such images to the tourists who come through.
And, frankly, who can blame them? There are some spectacular shots to be taken from the Skywalk, and it's theirs, so they can do what they want.
The view itself is practically priceless. Well, OK, maybe pricey is a better word. A ticket for adult admission to the Skywalk will run $81, but can cost much more with options such as a horse ride, or a helicopter ride.
Regardless, I'm here, and I'm on the Skywalk, and I'm experiencing exactly what my tour guide told me I would: That my body and my mind are in rebellion because standing on a glass bridge through which you can see thousands of feet down into the Grand Canyon is simply wrong. It's not natural. Unless you're a bird.
For me, it's also a challenge to overcome one of my remaining childhood phobias: fear of heights. And so as I stepped out onto the Skywalk, I did so ever so gingerly, knowing that unless I had a 747 strapped to my shoulder, everything would be just fine, but that I would still be frightened nonetheless.
So I set myself a goal: walk from one end of the Skywalk to the other at a normal pace and look down before I leave. And as I take my first few tentative steps, I can tell it's going to be a while before I satisfy the goal.
Fortunately, I'm finding a lot to distract me. The view from the Skywalk is simply stunning. This is my first visit to the Grand Canyon, and it is taking my breath away. The scope of it is beyond anything I could have expected. For example, at one point earlier, my tour guide pointed out that far, far below, near the canyon floor, there were two tiny black specks on a flat rock. I looked and looked, and finally saw them. They looked like ants.
They were helicopters. I did a double take.
The colors on the canyon walls, too, are breathtaking. Deep reds and oranges, browns and tans. And the shadows from the clouds above are vast and all-encompassing and beautiful.
But before long, I have to return to reality. I'm still standing thousands of feet in the air, with just some glass separating me from a messy end below. And for some reason, my mind is making me walk very slowly. Walking normally, I find, is nearly impossible.
Fortunately, I see I'm not alone. Nearby several others are having similar problems, though they all seem to be men. Children and women seem to be having no issues at all, and are walking normally, enjoying the experience and looking oddly at us silly men and our trouble.
Again, I let myself get distracted, and I take in the view of Eagle Point, a sacred place on the far wall of the canyon. It is easy to see why they call it that. It is a giant rock formation that, magically, looks just like an eagle with its wings spread. Often it takes a stretch of the imagination to see these kinds of things, but in this case, there's no doubting it. It is an eagle. End of story.
It's getting late, and while I'm loving this experience, I know it is probably time to move on. So I refocus and gird myself for the task at hand: I must walk the bridge normally, not letting my stomach or my mind stop me.
I go back to the beginning and start to walk normally. I don't get far.
I try again. This time I get a little farther, but I realize it's because I'm not looking down. So I return and try again.
Finally, after two or three more false starts, I do it. I look down, I let my belief in engineering--which is not always comforting, I must say--take over, and I walk. I decide to just focus on the beauty below. It's the Grand Canyon, after all. Never mind that it's directly below me. So I walk, and I walk, and it's getting easier. And finally, there I am, at the end, and I've done it.
Of course, this means it's time to leave, and that is a bittersweet realization. This is a truly world-class place, and in some ways, I want to stay. It's getting close to sunset, and with the clouds in the sky, I know it will be a tremendous one.
But, it's time to go, and I decide to move on. I will watch the sunset from somewhere else and leave the Skywalk and its caretakers to themselves.
I hope to return again someday, and I hope you will go as well.
|
english
|
<reponame>vieapps/Apps.Portals
{
"books": {
"name": "Online Books",
"home": {
"latest": "Latest",
"statistics": {
"label": "Statistics:",
"authors": "Number of authors",
"books": "Number of articles & books",
"categories": "Categories"
}
},
"objects": {
"book": "Books",
"category": "Categories",
"statistic": "Statistics"
},
"bookmarks": {
"header": "Readings",
"footer": "Sync time:",
"chapter": "Chapter: ",
"position": "Position: ",
"buttons": {
"read": "Read",
"delete": "Delete"
}
},
"crawl": {
"header": "Crawl data",
"label": "Crawl data from a specific source",
"placeholder": "Source url for crawling",
"mode": {
"full": "All chapters",
"missing": "Only missing"
},
"button": "Crawl",
"message": "Crawl request has been sent..."
},
"list": {
"title": {
"search": "Search",
"category": "Category: {{category}}",
"author": "Author: {{author}}"
},
"searchbar": {
"search": "Place search term by quotes (\"..\") as required",
"filter": "Quick filter"
},
"actions": {
"search": "Open search screen",
"filter": "Quick filter",
"sort": "Change sort-by",
"show": "Show all {{totalRecords}} results",
"crawl": "Crawl data"
},
"sort": {
"labels": {
"Title": "Title (A - Z)",
"LastUpdated": "Last updated",
"Chapters": "More chapters first"
},
"header": "Sort by",
"button": "Update",
"message": "Sort-by has been changed..."
}
},
"read": {
"actions": {
"author": "By this author",
"info": "Information",
"toc": "Table of contents",
"options": "Reading options",
"crawl": "Recrawl"
},
"navigate": {
"previous": "Previous",
"next": "Next"
},
"delete": {
"confirm": "Are you sure you want to delete?",
"message": "{{title}} has been deleted..."
}
},
"info": {
"controls": {
"Title": "Title",
"Category": "Category",
"Original": "Original",
"Author": "Author",
"Translator": "Translator",
"Publisher": "Publisher",
"Producer": "Producer",
"Source": "Source",
"Cover": "Cover image",
"LastUpdated": "Last updated",
"Language": "Language",
"Tags": "Tags",
"TOCs": "Table of Contents"
},
"chapters": "Number of chapters",
"download": "Download",
"qrcode": {
"header": "QR Code",
"description": "Use {{scanner}} to scan QR Code to quick access"
},
"statistics": {
"views": "Views",
"downloads": "Downloads",
"total": "Total",
"month": "Total of this month",
"week": "Total of this week"
},
"updated": "Updated at",
"link": "Link",
"notAuthenticated": "Please login to download e-book files!"
},
"options": {
"title": "Reading Options",
"labels": {
"color": "Color",
"font": "Font",
"size": "Font size",
"paragraph": "Paragraphs",
"align": "Alighments",
"sample": "<p>The quick brown fox jumps over the lazy dog; The quick brown fox jumps over the lazy dog; The quick brown fox jumps over the lazy dog;</p><p>The quick brown fox jumps over the lazy dog; The quick brown fox jumps over the lazy dog; The quick brown fox jumps over the lazy dog;</p>"
},
"color": {
"white": "White",
"black": "Black",
"sepia": "Sepia"
},
"font": {
"default": "Default",
"like-default": "Like default",
"plump": "Plump",
"fat": "Fat",
"fancy": "Fancy"
},
"size": {
"smallest": "Smallest",
"smaller": "Smaller",
"small": "Small",
"normal": "Normal",
"big": "Big",
"bigger": "Bigger",
"huge": "Huge"
},
"paragraph": {
"one": "Normal",
"two": "Light",
"three": "Lighter"
},
"align": {
"align-left": "Left",
"align-justify": "Justify",
"align-right": "Right"
}
},
"update": {
"title": {
"update": "Update book",
"request": "Request to update book"
},
"button": "Send request",
"segments": {
"meta": "Book Info",
"others": "TOCs & Cover Image"
},
"messages": {
"confirm": "Are you sure you want to discard changes?",
"success": "The book has been updated...",
"sent": "Update request has been sent...",
"sync": "Readings sync successful..."
}
}
}
}
|
json
|
<filename>web/code/practice/前期/练习/代码学习仓库/一些示例文件/项目/郑东山 瘦之app-0.1/style/list.css
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
background-color: #efefef;
}
header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
position: fixed;
top: 0;
width: 100%;
height: 120px;
background-color: #fff;
padding: 20px;
}
header span:nth-child(1) {
font-size: 36px;
}
header div {
margin-right: 40px;
margin-left: 40px;
width: 100%;
height: 50px;
border-radius: 50px;
background-color: #efefef;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 40px;
}
header div input {
background-color: #efefef;
border: 0;
width: 100%;
line-height: 50px;
font-size: 30px;
}
header div span {
width: 25px;
height: 25px;
background-color: #f5f5ff;
}
main {
padding: 40px;
margin-top: 120px;
}
main .main-tit {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 88px;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
font-size: 30px;
}
main .list-area {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
gap: 20px;
}
main .list-area .list {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 210px;
background-color: #fff;
padding-left: 20px;
}
main .list-area .list .img {
width: 150px;
height: 150px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background-color: #efefef;
}
main .list-area .list .img img:nth-child(1) {
widows: 31px;
height: 64px;
margin-top: 25 px;
}
main .list-area .list .img img:nth-child(2) {
widows: 43px;
height: 91px;
}
main .list-area .list .img-cont {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
gap: 10px;
}
main .list-area .list .img-cont h2 {
font-size: 30px;
font-weight: 400;
}
main .list-area .list .img-cont p {
font-size: 26px;
color: rgba(0, 0, 0, 0.2);
font-weight: 400;
}
main .list-area .list .img-cont span {
font-size: 36px;
color: #FB7265;
}
/*# sourceMappingURL=list.css.map */
|
css
|
Startups devoted to reproductive and women’s health are on the rise. However, most of them deal with women’s fertility: birth control, ovulation and the inability to conceive. The broader field of women’s health remains neglected.
Historically, most of our understanding of ailments comes from the perspective of men and is overwhelmingly based on studies using male patients. Until the early 1990s, women of childbearing age were kept out of drug trial studies, and the resulting bias has been an ongoing issue in healthcare. Other issues include underrepresentation of women in health studies, trivialization of women’s physical complaints (which is relevant to the misdiagnosis of endometriosis, among other conditions), and gender bias in the funding of research, especially in research grants.
For example, several studies have shown that when we look at National Institutes of Health funding, a disproportionate share of its resources goes to diseases that primarily affect men — at the expense of those that primarily affect women. In 2019, studies of NIH funding based on disease burden (as estimated by the number of years lost due to an illness) showed that male-favored diseases were funded at twice the rate of female-favored diseases.
Let’s take endometriosis as an example. Endometriosis is a disease where endometrial-like tissue (‘‘lesions’’) can be found outside the uterus. Endometriosis is a condition that only occurs in individuals with uteruses and has been less funded and less studied than many other conditions. It can cause chronic pain, fatigue, painful intercourse and infertility. Although the disease may affect one out of 10 women, diagnosis is still very slow, and the disease is confirmed only by surgery.
There is no non-invasive test available. In many cases, a woman is diagnosed only due to her infertility, and the diagnosis can take up to 10 years. Even after diagnosis, the understanding of disease biology and progression is poor, as well as the understanding of the relationships to other lesion diseases, such as adenomyosis. Current treatments include surgical removal of lesions and drugs that suppress ovarian hormone (mainly estrogen) production.
However, there are changes in the works. The NIH created the women’s health research category in 1994 for annual budgeting purposes and, in 2019, it was updated to include research that is relevant to women only. In acknowledging the widespread male bias in both human and animal studies, the NIH mandated in 2016 that grant applicants would be required to recruit male and female participants in their protocols. These changes are slow, and if we look at endometriosis, it received just $7 million in NIH funding in the fiscal year 2018, putting it near the very bottom of NIH’s 285 disease/research areas.
It is interesting to note that critical changes are coming from other sources, and not so much from the funding agencies or the pharmaceutical industry. The push is coming from patients and physicians themselves that meet the diseases regularly. We see pharmaceutical companies (such as Eli Lilly and AbbVie) in the women’s healthcare space following the lead of their patients and slowly expanding their R&D base and doubling efforts to expand beyond reproductive health into other key women’s health areas.
New technological innovations targeting endometriosis are being funded via private sources. In 2020, women’s health finally emerged as one of the most promising areas of investment. These include (not an exhaustive list by any means) diagnostics companies such as NextGen Jane, which raised a $9 million Series A in April 2021 for its “smart tampon,” and DotLab, a non-invasive endometriosis testing startup, which raised $10 million from investors last July. Other notable advances include the research-study app Phendo that tracks endometriosis, and Gynica, a company focused on cannabis-based treatments for gynecological issues.
The complexity of endometriosis is such that any single biotech startup may find it challenging to go it alone. One approach to tackle this is through collaborations. Two companies, Polaris Quantum Biotech and Auransa, have teamed up to tackle the endometriosis challenge and other women’s specific diseases.
Using data, algorithms and quantum computing, this collaboration between two female-led AI companies integrates the understanding of disease biology with chemistry. Moreover, they are not stopping at in silico; rather, this collaboration aims to bring therapeutics to patients.
New partnerships can majorly impact how fast a field like women’s health can advance. Without such concerted efforts, women-centric diseases such as endometriosis, triple-negative breast cancer and ovarian cancer, to name a few, may remain neglected and result in much-needed therapeutics not moving into clinics promptly.
Using state-of-the-art technologies on complex women’s diseases will allow the field to advance much faster and can put drug candidates into clinics in a few short years, especially with the help of patient advocacy groups, research organizations, physicians and out-of-the-box funding approaches such as crowdfunding from the patients themselves.
We believe that going after the women’s health market is a win-win for the patients as well as from the business perspective, as the global market for endometriosis drugs alone is expected to reach $2.2 billion in the next six years.
|
english
|
<gh_stars>100-1000
{
"id": 62796,
"name": "DARKBITCHEZ",
"description": "darks",
"user": {
"id": 132053,
"name": "tmbsavage",
"email": "redacted",
"paypal_email": null,
"homepage": null,
"about": null,
"license": null
},
"updated": "2012-03-19T15:15:26.000Z",
"weekly_install_count": 0,
"total_install_count": 100,
"rating": null,
"after_screenshot_name": "https://userstyles.org/auto_style_screenshots/62796-after.png?r=1592640407",
"obsoleting_style_id": null,
"obsoleting_style_name": null,
"obsolete": 0,
"admin_delete_reason_id": null,
"obsoletion_message": null,
"screenshots": null,
"license": null,
"created": "2012-03-19T15:15:26.000Z",
"category": "site",
"raw_subcategory": "tumblr",
"subcategory": "tumblr",
"additional_info": null,
"style_tags": [],
"css": "@namespace url(http://www.w3.org/1999/xhtml);\r\n\r\n\r\n\r\n@-moz-document domain(\"tumblr.com\")\r\n\r\n\r\n\r\n{\r\n\r\n\r\n\r\n/*text&background*/\r\n\r\n\r\n\r\nhtml, body, tbody, thead, th, tr, td, blockquote, li, ul, h1, h2, h3, h4, h5, h6, font, strong, p, form, footer\r\n\r\n\r\n\r\n{\r\n\r\ncolor: white !important;\r\n\r\nfont-family: georgia !important;\r\n\r\nbackground: black !important;\r\n\r\n}\r\n\r\n\r\n\r\nselect, button, div#bottom\r\n\r\n\r\n\r\n{\r\n\r\nbackground: black !important;\r\n\r\n}\r\n\r\n\r\n\r\ndiv, span, a\r\n\r\n\r\n\r\n{\r\n\r\nbackground-color: black !important;\r\n\r\n}\r\n\r\n\r\n\r\nlegend, select, input, span, code, textarea, pre, label, div, dd, label\r\n\r\n\r\n\r\n{\r\n\r\ncolor: white !important;\r\n\r\n}\r\n\r\n\r\n\r\n\r\n\r\n/*links*/\r\n\r\n\r\n\r\na\r\n\r\n\r\n\r\n{\r\n\r\ncolor: #0040ff !important;\r\n\r\n}\r\n\r\n\r\n\r\na:visited\r\n\r\n\r\n\r\n{\r\n\r\ncolor: #224375 !important;\r\n\r\n}\r\n\r\n\r\n\r\n/*highlight*/\r\n\r\n\r\n\r\ntextarea, pre, code, label\r\n\r\n\r\n\r\n{\r\n\r\nbackground: #333333 !important;\r\n\r\n}\r\n\r\n\r\n\r\n}",
"discussions": [],
"discussionsCount": 0,
"commentsCount": 0,
"userjs_url": "/styles/userjs/62796/darkbitchez.user.js",
"style_settings": []
}
|
json
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [whatwg] Codecs (was Re: Apple Proposal for Timed Media Elements)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Codecs%20%28was%20Re%3A%20Apple%20Proposal%20for%20Timed%0A%09Media%09Elements%29&In-Reply-To=%3C0AC511E6-9EF3-47C3-8B7B-1930D1215936%40apple.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="052684.html">
<LINK REL="Next" HREF="052765.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[whatwg] Codecs (was Re: Apple Proposal for Timed Media Elements)</H1>
<!--htdig_noindex-->
<B><NAME></B>
<A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Codecs%20%28was%20Re%3A%20Apple%20Proposal%20for%20Timed%0A%09Media%09Elements%29&In-Reply-To=%3C0AC511E6-9EF3-47C3-8B7B-1930D1215936%40apple.com%3E"
TITLE="[whatwg] Codecs (was Re: Apple Proposal for Timed Media Elements)">mjs at apple.com
</A><BR>
<I>Thu Mar 22 22:47:52 PDT 2007</I>
<P><UL>
<LI>Previous message: <A HREF="052684.html">[whatwg] Codecs (was Re: Apple Proposal for Timed Media Elements)
</A></li>
<LI>Next message: <A HREF="052765.html">[whatwg] Codecs (was Re: Apple Proposal for Timed Media Elements)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#52756">[ date ]</a>
<a href="thread.html#52756">[ thread ]</a>
<a href="subject.html#52756">[ subject ]</a>
<a href="author.html#52756">[ author ]</a>
</LI>
</UL>
<HR>
<!--/htdig_noindex-->
<!--beginarticle-->
<PRE>
On Mar 22, 2007, at 3:33 AM, <NAME> wrote:
><i> A fallback without a mandated 'minimum' codec is next to worthless.
</I>><i> Standards
</I>><i> with similar goals of interoperability, like DLNA, have ended up
</I>><i> choosing some
</I>><i> mandated codecs (which are all 'older' codecs) and some optional
</I>><i> higher quality codecs.
</I>><i> A standard which does not mandate any codecs in this area quickly
</I>><i> becomes a joke as
</I>><i> you might easily end up having no two implementations actually be
</I>><i> interoperable.
</I>
Even interoperability at the API and markup level would be a huge
step forward relative to the current state of web video. While also
having a single universally implemented codec would also be good,
that may not presently be feasible.
><i> Regarding the specific issue of mobile devices this is a highly
</I>><i> speculative argument.
</I>><i> There is nothing stopping Theora chips from being produced and
</I>><i> since many
</I>><i> 'hardware decoders' are actually programmable DSP's this is even
</I>><i> less of an
</I>><i> real argument.
</I>
This is true of hardware audio decoders, but not hardware video
decoders, which use dedicated circuit blocks. If Ogg suddenly became
popular it would likely be a several year pipeline before there were
any hardware decoders.
><i> Case in point: my Nokia N800 certainly does not play H264. The
</I>><i> Flash videos that it
</I>><i> can play are not played using hardware decoder support. I don't
</I>><i> know many
</I>><i> hardware players that actually play H264 - I'm guessing the iPod
</I>><i> video is one of the
</I>><i> few, and that player does not support web browsing.
</I>
Most Flash video uses on the Sorenson Spark codec which is based on H.
263. This is a much less processor-intensive codec than more modern
options, but also gives worse compression. H.264 has been approved as
one of the codecs for 3GPP so you can expect it to be supported by
mobile devices in the future. Modern hardware decoders these days
support H.263, MPEG-4 Part II, and H.264. These also happen to be the
3GPP codecs.
>><i> We are very sympathetic to the desire for interoperability, and we
</I>>><i> would really like there to be a codec that every browser can feel
</I>>><i> comfortable implementing. But we are not sure such a codec exists at
</I>>><i> this time (except for really primitive things, if you want to count
</I>>><i> animated GIF or APNG as video codecs).
</I>><i>
</I>><i> I am sure that if everyone else starts supporting Theora and Vorbis
</I>><i> then Apple will quickly
</I>><i> start feeling comfortable, it's the way the market works.
</I>
Apple doesn't currently support WMV, despite it being a popular
format for video on the web, so I'm not sure that follows.
Regards,
Maciej
</PRE>
<!--endarticle-->
<!--htdig_noindex-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="052684.html">[whatwg] Codecs (was Re: Apple Proposal for Timed Media Elements)
</A></li>
<LI>Next message: <A HREF="052765.html">[whatwg] Codecs (was Re: Apple Proposal for Timed Media Elements)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#52756">[ date ]</a>
<a href="thread.html#52756">[ thread ]</a>
<a href="subject.html#52756">[ subject ]</a>
<a href="author.html#52756">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
mailing list</a><br>
<!--/htdig_noindex-->
</body></html>
|
html
|
Jasprit Bumrah’s success has been key to India’s success across formats. He has emerged as the leader of India’s pace bowling. The pacer is counted among the best fast bowlers in the world. Bumrah has credited his mother for success in international cricket. For him, she has been the pillar of his life, always backing him and showing him the way forward after his father passed away early.
“I lost my father when I was young so I’ve got a close unit – a sister and my mother. So I’m very close to them. Whenever things go well or don’t go well, we keep the same atmosphere at home. We’re happy, grateful of whatever I’ve got as a cricketer. My mother has done a lot for me. She’s a school principal, she just retired. There’s a lot of hard work for us. You don’t need to go anywhere for inspiration, it’s at home,” he said in an interview to ICC posted on the eve of India’s fixture against Afghanistan.
Bumrah has 90 wickets in 52 ODIs, 49 wickets in 10 Tests, and 51 wickets in 42 T20Is. He has been India’s premier pace bowler and it won’t be wrong to say that he is currently the best fast bowler in international cricket across formats.
|
english
|
Leke Chutki E Muski song is a Bhojpuri folk song from the Rasgulla Mangeli released on 2009. Music of Leke Chutki E Muski song is composed by Raman. Leke Chutki E Muski was sung by Amit Yadav. Download Leke Chutki E Muski song from Rasgulla Mangeli on Raaga.com.
|
english
|
<reponame>bryandmc/ns_server<filename>priv/public/ui/app/mn_admin/mn_buckets_details_controller.js<gh_stars>0
/*
Copyright 2020-Present Couchbase, Inc.
Use of this software is governed by the Business Source License included in
the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that
file, in accordance with the Business Source License, use of this software will
be governed by the Apache License, Version 2.0, included in the file
licenses/APL2.txt.
*/
export default mnBucketsDetailsController;
function mnBucketsDetailsController($scope, mnBucketsDetailsService, mnPromiseHelper, mnSettingsAutoCompactionService, mnCompaction, $uibModal, mnBucketsDetailsDialogService, mnPoller, mnHelper, permissions) {
var vm = this;
vm.editBucket = editBucket;
vm.deleteBucket = deleteBucket;
vm.flushBucket = flushBucket;
vm.registerCompactionAsTriggeredAndPost = registerCompactionAsTriggeredAndPost;
vm.getGuageConfig = getGuageConfig;
vm.getEndings = mnHelper.getEndings;
var compactionTasks;
activate();
function activate() {
if (permissions.cluster.tasks.read) {
compactionTasks = new mnPoller($scope, function () {
return mnBucketsDetailsService.getCompactionTask($scope.bucket);
})
.subscribe("compactionTasks", vm)
.reloadOnScopeEvent("mnTasksDetailsChanged")
.cycle();
}
$scope.$watch('bucket', function () {
permissions.cluster.tasks.read && compactionTasks.reload();
mnPromiseHelper(vm, mnBucketsDetailsService.doGetDetails($scope.bucket)).applyToScope("bucketDetails");
});
if (permissions.cluster.tasks.read) {
$scope.$watchGroup(['bucket', 'adminCtl.tasks'], function (values) {
vm.warmUpTasks = mnBucketsDetailsService.getWarmUpTasks(values[0], values[1]);
});
}
}
$scope.$watch("bucketsDetailsCtl.bucketDetails", getBucketRamGuageConfig);
function getBucketRamGuageConfig(details) {
if (!details) {
return;
}
let ram = details.basicStats.storageTotals.ram;
vm.bucketRamGuageConfig = mnBucketsDetailsService.getBucketRamGuageConfig({
total: ram ? (ram.quotaTotalPerNode * details.nodes.length) : 0,
thisAlloc: details.quota.ram,
otherBuckets: ram ? (ram.quotaUsedPerNode * details.nodes.length - details.quota.ram) : 0
});
}
function getGuageConfig(details) {
if (!details) {
return;
}
let hdd = details.basicStats.storageTotals.hdd;
return mnBucketsDetailsService.getGuageConfig(
hdd ? hdd.total : 0,
details.basicStats.diskUsed,
hdd ? (hdd.usedByData - details.basicStats.diskUsed) : 0,
hdd ? (hdd.used - hdd.usedByData) : 0
);
}
function editBucket() {
$uibModal.open({
templateUrl: 'app/mn_admin/mn_buckets_details_dialog.html',
controller: 'mnBucketsDetailsDialogController as bucketsDetailsDialogCtl',
resolve: {
bucketConf: function () {
return mnBucketsDetailsDialogService.reviewBucketConf(vm.bucketDetails);
},
autoCompactionSettings: function () {
if (vm.bucketDetails.autoCompactionSettings === undefined) {
return;
}
return !vm.bucketDetails.autoCompactionSettings ?
mnSettingsAutoCompactionService.getAutoCompaction(true) :
mnSettingsAutoCompactionService.prepareSettingsForView(vm.bucketDetails);
}
}
});
}
function deleteBucket(bucket) {
$uibModal.open({
templateUrl: 'app/mn_admin/mn_buckets_delete_dialog.html',
controller: 'mnBucketsDeleteDialogController as bucketsDeleteDialogCtl',
resolve: {
bucket: function () {
return bucket;
}
}
});
}
function flushBucket(bucket) {
$uibModal.open({
templateUrl: 'app/mn_admin/mn_buckets_flush_dialog.html',
controller: 'mnBucketsFlushDialogController as bucketsFlushDialogCtl',
resolve: {
bucket: function () {
return bucket;
}
}
});
}
function registerCompactionAsTriggeredAndPost(url, disableButtonKey) {
vm.compactionTasks[disableButtonKey] = true;
mnPromiseHelper(vm, mnCompaction.registerAsTriggeredAndPost(url))
.onSuccess(function () {
compactionTasks.reload()
});
}
}
|
javascript
|
$(function () {
var url = window.location.href;
console.log(url);
if(url.indexOf('xueyuan_count')>0){
$("#check2").removeClass('subnav2');
$("#check2").css('padding-left','0%');
$("#check2").addClass('my2');
var profileLi = $("#check2");
profileLi.children().eq(0).addClass('active').siblings().removeClass('active');
// $("#down").css({'display':'inline','padding-left':'45px'});
// $("#right").css('display','none');
}else if(url.indexOf('jiaoyanshi_count')>0){
$("#check2").removeClass('subnav2');
$("#check2").css('padding-left','0%');
$("#check2").addClass('my2');
var profileLi = $("#check2");
profileLi.children().eq(1).addClass('active').siblings().removeClass('active');
// $("#down").css('display','inline');
// $("#right").css('display','none');
}else if(url.indexOf('pingshen_count')>0){
$("#check2").removeClass('subnav2');
$("#check2").css('padding-left','0%');
$("#check2").addClass('my2');
var profileLi = $("#check2");
profileLi.children().eq(2).addClass('active').siblings().removeClass('active');
// $("#down").css('display','inline');
// $("#right").css('display','none');
}else if(url.indexOf('history')>0){
$("#lsjl").addClass('active');
}else if(url.indexOf('paihangbang')>0){
$("#phb").addClass('active');
}else if(url.indexOf(('see_jys')>0))
{
$("#jysck").addClass('active');
}
});
|
javascript
|
import { Component, Fragment, h, Prop } from '@stencil/core';
@Component({
tag: 'abc-customization',
shadow: true,
})
export class AbcIconComponent {
@Prop({ reflect: true, mutable: true }) values: any;
componentWillLoad() {
if (typeof this.values === 'object') {
const valuesSize = Object.keys(this.values).length;
if (valuesSize !== 22) return;
console.log(valuesSize);
Object.entries(this.values).forEach(([key, value]) => {
document.documentElement.style.setProperty(key, String(value));
});
}
}
render() {
return <Fragment></Fragment>;
}
}
|
typescript
|
It's one thing to pick youngsters; but it's another to back them and give them a long run. Tamil Nadu, who have had an excellent overall domestic season, have fielded as many as eight debutants throughout the season across various formats.
While some failed to deliver, some have made it count and a few have even caught the attention of the national selectors.
Five made their debuts in the Ranji Trophy - Washington Sundar (left-hand batsman and off-spinner), K Vignesh (right-arm medium-pacer), L Suryaprakash (right-hand batsman), V Ganga Sridhar Raju (left-hand batsman), N Jagadeesan (wicket-keeper batsman), while allrounders S Harish and Sanjay Yadav made their way into the Tamil Nadu T20 side courtesy their impressive show in the Tamil Nadu Premier League (TNPL). Young left-arm spinner R Sai Kishore made his List A debut in the Vijay Hazare Trophy quarterfinal against Gujarat earlier this month.
Vignesh, with 37 wickets in nine Ranji Trophy matches, emerged as one of the leading wicket-takers in the season and was rewarded with a place in the Rest of India squad for the Irani Cup. Although Washington failed in Ranji, his all-round efforts played a major role in the team's Vijay Hazare title win. The same is the case with southpaw Ganga, who has scored 278 runs in eight List A matches.
Jagadeesan, who stole the show in TNPL, smashed a sensational hundred on his Ranji debut against Madhya Pradesh at Cuttack. Sanjay, who played only one T20 match in Syed Mushtaq Ali tournament, was bagged by Kolkata Knight Riders in the IPL auction.
While the selection committee, headed by S Sharath, rewarded these youngsters for their impressive performances in junior cricket and TNCA first division league, coach Hrishikesh Kanitkar backed their abilities at critical junctures.
Jagadeesan made his debut in a crunch match against Madhya Pradesh, Ganga made his debut against Mumbai in a high-pressure Ranji Trophy semi-final, Sanjay made his T20 debut in a key T20 clash and Sai Kishore got the nod against the then defending champions Gujarat in the quarterfinal of Vijay Hazare Trophy.
"I feel anybody who is in the 15 should be good enough to play in any situation. As a debutant he may not have the experience but he should have the ability and the heart to face whatever is coming ahead of him. He should have the right attitude.
"If these things are there, I don't mind playing a debutant at any situation or game. I feel comfortable in doing it because from my side it's never going to be... 'One game and you are out of the team' approach," Kanitkar told TOI.
Kanitkar firmly believes a player should be handed at least "three four-day matches" to prove himself.
"If a player makes his debut in semis and we lose, then the season finishes. If we win and even if the player hasn't performed well, I will definitely play him in the final. I believe in four-day games a player should get three games at least to prove his case.
"In first-class cricket, four innings are gone even before you realise it. So, if you give them even two matches and remove them for good... it's not fair on them. When you give them that much time, they will have solid empirical evidence on what they need to work on. It won't be like a guess game on had gone wrong," Kanitkar added.
He also mentioned that he has made it a point to tell the player why he has been dropped.
"When they are dropped we make sure they will know why they were dropped or why somebody is picked. All these guys showed whatever was needed at the nets or whatever opportunities they have got. They showed the right attitude and willing to work hard," he added.
More than the numbers, Kanitkar said he looks at certain "indications" and backs the player.
"All of them didn't perform great. Only a few did. But those who didn't perform never disappointed us. If you take opener Suryaprakash's case, he looked comfortable in two or three innings that he played and then lost his wicket. That's an indication they can make it happen at that level.
"Ganga was very good against Mumbai in his first match. He was unfazed by the opposition or situation. The match before his debut he was on the field as a substitute against Karnataka in the quarterfinal and inflicted a run-out in the short time he spent on the ground. These things give you an indication that he has the heart to fight when he is out of comfort zone," he added.
Overall, this has been a season for and of debutants for Tamil Nadu.
|
english
|
{
"citations" : [ {
"textCitation" : "[See nfsb2or on Metamath](http://us.metamath.org/mpegif/nfsb2or.html)"
} ],
"names" : [ "nfsb2or" ],
"language" : "METAMATH_SET_MM",
"lookupTerms" : [ "#T_wal", "#T_vx", "#T_vx", "#T_wceq", "#T_vy", "#T_wo", "#T_wnf", "#T_vx", "#T_wsb--1", "#T_vy", "#T_wsb--2", "#T_vx", "#T_wsb--3", "#T_wph" ],
"metaLanguage" : "METAMATH",
"remarks" : " Bound-variable hypothesis builder for substitution. Similar to ~ hbsb2 but in intuitionistic logic a disjunction is stronger than an implication. (Contributed by <NAME>, 2-Feb-2018.) ",
"statement" : "nfsb2or $p |- ( A. x x = y \\/ F/ x [ y / x ] ph ) $."
}
|
json
|
<reponame>dd2480-12/jsoup
package org.jsoup.nodes;
import org.jsoup.Jsoup;
import org.junit.Test;
import static org.junit.Assert.*;
public class AttributeTest {
@Test public void html() {
Attribute attr = new Attribute("key", "value &");
assertEquals("key=\"value &\"", attr.html());
assertEquals(attr.html(), attr.toString());
}
@Test public void testWithSupplementaryCharacterInAttributeKeyAndValue() {
String s = new String(Character.toChars(135361));
Attribute attr = new Attribute(s, "A" + s + "B");
assertEquals(s + "=\"A" + s + "B\"", attr.html());
assertEquals(attr.html(), attr.toString());
}
@Test(expected = IllegalArgumentException.class) public void validatesKeysNotEmpty() {
Attribute attr = new Attribute(" ", "Check");
}
@Test(expected = IllegalArgumentException.class) public void validatesKeysNotEmptyViaSet() {
Attribute attr = new Attribute("One", "Check");
attr.setKey(" ");
}
@Test public void booleanAttributesAreEmptyStringValues() {
Document doc = Jsoup.parse("<div hidden>");
Attributes attributes = doc.body().child(0).attributes();
assertEquals("", attributes.get("hidden"));
Attribute first = attributes.iterator().next();
assertEquals("hidden", first.getKey());
assertEquals("", first.getValue());
assertFalse(first.hasValue());
assertTrue(Attribute.isBooleanAttribute(first.getKey()));
}
@Test public void settersOnOrphanAttribute() {
Attribute attr = new Attribute("one", "two");
attr.setKey("three");
String oldVal = attr.setValue("four");
assertEquals("two", oldVal);
assertEquals("three", attr.getKey());
assertEquals("four", attr.getValue());
assertEquals(null, attr.parent);
}
@Test public void hasValue() {
Attribute a1 = new Attribute("one", "");
Attribute a2 = new Attribute("two", null);
Attribute a3 = new Attribute("thr", "thr");
assertTrue(a1.hasValue());
assertFalse(a2.hasValue());
assertTrue(a3.hasValue());
}
}
|
java
|
{
"Collaborative markdown notes": "Samenwerkende markdown notities",
"Realtime collaborative markdown notes on all platforms.": "Realtime samenwerkende markdown notities.",
"Best way to write and share your knowledge in markdown.": "De beste manier je kennis te delen en schrijven in markdown.",
"Intro": "Introductie",
"History": "Gueschiedenis",
"New guest note": "Nieuwe gast notitie",
"Collaborate with URL": "Samenwerken met URL",
"Support charts and MathJax": "Ondersteun grafieken en MathJax",
"Support slide mode": "Ondersteun slide mode",
"Sign In": "Log in",
"Below is the history from browser": "Hier onder staat de browser geschiedenis",
"Welcome!": "Welkom!",
"New note": "Nieuwe notitie",
"or": "of",
"Sign Out": "Log uit",
"Explore all features": "Ontdek alle features",
"Select tags...": "Selecteer tags...",
"Search keyword...": "Zoeken op keyword...",
"Sort by title": "Sorteren op titel",
"Title": "Titel",
"Sort by time": "Sorteren op tijd",
"Time": "Tijd",
"Export history": "Exporteer geschiedenis",
"Import history": "Importeer geschiedenis",
"Clear history": "Verwijder geschiedenis",
"Refresh history": "Ververs geschiedenis",
"No history": "Geen geschidenis gevonden",
"Import from browser": "Importeer van browser",
"Releases": "Releases",
"Are you sure?": "Weet je het zeker?",
"Cancel": "Stoppen",
"Yes, do it!": "Ja, doe het!",
"Choose method": "Kies methode",
"Sign in via %s": "Log in via %s",
"New": "Nieuw",
"Publish": "Publiceren",
"Extra": "Extra",
"Revision": "Herzien",
"Slide Mode": "Slide Mode",
"Export": "Exporteren",
"Import": "Importeren",
"Clipboard": "Kladbord",
"Download": "Downloaden",
"Raw HTML": "Raw HTML",
"Edit": "Aanpassen",
"View": "Bekijken",
"Both": "Beide",
"Help": "Help",
"Upload Image": "Afbeelding uploaden",
"Menu": "Menu",
"This page need refresh": "Deze pagina moet herladen worden",
"You have an incompatible client version.": "Je client is niet compatible.",
"Refresh to update.": "Ververs om te updaten.",
"New version available!": "Nieuwe versie beschikbaar!",
"See releases notes here": "Zie releases hier",
"Refresh to enjoy new features.": "Ververs om de nieuwe features te zien.",
"Your user state has changed.": "Je gebruikers-status is veranderd.",
"Refresh to load new user state.": "Ververs om je nieuwe gebruikers-status te zien.",
"Refresh": "Ververs",
"Contacts": "Contacten",
"Report an issue": "Probleem rapporteren",
"Send us email": "Stuur ons een mail",
"Documents": "Documenten",
"Features": "Features",
"YAML Metadata": "YAML Metadata",
"Slide Example": "Slide Voorbeeld",
"Cheatsheet": "Afkijkblad",
"Example": "Voorbeeld",
"Syntax": "Syntax",
"Header": "Koptekst",
"Unordered List": "Niet gesorteerde Lijst",
"Ordered List": "Gesorteerde List",
"Todo List": "Todo Lijst",
"Blockquote": "Quote",
"Bold font": "Bold tekst",
"Italics font": "Italics tekst",
"Strikethrough": "Doorstreepte tekst",
"Inserted text": "Bijgevoegde tekst",
"Marked text": "Gemarkeerde tekst",
"Link": "Link",
"Image": "Afbeelding",
"Code": "Code",
"Externals": "Uiterlijkheden",
"This is a alert area.": "Dit is een waarschuwingsgebied.",
"Revert": "Terugzetten",
"Import from clipboard": "Importeren from kladbord",
"Paste your markdown or webpage here...": "Plak je markdown of webpagina hier...",
"Clear": "Legen",
"This note is locked": "Deze notitie zit op slot",
"Sorry, only owner can edit this note.": "Sorry, alleen de eigenaar kan deze notitie aanpassen.",
"OK": "OK",
"Reach the limit": "Limiet bereikt",
"Sorry, you've reached the max length this note can be.": "Sorry, je notitie heeft de maximale lengte bereikt.",
"Please reduce the content or divide it to more notes, thank you!": "Verwijder alsjeblieft wat tekst of verdeel het over meerdere notities!",
"Import from Gist": "Importeren vanaf een Gist",
"Paste your gist url here...": "Plak je Gist URL hier...",
"Import from Snippet": "Imporeren vanaf een Snippet",
"Select From Available Projects": "Selecteer van beschikbare projecten",
"Select From Available Snippets": "Selecteer van beschikbare Snippets",
"OR": "OF",
"Export to Snippet": "Exporteren naar Snippet",
"Select Visibility Level": "Selecteer zichtbaarheids niveau"
}
|
json
|
<gh_stars>10-100
## Citing
Please cite DISHTINY as
bibtex:
```
@article{10.1162/artl_a_00284,
author = {Moreno, <NAME> and Ofria, Charles},
title = "{Toward Open-Ended Fraternal Transitions in Individuality}",
journal = {Artificial Life},
volume = {25},
number = {2},
pages = {117-133},
year = {2019},
month = {05},
abstract = "{The emergence of new replicating entities from the union of simpler entities characterizes some of the most profound events in natural evolutionary history. Such transitions in individuality are essential to the evolution of the most complex forms of life. Thus, understanding these transitions is critical to building artificial systems capable of open-ended evolution. Alas, these transitions are challenging to induce or detect, even with computational organisms. Here, we introduce the DISHTINY (Distributed Hierarchical Transitions in Individuality) platform, which provides simple cell-like organisms with the ability and incentive to unite into new individuals in a manner that can continue to scale to subsequent transitions. The system is designed to encourage these transitions so that they can be studied: Organisms that coordinate spatiotemporally can maximize the rate of resource harvest, which is closely linked to their reproductive ability. We demonstrate the hierarchical emergence of multiple levels of individuality among simple cell-like organisms that evolve parameters for manually designed strategies. During evolution, we observe reproductive division of labor and close cooperation among cells, including resource-sharing, aggregation of resource endowments for propagules, and emergence of an apoptosis response to somatic mutation. Many replicate populations evolved to direct their resources toward low-level groups (behaving like multicellular individuals), and many others evolved to direct their resources toward high-level groups (acting as larger-scale multicellular individuals).}",
issn = {1064-5462},
doi = {10.1162/artl_a_00284},
url = {https://doi.org/10.1162/artl\_a\_00284},
eprint = {https://direct.mit.edu/artl/article-pdf/25/2/117/1896700/artl\_a\_00284.pdf},
}
```
APA:
> <NAME>., & <NAME>. (2019). Toward open-ended fraternal transitions in individuality. Artificial life, 25(2), 117-133.
Chicago:
> Moreno, <NAME>, and <NAME>. "Toward open-ended fraternal transitions in individuality." Artificial life 25, no. 2 (2019): 117-133.
MLA:
> Moreno, <NAME>, and <NAME>. "Toward open-ended fraternal transitions in individuality." Artificial life 25.2 (2019): 117-133.
You can also access metadata to cite DISHTINY in our [`CITATION.cff` file](https://github.com/mmore500/dishtiny/blob/master/CITATION.cff).
Formatted citations were generated via <https://bibtex.online>.
|
markdown
|
#include "include/sctokenoperations.h"
#include <QRegularExpression>
TokenType SCTokenOperations::tokenType(const QChar &ch)
{
TokenType type;
QHash<QString, SCToken *>::const_iterator it = tokens.find(ch);
if (it != tokens.end())
type = it.value()->getType();
else
{
if (ch.isLetter())
type = partialFunction;
else if (ch.isDigit() || ch == '.')
type = partialOperand;
else
type = unknown;
}
return type;
}
TokenType SCTokenOperations::tokenType(const QString &str)
{
TokenType type;
QHash<QString, SCToken *>::const_iterator it = tokens.find(str);
if (it != tokens.end())
type = it.value()->getType();
else
{
// check if it's operand
/* Valid operands are:
* Integers: 5, 6, 7, 5., 7., 3. (with no leading zeroes): [1-9][0-9]*\.?
* Floats: .5, .7, 5.2, 5.0, 0.04, (multiple leading zeroes before the decimal point are allowed): [0-9]*\.[0-9]+
*/
QRegularExpression regExp("([1-9][0-9]*\\.?)|([0-9]*\\.[0-9]+)");
QRegularExpressionMatch match = regExp.match(str);
if (match.hasMatch())
type = operand;
else
type = unknown;
}
return type;
}
SCToken *SCTokenOperations::token(const QString &str)
{
SCToken *token;
QHash<QString, SCToken *>::const_iterator it = tokens.find(str);
if (it != tokens.end())
{
SCToken *retrievedToken = it.value();
switch (retrievedToken->getType())
{
case operand:
token = new SCOperand(*static_cast<SCOperand *>(retrievedToken));
break;
case binaryOperator:
token = new SCBinaryOperator(*static_cast<SCBinaryOperator *>(retrievedToken));
break;
case unaryOperator:
token = new SCUnaryOperator(*static_cast<SCUnaryOperator *>(retrievedToken));
break;
case binaryFunction:
token = new SCBinaryFunction(*static_cast<SCBinaryFunction *>(retrievedToken));
break;
case unaryFunction:
token = new SCUnaryFunction(*static_cast<SCUnaryFunction *>(retrievedToken));
break;
case lParenthesis:
case rParenthesis:
case lBracket:
case rBracket:
case separator:
token = new SCToken(*retrievedToken);
break;
default:
token = nullptr;
}
}
else
{
TokenType type = tokenType(str);
if (type == operand)
token = new SCOperand(str, operand, str, str.toDouble());
else
token = nullptr;
}
return token;
}
|
cpp
|
<filename>mon-toit/catalog/view/theme/journal2/css/side-column.css
/*
Journal - Advanced Opencart Theme Framework
Version 2.9.8
Copyright (c) 2017 <NAME>
https://www.journal-theme.com/
*/
/******************************
SIDE COLUMN
*******************************/
#column-right {
padding: 20px 20px 20px 0;
width: 220px;
float: right; }
#column-left {
padding: 20px 0 20px 20px;
width: 220px;
float: left; }
#column-right + #content {
margin-right: 220px; }
#column-left + #content {
margin-left: 220px; }
#column-left + #column-right + #content {
margin-left: 220px;
margin-right: 220px; }
#column-left + span + #content {
margin-left: 220px; }
#column-right + span + #content {
margin-right: 220px; }
#column-left + #column-right + span + #content {
margin-left: 220px;
margin-right: 220px; }
.side-column {
position: relative;
z-index: 2;
/******************************
SIDE CATEGORY
*******************************/
/******************************
CAROUSEL MODULE
*******************************/
/******************************
TEXT ROTATOR
*******************************/
/******************************
PHOTO GALLERY
*******************************/
/******************************
CMS BLOCKS
*******************************/ }
.side-column .heading-title, .side-column .box-heading {
max-height: 100%;
height: auto; }
.side-column ul, .side-column li {
margin: 0;
padding: 0; }
.side-column li {
list-style: none;
position: relative; }
.side-column .box {
margin-bottom: 20px; }
.side-column > .box:last-of-type {
margin-bottom: 0; }
.side-column .box-content > div:not(.swiper),
.side-column .box-category {
overflow: hidden; }
.side-column .box-content p {
padding: 10px;
text-align: left;
line-height: 1.4;
margin-bottom: 0; }
.side-column .box-content p + select {
margin-bottom: 15px; }
.side-column .box-content li a, .side-column .box-category li a {
transition: background-color .2s, color .2s;
border-bottom-width: 1px;
border-bottom-color: #f4f4f4;
border-bottom-style: solid;
position: relative;
display: block;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center; }
.side-column .box-content li a.active, .side-column .box-category li a.active {
color: #EA2E49; }
.side-column .box-content ul > li > ul, .side-column .box-category ul > li > ul {
display: none;
margin-bottom: 0; }
.side-column .box-content li a.active + ul, .side-column .box-category li a.active + ul {
display: block; }
.side-column .box-content li a:before, .side-column .box-category li a:before {
position: relative;
float: left;
margin-right: 5px; }
.side-column .box-content > ul > li:last-of-type > a, .side-column .box-category > ul > li:last-of-type > a {
border-bottom: 0 !important; }
.side-column .side-category i {
text-align: center;
position: absolute;
transition: background-color 0.2s, color 0.2s;
display: table;
line-height: 100%; }
.side-column .side-category i span {
position: relative;
display: table-cell; }
.side-column .side-category-accordion .box-category li ul li a:before {
float: none;
content: ""; }
.side-column .product-grid-item .image .outofstock {
display: none !important; }
.side-column .oc-module {
overflow: hidden;
display: block; }
.side-column .oc-module .product-wrapper {
margin: 0;
padding: 0;
border-radius: 0;
box-shadow: none;
border: none;
transition: all 0.2s;
display: block; }
.side-column .oc-module .product-wrapper .p-over {
display: none; }
.side-column .oc-module .product-wrapper:hover {
padding: 0;
margin: 0;
border-radius: 0;
box-shadow: none;
border: none; }
.side-column .oc-module .product-details {
background-color: transparent;
padding-bottom: 0;
max-width: 150px; }
.side-column .oc-module .product-details:before {
display: none; }
.side-column .oc-module .product-grid-item {
width: 100%;
display: inline-block;
border-bottom: 1px solid #E4E4E4;
margin-bottom: 0;
text-align: left; }
.side-column .oc-module .product-grid-item .quickview-button {
display: none; }
.side-column .oc-module .product-grid-item .image {
display: block;
float: left;
position: relative;
width: auto;
margin-right: 5px; }
.side-column .oc-module .product-grid-item .image span {
display: none !important; }
.side-column .oc-module .product-grid-item .image a {
background: transparent !important;
margin-right: 5px;
line-height: 100%;
border-radius: 0;
border: none; }
.side-column .oc-module .product-grid-item .image img {
border: 0;
display: block;
padding: 0;
max-width: 100%;
height: auto;
width: auto;
opacity: 1 !important; }
.side-column .oc-module .product-grid-item .name {
position: relative;
display: block;
margin-top: 2px; }
.side-column .oc-module .product-grid-item .name a {
white-space: normal;
font-size: 12px;
text-decoration: none;
display: block;
text-align: left;
padding: 0 0 2px 0; }
.side-column .oc-module .product-grid-item .price {
display: inline-block;
font-size: 12px;
padding: 0;
text-align: left;
border: none;
margin-bottom: 4px;
background-color: transparent;
border-radius: 0; }
.side-column .oc-module .product-grid-item .price-old {
font-weight: normal;
color: #EA2E49;
padding-right: 2px;
text-decoration: line-through;
font-size: 12px; }
.side-column .oc-module .product-grid-item .price-new {
font-size: 13px; }
.side-column .oc-module .product-grid-item .rating {
position: relative;
margin: 0;
left: 0;
top: 0;
padding: 0; }
.side-column .oc-module .product-grid-item .cart, .side-column .oc-module .product-grid-item .description, .side-column .oc-module .product-grid-item .sale, .side-column .oc-module .product-grid-item .wishlist, .side-column .oc-module .product-grid-item .compare {
display: none !important; }
.side-column .oc-module .product-grid-item .cart input {
color: white;
text-transform: none;
font-weight: bold; }
.side-column .oc-module .product-grid-item:last-of-type {
border-bottom: none; }
.side-column .journal-carousel .product-wrapper:hover {
box-shadow: none; }
.side-column .journal-carousel .htabs a {
width: 100%;
text-align: left;
border-bottom: 1px solid #5F6874;
border-right: 0; }
.side-column .journal-carousel .htabs a:last-of-type {
border-bottom: none; }
.side-column .journal-carousel .htabs.single-tab a, .side-column .journal-carousel .htabs.single-tab a.selected, .side-column .journal-carousel .htabs.single-tab a:hover {
border-bottom: none; }
.side-column .quote {
padding-bottom: 30px;
overflow: hidden; }
.side-column .rotator-image {
float: none !important;
margin: 10px auto 0 auto !important;
height: auto; }
.side-column .quovolve-nav {
bottom: 10px !important;
left: 0;
width: 100%;
text-align: center; }
.side-column .quovolve-nav ul, .side-column .quovolve-nav ol {
margin: 0;
padding: 0;
display: inline-block; }
.side-column .journal-gallery {
overflow: hidden; }
.side-column .journal-gallery .box-heading {
margin-bottom: 10px; }
.side-column .journal-gallery .box-content {
margin-right: -10px;
margin-bottom: -10px; }
.side-column .journal-gallery .box-content .gallery-thumb {
padding-right: 10px;
margin-bottom: 10px; }
.side-column .gallery-thumb a:before {
font-size: 20px; }
.side-column .cms-block, .side-column .static-banner {
margin-bottom: 20px; }
.side-column .cms-block:last-of-type, .side-column .static-banner:last-of-type {
margin-bottom: 0; }
.side-column .box.cms-blocks {
background-color: transparent; }
.side-column .box.cms-blocks .cms-block {
margin-bottom: 0; }
.side-column .box.cms-blocks .cms-block:last-of-type {
margin-bottom: 0; }
.side-column .box.cms-blocks .box-heading {
margin-bottom: 0; }
.side-column .box.cms-blocks .block-content {
height: auto !important;
background-color: transparent; }
.side-column .static-banners.box {
background-color: transparent; }
.side-column .block-content p {
padding-bottom: 0; }
.side-column .editor-content img {
max-width: 200px !important;
height: auto; }
.side-column .editor-content h1, .side-column .editor-content h2, .side-column .editor-content h3 {
padding-bottom: 0; }
.extended-layout #column-right .journal-gallery .box-content, .extended-layout #column-left .journal-gallery .box-content {
padding: 10px;
padding-top: 0; }
.extended-layout #column-right .box:last-of-type, .extended-layout #column-left .box:last-of-type {
margin-bottom: 20px; }
.side-column .oc-module .inline-button br {
display: none; }
.side-column .box.journal-carousel {
background-color: transparent; }
.side-column .side-products .product-wrapper {
background: transparent; }
.side-column .product-wrapper {
box-shadow: none !important; }
.ie:not(.edge) .side-column .oc-module .product-details {
float: left; }
/******************************
OC 2
*******************************/
#column-right + .row #content {
margin-right: 220px; }
#column-left + .row #content {
margin-left: 220px; }
#column-left + #column-right + .row #content {
margin-left: 220px;
margin-right: 220px; }
.flyout .fly-mega-menu {
left: 100%;
top: 0;
z-index: 1;
min-height: 100%;
width: 764px;
transition: all 0.2s;
box-shadow: 12px 15px 30px -8px rgba(0, 0, 0, 0.2); }
.flyout .fly-mega-menu .mega-menu-column {
margin: 0; }
.flyout .fly-mega-menu .mega-menu-column:last-of-type:not(:only-of-type) > div {
margin-right: 0;
margin-bottom: 15px; }
.flyout .fly-mega-menu .mega-menu-column:last-of-type:not(:only-of-type) > div > h3 {
margin-right: 15px; }
.flyout .fly-mega-menu .mega-menu-column.mega-menu-html-block > div {
margin-right: 15px;
margin-bottom: 15px; }
.flyout .fly-mega-menu .mega-menu-column.mega-menu-html-block > div > h3 {
margin-right: 0; }
.flyout .mega-menu div > h3 > a {
display: block;
overflow: hidden;
text-overflow: ellipsis; }
.flyout-menu {
overflow: visible; }
.flyout-menu .flyout > ul > li {
display: table;
width: 100%;
min-height: 40px; }
.flyout-menu .flyout > ul > li > a {
padding: 7px 25px 7px 12px;
width: 100%;
min-height: inherit;
display: table-cell;
vertical-align: middle;
position: relative;
transition: background-color .2s, color .2s;
border-bottom-width: 1px;
border-bottom-color: #f4f4f4;
border-bottom-style: solid; }
.flyout-menu .flyout > ul > li > a:before {
display: none; }
.flyout-menu .flyout > ul > li > a i {
left: -2px; }
.flyout-menu .flyout > ul > li > a i:before {
padding-left: 1px; }
.flyout-menu .flyout > ul > li > a i.menu-plus {
left: auto; }
.flyout-menu .flyout > ul > li:last-of-type a {
border-bottom-width: 0; }
.flyout-menu .flyout > ul > li:hover .fly-mega-menu,
.flyout-menu .flyout > ul > li:hover > ul {
display: block; }
.flyout > ul > li.fly-mega-menu-mixed {
position: static; }
.fly-drop-down .menu-plus,
.fly-mega-menu-mixed .menu-plus {
position: absolute;
font-size: 17px;
top: 14px;
right: 8px; }
.fly-drop-down .menu-plus::before,
.fly-mega-menu-mixed .menu-plus::before {
content: "\e620";
font-size: 11px;
float: left; }
.flyout-menu .flyout > ul > li:hover > a {
z-index: 2;
transition: all 0.2s; }
.fly-drop-down ul {
z-index: 999;
position: absolute;
list-style: none;
margin: 0;
padding: 0;
box-shadow: 0 1px 8px -3px rgba(0, 0, 0, 0.5);
height: 100%;
min-height: inherit; }
.fly-drop-down ul li {
color: #333745;
background-color: white;
position: relative;
border-bottom: 1px solid #f4f4f4;
height: 100%;
display: table;
width: 100%;
min-height: inherit; }
.fly-drop-down ul li:last-of-type {
border-bottom-width: 0; }
.fly-drop-down ul li ul {
visibility: hidden;
opacity: 0;
left: 100%;
top: 0;
min-height: 40px; }
.fly-drop-down ul li.left ul {
left: -100%; }
.fly-drop-down ul li:hover > ul {
transition: opacity 0.2s;
visibility: visible;
opacity: 1; }
.fly-drop-down ul li a {
min-width: 100px;
padding: 0 30px 0 12px;
color: inherit;
white-space: nowrap;
min-height: inherit;
display: table-cell;
vertical-align: middle; }
.fly-drop-down ul li a:before {
margin-right: 5px; }
.fly-drop-down > ul {
display: none;
left: 100%;
top: 0; }
.fly-drop-down > ul > li > a {
min-width: 120px; }
.flyout-left {
z-index: 4; }
.flyout-left .fly-mega-menu {
left: 100%; }
.flyout-right {
z-index: 3; }
.flyout-right .fly-mega-menu {
left: -100%; }
.flyout-right .fly-drop-down > ul {
left: auto;
right: 100%; }
.flyout-right .fly-drop-down ul li ul {
left: auto;
right: 100%; }
#column-right:hover {
z-index: 9; }
#column-right .flyout-menu .flyout > ul > li > a i.menu-plus {
left: 8px;
right: auto;
-webkit-transform: scale(-1);
transform: scale(-1); }
#column-right .flyout-menu i.menu-plus {
left: 8px;
right: auto;
-webkit-transform: scale(-1);
transform: scale(-1); }
#column-right .fly-drop-down ul li a {
min-width: 100px;
padding: 0 12px 0 25px; }
#column-right .flyout-menu .flyout > ul > li > a {
padding: 7px 12px 7px 25px;
text-align: right; }
|
css
|
{"url": "https://www.who.int/csr/don/1999_12_09/en/", "date_of_publication": "1999-12-09", "headline": "1999 - Cholera, Democratic Republic of the Congo", "main_text": "Since the beginning of November, 74 cases of cholera and 4 deaths have been reported in the areas of Kinshasa worst affected by current flooding of the Congo river and its tributaries. Investigations by the Ministry of Health with the collaboration of WHO are in progress and preventive and control measures are being implemented. Rising water levels have caused breakdowns in the water-supply system, resulting in a significant risk of contamination. Local authorities, with the help of NGOs, have already evacuated around 20\u00a0000 people. The current level of flooding is affecting an area inhabited by 2 million people, and it is feared that the peak level has not yet been reached. The total population of Kinshasa is 7 million. A crisis committee has been set up by the Minister of Health in which UN agencies, intergovernmental and nongovernmental organizations are participating. They are currently visiting the affected sites. An international response is being organized and some countries and agencies have already mobilized funds for the provision of food and other supplies.", "key_terms": ["other", "cholera"]}
|
json
|
<filename>node_modules/@angular-devkit/build-optimizer/src/.cache/3bddecfef0215d9df68ceae1619038c3.json<gh_stars>0
{"remainingRequest":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js??ref--3-1!/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/plotly.js/src/traces/heatmap/attributes.js","dependencies":[{"path":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/plotly.js/src/traces/heatmap/attributes.js","mtime":1529418310716},{"path":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/cache-loader/dist/cjs.js","mtime":1529418306962},{"path":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js","mtime":1529418304772}],"contextDependencies":[],"result":["/**\n* Copyright 2012-2018, Plotly, Inc.\n* All rights reserved.\n*\n* This source code is licensed under the MIT license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\n'use strict';\n\nvar scatterAttrs = require('../scatter/attributes');\nvar colorscaleAttrs = require('../../components/colorscale/attributes');\nvar colorbarAttrs = require('../../components/colorbar/attributes');\n\nvar extendFlat = require('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({}, {\n z: {\n valType: 'data_array',\n editType: 'calc',\n description: 'Sets the z data.'\n },\n x: extendFlat({}, scatterAttrs.x, {impliedEdits: {xtype: 'array'}}),\n x0: extendFlat({}, scatterAttrs.x0, {impliedEdits: {xtype: 'scaled'}}),\n dx: extendFlat({}, scatterAttrs.dx, {impliedEdits: {xtype: 'scaled'}}),\n y: extendFlat({}, scatterAttrs.y, {impliedEdits: {ytype: 'array'}}),\n y0: extendFlat({}, scatterAttrs.y0, {impliedEdits: {ytype: 'scaled'}}),\n dy: extendFlat({}, scatterAttrs.dy, {impliedEdits: {ytype: 'scaled'}}),\n\n text: {\n valType: 'data_array',\n editType: 'calc',\n description: 'Sets the text elements associated with each z value.'\n },\n transpose: {\n valType: 'boolean',\n dflt: false,\n role: 'info',\n editType: 'calc',\n description: 'Transposes the z data.'\n },\n xtype: {\n valType: 'enumerated',\n values: ['array', 'scaled'],\n role: 'info',\n editType: 'calc+clearAxisTypes',\n description: [\n 'If *array*, the heatmap\\'s x coordinates are given by *x*',\n '(the default behavior when `x` is provided).',\n 'If *scaled*, the heatmap\\'s x coordinates are given by *x0* and *dx*',\n '(the default behavior when `x` is not provided).'\n ].join(' ')\n },\n ytype: {\n valType: 'enumerated',\n values: ['array', 'scaled'],\n role: 'info',\n editType: 'calc+clearAxisTypes',\n description: [\n 'If *array*, the heatmap\\'s y coordinates are given by *y*',\n '(the default behavior when `y` is provided)',\n 'If *scaled*, the heatmap\\'s y coordinates are given by *y0* and *dy*',\n '(the default behavior when `y` is not provided)'\n ].join(' ')\n },\n zsmooth: {\n valType: 'enumerated',\n values: ['fast', 'best', false],\n dflt: false,\n role: 'style',\n editType: 'calc',\n description: [\n 'Picks a smoothing algorithm use to smooth `z` data.'\n ].join(' ')\n },\n connectgaps: {\n valType: 'boolean',\n dflt: false,\n role: 'info',\n editType: 'calc',\n description: [\n 'Determines whether or not gaps',\n '(i.e. {nan} or missing values)',\n 'in the `z` data are filled in.'\n ].join(' ')\n },\n xgap: {\n valType: 'number',\n dflt: 0,\n min: 0,\n role: 'style',\n editType: 'plot',\n description: 'Sets the horizontal gap (in pixels) between bricks.'\n },\n ygap: {\n valType: 'number',\n dflt: 0,\n min: 0,\n role: 'style',\n editType: 'plot',\n description: 'Sets the vertical gap (in pixels) between bricks.'\n },\n zhoverformat: {\n valType: 'string',\n dflt: '',\n role: 'style',\n editType: 'none',\n description: [\n 'Sets the hover text formatting rule using d3 formatting mini-languages',\n 'which are very similar to those in Python. See:',\n 'https://github.com/d3/d3-format/blob/master/README.md#locale_format'\n ].join(' ')\n },\n},\n colorscaleAttrs,\n { autocolorscale: extendFlat({}, colorscaleAttrs.autocolorscale, {dflt: false}) },\n { colorbar: colorbarAttrs }\n);\n",null]}
|
json
|
pub mod jobs;
|
rust
|
The aviation and telecom departments will shortly roll out a plan to ensure safe flight operations around airports with 5G airwave infrastructure. The plan includes telecom companies setting up infrastructure powering 5G networks in the country away from the flight path around airports, carrying low power signals in such areas and a plan to upgrade the altimeter of all aircraft operating in the country by August 2023, top sources told The Indian Express.
These are expected to be part of an operational guidelines that the Department of Telecommunications (DoT) is currently preparing, after India’s aviation regulator flagged concerns about interference that 5G signals could cause, potentially posing a challenge to safe airline operations.
In June, the US Federal Aviation Authority (FAA) announced a plan that involved these aspects to ensure safe airline operations.
What were concerns around 5G interference with flight operations?
In September, the Indian Directorate General of Civil Aviation (DGCA) wrote to the telecom department flagging concerns over the likely interference of 5G C-Band spectrum with aircraft radio altimeters, The Indian Express had reported. A radio altimeter is an instrument that provides direct height-above-terrain information to various aircraft systems.
The primary concern of the Directorate General of Civil Aviation (DGCA) emerges from the fact that these altimeters as well as a part of the 5G telecom services operate in the mid C-Band frequency range. Earlier this year, the 6,000-pilot-strong Federation of Indian Pilots had also written to the Civil Aviation Ministry raising similar concerns.
For telecom service providers, the C-Band presents a sweet spot for rolling out 5G services, ensuring coverage as well as high bandwidth, resulting in faster internet speeds. For aircraft operations, the use of altimeters in this band ensures highly precise measurements of the plane’s altitude. 5G terrestrial signals typically operate at a very heavy power level compared to flight altimeters.
What is the DoT expected to recommend?
Airline companies will also be required to upgrade altimeters used in some aircraft being flown in India. The Indian Express has also learnt that the company that manufactures it has sought for time till August 2023 to upgrade these devices.
Has this been an issue globally?
While the 5G network in India is still in its early days, US aviation authorities have reported about 85 cases of 5G waves impacting flight operations near the airport.
The DGCA’s issues were in line with concerns raised by the US FAA over the last one year since telecom operators in the US, such as AT&T, Verizon and T-Mobile etc, began rolling out 5G services. In the US, an agreement between the FAA and the telecom operators resulted in a delay in rollout of 5G services in the C-Band near airports that were assessed to be difficult for pilots to make visual approaches.
Earlier this year, Air India had to cancel some of its flights to the US as airlines globally scrambled to reschedule flights amid concerns that the rollout of 5G mobile services in the US could potentially interfere with aircraft navigation systems. Since then, the FAA has issued several directives to airlines to install certain filters or modify their equipment to ensure that 5G airwaves do not interfere with their navigation systems.
Have other industries raised concerns about 5G interference?
The issue of interference with other services has been raised by other industries as well. With the guard band between the 5G telecom and broadcast services narrowing sharply, broadcasters have cited multiple incidents of “disruptions” amid concerns over possible interference and potential outages once full-scale 5G services are launched across the country.
Earlier this month, The Indian Express had reported that the broadcasting industry has sent in representations to the government in this regard, citing earlier reports of service disruptions by operators in places, such as Tamil Nadu and parts of West Bengal.
|
english
|
<reponame>garvit1608/us-data-json
{"geometry": {"type": "Point", "coordinates": [-108.67, 37.5]}, "type": "Feature", "id": "81327", "properties": {"other_cities": "", "city": "Lewis", "state": "CO", "county": "Montezuma County"}}
|
json
|
Passwords aren’t much fun at the best of times, and trying to juggle a whole load of them can tempt you down all manner of wrong paths. It’s very difficult to think up complex passwords that are memorable, and be able to recall a whole bunch of them, at least without using some sort of clever and convoluted mental system. And not everyone can be bothered to figure one of those out (like using mnemonics, for example).
So, the main temptation is to take the easy way out and effectively cheat - by which we mean making passwords overly simple to ensure they’re memorable – or even worse, reuse the same password for different accounts (or perhaps both of the above, which happens more often than it should).
Of course, the ‘easy way’ can quickly become the ‘hard way’ when someone out there cracks your password and compromises one (or more) of your online accounts. The fallout from such a lapse in security can be damaging and far-reaching, perhaps even leading to identity theft and, ultimately, financial loss.
But here’s the thing: there is an easy way to deal with all your online password needs and that’s to use a password manager to handle everything for you. Naturally, you’ll want the best password manager you can get, and the good news is that one of our top picks is now a bargain.
In fact, the password manager Keeper is currently half-price, and you also get 50% off any add-ons purchased with a subscription plan.
Along with this hefty saving, it’s also worth bearing in mind that Keeper has just ushered in a raft of improvements to make its apps – desktop and mobile – even better.
That overhaul includes the interface getting a makeover to make it cleaner and more modern-looking, and in practical terms, everything has been streamlined – meaning common tasks within the UI can be completed in fewer clicks. Everything is better organized in general, and the software has been made more accessible to a wider range of users, which is highly commendable.
Save 50% - This plan is for one user, providing unlimited password storage across all devices. Keeper also boasts other features such as automatically filling in online forms.
Save 50% - The Family plan has the same features as Unlimited, but it ups support to five users, with each person getting a private vault for storing sensitive data.
If you want to grab this 50% discount, there are two plans you can sign up for, the first being Keeper Unlimited. This subscription covers a single user, allowing for unlimited passwords across all their devices.
Alternatively, there’s Keeper Family which boasts the same features as the Unlimited plan, but supports up to five users, and each person gets their own secure vault to store sensitive data (plus this plan also provides 10GB of secure cloud storage).
As we mentioned, add-ons are also half-price when you purchase one of the above plans. Those extras you can bolt on include BreachWatch, a feature that monitors the dark web for any traces of details relating to your online accounts, and if it finds any, the system warns you, allowing for remedial action to be taken swiftly.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
Darren is a freelancer writing news and features for TechRadar (and occasionally T3) across a broad range of computing topics including CPUs, GPUs, various other hardware, VPNs, antivirus and more. He has written about tech for the best part of three decades, and writes books in his spare time (his debut novel - 'I Know What You Did Last Supper' - was published by Hachette UK in 2013).
|
english
|
<filename>actions.py
from typing import Any, Text, Dict, List
from rasa_sdk.forms import FormAction
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
import re
class ActionSearch(Action):
def name(self) -> Text:
return "action_search"
def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
# Calling the DB
# Calling an API
# do anything
# all calculations are done here
camera = tracker.get_slot('camera')
ram = tracker.get_slot('RAM')
battery = tracker.get_slot('battery')
budget = tracker.get_slot('budget')
info = tracker.get_slot('info')
email = tracker.get_slot('email')
contact = tracker.get_slot('contact')
dispatcher.utter_message(text='Here are your search results')
dispatcher.utter_message(text='The features you entered: '+str(camera)+","+str(ram)+","+str(battery)+","+str(budget)+","+str(info)+","+str(email)+","+str(contact))
return []
class ActionShowLatestNews(Action):
def name(self) -> Text:
return "action_show_latest_news"
def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
# Calling the DB
# Calling an API
# do anything
# all calculations are done here
dispatcher.utter_message(text="Here is the latest news for your category")
return []
class ProductSearchForm(FormAction):
def name(self) -> Text:
return "product_search_form"
@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
return ["ram","battery","camera","budget","info","email","contact"]
def validate_ram(self,value: Text,dispatcher: CollectingDispatcher,tracker: Tracker, domain: Dict[Text, Any],) -> Dict[Text, Any]:
ram_int = int(re.findall(r'[0-9]+',value)[0])
if ram_int < 16:
return {"ram":ram_int}
else:
dispatcher.utter_message(template="utter_wrong_ram")
return {"ram":None}
def validate_camera(self,value: Text,dispatcher: CollectingDispatcher,tracker: Tracker, domain: Dict[Text, Any],) -> Dict[Text, Any]:
camera_int = int(re.findall(r'[0-9]+',value)[0])
if camera_int < 150:
return {"camera":camera_int}
else:
dispatcher.utter_message(template="utter_wrong_camera")
return {"camera":None}
def validate_budget(self,value: Text,dispatcher: CollectingDispatcher,tracker: Tracker, domain: Dict[Text, Any],) -> Dict[Text, Any]:
budget_int = int(re.findall(r'[0-9]+',value)[0])
if budget_int < 4000:
return {"budget":budget_int}
else:
dispatcher.utter_message(template="utter_wrong_budget")
return {"budget":None}
def validate_battery(self,value: Text,dispatcher: CollectingDispatcher,tracker: Tracker, domain: Dict[Text, Any]) -> Dict[Text, Any]:
battery_int = int(re.findall(r'[0-9]+',value)[0])
if battery_int < 10000:
return {"battery":battery_int}
else:
dispatcher.utter_message(template="utter_wrong_battery")
return {"battery":None}
def validate_contact(self,value: Text,dispatcher: CollectingDispatcher,tracker: Tracker, domain: Dict[Text, Any]) -> Dict[Text, Any]:
contact_int = int(re.findall(r'[0-9]+',value)[0])
if len(contact_int) == 10:
return {"contact":contact_int}
else:
dispatcher.utter_message(template="utter_wrong_contact")
return {"contact":None}
def submit(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) -> List[Dict]:
dispatcher.utter_message(text="Please find your searched items here.....")
return []
|
python
|
After the grand Oscar win, Guneet Monga landed in Delhi where she received a grand welcome. The producer of the documentary, The Elephant Whisperers, was greeted with garlands, when she arrived at the Delhi airport. Chef Vikas Khanna's mother not only warmly welcomed her but she also went on to drive her to Amritsar to visit the Golden Temple. A video of their visit was shared by Monga on social media.
Guneet Monga took to Instagram to share montages of her Golden Temple visit where she was also seen helping the team prepare 'langar' as well as posing with the prestigious trophy. The video also shows how Vikas Khanna and his mother accompanied Monga to seek blessings.
For the unversed, earlier, Vikas' mother had promised that if Guneet wins the Oscars, she would take the producer to the temple. Keeping up with her promise, the entire team was seen spending the entire day at the religious shrine. The caption for the video read, "When you dedicate your honors to your ancestors. Thank you Guneet for showing us the power of humility & love. Your glory is forever immortal."
In another post, Guneet expressed gratitude saying, "Grateful for what there is and what there will be. #Shukrana".
In an earlier video posted by Monga and Vikas we got a glimpse of the grand welcome the producer received from the Khanna family. It was captioned saying, "From being a dreamer to becoming one of the most powerful producers in the World. Here it to you Guneet, you made every Indian wealthier. My Ma had said 2 months ago that if Guneet wins an Oscar, I'll drive her to The Golden Temple."
Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
|
english
|
<filename>package.json<gh_stars>1-10
{
"name": "@types/qwebchannel",
"version": "1.0.0",
"description": "TypeScript definitions for QT WebChannel API",
"scripts": {},
"author": "Volume Graphics GmbH",
"homepage": "https://www.volumegraphics.com/",
"license": "MIT",
"types": "index",
"typeScriptVersion": "3.0"
}
|
json
|
Domestic equity market benchmarks Sensex and Nifty opened on a positive note lifted by gains in RIL, HDFC twins, ICICI Bank, Infosys. “Market is finding some sanity after the setback of not meeting high expectations from the budget, hereon the focus will be on corporate results and global trend. With valuations on the higher side, the on-going results reported have been mostly in line with estimates. Manufacturing PMI shows notable rebound providing a breather that economy will stabilize as mentioned in the budget,” Vinod Nair, Head of Research at Geojit Financial Services said.
Sensex, Nifty up over 1.75%- Around 11 AM, the S&P BSE Sensex was trading 700 points or 1.76 per cent higher at 40,574 points, while the broader Nifty 50 index was trading 205 points or 1.76 per cent higher at 11,914 points.
29 out of 30 Sensex stocks in green- As many as 29 out of 30 Sensex stocks were trading in green in the today’s trade. Hero MotoCorp, HDFC Bank, RIL, ITC and UltraTech Cement were among the top gainers. On the other hand, Bharti Airtel was trading over 0.25 per cent lower ahead of Q3 earnings.
All Nifty sectoral indices in green- All the Nifty sevtoral indices were trading in green. Nifty Bank index gained over 1.5 per cent or 454 points led by gains in HDFC Bank, ICICI Bank, IDFC First Bank and Punjab National Bank. The Nifty Metal index, too, was tradinh higher with Welspun Corp, Hindustan Copper, APL Apollo Tubes as the top gainers.
Rupee gains- The Indian rupee rose 0.23 per cent or 16 paise against the US dollar. It was trading at 71.20 per dollar level.
Q3 earnings today- Bharti Airtel, Adani Ports, Cipla, HPCL, Divi’s Lab are among the companies which are scheduled to release their December quarter earnings today.
Manufacturing PMI scales near 8-year peak in January- Indian manufacturing output picked up at the fastest pace in almost eight years in January, with the PMI touching 55.3. Growth was led by consumer and intermediate goods, and capital goods moved back to expansion.
Oil prices surge- Oil prices rose on Tuesday as investors regained calm after Monday’s sharp sell-off over coronavirus fears. Brent crude was at $54.66 a barrel, up 21 cents, or nearly 0.4 per cent, while US West Texas Intermediate (WTI) crude was up 32 cents, or 0.6 per cent, at $50.43 a barrel.
Global markets- MSCI’s broadest index of Asia-Pacific shares outside Japan rose 1.0 per cent, led by gains in South Korea and Australia. Japan’s Nikkei inched up 0.1 per cent. The Dow Jones Industrial Average rose 143.78 points, or 0.51 per cent, to 28,399.81, the S&P 500 gained 23.4 points, or 0.73 per cent, to 3,248.92, and the Nasdaq Composite added 122.47 points, or 1.34 per cent, to 9,273.40.
|
english
|
import torch.nn as nn
class RODEncode(nn.Module):
def __init__(self, in_channels=2):
super(RODEncode, self).__init__()
self.conv1a = nn.Conv3d(
in_channels=in_channels,
out_channels=64,
kernel_size=(9, 5, 5),
stride=(1, 1, 1),
padding=(4, 2, 2),
)
self.conv1a_1 = nn.Conv3d(
in_channels=64,
out_channels=64,
kernel_size=(9, 5, 5),
stride=(1, 1, 1),
padding=(4, 2, 2),
)
self.conv1a_2 = nn.Conv3d(
in_channels=64,
out_channels=64,
kernel_size=(9, 5, 5),
stride=(1, 1, 1),
padding=(4, 2, 2),
)
self.conv1b = nn.Conv3d(
in_channels=64,
out_channels=64,
kernel_size=(9, 5, 5),
stride=(2, 2, 2),
padding=(4, 2, 2),
)
self.conv2a = nn.Conv3d(
in_channels=64,
out_channels=128,
kernel_size=(9, 5, 5),
stride=(1, 1, 1),
padding=(4, 2, 2),
)
self.conv2b = nn.Conv3d(
in_channels=128,
out_channels=128,
kernel_size=(9, 5, 5),
stride=(2, 2, 2),
padding=(4, 2, 2),
)
self.conv3a = nn.Conv3d(
in_channels=128,
out_channels=256,
kernel_size=(9, 5, 5),
stride=(1, 1, 1),
padding=(4, 2, 2),
)
self.conv3b = nn.Conv3d(
in_channels=256,
out_channels=256,
kernel_size=(9, 5, 5),
stride=(1, 2, 2),
padding=(4, 2, 2),
)
self.bn1a = nn.BatchNorm3d(num_features=64)
self.bn1a_1 = nn.BatchNorm3d(num_features=64)
self.bn1a_2 = nn.BatchNorm3d(num_features=64)
self.bn1b = nn.BatchNorm3d(num_features=64)
self.bn2a = nn.BatchNorm3d(num_features=128)
self.bn2b = nn.BatchNorm3d(num_features=128)
self.bn3a = nn.BatchNorm3d(num_features=256)
self.bn3b = nn.BatchNorm3d(num_features=256)
self.relu = nn.ReLU()
def forward(self, x):
x = self.relu(
self.bn1a(self.conv1a(x))
) # (B, 2, W, 128, 128) -> (B, 64, W, 128, 128)
# additional
x = self.relu(
self.bn1a_1(self.conv1a_1(x))
) # (B, 64, W, 128, 128) -> (B, 64, W, 128, 128)
x = self.relu(
self.bn1a_2(self.conv1a_2(x))
) # (B, 64, W, 128, 128) -> (B, 64, W, 128, 128)
x = self.relu(
self.bn1b(self.conv1b(x))
) # (B, 64, W, 128, 128) -> (B, 64, W/2, 64, 64)
x = self.relu(
self.bn2a(self.conv2a(x))
) # (B, 64, W/2, 64, 64) -> (B, 128, W/2, 64, 64)
x = self.relu(
self.bn2b(self.conv2b(x))
) # (B, 128, W/2, 64, 64) -> (B, 128, W/4, 32, 32)
x = self.relu(
self.bn3a(self.conv3a(x))
) # (B, 128, W/4, 32, 32) -> (B, 256, W/4, 32, 32)
x = self.relu(
self.bn3b(self.conv3b(x))
) # (B, 256, W/4, 32, 32) -> (B, 256, W/4, 16, 16)
return x
class RODDecode(nn.Module):
def __init__(self, n_class):
super(RODDecode, self).__init__()
self.convt1 = nn.ConvTranspose3d(
in_channels=256,
out_channels=128,
kernel_size=(4, 6, 6),
stride=(2, 2, 2),
padding=(1, 2, 2),
)
self.convt2 = nn.ConvTranspose3d(
in_channels=128,
out_channels=64,
kernel_size=(4, 6, 6),
stride=(2, 2, 2),
padding=(1, 2, 2),
)
self.convt3 = nn.ConvTranspose3d(
in_channels=64,
out_channels=n_class,
kernel_size=(3, 6, 6),
stride=(1, 2, 2),
padding=(1, 2, 2),
)
self.prelu = nn.PReLU()
self.sigmoid = nn.Sigmoid()
# self.upsample = nn.Upsample(size=(rodnet_configs['win_size'], radar_configs['ramap_rsize'],
# radar_configs['ramap_asize']), mode='nearest')
def forward(self, x):
x = self.prelu(self.convt1(x)) # (B, 256, W/4, 16, 16) -> (B, 128, W/2, 32, 32)
x = self.prelu(self.convt2(x)) # (B, 128, W/2, 32, 32) -> (B, 64, W, 64, 64)
x = self.convt3(x) # (B, 64, W, 64, 64) -> (B, 3, W, 128, 128)
return x
|
python
|
/********************************************************************************
* File Name:
* sim_chimera_iwdg.cpp
*
* Description:
* Independent watchdog simulator definition
*
* 2021 | <NAME> | <EMAIL>
*******************************************************************************/
#if defined( CHIMERA_SIMULATOR )
/* Chimera Includes */
#include <Chimera/common>
#include <Chimera/watchdog>
namespace Chimera::Watchdog
{
/*-------------------------------------------------------------------------------
Independent Driver Implementation
-------------------------------------------------------------------------------*/
IndependentDriver::IndependentDriver() : mDriver( nullptr )
{
}
IndependentDriver::~IndependentDriver()
{
}
/*-------------------------------------------------
Interface: Hardware
-------------------------------------------------*/
Chimera::Status_t IndependentDriver::initialize( const IChannel ch, const uint32_t timeout_mS )
{
return Chimera::Status::NOT_SUPPORTED;
}
Status_t IndependentDriver::start()
{
return Chimera::Status::NOT_SUPPORTED;
}
Status_t IndependentDriver::stop()
{
return Chimera::Status::NOT_SUPPORTED;
}
Status_t IndependentDriver::kick()
{
return Chimera::Status::NOT_SUPPORTED;
}
Status_t IndependentDriver::pauseOnDebugHalt( const bool enable )
{
return Chimera::Status::NOT_SUPPORTED;
}
size_t IndependentDriver::getTimeout()
{
return 0;
}
size_t IndependentDriver::maxTimeout()
{
return 0;
}
size_t IndependentDriver::minTimeout()
{
return Chimera::Status::NOT_SUPPORTED;
}
/*-------------------------------------------------
Interface: Lockable
-------------------------------------------------*/
void IndependentDriver::lock()
{
}
void IndependentDriver::lockFromISR()
{
}
bool IndependentDriver::try_lock_for( const size_t timeout )
{
return Chimera::Status::NOT_SUPPORTED;
}
void IndependentDriver::unlock()
{
}
void IndependentDriver::unlockFromISR()
{
}
} // namespace Chimera::Watchdog
#endif /* CHIMERA_SIMULATOR */
|
cpp
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/signin/auth_sync_observer.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "chrome/browser/chromeos/login/reauth_stats.h"
#include "chrome/browser/chromeos/login/users/chrome_user_manager.h"
#include "chrome/browser/chromeos/login/users/supervised_user_manager.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/signin/signin_error_controller_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "components/browser_sync/profile_sync_service.h"
#include "components/signin/core/browser/signin_manager_base.h"
#include "components/user_manager/user_manager.h"
#include "components/user_manager/user_type.h"
namespace chromeos {
// static
bool AuthSyncObserver::ShouldObserve(Profile* profile) {
const user_manager::User* const user =
ProfileHelper::Get()->GetUserByProfile(profile);
return user && (user->HasGaiaAccount() ||
user->GetType() == user_manager::USER_TYPE_SUPERVISED);
}
AuthSyncObserver::AuthSyncObserver(Profile* profile) : profile_(profile) {
DCHECK(ShouldObserve(profile));
}
AuthSyncObserver::~AuthSyncObserver() {}
void AuthSyncObserver::StartObserving() {
browser_sync::ProfileSyncService* const sync_service =
ProfileSyncServiceFactory::GetForProfile(profile_);
if (sync_service)
sync_service->AddObserver(this);
SigninErrorController* const error_controller =
SigninErrorControllerFactory::GetForProfile(profile_);
if (error_controller) {
error_controller->AddObserver(this);
OnErrorChanged();
}
}
void AuthSyncObserver::Shutdown() {
browser_sync::ProfileSyncService* const sync_service =
ProfileSyncServiceFactory::GetForProfile(profile_);
if (sync_service)
sync_service->RemoveObserver(this);
SigninErrorController* const error_controller =
SigninErrorControllerFactory::GetForProfile(profile_);
if (error_controller)
error_controller->RemoveObserver(this);
}
void AuthSyncObserver::OnStateChanged(syncer::SyncService* sync) {
HandleAuthError(sync->GetAuthError());
}
void AuthSyncObserver::OnErrorChanged() {
SigninErrorController* const error_controller =
SigninErrorControllerFactory::GetForProfile(profile_);
const std::string error_account_id = error_controller->error_account_id();
const std::string primary_account_id =
SigninManagerFactory::GetForProfile(profile_)
->GetAuthenticatedAccountId();
// Bail if there is an error account id and it is not the primary account id.
if (!error_account_id.empty() && error_account_id != primary_account_id)
return;
HandleAuthError(error_controller->auth_error());
}
void AuthSyncObserver::HandleAuthError(
const GoogleServiceAuthError& auth_error) {
const user_manager::User* const user =
ProfileHelper::Get()->GetUserByProfile(profile_);
DCHECK(user->HasGaiaAccount() ||
user->GetType() == user_manager::USER_TYPE_SUPERVISED);
if (auth_error.IsPersistentError()) {
// Invalidate OAuth2 refresh token to force Gaia sign-in flow. This is
// needed because sign-out/sign-in solution is suggested to the user.
LOG(WARNING) << "Invalidate OAuth token because of an auth error: "
<< auth_error.ToString();
const AccountId& account_id = user->GetAccountId();
DCHECK(account_id.is_valid());
user_manager::User::OAuthTokenStatus old_status =
user->oauth_token_status();
user_manager::UserManager::Get()->SaveUserOAuthStatus(
account_id, user_manager::User::OAUTH2_TOKEN_STATUS_INVALID);
RecordReauthReason(account_id, ReauthReason::SYNC_FAILED);
if (user->GetType() == user_manager::USER_TYPE_SUPERVISED &&
old_status != user_manager::User::OAUTH2_TOKEN_STATUS_INVALID) {
// Attempt to restore token from file.
ChromeUserManager::Get()
->GetSupervisedUserManager()
->LoadSupervisedUserToken(
profile_, base::Bind(&AuthSyncObserver::OnSupervisedTokenLoaded,
base::Unretained(this)));
base::RecordAction(
base::UserMetricsAction("ManagedUsers_Chromeos_Sync_Invalidated"));
}
} else if (auth_error.state() == GoogleServiceAuthError::NONE) {
if (user->GetType() == user_manager::USER_TYPE_SUPERVISED &&
user->oauth_token_status() ==
user_manager::User::OAUTH2_TOKEN_STATUS_INVALID) {
LOG(ERROR) << "Got an incorrectly invalidated token case, restoring "
"token status.";
user_manager::UserManager::Get()->SaveUserOAuthStatus(
user->GetAccountId(), user_manager::User::OAUTH2_TOKEN_STATUS_VALID);
base::RecordAction(
base::UserMetricsAction("ManagedUsers_Chromeos_Sync_Recovered"));
}
}
}
void AuthSyncObserver::OnSupervisedTokenLoaded(const std::string& token) {
ChromeUserManager::Get()->GetSupervisedUserManager()->ConfigureSyncWithToken(
profile_, token);
}
} // namespace chromeos
|
cpp
|
Los Angeles, Jan 15 Hollywood actress Jennifer Coolidge has admitted that she still hasn't found the "love of her life" yet because she has not yet come across a man who is the right fit for her.
The "White Lotus" star, 61, has been showered with praise following her latest role as billionaire heiress Tanya McQuoid in the hit HBO series, but even with all the love from her fans and her famous friends, Jennifer can still sometimes feel alone without a love to call her own, reports 'The Mirror'.
Lifting the lid on her dating life, the former "American Pie" actress revealed that throughout her life, she has made a number of "bad decisions: when it comes to men, and in turn, it has left her feeling "insecure" about what it is that she wants from love.
"I've been around forever, since I was 30 that's a long time. But when I go to a party with my other actor friends, I don't know any of the people," she said, quoted by 'Mirror'.
"I live a secluded life in New Orleans and I only know the people I meet on the job and my friends from The Groundlings," Jennifer explained of her life in Hollywood.
Asked why she doesn't have as much love for herself as all her fans do, she told Page Six: "Oh, I don't know. I mean, in my dating life, I've never found anyone quite right for myself. I haven't found the love of my life. "
"I think I made some bad decisions. It makes you insecure and you don't think you're great. Many people can come up to you at the airport, people come up when they have nothing else to do, they say very nice things to you, and people in Hollywood come up and say 'You're great', but the only way you know they mean it is if you give you a job," Jennifer added.
|
english
|
New Delhi, Aug 29 The Indian men's hockey team won the bronze medal at the Tokyo 2020 Olympics after 41 years. And many believe that the glory of Indian hockey has come back with this achievement.
Legendary hockey Olympian Ashok Dhyan Chand describes the Indian hockey team winning a bronze medal in Tokyo Olympics as a remarkable achievement. He feels that Indian hockey is in the right direction, but there is a lot to be done to achieve the old legacy.
On the occasion of the birth anniversary of the Hockey wizard of India, Dhyan Chand, Ashok said that he supported the movements for Bharat Ratna for his father for years, but now he has laid down his arms.
I am happy that the National Sports Awards are given in the name of my father Dhyan Chand, said Ashok in a chat with .
Excerpts:
Q. India won the bronze medal in the Olympics after 41 years, this is a big achievement. But how do you see the way we lost to Australia in CWG? Or if I ask, what is the reason for such a defeat? What do you think about it?
A. If the country which has so many medals in the Olympics wins the bronze medal after 41 years, then you can consider it a big achievement. But I don't. For me, the Olympic bronze is a new beginning. The dignity of Indian hockey is huge. We had lost it, now efforts should be made to bring it back.
See the fact is we won Olympic bronze after so many years. Yes, it was a welcome achievement for Indian hockey. But after the Olympics, Australia beat us badly. We still don't have answers for the Australian team. I think improvement is necessary for this, or else tomorrow some other teams will also consider Indian hockey as easy prey. At the International level, there is not much difference between the first seven-eight teams and a small mistake can push us far back.
Q. How do you see your association with him? How was he as a father and coach?
A. He was very special to me. He taught me the game and how to play it right. He had more than a thousand school teachers. He was not just my father, but a teacher, mentor, and much more, a very good friend. Dhyan Chand is still alive in our hearts. Every person in the country, even kids know about Dhyan Chand. It's a huge honour in itself.
Q. Today is your father's birthday. How do you see his contribution to Indian hockey?
A. As long as the sport hockey is played in India and the world, my father's name will be associated with it. There are some people whose name becomes immortal. My Father, Dhyan Chand, is one of them. Indian hockey is incomplete without him. You can understand that he did not get Bharat Ratna, but whenever there is talk about hockey, his name will definitely come. And this is more than any other award.
Q. How do you see Indian hockey in the coming days?
A: Today's players are getting better facilities. Foreign coaches are there, and players are busy abroad or in national camps for years, but rarely play in their country in front of their fans, whereas players of my era live in their environment and among their hockey lovers. I think we should wait till the Paris Olympics. That's where the real test of Indian hockey will be.
|
english
|
<gh_stars>100-1000
{"nom":"Caligny","circ":"3ème circonscription","dpt":"Orne","inscrits":679,"abs":357,"votants":322,"blancs":5,"nuls":2,"exp":315,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":122},{"nuance":"LR","nom":"M. <NAME>","voix":101},{"nuance":"FN","nom":"Mme <NAME>","voix":38},{"nuance":"FI","nom":"M. <NAME>","voix":32},{"nuance":"ECO","nom":"Mme <NAME>","voix":14},{"nuance":"COM","nom":"<NAME>","voix":3},{"nuance":"EXG","nom":"M. <NAME>","voix":2},{"nuance":"DIV","nom":"Mme <NAME>","voix":2},{"nuance":"DLF","nom":"M. <NAME>","voix":1},{"nuance":"EXD","nom":"M. <NAME>","voix":0}]}
|
json
|
In 2011, “Game of Thrones” debuted on HBO and the word “khaleesi” was uttered on national television for the first time. It’s the Dothraki word for “queen,” and a term of endearment and respect for Daenerys Targaryen, the then-child bride of Khal Drogo.
As the story followed Daenerys, we saw that she was much more than a victim. She was a survivor, a leader, a liberator, and a force to be reckoned with. These are all great qualities a parent might want associated with their daughter, so the name “Khaleesi” began appearing on the Social Security Administration’s list of Top 1,000 names.
That’s right. Last year, “Khaleesi” was the 549th most popular girl name in the United States, beating out Hanna, Ivanna, Sasha, Marie, Gloria, and Anne. Kelly and Monica? Old news. All hail Khaleesi!
But here’s the thing about naming your child after a fictional character before that character’s story is finished: it’s a terrible idea. Daenerys Targaryen is now the woman who massacred nearly a million people in a fiery bloodbath.
And it’s not like these Khaleesis, when applying for jobs, will be able to tell their future employers that they’re named after their great-aunt Khaleesi or the famous inventor, Khaleesi Mountbatten-Windsor. They are clearly and obviously named after a fictional crazy lady who boffed her nephew and burned people alive. And she could be even worse in the series finale.
Will Daenerys manage a last-second heroic turn for all those baby Khaleesis out there? Or will she somehow make things even harder for these girls? If the last episode was any indication, those 2,110 babies are in for a lifetime of deep sighs and resignation.
|
english
|
<reponame>oti-dev/angulartypescript
import { Injectable } from '@angular/core';
import { Actions, Effect, ofType } from '@ngrx/effects';
import { Action } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, map, switchMap } from 'rxjs/operators';
import { ProductService } from '../../../shared/services';
import {
LoadById,
LoadByIdFailure,
LoadByIdSuccess,
LoadSuggestedSuccess,
ProductActionTypes
} from '../actions';
@Injectable()
export class ProductEffects {
@Effect()
loadProductById$: Observable<Action> = this.actions$
.pipe(
ofType<LoadById>(ProductActionTypes.LoadById),
map(action => action.payload.productId),
switchMap(productId => this.productService.getById(productId)),
map(product => new LoadByIdSuccess({ product })),
catchError(error => of(new LoadByIdFailure({ error })))
);
@Effect()
loadSuggested$: Observable<Action> = this.actions$
.pipe(
ofType(ProductActionTypes.LoadSuggested),
switchMap(() => this.productService.getAll()),
map(products => new LoadSuggestedSuccess({ products })),
catchError(error => {
// Error with loading suggested products doesn't break user's workflow,
// so we basically ignore it and return an empty array.
console.error(`Error while suggested products: ${error}`);
return of(new LoadSuggestedSuccess({ products: [] }));
})
);
constructor(
private readonly actions$: Actions,
private readonly productService: ProductService
) {
}
}
|
typescript
|
Devil May Cry 5 release date is March 8, 2019 and in the run up to this, Capcom has been showing off more of its gameplay. At a recent showing at the Tokyo Game Show it was noticed that Devil May Cry 5 would let players upgrade protagonists Dante and Nero through spending in-game known as Red Orbs. Aside from earning them within the game, Red Orbs can also be bought with real money. When asked about this Capcom confirmed that Devil May Cry 5 will have micro-transactions despite costing $60 upwards.
The reasons for this are nothing new, harkening to Warner Bros.' defence of Shadow of War. Devil May Cry 4 Special Edition had a similar monetisation model too.
"With giving people the ability to purchase Red Orbs, it’s something we want to give people as an option," said Devil May Cry 5 Director Hideaki Itsuno to Gamespot.
"If they want to save time and just want to get all the stuff at once, those people can do that. But on the other hand I don’t feel you have to get all the moves. You should be able to play it the way you want to play it."
Devil May Cry 5 puts you in the role of three different demon hunters, each offering a unique play style as Earth is besieged by demonic forces. The latest in the long-running hack and slash series is dubbed as an official follow-up to Devil May Cry 4.
Which seems to be Capcom's way of saying it won't be following up from Ninja Theory's DmC: Devil may Cry. After 2013's DmC: Devil May Cry, Capcom hasn't released a new game in the series. Instead the company remastered Devil May Cry 4 and DmC: Devil May Cry in 2015 and followed it up with the horribly done Devil May Cry HD Collection.
Given the mixed response by series fans to DmC: Devil May Cry, it's no surprise that Devil May Cry 5 is being developed in-house at Capcom instead of being made by an external developer as was the case with the previous game. Though we don't think micro-transactions is the right move. More so when you consider that most game publishers are moving away from them following fan backlash and in extreme cases, government regulation.
If you're a fan of video games, check out Transition, Gadgets 360's gaming podcast. You can listen to it via Apple Podcasts or RSS, or just listen to this week's episode by hitting the play button below.
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
|
english
|
{
"id": "garble-text",
"name": "Garble Text",
"version": "1.2.0",
"minAppVersion": "0.12.10",
"description": "Garbling text in Obsidian turns all content in the entire app (notes, sidebar, etc) into lines so you can take screenshots without exposing sensitive data.",
"author": "kurakart",
"isDesktopOnly": false
}
|
json
|
While Maneka Gandhi asked the NCW to monitor the internet to control trolls against women - NCW Chief Lalitha Kumaramangalam questioning the feasibility of the Minister's proposal, saying the internet is too big a space to be monitored. Sunil Abraham was interviewed. Times Now Television interviewed Sunil Abraham on this. Watch the video here.
|
english
|
{
"name": "sensorjs-barun",
"description": "barun sensor networks and drivers for sensorjs",
"version": "0.0.1-1",
"author": {
"name": "daliworks",
"email": "<EMAIL>"
},
"dependencies": {
"log4js": "0.6"
},
"repository": {
"type": "git",
"url": "<EMAIL>:daliworks/sensorjs-barun"
},
"bugs": {
"url": "https://github.com/daliworks/sensorjs-barun/issues"
},
"main": "index",
"keywords": [
"sensor",
"sensor.js",
"barun",
"driver"
],
"engines": {
"node": ">=0.8.x"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/daliworks/sensorjs-barun/blob/msater/LICENSE"
}
]
}
|
json
|
You can manage your notification subscription by clicking on the icon.
To Start receiving timely alerts please follow the below steps:
Click on the Menu icon of the browser, it opens up a list of options.
Click on the “Options ”, it opens up the settings page,
Here click on the “Privacy & Security” options listed on the left hand side of the page.
Scroll down the page to the “Permission” section .
Here click on the “Settings” tab of the Notification option.
A pop up will open with all listed sites, select the option “ALLOW“, for the respective site under the status head to allow the notification.
Once the changes is done, click on the “Save Changes” option to save the changes.
'Inflation to decline by March if oil prices soften'
Sonia not to meet Hazare today; Lokpal deadlocked?
2G: Will Kanimozhi turn approver for the sake of freedom?
UP: Slain deputy CMO Sachan's letter accuses Mayawati govt?
Rpt on Maoist kidnap surface; victim claims "false news"
Barack Obama does not know his daughter's age! Memory loss?
China blocks Google+, Communism hates Social Networking!
Google Search Engine gets plastic surgery!
Review: Why to choose Google+ over Facebook?
Do you want to clear all the notifications from your inbox?
|
english
|
Ask Question Here!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
What should a woman eat to lose weight?
|
english
|
console.log('Running solution for Problem 0048...');
const nValue = 1000; // test with 10 first
var biglyNumber = BigInt(0);
for (var i = 1; i <= nValue; i++) {
var bigI = BigInt(i);
biglyNumber += (bigI**bigI);
}
const biglyString = biglyNumber.toString();
const answer = biglyString.slice(biglyString.length - 10);
console.log('Answer:', answer);
// n = 10
// Answer: 0405071317
// n = 1000
// Answer: 9110846700
|
javascript
|
Mumbai News Updates: The political developments in Maharashtra have been hitting headlines for long now. Be it the fight over Shiv Sena camps or a controversy started by Governor Bhagat Singh Koshyari, all events have had ramifications.
The Supreme Court is hearing a bunch of petitions related to the formation of Eknath Shinde-Bharatiya Janata Party (BJP) government, disqualification of rebel MLAs, and the right over the bow-and-arrow symbol. Chief Justice of India NV Ramana asked the Eknath Shinde camp if there is no relevance of a political party. The question arose after Shinde’s lawyer and senior advocate Harish Salve said that none of issues raised by Uddhav Thackeray’s lawyer are necessary.
“The anti-defection law is not a weapon for a leader who has lost the confidence of his own party members and he’s trying to lock them up," Salve said. Before the crucial case in the court, a lot happened in the state.
News18 takes a look at some of the key developments in Maharashtra:
• Former minister and Uddhav Thackeray’s son Aaditya, who held a rally in Karjat late on Tuesday, told News18 that he believes Shiv Sena will get justice as Eknath Shinde-BJP government is “illegal" and “formed by treacherous means".
• On the other hands, the Thackeray camp has filed a rejoinder before Supreme Court, saying that the delinquent MLAs, including Shinde, came the apex court with “unclean hands".
• In Pune’s Katraj Chowk, vehicle of former minister Uday Samant, who switched his allegiance to Shinde, was allegedly attacked by some unidentified people while passing by a location where Aaditya Thackeray held a public meeting. In a video doing rounds on social media, a mob can be seen trying to gherao Samant’s vehicle and raising slogans like “traitors” against the MLA and CM Shinde.
• Reacting to the attack, Maharashtra chief minister Eknath Shinde called it an “act of cowardice". “There is no bravery in pelting stone and fleeing. It is our responsibility to maintain law and order. If somebody tries to disrupt law and order, strict action would be taken against them. Everyone should maintain peace, but still, if someone disrupts peace, the police will take its own action," he said.
• News agency ANI quoted Samant as saying, “It’s a condemnable incident. Politics in Maharashtra doesn’t happen like this. They (attackers) had baseball sticks and stones. CM’s convoy was going ahead of me. Police will investigate whether they were following me or CM (Eknath Shinde). "
• Police have arrested Shiv Sena’s Pune city unit president and four others in connection with the alleged attack on the party’s rebel MLA. A case had been registered against over 15 persons under various sections of the Indian Penal Code (IPC), including attempt to murder, at the Bharti Vidyapeeth police station late Tuesday night.
• A case of “criminal intimidation" has been registered against Anand Dighe’s nephew Kedar Dighe (42), who was recently appointed by Shiv Sena president Uddhav Thackeray as the new Thane district chief of the party. The N M Joshi Marg police in Central Mumbai booked Dighe under section 506 of the Indian Penal Code (criminal intimidation). The police said that Dighe’s friend Rohit Kapoor was booked under section 376 (rape) of the IPC, and the Sena leader was booked for allegedly threatening the complainant in order to ensure she did not file a case.
• Leader of Opposition Ajit Pawar will meet CM Shinde and deputy Devendra Fadnavis in Mantralaya today. He will demand and press for immediate compensation and financial assistance to flood affected areas.
|
english
|
<filename>config.json
{
TestMysql: kts:123456@tcp(localhost:3306)/kts_test
TestCachePath: /mnt/storage_test/
TestTimeoutQueueTurnover: 2
TestTapeBlockSizeLimit: 10485760
TempTapeStoragePath: /mnt/tapes/
Mysql: kts:123456@tcp(localhost:3306)/kts
CachePath: /mnt/sdc/storage/
TimeoutQueueTurnover: 10
TapeBlockSizeLimit: 1077936128
TimeBeforeBackup: 10
NumberOfCopies: 1
CacheTimeLive: 120
DriveName: /dev/nst0
}
|
json
|
Indian Olympic wrestler, Bajrang Punia, expressed disappointment and threatened to return all medals and awards to the Indian government after a scuffle broke out between protesting wrestlers and Delhi Police. Punia said that if this is how the wrestlers will be treated, it is better for them to live a normal life. Vinesh Phogat, who was also part of the protest, broke down and questioned if they won medals for the country to see this day? The wrestling community has been protesting since April 23, demanding the arrest of WFI president Brij Bhushan Sharan Singh.
New Delhi: Expressing disappointment after a scuffle broke out between protesting wrestlers and Delhi Police, Olympic medalist Bajrang Punia on Thursday said that they will return all the medals and awards to the Indian government if this is how the wrestlers will be treated. "Agar aise hi samman hai uss medal ka, toh uss medal ka hum kya krenge. Isse accha toh hum normal life jee lenge. Medals ko hum bharat sarkar ko wapas hi lauta denge. (If this is how the wrestlers will be treated, what will we do with the medals? Rather we will live a normal life & return all the medals & awards to the Indian Government", Punia told reporters at Jantar Mantar.
Earlier, Vinesh Phogat, who was shocked and appalled by the boorish behaviour of the Delhi Police towards protesting wrestlers broke down in tears and said that they were not criminals and did not deserve such disrespect. If you want to kill us, then kill us,” a crying Vinesh said during a late-night media interaction.
“Did we win medals for the country to see this day? We have not even eaten our food. Does every man have a right to abuse women? These policemen are holding guns, they can kill us,” the decorated wrestler added. “Where were female police officers? How can the male officers push us like that. We are not criminals. We do not deserve such treatment. The police officer who was drunk hit my brother,” the World Championship medallist said.
For the unversed, at around 11 pm, a scuffle broke out at Jantar Mantar between the protesting wrestlers when they were bringing in folding beds for their night stay and the on-duty police personnel allegedly began enquiring about that. According to the wrestlers, the police officers started behaving badly with them and even abused the women wrestlers. The wrestlers are sitting in protest since April 23, demanding the arrest of WFI president Brij Bhushan Sharan Singh alleging that he has sexually harassed seven female grapplers, including one minor.
|
english
|
<filename>tests/macsec/test_macsec.py<gh_stars>0
from time import sleep
import pytest
import logging
import re
import scapy.all as scapy
import ptf.testutils as testutils
from tests.common.utilities import wait_until
from tests.common.devices.eos import EosHost
from macsec_helper import *
from macsec_config_helper import *
from macsec_platform_helper import *
logger = logging.getLogger(__name__)
pytestmark = [
pytest.mark.macsec_required,
pytest.mark.topology("t0", "t2"),
]
class TestControlPlane():
def test_wpa_supplicant_processes(self, duthost, ctrl_links):
def _test_wpa_supplicant_processes():
for port_name, nbr in ctrl_links.items():
check_wpa_supplicant_process(duthost, port_name)
if isinstance(nbr["host"], EosHost):
continue
check_wpa_supplicant_process(nbr["host"], nbr["port"])
return True
assert wait_until(300, 1, 1, _test_wpa_supplicant_processes)
def test_appl_db(self, duthost, ctrl_links, policy, cipher_suite, send_sci):
def _test_appl_db():
for port_name, nbr in ctrl_links.items():
if isinstance(nbr["host"], EosHost):
continue
check_appl_db(duthost, port_name, nbr["host"],
nbr["port"], policy, cipher_suite, send_sci)
return True
assert wait_until(300, 6, 12, _test_appl_db)
def test_mka_session(self, duthost, ctrl_links, policy, cipher_suite, send_sci):
def _test_mka_session():
# If the DUT isn't a virtual switch that cannot support "get mka session" by "ip macsec show"
# So, skip this test for physical switch
# TODO: Support "get mka session" in the physical switch
if u"x86_64-kvm_x86_64" not in get_platform(duthost):
# TODO: add check mka session later, now wait some time for session ready
sleep(30)
logging.info(
"Skip to check mka session due to the DUT isn't a virtual switch")
return True
dut_mka_session = get_mka_session(duthost)
assert len(dut_mka_session) == len(ctrl_links)
for port_name, nbr in ctrl_links.items():
if isinstance(nbr["host"], EosHost):
assert nbr["host"].iface_macsec_ok(nbr["port"])
continue
nbr_mka_session = get_mka_session(nbr["host"])
dut_macsec_port = get_macsec_ifname(duthost, port_name)
nbr_macsec_port = get_macsec_ifname(
nbr["host"], nbr["port"])
dut_macaddress = duthost.get_dut_iface_mac(port_name)
nbr_macaddress = nbr["host"].get_dut_iface_mac(nbr["port"])
dut_sci = get_sci(dut_macaddress, order="host")
nbr_sci = get_sci(nbr_macaddress, order="host")
check_mka_session(dut_mka_session[dut_macsec_port], dut_sci,
nbr_mka_session[nbr_macsec_port], nbr_sci,
policy, cipher_suite, send_sci)
return True
assert wait_until(300, 5, 3, _test_mka_session)
def test_rekey_by_period(self, duthost, ctrl_links, upstream_links, rekey_period):
if rekey_period == 0:
pytest.skip("If the rekey period is 0 which means rekey by period isn't active.")
assert len(ctrl_links) > 0
# Only pick one link to test
port_name, nbr = ctrl_links.items()[0]
_, _, _, last_dut_egress_sa_table, last_dut_ingress_sa_table = get_appl_db(
duthost, port_name, nbr["host"], nbr["port"])
up_link = upstream_links[port_name]
output = duthost.command("ping {} -w {} -q -i 0.1".format(up_link["local_ipv4_addr"], rekey_period * 2))["stdout_lines"]
_, _, _, new_dut_egress_sa_table, new_dut_ingress_sa_table = get_appl_db(
duthost, port_name, nbr["host"], nbr["port"])
assert last_dut_egress_sa_table != new_dut_egress_sa_table
assert last_dut_ingress_sa_table != new_dut_ingress_sa_table
assert float(re.search(r"([\d\.]+)% packet loss", output[-2]).group(1)) < 1.0
class TestDataPlane():
BATCH_COUNT = 10
def test_server_to_neighbor(self, duthost, ctrl_links, downstream_links, upstream_links, ptfadapter):
ptfadapter.dataplane.set_qlen(TestDataPlane.BATCH_COUNT * 10)
down_link = downstream_links.values()[0]
dut_macaddress = duthost.get_dut_iface_mac(ctrl_links.keys()[0])
setattr(ptfadapter, "force_reload_macsec", True)
for portchannel in get_portchannel(duthost).values():
members = portchannel["members"]
if not members:
continue
is_protected_link = members[0] in ctrl_links
peer_ports = []
ptf_injected_ports = []
for port_name in members:
if is_protected_link:
assert port_name in ctrl_links
peer_ports.append(
int(re.search(r"(\d+)", ctrl_links[port_name]["port"]).group(1)))
ptf_injected_ports.append(
upstream_links[port_name]["ptf_port_id"])
else:
assert port_name not in ctrl_links
if not is_protected_link:
continue
up_link = upstream_links[members[0]]
up_host_name = up_link["name"]
up_host_ip = up_link["local_ipv4_addr"]
payload = "{} -> {}".format(down_link["name"], up_host_name)
logging.info(payload)
# Source mac address is not useful in this test case and we use an arbitrary mac address as the source
pkt = create_pkt(
"00:01:02:03:04:05", dut_macaddress, "1.2.3.4", up_host_ip, bytes(payload))
exp_pkt = create_exp_pkt(pkt, pkt[scapy.IP].ttl - 1)
fail_message = ""
for port_name in members:
up_link = upstream_links[port_name]
testutils.send_packet(
ptfadapter, down_link["ptf_port_id"], pkt, TestDataPlane.BATCH_COUNT)
result = check_macsec_pkt(test=ptfadapter,
ptf_port_id=up_link["ptf_port_id"], exp_pkt=exp_pkt, timeout=3)
if result is None:
return
fail_message += result
pytest.fail(fail_message)
def test_dut_to_neighbor(self, duthost, ctrl_links, upstream_links):
for up_port, up_link in upstream_links.items():
ret = duthost.command(
"ping -c {} {}".format(4, up_link['local_ipv4_addr']))
assert not ret['failed']
def test_neighbor_to_neighbor(self, duthost, ctrl_links, upstream_links, nbr_device_numbers):
portchannels = get_portchannel(duthost).values()
for i in range(len(portchannels)):
assert portchannels[i]["members"]
requester = upstream_links[portchannels[i]["members"][0]]
# Set DUT as the gateway of requester
requester["host"].shell("ip route add 0.0.0.0/0 via {}".format(
requester["peer_ipv4_addr"]), module_ignore_errors=True)
for j in range(i + 1, len(portchannels)):
if portchannels[i]["members"][0] not in ctrl_links and portchannels[j]["members"][0] not in ctrl_links:
continue
responser = upstream_links[portchannels[j]["members"][0]]
# Set DUT as the gateway of responser
responser["host"].shell("ip route add 0.0.0.0/0 via {}".format(
responser["peer_ipv4_addr"]), module_ignore_errors=True)
# Ping from requester to responser
assert not requester["host"].shell(
"ping -c 6 -v {}".format(responser["local_ipv4_addr"]))["failed"]
responser["host"].shell("ip route del 0.0.0.0/0 via {}".format(
responser["peer_ipv4_addr"]), module_ignore_errors=True)
requester["host"].shell("ip route del 0.0.0.0/0 via {}".format(
requester["peer_ipv4_addr"]), module_ignore_errors=True)
class TestFaultHandling():
MKA_TIMEOUT = 6
LACP_TIMEOUT = 90
def test_link_flap(self, duthost, ctrl_links):
# Only pick one link for link flap test
assert ctrl_links
port_name, nbr = ctrl_links.items()[0]
nbr_eth_port = get_eth_ifname(
nbr["host"], nbr["port"])
_, _, _, dut_egress_sa_table_orig, dut_ingress_sa_table_orig = get_appl_db(
duthost, port_name, nbr["host"], nbr["port"])
# Flap < 6 seconds
# Not working on eos neighbour
if not isinstance(nbr["host"], EosHost):
# Rekey may happen during the following assertions, so we need to get the SA tables again
retry = 3
while retry > 0:
retry -= 1
try:
nbr["host"].shell("ifconfig {} down && sleep 1 && ifconfig {} up".format(
nbr_eth_port, nbr_eth_port))
_, _, _, dut_egress_sa_table_new, dut_ingress_sa_table_new = get_appl_db(
duthost, port_name, nbr["host"], nbr["port"])
assert dut_egress_sa_table_orig == dut_egress_sa_table_new
assert dut_ingress_sa_table_orig == dut_ingress_sa_table_new
break
except AssertionError as e:
if retry == 0:
raise e
dut_egress_sa_table_orig, dut_ingress_sa_table_orig = dut_egress_sa_table_new, dut_ingress_sa_table_new
# Flap > 6 seconds but < 90 seconds
if isinstance(nbr["host"], EosHost):
nbr["host"].shutdown(nbr_eth_port)
sleep(TestFaultHandling.MKA_TIMEOUT)
nbr["host"].no_shutdown(nbr_eth_port)
else:
nbr["host"].shell("ifconfig {} down && sleep {} && ifconfig {} up".format(
nbr_eth_port, TestFaultHandling.MKA_TIMEOUT, nbr_eth_port))
def check_new_mka_session():
_, _, _, dut_egress_sa_table_new, dut_ingress_sa_table_new = get_appl_db(
duthost, port_name, nbr["host"], nbr["port"])
assert dut_egress_sa_table_new
assert dut_ingress_sa_table_new
assert dut_egress_sa_table_orig != dut_egress_sa_table_new
assert dut_ingress_sa_table_orig != dut_ingress_sa_table_new
return True
assert wait_until(30, 5, 2, check_new_mka_session)
# Flap > 90 seconds
assert wait_until(12, 1, 0, lambda: find_portchannel_from_member(
port_name, get_portchannel(duthost))["status"] == "Up")
if isinstance(nbr["host"], EosHost):
nbr["host"].shutdown(nbr_eth_port)
sleep(TestFaultHandling.LACP_TIMEOUT)
else:
nbr["host"].shell("ifconfig {} down && sleep {}".format(
nbr_eth_port, TestFaultHandling.LACP_TIMEOUT))
assert wait_until(6, 1, 0, lambda: find_portchannel_from_member(
port_name, get_portchannel(duthost))["status"] == "Dw")
if isinstance(nbr["host"], EosHost):
nbr["host"].no_shutdown(nbr_eth_port)
else:
nbr["host"].shell("ifconfig {} up".format(nbr_eth_port))
assert wait_until(12, 1, 0, lambda: find_portchannel_from_member(
port_name, get_portchannel(duthost))["status"] == "Up")
def test_mismatch_macsec_configuration(self, duthost, unctrl_links,
profile_name, default_priority, cipher_suite,
primary_cak, primary_ckn, policy, send_sci, request):
# Only pick one uncontrolled link for mismatch macsec configuration test
assert unctrl_links
port_name, nbr = unctrl_links.items()[0]
disable_macsec_port(duthost, port_name)
disable_macsec_port(nbr["host"], nbr["port"])
delete_macsec_profile(nbr["host"], nbr["port"], profile_name)
# Set a wrong cak to the profile
primary_cak = "0" * len(primary_cak)
enable_macsec_port(duthost, port_name, profile_name)
set_macsec_profile(nbr["host"], nbr["port"], profile_name, default_priority,
cipher_suite, primary_cak, primary_ckn, policy, send_sci)
enable_macsec_port(nbr["host"], nbr["port"], profile_name)
def check_mka_establishment():
_, _, dut_ingress_sc_table, dut_egress_sa_table, dut_ingress_sa_table = get_appl_db(
duthost, port_name, nbr["host"], nbr["port"])
return dut_ingress_sc_table or dut_egress_sa_table or dut_ingress_sa_table
# The mka should be establishing or established
# To check whether the MKA establishment happened within 90 seconds
assert not wait_until(90, 1, 12, check_mka_establishment)
# Teardown
disable_macsec_port(duthost, port_name)
disable_macsec_port(nbr["host"], nbr["port"])
delete_macsec_profile(nbr["host"], nbr["port"], profile_name)
class TestInteropProtocol():
'''
Macsec interop with other protocols
'''
def test_port_channel(self, duthost, ctrl_links):
'''Verify lacp
'''
ctrl_port, _ = ctrl_links.items()[0]
pc = find_portchannel_from_member(ctrl_port, get_portchannel(duthost))
assert pc["status"] == "Up"
# Remove ethernet interface <ctrl_port> from PortChannel interface <pc>
duthost.command("sudo config portchannel member del {} {}".format(
pc["name"], ctrl_port))
assert wait_until(20, 1, 0, lambda: get_portchannel(
duthost)[pc["name"]]["status"] == "Dw")
# Add ethernet interface <ctrl_port> back to PortChannel interface <pc>
duthost.command("sudo config portchannel member add {} {}".format(
pc["name"], ctrl_port))
assert wait_until(20, 1, 0, lambda: find_portchannel_from_member(
ctrl_port, get_portchannel(duthost))["status"] == "Up")
def test_lldp(self, duthost, ctrl_links, profile_name):
'''Verify lldp
'''
LLDP_ADVERTISEMENT_INTERVAL = 30 # default interval in seconds
LLDP_HOLD_MULTIPLIER = 4 # default multiplier number
LLDP_TIMEOUT = LLDP_ADVERTISEMENT_INTERVAL * LLDP_HOLD_MULTIPLIER
# select one macsec link
for ctrl_port, nbr in ctrl_links.items():
assert wait_until(LLDP_TIMEOUT, LLDP_ADVERTISEMENT_INTERVAL, 0,
lambda: nbr["name"] in get_lldp_list(duthost))
disable_macsec_port(duthost, ctrl_port)
disable_macsec_port(nbr["host"], nbr["port"])
wait_until(20, 3, 0,
lambda: not duthost.iface_macsec_ok(ctrl_port) and
not nbr["host"].iface_macsec_ok(nbr["port"]))
assert wait_until(LLDP_TIMEOUT, LLDP_ADVERTISEMENT_INTERVAL, 0,
lambda: nbr["name"] in get_lldp_list(duthost))
enable_macsec_port(duthost, ctrl_port, profile_name)
enable_macsec_port(nbr["host"], nbr["port"], profile_name)
wait_until(20, 3, 0,
lambda: duthost.iface_macsec_ok(ctrl_port) and
nbr["host"].iface_macsec_ok(nbr["port"]))
assert wait_until(1, 1, LLDP_TIMEOUT,
lambda: nbr["name"] in get_lldp_list(duthost))
def test_bgp(self, duthost, ctrl_links, upstream_links, profile_name):
'''Verify BGP neighbourship
'''
bgp_config = duthost.get_running_config_facts()[
"BGP_NEIGHBOR"].values()[0]
BGP_KEEPALIVE = int(bgp_config["keepalive"])
BGP_HOLDTIME = int(bgp_config["holdtime"])
def check_bgp_established(up_link):
command = "sonic-db-cli STATE_DB HGETALL 'NEIGH_STATE_TABLE|{}'".format(
up_link["local_ipv4_addr"])
fact = sonic_db_cli(duthost, command)
logger.info("bgp state {}".format(fact))
return fact["state"] == "Established"
# Ensure the BGP sessions have been established
for ctrl_port in ctrl_links.keys():
assert wait_until(30, 5, 0,
check_bgp_established, upstream_links[ctrl_port])
# Check the BGP sessions are present after port macsec disabled
for ctrl_port, nbr in ctrl_links.items():
disable_macsec_port(duthost, ctrl_port)
disable_macsec_port(nbr["host"], nbr["port"])
wait_until(20, 3, 0,
lambda: not duthost.iface_macsec_ok(ctrl_port) and
not nbr["host"].iface_macsec_ok(nbr["port"]))
# BGP session should keep established even after holdtime
assert wait_until(BGP_HOLDTIME * 2, BGP_KEEPALIVE, BGP_HOLDTIME,
check_bgp_established, upstream_links[ctrl_port])
# Check the BGP sessions are present after port macsec enabled
for ctrl_port, nbr in ctrl_links.items():
enable_macsec_port(duthost, ctrl_port, profile_name)
enable_macsec_port(nbr["host"], nbr["port"], profile_name)
wait_until(20, 3, 0,
lambda: duthost.iface_macsec_ok(ctrl_port) and
nbr["host"].iface_macsec_ok(nbr["port"]))
# Wait PortChannel up, which might flap if having one port member
wait_until(20, 5, 5, lambda: find_portchannel_from_member(
ctrl_port, get_portchannel(duthost))["status"] == "Up")
# BGP session should keep established even after holdtime
assert wait_until(BGP_HOLDTIME * 2, BGP_KEEPALIVE, BGP_HOLDTIME,
check_bgp_established, upstream_links[ctrl_port])
def test_snmp(self, duthost, ctrl_links, upstream_links, creds):
'''
Verify SNMP request/response works across interface with macsec configuration
'''
if duthost.is_multi_asic:
pytest.skip("The test is for Single ASIC devices")
for ctrl_port, nbr in ctrl_links.items():
if isinstance(nbr["host"], EosHost):
result = nbr["host"].eos_command(
commands=['show snmp community | include name'])
community = re.search(r'Community name: (\S+)',
result['stdout'][0]).groups()[0]
else: # vsonic neighbour
community = creds['snmp_rocommunity']
up_link = upstream_links[ctrl_port]
sysDescr = ".1.3.6.1.2.1.1.1.0"
command = "docker exec snmp snmpwalk -v 2c -c {} {} {}".format(
community, up_link["local_ipv4_addr"], sysDescr)
assert not duthost.command(command)["failed"]
|
python
|
<filename>docs/framework/windows-workflow-foundation/samples/tracking.md<gh_stars>0
---
title: Отслеживание
ms.date: 03/30/2017
ms.assetid: afdcd9bd-b462-4b2a-aac7-bebf9c80be81
ms.openlocfilehash: 329dcaab093a4cb177fcba64e4bacbe9c9af4710
ms.sourcegitcommit: 8c28ab17c26bf08abbd004cc37651985c68841b8
ms.translationtype: MT
ms.contentlocale: ru-RU
ms.lasthandoff: 10/07/2018
ms.locfileid: "48845906"
---
# <a name="tracking"></a>Отслеживание
Этот раздел содержит образцы, демонстрирующие отслеживания в Windows Workflow Foundation (WF) рабочего процесса.
## <a name="in-this-section"></a>В этом разделе
[Настраиваемое отслеживание](../../../../docs/framework/windows-workflow-foundation/samples/custom-tracking.md)
Показывает, как создается настраиваемый участник отслеживания и выдаются данные отслеживания на консоль.
[Отслеживание событий в системе трассировки событий Windows](../../../../docs/framework/windows-workflow-foundation/samples/tracking-events-into-event-tracing-in-windows.md)
Показывает, как включить отслеживание в [!INCLUDE[wf1](../../../../includes/wf1-md.md)] в службе рабочего процесса и создавать события отслеживания в средстве отслеживания событий для Windows (ETW).
[Отслеживание SQL](../../../../docs/framework/windows-workflow-foundation/samples/sql-tracking.md)
Показывает, как создать настраиваемый участник отслеживания SQL, который вносит записи отслеживания базу данных SQL.
|
markdown
|
<reponame>simmonspaul/crunz<gh_stars>0
{
"compression": "GZ",
"compactors": [
"KevinGH\\Box\\Compactor\\Php",
"KevinGH\\Box\\Compactor\\Json"
],
"files": [
"resources/config/crunz.yml",
"config/services.php"
]
}
|
json
|
package com.umedia.android.ui.fragments.mainactivity.files;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v7.widget.GridLayoutManager;
import com.umedia.android.R;
import com.umedia.android.adapter.files.ShuffleButtonVideoAdapter;
import com.umedia.android.adapter.files.VideoAdapter;
import com.umedia.android.datasource.local.LocalFileDataSource;
import com.umedia.android.interfaces.LoaderIds;
import com.umedia.android.misc.WrappedAsyncTaskLoader;
import com.umedia.android.model.FileInfo;
import com.umedia.android.ui.fragments.mainactivity.files.pager.FilesPagerRecyclerViewCustomGridSizeFragment;
import com.umedia.android.util.PreferenceUtil;
import java.util.ArrayList;
/**
*/
public class FileOtherFragment extends FilesPagerRecyclerViewCustomGridSizeFragment<VideoAdapter, GridLayoutManager> implements LoaderManager.LoaderCallbacks<ArrayList<FileInfo>> {
public static final String TAG = FileOtherFragment.class.getSimpleName();
private static final int LOADER_ID = LoaderIds.FILE_OTHER_FRAGMENT;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
getLoaderManager().initLoader(LOADER_ID, null, this);
}
@NonNull
@Override
protected GridLayoutManager createLayoutManager() {
return new GridLayoutManager(getActivity(), getGridSize());
}
@NonNull
@Override
protected VideoAdapter createAdapter() {
int itemLayoutRes = getItemLayoutRes();
notifyLayoutResChanged(itemLayoutRes);
boolean usePalette = loadUsePalette();
ArrayList<FileInfo> dataSet = getAdapter() == null ? new ArrayList<FileInfo>() : getAdapter().getDataSet();
if (getGridSize() <= getMaxGridSizeForList()) {
return new ShuffleButtonVideoAdapter(
getLibraryFragment().getMainActivity(),
dataSet,
itemLayoutRes,
usePalette,
getLibraryFragment());
}
return new VideoAdapter(
getLibraryFragment().getMainActivity(),
dataSet,
itemLayoutRes,
usePalette,
getLibraryFragment());
}
@Override
protected int getEmptyMessage() {
return R.string.no_songs;
}
@Override
public void onMediaStoreChanged() {
getLoaderManager().restartLoader(LOADER_ID, null, this);
}
@Override
protected int loadGridSize() {
return PreferenceUtil.getInstance(getActivity()).getSongGridSize(getActivity());
}
@Override
protected void saveGridSize(int gridSize) {
PreferenceUtil.getInstance(getActivity()).setSongGridSize(gridSize);
}
@Override
protected int loadGridSizeLand() {
return PreferenceUtil.getInstance(getActivity()).getSongGridSizeLand(getActivity());
}
@Override
protected void saveGridSizeLand(int gridSize) {
PreferenceUtil.getInstance(getActivity()).setSongGridSizeLand(gridSize);
}
@Override
public void saveUsePalette(boolean usePalette) {
PreferenceUtil.getInstance(getActivity()).setSongColoredFooters(usePalette);
}
@Override
public boolean loadUsePalette() {
return PreferenceUtil.getInstance(getActivity()).songColoredFooters();
}
@Override
public void setUsePalette(boolean usePalette) {
getAdapter().usePalette(usePalette);
}
@Override
protected void setGridSize(int gridSize) {
getLayoutManager().setSpanCount(gridSize);
getAdapter().notifyDataSetChanged();
}
@Override
public Loader<ArrayList<FileInfo>> onCreateLoader(int id, Bundle args) {
return new AsyncFilesLoader(getActivity());
}
@Override
public void onLoadFinished(Loader<ArrayList<FileInfo>> loader, ArrayList<FileInfo> data) {
getAdapter().swapDataSet(data);
}
@Override
public void onLoaderReset(Loader<ArrayList<FileInfo>> loader) {
getAdapter().swapDataSet(new ArrayList<FileInfo>());
}
private static class AsyncFilesLoader extends WrappedAsyncTaskLoader<ArrayList<FileInfo>> {
public AsyncFilesLoader(Context context) {
super(context);
}
@Override
public ArrayList<FileInfo> loadInBackground() {
if (null == LocalFileDataSource.getInstance().getOtherInfos()) {
return LocalFileDataSource.getInstance().getNormalInfos(getContext());
}
return LocalFileDataSource.getInstance().getOtherInfos();
}
}
}
|
java
|
A large team of trained professionals who have saved countless lives from rare diseases.
The Bentall Procedure is a cardiac operation including a complete composite graft replacement of the aortic valve, aortic root, and ascending aorta with re-implantation of the coronary arteries into the graft. The Bentall Procedure includes an Aortic Root Replacement which replaces the entire aortic valve as well as the ascending portion of the aorta. This procedure includes replacement of the aortic annulus and extends into the sinotubular junction. This also includes the three small dilations called the aortic sinuses also all being replaced.
The Cabrol is a safe technique that has played a crucial role in the re-operation of patients with cases of severe calcification of the ostia, difficult mobilization of the coronary arteries, and extreme aortic dilation. An Abdominal Aortic Aneurysm Surgery requires doctors to make a large incision in the abdomen to expose the aorta, which can only be done through an open-heart procedure. Once the abdominal cavity is opened, a graft can be used to repair the aneurysm. This has become the standard treatment for Abdominal Aortic Aneurysm Surgery repairs, and continues to be the standard today.
|
english
|
The late Queen Elizabeth II was not only Britain's longest-serving monarch of over 70 years at the time of her death at the age of 96 but also the matriarch of the Windsors with 12 great-grandchildren. All of them are descendants of the queen's four children with Prince Philip: King Charles III, Princess Anne, Prince Andrew, and Prince Edward.
She also has eight grandchildren, and all of them are expected to be in attendance at the queen's funeral on Monday. Her eldest son, Charles, is the oldest monarch to ascend to the throne at 73.
Of the queen's 12 great-grandchildren, Prince Williams' children are first in line for the royal succession: Prince George of Wales, Princess Charles of Wales, and Prince Louis of Wales. The other great-grandchildren include Lilibet Mountbatten-Windsor, Archie Harrison Mountbatten-Windsor, Sienna Elizabeth Mountbatten, Savannah Phillips, Isla Phillips, Lucas Philip Tindall, Lena Elizabeth Tindall, Mia Grace Tindall, and August Philip Hawke Brooksbank.
Prince George was born on July 22, 2013, and is the oldest child of Prince William and his wife, Kate Middleton. He is second in line behind him for the British throne and is King Charles' first grandchild from his marriage to the late ex-wife Princess Diana.
George is named after his great-great-grandfather, King George VI, the queen's father, who died in 1952 when she ascended to the throne.
He attends Thomas's Battersea preparatory school and studies history, French, and ballet. He could often be spotted at royal events alongside the late queen or in the arms of his grandfather, the king.
Princess Charlotte is the middle child of Prince William and Kate. She was born on May 2, 2015, and is the couple's only daughter. She is third in the line of succession behind her eldest sibling Prince George and is the second grandchild of the king.
Following Charles' ascension to the crown, Charlotte, along with her brothers, received new titles, changing from Charlotte Cambridge to Charlotte Wales. She has been featured at royal events and weddings as a bridesmaid.
The young princess has maintained her position as the third line to the throne due to the passage of the Succession to the Crown Act 2013, which would have placed her young brother, Prince Louis, ahead of her.
Prince Louis is the youngest child of the prince and princess of Wales, born on April 23, 2018. The four-year-old is the youngest sibling of George and Charlotte.
He is fourth in line to the throne and the third grandchild of King Charles III. More recently, his mother, Kate, told a group of royal supporters outside Windsor Castle that the young prince comforted her following the queen's death.
Footage shows the princess telling a crowd of people that Prince Louis, after learning of the queen's death, said, "Don't worry. She's now with great-grandpa. "
|
english
|
An Arch Magus dies, only to find himself in the body of a young man in a medieval Kingdom. He finds out that he is the second son of a Duke, exiled to a desolated town by his own family. Shackled by the notorious reputation of his new shell, he tries his best to develop his domain, implementing new policies and innovations, leading his subjects to prosperity. In this world where magic is undeveloped, he shall once again pave a new path.
Another milestone - this is my 500th review. If I put them altogether it might come out to a small book. So in essence I am an author too!
Some people don't like OP characters, I do. Imagine having the power and knowledge of the most advanced magician in history in the mind of a 14 year old boy. The main character is awesome. The amount of knowledge he has in incredible. His basic abilities and knowledge are considered advanced knowledge to this society.
This book has all the sins. Trust me, it's so bad you will love it.
An army of 15,000 gets casualties of over 30,000."A third of the initial army was killed" "Half of the initial army war burned". "7000 beastmen were killed". "More than half the initial army was killed in just this skirmish". "They still had thousands of men attacking the town".
Ok, other than the inconsistent logic and the author not bothering to keep a tally, you have sins such as "EPIC FIGHTS but not really". "I AM THE SMARTEST AND AM YOUR GOD". "I can't cast a lot of magic because this body is weak" but proceed to spend half of the book casting spells without getting tired.
Super duber main character who knows how to do everything and has a paper thin characterization. Logic fails in these books and details are always sparce. Everything from leaving enemies (who 'killed' him) with fatal information on him alive in the first book, drinking antidotes enemies leave them instead of going to the town doctor, to making simple mistakes and letting his enemies pile up for suspense is unreasonable. What really ruins this book is the innocent naive mindset the main character and his allies have on the world along with their superficial shallow characterizations. I'm dropping this here.
Loved this book. I will admit the first one dragged in places, but the author clearly had grown in skill since then. There were some minor grammatical errors. Places where the wrong word was used for context. But overall a great read. Wish it would have been longer though. I finished this book in only a couple of hours. I am eagerly awaiting the next in tbe series.
Although a lot of events were narrated, nothing actually "happened". There is no struggle, no evolution. Dumping an omniscient character in a world where he has nothing to learn makes for a quite boring tale. I'm off this series.
I'm sure a lot of people will love this. They will be the people who have never read a good book about larger scale battle's. Codex Alera is pretty good and has much better scale and magic. Though it does also suffer from to make perspective shifts and really losses tank of itself in later books.
The scale is just all wrong everywhere in this second novel by M Sisa. You expect me to believe a 15,000 man force has a 300 man vanguard? Try 3000 Next we are supposed to believe that going around and attacking a different area is genius strategy. That despite being engaged in a long term struggle with a small army in the north the kingdoms army isn't aware or mobilizing. They aren't aware there's a beastman nation as strong as the empire on their boarder and they are raising legions? Seriously?
Want an example of the "genius" tactics that could allow a 10,000 man army to defeat a 1000 man force despite them being behind a wooden fort?
Ladder's. Yeah that's right. "Hey guys everyone cut down a couple young trees taller than that wall" an hour later the wall is breached from every direction. Or hey maybe we didn't even bother? Everyone just camp by the river. Ignore that crappy little town that we wouldn't really benefit from taking anyways. Shoot anyone who tries to leave. They will starve in a few weeks anyways as they don't have grain stores. Lets start building a fort by the river while we take their crops and mine.
Anyways, this would have been a good series if the author scaled down the threats. Focused on his settlement building, stopped trying to perspective switch to praise his protag and did some character building instead Which we got none of this book. Just introducing beast men to kill of and meaningless enemies like the wolfman to kill off next book.
To book is going about 10 times faster than it should and tripping over is own feet. I wont be reading book 3 was hoping for better.
Half the time the book reads like a bad translation from another language, and half the time it reads like a native speaker wrote it. The conversations stiff, boring, predictable and uninteresting. The protagonist is never in any real danger or has any real problems as he simply uses magic to overcome any adversity without any danger to anyone. There is no character development to speak of and no interesting characters aside from the protagonist and maybe the merchant guild leader.
With all the praise I had hoped for a non-sex scene version of the "fostering faust" series, but alas it turned out to be more of a childrens book than anything else.
Disappointing storey is ok, editing is far from good.
The storey line is good. But I suspect English is not a first language for the author. There are a lot of grammar errors, and often shirts from first person to second. Editing isn't wonderful, so much that it distracts the reader and I'm not sure if is necessary to refer to the main character, the reincarnated archmage, calling him his given name then "young master" every other sentence. There are typos glaore. I'm quite disappointed and all in all the errors made the book almost unreadable.
Awesome! I loved everything about this book. The characters were so alive and full of depth that when reading all of the senses were engaged. I gasped, clenched my fists, vowed revenge along with the MC and felt as if I was brought along as Blackstone Village fought and grew in strength. I am so excited after finishing this I don't know how I will sleep. Highly recommended series, the entertainment value is worth the price.
A sub-par take on the reincarnation sub-genre. It's very clear that the series was never seen by a real editor. The prose are dull and the dialogue is lacking. It's very clear that the author absorbed a lot of shōnen anime/manga/light novels and created a writing style that is essentially "Japanese media localized by amateurs" which ends up with a bunch of cartoonish characters with no substance and a consistently cringy reading experience.
Update: I only just realized that this is by the same author who did Lord of the Apocalypse. That is honestly amazing to me and makes me very happy. I had an extremely low opinion of LotA, but here we are only 1 year later and to me, I think the author has improved by leaps and bounds. This is the sort of growth that is great to see. Extreme props to M. Sisa for growing so much in a short period of time and even managing to stay prolific while he's at it. I'm even more excited for the next book in this series now.
As far as Legend of the Arch Magus, I think this series is separating itself from the pack of similar stories now as of book 2. The main character is overpowered, but not in a way that ruins tension since he employs significant efforts in the way of strategy and tactics. Since he has been reborn in a new body, there are opponents that are stronger than him in various ways, but he manages to overcome them because he has more tools in his arsenal. The balance the author manages to keep for this character relative to the situations he finds himself in is perfect.
The side characters are all pretty good as well. It seems like everyone has their own motivations and alliances which helps to give the world a real lived-in feeling rather than the cardboard cutout living on a prop set that you find in many other stories.
I would say that off the top of my head, this book is my favorite for the story where someone is reborn in another body and building things up from nothing. It reminds me of how much I enjoyed things like Kingdom and Utawarerumono.
9/10. The second volume was several times better than the first one. It is still a simplistic story, but I can’t stop reading. like that even though Lark is OP, its character can’t be a one person army. It is weird though that a noble is acting as a knight, commander or mercenary and no one is saying anything. Sure, he has more strenght than a kniht, but it is socially unacceptable either way. If he commanded armies from the rear, it would be normal, but assisting in the front lines is unheard of. As when Lark fought against the male basilisk and the somdiers tried stopping him. It is weird seeing those protecting Lark, its personal guard, not guarding him at all. But I’ve locked it in my mind as Lark being eccentric and everyone accepting that they’re useless in helping him and that their oath to protect Lark is for naught. Separating the story in two seems to make more sense to me. One of a ruler constructing their city and other about a hero magician. But you know what, I’ve read stories like those, and this one is a good mix of them both.
Magic wise, it’s generic and bland. Hopefully it will get more explained instead of just seeing how Lark is capable of whatever type of magic there exists.
Lark has returned to Blackstone to continue his development of the area. When he learns an army of 10000 beastmen is on its way, he has to work in earnest. Even he cannot defeat an army on his own and he has no intention of giving up.
If you like part 1, you like this book as well. It is a nice mix of village development, individual/military action and a bit of politics. The protagonist is smart and caring, if not a bit brutal where necessary.
The story is mostly told from Lark's point of view with the occasional foray to others. Some of these switches work, others not, but I am admittedly not a big fan of the style. I am also a bit curious about how accepting people are of the new Lark and all the innovations he brings to the world. Granted, he lives in the middle of nowhere, but people in general are not very accepting of big change.
Al in all, a solid sequel and looking forward to the next book.
I strongly enjoy this series, but my honestly somethings are just too difficult to digest. I would rather better explanations on background character development. It's tone is nearly setup like we know each character that is introduced. Honestly I don't. It makes the gold of this story drown a bit.
He's incredibly OP. Like yeah, vast knowledge from your former life is awesome but it's like he has infinite power and resources, but OP gets boring. Drag out the dozens of battles. Stretch out the next battles in the next one please.
I promise I'm reading the next book. I enjoy it immensely. Just get caught on some confusion and development.
Mr. Sisa, if you happen to read this I have one thing I'd like you to take away from my review. Take your time on everything. I can sit down and read these books over and over. I enjoy a light OP story. Just take time for your background development.
I was literally checking every week for this sequel, and I am disappointed that the author’s stated pace is two books a year. It is what it is, and I’ll have to wait patiently for the next book. Good job !
Our Magus Reborn must defend his newly growing small town from an invasion. He uses Magics that seem to be lost to the current lands. All the while training his body anew so that he may be able to handle higher magics. I enjoy this series. It seems that our majors it's meant to bring much of the Magic's of the past to the Future where they have been lost. He has an uphill battle against an array of forces both Allied and enemy. The MC is very Opie in this series however that is expected as he was a master of Magic's in the past when magic knowledge was more prevalent. I will enjoy future books in the series and seeing what rediscoveries await the kingdom.
I love the plot, I think it is a cool concept. There needs to be more depth to the characters more details on background and surroundings. Everything needs more meat to it..if that makes sense. The main character is re encarnated into a young teenager! Were are the hormones- there needs to be some sexual tension/ love interest. Maybe the king sends his daughter to this promising candidate for the thrown. Maybe an older women since he is a "old soul". The main character needs more of these human emotions.. he needs to struggle and not be so overpowered in every aspect of his character.
"Of course, this was a small desolated town" "This desolated town could not possibly..." "...was banished to this small desolated town" That's not how you use that word! Sisa used "desolated town" to describe Blackstone something like 15 times! It was not "desolated", it's a "desolate" town. I know its petty, but every time I had to take a moment to curb my grammar natzi rage. Its an ok book otherwise, but sometimes I feel this was written by a non-native English speaker. Well done, if thats the case, you can barely tell. But Sisa relied on using the same descriptions and phrases over and over.
Overall, pretty good junk food for people who want a story where the MC just good enough to always win.
What an interesting story. I have enjoyed both books enormously. Yes, there are hundreds of grammatical errors. The word usage is off in such a way to suggest the author's first language is not English. But the story and world building are so very good I chose to overlook the poor grammar. A sick, aging magician dies and finds himself in the body of a young teenager thousands of years in the future. He uses his knowledge and skills to improve the lives of those around him.. I am certain there are many who would be happy to assist this gifted author with editing his books. They are really too good to pass up.
Buku kedua dalam siri Legend of the Arch Magus, bergenre high fantasi dgn elemen2 medieval, kingdom building, dan sword & sorcery. Plot novel kedua ni lebih berat, penuh dengan konflik dan scene2 peperangan dan pertarungan. Lebih menghiburkan berbanding buku yg pertama.
While there are some obvious grammatical errors (he could really use a decent editor), I'm enjoying the story so far. The main character is a bit overpowered,although not excessively so, but the back story at least accounts for that. There are things I would have done differently in this story, but I think all of us who read too much feel we could do it better (such arrogance we have, eh?), but I'm enjoying the story thus far and I'm looking forward to the next installment!
The plot and characters are interesting to follow and I find myself looking forward to reading each chapter! I will say that I think there are grammar errors and the tense used is sometimes awkward. Some of the vocabulary could be spiced up a but too. It may benefit to have a few more beta readers etc before publishing. But overall the story is definitely worth the read!
Large Marcus is known as a demon, throughout the land he is a brat and terrible. he dies and the angel Evander occupies his body but nobody knows it yet. and he is awesome you got to read this book if you read book 1 read book 2. it's worth it if you read book to read book 3, I haven't read it yet. but I know it's worth it I can't wait for more from this author.
I know, grammar and syntax need a lot of work! But if you can keep your internal grammar Nazi inhibited the world is interesting and the plot is OK. The MC is a little Mary Sue, but it works. I'm hoping the author will network a little and get some help because he has good potential. Still, three stars because dusts is Not the plural of dust!
Discovered this series only 24 hours ago and was so enthralled by the story I stayed up well into the early morning to finish book one and after sleeping had to get book 2 and finish it as well before sleeping again. Outstanding story. Can’t wait for the next entry in the series.
|
english
|
// svg/image-filter-center-focus-strong-outline.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgImageFilterCenterFocusStrongOutline = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="mdi-image-filter-center-focus-strong-outline" width="24" height="24" viewBox="0 0 24 24">
<path d="M17 12C17 7.55 11.62 5.31 8.46 8.46C5.31 11.61 7.55 17 12 17C14.76 17 17 14.76 17 12M12 15C9.33 15 8 11.77 9.88 9.88C11.77 8 15 9.33 15 12C15 13.66 13.66 15 12 15M5 15H3V19C3 20.1 3.9 21 5 21H9V19H5M5 5H9V3H5C3.9 3 3 3.9 3 5V9H5M19 3H15V5H19V9H21V5C21 3.9 20.1 3 19 3M19 19H15V21H19C20.1 21 21 20.1 21 19V15H19"/>
</svg>`
);
|
typescript
|
Season 3 of Warzone 2 has seen substantial upgrades and new additions. The most noticeable change was the return of one-shot snipers. Snipers are amazing for long-range encounters but give little outcome in close ranges. Thus, a powerful support weapon is required to allow players to dominate in the Warzone 2 scenario by covering both long-range and close-range.
WhosImmortal is a prominent Warzone 2 streamer who delivers amazing insights and customized weapon loadouts that maximize the weapon's effectiveness. He has recently shared five chosen weapons that shine as sniper support with proper attachments and tunings. The following article will go through all of the weapon setups offered by the streamer.
In the current Warzone 2 meta, snipers provide excellent results since the map is designed for long-range engagements. Still, there are times when a player is forced to engage in close-quarter fights, which are not viable with snipers, so a perfect sniper support weapon is required to avoid falling behind in fights.
WhosImmortal has provided some great support weapons that will definitely benefit players in Warzone 2 scenarios with perfect setup and tunings.
1) PDSW 528 (SMG)
The Tactique Defence weapon platform's PDSW 528 is a fantastic weapon based on the real-life gun FN P90 in Warzone 2. The weapon has a 909 rpm firing rate, a muzzle velocity of 680 m/s, and an ADS time of 260 ms. With the weapon in hand, you may advance aggressively and employ it in mid-range engagements since it is simple to wield and handle.
Recommended Loadout:
- Muzzle: Lockshot KT85 (vertical +0. 52; horizontal +0. 26)
- Laser: VLK LZR 7MW (vertical-0. 27; horizontal -26. 32)
- Optic: Cronen Mini Pro (vertical -1. 55; horizontal -2. 25)
- Comp: TV Tac Comp (vertical -0. 21; horizontal -0. 14)
- Rear Grip: Bruen Q900 Grip (vertical -0. 68; horizontal -0. 29)
Lockshot KT85 will assist players in controlling the horizontal and vertical recoil, while the VLK LZR 7MW laser and TV Tac Comp will boost the weapon's ADS speed, stability, and sprint-to-fire speed.
Cronen Mini Pro is a go-to optic that provides great visibility, and the Bruen Q900 Rear Grip will enhance the weapon more in the mobility area.
2) Kastov-74u (Assault rifle)
Kastov 74u is from the Kastovia weapon platform that is based on the real-life Kalashnikov AKS-74U gun in Warzone 2. Although the weapon is an assault rifle, it has a smaller form factor and TTK that is equivalent to an SMG at close range. The weapon has a firing rate of 652 rpm, a muzzle velocity of 590 m/s, and an ADS time of 225 ms.
Recommended loadout:
- Barrel: BR209 Barrel (vertical +0. 18; horizontal -0. 19)
- Laser: FSS Ole-V Laser (vertical -0. 24; horizontal -27. 97)
- Stock: Markeev R7 Stock (vertical -2. 19; horizontal -1. 32)
- Rear Grip: Demo-X2 Grip (vertical -0. 65; horizontal -0. 22)
BR209 is a short barrel that boosts the movement speed and ADS speed along with the 45-round mag to assist players to continuously keep shooting while engaging in a fight.
3) Chimera (Assault rifle)
Chimera is a versatile weapon in Warzone 2 based on the Honey Badger rifle that belongs to the Bruen Ops weapon platform and is the ideal replacement for the Kastov-74u. The weapon boasts an 800 rpm fire rate, a muzzle velocity of 350 m/s, and an ADS time of 240 ms, making it a fairly dependable weapon for sniper support.
Recommended Loadout:
- Barrel: 6. 5'' EXF Vorpal (vertical +0. 34; horizontal +0. 26)
- Laser: VLK LZR 7MW (vertical -0. 22; horizontal -27. 54)
- Rear Grip: Bruen Flash Grip (vertical +0. 65; horizontal -0. 28)
- Underbarrel: Schlager Tango (vertical -0. 41; horizontal -0. 21)
6. 5'' EXF Vorpal and Schlager Tango focuses on providing better damage range with hip fire accuracy, and recoil steadiness along with movement speed, ADS Speed, and aim walking speed.
Bruen Flash Grip and VLK LZR 7MW provide extra mobility in the area of sprint-to-fire speed, aiming stability, and ADS speed that will assist players to take aggressive fights.
4) STB 556 (Assault rifle)
The STB 556 is an extremely flexible rifle in Warzone 2 that received major improvements in Season 3, making it an excellent choice for close to mid-range combat. The weapon is based on the real-life gun AUG A3 and belongs to the Bruen Bullpup platform. It features an excellent basic stat line of 741 firing rate, 590 m/s muzzle velocity, and 240 ms ADS time.
Recommended Loadout:
- Barrel: 16. 5' Bruen S901 Barrel (vertical -0. 22; horizontal 0. 19)
- Laser: VLK LZR 7MW (vertical -0. 22; horizontal -29. 58)
- Optic: Cronen Mini Pro (vertical -1. 80; horizontal -2. 25)
- Comp: FTac C11 Riser (vertical -0. 15; horizontal -0. 10)
- Rear Grip: Bruen Q900 Grip (vertical -0. 33; horizontal -0. 24)
16. 5' Bruen S901 Barrel enhances the weapon's movement speed and ADS speed. VLK LZR 7MW and Cronen Mini Pro are fan-favorite attachments as the laser gives the extra boost in stability, sprint-to-fire speed, and ADS speed while the optic provides clear visibility with a small red dot perfect for close to mid-range encounters.
FTac C11 Riser and Bruen Q900 Grip focus on mobility by increasing the sprint-to-fire speed and ADS speed to take fights more aggressively.
5) BAS-P (SMG)
BAS-P is a pretty standard sniper support weapon that really shines in close to mid-range fights. It belongs to the Bruen Ops weapon family and resembles the real-life gun SIG MPX.
The weapon offers some great basic stat with a tremendous fire rate of 870 rpm, a muzzle velocity of 540 m/s, and an ADS time of 230 ms.
Recommended Loadout:
- Laser: VLK LZR 7MW (vertical -0. 31; horizontal -31. 90)
- Optic: Cronen Mini Pro (vertical -1. 55; horizontal -2. 25)
- Rear Grip: Bruen Flash Grip (vertical -0. 45; horizontal -0. 26)
- Ammunition: 9mm Overpressured +P (vertical +0. 38; horizontal +4. 94)
VLK LZR 7MW and Cronen Mini Pro are standard attachments for weapons that are specifically customized for close to mid-range fights in Warzone 2 as they provide great precision with aiming stability, ADS speed, and sprint-to-fire speed.
Bruen Flash Grip gives players a mobility edge in terms of ADS speed and sprint-to-fire speed, while 9mm Overpressured +P ammunition suppresses ammos with hotter rounds to inflict higher flinch on targets.
GTA 5's mammoth $7,700,000,000 earnings set to be challenged by upcoming game! Know more here.
|
english
|
Arsenal forward Gabriel Martinelli will not be available for the remainder of the 2019-20 campaign due to a knee injury, the Premier League club said on Friday.
Martinelli sustained a knock during training and has undergone a successful arthroscopic procedure to repair a lesion in the cartilage of the left knee, the club said.
The 19-year-old Brazilian has scored 10 goals in 26 matches across all competitions in his first season with Arsenal.
It is another blow to Arsenal's Champions League qualification hopes, having already lost goalkeeper Bernd Leno and defender Pablo Mari through long-term injuries during the season run-in.
Mikel Arteta's Arsenal sits ninth in the league standings, 11 points behind fourth-placed Chelsea with seven games to play.
Arsenal is in action in the FA Cup next against Sheffield United on Sunday.
|
english
|
---
layout: default
title: CI
nav_order: 3
has_children: true
permalink: /docs/CI/CI
---
# Introduction to CI
An Introduction about Big Data should appear here
{: .fs-6 .fw-300 }
|
markdown
|
<filename>project.json<gh_stars>0
{
"dependencies": {
"EntityFramework.Sqlite": "7.0.0-rc1-final",
"EntityFramework.Commands": "7.0.0-rc1-final",
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc1-final"
},
"commands": {
"run": "EF7ConsoleApp",
"ef": "EntityFramework.Commands"
},
"frameworks": {
"dnxcore50": {
"dependencies": {
"System.Console": "4.0.0-beta-*"
}
}
}
}
|
json
|
<reponame>hevp/fcrepo
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.messaging;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import org.junit.Test;
public class JNDITest {
@Test
public void testEmbeddedConnectionFactory() throws Exception {
Properties props = new Properties();
props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory");
props.setProperty(Context.PROVIDER_URL,"vm:localhost");
new InitialContext(props);
}
@Test
public void testConnectionFactory() throws Exception {
Properties props = new Properties();
props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory");
props.setProperty(Context.PROVIDER_URL,"tcp://localhost:61616");
new InitialContext(props);
}
}
|
java
|
<reponame>automaidan/judges
{"Department":"Прокуратура Хмельницької області","Region":"Хмельницька область","Position":"Прокурор відділу організації прийому громадян, розгляду звернень та запитів Прокуратури Хмельницької області","Name":"<NAME>","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"https://public.nazk.gov.ua/declaration/d4842564-b05a-48a4-9ee9-937c4a38b8a0","Декларації 2016":"https://public.nazk.gov.ua/declaration/a15072c9-b8df-4b54-80d6-8cfa4da53d7c","Фото":"","<NAME>":"","Декларації доброчесності":"http://www.gp.gov.ua/integrity_profile/files/e4a7aa07b81766442b58a9d8b78fb8cf.pdf","type":"prosecutor","key":"yakovenko_oleg_volodimirovich","analytics":[{"y":2015,"i":99100,"c":1},{"y":2016,"i":130621,"c":1},{"y":2017,"i":279715,"c":1,"fi":46285,"ff":172.2,"ffa":1}],"declarationsLinks":[{"id":"nacp_d4842564-b05a-48a4-9ee9-937c4a38b8a0","year":2015,"provider":"declarations.com.ua.opendata"},{"id":"nacp_a15072c9-b8df-4b54-80d6-8cfa4da53d7c","year":2016,"provider":"declarations.com.ua.opendata"},{"id":"nacp_55d8c16c-3d74-4922-8e11-84e086168fa5","year":2017,"provider":"declarations.com.ua.opendata"}]}
|
json
|
Tuesday June 30, 2015,
Calling for second Green Revolution, Prime Minister Narendra Modi has asked the farming community to adopt scientific methods to enhance food grain production particularly of pulses which India has to import because of shortages. He said Indian farmers are still lagging behind in terms of availability of good quality seeds, adequate water, power, availability of right price and market for their produce.
“Unless we prepare a balanced and a comprehensive integrated plan, we will not be able to change the lives of farmers,” he said while laying foundation stone of Indian Agricultural Research Institute in Hazaribagh, Jharkhand. Emphasising the need for use of scientific methods for farming to increase productivity, Modi said it was high time that the country goes for the second Green Revolution as the first such revolution took place long back.
Noting that the eastern part of India has the potential to bring about the second Green Revolution. “It can take place in eastern UP, Bihar, West Bengal, Jharkhand, Assam, Odhisa,” Modi said. Pitching for ‘per drop, more crop’, Modi stressed the need for research in the field of agriculture to determine the health of soil and its needs in terms of seeds, water quantity, amount of fertilization etc.
He said the government was taking steps to train youth in soil testing so that such labs could be set up on the pattern of pathological labs for humans. “This will also lead to job creation,” he added. Turning to pulses, he said India has to import these because of shortfall in production and noted that a special package has been given to farmers engaged in cultivation of pulses.
“The production of pulses in the country is very low and I urge farmers that if they have five acres of farming land, use four acres for other crops but cultivate pulses on at least one acre,” Modi said. High production would help in reducing pulses import and availability of the commodity to poor people of the country, the Prime Minister said. His appeal assumes significance as output of pulses is expected to be lower this year as against growing demand.
India imports about 3-4 million tonnes of pulses annually to meet domestic demand. The country produces about 19 million tonnes of pulses. The production of pulses is estimated to have fallen to 17.38 million tonnes in 2014-15 crop year (July-June) from 19.25 million tonnes in the previous crop year due to deficient monsoon last year and unseasonal rains and hailstorms during March-April this year.
Modi also emphasised on the need to focus on enhancing food grain production by adopting scientific methods. “Research is important in the agriculture sector. And this cannot happen only in one place. We have to see how can we make our agriculture more scientific and increase productivity and solutions are there for these issues,” Modi said.
According to PTI, he said Indian agriculture has been lagging in several areas including inputs, irrigation, value addition and market linkages and his government was committed to modernizing the sector and making it more productive. “We have seen the first Green Revoltuion but it happened several years ago. Now it is the demand of time that there should be second Green Revolution without any delay. And where is it possible? It is possible in eastern UP, Bihar, West Bengal, Jharkhand, Assam, Odhisa,” Modi said while laying foundation stone of Indian Agricultural Research Institute at Barhi.
Pitching for ‘per drop, more crop’, Modi stressed the need for research in the field of agriculture to determine the health of soil and its needs in terms of seeds, water quantity, amount of fertilization etc. He said the government was taking steps to train youth in soil testing so that such labs could be set up on the pattern of pathological labs for humans. “This will also lead to job creation,” he added.
Related Stories :
|
english
|
MNCs, BPOs and IT enabled services (ITES) in Gurgaon may have to allow their employees to work from home till the end of July, says Gurgaon Metropolitan Development Authority CEO V S Kundu.
Kundu, who is also additional chief secretary of Haryana, however, made it clear that this is his personal opinion and no such advisory has been issued.
Several real estate projects, including those of DLF, have got the green signal to resume construction but within the norms of social distancing, he said.
TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH.
What you get on Business Standard Premium?
- Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app.
- Pick your 5 favourite companies, get a daily email with all news updates on them.
- Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006.
- Preferential invites to Business Standard events.
- Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more.
|
english
|
May 14 will go down in the history of Turkish Republic as one of the most important elections to date. The stakes are high, and there is a growing sense among the general public that if the current leadership stays in power, the country's future is grim and uncertain. There is talk of Turkey turning into a Taliban-style theocracy, while others debate whether the country can weather even one more term under the current autocracy. The importance of the upcoming elections rests on the ruling party of Justice and Development (AKP), which has upended democratic norms and values in recent years. Under the AKP, Turkey has curtailed freedom of expression, media plurality, human rights, art and music, women’s rights, and more, largely at the whim of one man — President Recep Tayyip Erdoğan. After twenty years in power and consecutive election victories (two presidential races, three referendums, five parliamentary elections, minus the municipal elections in 2019) since 2002, the fate of the ruling party and its leaders is on the table, but so is the future of Turkey and its citizens.
As of March 28, there are four presidential candidates in the race (out of 18 original applicants). In Turkish elections, various political parties often form alliances with each other to consolidate their voter base. The four candidates are incumbent President Recep Tayyip Erdoğan (despite the earlier claims that his candidacy was unlawful) representing the ruling People’s Alliance; Kemal Kılıçdaroğlu, the candidate from the united opposition front (known as Table of Six) representing the Nation Alliance; Muharrem Ince (former member of the main opposition Republican People (CH) party and 2018 presidential candidate) from the Homeland party; and Sinan Oğan representing the ATA Alliance.
The People's Alliance has gotten both official and unofficial support from nationalist parties, the ultra-Islamist Kurdish Free Cause Party (Huda-Par), also known as the successor of Hezbollah, as well as parties known for their anti-LGBTQ+ stance and questionable views on women's rights. For instance, one supporter, the New Welfare Party called to amend Law 6284 on the prevention of violence against women and children and close down LGBTQ+ clubs in the country. According to journalist Ismail Saymaz, the party had some 30 conditions prior to throwing its support behind the ruling alliance.
On the other end is the multi-faceted Nation Alliance. They promise to bolster Turkey's parliamentary system, establish limits on presidential powers, and plan to address economic and societal grievances. The alliance is supported by at least another three political parties who did not join the alliance officially but have expressed support.
Another party with a significant voter base, the Peoples’ Democratic Party (HDP), announced they were not planning on nominating a candidate but, rather, would join forces with other progressive parties to get rid of the current administration. “We will fulfill our historical responsibility toward the one-man rule in the presidential elections,” said Pervin Buldan, the HDP co-chair.
On March 29, Kılıçdaroğlu had a meeting with Ince, who told journalists after the meeting that he was determined to stay in the race.
In total, 36 political parties were officially approved for the May 14 election, as voters will not only be choosing the next president but also the lawmakers. Two additional alliances, the Labor and Freedom Alliance and the Socialist Union of Forces, will run for the parliamentary seats. Although neither of these two alliances nominated individual presidential candidates, both expressed support for the opposition Nation Alliance. Turkey's parliament, the Grand National Assembly, consists of 600 seats. Currently, the ruling party and its ally, the Nationalist Movement Party (MHP), hold the majority.
Before Turkey was hit with a devastating earthquake on February 6, chances for Erdoğan's re-election and his coalition maintaining a majority in the parliament were rather high. The earthquake, however, changed the game, exposing the grave consequences of one-man rule, the weakened institutions, the extent of corruption, and the government's inability to swiftly intervene during a crisis — all as a result of Erdoğan's twenty years in power.
Kılıçdaroğlu, who was the first party leader to visit the earthquake provinces accused both president and the ruling party of exacerbating the destruction and failing to prepare in a video message following his visit.
In addition to the security of the ballots and the fate of millions of displaced voters from the earthquake provinces come May 14, the overall transparency of the election is at stake.
With the unchecked powers vested in the ruling government, its ruling Justice and Development party may not even need conventional corruption tools of ballot stuffing or incorrect tallying. It has election officials in its pocket and the media too, thanks to the new online censorship and disinformation laws. In 2019, during the municipal elections, election officials attempted to overturn the results of the Istanbul mayoral race after the ruling party lost its seats to the opposition candidates. The re-run of the election resulted in another defeat for the ruling party, with Ekrem İmamoglu winning the election for a second time.
Following the devastating earthquake, the ruling government also did not shy away from censorship in order to save face amid growing criticism. It is also not clear how millions of university students who were forced to switch to online education as part of the government measures introduced after the earthquake will cast their votes. If universities re-open and students return to their campuses, it may be difficult for them to return to their home districts where they are registered to vote ahead of election day — especially given increased travel costs. The Council of Higher Education (YÖK) is yet to announce whether universities will re-open for face-to-face education come April. Officially the deadline to make changes to the address is April 2, but a lack of clarity from YÖK has left students undecided about whether to change their residency addresses or not.
This is what Kılıçdaroğlu promises in his new campaign video that draws attention to a number of issues the country struggled with in the past years and months. For instance, in one of the segments, there is the campus of Boğaziçi University, which has been protesting the appointment of the government trustee as the rector for over two years now. There are also references to football stadiums that have recently come under scrutiny as well as performances by artists. “We are coming for a Turkey that can sing its most beautiful songs loudly and whose joy can be seen in the eyes of its children. I promise you that spring will come again. Mr. Kemal will not break his promise,” Kılıçdaroğlu vows in the video. With a little more than forty days left and Turkey weathering an unseasonably cold winter, it is not just good weather people are looking forward to but also a new political chapter to mark the beginning of spring.
|
english
|
Madikeri: “Kargil Vijay Diwas is a symbol of India’s pride and valour. I bow to the soldiers who, with their indomitable courage, drove the enemy from the inaccessible hills of Kargil and waved the Tricolour there again. The country is proud of the heroes of India, who are dedicated to protecting the motherland. We remember the courage and determination of our Armed Forces, who protected our nation in 1999 and continued protecting us and their sacrifices will continue to inspire generations,” said Air Marshal Kodandera Nanda Cariappa.
He was speaking at Sunny Side War Memorial — the house of General K. S. Thimmayya — at Madikeri yesterday on the occasion of Kargil Vijay Diwas. The event was organised amidst COVID pandemic by Field Marshal K. M. Cariappa and General Thimmayya Forum. “It is a special and a sacred milestone in the history of Indian Armed Forces,” he said after laying a wreath at Amar Jawan Memorial at Sunny Side.
Field Marshal K. M. Cariappa and General Thimmayya Forum President Col. (retd. ) Kandrathanda Subbaiah, Lieutenant Colonel (retd. ) Chengappa, Major (retd. ) Biddanda Nanda Nanjappa and others paid rich tributes. Ajjinanda Thamoo Poovaiah of Kodagu Ekikarana Ranga, Kokkalera Cariappa, entrepreneur Arun, Sukumar of Hindu Vedike and others were present.
The supreme sacrifice by the brave Indian soldiers was remembered by the Kodagu Sainik School fraternity by paying homage to war heroes at the War Memorial. Principal Col. G Kannan laid the wreath. Lt. Col Seema Tripathi, Vice-Principal and Sqn. Ldr. R. K. Dey, Administrative Officer also remembered the sacrifices.
Associate NCC Officers of the School also paid floral tributes at the Memorial. The Principal addressed the cadets and shared a video to the cadets about the event and told them that the School, under Ministry of Defence and with the support from Government of Karnataka, is committed to prepare them to be future leaders not only in defence forces but in all walks of life.
Owing to the COVID pandemic, the programme and competitions were held online. Cdt. Amogh and his team of other cadets performed a role play titled “Yeh Dil Mange More! ” a tribute to Capt. Vikram Batra, Param Vir Chakra awardee, through video conference. Online quiz, poster-making contests were held and e-certificates were also awarded to the winning cadets.
|
english
|
{
"name": "sls-electron-study",
"version": "1.0.0",
"main": "index.js",
"repository": "<EMAIL>:sls-node/sls-electron-study.git",
"author": "赛冷思 <<EMAIL>>",
"license": "MIT",
"dependencies": {
"electron-packager": "^9.1.0",
"electron-prebuilt": "^1.4.13"
}
}
|
json
|
<gh_stars>1-10
package com.circustar.mybatis_accessor.annotation.scan;
import java.lang.annotation.*;
@Target(value = {ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface DtoEntityRelations {
DtoEntityRelation[] value();
}
|
java
|
<gh_stars>10-100
{
"notes": [
"This is the dev environment manifest",
"That's all I have to say"
],
"versions": {
"ambassador": "quay.io/datawire/ambassador:1.4.2",
"arborist": "quay.io/cdis/arborist:master",
"dashboard": "quay.io/cdis/gen3-statics:chore_iam-test",
"fence": "quay.io/cdis/fence:master",
"fluentd": "fluent/fluentd-kubernetes-daemonset:v1.2-debian-cloudwatch",
"hatchery": "quay.io/cdis/hatchery:master",
"portal": "quay.io/cdis/data-portal:master",
"revproxy": "quay.io/cdis/nginx:1.17.6-ctds-1.0.1",
"wts": "quay.io/cdis/workspace-token-service:master"
},
"arborist": {
"deployment_version": "2"
},
"indexd": {
"arborist": "true"
},
"google": {
"enabled": "no"
},
"global": {
"environment": "occ-covid19",
"hostname": "spoke1.workspace.planx-pla.net",
"dictionary_url": "https://s3.amazonaws.com/dictionary-artifacts/ndhdictionary/master/schema.json",
"portal_app": "gitops",
"sync_from_dbgap": "False",
"kube_bucket": "kube-occ-covid19-gen3",
"logs_bucket": "logs-occ-covid19-gen3",
"useryaml_s3path": "s3://cdis-gen3-users/occ-covid19/user.yaml",
"netpolicy": "on",
"lb_type": "public"
},
"portal": {
"GEN3_BUNDLE": "workspace"
},
"scaling": {
"arborist": {
"strategy": "auto",
"min": 1,
"max": 1
},
"fence": {
"strategy": "auto",
"min": 1,
"max": 1
},
"indexd": {
"strategy": "auto",
"min": 1,
"max": 1
},
"revproxy": {
"strategy": "auto",
"min": 1,
"max": 1
}
},
"canary": {
"default": 0
}
}
|
json
|
{"date":"2018-07-13","platform":"剧场版","images":{"small":"https://lain.bgm.tv/pic/cover/s/84/98/178606_r6dek.jpg","grid":"https://lain.bgm.tv/pic/cover/g/84/98/178606_r6dek.jpg","large":"https://lain.bgm.tv/pic/cover/l/84/98/178606_r6dek.jpg","medium":"https://lain.bgm.tv/pic/cover/m/84/98/178606_r6dek.jpg","common":"https://lain.bgm.tv/pic/cover/c/84/98/178606_r6dek.jpg"},"summary":"Mavis surprises Dracula with a family voyage on a luxury Monster Cruise Ship so he can take a vacation from providing everyone else's vacation at the hotel. The rest of Drac's Pack cannot resist going along. But once they leave port, romance arises when Dracula meets the mysterious ship Captain, Ericka. Now it's Mavis' turn to play the overprotective parent, keeping her dad and Ericka apart. Little do they know that his \"too good to be true\" love interest is actually a descendant of <NAME>, ancient nemesis to Dracula and all other monsters.","name":"Hotel Transylvania 3: Summer Vacation","name_cn":"精灵旅社3:疯狂假期","tags":[{"name":"剧场版","count":33},{"name":"迪士尼","count":29},{"name":"2018","count":20},{"name":"欧美","count":17},{"name":"喜剧","count":16},{"name":"动画电影","count":15},{"name":"美国","count":12},{"name":"精灵旅社","count":10},{"name":"动画","count":9},{"name":"奇幻","count":8},{"name":"Sony_Pictures_Animation","count":5},{"name":"3D","count":3},{"name":"搞笑","count":2},{"name":"电影","count":2},{"name":"2010s","count":1},{"name":"2018年","count":1},{"name":"2018年7月","count":1},{"name":"7WA","count":1},{"name":"【ANIME】电影丨美国","count":1},{"name":"劇場版","count":1},{"name":"原创","count":1},{"name":"家庭","count":1},{"name":"无","count":1},{"name":"治愈","count":1}],"infobox":[{"key":"中文名","value":"精灵旅社3:疯狂假期"},{"key":"别名","value":[{"v":"鬼灵精怪大酒店3:怪兽旅行团(港)"},{"v":"尖叫旅社3:怪兽假期(台)"}]},{"key":"上映年度","value":"2018年7月13日"},{"key":"制片国家/地区","value":"美国"},{"key":"语言","value":"英语"},{"key":"IMDb_id","value":"tt5220122"},{"key":"导演","value":"<NAME>"},{"key":"话数","value":"1"}],"rating":{"rank":4507,"total":90,"count":{"1":0,"2":0,"3":1,"4":4,"5":17,"6":37,"7":23,"8":6,"9":1,"10":1},"score":6.2},"total_episodes":1,"collection":{"on_hold":7,"dropped":5,"wish":37,"collect":165,"doing":1},"id":178606,"eps":1,"volumes":0,"locked":false,"nsfw":false,"type":2}
|
json
|
Islamabad, June 21 Pakistans civil-military leadership has presented an "Economic Revival Plan", stated to be bigger than the China-Pakistan Economic Corridor (CPEC), the media reported.
The plan is focused on harnessing the country's untapped potential in key sectors through local development and foreign investments mainly from "Gulf countries" and expediting project implementation, The Express Tribune reported.
"This economic recovery project (SIFC) will prove to be a bigger economic project than CPEC," a key cabinet minister told The Express Tribune.
"The project is a "game-changer" for the development of Pakistan," the Minister added.
He stated that "investment will come from the Gulf countries" and the "army will play a key role" in the coordination of the projects.
"If this project is completed, by 2035, Pakistan could become a trillion-dollar economy," The Express Tribune reported citing a source as saying.
The new plan is announced just days before the 10th anniversary of the signing of CPEC deal, which was also dubbed as a "game changer" project.
The project was signed on July 5, 2013 during the then Pakistan Muslim League-Nawaz (PML-N) government.
However, so far, less than $25 billion of Chinese investment has been made out of the planned amount of $62 billion due to Islamabad's failure to honour its various commitments.
Now, the source said, under the SIFC, direct jobs opportunities would be provided to 15 to 20 million people and indirect job opportunities to another 75 to 100 million people in the next four to five years.
Along with this, the SIFC project will generate exports of $70 billion and "import substitution" of equal amount in the next four to five years, The Express Tribune reported.
"The (SIFC) plan will also increase Pakistan's foreign direct investment by $100 billion. "
|
english
|
{
"name":"xmlNew",
"type":"function",
"syntax":"xmlNew([casesensitive])",
"returns":"xml",
"related":["xmlParse","serializeXML","deserializeXML","isXMLDoc","encodeForXML"],
"description":"Creates an XML document object.",
"params": [
{"name":"casesensitive","description":"Maintains the case of document elements and attributes.\n Default: false","required":false,"default":false,"type":"boolean","values":[true,false]}
],
"engines": {
"coldfusion": {"minimum_version":"", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-t-z/xmlnew.html"},
"lucee": {"minimum_version":"", "notes":"", "docs":"https://docs.lucee.org/reference/functions/xmlnew.html"},
"railo": {"minimum_version":"", "notes":"", "docs":"http://railodocs.org/index.cfm/function/xmlnew"},
"openbd": {"minimum_version":"", "notes":"", "docs":"http://openbd.org/manual/?/function/xmlnew"}
},
"links": [],
"examples": [
{
"title":"The simple xmlnew example",
"description":"Here, We created myXml by using xmlNew function. Then created root node(sampleXml) for myXml and set the rootnode text",
"code":"<cfset myXml = xmlNew()>\r\n<cfset myXml.XmlRoot = xmlelemnew(myXml,\"sampleXml\")>\r\n<cfset myXml.sampleXml.XmlText =\"This is root node text\">\r\n<cfdump var=\"#myXml#\">",
"result":""
}
]
}
|
json
|
<reponame>pixelastic/maps-data<filename>data/dndmaps/2022/01/t3_ruf9q6.json
{
"author": {
"id": "t2_40lhd2hx",
"name": "Tomartos"
},
"date": {
"day": 1641081600,
"full": 1641146575,
"month": 1640995200,
"week": 1641081600
},
"id": "t3_ruf9q6",
"picture": {
"filesize": 90119,
"fullUrl": "https://external-preview.redd.it/0FMgZfBZ01ySYWbezXwreY9qwzMiCT3juP3P60wXnFY.jpg?auto=webp&s=09cc4084a6d55b7c1cbbba4bef978f7a64c40b20",
"hash": "fe706a72d3",
"height": 495,
"lqip": "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAMABADASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAABAMH/8QAIRAAAgEDAwUAAAAAAAAAAAAAAQIDABEhBDFREhMiMnH/xAAVAQEBAAAAAAAAAAAAAAAAAAADBf/EABcRAAMBAAAAAAAAAAAAAAAAAAABESH/2gAMAwEAAhEDEQA/AMzRSXVTGFKLYJtbg3zmiaZJ1jlKdrojJBYHe9IYMqyuJZAxcD25wappYA8Usbu7JGviGsbZ+UC0hqn/2Q==",
"url": "https://external-preview.redd.it/0FMgZfBZ01ySYWbezXwreY9qwzMiCT3juP3P60wXnFY.jpg?width=640&crop=smart&auto=webp&s=d31648bcf40946c358931a0d063dae781e3a8920",
"width": 640
},
"score": {
"comments": 1,
"downs": 0,
"isCurated": true,
"ratio": 0.82,
"ups": 10,
"value": 10
},
"subreddit": {
"id": "t5_3isai",
"name": "dndmaps"
},
"tags": ["Encounter"],
"title": "Whalebone Graveyard",
"url": "https://www.reddit.com/r/dndmaps/comments/ruf9q6/whalebone_graveyard_22x17/"
}
|
json
|
import layout from '../layout';
import samplePathway from './fixtures/pathways/sample_pathway.json';
import her2Pathway from './fixtures/pathways/her2_pathway.json';
import testPathway from './fixtures/pathways/graph_layout_test_pathway.json';
import { NodeCoordinates } from 'graph-model';
describe('pathway graph layout', () => {
it('sample pathway layout set correctly', () => {
const { nodeCoordinates } = layout(samplePathway, {});
checkLayout(nodeCoordinates);
});
it('test pathway layout set correctly', () => {
const { nodeCoordinates } = layout(testPathway, {});
checkLayout(nodeCoordinates);
});
it('her2 pathway layout set correctly', () => {
const { nodeCoordinates } = layout(her2Pathway, {});
checkLayout(nodeCoordinates);
});
// Helper function to validate layout output
function checkLayout(graphCoordinates: NodeCoordinates): void {
// Verify every node has (x,y) and only start has y: 0
for (const nodeKey in graphCoordinates) {
// Validate node
const coords = graphCoordinates[nodeKey];
expect(coords).toBeDefined();
expect(coords.x).toBeDefined();
expect(coords.y).toBeDefined();
if (nodeKey !== 'Start') expect(coords.y !== 0).toBeTruthy();
// Validate node does not overlap with another node
for (const otherNodeKey in graphCoordinates) {
if (nodeKey !== otherNodeKey) {
const otherCoords = graphCoordinates[otherNodeKey];
expect(coords.x === otherCoords.x && coords.y === otherCoords.y).toBeFalsy();
}
}
}
}
});
|
typescript
|
<reponame>JaelysonM/uzm-discord-bot-ts<gh_stars>0
import { Guild, Message, MessageEmbed, MessageReaction, TextChannel, User } from "discord.js";
import Bot from "../../containers/Bot";
import Forms from "../../containers/Forms";
import SettingsCache from "../../database/cache/SettingsCache";
import CommandHandler from "../../handlers/CommandHandler";
import { ICommandHelp } from "../../interfaces/CommandInterfaces";
import IssueManager from "../../managers/IssueManager";
import { sendMessageAndDelete } from "../../utils/MessageUtils";
import TimeFormatter from "../../utils/TimeFormatter";
export default class ReviewCommand extends CommandHandler {
getHelp(): ICommandHelp {
return {
name: "resultado",
roles: ['ADMIN_PERM'],
description: 'Da um resultado para um formulário.'
};
}
async run(bot: Bot, message: Message, args: string[], command: string): Promise<void> {
const cache = SettingsCache.instance();
const settings = await cache.getCache(message.guild?.id as string);
const commandIssues = await new IssueManager(message.guild as Guild).finder().commandIssues(message, async (obj, objs) => {
}
);
if (commandIssues) return;
switch (args.length) {
case 2:
const nickname = args[0];
const status = args[1];
const form = await Bot.fromHandler('forms').getCache(nickname.toLowerCase(), false);
if (!form) {
message.channel.send(`🚫 ${nickname} não tem um formulário pendente.`).then(async message => { try { await message.delete({ timeout: 2000 }) } catch (error) { } })
return;
}
const target = Bot.instance.client.users.cache.get(form.user);
if (!target) {
message.channel.send(`🚫 ${nickname} não está ao alcançe do nosso bot.`).then(async message => { try { await message.delete({ timeout: 2000 }) } catch (error) { } })
return;
}
if (['aprovado', 'negado'].includes(status.toLowerCase())) {
try {
const msg = await sendMessageAndDelete(message.channel, new MessageEmbed()
.setDescription(`Você está prestes a dar o resultado de um formulário, escolha um dos emojis com os respectivos motivos atuais:\n
${status.toLowerCase().includes('negado') ? `\`\`\`👎 » Respostas insatisfatórias.\n🚫 » Falta de informações.\n⚠️ » Outros motivos pessoais e profissionais.\`\`\`` : `\`\`\`♻️ » Aprovado, respondeu corretamente e etc.\`\`\``}
Você terá \`\`10 segundos\`\` para escolher um motivo para a revisão de **${form.minecraft.nickname}**\n para o status ***${status}***!`
).setFooter(`Punição à ser revisada ${TimeFormatter.BR_COMPLETE_DATE.format(Date.now())}`), 10000); 7
if (status.toLowerCase().includes('negado')) {
msg.react('👎')
msg.react('🚫')
msg.react('⚠️')
} else {
msg.react('♻️')
}
const collector = msg.createReactionCollector((reaction: MessageReaction, user: User) => user.id == message.author.id
&& (reaction.emoji.name == '👎' || reaction.emoji.name == '🚫' || reaction.emoji.name == '⚠️' || reaction.emoji.name == '♻️'), { time: 1000 * 10, max: 1 });
collector.on('collect', async (reaction) => {
reaction.users.remove(message.author)
let reason;
switch (reaction.emoji.name) {
case '👎': reason = 'Respostas insatisfatórias'; break;
case '🚫':
reason = ' Falta de informações.'; break;
case '⚠️':
reason = 'Outros motivos pessoais e profissionais.'; break;
case '♻️':
reason = 'A punição foi aplicada incorretamente'; break;
}
if (reason) {
Forms.result(message.author, status, target, form, reason);
sendMessageAndDelete(message.channel, new MessageEmbed()
.setAuthor(`Formulário respondido com sucesso`, `https://gamepedia.cursecdn.com/minecraft_gamepedia/thumb/0/0f/Lime_Dye_JE2_BE2.png/150px-Lime_Dye_JE2_BE2.png?version=689addf38f5c21626ee91ec07e6e8670`)
.setDescription(`\nVocê selecionou o motivo \`\`${reason}\`\` e este resultado do formulário foi enviado no privado do candidato;`).setFooter(`O resultado da formulário foi enviado em ${TimeFormatter.BR_COMPLETE_DATE.format(Date.now())}`), 10000)
} else {
sendMessageAndDelete(message.channel, `🚫 Ocorreu um erro inesperado, tente novamente!: ${`Unknown main guild ID and channel ID.`}`, 5000)
}
});
} catch (error) {
sendMessageAndDelete(message.channel, `🚫 Ocorreu um erro inesperado, tente novamente!: ${error}`, 5000)
}
} else {
sendMessageAndDelete(message.channel, `🚫 Use: ${settings.commandPrefix}${command} ${nickname} < Aprovado ou Negado >.`, 2000)
}
break;
default:
sendMessageAndDelete(message.channel, `🚫 Use: ${settings.commandPrefix}${command} <Nome do usuário do Minecraft> < Aprovado ou Negado >.`, 2000)
break;
}
}
}
|
typescript
|
<filename>internal/compiler-interface/src/main/java/xsbti/api/AbstractLazy.java
/*
* Zinc - The incremental compiler for Scala.
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, <NAME>
* This software is released under the terms written in LICENSE.
*/
package xsbti.api;
import java.io.ObjectStreamException;
public abstract class AbstractLazy<T> implements Lazy<T>, java.io.Serializable
{
// `writeReplace` must be `protected`, so that the `Impl` subclass
// inherits the serialization override.
//
// (See source-dependencies/java-analysis-serialization-error, which would
// crash trying to serialize an AbstractLazy, because it pulled in an
// unserializable type eventually.)
protected Object writeReplace() throws ObjectStreamException
{
return new StrictLazy<T>(get());
}
private static final class StrictLazy<T> implements Lazy<T>, java.io.Serializable
{
private final T value;
StrictLazy(T t)
{
value = t;
}
public T get()
{
return value;
}
}
}
|
java
|
Traders have extinguished a fire that started from a power line at the Baitul Mukarram jewellery market.
A fire broke out from a power line on the market's second floor and was reported at 2:53 pm on Monday, said Shahjahan Sikdar, an official from the Fire Service Control Room.
Earlier in the day, a fire broke out at the BGB Market in Uttara. Six fire service units managed to bring it under control after an hour and 15 minutes of effort.
A series of fires have occurred at marketplaces and shopping centres in the capital ahead of Eid.
Bangabazar, one of the largest shopping centres for clothing in Dhaka, burnt down in a massive blaze on Apr 4. On Apr 11, there was a fire at a Chawkbazar ceramics warehouse.
About 20 warehouses burnt down in a fire at Old Dhaka’s Nababpur Road on Thursday. Over 600 shops were gutted in a blaze at New Super Market, next to Dhaka’s New Market, early on Saturday.
No lives have been lost in these fires, but traders have faced massive losses.
The repeated incidents have led to suspicions of sabotage and back-and-forth accusations in the political sphere.
|
english
|
<gh_stars>100-1000
import { Registration } from '@polkadot/types/interfaces/identity/types'
import Vue from 'vue'
export default class IdentityMixin extends Vue {
public async identityOf(address: string): Promise<Registration> {
const identity = this.$store.getters.getIdentityFor(address)
if (identity) {
return Promise.resolve(identity)
}
return await this.$store.dispatch('fetchIdentity', address)
.then(() => this.$store.getters.getIdentityFor(address))
.then(id => id || {})
}
}
|
typescript
|
<filename>node_modules/@atlaskit/analytics-next-stable-react-context/CHANGELOG.md
# @atlaskit/analytics-next-stable-react-context
## 1.0.1
### Patch Changes
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
to prevent duplicates of tslib being bundled.
## 1.0.0
### Major Changes
- [`8a42350632`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8a42350632) - First and only version
|
markdown
|
<filename>settings.json
// 将设置放入此文件中以覆盖默认设置
{
"files.associations": {
"*.vm": "html"
},
"editor.fontSize": 15,
"editor.tabSize": 2,
"html.suggest.angular1": false,
"html.suggest.ionic": false,
"typescript.check.tscVersion": false
}
|
json
|
const path = require('path')
const withPWA = require('next-pwa')
module.exports = withPWA({
pwa: {
//disable: process.env.NODE_ENV === 'development',
// dest: 'public',
register: true,
sw: '/sw.js'
},
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
env: {
JWT_SECRET: "<KEY>",
SENDGRID_KEY: '<KEY>',
CLOUDINARY_URL: "https://api.cloudinary.com/v1_1/dgybc86l6/image/upload",
CLOUDINARY_VIDEO_URL: "https://api.cloudinary.com/v1_1/dgybc86l6/video/upload",
STRIPE_SECRET_KEY: "<KEY>",
STRIPE_PUBLISHABLE_KEY: "<KEY>"
}
})
|
javascript
|
import React, { useEffect, useState } from "react";
import { BackstageTheme } from "@backstage/theme";
import DataTable from "react-data-table-component";
import { columns } from "./tableHeadings";
import ReactSpeedometer from "react-d3-speedometer";
import { Card, CardActions, Button, useTheme } from "@material-ui/core";
function HarborRepository(props: RepositoryProps) {
const [loading, setLoading] = useState(false);
const [error, setError] = useState(false);
const [errorMsg, setErrorMsg] = useState("");
const [repository, setRepository] = useState<Repository[]>([]);
const theme = useTheme<BackstageTheme>();
const mode = theme.palette.type === "dark" ? "dark" : "light";
useEffect(() => {
setLoading(false);
async function getRepository() {
let backendUrl = window.location.origin;
if (backendUrl.includes("3000")) {
backendUrl = backendUrl.replace("3000", "7000");
}
const response = await fetch(
`${backendUrl}/api/harbor/artifacts?project=${props.project}&repository=${props.repository}`
);
const json = await response.json();
if (json.hasOwnProperty("error")) {
setError(true);
setErrorMsg(json.error.message);
}
setRepository(json);
}
getRepository();
setTimeout(() => {
setLoading(true);
}, 1000);
}, [props.project, props.repository]);
if (!loading && Object.keys(repository).length > 0) {
return <div>Loading...</div>;
}
if (error) {
return <p>{errorMsg}</p>;
}
if (props.widget) {
let severityNumber: number = 0;
const severityText: string = repository[0]?.vulnerabilities.severity;
switch (severityText) {
case "Low":
severityNumber = 150;
break;
case "Medium":
severityNumber = 250;
break;
case "High":
severityNumber = 350;
break;
case "Critical":
severityNumber = 450;
break;
default:
severityNumber = 50;
break;
}
return (
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<ReactSpeedometer
value={severityNumber}
width={450}
minValue={0}
maxValue={500}
segmentColors={[
"#6ad72d",
"#ade228",
"#ecdb23",
"#f6961e",
"#ff471a",
]}
customSegmentStops={[0, 100, 200, 300, 400, 500]}
currentValueText="vulnerability levels"
customSegmentLabels={[
{
text: "None",
},
{
text: "Low",
},
{
text: "Medium",
},
{
text: "High",
},
{
text: "Critical",
},
]}
/>
</div>
);
}
return (
<div>
<Card>
<CardActions>
<Button size="small">
<a href={repository[0]?.repoUrl}>Learn More</a>
</Button>
</CardActions>
</Card>
<DataTable
theme={mode}
striped
title="Docker Images"
columns={columns}
data={repository}
defaultSortField="pushTime"
defaultSortAsc={false}
/>
</div>
);
}
interface RepositoryProps {
widget: boolean;
project: string;
repository: string;
}
interface Repository {
size: number;
tag: string;
pullTime: string;
pushTime: string;
projectID: number;
repoUrl: string;
vulnerabilities: Vulnerabilities;
}
interface Vulnerabilities {
count: number;
severity: string;
}
export { HarborRepository };
|
typescript
|
<reponame>gschrijvers/azure-docs.nl-nl
---
title: Azure PowerShell-voor beelden-netwerken
description: Voorbeelden van Azure PowerShell
services: virtual-network
documentationcenter: virtual-network
author: KumudD
manager: mtillman
tags: ''
ms.assetid: ''
ms.service: virtual-network
ms.devlang: na
ms.topic: article
ms.tgt_pltfrm: ''
ms.workload: infrastructure
ms.date: 05/24/2017
ms.author: gwallace
ms.openlocfilehash: ca6ac145db0536d3cf7e5bcc72a58d72101ab12a
ms.sourcegitcommit: 849bb1729b89d075eed579aa36395bf4d29f3bd9
ms.translationtype: MT
ms.contentlocale: nl-NL
ms.lasthandoff: 04/28/2020
ms.locfileid: "81459114"
---
# <a name="azure-powershell-samples-for-networking"></a>Voor beelden Azure PowerShell voor netwerken
De volgende tabel bevat koppelingen naar scripts die zijn gebouwd met behulp van Azure PowerShell.
| | |
|-|-|
|**Connectiviteit tussen Azure-resources**||
| [Een virtueel netwerk maken voor toepassingen met meerdere lagen](./scripts/virtual-network-powershell-sample-multi-tier-application.md?toc=%2fazure%2fnetworking%2ftoc.json) | Hiermee wordt een virtueel netwerk met front-end- en back-end-subnetten gemaakt. Verkeer naar het front-end-subnet wordt beperkt tot HTTP, terwijl verkeer naar het back-end-subnet wordt beperkt tot SQL, poort 1433. |
| [Peering van twee virtuele netwerken](./scripts/virtual-network-powershell-sample-peer-two-virtual-networks.md?toc=%2fazure%2fnetworking%2ftoc.json) | Hiermee worden twee virtuele netwerken in dezelfde regio gemaakt en verbonden. |
| [Verkeer routeren via een virtueel netwerkapparaat](./scripts/virtual-network-powershell-sample-route-traffic-through-nva.md?toc=%2fazure%2fnetworking%2ftoc.json) | Hiermee wordt een virtueel netwerk gemaakt met front-end- en back-end-subnetten en een VM die verkeer tussen de twee subnetten kan routeren. |
| [Binnenkomend en uitgaand VM-netwerkverkeer filteren](./scripts/virtual-network-powershell-filter-network-traffic.md?toc=%2fazure%2fnetworking%2ftoc.json) | Hiermee wordt een virtueel netwerk met front-end- en back-end-subnetten gemaakt. Binnenkomend netwerk verkeer naar het front-end-subnet is beperkt tot HTTP en HTTPS.. Uitgaand verkeer naar Internet vanuit het back-end-subnet is niet toegestaan. |
|**Taak verdeling en verkeers richting**||
| [Verkeer verdelen naar virtuele machines voor hoge beschikbaarheid](./scripts/load-balancer-windows-powershell-sample-nlb.md?toc=%2fazure%2fnetworking%2ftoc.json) | Maakt verschillende virtuele machines in een configuratie met hoge Beschik baarheid en taak verdeling. |
| [Direct verkeer tussen meerdere regio's voor hoge Beschik baarheid van toepassingen](./scripts/traffic-manager-powershell-websites-high-availability.md?toc=%2fazure%2fnetworking%2ftoc.json) | Hiermee maakt u twee app service-abonnementen, twee web-apps, een Traffic Manager-profiel en twee Traffic Manager-eind punten. |
| | |
|
markdown
|
[
{
"name":"Package Builder",
"description":"A command-line utility allowing more finite control over the creation of Kentico module packages and support for continuous integration.",
"url":"https://github.com/Ntara/Kentico.PackageBuilder",
"tags":[
"module",
"package",
"command-line",
"continuous integration"
]
}
]
|
json
|
<reponame>mikrotikAhmet/coderr_crm
body {
background: url('../images/background-globe-grey-79651a0b9f5ca4c2b994a541f7f053e6.png') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.navbar-default {
background-color: #fff;
}
.navbar-default .navbar-nav>li>a {
color: #0074a6;
line-height: 60px;
font-size: 15px;
}
.navbar-default .navbar-nav>li>a:hover{
color: #000;
line-height: 60px;
font-size: 15px;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover {
background: transparent;
color: #000;
}
|
css
|
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# 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.
"""Encoders for the speech model."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
from six.moves import range
from six.moves import zip
import tensorflow as tf
from tensorflow.python.ops import inplace_ops
from lingvo.core import base_encoder
from lingvo.core import base_layer
from lingvo.core import layers
from lingvo.core import plot
from lingvo.core import py_utils
from lingvo.core import rnn_cell
from lingvo.core import rnn_layers
from lingvo.core import summary_utils
from lingvo.core import model_helper
ConvLSTMBlock = collections.namedtuple('ConvLSTMBlock', ('rnn', 'cnn'))
class AsrEncoder(base_encoder.BaseEncoder):
"""Speech encoder version 1."""
@classmethod
def Params(cls):
"""Configs for AsrEncoder."""
p = super(AsrEncoder, cls).Params()
p.Define('lstm_tpl', rnn_cell.LSTMCellSimple.Params(),
'Configs template for the RNN layer.')
p.Define('cnn_tpl', layers.ConvLayer.Params(),
'Configs template for the conv layer.')
p.Define('proj_tpl', layers.ProjectionLayer.Params(),
'Configs template for the projection layer.')
p.Define(
'highway_skip', False,
'If set, residual connections from different layers are gated. '
'Will only be used if residual_start is enabled.')
p.Define('highway_skip_tpl', layers.HighwaySkipLayer.Params(),
'Configs template for the highway skip layer.')
p.Define('conv_lstm_tpl', rnn_cell.ConvLSTMCell.Params(),
'Configs template for ConvLSTMCell.')
p.Define(
'after_conv_lstm_cnn_tpl', layers.ConvLayer.Params(),
'Configs template for the cnn layer immediately follow the'
' convlstm layer.')
p.Define('conv_filter_shapes', None, 'Filter shapes for each conv layer.')
p.Define('conv_filter_strides', None, 'Filter strides for each conv layer.')
p.Define('input_shape', [None, None, None, None],
'Shape of the input. This should a TensorShape with rank 4.')
p.Define('lstm_cell_size', 256, 'LSTM cell size for the RNN layer.')
p.Define('num_cnn_layers', 2, 'Number of conv layers to create.')
p.Define('num_conv_lstm_layers', 1, 'Number of conv lstm layers to create.')
p.Define('num_lstm_layers', 3, 'Number of rnn layers to create')
p.Define('project_lstm_output', True,
'Include projection layer after each encoder LSTM layer.')
p.Define('pad_steps', 6,
'Extra zero-padded timesteps to add to the input sequence. ')
p.Define(
'residual_start', 0, 'Start residual connections from this lstm layer. '
'Disabled if 0 or greater than num_lstm_layers.')
p.Define('residual_stride', 1,
'Number of lstm layers to skip per residual connection.')
p.Define(
'bidi_rnn_type', 'func', 'Options: func, native_cudnn. '
'func: BidirectionalFRNN, '
'native_cudnn: BidirectionalNativeCuDNNLSTM.')
# TODO(yonghui): Maybe move those configs to a separate file.
# Set some reasonable default values.
#
# NOTE(yonghui): The default config below assumes the following encoder
# architecture:
#
# cnn/batch-norm/relu ->
# cnn/batch-norm/relu ->
# bidirectional conv-lstm ->
# cnn/batch-norm/relu
# bidirectional lstm ->
# projection/batch-norm/relu ->
# bidirectional lstm ->
# projection/batch-norm/relu ->
# bidirectional lstm
#
# Default config for the rnn layer.
p.lstm_tpl.params_init = py_utils.WeightInit.Uniform(0.1)
# Default config for the convolution layer.
p.input_shape = [None, None, 80, 3]
p.conv_filter_shapes = [(3, 3, 3, 32), (3, 3, 32, 32)]
p.conv_filter_strides = [(2, 2), (2, 2)]
p.cnn_tpl.params_init = py_utils.WeightInit.TruncatedGaussian(0.1)
# TODO(yonghui): Disable variational noise logic.
# NOTE(yonghui): Fortunately, variational noise logic is currently not
# implemented for ConvLayer yet (as of sep 22, 2016).
# Default config for the projection layer.
p.proj_tpl.params_init = py_utils.WeightInit.TruncatedGaussian(0.1)
# TODO(yonghui): Disable variational noise logic.
# NOTE(yonghui): Fortunately, variational noise logic is currently not
# implemented for ProjectionLayer yet (as of sep 22, 2016).
p.conv_lstm_tpl.filter_shape = [1, 3] # height (time), width (frequency)
p.conv_lstm_tpl.inputs_shape = [None, None, None, None]
p.conv_lstm_tpl.cell_shape = [None, None, None, None]
p.conv_lstm_tpl.params_init = py_utils.WeightInit.TruncatedGaussian(0.1)
p.after_conv_lstm_cnn_tpl.filter_shape = [3, 3, None, None]
p.after_conv_lstm_cnn_tpl.params_init = (
py_utils.WeightInit.TruncatedGaussian(0.1))
p.after_conv_lstm_cnn_tpl.filter_stride = [1, 1]
return p
@base_layer.initializer
def __init__(self, params):
super(AsrEncoder, self).__init__(params)
p = self.params
assert p.packed_input is False, ('Packed inputs are not yet supported for '
'AsrEncoder.')
name = p.name
with tf.variable_scope(name):
# First create the conv layers.
assert p.num_cnn_layers == len(p.conv_filter_shapes)
assert p.num_cnn_layers == len(p.conv_filter_strides)
params_conv_layers = []
for i in range(p.num_cnn_layers):
conv_p = p.cnn_tpl.Copy()
conv_p.name = 'conv_L%d' % (i)
conv_p.filter_shape = p.conv_filter_shapes[i]
conv_p.filter_stride = p.conv_filter_strides[i]
conv_p.is_eval = p.is_eval
params_conv_layers.append(conv_p)
self.CreateChildren('conv', params_conv_layers)
conv_output_shape = tf.TensorShape(p.input_shape)
for i in range(p.num_cnn_layers):
conv_output_shape = self.conv[i].OutShape(conv_output_shape)
conv_output_shape = conv_output_shape.as_list()
assert len(conv_output_shape) == 4 # batch, height, width, channel.
params_conv_lstm_rnn = []
params_conv_lstm_cnn = []
for i in range(p.num_conv_lstm_layers):
# NOTE(yonghui): We assume that output from ConvLSTMBlock has the same
# shape as its input.
_, _, width, in_channel = conv_output_shape
f_conv_lstm_p = p.conv_lstm_tpl.Copy()
f_conv_lstm_p.name = 'f_conv_lstm_%d' % (i)
f_conv_lstm_p.inputs_shape = [None, 1, width, in_channel]
f_conv_lstm_p.cell_shape = [None, 1, width, in_channel]
b_conv_lstm_p = f_conv_lstm_p.Copy()
b_conv_lstm_p.name = 'b_conv_lstm_%d' % (i)
conv_lstm_rnn_p = self.CreateConvLstmLayerParams()
conv_lstm_rnn_p.name = 'conv_lstm_rnn'
conv_lstm_rnn_p.fwd = f_conv_lstm_p
conv_lstm_rnn_p.bak = b_conv_lstm_p
params_conv_lstm_rnn.append(conv_lstm_rnn_p)
cnn_p = p.after_conv_lstm_cnn_tpl.Copy()
cnn_p.name = 'conv_lstm_cnn_%d' % (i)
cnn_p.filter_shape[2] = 2 * in_channel
cnn_p.filter_shape[3] = in_channel
params_conv_lstm_cnn.append(cnn_p)
# TODO(yonghui): Refactor ConvLSTMBlock into a layer.
self.CreateChildren('conv_lstm_rnn', params_conv_lstm_rnn)
self.CreateChildren('conv_lstm_cnn', params_conv_lstm_cnn)
(self._first_lstm_input_dim,
self._first_lstm_input_dim_pad) = self.FirstLstmLayerInputDimAndPadding(
conv_output_shape, pad_to_multiple=16)
# Now create all the rnn layers and projection layers.
# TODO(yonghui): take care of device placement.
params_rnn_layers = []
params_proj_layers = []
params_highway_skip_layers = []
for i in range(p.num_lstm_layers):
if i == 0:
input_dim = self._first_lstm_input_dim
else:
input_dim = 2 * p.lstm_cell_size
forward_p = p.lstm_tpl.Copy()
forward_p.name = 'fwd_rnn_L%d' % (i)
forward_p.num_input_nodes = input_dim
forward_p.num_output_nodes = p.lstm_cell_size
backward_p = forward_p.Copy()
backward_p.name = 'bak_rnn_L%d' % (i)
rnn_p = self.CreateBidirectionalRNNParams(forward_p, backward_p)
rnn_p.name = 'brnn_L%d' % (i)
params_rnn_layers.append(rnn_p)
if p.project_lstm_output and (i < p.num_lstm_layers - 1):
proj_p = p.proj_tpl.Copy()
proj_p.input_dim = 2 * p.lstm_cell_size
proj_p.output_dim = 2 * p.lstm_cell_size
proj_p.name = 'proj_L%d' % (i)
proj_p.is_eval = p.is_eval
params_proj_layers.append(proj_p)
# add the skip layers
residual_index = i - p.residual_start + 1
if p.residual_start > 0 and residual_index >= 0 and p.highway_skip:
highway_skip = p.highway_skip_tpl.Copy()
highway_skip.name = 'enc_hwskip_%d' % len(params_highway_skip_layers)
highway_skip.input_dim = 2 * p.lstm_cell_size
params_highway_skip_layers.append(highway_skip)
self.CreateChildren('rnn', params_rnn_layers)
self.CreateChildren('proj', params_proj_layers)
self.CreateChildren('highway_skip', params_highway_skip_layers)
@property
def _use_functional(self):
return True
def CreateBidirectionalRNNParams(self, forward_p, backward_p):
return model_helper.CreateBidirectionalRNNParams(self.params, forward_p,
backward_p)
def CreateConvLstmLayerParams(self):
return rnn_layers.BidirectionalFRNN.Params()
def FirstLstmLayerInputDimAndPadding(self,
conv_output_shape,
pad_to_multiple=16):
lstm_input_shape = conv_output_shape
# Makes sure the lstm input dims is multiple of 16 (alignment
# requirement from FRNN).
first_lstm_input_dim_unpadded = lstm_input_shape[2] * lstm_input_shape[3]
if self._use_functional and (first_lstm_input_dim_unpadded % pad_to_multiple
!= 0):
first_lstm_input_dim = int(
(first_lstm_input_dim_unpadded + pad_to_multiple - 1) /
pad_to_multiple) * pad_to_multiple
else:
first_lstm_input_dim = first_lstm_input_dim_unpadded
first_lstm_input_dim_padding = (
first_lstm_input_dim - first_lstm_input_dim_unpadded)
return first_lstm_input_dim, first_lstm_input_dim_padding
@property
def supports_streaming(self):
return False
def zero_state(self, batch_size):
return py_utils.NestedMap()
def FProp(self, theta, batch, state0=None):
"""Encodes source as represented by 'inputs' and 'paddings'.
Args:
theta: A NestedMap object containing weights' values of this
layer and its children layers.
batch: A NestedMap with fields:
src_inputs - The inputs tensor. It is expected to be of shape [batch,
time, feature_dim, channels].
paddings - The paddings tensor. It is expected to be of shape [batch,
time].
state0: Recurrent input state. Not supported/ignored by this encoder.
Returns:
(outputs, out_paddings, state1) tuple. Outputs is of the shape
[time, batch, depth], and out_paddings is of the shape [time, batch]
"""
p = self.params
inputs, paddings = batch.src_inputs, batch.paddings
with tf.name_scope(p.name):
# Add a few extra padded timesteps at the end. This is for ensuring the
# correctness of the conv-layers at the edges.
if p.pad_steps > 0:
# inplace_update() is not supported by TPU for now. Since we have done
# padding on the input_generator, we may avoid this additional padding.
assert not py_utils.use_tpu()
inputs_pad = tf.zeros(
inplace_ops.inplace_update(tf.shape(inputs), 1, p.pad_steps),
inputs.dtype)
paddings_pad = tf.ones(
inplace_ops.inplace_update(tf.shape(paddings), 1, p.pad_steps),
paddings.dtype)
inputs = tf.concat([inputs, inputs_pad], 1, name='inputs')
paddings = tf.concat([paddings, paddings_pad], 1)
def ReshapeForPlot(tensor, padding, name):
"""Transposes and flattens channels to [batch, dim, seq_len] shape."""
# Flatten any dimensions beyond the third into the third.
batch_size = tf.shape(tensor)[0]
max_len = tf.shape(tensor)[1]
plot_tensor = tf.reshape(tensor, [batch_size, max_len, -1])
plot_tensor = tf.transpose(plot_tensor, [0, 2, 1], name=name)
return (plot_tensor, summary_utils.SequenceLength(padding))
plots = [
ReshapeForPlot(
tf.transpose(inputs, [0, 1, 3, 2]), paddings, 'inputs')
]
conv_out = inputs
out_padding = paddings
for i, conv_layer in enumerate(self.conv):
conv_out, out_padding = conv_layer.FProp(theta.conv[i], conv_out,
out_padding)
plots.append(
ReshapeForPlot(
tf.transpose(conv_out, [0, 1, 3, 2]), out_padding,
'conv_%d_out' % i))
def TransposeFirstTwoDims(t):
first_dim = tf.shape(t)[0]
second_dim = tf.shape(t)[1]
t_new = tf.transpose(
tf.reshape(t, [first_dim, second_dim, -1]), [1, 0, 2])
t_shape_new = tf.concat([[second_dim], [first_dim], tf.shape(t)[2:]], 0)
return tf.reshape(t_new, t_shape_new)
# Now the conv-lstm part.
conv_lstm_out = conv_out
conv_lstm_out_padding = out_padding
for i, (rnn, cnn) in enumerate(
zip(self.conv_lstm_rnn, self.conv_lstm_cnn)):
conv_lstm_in = conv_lstm_out
# Move time dimension to be the first.
conv_lstm_in = TransposeFirstTwoDims(conv_lstm_in)
conv_lstm_in = tf.expand_dims(conv_lstm_in, 2)
conv_lstm_in_padding = tf.expand_dims(
tf.transpose(conv_lstm_out_padding), 2)
lstm_out = rnn.FProp(theta.conv_lstm_rnn[i], conv_lstm_in,
conv_lstm_in_padding)
# Move time dimension to be the second.
cnn_in = TransposeFirstTwoDims(lstm_out)
cnn_in = tf.squeeze(cnn_in, 2)
cnn_in_padding = conv_lstm_out_padding
cnn_out, cnn_out_padding = cnn.FProp(theta.conv_lstm_cnn[i], cnn_in,
cnn_in_padding)
conv_lstm_out, conv_lstm_out_padding = cnn_out, cnn_out_padding
plots.append(
ReshapeForPlot(conv_lstm_out, conv_lstm_out_padding,
'conv_lstm_%d_out' % i))
# Need to do a reshape before starting the rnn layers.
conv_lstm_out = py_utils.HasRank(conv_lstm_out, 4)
conv_lstm_out_shape = tf.shape(conv_lstm_out)
new_shape = tf.concat([conv_lstm_out_shape[:2], [-1]], 0)
conv_lstm_out = tf.reshape(conv_lstm_out, new_shape)
if self._first_lstm_input_dim_pad:
conv_lstm_out = tf.pad(
conv_lstm_out,
[[0, 0], [0, 0], [0, self._first_lstm_input_dim_pad]])
conv_lstm_out = py_utils.HasShape(conv_lstm_out,
[-1, -1, self._first_lstm_input_dim])
# Transpose to move the time dimension to be the first.
rnn_in = tf.transpose(conv_lstm_out, [1, 0, 2])
rnn_padding = tf.expand_dims(tf.transpose(conv_lstm_out_padding), 2)
# rnn_in is of shape [time, batch, depth]
# rnn_padding is of shape [time, batch, 1]
# Now the rnn layers.
num_skips = 0
for i in range(p.num_lstm_layers):
rnn_out = self.rnn[i].FProp(theta.rnn[i], rnn_in, rnn_padding)
residual_index = i - p.residual_start + 1
if p.residual_start > 0 and residual_index >= 0:
if residual_index % p.residual_stride == 0:
residual_in = rnn_in
if residual_index % p.residual_stride == p.residual_stride - 1:
# Highway skip connection.
if p.highway_skip:
rnn_out = self.highway_skip[num_skips].FProp(
theta.highway_skip[num_skips], residual_in, rnn_out)
num_skips += 1
else:
# Residual skip connection.
rnn_out += py_utils.HasShape(residual_in, tf.shape(rnn_out))
if p.project_lstm_output and (i < p.num_lstm_layers - 1):
# Projection layers.
rnn_out = self.proj[i].FProp(theta.proj[i], rnn_out, rnn_padding)
if i == p.num_lstm_layers - 1:
rnn_out *= (1.0 - rnn_padding)
plots.append(
ReshapeForPlot(
tf.transpose(rnn_out, [1, 0, 2]),
tf.transpose(rnn_padding, [1, 0, 2]), 'rnn_%d_out' % i))
rnn_in = rnn_out
final_out = rnn_in
if self.cluster.add_summary:
fig = plot.MatplotlibFigureSummary(
'encoder_example', figsize=(8, len(plots) * 3.5))
# Order layers from bottom to top.
plots.reverse()
for tensor, seq_len in plots:
fig.AddSubplot(
[tensor, seq_len],
summary_utils.TrimPaddingAndPlotSequence,
title=tensor.name,
xlabel='Time')
fig.Finalize()
rnn_padding = tf.squeeze(rnn_padding, [2])
return final_out, rnn_padding, py_utils.NestedMap()
|
python
|
/* eslint-disable */
// source: base.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
goog.exportSymbol('proto.uiprpc.base.Account', null, global);
goog.exportSymbol('proto.uiprpc.base.Attestation', null, global);
goog.exportSymbol('proto.uiprpc.base.MerkleProof', null, global);
goog.exportSymbol('proto.uiprpc.base.OpIntents', null, global);
goog.exportSymbol('proto.uiprpc.base.ShortenMerkleProof', null, global);
goog.exportSymbol('proto.uiprpc.base.Signature', null, global);
goog.exportSymbol('proto.uiprpc.base.Transaction', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.uiprpc.base.OpIntents = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.uiprpc.base.OpIntents.repeatedFields_, null);
};
goog.inherits(proto.uiprpc.base.OpIntents, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.uiprpc.base.OpIntents.displayName = 'proto.uiprpc.base.OpIntents';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.uiprpc.base.Transaction = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.uiprpc.base.Transaction, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.uiprpc.base.Transaction.displayName = 'proto.uiprpc.base.Transaction';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.uiprpc.base.Signature = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.uiprpc.base.Signature, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.uiprpc.base.Signature.displayName = 'proto.uiprpc.base.Signature';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.uiprpc.base.Account = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.uiprpc.base.Account, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.uiprpc.base.Account.displayName = 'proto.uiprpc.base.Account';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.uiprpc.base.Attestation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.uiprpc.base.Attestation.repeatedFields_, null);
};
goog.inherits(proto.uiprpc.base.Attestation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.uiprpc.base.Attestation.displayName = 'proto.uiprpc.base.Attestation';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.uiprpc.base.MerkleProof = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.uiprpc.base.MerkleProof, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.uiprpc.base.MerkleProof.displayName = 'proto.uiprpc.base.MerkleProof';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.uiprpc.base.ShortenMerkleProof = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.uiprpc.base.ShortenMerkleProof, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.uiprpc.base.ShortenMerkleProof.displayName = 'proto.uiprpc.base.ShortenMerkleProof';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.uiprpc.base.OpIntents.repeatedFields_ = [1,2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.uiprpc.base.OpIntents.prototype.toObject = function(opt_includeInstance) {
return proto.uiprpc.base.OpIntents.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.uiprpc.base.OpIntents} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.OpIntents.toObject = function(includeInstance, msg) {
var f, obj = {
contentsList: msg.getContentsList_asB64(),
dependenciesList: msg.getDependenciesList_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.uiprpc.base.OpIntents}
*/
proto.uiprpc.base.OpIntents.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.uiprpc.base.OpIntents;
return proto.uiprpc.base.OpIntents.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.uiprpc.base.OpIntents} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.uiprpc.base.OpIntents}
*/
proto.uiprpc.base.OpIntents.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addContents(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addDependencies(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.uiprpc.base.OpIntents.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.uiprpc.base.OpIntents.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.uiprpc.base.OpIntents} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.OpIntents.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getContentsList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
1,
f
);
}
f = message.getDependenciesList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
2,
f
);
}
};
/**
* repeated bytes contents = 1;
* @return {!Array<string>}
*/
proto.uiprpc.base.OpIntents.prototype.getContentsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* repeated bytes contents = 1;
* This is a type-conversion wrapper around `getContentsList()`
* @return {!Array<string>}
*/
proto.uiprpc.base.OpIntents.prototype.getContentsList_asB64 = function() {
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
this.getContentsList()));
};
/**
* repeated bytes contents = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getContentsList()`
* @return {!Array<!Uint8Array>}
*/
proto.uiprpc.base.OpIntents.prototype.getContentsList_asU8 = function() {
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getContentsList()));
};
/** @param {!(Array<!Uint8Array>|Array<string>)} value */
proto.uiprpc.base.OpIntents.prototype.setContentsList = function(value) {
jspb.Message.setField(this, 1, value || []);
};
/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
*/
proto.uiprpc.base.OpIntents.prototype.addContents = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.uiprpc.base.OpIntents.prototype.clearContentsList = function() {
this.setContentsList([]);
};
/**
* repeated bytes dependencies = 2;
* @return {!Array<string>}
*/
proto.uiprpc.base.OpIntents.prototype.getDependenciesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};
/**
* repeated bytes dependencies = 2;
* This is a type-conversion wrapper around `getDependenciesList()`
* @return {!Array<string>}
*/
proto.uiprpc.base.OpIntents.prototype.getDependenciesList_asB64 = function() {
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
this.getDependenciesList()));
};
/**
* repeated bytes dependencies = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getDependenciesList()`
* @return {!Array<!Uint8Array>}
*/
proto.uiprpc.base.OpIntents.prototype.getDependenciesList_asU8 = function() {
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getDependenciesList()));
};
/** @param {!(Array<!Uint8Array>|Array<string>)} value */
proto.uiprpc.base.OpIntents.prototype.setDependenciesList = function(value) {
jspb.Message.setField(this, 2, value || []);
};
/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
*/
proto.uiprpc.base.OpIntents.prototype.addDependencies = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.uiprpc.base.OpIntents.prototype.clearDependenciesList = function() {
this.setDependenciesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.uiprpc.base.Transaction.prototype.toObject = function(opt_includeInstance) {
return proto.uiprpc.base.Transaction.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.uiprpc.base.Transaction} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Transaction.toObject = function(includeInstance, msg) {
var f, obj = {
chainId: jspb.Message.getFieldWithDefault(msg, 1, 0),
src: msg.getSrc_asB64(),
dst: msg.getDst_asB64(),
domain: msg.getDomain_asB64(),
meta: msg.getMeta_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.uiprpc.base.Transaction}
*/
proto.uiprpc.base.Transaction.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.uiprpc.base.Transaction;
return proto.uiprpc.base.Transaction.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.uiprpc.base.Transaction} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.uiprpc.base.Transaction}
*/
proto.uiprpc.base.Transaction.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setChainId(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setSrc(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setDst(value);
break;
case 4:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setDomain(value);
break;
case 5:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setMeta(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.uiprpc.base.Transaction.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.uiprpc.base.Transaction.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.uiprpc.base.Transaction} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Transaction.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChainId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getSrc_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getDst_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
f = message.getDomain_asU8();
if (f.length > 0) {
writer.writeBytes(
4,
f
);
}
f = message.getMeta_asU8();
if (f.length > 0) {
writer.writeBytes(
5,
f
);
}
};
/**
* optional uint64 chain_id = 1;
* @return {number}
*/
proto.uiprpc.base.Transaction.prototype.getChainId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.uiprpc.base.Transaction.prototype.setChainId = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes src = 2;
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getSrc = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes src = 2;
* This is a type-conversion wrapper around `getSrc()`
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getSrc_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getSrc()));
};
/**
* optional bytes src = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getSrc()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.Transaction.prototype.getSrc_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getSrc()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.Transaction.prototype.setSrc = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional bytes dst = 3;
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getDst = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes dst = 3;
* This is a type-conversion wrapper around `getDst()`
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getDst_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getDst()));
};
/**
* optional bytes dst = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getDst()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.Transaction.prototype.getDst_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getDst()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.Transaction.prototype.setDst = function(value) {
jspb.Message.setProto3BytesField(this, 3, value);
};
/**
* optional bytes domain = 4;
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getDomain = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* optional bytes domain = 4;
* This is a type-conversion wrapper around `getDomain()`
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getDomain_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getDomain()));
};
/**
* optional bytes domain = 4;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getDomain()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.Transaction.prototype.getDomain_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getDomain()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.Transaction.prototype.setDomain = function(value) {
jspb.Message.setProto3BytesField(this, 4, value);
};
/**
* optional bytes meta = 5;
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getMeta = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* optional bytes meta = 5;
* This is a type-conversion wrapper around `getMeta()`
* @return {string}
*/
proto.uiprpc.base.Transaction.prototype.getMeta_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getMeta()));
};
/**
* optional bytes meta = 5;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getMeta()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.Transaction.prototype.getMeta_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getMeta()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.Transaction.prototype.setMeta = function(value) {
jspb.Message.setProto3BytesField(this, 5, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.uiprpc.base.Signature.prototype.toObject = function(opt_includeInstance) {
return proto.uiprpc.base.Signature.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.uiprpc.base.Signature} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Signature.toObject = function(includeInstance, msg) {
var f, obj = {
signatureType: jspb.Message.getFieldWithDefault(msg, 1, 0),
content: msg.getContent_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.uiprpc.base.Signature}
*/
proto.uiprpc.base.Signature.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.uiprpc.base.Signature;
return proto.uiprpc.base.Signature.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.uiprpc.base.Signature} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.uiprpc.base.Signature}
*/
proto.uiprpc.base.Signature.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setSignatureType(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setContent(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.uiprpc.base.Signature.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.uiprpc.base.Signature.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.uiprpc.base.Signature} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Signature.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSignatureType();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getContent_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional uint32 signature_type = 1;
* @return {number}
*/
proto.uiprpc.base.Signature.prototype.getSignatureType = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.uiprpc.base.Signature.prototype.setSignatureType = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes content = 2;
* @return {string}
*/
proto.uiprpc.base.Signature.prototype.getContent = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes content = 2;
* This is a type-conversion wrapper around `getContent()`
* @return {string}
*/
proto.uiprpc.base.Signature.prototype.getContent_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getContent()));
};
/**
* optional bytes content = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getContent()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.Signature.prototype.getContent_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getContent()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.Signature.prototype.setContent = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.uiprpc.base.Account.prototype.toObject = function(opt_includeInstance) {
return proto.uiprpc.base.Account.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.uiprpc.base.Account} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Account.toObject = function(includeInstance, msg) {
var f, obj = {
chainId: jspb.Message.getFieldWithDefault(msg, 1, 0),
address: msg.getAddress_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.uiprpc.base.Account}
*/
proto.uiprpc.base.Account.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.uiprpc.base.Account;
return proto.uiprpc.base.Account.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.uiprpc.base.Account} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.uiprpc.base.Account}
*/
proto.uiprpc.base.Account.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setChainId(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.uiprpc.base.Account.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.uiprpc.base.Account.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.uiprpc.base.Account} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Account.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChainId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional uint64 chain_id = 1;
* @return {number}
*/
proto.uiprpc.base.Account.prototype.getChainId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.uiprpc.base.Account.prototype.setChainId = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes address = 2;
* @return {string}
*/
proto.uiprpc.base.Account.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes address = 2;
* This is a type-conversion wrapper around `getAddress()`
* @return {string}
*/
proto.uiprpc.base.Account.prototype.getAddress_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getAddress()));
};
/**
* optional bytes address = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getAddress()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.Account.prototype.getAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getAddress()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.Account.prototype.setAddress = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.uiprpc.base.Attestation.repeatedFields_ = [4];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.uiprpc.base.Attestation.prototype.toObject = function(opt_includeInstance) {
return proto.uiprpc.base.Attestation.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.uiprpc.base.Attestation} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Attestation.toObject = function(includeInstance, msg) {
var f, obj = {
tid: jspb.Message.getFieldWithDefault(msg, 1, 0),
aid: jspb.Message.getFieldWithDefault(msg, 2, 0),
content: msg.getContent_asB64(),
signaturesList: jspb.Message.toObjectList(msg.getSignaturesList(),
proto.uiprpc.base.Signature.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.uiprpc.base.Attestation}
*/
proto.uiprpc.base.Attestation.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.uiprpc.base.Attestation;
return proto.uiprpc.base.Attestation.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.uiprpc.base.Attestation} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.uiprpc.base.Attestation}
*/
proto.uiprpc.base.Attestation.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setTid(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setAid(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setContent(value);
break;
case 4:
var value = new proto.uiprpc.base.Signature;
reader.readMessage(value,proto.uiprpc.base.Signature.deserializeBinaryFromReader);
msg.addSignatures(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.uiprpc.base.Attestation.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.uiprpc.base.Attestation.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.uiprpc.base.Attestation} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.Attestation.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTid();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getAid();
if (f !== 0) {
writer.writeUint64(
2,
f
);
}
f = message.getContent_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
f = message.getSignaturesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
proto.uiprpc.base.Signature.serializeBinaryToWriter
);
}
};
/**
* optional uint64 tid = 1;
* @return {number}
*/
proto.uiprpc.base.Attestation.prototype.getTid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.uiprpc.base.Attestation.prototype.setTid = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional uint64 aid = 2;
* @return {number}
*/
proto.uiprpc.base.Attestation.prototype.getAid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.uiprpc.base.Attestation.prototype.setAid = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional bytes content = 3;
* @return {string}
*/
proto.uiprpc.base.Attestation.prototype.getContent = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes content = 3;
* This is a type-conversion wrapper around `getContent()`
* @return {string}
*/
proto.uiprpc.base.Attestation.prototype.getContent_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getContent()));
};
/**
* optional bytes content = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getContent()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.Attestation.prototype.getContent_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getContent()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.Attestation.prototype.setContent = function(value) {
jspb.Message.setProto3BytesField(this, 3, value);
};
/**
* repeated Signature signatures = 4;
* @return {!Array<!proto.uiprpc.base.Signature>}
*/
proto.uiprpc.base.Attestation.prototype.getSignaturesList = function() {
return /** @type{!Array<!proto.uiprpc.base.Signature>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.uiprpc.base.Signature, 4));
};
/** @param {!Array<!proto.uiprpc.base.Signature>} value */
proto.uiprpc.base.Attestation.prototype.setSignaturesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.uiprpc.base.Signature=} opt_value
* @param {number=} opt_index
* @return {!proto.uiprpc.base.Signature}
*/
proto.uiprpc.base.Attestation.prototype.addSignatures = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.uiprpc.base.Signature, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.uiprpc.base.Attestation.prototype.clearSignaturesList = function() {
this.setSignaturesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.uiprpc.base.MerkleProof.prototype.toObject = function(opt_includeInstance) {
return proto.uiprpc.base.MerkleProof.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.uiprpc.base.MerkleProof} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.MerkleProof.toObject = function(includeInstance, msg) {
var f, obj = {
merkleproofType: jspb.Message.getFieldWithDefault(msg, 1, 0),
proof: msg.getProof_asB64(),
key: msg.getKey_asB64(),
value: msg.getValue_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.uiprpc.base.MerkleProof}
*/
proto.uiprpc.base.MerkleProof.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.uiprpc.base.MerkleProof;
return proto.uiprpc.base.MerkleProof.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.uiprpc.base.MerkleProof} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.uiprpc.base.MerkleProof}
*/
proto.uiprpc.base.MerkleProof.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setMerkleproofType(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setProof(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setKey(value);
break;
case 4:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.uiprpc.base.MerkleProof.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.uiprpc.base.MerkleProof.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.uiprpc.base.MerkleProof} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.MerkleProof.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMerkleproofType();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getProof_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getKey_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
f = message.getValue_asU8();
if (f.length > 0) {
writer.writeBytes(
4,
f
);
}
};
/**
* optional uint64 merkleproof_type = 1;
* @return {number}
*/
proto.uiprpc.base.MerkleProof.prototype.getMerkleproofType = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.uiprpc.base.MerkleProof.prototype.setMerkleproofType = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes proof = 2;
* @return {string}
*/
proto.uiprpc.base.MerkleProof.prototype.getProof = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes proof = 2;
* This is a type-conversion wrapper around `getProof()`
* @return {string}
*/
proto.uiprpc.base.MerkleProof.prototype.getProof_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getProof()));
};
/**
* optional bytes proof = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getProof()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.MerkleProof.prototype.getProof_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getProof()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.MerkleProof.prototype.setProof = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional bytes key = 3;
* @return {string}
*/
proto.uiprpc.base.MerkleProof.prototype.getKey = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes key = 3;
* This is a type-conversion wrapper around `getKey()`
* @return {string}
*/
proto.uiprpc.base.MerkleProof.prototype.getKey_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getKey()));
};
/**
* optional bytes key = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getKey()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.MerkleProof.prototype.getKey_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getKey()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.MerkleProof.prototype.setKey = function(value) {
jspb.Message.setProto3BytesField(this, 3, value);
};
/**
* optional bytes value = 4;
* @return {string}
*/
proto.uiprpc.base.MerkleProof.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* optional bytes value = 4;
* This is a type-conversion wrapper around `getValue()`
* @return {string}
*/
proto.uiprpc.base.MerkleProof.prototype.getValue_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getValue()));
};
/**
* optional bytes value = 4;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getValue()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.MerkleProof.prototype.getValue_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getValue()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.MerkleProof.prototype.setValue = function(value) {
jspb.Message.setProto3BytesField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.toObject = function(opt_includeInstance) {
return proto.uiprpc.base.ShortenMerkleProof.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.uiprpc.base.ShortenMerkleProof} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.ShortenMerkleProof.toObject = function(includeInstance, msg) {
var f, obj = {
merkleproofType: jspb.Message.getFieldWithDefault(msg, 1, 0),
roothash: msg.getRoothash_asB64(),
key: msg.getKey_asB64(),
value: msg.getValue_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.uiprpc.base.ShortenMerkleProof}
*/
proto.uiprpc.base.ShortenMerkleProof.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.uiprpc.base.ShortenMerkleProof;
return proto.uiprpc.base.ShortenMerkleProof.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.uiprpc.base.ShortenMerkleProof} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.uiprpc.base.ShortenMerkleProof}
*/
proto.uiprpc.base.ShortenMerkleProof.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setMerkleproofType(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setRoothash(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setKey(value);
break;
case 4:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.uiprpc.base.ShortenMerkleProof.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.uiprpc.base.ShortenMerkleProof} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.uiprpc.base.ShortenMerkleProof.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMerkleproofType();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getRoothash_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getKey_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
f = message.getValue_asU8();
if (f.length > 0) {
writer.writeBytes(
4,
f
);
}
};
/**
* optional uint64 merkleproof_type = 1;
* @return {number}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getMerkleproofType = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.uiprpc.base.ShortenMerkleProof.prototype.setMerkleproofType = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes roothash = 2;
* @return {string}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getRoothash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes roothash = 2;
* This is a type-conversion wrapper around `getRoothash()`
* @return {string}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getRoothash_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getRoothash()));
};
/**
* optional bytes roothash = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getRoothash()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getRoothash_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getRoothash()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.ShortenMerkleProof.prototype.setRoothash = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional bytes key = 3;
* @return {string}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getKey = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes key = 3;
* This is a type-conversion wrapper around `getKey()`
* @return {string}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getKey_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getKey()));
};
/**
* optional bytes key = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getKey()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getKey_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getKey()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.ShortenMerkleProof.prototype.setKey = function(value) {
jspb.Message.setProto3BytesField(this, 3, value);
};
/**
* optional bytes value = 4;
* @return {string}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* optional bytes value = 4;
* This is a type-conversion wrapper around `getValue()`
* @return {string}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getValue_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getValue()));
};
/**
* optional bytes value = 4;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getValue()`
* @return {!Uint8Array}
*/
proto.uiprpc.base.ShortenMerkleProof.prototype.getValue_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getValue()));
};
/** @param {!(string|Uint8Array)} value */
proto.uiprpc.base.ShortenMerkleProof.prototype.setValue = function(value) {
jspb.Message.setProto3BytesField(this, 4, value);
};
goog.object.extend(exports, proto.uiprpc.base);
|
javascript
|
18 The word which came to Jeremiah from the Lord, saying: 2 “Arise and go down to the potter’s house, and there I will cause you to hear My words.” 3 Then I went down to the potter’s house, and there he was making something on the wheel. 4 Yet the vessel that he made of clay was spoiled in the hand of the potter; so he made it again into another vessel, as seemed good to the potter to make it.
5 Then the word of the Lord came to me, saying: 6 O house of Israel, can I not do with you as this potter? says the Lord. As the clay is in the potter’s hand, so are you in My hand, O house of Israel. 7 At one moment I may speak concerning a nation and concerning a kingdom to pluck up, and to pull down, and to destroy it. 8 If that nation against which I have spoken turns from its evil, I will relent of the disaster that I thought to do to it. 9 Or at another moment I may speak concerning a nation and concerning a kingdom to build and to plant it. 10 If it does evil in My sight by not obeying My voice, then I will relent of the good with which I said I would bless it.
13 Therefore thus says the Lord:
Ask now among the nations,
who has heard such things?
has done a very horrible thing.
14 Shall a man leave the snow of Lebanon,
which comes from the rock of the field?
be forsaken?
15 Because My people have forgotten Me,
from the ancient paths,
to walk in bypaths,
not on a highway,
16 to make their land desolate,
and a perpetual hissing;
and shake his head.
as with an east wind;
in the day of their calamity.
19 Give heed to me, O Lord,
and listen to the voice of those who contend with me.
20 Shall evil be recompensed for good?
For they have dug a pit for my soul.
to speak good for them,
and to turn away Your wrath from them.
and pour out their blood by the power of the sword;
and let their men be put to death;
let their young men be slain by the sword in battle.
22 Let a cry be heard from their houses,
when You bring a troop suddenly upon them;
and hidden snares for my feet.
all their counsel against me to slay me.
nor blot out their sin from Your sight;
but let them be overthrown before You;
deal thus with them in the time of Your anger.
The Holy Bible, Modern English Version. Copyright © 2014 by Military Bible Association. Published and distributed by Charisma House.
|
english
|
<gh_stars>1-10
// test_6414.cpp - a test driver for UNtoU3 class.
//
// License: BSD 2-Clause (https://opensource.org/licenses/BSD-2-Clause)
//
// Copyright (c) 2019, <NAME>
// All rights reserved.
//
// Program implements the U(N) to U(3) reduction where n=5 (N=21) for the input irrep
// [f] = [2,2,2,2,2,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
// which is represented by a number of twos n2=6, number of ones n1=1, and number of zeros n0=14.
// Its dimension is dim[f] = 2168999910.
//
// After reduction, the program iterates over generated U(3) weights and calculates the sum of
// dimensions of resulting U(3) irrpes multiplied by their level dimensionalities. This sum
// should be equal to dim[f].
#include <iostream>
// #define UNTOU3_DISABLE_TCO
// #define UNTOU3_DISABLE_UNORDERED
// #define UNTOU3_DISABLE_PRECALC
#define UNTOU3_ENABLE_OPENMP
#include "UNtoU3.h"
unsigned long dim(const UNtoU3<>::U3Weight & irrep) {
return (irrep[0] - irrep[1] + 1) * (irrep[0] - irrep[2] + 2) * (irrep[1] - irrep[2] + 1) / 2;
}
int main() {
UNtoU3<> gen;
// n=5 - a given HO level, N = (n+1)*(n+2)/2 = 21
gen.generateXYZ(5);
// generation of U(3) irreps in the input U(21) irrep [f]
gen.generateU3Weights(6, 1, 14);
// calculated sum
unsigned long sum = 0;
// iteration over generated U(3) weights
for (const auto & pair : gen.multMap()) {
// get U(3) weight lables
const auto & weight = pair.first;
// get its level dimensionality if its nonzero and the U(3) weight is a U(3) irrep
if (auto D_l = gen.getLevelDimensionality(weight))
// add contribution of this U(3) irrep to the sum
sum += D_l * dim(weight);
}
std::cout << sum << std::endl;
}
|
cpp
|
Serena Williams battled through a second set wobble to battle past Rebecca Peterson and claim her first win at the Miami Open for four years.
The 23-time Grand Slam champion won the tournament in 2015, but had not won a match since.
She was also struggling for court time after being forced to retire from Indian Wells with a viral illness.
None of that was evident as she took the first set, but Swede Peterson roared back to dominate the second set, forcing Williams to dig deep to win it in three.
“I’m not really thinking about my match too much today,” Williams told the WTA after her 6-3, 1-6, 6-1 win.
“I wasn’t really happy with my performance. I had to take a lot of time off the last week.
“It’s definitely not easy at all, but I’m through it. That’s that. I just got to get my game back to where I know it can be.
“I could not lose this match. I knew that I could play a lot, lot, lot better. I just had to be better.
“What was a little frustrating today is I know I can play so much better, but I just wasn’t able to produce it today.
More from Tennis365:
Daniil Medvedev has proven himself as one of the best.
Iga Swiatek can ensure that she will extend her lead at the top of the WTA Rankings.
Raducanu will play another warm-up match before the Australian Open.
The reigning Australian Open champion won’t halt her habit unless she is forced to by the WTA Tour and wider tennis chiefs.
Coco Gauff said she will never be as good as Carlos Alcaraz at one key shot.
Nadal is keeping his fingers crossed he will be able to play in the Australian Open.
Andy Murray won’t be having any grand send-off.
Rafael Nadal has dropped some hints on the direction his career could take after retirement from playing.
The USTA is set to review its safeguarding rules and processes.
|
english
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.