text
stringlengths
1
1.04M
language
stringclasses
25 values
Toyota's luxury sub-brand has taken the wraps off a heavily refreshed NX crossover at the 2017 Auto Shanghai that ups the ante in terms of luxury, high-tech driving aids and visual aggression. The current generation NX was already a visually imposing car thanks to its huge front grille, high waistline and pronounced rear haunches. Yet for its first refresh, the company has decided to take each of these key visual cues further still -- a brave decision considering how popular the compact luxury crossover has been around the world since its 2014 launch. "Starting at the spindle grille, the way the front edges connect to the front fenders results in a much bolder expression than before, clearly highlighting the NX's style design architecture," said the NX's Exterior Designer, Shin Kamiura. Some of the changes, such as widening the rear bumper and adding longer exhausts that are now integrated into the rear bumper, are aimed at making the car seem sportier and to highlight the fact that one of the biggest changes to the car will be the way it handles. Lexus has retuned the suspension, added new shock absorbers and given the NX the same Adaptive Variable Suspension system currently only employed on its flagship sports coupé, the LC 500. The old NX offered 30 instantaneous compression and damping adjustments to cope with rougher terrain, unexpected potholes or confident cornering. Now it has 650 adjustments. Inside, Lexus is attempting to treat materials such as leather in a manner akin to the most exclusive carmakers. So, much of the stitching is done via hand-operated machines to ensure straight seam lines, while elements such as gear levers, door handles and instrument switches get a satin metallic finish. "An acute attention to detail, such as the way the stitching of materials creates a subtle pattern, can be felt spiritually to make a difference to the customer," said the car's chief engineer, Takeaki Kato. As for high-tech toys, the NX will come as standard with the Lexus Safety System + suite of active driver aids including radar cruise control, land departure alert and automatic high beam headlights. "We made bold refinements to the design, elevated its performance and added new features to enhance its comfort and convenience. The new NX still possesses the same elements that have made it popular in the past -- a sharp design, everyday convenience and driving pleasure that will satisfy all enthusiasts but the vehicle as a whole has evolved dramatically," said Kato.
english
<reponame>SecureThemAll/SecureThemAll { "program" : "repair", "path": "genprog-code/src/", "arguments": { "--search" : "ww", "--crossover" : "subset", "--describe-machine" : "", "--seed": "0", "--rep-cache": "default.cache", "--ignore-dead-code": "", "--no-rep-cache": "", "--no-test-cache": "", "--keep-source": "" }, "ssh_path": "/opt/genprog/bin", "sanity_check": true, "fault_localization": true }
json
The dates of the AFC Cup quarterfinals (September 17/20) clash with the 2013 South Asian Football Federation Championships in Nepal, which would be played from September 20 to October 2, and this could lead to a club vs. country issue in India and the Maldives. Then two south Asian sides – East Bengal Club (India) and New Radiant SC (Maldives)- are set to play in the AFC Cup quarterfinals and a number of their players will be part of their respective national team squads. Earlier this year in March, the 2014 AFC Challenge Cup qualifiers in Myanmar involving, amongst others, the hosts Myanmar and India had clashed with the AFC Cup group stage opening round, which led to the Indian and Myanmar clubs playing their opening round matches a week earlier. Now the question has to be asked, why a regional championship like the SAFF Cup is planned on dates which could potentially clash with continental club engagements? It will be interesting to see how the clash of dates will be sorted, as the clubs are likely to ask for a postponement of the SAFF Cup, which would then mean problems for national club engagements; and if the clubs move into the semifinals or even the finals, then a further clash of dates is possible.
english
Bengaluru: The State Government has decided to celebrate Dasara festival in October on a grand scale in such a way that the festivities will be an opportunity to showcase tourism and attract maximum number of visitors to Mysuru, Kodagu, Mandya, Chamarajanagar and Chikkamagalur. Chief Minister H. D. Kumaraswamy (HDK) has promised to release the funds needed….
english
{ "css/all.css": "css/all-a5647a0497.css", "css/lightbox.css": "css/lightbox-e43c36d6ac.css", "js/address.js": "js/address-a912cbbe39.js", "js/all.js": "js/all-43e845392e.js", "js/cart.js": "js/cart-3fa489cdcd.js", "js/lightbox.js": "js/lightbox-66443e98d9.js" }
json
116/7 (17. 0 ov) 119/4 (16. 1 ov) 172/7 (20. 0 ov) 157 (20. 0 ov) In the recently held, Ranji Trophy Coaches and Captains Conclave organised by the BCCI, Head of Technical Committee, Anil Kumble said that the teams were happy with the new three-tier format, which replaced the Elite and Plate League system. India's man of the moment Ravichandran Ashwin feels that Michael Clarke's sure shot dismissal could have reduced Australia's score by at least 70 runs but they need to pack off the visitors within another 30 runs at the start of the second day. After lunch, Kumble had bowled 20. 4 overs at a trot, bagging all 10 for 47. On February 6, 1999, a certain Indian opener forged together an innings that would have played a vital role in his team’s fortunes in the game. However, his efforts were overshadowed by a world record feat by his more established teammate a day later. Jaideep Vaidya has more on that match at the Kotla. Mumbai Indians, on Sunday, expressed happiness at the buying of Australian all-rounder Glenn Maxwell for a whopping USD 1 million during the IPL players' auction at Chennai and said he was a "good catch" and among those pre-planned to bid for by the franchise. Former India captain Anil Kumble was on Monday appointed chief mentor of the Mumbai Indians IPL team ahead of the start of the sixth season. Former India captain and Karnataka State Cricket Association (KSCA) president Anil Kumble on Tuesday raised questions about the Indian Cricket Board's age-verification process for various junior level tournaments. Former India skipper Anil Kumble on Monday said that he is hopeful that India can level the four-match Test series at Nagpur. Former India skipper Anil Kumble heaped praise on Ricky Ponting, comparing him with India’s "wall" Rahul Dravid.
english
<gh_stars>1-10 { "type": "minecraft:crafting_shapeless", "ingredients": [ { "item": "extendedslabs:grass_path_slab" } ], "result": { "item": "extendedslabs:vertical_grass_path_slab" } }
json
/* * Author: <NAME> * Email: <EMAIL> * File Name: Sprite.cpp * Description: Defines how Sprite works * Created: 13 Feb 2019 * Last Modified: 10 Sep 2019 */ // Includes #include "Sprite.h" // Sprite #include "Graphics.h" // Graphics #include "TextureAtlas.h" // Texture Atlas #include "Texture.h" // Texture #include "RenderJob.h" // Render Job #include "GameObject.h" // Game Object #include "Debug.h" // Debug #include <iostream> // IO STREAM #include "ResourceManager.h" // Resource Manager // Public Member Functions Junior::Sprite::Sprite() : Component(), path_(), texture_(nullptr), atlasNode_(nullptr), atlas_(nullptr) { } Junior::Sprite::Sprite(const std::string& path) : Component(), path_(path), texture_(nullptr), atlasNode_(nullptr), atlas_(nullptr) { texture_ = ResourceManager::GetInstance().GetResource<Texture>("path"); } void Junior::Sprite::Initialize() { // Debug printing Debug& debug = Debug::GetInstance(); if (texture_) { // Get the texture inside the texture atlas Graphics& graphics = Graphics::GetInstance(); atlas_ = graphics.GetTextureAtlas(); // Create the node to store inside the tree const std::string& textureDir = texture_->GetResourceDir(); atlasNode_ = atlas_->Find(textureDir); // If we found the node, then we skip creating the node if (!atlasNode_) { // Otherwise, we need to create it atlasNode_ = new AtlasNode(texture_->GetDimension(0), texture_->GetDimension(1), textureDir); atlas_->Push(&atlasNode_); atlas_->UpdateNodePixels(atlasNode_, texture_->GetPixels()); graphics.UpdateTextureAtlas(); } // X offset, Y offset and uniform scale atlasScale_.x_ = static_cast<float>(atlasNode_->width_) / static_cast<float>(atlas_->GetWidth()); atlasScale_.y_ = static_cast<float>(atlasNode_->height_) / static_cast<float>(atlas_->GetHeight()); atlasOffset_.x_ = static_cast<float>(atlasNode_->xPos_) / static_cast<float>(atlas_->GetWidth()); atlasOffset_.y_ = static_cast<float>(atlasNode_->yPos_) / static_cast<float>(atlas_->GetHeight()); } } Junior::Sprite::Sprite(const Sprite& sprite) : path_(sprite.path_), atlasNode_(nullptr), atlas_(nullptr), isOnAtlas_(false) { if (path_ != "") { texture_ = ResourceManager::GetInstance().GetResource<Texture>(path_); } } void Junior::Sprite::Update(double dt) { } void Junior::Sprite::Unload() { delete texture_; } void Junior::Sprite::SetUVModifications(float xOffset, float yOffset) { SetUVModifications( xOffset, yOffset, static_cast<float>(texture_->GetDimension(0)) / static_cast<float>(atlas_->GetWidth()), static_cast<float>(texture_->GetDimension(1)) / static_cast<float>(atlas_->GetHeight()) ); } void Junior::Sprite::SetUVModifications(float xOffset, float yOffset, float xScale, float yScale) { atlasScale_ = Vec3(xScale, yScale); atlasOffset_ = Vec3(xOffset, yOffset); } void Junior::Sprite::LoadFromDisk(const std::string& path) { // We can only add a spot to the texture altas once, no more if (atlasNode_) return; texture_->LoadFromDisk(path); Graphics& graphics = Graphics::GetInstance(); TextureAtlas* atlas = graphics.GetTextureAtlas(); // Create the node to store inside the tree atlasNode_ = new AtlasNode(texture_->GetDimension(0), texture_->GetDimension(1)); atlas->Push(&atlasNode_); } Junior::Texture* Junior::Sprite::GetTexture() const { return texture_; } Junior::AtlasNode* Junior::Sprite::GetNode() const { return atlasNode_; } const Junior::Vec3& Junior::Sprite::GetAtlasOffset() const { return atlasOffset_; } const Junior::Vec3& Junior::Sprite::GetAtlasScale() const { return atlasScale_; } unsigned Junior::Sprite::GetAtlasID() const { return atlas_->GetID(); } void Junior::Sprite::Serialize(Parser& parser) const { // Only serialize the path to the texture parser.WriteVariable("texturePath", path_); } void Junior::Sprite::Deserialize(Parser& parser) { // Deserialize the path to the texture and load the sprite's texture delete texture_; parser.ReadVariable("texturePath", path_); texture_ = ResourceManager::GetInstance().GetResource<Texture>(path_); }
cpp
New Delhi | The Ministry of Defence on Wednesday signed a memorandum of understanding with a private firm to facilitate the re-employment of ex-servicemen, an official statement said. According to the ministry, from April 2022 to March 2023, as many as 24,234 ex-servicemen received gainful employment in various sectors. The Directorate General (Resettlement) under the Department of Ex-Servicemen Welfare of the defence ministry signed an MoU with Adecco India Private Limited to facilitate the re-employment of ex-servicemen, the statement said. Adecco is a staffing and recruitment solutions provider with specialisation in outsourcing and consulting services. "The objective is to bring corporate companies and ex-servicemen on a common platform to generate employment opportunities in various sectors such as IT, e-commerce, logistics, telecom, aerospace and defence, facility management, security, digital assessment services, power and energy, manufacturing, chemical and agro," the ministry said. "This partnership would bring in more visibility of our ex-servicemen to the industry and corporates and help in achieving the objectives of providing skilled manpower and giving a dignified second career to ex-servicemen," Maj Gen Sharad Kapur, Director General (Resettlement) said.
english
<reponame>jcaldwe8/concurrent-cache-conscious-hamt-in-rust #![feature(test)] #![allow(warnings)] #![feature(ptr_internals)] #![feature(allocator_api)] #![feature(unique)] #![feature(slice_get_slice)] #![feature(box_syntax)] #![feature(core_intrinsics)] #![feature(libc)] #![feature(integer_atomics)] #![feature(vec_resize_default)] extern crate core; extern crate rand; extern crate test; extern crate chashmap; extern crate rayon; mod hamt; mod cchamt; //mod bench; mod allocator; mod lockfree_cchamt; mod mutex_cchamt; mod rwlock_cchamt; pub use hamt::{Trie, TrieData, IndexStatus}; pub use cchamt::ContiguousTrie; pub use allocator::Allocator; pub use lockfree_cchamt::LockfreeTrie; pub use mutex_cchamt::MutexContiguousTrie; pub use rwlock_cchamt::RwContiguousTrie;
rust
<reponame>ScSherifTarek/universities {"name":"University of Maine at Fort Kent","alt_name":"(UMFK)","country":"United States","state":"Maine","address":{"street":"23 University Drive","city":"Fort Kent","province":"Maine","postal_code":"04743"},"contact":{"telephone":"+1(207) 834-7500","website":"http:\/\/www.umfk.maine.edu","email":"<EMAIL>","fax":"+1(207) 834-7503"},"funding":"Public","languages":null,"academic_year":null,"accrediting_agency":"New England Association of Schools and Colleges"}
json
Countdown clocks hide hints that tease out the color in the codename for upcoming game console. One of the most anticipated reveals at the Electronic Entertainment Expo on Sunday is expected to be news about Microsoft's next upcoming Xbox, codenamed Scarlett. The company has offered few details so far, but it's apparently been dropping subtle hints in its own teasers posted to the internet. Attentive gamers noticed that Microsoft's E3 countdown videos have included mysterious codes in the left corner -- R255, G36 and B0 -- the RGB code for the bright red color scarlet. Microsoft reportedly rewarded an "eagled eyed" gamer who noticed the Easter egg with a free month of its subscription-based service Xbox Game Pass. Rumors suggest the company is working on two game consoles under the Scarlett umbrella – an entry-level unit on par with the Xbox One S , codenamed Lockhart, and a high-end Xbox One X equivalent, referred to as Anaconda. The company has kept mum on the details so far but may be ready to pull back the curtain a bit during its press conference Sunday, which will be held at the appropriately named Microsoft Theater in Los Angeles, starting at 1 p.m. PT (4 p.m. ET). Microsoft is also expected to announce Halo Infinite, the latest installment in the company's multibillion-dollar space war epic that helped launch the original Xbox two decades ago. We also expect to hear more news on Gears 5, the latest in its other well-regarded (but very different) Gears of War space epic series. We should also hear more details on its Game Pass for PC service. Microsoft declined to comment.
english
Aryan Club Women (ARC-W) will take on Town Club Women (TOC-W) in the eighth match of the Bengal Women’s T20 Blast at the Bengal Cricket Academy Ground in Kalyani on Thursday. Aryan Club Women have had a terrible start to their Bengal Women’s T20 Blast campaign, losing two in two. They suffered heavy losses against East Bengal Club Women and Kalighat Club Women and will be desperate to get off the mark today. Town Club Women, meanwhile, have won one of their two Bengal Women’s T20 Blast games so far. They will head into today's contest on the back of an eight-wicket loss at the hands of Rajasthan Club Women. The track at the Bengal Cricket Academy Ground in Kalyani generally favors the bowlers. The batters need to spend some time in the middle before shifting gears. A score of around 120 could be par at the venue. H Basu could prove to be a decent wicketkeeper-batter choice for your Dream11 fantasy team. She has scored 23 runs so far and is safe behind the stumps as well. A Barman looked in good touch against Rajasthan Women, scoring 32 vital runs. She is a crucial top order batter for Town Club Women. V Vanitha, who has amassed 24 runs in the Bengal Women’s T20 Blast thus far, can play a big knock today. J Khatun has scored 43 runs and picked up four wickets in the Bengal Women’s T20 Blast. She could be an excellent multiplier choice for your ARC-W vs TOC-W Dream11 fantasy team. M Ghosh is another player you must have on your fantasy team. Although she’s yet to make his mark with the bat, Ghosh has already scalped three wickets in the tournament. M Mal has consistently bowled in the right areas, picking up four wickets in the process. ARC-W vs TOC-W Dream11 Prediction Today (Bengal Women’s T20 Blast) Captain: J Khatun. Vice-captain: M Mal. Captain: A Barman. Vice-captain: M Ghosh.
english
import datetime import logging import os.path import unittest import zipfile from easy_atom import helpers class TestUnzip(unittest.TestCase): def setUp(self): self.logger = logging.getLogger('utest') self.zipfilename = "ExtractionMonoTable_CAT18_ToutePopulation_201802031143.zip" def test_unzip(self): start_date = datetime.datetime.now() zf = zipfile.ZipFile(os.path.join('files', self.zipfilename)) zf.extractall('files') end_date = datetime.datetime.now() delta = end_date - start_date self.logger.info("Start : %s" % start_date.isoformat()) self.logger.info("End : %s" % end_date.isoformat()) self.logger.info("Delta : %s" % delta) self.assertTrue(os.path.exists(os.path.join('files', 'ExtractionMonoTable_CAT18_ToutePopulation_201802030936.csv'))) if __name__ == '__main__': loggers = helpers.stdout_logger(['utest'], logging.INFO) unittest.main()
python
/* eslint quotes: ["error", "double"] */ /* strings files need to be double quotes */ define({ root: ({ commonCore: { builderPanel: { buttonSaving: "Saving", buttonSaved: "Saved", buttonError: "Save failed", buttonShare: "Share", buttonSettings: "Settings", buttonHelp: "Help", buttonPreview: "View Story", buttonHealth: "Health Report", manageStories: "Manage My Stories", closeWithPendingChange: "Are you sure to want to confirm this action? Your changes will be lost.", saveError: "Save failed, please try again" }, saveErrorSocial: { title: "Social media sharing", panel1: "Your story may not appear properly on social media as your ArcGIS web application item title is not the same as your story title.", panel1tooltip: "By defining a title, summary and thumbnail image, your story will look like this:", panel2: "Which title would you like to use on social media:", panel2q1: "Story title (recommended)", panel2q1tooltip: "By choosing this option, your item title will be modified to match your story title and further changes in the builder will be synchronized.", panel2q2: "Item title", panel3: "To further improve how your story looks on social media use ${MYSTORIES} to add a summary and a thumbnail image.", panel4: "Do not warn me again for this story", save: "Save", mystories: "My Stories" }, share: { btnPrivate: "Private", btnOrg: "Organization", btnPublic: "Public" } } }), "ar": 1, "bs": 1, "cs": 1, "da": 1, "de": 1, "el": 1, "es": 1, "et": 1, "fi": 1, "fr": 1, "he": 1, "hi": 1, "hr": 1, "id": 1, "it": 1, "ja": 1, "ko": 1, "lt": 1, "lv": 1, "nl": 1, "nb": 1, "pl": 1, "pt-br": 1, "pt-pt": 1, "ro": 1, "ru": 1, "sr": 1, "sv": 1, "th": 1, "tr": 1, "vi": 1, "zh-cn": 1, "zh-hk": 1, "zh-tw": 1 });
javascript
Taskin Ahmed and Arafat Sunny, the Bangladesh bowlers, are upbeat that their action will be cleared by the International Cricket Council (ICC) after they take the test in Brisbane on September 8. The duo will fly out to Australia with Chandika Hathurusingha, the Bangladesh coach. "We have been toiling hard for the last few months. The review committee, our coaching staff and team-mates have all inspired us. Our bowling actions are better. But there will be pressure as it is indeed a matter of an examination. Hopefully, if we can do our work properly, we will come back to international cricket," Sunny said on Monday (September 5). Both Taskin and Sunny were reported during the ICC World Twenty20 in India earlier this year and were subsequently banned by the governing body. They'll aim to get their action cleared ahead of the home series against England in October. Taskin acknowledged that he's expecting positive results. "We are going with a positive mindset. We are, of course, excited and optimistic that we will back with positive results. We seek everyone's blessings so that we can return to international cricket from the next home series. I believe we have put enough effort in the last four to five months. "The coach and local experts have supported us. In the last four months, [Mahbub Ali] Zaki sir worked with me. Our head coach will be there with us. Hopefully it will give additional inspiration. The senior players also supported us mentally. We will breeze through the test if the blessings from all are with us," Taskin said.
english
Editor’s note: Robyn Metcalfe is a food historian at the University of Texas at Austin and the Director of The Food Lab at UT, a catalyst for scientific and cultural exploration, experimentation and innovation in the food system. In 1851, Charles Mackay wrote his 600-page tome, Memoirs of Extraordinary Popular Delusions and the Madness of Crowds. In it, he describes 86 economic bubbles, like the tulip and the South Sea bubbles during the 17th and 18th centuries, both which burst and caused thousands to lose their fortunes through speculation. Mackay believed this economic phenomenon was evidence of a reckless obsession. We’re seeing some of that same recklessness creeping into the food industry, as we rush to embrace a new surge of food-related startups. A bubble is coming. Unfortunately, venture capitalists may not be subjecting food startups to the same due diligence that they do for non-food-related startups. Michael Lippold, CEO of FreshRealm, a startup that offers a cloud-based system for distributing food, shares a growing concern. He notes that in December 2013, Instacart, a San Francisco-based grocery delivery service, raised $220 million with a $2 billion valuation. In 2014, Instacart’s revenue was about $100 million. Investors should be cautious about technology as the inflator of a food business. At least it had revenue. An increasing number of food startups aren’t yet generating significant revenue. Deliveroo, a food delivery startup based in the U.K., received $25 million on a previous valuation of $100 million, though its annual revenue was only about $1 million. The list goes on. Money is flowing into the food sector; VCs raised $48 billion for food startups in 2014, the highest amount since 2000. We’re facing an oversupply of capital even as water and arable land are in short supply. We should celebrate this new enthusiasm for food-related innovation. Everyone from food activists to entrepreneurs, investors and technology providers are disrupting and (hopefully) improving how we eat. McDonald’s is working hard to stay relevant. Fast food is no longer content to be fast; it now wants to be casual, local and green, tapping into an alert and voracious market. Entrepreneurs are the foundation of a growing economy and goodness knows, we need growth. However, the coming food bubble may be more difficult to anticipate than others due to several obfuscating details. The food bubble is nested and expanding within a general tech startup bubble. Delusions tend to be infectious, infusing the over-valuations of general tech startups into the food community, making it difficult to discern whether a food-delivery service has a solid value proposition or if the technology itself is overhyped. And since most food startups today are brought on by the convergence of technology and food, investors should be cautious about technology as the inflator of a food business. The coming bubble is also complicated by its occurrence during an ongoing weak economic recovery when the fundamentals are changing and the future is unknown. The overvaluations that we see in the tech sector are infecting food startups. Overvalued food startups aren’t so different from overvalued tech startups. They have all of the necessary ingredients: a team of young rock stars; a segment that is rapidly evolving that no one understands; and a well-designed pitch deck. But a food startup is different from a tech startup because of the complicated emotional relationship between humans and their food. Make the product ugly, cause it to look like it might be unsafe, neglect the relationship between food and identity: Any one of these oversights will result in certain deflation, even if the market is ready and the product technology is stunning. And then there is the fact that many who start a food business lack experience in the food industry. Pitifully few have been farmers, almost none distributors, and only a few know how to make food that tastes good. The only shared quality seems to be that everyone eats, which somehow qualifies us all as food entrepreneurs. Is it okay if startups or their advisory boards fail to recruit members with experience in the food system? Maybe. It might be that our new food system will be so different from the old that we need ideas from outside the traditional agricultural, food and beverage sectors. But how do we weigh a lack of experience against a fresh start? The more ideas the better as we prepare for the unexpected innovations, the unimagined connections and disconnections that will eventually put healthy food on more tables around the globe. Many food startups avoid scale and see profitability as an anathema to their business model. Ask entrepreneurs how they will scale their businesses and half will say that they have no intention of scaling. For some food entrepreneurs, being big means being bad, unethical or – horror! − industrial. Some just want the pleasure of being a small business, being self-employed and in a business where low-volume/high prices make sense. The pleasures of handling raw ingredients, making things with your hands, and building relationships is hard to resist. And while there is nothing wrong with artisans, we should be careful not to assume this is a sign of “the next big thing.” It’s simply small business in action around food. Laudable, yes. Revolutionary, probably not. Let’s get ready for the food bubble. We can and should heed Mackay’s warning about delusional behavior, but we should welcome the bounty of startups, all seeding their place in the new, disruptive food system. The more ideas the better as we prepare for the unexpected innovations, the unimagined connections and disconnections that will eventually put healthy food on more tables around the globe. Even if the bubble of food startups “have their little day” as Mackay said of those early bubbles, each entrepreneur will contribute to a new collaborative business culture that we hope will deliver healthy, affordable food to everyone.
english
<filename>cam2-support/build/intermediates/blame/res/androidTest/debug/single/drawable-ldrtl-mdpi.json [ { "merged": "/Users/dharmendraverma/StudioProjects/cwac-cam2/cam2-support/build/intermediates/res/merged/androidTest/debug/drawable-ldrtl-mdpi/abc_spinner_mtrl_am_alpha.9.png", "source": "/Users/dharmendraverma/.android/build-cache/21a85db9c09c0a50caa2422c0343311df9be2de2/output/res/drawable-ldrtl-mdpi/abc_spinner_mtrl_am_alpha.9.png" }, { "merged": "/Users/dharmendraverma/StudioProjects/cwac-cam2/cam2-support/build/intermediates/res/merged/androidTest/debug/drawable-ldrtl-mdpi/abc_ic_menu_copy_mtrl_am_alpha.png", "source": "/Users/dharmendraverma/.android/build-cache/21a85db9c09c0a50caa2422c0343311df9be2de2/output/res/drawable-ldrtl-mdpi/abc_ic_menu_copy_mtrl_am_alpha.png" }, { "merged": "/Users/dharmendraverma/StudioProjects/cwac-cam2/cam2-support/build/intermediates/res/merged/androidTest/debug/drawable-ldrtl-mdpi/abc_ic_menu_cut_mtrl_alpha.png", "source": "/Users/dharmendraverma/.android/build-cache/21a85db9c09c0a50caa2422c0343311df9be2de2/output/res/drawable-ldrtl-mdpi/abc_ic_menu_cut_mtrl_alpha.png" }, { "merged": "/Users/dharmendraverma/StudioProjects/cwac-cam2/cam2-support/build/intermediates/res/merged/androidTest/debug/drawable-ldrtl-mdpi/abc_ic_ab_back_mtrl_am_alpha.png", "source": "/Users/dharmendraverma/.android/build-cache/21a85db9c09c0a50caa2422c0343311df9be2de2/output/res/drawable-ldrtl-mdpi/abc_ic_ab_back_mtrl_am_alpha.png" } ]
json
{"PREVALENCE_BY_GENDER_AGE_YEAR":{"TRELLIS_NAME":[],"SERIES_NAME":[],"X_CALENDAR_YEAR":[],"Y_PREVALENCE_1000PP":[]},"PREVALENCE_BY_MONTH":{"X_CALENDAR_MONTH":[],"Y_PREVALENCE_1000PP":[]},"OBS_FREQUENCY_DISTRIBUTION":{"Y_NUM_PERSONS":0,"X_COUNT":1},"OBSERVATIONS_BY_TYPE":{"CONCEPT_NAME":"Observation recorded from EHR","COUNT_VALUE":32},"AGE_AT_FIRST_OCCURRENCE":{"CATEGORY":["MALE","FEMALE"],"MIN_VALUE":[13,0],"P10_VALUE":[16,16],"P25_VALUE":[50,25],"MEDIAN_VALUE":[58,43],"P75_VALUE":[66,75],"P90_VALUE":[88,79],"MAX_VALUE":[88,83]}}
json
import { makeRouteConfig, Route } from 'found'; import React from 'react'; import FetchBoards from './board/action/FetchBoards'; const routes = ( <Route path="/"> <Route getComponent={() => import('../Home').then(module => module.default)} getData={({ location, context }) => new Promise(resolve => { context.store.dispatch(new FetchBoards()); resolve({ store: context.store }); }) } /> <Route path="/about" getComponent={() => import('../About').then(module => module.default)} getData={({ location, context }) => new Promise(resolve => { context.store.dispatch(new FetchBoards()); resolve({ store: context.store }); }) } > <Route path="/me" getComponent={() => import('../components/Me').then(module => module.default)} getData={({ location, context }) => new Promise(resolve => { context.store.dispatch(new FetchBoards()); resolve({ store: context.store }); }) } /> <Route path="/them" getComponent={() => import('../components/Me').then(module => module.default)} getData={({ location, context }) => new Promise(resolve => { context.store.dispatch(new FetchBoards()); resolve({ store: context.store }); }) } /> <Route path="/us" getComponent={() => import('../components/Us').then(module => module.default)} getData={({ location, context }) => new Promise(resolve => { context.store.dispatch(new FetchBoards()); resolve({ store: context.store }); }) } /> </Route> </Route> ); export default makeRouteConfig(routes);
typescript
<reponame>Nelias/CS50-pset6 # Getting an input from the user x = int(input("How tall do you want your pyramid to be? ")) while x < 0 or x > 23: x = int(input("Provide a number greater than 0 and smaller than 23: ")) for i in range(x): z = i+1 # counts the number of blocks in the pyramid in each iteration y = x-i # counts the number of spaces in the pyramid in each iteration print(" "*y + "#"*z + " " + "#"*z) # this function builds the pyramid
python
<filename>src/project/cli/__init__.py<gh_stars>0 import click from .memcache import memcache_cmd CMDS = (memcache_cmd,) CLI = click.CommandCollection(sources=CMDS)
python
{ "pages": [ "pages/home/home", "pages/search/search", "pages/detail/detail", "pages/my/my", "pages/orders/orders", "pages/guide/guide" ], "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#F7DE62", "navigationBarTitleText": "首页", "navigationBarTextStyle": "black" }, "tabBar": { "selectedColor": "#f7de62", "color": "#4f4f4f", "list": [ { "pagePath": "pages/home/home", "text": "首页", "iconPath": "asset/index.png", "selectedIconPath": "asset/index_active.png" }, { "pagePath": "pages/my/my", "text": "我的", "iconPath": "asset/my.png", "selectedIconPath": "asset/my_active.png" } ] }, "navigateToMiniProgramAppIdList": [ "wx32540bd863b27570" ] }
json
{ "index": 447, "hash": 983157083, "blacklisted": false, "damageType": 0, "redacted": false, "isDisplayable": true, "displayProperties": { "icon": "/common/destiny2_content/icons/27372dd0065672d9308804a2a0a442bd.png", "hasIcon": true, "description": "Sword Guard has balanced defenses and maximized endurance.", "name": "Infinite Guard" } }
json
{"relation": [["Title", "X3: Terran Conflict", "X3: Terran Conflict"], ["Publisher", "<NAME>", "Atari"], ["Region", "Europe", "North America"], ["Date", "17th October 2008", "31st March 2009"], ["Distribution", "Retail", "Retail"]], "pageTitle": "X3: Terran Conflict (Microsoft Windows) - Sales, Wiki, Cheats, Walkthrough, Release Date, Gameplay, ROM on VGChartz", "title": "", "url": "http://www.vgchartz.com/game/33299/x3-terran-conflict/", "hasHeader": true, "headerPosition": "FIRST_ROW", "tableType": "RELATION", "tableNum": 3, "s3Link": "common-crawl/crawl-data/CC-MAIN-2015-32/segments/1438042988061.16/warc/CC-MAIN-20150728002308-00022-ip-10-236-191-2.ec2.internal.warc.gz", "recordEndOffset": 791940129, "recordOffset": 791931927, "tableOrientation": "HORIZONTAL", "TableContextTimeStampAfterTable": "{12227=About Us | Terms of Use | Privacy Policy | Advertise | Staff | Contact \u00a9 2006-2015 VGChartz Ltd. All rights reserved. US}", "textBeforeTable": "Release History 0.03m = Global 20.4% 0.01m + Rest of the World: 79.6% 0.02m Europe: Total Units Comments France Germany UK Europe Global Summary Genre: Simulation Developer: Egosoft Platform: Microsoft Windows 0.03m Global Total as of 27th Jun 2015 (units): X3: Terran Conflict //--> document.write('');", "textAfterTable": "Game Overview X3: Terran Conflict is a simulation game developed by Egosoft and released on Microsoft Windows. X3: Terran Conflict Wiki on Gamewise Overview Release Dates Credits Walkthrough Achievements Cheats Discussion Similar Games Silent Hunter III (0.07m) Microsoft Flight Simulator 2004: A Century of Flight (0.06m) SimCity 4: Deluxe Edition (0.06m) The Sims 3: Fast Lane Stuff (0.06m) The Sims 3: Barnacle Bay (0.06m) Ski Region Simulator (0.06m) The Sims 2: Seasons (0.05m) Microsoft Flight Simulator X Acceleration Expansion Pack (0.05m) IL-2 Sturmovik: Cliffs of Dover (0.05m) Emergency 2012 (0.05m) Airline Tycoon 2 (0.05m) Cities in Motion (0.05m) City Life: World Edition (0.05m) Ship Simulator Extremes (0.05m) IL-2 Sturmovik: 1946 (0.04m) Silent Hunter: Wolves of the Pacific (0.04m) Microsoft Train Simulator (0.04m) JASF: Jane's Advanced Strike Fighters (0.04m) Apache: Air Assault (0.03m) DarkStar One (0.03m)", "hasKeyColumn": true, "keyColumnIndex": 1, "headerRowIndex": 0}
json
# Generated by Django 2.2.6 on 2020-02-09 12:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0010_auto_20200130_1135'), ] operations = [ migrations.CreateModel( name='Variation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Item')), ], options={ 'unique_together': {('item', 'name')}, }, ), migrations.CreateModel( name='ItemVariation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('value', models.CharField(max_length=50)), ('attachment', models.ImageField(upload_to='variations/')), ('variation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Variation')), ], options={ 'unique_together': {('variation', 'value')}, }, ), ]
python
A member of the National Commission for Backward Classes (NCBC), Kaushalendra Singh Patel had a review meeting with the Odisha government on Thursday and requested the state officials to give 11. 25 per cent reservation in higher education for backward classes. A member of the National Commission for Backward Classes (NCBC), Kaushalendra Singh Patel had a review meeting with the Odisha government on Thursday and requested the state officials to give 11. 25 per cent reservation in higher education for backward classes. "On Wednesday, National Commission and state government officials had a third review meeting and we have requested official again for 11. 25 per cent reservation in education. But, I think Odisha government and their official don't want to give it," Patel told ANI. Last year in February 2020, the National commission visited Odisha and pointed out that the state government is not giving reservations for higher education, while responding to that government said they will take action soon, Patel stressed. The same year in the month of September, the national commission also had a virtual meeting with state officials and asked the government to give reservations to Backward Classes students for their higher education, he added. "For the last one and half years, the National Commission is asking the Odisha government for reservation, if they wanted they would have been given it," Patel said. "In my knowledge, I think Odisha is the only state, where the reservation is given based on family annual income. Giving reservation on an economic basis while removing from the basis of education and equality is an injustice to backward students", he told. 27 per cent reservation is given to backward classes in education and jobs, but in any case, if it could not happen, then at least a minimum of 11. 25 per cent must have been given immediately. In Odisha, 11. 25 per cent reservation has been given in jobs, so why they are not giving it in education, he added. "National Commission will continue its inquiry further", he said. ( With inputs from ANI )
english
|e-Abhilekhagar is a Website-cum-webportal about the resources and services of Uttar Pradesh State Archives. |Our hack is to give a simple Flyover Case Management system. This is to enable better governance for the Ministry of Roadways. |To give advisory and facilitate the complaints of people. |Gis Layered Application Specific Spatial Data is an asset mapper on GIS map without any coding involved. |Government Projects Monitoring System Ver 4 for progress reporting,monitoring and Reviewing at three levels ( Field , department and Top Management) |HydraMeet, a video conferencing platform to help you stay connected and to grow with your expectations. Be it, online classes, client meetings or just catching up with friends, HydraMeet is there with you. |A complete solution for Dairy Sector and Dairy Cooperative Societies. |Mobile application to link street vendors and Customers. a. Gate Validator L3 & Transit application. c. Web application for Equipment management, Complaint management, monitoring, Dashboard and Reporting. a. ETIM (Electronic Ticket Issuance Machine) L3 & Transit application. Collection & Reconciliation, Transaction management and Reporting. a. Mobile application to buy mobile QR tickets with PTO AFC integration. c. Server-side application for issuance of QR tickets.
english
<filename>src/AATree.ts interface NodeData<T> { key: number value: T } interface Range<T> { start: number end: number value: T } type FindCallback<T> = (value: T) => 1 | 0 | -1 export type NodeIterator<T> = IterableIterator<NodeData<T>> export type RangeIterator<T> = IterableIterator<Range<T>> class NilNode { public level = 0 public rebalance(): this { return this } public adjust(): this { return this } public remove(): this { return this } public find(): undefined { return } public findWith(): undefined { return } public findMax(): number { return -Infinity } public findMaxValue(): undefined { return } public insert<T>(key: number, value: T): NonNilNode<T> { // eslint-disable-next-line @typescript-eslint/no-use-before-define return new NonNilNode<T>({ key, value, level: 1 }) } public walkWithin<T>(): NodeData<T>[] { return [] } public walk<T>(): NodeData<T>[] { return [] } public ranges<T>(): Range<T>[] { return [] } public rangesWithin<T>(): Range<T>[] { return [] } public empty(): this is NilNode { return true } public isSingle(): true { return true } public isInvariant(): true { return true } public keys(): number[] { return [] } } const NIL_NODE = new NilNode() Object.freeze(NIL_NODE) type Node<T> = NonNilNode<T> | NilNode interface NodeConstructorArgs<T> { key: number value: T level: number left?: Node<T> right?: Node<T> } class UnreachableCaseError extends Error { constructor(val: never) { super(`Unreachable case: ${val}`) } } class NonNilNode<T> { public key: number public value: T public level: number public left: Node<T> public right: Node<T> public constructor({ key, value, level, left = NIL_NODE, right = NIL_NODE }: NodeConstructorArgs<T>) { this.key = key this.value = value this.level = level this.left = left this.right = right } public remove(key: number): Node<T> { const { left, right } = this if (key === this.key) { if (left.empty()) { return right } else if (right.empty()) { return left } else { const [lastKey, lastValue] = left.last() return this.clone({ key: lastKey, value: lastValue, left: left.deleteLast(), }).adjust() } } else if (key < this.key) { return this.clone({ left: left.remove(key), }).adjust() } else { return this.clone({ right: right.remove(key), }).adjust() } } public empty(): this is NilNode { return false } public find(key: number): T | undefined { if (key === this.key) { return this.value } else if (key < this.key) { return this.left.find(key) } else { return this.right.find(key) } } public findWith(callback: FindCallback<T>): [number, T] | undefined { const result = callback(this.value) switch (result) { case -1: return this.left.findWith(callback) case 0: return [this.key, this.value] case 1: return this.right.findWith(callback) default: throw new UnreachableCaseError(result) } } public findMax(key: number): number { if (this.key === key) { return key } if (this.key < key) { const rightKey = this.right.findMax(key) if (rightKey === -Infinity) { return this.key } else { return rightKey } } return this.left.findMax(key) } public findMaxValue(key: number): T { if (this.key === key) { return this.value } if (this.key < key) { const rightValue = this.right.findMaxValue(key) if (rightValue === undefined) { return this.value } else { return rightValue } } return this.left.findMaxValue(key)! } public insert(key: number, value: T): NonNilNode<T> { if (key === this.key) { return this.clone({ key, value }) } else if (key < this.key) { return this.clone({ left: this.left.insert(key, value), }).rebalance() } else { return this.clone({ right: this.right.insert(key, value), }).rebalance() } } public walkWithin(start: number, end: number): NodeData<T>[] { const { key, value } = this let result: NodeData<T>[] = [] if (key > start) { result = result.concat(this.left.walkWithin(start, end)) } if (key >= start && key <= end) { result.push({ key, value }) } if (key <= end) { result = result.concat(this.right.walkWithin(start, end)) } return result } public walk(): NodeData<T>[] { return [...this.left.walk<T>(), { key: this.key, value: this.value }, ...this.right.walk<T>()] } public last(): [number, T] { if (this.right.empty()) { return [this.key, this.value] } else { return this.right.last() } } public deleteLast(): Node<T> { if (this.right.empty()) { return this.left } else { return this.clone({ right: this.right.deleteLast(), }).adjust() } } public clone(args: Partial<NodeConstructorArgs<T>>): NonNilNode<T> { return new NonNilNode<T>({ key: args.key !== undefined ? args.key : this.key, value: args.value !== undefined ? args.value : this.value, level: args.level !== undefined ? args.level : this.level, left: args.left !== undefined ? args.left : this.left, right: args.right !== undefined ? args.right : this.right, }) } public isSingle(): boolean { return this.level > this.right.level } public rebalance(): NonNilNode<T> { return this.skew().split() } public adjust(): NonNilNode<T> { const { left, right, level } = this if (right.level >= level - 1 && left.level >= level - 1) { return this } else if (level > right.level + 1) { if (left.isSingle()) { return this.clone({ level: level - 1 }).skew() } else { if (!left.empty() && !left.right.empty()) { return left.right.clone({ left: left.clone({ right: left.right.left }), right: this.clone({ left: left.right.right, level: level - 1, }), level: level, }) } else { throw new Error('Unexpected empty nodes') } } } else { if (this.isSingle()) { return this.clone({ level: level - 1 }).split() } else { if (!right.empty() && !right.left.empty()) { const rl = right.left const rightLevel = rl.isSingle() ? right.level - 1 : right.level return rl.clone({ left: this.clone({ right: rl.left, level: level - 1, }), right: right.clone({ left: rl.right, level: rightLevel }).split(), level: rl.level + 1, }) } else { throw new Error('Unexpected empty nodes') } } } } public isInvariant(): boolean { const { left, right, level } = this if (level !== left.level + 1) { return false } else if (level !== right.level && level !== right.level + 1) { return false } else if (!right.empty() && level <= right.right.level) { return false } else { return left.isInvariant() && right.isInvariant() } } public keys(): number[] { return [...this.left.keys(), this.key, ...this.right.keys()] } public ranges(): Range<T>[] { return this.toRanges(this.walk()) } public rangesWithin(startIndex: number, endIndex: number): Range<T>[] { return this.toRanges(this.walkWithin(startIndex, endIndex)) } private toRanges(nodes: NodeData<T>[]): Range<T>[] { if (nodes.length === 0) { return [] } const first = nodes[0] let { key: start, value } = first const result = [] for (let i = 1; i <= nodes.length; i++) { let nextNode = nodes[i] let end = nextNode ? nextNode.key - 1 : Infinity result.push({ start, end, value }) if (nextNode) { start = nextNode.key value = nextNode.value } } return result } private split(): NonNilNode<T> { const { right, level } = this if (!right.empty() && !right.right.empty() && right.level == level && right.right.level == level) { return right.clone({ left: this.clone({ right: right.left }), level: level + 1, }) } else { return this } } private skew(): NonNilNode<T> { const { left } = this if (!left.empty() && left.level === this.level) { return left.clone({ right: this.clone({ left: left.right }), }) } else { return this } } } export class AATree<T> { private root: Node<T> public static empty<T>(): AATree<T> { return new AATree<T>(NIL_NODE) } private constructor(root: Node<T>) { this.root = root } public find(key: number): T | undefined { return this.root.find(key) } public findMax(key: number): number { return this.root.findMax(key) } public findMaxValue(key: number): T { if (this.empty()) { throw new Error('Searching for max value in an empty tree') } return this.root.findMaxValue(key)! } public findWith(callback: FindCallback<T>): [number, T] | void { return this.root.findWith(callback) } public insert(key: number, value: T): AATree<T> { return new AATree(this.root.insert(key, value)) } public remove(key: number): AATree<T> { return new AATree(this.root.remove(key)) } public empty() { return this.root.empty() } public keys(): number[] { return this.root.keys() } public walk(): NodeData<T>[] { return this.root.walk() } public walkWithin(start: number, end: number): NodeData<T>[] { let adjustedStart = this.root.findMax(start) return this.root.walkWithin(adjustedStart, end) } public ranges(): Range<T>[] { return this.root.ranges() } public rangesWithin(start: number, end: number): Range<T>[] { let adjustedStart = this.root.findMax(start) return this.root.rangesWithin(adjustedStart, end) } public isInvariant(): boolean { return this.root.isInvariant() } }
typescript
<gh_stars>0 table{ border: 1px solid; border-collapse: collapse; margin: 50px auto; } td, th{ padding: 12px; background-color: white; } th{ font-size: 25px; border: 2px solid; background-color: gray; font-weight: bold; } td{ font-size: 20px; border: 1px solid; }
css
Although there is no cricket tournament happening around the world due to coronavirus outbreak but this just can’t stop the Indian all-rounder Hardik Pandya to keep himself fit and fine. As India is under 21-day lockdown, Pandya has decided to perform his fitness drills at home to be in a good shape before the action resumes. The 26-year-old Mumbai Indians star recently took to his official Twitter handle and posted a video of his intense workout. After recovering well from his back surgery, Pandya was all set to take on the Proteas in a three-match ODI series at home. However, the first ODI in Dharamshala was abandoned without a ball being bowled and the BCCI suspended the remaining two matches in the wake of novel coronavirus pandemic. Even the 13th edition of the Indian Premier League (IPL) was also postponed till April 15 under the alarming conditions. According to a BCCI official, the apex governing body of cricket in India is now looking forward to hosting the IPL in the October-November window. But the move will only be possible if the ICC announces to postpone the upcoming T20 World Cup.
english
<gh_stars>1-10 [{"inputs":[{"internalType":"address","name":"_trustedCaller","type":"address"},{"internalType":"address","name":"_rewardProgramsRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_creator","type":"address"},{"internalType":"bytes","name":"_evmScriptCallData","type":"bytes"}],"name":"createEVMScript","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_evmScriptCallData","type":"bytes"}],"name":"decodeEVMScriptCallData","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"rewardProgramsRegistry","outputs":[{"internalType":"contract RewardProgramsRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trustedCaller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
json
<reponame>Glajik/html_builder<gh_stars>0 import { find, identity } from 'lodash'; // eslint-disable-line import buildNode from './buildNode'; const parseDispatcher = [ { name: 'body', check: v => typeof v === 'string', get: (acc, value) => ({ ...acc, body: value }), }, { name: 'children', check: v => v instanceof Array, get: (acc, value) => ({ ...acc, children: value.map(el => parse(el)) }), }, { name: 'attribute', check: v => v instanceof Object, get: (acc, value) => ({ ...acc, attributes: value }), }, ]; const parse = (data) => { const [name, ...rest] = data; const { attributes, body, children } = { ...rest.reduce( (acc, value) => parseDispatcher.find(obj => obj.check(value)).get(acc, value), {} ), }; return buildNode(name, attributes, body, children); }; export default parse;
javascript
{ "name": "photo-screen-saver", "version": "0.0.1", "description": "Windows screen saver that displays a photo slideshow, based on the Electron framework", "license": "MIT", "author": { "name": "<NAME>", "email": "<EMAIL>" }, "repository": { "type": "git", "url": "git+https://github.com/RandScullard/photo-screen-saver.git" }, "main": "main.js" }
json
<reponame>jwzimmer/tv-tropes {"FlowerFromTheMountaintop": ["ScalingTheSummit", "FindTheCure", "GrandRomanticGesture", "EngagementChallenge", "DeathMountain", "RealLife", "TheThemeParkVersion", "PsychicPowers", "Muggles", "OurVampiresAreDifferent", "EmergencyTransformation", "HealingPotion", "MixAndMatchCritters", "MessyPig", "HealingPotion", "MixAndMatchCritters", "MessyPig", "LoyalAnimalCompanion", "DrillSergeantNasty", "AllForNothing", "FramingDevice", "Tearjerker", "Flight", "PsychicPowers", "GoMadFromTheRevelation", "BrokenBird", "ItsNotYouItsMe", "BandOfBrothers", "Superman", "MacGuffin", "Mentors", "LaResistance", "MonsterOfTheWeek", "FrickinLaserBeams", "OlderThanDirt", "DiabolusExMachina", "ConsolationPrize", "LamarckWasRight", "JustSoStory", "MeaningfulName", "BoisterousBruiser", "UndyingLoyalty", "StealTheSurroundings", "ArtisticLicenseBiology", "DreamWalker", "EyeOfNewt", "AllThereInTheManual", "IllGirl", "UnexpectedGameplayChange", "TakenForGranite", "CharmPerson", "ContinuityNod", "Sidequest", "SuperSerum", "LampshadeHanging", "MissingMom", "ShipSinking", "CuteMonsterGirl", "ShipperOnDeck", "TakenForGranite", "UnexpectedGameplayChange", "TakenForGranite", "HermitGuru", "GrandRomanticGesture", "SandWorm"]}
json
WHAT! Madonna BANNED From Instagram Live For Sharing Her Nude PICS; Singer Left Speechless, Asks, ‘What The F*** Is Happening? Pop sensation Madonna has received a stern warning from Instagram for posting her nude photos. The American Singer has been banned from going live on Instagram because of sharing her objectionable pictures. Yes, you read that right! Confirming the same, Madonna shared a video where she could not go live as she got barred with a warning from the photo-sharing app. The singer was left quite stunned and 'speechless' on finding out that she was blocked from going live. In the clip, Madonna said, “Guys we`re gonna go live. What the f***? We`re blocked from Live? Ew, what`s happening?" She also joked saying that at that moment she was fully dressed. "I`ve never worn so many clothes in my life. I`m speechless,” the Frozen hitmaker added. She captioned her post, "Not Us!!!! violation of community guidelines."
english
<filename>script/installers/windows/createinstaller.js const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller; const path = require('path'); getInstallerConfig().then(createWindowsInstaller).catch((error) => { console.error(error.message || error); process.exit(1); }); function getInstallerConfig() { console.log('creating windows installer'); const rootPath = path.join('./'); const outPath = path.join(rootPath, 'release-builds'); return Promise.resolve({ appDirectory: path.join(outPath, 'G3TBilling-win32-ia32/'), authors: '<NAME>', noMsi: true, name: 'G3TBilling', description: 'G3T Billing App', loadingGif: path.join(rootPath, 'assets', 'img', 'loading.gif'), outputDirectory: path.join(outPath, 'windows-installer'), exe: 'G3TBilling.exe', setupExe: 'G3TBilling-Installer.exe', setupMsi: 'G3TBilling-Installer.msi', setupIcon: path.join(rootPath, 'assets', 'app-icon', 'win', 'g3t.ico') }); }
javascript
<reponame>Gavin-Gong/vdom import Ele from './h' import { diff } from './diff' const node = { tag: 'ul', props: { class: 'name' }, children: [ { tag: 'li', props: { class: 'item' }, children: "hh" }, { tag: 'li', props: { class: 'item' }, children: "33" }, { tag: 'li', props: { class: 'item' }, children: "99" }, ] } const node2 = { tag: 'div', props: { class: 'name' }, children: [ { tag: 'li', props: { class: 'item' }, children: "hh" }, { tag: 'li', props: { class: 'item' }, children: "33" }, { tag: 'li', props: { class: 'item' }, children: "99" }, ] } const app = new Ele(node.tag, node.props, node.children) app.$mount('#app') const oldTree = app.VNode const newTree = new Ele(node2.tag, node2.props, node2.children).VNode const diffTree = diff(newTree, oldTree)
javascript
/** * Copyright 2009-2017 PrimeTek. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.primefaces.component.calendar.converter; public class TimePatternConverter implements PatternConverter { public String convert(String pattern) { // Hour if (pattern.contains("hh")) { pattern = pattern.replaceAll("hh*", "hh"); } else { pattern = pattern.replaceAll("h", "h"); } if (pattern.contains("HH")) { pattern = pattern.replaceAll("HH*", "HH"); } else { pattern = pattern.replaceAll("H", "H"); } // Minute if (pattern.contains("mm")) { pattern = pattern.replaceAll("mm*", "mm"); } else { pattern = pattern.replaceAll("m", "m"); } // Second if (pattern.contains("ss")) { pattern = pattern.replaceAll("ss*", "ss"); } else { pattern = pattern.replaceAll("s", "s"); } // Millisecond if (pattern.contains("SSS")) { pattern = pattern.replaceAll("SSS*", "l"); } // AM/PM if (pattern.contains("a")) { pattern = pattern.replaceAll("a+", "TT"); } // TimeZone if (pattern.contains("Z")) { pattern = pattern.replaceAll("Z+", "z"); } else if (pattern.contains("XXX")) { pattern = pattern.replaceAll("XXX*", "Z"); } else if (pattern.contains("XX")) { pattern = pattern.replaceAll("XX", "z"); } return pattern; } }
java
<filename>ugene/src/plugins_3rdparty/hmm3/src/hmmer3/easel/esl_gumbel.cpp /* Statistical routines for Gumbel (type I extreme value) distributions. * * Contents: * 1. Routine for evaluating densities and distributions * 2. Generic API routines: for general interface w/ histogram module * 3. Routines for dumping plots to files * 4. Routines for sampling (requires random module) * 5. Maximum likelihood fitting to data (requires minimizer module) * 10. Copyright and license information * * SRE, Thu Jun 23 11:48:39 2005 * SVN $Id: esl_gumbel.c 326 2009-02-28 15:49:07Z eddys $ * * Note: SRE, Mon Aug 6 13:42:09 2007 * ML fitting routines will be prone to over/underfitting * problems for scores outside a "normal" range, because * of exp(-lambda * x) calls. The Lawless ML estimation * may eventually need to be recast in log space. */ #include "esl_config.h" #include <stdio.h> #include <math.h> #include <float.h> #include "easel.h" #include "esl_stats.h" #include "esl_vectorops.h" #include "esl_gumbel.h" #ifdef eslAUGMENT_RANDOM #include "esl_random.h" #endif #ifdef eslAUGMENT_MINIMIZER #include "esl_minimizer.h" #endif /***************************************************************** * 1. Routines for evaluating densities and distributions *****************************************************************/ /* Function: esl_gumbel_pdf() * Synopsis: Returns the probability density at $x$, $P(S=x)$. * Incept: SRE, Sun Jun 26 14:08:19 2005 [St. Louis] * * Purpose: Calculates the probability density function for the Gumbel, * $P(X=x)$, given quantile <x> and Gumbel location and * scale parameters <mu> and <lambda>. * * Let $y = \lambda(x-\mu)$; for 64-bit doubles, * useful dynamic range is about $-6.5 <= y <= 710$. * Returns 0.0 for smaller $y$, 0.0 for larger $y$. */ double esl_gumbel_pdf(double x, double mu, double lambda) { double y; y = lambda * (x - mu); return (lambda * exp(-y - exp(-y))); } /* Function: esl_gumbel_logpdf() * Synopsis: Returns the log of the pdf at $x$, $\log P(S=x)$. * Incept: SRE, Sun Jun 26 14:08:19 2005 [St. Louis] * * Purpose: Calculates the log probability density function for the Gumbel, * $\log P(X=x)$. * * Let $y = \lambda(x-\mu)$; for 64-bit doubles, * useful dynamic range is about $-708 <= y <= \infty$. * Returns $-\infty$ for smaller or larger $y$. */ double esl_gumbel_logpdf(double x, double mu, double lambda) { double y; y = lambda * (x - mu); return (log(lambda) -y - exp(-y)); } /* Function: esl_gumbel_cdf() * Synopsis: Returns the cumulative distribution at $x$, $P(S \leq x)$. * Incept: SRE, Sun Jun 26 10:18:51 2005 [St. Louis] * * Purpose: Calculates the cumulative distribution function * for the Gumbel, $P(X \leq x)$. * * Let $y = \lambda(x-\mu)$; for 64-bit doubles, * useful dynamic range for $y$ is about $-6.5 <= y <=36$. * Returns 0.0 for smaller $y$, 1.0 for larger $y$. */ double esl_gumbel_cdf(double x, double mu, double lambda) { double y; y = lambda*(x-mu); return exp(-exp(-y)); } /* Function: esl_gumbel_logcdf() * Synopsis: Returns the log of the cdf at $x$, $\log P(S \leq x)$. * Incept: SRE, Sun Jun 26 10:18:51 2005 [St. Louis] * * Purpose: Calculates the log of the cumulative distribution function * for the Gumbel, $\log P(X \leq x)$. * * Let $y = \lambda(x-\mu)$; for 64-bit doubles, * useful dynamic range for $y$ is about $-708 <= y <= 708$. * Returns $-\infty$ for smaller $y$, 0.0 for larger $y$. */ double esl_gumbel_logcdf(double x, double mu, double lambda) { double y; y = lambda*(x-mu); return (-exp(-y)); } /* Function: esl_gumbel_surv() * Synopsis: Returns right tail mass above $x$, $P(S > x)$. * Incept: SRE, Sun Jun 26 09:54:31 2005 [St. Louis] * * Purpose: Calculates the survivor function, $P(X>x)$ for a Gumbel * (that is, 1-cdf), the right tail's probability mass. * * Let $y=\lambda(x-\mu)$; for 64-bit doubles, * useful dynamic range for $y$ is $-3.6 <= y <= 708$. * Returns 1.0 for $y$ below lower limit, and 0.0 * for $y$ above upper limit. */ double esl_gumbel_surv(double x, double mu, double lambda) { double y = lambda*(x-mu); double ey = -exp(-y); /* Use 1-e^x ~ -x approximation here when e^-y is small. */ if (fabs(ey) < eslSMALLX1) return -ey; else return 1 - exp(ey); } /* Function: esl_gumbel_logsurv() * Synopsis: Returns log survival at $x$, $\log P(S > x)$. * Incept: SRE, Sun Jun 26 13:45:52 2005 [St. Louis] * * Purpose: Calculates $\log P(X>x)$ for a Gumbel (that is, $\log$(1-cdf)): * the log of the right tail's probability mass. * * Let $y=\lambda(x-\mu)$; for 64-bit doubles, * useful dynamic range for $y$ is $-6.5 <= y <= \infty$. * Returns 0.0 for smaller $y$. */ double esl_gumbel_logsurv(double x, double mu, double lambda) { double y = lambda*(x-mu); double ey = -exp(-y); /* The real calculation is log(1-exp(-exp(-y))). * For "large" y, -exp(-y) is small, so 1-exp(-exp(-y) ~ exp(-y), * and log of that gives us -y. * For "small y", exp(-exp(-y) is small, and we can use log(1-x) ~ -x. */ if (fabs(ey) < eslSMALLX1) return -y; else if (fabs(exp(ey)) < eslSMALLX1) return -exp(ey); else return log(1-exp(ey)); } /* Function: esl_gumbel_invcdf() * Incept: SRE, Sun Aug 21 12:14:06 2005 [St. Louis] * * Purpose: Calculates the inverse CDF for a Gumbel distribution * with parameters <mu> and <lambda>. That is, returns * the quantile <x> at which the CDF is <p>. */ double esl_gumbel_invcdf(double p, double mu, double lambda) { return mu - log(-1. * log(p)) / lambda; } /*------------------ end of densities and distributions --------------------*/ /***************************************************************** * 2. Generic API routines: for general interface w/ histogram module *****************************************************************/ /* Function: esl_gumbel_generic_pdf() * Incept: SRE, Thu Aug 25 07:56:04 2005 [St. Louis] * * Purpose: Generic-API version of PDF function. */ double esl_gumbel_generic_pdf(double p, void *params) { double *v = (double *) params; return esl_gumbel_pdf(p, v[0], v[1]); } /* Function: esl_gumbel_generic_cdf() * Incept: SRE, Sun Aug 21 12:10:49 2005 [St. Louis] * * Purpose: Generic-API version of CDF function. */ double esl_gumbel_generic_cdf(double x, void *params) { double *p = (double *) params; return esl_gumbel_cdf(x, p[0], p[1]); } /* Function: esl_gumbel_generic_surv() * Incept: SRE, Thu Aug 25 07:56:04 2005 [St. Louis] * * Purpose: Generic-API version of survival function. */ double esl_gumbel_generic_surv(double p, void *params) { double *v = (double *) params; return esl_gumbel_surv(p, v[0], v[1]); } /* Function: esl_gumbel_generic_invcdf() * Incept: SRE, Sun Aug 21 12:12:27 2005 [St. Louis] * * Purpose: Generic-API version of inverse CDF. */ double esl_gumbel_generic_invcdf(double p, void *params) { double *v = (double *) params; return esl_gumbel_invcdf(p, v[0], v[1]); } /*------------------------- end of generic API --------------------------*/ /**************************************************************************** * 3. Routines for dumping plots for files ****************************************************************************/ /* Function: esl_gumbel_Plot() * Synopsis: Plot a Gumbel function in XMGRACE XY format. * Incept: SRE, Sun Aug 21 13:21:37 2005 [St. Louis] * * Purpose: Plot a Gumbel function <func> (for instance, * <esl_gumbel_pdf()>) for parameters <mu> and <lambda>, for * a range of quantiles x from <xmin> to <xmax> in steps of <xstep>; * output to an open stream <fp> in xmgrace XY input format. * * Returns: <eslOK>. */ int esl_gumbel_Plot(FILE *fp, double mu, double lambda, double (*func)(double x, double mu, double lambda), double xmin, double xmax, double xstep) { double x; for (x = xmin; x <= xmax; x += xstep) fprintf(fp, "%f\t%g\n", x, (*func)(x, mu, lambda)); fprintf(fp, "&\n"); return eslOK; } /*-------------------- end plot dumping routines ---------------------------*/ /***************************************************************** * 4. Routines for sampling (requires augmentation w/ random module) *****************************************************************/ #ifdef eslAUGMENT_RANDOM /* Function: esl_gumbel_Sample() * Synopsis: Return a Gumbel-distributed random sample $x$. * Incept: SRE, Thu Jun 23 11:38:39 2005 [St. Louis] * * Purpose: Sample a Gumbel-distributed random variate * by the transformation method. */ double esl_gumbel_Sample(ESL_RANDOMNESS *r, double mu, double lambda) { double p; p = esl_rnd_UniformPositive(r); return esl_gumbel_invcdf(p, mu, lambda); } #endif /*eslAUGMENT_RANDOM*/ /*------------------------ end of sampling --------------------------------*/ /***************************************************************** * 5. Routines for maximum likelihood fitting Gumbels to data * (fitting truncated distributions requires augmentation w/ minimizer module) *****************************************************************/ /***************************************************************** * Complete data, maximum a posteriori parameters *****************************************************************/ /* lawless416() * SRE, Thu Nov 13 11:48:50 1997 [St. Louis] * * Purpose: Equation 4.1.6 from [Lawless82], pg. 143, and * its first derivative with respect to lambda, * for finding the ML fit to Gumbel lambda parameter. * This equation gives a result of zero for the maximum * likelihood lambda. * * Args: x - array of sample values * n - number of samples * lambda - a lambda to test * ret_f - RETURN: 4.1.6 evaluated at lambda * ret_df - RETURN: first derivative of 4.1.6 evaluated at lambda * * Return: (void) */ static void lawless416(double *x, int n, double lambda, double *ret_f, double *ret_df) { double esum; /* \sum e^(-lambda xi) */ double xesum; /* \sum xi e^(-lambda xi) */ double xxesum; /* \sum xi^2 e^(-lambda xi) */ double xsum; /* \sum xi */ int i; esum = xesum = xsum = xxesum = 0.; for (i = 0; i < n; i++) { xsum += x[i]; xesum += x[i] * exp(-1. * lambda * x[i]); xxesum += x[i] * x[i] * exp(-1. * lambda * x[i]); esum += exp(-1. * lambda * x[i]); } *ret_f = (1./lambda) - (xsum / n) + (xesum / esum); *ret_df = ((xesum / esum) * (xesum / esum)) - (xxesum / esum) - (1. / (lambda * lambda)); } /* Function: esl_gumbel_FitComplete() * Synopsis: Estimates $\mu$, $\lambda$ from complete data. * Date: SRE, Fri Nov 14 07:56:29 1997 [St. Louis] - HMMER's EVDMaxLikelyFit() * * Purpose: Given an array of Gumbel-distributed samples <x[0]..x[n-1]>, * find maximum likelihood parameters <mu> and <lambda>. * * Algorithm: Uses approach described in [Lawless82]. Solves * for lambda using Newton/Raphson iterations, * then substitutes lambda into Lawless' equation 4.1.5 * to get mu. * * Args: x - list of Gumbel distributed samples * n - number of samples * ret_mu : RETURN: ML estimate of mu * ret_lambda : RETURN: ML estimate of lambda * * Returns: <eslOK> on success. * * Throws: <eslENOHALT> if the fit doesn't converge. */ int esl_gumbel_FitComplete(double *x, int n, double *ret_mu, double *ret_lambda) { double variance; double lambda, mu; double fx; /* f(x) */ double dfx; /* f'(x) */ double esum; /* \sum e^(-lambda xi) */ double tol = 1e-5; int i; /* 1. Find an initial guess at lambda * (Evans/Hastings/Peacock, Statistical Distributions, 2000, p.86) */ esl_stats_DMean(x, n, NULL, &variance); lambda = eslCONST_PI / sqrt(6.*variance); /* 2. Use Newton/Raphson to solve Lawless 4.1.6 and find ML lambda */ for (i = 0; i < 100; i++) { lawless416(x, n, lambda, &fx, &dfx); if (fabs(fx) < tol) break; /* success */ lambda = lambda - fx / dfx; /* Newton/Raphson is simple */ if (lambda <= 0.) lambda = 0.001; /* but be a little careful */ } /* 2.5: If we did 100 iterations but didn't converge, Newton/Raphson failed. * Resort to a bisection search. Worse convergence speed * but guaranteed to converge (unlike Newton/Raphson). * We assume that fx is a monotonically decreasing function of x; * i.e. fx > 0 if we are left of the root, fx < 0 if we * are right of the root. */ if (i == 100) { double left, right, mid; ESL_DPRINTF1(("esl_gumbel_FitComplete(): Newton/Raphson failed; switchover to bisection")); /* First bracket the root */ left = 0.; /* for sure */ right = eslCONST_PI / sqrt(6.*variance); /* an initial guess */ lawless416(x, n, lambda, &fx, &dfx); while (fx > 0.) { right *= 2.; /* arbitrary leap to the right */ if (right > 100.) /* no reasonable lambda should be > 100, we assert */ ESL_EXCEPTION(eslENOHALT, "Failed to bracket root in esl_gumbel_FitComplete()."); lawless416(x, n, right, &fx, &dfx); } /* Now, bisection search in left/right interval */ for (i = 0; i < 100; i++) { mid = (left + right) / 2.; lawless416(x, n, mid, &fx, &dfx); if (fabs(fx) < tol) break; /* success */ if (fx > 0.) left = mid; else right = mid; } if (i == 100) ESL_EXCEPTION(eslENOHALT, "Even bisection search failed in esl_gumbel_FitComplete()."); lambda = mid; } /* 3. Substitute into Lawless 4.1.5 to find mu */ esum = 0.; for (i = 0; i < n; i++) esum += exp(-lambda * x[i]); mu = -log(esum / n) / lambda; *ret_lambda = lambda; *ret_mu = mu; return eslOK; } /* Function: esl_gumbel_FitCompleteLoc() * Synopsis: Estimates $\mu$ from complete data, given $\lambda$. * Incept: SRE, Thu Nov 24 09:09:17 2005 [St. Louis] * * Purpose: Given an array of Gumbel-distributed samples * <x[0]..x[n-1]> (complete data), and a known * (or otherwise fixed) <lambda>, find a maximum * likelihood estimate for location parameter <mu>. * * Algorithm: A straightforward simplification of FitComplete(). * * Args: x - list of Gumbel distributed samples * n - number of samples * lambda - known lambda (scale) parameter * ret_mu : RETURN: ML estimate of mu * * Returns: <eslOK> on success. * * Throws: (no abnormal error conditions) * * Note: Here and in FitComplete(), we have a potential * under/overflow problem. We ought to be doing the * esum in log space. */ int esl_gumbel_FitCompleteLoc(double *x, int n, double lambda, double *ret_mu) { double esum; int i; /* Substitute into Lawless 4.1.5 to find mu */ esum = 0.; for (i = 0; i < n; i++) esum += exp(-lambda * x[i]); *ret_mu = -log(esum / n) / lambda; return eslOK; #if 0 /* Replace the code above w/ code below to test the direct method. */ double mean, variance; esl_stats_DMean(x, n, &mean, &variance); *ret_mu = mean - 0.57722/lambda; return eslOK; #endif } #if eslDEBUGLEVEL >=3 /* direct_mv_fit() * SRE, Wed Jun 29 08:23:47 2005 * * Purely for curiousity: a complete data fit using the * simple direct method, calculating mu and lambda from mean * and variance. */ static int direct_mv_fit(double *x, int n, double *ret_mu, double *ret_lambda) { double mean, variance; esl_stats_DMean(x, n, &mean, &variance); *ret_lambda = eslCONST_PI / sqrt(6.*variance); *ret_mu = mean - 0.57722/(*ret_lambda); return eslOK; } #endif /*------------------- end of complete data fit ---------------------------------*/ /***************************************************************** * Censored data, MAP/ML parameters *****************************************************************/ /* lawless422() * SRE, Mon Nov 17 09:42:48 1997 [St. Louis] * * Purpose: Equation 4.2.2 from [Lawless82], pg. 169, and * its first derivative with respect to lambda, * for finding the ML fit to Gumbel lambda parameter * for Type I censored data. * This equation gives a result of zero for the maximum * likelihood lambda. * * Args: x - array of observed sample values * n - number of observed samples * z - number of censored samples = N-n * phi - censoring value; all observed x_i >= phi * lambda - a lambda to test * ret_f - RETURN: 4.2.2 evaluated at lambda * ret_df - RETURN: first derivative of 4.2.2 evaluated at lambda * * Return: (void) */ static void lawless422(double *x, int n, int z, double phi, double lambda, double *ret_f, double *ret_df) { double esum; /* \sum e^(-lambda xi) + z term */ double xesum; /* \sum xi e^(-lambda xi) + z term */ double xxesum; /* \sum xi^2 e^(-lambda xi) + z term */ double xsum; /* \sum xi (no z term) */ int i; esum = xesum = xsum = xxesum = 0.; for (i = 0; i < n; i++) { xsum += x[i]; esum += exp(-1. * lambda * x[i]); xesum += x[i] * exp(-1. * lambda * x[i]); xxesum += x[i] * x[i] * exp(-1. * lambda * x[i]); } /* Add z terms for censored data */ esum += (double) z * exp(-1. * lambda * phi); xesum += (double) z * phi * exp(-1. * lambda * phi); xxesum += (double) z * phi * phi * exp(-1. * lambda * phi); *ret_f = 1./lambda - xsum / n + xesum / esum; *ret_df = ((xesum / esum) * (xesum / esum)) - (xxesum / esum) - (1. / (lambda * lambda)); return; } /* Function: esl_gumbel_FitCensored() * Synopsis: Estimates $\mu$, $\lambda$ from censored data. * Date: SRE, Mon Nov 17 10:01:05 1997 [St. Louis] * * Purpose: Given a left-censored array of Gumbel-distributed samples * <x[0]..x[n-1]>, the number of censored samples <z>, and the * censoring value <phi> (all <x[i]> $>$ <phi>). * Find maximum likelihood parameters <mu> and <lambda>. * * Algorithm: Uses approach described in [Lawless82]. Solves * for lambda using Newton/Raphson iterations; * then substitutes lambda into Lawless' equation 4.2.3 * to get mu. * * Args: x - array of Gumbel-distributed samples, 0..n-1 * n - number of observed samples * z - number of censored samples * phi - censoring value (all x_i >= phi) * ret_mu : RETURN: ML estimate of mu * ret_lambda : RETURN: ML estimate of lambda * * Returns: <eslOK> on success. * * Throws: <eslENOHALT> if the fit doesn't converge. */ int esl_gumbel_FitCensored(double *x, int n, int z, double phi, double *ret_mu, double *ret_lambda) { double variance; double lambda, mu; double fx; /* f(x) */ double dfx; /* f'(x) */ double esum; /* \sum e^(-lambda xi) */ double tol = 1e-5; int i; /* 1. Find an initial guess at lambda * (Evans/Hastings/Peacock, Statistical Distributions, 2000, p.86) */ esl_stats_DMean(x, n, NULL, &variance); lambda = eslCONST_PI / sqrt(6.*variance); /* 2. Use Newton/Raphson to solve Lawless 4.2.2 and find ML lambda */ for (i = 0; i < 100; i++) { lawless422(x, n, z, phi, lambda, &fx, &dfx); if (fabs(fx) < tol) break; /* success */ lambda = lambda - fx / dfx; /* Newton/Raphson is simple */ if (lambda <= 0.) lambda = 0.001; /* but be a little careful */ } /* 2.5: If we did 100 iterations but didn't converge, Newton/Raphson failed. * Resort to a bisection search. Worse convergence speed * but guaranteed to converge (unlike Newton/Raphson). * We assume (!?) that fx is a monotonically decreasing function of x; * i.e. fx > 0 if we are left of the root, fx < 0 if we * are right of the root. */ if (i == 100) { double left, right, mid; ESL_DPRINTF1(("esl_gumbel_FitCensored(): Newton/Raphson failed; switched to bisection")); /* First bracket the root */ left = 0.; /* we know that's the left bound */ right = eslCONST_PI / sqrt(6.*variance); /* start from here, move "right"... */ lawless422(x, n, z, phi, right, &fx, &dfx); while (fx > 0.) { right *= 2.; if (right > 100.) /* no reasonable lambda should be > 100, we assert */ ESL_EXCEPTION(eslENOHALT, "Failed to bracket root in esl_gumbel_FitCensored()."); lawless422(x, n, z, phi, right, &fx, &dfx); } /* Now we bisection search in left/right interval */ for (i = 0; i < 100; i++) { mid = (left + right) / 2.; lawless422(x, n, z, phi, mid, &fx, &dfx); if (fabs(fx) < tol) break; /* success */ if (fx > 0.) left = mid; else right = mid; } if (i == 100) ESL_EXCEPTION(eslENOHALT, "Even bisection search failed in esl_gumbel_FitCensored()."); lambda = mid; } /* 3. Substitute into Lawless 4.2.3 to find mu */ esum = 0.; for (i = 0; i < n; i++) esum += exp(-lambda * x[i]); esum += z * exp(-1. * lambda * phi); /* term from censored data */ mu = -log(esum / n) / lambda; *ret_lambda = lambda; *ret_mu = mu; return eslOK; } /* Function: esl_gumbel_FitCensoredLoc() * Synopsis: Estimates $\mu$ from censored data, given $\lambda$. * Incept: SRE, Mon Feb 6 11:33:10 2006 [St. Louis] * * Purpose: Given a left-censored array of Gumbel distributed samples * <x[0>..x[n-1]>, the number of censored samples <z>, and the censoring * value <phi> (where all <x[i]> $>$ <phi>), and a known * (or at least fixed) <lambda>; * find the maximum likelihood estimate of the location * parameter $\mu$ and return it in <ret_mu>. * * Note: A straightforward simplification of FitCensored(). * * Args: x - array of Gumbel-distributed samples, 0..n-1 * n - number of observed samples * z - number of censored samples * phi - censoring value (all x_i >= phi) * lambda - known scale parameter $\lambda$ * ret_mu : RETURN: ML estimate of $\mu$ * * Returns: <eslOK> on success. * * Throws: (no abnormal error conditions) */ int esl_gumbel_FitCensoredLoc(double *x, int n, int z, double phi, double lambda, double *ret_mu) { double esum; int i; /* Immediately substitute into Lawless 4.2.3 to find mu, because * lambda is known. */ esum = 0.; for (i = 0; i < n; i++) /* contribution from observed data */ esum += exp(-lambda * x[i]); esum += z * exp(-1. * lambda * phi); /* term from censored data */ *ret_mu = -log(esum / (double) n) / lambda; return eslOK; } /***************************************************************** * Truncated data, MAP parameters (requires minimizer augmentation) *****************************************************************/ #ifdef eslAUGMENT_MINIMIZER /* Easel's conjugate gradient descent code allows a single void ptr to * point to any necessary fixed data, so we'll put everything into one * structure: */ struct tevd_data { double *x; /* data: n observed samples from a Gumbel */ int n; /* number of observed samples */ double phi; /* truncation threshold: all observed x_i >= phi */ }; /* tevd_func() * * Called by the optimizer: evaluate the objective function * for the negative posterior log probability of a particular choice * of parameters mu and lambda, given truncated Gumbel samples. */ static double tevd_func(double *p, int nparam, void *dptr) { double mu, w, lambda; struct tevd_data *data; double *x; int n; double phi; double logL; int i; /* unpack what the optimizer gave us; nparam==2 always */ mu = p[0]; w = p[1]; lambda = exp(w); data = (struct tevd_data *) dptr; x = data->x; n = data->n; phi = data->phi; /* The log likelihood equation */ logL = n * log(lambda); for (i = 0; i < n; i++) logL -= lambda * (x[i] - mu); for (i = 0; i < n; i++) logL -= exp(-1. * lambda * (x[i] - mu)); logL -= n * esl_gumbel_logsurv(phi, mu, lambda); return -1.0 * logL; /* objective: minimize the NLP */ } /* tevd_grad() * * Called by the optimizer: evaluate the gradient of the objective * function (the negative posterior log probability of the parameters * mu and w, where w = log(lambda), at a particular choice of mu and * lambda. */ static void tevd_grad(double *p, int nparam, void *dptr, double *dp) { double mu, lambda, w; struct tevd_data *data; double *x; int n; double phi; double dmu, dw; double coeff; int i; /* unpack what the optimizer gave us; nparam==2 always */ mu = p[0]; w = p[1]; lambda = exp(w); data = (struct tevd_data *) dptr; x = data->x; n = data->n; phi = data->phi; /* Both partials include a coefficient that * basically looks like P(S=phi) / P(S>=phi); pre-calculate it. * Watch out when phi >> mu, which'll give us 0/0; instead, * recognize that for phi >> mu, coeff converges to \lambda. */ if (lambda*(phi-mu) > 50.) /* arbitrary crossover. */ coeff = lambda; else coeff = esl_gumbel_pdf(phi, mu, lambda) / esl_gumbel_surv(phi, mu, lambda); /* Partial derivative w.r.t. mu. */ dmu = n * lambda; for (i = 0; i < n; i++) dmu -= lambda * exp(-1. * lambda * (x[i] - mu)); dmu -= n * coeff; /* Partial derivative w.r.t. w=log(lambda). */ dw = n; for (i = 0; i < n; i++) dw -= (x[i] - mu) * lambda; for (i = 0; i < n; i++) dw += (x[i] - mu) * lambda * exp(-1. * lambda * (x[i] - mu)); dw += n * (phi - mu) * coeff; /* Return the negative, because we're minimizing NLP, not maximizing. */ dp[0] = -1. * dmu; /* negative because we're minimizing NLP, not maximizing */ dp[1] = -1. * dw; return; } /* Function: esl_gumbel_FitTruncated() * Synopsis: Estimates $\mu$, $\lambda$ from truncated data. * Incept: SRE, Wed Jun 29 14:14:17 2005 [St. Louis] * * Purpose: Given a left-truncated array of Gumbel-distributed * samples <x[0]..x[n-1]> and the truncation threshold * <phi> (such that all <x[i]> $\geq$ <phi>). * Find maximum likelihood parameters <mu> and <lambda>. * * <phi> should not be much greater than <mu>, the * mode of the Gumbel, or the fit will become unstable * or may even fail to converge. The problem is * that for <phi> $>$ <mu>, the tail of the Gumbel * becomes a scale-free exponential, and <mu> becomes * undetermined. * * Algorithm: Uses conjugate gradient descent to optimize the * log likelihood of the data. Follows a general * approach to fitting missing data problems outlined * in [Gelman95]. * * Args: x - observed data samples [0..n-1] * n - number of samples * phi - truncation threshold; all x[i] >= phi * ret_mu - RETURN: ML estimate of mu * ret_lambda - RETURN: ML estimate of lambda * * Returns: <eslOK> on success. * * Throws: <eslENOHALT> if the fit doesn't converge. */ int esl_gumbel_FitTruncated(double *x, int n, double phi, double *ret_mu, double *ret_lambda) { struct tevd_data data; double wrk[8]; /* workspace for CG: 4 tmp vectors of size 2 */ double p[2]; /* mu, w; lambda = e^w */ double u[2]; /* max initial step size for mu, lambda */ int status; double mean, variance; double mu, lambda; double fx; data.x = x; data.n = n; data.phi = phi; /* The source of the following magic is Evans/Hastings/Peacock, * Statistical Distributions, 3rd edition (2000), p.86, which gives * eq's for the mean and variance of a Gumbel in terms of mu and lambda; * we turn them around to get mu and lambda in terms of the mean and variance. * These would be reasonable estimators if we had a full set of Gumbel * distributed variates. They'll be off for a truncated sample, but * close enough to be a useful starting point. */ esl_stats_DMean(x, n, &mean, &variance); lambda = eslCONST_PI / sqrt(6.*variance); mu = mean - 0.57722/lambda; p[0] = mu; p[1] = log(lambda); /* c.o.v. because lambda is constrained to >0 */ u[0] = 2.0; u[1] = 0.1; /* Pass the problem to the optimizer. The work is done by the * equations in tevd_func() and tevd_grad(). */ status = esl_min_ConjugateGradientDescent(p, u, 2, &tevd_func, &tevd_grad,(void *)(&data), 1e-4, wrk, &fx); *ret_mu = p[0]; *ret_lambda = exp(p[1]); /* reverse the c.o.v. */ return status; } #endif /*eslAUGMENT_MINIMIZER*/ /*------------------------ end of fitting --------------------------------*/ /***************************************************************** * Easel - a library of C functions for biological sequence analysis * Version h3.0; March 2010 * Copyright (C) 2010 <NAME> Institute. * Other copyrights also apply. See the COPYRIGHT file for a full list. * * Easel is distributed under the Janelia Farm Software License, a BSD * license. See the LICENSE file for more details. *****************************************************************/
cpp
At San Francisco's California Academy of Sciences, there's no shortage of natural wonders. You can visit a dome-encapsulated rainforest, observe the dizzying jellyfish in their tanks, or ponder a wave of sea lion skulls stuck to a wall. But those skulls are really just a taste of what the place has to offer. This is no static natural history museum—it's a place where living, breathing science happens. Well, sort of. Behind keycard-secured doors lies a labyrinth of staff offices, labs, and environmentally-controlled storage that houses 98 percent of the museum’s 46 million specimens—mostly dead. A small fraction will ever appear in public. The rest are an indispensable resource for scientists the world over, which means the museum goes to great lengths to meticulously preserve them. Flannery’s stacks span rooms, with floor-to-ceiling drawers holding rows of bird skins, boxes of marine skeletons, and even a shelf of boulder-sized animal skulls. The academy began collecting these on expeditions in the latter half of the 19th century, and the museum has absorbed specimens from other institutions dating back even further. The Academy rarely launches such expeditions these days, and when they do they're quite small—like a trip to the ocean's "twilight zone" in 2015, whose reefs revealed some strange forms of life. Instead, many of the Academy’s modern specimens come from salvage: birds that hit windows, animals found dead on roads, and sometimes interesting specimens from the zoo. Preserving these specimens requires a team of curatorial assistants and volunteers. The aptly-named Bone Lab is where marine specimens are prepared. Buckets of varying sizes hold animals in various stages of decomposition. After muscle, tissue, skin and any feathers are removed, the animal goes into a bucket with water. As the specimen sits in its own juices, the bacteria in the water break down any remains that aren’t bone. For birds, a technician removes the insides, stuffs the specimen with cotton, and positions it to dry, a process that has changed very little since the 1800s. If you're lucky, you'll eventually glimpse these specimens on the museum floor. Really, though, a natural history museum like this exists for the scientists. “It's really important for scientific research collections to be housed in museums for researchers from all over the world to use,” Flannery says. “They are basically a record of an animal at a place and a time and they go back in history.” And the academy is just one of many specimen repositories scattered around the world. The public-facing bits of these museums are for education—and, of course, revenue. So what can you do with millions upon millions of dead things at the academy? Well for one, in 2005, a researcher used DNA sequencing to identify and characterize two avian pox strains that manifested as lesions on the feet of finches collected during 1905 and 1906 expeditions to the Galapagos Islands. It was a finding a century in the making. But a natural history museum can help define the future, too. Take, for instance, the case of the Lord Howe Island stick insect. Researchers (not affiliated with the academy) were able to compare DNA taken from museum specimens and DNA from a rediscovered population in the wild to confirm they were indeed the same species, even though they looked different. Armed with this knowledge, conservationists can safely introduce the insect to another island where it went extinct. Does it smell a bit? Sure, but sometimes science is about sacrifices.
english
A Texas judge has declared Olympic gymnast Dominique Moceanu an adult, ending a bitter legal dispute in which she accused her parents of squandering the fortune she made in sports. ) to clear her name. Extreme Sports Channel, the adventure and adrenaline sports service, is now available on digital cable in Germany. Romanian soccer club Rapid Bucharest has appointed Gheorghe Dinu as its general manager to replace Dinu Dragan, named as the team manager. Rapid Bucharest may be banned from international competition by FIFA for using an unauthorised agent to set up a player's transfer abroad, a Romanian official has said. The Romanian Professional League (LFP) has banned first division clubs Steaua and Dinamo Bucharest from allowing their supporters to sit in large groups after trouble at their derby last weekend. The Euro 2000 website received more than a billion visits during the championships, making it one of the most popular sites ever, according to the company hosting the site. This season's secondary European club rugby competition has been launched with a new name, the European Shield rebranded as the Parker Pen Shield. Tennis tournaments in the US and Brazil will continue this week despite Tuesday's terror attacks in New York and Washington. The main shareholder in Romania's National Bucharest has had his licence withdrawn by the country's soccer federation for failing to honour the contracts of 15 players, a club official has said.
english
<gh_stars>1-10 # -*- coding: utf-8 -*- from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.yangtypes import YANGDynClass from pyangbind.lib.yangtypes import ReferenceType from pyangbind.lib.base import PybindBase from collections import OrderedDict from decimal import Decimal from bitarray import bitarray import six # PY3 support of some PY2 keywords (needs improved) if six.PY3: import builtins as __builtin__ long = int elif six.PY2: import __builtin__ class state(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-system - based on the path /system/aaa/server-groups/server-group/servers/server/state. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: Operational state data """ __slots__ = ('_path_helper', '_extmethods', '__name','__address','__timeout','__connection_opens','__connection_closes','__connection_aborts','__connection_failures','__connection_timeouts','__messages_sent','__messages_received','__errors_received',) _yang_name = 'state' _pybind_generated_by = 'container' def __init__(self, *args, **kwargs): helper = kwargs.pop("path_helper", None) if helper is False: self._path_helper = False elif helper is not None and isinstance(helper, xpathhelper.YANGPathHelper): self._path_helper = helper elif hasattr(self, "_parent"): helper = getattr(self._parent, "_path_helper", False) self._path_helper = helper else: self._path_helper = False self._extmethods = False self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) self.__address = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) self.__timeout = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) self.__connection_opens = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_closes = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_aborts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_failures = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_timeouts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__messages_sent = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__messages_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__errors_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path()+[self._yang_name] else: return ['system', 'aaa', 'server-groups', 'server-group', 'servers', 'server', 'state'] def _get_name(self): """ Getter method for name, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/name (string) YANG Description: Name assigned to the server """ return self.__name def _set_name(self, v, load=False): """ Setter method for name, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/name (string) If this variable is read-only (config: false) in the source YANG file, then _set_name is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_name() directly. YANG Description: Name assigned to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """name must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False)""", }) self.__name = t if hasattr(self, '_set'): self._set() def _unset_name(self): self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) def _get_address(self): """ Getter method for address, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/address (oc-inet:ip-address) YANG Description: Address of the authentication server """ return self.__address def _set_address(self, v, load=False): """ Setter method for address, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/address (oc-inet:ip-address) If this variable is read-only (config: false) in the source YANG file, then _set_address is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_address() directly. YANG Description: Address of the authentication server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """address must be of a type compatible with oc-inet:ip-address""", 'defined-type': "oc-inet:ip-address", 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False)""", }) self.__address = t if hasattr(self, '_set'): self._set() def _unset_address(self): self.__address = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) def _get_timeout(self): """ Getter method for timeout, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/timeout (uint16) YANG Description: Set the timeout in seconds on responses from the AAA server """ return self.__timeout def _set_timeout(self, v, load=False): """ Setter method for timeout, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/timeout (uint16) If this variable is read-only (config: false) in the source YANG file, then _set_timeout is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_timeout() directly. YANG Description: Set the timeout in seconds on responses from the AAA server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """timeout must be of a type compatible with uint16""", 'defined-type': "uint16", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False)""", }) self.__timeout = t if hasattr(self, '_set'): self._set() def _unset_timeout(self): self.__timeout = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) def _get_connection_opens(self): """ Getter method for connection_opens, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_opens (oc-yang:counter64) YANG Description: Number of new connection requests sent to the server, e.g. socket open """ return self.__connection_opens def _set_connection_opens(self, v, load=False): """ Setter method for connection_opens, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_opens (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_opens is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_opens() directly. YANG Description: Number of new connection requests sent to the server, e.g. socket open """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_opens must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_opens = t if hasattr(self, '_set'): self._set() def _unset_connection_opens(self): self.__connection_opens = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_closes(self): """ Getter method for connection_closes, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_closes (oc-yang:counter64) YANG Description: Number of connection close requests sent to the server, e.g. socket close """ return self.__connection_closes def _set_connection_closes(self, v, load=False): """ Setter method for connection_closes, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_closes (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_closes is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_closes() directly. YANG Description: Number of connection close requests sent to the server, e.g. socket close """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_closes must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_closes = t if hasattr(self, '_set'): self._set() def _unset_connection_closes(self): self.__connection_closes = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_aborts(self): """ Getter method for connection_aborts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_aborts (oc-yang:counter64) YANG Description: Number of aborted connections to the server. These do not include connections that are close gracefully. """ return self.__connection_aborts def _set_connection_aborts(self, v, load=False): """ Setter method for connection_aborts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_aborts (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_aborts is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_aborts() directly. YANG Description: Number of aborted connections to the server. These do not include connections that are close gracefully. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_aborts must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_aborts = t if hasattr(self, '_set'): self._set() def _unset_connection_aborts(self): self.__connection_aborts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_failures(self): """ Getter method for connection_failures, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_failures (oc-yang:counter64) YANG Description: Number of connection failures to the server """ return self.__connection_failures def _set_connection_failures(self, v, load=False): """ Setter method for connection_failures, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_failures (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_failures is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_failures() directly. YANG Description: Number of connection failures to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_failures must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_failures = t if hasattr(self, '_set'): self._set() def _unset_connection_failures(self): self.__connection_failures = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_timeouts(self): """ Getter method for connection_timeouts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_timeouts (oc-yang:counter64) YANG Description: Number of connection timeouts to the server """ return self.__connection_timeouts def _set_connection_timeouts(self, v, load=False): """ Setter method for connection_timeouts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_timeouts (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_timeouts is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_timeouts() directly. YANG Description: Number of connection timeouts to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_timeouts must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_timeouts = t if hasattr(self, '_set'): self._set() def _unset_connection_timeouts(self): self.__connection_timeouts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_messages_sent(self): """ Getter method for messages_sent, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_sent (oc-yang:counter64) YANG Description: Number of messages sent to the server """ return self.__messages_sent def _set_messages_sent(self, v, load=False): """ Setter method for messages_sent, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_sent (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_messages_sent is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_messages_sent() directly. YANG Description: Number of messages sent to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """messages_sent must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__messages_sent = t if hasattr(self, '_set'): self._set() def _unset_messages_sent(self): self.__messages_sent = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_messages_received(self): """ Getter method for messages_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_received (oc-yang:counter64) YANG Description: Number of messages received by the server """ return self.__messages_received def _set_messages_received(self, v, load=False): """ Setter method for messages_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_received (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_messages_received is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_messages_received() directly. YANG Description: Number of messages received by the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """messages_received must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__messages_received = t if hasattr(self, '_set'): self._set() def _unset_messages_received(self): self.__messages_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_errors_received(self): """ Getter method for errors_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/errors_received (oc-yang:counter64) YANG Description: Number of error messages received from the server """ return self.__errors_received def _set_errors_received(self, v, load=False): """ Setter method for errors_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/errors_received (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_errors_received is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_errors_received() directly. YANG Description: Number of error messages received from the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """errors_received must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__errors_received = t if hasattr(self, '_set'): self._set() def _unset_errors_received(self): self.__errors_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) name = __builtin__.property(_get_name) address = __builtin__.property(_get_address) timeout = __builtin__.property(_get_timeout) connection_opens = __builtin__.property(_get_connection_opens) connection_closes = __builtin__.property(_get_connection_closes) connection_aborts = __builtin__.property(_get_connection_aborts) connection_failures = __builtin__.property(_get_connection_failures) connection_timeouts = __builtin__.property(_get_connection_timeouts) messages_sent = __builtin__.property(_get_messages_sent) messages_received = __builtin__.property(_get_messages_received) errors_received = __builtin__.property(_get_errors_received) _pyangbind_elements = OrderedDict([('name', name), ('address', address), ('timeout', timeout), ('connection_opens', connection_opens), ('connection_closes', connection_closes), ('connection_aborts', connection_aborts), ('connection_failures', connection_failures), ('connection_timeouts', connection_timeouts), ('messages_sent', messages_sent), ('messages_received', messages_received), ('errors_received', errors_received), ]) class state(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-system - based on the path /system/aaa/server-groups/server-group/servers/server/state. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: Operational state data """ __slots__ = ('_path_helper', '_extmethods', '__name','__address','__timeout','__connection_opens','__connection_closes','__connection_aborts','__connection_failures','__connection_timeouts','__messages_sent','__messages_received','__errors_received',) _yang_name = 'state' _pybind_generated_by = 'container' def __init__(self, *args, **kwargs): helper = kwargs.pop("path_helper", None) if helper is False: self._path_helper = False elif helper is not None and isinstance(helper, xpathhelper.YANGPathHelper): self._path_helper = helper elif hasattr(self, "_parent"): helper = getattr(self._parent, "_path_helper", False) self._path_helper = helper else: self._path_helper = False self._extmethods = False self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) self.__address = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) self.__timeout = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) self.__connection_opens = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_closes = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_aborts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_failures = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_timeouts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__messages_sent = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__messages_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__errors_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path()+[self._yang_name] else: return ['system', 'aaa', 'server-groups', 'server-group', 'servers', 'server', 'state'] def _get_name(self): """ Getter method for name, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/name (string) YANG Description: Name assigned to the server """ return self.__name def _set_name(self, v, load=False): """ Setter method for name, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/name (string) If this variable is read-only (config: false) in the source YANG file, then _set_name is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_name() directly. YANG Description: Name assigned to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """name must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False)""", }) self.__name = t if hasattr(self, '_set'): self._set() def _unset_name(self): self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) def _get_address(self): """ Getter method for address, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/address (oc-inet:ip-address) YANG Description: Address of the authentication server """ return self.__address def _set_address(self, v, load=False): """ Setter method for address, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/address (oc-inet:ip-address) If this variable is read-only (config: false) in the source YANG file, then _set_address is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_address() directly. YANG Description: Address of the authentication server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """address must be of a type compatible with oc-inet:ip-address""", 'defined-type': "oc-inet:ip-address", 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False)""", }) self.__address = t if hasattr(self, '_set'): self._set() def _unset_address(self): self.__address = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) def _get_timeout(self): """ Getter method for timeout, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/timeout (uint16) YANG Description: Set the timeout in seconds on responses from the AAA server """ return self.__timeout def _set_timeout(self, v, load=False): """ Setter method for timeout, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/timeout (uint16) If this variable is read-only (config: false) in the source YANG file, then _set_timeout is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_timeout() directly. YANG Description: Set the timeout in seconds on responses from the AAA server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """timeout must be of a type compatible with uint16""", 'defined-type': "uint16", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False)""", }) self.__timeout = t if hasattr(self, '_set'): self._set() def _unset_timeout(self): self.__timeout = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) def _get_connection_opens(self): """ Getter method for connection_opens, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_opens (oc-yang:counter64) YANG Description: Number of new connection requests sent to the server, e.g. socket open """ return self.__connection_opens def _set_connection_opens(self, v, load=False): """ Setter method for connection_opens, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_opens (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_opens is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_opens() directly. YANG Description: Number of new connection requests sent to the server, e.g. socket open """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_opens must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_opens = t if hasattr(self, '_set'): self._set() def _unset_connection_opens(self): self.__connection_opens = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_closes(self): """ Getter method for connection_closes, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_closes (oc-yang:counter64) YANG Description: Number of connection close requests sent to the server, e.g. socket close """ return self.__connection_closes def _set_connection_closes(self, v, load=False): """ Setter method for connection_closes, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_closes (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_closes is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_closes() directly. YANG Description: Number of connection close requests sent to the server, e.g. socket close """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_closes must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_closes = t if hasattr(self, '_set'): self._set() def _unset_connection_closes(self): self.__connection_closes = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_aborts(self): """ Getter method for connection_aborts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_aborts (oc-yang:counter64) YANG Description: Number of aborted connections to the server. These do not include connections that are close gracefully. """ return self.__connection_aborts def _set_connection_aborts(self, v, load=False): """ Setter method for connection_aborts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_aborts (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_aborts is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_aborts() directly. YANG Description: Number of aborted connections to the server. These do not include connections that are close gracefully. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_aborts must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_aborts = t if hasattr(self, '_set'): self._set() def _unset_connection_aborts(self): self.__connection_aborts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_failures(self): """ Getter method for connection_failures, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_failures (oc-yang:counter64) YANG Description: Number of connection failures to the server """ return self.__connection_failures def _set_connection_failures(self, v, load=False): """ Setter method for connection_failures, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_failures (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_failures is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_failures() directly. YANG Description: Number of connection failures to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_failures must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_failures = t if hasattr(self, '_set'): self._set() def _unset_connection_failures(self): self.__connection_failures = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_timeouts(self): """ Getter method for connection_timeouts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_timeouts (oc-yang:counter64) YANG Description: Number of connection timeouts to the server """ return self.__connection_timeouts def _set_connection_timeouts(self, v, load=False): """ Setter method for connection_timeouts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_timeouts (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_timeouts is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_timeouts() directly. YANG Description: Number of connection timeouts to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_timeouts must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_timeouts = t if hasattr(self, '_set'): self._set() def _unset_connection_timeouts(self): self.__connection_timeouts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_messages_sent(self): """ Getter method for messages_sent, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_sent (oc-yang:counter64) YANG Description: Number of messages sent to the server """ return self.__messages_sent def _set_messages_sent(self, v, load=False): """ Setter method for messages_sent, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_sent (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_messages_sent is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_messages_sent() directly. YANG Description: Number of messages sent to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """messages_sent must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__messages_sent = t if hasattr(self, '_set'): self._set() def _unset_messages_sent(self): self.__messages_sent = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_messages_received(self): """ Getter method for messages_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_received (oc-yang:counter64) YANG Description: Number of messages received by the server """ return self.__messages_received def _set_messages_received(self, v, load=False): """ Setter method for messages_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_received (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_messages_received is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_messages_received() directly. YANG Description: Number of messages received by the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """messages_received must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__messages_received = t if hasattr(self, '_set'): self._set() def _unset_messages_received(self): self.__messages_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_errors_received(self): """ Getter method for errors_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/errors_received (oc-yang:counter64) YANG Description: Number of error messages received from the server """ return self.__errors_received def _set_errors_received(self, v, load=False): """ Setter method for errors_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/errors_received (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_errors_received is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_errors_received() directly. YANG Description: Number of error messages received from the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """errors_received must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__errors_received = t if hasattr(self, '_set'): self._set() def _unset_errors_received(self): self.__errors_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) name = __builtin__.property(_get_name) address = __builtin__.property(_get_address) timeout = __builtin__.property(_get_timeout) connection_opens = __builtin__.property(_get_connection_opens) connection_closes = __builtin__.property(_get_connection_closes) connection_aborts = __builtin__.property(_get_connection_aborts) connection_failures = __builtin__.property(_get_connection_failures) connection_timeouts = __builtin__.property(_get_connection_timeouts) messages_sent = __builtin__.property(_get_messages_sent) messages_received = __builtin__.property(_get_messages_received) errors_received = __builtin__.property(_get_errors_received) _pyangbind_elements = OrderedDict([('name', name), ('address', address), ('timeout', timeout), ('connection_opens', connection_opens), ('connection_closes', connection_closes), ('connection_aborts', connection_aborts), ('connection_failures', connection_failures), ('connection_timeouts', connection_timeouts), ('messages_sent', messages_sent), ('messages_received', messages_received), ('errors_received', errors_received), ]) class state(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-system - based on the path /system/aaa/server-groups/server-group/servers/server/state. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: Operational state data """ __slots__ = ('_path_helper', '_extmethods', '__name','__address','__timeout','__connection_opens','__connection_closes','__connection_aborts','__connection_failures','__connection_timeouts','__messages_sent','__messages_received','__errors_received',) _yang_name = 'state' _pybind_generated_by = 'container' def __init__(self, *args, **kwargs): helper = kwargs.pop("path_helper", None) if helper is False: self._path_helper = False elif helper is not None and isinstance(helper, xpathhelper.YANGPathHelper): self._path_helper = helper elif hasattr(self, "_parent"): helper = getattr(self._parent, "_path_helper", False) self._path_helper = helper else: self._path_helper = False self._extmethods = False self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) self.__address = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) self.__timeout = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) self.__connection_opens = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_closes = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_aborts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_failures = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__connection_timeouts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__messages_sent = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__messages_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) self.__errors_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path()+[self._yang_name] else: return ['system', 'aaa', 'server-groups', 'server-group', 'servers', 'server', 'state'] def _get_name(self): """ Getter method for name, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/name (string) YANG Description: Name assigned to the server """ return self.__name def _set_name(self, v, load=False): """ Setter method for name, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/name (string) If this variable is read-only (config: false) in the source YANG file, then _set_name is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_name() directly. YANG Description: Name assigned to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """name must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False)""", }) self.__name = t if hasattr(self, '_set'): self._set() def _unset_name(self): self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='string', is_config=False) def _get_address(self): """ Getter method for address, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/address (oc-inet:ip-address) YANG Description: Address of the authentication server """ return self.__address def _set_address(self, v, load=False): """ Setter method for address, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/address (oc-inet:ip-address) If this variable is read-only (config: false) in the source YANG file, then _set_address is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_address() directly. YANG Description: Address of the authentication server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """address must be of a type compatible with oc-inet:ip-address""", 'defined-type': "oc-inet:ip-address", 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False)""", }) self.__address = t if hasattr(self, '_set'): self._set() def _unset_address(self): self.__address = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'}),RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$'}),], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-inet:ip-address', is_config=False) def _get_timeout(self): """ Getter method for timeout, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/timeout (uint16) YANG Description: Set the timeout in seconds on responses from the AAA server """ return self.__timeout def _set_timeout(self, v, load=False): """ Setter method for timeout, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/timeout (uint16) If this variable is read-only (config: false) in the source YANG file, then _set_timeout is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_timeout() directly. YANG Description: Set the timeout in seconds on responses from the AAA server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """timeout must be of a type compatible with uint16""", 'defined-type': "uint16", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False)""", }) self.__timeout = t if hasattr(self, '_set'): self._set() def _unset_timeout(self): self.__timeout = YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False) def _get_connection_opens(self): """ Getter method for connection_opens, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_opens (oc-yang:counter64) YANG Description: Number of new connection requests sent to the server, e.g. socket open """ return self.__connection_opens def _set_connection_opens(self, v, load=False): """ Setter method for connection_opens, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_opens (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_opens is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_opens() directly. YANG Description: Number of new connection requests sent to the server, e.g. socket open """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_opens must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_opens = t if hasattr(self, '_set'): self._set() def _unset_connection_opens(self): self.__connection_opens = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-opens", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_closes(self): """ Getter method for connection_closes, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_closes (oc-yang:counter64) YANG Description: Number of connection close requests sent to the server, e.g. socket close """ return self.__connection_closes def _set_connection_closes(self, v, load=False): """ Setter method for connection_closes, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_closes (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_closes is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_closes() directly. YANG Description: Number of connection close requests sent to the server, e.g. socket close """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_closes must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_closes = t if hasattr(self, '_set'): self._set() def _unset_connection_closes(self): self.__connection_closes = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-closes", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_aborts(self): """ Getter method for connection_aborts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_aborts (oc-yang:counter64) YANG Description: Number of aborted connections to the server. These do not include connections that are close gracefully. """ return self.__connection_aborts def _set_connection_aborts(self, v, load=False): """ Setter method for connection_aborts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_aborts (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_aborts is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_aborts() directly. YANG Description: Number of aborted connections to the server. These do not include connections that are close gracefully. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_aborts must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_aborts = t if hasattr(self, '_set'): self._set() def _unset_connection_aborts(self): self.__connection_aborts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-aborts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_failures(self): """ Getter method for connection_failures, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_failures (oc-yang:counter64) YANG Description: Number of connection failures to the server """ return self.__connection_failures def _set_connection_failures(self, v, load=False): """ Setter method for connection_failures, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_failures (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_failures is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_failures() directly. YANG Description: Number of connection failures to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_failures must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_failures = t if hasattr(self, '_set'): self._set() def _unset_connection_failures(self): self.__connection_failures = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-failures", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_connection_timeouts(self): """ Getter method for connection_timeouts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_timeouts (oc-yang:counter64) YANG Description: Number of connection timeouts to the server """ return self.__connection_timeouts def _set_connection_timeouts(self, v, load=False): """ Setter method for connection_timeouts, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/connection_timeouts (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_connection_timeouts is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connection_timeouts() directly. YANG Description: Number of connection timeouts to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """connection_timeouts must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__connection_timeouts = t if hasattr(self, '_set'): self._set() def _unset_connection_timeouts(self): self.__connection_timeouts = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="connection-timeouts", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_messages_sent(self): """ Getter method for messages_sent, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_sent (oc-yang:counter64) YANG Description: Number of messages sent to the server """ return self.__messages_sent def _set_messages_sent(self, v, load=False): """ Setter method for messages_sent, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_sent (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_messages_sent is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_messages_sent() directly. YANG Description: Number of messages sent to the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """messages_sent must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__messages_sent = t if hasattr(self, '_set'): self._set() def _unset_messages_sent(self): self.__messages_sent = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_messages_received(self): """ Getter method for messages_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_received (oc-yang:counter64) YANG Description: Number of messages received by the server """ return self.__messages_received def _set_messages_received(self, v, load=False): """ Setter method for messages_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/messages_received (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_messages_received is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_messages_received() directly. YANG Description: Number of messages received by the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """messages_received must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__messages_received = t if hasattr(self, '_set'): self._set() def _unset_messages_received(self): self.__messages_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="messages-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) def _get_errors_received(self): """ Getter method for errors_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/errors_received (oc-yang:counter64) YANG Description: Number of error messages received from the server """ return self.__errors_received def _set_errors_received(self, v, load=False): """ Setter method for errors_received, mapped from YANG variable /system/aaa/server_groups/server_group/servers/server/state/errors_received (oc-yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_errors_received is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_errors_received() directly. YANG Description: Number of error messages received from the server """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """errors_received must be of a type compatible with oc-yang:counter64""", 'defined-type': "oc-yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False)""", }) self.__errors_received = t if hasattr(self, '_set'): self._set() def _unset_errors_received(self): self.__errors_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="errors-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='oc-yang:counter64', is_config=False) name = __builtin__.property(_get_name) address = __builtin__.property(_get_address) timeout = __builtin__.property(_get_timeout) connection_opens = __builtin__.property(_get_connection_opens) connection_closes = __builtin__.property(_get_connection_closes) connection_aborts = __builtin__.property(_get_connection_aborts) connection_failures = __builtin__.property(_get_connection_failures) connection_timeouts = __builtin__.property(_get_connection_timeouts) messages_sent = __builtin__.property(_get_messages_sent) messages_received = __builtin__.property(_get_messages_received) errors_received = __builtin__.property(_get_errors_received) _pyangbind_elements = OrderedDict([('name', name), ('address', address), ('timeout', timeout), ('connection_opens', connection_opens), ('connection_closes', connection_closes), ('connection_aborts', connection_aborts), ('connection_failures', connection_failures), ('connection_timeouts', connection_timeouts), ('messages_sent', messages_sent), ('messages_received', messages_received), ('errors_received', errors_received), ])
python
Stuck with the “howmanyofme not working” issue and need a quick fix? Here’s your handy checklist: - Is HowManyofMe.com stuck just for you, or is everyone facing the same problem? - Giving your browser a quick cleanup (clearing cache and cookies) might just be the magic trick sometimes. - Maybe your phone’s being moody? Try another device or switch between WiFi and mobile data. - Sometimes, websites like HowManyOfMe take short naps for maintenance. Waiting a bit might do the trick. Need a deeper dive? Keep scrolling for a detailed guide! We’ve all had moments when we’re curious about how many people might share our name. That’s where platforms like HowManyOfMe.com come into play. But what do you do when you’re met with the frustrating situation of “HowManyofMe not working” or you find HowManyofMe.com down? Fear not, because this guide will help you navigate through and solve this problem. Before diving into the technical fixes, let’s acknowledge something. Sometimes, despite our best efforts, websites have a mind of their own. So while you wait for HowManyOfMe.com to get its act together, how about exploring some other cool sites that might quench your curiosity? Here’s HowmanyOfMe alternatives options to choose from: - Name Statistics: Offers a detailed breakdown of names and their popularity across various regions. - Baby Name Guesser: While primarily designed for expecting parents, it provides insights into name frequencies and can guess a name based on inputted data. - Behind the Name: This platform not only provides name-related statistics but also delves into the history and etymology behind various names. - Forebears: An extensive platform that provides surname statistics, history, and global distribution. It can give you an idea of how common your surname is in different parts of the world. - Public Profiler’s World Names: This tool offers a global view of surname distribution, helping users understand the prevalence and origin of their surnames. - Names.org: This site provides name popularity charts, user comments, and other insights related to both first names and surnames. - Ancestry.com’s Last Name Meanings and Origins: While primarily a genealogy site, Ancestry offers insights into the history and origin of surnames, along with their distribution. - MooseRoots Name Popularity: This platform offers a visual representation of name popularity over time, based on U.S. Social Security data. A reliable internet connection is the backbone of any online activity. Issues with HowManyofMe.com might stem from your own network connectivity problems, which can range from minor glitches to more significant outages. - Perform a Speed Test: Use online tools to check your internet speed. This can help you determine if your connection is slower than usual. - Restart Your Router and Modem: Sometimes, simply restarting these devices can resolve connectivity issues. Unplug them, wait for a minute, and then plug them back in. - Check for Network Congestion: If many devices are connected to your network, it might slow down your internet speed. Disconnect some devices and try accessing the site again. - Contact Your ISP: If you suspect a broader issue with your internet service, reaching out to your ISP can provide insights and solutions. Web browsers are complex applications, and their performance can be affected by various factors like outdated versions, overloaded cache, or incompatible extensions. These factors can hinder your access to certain websites, including HowManyofMe.com. - Switch Browsers: If you’re using a browser like Chrome, try switching to Firefox, Safari, or Edge to see if the issue persists. - Clear Browser Data: Over time, your browser accumulates cache and cookies, which can sometimes cause loading issues. Clearing this data can refresh your browser’s ability to load websites properly. - Disable Extensions: Sometimes, browser extensions can interfere with how web pages load. Try disabling them temporarily to see if it resolves the issue. - Update Browser: Regularly updating your browser ensures you have the latest features and security patches, which can improve website compatibility. Like any digital service, HowManyofMe.com may occasionally undergo maintenance or updates, during which the site might be temporarily unavailable. This is a normal part of a website’s lifecycle, aimed at improving user experience. - Look for Announcements: Regularly check the website’s official social media pages or news sections for any scheduled maintenance updates. - Use Third-Party Services: Websites like DownDetector or IsItDownRightNow can provide real-time user reports and status updates for HowManyofMe.com. - Patience is Key: If the site is down for maintenance, it’s a waiting game. Check back periodically to see if the site is back online. Geographic restrictions or ISP blocking can sometimes prevent access to certain websites. A VPN (Virtual Private Network) can help bypass these restrictions by masking your IP address and routing your internet connection through servers in different locations. - Select a Reputable VPN Provider: Choose a VPN service known for its reliability and speed. Free VPNs might not offer the same level of service as paid ones. - Install and Connect: Follow the instructions provided by the VPN service to install and connect to a server. Choosing a server in a different country can sometimes yield better results. - Reattempt Access: With the VPN active, try accessing HowManyofMe.com again. If geographic restrictions were the issue, this should resolve it. When all else fails, reaching out to the support team of HowManyofMe.com can provide you with more specific assistance. They can offer insights into ongoing issues or guide you through more technical solutions. - Prepare Details of Your Issue: Before contacting support, note down any error messages, the browser you’re using, and the steps you’ve already tried. This information can be invaluable in diagnosing the problem. - Use the Official Contact Channels: Find the official contact form or email address on the HowManyofMe website. Avoid unofficial channels to ensure you’re getting accurate information. - Follow Up If Necessary: If you don’t receive a response within a reasonable timeframe, don’t hesitate to follow up. Remember, support teams can be busy, especially during widespread issues. Navigating through “HowManyofMe not working” issues can be a bit of a challenge, but with these detailed methods, you’re equipped to tackle the problem head-on. Whether it’s a simple fix like checking your internet connection or something more complex like contacting support, these steps will guide you towards a solution. Remember, patience and systematic troubleshooting are key to resolving such online issues. ALSO READ:
english
Sports daily El Mundo Deportivo reported Xavi went to Iran three times while he was playing for Qatari club Al Sadd, and so needed to apply for special permission to visit the United States. Xavi played the last game of his career in Tehran. Barca only realised they had a problem on Friday. They thought they had found a solution, but when they arrived at the airport, Xavi was not allowed on the plane and the team had to travel without him. Reports said Xavi should be able to fly on Monday and arrive in Miami in time to lead the final training session before the friendly against Inter Miami on Tuesday evening. Barcelona’s recent signings Raphinha, Andreas Christensen and Franck Kessie all travelled with the squad. Robert Lewandowski told German television on Saturday that he would be joining the Barcelona squad on the tour. Media reported he would undergo his medical in Miami. Barcelona will also face Juventus in Dallas on July 27.
english
{ "name": "<NAME>", "tel": "62567130", "fax": "62547160", "licensee": "ACE UROLOGY CLINIC & SURGERY", "licensePeriod": "30/12/2015 to 29/12/2017", "licenseClass": "[ 2 Years ( 2A ) ]", "hciCode": "15M0440", "address": "820 THOMSON ROAD, MOUNT ALVERNIA HOSPITAL MEDICAL CENTRE D, #07-56 Singapore 574623", "doctorInCharge": [ { "name": "<NAME>", "qualifications": [ "MBBS (University of New South Wales, Australia) 1998", "MRCSEd (Royal College of Surgeons of Edinburgh, United Kingdom) 2003", "M Med (Surg) (National University of Singapore, Singapore) 2004", "FAMS (Urology) (Academy of Medicine, Singapore) 2008", "FEBU (European Board of Urology, Greece) 2009", "FRCS (Urology) (Royal College of Physicians and Surgeons of Glasgow, United Kingdom) 2012" ], "specialties": [ "Urology" ] } ], "detailedServices": { "Specialist Medical": [ "Urology" ] } }
json
# Copyright 2017 British Broadcasting Corporation # # 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. import websocket import signal import sys import threading import json # This is a very thin wrapper around python WebSocketApp # to allow easy use with threading by inheriting threading.Thread class WebSocketClient(threading.Thread): daemon = True def __init__(self, wsAddr, sslopt=None): self.started = threading.Event() self.wsAddr = wsAddr self._keep_running = False threading.Thread.__init__(self) self.sslopt = sslopt def run(self): self._keep_running = True self.ws = websocket.WebSocketApp(self.wsAddr, on_message=self._on_message, on_error=self._on_error, on_close=self._on_close, on_open=self._on_open) while self._keep_running: self.__setstarted() self.ws.run_forever(sslopt=self.sslopt) def __setstarted(self): self.started.set() # These are just here to make the function signatures work # the user shouldn't be fiddling with the ws def _on_message(self, ws, message): self.onMessage(message) def _on_error(self, ws, error): self.onError(error) def _on_close(self, ws): self.onClose() def _on_open(self, ws): # Grab the websocket so we can use it to send later self.ws = ws self.onOpen() def onMessage(self, message): # over-ride this method in child class # to alter message handling behaviour pass def onError(self, error): # over-ride this method in child class # to alter error handling behaviour raise Exception(error) def onClose(self): # over-ride this method in child class # to alter actions when the websocket # is closed pass def onOpen(self): # over-ride this method in child class # to alter startup behaviour pass def sendJSON(self, message): self.ws.send(json.dumps(message)) def sendPlain(self, message): self.ws.send(message) def stop(self): self._keep_running = False self.ws.close() if __name__ == "__main__": # pragma: no cover websocketClient = WebSocketClient("ws://localhost:8090/ws/") def signal_handler(rxsignal, frame): websocketClient.stop() sys.exit(0) signal.signal(signal.SIGINT, signal_handler) websocketClient.run()
python
{"published": "2015-09-13T20:52:13Z", "media-type": "News", "title": "New McDonald\u2019s drive-through restaurant in Cork creates 70 jobs", "id": "c42dc0ca-8d22-4ff1-8451-42ede74fcb8e", "content": "\u20ac3m invested in Musgrave Park outlet which is built on part of rugby ground Rachel and <NAME>\u2019Donovan, from Bandon, using a touchscreen to order at the Musgrave Park McDonald\u2019s in Cork. Photograph: <NAME> Ciar\u00e1n Hancock\n\nTopics: Business Food <NAME> Donncha O Callaghan <NAME> McDonalds Ireland Musgrave Park More Topics Sun, Sep 13, 2015, 21:52 First published: Sun, Sep 13, 2015, 21:52 McDonald\u2019s has opened a new drive-through restaurant at Musgrave Park in Cork. \n\nThe \u20ac3 million investment and will create 70 new jobs, bringing the McDonald\u2019s workforce in Cork to more than 500. \n\nRugby star Donncha O\u2019Callaghan lined out for the opening of the restaurant, built on part of the famous rugby ground.\n\nOwner-operator <NAME> said Bantry-based company, Murnane & O\u2019Shea, constructed the restaurant. \n\nThe Musgrave Park outlet will bring the total number of McDonald\u2019s restaurants in Ireland to 88, employing more than 4,700 staff.", "source": "Irish Times"}
json
How Many Countries Are There in the World? Why Does the New Year Start on January 1? Do We Really Swallow Spiders in Our Sleep? Iconostasis in Archangel Cathedral (1505–08), the Kremlin, Moscow. Icon painting of Jesus Christ as Pantocrator. in these related Britannica articles:
english
<reponame>gonnzalo/crypto-market-chart .app-container { padding: 2rem 0; height: 100vh; overflow-x: hidden; } @media (max-width: 480px) { .app-container { padding: 1.5rem 0; } } @media (min-width: 768px) and (max-width: 1024px) { .app-container { padding: 0rem 0; display: flex; justify-content: center; align-items: center; } } @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) { .app-container { display: block; padding: 2rem 0; } } .app-wrapper { width: 90%; margin: 0 auto; } .header { display: flex; justify-content: space-between; align-items: center; } .switch-toggle { height: 40px; }
css
Posted On: NITI Aayog and Quality Council of India today launched the ‘National Program and Project Management Policy Framework’ (NPMPF), envisaged to bring radical reforms in the way infrastructure projects are executed in India. Union Minister for Road Transport and Highways and Micro, Small and Medium Enterprises Nitin Gadkari unveiled the Indian Infrastructure Body of Knowledge (InBoK), a book on the practice of program and project management in India, and launched the framework, along with Union Minister Piyush Goyal, NITI Aayog CEO Amitabh Kant, and QCI Chairman Adil Zainulbhai. Dignitaries from across the government, infrastructure sector, global project management companies, large contracting firms such as L&T India, PSUs, global and Indian development banks, etc., also participated in the event. The minister also stressed on accountability, monitoring, transparency and a corruption-free system, along with a fast-track decision-making process. ‘We need to find out ground reality problems, work on technical and financial qualifications, and ensure performance audit.’ He appreciated the importance of InBoK to serve as a common reference for all practitioners of the industry. Union Minister for Railways, Commerce and Industry, and Consumer Affairs Piyush Goyal touched upon the importance of infrastructure building for national development and improving the quality of life. ‘With Indian Railways adopting landmark reforms, and mega projects in the pipeline and investment worth Rs 50 lakh crore and more by 2030, this initiative is most opportune to bring about more transparency in procurement, enabling public-private partnerships through appropriate risk-sharing and establishing robust project governance.’ He also underscored that capable and certified professionals with an in-depth understanding of InBok would enable a transformation of the infrastructure landscape of India. ‘Monitoring and accountability will determine the fate and success of the project,’ he added. NITI Aayog CEO Amitabh Kant led the inaugural address, emphasizing on the significance of challenges to infrastructure in India and the importance of program and project management in addressing those. He stressed that the adoption of these practices will help achieve economic objectives through the coordination of multiple projects. India will require an investment of around $4.5 trillion by 2040 to develop the infrastructure for sustaining its economic growth. However, the challenges in infrastructure development that often obstruct the smooth execution of projects can be a detriment. Therefore, along with numerous initiatives by the Government and guidelines advocated by NITI Aayog towards improving performance of infrastructure projects, a task force was also constituted to lay down a national program and project management policy framework. This framework aims to formulate radical reforms in the way large and mega infrastructure projects are managed in India, with an action plan to: - Institutionalize and promote the profession of program and project management and build a workforce of such professionals, Quality Council of India Chairman Adil Zainulbhai presented the closing remarks with a vote of thanks to all the guests and gave a few details of the framework developed. He explained that the certification system under the framework links the scale and complexity of projects to competence of professionals. A self-paced learning system, rigorous and comprehensive exam at each level with continued professional development will serve as pillars of the framework. In the future, InBoK is envisioned to have extensions, which will be specific to each domain or industry for infrastructure, for example, a dedicated extension for roadways that captures issues and best practices specific to that sector. Lastly, to ensure this initiative maintains its momentum and makes an impact on projects being planned and implemented currently, a capability development program to create awareness around program and project management, as well as to provide capsule training for mission-critical projects, is imperative to increase the uptake and adoption of the practice.
english
use std::any::Any; use std::collections::hash_map::DefaultHasher; use std::hash::{Hash, Hasher}; use std::rc::Rc; use crate::object::{downcast, float, ptr_eq_plain, Exception, FnResult, Interface, Object}; use crate::vm::{Env, RTE}; use num_bigint::{BigInt, Sign}; use num_traits::cast::ToPrimitive; use num_traits::{Pow, Zero}; fn bigint_as_f64(x: &BigInt) -> f64 { match x.to_f64() { Some(value) => value, None => std::f64::NAN, } } pub struct Long { value: BigInt, } impl Long { #[allow(dead_code)] pub fn from_int(x: i32) -> Long { Long { value: BigInt::from(x), } } pub fn object_from_int(x: i32) -> Object { Object::Interface(Rc::new(Long { value: BigInt::from(x), })) } pub fn object_from_string(a: &[char]) -> Result<Object, ()> { let s: String = a.iter().collect(); match BigInt::parse_bytes(s.as_bytes(), 10) { Some(y) => Ok(Object::Interface(Rc::new(Long { value: y }))), None => Err(()), } } pub fn to_long(x: &Object) -> Result<Object, ()> { return match *x { Object::Int(x) => Ok(Long::object_from_int(x)), Object::String(ref s) => Long::object_from_string(&s.data), Object::Interface(ref x) => { if let Some(_) = x.as_any().downcast_ref::<Long>() { Ok(Object::Interface(x.clone())) } else { Err(()) } } _ => Err(()), }; } pub fn as_f64(&self) -> f64 { bigint_as_f64(&self.value) } pub fn try_as_int(&self) -> Result<i32, ()> { match self.value.to_i32() { Some(value) => Ok(value), None => Err(()), } } pub fn add_int_int(a: i32, b: i32) -> Object { let x = BigInt::from(a); return Object::Interface(Rc::new(Long { value: x + b })); } pub fn sub_int_int(a: i32, b: i32) -> Object { let x = BigInt::from(a); return Object::Interface(Rc::new(Long { value: x - b })); } pub fn mul_int_int(a: i32, b: i32) -> Object { let x = BigInt::from(a); return Object::Interface(Rc::new(Long { value: x * b })); } pub fn pow_int_uint(a: i32, b: u32) -> Object { let x = BigInt::from(a); return Object::Interface(Rc::new(Long { value: x.pow(b) })); } pub fn to_hex(&self) -> String { format!("{:x}", self.value) } } impl Interface for Long { fn as_any(&self) -> &dyn Any { self } fn type_name(&self, _env: &mut Env) -> String { "Long".to_string() } fn get_type(&self, env: &mut Env) -> FnResult { Ok(Object::Interface(env.rte().type_long.clone())) } fn to_string(self: Rc<Self>, _env: &mut Env) -> Result<String, Box<Exception>> { Ok(self.value.to_string()) } fn add(self: Rc<Self>, b: &Object, _env: &mut Env) -> FnResult { if let Object::Int(b) = *b { let value = self.value.clone() + b; return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Some(b) = downcast::<Long>(b) { let value = self.value.clone() + b.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Object::Float(b) = *b { let a = bigint_as_f64(&self.value); return Ok(Object::Float(a + b)); } else { return Ok(Object::unimplemented()); } } fn sub(self: Rc<Self>, b: &Object, _env: &mut Env) -> FnResult { if let Object::Int(b) = *b { let value = self.value.clone() - b; return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Some(b) = downcast::<Long>(b) { let value = self.value.clone() - b.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Object::Float(b) = *b { let a = bigint_as_f64(&self.value); return Ok(Object::Float(a - b)); } else { return Ok(Object::unimplemented()); } } fn mul(self: Rc<Self>, b: &Object, _env: &mut Env) -> FnResult { if let Object::Int(b) = *b { let value = self.value.clone() * b; return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Some(b) = downcast::<Long>(b) { let value = self.value.clone() * b.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Object::Float(b) = *b { let a = bigint_as_f64(&self.value); return Ok(Object::Float(a * b)); } else { return Ok(Object::unimplemented()); } } fn radd(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { if let Object::Int(a) = *a { let value = self.value.clone() + a; return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Object::Float(a) = *a { let b = bigint_as_f64(&self.value); return Ok(Object::Float(a + b)); } else { return env.type_error("Type error in a+b: cannot add a and b: Long."); } } fn rsub(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { if let Object::Int(a) = *a { let value = a - self.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Object::Float(a) = *a { let b = bigint_as_f64(&self.value); return Ok(Object::Float(a - b)); } else { return env.type_error("Type error in a-b: cannot subtract a and b: Long."); } } fn rmul(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { if let Object::Int(a) = *a { let value = self.value.clone() * a; return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Object::Float(a) = *a { let b = bigint_as_f64(&self.value); return Ok(Object::Float(a * b)); } else { return env.type_error("Type error in x*y: cannot multiply x and y: Long."); } } fn div(self: Rc<Self>, b: &Object, _env: &mut Env) -> FnResult { let a = bigint_as_f64(&self.value); match *b { Object::Int(b) => return Ok(Object::Float(a / float(b))), Object::Float(b) => return Ok(Object::Float(a / b)), _ => {} } if let Some(b) = downcast::<Long>(b) { let b = bigint_as_f64(&b.value); return Ok(Object::Float(a / b)); } Ok(Object::unimplemented()) } fn rdiv(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { let b = bigint_as_f64(&self.value); return match *a { Object::Int(a) => Ok(Object::Float(float(a) / b)), Object::Float(a) => Ok(Object::Float(a / b)), ref x => env.type_error1("Type error in x/y: cannot divide x by y: Long.", "x", x), }; } fn idiv(self: Rc<Self>, b: &Object, env: &mut Env) -> FnResult { if let Object::Int(b) = *b { if b == 0 { return env.value_error("Value error in a//b: b==0."); } // Todo: ensure floor division let value = self.value.clone() / b; return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Some(b) = downcast::<Long>(b) { if b.value == Zero::zero() { return env.value_error("Value error in a//b: b==0."); } // Todo: ensure floor division let value = self.value.clone() / b.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else { return env.type_error("Type error in a//b."); } } fn ridiv(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { if let Object::Int(a) = *a { if self.value == Zero::zero() { return env.value_error("Value error in a//b: b==0."); } // Todo: ensure floor division let value = a / self.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else { return env.type_error("Type error in a//b."); } } fn imod(self: Rc<Self>, b: &Object, env: &mut Env) -> FnResult { if let Object::Int(b) = *b { // Todo: ensure floor division let value = self.value.clone() % b; return Ok(Object::Interface(Rc::new(Long { value }))); } else if let Some(b) = downcast::<Long>(b) { // Todo: ensure floor division let value = self.value.clone() % b.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else { return env.type_error("Type error in a%b: a: Long and b."); } } fn rimod(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { if let Object::Int(a) = *a { // Todo: ensure floor division let value = a % self.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } else { return env.type_error("Type error in a%b: a: Long and b."); } } fn pow(self: Rc<Self>, b: &Object, env: &mut Env) -> FnResult { if let Object::Int(b) = *b { if b < 0 { return env.value_error("Value error in a^b: b<0."); } let value = self.value.pow(b as u32); return Ok(Object::Interface(Rc::new(Long { value }))); } else { return env.type_error("Type error in a^b."); } } fn eq_plain(&self, b: &Object) -> bool { if let Object::Int(b) = *b { return self.value == BigInt::from(b); } else if let Some(b) = downcast::<Long>(b) { return self.value == b.value; } else { return false; } } fn req_plain(&self, a: &Object) -> bool { if let Object::Int(a) = *a { return self.value == BigInt::from(a); } else if let Some(a) = downcast::<Long>(a) { return self.value == a.value; } else { return false; } } fn eq(self: Rc<Self>, b: &Object, _env: &mut Env) -> FnResult { return Ok(Object::Bool(self.eq_plain(b))); } fn req(self: Rc<Self>, a: &Object, _env: &mut Env) -> FnResult { return Ok(Object::Bool(self.req_plain(a))); } fn lt(self: Rc<Self>, b: &Object, env: &mut Env) -> FnResult { if let Object::Int(b) = *b { return Ok(Object::Bool(self.value < BigInt::from(b))); } else if let Some(b) = downcast::<Long>(b) { return Ok(Object::Bool(self.value < b.value)); } else { return env.type_error("Type error in a<b."); } } fn le(self: Rc<Self>, b: &Object, env: &mut Env) -> FnResult { if let Object::Int(b) = *b { return Ok(Object::Bool(self.value <= BigInt::from(b))); } else if let Some(b) = downcast::<Long>(b) { return Ok(Object::Bool(self.value <= b.value)); } else { return env.type_error("Type error in a<=b."); } } fn rlt(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { if let Object::Int(a) = *a { return Ok(Object::Bool(BigInt::from(a) < self.value)); } else if let Some(a) = downcast::<Long>(a) { return Ok(Object::Bool(a.value < self.value)); } else { return env.type_error("Type error in a<b."); } } fn rle(self: Rc<Self>, a: &Object, env: &mut Env) -> FnResult { if let Object::Int(a) = *a { return Ok(Object::Bool(BigInt::from(a) <= self.value)); } else if let Some(a) = downcast::<Long>(a) { return Ok(Object::Bool(a.value <= self.value)); } else { return env.type_error("Type error in a<b."); } } fn abs(self: Rc<Self>, _env: &mut Env) -> FnResult { let value = if self.value < Zero::zero() { -self.value.clone() } else { self.value.clone() }; return Ok(Object::Interface(Rc::new(Long { value }))); } fn sgn(self: Rc<Self>, _env: &mut Env) -> FnResult { let sign: i32 = match self.value.sign() { Sign::Plus => 1, Sign::Minus => -1, Sign::NoSign => 0, }; return Ok(Object::Int(sign)); } fn neg(self: Rc<Self>, _env: &mut Env) -> FnResult { let value = -self.value.clone(); return Ok(Object::Interface(Rc::new(Long { value }))); } fn is_instance_of(&self, type_obj: &Object, rte: &RTE) -> bool { if let Object::Interface(p) = type_obj { ptr_eq_plain(p, &rte.type_long) } else { false } } fn hash(&self) -> u64 { let mut hasher = DefaultHasher::new(); self.value.hash(&mut hasher); return hasher.finish(); } } fn to_bigint(x: &Object) -> Result<BigInt, ()> { if let Object::Int(x) = *x { return Ok(BigInt::from(x)); } else if let Some(x) = downcast::<Long>(x) { return Ok(x.value.clone()); } else { return Err(()); } } pub fn pow_mod(env: &mut Env, a: &Object, n: &Object, m: &Object) -> FnResult { let a = match to_bigint(a) { Ok(x) => x, Err(()) => { return env.type_error("Type error in pow(a,n,m): expected a of type Int or Long.") } }; let n = match to_bigint(n) { Ok(x) => x, Err(()) => { return env.type_error("Type error in pow(a,n,m): expected n of type Int or Long.") } }; let m = match to_bigint(m) { Ok(x) => x, Err(()) => { return env.type_error("Type error in pow(a,n,m): expected m of type Int or Long.") } }; if n < Zero::zero() { return env.value_error("Value error in pow(a,n,m): n<0."); } return Ok(Object::Interface(Rc::new(Long { value: a.modpow(&n, &m), }))); }
rust
<reponame>BlackYps/faf-java-api package com.faforever.api.data.domain; import com.faforever.api.data.checks.IsEntityOwner; import com.faforever.api.data.checks.Prefab; import com.faforever.api.security.elide.permission.AdminAccountBanCheck; import com.faforever.api.security.elide.permission.AdminAccountNoteCheck; import com.faforever.api.security.elide.permission.ReadAccountPrivateDetailsCheck; import com.faforever.api.security.elide.permission.ReadUserGroupCheck; import com.fasterxml.jackson.annotation.JsonIgnore; import com.yahoo.elide.annotation.ReadPermission; import com.yahoo.elide.annotation.UpdatePermission; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.ToString; import org.hibernate.annotations.BatchSize; import javax.persistence.Column; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.ManyToMany; import javax.persistence.MappedSuperclass; import javax.persistence.OneToMany; import javax.persistence.Transient; import java.time.OffsetDateTime; import java.util.HashSet; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; @MappedSuperclass @Data @NoArgsConstructor @EqualsAndHashCode(onlyExplicitlyIncluded = true) @ToString(onlyExplicitlyIncluded = true) public abstract class Login implements DefaultEntity, OwnableEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") @EqualsAndHashCode.Include @ToString.Include private Integer id; @Column(name = "create_time") private OffsetDateTime createTime; @Column(name = "update_time") private OffsetDateTime updateTime; @Column(name = "login") @EqualsAndHashCode.Include @ToString.Include protected String login; @Column(name = "email") @ReadPermission(expression = IsEntityOwner.EXPRESSION + " OR " + ReadAccountPrivateDetailsCheck.EXPRESSION) private String email; @Column(name = "steamid") @ReadPermission(expression = IsEntityOwner.EXPRESSION + " OR " + ReadAccountPrivateDetailsCheck.EXPRESSION) private String steamId; @OneToMany @JoinTable(name = "unique_id_users", joinColumns = @JoinColumn(name = "user_id"), inverseJoinColumns = @JoinColumn(name = "uniqueid_hash", referencedColumnName = "hash") ) @ReadPermission(expression = ReadAccountPrivateDetailsCheck.EXPRESSION) private Set<UniqueId> uniqueIds; @Column(name = "user_agent") private String userAgent; @OneToMany(mappedBy = "player", fetch = FetchType.EAGER) // Permission is managed by BanInfo class @UpdatePermission(expression = AdminAccountBanCheck.EXPRESSION) @BatchSize(size = 1000) private Set<BanInfo> bans = new HashSet<>(0); @OneToMany(mappedBy = "player", fetch = FetchType.EAGER) @UpdatePermission(expression = AdminAccountNoteCheck.EXPRESSION) @BatchSize(size = 1000) private Set<UserNote> userNotes = new HashSet<>(0); @ReadPermission(expression = IsEntityOwner.EXPRESSION + " OR " + ReadUserGroupCheck.EXPRESSION) @UpdatePermission(expression = Prefab.ALL) @ManyToMany(mappedBy = "members") @BatchSize(size = 1000) private Set<UserGroup> userGroups; @Column(name = "ip") @ReadPermission(expression = IsEntityOwner.EXPRESSION + " OR " + ReadAccountPrivateDetailsCheck.EXPRESSION) private String recentIpAddress; @Column(name = "last_login") @ReadPermission(expression = IsEntityOwner.EXPRESSION + " OR " + ReadAccountPrivateDetailsCheck.EXPRESSION) private OffsetDateTime lastLogin; @Transient public Set<BanInfo> getActiveBans() { return bans.stream().filter(ban -> ban.getBanStatus() == BanStatus.BANNED).collect(Collectors.toSet()); } @Transient public Optional<BanInfo> getActiveBanOf(BanLevel banLevel) { return getActiveBans().stream() .filter(ban -> ban.getLevel() == banLevel) .findFirst(); } @Transient public boolean isGlobalBanned() { return getActiveBans().stream().anyMatch(ban -> ban.getLevel() == BanLevel.GLOBAL); } @Override @Transient @JsonIgnore public Login getEntityOwner() { return this; } }
java
<reponame>asmosel/LucyDB<gh_stars>0 body{ font-family: 'Open Sans', sans-serif; } h1{ font-weight: 700; } h2{ font-weight: 600; } h3{ font-weight: 400; } p{ font-weight: 300; }
css
package com.sj.mall.coupon.dao; import com.sj.mall.coupon.entity.SeckillPromotionEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 秒杀活动 * * @author shuaiju * @email <EMAIL> * @date 2020-06-04 17:46:59 */ @Mapper public interface SeckillPromotionDao extends BaseMapper<SeckillPromotionEntity> { }
java
According to reports from the Mirror, Stuart Broad’s knee injury might force England head coach Peter Moores to rest his new-ball bowler in the 4th Test match against India at Manchester. The 28-year-old missed the limited overs fixtures against Sri Lanka and West Indies this season owing to tendinitis in his right knee and it is reported that he is yet to recover completely. The bowler, who recently joined an elite list with fellow pacer James Anderson as the third pair to register 500 Test wickets, survived the Rose Bowl Test, despite the recurrence of his knee problem. It is also learnt that the right-arm seamer’s problems are very severe and has hot baths nearly every night in pursuit of some sleep. Stuart, the son of former English international Chris Broad, has picked up 10 wickets in the series so far. There is no official statement released yet regarding his fitness, but the intense pain Broad is undergoing because of his chromic knee problem is definitely a concern for the England team management. With the series tied at 1-1 and with 2 more matches to play in the series, the fourth Test will be the most crucial one in the series. It can also be noted that India’s frontline pacer Bhuvneshwar Kumar has an injury scare as well, with skipper Mahendra Singh Dhoni admitting that the Uttar Pradesh bowler is “tired” due to his swollen ankle. Broad is the fourth bowler to suffer fitness problems in the middle of this series after Ishant Sharma missed the last Test with a “sore leg” and Liam Plunkett (left ankle discomfort). Steven Finn has been named as the replacement for Plunkett in England’s squad for the fourth Test.
english
Jaikara Baba Jito Da Bolo Shradha Naal song is a Dogri devotional song from the Main Bhi Jhiri Mele Jana released on 2016. Music of Jaikara Baba Jito Da Bolo Shradha Naal song is composed by Arvind Kumar. Jaikara Baba Jito Da Bolo Shradha Naal was sung by Amrit Pal, Babli Bawa. Download Jaikara Baba Jito Da Bolo Shradha Naal song from Main Bhi Jhiri Mele Jana on Raaga.com.
english
<gh_stars>0 import {Store} from './store'; // TODO A faire export const Rdc: Store = { currency: '€', labels: { captcha: { container: 'body', text: ['entrez les caractères que vous voyez ci-dessous'] }, inStock: [ { container: '#add_to_cart_session', text: ['Ajouter au panier'] }, { container: '.ProductBuyBox', text: ['En stock en ligne'] } ], outOfStock: [ { container: '.img-responsive', text: [''] }, { container: '.ProductBuyBox', text: ['Indisponible'] } ], maxPrice: { container: '.priceBlock-init-g' } }, links: [ { brand: 'test:brand', model: 'test:model', series: 'test:series', url: 'https://www.micromania.fr/manette-sans-fil-xbox-one-54977.html' }, { brand: 'sony', model: 'ps5 console', series: 'sonyps5c', url: 'https://www.culture.leclerc/jeux-video-u/playstation-5-u/playstation-5-play-has-no-limit-b' }, { brand: 'sony', model: 'ps5 digital', series: 'sonyps5de', url: 'https://www.culture.leclerc/jeux-video-u/playstation-5-u/consoles-u/console-playstation-5---edition-digitale-ps5-0711719395300-pr' } ], name: 'rdc' };
typescript
Mishra has been part of the Indian team in the last two series against Sri Lanka and South Africa and has performed very well in the chances he has been given. he performed well in Sri Lanka with both bat and ball and supported Ravichandran Ashwin quite well. He was also part of the team in the home series against South Africa. India won the series in Sri Lanka 2-1 and recently registered a comfortable 3-0 series win in the Test series against South Africa as well. This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful. Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings. If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
english
<gh_stars>1-10 package com.softicar.platform.emf.management; import com.softicar.platform.common.container.comparator.OrderDirection; import com.softicar.platform.common.container.pair.Pair; import com.softicar.platform.common.core.interfaces.Consumers; import com.softicar.platform.emf.attribute.IEmfAttribute; import com.softicar.platform.emf.data.table.EmfDataTableDivBuilder; import com.softicar.platform.emf.data.table.IEmfDataTableDiv; import com.softicar.platform.emf.table.IEmfTable; import com.softicar.platform.emf.table.row.IEmfTableRow; import java.util.Objects; import java.util.function.Consumer; public class EmfManagementDataTableDivBuilder<R extends IEmfTableRow<R, P>, P, S> { private final IEmfTable<R, P, S> entityTable; private final EmfManagementDataTable<R, ?, S> dataTable; private final EmfDataTableDivBuilder<R> builder; private Consumer<EmfDataTableDivBuilder<R>> dataTableDivCustomizer; public EmfManagementDataTableDivBuilder(IEmfTable<R, P, S> entityTable, EmfManagementDataTable<R, ?, S> dataTable) { this.entityTable = entityTable; this.dataTable = dataTable; this.builder = new EmfDataTableDivBuilder<>(dataTable); this.dataTableDivCustomizer = Consumers.noOperation(); } public EmfManagementDataTableDivBuilder<R, P, S> setDataTableDivCustomizer(Consumer<EmfDataTableDivBuilder<R>> dataTableDivCustomizer) { this.dataTableDivCustomizer = Objects.requireNonNull(dataTableDivCustomizer); return this; } public IEmfDataTableDiv<R> build() { builder.setActionColumnHandler(new EmfManagementActionColumnHandler<>(entityTable)); builder.setRowCustomizer(new EmfManagementDataTableRowCustomizer<>()); builder.addTableMarker(entityTable); builder.addTableDivMarker(entityTable); dataTableDivCustomizer.accept(builder); dataTable.setColumnHandlers(builder); dataTable.addColumnMakers(builder); entityTable.getManagementConfiguration().getOrderBys().forEach(this::addOrderByToBuilder); entityTable.getManagementConfiguration().getRowCustomizer().ifPresent(builder::setRowCustomizer); return builder.build(); } private void addOrderByToBuilder(Pair<IEmfAttribute<R, ?>, OrderDirection> orderBy) { dataTable.addOrderBy(builder, orderBy.getFirst(), orderBy.getSecond()); } }
java
<gh_stars>10-100 # -*- coding: utf-8 -*- # # <NAME> # orthologue # (c) 1998-2021 all rights reserved # class Parser: """ The base class for parsers """ # types from .exceptions import ParsingError, SyntaxError, TokenizationError # meta methods def __init__(self, **kwds): # chain up super().__init__(**kwds) # build my scanner self.scanner = self.lexer() # all done return # implementation details lexer = None # my scanner factory scanner = None # my scanner instance # end of file
python
<gh_stars>1-10 #include "simple_rect_uvs.h" #include "solar/math/size.h" #include "solar/math/rect.h" #include "solar/utility/type_convert.h" namespace solar { simple_rect_uvs::simple_rect_uvs() : _left_u(0.f) , _top_v(0.f) , _right_u(1.f) , _bottom_v(1.f) { } simple_rect_uvs::simple_rect_uvs(const size& texture_size, const rect& texel_box) : _left_u(0.f) , _top_v(0.f) , _right_u(1.f) , _bottom_v(1.f) { if (texture_size._width > 0 && texture_size._height > 0) { _left_u = int_to_float(texel_box.get_left()) / int_to_float(texture_size._width); _top_v = int_to_float(texel_box.get_top()) / int_to_float(texture_size._height); _right_u = int_to_float(texel_box.get_right()) / int_to_float(texture_size._width); _bottom_v = int_to_float(texel_box.get_bottom()) / int_to_float(texture_size._height); } } float simple_rect_uvs::get_left_u() const { return _left_u; } float simple_rect_uvs::get_right_u() const { return _right_u; } float simple_rect_uvs::get_top_v() const { return _top_v; } float simple_rect_uvs::got_bottom_v() const { return _bottom_v; } uv simple_rect_uvs::get_top_left() const { return uv(_left_u, _top_v); } uv simple_rect_uvs::get_top_right() const { return uv(_right_u, _top_v); } uv simple_rect_uvs::get_bottom_right() const { return uv(_right_u, _bottom_v); } uv simple_rect_uvs::get_bottom_left() const { return uv(_left_u, _bottom_v); } }
cpp
I have Windows XP Pro SP2 installed in my computer. My brother has Win 98 SE on his computer. I wanted to share some files. I wanted to use my telephone line to do that. I used Hyperterminal. But I got very slow speed (18-30 Kbps). It took abot half an hour to share 2.5 Mb files. How speed can Hyperterminal be and how can speed be increased??
english
class interface {}
javascript
<filename>src/lang_items.rs //! Certain language items needed with the usage of `#![no_std]` use core; #[no_mangle] #[lang = "eh_personality"] /// These functions are used by the compiler, but not for a bare-bones hello world. These are /// normally provided by libstd. pub extern "C" fn rust_eh_personality() {} #[no_mangle] #[lang = "eh_unwind_resume"] /// This function may be needed based on the compilation target. pub extern "C" fn rust_eh_unwind_resume() {} #[no_mangle] #[lang = "panic_impl"] /// Panic entry function pub extern "C" fn rust_begin_panic(_info: &core::panic::PanicInfo) -> ! { // Try to do a segementation fault let _ = *(core::ptr::null::<i32>()); // Loop forever loop {} }
rust
<reponame>EvertEt/types-ol<filename>@types/ol/layer/BaseTile.d.ts import { ObjectEvent } from '../Object'; import PluggableMap from '../PluggableMap'; import { EventsKey, ListenerFunction } from '../events'; import BaseEvent from '../events/Event'; import { Extent } from '../extent'; import RenderEvent from '../render/Event'; import TileSource from '../source/Tile'; import Layer from './Layer'; export type TBaseTileLayerBaseEventTypes = 'change' | 'error'; export type TBaseTileLayerObjectEventTypes = | 'change:extent' | 'change:maxResolution' | 'change:maxZoom' | 'change:minResolution' | 'change:minZoom' | 'change:opacity' | 'change:preload' | 'change:source' | 'change:useInterimTilesOnError' | 'change:visible' | 'change:zIndex' | 'propertychange'; export type TBaseTileLayerRenderEventTypes = 'postrender' | 'prerender'; export interface Options<TileSourceType extends TileSource = TileSource> { className?: string; opacity?: number; visible?: boolean; extent?: Extent; zIndex?: number; minResolution?: number; maxResolution?: number; minZoom?: number; maxZoom?: number; preload?: number; source?: TileSourceType; map?: PluggableMap; useInterimTilesOnError?: boolean; properties?: Record<string, any>; } export default class BaseTileLayer<TileSourceType extends TileSource = TileSource> extends Layer<TileSourceType> { constructor(opt_options?: Options<TileSourceType>); /** * Return the level as number to which we will preload tiles up to. */ getPreload(): number; /** * Whether we use interim tiles on error. */ getUseInterimTilesOnError(): boolean; /** * Set the level as number to which we will preload tiles up to. */ setPreload(preload: number): void; /** * Set whether we use interim tiles on error. */ setUseInterimTilesOnError(useInterimTilesOnError: boolean): void; on(type: TBaseTileLayerBaseEventTypes, listener: ListenerFunction<BaseEvent>): EventsKey; on(type: TBaseTileLayerBaseEventTypes[], listener: ListenerFunction<BaseEvent>): EventsKey[]; once(type: TBaseTileLayerBaseEventTypes, listener: ListenerFunction<BaseEvent>): EventsKey; once(type: TBaseTileLayerBaseEventTypes[], listener: ListenerFunction<BaseEvent>): EventsKey[]; un( type: TBaseTileLayerBaseEventTypes | TBaseTileLayerBaseEventTypes[], listener: ListenerFunction<BaseEvent>, ): void; on(type: TBaseTileLayerObjectEventTypes, listener: ListenerFunction<ObjectEvent>): EventsKey; on(type: TBaseTileLayerObjectEventTypes[], listener: ListenerFunction<ObjectEvent>): EventsKey[]; once(type: TBaseTileLayerObjectEventTypes, listener: ListenerFunction<ObjectEvent>): EventsKey; once(type: TBaseTileLayerObjectEventTypes[], listener: ListenerFunction<ObjectEvent>): EventsKey[]; un( type: TBaseTileLayerObjectEventTypes | TBaseTileLayerObjectEventTypes[], listener: ListenerFunction<ObjectEvent>, ): void; on(type: TBaseTileLayerRenderEventTypes, listener: ListenerFunction<RenderEvent>): EventsKey; on(type: TBaseTileLayerRenderEventTypes[], listener: ListenerFunction<RenderEvent>): EventsKey[]; once(type: TBaseTileLayerRenderEventTypes, listener: ListenerFunction<RenderEvent>): EventsKey; once(type: TBaseTileLayerRenderEventTypes[], listener: ListenerFunction<RenderEvent>): EventsKey[]; un( type: TBaseTileLayerRenderEventTypes | TBaseTileLayerRenderEventTypes[], listener: ListenerFunction<RenderEvent>, ): void; }
typescript
export interface Options { readonly apiVersion: string; } export declare function generateAllApiObjects(outdir: string, options: Options): Promise<void>;
typescript
Hitay an me-atlo an tulaꞌ John ja mitolong han oha an khayyum na an hi Gayus an pangpangulun chi namati. Dayawona hi Gayo khapo ta khuna mangiliyon an amin hana namati. Ja tukhunona hi Gayus ta achi munchomoꞌ ay Diotrefes, ti napukhit hini khuna aton. 1 Ha-in hi John an oha an pangpangulun chi namati. Tayya an muntula-aꞌ ay he-a, Gayus, ti umannung an podpodhoꞌ he-a. 2 Akhiꞌ, khun u ekalalakhan he-a ta pomhod hini piꞌtakhuwam. Ja alom adniꞌ ja ma-id ar-ali ay he-a, ja anilaꞌ an amat hina khu ay ni pammatim. 3 Otong chi pun-an-anlaaꞌ ti gwa hana ibpfa ta-o an namati an narpu hina gwachaan ju ja tihtikhuwan cha hini khun mu aton an mangtortoloy an miꞌ-unud ay ni umannung an Tukhun Apo Jos, ja an miꞌtakhu ay ni podhona. 4 Ti ma-id uchumna hi pun-an-anlaaꞌ nu pfu-un hini pangngolaꞌ an hana impfilang u hi empfapfalay hi pammati ja khun cha etortoloy an miꞌ-unud ay ni umannung an Tukhun. 5 Akhiꞌ, maphod hini khun mu aton an mummangili hay hana ibpfa ta-o an namati. Ti, anong un mu agkhuy anila chicha, ja khun a tomolong. 6 Ti impa-innila cha ay chaꞌmi an namati heto hini namenhod mu ay chicha. Maphod nu atom an amin chi mapfalin mu an tomolong ay chicha ja hana uchumna, ti tamun Apo Jos hini khun cha aton. 7 Ti hi Hesu Kristo chi khun cha ituchu hay hana khun cha omajan, ja ma-id tolong hi ma-ala cha hay hana agkhuy namati ay Apo Jos. 8 Hotti gwa ay chita-o an namati ay Kristo an mummangili ay chicha ta muntitinnolong ta-o ay ni aton an mangpa-innila ay ni umannung an tukhun Apo Jos. 9 Gwacha chin namenghan an nuntula-aꞌ ay chaꞌju an namati hina muti hi Diotrefes ja agkhuy na enegngor, ti achi na apfuluton hini kalintikhan mi an mumpangulu. Ti hay podhona ja hijay mumpfalin hi pangulu ju. 10 Hotti nu umaliyaꞌ hina, pun-aliꞌ hana napukhit an inali na an mamaꞌ-i ay ha-in. Ja achi angkhay hitay, muti achi na pay khun mangiliyon hana i-ibpfa an namati an khun umali hina. Ja empagwa na khu hana namati an mummangili ay chicha, ja aton cha ayya ja epagwa na chicha an miꞌ-amung ay chaꞌju. 11 Akhiꞌ, achim unuchon hana mangat hi napukhit ta hay hana mangat hi maphod chi unuchom. Hini mangat hi maphod ja empfalay Apo Jos, muti hini mangat hi napukhit ja ma-id anila na ay Apo Jos. 12 Hi Demetrius chi oha an khun cha allon an maphod an takhu. Ja umannung hitay ti matikhaw ay ni piꞌtakhuwana. Ja anong un chaꞌmi, ja tihtikhuwan mi an maphod hija an takhu, ja anila ju an umannung hini khun mi allon. 13 Cho-or pay hana podhoꞌ an allon ay he-a, muti achiꞌ podhon an itulaꞌ. 14 Ti hay nenomnom u ja umaliyaꞌ hina an mannig ay he-a ta un taot munhapit. 15 Hi Apo Jos chi mangchat hi pomhochan ni piꞌtakhuwam. Omod a anu an allon hato a-akhi heto. Ja oha-ohaom khu an pakumustaan hana a-akhi hina.
english
<gh_stars>100-1000 import os import json from peewee import prefetch, fn from datetime import datetime, date from flask import Blueprint, render_template, request, url_for, jsonify from ..utils import * bp = Blueprint('misc_bp', __name__) @bp.route('/login') def login(): return render_template('login.html') if not g.me else redirect('/') @bp.route('/register') def register(): return render_template('register.html') if not g.me else redirect('/') @bp.route('/') @login_required def index(): return redirect('/match') if not g.me.is_admin else redirect('/admin') @bp.route('/num-tasks-unfinished') @login_required def num_tasks_unfinished(): num = Task.select().where(Task.finished == False).count() return jsonify(num) @bp.route('/import-all', methods=['POST']) @admin_required def import_all(): basepath = 'data_labelling/results/input' count = 0 def import_one(path): with open(path, 'r') as f: data = json.load(f) def f(options): items = [] for goal in options['goals']: field = goal['领域'] _id = goal['id'] kv = goal.get('约束条件', []) + goal.get('需求信息', []) + goal.get('预订信息', []) for k, v in kv: items.append([_id, field, k, v]) options['items'] = items return options count = 0 for x in data: Task.create(content=f(x)) count += 1 return count for filename in os.listdir(basepath): if not filename.endswith('.json'): continue fullpath = os.path.join(basepath, filename) try: count += import_one(fullpath) except: pass try: os.remove(fullpath) except: pass return str(count) @bp.route('/export-all', methods=['POST']) @admin_required def export_all(): basepath = 'data_labelling/results/output' n = Task.select(fn.Max(Task.id)).scalar() step = 100 class JSONEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, datetime): return obj.strftime('%Y-%m-%d %H:%M:%S') elif isinstance(obj, date): return obj.strftime('%Y-%m-%d') else: return json.JSONEncoder.default(self, obj) count = 0 files = [] for i in range(0, n, step): j = min(i + step, n) messages = Message.select().order_by(Message.id) rooms = Room.select().where((Room.status_code == Room.Status.SUCCESS.value) & (Room.task > i) & (Room.task <= j)).order_by(Room.task) rooms = prefetch(rooms, messages) data = [] for room in rooms: data.append({ 'task': room.task_id, 'user': [room.user0_id, room.user1_id], 'messages': list(map(lambda msg: dict({ 'role': msg.role, 'content': msg.content, 'payload': msg.payload, 'created_at': msg.created_at }), room.messages)), 'created_at': room.created_at }) count += 1 fullpath = os.path.join(basepath, '%s.json' % j) with open(fullpath, 'w', encoding='utf-8') as f: json.dump(data, f, cls=JSONEncoder, indent=4, ensure_ascii=False) files.append(fullpath) zip_file = os.path.join(basepath, 'all.zip') try: os.remove(zip_file) except: pass os.system('zip -j %s %s' % (zip_file, ' '.join(files))) return str(count) @bp.route('/remove-waiting-tasks', methods=['POST']) @admin_required def remove_waiting_tasks(): Task.delete().where(Task.id.not_in(Room.select(Task.id).where(Room.task == Task.id))).execute() return 'OK'
python
116/7 (17. 0 ov) 119/4 (16. 1 ov) 172/7 (20. 0 ov) 157 (20. 0 ov) There have been numerous threats to get a tour called off, but this was probably the most sinister. Under its current code of conduct, the ICC were unable to impose more than a full-match fine and a one-Test ban on Smith under its current code of conduct, unlike the more stringent penalty since levied by Cricket Australia. Gwynn, an Irishman, topped the English batting charts in 1895. An emotional Smith and Bancroft addressed the press after their arrival in Australia. Warner issued an apology through his Instagram account. Steven Smith accepted all the criticism thrown his way, and stated that 'it was a serious error of judgement' on his part to let this (ball-tampering) happen. As part of the Don Argus review, a leadership consultant was brought in 2011 to help then newly appointed-captain Michael Clarke develop the skills he needed to head the country's most important sporting team. With the two big guns of international cricket not participating in IPL, the doors have opened for many others. Steven Smith's one-year ban over the ball-tampering scandal is not the first time a national skipper has been removed for a reason. The fallout from the crisis has seen David Warner being dumped by sponsors ASICS and LG.
english
Errol Spence Jr. was defeated by Terence Crawford in stunning fashion last weekend. The pair of welterweight greats went head-to-head in a clash for the ages, with both men being on the pound-for-pound top 10 list entering the fight. Neither man had tasted defeat in the ring prior to their fight, and Crawford handed 'The Truth' his first loss in devastating fashion, winning via TKO in Round 9. None of Errol Spence Jr.'s previous 28 opponents had been able to dominate him, but 'Bud' proved to be on a different level to the rest of his competition with an immense performance. Former WBC welterweight champion Shawn Porter, who has faced both Spence Jr. and Crawford, recently shared his thoughts on their bout with TMZ Sports. Porter noted that 'The Truth' would need to verbalize his interest in a rematch with 'Bud' in order to activate the rematch clause in their contract. Shawn Porter also stated that Errol Spence Jr. certainly has the tools to beat Terence Crawford, particularly if the next bout is at 154 pounds as opposed to their first bout which took place at 147 pounds. He said: "[Spence Jr.] has to say, 'I wanna move up and I want to have this rematch.' If he doesn't say that, then he hasn't activated that rematch clause. He's gonna go home, gonna talk to his team, they're gonna really analyze this and figure it out. I'm an advocate for the rematch, I believe wholeheartedly in Errol Spence Jr... He has the ability to make the adjustments, he has the ability to come in stronger, especially at 154 [pounds]. Mentally he's so strong that I think this is just a wrinkle on his career. And I think he wants to fix that wrinkle." Watch the video below from 2:35: Errol Spence Jr. indicated on his Instagram bio that he would be moving up to super welterweight (154 pounds), but Terence Crawford is yet to share his thoughts on a rematch. Following Errol Spence Jr.'s loss to Terence Crawford last weekend, rumors began emerging that 'The Truth' has stayed at welterweight for too long and he was struggling to make the weight effectively. The one-sided nature of Crawford's victory led many to believe that something had to have been wrong with Spence Jr. Theories emerged that 'The Truth' was weight drained heading into fight night, which hampered his performance. Terence Crawford's trainer, Brian McIntyre, recently shared his thoughts on the rumors in an interview with Pro Boxing Fans: "That's not our fault. He signed the contract for 147 [pounds], he's been fighting at 147, and that's what he signed up for. That's not our fault, we have no blame for that" Watch the video below:
english
Sanaa, Oct 19 (IANS): The Saudi-led coalition in Yemen has intensified the airstrikes against positions of the Houthi militia in the country's oil-rich province of Marib, a military official said. "Scores of air strikes precisely destroyed several military vehicles of the Houthi militia near the Abdiya district in Marib and other surrounding areas," the official told Xinhua news agency on Monday. Earlier in the day, the Saudi military coalition announced that its air operations killed 150 Houthis in Marib, particularly near the turbulent district of Abdiya. During the past few days, hundreds of Houthi fighters were killed or injured as a result of the Saudi aerial shelling, said the source. The Iran-backed Houthi militia launched in February a major offensive toward Marib in an attempt to seize control of the province, the last northern stronghold of the Saudi-backed Yemeni government. Yemen has been mired in civil war since September 2014 when the Houthi militia forced the internationally recognized government of President Abd-Rabbu Mansour Hadi out of the capital Sanaa.
english
import { Component, OnDestroy, OnInit } from "@angular/core"; import { FormControl, FormGroup, Validators } from "@angular/forms"; import { PageEvent } from "@angular/material"; import { Router } from "@angular/router"; import { Subscription } from "rxjs"; import { Attandance } from "src/app/shared/models/Attandance"; import { Group } from "src/app/shared/models/Group"; import { Program } from "src/app/shared/models/Program"; import { Section } from "src/app/shared/models/Section"; import { AttandanceService } from "src/app/shared/services/attandance.service"; import { AuthService } from "src/app/shared/services/auth.service"; import { GroupService } from "src/app/shared/services/group.service"; import { ProgramService } from "src/app/shared/services/program.service"; import { SectionService } from "src/app/shared/services/section.service"; import { SettingService } from "src/app/shared/services/setting.service"; @Component({ selector: "app-attendance", templateUrl: "./attendance.component.html", styleUrls: ["./attendance.component.scss"], }) export class AttendanceComponent implements OnInit, OnDestroy { isLoading = false; role: string; totalAttandances = 0; attandancePerPage = 5; currentPage = 1; pageSizeOptions = [1, 2, 5, 10]; private attandanceSub: Subscription; attandances: Attandance[] = []; selectedAttandance: Attandance; sections: Section[] = []; private sectionSub: Subscription; groups: Group[] = []; selectedGroups: Group[] = []; group: Group; private groupSub: Subscription; private programsSub: Subscription; programs: Program[] = []; selectedLessons = []; sectionSearch: string; groupSearch: string; lessonSearch: string; constructor( private attandanceService: AttandanceService, private settingService: SettingService, private sectionService: SectionService, private groupService: GroupService, private programService: ProgramService, private authService: AuthService, private router: Router ) {} ngOnInit() { this.getAttandances("", "", ""); this.getSections(); this.getGroups(); this.getPrograms(); this.getRole(); } getRole() { this.authService.userDetail().subscribe((detail) => { this.role = detail.role; }); } getAttandances(section: string, group: string, lesson: string) { this.attandanceService.getAttandances( this.attandancePerPage, this.currentPage, section, group, lesson ); this.attandanceSub = this.attandanceService .getEvaluationUpdateListener() .subscribe( (attandanceData: { attandances: Attandance[]; attandanceCount: number; }) => { this.isLoading = false; this.totalAttandances = attandanceData.attandanceCount; this.attandances = attandanceData.attandances; } ); } getSections() { this.sectionService.getSections(1000, 1); this.sectionSub = this.sectionService .getSectionUpdateListener() .subscribe( (sectionData: { sections: Section[]; sectionCount: number }) => { this.sections = sectionData.sections; } ); } getGroups() { this.groupService.getGroups(1000, 1); this.groupSub = this.groupService .getGroupUpdateListener() .subscribe((groupData: { groups: Group[]; groupCount: number }) => { this.groups = groupData.groups; }); } getPrograms() { this.programService.getPrograms(1000, 1); this.programsSub = this.programService .getProgramUpdateListener() .subscribe( (programData: { programs: Program[]; programCount: number }) => { this.programs = programData.programs; } ); } getSection(obj) { this.sectionSearch = obj.value; this.groupSearch = ""; this.lessonSearch = ""; this.selectedGroups = []; this.selectedLessons = []; this.groups.map((group) => { if (group.section._id == obj.value) { this.selectedGroups.push(group); } }); this.getAttandances( this.sectionSearch, this.groupSearch, this.lessonSearch ); } getGroup(obj) { this.groupSearch = obj.value; this.lessonSearch = ""; this.selectedGroups.map((group) => { if (group.id == obj.value) { this.group = group; } }); this.programs.map((program) => { if ( program.section == this.group.section.name && program.level == this.group.level ) { this.selectedLessons = program.lessons; } }); this.getAttandances( this.sectionSearch, this.groupSearch, this.lessonSearch ); } getLesson(obj) { this.lessonSearch = obj.value; this.getAttandances( this.sectionSearch, this.groupSearch, this.lessonSearch ); } onChangedPage(pageData: PageEvent) { this.isLoading = true; this.currentPage = pageData.pageIndex + 1; this.attandancePerPage = pageData.pageSize; this.attandanceService.getAttandances( this.attandancePerPage, this.currentPage, "", "", "" ); } getPaginator() { this.settingService.getSettings(); this.settingService.getSettingUpdateListener().subscribe((setting) => { this.attandancePerPage = setting.paginator; this.attandanceService.getAttandances( setting.paginator, this.currentPage, "", "", "" ); }); } newAttandance() { this.router.navigate(["/ecms/new-attandance"]); } ngOnDestroy() { this.attandanceSub.unsubscribe(); } onDelete(id: string) {} selectAttandance(selectedAttandance) { this.selectedAttandance = selectedAttandance; } }
typescript
"""Test the logger extension module.""" # pylint: disable=protected-access,redefined-outer-name,unused-variable,invalid-name import importlib import json import sys import google import pytest from marshmallow import fields from conftest import app from luckycharms import base from protobuffers import proto def setup_module(): """Set up tests.""" # Force luckycharms.base to load without protobuf in the environment sys.modules['google'] = None sys.modules['google.protobuf'] = None sys.modules['google.protobuf.message'] = None importlib.reload(base) def teardown_module(): """Tear down tests.""" # pylint: disable=invalid-name sys.modules['google'] = google sys.modules['google.protobuf'] = google.protobuf sys.modules['google.protobuf.message'] = google.protobuf.message # Reload luckycharms.base to restore sys.modules to correct state importlib.reload(base) def test_without_proto(): class TestSchema(base.BaseModelSchema): a = fields.Integer() b = fields.String() @TestSchema() def business_logic(*args, **kwargs): return { 'a': 1, 'b': 'One' } with app.test_request_context('/'): result = business_logic() assert json.loads(result) == { 'a': 1, 'b': 'One' } class TestSchema(base.BaseModelSchema): a = fields.Integer() b = fields.String() config = { 'protobuffers': { 'load': proto.Test(), 'dump': proto.Test(), 'load_many': proto.Test(), 'dump_many': proto.TestCollection() } } with pytest.raises(Exception) as excinfo: @TestSchema() def business_logic(*args, **kwargs): return { 'a': 1, 'b': 'One' } assert excinfo.exconly() == "Exception: protobuffer libraries not installed; please install " \ "luckycharms with extra 'proto' (for example, pip install luckycharms[proto])"
python
import { ExtensionContext, commands, window, Uri, workspace, InputBoxOptions, QuickPickItem } from 'vscode'; const get_folder = (filepath: string) => { const slash = filepath.replace(/\\/gu, "/"); let folder = slash.replace(/\/[^/]*$/u, ""); const m = folder.match(/^\/?\w:$/); if (m) { // root folder folder = folder + "/"; } return folder; }; const is_folder_equal = (folder1: string, folder2: string): boolean => { const f1 = folder1.replace(/^\/?(.*)\/?$/u, "$1"); const f2 = folder2.replace(/^\/?(.*)\/?$/u, "$1"); return f1.toLowerCase() === f2.toLowerCase(); }; const get_folders = (folder: string): string[] => { let folders = []; let rest = folder; while (true) { let m = rest.match(/^((.*)\/[^/]+\/?)$/u); if (m) { folders.push(m[1]); rest = m[2]; } else { m = rest.match(/^(\/?\w:)\/?$/); if (m) { // root folder, 2 patterns "c:", "c:/" folders.push(m[1] + "/"); } return folders; } } }; const pick_folder = (folder: string): Promise<string> => new Promise(resolve => { const folders = get_folders(folder); let quick_pick = window.createQuickPick(); const items: QuickPickItem[] = folders.map(a => ({ label: a })); items.push( { label: "CANCEL", picked: true } ); quick_pick.items = items; quick_pick.onDidChangeSelection(e => { quick_pick.hide(); resolve(e[0].label); }); quick_pick.onDidHide(e => { resolve("CANCEL"); }); quick_pick.show(); }); const run = async (pick_folders: boolean) => { if (window.activeTextEditor!.document.isUntitled) { return; } const filepath = window.activeTextEditor!.document.uri.fsPath; if (!filepath) { return; } let folder = get_folder(filepath); if (pick_folders) { folder = await pick_folder(folder); if (!folder || folder === "CANCEL") { console.log("canceled"); return; } } const folder_uri = Uri.file(folder); // console.log(workspace.workspaceFolders?.map(a => a.uri.path)); workspace.updateWorkspaceFolders( workspace.workspaceFolders ? workspace.workspaceFolders.length : 0, null, { uri: folder_uri }); }; const close_others = async (pick_folders: boolean) => { if (window.activeTextEditor!.document.isUntitled) { return; } const filepath = window.activeTextEditor!.document.uri.fsPath; if (!filepath) { return; } let folder = get_folder(filepath); if (pick_folders) { folder = await pick_folder(folder); if (!folder || folder === "CANCEL") { console.log("canceled"); return; } } const folder_uri = Uri.file(folder); if (workspace.workspaceFolders?.length) { if (workspace.workspaceFolders!.length === 1 && is_folder_equal(workspace.workspaceFolders![0].uri.path, folder)) { return; } if (!pick_folders) { let confirm = workspace.getConfiguration("addThisFolderToWorkspace").confirmCloseOthers; if (confirm) { let options: InputBoxOptions = { prompt: "Add This Folder to Workspace & Remove Others from Workspace. OK?", value: "YES" }; const answer = await window.showInputBox(options); if (!answer) { return; } } } } // console.log(workspace.workspaceFolders?.map(a => a.uri.path)); let ret = workspace.updateWorkspaceFolders( 0, workspace.workspaceFolders ? workspace.workspaceFolders.length : 0, { uri: folder_uri }); if (ret !== true) { throw new Error("ret !== true"); } if (workspace.workspaceFolders!.length !== 1) { throw new Error("workspace.workspaceFolders!.length !== 1"); } }; export function activate(context: ExtensionContext) { let disposable = commands.registerCommand('add-this-folder-to-workspace.run', () => run(false)); context.subscriptions.push(disposable); disposable = commands.registerCommand('add-this-folder-to-workspace.close-others', () => close_others(false)); context.subscriptions.push(disposable); disposable = commands.registerCommand('add-this-folder-to-workspace.run.pick-folders', () => run(true)); context.subscriptions.push(disposable); disposable = commands.registerCommand('add-this-folder-to-workspace.close-others.pick-folders', () => close_others(true)); context.subscriptions.push(disposable); } // this method is called when your extension is deactivated export function deactivate() { console.log("deactivate"); }
typescript
The Supreme Court, which is hearing arguments on a batch of pleas seeking legal sanction for same sex marriages, on Thursday indicated it might refer for adjudication by a two-judge bench the challenge to the 30-day prior notice provision in the Special Marriage Act, 1954. The Special Marriage Act, 1954 provides a legal framework for the marriage of people belonging to different religions or castes. It governs a civil marriage where the state sanctions the marriage rather than the religion. Section 5 of the Act says when a marriage is intended to be solemnised under this law, the parties to the marriage shall give notice in writing in the form specified in the second schedule to the marriage officer of the district in which at least one of them has resided for a period of not less than 30 days immediately preceding the date on which such notice is given. Similarly, section 7 of the 1954 law deals with objection to marriage and says any person may, before the expiration of 30 days from the date on which any such notice has been published, object to the marriage on the ground that it would contravene one or more of the conditions specified in section 4, which pertains to conditions relating to solemnisation of special marriages. A five-judge constitution bench headed by Chief Justice D Y Chandrachud said on Thursday the 30-day notice provision is not a five-judge bench issue and has absolutely no connection with whether same-sex couples should have a right to marry. At the start of the sixth day of the hearing, the bench, also comprising Justices S K Kaul, S R Bhat, Hima Kohli and P S Narasimha, said the issue regarding the challenge to the notice provision can be assigned to a two-judge bench, if it is a stand-alone prayer. The CJI recalled that this issue had come up before a two-judge bench earlier. As the bench assembled to hear arguments in the post-lunch session, senior advocates Anand Grover and Raju Ramachandran, appearing for the petitioners, raised the issue. “I am told that your lordships have indicated in the morning that your lordships will de-tag some other matter,” Grover said. The CJI said it is about the notice provision and it can be dealt with by any other bench of the apex court. While Grover said it would be appropriate if the constitution bench decided the notice provision as the petitioners have already argued about it during the hearing, Ramachandran contended the issues are inter-linked. “But, Mr Ramachandran, that notice issue applies equally to heterosexual couples and same-sex couples,” the CJI pointed out, adding, “It is not a five-judge issue. It is a very simple issue”. Solicitor General Tushar Mehta, appearing for the Centre, said he had earlier pointed out the issue has been wrongly tagged in the matter. Ramachandran said the petitioners, for whom he is appearing, have contended that the right to marry will be illusory unless the notice provision goes. “According to you, the right to marry, even of a heterosexual couple, is illusory if one has to step in and give say 15 days notice…have people raise objections. That is the point,” the CJI said, adding, “It has absolutely no connect with the issue of whether same-sex couples should have a right to marry. It is irrelevant to that. ” When Grover contended it is a constitutional issue, Justice Chandrachud said, “Mr Grover, it is an important social issue but not necessarily a constitutional issue for a constitution bench. ” The bench said constitutional issues can be decided even by a two or a three-judge bench. Justice Bhat referred to the 2015 judgement in the Shreya Singhal case in which the apex court had struck down section 66A of the Information Technology Act, 2000, and said it was not by a five-judge bench. “Many of these judgements are not of five judges,” Justice Bhat observed. The CJI then asked Mehta to continue with his submissions. The hearing in the matter remained inconclusive and will resume on May 3. During the hearing on Wednesday, the Centre had urged the top court to consider leaving questions raised in the pleas seeking legal sanction for same sex marriages to Parliament, saying the court is dealing with a “very complex” subject having a very “profound social impact” and which will require going into 160 provisions of different laws.
english
<filename>tfx/experimental/pipeline_testing/pipeline_recorder_utils_test.py # Lint as: python3 # Copyright 2020 Google LLC. 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. """Tests for tfx.experimental.pipeline_testing.pipeline_recorder_utils.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import mock import tensorflow as tf from tfx.dsl.io import fileio from tfx.experimental.pipeline_testing import pipeline_recorder_utils from tfx.utils import io_utils class PipelineRecorderUtilsTest(tf.test.TestCase): def setUp(self): super(PipelineRecorderUtilsTest, self).setUp() self._base_dir = os.path.join(self.get_temp_dir(), 'base_dir') self.src_uri = os.path.join(self._base_dir, 'input') self.dest_uri = os.path.join(self._base_dir, 'output') fileio.makedirs(self.src_uri) # Writing a string to test.txt file in src_uri self.content = 'pipeline recorded' io_utils.write_string_file( os.path.join(self.src_uri, 'test.txt'), self.content) # Placeholders for record_pipeline(...) arguments self.metadata_db_uri = 'metadata_db_uri' self.host = 'localhost' self.port = 1234 self.pipeline_name = 'pipeline_name' self.run_id = 'run_id' # Return values for mocked get_paths(...) self.paths = [[self.src_uri, self.dest_uri]] # Return values for mocked get_execution_dict(...) self.execution_dict = {self.run_id: []} @mock.patch.object(pipeline_recorder_utils, 'get_latest_executions') def testRecordLatestKfpPipeline(self, mock_get_latest_executions): # Tests recording KFP pipeline outputs for the latest execution. with mock.patch.object( pipeline_recorder_utils, '_get_paths', return_value=self.paths) as mock_get_paths: pipeline_recorder_utils.record_pipeline( output_dir=self._base_dir, host=self.host, port=self.port, pipeline_name=self.pipeline_name) mock_get_paths.assert_called() mock_get_latest_executions.assert_called() files = fileio.listdir(self.dest_uri) self.assertLen(files, 1) self.assertEqual( io_utils.read_string_file(os.path.join(self.dest_uri, files[0])), self.content) def testRecordKfpPipelineRunId(self): # Tests recording KFP pipeline outputs given a run_id. with mock.patch.object(pipeline_recorder_utils, '_get_execution_dict', return_value=self.execution_dict ) as mock_get_execution_dict,\ mock.patch.object(pipeline_recorder_utils, '_get_paths', return_value=self.paths) as mock_get_paths: pipeline_recorder_utils.record_pipeline( output_dir=self._base_dir, host=self.host, port=self.port, run_id=self.run_id) mock_get_execution_dict.assert_called() mock_get_paths.assert_called() # Verifying that test.txt has been copied from src_uri to dest_uri files = fileio.listdir(self.dest_uri) self.assertLen(files, 1) self.assertEqual( io_utils.read_string_file(os.path.join(self.dest_uri, files[0])), self.content) @mock.patch('tfx.orchestration.metadata.sqlite_metadata_connection_config') @mock.patch('tfx.orchestration.metadata.Metadata') @mock.patch.object(pipeline_recorder_utils, 'get_latest_executions') def testRecordLatestBeamPipeline(self, mock_get_latest_executions, mock_metadata, mock_config): # Tests recording Beam pipeline outputs for the latest execution. with mock.patch.object( pipeline_recorder_utils, '_get_paths', return_value=self.paths) as mock_get_paths: pipeline_recorder_utils.record_pipeline( output_dir=self._base_dir, metadata_db_uri=self.metadata_db_uri, pipeline_name=self.pipeline_name) mock_config.assert_called_with(self.metadata_db_uri) mock_metadata.assert_called() mock_get_paths.assert_called() mock_get_latest_executions.assert_called() # Verifying that test.txt has been copied from src_uri to dest_uri files = fileio.listdir(self.dest_uri) self.assertLen(files, 1) self.assertEqual( io_utils.read_string_file(os.path.join(self.dest_uri, files[0])), self.content) @mock.patch('tfx.orchestration.metadata.sqlite_metadata_connection_config') @mock.patch('tfx.orchestration.metadata.Metadata') def testRecordBeamPipelineRunId(self, mock_metadata, mock_config): # Tests recording Beam pipeline outputs given a run_id. with mock.patch.object(pipeline_recorder_utils, '_get_execution_dict', return_value=self.execution_dict ) as mock_get_execution_dict,\ mock.patch.object(pipeline_recorder_utils, '_get_paths', return_value=self.paths ) as mock_get_paths: pipeline_recorder_utils.record_pipeline( output_dir=self._base_dir, metadata_db_uri=self.metadata_db_uri, run_id=self.run_id) mock_config.assert_called_with(self.metadata_db_uri) mock_metadata.assert_called() mock_get_execution_dict.assert_called() mock_get_paths.assert_called() # Verifying that test.txt has been copied from src_uri to dest_uri files = fileio.listdir(self.dest_uri) self.assertLen(files, 1) self.assertEqual( io_utils.read_string_file(os.path.join(self.dest_uri, files[0])), self.content) if __name__ == '__main__': tf.test.main()
python
The Hindi version of KGF: Chapter 2 has overtaken the lifetime collection of KGF: Chapter 1. Yash's KGF 2, directed by Prashanth Neel, will rewrite many box office records in the coming days. By Janani K: Yash's KGF: Chapter 2, which hit the theatres on April 14, is taking the box office by storm. The Hindi version of the sequel is likely to touch Rs 50 crore on its opening day, which is a staggering number for a South film. According to trade reports, the Hindi version of KGF: Chapter 2 has surpassed the lifetime collection of KGF: Chapter 1 in India in a day. KGF: Chapter 2 will wreak havoc in theatres. Directed by Prashanth Neel, KGF: Chapter 2 was released in theatres on April 14. Due to the novel coronavirus pandemic, the shooting and the release were delayed several times. The sequel was released three and a half years after KGF: Chapter 1 hit the theatres. According to trade analyst Manobala Vijayabalan, the Hindi version of KGF: Chapter 2 surpassed the lifetime collection of KGF: Chapter 1 in India. His tweet read, "#KGFChapter2 SURPASSES #KGFChapter1 life time collections on the first day itself. [Hindi version - All India Market] (sic). " Here's the post: #KGFChapter2 SURPASSES #KGFChapter1 life time collections in the first day itself. Trade analyst Taran Adarsh wrote, "'KGF2' CROSSES LIFETIME BIZ OF 'KGF' ON *DAY 1*. #KGF Part 1: Rs 44. 09 cr [lifetime biz] #KGF2: Rs 53. 95 cr [Day 1]. Kudos to #Excel [#RiteshSidhwani, #FarhanAkhtar] - #AAFilms [#AnilThadani] for their vision, backing the first part way back in 2018. Now awaiting #KGF3 (sic). " KGF is a two-part franchise, written and directed by Prashanth Neel. The films trace the journey of Rocky, who goes on to become the messiah of the people living and working in the Kolar Gold Fields. Going by KGF: Chapter 2 post-credits scene, KGF: Chapter 3 is on its way. The action entertainer features Yash, Sanjay Dutt, Raveena Tandon, Srinidhi Shetty and Prakash Raj in crucial roles.
english
{ var n = t.children[0]; if (1 === n.type) { var r = Vr(n, e.options); return ( "inlineTemplate:{render:function(){" + r.render + "},staticRenderFns:[" + r.staticRenderFns .map(function(t) { return "function(){" + t + "}"; }) .join(",") + "]}" ); } }
javascript
visualize({ auth: { tokenName: "<PASSWORD>", token: "ST-40-CZeUUnGPxEqgScNbxh9l-sso-cas.example.com" } }, function (v) { v("#container").adhocView({ resource: '/public/viz/Adhoc/Chart1' }); }, function (error) { console.log('Failed to auth on JRS. The error is:', error); });
javascript
Mumbai city news: After one corporator was refused entry into a Kandivli school, the Brihanmumbai Municipal Corporation, which is in charge of primary school education in the city, said last week that it will ask schools to treat the elected representatives with ‘respect’. Schools in Mumbai are angry with the municipal corporation’s plan that asks the institutions to help corporators who recommend students for seats. After one corporator was refused entry into a Kandivli school, the Brihanmumbai Municipal Corporation, which is in charge of primary school education in the city, said last week that it will ask schools to treat the elected representatives with ‘respect’. The end of the admission season in schools – usually between May and July – is the time when institutions face threats and violence from local politicians. A few years ago, members of a political party threatened to vandalise a Santacruz school after the principal refused to allot seats to students recommended by him. The principal, who had copies of letters from the politician recommending students for kindergarten admissions, filed a complaint with the police. A corporator threatened a school in Bhandup for refusing seats to two students recommended by him. Corporators said this is social work, but schools do not agree. “They (corporators) say they are doing social work but it is not always so; some of them take money from parents after ensuring them a seat in a school of their choice,” said the former manager of a school. When the demands are not fulfilled, schools are harassed. A priest who was the manager of a school at Saat Rasta (Jacob Circle) said that the local corporator would demand 30-35 seats – an average government-aided private school in Mumbai has an annual intake of 150-250 students in its kindergarten - for students recommended by him. “He behaved so badly when we refused to give him so many seats. He complained to the (municipal) ward office that the roof that we had put over our parish house was dangerous. Though we argued that the roof was safe, it was demolished,” said the priest. In other schools, the corporators have interfered in fee disputes between the school and parents of students. “The local corporator would not allow the PTA (Parents Teachers Association) to approve the fee hike though a majority of the members had agreed to an increase,” said a former principal of a school. Some schools reserve a few seats in anticipation of the demands. “But these are for students recommended by the BMC education department, not politicians. If we have to oblige every corporator, MLA and Shakha Pramukh (branch heads of political parties), we will have no seats left to allot to applicants,” said a Matunga resident who is associated with the management of school. The use of coercion is largely restricted to private institutions that receive grants from the government – called aided schools. The grants – reimbursement of salaries paid to teachers and some infrastructure grants – is irregular, but that does not stop the politicians from demanding what they think is quid pro quo. The harassment from politicians, school managements said, is one of the reasons why many institutions are severing their affiliation to the state education board and shifting to national school curriculums. “Apart from the fact that the curriculum is better, there is no pressure from politicians who cannot arm-twist unaided schools. I know one school in Dadar which said that will not allow politicians into their premises because the institution does not take money from the government,” said a member of the managing committee of a Sion school.
english
<reponame>zongchangli/rna-seq-pipeline { "build_index.reference_sequence" : "test_data/GRCh38_no_alt_analysis_set_GCA_000001405.15_onlychr19.fa.gz", "build_index.spikeins" : "test_data/ERCC_phiX.fa.gz", "build_index.annotation" : "[path-to-output]/gencodeV24pri-tRNAs-ERCC-phiX_onlychr19_and_spikeins.gtf.gz", "build_index.anno_version" : "v24", "build_index.genome" : "GRCh38", "build_index.index_type" : "prep_star" }
json
<gh_stars>1-10 { "visual": { "name": "circlePacking", "displayName": "CirclePacking", "guid": "PBI_CV_E43E8323_3100_4A3A_801E_B6C712747636", "visualClassName": "Visual", "version": "1.0.0", "description": "A D3 extention to show hierarchy as a set of packed circles", "supportUrl": "", "gitHubUrl": "" }, "apiVersion": "1.1.0", "author": { "name": "<NAME>", "email": "<EMAIL>" }, "assets": { "icon": "assets/icon.png" }, "externalJS": [], "style": "style/visual.less", "capabilities": "capabilities.json" }
json
RealClearInvestigations senior writer Mark Hemingway, a former Portland, Ore. , resident, wrote in The Wall Street Journal Tuesday that the murder of Patriot Prayer member Aaron Danielson in the city of the weekend marked the culmination of nearly a half-century of "depraved" governance by progressives. "I’ve been bombarded with questions over the past few months about why one of America’s whitest cities has descended into civic madness following the police killing of George Floyd," Hemingway wrote. "Violent radicalism had been flourishing in the city for years before the rest of the country paid attention, and Mayor Ted Wheeler’s feckless leadership is no anomaly. " According to Hemingway, Wheeler claims President Trump "created the hate" that has led to the city's ongoing violence, but himself has been unable to guarantee the safety of "ordinary Republicans" walking down the street -- and canceled the city's annual Rose Festival parade because Antifa objected to the participation of the Multnomah County Republican Party. "'You have seen how much power we have downtown and that the police cannot stop us from shutting down roads so please consider your decision wisely,' read the threat sent to the city," Hemingway reported. However, according to Hemingway, Wheeler is only the latest in a long line of disastrous mayors of Portland, a line that includes names like Sam Adams. "Shortly after he was elected [in 2008], he [Adams] admitted to having been romantically involved with an underage boy — though Mr. Adams asserted the relationship didn’t turn sexual until after the boy turned 18," wrote Hemingway, adding that Adams' defenders branded criticism of the mayor's behavior to be "homophobic" and two attempts to recall him from office were unsuccessful. Meanwhile, Adams was so devoted to environmental leftism that he approved a Portland city budget that essentially put a five-year moratorium on street paving. Perhaps Portland's most famous mayor is Neil Goldschmidt, who spent more than six years in that position during the 1970s before going on to become transportation secretary under Jimmy Carter. He was then was elected governor of Oregon in 1986. "Mr. Goldschmidt shocked the state by announcing he wouldn’t seek re-election in 1990. He quickly became the biggest lobbyist in the state," Hemingway said. "In 2004 Portland newspapers reported that the state’s integrated land use and transportation planning regulations were being manipulated to award Mr. Goldschmidt’s lobbying clients hundreds of millions of dollars of state contracts," City officials, Hemingway said, dubbed the former mayor and his clients "the light-rail mafia. " Soon after, Hemingway wrote, local media reported that while Goldschmidt was mayor, he raped his children's babysitter over a period of several years, beginning when the girl was 14. A settlement in the case was what led to Goldschmidt's sudden withdrawal from public office. "Wheeler, Adams, and Goldschmidt offer different and dramatic examples of how much Portland voters are willing to tolerate, provided their leaders burnish the city’s national reputation as a beacon of progressivism," Hemingway continued. "I love Portland like no other city, and it is hard to square what’s happening with residents of the city I am blessed to know . . . But if Portlanders believe progressive governance requires rejecting basic notions of law and order, they are, to paraphrase H. L. Mencken, getting what they vote for—good and hard. "
english
While the Indians were warming up at the Sydney Cricket Ground, a throwaway line from Bobby Simpson suddenly rang out. "The Indians prefer to play these as practice games rather than to win. Sometimes you need to practice winning as well." The Indians certainly did not do that at the Manuka Oval with the figure of Andrew Symonds out there to haunt them again. If he could play half as well against other teams as he does against India, he would be a major international star, not an Aussie wannabe Test cricketer. Against India, his bat is like a prepaid calling card; it comes with a value attached. As they ponder over the strangeness of the itinerary (why did they want a useless nibble between two proper meals?) and their performance, the Indians must actually take some heart from the announcement of the Australian team. India’s weakness against extreme pace is well known in the cricket world and yet, Australia chose to go in with only three quicks and a half and half back-up bowler. There is a message there for it means that the Adelaide Oval is likely to live up to current reputation which is that of a wicket that takes spin as the match goes along. If it is a slower track, and Australia use Miller primarily as a spinner, India’s batsmen will feel far more reassured. Australia’s batting though has both a settled and an intimidating look to it. Greg Blewett has grabbed another passing morsel and converted into a meal. He opens for South Australia and on his home ground, and apparently still the best batting track in the land, he must feel secure. So would Justin Langer who pulled the noose out of his neck and rode away into the sunset against Pakistan. Ironically, the two batsmen most short of runs are the Waugh twins and it is a disquieting thought that they are followed by Ricky Ponting and Adam Gilchrist, not just late middle order players but match winning batsmen in their own right. I don't think too many people fancy India’s chances of getting twenty wickets in this game but the Indians will do well to bowl with the kind of discipline which Sachin Tendulkar was so impressed with at Sydney. One of the deciding factors in Australia’s resounding win over Pakistan was the speed with which they got runs. It achieved two critical ends. It took the pressure off a good Pakistani performance very quickly and more important, it meant their bowlers had a lot of time to take wickets. If India can, at least initially, prevent Australia from getting off to a flier, they will have done themselves a good turn.
english
Neymar signing for Real Madrid was a prospect Lionel Messi feared was about to become a reality. The Brazil superstar featured in a lethal front three alongside Messi and Luis Suarez at Camp Nou before joining Paris Saint-Germain in a world-record €222m move two years ago. Reports of Neymar wishing to return to La Liga have been frequent since then and an 'MSN' reunion was mooted during the close season. But with Barcelona unable to put together a package to make the deal happen, Messi worried his old team-mate would end up pulling on the famous white shirt of their sworn rivals. "I honestly thought that in this market, if he did not come here, he would go to Madrid, because I really thought he wanted to leave," five-time Ballon d'Or winner Messi told RAC1. "He said it, he wanted to change, to leave Paris. I thought that Florentino [Perez, Real Madrid president] and Madrid would do something to take him away." Barcelona still boasts a plethora of elite forward options. Messi is back to fitness after a calf problem delayed his start to the 2019-20 season, while Suarez came through a period of criticism to score four times in the space of eight days before the international break. Big-money arrival Antoine Griezmann is still bedding in, although his fellow France international Ousmane Dembele must serve a suspension having been sent off for dissent during the 4-0 victory against Sevilla last time out. In his report, referee Antonio Mateu Lahoz said Dembele told him he was "very bad, you're very bad" in response to Barca youngster Ronald Araujo being red-carded. Like coach Ernesto Valverde, Messi was perplexed by the incident – mainly due to Dembele's lack of aptitude with the Spanish language – that means the winger is set to miss El Clasico at Camp Nou later this month. "It is very difficult for him to be able to say that because it is difficult for him to put together sentences and speak well enough to speak clearly," Messi said. "The coach supported him at a press conference. The truth is we were surprised that [the referee] understood it so clearly because Ousmane has a hard time speaking Spanish – although he makes himself understood and understands everything. "It's difficult [to accept the referee] understood it so clearly. That's just the way it is."
english
import hashlib import pickle import os import sys import subprocess import time class Colors: HEADER = '\033[95m' BLUE = '\033[94m' GREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' cache = {} hashes = [] def get_cache(): try: with open('tests/results.dat', 'rb') as afile: if afile: global cache cache = pickle.load(afile) except FileNotFoundError: os.makedirs('tests') def save_cache(): ks = [k for k in cache.keys() if not k in hashes] for k in ks: del cache[k] afile = open('tests/results.dat', 'wb') pickle.dump(cache, afile) def get_tests_results(question): global cache main_folder = question script = '{0}.py'.format(question) hasher = hashlib.md5() with open(script, 'rb') as f: hasher.update(f.read()) hsh = hasher.digest() hashes.append(hsh) if hsh in cache: return cache[hsh] tests = os.listdir(main_folder) right_answers = 0 total_answers = 0 for test_folder in tests: test_folder_name = '{0}/{1}'.format(main_folder, test_folder) tests_cases = [case for case in os.listdir(test_folder_name)] for index in range(int(len(tests_cases) / 2)): case_input_name = '{0}/{1}{2}'.format( test_folder_name, 'in', index + 1) case_output_name = '{0}/{1}{2}'.format( test_folder_name, 'out', index + 1) input_file = open(case_input_name) proc = subprocess.Popen( ['python', script], stdin=input_file, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) result = proc.communicate()[0].decode('utf-8').strip() output_file = open(case_output_name).read().strip() if result == output_file: right_answers += 1 sys.stdout.write('.') else: sys.stdout.write('F') total_answers += 1 sys.stdout.flush() cache[hsh] = (right_answers, total_answers) return cache[hsh] if __name__ == '__main__': is_successful = True obis = [f for f in os.listdir('.') if os.path.isdir(f) and ('obi' in f)] obis.sort() get_cache() for obi in obis: print(obi.upper()) levels = os.listdir(obi) for level in levels: print(' {0}'.format(level)) level = '{0}/{1}'.format(obi, level) stages = os.listdir(level) for stage in stages: print(' {0}'.format(stage)) stage = '{0}/{1}'.format(level, stage) questions = [f for f in os.listdir(stage) if f.endswith('.py')] for question in questions: s = time.time() name = question print(' {0} '.format(name), end='') question = '{0}/{1}'.format(stage, question) folder = '{0}/{1}'.format(stage, os.path.splitext(name)[0]) if os.path.isdir(folder): right_answers, total_answers = get_tests_results(folder) if right_answers < total_answers: is_successful = False color = Colors.GREEN if right_answers == total_answers else Colors.FAIL print(' {1}/{2}'.format(name,right_answers, total_answers), end='') print(' [{:.2f}s]'.format(time.time() - s)) save_cache() if not is_successful: exit(1) exit(0)
python
Pooran to Mehidy Hasan, 1 run, trifle short, punched to deep cover. Bangladesh win by 4 wickets! Akeal Hosein to Mehidy Hasan, no run, 85kph, Mehidy Hasan shoulders arms on seeing the line outside off. Three consecutive maidens for Akeal Hosein! Akeal Hosein to Mehidy Hasan, no run, in-dart, blocked. Maiden over!
english
<reponame>carbonblack/cb-integration<filename>tests/data/binary_metadata/1ce4f3bde19d3f7c798169fc98b51b61.json {"host_count": 1, "digsig_result": "Signed", "observed_filename": ["C:\\Windows\\system32\\iertutil.dll"], "product_version": "10.00.9200.16384", "digsig_sign_time": "2012-07-26T09:00:00Z", "is_executable_image": false, "orig_mod_len": 2158080, "is_64bit": true, "digsig_publisher": "Microsoft Corporation", "group": ["Default Group"], "file_version": "10.00.9200.16384 (win8_rtm.120725-1247)", "company_name": "Microsoft Corporation", "internal_name": "IeRtUtil.dll", "product_name": "Windows\u00ae Internet Explorer", "digsig_result_code": "0", "copied_mod_len": 0, "server_added_timestamp": "2015-07-09T20:45:17.734Z", "watchlist_3": "2015-07-09T20:50:04.031Z", "md5": "1CE4F3BDE19D3F7C798169FC98B51B61", "endpoint": ["WIN-IA9NQ1GN8OI|4"], "legal_copyright": "\u00a9 Microsoft Corporation. All rights reserved.", "original_filename": "IeRtUtil.dll.mui", "cb_version": 510, "os_type": "Windows", "file_desc": "Run time utility for Internet Explorer", "last_seen": "2015-07-09T20:50:04.643Z"}
json
Mathematician Clifford Stoll, over at the Numberphile YouTube channel, proves that pizza likes Gaussian curvature, while also giving viewers a mathematics lesson in the process. Gaussian curvature reflects the combination of two distinct curvatures (such as on an x-axis and a y-axis). A cylinder, for instance, has zero curvature because while measuring in one direction produces an outward curve, the other way is flat. A sphere always has positive curvature. By drawing all over food with a permanent marker, Stoll describes how certain foods like oranges, bananas, and bagels maintain curvature. However, things like pizza, which are partially flat, have zero curvature, no matter how you bend it. When you improve a slice’s rigidity by folding it, you’re experiencing Gaussian curvature. If you don’t like pizza or math, at least you can get a look at what somebody who really loves math looks like. Take this from someone who really loves pizza.
english
Our editors will review what you’ve submitted and determine whether to revise the article. - Related Topics: synodic period, the time required for a body within the solar system, such as a planet, the Moon, or an artificial Earth satellite, to return to the same or approximately the same position relative to the Sun as seen by an observer on the Earth. The Moon’s synodic period is the time between successive recurrences of the same phase; e.g., between full moon and full moon. The synodic period of a planet is the time required for the Earth to overtake it as both go around the Sun—or, in the case of fast-moving Mercury or Venus, for the planet in question to overtake the Earth. The synodic period of an artificial satellite of the Earth is measured between its conjunctions (closest apparent approaches) with the Sun. See also sidereal period.
english
package ru.job4j.io.archiver; import java.util.HashMap; import java.util.Map; /** * Class ArgsParser | Task Solution: Archive a project [#861] * @author @author <NAME> (mailto:<EMAIL>) * @since 06.05.2019 */ public class ArgsParser { private Map<String, String> params = new HashMap<>(); ArgsParser(String[] args) { parseArgs(args); } /** * Parse argument from command line. * @param args Arguments. */ private void parseArgs(String[] args) { String key = ""; String value = ""; for (String arg : args) { if (arg.startsWith("-")) { key = arg; } else { value = arg; } if (!key.isEmpty() && !value.isEmpty()) { params.put(key, value); key = ""; value = ""; } } if (args.length != 6 || !this.checkArgs()) { System.out.println("Аргументы программы должны быть в следующем виде:"); System.out.println("-d source_path -e *.file_extension -o target_path.zip"); System.exit(0); } } /** * Check parsed arguments. * @return true if arguments are valid. */ private boolean checkArgs() { boolean result = false; if (params.containsKey("-d") && params.containsKey("-e") && params.containsKey(("-o"))) { result = true; } return result; } public String getDirectory() { return params.get("-d"); } /** * Need only file extension, then cut * two symbols from string begin (*.) */ public String getExclude() { return params.get("-e").substring(2); } public String getOutput() { return params.get("-o"); } }
java
There is a constant theme of characters suffering in anime. These characters tend to be incredibly tragic and go through immense physical and psychological struggles throughout their lives. However, they can push through it and make out the other end. Because of this, they are viewed as sources of inspiration, and many of these characters who suffer in anime are loved by their shows' respective fanbases. 10 characters in anime that have endured horrible ordeals (unranked) 1) Kakashi Hatake (Naruto) Throughout the Naruto series, many characters have suffered immensely. That is the nature of a world full of shinobi. However, Kakashi has been through much more than any other character in the series. First, when he was a young child, his father committed suicide. The shame he faced from the village due to saving his teammate was too much for him to handle. He then believes Obito died after being crushed by a boulder. Not long after this, Rin commits suicide by impaling herself on Kakashi's chidori. This caused him to be plagued by nightmares and hallucinations of Rin's blood on his hand. A couple of years later, Kakashi lost Minato and Kushina during Kurama's rampage. 2) Hyakkimaru (Dororo) Hyakkimaru's biological father, Kagemitsu Daigo, made a deal with some demons before he was born. In exchange for making Kaga Province wealthy and prosperous, Kagemitsu offered up pieces of his unborn son to the demons. This resulted in Hyakkimaru being born with only a skeleton, making Kagemitsu abandon him. Hyakkimaru journeys to kill each demon that took a piece of his body from him throughout the series. Each time he regains a body part, the pain is immense, but it is always worth it. 3) Guts (Berserk) Guts, also known as the Black Swordsman, is arguably the most tragic character in all of the anime and the one who has suffered the most. Even as a child, Guts was not safe from the horrors of the Physical World. Before he was even born, his mother was murdered and he became an orphan. He was also betrayed and manipulated by his closest friend Griffith. He also goes through immense physical suffering during his fights and trials to save those he cares about. This barely scratches the tip of the iceberg of how much Guts' has suffered in his life. 4) Kaneki Ken (Tokyo Ghoul) Kaneki's suffering began when he went on a date with Rize Kamishiro. After being attacked by Rize and almost dying in an attempt to escape, Kaneki was turned into a ghoul after Rize's kakuhou was transplanted into his body. Ever since this point, he has been targeted by other ghouls and humans because of his status as a one-eyed ghoul. 5) Zeref Dragneel (Fairy Tail) Zeref Dragneel suffers from the Contradictory Curse. This curse will activate and burst out whenever he comes to love something, killing everything within a certain range. Zeref was afflicted with this curse as punishment for resurrecting his younger brother, Natsu. He has to wander throughout the world by himself for centuries because of this curse. 6) Natsuki Subaru (Re: Zero) Subaru is the protagonist of the Re:Zero series. One day, he walked back from the convenience store and was sent to a new world. With his unique ability, Return by Death, Subaru can restart the world each time he dies. However, he can remember each time before he restarts the world. Throughout the series, Subaru has died in excruciating ways. Some of his deaths include being disemboweled hours after arriving in the new world, jumping off a cliff and impaling himself on sharp rocks to save Rem, being frozen and decapitated by Puck after Emilia's death, and feeling every bit of pain. At the same time, his body is torn apart by carnivorous bunnies. 7) Levi Ackerman (Attack on Titan) Levi never had an easy life. When he was a kid, he was found by Kenny Ackerman as a starving little kid and was raised to always be on the lookout. During his time in the Survey Corps, Levi has lost countless close friends and comrades. He is the character who has suffered the most out of everyone in Attack on Titan. 8) Diavolo (Jojo's Bizarre Adventure: Golden Wind) Diavolo's suffering is similar to Subaru's but infinitely times worse. As punishment for his actions, Diavolo is subjected to infinite torment. Giorno's Gold Experience Requiem put Diavolo in a never-ending death-loop, meaning he will have to experience dying over and over for eternity. He died by drowning in a river, being hit by a car, stabbed, and various other ways. Some fans believe Diavolo deserves to suffer for eternity because of his actions, while others disagree completely. 9) Rintarou Okabe (Steins;Gate) Okabe had to suffer through the deaths of Mayuri Shiina and Makise Kurisu countless times to save them both in the Steins;Gate anime. He would witness their deaths repeatedly, which took a massive toll on him and messed up his mental state. In the end, however, he achieved his goal and successfully saved both of them. 10) Future Trunks (Dragon Ball Z) Prior to his timeline being erased, Trunks suffered immensely at the hands of various enemies. The Androids have left their Earth decimated and destroyed in the Dragon Ball Z anime. They killed Gohan, who acted as his mentor and Bulma. His time was also ravaged by Zamasu and Goku Black when they journeyed to conquer everything. Disclaimer: This article reflects the opinions of the writer. Sportskeeda Anime is now on Twitter! Follow us here for latest news & updates.
english
<filename>parte2/P3/testRLsol.py import numpy as np from sklearn.externals import joblib from RL import * import RLsol for test in [('fmdp1.pkl','traj1.pkl'), ('fmdp2.pkl','traj2.pkl')]: print("Testing " + test[0]) # funcoes auxiliarres fmdp = joblib.load(test[0]) # ficheiro com a trajectório de treino traj = joblib.load(test[1]) qlearn = RLsol.myRL(7,2,0.9) Q = qlearn.traces2Q(traj) print("Valores Q aprendidos") print(qlearn.Q) if np.linalg.norm(Q-fmdp.Q)<.3: print("Erro nos Q dentro dos limites de tolerância. OK\n") else: print("Erro nos Q acima dos limites de tolerância. FAILED\n") # gerar trajectoria aprendida J,trajlearn = fmdp.runPolicy(6,4,RLsol.Q2pol(Q)) print("Trajectoria gerada com a politica aprendida") print(trajlearn) if J>.7: print("Recompensa obtida dentro do previsto. OK\n") else: print("Recompensa obtida abaixo do previsto. FAILED\n")
python
Kuldeep Yadav yet again finds himself on the bench as he has been replaced by all-rounder Washington Sundar for the third India vs England Test. The left-arm wrist-spinner would consider himself unfortunate as he hadn't done much wrong in the previous game. Indian skipper Virat Kohli explained at the toss that India wanted to bat deep. Hence, they brought in the 21-year-old Sundar, who has been impressive with the bat. Kuldeep Yadav made his comeback to Test cricket after a gap of two years in the previous game against England at Chennai. But he bowled just over 12 overs in the two innings combined. Fans on Twitter were baffled by Virat Kohli's justification of playing Sundar ahead of the 26-year-old. They slammed the Indian skipper for his poor selection and believe Kuldeep Yadav should have played. Here is what they had to say: Kuldeep Yadav has already been shown the door as far as India's T20 plans are concerned, with him not being picked for the series against England. The hosts prefer to play Ravindra Jadeja and Yuzvendra Chahal as their two spinners in ODIs. Thus, snubbing the 26-year-old in Tests too has raised the question whether Kuldeep is in India's plans for any format. He had to wait a long time to make his Test comeback, despite taking 24 wickets in his first six Tests, including a five-wicket haul in Sydney two years ago. India suffered from a plethora of injuries in their recent Test series Down Under. In spite of the likes of Ravichandran Ashwin and Jadeja getting injured, Kuldeep was not picked for the series decider at the Gabba. With Axar Patel having impressed with the ball on debut, the left-arm wrist-spinner could find himself dropped down further in the pecking order. It remains to be seen whether Kuldeep will at all be entrusted with an opportunity in the near future.
english
use wrg_2d::{IntVector2, Direction, Grid}; pub struct Config { pub start_position: IntVector2, pub start_length: usize, pub start_direction: Direction, pub input_allowed: bool, pub grid: Grid, }
rust
<gh_stars>1-10 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_131) on Tue Mar 06 14:54:25 MST 2018 --> <title>FXMLController</title> <meta name="date" content="2018-03-06"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="FXMLController"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../com/neumiu/io/control/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/FXMLController.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev&nbsp;Class</li> <li>Next&nbsp;Class</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/neumiu/io/control/FXMLController.html" target="_top">Frames</a></li> <li><a href="FXMLController.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.neumiu.io.control</div> <h2 title="Class FXMLController" class="title">Class FXMLController</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>main.java.goxr3plus.javastreamplayer.stream.StreamPlayer</li> <li> <ul class="inheritance"> <li>com.neumiu.io.control.FXMLController</li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.util.concurrent.Callable&lt;java.lang.Void&gt;, javafx.fxml.Initializable, main.java.goxr3plus.javastreamplayer.stream.StreamPlayerListener</dd> </dl> <hr> <br> <pre>public class <span class="typeNameLabel">FXMLController</span> extends main.java.goxr3plus.javastreamplayer.stream.StreamPlayer implements javafx.fxml.Initializable, main.java.goxr3plus.javastreamplayer.stream.StreamPlayerListener</pre> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field.summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>private static java.util.List&lt;com.neumiu.io.models.Track&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#addedSongs">addedSongs</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.TextField</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#addSongArtist">addSongArtist</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.TextField</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#addSongGenre">addSongGenre</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.TextField</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#addSongName">addSongName</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#artist">artist</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.TableColumn&lt;com.neumiu.io.models.Track,java.lang.String&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#artistValue">artistValue</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#artwork">artwork</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.Button</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#cancel">cancel</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.image.ImageView</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#coverArt">coverArt</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#currentItem">currentItem</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.TextField</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#currentlyPlaying">currentlyPlaying</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#currentPlayTime">currentPlayTime</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.Label</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#curTime">curTime</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.TextField</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#editSongArtist">editSongArtist</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.TextField</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#editSongGenre">editSongGenre</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.TextField</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#editSongName">editSongName</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#fileName">fileName</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#genre">genre</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.TableColumn&lt;com.neumiu.io.models.Track,java.lang.String&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#genreValue">genreValue</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#mute">mute</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.CheckBox</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#muteBox">muteBox</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#newSong">newSong</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.image.ImageView</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#playTrack">playTrack</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.Button</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#save">save</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.Slider</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#seekBar">seekBar</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private javafx.scene.control.CheckBox</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#shuffleBox">shuffleBox</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.TableView&lt;com.neumiu.io.models.Track&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#songInPlaylist">songInPlaylist</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private static javafx.collections.ObservableList&lt;com.neumiu.io.models.Track&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#songs">songs</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#time">time</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#title">title</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.TableColumn&lt;com.neumiu.io.models.Track,java.lang.String&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#titleValue">titleValue</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#totalPlayTime">totalPlayTime</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private javafx.scene.control.Label</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#totalTime">totalTime</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private com.neumiu.io.control.TrackController</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#track">track</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>private double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#volumeLevel">volumeLevel</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>javafx.scene.control.Slider</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#volumeSlider">volumeSlider</a></span></code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#FXMLController--">FXMLController</a></span>()</code> <div class="block">constructor that loads songs into player</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#addSong-javafx.event.ActionEvent-">addSong</a></span>(javafx.event.ActionEvent&nbsp;k)</code>&nbsp;</td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#browseImage-javafx.event.ActionEvent-">browseImage</a></span>(javafx.event.ActionEvent&nbsp;r)</code>&nbsp;</td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#browseMusic-javafx.event.ActionEvent-">browseMusic</a></span>(javafx.event.ActionEvent&nbsp;r)</code>&nbsp;</td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#closeButton-javafx.event.ActionEvent-">closeButton</a></span>(javafx.event.ActionEvent&nbsp;h)</code>&nbsp;</td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#editSong-javafx.event.ActionEvent-">editSong</a></span>(javafx.event.ActionEvent&nbsp;q)</code>&nbsp;</td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#exit-javafx.stage.WindowEvent-">exit</a></span>(javafx.stage.WindowEvent&nbsp;event)</code> <div class="block">exits the application and stops any playing songs</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#getSongInfo-com.neumiu.io.models.Track-">getSongInfo</a></span>(com.neumiu.io.models.Track&nbsp;song)</code> <div class="block">gets the information from the song</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#helpScreen-javafx.event.ActionEvent-">helpScreen</a></span>(javafx.event.ActionEvent&nbsp;f)</code>&nbsp;</td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#initialize-java.net.URL-java.util.ResourceBundle-">initialize</a></span>(java.net.URL&nbsp;arg0, java.util.ResourceBundle&nbsp;arg1)</code>&nbsp;</td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>java.util.List&lt;com.neumiu.io.models.Track&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#load--">load</a></span>()</code> <div class="block">loads the songs</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#manipulateSeekBar-long-long-">manipulateSeekBar</a></span>(long&nbsp;totalTime, long&nbsp;currentTime)</code>&nbsp;</td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#milliToString-long-">milliToString</a></span>(long&nbsp;value)</code>&nbsp;</td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#mute-javafx.event.ActionEvent-">mute</a></span>(javafx.event.ActionEvent&nbsp;m)</code> <div class="block">mutes the volume</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#nextSong-javafx.scene.input.MouseEvent-">nextSong</a></span>(javafx.scene.input.MouseEvent&nbsp;next)</code>&nbsp;</td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#opened-java.lang.Object-java.util.Map-">opened</a></span>(java.lang.Object&nbsp;arg0, java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;arg1)</code>&nbsp;</td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#playSong-javafx.scene.input.MouseEvent-">playSong</a></span>(javafx.scene.input.MouseEvent&nbsp;pla)</code> <div class="block">Plays the music in the music player</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#prevSong-javafx.scene.input.MouseEvent-">prevSong</a></span>(javafx.scene.input.MouseEvent&nbsp;prev)</code> <div class="block">goes one song back in the list og songs and plays it</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#progress-int-long-byte:A-java.util.Map-">progress</a></span>(int&nbsp;arg0, long&nbsp;arg1, byte[]&nbsp;arg2, java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;arg3)</code>&nbsp;</td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#refresh-javafx.scene.input.MouseEvent-">refresh</a></span>(javafx.scene.input.MouseEvent&nbsp;e)</code>&nbsp;</td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#removeSong-javafx.event.ActionEvent-">removeSong</a></span>(javafx.event.ActionEvent&nbsp;rms)</code>&nbsp;</td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#resetPlayer--">resetPlayer</a></span>()</code>&nbsp;</td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#saveDB--">saveDB</a></span>()</code>&nbsp;</td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#saveEditedSong-javafx.event.ActionEvent-">saveEditedSong</a></span>(javafx.event.ActionEvent&nbsp;snsn)</code> <div class="block">Saves added and edited song info in the player</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#saveNewSong-javafx.event.ActionEvent-">saveNewSong</a></span>(javafx.event.ActionEvent&nbsp;sNS)</code>&nbsp;</td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#showAlert-java.lang.String-java.lang.String-java.lang.String-javafx.scene.control.Alert.AlertType-">showAlert</a></span>(java.lang.String&nbsp;title, java.lang.String&nbsp;header, java.lang.String&nbsp;text, javafx.scene.control.Alert.AlertType&nbsp;type)</code>&nbsp;</td> </tr> <tr id="i25" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#statusUpdated-main.java.goxr3plus.javastreamplayer.stream.StreamPlayerEvent-">statusUpdated</a></span>(main.java.goxr3plus.javastreamplayer.stream.StreamPlayerEvent&nbsp;arg0)</code>&nbsp;</td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#stopSong-javafx.scene.input.MouseEvent-">stopSong</a></span>(javafx.scene.input.MouseEvent&nbsp;sto)</code> <div class="block">goes one song forward and plays it</div> </td> </tr> <tr id="i27" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#updateArtwork-java.lang.String-">updateArtwork</a></span>(java.lang.String&nbsp;path)</code>&nbsp;</td> </tr> <tr id="i28" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#updateCurTime-java.lang.String-">updateCurTime</a></span>(java.lang.String&nbsp;currentPlayTime)</code> <div class="block">updates how long the song ha been playing</div> </td> </tr> <tr id="i29" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#updatePlaying-java.lang.String-java.lang.String-">updatePlaying</a></span>(java.lang.String&nbsp;artist, java.lang.String&nbsp;title)</code> <div class="block">updates the playlist when songs are edited or added</div> </td> </tr> <tr id="i30" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/neumiu/io/control/FXMLController.html#updateTotalTime-java.lang.String-">updateTotalTime</a></span>(java.lang.String&nbsp;fullTime)</code> <div class="block">updates the length of the song</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.main.java.goxr3plus.javastreamplayer.stream.StreamPlayer"> <!-- --> </a> <h3>Methods inherited from class&nbsp;main.java.goxr3plus.javastreamplayer.stream.StreamPlayer</h3> <code>addStreamPlayerListener, call, getBalance, getEncodedStreamPosition, getGainValue, getLineBufferSize, getLineCurrentBufferSize, getMaximumGain, getMinimumGain, getMixers, getMute, getPan, getPositionByte, getPrecision, getSourceDataLine, getStatus, getTotalBytes, isOpened, isPaused, isPausedOrPlaying, isPlaying, isSeeking, isStopped, isUnknown, open, pause, play, removeStreamPlayerListener, resume, seek, setBalance, setEqualizer, setEqualizerKey, setGain, setLineBufferSize, setMute, setPan, stop</code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field.detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="track"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>track</h4> <pre>private&nbsp;com.neumiu.io.control.TrackController track</pre> </li> </ul> <a name="addedSongs"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addedSongs</h4> <pre>private static&nbsp;java.util.List&lt;com.neumiu.io.models.Track&gt; addedSongs</pre> </li> </ul> <a name="songs"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>songs</h4> <pre>private static&nbsp;javafx.collections.ObservableList&lt;com.neumiu.io.models.Track&gt; songs</pre> </li> </ul> <a name="volumeLevel"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>volumeLevel</h4> <pre>private&nbsp;double volumeLevel</pre> </li> </ul> <a name="fileName"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>fileName</h4> <pre>private&nbsp;java.lang.String fileName</pre> </li> </ul> <a name="mute"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>mute</h4> <pre>private&nbsp;boolean mute</pre> </li> </ul> <a name="time"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>time</h4> <pre>private&nbsp;java.lang.String time</pre> </li> </ul> <a name="currentPlayTime"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>currentPlayTime</h4> <pre>private&nbsp;long currentPlayTime</pre> </li> </ul> <a name="totalPlayTime"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>totalPlayTime</h4> <pre>private&nbsp;long totalPlayTime</pre> </li> </ul> <a name="currentItem"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>currentItem</h4> <pre>private static&nbsp;int currentItem</pre> </li> </ul> <a name="newSong"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newSong</h4> <pre>private static&nbsp;java.lang.String newSong</pre> </li> </ul> <a name="title"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>title</h4> <pre>private static&nbsp;java.lang.String title</pre> </li> </ul> <a name="genre"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>genre</h4> <pre>private static&nbsp;java.lang.String genre</pre> </li> </ul> <a name="artist"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>artist</h4> <pre>private static&nbsp;java.lang.String artist</pre> </li> </ul> <a name="artwork"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>artwork</h4> <pre>private static&nbsp;java.lang.String artwork</pre> </li> </ul> <a name="songInPlaylist"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>songInPlaylist</h4> <pre>private&nbsp;javafx.scene.control.TableView&lt;com.neumiu.io.models.Track&gt; songInPlaylist</pre> </li> </ul> <a name="titleValue"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>titleValue</h4> <pre>private&nbsp;javafx.scene.control.TableColumn&lt;com.neumiu.io.models.Track,java.lang.String&gt; titleValue</pre> </li> </ul> <a name="artistValue"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>artistValue</h4> <pre>private&nbsp;javafx.scene.control.TableColumn&lt;com.neumiu.io.models.Track,java.lang.String&gt; artistValue</pre> </li> </ul> <a name="genreValue"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>genreValue</h4> <pre>private&nbsp;javafx.scene.control.TableColumn&lt;com.neumiu.io.models.Track,java.lang.String&gt; genreValue</pre> </li> </ul> <a name="volumeSlider"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>volumeSlider</h4> <pre>public&nbsp;javafx.scene.control.Slider volumeSlider</pre> </li> </ul> <a name="seekBar"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>seekBar</h4> <pre>private&nbsp;javafx.scene.control.Slider seekBar</pre> </li> </ul> <a name="muteBox"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>muteBox</h4> <pre>private&nbsp;javafx.scene.control.CheckBox muteBox</pre> </li> </ul> <a name="shuffleBox"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>shuffleBox</h4> <pre>private&nbsp;javafx.scene.control.CheckBox shuffleBox</pre> </li> </ul> <a name="coverArt"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>coverArt</h4> <pre>private&nbsp;javafx.scene.image.ImageView coverArt</pre> </li> </ul> <a name="playTrack"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>playTrack</h4> <pre>private&nbsp;javafx.scene.image.ImageView playTrack</pre> </li> </ul> <a name="currentlyPlaying"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>currentlyPlaying</h4> <pre>private&nbsp;javafx.scene.control.TextField currentlyPlaying</pre> </li> </ul> <a name="addSongName"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addSongName</h4> <pre>private&nbsp;javafx.scene.control.TextField addSongName</pre> </li> </ul> <a name="addSongGenre"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addSongGenre</h4> <pre>private&nbsp;javafx.scene.control.TextField addSongGenre</pre> </li> </ul> <a name="addSongArtist"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addSongArtist</h4> <pre>private&nbsp;javafx.scene.control.TextField addSongArtist</pre> </li> </ul> <a name="editSongName"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>editSongName</h4> <pre>private&nbsp;javafx.scene.control.TextField editSongName</pre> </li> </ul> <a name="editSongGenre"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>editSongGenre</h4> <pre>private&nbsp;javafx.scene.control.TextField editSongGenre</pre> </li> </ul> <a name="editSongArtist"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>editSongArtist</h4> <pre>private&nbsp;javafx.scene.control.TextField editSongArtist</pre> </li> </ul> <a name="curTime"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>curTime</h4> <pre>private&nbsp;javafx.scene.control.Label curTime</pre> </li> </ul> <a name="totalTime"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>totalTime</h4> <pre>private&nbsp;javafx.scene.control.Label totalTime</pre> </li> </ul> <a name="cancel"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>cancel</h4> <pre>private&nbsp;javafx.scene.control.Button cancel</pre> </li> </ul> <a name="save"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>save</h4> <pre>private&nbsp;javafx.scene.control.Button save</pre> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="FXMLController--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>FXMLController</h4> <pre>public&nbsp;FXMLController()</pre> <div class="block">constructor that loads songs into player</div> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getSongInfo-com.neumiu.io.models.Track-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getSongInfo</h4> <pre>protected&nbsp;void&nbsp;getSongInfo(com.neumiu.io.models.Track&nbsp;song) throws java.lang.ClassNotFoundException, java.io.IOException</pre> <div class="block">gets the information from the song</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>song</code> - </dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.ClassNotFoundException</code></dd> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="refresh-javafx.scene.input.MouseEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>refresh</h4> <pre>private&nbsp;void&nbsp;refresh(javafx.scene.input.MouseEvent&nbsp;e)</pre> </li> </ul> <a name="showAlert-java.lang.String-java.lang.String-java.lang.String-javafx.scene.control.Alert.AlertType-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>showAlert</h4> <pre>private&nbsp;void&nbsp;showAlert(java.lang.String&nbsp;title, java.lang.String&nbsp;header, java.lang.String&nbsp;text, javafx.scene.control.Alert.AlertType&nbsp;type)</pre> </li> </ul> <a name="helpScreen-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>helpScreen</h4> <pre>private&nbsp;void&nbsp;helpScreen(javafx.event.ActionEvent&nbsp;f) throws java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="browseImage-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>browseImage</h4> <pre>private&nbsp;void&nbsp;browseImage(javafx.event.ActionEvent&nbsp;r) throws java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="browseMusic-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>browseMusic</h4> <pre>private&nbsp;void&nbsp;browseMusic(javafx.event.ActionEvent&nbsp;r) throws java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="closeButton-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>closeButton</h4> <pre>private&nbsp;void&nbsp;closeButton(javafx.event.ActionEvent&nbsp;h)</pre> </li> </ul> <a name="editSong-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>editSong</h4> <pre>private&nbsp;void&nbsp;editSong(javafx.event.ActionEvent&nbsp;q) throws java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="removeSong-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>removeSong</h4> <pre>private&nbsp;void&nbsp;removeSong(javafx.event.ActionEvent&nbsp;rms)</pre> </li> </ul> <a name="addSong-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addSong</h4> <pre>private&nbsp;void&nbsp;addSong(javafx.event.ActionEvent&nbsp;k) throws java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="saveNewSong-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>saveNewSong</h4> <pre>public&nbsp;void&nbsp;saveNewSong(javafx.event.ActionEvent&nbsp;sNS) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>javax.sound.sampled.UnsupportedAudioFileException</code></dd> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="saveEditedSong-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>saveEditedSong</h4> <pre>public&nbsp;void&nbsp;saveEditedSong(javafx.event.ActionEvent&nbsp;snsn)</pre> <div class="block">Saves added and edited song info in the player</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>snsn</code> - </dd> </dl> </li> </ul> <a name="mute-javafx.event.ActionEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>mute</h4> <pre>public&nbsp;void&nbsp;mute(javafx.event.ActionEvent&nbsp;m)</pre> <div class="block">mutes the volume</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>m</code> - </dd> </dl> </li> </ul> <a name="manipulateSeekBar-long-long-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>manipulateSeekBar</h4> <pre>private&nbsp;void&nbsp;manipulateSeekBar(long&nbsp;totalTime, long&nbsp;currentTime)</pre> </li> </ul> <a name="milliToString-long-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>milliToString</h4> <pre>private&nbsp;void&nbsp;milliToString(long&nbsp;value)</pre> </li> </ul> <a name="playSong-javafx.scene.input.MouseEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>playSong</h4> <pre>public&nbsp;void&nbsp;playSong(javafx.scene.input.MouseEvent&nbsp;pla) throws java.lang.ClassNotFoundException, java.io.IOException</pre> <div class="block">Plays the music in the music player</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>pla</code> - </dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.ClassNotFoundException</code></dd> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="nextSong-javafx.scene.input.MouseEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>nextSong</h4> <pre>public&nbsp;void&nbsp;nextSong(javafx.scene.input.MouseEvent&nbsp;next) throws java.lang.ClassNotFoundException, java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.ClassNotFoundException</code></dd> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="prevSong-javafx.scene.input.MouseEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>prevSong</h4> <pre>public&nbsp;void&nbsp;prevSong(javafx.scene.input.MouseEvent&nbsp;prev) throws java.lang.ClassNotFoundException, java.io.IOException</pre> <div class="block">goes one song back in the list og songs and plays it</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>prev</code> - </dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.ClassNotFoundException</code></dd> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="stopSong-javafx.scene.input.MouseEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>stopSong</h4> <pre>public&nbsp;void&nbsp;stopSong(javafx.scene.input.MouseEvent&nbsp;sto) throws java.lang.InterruptedException</pre> <div class="block">goes one song forward and plays it</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>sto</code> - </dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.InterruptedException</code></dd> </dl> </li> </ul> <a name="resetPlayer--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>resetPlayer</h4> <pre>private&nbsp;void&nbsp;resetPlayer()</pre> </li> </ul> <a name="updateArtwork-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updateArtwork</h4> <pre>public&nbsp;void&nbsp;updateArtwork(java.lang.String&nbsp;path)</pre> </li> </ul> <a name="updatePlaying-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updatePlaying</h4> <pre>public&nbsp;void&nbsp;updatePlaying(java.lang.String&nbsp;artist, java.lang.String&nbsp;title)</pre> <div class="block">updates the playlist when songs are edited or added</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>artist</code> - </dd> <dd><code>title</code> - </dd> </dl> </li> </ul> <a name="updateCurTime-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updateCurTime</h4> <pre>public&nbsp;void&nbsp;updateCurTime(java.lang.String&nbsp;currentPlayTime)</pre> <div class="block">updates how long the song ha been playing</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>currentPlayTime</code> - </dd> </dl> </li> </ul> <a name="updateTotalTime-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updateTotalTime</h4> <pre>public&nbsp;void&nbsp;updateTotalTime(java.lang.String&nbsp;fullTime)</pre> <div class="block">updates the length of the song</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fullTime</code> - </dd> </dl> </li> </ul> <a name="saveDB--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>saveDB</h4> <pre>private&nbsp;void&nbsp;saveDB() throws java.io.IOException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="load--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>load</h4> <pre>public&nbsp;java.util.List&lt;com.neumiu.io.models.Track&gt;&nbsp;load() throws java.lang.ClassNotFoundException, java.io.IOException</pre> <div class="block">loads the songs</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.ClassNotFoundException</code></dd> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="exit-javafx.stage.WindowEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>exit</h4> <pre>public&nbsp;void&nbsp;exit(javafx.stage.WindowEvent&nbsp;event) throws java.io.IOException</pre> <div class="block">exits the application and stops any playing songs</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>event</code> - </dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.io.IOException</code></dd> </dl> </li> </ul> <a name="opened-java.lang.Object-java.util.Map-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>opened</h4> <pre>public&nbsp;void&nbsp;opened(java.lang.Object&nbsp;arg0, java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;arg1)</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code>opened</code>&nbsp;in interface&nbsp;<code>main.java.goxr3plus.javastreamplayer.stream.StreamPlayerListener</code></dd> </dl> </li> </ul> <a name="progress-int-long-byte:A-java.util.Map-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>progress</h4> <pre>public&nbsp;void&nbsp;progress(int&nbsp;arg0, long&nbsp;arg1, byte[]&nbsp;arg2, java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;arg3)</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code>progress</code>&nbsp;in interface&nbsp;<code>main.java.goxr3plus.javastreamplayer.stream.StreamPlayerListener</code></dd> </dl> </li> </ul> <a name="statusUpdated-main.java.goxr3plus.javastreamplayer.stream.StreamPlayerEvent-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>statusUpdated</h4> <pre>public&nbsp;void&nbsp;statusUpdated(main.java.goxr3plus.javastreamplayer.stream.StreamPlayerEvent&nbsp;arg0)</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code>statusUpdated</code>&nbsp;in interface&nbsp;<code>main.java.goxr3plus.javastreamplayer.stream.StreamPlayerListener</code></dd> </dl> </li> </ul> <a name="initialize-java.net.URL-java.util.ResourceBundle-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>initialize</h4> <pre>public&nbsp;void&nbsp;initialize(java.net.URL&nbsp;arg0, java.util.ResourceBundle&nbsp;arg1)</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code>initialize</code>&nbsp;in interface&nbsp;<code>javafx.fxml.Initializable</code></dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../com/neumiu/io/control/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/FXMLController.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev&nbsp;Class</li> <li>Next&nbsp;Class</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/neumiu/io/control/FXMLController.html" target="_top">Frames</a></li> <li><a href="FXMLController.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
html
{"word":"generalized","definition":"Comprising structural characters which are separated in more specialized forms; synthetic; as, a generalized type."}
json
<filename>sonar/cmd/labels_list.go package cmd import ( "fmt" "github.com/felicianotech/sonar/sonar/docker" "github.com/spf13/cobra" log "github.com/sirupsen/logrus" ) var ( labelsListCmd = &cobra.Command{ Use: "list <image-name>", Short: "Displays all labels for a given Docker image name + tag", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { labels, err := docker.GetLabels(args[0]) if err != nil { log.Fatal("Failed to get labels.") } for k, v := range labels { fmt.Printf("%s: %s\n", k, v) } }, } ) func init() { labelsCmd.AddCommand(labelsListCmd) }
go
{ "name": "merino-billing-server", "version": "0.1.0", "description": "Billing application for freelancers", "main": "app.js", "scripts": { "start": "nodemon app.js", "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/mannymerino/merino-billing.git" }, "author": "<NAME>", "license": "MIT", "bugs": { "url": "https://github.com/mannymerino/merino-billing/issues" }, "homepage": "https://github.com/mannymerino/merino-billing#readme", "dependencies": { "cors": "^2.8.4", "dotenv": "^6.0.0", "express": "^4.16.3", "express-graphql": "^0.6.12", "graphql": "^0.13.2", "graphql-tools": "^3.1.1", "lodash": "^4.17.10", "mongoose": "^5.2.6" } }
json