text
stringlengths
1
1.04M
language
stringclasses
25 values
{ "directions": [ "Place the anise seeds in a small bowl with the rum. Set aside to marinate overnight.", "In a medium bowl, cream together the butter, sugar and vanilla until smooth. Stir in the anise seed and rum. Mix in the egg. Combine the flour, salt, baking powder and cloves; stir into the butter mixture until well blended. Cover and refrigerate until chilled, about 1 hour.", "Preheat the oven to 350 degrees F (175 degrees C). On a lightly floured surface, roll the dough out to 1/8 inch thickness. Cut into desired shapes using cookie cutters. Place cookies on a greased cookie sheet.", "Bake for 10 minutes in the preheated oven, or until golden brown at the edges. Cool for a few minutes on baking sheets before removing to wire racks to cool completely." ], "ingredients": [ "2 tablespoons anise seed", "3 tablespoons rum", "1 1/4 cups butter", "3/4 cup white sugar", "1 1/2 teaspoons vanilla extract", "2 1/2 cups all-purpose flour", "1 egg", "1/2 teaspoon salt", "1 teaspoon baking powder", "1 1/2 teaspoons ground cloves" ], "language": "en-US", "source": "allrecipes.com", "tags": [], "title": "Anise Seed Borrachio Cookies", "url": "http://allrecipes.com/recipe/72087/anise-seed-borrachio-cookies/" }
json
pub mod docker; #[cfg(feature = "sys_hotwings")] pub mod hotwings; use ymlctx::context::Context; use crate::TaskError; pub trait Infrastructure { fn start<I>(&self, Context, I) -> Result<String, TaskError> where I: IntoIterator, I::Item: AsRef<std::ffi::OsStr>; } pub fn abstract_infrastructures(name: &str) -> Option<impl Infrastructure> { match name { #[cfg(feature = "sys_hotwings")] "hotwings" => Some(SupportedInfrastructure::Hotwings(hotwings::Hotwings {})), "docker" => Some(SupportedInfrastructure::Docker(docker::Docker {})), _ => None } } pub enum SupportedInfrastructure { Docker(docker::Docker), #[cfg(feature = "sys_hotwings")] Hotwings(hotwings::Hotwings) } impl Infrastructure for SupportedInfrastructure { fn start<I>(&self, ctx_docker: Context, cmd: I) -> Result<String, TaskError> where I: IntoIterator, I::Item: AsRef<std::ffi::OsStr> { match self { SupportedInfrastructure::Docker(i) => i.start(ctx_docker, cmd), #[cfg(feature = "sys_hotwings")] SupportedInfrastructure::Hotwings(i) => i.start(ctx_docker, cmd) } } }
rust
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ /*----------------------------------------------------------------------------*/ package frc.robot; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.PowerDistributionPanel; import edu.wpi.first.wpilibj.XboxController; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj2.command.Command; import frc.robot.commands.Ball.*; import frc.robot.commands.Panel.*; import frc.robot.core751.commands.Drivetrain.ArcadeDrive; import frc.robot.core751.commands.Drivetrain.ReversableArcadeDrive; import frc.robot.core751.commands.Drivetrain.SwitchDriveDirection; import frc.robot.core751.commands.lightstrip.TeamColorLights; import frc.robot.core751.subsystems.Camera; import frc.robot.core751.subsystems.DifferentialDriveTrain; import frc.robot.core751.subsystems.LightStrip; import frc.robot.subsystems.*; import frc.robot.commands.SimpleAuton; /** * This class is where the bulk of the robot should be declared. Since Command-based is a * "declarative" paradigm, very little robot logic should actually be handled in the {@link Robot} * periodic methods (other than the scheduler calls). Instead, the structure of the robot * (including subsystems, commands, and button mappings) should be declared here. */ public class RobotContainer { // The robot's subsystems and commands are defined here... // private final ExampleSubsystem m_exampleSubsystem = new ExampleSubsystem(); // private final ExampleCommand m_autoCommand = new ExampleCommand(m_exampleSubsystem); private final DifferentialDriveTrain differentialDriveTrain = new DifferentialDriveTrain(Constants.leftDrivetrainIDs, Constants.rightDrivetrainIDs, Constants.driveTrainMotorType, Constants.driveMotorProfile, Constants.driveInvertLeft, Constants.driveInvertRight); private final ReversableArcadeDrive reversableArcadeDrive = new ReversableArcadeDrive(Constants.driverStick, differentialDriveTrain); private final SwitchDriveDirection switchDriveDirection = new SwitchDriveDirection(differentialDriveTrain); private final LightStrip[] lightStrips = new LightStrip[] { new LightStrip(Constants.FTLEDstart, Constants.FTLEDLength, Constants.FTLEDOrientation), new LightStrip(Constants.FBLEDstart, Constants.FBLEDLength, Constants.FBLEDOrientation), }; private final TeamColorLights teamColorLights = new TeamColorLights(lightStrips); public final Panel panel = new Panel(Constants.leftColorsensorPort, Constants.rightColorsensorPort, Constants.panelSpinID, Constants.panelRotateID, Constants.panelTopLimitPort, Constants.panelBottomLimitPort); private final GoToColor goToColor = new GoToColor(lightStrips, panel); private final RotateWheel rotateWheel = new RotateWheel(lightStrips, panel); private final ManualPanel manualPanel = new ManualPanel(panel, Constants.driverStick, Constants.rightTrigger, Constants.leftTrigger); private final RotateThenSelect rotateThenSelect = new RotateThenSelect(panel, lightStrips); private final TogglePanelPosition togglePanelPosition = new TogglePanelPosition(panel); private Camera camera; private final Ball ball = new Ball(Constants.ballIntakeMotorID, Constants.ballPolycordMotorID, Constants.ballOutakeMotorID); private final DefaultBall defaultBall = new DefaultBall(ball, Constants.driverStick, Constants.ballLBumper, Constants.ballRBumper, Constants.ballOutButton, Constants.ballReverseOutButton); private final PowerDistributionPanel pdp = new PowerDistributionPanel(); /** * The container for the robot. Contains subsystems, OI devices, and commands. */ public RobotContainer() { try { this.camera = new Camera(0); } catch (Exception e) { System.out.println(e); } //Configure the button bindings configureButtonBindings(); } /** * Use this method to define your button->command mappings. Buttons can be created by * instantiating a {@link GenericHID} or one of its subclasses ({@link * edu.wpi.first.wpilibj.Joystick} or {@link XboxController}), and then passing it to a * {@link edu.wpi.first.wpilibj2.command.button.JoystickButton}. */ private void configureButtonBindings() { for (LightStrip l : lightStrips) { l.setDefaultCommand(teamColorLights); } panel.setDefaultCommand(manualPanel); differentialDriveTrain.setDefaultCommand(reversableArcadeDrive); ball.setDefaultCommand(defaultBall); Constants.panelToggleButton.whenPressed(togglePanelPosition); Constants.driveSwitchDirectionButton.whenPressed(switchDriveDirection); Constants.panelColorSpinButton.whenPressed(rotateWheel); Constants.panelColorButton.whenPressed(goToColor); SmartDashboard.putData(pdp); SmartDashboard.putData(togglePanelPosition); SmartDashboard.putData(goToColor); SmartDashboard.putData(rotateWheel); SmartDashboard.putData(rotateThenSelect); } /** * Use this to pass the autonomous command to the main {@link Robot} class. * * @return the command to run in autonomous */ public Command getAutonomousCommand() { // An ExampleCommand will run in autonomous //TODO: Add auto command return new SimpleAuton(differentialDriveTrain, ball); } }
java
The latest episode of NXT revealed Grizzled Young Veterans to be the faces behind Joe Gacy's mysterious duo, The Dyad. The assailants first made their appearance during Gacy's quest for Bron Breakker's NXT Championship. The Dyad helped Gacy by assisting him in some of his face-offs against the champion. Although they have competed in the ring, their identities were not known until now. The July 19 episode finally unveiled the identities of the masked assailants. During the backstage segment, it was revealed that The Dyad are former NXT UK Tag Team Champions Grizzled Young Veterans. They appeared with a changed, clean-shaven look. The names of the members were also altered, with James Drake, now known as Jagger Reid, and Zack Gibson being referred to as Rip Fowler. The latest episode of the show opened with a singles match between JD McDonagh and Cameron Grimes. Towards the end of the match, the former title challenger distracted Grimes, which led to McDonagh picking up the win. This led to a backstage segment where the identities of the two men were revealed. Later in the show, Gacy confronted Grimes to coax him into joining the group. The last time GYV made an appearance was in April this year, when they were defeated by Joaquin Wilde and Cruz Del Toro of Legado Del Fantasma. What do you think about this new stable? Leave your thoughts in the comments section below.
english
{ "id": 116173, "name": "Bash.im ad cleaner", "description": "Bash.im ad cleaner", "user": { "id": 294793, "name": "<NAME>", "email": "<PASSWORD>acted", "paypal_email": null, "homepage": null, "about": null, "license": "publicdomain" }, "updated": "2016-05-19T10:06:34.000Z", "weekly_install_count": 0, "total_install_count": 86, "rating": null, "after_screenshot_name": "https://userstyles.org/auto_style_screenshots/116173-after.png?r=1602144809", "obsoleting_style_id": null, "obsoleting_style_name": null, "obsolete": 0, "admin_delete_reason_id": null, "obsoletion_message": null, "screenshots": null, "license": "publicdomain", "created": "2015-07-08T00:34:13.000Z", "category": "site", "raw_subcategory": "bash", "subcategory": "bash", "additional_info": null, "style_tags": [], "css": "@-moz-document domain(bash.im){\r\n/* bash.im ad cleaner; 19.05.16; AmatanHead */\r\ndiv[id*='yandex_ad'] { display: none !important; }\r\n#header + div { width: auto !important; }\r\n.quote > div { height: auto !important; }\r\n}\r\n", "discussions": [], "discussionsCount": 0, "commentsCount": 0, "userjs_url": "/styles/userjs/116173/bash-im-ad-cleaner.user.js", "style_settings": [] }
json
<filename>tests/program_impl_test.cpp #include "program_impl.h" #include "system_impl.h" ProgramImpl::ProgramImpl(qbProgram* program, ComponentRegistry* component_registry) : program_(program), events_(program->id), component_registry_(component_registry) {} ProgramImpl* ProgramImpl::FromRaw(qbProgram* program) { return (ProgramImpl*)program->self; } qbSystem ProgramImpl::CreateSystem(const qbSystemAttr_& attr) { qbSystem system = AllocSystem(systems_.size(), attr); systems_.push_back(system); EnableSystem(system); return system; } qbResult ProgramImpl::FreeSystem(qbSystem system) { return DisableSystem(system); } qbResult ProgramImpl::EnableSystem(qbSystem system) { DisableSystem(system); if (system->policy.trigger == qbTrigger::QB_TRIGGER_LOOP) { loop_systems_.push_back(system); std::sort(loop_systems_.begin(), loop_systems_.end()); } else if (system->policy.trigger == qbTrigger::QB_TRIGGER_EVENT) { event_systems_.insert(system); } else { return QB_ERROR_UNKNOWN_TRIGGER_POLICY; } return QB_OK; } qbResult ProgramImpl::DisableSystem(qbSystem system) { auto found = std::find(loop_systems_.begin(), loop_systems_.end(), system); if (found != loop_systems_.end()) { loop_systems_.erase(found); } else { event_systems_.erase(system); } return QB_OK; } bool ProgramImpl::HasSystem(qbSystem system) { return std::find(systems_.begin(), systems_.end(), system) != systems_.end(); } qbResult ProgramImpl::CreateEvent(qbEvent* event, qbEventAttr attr) { return events_.CreateEvent(event, attr); } void ProgramImpl::FlushAllEvents() { events_.FlushAll(); } void ProgramImpl::SubscribeTo(qbEvent event, qbSystem system) { events_.Subscribe(event, system); } void ProgramImpl::UnsubscribeFrom(qbEvent event, qbSystem system) { events_.Unsubscribe(event, system); } void ProgramImpl::Run() { events_.FlushAll(); for(qbSystem p : loop_systems_) { SystemImpl::FromRaw(p)->Run(); } } qbSystem ProgramImpl::AllocSystem(qbId id, const qbSystemAttr_& attr) { qbSystem p = (qbSystem)calloc(1, sizeof(qbSystem_) + sizeof(SystemImpl)); *(qbId*)(&p->id) = id; *(qbId*)(&p->program) = program_->id; p->policy.trigger = attr.trigger; p->policy.priority = attr.priority; p->user_state = attr.state; SystemImpl* impl = SystemImpl::FromRaw(p); new (impl) SystemImpl(component_registry_, attr, p); return p; }
cpp
<reponame>jpjazzy/ui-challenge-1<filename>style.css /* MOBILE APP STYLES */ @media only screen and (max-width: 800px) { /********** MAIN LAYOUT *********/ * { outline: 1px solid #000; } body { max-width: 100%; background: radial-gradient(#9400D3, #FF0000); } /********** MODULES *********/ span { text-transform: uppercase; font-size: 50px; color: #444; outline: none; } div { text-align: center; vertical-align: middle; } /********** IDs *********/ #a-box { background: radial-gradient(#FFF, #FF0000); height: 75px; line-height: 75px; } #b-box { background: radial-gradient(#FFF, #FF7F00); height: 150px; line-height: 150px; } #c-box { background: radial-gradient(#FFF, #FFFF00); height: 125px; line-height: 125px; } #d-box { background: radial-gradient(#FFF, #00FF00); height: 125px; line-height: 125px; } #e-box { background: radial-gradient(#FFF, #0000FF); float:left; margin-left: 0px; height: 250px; line-height: 250px; width: 50%; display: inline-block; } #f-box { background: radial-gradient(#FFF, #0000FF); float:left; height: 250px; line-height: 250px; width: 50%; display: inline-block; } #g-box { background: radial-gradient(#FFF, #0000FF); float:left; height: 250px; line-height: 250px; width: 50%; display: inline-block; } #h-box { background: radial-gradient(#FFF, #4B0082); float:left; height: 250px; line-height: 250px; width: 50%; display: inline-block; } #i-box { background: radial-gradient(#FFF, #9400D3); height: 80px; line-height: 80px; clear: both; } }
css
<gh_stars>0 <HTML> <HEAD> <TITLE>PyCScrollView.ScrollToPosition</TITLE> <META NAME="GENERATOR" CONTENT="Autoduck, by <EMAIL>"> <H1><A HREF="PyCScrollView.html">PyCScrollView</A>.ScrollToPosition</H1><P> <B>ScrollToPosition(<I>position</I></B>)<P>Scrolls to a given point in the view.<P> <H3>Parameters</H3><P><DT><I>position</I> : (x,y)<P> <DD>The position to scroll to.<P></body> </html>
html
<filename>storage-proofs/porep/tests/stacked_circuit.rs use bellperson::{ bls::{Bls12, Fr}, util_cs::{metric_cs::MetricCS, test_cs::TestConstraintSystem}, Circuit, ConstraintSystem, }; use ff::Field; use filecoin_hashers::{poseidon::PoseidonHasher, sha256::Sha256Hasher, Hasher}; use fr32::fr_into_bytes; use generic_array::typenum::{U0, U2, U4, U8}; use merkletree::store::StoreConfig; use rand::{Rng, SeedableRng}; use rand_xorshift::XorShiftRng; use storage_proofs_core::{ api_version::ApiVersion, cache_key::CacheKey, compound_proof::CompoundProof, drgraph::BASE_DEGREE, merkle::{get_base_tree_count, DiskTree, MerkleTreeTrait}, proof::ProofScheme, test_helper::setup_replica, util::default_rows_to_discard, TEST_SEED, }; use storage_proofs_porep::{ stacked::{ LayerChallenges, PrivateInputs, PublicInputs, SetupParams, StackedCompound, StackedDrg, TemporaryAux, TemporaryAuxCache, BINARY_ARITY, EXP_DEGREE, }, PoRep, }; #[test] fn test_stacked_porep_circuit_poseidon_base_2() { test_stacked_porep_circuit::<DiskTree<PoseidonHasher, U2, U0, U0>>(22, 1_206_212); } #[test] fn test_stacked_input_circuit_poseidon_base_8() { test_stacked_porep_circuit::<DiskTree<PoseidonHasher, U8, U0, U0>>(22, 1_199_620); } #[test] fn test_stacked_input_circuit_poseidon_sub_8_4() { test_stacked_porep_circuit::<DiskTree<PoseidonHasher, U8, U4, U0>>(22, 1_296_576); } #[test] fn test_stacked_input_circuit_poseidon_top_8_4_2() { test_stacked_porep_circuit::<DiskTree<PoseidonHasher, U8, U4, U2>>(22, 1_346_982); } fn test_stacked_porep_circuit<Tree: MerkleTreeTrait + 'static>( expected_inputs: usize, expected_constraints: usize, ) { let nodes = 8 * get_base_tree_count::<Tree>(); let degree = BASE_DEGREE; let expansion_degree = EXP_DEGREE; let num_layers = 2; let layer_challenges = LayerChallenges::new(num_layers, 1); let rng = &mut XorShiftRng::from_seed(TEST_SEED); let replica_id: Fr = Fr::random(rng); let data: Vec<u8> = (0..nodes) .flat_map(|_| fr_into_bytes(&Fr::random(rng))) .collect(); // MT for original data is always named tree-d, and it will be // referenced later in the process as such. let cache_dir = tempfile::tempdir().unwrap(); let config = StoreConfig::new( cache_dir.path(), CacheKey::CommDTree.to_string(), default_rows_to_discard(nodes, BINARY_ARITY), ); // Generate a replica path. let replica_path = cache_dir.path().join("replica-path"); let mut mmapped_data = setup_replica(&data, &replica_path); let arbitrary_porep_id = [44; 32]; let sp = SetupParams { nodes, degree, expansion_degree, porep_id: arbitrary_porep_id, layer_challenges, api_version: ApiVersion::V1_1_0, }; let pp = StackedDrg::<Tree, Sha256Hasher>::setup(&sp).expect("setup failed"); let (tau, (p_aux, t_aux)) = StackedDrg::<Tree, Sha256Hasher>::replicate( &pp, &replica_id.into(), (mmapped_data.as_mut()).into(), None, config, replica_path.clone(), ) .expect("replication failed"); let mut copied = vec![0; data.len()]; copied.copy_from_slice(&mmapped_data); assert_ne!(data, copied, "replication did not change data"); let seed = rng.gen(); let pub_inputs = PublicInputs::<<Tree::Hasher as Hasher>::Domain, <Sha256Hasher as Hasher>::Domain> { replica_id: replica_id.into(), seed, tau: Some(tau), k: None, }; // Store copy of original t_aux for later resource deletion. let t_aux_orig = t_aux.clone(); // Convert TemporaryAux to TemporaryAuxCache, which instantiates all // elements based on the configs stored in TemporaryAux. let t_aux = TemporaryAuxCache::<Tree, Sha256Hasher>::new(&t_aux, replica_path) .expect("failed to restore contents of t_aux"); let priv_inputs = PrivateInputs::<Tree, Sha256Hasher> { p_aux, t_aux }; let proofs = StackedDrg::<Tree, Sha256Hasher>::prove_all_partitions(&pp, &pub_inputs, &priv_inputs, 1) .expect("failed to generate partition proofs"); let proofs_are_valid = StackedDrg::<Tree, Sha256Hasher>::verify_all_partitions(&pp, &pub_inputs, &proofs) .expect("failed while trying to verify partition proofs"); assert!(proofs_are_valid); // Discard cached MTs that are no longer needed. TemporaryAux::<Tree, Sha256Hasher>::clear_temp(t_aux_orig).expect("t_aux delete failed"); { // Verify that MetricCS returns the same metrics as TestConstraintSystem. let mut cs = MetricCS::<Bls12>::new(); StackedCompound::<Tree, Sha256Hasher>::circuit(&pub_inputs, (), &proofs[0], &pp, None) .expect("circuit failed") .synthesize(&mut cs.namespace(|| "stacked drgporep")) .expect("failed to synthesize circuit"); assert_eq!(cs.num_inputs(), expected_inputs, "wrong number of inputs"); assert_eq!( cs.num_constraints(), expected_constraints, "wrong number of constraints" ); } let mut cs = TestConstraintSystem::<Bls12>::new(); StackedCompound::<Tree, Sha256Hasher>::circuit(&pub_inputs, (), &proofs[0], &pp, None) .expect("circuit failed") .synthesize(&mut cs.namespace(|| "stacked drgporep")) .expect("failed to synthesize circuit"); assert!(cs.is_satisfied(), "constraints not satisfied"); assert_eq!(cs.num_inputs(), expected_inputs, "wrong number of inputs"); assert_eq!( cs.num_constraints(), expected_constraints, "wrong number of constraints" ); assert_eq!(cs.get_input(0, "ONE"), Fr::one()); let generated_inputs = <StackedCompound<Tree, Sha256Hasher> as CompoundProof< StackedDrg<'_, Tree, Sha256Hasher>, _, >>::generate_public_inputs(&pub_inputs, &pp, None) .expect("failed to generate public inputs"); let expected_inputs = cs.get_inputs(); for ((input, label), generated_input) in expected_inputs.iter().skip(1).zip(generated_inputs.iter()) { assert_eq!(input, generated_input, "{}", label); } assert_eq!( generated_inputs.len(), expected_inputs.len() - 1, "inputs are not the same length" ); cache_dir.close().expect("Failed to remove cache dir"); }
rust
Zombie survival is an exceptionally popular genre in gaming. There has been a steady rise in the number of zombie survival games being made for the mobile gaming industry. These games usually incorporate not just a simple shooting mechanism to fight off zombies but other survival elements such as gathering resources, crafting weapons and building shelters to protect from incoming hoards of zombies. In this article, we take you through our top picks of zombie survival games that you can play on your Android device. Last Day on Earth is definitely one of the best zombie survival games on Android. The game mixes elements of resource gathering, looting as well as crafting weapons to create a game that will keep you hooked for hours. Last Day on Earth centres around your home base, which you have to build up as fast as you can before the regular hordes of zombies come knocking it down. The game allows you to keep dogs as pets and also lets you breed them into even stronger and more ferocious dogs that will protect you! The Walking Dead: Our World is a location-based augmented reality game which is based in the universe of your favourite zombie TV series of the same name. Players can gather resources, rescue survivors, build and maintain shelter while also fighting off walkers at the same time. You can also unlock legendary characters like Rick Grimes or Daryl Dixon in the game, allowing you to truly feel like a part of the Walking Dead universe. Last Shelter: Survival is one zombie survival game that focuses more on the building and maintenance of the ultimate shelter than on actually venturing out to gather resources or fight zombies. You will be playing this game as an overseer of a new post-apocalyptic colony, which must be maintained with an abundance of resources and enough of a civilian army to protect your walled city from the attack of zombies that lurk beyond the fence. Grim Soul is a zombie survival game made by the creators of Last Day on Earth and follows mostly the same game mechanics as the latter. However, the one thing that sets it apart is that it is a medieval-themed post-apocalyptic zombie survival game in which you will come across enchanted and mutated zombies knights. You can build your base or castle in order to protect yourself while also venturing out to find loot. You can also craft yourself some good weapons and armour to keep going in the game. Dawn of Zombies is one game that focuses as much on fighting zombies as it does on collecting resources and crafting weapons. This zombie survival game requires the player to rescue survivors in need and then have them hold your base down while you fight off zombies and collect resources for your survival. The game can be quite challenging at times, but it has a wide variety of missions that you can undertake as well as new locations to loot and keep you busy for hours on an end. GTA 5's mammoth $7,700,000,000 earnings set to be challenged by upcoming game! Know more here.
english
<gh_stars>0 { "id": "dainty_fists", "originalId": 372211, "rarity": 3, "name": "<NAME>", "description": "Une formation rocheuse de couleur brune. Une légende prétend que le Souverain de la Roche décida un jour de poser de robustes roches comme celles-ci sur une route dangereuse des Monts Tianheng, créant ainsi un obstacle pour ses ennemis. Un grand général, aux ordres d'un Archon rival, aperçut ces rochers sur la route et s'en moqua de la sorte : « Ces cailloux délicats ne sont pas de taille face à mon poing ». Il ordonna alors à ses troupes de poursuivre leur avancée. À sa grande surprise, les roues de son char ne réussirent pas à écraser ces roches robustes, et ce dernier, ayant perdu le contrôle, se renversa. Le général dégringola alors au pied de la montagne avant de s'enfuir. Ce type de rochers est depuis surnommé « amas rocheux de poing délicat » en hommage aux paroles orgueilleuses qui ont précédé la chute de ce général trop fier.", "load": 24, "energy": 20, "category": [ { "id": 10002, "category": "Roches", "type": "Exterior" } ] }
json
<reponame>SlanyCukr/agrpdev-scrapper import json from datetime import datetime from classes.ArticleInfo import ArticleInfo from utils.utils import can_add_url from classes.Comment import Comment def parse_article_id_url(response, url_limit): """ Finds url on novinky.cz with article_id, that satisfies url_limit condition :param response: Scrapy response :param url_limit: :return: URL as str """ # finds first link to article, splits it into subarrays by '-' and takes last element => id of the article first_article_id = response.css('div[data-dot="top_clanky"] a::attr(href)')[0].extract().split('-')[-1] # calculate article id in the past -> substract (url_limit - 4) why number 4 ? # because first 4 articles are not present in the stalo_se timeline needed_article_id = int(first_article_id) - abs((int(url_limit) - 4)) return "https://www.novinky.cz/?timeline-stalose-lastItem=" + str(needed_article_id) def parse_all_urls(response, articles, url_limit): """ Populates article list with URLs pointing to articles :param response: Scrapy response :param articles: Articles list :param url_limit: :return: None """ # load urls from section "top_clanky", and from "stalo-se" for url in response.css('div[data-dot="top_clanky"] a::attr(href)'): if can_add_url(articles, url_limit, url.extract()): articles.append(ArticleInfo(url.extract())) for url in response.css('div[data-dot="stalo_se"] a::attr(href)'): if can_add_url(articles, url_limit, url.extract()): articles.append(ArticleInfo(url.extract())) def parse_additional_data(response): """ Retrieves additional data about article and saves it to the ArticleInfo object :param response: Scrapy response :param date_limit: Date limit in '%Y-%m-%d' format :return: """ article = response.meta.get('article_object') articles = response.meta.get('articles') date_limit = response.meta.get('date_limit') # load almost all required info from script as text, and convert it to JSON additional_infos = response.css('script[type="application/ld+json"] ::text').getall() first_script_json = json.loads(additional_infos[0]) second_script_json = json.loads(additional_infos[1]) # load some data to variables article.header = second_script_json["headline"] article.description = second_script_json["description"] item_list_element = first_script_json["itemListElement"] for list_element in item_list_element: if list_element["position"] == 2: article.category = list_element["name"] article.published_at = datetime.strptime(second_script_json["datePublished"], '%Y-%m-%dT%H:%M:%S.%fZ') article.modified_at = datetime.strptime(second_script_json["dateModified"], '%Y-%m-%dT%H:%M:%S.%fZ') # limit articles by date, this is stronger than limit by url_limit if date_limit: if article.published_at <= datetime.strptime(date_limit, "%Y-%m-%d"): articles.remove(article) return # retrieve author article.author = retrieve_author(response) # load all paragraphs and filter out ones, that are too short paragraphs = response.css('div[data-dot-data=\'{"component":"article-content"}\'] p::text').getall() article.paragraphs = list(filter(lambda x: len(x) >= 70, paragraphs)) def retrieve_author(response): """ Retrieves author from article :param response: Scrapy response :return: Author as str """ author = response.css('div[data-dot-data=\'{"click":"author"}\']::text').get(default="") author_links = response.css('div[data-dot-data=\'{"click":"author"}\'] a::text').getall() # no space is needed for author_links if len(author_links) != 0 and author: author = author + " " # if there is extra ',' char, remove it if ',' in author: author = "" for text in author_links: author += text + "," author = author[:-1] return author def parse_comments(response): """ Retrieves comments from article :param response: Scrapy response :return: Comments as list of Comment objects """ article = response.meta.get("article_object") comments = [] # parses all info about comments from comments page (xpath needed here to better access to elements) author_texts = response.xpath("//a[@data-dot='souhl<EMAIL>']/../../div/div/div/text()").getall() texts = response.xpath("//a[@data-dot='souhlasim']/../../../../div/div/text()").getall() likes = response.xpath("//a[@data-dot='souhlasim']/span/text()").getall() dislikes = response.xpath("//a[@data-dot='nesouhlasim']/span/text()").getall() times = response.xpath("//a[@data-dot='souhlasim']/../../div/div/div/span/text()").getall() for i in range(len(likes)): comments.append(Comment(author_texts[i], texts[i], likes[i], dislikes[i], times[i])) article.comments = comments
python
Blake Dauvin and his girlfriend left on the same day with the same expected day back, but said the constant delays have been weighing on everyone.“I want to go home. People have jobs, people have families, especially over Christmas we’re missing out on those things,” Dauvin added. He noted that he was hopeful, saying that a Saskatoon flight to the Dominican is on its way for Wednesday, and that he hopes to catch it heading back to Saskatoon.“A number of return flights continue to be impacted by delays due to displaced crew and aircraft resulting from the aftermath of severe weather disruptions across Canada. “Our teams continue to proactively work around the clock with several airline partners to subservice aircraft and return customers home. We have completed two recovery flights so far this week, have planned another eight recovery flights which are scheduled to depart up to and including December 30, 2022, and are currently finalizing recovery plans for our remaining passengers in destination.Read more: Christmas Day police-involved shooting in Strathmore, Alta. - Calgary | Globalnews.caPolice fired at the man who was reportedly causing a disturbance at a gas station after he drew a weapon on officers when they approached him. Collision between train, vehicles in Brechin, Ont. leaves man dead | Globalnews.caPolice say the driver of one of the vehicles was pronounced dead at hospital, and has since been identified as 63-year-old Sean Carpenter of Kirkfield, Ont. 5 injured, 1 critically, after single-vehicle crash in Toronto - Toronto | Globalnews.caToronto police said emergency crews responded at 1:15 a.m. Monday to the area of Weston Road and St. Clair Avenue West. Thousands of Quebecers still in the dark after powerful winter storm | Globalnews.caHydro-Québec says crews are working to restore power but the majority of remaining outages affect a small number of people at a time, which is why it is taking long to fix. Love, reunions, whale sightings and more: B.C.’s good news stories of 2022 | Globalnews.caLife could be tough at times, but there were a number of stories that lifted our spirits, expanded our minds and reaffirmed our belief in the beauty and goodness in the world.
english
<reponame>kadiwa4/livesplit-core use super::{ entity::{calculate_hash, Entity}, resource::{Handle, SharedOwnership}, FillShader, }; use crate::platform::prelude::*; /// Describes a layer of a [`Scene`] to place an [`Entity`] on. #[derive(Copy, Clone, PartialEq, Eq)] pub enum Layer { /// The bottom layer is the layer where all the less frequently changing /// [`Entities`](Entity) are being placed on. Bottom, /// The top layer is the layer where all the [`Entities`](Entity) that are /// expected to frequently change are being placed on. Top, } impl Layer { /// Returns the appropriate layer to use depending on whether the [`Entity`] /// to place updates frequently or not. pub const fn from_updates_frequently(updates_frequently: bool) -> Self { match updates_frequently { false => Self::Bottom, true => Self::Top, } } } /// A scene describes all the [`Entities`](Entity) to visualize. It consists of /// two [`Layers`](Layer) that are supposed to be composited on top of each /// other. The bottom [`Layer`] changes infrequently and doesn't need to be /// rerendered for most frames. The top [`Layer`] contains all the per frame /// changes and needs to be rerendered for every frame. If however it is empty /// and both the bottom layer didn't change, then no new frame needs to be /// rendered. While the top [`Layer`] is inherently transparent, the bottom /// [`Layer`] has a background that needs to be considered. pub struct Scene<P, I, L> { rectangle: Handle<P>, background: Option<FillShader>, bottom_hash: u64, bottom_layer_changed: bool, bottom_layer: Vec<Entity<P, I, L>>, top_layer: Vec<Entity<P, I, L>>, } impl<P: SharedOwnership, I: SharedOwnership, L: SharedOwnership> Scene<P, I, L> { /// Creates a new scene with the rectangle provided to use for placing /// rectangle entities. pub fn new(rectangle: Handle<P>) -> Self { Self { rectangle, background: None, bottom_hash: calculate_hash::<P, I, L>(&None, &[]), bottom_layer_changed: false, bottom_layer: Vec::new(), top_layer: Vec::new(), } } /// Get a reference to the bottom [`Layer's`](Layer) background. While the /// top [`Layer`] is inherently transparent, the bottom [`Layer`] has a /// background that needs to be considered. pub fn background(&self) -> &Option<FillShader> { &self.background } /// Check if the scene's bottom [`Layer`] changed. Use this method to check /// if the bottom [`Layer`] needs to be rerendered. If the background of the /// bottom [`Layer`] changes this also returns `true`, so the background /// doesn't need to manually be compared. pub fn bottom_layer_changed(&self) -> bool { self.bottom_layer_changed } /// Get a reference to the scene's bottom [`Layer`]. This [`Layer`] is /// intended to infrequently change, so it doesn't need to be rerendered /// every frame. pub fn bottom_layer(&self) -> &[Entity<P, I, L>] { &self.bottom_layer } /// Get a reference to the scene's top [`Layer`]. pub fn top_layer(&self) -> &[Entity<P, I, L>] { &self.top_layer } /// Get access to the rectangle resource the scene stores. pub fn rectangle(&self) -> Handle<P> { self.rectangle.share() } /// Set the bottom [`Layer's`](Layer) background. pub fn set_background(&mut self, background: Option<FillShader>) { self.background = background; } /// Get a mutable reference to the scene's bottom [`Layer`]. pub fn bottom_layer_mut(&mut self) -> &mut Vec<Entity<P, I, L>> { &mut self.bottom_layer } /// Get a mutable reference to the scene's top [`Layer`]. pub fn top_layer_mut(&mut self) -> &mut Vec<Entity<P, I, L>> { &mut self.top_layer } /// Clears all the [`Layers`](Layer) such that no [`Entities`](Entity) are /// left. pub fn clear(&mut self) { self.bottom_layer.clear(); self.top_layer.clear(); } /// Recalculates the hash of the bottom [`Layer`] and checks if it changed. /// The bottom [`Layer`] is intended to infrequently change, such that it /// doesn't need to be rerendered all the time. pub fn recalculate_if_bottom_layer_changed(&mut self) { let new_hash = calculate_hash(&self.background, &self.bottom_layer); self.bottom_layer_changed = new_hash != self.bottom_hash; self.bottom_hash = new_hash; } /// Accesses the [`Layer`] specified mutably. pub fn layer_mut(&mut self, layer: Layer) -> &mut Vec<Entity<P, I, L>> { match layer { Layer::Bottom => &mut self.bottom_layer, Layer::Top => &mut self.top_layer, } } }
rust
Later today, NetSuite will announce that it is bringing Sage dealers into its growing network of resellers. From the blurbs: Blytheco will focus on selling, implementing and supporting NetSuite cloud ERP /financials, CRM, Ecommerce and supply chain solutions to a growing new prospect base that is increasingly interested in moving to cloud-based business management solutions from on-premise software. The partnership extends Blytheco’s offerings beyond its traditional focus of on-premise Sage applications. Having built best practices for extending on-premise software to meet industry-specific needs for its clients, Blytheco is planning to leverage that domain knowledge to build SuiteApps using NetSuite’s SuiteCloud Computing Platform to leverage their NetSuite cloud offerings to meet vertical needs. I would not normally cover this type of announcement but it is important for several reasons. Last week, the company reported what I consider a weak first half. In my analysis on my personal weblog I said: ...despite the talk about organic growth, Sage is achieving more per customer than it was in the past but there are less of them. This is not sustainable in a market where cloud pricing is stable. An 81% renewal rate on support contracts bolsters that theory as customers move to cloud solutions. In fact, an effective loss of business means that year over year from 2010, Sage’s business when measured on volume has shrunk by a third, offset by price hikes in some places and additional subscription revenues coming in at lower prices elsewhere. One senior investment banker I bumped into asked: "What does (CEO) Berruyer think he's doing? The current strategy makes no sense especially when there is so little available for real innovation across the whole portfolio." All of which plays perfectly to NetSuite that really needs to ramp the reseller network if it is to accelerate growth. During a conversation with Craig West who runs NetSuite's reseller program, I said that while the Blytheco deal may not of itself be terribly significant, the fact that a died in the wool Sage reseller has taken the plunge out to be a signal to the whole of the Sage reseller market both in the US and elsewhere. I asked if Blythco will likely drop Sage any time soon. West said: "That's not likely - they have a lot of customers to continue supporting. But for replacement business, we're well positioned. Sage 100 and 200 are going nowhere and NetSuite can fit in nicely in those upgrade situations." I'm not going to disagree. For the last few years, Sage has had a very difficult time in the UK for example moving it Sage 50 customers up to 100 and beyond. In many deals it often loses out to either a cloud offering or (mostly) Microsoft. Of course NetSuite hasn't cracked the SME market just yet. It still has to figure out what to do about Intuit which remains a powerful and important incumbent.
english
<gh_stars>0 from typing import Union, Tuple, List, Dict from typing_extensions import Literal from collections import OrderedDict import torch from .recursive_getattr import _recursive_getattr ReturnContainerTypes = Union[ Literal["dict"], Literal["list"], Literal["tensor"] ] class IntermediateFeatureModule(torch.nn.Module): def __init__( self, base_model: torch.nn.Module, feature_layers: Union[str, List[str]], dummy_input_size: Tuple[int], return_type: ReturnContainerTypes = "dict", ): """A module that extracts intermediate output from another module. If you have someone else's pytorch module and want to extract inter- mediate output (e.g. to make a Feature Pyramid), use this class. Parameters ---------- base_model : torch.nn.Module The module you want to extract intermediate data from. feature_layers : Union[str, Sequence[str]] The layer(s) that you want to extract. Either a single layer name, or a list of layer names. This can be specified hierarchically, eg. 'layer4.relu' or 'backbone.feature_extractor.0' - specify the names of layers either as the name it has as an attribute of the parent, or (for e.g. Sequential models or ModelLists) as an integer. dummy_input_size : Tuple[int], optional In order to determine the output of this module, a dummy input will be run through the base_model. Specify the size here (without the batch dimension, as this will always be 1). For example, for images, you may want to choose (3, 512, 512). return_type : str, optional How you want the data to be returned - one of: 'dict' - a dictionary like {layer_name: <output_tensor>, ...} 'list' - a list in order of the names passed in, e.g. [<layer1_output>, ...] """ super().__init__() self.base_model = base_model self.cache: Dict[str, torch.Tensor] = OrderedDict() self.return_type = return_type if isinstance(feature_layers, str): self.feature_layers = [feature_layers] self.return_type = "tensor" else: self.feature_layers = list(feature_layers) for layer_name in self.feature_layers: layer = _recursive_getattr(self.base_model, layer_name) # register the hook to cache this layer: self._cache_activations(layer, layer_name) # run a dummy input through the network: self.eval() # in case this model behaves weirdly during training with torch.no_grad(): dummy_input = torch.randn(*(1, *dummy_input_size)) dummy_output = self.forward(dummy_input) if self.return_type == "list": dummy_output_shapes = [t.shape[1:] for t in dummy_output] elif self.return_type == "dict": dummy_output_shapes = [ t.shape[1:] for t in dummy_output.values() ] elif self.return_type == "tensor": dummy_output_shapes = [dummy_output.shape[1:]] if len(dummy_input_size) >= 2: # 2 / 3 / 4D input, probably convolutional self.input_channels = dummy_input_size[0] self.output_channels: List[int] = [ shape[0] for shape in dummy_output_shapes ] self.size_factors: List[float] = [] input_size = dummy_input_size[-1] for shape in dummy_output_shapes: self.size_factors.append(shape[-1] / input_size) input_size = shape[-1] if self.return_type == "tensor": self.output_channels = self.output_channels[0] elif len(dummy_input_size) == 1: # 1D or linear case self.in_features = dummy_input_size[0] self.out_features: List[int] = [ shape[0] for shape in dummy_output_shapes ] if self.return_type == "tensor": self.out_features = self.out_features[0] self.train() def forward( # type: ignore self, x: torch.Tensor ) -> Union[Dict[str, torch.Tensor], List[torch.Tensor]]: cache_keys = self.cache_keys() if not all(key in self.cache for key in cache_keys): # run forward pass of base_model self.base_model(x) output = OrderedDict( [ (feature_layer, self.cache[cache_key]) for feature_layer, cache_key in zip( self.feature_layers, cache_keys ) ] ) # remove only this device's cached results: for cache_key in cache_keys: self.cache.pop(cache_key) output = self._format_output(output) return output def _cache_activations(self, layer: torch.nn.Module, layer_name: str): """take in a layer, and add a hook to it that caches its output""" def hook(model, input, output): device = output.device self.cache[f"{layer_name}_{device}"] = output layer.register_forward_hook(hook) @property def device(self) -> torch.device: return next(self.base_model.parameters()).device def cache_keys(self) -> List[str]: # keys for the cache need to be unique across devices device = self.device return [ f"{feature_layer}_{device}" for feature_layer in self.feature_layers ] def _format_output(self, output: Dict[str, torch.Tensor]): if self.return_type == "list": return list(output.values()) elif self.return_type == "dict": return output elif self.return_type == "tensor": return torch.cat(tuple(output.values()), 1)
python
// Generated by delombok at Tue Jul 03 21:12:42 NOVT 2018 package org.statesync.spring.demo.sync.tasks; import org.statesync.model.AnnotatedItem; import org.statesync.model.AnnotatedList; import org.statesync.model.ListQuery; public class TasksModel { public ListQuery query = new ListQuery(); public NewTaskForm newTask = new NewTaskForm(); public AnnotatedItem<EditTaskForm, TaskPermissions> editTask; public AnnotatedList<TaskRow, TaskPermissions, TaskListPermissions> items = new AnnotatedList<>(); @java.lang.SuppressWarnings("all") public TasksModel() { } @java.lang.SuppressWarnings("all") public ListQuery getQuery() { return this.query; } @java.lang.SuppressWarnings("all") public NewTaskForm getNewTask() { return this.newTask; } @java.lang.SuppressWarnings("all") public AnnotatedItem<EditTaskForm, TaskPermissions> getEditTask() { return this.editTask; } @java.lang.SuppressWarnings("all") public AnnotatedList<TaskRow, TaskPermissions, TaskListPermissions> getItems() { return this.items; } @java.lang.SuppressWarnings("all") public void setQuery(final ListQuery query) { this.query = query; } @java.lang.SuppressWarnings("all") public void setNewTask(final NewTaskForm newTask) { this.newTask = newTask; } @java.lang.SuppressWarnings("all") public void setEditTask(final AnnotatedItem<EditTaskForm, TaskPermissions> editTask) { this.editTask = editTask; } @java.lang.SuppressWarnings("all") public void setItems(final AnnotatedList<TaskRow, TaskPermissions, TaskListPermissions> items) { this.items = items; } @java.lang.Override @java.lang.SuppressWarnings("all") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof TasksModel)) return false; final TasksModel other = (TasksModel) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$query = this.getQuery(); final java.lang.Object other$query = other.getQuery(); if (this$query == null ? other$query != null : !this$query.equals(other$query)) return false; final java.lang.Object this$newTask = this.getNewTask(); final java.lang.Object other$newTask = other.getNewTask(); if (this$newTask == null ? other$newTask != null : !this$newTask.equals(other$newTask)) return false; final java.lang.Object this$editTask = this.getEditTask(); final java.lang.Object other$editTask = other.getEditTask(); if (this$editTask == null ? other$editTask != null : !this$editTask.equals(other$editTask)) return false; final java.lang.Object this$items = this.getItems(); final java.lang.Object other$items = other.getItems(); if (this$items == null ? other$items != null : !this$items.equals(other$items)) return false; return true; } @java.lang.SuppressWarnings("all") protected boolean canEqual(final java.lang.Object other) { return other instanceof TasksModel; } @java.lang.Override @java.lang.SuppressWarnings("all") public int hashCode() { final int PRIME = 59; int result = 1; final java.lang.Object $query = this.getQuery(); result = result * PRIME + ($query == null ? 43 : $query.hashCode()); final java.lang.Object $newTask = this.getNewTask(); result = result * PRIME + ($newTask == null ? 43 : $newTask.hashCode()); final java.lang.Object $editTask = this.getEditTask(); result = result * PRIME + ($editTask == null ? 43 : $editTask.hashCode()); final java.lang.Object $items = this.getItems(); result = result * PRIME + ($items == null ? 43 : $items.hashCode()); return result; } @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { return "TasksModel(query=" + this.getQuery() + ", newTask=" + this.getNewTask() + ", editTask=" + this.getEditTask() + ", items=" + this.getItems() + ")"; } }
java
<filename>sri/backbone.marionette/1.0.0-rc5.json {"backbone.marionette.js":"sha256-eOAkGfRdqHJSVcNdHn0qGaA9iO3g1dm2RHbO+S2YJ2s=","backbone.marionette.min.js":"sha256-wKcLihIwsBuiWtZStNniFOWMilt+WS5QvU48Cul7gao=","core/backbone.marionette.js":"sha256-dPhJKUXprXHZ0T+h7Ff+cD5rJXHkdmh7oATA/w/AS7s=","core/backbone.marionette.min.js":"sha256-Cl5n9AO3yyeZWwY<KEY>0DlrSqBeTd+8dY5O0k="}
json
package com.examen.pablo.jm_xml; public class Dia { }
java
{"URL": "https://www.wired.com/1999/03/people-11", "heading": "people", "subheading": "network minister \"i want to build a new silicon valley,\" says n. chandrababu naidu, chief minister of the indian state of andhra pradesh. he\u2019s on his way: companies like microsoft, metamor, and oracle have already set up camp in his \"hi-tec city,\" a sprawling infotech park in hyderabad, some 200 miles north of bangalore. now [\u2026]", "author": "<NAME>", "category": "not found", "type": "article", "timestamp": "03.01.1999 12:00 PM", "text": "network minister\"i want to build a new silicon valley,\" says n. chandrababu naidu, chief minister of the indian state of andhra pradesh. he's on his way: companies like microsoft, metamor, and oracle have already set up camp in his \"hi-tec city,\" a sprawling infotech park in hyderabad, some 200 miles north of bangalore. now naidu is taking tech to the people. soon, citizens will begin accessing an online system to register land deeds, pay utility bills, and obtain birth certificates. naidu, who refers to himself as the \"ceo of andhra pradesh,\" says the goal is to make government accountable. \"if we are outdated, how are we going to develop a country?\" he asks.matchmakerwhen <NAME> joined e*trade as vp of marketing in 1995, the company wasn't even on the web. as e*trade's popularity shows, she not only did a good job of promoting the site, but also brought more people into the previously highfalutin financial community. so why did patton leave to lead della & james, an online gift registry that aims to do for weddings what e*trade did for securities? \"i couldn't pass up the start-up opportunity,\" she says. first up for the marketing ace: publicizing the oddly named venture. \"we consciously avoided something like weddings.com,\" she says, hinting at the obscure nuances of online branding.sugar mutherwhen catherine muther retired from cisco in 1994, the former vp of marketing had a lot of paper money and even more time on her hands. today, the stock bolsters a $5 million endowment for her three guineas fund (named after a virginia woolf book about charity), and her time is occupied solving \"access issues for women and girls.\" her latest project is the women's technology cluster, a san francisco-based incubator for women-run tech outfits. \"capital has traditionally been a barrier to aspiring women entrepreneurs in technology,\" says muther. that's a problem she hopes to fix.new gageit's hardly a surprise that the internet society tapped john gage to fill the seat vacated by the death of jon postel. as sun's chief research officer, gage certainly has good tech references, though lately he is better known for social activism, including founding the school-wiring initiative net day. but gage's interests are a natural fit as the internet society looks to broaden its scope. he hopes to expand membership and start projects like a digital peace corps to wire developing nations. \"i don't have postel's technical expertise,\" admits gage. \"my interest is outward-reaching - not protocols, but technology's impact on society.\"leap of faith\"my bridge-jumping days are over,\" proclaims <NAME>, the former java evangelist for sun. matsumura once donned the marshmallowy garb of the company's mascot, duke, and bungeed off a bridge to prove his devotion to the programming language. but the networking master, who claims to have evangelized more than 100,000 people, recently left in hopes of converting his faith into ipo riches. matsumura signed on to be the chief strategist at businesstone, a start-up that plans to harness java to offer small companies resource management tools over the web. \"there are 8.5 million businesses worldwide,\" says matsumura, explaining why java's ubiquity and enterprise software's high price tag add up to easy money for the start-up.must readfight!quick, hide your moneyconfronting e-griefjargon watchhere comes the sluggerinsta-money hits the webhype listgoing, going, againpeoplehome(page) schoolingtomorrow todaymcservice providerswhat stuff is made ofthe taste of 2000cool battles, circa 300 bctired/wiredvery local loopraw data"}
json
If you search "buy erectile dysfunction drugs" online, you'll bring up nearly 22 million web sites. You may find well-known ED drugs for sale, as well as many "natural" remedies that promise to give you the same results. Are they safe to buy? Experts say think twice before you purchase online. The ED drugs and herbal remedies you buy on the internet aren't always what they seem. An FDA investigation found that more than one-third of "dietary supplements" sold for ED actually contained prescription drugs, including sildenafil, the medicine in Viagra. Some ED drugs sold online contained entirely different medicines, such as the antibiotic metronidazole and the fertility drug clomiphene. Even if a drug contains the right medicine, it may not be the right dose. When samples of 100-milligram Viagra tablets purchased online were tested, only 10% were even close to the advertised strength. When you buy from an unknown company, you run the risk of getting counterfeit medicines. By some estimates, more than half of all ED drugs sold online are fakes. Some of these drugs include ingredients you wouldn't want to put in your body -- things like talcum powder, paint, and printer ink. The FDA warns of a number of products that have contained potentially harmful ingredients or compounds that aren't mentioned on the label. Among them are: - Lycium Barbarum L. - Xiadafil VIP tablets (Lots 6K029 and 6K209-SEI only) Erectile dysfunction drugs that are approved by the FDA work by increasing blood flow to the penis. Just like any other medicine, these drugs can have side effects. If you purchase them online -- without a prescription -- you won't get a chance to discuss this with your doctor before you take them. ED drugs can also be dangerous if you have certain conditions, like heart disease. They can interact with other medicines you take, such as blood thinners and some alpha blockers, which are used to treat high blood pressure and prostate conditions. Even mixing them with grapefruit juice can worsen side effects. These are issues your doctor needs to talk to you about during an office visit before they prescribe the medicine. If you buy an "herbal remedy" online that turns out to contain ingredients from real ED drugs, you could also put your health at risk. For example, if sildenafil is hidden in natural ED treatments, you could run into trouble if you use nitrates for heart disease. The combo can lead to a dangerous drop in blood pressure. Before buying ED drugs on the internet, see your doctor to find out exactly what's causing the problem. It may turn out that you don't need to take these drugs. Health conditions that contribute to ED, such as diabetes or high blood pressure, can be treated. If ED is a side effect of a medicine you're taking, your doctor may suggest that you stop using the drug or take a lower dose. The FDA is trying to stop the flow of illegal ED drugs, but these medicines still show up on the internet. Legitimate online pharmacies do exist. It just takes a little bit of work to find them. Here's what to look for when you buy ED drugs online: - A licensed pharmacy with an address in the U.S. (Check with your state board of pharmacy or the National Association of Boards of Pharmacy.)
english
package com.webcheckers.Model; import java.util.ArrayList; import java.util.Iterator; /** * Java class object representing a row of a board of checkers. * @author <NAME> : <EMAIL> * @contributor <NAME> : <EMAIL> */ public class Row implements Iterable<Space> { // all spaces in this given row ArrayList<Space> spaces; // y coordinate of this row private int index; // amount of spaces in a row private int spacesPerRow = 8; /** * Constructor. Automatically populates the Row with 8 spaces. * @param index: Index of the row on the board */ public Row(int index){ this.index = index; // populate the row this.spaces = new ArrayList<Space>(); for (int i = 0; i < spacesPerRow; i++){ spaces.add(new Space(i, index, null)); } } /** * Getter for the index * @return index */ public int getIndex(){ return this.index; } /** * Gets the Space with the given cell coordinate. * @param space the cell coordinate of the requested Space * @return Space object */ public Space getSpace(int space) { return this.spaces.get(space); } /** * Adds a given Piece to the Space with the given cellIdx. * @param piece: The Piece to be added to the Space * @param cellIdx: The cellIdx */ public void addPieceToSpace(Piece piece, int cellIdx){ this.spaces.get(cellIdx).addPieceToSpace(piece); } /** * Override function for iterator * @return it */ @Override public Iterator<Space> iterator() { Iterator<Space> it = new Iterator<Space>() { private int currentIndex = 0; @Override public boolean hasNext(){ return (currentIndex < spaces.size() && spaces.get(currentIndex) != null); } @Override public Space next(){ return spaces.get(currentIndex++); } @Override public void remove(){ throw new UnsupportedOperationException(); } }; return it; } }
java
20 metro areas are home to six-in-ten unauthorized immigrants in U.S. In 2016, the 20 U.S. metro areas with the most unauthorized immigrants were home to 6.5 million of them, or 61% of the estimated total. In 2016, the 20 U.S. metro areas with the most unauthorized immigrants were home to 6.5 million of them, or 61% of the estimated total. Sortable table of estimates of unauthorized immigrant populations in 182 U.S. metropolitan areas, derived from a sample of census data. Unauthorized immigrants make up a quarter of all U.S. foreign-born residents. Our new interactive offers data on unauthorized immigrants by state. Here’s a brief overview of four paths that many highly educated immigrants take to study and work in the U.S.: the H-1B visa program, the F-1 visa program, the Optional Practical Training program and green cards. Many Americans support encouraging high-skilled immigration into the United States. But the U.S. trails other economically advanced nations in its share of immigrants with high skills. As Trump and Democrats press their cases about ways to end the government shutdown, here’s a look at how Americans see illegal immigration. There were nearly 467,000 apprehensions at the U.S.-Mexico border in 2018. Family members accounted for about a third of those apprehensions. There were 10.7 million unauthorized immigrants in the U.S. in 2016, down from 12.2 million in 2007. The total is the lowest since 2004 and is tied to a decline in the number of Mexican unauthorized immigrants.
english
English Premier League action continues with Brighton and Hove Albion taking on Leeds United at the Amex Stadium on Saturday afternoon. Leeds United are ninth in the EPL standings with 47 points accumulated from 33 games. Meanwhile, the Seagulls are hovering above the relegation zone with just 34 points from 33 matches. The Peacocks come into this game on the back of a 0-0 stalemate with Manchester United. Bielsa's men managed to keep the star-studded Red Devils attack quiet on the day, earning a well-deserved point. Meanwhile, Brighton and Hove Albion succumbed to a surprising 0-1 loss to Sheffield United on matchday 33. Brighton and Leeds have played 23 games against each other so far. Brighton have had the upper hand, winning 11 of these matches. Six games have resulted in draws, while Leeds have prevailed in half-a-dozen contests. In their last meeting, Graham Potter's men left Elland Road with all three points, courtesy of a Neal Maupay goal in the 17th minute of the encounter. Solly March and young right-back Tariq Lamptey are unavailable for selection due to injuries. Adam Lallana's participation is in doubt because of a calf problem, but the former Liverpool midfielder is expected to suit up for this crucial clash. Talented winger Raphinha and Adam Forshaw have been ruled out of the game by Marcelo Bielsa. Meanwhile, Liam Cooper is not eligible for selection following a three-game suspension. Leeds United will be the outright favorites to win this clash, taking into consideration both their recent form and position in the table. Brighton have been a vulnerable side in the last few weeks and Bielsa's men should prevail with ease.
english
<filename>app/content/texts/eng_asv/HS3.html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <title>Hosea 3 (ASV)</title> <link href="../../../build/mobile.css" rel="stylesheet" /> <script src="../../../build/mobile.js"></script> </head> <body dir="ltr" class="section-document"> <div class="header"><div class="nav"> <a class="name" href="HS.html">American Standard Version</a><a class="location" href="HS.html">Hosea 3</a><a class="prev" href="HS2.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="HS4.html">&gt;</a> </div></div> <div class="section chapter HS HS3 eng_asv eng " dir="ltr" lang="en" data-id="HS3" data-nextid="HS4" data-previd="HS2"> <div class="c">3</div> <div class="p"> <span class="v-num v-1">1&nbsp;</span><span class="v HS3_1" data-id="HS3_1">And Jehovah said unto me, Go again, love a woman beloved of <span class="add">her </span> friend, and an adulteress, even as Jehovah loveth the children of Israel, though they turn unto other gods, and love cakes of raisins. </span> <span class="v-num v-2">2&nbsp;</span><span class="v HS3_2" data-id="HS3_2">So I bought her to me for fifteen <span class="add">pieces</span> of silver, and a homer of barley, and a half-homer of barley;</span> <span class="v-num v-3">3&nbsp;</span><span class="v HS3_3" data-id="HS3_3">and I said unto her, Thou shalt abide for me many days; thou shalt not play the harlot, and thou shalt not be any man’s wife: so will I also be toward thee. </span> <span class="v-num v-4">4&nbsp;</span><span class="v HS3_4" data-id="HS3_4">For the children of Israel shall abide many days without king, and without prince, and without sacrifice, and without pillar, and without ephod or teraphim: </span> <span class="v-num v-5">5&nbsp;</span><span class="v HS3_5" data-id="HS3_5">afterward shall the children of Israel return, and seek Jehovah their God, and David their king, and shall come with fear unto Jehovah and to his goodness in the latter days. </span> </div> </div> <div class="footnotes"> </div> <div class="footer"><div class="nav"> <a class="prev" href="HS2.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="HS4.html">&gt;</a> </div></div> </body> </html>
html
Panasonic practically invented the long-zoom 'travel' camera with its TZ series cameras, combining a long zoom range with a body slim enough for a jacket or trouser pocket. Over the years, the zoom range has got longer, the resolution has increased and the level of manual control has been extended to the point where the previous model, the TZ60, offered full program AE, aperture priority, shutter priority and manual modes, came with an electronic viewfinder and could even shoot raw files. But the problem with travel cameras is that the rely on small1/2.3-inch sensors, and the 18 million pixel resolution of the TZ60 was just too much for a sensor of this size – the camera had to use aggressive noise reduction at higher ISOs and this tends to produced smoothed-over images and textures. But Panasonic has taken a step back from high resolutions with the TZ70, using a high-sensitivity 12.1-megapixel sensor with photosites 1.5x larger than before. This is designed to give a much better compromise between resolution and low light performance for much better all-round picture quality. The TZ70 has a 30x optical zoom, offering a zoom range equivalent to 24-720mm, and a 5-axis Hybrid O.I.S.+ image stabilizer system combats any camera shake. Like its predecessor, the TZ60, the TZ70 comes with an electronic viewfinder, full manual control and the ability to shoot raw files. It can also shoot full HD AVCHD video. A control ring around the lens makes it easier to change camera settings and the autofocus speed is boosted by Panasonic's 240fps 'Light Speed' AF technology. GPS, Wi-Fi and NFC are built in. The TZ57 is a cheaper alternative with a 20x optical zoom lens and a 16-megapixel Live MOS sensor. It has a few more megapixels than the TZ70 but is not optimised for low light shooting and overall image quality in a range of conditions in the way that the TZ70 is. You don't get geotagging, Light Speed AF or an electronic viewfinder with the TZ57, but you do get a tilting LCD screen that's perfect for selfies! Both cameras will go on sale in March 2015. The TZ70 will cost £350 (about US$533/AU$659), while the TZ57 will cost £230 (about US$350/AU$433). The new SZ10 compact is made for social events and nights out, with a body designed to fit into a handbag or a suit pocket. Even so, it has an impressive 12x zoom range (24-28mm equivalent), optical image stabilization and Wi-Fi built in. The SZ10 can communicate directly with the Panasonic Image App on your smart device. An Instant Transfer function can automatically upload photos to your social networking site and you can operate the camera from your smart device too if you want to try out some selfies – according to Panasonic, 2014 was 'the year of the selfie', claiming that the word was mentioned 92 million times on Twitter. (You can also flip the screen through 180 degrees to take a selfie in the normal way.) The Panasonic SZ10 goes on sale in March 2015 and will cost £140 (about US$213/AU$264). Panasonic has also added a new 'rugged' compact camera. The FT30 is waterproof down to a depth of 8m, shockproof to a height of 1.5m, 'freezeproof' to -10 degrees and dustproof. A quick glance at the specs shows it's not the toughest compact camera on the market, but it does look handy, with a 4x 25-100mm equivalent lens, 16-megapixel sensor and effects like Creative Panorama and Time Lapse. An Advanced Underwater compensates for color shifts below the surface and a Torch Light function can add illumination in dark conditions. The Panasonic FT30 will be available in March 2014 in four colors (black, blue, red or orange) at a price of £140 (about US$213/AU$264). Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
english
<reponame>ellanan/apod-api<filename>extractor/extractedDailyData/2001-06-26.json { "title": "All of Mars", "credit": "National Geographic Society, MOLA Science Team, MGS, JPL, NASA", "explanation": "From pole to pole, from east to west, this is all of Mars. The above picture was digitally reconstructed from over 200 million laser altimeter measurements taken by the Mars Global Surveyor spacecraft currently orbiting Mars. The image strips Mars of its clouds and dust, and renders the whole surface visible simultaneously in its true daytime color. Particularly notable are the volcanoes of the Tharsis province, visible on the left, which are taller than any mountains on Earth. Just to the left of center is Valles Marineris, a canyon much longer and deeper Earth's Grand Canyon. On the right, south of the center, is the Hellas Planitia, a basin over 2000 kilometers wide that was likely created by a collision with an asteroid. Mars has many smooth lowlands in the north, and many rough highlands in the south. Mars has just passed its closest approach to Earth since 1988 and can be seen shining brightly in the evening sky.", "date": "2001-06-26", "hdurl": "https://apod.nasa.gov/apod/image/0106/allmars_mola_big.gif", "service_version": "v1", "media_type": "image", "url": "https://apod.nasa.gov/apod/image/0106/allmars_mola.jpg" }
json
{"componentChunkName":"component---node-modules-gatsby-theme-buzzing-src-gatsby-theme-blog-core-templates-post-query-js","path":"/ja/reddit/r/pics/comments/pcvo3y/a_family_evacuated_from_afghanistan_arrives_at/","result":{"data":{"site":{"siteMetadata":{"title":"Reddit 热门","author":"Buzzing.cc","description":"用中文浏览Reddit热门内容","keywords":["buzzing","reddit","reddit中文","reddit热门"],"siteUrl":"https://reddit.buzzing.cc","telegram":"@reddit_zh","iconUrl":"https://reddit.buzzing.cc/avatar.png","defaultSocialImageUrl":null,"social":[{"name":"Reddit","url":"https://www.reddit.com","external":true},{"name":"Buzzing","url":"https://www.buzzing.cc/","external":true}],"menuLinks":[{"name":"每周精选","url":"/issues","external":null}],"disqus":null,"utterances":null,"localize":[{"title":"Buzzing on Reddit","description":"See what's buzzing on Reddit in your native language","keywords":["buzzing","reddit","reddit top"],"locale":"en","social":{"name":null,"url":null,"external":null},"menuLinks":[{"name":"Weekly Selection","url":"/en/issues","external":null}]},{"title":"Reddit 熱門","description":"用中文瀏覽Reddit熱門內容","keywords":["buzzing","reddit","reddit中文","reddit熱門"],"locale":"zh-Hant","social":null,"menuLinks":[{"name":"每週精選","url":"/zh-Hant/issues","external":null}]},{"title":"Reddit 人気の記事","description":"人気のReddit記事を日本語で閲覧","keywords":["buzzing","Reddit"],"locale":"ja","social":null,"menuLinks":[]}]}},"blogPost":{"id":"RedditPost-pcvo3y","excerpt":"","body":"","slug":"/reddit/r/pics/comments/pcvo3y/a_family_evacuated_from_afghanistan_arrives_at/","title":"A family evacuated from Afghanistan arrives at Dulles International Airport in Chantilly, Virginia","tags":["pics","reddit"],"date":"August 28, 2021","dateISO":"2021-08-28T02:41:58.000Z","datetime":"2021-08-28 02:41","image":null,"imageAlt":"Reddit Image","socialImage":null,"__typename":"SocialMediaPost","thirdPartyId":"pcvo3y","provider":"Reddit","url":"https://www.reddit.com/r/pics/comments/pcvo3y/a_family_evacuated_from_afghanistan_arrives_at/","originalUrl":"https://www.reddit.com/r/pics/comments/pcvo3y/a_family_evacuated_from_afghanistan_arrives_at/","imageRemote":"https://preview.redd.it/8dqsfwxlpyj71.jpg?width=1080&crop=smart&auto=webp&s=2f1323bc052ee6991cb6c344a6a9f2194786f882","video":null,"channel":"pics","channelUrl":"https://www.reddit.com/r/pics","author":"werdmouf","authorUrl":"https://www.reddit.com/user/werdmouf","authorImage":null,"authorImageRemote":null,"authorSlug":"werdmouf","score":81349,"views":null,"sharedCount":null,"likeCount":null,"sharedContent":null,"parent":{"localize":[{"title":"バージニア州シャンテリーのダレス国際空港に到着したアフガニスタンから避難した家族","the_new_excerpt":null,"locale":"ja"},{"title":"一个从阿富汗撤离的家庭抵达位于弗吉尼亚州尚蒂伊的杜勒斯国际机场","the_new_excerpt":null,"locale":"zh"},{"title":"一個從阿富汗撤離的家庭抵達位於弗吉尼亞州尚蒂伊的杜勒斯國際機場","the_new_excerpt":null,"locale":"zh-Hant"}]}},"previous":{"id":"RedditPost-pcv8aa","excerpt":"","slug":"/reddit/r/MadeMeSmile/comments/pcv8aa/protect_her_at_all_cost/","title":"Protect her at all cost","date":"August 28, 2021","__typename":"SocialMediaPost","provider":"Reddit","parent":{"localize":[{"title":"何としても彼女を守る","the_new_excerpt":null,"locale":"ja"},{"title":"不惜一切代价保护她","the_new_excerpt":null,"locale":"zh"},{"title":"不惜一切代價保護她","the_new_excerpt":null,"locale":"zh-Hant"}]}},"next":{"id":"RedditPost-pctmlg","excerpt":"","slug":"/reddit/r/HolUp/comments/pctmlg/listen_to_your_wife/","title":"Listen to your wife","__typename":"SocialMediaPost","date":"August 28, 2021","provider":"Reddit","parent":{"localize":[{"title":"妻の話を聞く","the_new_excerpt":null,"locale":"ja"},{"title":"听取你妻子的意见","the_new_excerpt":null,"locale":"zh"},{"title":"聽取你妻子的意見","the_new_excerpt":null,"locale":"zh-Hant"}]}}},"pageContext":{"basePath":"/","pageType":"detail","id":"RedditPost-pcvo3y","previousId":"RedditPost-pcv8aa","nextId":"RedditPost-pctmlg","maxWidth":1024,"siteMetadata":null,"locale":"ja","hrefLang":"ja-JA","originalPath":"/reddit/r/pics/comments/pcvo3y/a_family_evacuated_from_afghanistan_arrives_at/","dateFormat":"YYYY-MM-DD"}},"staticQueryHashes":["1239077767","2744905544","3280999885"]}
json
from uio import Uio from argsort_axi import ArgSort_AXI if __name__ == '__main__': uio = Uio('uio_argsort') argsort_axi = ArgSort_AXI(uio.regs()) argsort_axi.print_info() argsort_axi.print_debug()
python
<reponame>BorjaLive/SIG package com.b0ve.sig.utils; import com.b0ve.sig.flow.Buffer; import com.b0ve.sig.ports.Port; import com.b0ve.sig.tasks.Task; import com.b0ve.sig.utils.exceptions.SIGException; import java.util.ListIterator; public class ProcessSync extends Process { private Thread ejecucion; public ProcessSync(boolean debug) { super(debug); } public ProcessSync() { this(false); } @Override public void execute() { for (Task tarea : tasks) { if (tarea instanceof Port) { try { ((Port) tarea).getAdapter().iniciate(); } catch (SIGException ex) { handleException(ex); } } } ejecucion = new Thread() { @Override public void run() { while (!isInterrupted()) { for (Task task : tasks) { try { boolean hasMessages = false; ListIterator<Buffer> iter = task.inputs(); while (!hasMessages && iter.hasNext()) { if (!iter.next().empty()) { hasMessages = true; } } if (hasMessages) { task.process(); } } catch (SIGException ex) { handleException(ex); } } } } }; ejecucion.start(); } @Override public void shutdown() { ejecucion.interrupt(); for (Task tarea : tasks) { if (tarea instanceof Port) { try { ((Port) tarea).getAdapter().halt(); } catch (SIGException ex) { handleException(ex); } } } } @Override public void waitToEnd() throws InterruptedException { ejecucion.join(); } }
java
<filename>src/main/resources/static/mas_json/2010_cscw_-1937491312673431580.json {"title": "Groups in groups: conversational similarity in online multicultural multiparty brainstorming.", "fields": ["multiculturalism", "cross cultural communication", "brainstorming", "computer mediated communication", "communication accommodation theory"], "abstract": "Online collaboration, in comparison to face-to-face collaboration, is advantageous in making multiparty teamwork possible at a very low cost. As multicultural multiparty collaboration becomes ubiquitous, it is crucial to understand how communication processes are shaped in the social and media environments that computer-mediated communication affords. We conducted a laboratory study investigating how different types of cultural asymmetry in group composition (Chinese of the majority versus American of the majority) and communication media (text-only versus video-enabled chatroom) influence conversational similarity between Chinese and Americans. The paper presents an analysis identifying that the selection of media and the cultural composition of the group jointly shape intercultural conversational closeness.", "citation": "Citations (13)", "departments": ["Cornell University", "Cornell University"], "authors": ["<NAME>.....http://dblp.org/pers/hd/w/Wang:Hao=Chuan", "<NAME>.....http://dblp.org/pers/hd/f/Fussell:Susan_R="], "conf": "cscw", "year": "2010", "pages": 10}
json
<reponame>641589523/token-profile {"symbol": "BDT","address": "0x033030FEeBd93E3178487c35A9c8cA80874353C9","overview":{"en": ""},"email": "<EMAIL>","website": "https://bitdepositary.io/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/Bitedepositary","telegram": "https://t.me/BitdepositaryCommunity","github": ""}}
json
<filename>rapid7_insightidr/unit_test/test_advanced_query_on_log.py import sys import os sys.path.append(os.path.abspath('../')) from unittest import TestCase from komand_rapid7_insightidr.connection.connection import Connection from komand_rapid7_insightidr.actions.advanced_query_on_log import AdvancedQueryOnLog from komand.exceptions import PluginException import json import logging class TestAdvancedQueryOnLog(TestCase): def setup(self): log = logging.getLogger("Test") test_conn = Connection() test_action = AdvancedQueryOnLog() test_conn.logger = log test_action.logger = log try: with open("../tests/advanced_query_on_log.json") as file: test_json = json.loads(file.read()).get("body") connection_params = test_json.get("connection") action_params = test_json.get("input") except Exception as e: self.fail("Likely could not find tests in test directory. Generate and fill out samples to fix this.") return action_params, connection_params, test_action, test_conn def test_integration_advanced_query(self): action_params, connection_params, test_action, test_conn = self.setup() test_conn.connect(connection_params) test_action.connection = test_conn results = test_action.run(action_params) self.assertTrue("results" in results.keys()) self.assertTrue(len(results.get("results")) > 0) def test_get_log(self): action_params, connection_params, test_action, test_conn = self.setup() test_conn.connect(connection_params) test_action.connection = test_conn result = test_action.get_log_id("Active Directory") self.assertIsNotNone(result) # Best we can do here, the log ID will change based on the instance used. def test_get_log_fails(self): action_params, connection_params, test_action, test_conn = self.setup() test_conn.connect(connection_params) test_action.connection = test_conn with self.assertRaises(PluginException): test_action.get_log_id("Do not find this log") def test_parse_dates(self): action_params, connection_params, test_action, test_conn = self.setup() test_conn.connect(connection_params) test_action.connection = test_conn time_test1 = "2005/10/31T17:11:09" time_test2 = "01-01-2020" time_test3 = "01-01-2020T18:01:01" time_test4 = "02/24/1978" time_test5 = "13:25" time_test6 = "01/27/2020 10:00 PM" time_test7 = "01-01-2020" time_test8 = "12-31-2020" res1, res2 = test_action.parse_dates(time_test1, time_test2) res3, res4 = test_action.parse_dates(time_test3, time_test4) res5, res6 = test_action.parse_dates(time_test5, time_test6) res7, res8 = test_action.parse_dates(time_test7, time_test8) self.assertEquals(res1, 1130800269000) self.assertEquals(res2, 1577858400000) self.assertEquals(res3, 1577923261000) self.assertEquals(res4, 257148000000) self.assertIsNotNone(res5) # This will be today @ 1:25 PM. self.assertEquals(res6, 1580184000000) self.assertEquals(res7, 1577858400000) self.assertEquals(res8, 1609394400000) not_used, now_result = test_action.parse_dates(time_test1, None) self.assertIsNotNone(now_result) with self.assertRaises(PluginException): test_action.parse_dates("AAA", None)
python
<reponame>stormasm/equitystat <html> <head> <title>Zrato Finance</title> <LINK href="skins/sawmill.css" type=text/css rel=STYLESHEET> <SCRIPT language=JavaScript1.2 src="skins/coolmenus4.js" type=text/javascript></SCRIPT> <SCRIPT language=JavaScript1.2 src="skins/cm_addins.js" type=text/javascript> </SCRIPT> <BODY bgColor=#e4ebea> <!-- <SCRIPT language=JavaScript1.2 src="skins/sclt.js" type=text/javascript></SCRIPT> --> <SCRIPT language=JavaScript1.2 src="skins/sawmill.js" type=text/javascript></SCRIPT> <font color="#cc3366"> <h2> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ZRATO FINANCE</h2> </font> <BR> </head> <body> <p> <div align=center>&nbsp; <div id=container> <div id=intro> <p> <strong>The Java open source system.</strong> <p> <strong>To analyze the world financial markets.</strong> <p> <p> Understanding the global economy requires studying economic and market data. Zrato is a tool which organizes vast amounts of information into logical data structures. It then gives you the ability to design custom computer algorithms which mimick your current views of the market. </p> </div> </div> </div> <P> <div class="footop" align=center>&nbsp; <A href="http://www.zrato.com/">Zrato</A> | <A href="http://www.zrato.com/finance/doc/index.htm">Finance</A> | <A href="http://www.zrato.com/tutorials">Tutorials</A> </div> <P> <div class="footer" align=center <font size="x-small"> Copyright &copy; 2003-2005&nbsp;&nbsp; <a href="http://www.arcadiangroup.org">Arcadian Group</a>&nbsp;&nbsp; All rights reserved. </div> </body></html>
html
#founders{ padding-top: 10em; /* margin-top: 70px; */ background: url(assets/img/lapis.jpg); background-repeat: no-repeat; background-size: cover; background-position: center; /* filter: grayscale(100%); */ height: 700px; background-attachment: fixed; } #bl{ background-color: #222222 !important; opacity: 2; color: #ffffff; } .fa{ font-size: 25px; margin-right: 20px; } .fa-facebook{ color: #3b5998 !important; } .fa-twitter{ color: #00acee !important; } .fa-instagram{ color: #F56040 !important; } .fa-youtube{ color: #FF0000 !important; }
css
<gh_stars>1-10 body { color: #eeeeee; background-color: #282c33; }
css
<reponame>mohakbhardwaj/gym-minigrid from gym.envs.registration import register as gym_register env_list = [] def register( id, entry_point, reward_threshold=0.95, kwargs={} ): assert id.startswith("MiniGrid-") assert id not in env_list # Register the environment with OpenAI gym gym_register( id=id, entry_point=entry_point, reward_threshold=reward_threshold, kwargs=kwargs ) # Add the environment to the set env_list.append(id)
python
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.augmentedairuntime; import javax.annotation.Generated; import com.amazonaws.services.augmentedairuntime.model.*; import com.amazonaws.client.AwsAsyncClientParams; import com.amazonaws.annotation.ThreadSafe; import java.util.concurrent.ExecutorService; /** * Client for accessing Amazon Augmented AI Runtime asynchronously. Each asynchronous method will return a Java Future * object representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive * notification when an asynchronous operation completes. * <p> * <important> * <p> * Amazon Augmented AI is in preview release and is subject to change. We do not recommend using this product in * production environments. * </p> * </important> * <p> * Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning application. When an AI * application can't evaluate data with a high degree of confidence, human reviewers can take over. This human review is * called a human review workflow. To create and start a human review workflow, you need three resources: a <i>worker * task template</i>, a <i>flow definition</i>, and a <i>human loop</i>. * </p> * <p> * For information about these resources and prerequisites for using Amazon A2I, see <a * href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html">Get Started with Amazon Augmented * AI</a> in the Amazon SageMaker Developer Guide. * </p> * <p> * This API reference includes information about API actions and data types that you can use to interact with Amazon A2I * programmatically. Use this guide to: * </p> * <ul> * <li> * <p> * Start a human loop with the <code>StartHumanLoop</code> operation when using Amazon A2I with a <i>custom task * type</i>. To learn more about the difference between custom and built-in task types, see <a * href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html">Use Task Types </a>. To learn how * to start a human loop using this API, see <a * href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop" * >Create and Start a Human Loop for a Custom Task Type </a> in the Amazon SageMaker Developer Guide. * </p> * </li> * <li> * <p> * Manage your human loops. You can list all human loops that you have created, describe individual human loops, and * stop and delete human loops. To learn more, see <a * href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html">Monitor and Manage Your * Human Loop </a> in the Amazon SageMaker Developer Guide. * </p> * </li> * </ul> * <p> * Amazon A2I integrates APIs from various AWS services to create and start human review workflows for those services. * To learn how Amazon A2I uses these APIs, see <a * href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use APIs in Amazon A2I</a> in the * Amazon SageMaker Developer Guide. * </p> */ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonAugmentedAIRuntimeAsyncClient extends AmazonAugmentedAIRuntimeClient implements AmazonAugmentedAIRuntimeAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AmazonAugmentedAIRuntimeAsyncClientBuilder asyncBuilder() { return AmazonAugmentedAIRuntimeAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Augmented AI Runtime using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AmazonAugmentedAIRuntimeAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Augmented AI Runtime using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AmazonAugmentedAIRuntimeAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) { super(asyncClientParams, endpointDiscoveryEnabled); this.executorService = asyncClientParams.getExecutor(); } /** * Returns the executor service used by this client to execute async requests. * * @return The executor service used by this client to execute async requests. */ public ExecutorService getExecutorService() { return executorService; } @Override public java.util.concurrent.Future<DeleteHumanLoopResult> deleteHumanLoopAsync(DeleteHumanLoopRequest request) { return deleteHumanLoopAsync(request, null); } @Override public java.util.concurrent.Future<DeleteHumanLoopResult> deleteHumanLoopAsync(final DeleteHumanLoopRequest request, final com.amazonaws.handlers.AsyncHandler<DeleteHumanLoopRequest, DeleteHumanLoopResult> asyncHandler) { final DeleteHumanLoopRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable<DeleteHumanLoopResult>() { @Override public DeleteHumanLoopResult call() throws Exception { DeleteHumanLoopResult result = null; try { result = executeDeleteHumanLoop(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future<DescribeHumanLoopResult> describeHumanLoopAsync(DescribeHumanLoopRequest request) { return describeHumanLoopAsync(request, null); } @Override public java.util.concurrent.Future<DescribeHumanLoopResult> describeHumanLoopAsync(final DescribeHumanLoopRequest request, final com.amazonaws.handlers.AsyncHandler<DescribeHumanLoopRequest, DescribeHumanLoopResult> asyncHandler) { final DescribeHumanLoopRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable<DescribeHumanLoopResult>() { @Override public DescribeHumanLoopResult call() throws Exception { DescribeHumanLoopResult result = null; try { result = executeDescribeHumanLoop(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future<ListHumanLoopsResult> listHumanLoopsAsync(ListHumanLoopsRequest request) { return listHumanLoopsAsync(request, null); } @Override public java.util.concurrent.Future<ListHumanLoopsResult> listHumanLoopsAsync(final ListHumanLoopsRequest request, final com.amazonaws.handlers.AsyncHandler<ListHumanLoopsRequest, ListHumanLoopsResult> asyncHandler) { final ListHumanLoopsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable<ListHumanLoopsResult>() { @Override public ListHumanLoopsResult call() throws Exception { ListHumanLoopsResult result = null; try { result = executeListHumanLoops(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future<StartHumanLoopResult> startHumanLoopAsync(StartHumanLoopRequest request) { return startHumanLoopAsync(request, null); } @Override public java.util.concurrent.Future<StartHumanLoopResult> startHumanLoopAsync(final StartHumanLoopRequest request, final com.amazonaws.handlers.AsyncHandler<StartHumanLoopRequest, StartHumanLoopResult> asyncHandler) { final StartHumanLoopRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable<StartHumanLoopResult>() { @Override public StartHumanLoopResult call() throws Exception { StartHumanLoopResult result = null; try { result = executeStartHumanLoop(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future<StopHumanLoopResult> stopHumanLoopAsync(StopHumanLoopRequest request) { return stopHumanLoopAsync(request, null); } @Override public java.util.concurrent.Future<StopHumanLoopResult> stopHumanLoopAsync(final StopHumanLoopRequest request, final com.amazonaws.handlers.AsyncHandler<StopHumanLoopRequest, StopHumanLoopResult> asyncHandler) { final StopHumanLoopRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable<StopHumanLoopResult>() { @Override public StopHumanLoopResult call() throws Exception { StopHumanLoopResult result = null; try { result = executeStopHumanLoop(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } /** * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }
java
Shakti Kapoor on son Siddhanth Kapoor testing positive for drugs in Bengaluru: ‘It’s not possible' Siddhanth Kapoor, son of actor Shakti Kapoor and brother of actor Shraddha Kapoor, was detained over drugs consumption in Bengaluru. “He is among the 6 people allegedly found to have consumed drugs, Bengaluru Police told ANI. "Siddhanth has tested positive for drugs, he has been brought to Ulsoor Police Station," said Dr Bheemashankar S. Guled, DCP, East division, Bengaluru City. When Shakti Kapoor was asked about his son's involvement in the drugs case, the actor told ETimes, “I can say only one thing - it’s not possible”. The report also states that Siddhanth had flown to Bengaluru on Sunday. However, its not yet clear if he consumed drugs at the party or at the hotel. Siddhanth made his acting debut with Salman Khan's 1997 film, Judwaa, in which he played the role of young Rangeela. He then worked as an assistant director on a few films like Bhool Bhulaiya and Chup Chup Ke. He returned to acting with Shootout at Wadala in 2013 and went on to feature in Ugly, Jazbaa and Bhoot – Part One: The Haunted Ship. He also worked with Shraddha Kapoor in Haseena Parkar. He was last seen in Chehre, which also starred Amitabh Bachchan and Emraan Hashmi. He was also seen in 2020 web series, Bhaukaal. In 2020, Shraddha was questioned for several hours at the Narcotics Control Bureau zonal office in relation with a drug case related to late actor Sushant Singh Rajput. Shraddha had attended Sushant's Chhichhore success bash at his farmhouse in Pawana but had denied consuming drugs.
english
<filename>gamespace-lobby/static/web-mobile/res/import/7a/7a2985b1-6426-4f76-a8a2-75b16cb88baf.json {"__type__":"cc.SpriteFrame","content":{"name":"safe_spt_bg","texture":"b6Tk3EXoZK0rCkzlSL4grQ","rect":[0,0,563,344],"offset":[0,0],"originalSize":[563,344],"capInsets":[0,0,0,0]}}
json
import { Resolver, TypeComposer } from 'graphql-compose'; import { Model } from 'mongoose'; import { MongoId } from '../types/mongoid'; import { FindManyArgs } from './findMany'; import { RecordHelperArgs } from './helpers'; import { GenResolverOpts } from './index'; export default function updateMany( model: Model<any>, tc: TypeComposer<any>, opts?: GenResolverOpts, ): Resolver<any, any>; export type UpdateManyArgs< TSource, IndexedFields = { _id: MongoId } > = RecordHelperArgs<TSource> & FindManyArgs<TSource, IndexedFields>; export type UpdateManyRSource = { numAffected: number };
typescript
<gh_stars>0 { "name": "ocram85.com-blog", "version": "1.0.0", "description": "A personal blog about PowerShell, Automation and more.", "main": "index.js", "scripts": { "build": "exec-bin node_modules/.bin/hugo/hugo --gc --minify", "check": "exec-bin node_modules/.bin/hugo/hugo version", "clean": "rimraf public/", "lint:markdown": "markdownlint \"*.md\" \"content/**/*.md\"", "start": "npm run server", "server": "exec-bin node_modules/.bin/hugo/hugo server --bind=0.0.0.0 -D", "test": "npm run lint:markdown", "postinstall": "hugo-installer --version otherDependencies.hugo --extended --destination node_modules/.bin/hugo", "new:post": "exec-bin node_modules/.bin/hugo/hugo new" }, "repository": { "type": "git", "url": "git+https://github.com/OCram85/Blog.git" }, "author": "OCram85", "license": "MIT", "bugs": { "url": "https://github.com/OCram85/Blog/issues" }, "homepage": "https://github.com/OCram85/Blog#readme", "devDependencies": { "exec-bin": "^1.0.0", "hugo-installer": "^3.1.0", "markdownlint-cli": "^0.31.1", "rimraf": "^3.0.2" }, "otherDependencies": { "hugo": "0.91.1" } }
json
The market capitalisation of one of the country’s largest two- and three-wheeler makers surged to Rs 2.09 lakh crore on Tuesday, crossing M&M’s market value of Rs 2.03 lakh crore. Maruti Suzuki is the most valuable automaker, followed by Tata Motors. Bajaj Auto's buyback size represents 40 lakh shares or 1.41% of the total number of equity shares of the company. Currently, promoter and promoter group entities hold 54.94% stake in Bajaj Auto, and foreign institutional investors hold 14.72%. The two-wheeler major will repurchase up to 40,00,000 shares for a price not exceeding Rs 10,000 a share, the company said in an exchange filing. Dalal Street is set to rejoice this news, as the buyback price is at a whopping 43% premium to the current market price. This is the second time Bajaj Auto will be doing a share buyback if the board approves. In July 2022, Bajaj Auto launched a share buyback worth Rs 2,500 crore. The buyback was done at Rs 4,600 a share. Since the first share buyback, the share value of the automaker has more than doubled in value. UBS maintained a sell rating on Bajaj Auto with a target of Rs 5600. e-3W transition dilutive to margins and market share. The global investment bank is of the view that the market is overly confident about Bajaj Auto's e-3W market share and looted margins. There is currently nothing negative about the Indian economy or the Indian markets. The data shows positive signs in terms of inflation and growth. The TCS buyback falls into the category of giving money back to promoters in a tax-efficient way and people should not get too excited about the buyback. Regarding MCX's approval to shift to a new platform, a lot of things are already priced in. The company's board at its meeting held on June 27, 2022 had approved the proposal for buyback of the fully paid up equity shares of face value of Rs 10 each from existing shareholders except promoters, promoter group and persons in control of the company from open market at a price not exceeding Rs 4,600 per share. The buyback will be carried out at a price not exceeding Rs 4,600 per equity share and for an aggregate amount of up to Rs 2,500 crore, representing 9.61 per cent of the aggregate of the total paid-up share capital of the company, it had stated. Over the past three months, the company's stock has rallied 12%; however, nearly half the gains were erased when the company had put off the decision on the buyback to deliberate further on the subject. After the announcement on Monday, the shares price inched up by 1.11% to close at ₹3,855 per share. The company had informed stock exchanges that its board would consider a proposal for buyback of fully paid-up equity shares at a meeting to be held on Tuesday.A share buyback is a process when a company buys its own outstanding shares to reduce the number of shares available in the open market.
english
Srinagar: Five terrorists were killed Sunday in an encounter with security forces in Shopian district of Jammu and Kashmir, a defence official said. “Five terrorists have been eliminated in operation Reban in Shopian district,” defence spokesperson Col Rajesh Kalia told reporters. Kalia said good drills ensured no collateral damage took place during the operation. A police official informed that the security forces launched a cordon and search operation in Reban area of Shopian. The operation was put in place, Sunday morning. The forces had received specific information about the presence of militants in the area. The official said the search operation turned into an encounter after militants opened fired at a search party. The forces then retaliated leading to the elimination of the terrorists. The identity and group affiliation of the slain militants is being ascertained, the official stated.
english
<reponame>Ryebread4/Rustionary {"word":"piercer","definition":"1. One who, or that which, pierces or perforates; specifically: (a) An instrument used in forming eyelets; a stiletto. (b) A piercel. 2. (Zoöl.) (a) The ovipositor, or sting, of an insect. (b) An insect provided with an ovipositor."}
json
<reponame>setl/canonical-json package io.setl.json.primitive.cache; import static io.setl.json.primitive.cache.CacheType.KEYS; import static io.setl.json.primitive.cache.CacheType.NUMBERS; import static io.setl.json.primitive.cache.CacheType.STRINGS; import static io.setl.json.primitive.cache.CacheType.VALUES; import java.lang.System.Logger; import java.lang.System.Logger.Level; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.Objects; import io.setl.json.primitive.CJString; import io.setl.json.primitive.numbers.CJNumber; /** * Caching of common immutable values. This limits the number of objects created as similar JSON documents are parsed as shared keys and values are reused. * * @author <NAME> on 05/02/2020. */ public class CacheManager { private static ICache<String, String> myKeyCache; private static ICache<String, CJNumber> myNumberCache; private static ICache<String, CJString> myStringCache; private static ICache<Number, CJNumber> myValueCache; private static <K, V> ICache<K, V> createCache(CacheType name) { int maxSize = Integer.getInteger(CacheManager.class.getPackageName() + "." + name.getPropertyName() + ".maxSize", 1_000); String cacheFactory = System.getProperty( CacheManager.class.getPackageName() + "." + name + ".factory", SimpleLruCacheFactory.class.getName() ); if (maxSize <= 0) { return new NoCache<>(); } ICacheFactory factory = new SimpleLruCacheFactory(); try { Class<?> cl = Class.forName(cacheFactory); Class<? extends ICacheFactory> cl2 = cl.asSubclass(ICacheFactory.class); Constructor<? extends ICacheFactory> constructor = cl2.getConstructor(); factory = constructor.newInstance(); } catch (ClassNotFoundException | ClassCastException | NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) { Logger logger = System.getLogger(CacheManager.class.getName()); logger.log(Level.ERROR, "Cannot create a cache factory from " + cacheFactory, e); } ICache<K, V> cache = factory.create(name, maxSize); return (cache != null) ? cache : new NoCache<>(); } /** * Cache of object keys to their primary representation. This prevents the creation of duplicate strings for fields. * * @return the cache */ public static ICache<String, String> keyCache() { return myKeyCache; } /** * Cache of JSON input to the corresponding numeric canonical. * * @return the cache. */ public static ICache<String, CJNumber> numberCache() { return myNumberCache; } /** * Set the cache that maps object keys to a fixed representation. * * @param newCache the new cache (or null for no caching) */ public static void setKeyCache(ICache<String, String> newCache) { myKeyCache = Objects.requireNonNullElseGet(newCache, NoCache::new); } /** * Set the cache that maps the textual representation of numerical values to a fixed representation. * * @param newNumberCache the new cache (or null for no caching) */ public static void setNumberCache(ICache<String, CJNumber> newNumberCache) { myNumberCache = Objects.requireNonNullElseGet(newNumberCache, NoCache::new); } /** * Set the cache that maps string values to a fixed representation. * * @param newCache the new cache (or null for no caching) */ public static void setStringCache(ICache<String, CJString> newCache) { myStringCache = Objects.requireNonNullElseGet(newCache, NoCache::new); } /** * Set the cache that maps numeric values to a fixed representation. * * @param newCache the new cache (or null for no caching) */ public static void setValueCache(ICache<Number, CJNumber> newCache) { myValueCache = Objects.requireNonNullElseGet(newCache, NoCache::new); } /** * Cache of JSON input to the corresponding text canonical. * * @return the cache. */ public static ICache<String, CJString> stringCache() { return myStringCache; } /** * Cache of numbers to their encapsulated JSON representation. A representation is almost always a CJNumber, but it could be a CJString for a non-finite * value. * * @return the cache. */ public static ICache<Number, CJNumber> valueCache() { return myValueCache; } static { myNumberCache = createCache(NUMBERS); myKeyCache = createCache(KEYS); myStringCache = createCache(STRINGS); myValueCache = createCache(VALUES); } private CacheManager() { // do nothing } }
java
According to Knight Frank's "Prime Global Cities Index Q3 (July-September) 2022," all three Indian cities -- Mumbai, Bengaluru, and New Delhi -- saw an increase in average annual prices in the third quarter of 2022. The prime global cities index is a valuation-based index tracking the movement in prime residential prices in local currency across 45-plus cities worldwide. Mumbai moved up to 22nd rank in the third quarter of 2022 from 39th rank in the year-ago period. Meanwhile, Bengaluru's rank also moved up to 27th as against 41st, while New Delhi's position improved to 36th rank from 38th rank. The rise in average prices in Mumbai was recorded at 4.8 per cent Year-on-Year (YoY), Bengaluru (3.3 per cent YoY) and New Delhi (1.2 per cent YoY) during the 12- month change (Q3 2021-Q3 2022). The consultant has attributed the rise in prices to strong market sentiment, adequate affordability, still low interest rates compared to 2019 and a much more stable economy and business environment relative to many developed economies. "India continues to distinguish itself as one of the most resilient large economies in the world, and market sentiments remain strong," Shishir Baijal, Chairman and Managing Director of Knight Frank India, said. While increasing mortgage rates have weighed down prime residential markets globally, he said that the Indian prime residential market has been relatively strong and should be able to sustain the momentum till the end of 2022. (With PTI inputs) Download The Economic Times News App to get Daily Market Updates & Live Business News.
english
# coding: utf-8 import torch from torch import nn from torch.nn import functional as F from .chess_board import ChessBoard class ConvBlock(nn.Module): """ 卷积块 """ def __init__(self, in_channels: int, out_channel: int, kernel_size, padding=0): super().__init__() self.conv = nn.Conv2d(in_channels, out_channel, kernel_size=kernel_size, padding=padding) self.batch_norm = nn.BatchNorm2d(out_channel) def forward(self, x): return F.relu(self.batch_norm(self.conv(x))) class ResidueBlock(nn.Module): """ 残差块 """ def __init__(self, in_channels=128, out_channels=128): """ Parameters ---------- in_channels: int 输入图像通道数 out_channels: int 输出图像通道数 """ super().__init__() self.in_channels = in_channels self.out_channels = out_channels self.conv1 = nn.Conv2d(in_channels, out_channels, kernel_size=3, stride=1, padding=1) self.conv2 = nn.Conv2d(out_channels, out_channels, kernel_size=3, stride=1, padding=1) self.batch_norm1 = nn.BatchNorm2d(num_features=out_channels) self.batch_norm2 = nn.BatchNorm2d(num_features=out_channels) def forward(self, x): out = F.relu(self.batch_norm1(self.conv1(x))) out = self.batch_norm2(self.conv2(out)) return F.relu(out + x) class PolicyHead(nn.Module): """ 策略头 """ def __init__(self, in_channels=128, board_len=9): """ Parameters ---------- in_channels: int 输入通道数 board_len: int 棋盘大小 """ super().__init__() self.board_len = board_len self.in_channels = in_channels self.conv = ConvBlock(in_channels, 2, 1) self.fc = nn.Linear(2*board_len**2, board_len**2) def forward(self, x): x = self.conv(x) x = self.fc(x.flatten(1)) return F.log_softmax(x, dim=1) class ValueHead(nn.Module): """ 价值头 """ def __init__(self, in_channels=128, board_len=9): """ Parameters ---------- in_channels: int 输入通道数 board_len: int 棋盘大小 """ super().__init__() self.in_channels = in_channels self.board_len = board_len self.conv = ConvBlock(in_channels, 1, kernel_size=1) self.fc = nn.Sequential( nn.Linear(board_len**2, 128), nn.ReLU(), nn.Linear(128, 1), nn.Tanh() ) def forward(self, x): x = self.conv(x) x = self.fc(x.flatten(1)) return x class PolicyValueNet(nn.Module): """ 策略价值网络 """ def __init__(self, board_len=9, n_feature_planes=6, is_use_gpu=True): """ Parameters ---------- board_len: int 棋盘大小 n_feature_planes: int 输入图像通道数,对应特征 """ super().__init__() self.board_len = board_len self.is_use_gpu = is_use_gpu self.n_feature_planes = n_feature_planes self.device = torch.device('cuda:0' if is_use_gpu else 'cpu') self.conv = ConvBlock(n_feature_planes, 128, 3, padding=1) self.residues = nn.Sequential( *[ResidueBlock(128, 128) for i in range(4)]) self.policy_head = PolicyHead(128, board_len) self.value_head = ValueHead(128, board_len) def forward(self, x): """ 前馈,输出 `p_hat` 和 `V` Parameters ---------- x: Tensor of shape (N, C, H, W) 棋局的状态特征平面张量 Returns ------- p_hat: Tensor of shape (N, board_len^2) 对数先验概率向量 value: Tensor of shape (N, 1) 当前局面的估值 """ x = self.conv(x) x = self.residues(x) p_hat = self.policy_head(x) value = self.value_head(x) return p_hat, value def predict(self, chess_board: ChessBoard): """ 获取当前局面上所有可用 `action` 和他对应的先验概率 `P(s, a)`,以及局面的 `value` Parameters ---------- chess_board: ChessBoard 棋盘 Returns ------- probs: `np.ndarray` of shape `(len(chess_board.available_actions), )` 当前局面上所有可用 `action` 对应的先验概率 `P(s, a)` value: float 当前局面的估值 """ feature_planes = chess_board.get_feature_planes().to(self.device) feature_planes.unsqueeze_(0) p_hat, value = self(feature_planes) # 将对数概率转换为概率 p = torch.exp(p_hat).flatten() # 只取可行的落点 if self.is_use_gpu: p = p[chess_board.available_actions].cpu().detach().numpy() else: p = p[chess_board.available_actions].detach().numpy() return p, value[0].item() def set_device(self, is_use_gpu: bool): """ 设置神经网络运行设备 """ self.is_use_gpu = is_use_gpu self.device = torch.device('cuda:0' if is_use_gpu else 'cpu')
python
<gh_stars>1-10 body.standby-lb-detector-css { filter: opacity(45%) grayscale(95%) contrast(75%) !important; }
css
<gh_stars>1-10 /* BitmapListItem.cpp: A BListView item with an optional picture Written by DarkWyrm <<EMAIL>>, Copyright 2007 Released under the MIT license. Certain code portions courtesy of the Haiku project */ #include "BitmapListItem.h" #include <View.h> #include <String.h> #include <Font.h> #include <Message.h> BitmapListItem::BitmapListItem(BBitmap *bitmap, const char *text, uint32 level, bool expanded) : BStringItem(text,level,expanded), fBitmap(bitmap) { font_height fontHeight; be_plain_font->GetHeight(&fontHeight); fBaselineOffset = fontHeight.descent; } BitmapListItem::BitmapListItem(BMessage *data) : BStringItem(data) { fBitmap = (BBitmap*)BBitmap::Instantiate(data); } BitmapListItem::~BitmapListItem(void) { delete fBitmap; } status_t BitmapListItem::Archive(BMessage *data, bool deep) const { status_t status = BStringItem::Archive(data,deep); if (status == B_OK && fBitmap) status = fBitmap->Archive(data,deep); if (status == B_OK) status = data->AddString("class","BitmapListItem"); return status; } void BitmapListItem::SetBitmap(BBitmap *bitmap) { delete fBitmap; fBitmap = bitmap; } BBitmap * BitmapListItem::Bitmap(void) const { return fBitmap; } void BitmapListItem::DrawItem(BView *owner, BRect rect, bool all) { // All of this code has been swiped from Haiku's BStringItem::DrawItem and // from ResEdit if (!Text() && fBitmap) return; rgb_color highColor = owner->HighColor(); rgb_color lowColor = owner->LowColor(); if (IsSelected() || all) { if (IsSelected()) { owner->SetHighColor(tint_color(lowColor, B_DARKEN_2_TINT)); owner->SetLowColor(owner->HighColor()); } else owner->SetHighColor(lowColor); owner->FillRect(rect); } BRect drawrect(0,0,0,0); if (fBitmap) { // Scale the fBitmap down to completely fit within the field's height drawrect = fBitmap->Bounds().OffsetToCopy(rect.LeftTop()); if (drawrect.Height() > rect.Height()) { drawrect = rect; drawrect.right = drawrect.left + (fBitmap->Bounds().Width() * (rect.Height() / fBitmap->Bounds().Height())); } owner->SetDrawingMode(B_OP_ALPHA); owner->DrawBitmap(fBitmap, fBitmap->Bounds(), drawrect); if (!IsEnabled()) { owner->SetDrawingMode(B_OP_OVER); owner->SetHighColor(255,255,255); owner->FillRect(drawrect); } owner->SetDrawingMode(B_OP_COPY); } rgb_color black = {0, 0, 0, 255}; if (!IsEnabled()) owner->SetHighColor(tint_color(black, B_LIGHTEN_2_TINT)); else owner->SetHighColor(black); BRect stringrect = rect; stringrect.right -= 5; stringrect.left = drawrect.right + 5; stringrect.bottom -= fBaselineOffset; BString out(Text()); owner->TruncateString(&out, B_TRUNCATE_END, stringrect.Width()); owner->DrawString(out.String(), stringrect.LeftBottom()); owner->SetHighColor(highColor); owner->SetLowColor(lowColor); }
cpp
<gh_stars>1-10 { "manifest": { "author": { "name": "<NAME>", "email": "<EMAIL>", "url": "http://blog.izs.me/" }, "name": "tar", "description": "tar for node", "version": "2.2.1", "repository": { "type": "git", "url": "git://github.com/isaacs/node-tar.git" }, "main": "tar.js", "scripts": { "test": "tap test/*.js" }, "dependencies": { "block-stream": "*", "fstream": "^1.0.2", "inherits": "2" }, "devDependencies": { "graceful-fs": "^4.1.2", "rimraf": "1.x", "tap": "0.x", "mkdirp": "^0.5.0" }, "license": "ISC", "_registry": "npm", "_loc": "/var/www/app/.cache/yarn/v1/npm-tar-2.2.1-8e4d2a256c0e2185c6b18ad694aec968b83cb1d1/package.json", "readmeFilename": "README.md", "readme": "# node-tar\n\nTar for Node.js.\n\n[![NPM](https://nodei.co/npm/tar.png)](https://nodei.co/npm/tar/)\n\n## API\n\nSee `examples/` for usage examples.\n\n### var tar = require('tar')\n\nReturns an object with `.Pack`, `.Extract` and `.Parse` methods.\n\n### tar.Pack([properties])\n\nReturns a through stream. Use\n[fstream](https://npmjs.org/package/fstream) to write files into the\npack stream and you will receive tar archive data from the pack\nstream.\n\nThis only works with directories, it does not work with individual files.\n\nThe optional `properties` object are used to set properties in the tar\n'Global Extended Header'. If the `fromBase` property is set to true,\nthe tar will contain files relative to the path passed, and not with\nthe path included.\n\n### tar.Extract([options])\n\nReturns a through stream. Write tar data to the stream and the files\nin the tarball will be extracted onto the filesystem.\n\n`options` can be:\n\n```js\n{\n path: '/path/to/extract/tar/into',\n strip: 0, // how many path segments to strip from the root when extracting\n}\n```\n\n`options` also get passed to the `fstream.Writer` instance that `tar`\nuses internally.\n\n### tar.Parse()\n\nReturns a writable stream. Write tar data to it and it will emit\n`entry` events for each entry parsed from the tarball. This is used by\n`tar.Extract`.\n", "licenseText": "The ISC License\nCopyright (c) <NAME> and Contributors\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR\nIN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n" }, "artifacts": [], "remote": { "resolved": "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1", "type": "tarball", "reference": "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz", "hash": "8e4d2a256c0e2185c6b18ad694aec968b83cb1d1", "registry": "npm", "packageName": "tar" }, "registry": "npm", "hash": "8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" }
json
<reponame>FudanYuan/neo4j<filename>src/main/resources/static/mas_json/2018_ijcai_-5829952553105679250.json {"title": "From Feature to Paradigm: Deep Learning in Machine Translation (Extended Abstract).", "fields": ["deep learning", "machine learning", "computer science", "artificial intelligence", "machine translation"], "abstract": null, "citation": "Not cited", "year": "2018", "departments": ["Polytechnic University of Catalonia"], "conf": "ijcai", "authors": ["<NAME>\u00e0.....http://dblp.org/pers/hd/c/Costa=Juss=agrave=:Marta_R="], "pages": 5}
json
package tr.com.poc.temporaldate.core.configuration; import java.util.List; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.MediaType; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter; import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; /** * For Web MVC support and to configure object converters that are to be used in Rest Services as different media types. * * @author umutaskin * */ @Configuration @EnableWebMvc public class WebMvcConfiguration implements WebMvcConfigurer { @Override public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { configurer.defaultContentType(MediaType.APPLICATION_JSON); } @Override public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { converters.add(jsonConverter()); converters.add(xmlConverter()); } @Bean public MappingJackson2HttpMessageConverter jsonConverter() { ObjectMapper mapper = new ObjectMapper(); mapper.registerModule(new JavaTimeModule()); mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); mapper.enable(SerializationFeature.INDENT_OUTPUT); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); return new MappingJackson2HttpMessageConverter(mapper); } @Bean public MappingJackson2XmlHttpMessageConverter xmlConverter() { ObjectMapper mapper = new XmlMapper(); mapper.registerModule(new JavaTimeModule()); mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); mapper.enable(SerializationFeature.INDENT_OUTPUT); return new MappingJackson2XmlHttpMessageConverter(mapper); } @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/"); registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/"); } }
java
{ "device_automation": { "action_type": { "arm_away": "Arm {entity_name} away", "arm_home": "Arm {entity_name} home", "arm_night": "Arm {entity_name} night", "disarm": "Disarm {entity_name}", "trigger": "Trigger {entity_name}" } } }
json
{"artist_id":"ARM4LJO1187FB43A95","artist_latitude":null,"artist_location":"","artist_longitude":null,"artist_name":"Salom\u00e9 <NAME>","duration":220.62975,"num_songs":1,"song_id":"SORSESJ12A8C13DCDC","title":"Mambo Bacan","year":0}
json
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.replaceLine = exports.addLines = void 0; function addLines(content, find, offset, toAdd) { const lines = content.split('\n'); let lineIndex = lines.findIndex((line) => line.match(find)); for (const newLine of toAdd) { if (!content.includes(newLine)) { lines.splice(lineIndex + offset, 0, newLine); lineIndex++; } } return lines.join('\n'); } exports.addLines = addLines; function replaceLine(content, find, replace) { const lines = content.split('\n'); if (!content.includes(replace)) { const lineIndex = lines.findIndex((line) => line.match(find)); lines.splice(lineIndex, 1, replace); } return lines.join('\n'); } exports.replaceLine = replaceLine;
javascript
<gh_stars>10-100 { "directions": [ "In a small sauce pan, cook rice with two cups of water until tender; set aside. Fry the bacon until crisp. Drain, but reserve 5 tablespoons of the grease. Crumble bacon and set aside.", "Fry the onions, celery and green peppers in the bacon grease until the onions are translucent. Transfer the vegetables, rice and crumbled bacon to a 5 quart pan. Stir in the mushroom and chicken soups, chicken broth and remaining 3 1/2 cups of water. Simmer over medium heat for one hour to blend all of the flavors." ], "ingredients": [ "2 pounds bacon", "1 cup uncooked wild rice", "2 cups water", "1/2 cup chopped onion", "1/2 cup chopped celery", "1/2 cup chopped green bell pepper", "1 (10.75 ounce) can condensed cream of mushroom soup", "1 (10.75 ounce) can condensed cream of chicken soup", "2 (14.5 ounce) cans chicken broth", "3 1/2 cups water" ], "language": "en-US", "source": "allrecipes.com", "tags": [], "title": "Wild Rice Soup IV", "url": "http://allrecipes.com/recipe/21001/wild-rice-soup-iv/" }
json
NSE Symbol: | BSE Code: | ISIN: | Sector: DEAR MEMBERS, Directors of your Company take great pleasure in presenting the Fifteenth Annual Report on the business and operations of your Company and the Audited financial statements for the financial year ended March 31, 2016. The consolidated total income increased from Rs. 30,411. 75 Million to Rs. 32,397. 33 Million, an increase of 6. 53% over the previous financial year. The consolidated Net Profit After Tax increased from Rs. 2,343. 18 Million to Rs. 2,649. 69 Million, a growth of 13. 08% over the previous financial year. The detailed analysis of the consolidated results forms part of the Management Discussion & Analysis Report provided separately as part of the Annual Report. The standalone total income decreased from Rs. 9,328. 06 Million to Rs. 9,005. 31 Million, a decline of 3. 46% over the previous financial year. The standalone Profit After Tax decreased from Rs. 1,637. 54 Million to Rs. 1,497. 36 Million, an decline of 8. 56% over the previous financial year. With a view to conserve cash reserves to meet current financial obligations of the Company, the Directors of your Company do not recommend any dividend for financial year 2015–16. During the year, your Company issued 7,023,453 equity shares of the face value of Rs. 10/– each on the exercise of stock options under First source Solutions Employee Stock Option Scheme, 2003 (ESOS 2003). Consequently, the outstanding, issued, subscribed and paid up capital of the Company has increased from 666,291,459 shares to 673,314,912 shares of Rs. 10/– each aggregating to Rs. 6,733. 15 Million as on March 31, 2016. During the year, the Board approved acquisition of 100% ownership of ISGN Solutions, Inc. from its holding Company ISGN Corporation, USA and BPO business of ISG Novasoft Technologies, India Ltd. The acquisition would be completed through First source Group US Inc. (FGUS), a wholly owned subsidiary of the Company in US and Firstsource Solutions Limited in India. ISGN Solutions, Inc. is a provider of integrated end–to–end business process outsourcing (“BPO”) services to the financial institutions that focus on the U. S. residential mortgage market. ISGN Solutions, Inc. was incorporated in Delaware, US in 1999 and has two 100% owned operating subsidiaries in US. ISGN Solutions, Inc. provides following outsourced services: The Company, on a consolidated basis had 45 global delivery centers as on March 31, 2016. The centers are located across India, US, UK, Philippines and Sri Lanka. 20 of the Company's delivery centers are located in 14 cities in India, 16 in US, 6 in UK, 2 in Philippines and 1 in Sri Lanka. The Company follows the global best practices for process excellence and is certified by COPC Inc. (Customer Operations Performance Center). Firstsource Dialog Solutions (Pvt. ) Limited, joint venture subsidiary of the Company in Sri Lanka has been recertified for COPC (5. 0a) Standard. Also, as part of the Quality Management System, the Company has embraced ISO 9001:2008. The Company continues to follow process improvement methodologies like Six Sigma, Lean and Kaizen. The Company received the following awards and accolades during the year. • Won Outsource Contact Centre of the Year at the Welsh Contact Centre Awards. The win recognizes the Company as a top employer in the industry and reflects the unmatched career development and training opportunities it offers its people. • Received the 'Innovation in Outsourcing' award for its partnership with giffgaff at the National Outsourcing Association's (NOA) Awards 2015. • Won 2 awards at the UK Customer Experience Awards 2015: • With NOW TV, the 'Business Change or Transformation – Transformation at the Heart' category. NOW TV is an Online Television service powered and owned by Sky. • The Silver Award with giffgaff in the 'Technology and Telecoms – Amazing Customer Experience' category. • Received Frost & Sullivan Asia Pacific Best Practices Award 2015 for 'Customer Value Enhancement' in the contact centre outsourcing domain. • Awarded 4th Runner–up for its corporate film on Diversity & Inclusion at the Learning & Organisation Development (L&OD) 2016 Corporate Film Awards. Won 2 awards for HR best practices in India: • JetSet program won the Best First Time Managers Development Program of Asia at the Best Leadership Development Practices of Asia 2015 conducted by the Learning & Organisational Development (L&OD) Roundtable. • Firstsource Academy won in the Corporate Best HR practices category at the NHRD HR Showcase 2015. • Ranked #19 in Ulster Business in 'Top 100 Companies' list in Northern Ireland. On a consolidated basis, the Company has 23,886 employees as of March 31, 2016. Particulars of the Employees and Related Disclosures: Disclosures pertaining to remuneration and other details as required under Section 197(12) of the Companies Act, 2013 ("Act") read with Rule 5(1) of the Companies (Appointment and Remuneration of Managerial Personnel) Rules, 2014 form part of this Report and are annexed as Annexure I. The statement containing particulars of employees as required under Section 197(12) of the Act read with Rules 5(2) and 5(3) of the Companies (Appointment and Remuneration of Managerial Personnel) Rules, 2014, is provided in a separate annexure forming part of this Report. Further, the Report and the accounts are being sent to the members excluding the aforesaid annexure. In terms of section 136 of the Act, the said annexure is open for inspection at the Registered Office of the Company. Any shareholder interested in obtaining a copy of the same may write to the Company Secretary. During the year, your Company has not accepted any deposits under Section 73 of the Act, and as such, no amount on account of principal or interest on public deposits was outstanding as of March 31, 2016. Particulars of loans given, investments made, guarantees given and securities provided along with the purpose for which the loan or guarantee or security is proposed to be utilised by the recipient are provided in the notes to the standalone financial statements. (Please refer to Note 12, 16, 19 & 32 to the standalone financial statements). The Company seeks to be a good corporate citizen in all aspects of its operations and activities. The Company commits to operating in an economically, socially and environmentally responsible manner whilst balancing the interests of diverse stakeholders. Our Corporate Social Responsibility ("CSR") Policy is governed and guided by our Group's corporate vision to enable inclusive growth, and our aspiration to be India's leading business group serving multiple market segments, for our customers, shareholders, employees and community. The Company seeks to undertake programmes in the areas of Healthcare, Education, Environment, Arts & Culture, Promotion of Sports as well as support initiatives towards Gender Equality and Empowerment of Women. The CSR Committee consists of Shashwat Goenka (Chairman) and Rajesh Subramaniam, Subrata Talukdar & Pradip Roy (Independent Director) as its members. The CSR Committee held 1 meeting during the year. The details of CSR Committee and its meetings are given in Report on Corporate Governance forming part of the Annual Report. The CSR Policy, formulated in accordance with schedule VII of the Act and the Companies (CSR Policy) Rules, 2014, is available on the website of the Company at the link <http://www. firstsource. com/articles/fsl–>corporate–social–responsibility–policy. pdf. The Annual Report on CSR Activities, as stipulated under the Act forms an integral part of this Report and is appended as Annexure II. The details of focus areas of engagement as mentioned in the CSR Policy of the Company are mentioned in the said Annual Report on CSR Activities. During the year, the Company has spent an amount of Rs. 26. 29 million, being 2% of the average net profits of the Company for the last 3 years on CSR activities as mentioned in the CSR Policy. Out of the said amount, majority of the amount has been contributed by the Company towards the corpus of the CSR Trust, which would be spent by the CSR Trust on the focus areas as mentioned in the CSR Policy of the Company. Besides the focus areas of engagement as mentioned in the CSR Policy of the Company, the Company and its subsidiaries also voluntary undertake various CSR activities. The CSR at the Company is a platform for giving back to the communities in which we live and work. The Company through its employee engagement activities has contributed in a variety of areas. Our Social Initiative areas across the geographies are as follows: India: • India Smile Challenge 2015: During the Joy of Giving week, the Company initiated a Fundraising drive and encouraged employees to contribute to the NGOs identified for this cause i. e. : The Akanksha Foundation and Association for Non–traditional Employment for Women (ANEW). The Company collected close to Rs. 7 Lacs and received a matching grant from Give India as the winning prize. The Company won the 1st place in the "New Donor Count" (3302) and 2nd place in "Total Funds Raised" categories in the India Smile Challenge 2015 for corporates with over 5000 employees. • Partnered with Lotus Flower Trust in fund raising for building a school in Tamil Nadu. This NGO raises funds to build homes, school and orphanages for the underprivileged. • Fund raising initiated to aid victims of the flood in Chennai and Pondicherry. Fund raising activities: The most lucrative event of the year was a charity ball event in Cardiff in aid of the Teenage Cancer Trust, which raised £4,500. This was followed by the Strictly Salsa event in Londonderry which raised £3,500 when couples made up of members of staff took to the dance floor to compete in a charity dance competition. While over £23,000 was raised by staff, we also made corporate donation of £2,000 as part of the staff entry to the Mood Walk in Londonderry. Education: In partnership with Business In The Community (BITC), our Belfast and Londonderry offices have been actively engaged with a number of schools in the local community. The schools supported include Moville Community College, Saint Joseph's and Saint Brigid's in Londonderry and Mercy College in Belfast. Students were given insight into the real working world and got to interact with staff from various functions of the business. Part of the programme involved running interview skills training, C. V. workshop and a module on Customer Service. Food and Gift Donations included over £200 worth of Easter Eggs for underprivileged children in Cardiff. 70 presents and seven large boxes of non–perishable foods in Banbury and 97 shoe–boxes full of Christmas gifts were collected in Londonderry for under–privileged children in Eastern Europe at Christmas time. USA: • Employees in Miami office raised a total of $1,556 for the Making Strides against Breast Cancer and attended the walking event held at the Marlins Park to support this cause. • Employees participated in Strides Walk for Breast Cancer organised by American Cancer Society. There were 330 walkers from our offices across US and a total of USD 22,464 was raised through this activity. Bake sales, raffles, dress–down day, pie in the face, chili cook–off and many other activities were organised to mark the event. • Employees in Colorado office raised a total of $4,000 for St. Baldrick's Foundation, an NGO which supports cure for childhood cancer. The funds were collected through bake sales, contests and cash donations. • To sponsor the American Heart Association, employees took part in a 50/50 raffle through which an amount of $1,230 was collected. • The Ride for Roswell 2015: Employees in Amherst office organised a 50/50 raffle to help raise money for this initiative which helps in funding cancer research for Roswell Park Cancer Institute. The Ride for Roswell event has raised more than $3. 8 million dollars for Roswell Park Cancer Institute since its inception in 1996 and Firstsource has participated in the ride for the past 6 years. • "The Wounded Warrior Project": Fundraising done to provide unique, direct programs and services to meet the needs of injured service members. We collected $6437 which was donated directly to the project. • Food Drive: Employees in Amherst office donated barrels of food and other non –perishable items which were distributed to Salvation Army. Sri Lanka: • Volunteers from our office visited "Kithu Sevana" Children's Development Home in Ragama. They distributed gift packs and organised fun activities for the children. Philippines: • Employees of the Company's office in Manila have been sponsoring the Chosen Children Village Foundation, Inc. , an internationally acclaimed facility geared towards securing the future of the physically, mentally, and emotionally challenged children for more than 3 years in a row. "Fund My Future" Campaign was launched to provide funding for Chosen Children Village through greeting cards sales. Another initiative "Dream in a Bag" was launched and the funds raised were used to procure school supplies for the children. • Cook out sale conducted by Leadership Team in Cebu and the proceeds of which went out to "Lapu–Lapu City Central Elementary School", which is an adopted school for differently–able children. • "FSL Supports Pink October" campaign launched to create awareness on Breast Cancer and its prevention. • The Industrial Tripartite Council held a CSR activity in collaboration with the Department of Labor. All the members of the council including Firstsource which is a founding member donated educational materials to the Special Education Department of the Institution. The Company has implemented a comprehensive and fully integrated 'Enterprise Risk Management' framework in order to anticipate, identify, measure, manage, mitigate, monitor and report the principal risks and uncertainties that can impact its ability to achieve its strategic business objectives. The Company has introduced several improvements to Enterprise Risk Management and processes to drive a common integrated view of risks and optimal risk mitigation responses. This integration is enabled by alignment of Risk Management and Internal Audit methodologies and processes in order to maximise enterprise value of the Company and ensure high value creation for our stakeholders over a time. The details of the 'Enterprise Risk Management' framework with details of the principal risks and the plans to mitigate the same are given in the 'Risk Management Report' section of the 'Management Discussion and Analysis Report' which forms part of this Annual Report. The Company has in place adequate internal financial controls with reference to financial statements. Such internal financial controls over financial reporting are operating effectively. The Company has a Whistle Blower Policy (the "WB Policy") with a view to provide vigil mechanism to Directors, employees and other stakeholders to disclose instances of wrongdoing in the workplace and report instances of unethical behavior, actual or suspected fraud or violation of the Company's code of conduct or ethics policy. The WB Policy also states that this mechanism should also provide for adequate safeguards against victimization of Director(s)/ Employees who avail of the mechanism and also provide for direct access to the Chairman of the Audit Committee in exceptional cases. The Whistle Blower Policy has been posted on the website of the Company and the details of the same are explained in the 'Report on Corporate Governance' forming part of this Annual Report. The Whistle Blower Policy is available at the website of the Company at the link <http://www. firstsource. com/articles/Whistle–Blower–Policy>. pdf. The Company has a 'Prevention of Sexual Harassment Policy' in force in terms of Sexual Harassment of Women at Workplace (Prevention, Prohibition and Redressal) Act, 2013. The objective of this Policy is to ensure a safe, secure and congenial work environment where employees will deliver their best without any inhibition, threat or fear. The Company has Zero Tolerance to any form of harassment especially if it is sexual in nature. The complaints filed under the Policy are reported to the Audit Committee at its quarterly meetings with details of action taken thereon. Mr. Shashwat Goenka (DIN 03486121) retires by rotation and, being eligible, has offered himself for re–appointment at the ensuing Annual General Meeting ("AGM"). All the Independent Directors of the Company have given declarations that they meet the criteria of independence as laid down under Section 149(6) of the Act. Mr. Rajesh Subramaniam's (DIN 02617781) current tenure as Managing Director & CEO ("MD & CEO") of the Company would complete on July 31, 2016. He is proposed to be re–appointed as MD & CEO of the Company. Board and Audit Committee Meetings During the year, 4 Board Meetings were held on May 5, August 3 & October 29 in 2015 and on January 28 in 2016. Time gap between any two meetings was not more than 4 months. Further, 4 meetings of the Audit Committee were held during the year on May 5, August 3 & October 29 in 2015 and on January 28 in 2016. The time gap between any two meetings was not more than 4 months. The full details of the said meetings are given in the 'Report on Corporate Governance' forming part of this Annual Report. The Company has put in place a system to familiarise its Independent Directors with the Company, their roles, rights & responsibilities in the Company, nature of the industry in which the Company operates, business model of the Company, etc. The details of such familiarisation programmes are put up on the website of the Company at the link: <http://www. firstsource. com/> articles/policy–on–familiarisation–of–independent–directors. pdf. The Company has framed a Policy for Appointment of Directors and Senior Management and Evaluation of Directors' Performance ("Board Evaluation Policy"). The said Policy sets out criteria for performance evaluation of Independent Directors, other Non–Executive Directors and the Executive Director(s). Pursuant to the provisions of the Act and the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 ("Listing Regulations"), the Board carries out the performance evaluation of all the Directors (including Independent Directors) on the basis of recommendation of the Nomination and Remuneration Committee and the criteria mentioned in the Board Evaluation Policy. The Board decided that the performance evaluation of Directors should be done by the entire Board of Directors excluding the Director being evaluated and unanimously agreed on the following assessment criteria for evaluation of Directors' performance: The performance of Managing Director & Chief Executive Officer is evaluated on the basis of achievement of performance targets/ criteria given to him by the Board from time to time. The performance of the Board is evaluated by the Board in the overall context of understanding by the Board of the Company's principle and values, philosophy and mission statement, strategic and business plans and demonstrating this through its action on important matters, the effectiveness of the Board and the respective Committees in providing guidance to the management of the Company and keeping them informed, open communication, the constructive participation of members and prompt decision–making, level of attendance in the Board meetings, constructive participation in the discussion on the Agenda items, monitoring cash flow, profitability, income & expenses, productively & other financial indicators, so as to ensure that the Company achieves its planned results, effective discharge of the functions and roles of the Board etc. The performance of the Committees is evaluated by the members of the respective Committees on the basis of the Committee effectively performing the responsibility as outlined in its Charter, Committee meetings held at appropriate frequency, length of the meetings being appropriate, open communication & constructive participation of members and prompt decision–making etc. The criteria for Directors' appointment and for determining qualification, positive attributes and independence of a Director as mentioned in the 'Policy for Appointment of Directors and Senior Management and Evaluation of Directors' Performance' in terms of Section 178(3) of the Act is mentioned below: Appointment criteria and qualifications: 1. The Nomination & Remuneration Committee shall identify and ascertain the integrity, qualifications, expertise and experience of the person for appointment as Director, Key Managerial Personnel ("KMP") or at Senior Management level and recommend to the Board his / her appointment. 2. A person should possess adequate qualifications, expertise and experience for the position he / she is considered for appointment. The Committee has discretion to decide whether qualifications, expertise and experience possessed by a person are sufficient / satisfactory for the concerned position. 3. The Company shall not appoint or continue the employment of any person as Managing Director/ Whole time Director who has attained the age of seventy years. Provided that the term of the person holding this position may be extended beyond the age of seventy years with the approval of shareholders by passing a special resolution based on the explanatory statement annexed to the notice or such motion indicating the justification for extension of appointment beyond seventy years. The Independent Directors of the Company hold at least one meeting in a year, without the attendance of non–independent Directors and members of management. The Independent Directors in the meeting: i. Review the performance of non–independent Directors inculding Managing Director & CEO and the Board as a whole. ii. Review the performance of the Chairperson of the Company, taking into account the views of executive Directors and non–executive Directors. The Board, on the recommendation of the Nomination & Remuneration Committee framed a Remuneration Policy for Non–Executive Directors (including Independent Directors) and a Remuneration Policy for Key Managerial Personnel and Other Employees of the Company. The details of Remuneration Policy for Non–Executive Directors and Independent Directors is provided as Annexure IIIA and details of Remuneration Policy for Key Managerial Personnel and Other employees of the Company is provided as Annexure IIIB to this Report. A detailed note on the Board and its Committees is provided in the 'Report on Corporate Governance' forming part of this Annual Report. The composition of the major Committee is a follows: Independent Directors namely Y. H. Malegam (Chairman), Director namely Subrata Talukdar. Committee comprised of 3 Independent Directors namely Y. H. Non–Independent Director namely Subrata Talukdar. Corporate Social Responsibility (CSR Committee) As at March 31, 2016, CSR Committee comprised of Shashwat Goenka (Chairman), Rajesh Subramaniam, Subrata Talukdar and 1 Independent Director namely Pradip Roy. As at March 31, 2016, Stakeholders Relationship Committee comprised of Subrata Talukdar (Chairman) and Rajesh Subramaniam. All the contracts/ arrangements/ transactions that were entered into by the Company during the financial year with related parties were on an arm's length basis and in the ordinary course of business. During the year, the Company had not entered into any contract/ arrangement/ transaction with related parties which could be considered material, requiring approval of the Board/ shareholders, in accordance with the policy of the Company on materiality of related party transactions. All Related Party Transactions are placed before the Audit Committee for approval. The policy on Related Party Transactions as approved by the Board is available on website of the Company at the link: <http://> www. firstsource. com/articles/Related–Party–Transaction– Policy. pdf. Details of Related Party Transactions are given at Note No. 28 to the Standalone Financial Statements. None of the Directors of the Company has any pecuniary relationships or transactions vis–a–vis the Company. With a view to provide an opportunity to the employees of the Company to share the growth of the Company and to create long–term wealth, the Company has an Employee Stock Option Scheme (ESOS), namely, the Firstsource Solutions Employee Stock Option Scheme, 2003 (ESOS 2003). The Scheme is applicable to the eligible employees that include employees and Directors of the Company and its subsidiary companies. The Scheme is in compliance with the Securities and Exchange Board of India (Share Based Employee Benefits) Regulations, 2014 ("SEBI ESOP Regulations"), as amended. There has not been any material change in the Scheme during the financial year. The disclosure pursuant to SEBI ESOP Regulations read with Circular No CIB/CFD/Policy/CELL/2,2015 dated June 16, 2015, are given on the website of the Company (<http://www>. firstsource. com/us/investors–corporate–governance). As on March 31, 2016, your Company had 12 subsidiaries: Domestic subsidiary: International subsidiaries: 1. Firstsource Solutions UK Limited, UK (WOS of the Company) 2. Firstsource Solutions S. A. , Argentina (Subsidiary of Firstsource Solutions UK Limited) 3. Firstsource Group USA, Inc. , USA (WOS of the Company) 4. MedAssist Holding, LLC, USA (WOS of Firstsource Group USA, Inc) 5. Firstsource Business Process Services, LLC, USA (WOS of Firstsource Group USA, Inc) 6. Firstsource Advantage, LLC, USA (WOS of Firstsource Business Process Services, LLC) 7. One Advantage, LLC, USA (WOS of Firstsource Business Process Services, LLC) 8. Firstsource Solutions USA, LLC, USA (WOS of MedAssist Holding, LLC) 9. Firstsource Transaction Services, LLC, USA (WOS of Firstsource Solutions USA, LLC) 10. Firstsource BPO Ireland Limited (WOS of the Company) 11. Firstsource Dialog Solutions (Private) Limited (Subsidiary of the Company) NOTE: 1) The name of Anunta Tech Infrastructure Services Limited was changed to Firstsource Process Management Services Limited w. e. f. December 30, 2015. The Company has no other joint venture or associate Company. No company has become/ceased to be a joint venture or associate during the financial year 2015–16. REPORT ON THE PERFORMANCE FINANCIAL POSITION Subsidiaries: Management Discussion and Analysis Report for the year as stipulated under Regulation 34(3) of the Listing Regulations is separately given and forms part of this Annual Report. The adherence to the corporate governance practices by the Company not only justifies the legal obedience of the laws but dwells deeper conforming to the ethical leadership and stability. It is the sense of good governance that our leaders portray, which trickles down to the wider management and is further maintained across the entire functioning of the Company. The Company is committed to maintain the highest standards of corporate governance and adheres to the corporate governance requirements set out by SEBI. The report on Corporate Governance as stipulated under provisions of Chapter IV & Schedule V of the Listing Regulations is separately given and forms part of this Annual Report. The requisite certificate from a Practicing Company Secretary confirming compliance of the conditions of corporate governance is attached to the Report on Corporate Governance. In accordance with section 129(3) of the Act and Accounting Standard (AS) – 21 on Consolidated Financial Statements, the Company has prepared consolidated financial statements of the Company and all its subsidiaries, which form part of this Annual Report. The details forming part of the extract of the Annual Return in Form MGT– 9 is annexed herewith as Annexure IV. The Company has made progress towards energy conservation across all its delivery centers. The Company is continuously monitoring the earlier initiatives of reducing energy consumption in the computers which are used in its' delivery centers. The Company, similar to its previous years initiatives of GREEN IT, continued to replace the normal Desktops with Mini Desktops as the power consumption of mini desktop was 2. 5 times less than the power consumed by normal desktops and nearly 5 times less during standby mode. Scripts have been deployed where possible to shut down the Desktops/Thin clients which are not being used for more than 1 hour which would save lot of energy. The Company has been innovating consistently to absorb newer technology offerings which can benefit business to improve operational efficiency with a cost effective manner. During the year, the Company has reduced considerable resources from Onsite to Remote Support for Desktop, Server Support and Enterprise – Email/Domain Support Services. The Company also started using new technology, from Microsoft based SAS to VMWARE Horizon. These new technologies have helped the Company to have a cost effective solution. The Company has also moved from the traditional rack mount servers to virtualized servers over the last year and will eventually move on a complete virtualized platform from a server and network domain perspective. The Company has also moved from the traditional storage systems with Gen next storage which have much smaller footprint in terms of space and energy without compromising on storage output. On the telephony side, the Company has made significant development in migration from TDM to IP architecture allowing it to offer a single platform for voice, email, back office & chat applications. C) Foreign Exchange Earnings and Outgo Activities relating to exports, initiatives taken to increase exports, development of new export markets for services and export plans. Pursuant to the provisions of Section 204 of the Act and The Companies (Appointment and Remuneration of Managerial Personnel) Rules, 2014, the Company has appointed Ms. Amrita D. C. Nautiyal, a Company Secretary in Practice to undertake the Secretarial Audit of the Company. The Secretarial Audit Report is annexed to this Report as Annexure V. There is no qualification, reservation or adverse remark(s) in the Secretarial Audit Report. M/s. B S R & Co. LLP, Chartered Accountants, were appointed as the Statutory Auditors of the Company by the Members at their previous Annual General Meeting (AGM) for a period of 2 years. The Audit Committee and the Board have recommended ratification of their appointment to the members at the ensuing AGM until the next AGM at a remuneration to be decided by the Audit Committee. The Statutory Auditors have submitted a certificate, as required under section 139(1) of the Act to the Company stating that they satisfy the criteria provided in Section 141 of the Act. The Notes on financial statements referred to in the Auditors' Report are self–explanatory and do not call for any further comments. The Auditors' Report does not contain any qualification, reservation or adverse remark. However, there are Emphasis of Matter in the Auditors' Report which are self explanatory. Your Directors state that no disclosure or reporting is required in respect of the following matters as there were no transactions on these matters during the financial year 2015–16: 1. Issue of equity shares with differential rights as to dividend, voting or otherwise. 2. Issue of shares (including sweat equity shares) to employees of the Company under any scheme save and except Employees Stock Option Scheme as referred to in this Report. 3. The Managing Director & CEO does not receive any remuneration or commission from any of its subsidiaries. 4. No significant or material orders were passed by the Regulators or Courts or Tribunals which impact the going concern status and the Company's operations in future. Pursuant to the requirement under Section 134(3)(c) and 134(5) of the Act, Directors of your Company state and confirm that: (a) In the preparation of the annual accounts for the financial year 2015–16, the applicable accounting standards have been followed and there are no material departures from the same; (b) The Directors had selected such accounting policies and applied them consistently and made judgments and estimates that are reasonable and prudent so as to give a true and fair view of the state of affairs of the Company as at March 31, 2016 and of the profit and loss of the Company for year ended on that date; (c) The Directors had taken proper and sufficient care for the maintenance of adequate accounting records in accordance with the provisions of this Act for safe guarding the assets of the Company and for preventing and detecting fraud and other irregularities; (e) The Directors had laid down internal financial controls to be followed by the Company and that such internal financial controls are adequate and were operating effectively; (f) The Directors had devised proper systems to ensure compliance with the provisions of all applicable laws and that such systems were adequate and operating effectively. The Board wishes to place on record its sincere appreciation for the support and co–operation extended by all the customers, vendors, bankers and business associates. The Board also expresses its gratitude to the Ministry of Telecommunications, Collector of Customs and Excise, Director – Software Technology Parks of India and various Governmental departments and organisations for their help and co–operation. The Board places on record its appreciation to all the employees for their dedicated service. The Board appreciates and values the contributions made by every member across the world and is confident that with their continued support, the Company will achieve its objectives and emerge stronger in the coming years.
english
package com.rustfisher.tutorial2020.storage.update; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.databinding.DataBindingUtil; import androidx.lifecycle.Observer; import com.rustfisher.tutorial2020.AbsActivity; import com.rustfisher.tutorial2020.R; import com.rustfisher.tutorial2020.databinding.DbRoomUpdateActBinding; import com.rustfisher.tutorial2020.storage.room.User; import java.util.List; /** * Room 更新操作 * 2021-1-17 */ public class RoomUpdateAct extends AbsActivity { private DbRoomUpdateActBinding mBinding; private RoomUpdateVm mVm; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); mBinding = DataBindingUtil.setContentView(this, R.layout.db_room_update_act); mVm = new RoomUpdateVm(getApplication()); mBinding.setVm(mVm); mVm.userListMsg.observe(this, new Observer<List<User>>() { @Override public void onChanged(List<User> users) { if (users == null) { mBinding.msgTv.setText("没有数据"); } else { StringBuilder sb = new StringBuilder(); for (User user : users) { sb.append(user.toString()).append("\n"); } mBinding.msgTv.setText(sb.toString()); } } }); } @Override protected void onDestroy() { mVm.onDestroy(); super.onDestroy(); } }
java
<reponame>onosfw/apis<gh_stars>0 var htp__request__generic_8c = [ [ "htp_parse_request_header_generic", "htp__request__generic_8c.html#a942dcbfae19b6ceb5c070cb84dc50bce", null ], [ "htp_parse_request_line_generic", "htp__request__generic_8c.html#a02add732118572070ba289abd8a4cd66", null ], [ "htp_parse_request_line_generic_ex", "htp__request__generic_8c.html#a53bf758c818ba5d2554eba3ba380fb36", null ], [ "htp_process_request_header_generic", "htp__request__generic_8c.html#a221bc903670a4cdea0d68314700db050", null ] ];
javascript
<gh_stars>0 package org.maera.plugin.util; /** * */ public class MyModule { }
java
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the timezone Windows Registry plugin.""" import unittest from plaso.dfwinreg import definitions as dfwinreg_definitions from plaso.dfwinreg import fake as dfwinreg_fake from plaso.formatters import winreg as _ # pylint: disable=unused-import from plaso.lib import timelib from plaso.parsers.winreg_plugins import timezone as winreg_timezone from tests.parsers.winreg_plugins import test_lib class WinRegTimezonePluginTest(test_lib.RegistryPluginTestCase): """Tests for the timezone Windows Registry plugin.""" def setUp(self): """Makes preparations before running an individual test.""" self._plugin = winreg_timezone.WinRegTimezonePlugin() def _CreateTestKey(self, key_path, time_string): """Creates Registry keys and values for testing. Args: key_path: the Windows Registry key path. time_string: string containing the key last written date and time. Returns: A Windows Registry key (instance of dfwinreg.WinRegistryKey). """ filetime = dfwinreg_fake.Filetime() filetime.CopyFromString(time_string) registry_key = dfwinreg_fake.FakeWinRegistryKey( u'TimeZoneInformation', key_path=key_path, last_written_time=filetime.timestamp, offset=153) value_data = u'C:\\Downloads\\plaso-static.rar'.encode(u'utf_16_le') registry_value = dfwinreg_fake.FakeWinRegistryValue( u'1', data=value_data, data_type=dfwinreg_definitions.REG_SZ, offset=612) registry_key.AddValue(registry_value) value_data = b'\xff\xff\xff\xc4' registry_value = dfwinreg_fake.FakeWinRegistryValue( u'ActiveTimeBias', data=value_data, data_type=dfwinreg_definitions.REG_DWORD_BIG_ENDIAN) registry_key.AddValue(registry_value) value_data = b'\xff\xff\xff\xc4' registry_value = dfwinreg_fake.FakeWinRegistryValue( u'Bias', data=value_data, data_type=dfwinreg_definitions.REG_DWORD_BIG_ENDIAN) registry_key.AddValue(registry_value) value_data = b'\xff\xff\xff\xc4' registry_value = dfwinreg_fake.FakeWinRegistryValue( u'DaylightBias', data=value_data, data_type=dfwinreg_definitions.REG_DWORD_BIG_ENDIAN) registry_key.AddValue(registry_value) value_data = u'@tzres.dll,-321'.encode(u'utf_16_le') registry_value = dfwinreg_fake.FakeWinRegistryValue( u'DaylightName', data=value_data, data_type=dfwinreg_definitions.REG_SZ) registry_key.AddValue(registry_value) value_data = ( b'\x00\x00\x03\x00\x05\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00') registry_value = dfwinreg_fake.FakeWinRegistryValue( u'DaylightStart', data=value_data, data_type=dfwinreg_definitions.REG_BINARY) registry_key.AddValue(registry_value) value_data = b'\x00\x00\x00\x00' registry_value = dfwinreg_fake.FakeWinRegistryValue( u'DynamicDaylightTimeDisabled', data=value_data, data_type=dfwinreg_definitions.REG_DWORD_BIG_ENDIAN) registry_key.AddValue(registry_value) value_data = b'\x00\x00\x00\x00' registry_value = dfwinreg_fake.FakeWinRegistryValue( u'StandardBias', data=value_data, data_type=dfwinreg_definitions.REG_DWORD_BIG_ENDIAN) registry_key.AddValue(registry_value) value_data = u'@tzres.dll,-322'.encode(u'utf_16_le') registry_value = dfwinreg_fake.FakeWinRegistryValue( u'StandardName', data=value_data, data_type=dfwinreg_definitions.REG_SZ) registry_key.AddValue(registry_value) value_data = ( b'\x00\x00\x0A\x00\x05\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00') registry_value = dfwinreg_fake.FakeWinRegistryValue( u'StandardStart', data=value_data, data_type=dfwinreg_definitions.REG_BINARY) registry_key.AddValue(registry_value) value_data = u'W. Europe Standard Time'.encode(u'utf_16_le') registry_value = dfwinreg_fake.FakeWinRegistryValue( u'TimeZoneKeyName', data=value_data, data_type=dfwinreg_definitions.REG_SZ) registry_key.AddValue(registry_value) return registry_key def testProcessMock(self): """Tests the Process function on created key.""" key_path = ( u'HKEY_LOCAL_MACHINE\\System\\ControlSet001\\Control\\' u'TimeZoneInformation') time_string = u'2013-01-30 10:47:57' registry_key = self._CreateTestKey(key_path, time_string) event_queue_consumer = self._ParseKeyWithPlugin(self._plugin, registry_key) event_objects = self._GetEventObjectsFromQueue(event_queue_consumer) self.assertEqual(len(event_objects), 1) expected_timestamp = timelib.Timestamp.CopyFromString(time_string) self.assertEqual(event_objects[0].timestamp, expected_timestamp) expected_message = ( u'[{0:s}] ' u'ActiveTimeBias: -60 ' u'Bias: -60 ' u'DaylightBias: -60 ' u'DaylightName: @tzres.dll,-321 ' u'DynamicDaylightTimeDisabled: 0 ' u'StandardBias: 0 ' u'StandardName: @tzres.dll,-322 ' u'TimeZoneKeyName: W. Europe Standard Time').format(key_path) expected_short_message = u'{0:s}...'.format(expected_message[0:77]) self._TestGetMessageStrings( event_objects[0], expected_message, expected_short_message) def testProcessFile(self): """Tests the Process function on registry file.""" test_file_entry = self._GetTestFileEntryFromPath([u'SYSTEM']) key_path = ( u'HKEY_LOCAL_MACHINE\\System\\ControlSet001\\Control\\' u'TimeZoneInformation') win_registry = self._GetWinRegistryFromFileEntry(test_file_entry) registry_key = win_registry.GetKeyByPath(key_path) event_queue_consumer = self._ParseKeyWithPlugin( self._plugin, registry_key, file_entry=test_file_entry) event_objects = self._GetEventObjectsFromQueue(event_queue_consumer) self.assertEqual(len(event_objects), 1) expected_timestamp = timelib.Timestamp.CopyFromString( u'2012-03-11 07:00:00.000642') self.assertEqual(event_objects[0].timestamp, expected_timestamp) expected_message = ( u'[{0:s}] ' u'ActiveTimeBias: 240 ' u'Bias: 300 ' u'DaylightBias: -60 ' u'DaylightName: @tzres.dll,-111 ' u'DynamicDaylightTimeDisabled: 0 ' u'StandardBias: 0 ' u'StandardName: @tzres.dll,-112 ' u'TimeZoneKeyName: Eastern Standard Time').format(key_path) expected_short_message = u'{0:s}...'.format(expected_message[0:77]) self._TestGetMessageStrings( event_objects[0], expected_message, expected_short_message) if __name__ == '__main__': unittest.main()
python
<reponame>mamuso/mamuso.dev module.exports = { async rewrites() { return [ { source: "/", destination: "/posts/1", }, ]; }, };
javascript
The Oklahoma City Thunder played a very strong first quarter and caused a minor headache in the fourth, but the Brooklyn Nets did something that OKC’s last four opponents had not: They held on and closed out the Thunder. Nets guard Patty Mills made nine 3-pointers and forward Kevin Durant scored 33 as Brooklyn beat Oklahoma City 120-96 on Sunday. The Thunder kept pace with the Nets through the first 11 minutes before a mini-spurt by the Nets at the end of the first quarter put them up 30-25. Brooklyn built upon that in the second and third quarter as OKC struggled to make shots, particularly from behind the arc. The Nets’ lead was built to 20 in the fourth quarter, but Oklahoma City’s bench went on a 17-7 run over about four-and-a-half minutes to force Durant, Mills and Blake Griffin to come back in with 5:46 to play. That was apparently much to their chagrin, as Durant made the next four points, Mills hit a pair of 3s, and the Nets outscored the Thunder 19-5 from the time that substitution was made until the end of the game. That ended the Thunder’s four-game winning streak and sinks them to two games below .500. Here are some grades from OKC’s performance. This grade is for one particular play, and it is the Thunder’s highlight of the game. Rookie center Jeremiah Robinson-Earl refused to be beat off the dribble by James Harden, one of the best in the game at creating space and scoring points. If this video continued for about two seconds longer, it would have shown Lu Dort making a 3 in transition with a smooth release. Robinson-Earl had a couple really nice moments, including a steal and an assist: The Thunder swapped picks No. 34 and 36 for No. 32 for the rights to draft Robinson-Earl, and he has repeatedly shown why that relatively hefty price tag was worth it. It was a nice game for the rookie, who only had two points and attempted three shots but recorded four offensive rebounds, four defensive rebounds, a pair of assists and a steal. There’s something about Lu Dort’s release on 3-pointers that is, at times, subtly smoother than others in real-time. There were a couple shots from behind the arc early in the game in which it was clear it was going in as soon as it was released from his fingers. Dort made three 3-pointers in the first quarter and had 11 points by the end of the frame. He was good offensively against the Nets, finishing with 20 points on 8-for-11 shooting and 3-for-6 from behind the arc. He recorded 20 points for the third game in a row, the first such stretch in his career. While those numbers were good, his fouling was not up to standard. Dort committed five fouls and very nearly got a sixth late in the fourth quarter when he drove into the lane at Griffin and may have been lucky to receive a no-call. Dort has only fouled out one time in his career — funny enough, the second game of his NBA career, when he committed six fouls in 19:51 of play — but came dangerously close on Sunday. The Thunder managed to dictate the pace for quite a bit of the first half. They worked well in transition, got up court quickly and moved the ball eagerly. They are still looking for an offensive identity that goes beyond letting Shai Gilgeous-Alexander cook, and they’re finding some concept of it when SGA and Josh Giddey are handling the rock and Jeremiah Robinson-Earl or Mike Muscala are creating extra space. Play got sloppy in the second half though, and Brooklyn took control over the tempo of the game. It’s worth a mention, though, that it is coming along through a dozen games. Muscala did not play on Sunday, so his presence on Monday could help maintain the pace for a longer period. Shai Gilgeous-Alexander was decent. He had a couple really nice step-back 3s, which are becoming a staple of his offensive game. He scored an efficient 23 points. But he failed to put any real imprint on the game. There were a few times this game where a surge by the star could have propelled the Thunder. He scored two points in his five minutes of play in the second quarter, a stretch in which Brooklyn stretched its lead from six to 13. He played for two brief minutes in the fourth quarter after the deficit was cut to 10, but his only moments in that span were getting blocked and turning over the ball once. We’re being picky. Gilgeous-Alexander had a solid game, going 8-for-14 from the field and 3-for-6 from deep. There isn’t much to complain about. But as he advances to the superstar stages, look for him to assert himself more in these types of games. Just a disappointing game for Darius Bazley, who had five points and five rebounds in 26 minutes of play. He went 2-for-13 from the field and made one of six 3-pointers that he attempted. Bazley had reached double-digit points in five games in a row proceeding this contest. In those games, he shot 52% from the field and went 9-for-18 from behind the arc. It’s not a coincidence that the Thunder played very well in those five games. It’s becoming a trend that as Bazley plays, the Thunder play. This loss to Brooklyn was another example. Bazley wasn’t alone in the poor 3-point shooting. The team shot 14-of-45 from behind the arc, good for 31.1%, and it continues to be an area in which the Thunder struggle. It was one of the keys coming into the game. Brooklyn’s 3-point defense was the second-best in the league entering the night, and the Thunder’s 3-point percentage was third-worst. It happened exactly as the stats indicated it would. The reason it’s a D instead of an F is because four OKC players made multiple 3-pointers. Brooklyn, on the other hand, went 18-for-43 (41.9%) on the back of Mills, who poured in nine made 3-pointers. He was untouchable. Harden was the Rockets’ weak link from behind the arc, going 1-for-8. Aaron Wiggins made his NBA debut on Sunday. It wasn’t bad, as he recorded four rebounds and four assists, but he scored just three points in 21 minutes of action. One positive play that stands out was in transition in which he made a smooth crossover and pass from around the free throw line into the paint. It was deflected out of bounds by a defender, but it was still a pretty attempt and attention-worthy crossover. Improving his 3-point shooting would go a long way. Wiggins was 1-for-4 from deep. His percentage in college was all over the place — a desirable 41.3% as a freshman, a disastrous 31.7% as a sophomore, and then a middle-of-the-ground 35.6% in his junior and final season at Maryland — so it’s tough to say what’s for real. The Thunder will take the court against the Miami Heat on Monday for the second night of a back-to-back, this time presumably with Muscala in the lineup. It is scheduled to tip off at 7 p.m. Central Time.
english
<filename>server/src/api/graph/schedule/schedule.module.ts import { Module, forwardRef } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ScoreModule } from '../score/score.module'; import { DisciplineModule } from '../discipline/discipline.module'; import { TournamentModule } from '../tournament/tournament.module'; import { TeamModule } from '../team/team.module'; import { DivisionModule } from '../division/division.module'; import { ScheduleService } from './schedule.service'; import { TeamInDiscipline } from './team-in-discipline.model'; import { ScheduleResolver } from './schedule.resolver'; import { Log } from '../../common/util/logger/log'; import { UserModule } from '../user/user.module'; import { MediaModule } from '../media/media.module'; @Module({ imports: [ TypeOrmModule.forFeature([TeamInDiscipline]), forwardRef(() => ScoreModule), forwardRef(() => DisciplineModule), forwardRef(() => DivisionModule), forwardRef(() => UserModule), forwardRef(() => TournamentModule), forwardRef(() => TeamModule), forwardRef(() => MediaModule) ], providers: [ScheduleService, ScheduleResolver], exports: [ScheduleService] }) export class ScheduleModule { constructor() { } }
typescript
1 Dohpaguere yʉhʉ Pablo mʉare weregʉra. Cristopʉ ne guabigʉ, masare õaro iigʉ árĩñumi. Ĩgʉ iidiro dopa ta yʉ sã mʉare werediaa õari mera. Yujurãyeri mʉa mera majarã õpa arãyoro yʉre. “Mari mera árĩgʉ eropa pepicãgʉ bu árĩgʉ iro dopa árĩmi Pablo. Eropa árĩqueregʉ ta gajipʉgue árĩgʉ marire doyaro mariro turibeomi,” arãyoro mʉa yujurãyeri yʉre. 2 Eropigʉ mʉare ire bʉrigã dorea: Mʉa pohrogue yʉ ejacʉ̃ õaro iique mʉa, “¿Pablo gʉare turiri?” arĩrã. Yujurãyeri yʉre õpa arãyoro: “Ĩgʉ, ĩgʉ gamero, Goãmʉ dorebiriquerecʉ̃ iimi,” arãyoro mʉa yʉre yujurãyeri. Eropa arĩrã tamerare turiboca yʉhʉ. 3 Gʉa sã i yeba majarã ta árĩrã iiaa. Eropa árĩquererã ta i yeba majarã erã gamero iiro dopa ta iibeaa gʉa. 4 Surara erã tarinʉgaro dopa ta gʉapʉ ñerire tarinʉgadiaa. Surara erã mojo oparo dopa ta gʉa sã mojo opaa. Gʉa mojo i yeba majarã erã masiri, erã wereniguitarinʉgari, erã turari árĩbeaa. Gʉa mojo Goãmʉ ya turaripʉ ãhraa. Iri turari mera masa Goãmʉre erã umupeodorebirirare duhucʉ̃ iiaa gʉa. Eropirã erã gamero erã masirire iri duhpiburi árĩbiricʉ̃ masicʉ̃ iiaa gʉa iri turari mera. 5 Eropirã árĩpehrerã erã gamero pepirare Goãmʉre erã masidorebirirare duhucʉ̃ iiaa gʉa. Eropirã iri turari mera Goãmʉre gamebirãre Cristore õaro yʉhrirã erã árĩcʉ̃ iiaa gʉa. Cristo ĩgʉ gamero dopa ta erãre pepicʉ̃ iiaa gʉa. 6 Eropirã gajirã mʉa mera majarã Cristore tarinʉgacʉ̃ ĩarã erãre dipuwaja moamorã árĩrãca gʉa. Mʉa õaro yʉhrira pʉhrʉ Cristore tarinʉgarãpʉre eropa dipuwaja moamorã árĩrãca gʉa. 7 Yʉ árĩricʉri dihtare masia mʉa. Yʉ pepiripʉre ne masibeaa mʉa. “Cristo yarã ãhraa,” arĩrã árĩrã õpa masique mʉa: Gʉa sã mʉa iro dopa ta Cristo yarã ta ãhraa. 8 “Mari Opʉ ya buherire õari buherire buhedoregʉ apimi gʉare,” arĩgʉ bajasuburi mʉare iri dihtare eropa arĩ werequeregʉ ta gʉhyasĩribeaa yʉhʉ. Gʉare eropa buhedoregʉ mʉare itamumorãre apimi gʉare. Mʉare goroweomorãre apigʉ iibirimi gʉare. 9 I yʉ gojabeoripũre mʉa ĩha ʉcacʉ̃ gamebeaa yʉhʉ. 10 Yujurãyeri mʉa mera majarã õpa arãyoro: “Pablo gojabeogʉ pũriro dihta gojabeomi marire. Eropa árĩqueregʉ ta mari mera árĩgʉ eropa árĩcãgʉ ãhrimi. Bu árĩgʉ iro dopa ãhrimi. Eropiro ĩgʉ marire wereniguiri duhpiburi árĩbeaa,” arãyoro mʉa yujurãyeri. 11 Eropa arĩrãre õpa arĩ weregʉra: Mʉa arĩdiro dopa ta iibeaa gʉa. Mʉare gʉa arĩ gojabeodiro dopa ta eropa ta arĩ wererãca mʉa pohro árĩrã. Eropirã “Õpa iirãca,” gʉa arĩ gojabeodiro dopa ta eropa ta iirãca mʉa pohro árĩrã sã. 12 Yujurãyeri mʉa mera majarã “Õaro masipehorã ãhraa gʉa,” arĩ wereniguimaacãma erã basi. Erã game ĩha bocatĩrirã “Maripʉ õatariarã ãhraa,” arĩma erã. Eropa arĩmaacãrã “¿Gajirã õarã iro dopa ãhriri mari?” arĩbeama erã basi. Gʉapʉ erã iro dopa iisome. 13 Goãmʉ gʉare ĩgʉ buhedore ĩgʉ apira dihtare werea gʉapʉ mʉare. Gajirã erã mohmerare “Iibʉ gʉapʉ,” arĩrã iibeaa. Goãmʉ mʉa sãre buhedoregʉ gʉare apimi. 14 Eroparĩrã gʉyarã iibeaa gʉa. Õari buherire Cristo yare mʉare buhemʉhtarã ta ejabʉ gʉa. Eropirã Goãmʉ gʉare buhedore ĩgʉ apira dihtare wererã iiaa mʉare. 15 Eropirã gajirã mʉare itamucʉ̃ ĩha “Gʉapʉ irire iibʉ,” ne arĩbeaa gʉa. Cristore mʉa umupeonemocʉ̃ iiburipʉre gahmea gʉa. Eropa gamerã mʉare buhenemodiaa gʉa. Eropa gʉa buherã Goãmʉ ĩgʉ apirañe pẽta buhediaa gʉa mʉare. 16 Eropa buhediaa mʉa ya yeba core majarãre õari buherire peebirãre õari buherire wererã waboro dopa. Eropa warã gajirã erã buhera pʉhrʉ ejarã, “Gʉapʉ erãre buhemʉhtabʉ,” arĩsome gʉa. 17 Goãmʉ yare gojarapũgue õpa ãhraa: “Mari iirire ĩarã mucubiribiricãro gahmea. Mari Opʉ ĩgʉ iiripʉre ĩarã mucubiriro gahmea. Iripʉre gajirãre werero gahmea,” arĩ gojara ãhraa. 18 Masa erã basi “Gʉapʉ iiabʉ,” erã arĩcʉ̃ ĩha mucubiribeami Goãmʉ. Mari Opʉ Cristo Goãmʉre “Oã õaro iima,” ĩgʉ arĩrãpʉre sʉami Goãmʉ.
english
<filename>packages/client/src/components/app-layout/index.tsx import React from 'react'; import styled from 'styled-components'; import { Box, CssBaseline } from '@material-ui/core'; import { StyledTheme } from '../common'; import { Footer } from './footer'; import { Header } from './header'; interface Props { children: JSX.Element; } export function Layout({ children }: Props): JSX.Element { return ( <> <CssBaseline /> <Header /> <Container> <Box display="flex" flexDirection="column" flex="1"> {children} </Box> </Container> <Footer /> </> ); } const Container = styled.div` ${({ theme }: StyledTheme): string => ` background-color: #dfe6e9; display: flex; min-height: calc(100vh - 56px - 48px); ${theme.breakpoints.up('sm')} { min-height: calc(100vh - 64px - 48px); } `} `;
typescript
--- layout: post title: Big Data Fundamentals with PySpark subtitle: Notes from Upendra Devisetty's DataCamp Course categories: PySpark tags: [Big Data, PySpark] --- ## Intro - **Big Data** refers to data sets that are too complex for traditional data-processing software ### 3 Vs of Big Data - **Volume**: Size of the data - **Variety**: Different sources and formats - **Velocity**: Speed of the data ### Concepts and Terminology - **Clustered computing**: Collection of resources of multiple machines - **Parallel computing**: Simultaneous computation - **Distributed computing**: Collection of nodes (networked computers) that run in parallel - **Batch processing**: Breaking the job into small pieces and running them on individual machines - **Real-time processing**: Immediate processing of data ### Porcessing systems - **Hadoop/MapReduce**: Scalable and fault tolerant framework written in Java - Open source - Batch processing - **Apache Spark**: General purpose and lightning fast cluster computing system - Open source - Both batch and real-time data processing - **Features** - Distributed cluster computing framework - Efficient in-memory computations for large data sets - Lightning fast data processing framework - Provide support for Java, Scala, Python, R, SQL - **Components** - RDD API Apache Spark Core - Spark SQL - MLlib Machine Learning - GraphX - Spark Streaming - **Modes of Deployment** - **Local Mode**: Single machine such as laptop - convenient for testing, debugging and demonstration - **Cluster Mode**: Set of predefined machines - good for production - **Workflow**: Local -> Cluster - No code change necessary ## PySpark Spark with Python! ### Overview - Apache Spark is written in Scala - PySpark was designed to support Python with Spark - Similar computation speed and power as Scala - PySpark APIs are similar to Pandas and Scikit-learn ### Spark shell - interactive environment for running Spark jobs - helpful for fast interactive prototyping - Spark's shell allow interacting with data on disk or in memory - 3 different Spark shells: - Spark-shell for Scala - PySpark-shell for Python - SparkR for R ### PySpark shell - PySpark shell is the Python based command line tool - PySpark shell allows data scientists interface with Spark data structures - PySpark shell support connecting to a cluster ### Understanding SparkContext - SparkContext is an entry point into the world of Spark - An entry point is a way of connecting to Spark cluster - An entry point is like a key to the house - PySpark has a default SparkContext called `sc` ### Inspecting SparkContext ```Python sc.version # retrieve SparkContext version ``` ```Python sc.pythonVer # retrieve Python version of SparkContext ``` ```Python sc.master # URL of the cluster or "local" string to run in local mode of SparkContext ``` ### Loading data in PySpark ```Python rdd = sc.parallelize([1,2,3,4,5]) ``` ```Python rdd2 = sc.textFile("test.txt") ``` ## Anonymous functions in Python - Lambda functions are anonymous functions in Python - return the functions without any names (i.e. *anonymous*) - Quite efficient with `map()`and `filter()` - Lambda functions create functions to be called later - Inline a function definition or to defer execution of some code ### Lambda function syntax ```Python lambda arguments: expression # the general form of a lambda function ``` ```Python double = lambda x: x * 2 # example of a lambda function print(double(3)) ``` ### Lambda function in map() - `map()`: takes a function and a list; returns a new list which contains items returned by that function for each item ```Python map(function, list) # general syntax of map() ``` ```Python items = [1,2,3,4] list(map(lambda x: x + 2 , items)) # example of map() ``` ```Python items = [1,2,3,4] list(map(lambda x, y: x + y , items, items)) # example of map() with two arguments ``` ### Lambda function in filter() - `filter()`: takes a function and a list; returns a new list for which the function evaluates as true ```Python filter(function, list) # general syntax of filter() ``` ```Python items = [1,2,3,4] list(filter(lambda x: (x%2 != 0), items)) # example of filter() ``` ``` [1, 3] ``` ## PySpark RDD - `RDD`: Resilient Distributed Datasets - **Resilient**: Ability to withstand failures - **Distributed**: Spanning across multiple machines - **Datasets**: Collection of partitioned data e.g. Arrays, Tables, Tuples etc. ### General Structure 1. Data File on disk 2. Spark driver creates RDD and distributes amount on Nodes 3. Cluster - Node 1: RDD Partition 1 - Node 2: RDD Partition 2 - Node 3: RDD Partition 3 - ... - Node *n*: RDD Partition *n* ### Creating RDDs **Options** - Parallelizing an existing collection of objects an existing collection of objects - From external datasets (for example): - Files in HDFS - Objects in Amazon S3 bucket - lines in a text file - From existing RDDs ### Parallelizing an existing collection of objects ```Python numRDD = sc.parallelize([1,2,3,4]) # parallelize() for creating RDDs from python lists ``` ```Python helloRDD = sc.parallelize("Hello world") ``` ```Python type(helloRDD) ``` ``` <class 'pyspark.rdd.PipelinedRDD'> ``` ### From external datasets ```Python fileRDD = sc.textFile("README.md") # textFile() for creating RDDs from external datasets ``` ```Python type(fileRDD) ``` ``` <class 'pyspark.rdd.PipelinedRDD'> ``` ### Understanding Partitioning in PySpark - A partition is a logical division of a large distributed data set ```Python numRDD = sc.parallelize(range(10), minPartitions = 6) ``` ```Python fileRDD = sc.textFile("README.md", minPartitions = 6) ``` - `getNumPartitions()`: find the number of partitions in an RDD ## RDD operations in PySpark > Spark Operations = Transformations + Actions - `Transformations`: create new RDDs - `Actions`: perform computations on the RDDs ### RDD transformations Transformation follow lazy evaluation: - `Storage` (-> *reading data from stable storage*) - `RDD1` (-> *transformation*) - `RDD2` (-> *transformation*) - `RDD3` (-> *action*) - `result` - basic RDD transformations: `map()`, `filter()`, `flatMap()`, `union()` #### map() - applies a function to all elements in the RDD ```Python RDD = sc.parallelize([1,2,3,4]) RDD_map = RDD.map(lambda x: x * x) ``` #### filter() - returns a new RDD with only the elements that pass the condition ```Python RDD = sc.parallelize([1,2,3,4]) RDD_filter = RDD.filter(lambda x: x > 2) ``` #### flatMap() - returns multiple values for each element in teh original RDD ```Python RDD = sc.parallelize(["hello world", "how are you"]) RDD_flatmap = RDD.flatMap(lambda x: x.split(" ")) # returns ["hello", "world", "how", "are", "you"] ``` #### union() ```Python inputRDD = sc.textFile("logs.txt") errorRDD = inputRDD.filter(lambda x: "error" in x.split()) warningsRDD = inputRDD.filter(lambda x: "warnings" in x.split()) combinedRDD = errorRDD.union(warningsRDD) ``` ### RDD actions - Operation returning a value after running a computation on the RDD - Basic RDD actions: `collect()`, `take(N)`, `first()`, `count()` #### collect() - return all the elements of the dataset as an array ```Python RDD_map.collect() ``` ``` [1, 4, 9, 16] ``` #### take() - return an array with the first N elements of the dataset ```Python RDD_map.take(2) ``` ``` [1, 4] ``` #### first() - print the first element of the RDD ```Python RDD_map.first() ``` ``` [1] ``` #### count() - return the number of elements in the RDD ```Python RDD_flatmap.count() ``` ``` 5 ``` ## Pair RDDs in PySpark - Real life datasets are usually key/value pairs - Each row is a key and maps to one or more values - Pair RDD: a special data structure to work with this kind of datasets - `Pair RDD`: Key is the identifier and value is data ### Creating pair RDDs Two common ways to create pair RDDs #### From a list of key-value tuples ```Python my_tuple = [('Sam', 23), ('Mary', 34), ('Peter', 25)] pairRDD_tuple = sc.parallelize(my_tuple) ``` #### From a regular RDD ```Python my_list = ['<NAME>', '<NAME>', '<NAME>'] regularRDD = sc.parallelize(my_list) pairRDD_RDD = regularRDD.map(lambda x: (x.split(" ")[0], x.split(" ")[1])) ``` ### Transformations on pair RDDs - All regular transformations work on pair RDDs - Requires functions that operate on key value pairs rather than on individual elements - Examples of paired RDD transformations: - `reduceByKey(func)`: Combine values with the same key - `groupByKey()`: Group values with the same key - `sortByKey()`: Return an RDD sorted by the key - `join()`: Join two pair RDDs based on their key #### reduceByKey() - Transformation that combines values with the same key - Runs parallel operations for each key in the dataset ```Python regularRDD = sc.parallelize([("Messi", 23), ("Ronaldo", 34), ("Neymar", 22), ("Messi", 24)]) pairRDD_reducebykey = regularRDD.reduceByKey(lambda x,y : x + y) pairRDD_reducebykey.collect() ``` ``` [('Neymar', 22), ('Ronaldo', 34), ('Messi', 47)] ``` #### sortByKey() - Transformation that orders pair RDD by key - Returns an RDD sorted by key in ascending or descending order ```Python pairRDD_reducebykey_rev = pairRDD_reducebykey.map(lambda x: (x[1], x[0])) pairRDD_reducebykey_rev.sortByKey(ascending=False).collect() ``` ``` [(47, 'Messi'), (34, 'Ronaldo'), (22, 'Neymar')] ``` #### groupByKey() - transformation that groups all the values with the same key in the pair RDD ```Python airports = [("US", "JFK"),("UK", "LHR"),("FR", "CDG"),("US", "SFO")] regularRDD = sc.parallelize(airports) pairRDD_group = regularRDD.groupByKey().collect() for cont, air in pairRDD_group: print(cont, list(air)) ``` ``` FR ['CDG'] US ['JFK', 'SFO'] UK ['LHR'] ``` #### join() - transformation that joins the two paor RDDs based on their key ```Python RDD1 = sc.parallelize([("Messi", 34), ("Ronaldo", 32), ("Neymar", 24)]) RDD2 = sc.parallelize([("Ronaldo", 80),("Neymar", 120),("Messi", 100)]) RDD1.join(RDD2).collect() ``` ``` [('Neymar', (24, 120)), ('Ronaldo', (32, 80)), ('Messi', (34, 100))] ``` ## More actions ### Regular RDD #### reduce() - `reduce()`: aggregate the elements of a regular RDD - should be commutative (ie. changing the order of the operands does not change the result) and associative ```Python x = [1,3,4,6] RDD = sc.parallelize(x) RDD.reduce(lambda x, y: x + y) ``` ``` 14 ``` #### saveAsTextFile() - `saveAsTextFile()`: saves RDD into a text file inside a directory with each partition as a separate file ```Python RDD.saveAsTextFile("tempFile") ``` - `coalesce()`: can be used to save RDD as a single text file ```Python RDD.coalesce(1).saveAsTextFile("tempFile") ``` ### Pair RDD #### countByKey() - `countByKey`: counts the number of elements for each key - only available for type(K, V) ```Python rdd = sc.parallelize([("a", 1), ("b", 1), ("a", 1)]) for kee, val in rdd.countByKey().items(): print(kee, val) ``` ``` ('a', 2) ('b', 1) ``` #### collectAsMap() - `collectAsMap`: return the key value pairs in the RDD as a dictionary ```Python sc.parallelize([(1, 2), (3, 4)]).collectAsMap() {1: 2, 3: 4} ``` ``` {1: 2, 3: 4} ``` ## PySpark DataFrame - `PySpark SQL`: Spark library for structured data. - `PySpark DataFrame`: an immutable distributed collection of data with named columns - designed for processing both structured and semi-structured data - DataFrame API is available in Python, R, Scala, and Java - DataFrames in PySpark support both SQL queries (`SELECT * FROM table`) or expression methods (`df.select()`) ### SparkSession - `SparkContext` is the main entry point for creating RDDs - `SparkSession` provides a single point of entry to interact with Spark DataFrames - used to create DataFrame, register DataFrames, execute SQL queries - available in PySpark shell as `spark` ### Creating DataFrames - Two different methods of creating DataFrames in PySpark - From existing RDD using Sparksession's `createDataFrame()` method - From various data sources (CSV, JSON, TXT) using Sparksession's `read()`method - `Schema` - controls the data and helps DataFrames to optimize queries - provides information about column name, type of data in the column, empty values, etc. #### From RDD ```Python iphones_RDD = sc.parallelize([ ("XS", 2018, 5.65, 2.79, 6.24), ("XR", 2018, 5.94, 2.98, 6.84), ("X10", 2017, 5.65, 2.79, 6.13), ("8Plus", 2017, 6.23, 3.07, 7.12) ]) names = ['Model', 'Year', 'Height', 'Width', 'Weight'] iphones_df = spark.createDataFrame(iphones_RDD, schema=names) type(iphones_df) ``` ``` pyspark.sql.dataframe.DataFrame ``` #### From reading CSV/JSON/TXT ```Python df_csv = spark.read.csv("people.csv", header=True, inferSchema=True) df_json = spark.read.json("people.json", header=True, inferSchema=True) df_txt = spark.read.txt("people.txt", header=True, inferSchema=True) ``` ### DataFrame Operators in Pyspark - DataFrame operations: Transformations and Actions - DataFrame **Tranformations**: `select()`, `filter()`, `groupby()`, `orderby()`, `dropDuplicates()`, and `withColumnRenamed()` - DataFrame **Actions**: `head()`, `show()`, `count()`, and `describe()` - General methods for Spark datsets/dataframes: `printSchema()` #### Transformations ##### select() - `select()` subsets the columns in the DataFrame ```Python df_id_age = test.select('Age') ``` ##### show() - `show()` prints first 20 rows in the DataFrame ```Python df_id_age.show(3) # shows top 3 rows ``` ##### filter() - `filter()` filters out the rows based on a condition ```Python new_df_age21 = new_df.filter(new_df.Age > 21) ``` ##### groupby() and count() - `groupby()` can be used to group a variable ```Python test_df_age_group = test_df.groupby('Age') test_df_age_group.count().show(3) ``` ##### orderBy() - `orderBy()` sorts the DataFrame based on one or more columns ```Python test_df_age_group.count().orderBy('Age').show(3) ``` ##### dropDuplicates() - `dropDuplicates()` removes the duplicate rows of a DataFrame ```Python test_df_no_dup = test_df.select('User_ID','Gender', 'Age').dropDuplicates() test_df_no_dup.count() ``` ``` 5892 ``` ##### withColumnRenamed() - `withColumnRenamed()` renames a column in the DataFrame ```Python test_df_sex = test_df.withColumnRenamed('Gender','Sex') test_df_sex.show() ``` ``` +-------+---+---+ |User_ID|Sex|Age| +-------+---+---+ |1000001| F| 17| |1000001| F| 17| |1000001| F| 17| +-------+---+---+ ``` #### Actions ##### columns - `columns` prints the columns of a DataFrame ```Python test_df.columns ``` ##### describe() - `describe()` computes summary statistics of numerical columns in the DataFrame ```Python test_df.describe().show() ``` ##### printSchema() - `printSchema()` prints the types of columns in the DataFrame ```Python test_df.printSchema() ``` ## SparkSQL - `SparkSQL` allows for use of SQL via DataFrame API - `DataFrame API` provides a programmatic domain-specific language (DSL) for data - DataFrame transformations and actions are easier to construct programmatically - The operations on DataFrames can also be done using SQL queries ### SQL queries - `sql()`: Sparksession method to execute SQL queries - takes SQL statement as an argument and returns the result as DataFrame ```Python df.createOrReplaceTempView("table1") df2 = spark.sql("SELECT field1, field2 FROM table1") df2.collect() ``` ``` [Row(f1=1, f2='row1'), Row(f1=2, f2='row2'), Row(f1=3, f2='row3')] ``` ### Extract data ```Python test_df.createOrReplaceTempView("test_table") query = '''SELECT Product_ID FROM test_table''' test_product_df = spark.sql(query) test_product_df.show(5) ``` ### Summarizing and grouping data ```Python test_df.createOrReplaceTempView("test_table") query = '''SELECT Age, max(Purchase) FROM test_table GROUP BY Age''' spark.sql(query).show(5) ``` ### Filtering columns ```Python test_df.createOrReplaceTempView("test_table") query = '''SELECT Age, Purchase, Gender FROM test_table WHERE Purchase > 20000 AND Gender == "F"''' spark.sql(query).show(5) ``` ## Data Visualization in PySpark - Open source plotting tools to aid visualization in Python: [Matplotlib](https://matplotlib.org/), [Seaborn](https://seaborn.pydata.org/), [Bokeh](https://bokeh.org/), [Plotly](https://plotly.com/), ... - Plotting graphs using PySpark DataFrames is done using three methods: - `pyspark_dist_explore` library, - `toPandas()`, and - `HandySpark` library ### pyspark_dist_explore - `pyspark_dist_explore` provides quick insights into DataFrames - Currenty three functions available - `hist()`, `distplot()`, `pandas_histogram()` ```Python test_df = spark.read.csv("test.csv", header=True, inferSchema=True) test_df_age = test_df.select('Age') hist(test_df_age, bins=20, color="red") ``` ### Plotting with Pandas ```Python test_df = spark.read.csv("test.csv", header=True, inferSchema=True) test_df_sample_pandas = test_df.toPandas() test_df_sample_pandas.hist('Age') ``` |Pandas DataFrame|PySpark DataFrame| |---|---| |in-memory, single-server based structures|in parallel on multiple nodes| |[eager evaluation](https://en.wikipedia.org/wiki/Evaluation_strategy#Eager_evaluation)|[lazy evaluation](https://en.wikipedia.org/wiki/Lazy_evaluation)| |mutable|immutable| |supports more operations|supports fewer operations| ### HandySpark - `HandySpark`: package designed to improve PySpark user experience ```Python test_df = spark.read.csv('test.csv', header=True, inferSchema=True) hdf = test_df.toHandy() hdf.cols["Age"].hist() ```
markdown
After a 12-year-long legal battle, a soldier’s widow will finally get her dues. LUCKNOW: After a 12-year-long legal battle, a soldier's widow will finally get her dues. The regional bench of the Armed Forces Tribunal has directed the Chief of Army Staff and other respondents to provide family pension to Savita Singh, wife of a lance naik Shailendra Singh, who was invalidated from service in 2003 owing to disability. A bench of Justice U. C. Srivastava (judicial member) and Vice Admiral Abhay Raghunath Karve (administrative member) passed the order on the application of the husband, but later substituted by the wife after his death. Allowing the application, the bench cautioned the Army to give effect to the order within four months otherwise default would invite interest of 8 per cent per annum till actual payment. Further, it ordered to provide the pension from 2008, the year the husband had died. It also said that arrears of the pension would be restricted to three years preceding the date of filing of the case before the tribunal in 2017. According to reports, Shailendra Singh was enrolled in the Indian Army on January 1, 1996 and was invalidated out of service on March 17, 2003, after having rendered more than seven years in low medical category P-5 due to disability 'Recurrent Anaplastic Astrocytoma Left Temporo Parietal Region' (OPTD), a rare malignant brain tumour. The bench agreed to the plea of the wife that her husband was enrolled in the Army in medically and physically fit condition and there was no note in his service documents with regard to suffering from any disease prior to the enrolment and hence any disability suffered by her husband after joining the service should be considered as attributable to or aggravated by military service and she should be entitled for family pension. (IANS)
english
The soldier, who was treated for bullet injuries in Seoul, has regained consciousness, doctors said on Monday. A video clip has emerged showing the desperate bid of a North Korean soldier to escape to South Korea on November 13. The footage, which was released by the United Nations Command in Seoul, shows North Korean soldiers firing at the defector as he was trying to flee. The defector is seen first fleeing in a jeep that crashes into a ditch. He then starts running when the other North Korean soldiers start firing at him. One of the soldiers is also seen crossing the border while chasing the defector. The soldier who fled the country was critically wounded and is being treated at a hospital near Seoul. Doctors had earlier said they had removed a a 10.6-inch long parasitic worm from his digestive tract. The soldier, whose rank and identity have not been disclosed, has regained consciousness, doctors said on Wednesday, according to Reuters. The spokesperson for the UN command, Colonel Chad Carroll, said North Korea had violated the armistice agreement as its soldiers had fired across the border and had physically crossed the border as well, The Telegraph reported. This is the fourth defection by a North Korean soldier through the demilitarised zone in the last three years, the BBC reported.
english
Suriya's 2D Entertainment invites applications from talented children for next movie auditions! With the nation-wide lockdown in view of the rapidly spreading Corona Virus pandemic, most people are getting to spend a lot of time with their families after being forced to stay indoors. Akin to the Pasanga 2 movie style, the movie's production company 2D Entertainment has come up with a new initiative! A new post from Suriya's 2D Entertainment banner on their Twitter handle has given out an interesting update! The post mentions that anybody who feels their kids have any special talent can reach out to the production company by email, detailing the talent! 2D Entertainment has invited these applications from talented kids to shortlist potential candidates for an audition, which is expected to happen at a later date, for the banner's next project! This Production No. 8 from 2D Entertainment, seems to be along the lines of their earlier venture Pasanga 2, which was directed by Pandiraj and released in 2015! Other details about who the cast and crew of this project are, haven't been revealed. However, this casting call is an amazing opportunity for talented kids to make a grand entry onto the silver screens! Check out the tweet here: FEFSI உறுப்பினர்களுக்கு உதவித்தொகை வழங்கிய விஜய்சேதுபதி ! FEFSI ஊழியர்களுக்கு 50 லட்ச ரூபாய் நிதியுதவி வழங்கிய சூப்பர்ஸ்டார் ! திருமண வரவேற்புக்கு முதல்வர்,துணை முதல்வருக்கு அழைப்பு விடுத்த யோகிபாபு ! People looking for online information on Sharon Prabh,Veera will find this news story useful.
english
#include <dawgdic/dawg-builder.h> #include <dawgdic/dictionary-builder.h> #include <dawgdic/guide-builder.h> #include <dawgdic/ranked-guide-builder.h> #include <cstdlib> #include <fstream> #include <iostream> #include <limits> #include <string> namespace { class CommandOptions { public: CommandOptions() : help_(false), tab_(false), guide_(false), ranked_(false), lexicon_file_name_(), dic_file_name_() {} // Reads options. bool help() const { return help_; } bool tab() const { return tab_; } bool guide() const { return guide_; } bool ranked() const { return ranked_; } const std::string &lexicon_file_name() const { return lexicon_file_name_; } const std::string &dic_file_name() const { return dic_file_name_; } bool Parse(int argc, char *argv[]) { for (int i = 1; i < argc; ++i) { // Parses options. if (argv[i][0] == '-' && argv[i][1] != '\0') { for (int j = 1; argv[i][j] != '\0'; ++j) { switch (argv[i][j]) { case 'h': { help_ = true; break; } case 't': { tab_ = true; break; } case 'g': { guide_ = true; break; } case 'r': { ranked_ = true; break; } default: { // Invalid option. return false; } } } } else if (lexicon_file_name_.empty()) { lexicon_file_name_ = argv[i]; } else if (dic_file_name_.empty()) { dic_file_name_ = argv[i]; } else { // Too many arguments. return false; } } // Uses default settings for file names. if (lexicon_file_name_.empty()) { lexicon_file_name_ = "-"; } if (dic_file_name_.empty()) { dic_file_name_ = "-"; } return true; } static void ShowUsage(std::ostream *output) { *output << "Usage: - [Options] [LexiconFile] [DicFile]\n" "\n" "Options:\n" " -h display this help and exit\n" " -t handle tab as separator\n" " -g build dictionary with guide\n" " -r build dictionary with ranked guide\n"; *output << std::endl; } private: bool help_; bool tab_; bool guide_; bool ranked_; std::string lexicon_file_name_; std::string dic_file_name_; // Disallows copies. CommandOptions(const CommandOptions &); CommandOptions &operator=(const CommandOptions &); }; // Builds a dawg from a sorted lexicon. bool BuildDawg(std::istream *lexicon_stream, dawgdic::Dawg *dawg, bool tab_on) { dawgdic::DawgBuilder dawg_builder; // Reads keys from an input stream and inserts them into a dawg. std::string key; std::size_t key_count = 0; while (std::getline(*lexicon_stream, key)) { std::string::size_type delim_pos = std::string::npos; if (tab_on) { delim_pos = key.find_first_of('\t'); } if (delim_pos == std::string::npos) { if (!dawg_builder.Insert(key.c_str())) { std::cerr << "error: failed to insert key: " << key << std::endl; return false; } } else { static const dawgdic::ValueType MAX_VALUE = std::numeric_limits<dawgdic::ValueType>::max(); // Fixes an invalid record value. long long record = std::strtoll(key.c_str() + delim_pos + 1, NULL, 10); dawgdic::ValueType value = static_cast<dawgdic::ValueType>(record); if (record < 0) { std::cerr << "warning: negative value is replaced by 0: " << record << std::endl; value = 0; } else if (record > MAX_VALUE) { std::cerr << "warning: too large value is replaced by " << MAX_VALUE << ": " << record << std::endl; value = MAX_VALUE; } if (!dawg_builder.Insert(key.c_str(), delim_pos, value)) { std::cerr << "error: failed to insert key: " << key << std::endl; return false; } } if (++key_count % 10000 == 0) { std::cerr << "no. keys: " << key_count << '\r'; } } dawg_builder.Finish(dawg); std::cerr << "no. keys: " << key_count << std::endl; std::cerr << "no. states: " << dawg->num_of_states() << std::endl; std::cerr << "no. transitions: " << dawg->num_of_transitions() << std::endl; std::cerr << "no. merged states: " << dawg->num_of_merged_states() << std::endl; std::cerr << "no. merging states: " << dawg->num_of_merging_states() << std::endl; std::cerr << "no. merged transitions: " << dawg->num_of_merged_transitions() << std::endl; return true; } // Builds a dictionary from a dawg. bool BuildDictionary(const dawgdic::Dawg &dawg, dawgdic::Dictionary *dic) { dawgdic::BaseType num_of_unused_units = 0; if (!dawgdic::DictionaryBuilder::Build(dawg, dic, &num_of_unused_units)) { std::cerr << "error: failed to build Dictionary" << std::endl; return false; } double unused_ratio = 100.0 * num_of_unused_units / dic->size(); std::cerr << "no. elements: " << dic->size() << std::endl; std::cerr << "no. unused elements: " << num_of_unused_units << " (" << unused_ratio << "%)" << std::endl; std::cerr << "dictionary size: " << dic->total_size() << std::endl; return true; } // Builds a ranked guide from a dawg and its dictionary. bool BuildRankedGuide(const dawgdic::Dawg &dawg, const dawgdic::Dictionary &dic, dawgdic::RankedGuide *guide) { if (!dawgdic::RankedGuideBuilder::Build(dawg, dic, guide)) { std::cerr << "failed to build RankedGuide" << std::endl; return false; } std::cerr << "no. units: " << guide->size() << std::endl; std::cerr << "guide size: " << guide->total_size() << std::endl; return true; } // Builds a guide from a dawg and its dictionary. bool BuildGuide(const dawgdic::Dawg &dawg, const dawgdic::Dictionary &dic, dawgdic::Guide *guide) { if (!dawgdic::GuideBuilder::Build(dawg, dic, guide)) { std::cerr << "failed to build Guide" << std::endl; return false; } std::cerr << "no. units: " << guide->size() << std::endl; std::cerr << "guide size: " << guide->total_size() << std::endl; return true; } } // namespace int main(int argc, char *argv[]) { CommandOptions options; if (!options.Parse(argc, argv)) { CommandOptions::ShowUsage(&std::cerr); return 1; } else if (options.help()) { CommandOptions::ShowUsage(&std::cerr); return 0; } const std::string &lexicon_file_name = options.lexicon_file_name(); const std::string &dic_file_name = options.dic_file_name(); std::istream *lexicon_stream = &std::cin; std::ostream *dic_stream = &std::cout; // Opens a lexicon file. std::ifstream lexicon_file; if (lexicon_file_name != "-") { lexicon_file.open(lexicon_file_name.c_str(), std::ios::binary); if (!lexicon_file) { std::cerr << "error: failed to open LexiconFile: " << lexicon_file_name << std::endl; return 1; } lexicon_stream = &lexicon_file; } // Opens a dictionary file. std::ofstream dic_file; if (dic_file_name != "-") { dic_file.open(dic_file_name.c_str(), std::ios::binary); if (!dic_file) { std::cerr << "error: failed to open DicFile: " << dic_file_name << std::endl; return 1; } dic_stream = &dic_file; } dawgdic::Dawg dawg; if (!BuildDawg(lexicon_stream, &dawg, options.tab())) { return 1; } dawgdic::Dictionary dic; if (!BuildDictionary(dawg, &dic)) { return 1; } if (!dic.Write(dic_stream)) { std::cerr << "error: failed to write Dictionary" << std::endl; return 1; } // Builds a guide. if (options.ranked()) { dawgdic::RankedGuide guide; if (!BuildRankedGuide(dawg, dic, &guide)) { return 1; } if (!guide.Write(dic_stream)) { std::cerr << "error: failed to write RankedGuide" << std::endl; return 1; } } else if (options.guide()) { dawgdic::Guide guide; if (!BuildGuide(dawg, dic, &guide)) { return 1; } if (!guide.Write(dic_stream)) { std::cerr << "error: failed to write Guide" << std::endl; return 1; } } return 0; }
cpp
A variable is the name of a _container_ that _stores_ (or “points to”) a _value_. Variables are the rice and soy sauce of your programs, they give you the ability to grab hold of the bits in your computer and assign names to them. The _concept_ of variables is the most important thing you can possibly learn at this point in the class. In JavaScript, variables are used to point to values — bits of 1s and 0s somewhere on your disk that make up your program. You can create variables to point not just to the simple values (numbers and strings) that we used above, but to point to entire functions and objects (which we’ll learn about later). You create variables in JavaScript using the `let`, `const`, or `var` keywords. In general, we’ll avoid using the `var` keyword to create a variable as it’s an old web style that is being phased out. In general, you use the `const` word when you’re sure the value of the variable won’t change. However, a _mutable_ variable (a variable that can point to different values at different times) is often needed, particularly as a counter when we need to loop through something. `let` is a signal that the value of the variable may be reassigned. ## How to create a variable in JavaScript To create a variable, use the word `let` or `const` followed by the name of your variable, followed by an `=` sign and the variable’s value: ```javascript let degrees = 80; ``` ## Create a variable that holds a number: To create a number variable, simply use the keyword `let` or `const`,, give it a name and a numeric value. For example: ```javascript const pi = 3.14159; ``` The above creates a variable named `pi` and sets its value equal to 3.14159. The other way to create a variable is to use the word `let`. Remember our old friend: ```javascript let degrees = 80; ``` Here we create a variable called `degrees` and set its value to 80. We use `let` here because we’ll probably want to change the value of temp at some point (maybe our program is reading data from a temperature sensor). Remember the expression that converts the number 80 from Fahrenheit from to Celsius degrees? ```javascript (80 - 32) * 5 / 9 ``` After the `let degrees = 80;` statement is executed, the following two expressions have the same value. ```javascript (80 - 32) * 5 / 9 (degrees - 32) * 5 / 9 ``` `degrees` (for now) is just a wordier way of saying `80`. Try this out in the REPL. Enter `let degrees = 80;`, and then enter `(degrees — 32) * 5 / 9`. Since we used `let` to declare the variable (and not `const`), we can change its value. In the REPL, enter `degrees = 50`, and then enter `(degrees — 32) * 5 / 9` a second time. What is printed in the REPL? Let’s create a variable to hold the result of this calculation: ```javascript // To convert Fahrenheit to Celsius: subtract 32, then multiply by 5, then divide by 9 let degrees = 80; let celsius = (degrees - 32) * 5 / 9; ``` The `let degrees = 80;` line creates a variable named `degrees` and stores the number 80. The `let celsius = …` line creates a variable named `celsius`; performs a sequence of operations — multiplies the value of the `degrees` variable by 9, then multiplies that value by 5, and finally divides _that_ value by 9 — and stores the final computed value in the _celsius_ variable. Try it out! The following REPL comes pre-loaded with the definition of `degrees` and `celsius`. 1. Click the green triangle at the top, to run the code in the top pane. 2. Click on the lower pane. Enter `degrees` (+Enter) and `celsius` (+Enter) to see the values of those variables. 3. Try changing the code, and running it again (the green triangle at the top). 4. Can you add a `let fahrenheit =`, that uses the value of `celsius` to calculate degrees in Fahrenheit? <embed src="https://repl.it/@osteele/4-FahrenheitToCelsius" /> ## Camel Case Camel Case (or “camelCase”) is a way of capitalizing all the words except the first one. e.g. iPhone, or eBay. Almost everyone recommends your JavaScript variable names with more than one word are formatted using camel case! ```javascript const feetPerMile = 5280; let feetWalkedToday = 3890; let degreesFahrenheight = 80; ``` ## String Values A String is a sequence of letters, digits, and special characters such as spaces, tabs, and line breaks (new lines or carriage returns). Creating a string variable is exactly the same as a number, except you need to enclose your value in double quotes `"`, single quotes `'` or backticks \`\`\`. ```javascript let thingsILove = "I love dumplings"; let thingsILove = 'I love dumplings'; let thingsILove = `I love dumplings`; ``` All of the above are OK in JavaScript, and they all mean the same thing. The `+` operator also works on strings. These next two lines have the same effect. ```javascript let hello = "Hello Applab"; let hello = "Hello " + "Applab"; ``` Note: The _string_ "12" is different from the _number_ 12. The _string_ is a sequence of characters: the character "1" followed by the character "2". The _number_ is an integer that is slightly greater than 10. 12 + 3 is equivalent to 15; "12" + "3" is equivalent to "1212".
markdown
<filename>public/css/roadaccidentStyle.css .emptySpace40px{ display:block; padding:40px; } .emptySpace20px{ display:block; padding:20px; } .emptySpace10px{ display:block; padding:10px; } .emptySpace5px{ display:block; padding:5px; } .emptySpace30px{ display:block; padding:30px; } .emptySpace60px{ display:block; padding:60px; } #footer{ color:#000; font-family:'Arial'; font-size:12px; font-weight:bold; background:#ececec; } #main_div{ } .circleUnderSpan{ font-family:'Arial'; font-size:12px; font-weight:bold; text-align:center; display:inline-block; } .div-bordered-nocolor-big-hdr{ display:inline-block; background: #f0c309; } .div-bordered-nocolor-big-text{ background: fff; background: rgba(255,255,255,.6); color:#000; font-family: "Open Sans",Verdana,Tahoma,"Segoe UI",Arial,sans-serif; font-size: 13px; } #header_row{ background: #f7f7f7; color:#000; border-bottom:1px solid #999999; box-shadow: 0px 1px 2px #a6a6a6; position:relative; z-index:100; } #index_main_div, body, html, footer{ background: #ececec; } form{ padding:none; margin:none; } #navul{ padding:0; } .navulli{ list-style-type:none; display:inline-block; font-weight:bold; } .nav_a{ display:inline-block; padding:10px 20px; } .nav_a:hover{ color:#fff; background:#addbff; } .nav_a,.nav_a:link{ color:#fff; text-decoration:none; } #autoregnumUl{ margin:0; list-style-type:none; display:inline-block; display:inline-block; background-color:yellow; } #autoregnumUl li{ padding:2px 5px 2px 5px; } .autoregnumUla{ color:#fff; display:block; background-color:#F2CF30; padding:8px 0px; border:2px black solid; text-align:center; color:black; font-family:Arial; font-size:14px; font-weight:bold; } #navulliRegNum{ position:relative; } .regnum_form{ display:inline-block; position:relative; padding:0; margin:0 } #regnum_form_inp{ padding:8px 0px; margin:0; border:2px black solid; width:60%; } #regnum_form_but{ padding:8px 0px; border:0; background: #f0c309; color:black; font-family:Arial; font-size:14px; font-weight:bold; border:2px black solid; width:20%; } #usernavul{ padding:0; margin:0; } #usernavul li{ padding:0; margin:0; list-style-type:none; display:inline-block; } .usernavul_a{ display:inline-block; color:black; font-family:Arial; font-size:12px; font-weight:bold; padding:8px 10px; } .usernavul_a.yellowBg{ background-color:#f0c309; padding:10px 30px; } .usernavul_a.blackBr{ border:2px black solid; } .usernavul_a:hover{ color:#000; } .usernavul_a,.usernavul_a:link{ color:#000; } .descr_btn { display:block; background: #2ea9f5; background-image: -webkit-linear-gradient(top, #2ea9f5, #409ced); background-image: -moz-linear-gradient(top, #2ea9f5, #409ced); background-image: -ms-linear-gradient(top, #2ea9f5, #409ced); background-image: -o-linear-gradient(top, #2ea9f5, #409ced); background-image: linear-gradient(to bottom, #2ea9f5, #409ced); -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0px; font-family: Arial; color: #ffffff; font-size: 20px; padding: 0px 40px; border-bottom: solid #077dd1 2px; text-decoration: none; cursor:pointer; text-align:center; } .descr_btn:hover{ text-decoration:none; color:#fff; } .descr_btn_simple { display:block; border:0; padding:10px 20px; background: #f0c309; color:#fff; font-family: Arial; text-decoration: none; text-align:center; } .descr_btn_simple:hover{ text-decoration:none; color:#fff; } #searchVehicleUl_id{ list-style-type:none; padding:0; margin:0; border:1px gray solid; width:90%; border-top:none; position: absolute; display: none; z-index:100; background:#fff; } #searchVehicleUl_id li{ cursor:pointer; } #searchVehicleUl_id li:hover{ background:gray; } @font-face { font-family: "Days One"; src: url(../fonts/DaysOne-Regular.ttf); } #iconSpan{ font-family: 'Days One'; display:inline-block; color:#000; } #underIconSpan{ color:#000; } .pText1{ font-family: 'Arial'; font-size:12px; font-weight:bold; } .div-centered{ text-align:center; } .yellowBg{ background-color:#f0c309; } .div-circle-bordered{ display: block; vertical-align: middle; width:80px; height:80px; //border-radius:120px; background-color:#fff; position:relative } .iconMy{ position:relative; top:10px; } .iconMyPhoto{ position:relative; top:48px; } /* Extra small devices (phones, up to 480px) */ @media screen and (max-width: 767px) { span, a, p{ font-size:9px; } #iconSpan{ font-size:12px; } .usernavul_a,#regnum_form_but{ font-size:8px; } #regnum_form_but{ padding:12px 0px; bottom:2px; } .circles { font-size:8px; } .div-circle-bordered{ width:60px; height:60px; border-radius:60px; } .circleUnderSpan{ width:80px; font-size:7px; position:relative; right:10px; top:8px; display:block; } .cntSpan1{ display:block; position:relative; top:8px; } .cntSpan2{ display:block; position:relative; top:14px; } .cntSpan3{ display:block; position:relative; top:8px; } .usernavul_a.blackBr{ padding:4px 10px; } .usernavul_a.yellowBg{ background-color:#f0c309; padding:6px 12px; } } /* Small devices (tablets, 768px and up) */ @media (min-width: 768px) and (max-width: 991px) { .div-circle-bordered{ width:100px; height:100px; border-radius:80px; } .circleUnderSpan{ width:100px; font-size:12px; position:relative; top:8px; } .cntSpan1{ display:block; position:relative; top:22px; } .cntSpan2{ display:block; position:relative; top:28px; } .cntSpan3{ display:block; position:relative; top:22px; } } /* tablets/desktops and up ----------- */ @media (min-width: 992px) and (max-width: 1199px) { .div-circle-bordered{ width:100px; height:100px; border-radius:80px; } .circleUnderSpan{ width:100px; position:relative; top:12px; } .cntSpan1{ display:block; position:relative; top:22px; } .cntSpan2{ display:block; position:relative; top:28px; } .cntSpan3{ display:block; position:relative; top:22px; } } /* large desktops and up ----------- */ @media screen and (min-width: 1200px) { .div-circle-bordered{ width:100px; height:100px; border-radius:80px; } .circleUnderSpan{ width:100px; position:relative; top:12px; } .cntSpan{ display:block; position:relative; top:20px; } .cntSpan1{ display:block; position:relative; top:22px; } .cntSpan2{ display:block; position:relative; top:28px; } .cntSpan3{ display:block; position:relative; top:22px; } } #.huy1 div{border:1px red solid;} #AgrBox{ font-family: Arial; font-size:10px; } #agrTextBox{ font-family: Arial; font-size:10px; }
css
<gh_stars>1-10 {"san.dev.js":"<KEY>,"san.js":"<KEY>,"san.min.js":"<KEY>,"san.modern.dev.js":"sha512-rRwO1cIV7wT9UupEdDmGdCyKanSbrhE1OcEzHP2PeMv6YiVVe5C3U90ku5ZL9nmDuPrWWP4YOa4/LfD+6ENp1g==","san.modern.js":"<KEY>,"san.modern.min.js":"<KEY>,"san.spa.dev.js":"<KEY>,"san.spa.js":"<KEY>,"san.spa.min.js":"<KEY>,"san.spa.modern.dev.js":"<KEY>,"san.spa.modern.js":"<KEY>,"san.spa.modern.min.js":"<KEY>,"san.ssr.js":"<KEY>}
json
<gh_stars>0 { "buy-button.add-to-cart": "ADICIONAR AO CARRINHO", "carousel.previous": "Anterior", "carousel.next": "Próximo", "minicart.drawer.close": "Fechar", "minicart.drawer.count": "Contagem ({count})", "minicart.drawer.subtotal": "Subtotal", "minicart.drawer.total": "Total", "minicart.drawer.shipping-disclaimer": "Frete e impostos são calculados no checkout.", "minicart.drawer.go-checkout": "IR AO CHECKOUT", "offer.product-unavailable": "Produto Indisponível", "offer.units-left": "{quantity} items sobrando!", "facets.brand-selector.title": "Marcas", "facets.tree-selector.title": "Departamentos", "facets.filters": "Filtros", "search.page-list.more": "Mais", "product-not-found": "Produto não encontrado", "loading": "Carregando...", "error-generic": "Erro", "preview.not-found": "Nenhuma prévia encontrada. Esperando conteúdo", "notification-bar.sale": "ITEM SELECIONADOS EM PROMOÇÃO! DÊ UMA OLHADA!", "signin": "Entrar" }
json
/* * Copyright 2017 Idaho State Police. * * 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 gov.idaho.isp.saktrack.report; import gov.idaho.isp.saktrack.domain.SexualAssaultKit; import java.math.BigDecimal; import java.util.List; import java.util.stream.Collectors; public class StatutoryRequirementReportGroup { private String requirement; private List<StatutoryRequirementReportRow> rows; public StatutoryRequirementReportGroup(List<SexualAssaultKit> kits, StatutoryRequirementType type) { this.requirement = type.getLabel(); this.rows = kits.stream().map(k -> new StatutoryRequirementReportRow(k, type)).collect(Collectors.toList()); } public String getGroupId() { return requirement.replaceAll("[^a-zA-Z0-9]+", ""); } public String getRequirement() { return requirement; } public void setRequirement(String requirement) { this.requirement = requirement; } public List<StatutoryRequirementReportRow> getRows() { return rows; } public void setRows(List<StatutoryRequirementReportRow> rows) { this.rows = rows; } public BigDecimal getAverageDays() { List<Long> days = rows.stream().filter(r -> r.getDays() != null).map(StatutoryRequirementReportRow::getDays).collect(Collectors.toList()); if (!days.isEmpty()) { return BigDecimal.valueOf(days.stream().mapToLong(l -> l).average().getAsDouble()).setScale(2, BigDecimal.ROUND_HALF_UP); } return null; } }
java
<filename>evo-web-domain/src/main/java/com/glacier/evo/domain/sys/model/dto/MenuQuery.java package com.glacier.evo.domain.sys.model.dto; import java.io.Serializable; import java.util.List; /** * @author glacier * @version 1.0 * date 2020-09-01 22:18 */ public class MenuQuery implements Serializable { private static final long serialVersionUID = 3282253575775981590L; /** * 状态 1 正常 2 禁用 */ private Integer status; /** * 用户id */ private String userId; /** * 角色id */ private String roleId; /** * 资源类型 */ private List<Integer> typeList; public static long getSerialVersionUID() { return serialVersionUID; } public Integer getStatus() { return this.status; } public void setStatus(Integer status) { this.status = status; } public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } public String getRoleId() { return this.roleId; } public void setRoleId(String roleId) { this.roleId = roleId; } public List<Integer> getTypeList() { return this.typeList; } public void setTypeList(List<Integer> typeList) { this.typeList = typeList; } @Override public String toString() { return "MenuQuery{" + "status=" + this.status + ", userId='" + this.userId + '\'' + ", roleId='" + this.roleId + '\'' + ", typeList=" + this.typeList + '}'; } }
java
Steve Jobs and Steve Wozniak co-founded Apple in 1977, introducing first the Apple I and then the Apple II. Apple went public in 1980 with Jobs the blazing visionary and Wozniak the shy genius executing his vision. Executive John Scully was added in 1983; in 1985, Apple's board of directors ousted the combative Jobs in favor of Scully. Away from Apple, Jobs invested in and developed animation producer Pixar and then founded NeXT to create high-end computers; NeXT eventually led him back to Apple. Jobs returned to Apple in the late 1990s and spent the years until his death in 2011 revamping the company, introducing the iPod, iPhone, and iPad, transforming technology and communication in the process. On Oct. 5, 2011, Steve Jobs passed away at the age of 56. He had just left the CEO post at Apple, the company he co-founded, for the second time. Jobs was an entrepreneur through and through, and the story of his rise is the story of Apple as a company, along with some very interesting twists. In this article, we'll look at the career of Steve Jobs and the company he founded, as well as some of the lessons Apple offers for potential entrepreneurs. As to be expected, the market value for each of these companies has swung up and down as prices fluctuate, and maintaining the $1 trillion valuation can be elusive. However, the fact that Apple was the first company to surpass the $1 trillion mark is in no small part connected to the legacy and lessons learned from Steve Jobs. Steve Jobs got his start in business with another Steve, Steve Wozniak, building the blue boxes phone phreakers used to make free calls across the nation. The two were members of the HomeBrew Computer Club, where they quickly became enamored with kit computers and left the blue boxes behind. The next product the two sold was the Apple I, which was a kit for building a PC. In order to do anything with it, the customer needed to add their own monitor and keyboard. With Wozniak doing most of the building and Jobs handling the sales, the two made enough money off the hobbyist market to invest in the Apple II. It was the Apple II that made the company. Jobs and Wozniak created enough interest in their new product to attract venture capital. This meant they were in the big leagues and their company, Apple, was officially incorporated in 1976. Steve Jobs was a month shy of turning 22 and would be a millionaire before his next birthday. By 1978, Apple was making $2 million in profits solely on the strength of the Apple II. The Apple II wasn't state of the art, but it did allow computer enthusiasts to create and sell their own programs. Among these user-generated programs was VisiCalc, a type of proto-Excel that represented the first software with business applications. Although Apple did not profit directly from these programs, they did see more interest as the uses for the Apple II broadened. This model of allowing users to create their own programs and sell them would reappear in the app market of the future, but with a much tighter business strategy around it. By the time Apple went public in 1980, the dynamic of the company was more or less set. Steve Jobs was the fiery visionary, with an intense and often combative management style, and Steve Wozniak was the quiet genius who made the vision work. Apple's board of directors wasn't too fond of such a power imbalance in the company, however. Jobs and the board agreed to add John Sculley to the executive team in 1983. In 1985, the board ousted Jobs in favor of Sculley.
english
SHILLONG, Dec 12: The BJYM, Meghalaya unit has lambasted the working president of the United Democratic Party (UDP), Bindo M Lanong for his alleged remark that the BJP wants to convert the citizens of the country into Hindus and wants to ban beef. In a press statement issued today, state BJYM president Egenstar Kurkalang said that the people of the state are fed up with old parties who are experts in only giving false promises even as he added that this time around citizens are turning towards the BJP. “Bindo should step down from the post of working president of the UDP, because he plans to mislead the people and divide them on religious lines,” Kurkalang alleged. The BJYM president informed that Lanong made these remarks during an election rally in Muktapur in West Jaintia Hills on Saturday. Kurkalang said that this shows that the UDP has lost the confidence of the electorates and they have no option but to make such childish statements by putting the blame on the BJP. The BJYM president said that Lanong has been the deputy chief minister of the state, Speaker of the state Assembly and was a seasoned politician but his recent remark is only meant to mislead the people. “The citizens should not allow people to mislead them”, the BJYM president said. The BJYM is the youth wing of the BJP.
english
["autoprefixer-stylus","earlgrey","editable-sources-webpack-plugin","espower-source","feri","grunt-espower","grunt-multi-stage-sourcemap","gulp-espower","gulp-transform-js-ast","gulp-unassert","poststylus","spider-script","stylecow-core","ucompiler","unassertify","webpack-obfuscator"]
json
Getting older is a thing that none of all of us really enjoy. Not merely will it make it more difficult for us to live life in general, it also will begin to display, such as for example in the wrinkles on our encounter. Too many most people make an effort to remove these wrinkles by the usage of dangerous procedures that include injecting chemical substances under the skin we have or using them to really peel component of our face apart. Many most people have considered natural medicine in order to reverse the hands of the period. A great way that they use is certainly that of acupuncture. Is certainly acupuncture actually able to provide you with a facelift? As acupuncture becomes more prevalent in Western society, many folks have considered this natural practice to be able to help with their recovery and their general health. Although this practice has the capacity to bring a balance back to our body, it cannot be considered as a facelift, regardless of what it can do for us individually. This is because acupuncture does not do anything to us medically that could be considered a facelift such as make incisions or use chemicals. That doesn’t mean, however, that I cannot give us a more youthful appearance. Maintaining our health from the inside out is one sure way for us to look younger and to feel more youthful. Acupuncture is simply one way for us to maintain this style of health. When used in conjunction with other natural methods such as supplementing with vitamins and eating a proper diet, you would be surprised at what it can do for your overall appearance. It can also help to stimulate areas of the face that will aid in removing a few of the wrinkles ideally but it will do its wonders with regards to bettering our health and wellness from the inside. If we are healthy and in balance, we rest better, eat better and so are overall even more relaxed. This can do a great deal for just how that we look externally because we are feeling great inside. Acupuncture can provide your body back to a naturally well-balanced condition that will offer you this glow and cause you to look and feel younger. Of training course, your acupuncturist could also consult you to sustain your help in different ways, but this Chinese practice can stage you in direction of a far more youthful look.
english
use crate::common::types::rid::ORecordID; use nom::number::streaming::{be_i8, be_u8}; use nom::IResult; use nom::{do_parse, named, take, try_parse}; named!(pub parse_bool<&[u8],bool>, do_parse!( val : be_i8 >> (val == 1) ) ); named!(pub parse_optimized_identity<&[u8],ORecordID>, do_parse!( cluster_id : parse_varint >> cluster_position : parse_varint >> (ORecordID::new(cluster_id as i16,cluster_position)) ) ); named!(pub parse_string_varint<&[u8],String>, do_parse!( length : parse_varint >> bytes: take!(length) >> (String::from_utf8(bytes.to_vec()).unwrap()) ) ); pub fn parse_varint(input: &[u8]) -> IResult<&[u8], i64> { let mut value: u64 = 0; let mut i: i64 = 0; let mut b: u64; let mut inc = 0; loop { let (_, parsed) = try_parse!(&input[inc..], be_u8); inc += 1; b = u64::from(parsed); if (b & 0x80) != 0 { value |= (b & 0x7F) << i; i += 7; if i > 63 { panic!("Error deserializing varint") } } if (b & 0x80) == 0 { break; } } value |= b << i; Ok(( &input[inc..], (((value >> 1) as i64) ^ (-((value & 1) as i64))), )) } #[cfg(test)] mod tests { use super::super::buffer::OBuffer; use super::{parse_string_varint, parse_varint}; #[test] fn test_parse_varint() { let mut buf = OBuffer::new(); buf.write_varint(20).unwrap(); let result = parse_varint(buf.as_slice()); assert_eq!(result, Ok((&b""[..], 20))); } #[test] fn test_parse_string_varint() { let mut buf = OBuffer::new(); buf.write_string("text").unwrap(); let result = parse_string_varint(buf.as_slice()); assert_eq!(result, Ok((&b""[..], String::from("text")))); } #[test] fn test_read_write_varint() { fn write_read_varint(val: i64) -> i64 { let mut buf = OBuffer::new(); buf.write_varint(val).unwrap(); let (remaining, read) = parse_varint(buf.as_slice()).unwrap(); assert_eq!(remaining.len(), 0); read } assert_eq!(write_read_varint(12), 12); assert_eq!(write_read_varint(234), 234); assert_eq!(write_read_varint(43234), 43234); assert_eq!(write_read_varint(46576443234), 46576443234); assert_eq!(write_read_varint(534), 534); assert_eq!(write_read_varint(-1), -1); assert_eq!(write_read_varint(-534), -534); } }
rust
{ "sn45.141-145:0.1": "Saṁyutta Nikāya 45 ", "sn45.141-145:0.2": "11. Appamādapeyyālavagga ", "sn45.141-145:0.3": "141–145. Kūṭādisutta ", "sn45.141-145:1.1": "“Seyyathāpi, bhikkhave, kūṭāgārassa yā kāci gopānasiyo sabbā tā kūṭaṅgamā kūṭaninnā kūṭasamosaraṇā; kūṭaṁ tāsaṁ aggamakkhāyati; ", "sn45.141-145:1.2": "evameva kho, bhikkhave …pe… ", "sn45.141-145:1.3": "(yathā heṭṭhimasuttantaṁ, evaṁ vitthāretabbaṁ.) ", "sn45.141-145:1.4": "Tatiyaṁ. ", "sn45.141-145:2.1": "“Seyyathāpi, bhikkhave, ye keci mūlagandhā, kāḷānusāriyaṁ tesaṁ aggamakkhāyati; ", "sn45.141-145:2.2": "evameva kho, bhikkhave …pe… ", "sn45.141-145:2.3": "catutthaṁ. ", "sn45.141-145:3.1": "“Seyyathāpi, bhikkhave, ye keci sāragandhā, lohitacandanaṁ tesaṁ aggamakkhāyati; ", "sn45.141-145:3.2": "evameva kho, bhikkhave …pe… ", "sn45.141-145:3.3": "pañcamaṁ. ", "sn45.141-145:4.1": "“Seyyathāpi, bhikkhave, ye keci pupphagandhā, vassikaṁ tesaṁ aggamakkhāyati; ", "sn45.141-145:4.2": "evameva kho, bhikkhave …pe… ", "sn45.141-145:4.3": "chaṭṭhaṁ. ", "sn45.141-145:5.1": "“Seyyathāpi, bhikkhave, ye keci kuṭṭarājāno, sabbe te rañño cakkavattissa anuyantā bhavanti, rājā tesaṁ cakkavatti aggamakkhāyati; ", "sn45.141-145:5.2": "evameva kho, bhikkhave …pe… ", "sn45.141-145:5.3": "sattamaṁ. " }
json
<gh_stars>0 {"css/materialdesignicons.css":"sha256-G9KCpZhg/+eQldnNp0DTIt+tg7VeQPEBdi52oiluRWs=","css/materialdesignicons.min.css":"sha2<KEY>}
json
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Module wlog</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc"> </head> <body bgcolor="white"> <div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div> <hr> <h1>Module wlog</h1> <ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>wlog - Add event logging to some functions from the <code>workers</code> module. <p>Copyright © 2011 <NAME></p> <p><b>Authors:</b> <NAME> (<a href="mailto:<EMAIL>"><tt><EMAIL></tt></a>).</p> <h2><a name="description">Description</a></h2>wlog - Add event logging to some functions from the <code>workers</code> module. These functions behave like their counterparts from <code>workers</code>. However if <code>workers:f(...)</code> returns <code>V</code>, then <code>wlog:f(...)</code> returns <code>{V, Log}</code> where <code>Log</code> is an event-log (see module <code>time_it</code>) of "meaningful" events in the the execution of <code>f</code>. Generally, this refers to events involving inter-process interactions. <h2><a name="index">Function Index</a></h2> <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#reduce-3">reduce/3</a></td><td>Equivalent to <code>reduce(W, Leaf, Combine, IdentityFn)</code>, where <code>IdentityFn</code> is the identity function.</td></tr> <tr><td valign="top"><a href="#reduce-4">reduce/4</a></td><td>Like <code>workers:reduce(W, Leaf, Combine, Root)</code>.</td></tr> <tr><td valign="top"><a href="#retrieve-2">retrieve/2</a></td><td>Each worker evaluates <code>Fun</code>, and the results are assembled into the list <code>Values</code>.</td></tr> </table> <h2><a name="functions">Function Details</a></h2> <h3 class="function"><a name="reduce-3">reduce/3</a></h3> <div class="spec"> <p><tt>reduce(W, Leaf, Combine) -&gt; {<a href="#type-term1">term1()</a>, <a href="#type-event_log">event_log()</a>}</tt> <ul class="definitions"><li><tt>W = <a href="#type-worker_pool">worker_pool()</a></tt></li><li><tt>Leaf = fun((ProcState::<a href="#type-worker_state">worker_state()</a>) -&gt; <a href="#type-term1">term1()</a>)</tt></li><li><tt>Combine = fun((Left::<a href="#type-term1">term1()</a>, Right::<a href="#type-term1">term1()</a>) -&gt; <a href="#type-term1">term1()</a>)</tt></li></ul></p> </div><p>Equivalent to <code>reduce(W, Leaf, Combine, IdentityFn)</code>, where <code>IdentityFn</code> is the identity function.</p> <h3 class="function"><a name="reduce-4">reduce/4</a></h3> <div class="spec"> <p><tt>reduce(W, Leaf, Combine, Root) -&gt; {<a href="#type-term2">term2()</a>, <a href="#type-event_log">event_log()</a>}</tt> <ul class="definitions"><li><tt>W = <a href="#type-worker_pool">worker_pool()</a></tt></li><li><tt>Leaf = fun((ProcState::worker_state) -&gt; <a href="#type-term1">term1()</a>)</tt></li><li><tt>Combine = fun((Left::<a href="#type-term1">term1()</a>, Right::<a href="#type-term1">term1()</a>) -&gt; <a href="#type-term1">term1()</a>)</tt></li><li><tt>Root = fun((<a href="#type-term1">term1()</a>) -&gt; <a href="#type-term2">term2()</a>)</tt></li></ul></p> </div><p>Like <code>workers:reduce(W, Leaf, Combine, Root)</code>. If <code>workers:reduce(W, Leaf, Combine, Root)</code> returns <code>V</code>, then we return <code>{V, Log}</code>, where <code>Log</code> records the times of interactions between the various processes involved in the reduce operation.</p> <h3 class="function"><a name="retrieve-2">retrieve/2</a></h3> <div class="spec"> <p><tt>retrieve(W, Fun) -&gt; {Values, Log}</tt> <ul class="definitions"><li><tt>W = <a href="#type-worker_pool">worker_pool()</a></tt></li><li><tt>Fun = fun((ProcState::<a href="#type-worker_state">worker_state()</a>) -&gt; term())</tt></li><li><tt>Values = [term()]</tt></li><li><tt>Log = <a href="#type-event_log">event_log()</a></tt></li></ul></p> </div><p>Each worker evaluates <code>Fun</code>, and the results are assembled into the list <code>Values</code>. The times of key events are recorded in <code>Log</code>.</p> <hr> <div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div> <p><i>Generated by EDoc, Jan 25 2017, 12:13:15.</i></p> </body> </html>
html
N. Chandrababu Naidu is the Chief Minister of Andhra Pradesh and President of the Telugu Desam Party. N. Chandrababu Naidu is the Chief Minister of Andhra Pradesh and President of the Telugu Desam Party. He became the first chief minister of Andhra Pradesh when the state was split to form Telangana in 2014. Naidu was the Chief Minister of united Andhra Pradesh from 1995-2004 and Leader of Opposition in the united Andhra Pradesh legislative assembly, 2004-2014. Naidu has won a number of awards, including India Today group’s IT Indian of the Millennium, the Economic Times’s Business Person of the Year, and Time Asia’s South Asian of the Year. The World Economic Forum put him in its ‘dream cabinet’ list.
english
F1 needs to look at Formula E, which is not only building better and quicker electric cars with each passing season but is also producing brilliant wheel to wheel racing. Most F1 fans desperately need a bunched up field for the race to be exciting throughout the duration of the race. Currently, the electric cars are better at proving that spectacle and they aim to get better at it in the near future. Formula E champion Lucas Di Grassi has come out with his own wish-list, urging the championship to set even more ambitious performance targets with its future regulations. The current set of Generation 2 Formula E cars now have 250 kW power (approximately 335 bhp), a top speed of 280 kmph, and accelerates from 0-100 in a mere 2. 8 seconds. The 2016-17 champion, Lucas di Grassi, wishes to see future Formula E cars out-perform Formula 1 cars: "Formula E must be the fastest-accelerating racing car in the world. It has to accelerate zero to 200 quicker than F1, quicker than rallycross, quicker than all these cars. Because electrical power trains are made for acceleration – like Teslas, like all these super-fast electric cars. You have to go to four-wheel-drive, you have to go to a different weight distribution, you have to do a lot of different stuff. You have to improve the tyres too to increase the grip. You can maybe put move-able aerodynamics. You can go as wild as you think. " The championship and the cars have come a long way from their debut season 5 years ago. All of this has been made possible with the battery technology making new inroads after having stalled for a long time with breakthroughs being made in terms of battery density, efficiency and recharging.
english
<reponame>ThatOldChap/fictitious-penguin {% extends "base.html" %} {% block app_content %} <table class="table table-hover"> <tr> <td width="256px"><img src="{{ user.avatar(256) }}"></td> <tr> <td><h1>{{ 'Username' }}: {{ user.username }}</h1></td> </tr> <tr> {% if user == current_user %} <td><p><a href="{{ url_for('main.edit_profile') }}">{{ 'Edit your profile' }}</a></p></td> {% endif %} </tr> </tr> </table> {% endblock %}
html
Panaji: The Board of Control for Cricket in India (BCCI) has sought five days’ time from the Goa Police to furnish documents related to funds released to Goa Cricket Association (GCA), in connection with an alleged fraud case involving the Association’s three senior officials. Earlier this week, a team of Goa Police had met BCCI officials at its Mumbai headquarters, seeking details of funds released to GCA, a senior police official told PTI. The cricket board has asked for five days time to share details as the information sought dates back to 2007-08, the official added. The Economic Offence Cell of the state police had arrested GCA president Chetan Dessai, secretary Vinod Phadke and treasurer Akbar Mulla on June 15 for allegedly siphoning fund worth Rs 3. 13 crore. As per the complaint, the trio had allegedly opened account in Development Credit Bank in an unauthorised way and encashed Rs 2. 87 crore that was released by BCCI to GCA for the development of the game in the state. “We are trying to get the detail about the cheque and also whether more such funds were given to GCA that has gone unaccounted," a police official said. All three GCA officials have refuted the charge of their involvement in withdrawing the money through illegally opened account. Police are now trying to check who collected the cheque from BCCI’s Mumbai office. The then GCA President Dayanand Narvekar was unavailable for statement in the case as he is currently undergoing a treatment in Mumbai, the official said. Once Narvekar is fit to give his statement, more inputs about this cheque would be known, he said. The arrested GCA officials were freed on bail by a local court on June 24 on the condition that they should not visit GCA office for the next 15 days.
english
<gh_stars>1-10 {"article": "I have been driving for over 30,years, but I can _ remember what happened that day when I drove a car for the-first time.My mom had driven our big Plymouth to a _ and deserted back road and parked it. The road was only one lane and had a wall built with river rocks along the side of it _ Mom knew there was little chance of meeting any _ on it that day.With a smile, she gave me the key and _ . seats with me.And then she told me to start the car, to petit into drive and to _ push on the gas pedal.In my _ , though, l miscalculated what \" gentle \"meant.After I pushed on the gas pedal, the car sped forward. _ I could turn the wheel, I heard the ;scraping c) of metal _ the stone wall.I stopped the car and looked over at my Mom.Her face was pale and her hand's were _ .Slowly, she opened her door and started checking the car. Then she walked _ around the car to the driver's side door.I kept waiting for her to shout at me but she just _ and said, \"Well, that's enough for today. We'll try again tomorrow.\" As I looked and _ on that day. I am amazed at the amount of kindness, love and _ my Mom showed me. In the years that followed, I messed up many times in many ways.Often I didn't feel worthy to be _ , but each time I could feel Mom's gentle voice, \"We'll try again tomorrow,\" When we fall today, don't _ down.Rise up and be _ to try again tomorrow.", "options": [["mostly", "almost", "rarely", "still"], ["dirty", "strange", "narrow", "smooth"], ["or", "for", "and", "but"], ["neighbors", "animals", "policemen", "traffic"], ["provided", "switched", "offered", "shared"], ["cautiously", "correctly", "carefully", "gently"], ["excitement", "hesitation", "disappointment", "depression"], ["When", "Before", "Unless", "Until"], ["to", "with", "against", "on"], ["bleeding", "sweating", "waving", "trembling"], ["quietly", "casually", "deliberately", "sadly"], ["laughed", "sighed", "nodded", "glared"], ["around.", "into", "back", "up"], ["enthusiasm", "respect", "patience", "praise"], ["mentioned", "blamed", "forgotten", "forgiven"], ["stay", "put", "lie", "let"], ["anxious", "ready", "eager", "willing"]], "answers": ["D", "C", "D", "D", "B", "D", "D", "B", "C", "D", "D", "B", "C", "C", "D", "A", "B"]}
json
The Trinamool MP took a dig over the recent incident that took place at the PGIMER in Chandigarh. Reports claim that Mukul Roy left Delhi after a heated argument with his son Subhargshu on Sunday. The Comments made by Amitabh Bachchan inspired, BJP’s Amit Malviya to direct it to the TMC Chief as he launched an attack against the Trinamool Congress. The attacker of Shinzo Abe was in the Japanese Maritime Self-Defence Force for three years before losing his job and was also not getting a pension.
english
const mongoose = require("mongoose"); // const mongooseDateFormat = require('mongoose-date-format'); const exploreSchema = new mongoose.Schema( { hirename: { type: String, require: true }, hireemail: { type: String, require: true }, hirecompany: { type: String, require: true }, hireposition: { type: String, require: true }, hireeli: { type: Number, require: true }, hirestipend: { type: Number, require: true }, hiredate: { type: Date, default: Date.now(), require: true }, hirecontact: { type: Number, require: true }, hirecompanyemail: { type: String, require: true }, hiredesc: { type: String, require: true }, img: { data: String, type: String }, hirelink: { type: String, require: true }, }, { collection: "explore" } ); // exploreSchema.plugin(mongooseDateFormat); // format: YYYY-MM-DD HH:mm:ss const model = mongoose.model("exploreSchema", exploreSchema); module.exports = model;
javascript
import { NavbarItem } from 'cloud-ui.vusion'; export default { extends: NavbarItem, };
javascript
Agree or not blazers can make you feel powerful anytime anywhere. And, Kriti Sanon surely knows the drill of acing it as her TGIF mood is all we wanted. If you haven’t already seen her latest outfit from last night, you are missing out on something cool. The only thing we love more than an outfit is the number of re-wear opportunities it provides. The Shehzada actress wore a casual ensemble with a formal blazer to the Farzi screening. The actress chooses a light wool tweed blazer from Valentino. With its contrast trim detailing, front gold button closure, shoulder pads, pockets, and notched lapel, this double-breasted blazer made in Italy makes us want to shout monochrome. The blazer was paired with a black crop top with a sweetheart neckline and ripped blue jeans. We just can’t seem to get away from basics like denim and black tops, can we? Kriti accessorised her look with a chain-link necklace and a semi-moon pendant. The Bhediya actress has decided to go all-in on chain-link necklaces. Her pages of sartorial history, from not so long ago, can teach you a lot. The diva also wore hoop earrings, Dior sunglasses, rings, and white sneakers. Let’s now forget to give some credit to her hairstyle gave a major Y2K vibe that can’t be ignored. Talking about her professional front, Kriti Sanon was most recently seen in Bhediya alongside Varun Dhawan. On November 25, 2022, the film was released. Kriti also has upcoming films such as Adipurush with Prabhas and Saif Ali Khan, Shehzada with Kartik Aaryan, and Ganpath: Part 1 with Tiger Shroff. She will also collaborate with Rhea Kapoor on the upcoming film The Crew.
english
// module #include <module/module_run.hpp> // spdlog #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE #include <spdlog/sinks/stdout_color_sinks.h> #include <spdlog/spdlog.h> // WINAPI #include "Windows.h" namespace { LRESULT CALLBACK KeyboardProc(int n_code, WPARAM w_param, LPARAM l_param) { if (n_code < 0 || n_code == HC_NOREMOVE) { return CallNextHookEx(NULL, n_code, w_param, l_param); } if (w_param == VK_PAUSE) { } return CallNextHookEx(NULL, n_code, w_param, l_param); } } namespace module::internal { module_run::module_run() {} void module_run::add_listener(std::shared_ptr<module::base_listener> listener) { module::internal::states::processing_value _m_proc(std::move(listener)); m_vec_proc_val_obj.emplace_back(std::make_unique<module::internal::states::processing_value>(_m_proc)); } void module_run::set_break_key(unsigned char key) { m_break_key = key; } void module_run::run() { SPDLOG_DEBUG("Module started"); supply_values(); } void module_run::supply_values() { char* _cstr = nullptr; while (!GetAsyncKeyState(m_break_key)) { if (this->get_cstr_from_address(_cstr) != 0 && this->get_cstr_from_pointer(_cstr) != 0) { SPDLOG_TRACE("Empty value skipped"); continue; } SPDLOG_TRACE("Supplying value"); for (const auto& _proc : m_vec_proc_val_obj) { _proc->process_value(_cstr); } } SPDLOG_DEBUG("Module stopped"); } }// namespace module::internal
cpp
A British family is mourning the death of their 2-year-old daughter who fell critically ill on vacation and died just weeks shy of her third birthday. Allie Birchall, who was vacationing with her family at a luxury hotel in Turkey, came down with a case of E. coli that her family is pinning on poor conditions at the resort. “We all suffered gastric illness and there were a number of people complaining of being unwell during our stay at the hotel, but we didn’t anticipate how serious it could be,” Katie Dawson, Allie’s mother, told SWNS. The family, who has since hired a lawyer, said the food was often left uncovered or served lukewarm, and the cleanliness of the pool and bathroom facilities were often questionable. “We saw feces in the swimming pool and I spoke to other holidaymakers who saw the feces in the pool on more than one occasion, and staff just scooped it out without closing the pool or giving it a thorough clean,” Dawson claims. She also claimed the children’s bathrooms were covered in feces. When the family returned home from their 10-day stay, Allie began suffering from stomach pains and diarrhea, she also wasn’t hungry and was acting lethargic, according to SWNS. On July 30, she was admitted to Royal Bolton Hospital, where she was diagnosed with Shiga-toxin producing E. coli (STEC), which led to hemolytic uremic syndrome (HUS). Nearly everyone is at risk of a STEC infection, which occurs when tiny amounts of human or animal feces enter the mouth. This may happen through contaminated food or water, or contact with feces of other people, according to the Centers for Disease Control and Prevention (CDC). Symptoms of STEC vary for each patient, but it often causes severe stomach cramps, vomiting and bloody diarrhea. While some patients may get better within a week, others may develop life-threatening complications, such as HUS, which occurs in about 5 to 10 percent of STEC cases, according to the CDC. HUS may cause decreased urination, feeling tired, and loss of color in cheeks. Patients with HUS require immediate hospitalization because of the risk of kidney failure or other serious health issues. The patients who recover within a few weeks will likely suffer long-term damage, while other cases may be fatal. For Allie, the infection caused severe brain damage, and her family decided to end life support on Aug. 3. She died shortly after. Public Health England is investigating the child’s death, according to SWNS. “Nothing will bring her back, we need to know what caused her illness and if anything could have been done to prevent it,” Dawson told the news outlet.
english
Engineering Oncogenic Heterozygous Gain-of-Function Mutations in Human Hematopoietic Stem and Progenitor Cells Tommaso Sconocchia1, Johannes Foßelteder1, Thomas Köhnke2, Ravindra Majeti2, Andreas Reinisch1,3 1Division of Hematology, Department of Internal Medicine, Medical University of Graz, 2Division of Hematology, Stanford Cancer Institute, Stanford Institute for Stem Cell Biology and Regenerative Medicine, Stanford University School of Medicine, 3Department of Blood Group Serology and Transfusion Medicine, Medical University of Graz Novel strategies to faithfully model somatic mutations in hematopoietic stem and progenitor cells (HSPCs) are necessary to better study hematopoietic stem cell biology and hematological malignancies. Here, a protocol to model heterozygous gain-of-function mutations in HSPCs by combining the use of CRISPR/Cas9 and dual rAAV donor transduction is described. Exploring the Arginine Methylome by Nuclear Magnetic Resonance Spectroscopy Hansjörg Habisch*1, Fangrong Zhang*1,2, Qishun Zhou1, Tobias Madl1 1Gottfried Schatz Research Center for Cell Signaling, Metabolism and Aging, Molecular Biology and Biochemistry, Medical University of Graz, 2Ministry of Education, School of Basic Medical Sciences, Key Laboratory of Gastrointestinal Cancer (Fujian Medical University) The present protocol describes the preparation and quantitative measurement of free and protein-bound arginine and methyl-arginines by 1H-NMR spectroscopy. Rat Model of Widespread Cerebral Cortical Demyelination Induced by an Intracerebral Injection of Pro-Inflammatory Cytokines Muammer Üçal*1, Michaela Tanja Haindl*2, Milena Z. Adzemovic3, Manuel Zeitelhofer4, Ute Schaefer1, Franz Fazekas2, Sonja Hochmeister2 1Research Unit of Experimental Neurotraumatology, Department of Neurosurgery, Medical University Graz, 2Department of Neurology, Medical University Graz, 3Centre for Molecular Medicine, Department of Clinical Neuroscience, Karolinska Institutet, 4Division of Vascular Biology, Department of Medical Biochemistry and Biophysics, Karolinska Institutet The protocol presented here allows the reproduction of a widespread grey matter demyelination of both cortical hemispheres in adult male Dark Agouti rats. The method comprises of intracerebral implantation of a catheter, subclinical immunization against myelin oligodendrocyte glycoprotein, and intracerebral injection of a pro-inflammatory cytokine mixture through the implanted catheter. International Expert Consensus and Recommendations for Neonatal Pneumothorax Ultrasound Diagnosis and Ultrasound-guided Thoracentesis Procedure Jing Liu1,2, Dalibor Kurepa3, Francesco Feletti4,5, Almudena Alonso-Ojembarrena6, Jovan Lovrenski7, Roberto Copetti8, Erich Sorantin9, Javier Rodriguez-Fanjul10, Karishma Katti3, Andrea Aliverti4, Huayan Zhang11,12, Misun Hwang13, Tsu F. Yeh14, Cai-Bao Hu15, Xing Feng16, Ru-Xin Qiu1,2, Jing-Han Chi17, Li-Li Shang18, Guo-Rong Lyu19, Shao-Zheng He20, Yan-Fen Chai21, Zhan-Jun Qiu22, Hai-Ying Cao2,23, Yue-Qiao Gao1,2, Xiao-Ling Ren1,2, Guo Guo1,24, Li Zhang1,2, Ying Liu1,2, Wei Fu1,2, Zu-Lin Lu1,2, Hong-Lei Li1,2 1Department of Neonatology and NICU, Beijing Chaoyang District Maternal and Child Healthcare Hospital, 2The National Neonatal Lung Ultrasound Training Base, 3 Pneumothorax is a common emergency and critical disease in newborn infants that needs rapid, clear diagnosis and timely treatment. Diagnosis and treatment based on chest X-rays are associated with delayed management and radiation damage. Lung ultrasound (US) provides useful guidance for rapid, accurate diagnosis and the precise thoracentesis of pneumothorax. Echocardiographic Measurement of Right Ventricular Diastolic Parameters in Mouse Bakytbek Egemnazarov1, Grazyna Kwapiszewska1,2, Leigh M. Marsh1 1Ludwig Boltzmann Institute for Lung Vascular Research, 2Department of Physiology, Otto Loewi Research Center, Medical University of Graz Here we describe and compare two positions for obtaining the apical four-chamber view in mice. These positions enable the quantification of the right ventricular function, provide comparable results, and can be used interchangeably. An Unbiased Approach of Sampling TEM Sections in Neuroscience Stefan Wernitznig1, Florian Reichmann2, Mariella Sele1, Christoph Birkl3, Johannes Haybäck4,5, Florian Kleinegger4, Anna Birkl-Töglhofer4, Stefanie Krassnig4, Christina Wodlej4, Peter Holzer2, Daniel Kummer1, Elisabeth Bock1, Gerd Leitinger1 1Department of Cell Biology, Histology and Embryology, Gottfried Schatz Research Center, Medical University of Graz, 2Department of Pharmacology, Otto Loewi Research Center, Medical University of Graz, 3Division of General Neurology, Department of Neurology, Medical University of Graz, 4Institute of Pathology, Medical University of Graz, 5Department of Pathology, Medical Faculty, Otto von Guericke University Magdeburg We introduce a novel workflow for electron microscopy investigations of brain tissue. The method allows the user to examine neuronal features in an unbiased fashion. For elemental analysis, we also present a script that automatizes most of the workflow for randomized sampling. Protocol and Guidelines for Point-of-Care Lung Ultrasound in Diagnosing Neonatal Pulmonary Diseases Based on International Expert Consensus Jing Liu1,2, Roberto Copetti3, Erich Sorantin4, Jovan Lovrenski5, Javier Rodriguez-Fanjul6, Dalibor Kurepa7, Xing Feng8, Luigi Cattaross9, Huayan Zhang10,11, Misun Hwang12, Tsu F. Yeh13,14, Yisrael Lipener7, Abhay Lodha15, Jia-Qin Wang16, Hai-Ying Cao2,17, Cai-Bao Hu2,18, Guo-Rong Lyu19, Xin-Ru Qiu1,2, Li-Qun Jia20, Xiao-Man Wang20, Xiao-Ling Ren1,2, Jiu-Ye Guo1,2, Yue-Qiao Gao1,2, Jian-Jun Li1,2, Ying Liu1,2, Wei Fu1,2, Yan Wang21, Zu-Lin Lu1,2, Hua-Wei Wang8, Li-Li Shang22 1Department of Neonatology and NICU, Beijing Chaoyang District Maternal and Child Healthcare Hospital, 2The Neonatal Lung Ultrasound Training Base, Chinese College of Critical Ultrasound, 3Emergency Department, Cattinara University Hospital, 4Division of Pediatric Radiology, Department of Radiology, Medical University Graz, 5Faculty of Medicine, University of Novi Sad, Radiology Department, Institute for Children and Adolescents Health Care of Vojvodina, 6Pediatric Intensive Care Unit, Pediatric Service Hospital Joan XXIII Tarragona, University Rovira i Virgil, 7Department of Neonatology, Children's Hospital of Soochow University, 9Department of Neonatology, Udine University Hospital, 10Division of Neonatology, Children's Hospital of Philadelphia, 12Intensive Care Unit, Zhejiang Hospital, 19Collaborative Innovation Center for Maternal and Infant Health Service Application Technology, Quanzhou Medical College, 20Department of Neonatology and NICU, Tai'an City Central Hospital of Shandong Province, 22Department of Intensive Care Unit, The Second Affiliated Hospital of Heilongjiang University of Chinese Medicine Lung ultrasound is a noninvasive and valuable tool for bedside evaluation of neonatal lung diseases. However, a relative lack of reference standards, protocols and guidelines may limit its application. Here, we aim to develop a standardized neonatal lung ultrasound diagnostic protocol to be used in clinical decision-making. Target Cell Pre-enrichment and Whole Genome Amplification for Single Cell Downstream Characterization Shukun Chen*1, Amin El-Heliebi*1, Julia Schmid1, Karl Kashofer2, Zbigniew T. Czyż3, Bernhard Michael Polzer3, Klaus Pantel4, Thomas Kroneis1,5, Peter Sedlmayr1 1Institute of Cell Biology, Histology and Embryology, Medical University of Graz, 2Institute of Pathology, Medical University of Graz, 3Fraunhofer Institute for Toxicology and Experimental Medicine ITEM, 4Department of Tumor Biology, University Medical Center Hamburg-Eppendorf, 5Sahlgrenska Cancer Center, University of Gothenburg This protocol is to recover and prepare rare target cells from a mixture with non-target background cells for molecular genetic characterization at the single-cell level. DNA quality is equal to non-treated single cells and allows for single-cell application (both screening based and targeted analysis). Oral Biofilm Sampling for Microbiome Analysis in Healthy Children Elisabeth Santigli1, Martin Koller2, Barbara Klug1 1Division of Oral Surgery and Orthodontics, Department of Dental Medicine and Oral Health, Medical University of Graz, 2Division of Preventive and Operative Dentistry, Periodontology, Prosthodontics and Restorative Dentistry, Department of Dental Medicine and Oral Health, Medical University of Graz Changes in the oral microbiome throughout childhood are of growing interest. Comparison of different microbiome studies reveals a lack of standardized sampling protocols. Limited space makes sampling the sound subgingival sulcus of children challenging. Paper point sampling is presented here in detail as the method of choice for this area. Protocol for HER2 FISH Using a Non-cross-linking, Formalin-free Tissue Fixative to Combine Advantages of Cryo-preservation and Formalin Fixation Martina Loibner1,2, Lisa Oberauner-Wappis1,2, Christian Viertler2, Daniel Groelz3, Kurt Zatloukal1,2 1Christian Doppler Laboratory for Biospecimen Research and Biobanking Technologies, Institute of Pathology, Medical University Graz, 2Institute of Pathology, Medical University Graz, 3Research and Development, Qiagen GmbH Fluorescence in-situ hybridization (FISH) is often required in combination with histopathology and molecular diagnostics for selection of therapy in personalized medicine. A novel non-cross-linking, formalin-free tissue fixative that allows high quality morphologic, molecular and FISH analyses from the same specimen by addition of a post-fixation step before FISH is presented. Detection of Residual Donor Erythroid Progenitor Cells after Hematopoietic Stem Cell Transplantation for Patients with Hemoglobinopathies Roman Crazzolara1, Gabriele Kropshofer1, Michael Steurer2, Sieghart Sopper2,3, Wolfgang Schwinger4 1Department of Pediatrics, Medical University Innsbruck, 2Department of Internal Medicine V (Hematology & Oncology), Medical University Innsbruck, 3Tyrolean Cancer Research Institute, 4Department of Pediatrics, Medical University Graz Quantification of donor-derived cells is required to monitor engraftment after stem cell transplantation in patients with hemoglobinopathies. A combination of flow cytometry-based cell sorting, colony formation assay, and subsequent analysis of short tandem repeats may be used to assess the proliferation and differentiation of progenitors in the erythroid compartment. Application of Genetically Encoded Fluorescent Nitric Oxide (NO•) Probes, the geNOps, for Real-time Imaging of NO• Signals in Single Cells Emrah Eroglu1, Rene Rost1, Helmut Bischof1, Sandra Blass1, Anna Schreilechner1, Benjamin Gottschalk1, Maria R. Depaoli1, Christiane Klec1, Suphachai Charoensin1, Corina T. Madreiter-Sokolowski1, Jeta Ramadani1, Markus Waldeck-Weiermair1, Wolfgang F. Graier1, Roland Malli1 1Institute of Molecular Biology and Biochemistry, Medical University of Graz This manuscript presents protocols for the application of novel genetically encoded nitric oxide (NO•) probes (geNOps) to monitor single cell NO• fluctuations in real-time using fluorescence microscopy. The Ca2+-triggered NO• formation on the level of individual endothelial cells was visualized by combining geNOps with a chemical Ca2+ sensor. Oral Biofilm Analysis of Palatal Expanders by Fluorescence In-Situ Hybridization and Confocal Laser Scanning Microscopy Barbara Klug1,2, Claudia Rodler1, Martin Koller3, Gernot Wimmer3, Harald H. Kessler2, Martin Grube4, Elisabeth Santigli1 1Department of Orthodontics and Maxillofacial Orthopedics, Medical University of Graz, 2Institute of Hygiene, Microbiology and Environmental Medicine, Medical University of Graz, 3Department of Prosthodontics, Restorative Dentistry, Periodontology and Implantology, Medical University of Graz, 4Institute of Plant Sciences, Karl-Franzens-University Graz We present a protocol for structural and compositional analysis of natural oral biofilm from orthodontic appliances with in situ hybridization (FISH) and confocal laser scanning microscopy (CLSM). Oral biofilm samples were collected from palatal expanders, scraping acrylic-resin flakes off their surface and referring them for molecular processing. Preparation of Pooled Human Platelet Lysate (pHPL) as an Efficient Supplement for Animal Serum-Free Human Stem Cell Cultures Katharina Schallmoser1, Dirk Strunk1 1Stem Cell Research Unit, Medical University of Graz, Austria Human platelet lysate is a rich source of growth factors and a potent supplement in cell culture. This protocol presents the process of preparing a large pool of human platelet lysate by starting from platelet rich plasma, performing several freeze-thaw cycles and depleting the platelet fragments. Isolation and Large Scale Expansion of Adult Human Endothelial Colony Forming Progenitor Cells Nicole A. Hofmann1, Andreas Reinisch1, Dirk Strunk1 1Stem Cell Research Unit, Medical University of Graz, Austria Endothelial colony forming progenitor cells (ECFCs) are a promising tool to study vascular homeostasis and repair.1,2 This paper introduces a novel animal-serum free method for isolation and expansion of ECFC from heparinised adult human peripheral blood with pooled human platelet lysate (pHPL) diminishing the risk of anti-bovine immunisation. Isolation and Animal Serum Free Expansion of Human Umbilical Cord Derived Mesenchymal Stromal Cells (MSCs) and Endothelial Colony Forming Progenitor Cells (ECFCs) Andreas Reinisch1, Dirk Strunk1 1Stem Cell Research Unit, Medical University of Graz, Austria This protocol describes the isolation and subsequent expansion of mesenchymal stromal cells and endothelial colony forming cells without the use of animal serum to generate autologous pairs for experimental transplantation purposes.
english
{ "_id": "firebase", "name": "Firebase", "description": "A powerful platform for your mobile or web application", "summary": "Firebase can power your app's backend, including data storage, user authentication, static hosting, and more. Focus on creating extraordinary user experiences. We'll take care of the rest.", "tags": [ "infrastructure" ], "dependencies": [], "language": "", "environments": [ "browser", "server" ], "audience": [ "backend", "frontend" ], "features": [ "Realtime database", "User authentication infrastructure", "Static file hosting" ], "scenario": [ "When you want to focus just on the frontend aspects of your application and need a backend infrastructure" ], "website": "https://www.firebase.com/", "repository": "https://github.com/firebase", "demo": "", "similar": [ { "id": "derbyjs", "relationship": "" }, { "id": "meteor", "relationship": "" }, { "id": "stamplay", "relationship": "" } ], "usedby": [ "cbs", "invision", "citrix" ] }
json
<reponame>comdet/vue-blockly<gh_stars>1-10 const Blockly = require('./dist/blockly_compressed'); Blockly.Blocks = Object.assign(Blockly.Blocks, require('./dist/blocks_compressed')(Blockly)); Blockly.JavaScript = require('./dist/javascript_compressed')(Blockly); Blockly.Msg = require('./dist/msg/en'); module.exports = Blockly;
javascript