text
stringlengths
1
1.04M
language
stringclasses
25 values
#! /usr/bin/env python import os import pdb import time import yaml import json import random import shutil import argparse import numpy as np from collections import defaultdict # torch import torch import torch.nn as nn import torch.nn.functional as F from utils import AverageMeter from solvers import Solver __all__ = ['BaselineSolver'] def euclidean_dist(x, y): x = torch.from_numpy(x).cuda() y = torch.from_numpy(y).cuda() dist = torch.sum(x ** 2, 1).unsqueeze(1) + torch.sum(y ** 2, 1).unsqueeze( 1).transpose(0, 1) - 2 * torch.matmul(x, y.transpose(0, 1)) dist = torch.sqrt(F.relu(dist)) return dist def cosine_dist(x, y): x = torch.from_numpy(x).cuda() y = torch.from_numpy(y).cuda() return 1 - F.cosine_similarity(x[:, None, :], y[None, :, :], 2) # Exclude identical-view cases def de_diag(acc, each_angle=False): view_num = acc.shape[0] result = np.sum(acc - np.diag(np.diag(acc)), 1) / (view_num - 1) if not each_angle: result = np.mean(result) return result class BaselineSolver(Solver): def train(self): self.build_data() self.build_model() self.build_optimizer() self.build_loss() start_time = time.time() self.iter = 0 # Print out configurations self.print_log('{} samples in train set'.format( len(self.trainloader.dataset))) self.print_log('{} samples in test set'.format( len(self.testloader.dataset))) if self.cfg.print_model: self.print_log('Architecture:\n{}'.format(self.model)) num_params = sum(p.numel() for p in self.model.parameters() if p.requires_grad) self.print_log('Parameters: {}'.format(num_params)) self.print_log('Configurations:\n{}\n'.format( json.dumps(vars(self.cfg), indent=4))) # Load from previous checkpoints self.load() self.best_acc, self.best_iter = [0], -1 meters = defaultdict(lambda: AverageMeter()) end = time.time() for seq, view, seq_type, label in self.trainloader: self.model.train() meters['dataTime'].update(time.time() - end) end = time.time() lr = self.lr_scheduler.step(self.iter) self.iter += 1 seq, label = seq.float().cuda(), label.long().cuda() feature = self.model(seq) loss, loss_num = self.loss(feature, label) self.optimizer.zero_grad() loss.backward() self.optimizer.step() # record loss meters['modelTime'].update(time.time() - end) meters['loss'].update(loss) meters['lossNum'].update(loss_num) # show log info if self.iter % self.cfg.log_interval == 0: self.print_log('Iter: {}/{}'.format(self.iter, self.cfg.num_iter) + ' - Data: {:.0f}s'.format(meters['dataTime'].sum) + ' - Model: {:.0f}s'.format(meters['modelTime'].sum) + ' - Lr: {:.2e}'.format(lr) + ' - Loss: {:.2f}'.format(meters['loss'].avg) + ' - Num: {:.2e}'.format(meters['lossNum'].avg)) for i in ['loss', 'lossNum']: self.writer.add_scalar('train/{}'.format(i), meters[i].avg, self.iter) for m in meters.values(): m.reset() # save checkpoints self.save() # test if self.iter % self.cfg.test_interval == 0: acc = self._test() self.collect(acc) # show distributions of weights and grads self.show_info() # End if self.iter == self.cfg.num_iter: self.print_log('\nBest Acc: {}'.format(self.best_acc) + '\nIter: {}'.format(self.best_iter) + '\nDir: {}'.format(self.work_dir) + '\nTime: {}'.format( self._convert_time(time.time() - start_time))) return end = time.time() def show_info(self, with_weight=True, with_grad=True): if with_weight: for name, param in self.model.named_parameters(): w = param.data.cpu().numpy() self.writer.add_histogram('weight_info/{}'.format(name), w, self.iter) if with_grad: for name, param in self.model.named_parameters(): if param.grad is not None: w = param.grad.cpu().numpy() self.writer.add_histogram('grad_info/{}'.format(name), w, self.iter) def collect(self, acc): acc_avg = sum(acc) / len(acc) best_avg = sum(self.best_acc) / len(self.best_acc) if acc_avg > best_avg: self.best_acc = acc self.best_iter = self.iter # save the best path = os.path.join(self.work_dir, self.cfg.save_name+'.pth.tar') return self.save_checkpoint(path) def test(self): self.build_data() self.build_model() if self.cfg.pretrained is None: raise ValueError('Please appoint --pretrained.') self.iter = self.load_checkpoint(self.cfg.pretrained, optim=False) return self._test() def _test(self): self.model.eval() feature_list = list() view_list = list() seq_type_list = list() label_list = list() for i, x in enumerate(self.testloader): seq, view, seq_type, label = x seq = seq.float().cuda() feature = self.model(seq) n = feature.size(0) feature_list.append(feature.view(n, -1).data.cpu().numpy()) view_list += view seq_type_list += seq_type label_list.append(label.item()) acc = self._compute_accuracy(feature_list, view_list, seq_type_list, label_list) if len(acc) > 1: self.writer.add_scalar('test/accNM', acc[0], self.iter) self.writer.add_scalar('test/accBG', acc[1], self.iter) self.writer.add_scalar('test/accCL', acc[2], self.iter) else: self.writer.add_scalar('test/acc', acc[0], self.iter) return acc def _compute_accuracy(self, feature, view, seq_type, label, metric='euclidean'): _metrics = {'euclidean': euclidean_dist, 'cosine': cosine_dist} dist_metric = _metrics[metric] feature = np.concatenate(feature, 0) label = np.array(label) view_list = list(set(view)) view_list.sort() view_num = len(view_list) sample_num = len(feature) probe_seq_dict = {'CASIA': [['nm-05', 'nm-06'], ['bg-01', 'bg-02'], ['cl-01', 'cl-02']], 'OUMVLP': [['00']]} gallery_seq_dict = {'CASIA': [['nm-01', 'nm-02', 'nm-03', 'nm-04']], 'OUMVLP': [['01']]} num_rank = 5 dataset = 'CASIA' if 'CASIA' in self.cfg.dataset else 'OUMVLP' acc = np.zeros([len(probe_seq_dict[dataset]), view_num, view_num, num_rank]) for (p, probe_seq) in enumerate(probe_seq_dict[dataset]): for gallery_seq in gallery_seq_dict[dataset]: for (v1, probe_view) in enumerate(view_list): for (v2, gallery_view) in enumerate(view_list): gseq_mask = np.isin(seq_type, gallery_seq) & np.isin(view, [gallery_view]) gallery_x = feature[gseq_mask, :] gallery_y = label[gseq_mask] pseq_mask = np.isin(seq_type, probe_seq) & np.isin(view, [probe_view]) probe_x = feature[pseq_mask, :] probe_y = label[pseq_mask] dist = dist_metric(probe_x, gallery_x) idx = dist.sort(1)[1].cpu().numpy() out = np.reshape(probe_y, [-1, 1]) out = np.cumsum(out == gallery_y[idx[:, 0:num_rank]], 1) out = np.sum(out > 0, 0) out = np.round(out * 100 / dist.shape[0], 2) acc[p, v1, v2, :] = out # acc[p, v1, v2, :] = np.round(np.sum(np.cumsum(np.reshape( # probe_y, [-1, 1]) == gallery_y[idx[:, 0:num_rank]], # 1) > 0, 0) * 100 / dist.shape[0], 2) if dataset == 'CASIA': # Print rank-1 accuracy of the best model # e.g. # ===Rank-1 (Include identical-view cases)=== # NM: 95.405, BG: 88.284, CL: 72.041 self.print_log('===Rank-1 (Include identical-view cases)===') self.print_log('NM: %.3f,\tBG: %.3f,\tCL: %.3f' % ( np.mean(acc[0, :, :, 0]), np.mean(acc[1, :, :, 0]), np.mean(acc[2, :, :, 0]))) # self.print_log rank-1 accuracy of the best model,excluding identical-view cases # e.g. # ===Rank-1 (Exclude identical-view cases)=== # NM: 94.964, BG: 87.239, CL: 70.355 self.print_log('===Rank-1 (Exclude identical-view cases)===') acc0 = de_diag(acc[0, :, :, 0]) acc1 = de_diag(acc[1, :, :, 0]) acc2 = de_diag(acc[2, :, :, 0]) self.print_log('NM: %.3f,\tBG: %.3f,\tCL: %.3f' % ( acc0, acc1, acc2)) # self.print_log rank-1 accuracy of the best model (Each Angle) # e.g. # ===Rank-1 of each angle (Exclude identical-view cases)=== # NM: [90.80 97.90 99.40 96.90 93.60 91.70 95.00 97.80 98.90 96.80 85.80] # BG: [83.80 91.20 91.80 88.79 83.30 81.00 84.10 90.00 92.20 94.45 79.00] # CL: [61.40 75.40 80.70 77.30 72.10 70.10 71.50 73.50 73.50 68.40 50.00] # np.set_self.print_logoptions(precision=2, floatmode='fixed') np.printoptions(precision=2, floatmode='fixed') self.print_log('===Rank-1 of each angle (Exclude identical-view cases)===') s = '[' + ', '.join(['{:.3f}' for _ in range(view_num)]) + ']' self.print_log('NM: ' + s.format(*de_diag(acc[0, :, :, 0], True))) self.print_log('BG: ' + s.format(*de_diag(acc[1, :, :, 0], True))) self.print_log('CL: ' + s.format(*de_diag(acc[2, :, :, 0], True))) return [acc0, acc1, acc2] elif dataset == 'OUMVLP': self.print_log('===Rank-1 (Include identical-view cases)===') self.print_log('{:.3f}'.format(np.mean(acc[0, :, :, 0]))) self.print_log('===Rank-1 (Exclude identical-view cases)===') self.print_log('{:.3f}'.format(de_diag(acc[0, :, :, 0]))) np.printoptions(precision=2, floatmode='fixed') self.print_log('===Rank-1 of each angle (Exclude identical-view cases)===') s = '[' + ', '.join(['{:.3f}' for _ in range(view_num)]) + ']' self.print_log(s.format(*de_diag(acc[0, :, :, 0], True))) return [de_diag(acc[0, :, :, 0])]
python
<reponame>PhenixStack/etrace import {get, set} from "lodash"; import {UserKit} from "$utils/Util"; import {EditOutlined} from "@ant-design/icons"; import React, {useEffect, useState} from "react"; import {FrownOutlined} from "@ant-design/icons/lib"; import ChartCard from "$containers/Trace/ChartCard"; import * as ChartService from "$services/ChartService"; import ChartEditConfig from "$containers/Board/Explorer/ChartEditConfig"; import {Button, Card, Col, Descriptions, Result, Space, Spin} from "antd"; import "./EditableChart.less"; import useUser from "$hooks/useUser"; interface EditableChartProps { span?: number; globalId: string; metricType?: string; prefixKey?: string; awaitLoad?: boolean; } const EditableChart: React.FC<EditableChartProps> = props => { const {globalId, metricType, prefixKey, span = 8, awaitLoad} = props; const [result, setResult] = useState<any>(); const [isLoading, setIsLoading] = useState<boolean>(false); const [showEdit, setShowEdit] = useState<boolean>(false); // const {chart, isLoading} = useChart({globalId}); const user = useUser(); useEffect(() => { setIsLoading(true); ChartService .searchByGroup({ status: "Active", globalId, }) .then((charts: any) => { setResult(handleResult(get(charts, "results", []).length > 0 ? charts.results.filter(chart => chart.globalId === globalId)[0] : null)); setIsLoading(false); }); }, [globalId]); const handleResult = (tempResult: any) => { if (tempResult && Array.isArray(tempResult.targets)) { tempResult.targets.forEach(target => { target.metricType = metricType; target.prefixVariate = prefixKey; }); } // 针对 Analyze Target 设置 if (tempResult && get(tempResult.config, ChartEditConfig.analyze.path)) { set(tempResult.config, `${ChartEditConfig.analyze.target.path}.metricType`, this.props.metricType); set(tempResult.config, `${ChartEditConfig.analyze.target.path}.prefixVariate`, this.props.prefixKey); } return tempResult; }; const showEditButton: boolean = UserKit.isAdmin(user); if (!result) { return ( <Col span={span || 8}> <Card className="editable-chart__not-found"> {isLoading ? <Spin tip="配置加载中"/> : ( <Result icon={<FrownOutlined />} title="未找到" subTitle={<>名为「<code>{globalId}</code>」的指标。</>} extra={<Button type="primary" href={`/board/explorer?uniqueId=${globalId}`} target="_blank">新增该指标</Button>} /> )} </Card> </Col> ); } const overlay = showEdit && ( <div className="editable-chart__admin-info"> {result.targets.map((target, index) => ( <Descriptions key={index} bordered={true} size="small" column={1}> <Descriptions.Item label="ChartName">{globalId}</Descriptions.Item> <Descriptions.Item label="Prefix">{target.prefix}</Descriptions.Item> <Descriptions.Item label="Measurement">{target.measurement}</Descriptions.Item> <Descriptions.Item label="MetricType">{metricType}</Descriptions.Item> </Descriptions> ))} <Space> <Button onClick={() => setShowEdit(false)}>返回</Button> <Button href={`/board/explorer/edit/${result.id}`} target="_blank" type="primary" icon={<EditOutlined />} > 编辑指标 </Button> </Space> </div> ); // const overlay = ( // <EditableChartOverlay // chart={chart} // metricType={metricType} // // visible={overlayVisible} // // onClose={() => setOverlayVisible(false)} // /> // ); // return ( // <EMonitorChart // span={span} // type="card" // key={globalId} // chart={chart} // // overlay={overlay} // metricType={metricType} // prefixKey={prefixKey} // // globalId={globalId} // // globalId="application_overview_soa_provider_latency" // /> // ); return ( <ChartCard span={span || 8} chart={result} key={globalId} uniqueId={globalId} awaitLoad={awaitLoad} editFunction={showEditButton ? () => setShowEdit(!showEdit) : null} overlay={overlay} /> ); }; export default EditableChart;
typescript
"Review - My city zoo" Hello My Steemain Friends , How are you. I hope you people of steemian are good and enjoy your life . Well I am well. May God bless you all. Today I am writing about an interesting topic which is all time my favourite "Review - Your city zoo" Share your day with us!" . So, in this post I am going to share my point of view about this topic. Steem of Animals and @f2i5 for organised this beautiful contest. I hope you people like and enjoy my post. Seeing the collection of animals and birds in the zoo, their different species is an exciting thing in itself. Be it children or adults, everyone gets excited after seeing all the animals in the zoo. Because it is a beautiful creation of our nature. Common animals and birds are available for us to see or about whom we know. But we get to see some special species of animals and birds only in the zoo. Whose original color and their different types of body texture that fascinates the mind. Seeing this wonderful creation of God, the mind becomes happy. What is the name of the zoo. Is it privately owned or government owned? The zoo of Lucknow was named Zoological Udyan in 2001. Then when the Samajwadi government came to power, they changed the name of the zoo to Nawab Wajid Ali Shah Zoological Park in 2015. Despite the name change by the government, we people call it only by the name of the zoo. The name zoo is enough. The Nawab Wajid from whom the zoo is named after the Ali Shah zoo, was the last Nawab of the Shah. The zoo is government property. Various types of zoo decisions are taken by the government itself, which are taken keeping in mind the interest of the general public and the convenience of the animals and birds. Is it free or are there tickets sold to enter? How much does it cost ? State the currency of your country and how much is Steem? No, admission to the zoo is not free. To enter the bird, the ticket price has been fixed according to the age of the person. By paying which we can enter the zoo. Yes, our zoo is very unique. There are different types of species of animals and birds that can be seen here. There is also a toy train arrangement for children, there is a voting arrangement for everyone and a fish house is also built. Where different types of fish can be seen. There is a museum here. There is a lot of archeology department present in the zoo. There is a 3D picture hall for the entertainment of the kids. Where there is a separate ticket. There is proper arrangement for food and drink. There is also a park here, there is greenery all around which looks very beautiful to see. Our Lucknow zoo is so big that we get tired of walking. The zoo is located at a distance of about 12 kilometers from the railway station. There are various modes of transport available from the railway station to the zoo, such as e-rickshaws, tempos, uber cars, etc. It is located in populated area, Zoo is situated near Hazratganj. It is easily accessible here. The opening hours of the zoo are from 10:00 AM to 5:00 PM. I want to invite my friends to take part in this contest: @wilmer1988 , @o1eh , @sur-riti , @eliany , @ripon0630 .
english
Charleston, S. C. / Sheridan, Oregon: As millions of awestruck Americans cast their gaze skyward on Monday at the extraordinary sight of a total solar eclipse, one Connecticut man had his eyes set firmly on a different prize. Joseph Fleming, 43, went down on one knee in the darkness near the harbour in Charleston, South Carolina, and asked Nicole Durham to marry him. "The sun, the moon and my love, all in a straight line," Fleming said, laughing, after Durham, 40, said yes. The first total eclipse in a century to sweep across the United States from coast to coast inspired Americans to make marriage proposals, hold family reunions and take time from work to witness with wonder one of the cosmos' rarest phenomena. After weeks of anticipation, onlookers from Oregon to South Carolina whooped and cheered as the moon blotted out the sun, transforming a narrow band of the United States from day to night for two minutes at a time. (For full coverage, click on:) Even President Donald Trump stepped out of the White House to see the eclipse, though he was spotted briefly looking up without protective glasses, which can cause eye damage, as an aide yelled "Don't look! " "It's more powerful than I expected," Robert Sarazin Blake, 40, a singer from Bellingham, Washington, said after the eclipse passed over Roshambo ArtFarm in Sheridan, Oregon. "All of a sudden you're completely in another world. It's like you're walking on air or tunnelling underground like a badger. " No area in the continental United States had seen a total solar eclipse since 1979, while the last coast-to-coast total eclipse took place in 1918. The event was expected to draw one of the largest audiences in human history, including those watching on television and online. Some 12 million people live in the 70-mile-wide (113-km-wide), 2,500-mile-long (4,000-km-long) zone where the total eclipse appeared, while hordes of others travelled to spots along the route. Many people trekked to remote national forests and parks of Oregon, Idaho and Wyoming. Those in cities along the path like Kansas City, Missouri, and Nashville, Tennessee, were able to simply walk outside. The eclipse first reached "totality" - the shadow cast when the sun is completely blocked by the moon - in Oregon at 10:15 a. m. PDT (1715 GMT) and began spreading eastward. "It just kind of tickled you all over - it was wonderful - and I wish I could do it again," said Stormy Shreves, 57, a fish gutter who lives in Depoe Bay, Oregon. "But I won't see something like that ever again, so I'm really glad I took the day off work so I could experience it. " As the sun slipped behind the moon in Sawtooth National Forest in Idaho, stars became visible, coyotes howled and the temperature dropped precipitously. The phenomenon took its final bow at 2:49 p. m. EDT (1849 GMT) near Charleston. Monday's excitement led music lovers to stream Bonnie Tyler's "Total Eclipse of the Heart," pushing it to the top of Apple's iTunes chart 34 years after its release. Tyler herself performed the song aboard a Royal Caribbean cruise ship on Monday. A number of towns within the eclipse's path set up public events. At the Southern Illinois University campus in Carbondale, Illinois, the 15,000-seat football stadium was sold out for Monday. Other people in the eclipse zone hosted their own private viewing parties. At a mountain cabin in the woods in Murphy, North Carolina, the air grew cold as the moon slowly chipped away at the sun before blocking it completely, leaving only a surrounding halo of light. "That was the most beautiful thing. I could die happy now," said Samantha Gray, 20, an incoming graduate student at University of Chicago. "Anybody want to go on vacation with me in April 2024? " Another total solar eclipse will cut across the southeastern and northeastern United States on April 8, 2024. For millions of others outside the zone of totality, a partial eclipse appeared throughout North America, attracting its own crowds. In Washington, D. C. , thousands of people lined the National Mall at 2:45 p. m. , when four-fifths of the sun was blacked out. "It's amazing, super cool," said Brittany Labrador, 30, a nurse practitioner from Memphis. "It's kind of just cool to watch in the capital. " In New York, people crowded sidewalks near Times Square, with the vast majority staring up without any protective lenses. "I'm actually kind of scared to look up and go blind without using the glasses," said Sarah Fowler, one of the few who wore the proper eyewear. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters)
english
<filename>package.json { "devDependencies": { "@types/jest": "^25.2.1", "git-cz": "^4.3.1", "jest": "^26.0.1", "ts-jest": "^25.5.0", "typescript": "^3.8.3" }, "name": "@anco/regexputils", "description": "Regular Expression Matchers that Common Used.(WIP)", "version": "1.0.6-1", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "test": "jest", "build": "tsc", "push": "git add . && git-cz && git push " }, "keywords": [ "RegularExpression" ], "repository": { "type": "git", "url": "https://github.com/AnCoSONG/RegExpUtils.git", "directory": "dist" }, "bugs": { "url": "https://github.com/AnCoSONG/RegExpUtils/issues" }, "homepage": "https://github.com/AnCoSONG/RegExpUtils", "publishConfig": { "access": "public" }, "private": false, "author": "<NAME> <<EMAIL>>", "license": "MIT" }
json
53 Who believes what we’ve heard and seen? Who would have thought God’s saving power would look like this? 2-6 The servant grew up before God—a scrawny seedling, a scrubby plant in a parched field. There was nothing attractive about him, nothing to cause us to take a second look. He was looked down on and passed over, a man who suffered, who knew pain firsthand. One look at him and people turned away. We looked down on him, thought he was scum. our disfigurements, all the things wrong with us. We thought he brought it on himself, that God was punishing him for his own failures. But it was our sins that did that to him, that ripped and tore and crushed him—our sins! He took the punishment, and that made us whole. Through his bruises we get healed. We’re all like sheep who’ve wandered off and gotten lost. We’ve all done our own thing, gone our own way. And God has piled all our sins, everything we’ve done wrong, on him, on him. 7-9 He was beaten, he was tortured, but he didn’t say a word. and like a sheep being sheared, he took it all in silence. and did anyone really know what was happening? He died without a thought for his own welfare, beaten bloody for the sins of my people. They buried him with the wicked, threw him in a grave with a rich man, or said one word that wasn’t true. 10 Still, it’s what God had in mind all along, to crush him with pain. so that he’d see life come from it—life, life, and more life. And God’s plan will deeply prosper through him. 11-12 Out of that terrible travail of soul, he’ll see that it’s worth it and be glad he did it. Through what he experienced, my righteous one, my servant, as he himself carries the burden of their sins. Because he looked death in the face and didn’t flinch, because he embraced the company of the lowest. He took on his own shoulders the sin of the many, he took up the cause of all the black sheep.
english
<reponame>gshokar/invoice-book /* * Copyright (c) 2019 Absolute Apogee Technologies Ltd. All rights reserved. * * ============================================================================= * Revision History: * Date Author Detail * ----------- -------------- ------------------------------------------------ * 2019-Feb-03 GShokar Created * ============================================================================= */ package ca.aatl.app.invoicebook.dto; import java.util.ArrayList; import java.util.List; /** * * @author GShokar */ public class InvoiceItemDto { private String invoiceNumber; /** * Get the value of invoiceNumber * * @return the value of invoiceNumber */ public String getInvoiceNumber() { return invoiceNumber; } /** * Set the value of invoiceNumber * * @param invoiceNumber new value of invoiceNumber */ public void setInvoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; } private int lineNumber; /** * Get the value of lineNumber * * @return the value of lineNumber */ public int getLineNumber() { return lineNumber; } /** * Set the value of lineNumber * * @param lineNumber new value of lineNumber */ public void setLineNumber(int lineNumber) { this.lineNumber = lineNumber; } private String uid; /** * Get the value of uid * * @return the value of uid */ public String getUid() { return uid; } /** * Set the value of uid * * @param uid new value of uid */ public void setUid(String uid) { this.uid = uid; } private String description; /** * Get the value of description * * @return the value of description */ public String getDescription() { return description; } /** * Set the value of description * * @param description new value of description */ public void setDescription(String description) { this.description = description; } private double quantity; /** * Get the value of quantity * * @return the value of quantity */ public double getQuantity() { return quantity; } /** * Set the value of quantity * * @param quantity new value of quantity */ public void setQuantity(double quantity) { this.quantity = quantity; } private double rate; /** * Get the value of rate * * @return the value of rate */ public double getRate() { return rate; } /** * Set the value of rate * * @param rate new value of rate */ public void setRate(double rate) { this.rate = rate; } private double amount; /** * Get the value of amount * * @return the value of amount */ public double getAmount() { return amount; } /** * Set the value of amount * * @param amount new value of amount */ public void setAmount(double amount) { this.amount = amount; } private double taxAmount; /** * Get the value of taxAmount * * @return the value of taxAmount */ public double getTaxAmount() { return taxAmount; } /** * Set the value of taxAmount * * @param taxAmount new value of taxAmount */ public void setTaxAmount(double taxAmount) { this.taxAmount = taxAmount; } private double totalAmount; /** * Get the value of totalAmount * * @return the value of totalAmount */ public double getTotalAmount() { return totalAmount; } /** * Set the value of totalAmount * * @param totalAmount new value of totalAmount */ public void setTotalAmount(double totalAmount) { this.totalAmount = totalAmount; } private List<InvoiceItemTaxDto> taxes = new ArrayList<>(); /** * Get the value of taxes * * @return the value of taxes */ public List<InvoiceItemTaxDto> getTaxes() { return taxes; } /** * Set the value of taxes * * @param taxes new value of taxes */ public void setTaxes(List<InvoiceItemTaxDto> taxes) { this.taxes = taxes; } private SalesItemDto salesItem; /** * Get the value of salesItem * * @return the value of salesItem */ public SalesItemDto getSalesItem() { return salesItem; } /** * Set the value of salesItem * * @param salesItem new value of salesItem */ public void setSalesItem(SalesItemDto salesItem) { this.salesItem = salesItem; } }
java
--- layout: post title: Week 3 - First presentation description: "We introduced the topic candidates to the professor, and we had the first presentation." --- ## Meeting with professor Oakley - Our team narrowed topics into two - a thimble (or possibly a ring) combined with a joystick and attaching a trackpad on the palm. To demonstrate our ideas clearly to professor, we made low-fidelity prototypes out of clay and brought them with us to the meeting. The professor suggested that we should take a look at previous literature more carefully. He also gave us a list of related papers: ### NailO <p class='paper-citation'><NAME>., <NAME>., <NAME>., & <NAME>. (2015, April). NailO: fingernails as an input surface. In Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems (pp. 3015-3018). ACM.</p> ### Ring touchpand <p class='paper-citation'><NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (2016, October). Combining Ring Input with Hand Tracking for Precise, Natural Interaction with Spatial Analytic Interfaces. In Proceedings of the 2016 Symposium on Spatial User Interaction (pp. 99-102). ACM.</p> ### Open Palm Menu <p class='paper-citation'><NAME>., <NAME>., <NAME>., & <NAME>. (2018, February). Open Palm Menu: A Virtual Menu Placed in Front of the Palm. In Proceedings of the 9th Augmented Human International Conference (p. 17). ACM.</p> ### PalmType <p class='paper-citation'><NAME>., <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (2015, August). PalmType: Using palms as keyboards for smart glasses. In Proceedings of the 17th International Conference on Human-Computer Interaction with Mobile Devices and Services (pp. 153-160). ACM.</p> ### Finexus <p class='paper-citation'><NAME>., <NAME>., & <NAME>. (2016, May). Finexus: Tracking precise motions of multiple fingertips using magnetic sensing. In Proceedings of the 2016 CHI Conference on Human Factors in Computing Systems (pp. 1504-1514). ACM.</p> ## First presentation The first presentation was on 30th March, and DoYeon introduced our topic and future plans for the project. [Download](/src/Capstone-concept presentation.pdf)<br><br> #### Introducing HoloLens and why >- One of 25 TIMES best inventions of 2015<br> >- Very accurate and precise compared to its competitors<br> >- Gestures (2 type: click and bloom) and voice input implemented thoroughly<br> #### Problems with existing input systems >- Gaze: unstable<br> >- Pointing gesture: driving attention, arm fatigue<br> >- Voice input: obtrusive, cannot be used in shared events<br> #### Related works - solutions >- Spatialize > - Ring device utilizing pointing action > - Pointing: obtrusive, interaction is unfamiliar >- Ring-type device<br> - Combining spatial information and gestures using trackpad<br> - repetitive movement: exhausting<br> #### Topic candidates & Research question >- Pointing interaction is not stable<br> >- Gesture interaction is obtrusive<br> >- Trackpad doesn’t match the interaction we want to implement<br> #### Expected outcomes >1. Working prototype<br> >2. Evaluation report assessing performance<br.
markdown
export { default as confirm } from './confirm'; export { default as modal } from './modal';
typescript
<reponame>mikozera/Computer-Science // � A+ Computer Science - www.apluscompsci.com // Name - <NAME> // Date - 10/31/18 // Class - 10th // Lab - Cool Numbers public class CoolNumbers { /* *method isCoolNumber will return true if * num % 3-6 all have a remainder of 1 *it will return false otherwize */ public static boolean isCoolNumber(int num) { if (num % 3 == 1 && num % 4 == 1 && num % 5 == 1 && num % 6 == 1) return true; return false; } /* *method countCoolNumbers will return the count *of the coolNumbers between 6 and stop */ public static int countCoolNumbers(int stop) { int count = 0; for (int i = 6; i <= stop; i++) { if (isCoolNumber(i)) count++; } return count; } }
java
The fact-finding committee was constituted by the Pakistan Cricket Board to probe into the team’s poor performances in Asia Cup and World T20, as well as in earlier series against England and New Zealand. The committee includes Test captain Misbah-ul-Haq and senior batsman Younis Khan — both of whom have not attended the first two days of the fact-finding committee’s three-day meeting in Lahore. reported PTI. This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful. Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings. If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
english
Wrestling Inc. has revealed that former WWE World Heavyweight Champion Mark Henry appears to be the next and likely the final 2018 WWE Hall of Fame inductee. A new WWE WrestleMania magazine had an interview with Mark Henry where he spoke about being inducted into this year's Hall of Fame class. Below is an image of the magazine interview. Mark Henry will join Hall of Fame headliner Bill Goldberg, as well as, The Dudley Boyz, Hillbilly Jim, Ivory, Jeff Jarrett, celebrity inductee Kid Rock and, Warrior Award recipient Jarrius 'JJ' Robertson. Mark Henry signed a decade-long contract with WWE in 1996. He re-signed in 2006 and remained with the company to this day. Henry quietly retired from in-ring action after WrestleMania last year. During his WWE career, he held the WWE World Heavyweight Championship, WWE ECW Championship, and the Europeans Championship. He also collided with The Undertaker at WrestleMania 22 in a casket match and had notable feuds over the years with John Cena, Kurt Angle, Batista, Kane and more. WWE had actually lost interest in Mark Henry in the late 90's as they believed he had no aptitude for wrestling, but he later proved them wrong, although it took some time. Henry had to miss much of 2000, all of 2001, and much of 2002, 2003, 2004 and 2005 due to injuries and training to be in fighting shape. Mark Henry last appeared on WWE TV in a cameo appearance on the 25 Anniversary episode in a backstage skit with Hall of Famer The Godfather. Following Mark's retirement, he took a backstage position with WWE as a producer and, has also expressed interest in working in other fields within WWE, such as training talent. The WWE Hall of Fame takes place in the Smoothie King Center in New Orleans on April 6.
english
<reponame>imbhargav5/new-website<filename>sri/absurd/0.2.88.json {"absurd.js":"sha256-OA3P/Yp1ZLdIcb6+h7vCT5hb45UT1JcIdO3jQBvXDh0=","absurd.min.js":"sha256-4mMPGStpjVqEznALJ5rRiXXDJeKrW+KVtiykAktpZGE=","absurd.organic.js":"sha256-slWwkvTyL7Srv4kc9y0eTDM7gupH/GMPpkuDLqlwckg=","absurd.organic.min.js":"sha256-ly6iwbYiJ6iFex1IutXh8TGKPsAAcMsYzDiC1VcmfRo="}
json
import { useHbp } from '@platyplus/hbp' import { useHistory } from 'react-router-dom' import { useResetConfig } from './config' import { useDB } from './database' export const useLogout = () => { const router = useHistory() const { auth } = useHbp() const db = useDB() const resetConfig = useResetConfig() return async () => { await auth.logout() await db.stop() resetConfig() router.push('/') } }
typescript
{ "markdown": "| icon = poe2 pet_backer_grog icon.png\n| description = While Grog is following you around you receive a bonus to Resolve. Additionally, the party cannot Engage and is immune to Engagement. Also, anyone in your party will die when they are knocked unconscious.\n| added_in = poe2\n| equipment_slot = Pet\n| item_type = Pet\n| item_category = Other item\n| requirements = \n| is_soulbound = no\n| is_unique = no\n| value = 2000\n| shop_value = 10000\n| range = \n| level1_spells = \n| level2_spells = \n| level3_spells = \n| level4_spells = \n| level5_spells =\n| level6_spells = \n| level7_spells = \n| level8_spells = \n| item_bonuses = \n| enchantments = Pet bonus: Attribute - Resolve;Pet party effect: Misc - Grog\n| rel_quests = \n| rel_items = \n| rel_abilities = \n| rel_talents = \n| internalname = ITEM_PET_BACKER_Troll_Grog\n| location = * [Ashen Maw](/ashenMaw/): Near the arrival point.\n| guid = 6bea1bca-a225-4392-9a8a-572682ce8f88\n}}\n{{DisambigMsg|the pet|the consumable drink|Grog (consumable)}}\n'''{{Pagename nd}}''' is a {{lc:Pet}} in {{poe2}}.\n\n## Description \n\n{{Description |{{#var:description}}}}\n\n## Acquisition \n\n{{#arraymap: {{#var:location}}|;|x|x|\\n}}\n\n## Trivia \n\n* This item and its effect are likely a reference to so-called [https://en.wiktionary.org/wiki/grognard \"grognards\"], old-school CRPG players who were never able to quite reconcile themselves to ''Pillars of Eternity'''s attempts to improve on engagement and character death mechanics of the past.", "raw": "{{Infobox item poe2\n| name = {{pagename nd}}\n| icon = poe2 pet_backer_grog icon.png\n| description = While Grog is following you around you receive a bonus to Resolve. Additionally, the party cannot Engage and is immune to Engagement. Also, anyone in your party will die when they are knocked unconscious.\n| added_in = poe2\n| equipment_slot = Pet\n| item_type = Pet\n| item_category = Other item\n| requirements = \n| is_soulbound = no\n| is_unique = no\n| value = 2000\n| shop_value = 10000\n| range = \n| level1_spells = \n| level2_spells = \n| level3_spells = \n| level4_spells = \n| level5_spells =\n| level6_spells = \n| level7_spells = \n| level8_spells = \n| item_bonuses = \n| enchantments = Pet bonus: Attribute - Resolve;Pet party effect: Misc - Grog\n| rel_quests = \n| rel_items = \n| rel_abilities = \n| rel_talents = \n| internalname = ITEM_PET_BACKER_Troll_Grog\n| location = * [[Ashen Maw]]: Near the arrival point.\n| guid = 6bea1bca-a225-4392-9a8a-572682ce8f88\n}}\n{{DisambigMsg|the pet|the consumable drink|Grog (consumable)}}\n'''{{Pagename nd}}''' is a {{lc:Pet}} in {{poe2}}.\n\n== Description ==\n{{Description |{{#var:description}}}}\n\n== Acquisition ==\n{{#arraymap: {{#var:location}}|;|x|x|\\n}}\n\n== Trivia ==\n* This item and its effect are likely a reference to so-called [https://en.wiktionary.org/wiki/grognard \"grognards\"], old-school CRPG players who were never able to quite reconcile themselves to ''Pillars of Eternity'''s attempts to improve on engagement and character death mechanics of the past.", "slug": "grog", "title": "Grog" }
json
The WrestleMania Women's Battle Royal Match was history making as it was the first match of its kind for women on 'The Grandest Stage of Them All'. Sure it went through a ton of controversy with its name, but on the night the focus was on the female Superstars of WWE and boy did they deliver. The following women were already announced to compete in the match - Lana, Naomi, Liv Morgan, Ruby Riott, Sarah Logan, Natalya, Dana Brooke, Carmella, Bayley, Sasha Banks, Becky Lynch Mickie James, Sonya Deville and Mandy Rose. With fourteen announced women for the twenty-strong WrestleMania Women's Battle Royal, we knew there'd be six surprise entrants. The Bella Twins denied it would be them, and rumors suggested that Trish Stratus could have been in it but, we did get the following NXT stars Peyton Royce, Dakota Kai, Taynara Conti, Kavita Devi, Bianca Belair and Kairi Sane making their main roster debuts. The match starts with all of the women turning on Carmella, making her the first woman to be eliminated, afterward, it's Dana Brooke's turn to suffer the wrath of the rest of the match competitors as she became the second to be eliminated. The Riott Squad managed to rally and eventually managed to whittle down the NXT ladies as well as several other members until it basically came down to Riott Squad and Bayley and Sasha Banks. Bayley and Sasha teamed up to eliminate the Riott Squad members eventually coming face to face. Bayley triumphed in the confrontation with her former best friend but Naomi re-entered the match having not officially been eliminated. Naomi made short work of Bayley and eliminated her to become the winner of the inaugural Women's Battle Royal winner. I would have preferred a less screwy finish, but I did enjoy seeing the NXT women banding together. It's the first real sense of an NXT vs main roster feud we've seen since Nexxus, and I'm all in to see more of it!
english
- Five of its associate banks will be merged with SBI. - This merger has got government's nod and is waiting for regulatory clearance. - Kerala along with Punjab will have some impact since many NRIs have their accounts in State Bank of Travancore and State Bank of Patiala. Early this year, the government of India cleared the proposal for merging State Bank of India with five of its affiliated banks, namely State Bank of Bikaner and Jaipur, State Bank of Mysore, State Bank of Travancore, State Bank of Hyderabad, State Bank of Patiala and the Bharatiya Mahila Bank. This merger will not have any significant effect on these banks' NRI customers, clarified the Managing Director of SBI, Rajnish Kumar. SBI is one of the top global banks in the world with wide network and presence. After the merger, this bank will have more than 500 million customers which will cover around one-fifth of India's total GDP. Kumar stated that Kerala and Punjab will be heavily impacted since State Bank of Travancore and State Bank of Patiala has many NRI accounts. After the merger, the NRI customers of these banks will have larger reach as well as technological benefits offered by SBI. At present, this much-anticipated merger is waiting for regulatory clearance. About demonetisation, Kumar said that its impact on the domestic economy of the country will be short-term. He further added that for NRIs, the impact of currency ban will be in the value of rupee as compared to the dollar and that diminishing value of property investments which makes this a good opportunity to invest in property in India.
english
{ "name": "mvccore/ext-form-all", "type": "metapackage", "description": "MvcCore - Extension - Form - form extension with with all form packages to create and render web forms with HTML5 controls, to handle and validate submited user data, to manage forms sessions for default values, to manage user input errors and to extend and develop custom fields and field groups.", "keywords": [ "mvc", "mvccore", "framework", "extension", "plugin", "plug-in", "ext", "mvccore", "form", "forms", "webform", "html5", "dynamic", "field", "fields", "input", "inputs", "text", "number", "select", "checkbox", "radio", "groups", "reset", "button", "image", "date", "time", "week", "month", "datetime", "date", "range", "file", "color", "tel", "url", "search", "email", "textarea" ], "license": ["BSD-3-Clause"], "authors": [{ "name": "<NAME>", "homepage": "https://github.com/tomFlidr" }], "require": { "php": ">=5.4.0", "mvccore/mvccore": "^5.0", "mvccore/ext-form": "^5.0", "mvccore/ext-form-field-text": "^5.0", "mvccore/ext-form-field-numeric": "^5.0", "mvccore/ext-form-field-selection": "^5.0", "mvccore/ext-form-field-date": "^5.0", "mvccore/ext-form-field-button": "^5.0", "mvccore/ext-form-validator-special": "^5.0" }, "minimum-stability": "dev" }
json
When the shocking news of Sunanda's death came also came out a theory of Shahsi Tharoor's affair with Pakistani journo Mehr Tarar. It was said that Sunanda awas disturbed because her husband Shashi was having an affair with Mehr. This was vehemently denied by both Shashi and Mehr. As the mysterious death of Sunanda Pushkar has revived again after the serious revelation by a AIIMS doctor, Union Minister Shashi Tahroor’s alleged girlfriend and Pakistani journalist Mehr Tarar came in his defence openly. In an exclusive chat with Indian News Channel, Mehr Tarar categorically denied any involvement of Tharoor and sees BJP angle in AIIMS doctor’s revelation over autopsy report of Sunanda Pushkar. She said that there is something fishy and possible conspiracy against Tharoor. She also said there was no foul play in Sunanda’s death.
english
<reponame>dw/acid<gh_stars>10-100 # # Copyright 2013, <NAME>. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import pdb import bz2 import glob import gzip import json import os import sys from operator import itemgetter from pprint import pprint import acid.encoders import models json_encoder = acid.encoders.make_json_encoder() def db36(s): """Convert a Redis base36 ID to an integer, stripping any prefix present beforehand.""" if s[:3] in 't1_t2_t3_t4_t5_': s = s[3:] return int(s, 36) def process_one(stats, dct): stats['all_comments'] += 1 created = int(dct['created_utc']) comment_id = db36(dct['id']) subreddit_id = db36(dct['subreddit_id']) link_id = db36(dct['link_id']) comment = models.Comment.get(comment_id) if not comment: stats['comments'] += 1 user = models.User.get(dct['author']) if not user: stats['users'] += 1 user = models.User(username=dct['author'], first_seen=created, last_seen=created, comments=0) user.comments += 1 user.last_seen = max(user.last_seen, created) reddit = models.Reddit.get(subreddit_id) if not reddit: stats['reddits'] += 1 reddit = models.Reddit(name=dct['subreddit'], id=subreddit_id, first_seen=created, last_seen=created, links=0, comments=0) reddit.last_seen = created reddit.comments += 1 link = models.Link.get(link_id) if not link: stats['links'] += 1 link = models.Link(id=link_id, subreddit_id=subreddit_id, title=dct['link_title'], first_seen=created, last_seen=created, comments=0) reddit.links += 1 link.last_seen = created link.comments += 1 reddit.save() user.save() link.save() if dct['parent_id'].startswith('t3_'): parent_id = None else: parent_id = db36(dct['parent_id']) comment = models.Comment(id=comment_id, subreddit_id=subreddit_id, author=dct['author'], body=dct['body'], created=created, link_id=link_id, parent_id=parent_id, ups=dct['ups'], downs=dct['downs']) if parent_id and not comment.get_parent(): stats['orphans'] += 1 stats['comments'] -= 1 else: comment.save() def process_set(stats, fp): for idx, line in enumerate(iter(fp.readline, None), 1): if line == '': return False process_one(stats, json_encoder.unpack(None, line)) if not (idx % 10000): break statinfo = ', '.join('%s=%s' % k for k in sorted(stats.items())) print('Commit ' + statinfo) return True fp = None def main(): store = models.init_store() fp = bz2.BZ2File('/home/data/dedupped-1-comment-per-line.json.bz2', 'r', 1048576 * 10) #fp = bz2.BZ2File('/home/data/top4e4.json.bz2', 'r', 1048576 * 10) #fp = bz2.BZ2File('/home/data/top5k.json.bz2', 'r', 1048576 * 10) stats = { 'all_comments': 0, 'comments': 0, 'io_error': 0, 'links': 0, 'reddits': 0, 'users': 0, 'files': 0, 'orphans': 0, } more = True while more: more = store.in_txn(lambda: process_set(stats, fp), write=True) if __name__ == '__main__': main()
python
{"data":{"token":[{"reveal_status":2,"timestamp":"2022-02-22T22:32:50+00:00","owner_id":"tz1aahM2eYNVz9EMT6mRozFsHNsgH9dvMy78","creator_id":"tz1aahM2eYNVz9EMT6mRozFsHNsgH9dvMy78","metadata":{"description":"DOGAMI, Adopt Raise, Earn.","name":"DOGAMI #66","display_uri":"https://nft-zzz.mypinata.cloud/ipfs/QmcdqVoz3H5zURp3ZDWUGqa4UtVkuBcE9VFL7HzofuJAra","thumbnail_uri":"https://nft-zzz.mypinata.cloud/ipfs/Qmcr8YoiSbYFDtMoSEaCe7T1n5Toi8F9PbEPvSQiTr7ADP","artifact_uri":"https://nft-zzz.mypinata.cloud/ipfs/Qme9qeunQLTXcLMcguj6kJ1sJdJQgfDHBkLba4MS9hk63G","decimals":0,"attributes":{"rarity_score":32,"ranking":7374,"rarity_tier":{"name":"Bronze","__typename":"rarity_tier"},"generation":"Alpha","gender":"Male","breed":{"name":"<NAME>","__typename":"breed"},"fur_color":"Black & tan #4","friendliness":3,"eyes_color":"Black #3","intelligence":11,"strength":3,"obedience":10,"vitality":7,"secondary_personality":"Charming","bonding_level":1,"primary_personality":"Naive","stats":{"bonding_level_top_pct":0,"breed_pct":11,"eyes_color_pct":6,"friendliness_top_pct":48,"fur_color_pct":1,"gender_pct":51,"generation_pct":1731,"intelligence_top_pct":6,"obedience_top_pct":4,"rarity_tier_pct":59,"primary_personality_pct":5,"size_pct":17,"vitality_top_pct":24,"strength_top_pct":67,"secondary_personality_pct":5,"__typename":"attributes_stats"},"__typename":"attributes"},"is_boolean_amount":true,"__typename":"metadata"},"id":66,"swaps":[],"__typename":"token"}]}}
json
<filename>dist/user/models/user.entity.d.ts<gh_stars>0 import { Posts } from "src/posts/models/posts.entity"; export declare class User { id: number; name: string; age: number; post: Posts[]; }
typescript
<filename>meta/co4hbi_0.json {"id": "co4hbi", "post_id": "reddit/dataisugly/co4hbi", "image_name": "co4hbi_0", "image_path": "preview/co4hbi_0.jpg", "thumbnail_path": "thumbnail/co4hbi_0.jpg", "datetime": 1565366941.0, "url": "https://reddit.com/r/dataisugly/comments/co4hbi/the_saddest_part_is_that_this_comes_from_a/", "title": "The saddest part is that this comes from a textbook about how to design interfaces for educational purposes.", "author": "TheUnknownStitcher", "popularity_score": 120, "phash": "ff9911311f1b1915", "duplicated_images": ["reddit/dataisugly/co4hbi_0", "reddit/CrappyDesign/co4idu_0"], "duplicated_posts": [{"url": "https://reddit.com/r/dataisugly/comments/cofock/i_guess_the_guy_who_made_this_skipeed_the_design/", "title": "I guess the guy who made this skipeed the design courses.", "author": "redheness", "post_id": "reddit/dataisugly/cofock", "datetime": 1565426899.0}, {"url": "https://reddit.com/r/CrappyDesign/comments/co4idu/worst_venn_diagram_ive_ever_seen_and_its_in_a/", "title": "Worst Venn Diagram I\u2019ve ever seen - and it\u2019s in a college textbook about interface design...", "author": "TheUnknownStitcher", "post_id": "reddit/CrappyDesign/co4idu", "datetime": 1565367069.0}], "labels": ["data:set", "domain:education", "effect:confuesed", "fault:cluttering", "form:venn"], "remarks": "Cluttering"}
json
package at.technikum.wien.mse.swe; import at.technikum.wien.mse.swe.exception.SecurityAccountOverviewReadException; import at.technikum.wien.mse.swe.model.RiskCategory; import java.io.BufferedReader; import java.io.IOException; import java.lang.reflect.Field; import java.math.BigDecimal; import java.nio.file.Files; import java.nio.file.Path; import static org.apache.commons.lang.StringUtils.stripStart; public class MyParser { public static void myParser(Object object, String content) { MyAnnotation annotation; String value; for (Field field : object.getClass().getDeclaredFields()) { if (field.isAnnotationPresent(MyAnnotation.class)) { annotation = field.getAnnotation(MyAnnotation.class); value = stripStart(extract(content, annotation.start(), annotation.length()).trim(), annotation.padding()); setField(object, field, value); } } } private static void setField(Object object, Field field, String value) { field.setAccessible(true); try { if (field.getType() == BigDecimal.class) { field.set(object, BigDecimal.valueOf(Double.valueOf(value))); } else if (field.getType() == String.class) { field.set(object, value); } else if (field.getType() == RiskCategory.class) { field.set(object, RiskCategory.fromCode(value).orElseThrow(IllegalStateException::new)); } } catch (IllegalAccessException e) { e.printStackTrace(); } field.setAccessible(false); } private static String extract(String content, int startIndex, int length) { return content.substring(startIndex, startIndex + length); } public static String readFileContent(Path file) { String content; try (BufferedReader reader = Files.newBufferedReader(file)) { content = reader.readLine(); } catch (IOException e) { throw new SecurityAccountOverviewReadException(e); } return content; } }
java
Seven months after the J-Ks State Human Rights Commission (SHRC) established the presence of unmarked graves in Kashmir holding 2,156 unidentified bodies,a special rapporteur of United Nations has arrived in Kashmir to prepare a report on alleged extra-judicial killings and arbitrary executions by security forces. Christof Heyns has arrived in the Valley after New Delhi,in a departure from their earlier stand,permitted him to visit Kashmir. We are here on the invitation of the Government of India and will work to promote right to life,which is foundation to all other rights, Heyns said soon after his arrival in Srinagar. Our mandate also covers issue of impunity,accountability,compensation of killings. We have mandate to prepare a report on extra-judicial,summary or arbitrary killings that are in violation of international human rights law. This includes excessive use of force during demonstrations and arrests.
english
A congressional hearing on digital marketplace competition featuring the chief executives of four of the largest American tech companies has been rescheduled for Wednesday, a House subcommittee said on Saturday. The CEOs of Facebook, Amazon. com, Alphabet’s Google and Apple were to have testified on Monday before the House Antitrust Subcommittee. But the hearing was postponed for the lying in state at the Capitol Building of the late Representative John Lewis, an icon of the civil rights movement. A subcommittee announcement issued on Saturday said the session now would be held on Wednesday and that witnesses and members could appear in person or virtually. All four tech company CEOs – Jeff Bezos of Amazon, Tim Cook of Apple, Sundar Pichai of Alphabet and Mark Zuckerberg of Facebook – are to appear virtually, the announcement said. The subcommittee of the Democratic-led House Judiciary Committee is investigating whether the companies actively seek to harm and eliminate smaller rivals. “Given the central role these corporations play in the lives of the American people, it is critical that their CEOs are forthcoming,” Judiciary Committee Chairman Jerrold Nadler and David Cecilline, the subcommittee chairman, said in a joint statement. The CEOs are expected to deflect criticism of their use of market power to damage rivals by saying they themselves face competition and by debunking claims that they are so dominant.
english
NAIROBI, Kenya, Dec 29 – ODM Party Leader Raila Odinga says he will accept the outcome of the Building Bridges Initiative (BBI) referendum which is scheduled for next year if Kenyans vote against it. The former Prime Minister underscored that whereas it is his hope that Kenyans will endorse the document owing to the benefits it will bring forth once its contents are implemented, the verdict of the people will be final. “The world will not stop moving because the country has said no. There will be different reasons why Kenyans will say no,” he said in a Monday night interview. Odinga was speaking to Citizen Television’s Events 2020 news segment. The ODM chief who has been at the forefront in championing for the passage of the BBI constitutional review Bill which seeks to alter the country’s governance structure however exuded confidence that Kenyans will ultimately make the right choice. “I believe Kenyans when given an opportunity they will make the right choice. I know Kenyans and they know what is good for them,” he said. While defending the urgency of its passage, Odinga dismissed claims that there was an ulterior motive behind the push for the plebiscite in mid 2021. “Once passed it will have a direct impact on the 2022 General Election more importantly in ensuring the two thirds gender rule is effected,” he said. He in particular took a swipe at Deputy President William Ruto and his allies who have been rooting for a postponement of the exercise. Odinga poked holes into Ruto’s proposal to have a multi-choice referendum insisting hat it was far fetched and impractical. He said it would prove to be an uphill task for the electorate to vote for five or more referendum questions independently claiming illiterate voters would take as long as an hour to cast their ballot. “DP Ruto is not being factual and he is simply playing to the gallery and I am sure he knows that his proposal is practically impossible,” he said. Odinga at the same time defended his position to have the Independent Electoral and Boundaries Commission (IEBC) reconstituted noting that its overhaul would bring sanity in the country’s election cycle. He took issue with the agency’s Chairperson Wafula Chebukati who has disagreed with him on how much it would cost the country to hold a referendum, even as he maintained that only Sh2 billion is needed to have the exercise conducted. “It is only in Africa particularly in Kenya where the cost is always inflated with a huge chuck of the funds going to people’s pockets,” he said. The electoral body is currently verifying 4. 4 million signatures which were collected in support of the BBI Bill. Once the verification is over, the IEBC will send the Bill to all the 47 County Assemblies for debate and consideration. The Bill will require a majority vote of 24 counties in its favor for it to move to Parliament and once Parliament passes it, the IEBC will then come up with a question where Kenyans will vote in support or against it during a referendum scheduled for April 2021.
english
London: A magnificent long-range strike from Youri Tielemans gave Leicester City their first FA Cup triumph with a 1-0 victory over Chelsea at Wembley on Saturday, in front of the biggest crowd in England since March, 2020. A landmark day, as 21,000 fans returned to the national stadium after last year's final was played behind closed doors due to the coronavirus pandemic, ended with emotional scenes as Leicester's Thai owner was invited on to the field to celebrate with the team. Aiyawatt Srivaddhanaprabha's father Vichai, whose ownership helped transform the Midlands club, died in 2018 in a helicopter crash at Leicester's stadium. "We have a picture (of him) on the inside of our shirts so he's always with us. This is what we've dreamt of and talked about for so long," said Leicester keeper Kasper Schmeichel whose late saves were crucial to the victory. Leicester had been beaten in all their four previous FA Cup final appearances, most recently in 1969, and it was a goal that will be remembered as one of the finest in the competition's 149-year history that earned their maiden win. There was late drama when Wes Morgan put through his own goal in the 89th minute to get Chelsea thinking they were taking the game into extra-time, only for VAR to rule it out for offside. Even after a loss, however, the Chelsea supporters will surely look back with fondness on a day when for the first time in over a year there was a real football atmosphere with the reduced capacity crowd filling the 90,000-capacity stadium with noise. Thomas Tuchel's Chelsea dominated the first half but struggled to create major openings, even after Leicester lost their centre-half Jonny Evans to injury in the 34th minute. Tielemans's goal will count among the finest to win this 149-year old competition. Collecting the ball centrally he pushed forward and as the Chelsea defence backed off he unleashed a perfectly struck drive which the diving Kepe Arrizabalaga could do nothing about. Chelsea felt there had been a handball in the build-up but they still had chances to get back on level terms. Former Leicester full-back Ben Chilwell, on as a Chelsea substitute, had a header pushed against the post by Schmeichel the Dane did even better to keep out a goalbound late effort from the dangerous Mason Mount. There was late drama when Chelsea thought they had levelled after Caglar Soyuncu attempted to clear a Chilwell cross and the ball struck Morgan before ending in the net. To Leicester's relief and Chelsea's dismay, however, the VAR replay showed that Chilwell had been offside. The final whistle prompted emotional celebrations from Leicester, the 2016 Premier League winners who enjoying the most successful period in their history. For Leicester manager Brendan Rodgers this was his first trophy in English football to follow his successes in Scotland with Celtic. "It's an amazing feeling, I wasn't aware before I came to Leicester that they'd never won the FA Cup, they'd lost in four finals previous so to be able to give that to the owners and the fans, so special," the Northern Irishman said. "So proud, the board players staff, supporters, it is an amazing day for the city. "Youri Tieleman's goal was like an old school FA Cup-winning goal but also Kasper Schmeichel's save, those are the special moments you need in games," he added. Tuchel still has a chance of lifting silverware when Chelsea face Manchester City in the Champions League final on May 29 in Porto.
english
<reponame>kfeagle/weex-devtool-iOS // { "framework": "Vanilla" } var body = document.createElement('div', { classStyle: { alignItems: 'center', marginTop: 120 } }) var image = document.createElement('image', { attr: { src: 'http://alibaba.github.io/weex/img/weex_logo_blue@3x.png' }, classStyle: { width: 360, height: 82 } }) var text = document.createElement('text', { attr: { value: 'Hello World' }, classStyle: { fontSize: 48 } }) body.appendChild(image) body.appendChild(text) document.documentElement.appendChild(body) body.addEvent('click', function () { text.setAttr('value', 'Hello Weex') }) sendTasks(id, [{ module: 'dom', method: 'createFinish', args: []}])
javascript
<filename>gt-custom-keypoint/server/processing/sagemaker-gt-postprocess.py # Copyright 2018 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. import json from urllib.parse import urlparse import boto3 def lambda_handler(event, context): """Post labeling lambda function for custom labeling jobs""" # Event received print("Received event: " + json.dumps(event, indent=2)) consolidated_labels = [] parsed_url = urlparse(event['payload']['s3Uri']) s3 = boto3.client('s3') textFile = s3.get_object(Bucket=parsed_url.netloc, Key=parsed_url.path[1:]) print(textFile) filecont = textFile['Body'].read() annotations = json.loads(filecont) for dataset in annotations: for annotation in dataset['annotations']: new_annotation = json.loads( annotation['annotationData']['content']) label = { 'datasetObjectId': dataset['datasetObjectId'], 'consolidatedAnnotation': { 'content': { event['labelAttributeName']: { 'workerId': annotation['workerId'], 'result': new_annotation, 'labeledContent': dataset['dataObject'] } } } } consolidated_labels.append(label) # Response sending print("Response: " + json.dumps(consolidated_labels)) return consolidated_labels
python
<filename>src/lowendtalk/offers/97746-LoreSYS.json {"id": 97746, "date": "2016-11-25 14:36:28", "user": "LoreSYS", "post": "### Black Friday Deals are now available at [Serveyoursite](http://serveyoursite.com/) \r\n\r\n### Take 50% Off all Hosting Plans starting Black Friday all through cyber monday. \r\n \r\n**Dedicated Servers** \r\n ---\r\nDuo Core \r\n250 GB Drive \r\n4GB Ram \r\nUnmetered Bandwidth \r\nReg. Price $34.99/month \r\n**With Discount: $17.49**\r\n \r\nIntel Core i3 \r\n500GB Drive \r\n8GB Ram \r\nUnmetered Bandwidth \r\nReg Price: 39.99/month \r\n**With Discount $19.99** \r\n \r\n### Use coupon code **Thanks** at checkout to claim your offer\r\n\r\nExpires 11/29/2016 Discount valid for first month only\r\n\r\n[Shop Now](http://serveyoursite.com/web-hosting/sale) \r\n ---\r\nCall us: 201-425-4060 \r\nEmail us: <EMAIL> \r\nChat with us: serveyoursite.com \r\n\r\n"}
json
<reponame>jassem-lab/LMS_MERN import React, { Fragment } from 'react'; import styles from './SettingsMenu.module.scss'; import { Link } from 'react-router-dom'; import { MdBuild, MdMoon, MdCloseCircle, MdSunny } from 'assets/icons'; const SettingsMenuSideNav = ({ isDarkTheme, isSettingsMenuVisible, themeChangeHandler, logoutHandler, settingsMenuHide }) => { return ( <div className={`${styles.popouts} ${styles.popout} ${styles.settingsMenu} ${ isSettingsMenuVisible ? styles.settingsMenuVisible : null }`}> <div className={styles.item} onClick={themeChangeHandler}> {isDarkTheme ? ( <Fragment> <MdSunny className={styles.menuIconTest} /> Switch to Light theme </Fragment> ) : ( <Fragment> <MdMoon className={styles.menuIconTest} /> Switch to Dark Theme </Fragment> )} </div> <Link to="/dashboard/settings" className={styles.item} onClick={settingsMenuHide}> <MdBuild className={styles.menuIconTest} /> Account Settings </Link> <div className={styles.seperator} /> <div onClick={logoutHandler} className={`${styles.item} ${styles.danger}`}> <MdCloseCircle className={styles.menuIconTest} /> Logout </div> </div> ); }; export default SettingsMenuSideNav;
javascript
Chalisa Shri Nemi Nath Ji song is a Hindi devotional song from the Jain Chalisa released on 2016. Music of Chalisa Shri Nemi Nath Ji song is composed by Bittu Mehta. Chalisa Shri Nemi Nath Ji was sung by Anjali Jain, Shailender Jain. Download Chalisa Shri Nemi Nath Ji song from Jain Chalisa on Raaga.com.
english
<gh_stars>1-10 # Generated by Django 3.1.3 on 2021-03-24 07:39 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('seqauto', '0012_auto_20210324_1702'), ] operations = [ migrations.AddField( model_name='seqautomessage', name='code', field=models.TextField(null=True), ), migrations.AddField( model_name='seqautomessage', name='open', field=models.BooleanField(default=True), ), migrations.AlterField( model_name='seqautomessage', name='message', field=models.TextField(), ), migrations.AlterField( model_name='seqautomessage', name='record', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='seqauto.seqautorecord'), ), migrations.AlterField( model_name='seqautomessage', name='seqauto_run', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='seqauto.seqautorun'), ), ]
python
advent: Betwinner has emerged as a leading having a bet web page, taking pictures the attention of users throughout Asia with its great stay sports activities having a bet options and thrilling online casino video games. renowned for its live having a bet feature and recognition in top-quality cricket leagues just like the IPL, PCL, and BPL, Betwinner has come to be the move-to platform for Asian bettors. This newsletter delves into the high-quality services of Betwinner, highlighting its stay at sports betting, various casino games, and the convenience of its legit mobile app. stay sports betting Extravaganza: Betwinner takes live sports activities making a bet to new heights by presenting an array of options for cricket, football, desk tennis, hockey, and even kabaddi fans. With actual-time odds and an intuitive platform, users can have interaction in thrilling live betting reviews. The platform covers important carrying events, permitting bettors to immerse themselves inside the excitement of the sport and area bets as the movement unfolds. the popularity of Betwinner in highest quality cricket leagues, including the IPL, PCL, and BPL, attests to its credibility and attraction amongst Asian bettors. A Haven for casino gamers: beyond its stay sports making a bet offerings, Betwinner shines as a preferred site for casino gamers. The platform affords a significant choice of online casino games, catering to numerous alternatives and ability tiers. Whether customers are searching for the joys of classic card games, the excitement of slots, or the task of table video games, Betwinner’s online casino section offers a variety of options. gamers can revel in an immersive casino enjoy with beautiful photos and attractive gameplay, improving their common enjoyment. The Betwinner App: Your Gateway to Seamless betting: To offer more advantageous comfort and accessibility, Betwinner gives an authentic cellular app that brings the pleasure of betting to users’ fingertips. via the app, users can effortlessly access the Betwinner platform, making it simpler than ever to area bets on stay games. The app offers a seamless user revel in, permitting users to deposit and withdraw price range comfortably within the app. The mobile app’s intuitive interface guarantees clean navigation, permitting users to discover various sports, online casino video games, and promotional gives effortlessly. comfy payments and dependable Withdrawals: Betwinner prioritises the security and reliability of charge transactions. The mobile app offers a variety of trusted and handy price techniques, ensuring customers can deposit and withdraw budget with self assurance. The platform’s commitment to personal safety is reflected in its use of the encryption era and adherence to strict monetary policies. users can rest assured that their economic transactions are carried out securely, supplying peace of thoughts whilst playing the thrilling global of on-line making a bet. conclusion: Betwinner has emerged as a main betting website in Asia, charming users with its considerable stay at sports activities having a bet on alternatives and a magnificent array of online casino video games. With a focus on most suitable cricket leagues just like the IPL, PCL, and BPL, Betwinner has become the preferred platform for Asian cricket lovers. The provision of the legit cellular app similarly complements the user revel in, providing seamless access to stay video games, cosy payment techniques, and an extensive range of casino games. embody Betwinner nowadays to take pleasure in thrilling stay sports betting and exhilarating online casino video games, all inside a trusted and consumer-pleasant online surroundings.
english
shaft coupling, in machinery, a device for providing a connection, readily broken and restored, between two adjacent rotating shafts. A coupling may provide either a rigid or a flexible connection; the flexibility may permit misalignment of the connected shafts or provide a torsionally flexible (yielding) connection, mitigating effects of shock. A common type of rigid coupling consists of two mating radial flanges (disks) that are attached by key-driven hubs to the ends of the shafts and bolted together through the flanges. Alignment of the shafts is usually achieved by means of a short cylindrical projection (rabbet joint) on the face of one flange that fits snugly into a circular recess on the face of the other flange. The chain coupling consists of two hardened-steel sprockets, one on each shaft, with a nylon or metal roller chain wrapped around the closely aligned sprockets and connected at the ends. Clearances between the sprocket teeth and the chain allow for a small amount of shaft misalignment. For connecting shafts whose axes intersect but are inclined to one another at a larger angle than a flexible coupling can accommodate, universal joints are used. The most common of these is the Hooke, or Cardan, joint, which consists of two yokes attached to the shaft ends and a cross-shaped connecting member. See also hydraulic transmission.
english
After being in political oblivion for over a year, former minister from Visakhapatnam Konathala Ramakrishna is all set to take a plunge into the Telugu Desam Party. Konathala, who had been in the Congress party for several years before joining the YSR Congress party to play a crucial role as the political affairs committee member, had been staying away from active politics after he resigned from the YSR Congress party more than a year ago. He had accused party president Y S Jaganmohan Reddy of ignoring seniors like him and taking unilateral decisions, besides promoting members of his coterie, including Vijay Sai Reddy. For quite some time, Konathala has been looking for options to stage a comeback into politics. And finally, he chose to join the ruling Telugu Desam Party, which he had criticized in strongest terms in the past. On Tuesday, minister Ch Ayyannapatrudu and MLA Kala Venkat Rao took Konathala to party president and AP Chief Minister N Chandrababu Naidu and got the approval for his entry into the TDP. Along with Konathala, former MLA Gandi Babji, who had also quit the YSR Congress party sometime back, also decided to join the TDP. Interestingly, the entry of Konathala has triggered unrest in the TDP in Visakhapatnam. Sources said Minister for Education Ganta Srinivasa Rao was upset with the admission of Konathala into the TDP. He reportedly expressed view that the TDP president should have consulted him before admitting Konathala. He also felt that there was no need for Konathala at a time when the party has enough MLAs in Visakhapatnam district.
english
<reponame>commentatorboy/PizzaWaiter body { margin: 0; padding: 0; font-family:'Trebuchet MS'; } ul{ list-style: none; } tblMenuCardContainer{ width: 99%; } span.MenuTitle{ color: darkred; font-weight:bold; } div.MenuCard{ float: left; margin-right: 5px; } div.Order{ float: left; margin-right: 5px; min-width: 250px; padding:5px; } div.DashedBorder{ border: 1px dashed black; } div.SubmitOrder{ float: left; } div.Address, div.PhoneNr, div.SubmitOrderButton{ padding: 5px; } div.Wrapper{ }
css
{% extends "layout.html" %} {% block title %}About{% endblock %} {% block head %} <style type="text/css"> dl#history dt + dd { border-left: 1px solid black; } </style> {% endblock %} {% block breadcrumb %} <li><a href="/about">About</a> {% endblock %} {% block hamburger %} {{ macros.singlePageLinks() }} {% endblock %} {% block body %} <h2>About</h2> <p>The Stacks project is an ever growing open source textbook and reference work on algebraic stacks and the algebraic geometry needed to define them. Here are some quick facts: <ol> <li><p>The Stacks project is not an introductory text. It is written for graduate students and researchers in algebraic geometry. <li><p>The aim is to build algebraic geometry and use this in laying the foundations for algebraic stacks. The theory of commutative algebra, schemes, varieties, and algebraic spaces forms an integral part of the Stacks project. <li><p>The Stacks project has a maintainer (currently <a href="https://www.math.columbia.edu/~dejong/"><NAME></a>) who accepts changes etc. proposed by <a href="/contributors">contributors</a>. Everyone is <a href="/contribute">encouraged to participate</a>. <li><p>The Stacks project is meant to be <em>read online</em>. Consequently we do not worry about length of the chapters, etc. With hyperlinks and the search function it is possible to quickly browse through the chapters to find the lemmas, theorems, etc. that a given result depends on. <li><p>We use <em>tags</em> to identify results, which are permanent identifiers for a result. You can read more about this on the <a href="/tags">tags explained</a> page. </ol> <p>For a longer discussion, please read the blog post <a href="https://www.math.columbia.edu/~dejong/wordpress/?p=866">What is the stacks project?</a> <h2>History</h2> <dl id="history" class="row"> <dt class="col-sm-3">July 5, 2005</dt> <dd class="col-sm-9">Birth of the idea<dd> <dd class="col-sm-9 offset-sm-3">Originally it was meant to be a collaborative web-based project with the aim of writing an introductory text about algebraic stacks. Temporarily there was a mailing list and some discussion as to how to proceed.</dd> <dt class="col-sm-3">May 20, 2008</dt> <dd class="col-sm-9"><a href="https://github.com/stacks/stacks-project/commit/3d32323ff9f1166afb3ee0ecaa10093dc764a50d">First commit for the Stacks project</a> <dd class="col-sm-9 offset-sm-3">It started as 70 pages of preliminary notes. We've come a long way.</dd> <dt class="col-sm-3">July 19, 2012</dt> <dd class="col-sm-9">The first version of the website <a href="https://www.math.columbia.edu/~dejong/wordpress/?p=2641">goes online</a></dd> <dd class="col-sm-9 offset-sm-3">Before that there was a rudimentary tag lookup system (since May 2009, see <a href="https://github.com/stacks/stacks-project/commit/fad2e125112d54e1b53a7e130ef141010f9d151d">fad2e12</a>), but no navigation, rendering, comments, ...</dd> <dt class="col-sm-3">July 31&ndash;Aug 4, 2017 <dd class="col-sm-9">The (first) <a href="https://stacks.github.io/">Stacks project workshop</a> <dd class="col-sm-9 offset-sm-3">We had the first Stacks project workshop, with small groups dedicated to studying a topic related to algebraic stacks, and producing new content for the Stacks project. <dt class="col-sm-3">May 20, 2018</dt> <dd class="col-sm-9">The second version of the website goes online.</dd> <dd class="col-sm-9 offset-sm-3">This is what you are looking at right now.</dd> </dl> <h2>Workshops</h2> <p>As mentioned in the history overview, we have had a <a href="https://stacks.github.io">Stacks project workshop</a> in Ann Arbor, from July 31 to August 4 2017. It was a great success. <p>We will organise a new workshop in the future. Stay tuned for more news (which will be made available via the <a href="https://www.math.columbia.edu/~dejong/wordpress/">Stacks project blog</a>). <h2>Acknowledgements</h2> <p>The Stacks project <a href="/acknowledgements">acknowledges the following financial and technical support</a>. {% endblock %} {% block sidebar %} {{ macros.singlePageLinks() }} {% endblock %}
html
Bigg Boss 13 winner Sidharth Shukla received a request from a coronavirus-positive fan from Pakistan, asking the actor to pray for his speedy recovery from the deadly infection. “I am tested positive for COVID. Please remember me in your prayers. If I will not make a come-back plz tell Sidharth that i Joined twitter just for @sidharth_shukla and i will always adore him. . . #WeLoveSidharth #SidharthShukla #ProudSidheat (sic),” wrote a fan in a tweet. To this, the actor replied, “Hey Hania, am really sorry to hear about you. . . but it’s ok you will be fine and back soon hope doctors are taking good care of you . . . maintain social distancing so that you don’t happen to pass it to someone. . . will n have already prayed for your speedy recovery . . Stay strong (sic). The Dil Se Dil Tak actor's empathetic response to his sick fan had twitter calling him a 'good human being'. Meanwhile, Pakistan has recorded 2,818 cases and 41 deaths due to the pandemic till Saturday. Sidharth was last seen in a music video Bhula Dunga, also featuring former Bigg Boss 13 contestant and his good friend Shehnaaz Gill. He will reportedly feature in Naagin 4 as well.
english
Where have all the flowers gone? This is where the mass urbanisation has taken its toll on Dhaka by erasing the scopes for the young ones to have a healthy childhood. The city is no longer child friendly as it fails to provide the amenities and environmental factors needed for the physical and psychological development of children. Those of us who grew up in the nineties, we grew up hearing stories from our parents about vast fields where they played Kabaddi, Ha-du-du, football, or may be the timeless games of “Borof Paani” or “Hide-and-seek” in the gardens during their childhood. On the contrary, we were left with narrow alleys to try out a little game of alley-cricket. If we compare and contrast between our childhood and the present, we would feel remorse and despair about the childhood we are offering to the children these days. What children now-a-days end up with is a childhood of enclosure. There is no playful ecstasy there; instead there are piles of books and long schedules of tuitions and coaching classes. Now they are only meant to move ahead in the rat race of “getting enlightened” when they were supposed to explore the charming aspects of being the young ones! However, the angels of urban development have not completely forgotten about recreation for children. In some condominiums there are often basements or rooftops with some facilities for toddlers to play. The irony is that, such a day is not very far when these children would learn these consolatory enhancements as the definition of a ‘playground’! These days even the students of play group do not have the pleasure of playing. Instead they have a weeklong routine of attending classes carrying a heavy bag on their small shoulders. To add to that, let us not forget the admission coachings or house tutors after school hours are over. The only bit of entertainment they have include watching Cartoon Network while munching their meals or may be an hour of playing games in the X-box or Play-stations. Talking of physical exercise, oh come on, let us not even talk about that! Apart from that, let us look at the other forms of recreation there are for the children in this metropolis. There are only a couple of modern amusement parks besides the ‘ancient’ Shishu Park that we have for the thousands of children in the city. The problem is, they are situated in the suburbs of the city and it is not very convenient to travel there in a city with severe traffic congestion. You would also find tenfold more adults in those amusement parks instead of those they were made for in the first place. Such irony! When was the last time you heard of a film for children have been released? I am quite sure the only names you can even remember are probably ‘Dipu Number Two’ and ‘Amar Bondhu Rashed’ from the recent past. Yes, our film makers have almost forgotten that there is a huge population of child audience just in Dhaka city alone who are completely ignored in their professional ventures. Instead, they are busy making ‘social action’ movies or ‘romantic comedy’ films which are hardly fit to be watched by children. Even a few years before there were TV dramas made especially for children such as “Ha-Ka-Robin” and “Biprotip” and a few others. There were at least one or two single episode dramas telecasted during the two Eids. Unfortunately, TV programs at present mostly include chick-flick dramas and the talk shows that garner the highest TRP (Television Rating Point) these days! Talking about Dhaka’s environment, have you ever wondered how the children are growing up amidst this loud noise of honking buses and cars and the smoke and dust? Every single day they have to face the hazards of urbanisation when they are out on their way to and from schools. The regulations of vehicular movement near the schools weep silently in pages and papers. Nobody cares about what might be the effect of noise well above 90 decibels, the threshold that children, such as four or five year old toddlers, can sustain. The air pollution in Dhaka is causing them growing up with respiratory complications right from the beginning of their lives. Despite all this, the average life expectancy of people in Bangladesh is increasing. I keep wondering how! And I also keep wondering, where have all the flowers gone?
english
<reponame>MiguelSanchezGonzalez/egghead-getting-started-with-redux import { Action, Reducer } from 'redux'; // Application import { Todo, initTodo, toggleTodo } from './todo'; export class TodoActions { static create = 'TODO-NEW'; static toggle = 'TODO-TOGGLE'; } export interface TodoAction extends Action { type: TodoActions, payload?: Todo } export const todoReducer: Reducer<Todo> = ( state: Todo | undefined, action: TodoAction ): Todo => { switch ( action.type ) { case TodoActions.create: return initTodo( action.payload || state ); case TodoActions.toggle: return toggleTodo( state ); default: return state; } }
typescript
<reponame>apigames-core/sdk-core { "name": "@apigames/sdk-core", "author": { "name" : "API Games Limited", "email" : "<EMAIL>", "url" : "https://api.games" }, "contributors": [ { "name" : "<NAME>", "email" : "<EMAIL>" } ], "description": "API Games SDK Core", "license": "MIT", "version": "22.1.24", "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { "win:build": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js --coverage", "unx:build": "rm -rf lib && tsc && jest && jest --config build.jest.config.js --coverage", "win:publish": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js && npm publish", "unx:publish": "rm -rf lib && tsc && jest && jest --config build.jest.config.js && npm publish", "win:publish-beta": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js && npm publish --tag beta", "unx:publish-beta": "rm -rf lib && tsc && jest && jest --config build.jest.config.js && npm publish --tag beta", "win:publish-dev": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js && npm publish --tag dev", "unx:publish-dev": "rm -rf lib && tsc && jest && jest --config build.jest.config.js && npm publish --tag dev", "win:upgrade-latest": "(if exist node_modules rmdir /s /q node_modules) && (if exist package-lock.json del /s /q package-lock.json) && ncu -u --target latest && npm install", "unx:upgrade-latest": "rm -rf node_modules && rm -f package-lock.json && ncu -u --target latest && npm install", "win:upgrade-minor": "(if exist node_modules rmdir /s /q node_modules) && (if exist package-lock.json del /s /q package-lock.json) && ncu -u --target minor && npm install", "unx:upgrade-minor": "rm -rf node_modules && rm -f package-lock.json && ncu -u --target minor && npm install", "test:coverage": "jest --coverage", "test:watch": "jest --watch" }, "dependencies": { "@apigames/json": "22.1.4", "@apigames/rest-client": "22.1.5", "object-hash": "2.2.0" }, "devDependencies": { "date-and-time": "^2.3.1", "@types/date-and-time": "^0.13.0", "@types/jest": "27.4.1", "@types/node": "14.18.16", "@typescript-eslint/eslint-plugin": "5.21.0", "@typescript-eslint/parser": "5.21.0", "eslint": "8.14.0", "eslint-config-airbnb": "19.0.4", "eslint-plugin-import": "2.26.0", "eslint-plugin-jsx-a11y": "6.5.1", "eslint-plugin-react": "7.29.4", "eslint-plugin-react-hooks": "4.5.0", "jest": "27.5.1", "ts-jest": "27.1.4", "typescript": "4.6.4" }, "eslintConfig": {}, "repository": { "type": "git", "url": "git+https://github.com/apigames-core/sdk-core.git" }, "bugs": { "url": "https://github.com/apigames-core/sdk-core/issues" }, "homepage": "https://github.com/apigames-core/sdk-core#readme" }
json
import { Pipe, PipeTransform } from '@angular/core'; import { Emoji } from '../services/tools'; /** * 将原始表情转化成unicode编码,并正则替换<>\n\s */ @Pipe({ name: 'emoji' }) export class EmojiPipe implements PipeTransform { public transform(text: string, option): string { let newText = text.replace(/</g, '&lt;'); newText = newText.replace(/>/g, '&gt;'); // 匹配url地址 if (option.href) { const regUrl = /((http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-|%|#|\+|:|;|\\|`|~|!|@|\$|\^|\*|\(|\)|<|>|?|{|}|\[|\]|[\u4e00-\u9fa5])+)){1}/g; let arr = newText.match(regUrl); if (arr && arr.length > 0) { for (let item of arr) { newText = newText.replace(item, `<a href='${item}' class='text-href' target='_blank'>${item}</a>`); } } } newText = newText.replace(/\n/g, '<br>'); // 匹配nbsp if (option.nbsp) { newText = newText.replace(/\s/g, '&nbsp;'); const reg = /<a.+?href='(.+?)'.+?class='text-href'.+?target='_blank'>(.+?)<\/a>/g; let arr = newText.match(reg); if (arr && arr.length > 0) { for (let item of arr) { item.match(reg); newText = newText.replace(item, `<a href='${RegExp.$1}' class='text-href' target='_blank'>${RegExp.$1}</a>`); } } } newText = Emoji.emoji(newText, option.fontSize); return newText; } }
typescript
<gh_stars>1-10 import { PublicKey } from '@solana/web3.js'; import { Program } from '@project-serum/anchor'; import { getDialectForMembers } from '@dialectlabs/web3'; // TODO: move to protocol export function getDialectAccount( dialectProgram: Program, publicKeys: PublicKey[], ) { return getDialectForMembers( dialectProgram, publicKeys.map((publicKey) => ({ publicKey, scopes: [true, true], })), ); }
typescript
<filename>src/koikatsu/animation/clip/houshi/paizuri.ts import { LoopType } from '../../index' import { IInfoPose } from '..' const paizuri: IInfoPose = { aliases: ['Paizuri', 'パイズリ', 'Seated Paizuri', '椅子パイズリ'], states: [ { names: ['WLoop'], strokes: [ { time: 0, position: 40 }, { time: 0.5, position: 85 } ], type: LoopType.VARIABLE }, { names: ['SLoop'], strokes: [ { time: 0, position: 30 }, { time: 0.5, position: 85 } ], type: LoopType.VARIABLE }, { names: ['OLoop'], strokes: [ { time: 0, position: 50 }, { time: 0.5, position: 85 } ], baseSpeed: 5, type: LoopType.STATIC }, { names: ['M_OUT_Start', 'M_OUT_Loop'], strokes: [ { time: 0, position: 50 }, { time: 0.5, position: 65 } ], baseSpeed: 2, type: LoopType.STATIC }, { names: ['OUT_A'], strokes: [ { time: 0, position: 50 }, { time: 0.5, position: 65 } ], type: LoopType.STATIC } ], csv: { name: 'pz.csv', sha256: '4c3464c1cf5a55a1712911ae75f58deaf459cde3821f6da26c23599ee3560a66', size: 21946 } } export default paizuri
typescript
Udham Singh Nagar: Congress leader Rahul Gandhi on Saturday hit out at Prime Minister Narendra Modi, saying that India doesn't have a PM but a king who believes that the public should remain quiet when he takes decisions. He also accused the Prime Minister of leaving farmers on roads amid the COVID-19 crisis for a year, adding that Congress would never do that. Addressing a rally, 'Uttarakhandi Kisan Swabhiman Samvad', in Kichha, he said, "Earlier (during UPA regime) India was led by a prime minister of the country but today's India is being led by a king, who just takes decisions and listens to no one. . . a PM should work for everyone, listen to people. . . If a prime minister does not work for all he cannot be a PM. By that token, Narendra Modi ji is not a PM, but a king. " Slamming the Centre over the year-long farmers' protest against three contentious farm laws, Gandhi said his party will never treat the farmers the way the Modi government did. "PM Modi ignored farmers for almost a year, because a king doesn't talk or listen to labourers and takes his own decision for them. Congress will never shut its doors on farmers while it is in power. We want to work in partnership with farmers, the poor and labourers so that every section feels it is their government,” he added. The former Congress chief reiterated that there are two Indias today, one for the rich and one for the poor. "A select group of around 100 people in the country have as much wealth as 40 per cent of the country's population. Such income disparity is not seen anywhere else," he said. Polling for 70-member Uttarakhand Assembly will take place on February 14 and the results will be announced on March 10.
english
<gh_stars>0 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shenyu.agent.plugin.metrics.prometheus.collector; import io.prometheus.client.Collector; import io.prometheus.client.GaugeMetricFamily; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; /** * Build info collector. */ public final class BuildInfoCollector extends Collector { private static final Logger LOG = LoggerFactory.getLogger(BuildInfoCollector.class); private static final String CLASS_NAME = "org.apache.shenyu.web.handler.ShenyuWebHandler"; @Override public List<MetricFamilySamples> collect() { List<String> labels = new ArrayList<>(); labels.add("version"); labels.add("name"); GaugeMetricFamily gaugeMetricFamily = new GaugeMetricFamily("build_info", "build information", labels); try { Package proxyPkg = Class.forName(CLASS_NAME).getPackage(); final String proxyVersion = proxyPkg.getImplementationVersion(); final String proxyName = proxyPkg.getImplementationTitle(); gaugeMetricFamily.addMetric(Arrays.asList(null != proxyVersion ? proxyVersion : "unknown", null != proxyName ? proxyName : "unknown"), 1L); } catch (ClassNotFoundException ex) { LOG.error("No proxy class find :{}", CLASS_NAME); } return Collections.singletonList(gaugeMetricFamily); } }
java
/* * Copyright (c) 2021 nacamar GmbH - Ybrid®, a Hybrid Dynamic Live Audio Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package io.ybrid.api.util.QualityMap; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.HashMap; import java.util.Map; import java.util.Objects; import java.util.Set; /** * The QualityMap implements a map used to store items with a given {@link Quality} assigned. * It supports a subset of the functions of the {@link Map} interface. * @param <T> The base type of the items in this map. */ public class QualityMap<T> { private final @NotNull Map<@NotNull T, @NotNull Quality> map = new HashMap<>(); private final @NotNull Style<T> style; /** * Creates a new instance with initially no items. * * @param style The {@link Style} to use. */ public QualityMap(@NotNull Style<T> style) { this.style = style; } /** * Creates a new instance with a set of initial items. * * @param style The {@link Style} to use. * @param initialValues The initial items. */ public QualityMap(@NotNull Style<T> style, @NotNull QualityMap<? extends T> initialValues) { this(style); putAll(initialValues); } /** * Creates a new instance with a set of initial items. * This uses the same rules as {@link #putAll(Map)}. * * @param style The {@link Style} to use. * @param initialValues The initial items. */ public QualityMap(@NotNull Style<T> style, @NotNull Map<? extends T, ?> initialValues) { this(style); putAll(initialValues); } /** * This creates a copy of this map with the qualities represented as {@code double}. * @return The copy. * @see Quality#toDouble() */ @Contract(pure = true) public @NotNull Map<T, Double> toDoubleMap() { final @NotNull Map<T, Double> ret = new HashMap<>(size()); for (final @NotNull Map.Entry<@NotNull T, @NotNull Quality> entry : map.entrySet()) { ret.put(entry.getKey(), entry.getValue().toDouble()); } return ret; } /** * This creates a copy of this map with the key represented as a {@link String}, * and the qualities represented as {@code double}. * * @return The copy. * @see Quality#toDouble() * @see Objects#toString(Object) */ @Contract(pure = true) public @NotNull Map<String, Double> toStringDoubleMap() { final @NotNull Map<String, Double> ret = new HashMap<>(size()); for (final @NotNull Map.Entry<@NotNull T, @NotNull Quality> entry : map.entrySet()) { ret.put(entry.getKey().toString(), entry.getValue().toDouble()); } return ret; } /** * This creates a copy of this map with the qualities represented as {@link String}. * @return The copy. * @see Quality#toString() */ @Contract(pure = true) public @NotNull Map<T, String> toStringMap() { final @NotNull Map<T, String> ret = new HashMap<>(size()); for (final @NotNull Map.Entry<@NotNull T, @NotNull Quality> entry : map.entrySet()) { ret.put(entry.getKey(), entry.getValue().toString()); } return ret; } /** * Converts this to a list suitable for a HTTP Accept:-style header. * @return The {@link String} constructed or {@code null} if the map is empty. */ public @Nullable String toHTTPHeaderLikeString() { final @NotNull StringBuilder ret = new StringBuilder(); if (isEmpty()) return null; for (final @NotNull Map.Entry<@NotNull T, @NotNull Quality> entry : map.entrySet()) { if (ret.length() > 0) ret.append(", "); ret.append(entry.getKey()).append("; q=").append(entry.getValue()); } return ret.toString(); } /** * This adds a item to this map. * <P> * If the {@code value} is not a {@link Quality} it is automatically converted to one. * The following conversions are currently supported: * <ul> * <li>From {@link Quality} without conversion.</li> * <li>From {@code double} by calling {@link Quality#valueOf(double)}.</li> * <li>From {@link String} by calling {@link Quality#valueOf(String)}.</li> * </ul> * * @param key The item to add. * @param value The quality. */ public void put(@NotNull T key, @NotNull Object value) { if (value instanceof Quality) { put(key, (Quality) value); } else if (value instanceof Double) { put(key, Quality.valueOf((Double)value)); } else if (value instanceof String) { put(key, Quality.valueOf((String) value)); } else { throw new IllegalArgumentException("Invalid type for key: " + key + ": " + value.getClass().getName()); } } /** * This adds a item to this map. * * @param key The item to add. * @param value The quality. */ public void put(@NotNull T key, @NotNull Quality value) { map.put(key, value); } /** * Adds all values from the given map to this map. * @param values The map to add the values from. */ public void putAll(@NotNull QualityMap<? extends T> values) { for (final @NotNull Map.Entry<? extends T, @NotNull Quality> entry : values.entrySet()) { put(entry.getKey(), entry.getValue()); } } /** * Adds all values from the given map to this map. * <P> * This allows adding {@link Map}s with values not being a {@link Quality}. * The same rules are applied as for {@link #put(Object, Object)} * * @param values The map to add the values from. */ public void putAll(@NotNull Map<? extends T, ?> values) { for (final @NotNull Map.Entry<? extends T, ?> entry : values.entrySet()) { put(entry.getKey(), entry.getValue()); } } /** * Gets the size of this map. * * @return The size in items. */ @Contract(pure = true) public int size() { return map.size(); } /** * Checks whether this map is empty. * * @return Whether this map is empty. */ @Contract(pure = true) public boolean isEmpty() { return map.isEmpty(); } /** * Returns whether the given item is part of this map. * * @param key The key to check with. * @return Whether the given item is part of this map. */ @Contract(pure = true) public boolean containsKey(@NotNull T key) { return map.containsKey(key); } /** * Gets the {@link Quality} of a given item. * This includes resolving of wildcards as per the map's {@link Style}. * If a item is not found {@link Quality#NOT_ACCEPTABLE} is returned. * * @param key The item to check for. * @return The {@link Quality} for the given item or {@link Quality#NOT_ACCEPTABLE}. */ @Contract(pure = true) public @NotNull Quality get(@NotNull T key) { @Nullable Quality quality = map.get(key); if (quality != null) return quality; for (final @NotNull T wildcard : style.getWildcards(key)) { quality = map.get(wildcard); if (quality != null) return quality; } return Quality.NOT_ACCEPTABLE; } /** * Removes the given item from the map. * @param key The item to remove. */ public void remove(@NotNull T key) { map.remove(key); } /** * Clears this map by removing all items from it. */ public void clear() { map.clear(); } /** * Returns a {@link Set} of all items in this map. * * @return The {@link Set} of all items. */ @Contract(pure = true) public @NotNull Set<@NotNull T> keySet() { return map.keySet(); } /** * Gets a {@link Set} of all entries in this map. * @return The {@link Set} of all entries. */ @Contract(pure = true) public @NotNull Set<Map.Entry<@NotNull T, @NotNull Quality>> entrySet() { return map.entrySet(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; QualityMap<?> that = (QualityMap<?>) o; return map.equals(that.map); } @Override public int hashCode() { return Objects.hash(map); } }
java
// // Created by <NAME> on 07-04-21. // #include "MainMenuBar.h" #include "states/StateContext.h" namespace NSPass::GUI { using States::StateContext; using States::StateName; MainMenuBar::MainMenuBar() { // create a menu bar fileMenu = new wxMenu; fileMenu->Append(MainFrame_OpenDefault, "Open Default...", "Open default password storage file"); fileMenu->Append(MainFrame_Open, "&Open\tCtrl-O", "Opens a password storage file"); fileMenu->Append(MainFrame_Save, "&Save\tCtrl-S", "Saves current storage file"); fileMenu->Append(MainFrame_Close, "&Close\tCtrl-W", "Closes current storage file"); fileMenu->AppendSeparator(); fileMenu->Append(MainFrame_Quit, "E&xit\tAlt-X", "Quit this program"); // the "About" item should be in the help menu helpMenu = new wxMenu; helpMenu->Append(MainFrame_About, "&About\tF1", "Show about dialog"); Append(fileMenu, "&File"); Append(helpMenu, "&Help"); Reset(); wxGetApp().GetStateContext().Subscribe(StateName::Initial, [&] { Reset(); }); wxGetApp().GetStateContext().Subscribe(StateName::Open, [&] { OnOpen(); }); wxGetApp().GetStateContext().Subscribe(StateName::Save, [&] { }); wxGetApp().GetStateContext().Subscribe(StateName::Close, [&] { OnClose(); }); } void MainMenuBar::Reset() { OnClose(); } void MainMenuBar::OnOpen() { fileMenu->Enable(MainFrame_OpenDefault, false); fileMenu->Enable(MainFrame_Open, false); fileMenu->Enable(MainFrame_Save, true); fileMenu->Enable(MainFrame_Close, true); } void MainMenuBar::OnClose() { fileMenu->Enable(MainFrame_OpenDefault, true); fileMenu->Enable(MainFrame_Open, true); fileMenu->Enable(MainFrame_Save, false); fileMenu->Enable(MainFrame_Close, false); } }
cpp
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <meta name="description" content="Monumento a la Memoria y la Verdad"/> <meta name="keywords" content="El Salvador, Conflicto Armado, Monumento a Víctimas"/> <meta name="author" content="http://memoriayverdad.org/"/> <link rel="stylesheet" type="text/css" href="default.css" media="screen"/> <title>Monumento a la Memoria y la Verdad</title> </head> <!-- default margin = default layout --> <body style="margin: 0 12%;"> <div class="container"> <div class="header"> <a href="index.html"><span>Monumento a la Memoria y la Verdad</span></a> </div> <div class="stripes"><span></span></div> <div class="nav"> <a href="ninas_y_ninos.html">Niñas y Niños</a> <a href="A.html">Mujeres y Hombres :</a> <a href="A.html">A</a> <a href="B.html">B</a> <a href="C.html">C</a> <a href="D.html">D</a> <a href="E.html">E</a> <a href="F.html">F</a> <a href="G.html">G</a> <a href="H.html">H</a> <a href="I.html">I</a> <a href="J.html">J</a> <a href="K.html">K</a> <a href="L.html">L</a> <a href="M.html">M</a> <a href="N.html">N</a> <a href="O.html">O</a> <a href="P.html">P</a> <a href="Q.html">Q</a> <a href="R.html">R</a> <a href="S.html">S</a> <a href="T.html">T</a> <a href="U.html">U</a> <a href="V.html">V</a> <a href="W.html">W</a> <a href="X.html">X</a> <a href="Y.html">Y</a> <a href="Z.html">Z</a> <div class="clearer"><span></span></div> </div> <div class="stripes"><span></span></div> <div class="main"> <div class="left"> <div class="content"><h1>Mujeres y Hombres</h1> (apellidos que inician con la letra "X")<table> </table> </div> </div> <div class="right"> <div class="subnav"> <h1></h1> <p>Un homenaje a las personas civiles que fueron asesinadas o desaparecidas durante el conflicto armado de<br/>El Salvador (1980-1991) <br/> <br/> <em>"Un espacio para la esperanza, para seguir soñando y construir una sociedad más justa, humana y equitativa"</em></p> </div> </div> <div class="clearer"><span></span></div> </div> <div class="footer"> <div class="bottom"> <span class="left"></span> <span class="right">memoriayverdad.org</span> <div class="clearer"><span></span></div> </div> </div> </div> </body> </html>
html
import { FilesEngine } from "./common" ; import { PathVar } from "../etc/other/paths" export class Module_FilesLoader extends FilesEngine{ static isLoaded:boolean = false static load(){ if(Module_FilesLoader.isLoaded) return new Module_FilesLoader() // Module_FilesLoader.isLoaded = true } constructor(){ super() super.recursiveSearch(PathVar.getAppModule(), "mod.js", {runFiles:true}); } }
typescript
Rocket Internet-backed FabFurnish.com, run by Bluerock E-Services Pvt Ltd, has appointed Kaushiki Gon its style director. "Handpicking the right product style is imperative to weave a story or look around it. I look forward to giving my best and gaining valuable experience from my association with FabFurnish," said Kaushiki. A design graduate with six years of work experience, Kaushiki has worked with leading decor magazines like Livingetc, Elle Decor and Casaviva. She had earlier also worked on trend forecast reports and covered international design fairs. The Gurgaon-based company offers branded products as well as private label products, and follows an inventory-cum-marketplace model. FabFurnish is basically a home and lifestyle brand that sources furniture from third party manufacturers and sells it online. The company was started by the trio of Vikram Chopra, Vaibhav Aggarwal and Mehul Agrawal in March 2012. Earlier this year, Aggarwal had quit the company. The market for home assortment and furnishing is estimated at Rs 44,000 crore in India. In the online space, FabFurnish competes with players like Pepperfry, Urban Ladder and Zansar, among others.
english
Mumbai Police has issued a lookout circular against a student in the UK for sending death-threat emails to Salman Khan. Know details about the same. Mumbai Police has issued an official lookout circular (LOC) against a man who got accused of sending terrifying and scary emails to global bollywood superstar Salman Khan. The accused person and suspect is a Haryana resident pursuing medical studies in the UK. He had reportedly emailed intimidating and threat-invoking messages to the 'Dabangg' star in the name of gangster Goldy Brar in March. Following this, Bollywood superstar got provided Y+ security. Salman Khan has been receiving death threats for a long time now, since March 2023. He recently opened up about how he is dealing with it. During an appearance at Rajat Sharma's celebrity show, Salman told the host, "Security is better than insecurity. Security is there. Now it is impossible to ride a bicycle on the road and go alone anywhere. And more than that, now I have this problem about when I am in traffic. There is so much security now. The vehicles create inconvenience to other people. They also give me a look. And my poor fans. There is a serious threat. Which is why there is security. " He adds, "I am doing whatever I am getting told. There is a dialogue in Kisi Ka Bhai Kisi Ki Jaan. They have to be lucky 100 times. I have to be lucky once. So, I got to be very careful. I am going everywhere with security. I know whatever is going to happen. It will happen no matter what you do. I believe that (points towards god) that he is there. It is not that I will start roaming freely. It is not like that. Now there are so many Sheras around me, so many guns are going around with me that I am scared nowadays. "
english
If your team uses distribution lists, file sharing, and collaborative note-taking to get things done, then you’ll love Microsoft 365 Groups in Outlook. Microsoft 365 Groups is a powerful and productive platform that brings together conversations and calendar from Outlook, files from SharePoint, tasks from Planner, and a shared OneNote notebook into a single collaboration space for your team. When you follow a group, all the email messages and meeting invitations are sent directly to your inbox. But they’re also stored in your group folder. So don’t worry about accidentally deleting something or creating a rule to move mail from your inbox to a private folder. Delete it from your inbox after reading it and know there’s still a copy safely stored in your searchable group folder; in fact, all the messages since the group began are stored in the group folder. Even if you weren’t a member at the beginning, you’ll get to see the full history once you join. Tip: If you haven't started with Microsoft 365 Groups yet you might want to read Get started with Microsoft 365 Groups in Outlook first. Use groups just like distribution lists New email messages and meeting requests will come to your inbox, and anything you send to the group will be delivered to everyone in the group, just like with a distribution list. Any version of Outlook or Outlook on the web will work. Just type the group email address on the TO line of your email message to start communicating. Note: When you create a group, check the Send all group conversations checkbox so that all members will receive copies of the group emails in their inbox. “Favorite” your group for quick access In Outlook, the groups you own and/or are a member of are listed at the bottom of your navigation pane. Right-click a group and select Add to Favorites to move it to the top of your navigation pane for easy access. Adding to Favorites also enables you to access the content when you’re offline. No need to move messages to a private folder When you follow a group, all the email messages and meeting invitations are sent directly to your inbox. But they’re also stored in your group folder. So don’t worry about accidentally deleting something or creating a rule to move mail from your inbox to a private folder. Delete it from your inbox after reading it and know there’s still a copy safely stored in your searchable group folder; in fact, all the messages since the group began are stored in the group folder. So even if you weren’t a member at the beginning, you’ll get to see the full history once you join. If you don’t want the mail to come to your inbox, just stop following from the group (but stay joined). Mail will continue to be delivered to your group folder but not your inbox. Easily schedule group meetings Any time you select one of your groups in the navigation pane you’ll see a special groups ribbon at the top of the screen. Open the calendar to see all the group meetings that are scheduled for the month. To open your group calendar in: Outlook, select Home > Calendar. To schedule a new meeting from here, see: Schedule a meeting on a group calendar. Outlook on the web, select Calendar. To schedule a new meeting from here, see: Schedule a meeting on a group calendar. Easily share files with everyone in the group You can easily upload shared files or attach files from the library to your email messages. Because the correct permissions are already set and applied to all group members, you don’t need to manage permissions on the shared files. To open your group’s file space on the groups ribbon in: Outlook, select Home > Files. See Share group files. Outlook on the web, select Files. See Share group files. Quickly access the team notebook Use it to capture notes for your team discussions, meetings, plans, and activities. To open your group’s notebook on the groups ribbon in: Outlook, select Home > Notebook. Outlook on the web, select Notebook. Find what you’re looking for Looking for all the meetings on a certain subject? Want to find the notes from last week’s brown bag? Group conversations, calendar, files, and notebook are searchable, and permissions are automatically set so all group members can search for whatever they’re looking for. Get social with likes and @mentions Like a group member’s idea? Say so. It’s quick and easy (and you can say good-bye to the old “+1”). Want to get someone’s attention? Use an @mention in an email message and that message will go to the group member’s inbox so they can follow up.
english
// mrstelephonedigits.cpp : This file contains the 'main' function. Program execution begins and ends there. // /* <NAME> ITSE - 1307 Spring 2019 20190402 This program outputs telephone digits that correspond to uppercase letters. Pseudo Code : 1. User inputs numbers and or letters 2. if(a, b, or c), cout << "2"....etc. 3. if invalid character input, cout << "Invalid character" */ #include "pch.h" #include <iostream> #include <string> using namespace std; int main() { string strInput = ""; char chrLetter = ' '; cout << "This program outputs telephone digits that correspond to uppercase letters.\n" << endl; cout << "Please input something(letters and/or digits): "; cin >> strInput; //User inputs something cout << endl << endl; cout << strInput << " is "; for (unsigned int intLetter = 0; intLetter < strInput.length(); intLetter++) { // Checks each char chrLetter = strInput.at(intLetter); chrLetter = tolower(chrLetter); switch (chrLetter) { //The corresponding digits is chosen case '1': //User input 1 cout << "1"; break; case '2': case 'a': case 'b': case 'c': //User input2, a, b, or c cout << "2"; break; case '3': case 'd': case 'e': case 'f': //User input 3, d, e, or f cout << "3"; break; case '4': case 'g': case 'h': case 'i': //User input 4, g, h, or i cout << "4"; break; case '5': case 'j': case 'k': case 'l': //User input 5, j, k, or l cout << "5"; break; case '6': case 'm': case 'n': case 'o': //User input 6, m, n, or o cout << "6"; break; case '7': case 'p': case 'q': case 'r': case 's': //User input 7, p, q, r, or s cout << "7"; break; case '8': case 't': case 'u': case 'v': //User input 8, t, u, or v cout << "8"; break; case '9': case 'w': case 'x': case 'y': case 'z': //User input 9, w, x, y, or z cout << "9"; break; case '0': //User input 0 cout << "0"; break; default: //User input an invalid character cout << ". ERROR: Invalid Character(s) " << "'" << strInput.at(intLetter) << "'" << ", " << endl; cout << endl << endl; } } }
cpp
<gh_stars>0 /* LICENSE: MIT Created by: Lightnet */ import { getSession } from "next-auth/react"; import clientDB,{ sessionTokenCheck } from "../../lib/database"; import { nanoid16 } from "../../lib/helper"; export default async (req, res) => { console.log("[[[=== Map ===]]]"); console.log("req.method: ",req.method) const session = await getSession({ req }); let {error, userid, username} = await sessionTokenCheck(session); //console.log(error); //console.log(userid); //console.log(username); if(error){ return res.json({error:"FAIL"}); } const db = await clientDB(); const GameMap = db.model('GameMap'); if(req.method == 'GET'){ //let gamemaps = await GameMap.find({tagid:data.id}).exec(); //return res.json({action:"MAPS",gamemaps:zones}); } if(req.method == 'POST'){ let data = req.body; console.log(data); if(data.action){ if(data.action=='GAMEMAPS'){ console.log('GAMEMAPS'); let gamemaps = await GameMap.find({tagid:data.id}).exec(); return res.json({action:"MAPS",gamemaps:gamemaps}); } if(data.action=='CREATE'){ console.log(data); console.log('CREATE'); let newGameMap = new GameMap({ userid:userid , tagid:data.id , name:nanoid16() }); let saveGameMap = await newGameMap.save(); return res.json({action:"CREATE",gamemap:saveGameMap}); } } } if(req.method == 'DELETE'){ let data = req.body; let deleteGameMap = await GameMap.findOneAndDelete({id:data.id}) console.log("deleteGameMap: ",deleteGameMap); return res.json({action:"DELETE",id:data.id}); } //res.end(); return res.json({error:"NOTFOUND"}); };
javascript
body { background-color: black; } .page-login { background-color: white; position: absolute; top: 50%; left: 50%; border-radius:10px; border:2px solid #006AB3; transform: translate(-50%, -50%); transform: -webkit-translate(-50%, -50%); transform: -ms-translate(-50%, -50%); max-width: 450px; padding: 10px } .container-login { margin: 20px auto 0px auto; max-width: 400px; } .page-login .logo{ max-width: 100% } .ul-errors-form { padding: 0px } .ul-errors-form > li { list-style: none } .showCont { display: block } .hideCont { display: none } .containter-form-user { max-width: 100%; margin: 15px auto; } .formDelete { display: inline-block; } #companiesForm { display: none } @media(max-width:320px){ .page-login { width: 85%; } } @media only screen and (min-width : 320px) { .page-login { width: 85%; } } /* Extra Small Devices, Phones */ @media only screen and (min-width : 480px) { } /* Small Devices, Tablets */ @media only screen and (min-width : 768px) { .btn-option { display: inline-block; margin-bottom: 8px } .containter-form-user { max-width: 85%; margin: 15px auto; } } /* Medium Devices, Desktops */ @media only screen and (min-width : 992px) { .btn-option { display: block; margin-bottom: 8px } } /* Large Devices, Wide Screens */ @media only screen and (min-width : 1200px) { .btn-option { display: inline-block; margin: 0px } } input.form-control.input-tel { width: auto } .call-bagde{ font-size: 15px; background-color: #FF5722; font-weight: 400; } .call-bagde-dif{ font-size: 15px; background-color: rgba(255, 87, 34, 0.67); font-weight: 400; } .table-colum-id{ margin: 0px 0px 3px 0px; } .bagde-counter-call{ cursor:pointer; } .info-cotiz { font-size:20px; margin-top:5px;cursor:pointer !important; display: block; }
css
section:nth-child(odd) { background-color: gainsboro; } #jumbotron-text { margin-top: auto; margin-bottom: auto; } .btn { background-color: #13229c; } .container-fluid-content { padding: 3em; } .container-fluid-header { /* padding: 1em; */ } a { color: #13229c; text-decoration: none; } a:hover { color: grey; } .white-link { color: #fff; text-decoration: none; font-size: 2.11vh; line-height: 3.37vh; }
css
# kintai-paccho Slackから勤怠入力するSlack Botだぱっちょ。 [KING OF TIME](https://www.kingtime.jp/) のみに対応しています。 ## 事前準備 Slack Appの作成。 参考: https://slack.dev/bolt-python/tutorial/getting-started Socket Mode は ON にする <img src="https://github.com/showwin/kintai-paccho/raw/master/doc/setup1.png" alt="" style="width: 600px;"> 必要な権限 <img src="https://github.com/showwin/kintai-paccho/raw/master/doc/setup2.png" alt="" style="width: 600px;"> <img src="https://github.com/showwin/kintai-paccho/raw/master/doc/setup2-2.png" alt="" style="width: 600px;"> Slash コマンドの登録 <img src="https://github.com/showwin/kintai-paccho/raw/master/doc/setup3.png" alt="" style="width: 600px;"> ## 起動方法 ``` $ git clone git@github.com:showwin/kintai-paccho.git $ cd kintai-paccho $ export SLACK_BOT_TOKEN=xoxb-<your-bot-token> # Slack の Token を設定 $ export SLACK_APP_TOKEN=xapp-<your-app-level-token> # Slack の Token を設定 $ export KOT_TOKEN=xxxxxxxxxxxxxxxx # King of Time の Token を設定 $ nohup python run.py & ``` supervisor などで監視すると良い良いと思います。 ## botとの接し方 ### Lv.0 登録する bot をチャンネルに呼ぶか、botに直接以下のメッセージを送る。 `/employee-code <your-code>` で登録。従業員番号はKing of Timeログイン後に画面右上の自分の名前の横に出てくる数字のこと。 ![](https://github.com/showwin/kintai-paccho/raw/master/doc/how_to_use_setup.png) ### Lv.1 `おはー` と `おつー` で出勤と退勤 <img src="https://github.com/showwin/kintai-paccho/raw/master/doc/how_to_use_1.png" alt="" style="width: 300px;"> ### Lv.2 途中で休憩するとき <img src="https://github.com/showwin/kintai-paccho/raw/master/doc/how_to_use_2.png" alt="" style="width: 300px;"> <img src="https://github.com/showwin/kintai-paccho/raw/master/doc/how_to_use_3.png" alt="" style="width: 300px;"> ## 注意事項 可愛いアイコンたちは **著作権に違反しない範囲で** ご自身でご設定ください :pray:
markdown
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.paypal.android.sdk.payments; import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.util.Log; import android.widget.TextView; import com.paypal.android.sdk.*; import java.util.*; // Referenced classes of package com.paypal.android.sdk.payments: // bn, PayPalService, PaymentMethodActivity, bp, // br, PaymentConfirmation, LoginActivity, PaymentConfirmActivity, // cd, bm, bh public final class PaymentActivity extends Activity { public PaymentActivity() { // 0 0:aload_0 // 1 1:invokespecial #24 <Method void Activity()> // 2 4:aload_0 // 3 5:new #26 <Class bn> // 4 8:dup // 5 9:aload_0 // 6 10:invokespecial #29 <Method void bn(PaymentActivity)> // 7 13:putfield #31 <Field ServiceConnection e> // 8 16:return } static PayPalService a(PaymentActivity paymentactivity, PayPalService paypalservice) { paymentactivity.d = paypalservice; // 0 0:aload_0 // 1 1:aload_1 // 2 2:putfield #34 <Field PayPalService d> return paypalservice; // 3 5:aload_1 // 4 6:areturn } static bh a(PaymentActivity paymentactivity) { return paymentactivity.c(); // 0 0:aload_0 // 1 1:invokespecial #38 <Method bh c()> // 2 4:areturn } static String a() { return a; // 0 0:getstatic #41 <Field String a> // 1 3:areturn } static Timer a(PaymentActivity paymentactivity, Timer timer) { paymentactivity.b = timer; // 0 0:aload_0 // 1 1:aload_1 // 2 2:putfield #44 <Field Timer b> return timer; // 3 5:aload_1 // 4 6:areturn } static PayPalService b(PaymentActivity paymentactivity) { return paymentactivity.d; // 0 0:aload_0 // 1 1:getfield #34 <Field PayPalService d> // 2 4:areturn } private void b() { PaymentMethodActivity.a(((Activity) (this)), 1, d.d()); // 0 0:aload_0 // 1 1:iconst_1 // 2 2:aload_0 // 3 3:getfield #34 <Field PayPalService d> // 4 6:invokevirtual #50 <Method PayPalConfiguration PayPalService.d()> // 5 9:invokestatic #55 <Method void PaymentMethodActivity.a(Activity, int, PayPalConfiguration)> // 6 12:return } private bh c() { return ((bh) (new bp(this))); // 0 0:new #57 <Class bp> // 1 3:dup // 2 4:aload_0 // 3 5:invokespecial #58 <Method void bp(PaymentActivity)> // 4 8:areturn } static void c(PaymentActivity paymentactivity) { if(paymentactivity.d.d() == null) //* 0 0:aload_0 //* 1 1:getfield #34 <Field PayPalService d> //* 2 4:invokevirtual #50 <Method PayPalConfiguration PayPalService.d()> //* 3 7:ifnonnull 29 { Log.e(a, "Service state invalid. Did you start the PayPalService?"); // 4 10:getstatic #41 <Field String a> // 5 13:ldc1 #60 <String "Service state invalid. Did you start the PayPalService?"> // 6 15:invokestatic #65 <Method int Log.e(String, String)> // 7 18:pop paymentactivity.setResult(2); // 8 19:aload_0 // 9 20:iconst_2 // 10 21:invokevirtual #69 <Method void setResult(int)> paymentactivity.finish(); // 11 24:aload_0 // 12 25:invokevirtual #72 <Method void finish()> return; // 13 28:return } br br1 = new br(paymentactivity.getIntent(), paymentactivity.d.d()); // 14 29:new #74 <Class br> // 15 32:dup // 16 33:aload_0 // 17 34:invokevirtual #78 <Method Intent getIntent()> // 18 37:aload_0 // 19 38:getfield #34 <Field PayPalService d> // 20 41:invokevirtual #50 <Method PayPalConfiguration PayPalService.d()> // 21 44:invokespecial #81 <Method void br(Intent, PayPalConfiguration)> // 22 47:astore_1 if(!br1.c()) //* 23 48:aload_1 //* 24 49:invokevirtual #84 <Method boolean br.c()> //* 25 52:ifne 74 { Log.e(a, "Service extras invalid. Please see the docs."); // 26 55:getstatic #41 <Field String a> // 27 58:ldc1 #86 <String "Service extras invalid. Please see the docs."> // 28 60:invokestatic #65 <Method int Log.e(String, String)> // 29 63:pop paymentactivity.setResult(2); // 30 64:aload_0 // 31 65:iconst_2 // 32 66:invokevirtual #69 <Method void setResult(int)> paymentactivity.finish(); // 33 69:aload_0 // 34 70:invokevirtual #72 <Method void finish()> return; // 35 73:return } if(!br1.a()) //* 36 74:aload_1 //* 37 75:invokevirtual #88 <Method boolean br.a()> //* 38 78:ifne 100 { Log.e(a, "Extras invalid. Please see the docs."); // 39 81:getstatic #41 <Field String a> // 40 84:ldc1 #90 <String "Extras invalid. Please see the docs."> // 41 86:invokestatic #65 <Method int Log.e(String, String)> // 42 89:pop paymentactivity.setResult(2); // 43 90:aload_0 // 44 91:iconst_2 // 45 92:invokevirtual #69 <Method void setResult(int)> paymentactivity.finish(); // 46 95:aload_0 // 47 96:invokevirtual #72 <Method void finish()> return; // 48 99:return } paymentactivity.d.l(); // 49 100:aload_0 // 50 101:getfield #34 <Field PayPalService d> // 51 104:invokevirtual #93 <Method void PayPalService.l()> paymentactivity.d.c().a(); // 52 107:aload_0 // 53 108:getfield #34 <Field PayPalService d> // 54 111:invokevirtual #96 <Method ck PayPalService.c()> // 55 114:invokevirtual #100 <Method void ck.a()> if(paymentactivity.d.i()) //* 56 117:aload_0 //* 57 118:getfield #34 <Field PayPalService d> //* 58 121:invokevirtual #103 <Method boolean PayPalService.i()> //* 59 124:ifeq 132 { paymentactivity.b(); // 60 127:aload_0 // 61 128:invokespecial #105 <Method void b()> return; // 62 131:return } else { Calendar calendar = Calendar.getInstance(); // 63 132:invokestatic #111 <Method Calendar Calendar.getInstance()> // 64 135:astore_1 calendar.add(13, 1); // 65 136:aload_1 // 66 137:bipush 13 // 67 139:iconst_1 // 68 140:invokevirtual #115 <Method void Calendar.add(int, int)> paymentactivity.c = calendar.getTime(); // 69 143:aload_0 // 70 144:aload_1 // 71 145:invokevirtual #119 <Method Date Calendar.getTime()> // 72 148:putfield #121 <Field Date c> paymentactivity.d.a(paymentactivity.c(), false); // 73 151:aload_0 // 74 152:getfield #34 <Field PayPalService d> // 75 155:aload_0 // 76 156:invokespecial #38 <Method bh c()> // 77 159:iconst_0 // 78 160:invokevirtual #124 <Method void PayPalService.a(bh, boolean)> return; // 79 163:return } } static Date d(PaymentActivity paymentactivity) { return paymentactivity.c; // 0 0:aload_0 // 1 1:getfield #121 <Field Date c> // 2 4:areturn } static void e(PaymentActivity paymentactivity) { paymentactivity.b(); // 0 0:aload_0 // 1 1:invokespecial #105 <Method void b()> // 2 4:return } static Timer f(PaymentActivity paymentactivity) { return paymentactivity.b; // 0 0:aload_0 // 1 1:getfield #44 <Field Timer b> // 2 4:areturn } public final void finish() { super.finish(); // 0 0:aload_0 // 1 1:invokespecial #127 <Method void Activity.finish()> StringBuilder stringbuilder = new StringBuilder(); // 2 4:new #129 <Class StringBuilder> // 3 7:dup // 4 8:invokespecial #130 <Method void StringBuilder()> // 5 11:astore_1 stringbuilder.append(a); // 6 12:aload_1 // 7 13:getstatic #41 <Field String a> // 8 16:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 9 19:pop stringbuilder.append(".finish"); // 10 20:aload_1 // 11 21:ldc1 #136 <String ".finish"> // 12 23:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 13 26:pop // 14 27:return } protected final void onActivityResult(int i, int j, Intent intent) { super.onActivityResult(i, j, intent); // 0 0:aload_0 // 1 1:iload_1 // 2 2:iload_2 // 3 3:aload_3 // 4 4:invokespecial #140 <Method void Activity.onActivityResult(int, int, Intent)> StringBuilder stringbuilder = new StringBuilder(); // 5 7:new #129 <Class StringBuilder> // 6 10:dup // 7 11:invokespecial #130 <Method void StringBuilder()> // 8 14:astore 4 stringbuilder.append(a); // 9 16:aload 4 // 10 18:getstatic #41 <Field String a> // 11 21:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 12 24:pop stringbuilder.append(".onActivityResult"); // 13 25:aload 4 // 14 27:ldc1 #142 <String ".onActivityResult"> // 15 29:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 16 32:pop if(i == 1) //* 17 33:iload_1 //* 18 34:iconst_1 //* 19 35:icmpne 168 switch(j) //* 20 38:iload_2 { //* 21 39:tableswitch -1 0: default 60 // -1 96 // 0 168 default: intent = ((Intent) (new StringBuilder("unexpected request code "))); // 22 60:new #129 <Class StringBuilder> // 23 63:dup // 24 64:ldc1 #144 <String "unexpected request code "> // 25 66:invokespecial #147 <Method void StringBuilder(String)> // 26 69:astore_3 ((StringBuilder) (intent)).append(i); // 27 70:aload_3 // 28 71:iload_1 // 29 72:invokevirtual #150 <Method StringBuilder StringBuilder.append(int)> // 30 75:pop ((StringBuilder) (intent)).append(" call it a cancel"); // 31 76:aload_3 // 32 77:ldc1 #152 <String " call it a cancel"> // 33 79:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 34 82:pop Log.wtf("paypal.sdk", ((StringBuilder) (intent)).toString()); // 35 83:ldc1 #154 <String "paypal.sdk"> // 36 85:aload_3 // 37 86:invokevirtual #157 <Method String StringBuilder.toString()> // 38 89:invokestatic #160 <Method int Log.wtf(String, String)> // 39 92:pop break; // 40 93:goto 168 case 0: // '\0' break; case -1: String s; if(intent != null) //* 41 96:aload_3 //* 42 97:ifnull 153 { intent = ((Intent) ((PaymentConfirmation)intent.getParcelableExtra("com.paypal.android.sdk.paymentConfirmation"))); // 43 100:aload_3 // 44 101:ldc1 #162 <String "com.paypal.android.sdk.paymentConfirmation"> // 45 103:invokevirtual #168 <Method android.os.Parcelable Intent.getParcelableExtra(String)> // 46 106:checkcast #170 <Class PaymentConfirmation> // 47 109:astore_3 if(intent != null) //* 48 110:aload_3 //* 49 111:ifnull 142 { Intent intent1 = new Intent(); // 50 114:new #164 <Class Intent> // 51 117:dup // 52 118:invokespecial #171 <Method void Intent()> // 53 121:astore 4 intent1.putExtra("com.paypal.android.sdk.paymentConfirmation", ((android.os.Parcelable) (intent))); // 54 123:aload 4 // 55 125:ldc1 #162 <String "com.paypal.android.sdk.paymentConfirmation"> // 56 127:aload_3 // 57 128:invokevirtual #175 <Method Intent Intent.putExtra(String, android.os.Parcelable)> // 58 131:pop setResult(-1, intent1); // 59 132:aload_0 // 60 133:iconst_m1 // 61 134:aload 4 // 62 136:invokevirtual #178 <Method void setResult(int, Intent)> break; // 63 139:goto 168 } intent = ((Intent) (a)); // 64 142:getstatic #41 <Field String a> // 65 145:astore_3 s = "result was OK, have data, but no payment state in bundle, oops"; // 66 146:ldc1 #180 <String "result was OK, have data, but no payment state in bundle, oops"> // 67 148:astore 4 } else //* 68 150:goto 161 { intent = ((Intent) (a)); // 69 153:getstatic #41 <Field String a> // 70 156:astore_3 s = "result was OK, no intent data, oops"; // 71 157:ldc1 #182 <String "result was OK, no intent data, oops"> // 72 159:astore 4 } Log.e(((String) (intent)), s); // 73 161:aload_3 // 74 162:aload 4 // 75 164:invokestatic #65 <Method int Log.e(String, String)> // 76 167:pop break; } finish(); // 77 168:aload_0 // 78 169:invokevirtual #72 <Method void finish()> // 79 172:return } protected final void onCreate(Bundle bundle) { super.onCreate(bundle); // 0 0:aload_0 // 1 1:aload_1 // 2 2:invokespecial #186 <Method void Activity.onCreate(Bundle)> bundle = ((Bundle) (new StringBuilder())); // 3 5:new #129 <Class StringBuilder> // 4 8:dup // 5 9:invokespecial #130 <Method void StringBuilder()> // 6 12:astore_1 ((StringBuilder) (bundle)).append(a); // 7 13:aload_1 // 8 14:getstatic #41 <Field String a> // 9 17:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 10 20:pop ((StringBuilder) (bundle)).append(".onCreate"); // 11 21:aload_1 // 12 22:ldc1 #188 <String ".onCreate"> // 13 24:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 14 27:pop (new fz(((android.content.Context) (this)))).a(); // 15 28:new #190 <Class fz> // 16 31:dup // 17 32:aload_0 // 18 33:invokespecial #193 <Method void fz(android.content.Context)> // 19 36:invokevirtual #194 <Method void fz.a()> (new fy(((android.content.Context) (this)))).a(); // 20 39:new #196 <Class fy> // 21 42:dup // 22 43:aload_0 // 23 44:invokespecial #197 <Method void fy(android.content.Context)> // 24 47:invokevirtual #198 <Method void fy.a()> (new fx(((android.content.Context) (this)))).a(((java.util.Collection) (Arrays.asList(((Object []) (new String[] { ((Class) (com/paypal/android/sdk/payments/PaymentActivity)).getName(), ((Class) (com/paypal/android/sdk/payments/LoginActivity)).getName(), ((Class) (com/paypal/android/sdk/payments/PaymentMethodActivity)).getName(), ((Class) (com/paypal/android/sdk/payments/PaymentConfirmActivity)).getName() })))))); // 25 50:new #200 <Class fx> // 26 53:dup // 27 54:aload_0 // 28 55:invokespecial #201 <Method void fx(android.content.Context)> // 29 58:iconst_4 // 30 59:anewarray String[] // 31 62:dup // 32 63:iconst_0 // 33 64:ldc1 #2 <Class PaymentActivity> // 34 66:invokevirtual #208 <Method String Class.getName()> // 35 69:aastore // 36 70:dup // 37 71:iconst_1 // 38 72:ldc1 #210 <Class LoginActivity> // 39 74:invokevirtual #208 <Method String Class.getName()> // 40 77:aastore // 41 78:dup // 42 79:iconst_2 // 43 80:ldc1 #52 <Class PaymentMethodActivity> // 44 82:invokevirtual #208 <Method String Class.getName()> // 45 85:aastore // 46 86:dup // 47 87:iconst_3 // 48 88:ldc1 #212 <Class PaymentConfirmActivity> // 49 90:invokevirtual #208 <Method String Class.getName()> // 50 93:aastore // 51 94:invokestatic #218 <Method java.util.List Arrays.asList(Object[])> // 52 97:invokevirtual #221 <Method void fx.a(java.util.Collection)> f = bindService(cd.b(((Activity) (this))), e, 1); // 53 100:aload_0 // 54 101:aload_0 // 55 102:aload_0 // 56 103:invokestatic #226 <Method Intent cd.b(Activity)> // 57 106:aload_0 // 58 107:getfield #31 <Field ServiceConnection e> // 59 110:iconst_1 // 60 111:invokevirtual #230 <Method boolean bindService(Intent, ServiceConnection, int)> // 61 114:putfield #232 <Field boolean f> ((Activity)this).setTheme(0x103006e); // 62 117:aload_0 // 63 118:ldc1 #233 <Int 0x103006e> // 64 120:invokevirtual #236 <Method void Activity.setTheme(int)> ((Activity)this).requestWindowFeature(8); // 65 123:aload_0 // 66 124:bipush 8 // 67 126:invokevirtual #240 <Method boolean Activity.requestWindowFeature(int)> // 68 129:pop bundle = ((Bundle) (new fu(((android.content.Context) (this))))); // 69 130:new #242 <Class fu> // 70 133:dup // 71 134:aload_0 // 72 135:invokespecial #243 <Method void fu(android.content.Context)> // 73 138:astore_1 setContentView(((android.view.View) (((fu) (bundle)).a))); // 74 139:aload_0 // 75 140:aload_1 // 76 141:getfield #246 <Field android.view.ViewGroup fu.a> // 77 144:invokevirtual #250 <Method void setContentView(android.view.View)> ((fu) (bundle)).b.setText(((CharSequence) (fa.a(fc.y)))); // 78 147:aload_1 // 79 148:getfield #253 <Field TextView fu.b> // 80 151:getstatic #259 <Field fc fc.y> // 81 154:invokestatic #264 <Method String fa.a(fc)> // 82 157:invokevirtual #270 <Method void TextView.setText(CharSequence)> cd.a(((Activity) (this)), ((TextView) (null)), fc.y); // 83 160:aload_0 // 84 161:aconst_null // 85 162:getstatic #259 <Field fc fc.y> // 86 165:invokestatic #273 <Method void cd.a(Activity, TextView, fc)> // 87 168:return } protected final Dialog onCreateDialog(int i, Bundle bundle) { switch(i) //* 0 0:iload_1 { //* 1 1:tableswitch 2 3: default 24 // 2 44 // 3 34 default: return cd.a(((Activity) (this)), fc.bc, bundle, i); // 2 24:aload_0 // 3 25:getstatic #278 <Field fc fc.bc> // 4 28:aload_2 // 5 29:iload_1 // 6 30:invokestatic #281 <Method Dialog cd.a(Activity, fc, Bundle, int)> // 7 33:areturn case 3: // '\003' return cd.a(((Activity) (this)), fc.be, bundle, i); // 8 34:aload_0 // 9 35:getstatic #284 <Field fc fc.be> // 10 38:aload_2 // 11 39:iload_1 // 12 40:invokestatic #281 <Method Dialog cd.a(Activity, fc, Bundle, int)> // 13 43:areturn case 2: // '\002' return cd.a(((Activity) (this)), ((android.content.DialogInterface.OnClickListener) (new bm(this)))); // 14 44:aload_0 // 15 45:new #286 <Class bm> // 16 48:dup // 17 49:aload_0 // 18 50:invokespecial #287 <Method void bm(PaymentActivity)> // 19 53:invokestatic #290 <Method Dialog cd.a(Activity, android.content.DialogInterface$OnClickListener)> // 20 56:areturn } } protected final void onDestroy() { Object obj = ((Object) (new StringBuilder())); // 0 0:new #129 <Class StringBuilder> // 1 3:dup // 2 4:invokespecial #130 <Method void StringBuilder()> // 3 7:astore_1 ((StringBuilder) (obj)).append(a); // 4 8:aload_1 // 5 9:getstatic #41 <Field String a> // 6 12:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 7 15:pop ((StringBuilder) (obj)).append(".onDestroy"); // 8 16:aload_1 // 9 17:ldc2 #293 <String ".onDestroy"> // 10 20:invokevirtual #134 <Method StringBuilder StringBuilder.append(String)> // 11 23:pop obj = ((Object) (d)); // 12 24:aload_0 // 13 25:getfield #34 <Field PayPalService d> // 14 28:astore_1 if(obj != null) //* 15 29:aload_1 //* 16 30:ifnull 44 { ((PayPalService) (obj)).o(); // 17 33:aload_1 // 18 34:invokevirtual #296 <Method void PayPalService.o()> d.u(); // 19 37:aload_0 // 20 38:getfield #34 <Field PayPalService d> // 21 41:invokevirtual #299 <Method void PayPalService.u()> } if(f) //* 22 44:aload_0 //* 23 45:getfield #232 <Field boolean f> //* 24 48:ifeq 64 { unbindService(e); // 25 51:aload_0 // 26 52:aload_0 // 27 53:getfield #31 <Field ServiceConnection e> // 28 56:invokevirtual #303 <Method void unbindService(ServiceConnection)> f = false; // 29 59:aload_0 // 30 60:iconst_0 // 31 61:putfield #232 <Field boolean f> } super.onDestroy(); // 32 64:aload_0 // 33 65:invokespecial #305 <Method void Activity.onDestroy()> // 34 68:return } private static final String a = "PaymentActivity"; private Timer b; private Date c; private PayPalService d; private final ServiceConnection e = new bn(this); private boolean f; static { // 0 0:return } }
java
<gh_stars>0 {"componentChunkName":"component---src-pages-food-copy-js","path":"/food copy/","result":{"pageContext":{}}}
json
<reponame>CleanCut/bevy_kira_audio<gh_stars>0 #[cfg(feature = "flac")] use anyhow::{Error, Result}; #[cfg(feature = "flac")] use bevy::asset::{AssetLoader, LoadContext, LoadedAsset}; #[cfg(feature = "flac")] use bevy::utils::BoxedFuture; #[cfg(feature = "flac")] use claxon::FlacReader; #[cfg(feature = "flac")] use kira::sound::error::SoundFromFileError; #[cfg(feature = "flac")] use kira::sound::{Sound, SoundSettings}; #[cfg(feature = "flac")] use kira::Frame; #[cfg(feature = "flac")] use crate::source::AudioSource; #[derive(Default)] pub struct FlacLoader; #[cfg(feature = "flac")] impl AssetLoader for FlacLoader { fn load<'a>( &'a self, bytes: &'a [u8], load_context: &'a mut LoadContext, ) -> BoxedFuture<'a, Result<()>> { Box::pin(async move { let mut reader = FlacReader::new(bytes)?; let stream_info = reader.streaminfo(); let mut stereo_samples = vec![]; match reader.streaminfo().channels { 1 => { for sample in reader.samples() { let sample = sample?; stereo_samples.push(Frame::from_i32( sample, sample, stream_info.bits_per_sample, )); } } 2 => { let mut iter = reader.samples(); while let (Some(left), Some(right)) = (iter.next(), iter.next()) { stereo_samples.push(Frame::from_i32( left?, right?, stream_info.bits_per_sample, )); } } _ => { return Err(Error::from( SoundFromFileError::UnsupportedChannelConfiguration, )) } } load_context.set_default_asset(LoadedAsset::new(AudioSource { sound: Sound::from_frames( stream_info.sample_rate, stereo_samples, SoundSettings::default(), ), })); Ok(()) }) } fn extensions(&self) -> &[&str] { &["flac"] } }
rust
The Windows 10 May 2020 update, also known as Windows 10 2004, has started rolling out to users today. This new Windows 10 version comes with many new features, detailed in a previous ZDNet article, here, including the likes of a revamped Network Status page, the addition of GPU card temperatures to the Task Manager, and a new Cortana experience. However, the Windows 10 2004 version also comes with improvements on the security front, which Microsoft claims will help keep Windows 10 users safe going forward. Below is a list of all the new features, which we plan to update as we uncover new features in the coming days. Last year, Microsoft introduced the Windows Sandbox on all Windows versions with the release of v1903. The Windows Sandbox component allows users to launch a virtual machine running a stripped down version of Windows 10. Since its launch, the Windows Sandbox has grown in popularity among the company's userbase as it allows users to execute dangerous apps in an isolated environment, without damaging their primary Windows 10 installation. While the Windows Sandbox component is not on par with other sandboxing software, work on it has not stopped once it shipped with a Windows 10 release. Today, Microsoft rolled out a series of new features, which will make the app easier to automate in enterprise testing environments. Windows 10 v2004 now supports the latest versions of the WiFi wireless communications standard and WPA, the protocol used to authenticate WiFi connections. Both protocols include protections against a series of attacks, such as DragonBlood, KRACK, and more, allowing Windows 10 users to connect to WiFi networks in a safer manner. Microsoft says it also upgraded System Guard Secure Launch, a feature that checks if the device firmware has loaded in a secure manner, without being tampered. In Windows 10, version 2004, Microsoft says the System Guard Secure Launch now measures more parameters than before. However, this feature will require modern hardware and may not work on all devices. We also have new security baselines (drafts for now) for Windows 10 and Windows Server installations. Security baselines are basic OS configurations that system administrators can deploy across their computer fleets and ensure that basic security features are enabled. Windows Hello is a feature that lets users log into their Windows computer using biometrics (fingerprint scan, face scan) or passwordless methods (PIN code). In Windows 10 v2004, once enabled, Windows Hello login options will also show up for computers booted up Safe Mode. Furthermore, Windows Hello passwordless authentication methods can also be used as an alternative to passwords when users are logging into their Microsoft accounts. Windows 10 supports FIDO2 security keys as a form of passwordless authentication. Starting with Windows 10 v2004, Microsoft says that FIDO2 security key support "has been expanded to include hybrid Azure Active Directory (Azure AD)-joined devices, enabling even more customers to take an important step in their journey towards passwordless environments." Microsoft says that devices that run on AMD's new Ryzen Pro 4000 chipsets are now compatible with its new Secured-core technology. Secured-core is a feature of Windows 10 PCs that includes additional protections against attacks that tamper with a device's hardware components, firmware, or CPU's internal components. Windows 10 now has a cloud recovery option in the "Reset this PC" section. Until today, the "Reset this PC" option only had one option -- namely to do a local reinstall where it would build a new Windows installation from existing Windows files. Starting with Windows 10 2004, users can select the cloud recovery option, which will instruct Windows to download the files needed for a reinstall from Microsoft's servers. This option is recommended for users on fast internet connections only.
english
For the leader. Of David, a psalm. 1 O Lord, you search and know me; 2 when I sit, when I rise you know it, you perceive my thoughts from afar. 3 When I walk, when I lie you sift it, familiar with all my ways. 4 There is not a word on my tongue, but see! Lord, you know it all. 5 Behind and before you beset me, upon me you lay your hand. too lofty I cannot attain it. 7 Whither shall I go from your spirit? Or whither shall I flee from your face? 8 If I climb up to heaven, you are there: or make Sheol my bed, you are there. and fly to the end of the sea, 10 there also your hand would grasp me, and your right hand take hold of me. 11 If I say, “Let the darkness cover me, 12 The dark is not dark for you, but night is as light as the day. 13 For you did put me together; in my mother’s womb you did weave me. so full of awe, so wonderful. Your works are wonderful. You knew me right well; 15 my bones were not hidden from you, when I was made in secret, and woven in the depths of the earth. 16 Your eyes saw all my days: written down, before they were fashioned, while none of them yet was mine. are your thoughts! How mighty their sum! 18 Should I count, they are more than the sand. When I wake, I am still with you. 19 Will you slay the wicked, O God? And remove from me the bloodthirsty, and take your name in vain. 21 Do I not hate those who hate you, Lord? Do I not loathe those who resist you? 22 With perfect hatred I hate them, I count them my enemies. 23 Search me, O God, know my heart: test me, and know my thoughts, 24 and see if guile be in me; and lead me in the way everlasting.
english
Ram Charan and Upasana are sweet couple who have been together for 11 years. The couple is expecting their first child within a few days. They are under preparations for the arrival of the child. Meanwhile, the couple received a handcrafted cradle as a gift from the women at Prajwala foundation by Sunitha Krishnan. These women are sex trafficking survivors. Upasana has been closely associated with the foundation since a long time. She shared a video showing the cradle which has all the values and desires those things to be in her child right from the birth. “We are honoured & humbled to receive this heartfelt gift from the incredible young women of #PrajwalaFoundation. This handcrafted cradle holds immense significance, symbolizing strength, resilience, and hope. It represents a journey of transformation and self-respect that I want my child to be exposed to from birth. @sunitha. krishnan. ”, she wrote on Instagram. We are honoured & humbled to receive this heartfelt gift from the incredible young women of #PrajwalaFoundation. This handcrafted cradle holds immense significance, symbolizing strength, resilience & hope.
english
Photography’s history began long before we were snapping pictures on camera phones. Learn about the masters of the craft and explore the development of photographic technology as it progressed through daguerreotypes and tintypes on the way to modern day’s increasingly sophisticated digital cameras. Did you know you’re not getting the full Britannica experience? Sign up for Premium to get access to all of our trusted content and exclusive originals. Subscribe today!
english
<filename>common/src/main/java/com/buguagaoshu/homework/common/enums/CurriculumJoinTimLimitEnum.java<gh_stars>1-10 package com.buguagaoshu.homework.common.enums; /** * @author <NAME> {@literal <EMAIL>} * create 2020-06-07 13:42 */ public enum CurriculumJoinTimLimitEnum { /** * 是否限制加入时间 * */ NO_JOIN_TIME(0, "不限制加入时间,结课前可加入"), LIMIT_JOIN_TIME(1, "限制加入时间") ; int code; String string; CurriculumJoinTimLimitEnum(int code, String string) { this.code = code; this.string = string; } public int getCode() { return code; } public String getString() { return string; } }
java
html, body { width: 100%; height: 100%; overflow: hidden; } body { background: url(/images/1.jpg) no-repeat; background-size: cover; } h1 { font-size: 72px; } video { transition: 1s opacity; background: url("../images/1.jpg"); background-repeat: no-repeat; background-size: cover; position: absolute; top: 50%; left: 50%; -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1000; overflow: hidden; } /* QR code generator */ #qrCode { margin: 15px; }
css
<div class="py-4 container"> <div class="row row-cols-1 row-cols-lg-2 g-3"> <ng-container [ngSwitch]="summary"> <div *ngSwitchCase="null" class="col"> Loading ... </div> <ng-container *ngSwitchDefault> <div class="col"> <app-summary-element [title]="summary!.accounts + ' registered Accounts'"> <p class="mb-1"><strong>{{summary!.accounts}}</strong> accounts have been registered at GW2Auth.</p> <p class="mb-0">Click the Login button at the top to register a new account or login to your existing GW2Auth-Account.</p> </app-summary-element> </div> <div class="col"> <app-summary-element [title]="summary!.apiTokens + ' API-Tokens added'"> <p class="mb-1"><strong>{{summary!.apiTokens}}</strong> API-Tokens have been added to GW2Auth.</p> <p class="mb-0">API-Tokens are used to grant external applications access to the GW2-API.</p> </app-summary-element> </div> <div class="col"> <app-summary-element [title]="summary!.clientAuthorizations + ' authorized Applications'"> <p class="mb-1"><strong>{{summary!.clientAuthorizations}}</strong> external applications have been authorized using GW2Auth.</p> <p class="mb-0">External applications receive GW2-API-Subtokens to access the GW2-API on a users behalf.</p> </app-summary-element> </div> <div class="col"> <app-summary-element [title]="summary!.verifiedGw2Accounts + ' verified GW2-Accounts'"> <p class="mb-1"><strong>{{summary!.verifiedGw2Accounts}}</strong> GW2-Accounts have been verified at GW2Auth.</p> <p class="mb-0">By verifying a GW2-Account we make sure that nobody but the GW2Auth-Account that has been verified can add API-Tokens for the verified GW2-Account.</p> </app-summary-element> </div> <div class="col"> <app-summary-element [title]="summary!.clientRegistrations + ' Clients'"> <p class="mb-1"><strong>{{summary!.clientRegistrations}}</strong> Developer-Clients have been registered at GW2Auth.</p> <p class="mb-0">Clients are used by developers to integrate GW2Auth into their application.</p> </app-summary-element> </div> </ng-container> </ng-container> </div> </div>
html
Dadra and Nagar Haveli, whose ration shops are managed by cooperatives and not private dealers, has stalled the rollout of cash transfers, after opposition from local gram panchayats. Puducherry and Chandigarh have also witnessed similar high-decibel protests. India has only 1 bank branch for every 11 ration shops. Nevertheless, cash transfers remain popular in the corridors of power in India and in international policy circles. The Indian version has officially been christened ‘JAM’ – short for Jan Dhan bank accounts, Aadhaar unique identity numbers and Mobile payments. Even at the recent Delhi Economic Conclave with the prime minister and three chief ministers in attendance ( and where skeptics were controversially excluded) JAM occupied centre-stage. In India, one of the key reasons that cash transfers are being mooted is to fill empty Jan Dhan bank accounts (37% in October 2015). But with few new revenue streams, the focus so far has squarely been to replace India’s foodgrain subsidy, at around 1% of GDP. However, it is often not appreciated that half of rural homes (75% in southern India) depend on the existing network of half-a-million ration shops − as a lifeline − to purchase subsidised foodgrain. Instead, the central government had hastily announced that in September, three union territories – Puducherry, Chandigarh and Dadra and Nagar Haveli – would switch en masse. This was in line with the Shanta Kumar High Level Committee’s contentious push to roll out cash first in million-plus-cities and within 2-3 years nationwide. But there has been intense opposition to the JAM cash transfers on the ground. The tribal-dominated Dadra and Nagar Haveli has been the most vocal. Its elected panchayats have protested both at public meetings and with written affidavits. 80% of ration shops in the industrial hub are managed by cooperatives, not usurious private dealers. Most tribal families already have Antyodaya Anna Yojana (AAY) ration cards, which entitle them to 35 kilos of foodgrains at a highly subsidised price of Rs 3 per kilo. So, their opposition to cash is reasoned. First, as in the rest of India, banks are few and far between. There is only one bank for every 28,000 people compared to a ration shop for every 4500. Second, the cost of travelling to the bank, often several times for a single transaction as internet links frequently get disrupted, is high. Third, also of concern is the opportunity cost of lost wages. Further, two-thirds of the population is tribal, with low levels of literacy. They find banks intimidating and cash transactions difficult to navigate. Fifth, beneficiaries are also wary of potential misuse of cash even within the household, in a tax-free haven where liquor flows cheap. Sixth, there is no guarantee that cash will be able to keep pace with food price inflation, especially with the soaring prices of onions and pulses on everyone’s mind. In Chandigarh, too, similar concerns have been aired. The opposition party has collected 41,000 signatures from ration cardholders who wish to revert to foodgrains. Despite that, all ration shops in the city have already been shut. Though 41,000 homes now receive a modest Rs 95 per person per month directly into their bank accounts, it is proving to be insufficient to cover the cost of foodgrains, compensate for travel expenses and the inconvenience of multiple journeys. Puducherry has also witnessed considerable turmoil. The local government had this year unwisely launched its own cash transfer “pilot” for a sizeable 3-lakh families. But during the transition when people didn’t receive grain for months and the salaries of the ration shop salespersons were heavily delayed, the Left opposition parties organised street protests. Within 2 months, the government had to disband the experiment. But even before the dust settles, the central government has launched another cash transfer pilot for Below Poverty Line (BPL) families. The last mile of the Indian JAM trinity is proving to be its weakest link. Not only are bank branches scanty – for every 10,000 adults India has only 13 ATMs compared to 50 ration shops – but mobile payments are also highly underdeveloped, compared to Kenya’s M-PESA and Philippines’ SMART. The Supreme Court has also repeatedly ruled against compulsory usage of Aadhaar unique identity numbers. After all, can one size fit all? But, how do the union territories opt out of the JAM?
english
<reponame>isabella232/ng-dropping-stones import {Injectable} from '@angular/core'; import { Score } from '../../models/highscore/highscore.model'; @Injectable() export abstract class StorageService { abstract getContestScores(): Promise<Score[]>; abstract getTodayContestScores(): Promise<Score[]>; abstract getContestHighestScore(): Promise<number>; abstract getTodayHighestScore(): Promise<number>; abstract saveHighscore(currentPlayer: Score): void; abstract deleteHighscore(): void; abstract getScoreLabel(score: Score): string; }
typescript
- Women Entrepreneurs Summit Felicitate Yami Gautam For Her Achievements! - Baaghi 2: This Actor To Play Villain In Tiger Shroff- Disha Patani's Love-Story! - Tiger Shroff: Every Sunday Is My Cheat Day & I Eat Everything! - Another Star Kid All Set For A Debut In Mollywood! - WOW! Sana Althaf Earns A Black Belt In Karate! - Past To Present: Who Can Replace Mohanlal & Others If Pingami Is Remade Now? - Actresses From Kerala Bag Top Honours At The TN State Film Awards! - 4 Releases This Weekend, July 14; What's Your Pick? - Two Kannada Films Kicked Out Of Multiplexes In A Week! - Darshan Thoogudeep's Upcoming Movie Taarak’s Release Date Is Announced! - Will Kichcha Sudeep's Next 2 Films Release Simultaneously? - What Is Regina Cassandra's Role In The Movie, Kurukshetra? - IN PICS: The Villain Shooting In London! - Latest TRP Ratings: TKSS Again Back On Top 10 Slot; Chandrakanta Drops Down; Dance Plus 3 Enters! - Bharti Singh & Harsh Limbachiyaa’s Wedding Date Revealed! - Ishqbaaz Spoiler: The Show Goes ‘Heyy Babyy’ Way; Shivaay, Om & Rudra Confused With Baby’s Entry! - Salman Khan Counselled Krushna Abhishek About Having Babies! - Naamkaran Spoiler: Neel’s Family Misunderstands Avni & Ali; Avni Leaves Neel’s House!
english
CASE 1 CENTRAL ELECTRONICS LIMITED Central Electronics Limited (CEL), a public sector enterprise of the Department of Scientific & Industrial Research was established at Sahibabad, U.P. in 1974, with the objective of productionising the designs and processes developed by our national R&D laboratories. During the first decade of its existence, CEL, brought into the market a great variety of products, producing them in the low volumes that the nascent electronics market was capable of absorbing, and generally competing with specialist companies abroad selling to a world-wide market. As a result, CEL came to be recognised as a technology-oriented company, which had painstakingly acquired skills and perfected technologies in several new and emerging areas. However, annual turnover remained at only a few crores of rupees, in spite of the impressively vast product portfolio. At the beginning of the Seventh Five Year Plan, CEL conducted an intensive and soul searching review to determine the directions in which it should move so as to increase the satisfaction to its stake holders-the clientele who bought from CEL, the government which owned the equity, CEL's suppliers and its employees. This review indicated that the Company should aim at excellence in a few carefully chosen areas, in which the likely demands of the market place were well matched to CEL's existing strengths. The emphasis on technology should continue, but with greater attention to market realities and with better networking between interested agencies. CEL's Mission: TO ACHIEVE EXCELLENCE IN THE TECHNOLOGY, MANUFACTURE AND MARKETING OF RENEWABLE ENERGY SYSTEMS AND SELECTED ELECTRONIC MATERIALS, COMPONENTS AND SYSTEMS clearly spells out the new focus and the interrelation of factors. With such an overall reorientation, CEL grew rapidly during the Seventh Plan (1985-1990), increasing its annual turnover by. roughly a factor of eight through timely induction of several high technology products to be a Rs. 25 crore Company. Market Driven Technology Development By constant and critical examination of the market place, a company can determine the needs that will be possible for it to satisfy. Interaction with end-users and those in the distribution chain will identify the exact need of the buyer segment, the features that would be sought, the way the need is presently met and other products/services competing for the same resources. From this information, product specification, price target, identification of resources will also emerge. Any product goes through induction, growth, maturity, decline and decay phases which taken together constitute the product life-cycle. R & D time should be short compared to such life-cycle. This however calls for early induction into the market of the company's product as against that of a competitor with corresponding prospect of large market share and hence larger revenues during the maturity and decline stages. A variety of skills need to be assembled before technology development can proceed in an integrated manner. If one were to develop a process, expertise on plant engineering utilities, instrumentation/control by-product utilisation, environmental engineering and material science, are as necessary as the basic process capability itself. Similarly, for developing a product, one needs a thorough understanding of the state-of-the-art in components and materials fabrication techniques as also product evaluation techniques. Skills in production engineering, jigs and tools, value engineering and product styling are also necessary. All skills needed for technology development should be close to hand; many should be in-house but some can be located nearby. It should be recognised that certain types and levels of expertise will be often required so as to get the necessary objectivity or involvement. Hence extension of linkages from the core group developing the technology to other specialised groups (such as Universities, Test Centres, Standards Laboratories, Consultancy Agencies) should be planned and encouraged from the inception itself. Used with permission (The case is suitably adapted). The cooperation extended by the management of CEL in permitting to use the case is thankfully acknowledged. Case material has been prepared to serve as a basis for class discussion. Cases are not designed to present illustrations of either correct or incorrect handling of managerial problems.
english
<reponame>paulo3011/sparkfy {"artist_id":"ARPKAUL1187B9A8F82","artist_latitude":40.14323,"artist_location":"New Jersey","artist_longitude":-74.72671,"artist_name":"<NAME>","duration":209.84118,"num_songs":1,"song_id":"SOBWWUW12A58A7A87B","title":"The Radio","year":1976}
json
{ "name": "@liripeng/vue-audio-player", "version": "1.2.1", "description": "Simple and practical Vue audio player component for PC mobile terminal(简单实用的 PC 移动端的 Vue 音频播放器组件)", "license": "MIT", "author": "liripeng <<EMAIL>>", "private": false, "main": "lib/vue-audio-player.umd.min.js", "keywords": [ "liripeng", "vue-audio-player", "vue-audio", "audio-player", "audio", "Vue音频播放器", "Vue音乐播放器" ], "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", "lib": "vue-cli-service build --target lib --name vue-audio-player --dest lib packages/index.js" }, "repository": { "type": "git", "url": "https://github.com/1014156094/vue-audio-player.git" }, "dependencies": { "@liripeng/vue-audio-player": "^1.2.1", "hammer-touchemulator": "^0.0.2", "vue": "^2.6.12", "vue-router": "^3.4.9" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.5.9", "@vue/cli-plugin-eslint": "^4.5.9", "@vue/cli-service": "^4.5.9", "@vue/eslint-config-standard": "^4.0.0", "babel-eslint": "^10.1.0", "eslint": "^6.8.0", "eslint-plugin-vue": "^5.0.0", "vue-template-compiler": "^2.6.12" }, "eslintConfig": { "root": true, "env": { "node": true }, "extends": [ "plugin:vue/strongly-recommended", "@vue/standard" ], "rules": { "no-debugger": "off", "space-before-function-paren": "off", "vue/html-closing-bracket-newline": "off" }, "parserOptions": { "parser": "babel-eslint" } }, "postcss": { "plugins": { "autoprefixer": {} } }, "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ] }
json
package net.htmlcsjs.coffeeFloppa.commands; import discord4j.core.object.entity.Message; import net.htmlcsjs.coffeeFloppa.CoffeeFloppa; import net.htmlcsjs.coffeeFloppa.FloppaLogger; import net.htmlcsjs.coffeeFloppa.helpers.CommandUtil; import org.jetbrains.annotations.NotNull; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.jetbrains.annotations.Nullable; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; public class AddCmdCommand implements ICommand { @Override public @NotNull String getName() { return "addCommand"; } @Nullable @Override public String execute(Message message) { if (CommandUtil.getAllowedToRun(message)) { String messageValue = message.getContent(); String call = messageValue.split(" ")[1].toLowerCase(); String[] splitResponse = messageValue.split(" "); String response = String.join(" ", Arrays.copyOfRange(splitResponse, 2, splitResponse.length)); boolean exists = false; JSONObject jsonData = CoffeeFloppa.getJsonData(); JSONArray newCommands = new JSONArray(); for (Object obj : (JSONArray) jsonData.get("commands")) { Map<?, ?> commandMap = (Map<?, ?>) obj; JSONArray newResponses = new JSONArray(); if (((String)commandMap.get("call")).equalsIgnoreCase(call)) { newResponses.add(response); exists = true; } newResponses.addAll((List<?>) commandMap.get("responses")); Map <String, Object> newCommandMap = new HashMap<>(); newCommandMap.put("call", commandMap.get("call")); newCommandMap.put("responses", newResponses); newCommands.add(newCommandMap); } if (!exists) {; Map <String, Object> newCommandMap = new HashMap<>(); JSONArray newResponses = new JSONArray(); newResponses.add(response); newCommandMap.put("call", call); newCommandMap.put("responses", newResponses); newCommands.add(newCommandMap); } jsonData.put("commands", newCommands); CoffeeFloppa.updateConfigFile(jsonData); if (exists) { return "command " + CoffeeFloppa.prefix + call + " was edited"; } else { return "command " + CoffeeFloppa.prefix + call + " was added"; } } else { FloppaLogger.logger.warn(message.getAuthor().get().getTag() + " is being very naughty"); return "Sorry, but you dont have the required permissions"; } } }
java
<gh_stars>0 import string import os from django.conf import settings from django.dispatch import receiver from django.db.models.signals import post_save, pre_delete, post_delete from django.db import models from django.urls import reverse from django.contrib.auth import get_user_model from django.contrib.postgres.fields import JSONField from django.core.files.storage import FileSystemStorage from django.contrib.staticfiles.storage import staticfiles_storage from django.core.exceptions import ValidationError from polymorphic.models import PolymorphicModel from .managers import AnnotationManager, Seq2seqAnnotationManager User = get_user_model() DOCUMENT_CLASSIFICATION = "TextClassificationProject" SEQUENCE_LABELING = "SequenceLabelingProject" SEQ2SEQ = "Seq2seqProject" PDF_LABELING = "PdfLabelingProject" PROJECT_CHOICES = ( (DOCUMENT_CLASSIFICATION, "Document Classification"), (SEQUENCE_LABELING, "Sequence Labeling"), (SEQ2SEQ, "Sequence to Sequence"), (PDF_LABELING, "PDF Labeling Project"), ) # Project class Project(PolymorphicModel): name = models.CharField(max_length=100, unique=True) description = models.TextField(default="") guideline = models.TextField(default="") created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) users = models.ManyToManyField(User, related_name="projects") project_type = models.CharField(max_length=30, choices=PROJECT_CHOICES, null=False) annotator_per_example = models.IntegerField(default=3) randomize_document_order = models.BooleanField(default=False) # Allow see annotation from other user collaborative_annotation = models.BooleanField(default=False) public = models.BooleanField(default=False) def get_absolute_url(self): return reverse("upload", args=[self.id]) @property def image(self): raise NotImplementedError() def get_annotation_serializer(self): raise NotImplementedError() def get_annotation_class(self): raise NotImplementedError() def get_storage(self, data): raise NotImplementedError() def __str__(self): return self.name class TextClassificationProject(Project): @property def image(self): return staticfiles_storage.url("images/cats/text_classification.jpg") def get_annotation_serializer(self): from doclabel.core.serializers import DocumentAnnotationSerializer return DocumentAnnotationSerializer def get_annotation_class(self): return DocumentAnnotation def get_storage(self, data): from .utils import ClassificationStorage return ClassificationStorage(data, self) class SequenceLabelingProject(Project): @property def image(self): return staticfiles_storage.url("images/cats/sequence_labeling.jpg") def get_annotation_serializer(self): from .serializers import SequenceAnnotationSerializer return SequenceAnnotationSerializer def get_annotation_class(self): return SequenceAnnotation def get_storage(self, data): from .utils import SequenceLabelingStorage return SequenceLabelingStorage(data, self) class Seq2seqProject(Project): @property def image(self): return staticfiles_storage.url("images/cats/seq2seq.jpg") def get_annotation_serializer(self): from .serializers import Seq2seqAnnotationSerializer return Seq2seqAnnotationSerializer def get_annotation_class(self): return Seq2seqAnnotation def get_storage(self, data): from .utils import Seq2seqStorage return Seq2seqStorage(data, self) class PdfLabelingProject(Project): @property def image(self): return staticfiles_storage.url("images/cats/pdf_labeling.jpg") def get_annotation_serializer(self): from .serializers import PdfAnnotationSerializer return PdfAnnotationSerializer def get_annotation_class(self): return PdfAnnotation def get_storage(self, data): from .utils import PdfLabelingStorage return PdfLabelingStorage(data, self) # Label class Label(models.Model): PREFIX_KEYS = (("ctrl", "ctrl"), ("shift", "shift"), ("ctrl shift", "ctrl shift")) SUFFIX_KEYS = tuple((c, c) for c in string.ascii_lowercase) text = models.CharField(max_length=100) prefix_key = models.CharField( max_length=10, blank=True, null=True, choices=PREFIX_KEYS ) suffix_key = models.CharField( max_length=1, blank=True, null=True, choices=SUFFIX_KEYS ) project = models.ForeignKey( Project, related_name="labels", on_delete=models.CASCADE ) background_color = models.CharField(max_length=7, default="#209cee") text_color = models.CharField(max_length=7, default="#ffffff") created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return self.text def clean(self): # Don't allow shortcut key not to have a suffix key. if self.prefix_key and not self.suffix_key: raise ValidationError("Shortcut key may not have a suffix key.") # each shortcut (prefix key + suffix key) can only be assigned to one label if self.suffix_key or self.prefix_key: other_labels = self.project.labels.exclude(id=self.id) if other_labels.filter( suffix_key=self.suffix_key, prefix_key=self.prefix_key ).exists(): raise ValidationError( "A label with this shortcut already exists in the project" ) super().clean() class Meta: unique_together = (("project", "text"),) # Dataset class Document(models.Model): # text content or pdf content text = models.TextField() project = models.ForeignKey( Project, related_name="documents", on_delete=models.CASCADE ) meta = models.TextField(default="{}") created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) annotations_approved_by = models.ForeignKey( User, on_delete=models.SET_NULL, null=True ) def __str__(self): return self.text[:50] # Annotation class Annotation(models.Model): objects = AnnotationManager() prob = models.FloatField(default=0.0) manual = models.BooleanField(default=False) user = models.ForeignKey(User, on_delete=models.CASCADE) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) # user confirm finish task set finished = models.BooleanField(default=False) class Meta: abstract = True class DocumentAnnotation(Annotation): document = models.ForeignKey( Document, related_name="doc_annotations", on_delete=models.CASCADE ) label = models.ForeignKey(Label, on_delete=models.CASCADE) class Meta: unique_together = (("document", "user", "label"),) class SequenceAnnotation(Annotation): document = models.ForeignKey( Document, related_name="seq_annotations", on_delete=models.CASCADE ) label = models.ForeignKey(Label, on_delete=models.CASCADE) start_offset = models.IntegerField() end_offset = models.IntegerField() tokens = JSONField() def clean(self): if self.start_offset >= self.end_offset: raise ValidationError("start_offset is after end_offset") class Meta: unique_together = (("document", "user", "label", "start_offset", "end_offset"),) class Seq2seqAnnotation(Annotation): # Override AnnotationManager for custom functionality objects = Seq2seqAnnotationManager() document = models.ForeignKey( Document, related_name="seq2seq_annotations", on_delete=models.CASCADE ) text = models.CharField(max_length=500) class Meta: unique_together = (("document", "user", "text"),) class PdfAnnotation(Annotation): document = models.ForeignKey( Document, related_name="pdf_annotations", on_delete=models.CASCADE ) label = models.ForeignKey(Label, on_delete=models.CASCADE) content = JSONField() position = JSONField() class Meta: unique_together = (("document", "user", "label", "content", "position"),) class Role(models.Model): name = models.CharField(max_length=100, unique=True) description = models.TextField(default="") created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return self.name class RoleMapping(models.Model): user = models.ForeignKey( User, related_name="role_mappings", on_delete=models.CASCADE ) project = models.ForeignKey( Project, related_name="role_mappings", on_delete=models.CASCADE ) role = models.ForeignKey(Role, on_delete=models.CASCADE) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def clean(self): other_rolemappings = self.project.role_mappings.exclude(id=self.id) if other_rolemappings.filter(user=self.user, project=self.project).exists(): raise ValidationError( "This user is already assigned to a role in this project." ) class Meta: unique_together = ("user", "project", "role") @receiver(post_save, sender=RoleMapping) def add_linked_project(sender, instance, created, **kwargs): if not created: return userInstance = instance.user projectInstance = instance.project isAnnotator = instance.role.name == settings.ROLE_ANNOTATOR if userInstance and projectInstance and isAnnotator: user = User.objects.get(pk=userInstance.pk) project = Project.objects.get(pk=projectInstance.pk) user.projects.add(project) user.save() @receiver(post_save) def add_superusers_to_project(sender, instance, created, **kwargs): if not created: return if sender not in Project.__subclasses__(): return superusers = User.objects.filter(is_superuser=True) admin_role = Role.objects.filter(name=settings.ROLE_PROJECT_ADMIN).first() if superusers and admin_role: RoleMapping.objects.bulk_create( [ RoleMapping( role_id=admin_role.id, user_id=superuser.id, project_id=instance.id ) for superuser in superusers ] ) @receiver(post_save, sender=User) def add_new_superuser_to_projects(sender, instance, created, **kwargs): if created and instance.is_superuser: admin_role = Role.objects.filter(name=settings.ROLE_PROJECT_ADMIN).first() projects = Project.objects.all() if admin_role and projects: RoleMapping.objects.bulk_create( [ RoleMapping( role_id=admin_role.id, user_id=instance.id, project_id=project.id, ) for project in projects ] ) @receiver(pre_delete, sender=RoleMapping) def delete_linked_project(sender, instance, using, **kwargs): userInstance = instance.user projectInstance = instance.project isAnnotator = instance.role.name == settings.ROLE_ANNOTATOR if userInstance and projectInstance and isAnnotator: user = User.objects.get(pk=userInstance.pk) project = Project.objects.get(pk=projectInstance.pk) user.projects.remove(project) user.save() @receiver(post_delete, sender=Document) def delete_file_on_remove(sender, instance, **kwargs): file = instance.text fs = FileSystemStorage(location=settings.MEDIA_ROOT + "/pdf_documents/") if fs.exists(file): fs.delete(file) @receiver(post_delete, sender=PdfAnnotation) def delete_anno_on_remove(sender, instance, **kwargs): content = instance.content if "image" in content: doc = instance.document fs = FileSystemStorage( location=settings.MEDIA_ROOT + "/pdf_annotations/doc_" + str(doc.id) + "/" ) if fs.exists(content["image"]): fs.delete(content["image"])
python
Adani Enterprises' share price gained 4.3% on the back of the company's filing with the exchanges, announcing the board is considering raising funds via a stake sale. Share price of the embattled Adani Enterprises soared 4.3% to touch an intraday high of Rs 1975 as the company announced the board of directors will convene on 13 May to consider raising funds. The additional capital will be raised by way of issuance of equity shares or other eligible securities through a private placement, a qualified institutions placement or a preferential issue, the company said in a filing with the exchanges.
english
<filename>app/lib/level-hub/component.json { "name": "level-hub", "description": "a menu of available levels", "dependencies": { "component/jquery": "*", "twitter/hogan.js": "*" }, "development": {}, "main": "level-hub.js", "scripts": [ "level-hub.js", "template.js", "level-template.js" ], "styles": [ "level-hub.css" ], "local": [ "audio" ] }
json
India vs West Indies 2019: 1st ODI, Chennai – India’s Predicted XI; After entertaining fans with the brilliant display in the shorter format of the game, the Indian National Cricket Team will look to take their form into the 50-over format as well. All the players in the side have enough experience under their belt to outsmart Kieron Pollard-led side in Chennai. The match is scheduled to play in Chennai on Sunday at 14:00 IST. The pitch is expected to help the spinners, as Chidambaram Stadium offers good turn and bounce. Meanwhile, we figured out predicted Playing XI of the Indian team for the first ODI. India’s Predicted Playing XI: 1. Rohit Sharma: The vice-captain of India always came good for India whenever he played in Chennai. He is in glorious touch with the bat and would like to carry-on his form in the ODI format of the game as well. His performance will be key for India.
english
import React, {memo, useCallback} from 'react'; import styled from 'styled-components/native'; import {Alphabet} from 'src/data/alphabets'; import {TextB} from 'src/components/base-ui/TextAtm'; import {useNavigation} from '@react-navigation/native'; import {ROUTERS} from 'src/ultis/navigations'; interface Props { data: Array<Alphabet>; } const RowItem = memo((props: Props) => { const navigation = useNavigation(); const onPress = useCallback((id: number) => { navigation.navigate(ROUTERS.Draw, { idAlphabet: id, isAlphabet: true, }); }, []); return ( <Container> {props.data.map(item => { return ( <ItemAlphabet activeOpacity={0.8} key={item.id} onPress={() => { onPress(item.id); }}> <TextB size={56}>{item.text}</TextB> </ItemAlphabet> ); })} </Container> ); }); export default RowItem; const Container = styled.View` flex-direction: row; justify-content: center; margin-bottom: 32px; `; const ItemAlphabet = styled.TouchableOpacity` width: 88px; height: 88px; box-shadow: 0 5px 5px rgba(0, 0, 0, 0.22); border-radius: 24px; background-color: #dadada; align-items: center; justify-content: center; margin-left: 16px; margin-right: 16px; `;
typescript
Nagpur (Maharashtra): All over the country 21000 banned explosives have been robbed from licensees and directed elsewhere. According to the information received by the ‘Indian Express’ from 2004-2006, 86,899 detonators, 20,150 kilograms of explosives, 52,740 metre detonating fuses, 419 kilograms gelatine, etc were stolen. Live cartridges and boosters in huge amounts are missing from godowns. It is impossible not only to trace the culprits but also to trace where the explosives have reached. These missing reports received from officials in Kolkatta, Rourkela, Baroda, Bhopal and Vellore are very similar. They all state that the police have not done anything in this regard. Shri M. Anbathun the Controller of Explosives has state that despite theft of explosives occurring in Naxal and terrorist active areas the police have suppressed the information. Due to less manpower in offices only 25% of the licensees were subjected to inspection. (A typical example of the snail -paced activities of the Central government. When the police did not act was it not the responsibility of the concerned officers to pursue the matter ? Government officers with such attitudes should be dismissed ! Why should such incompetent police machinery be nurtured ? Not inspecting licensees for lack of manpower has been going on for years. This callous attitude has led to the explosives falling in the hands of terrorists and Naxalites. These officials should face inquiry and the guilty should be labelled as anti-nationalist and anti-social and punished severely. – Editor )
english
from .relu import ReLU from .sigmoid import Sigmoid from .softmax import Softmax
python
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Princeton Association of Women in STEM</title> <!-- Bootstrap Core CSS --> <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'> <!-- Plugin CSS --> <link href="vendor/magnific-popup/magnific-popup.css" rel="stylesheet"> <!-- Theme CSS --> <link href="css/creative.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body id="page-top"> <nav id="mainNav" class="navbar navbar-default navbar-fixed-top"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i> </button> <a class="navbar-brand page-scroll" href="#page-top">Princeton Association of Women in STEM</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li> <a class="page-scroll" href="index.html">About</a> </li> <li> <a class="navbar-button" href="members.html">Members</a> </li> <li> <a class="navbar-button" href="info.html">Info</a> </li> <li> <a class="navbar-button" href="events.html">Events</a> </li> <li> <a class="navbar-button" href="links.html">Links</a> </li> <li> <a class="navbar-button" href="index.html">Blog</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container-fluid --> </nav> <header class="links-background"> <div class="header-content"> <div class="col-lg-12 text-center"> <p class="daffodil gianttext">LINKS</p> </div> </div> </header> <section id="links" class="title"> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> <h1 class="darknavy">Summer Internships and Study Abroad Programs</h1> <h3 class="tangerine">Princeton Programs</h3> <p class="text darknavy"> <a href="http://molbio.princeton.edu/undergraduate/research/summer-research">Mol Bio Summer Research</a> <br> Mol bio-sponsored Summer Undergraduate Research projects <br><br> <a href="https://undergraduateresearch.princeton.edu/programs/summer-programs/www.princeton.edu/pei">Summer Research</a> <br> Various Princeton summer internships, including some Health-related, chemistry, mechanical and aerospace engineering, molecular biophysics, and other STEM programs <br><br> <a href="http://kellercenter.princeton.edu/explore/internships/reach/internships/">Keller Center</a> <br> Internships offered through the Keller center for Innovation in Engineering Education <br><br> <a href="http://kellercenter.princeton.edu/explore/internships/reach/internships/">Princeton Environmental Institute</a> <br> Summer internships offered through the Princeton environmental institute; summer 2016 positions will be posted in December <br><br> <a href="http://kellercenter.princeton.edu/explore/internships/reach/internships/">Princeton IIP</a> <br> Princeton IIP <br> </p> <h3 class="tangerine">Programs not offered through Princeton</h3> <p class="text darknavy"> <a href="http://gps.princeton.edu/index.cfm?FuseAction=Programs.ViewProgram&Program_ID=10223">Summer Study Abroad</a> <br> A wide variety of non-Princeton summer study abroad programs, including the Pembroke-King’s Programme of Cambridge <br> </p> <h3 class="tangerine">Biology/Biochemistry/Biomedical Science Research Programs</h3> <h4 class="blueberry">(Courtesy of <NAME>- talk to her about these kinds of internships, she is definitely the expert!)</h4> <p class="text darknavy"> <a href="https://www.training.nih.gov/programs/sip">NIH Internship Program</a> <br> NIH Internship Program in Biomedical Research/SIP <br><br> <a href="https://www.cshl.edu/Education/Undergraduate-Research.html">Cold Spring Harbor </a> <br> Undergraduate Research Program at the Cold Spring Harbor Laboratory (New York) <br><br> <a href="https://www.jax.org/education-and-learning/high-school-students-and-undergraduates/learn-earn-and-explore">The Jackson Laboratory</a> <br> Summer Student Program at The Jackson Laboratory (Bar Harbor, Maine) and The Jackson Laboratory for Genomic Medicine (Farmington, Connecticut) <br><br> <a href="http://hskp.bwh.harvard.edu">Harvard Summer Research Program </a> <br> Harvard Summer Research Program in Kidney Medicine <br><br> <a href="http://www.hopkinsmedicine.org/education/graduate-programs/student-life/diversity/sip.html">Johns Hopkins Summer Internship Program </a> <br> <i>*note: freshmen are only eligible to apply to the Brady Urological Institute, the Institute of NanoBioTechnologh, and the Pulmonary Medicine divisions </i> <br><br> <a href="http://www.massgeneral.org/mao/education/internship.aspx?id=5">Massachusetts General Hospital </a> <br> Massachusetts General Hospital Summer Research Trainee Program <br><br> <a href="http://biosciences.stanford.edu/prospective/diversity/ssrp/">Stanford Biosciences SSRP-Amgen Scholars Program</a> <br> <i>*note: for sophomores, juniors and seniors</i> <br><br> <a href="https://globalhealth.virginia.edu/MHIRT">University of Virginia MHIRT </a> <br> University of Virginia MHIRT (Minority Health & Health Disparities International Research Training) – opportunity to do global health research in Uganda, South Africa, and St. Kitts and Nevis <br><br> <a href="https://medschool.vanderbilt.edu/vssa/application">Vanderbilt Academy</a> <br> Summer Science Academy at Vanderbilt Academy <br><br> <a href="https://sfp.caltech.edu/programs/surf">Caltech</a> <a href="http://reumanager.com/mstp-surf/">UC San Diego</a> <a href="http://gsas.yale.edu/diversity/programs/summer-undergraduate-research-fellowship-surf">Yale</a> <br> Summer Undergraduate Research Fellowships <br><br> </p> <h3 class="tangerine">Tech and Finance internships</h3> <h4 class="blueberry">(courtesy of Ify Ikpeazu)</h4> </div> <div class="col-lg-12"> <div class="col-md-6 text-center"> <h4 class="blueberry">Software </h4> <p class="text darknavy"> 1. FacebookU (Sophmore) <br> 2. Google (Engineering Practicum) <br> 3. Apple <br> 4. LinkedIn <br> 5. Palantir (Technical Writer) <br> 6. Amazon<br> 7. Microsoft <br> 8. Pinterest <br> 9. MongoDB <br> 10. eBay <br> 11. Bloomberg <br> 12. Factual <br> 13. Infosys <br> 14. TripAdvisor <br> </p> </div> <div class="col-md-6 text-center"> <p class="text dark navy"> 15. Oracle <br> 16. Dropbox <br> 17. Nextdoor <br> 18. Square <br> 19. Twitter <br> 20. Yelp <br> 21. Airbnb <br> 22. Dell <br> 23. Mozilla <br> 24. Intuit <br> 25. Twitter <br> 26. Yext? <br> 27. Zynga <br> 28. Cisco <br> 29. Visa Co. <br> 30. Sales Force <br> </p> </div> <div class="col-md-6 text-center"> <h4 class="blueberry">Finance and Consulting </h4> <p class="text darknavy"> 1. <NAME> <br> 2. <NAME> <br> 3. Citigroup <br> 4. <NAME> <br> 5. <NAME> <br> 6. Bain and Company <br> 7. <NAME> <br> 8. Accenture-Student Empowerment Program <br> 9. <NAME> <br> </p> </div> <div class="col-md-6 text-center"> <p class="text dark navy"> 10. Boston Consulting Group <br> 11. PriceWaterhouseCoopers <br> 12. Coca-Cola <br> 13. Barclay’s <br> 14. Deloitte <br> 15. UBS <br> 16. EY <br> 17. Blackstone Group <br> </p> </div> </div> </div> </div> </section> <!-- jQuery --> <script src="vendor/jquery/jquery.min.js"></script> <!-- Bootstrap Core JavaScript --> <script src="vendor/bootstrap/js/bootstrap.min.js"></script> <!-- Plugin JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script> <script src="vendor/scrollreveal/scrollreveal.min.js"></script> <script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script> <!-- Theme JavaScript --> <script src="js/creative.min.js"></script> </body> </html>
html
Should those who already qualified for the 2020 Olympics have to qualify again? A fourth-place finisher says 'no' She was 11 seconds away. A few dozen yards down a spectator-lined Atlanta road. For hours, and months and years, Des Linden had trained; worked; struggled; hoped; dreamed. Then, two hours, 29 minutes and three seconds after she began running underneath a shining February sun, everything vanished. She would soon cross the finish line fourth at U.S. marathon trials. Only the top three would qualify for the 2020 Olympics. Over the coming weeks, though, the coronavirus spread. Uncertainty spread with it. Tokyo 2020 became endangered. On Tuesday, the Games were postponed. And fans wondered: Should trials be re-run? Is a February 2020 competition the best way to select medal contenders for July 2021? Should Linden and her fellow runners-up get another shot next winter? USA Track and Field, along with hundreds of governing bodies worldwide, has decisions to make. Linden, however, doesn’t “even think the federation would entertain that idea.” Athletes, she says, “would push back.” And Linden – one of the many whose dream would be rekindled – would lead the resistance. Would she even run at a redo? When Linden crossed the finish line in Atlanta, the celebration was already underway. One hundred seconds earlier, Aliphine Tuliamuk had raised her fists in exhausted elation. Molly Seidel followed in second, and the two embraced, American flags in hand, their drained bodies supporting each other and surging with emotion. A minute later, Sally Kipyego glided down the final straightaway to join them – at the finish, and in Tokyo. She keeled over with a smile on her face. Eleven seconds later, Linden crossed and looked around. She saw Tuliamuk, one of 32 siblings, the first person from her Kenyan village to graduate college. She’d spent two recent years in the buildup to 2020 sidelined by injury, driving for Uber and crocheting. Now, at age 30, she was an Olympian. Linden saw Seidel, a 25-year-old who’d just run her first marathon, ever. She’d overcome an eating disorder. She’d worked at a coffee shop and as a babysitter to make ends meet. She, too, was now an Olympian. Linden saw Kipyego, a 34-year-old mom who came to the United States from Kenya to run in college. She represented her native country at the 2012 Olympics. In 2019, two years after giving birth to a daughter, she became eligible to represent the U.S. Now she was an American Olympian. She also, however, clapped and smiled. She hugged the winners. Because she was “super happy” they got to experience that victorious side as well. It’s those moments, those feelings, that were on her mind Tuesday when postponement was announced. Some fans, she says, with a trials redo in mind, have wondered: You might get another shot. This is cool, right? The past two weeks have been weeks of uncertainty, fear, perhaps anxiety for hundreds of athletes. Postponement, for many, has brought relief. The last thing already-qualified Olympians need is a threat that their accomplishments could be undone, their joyous steps forcibly retraced, the moments they’d strived for erased. “To have that chatter, in a time when you just want something certain to look forward to, is just unfair for them,” Linden says. That, however, is not the point. In theory, it’s what Olympic trials are designed to select, but not in practice. She felt that finality last month. She accepted it and moved forward, processing her disappointment just as the winners processed their achievements. As an athlete, she feels, walking that back isn’t right. The race has been run. It can’t be un-run. More from Yahoo Sports:
english
/************************************************************************************ **Author:  <NAME>; Email: <EMAIL> **Package: net **Element: net.IP **Type: type ------------------------------------------------------------------------------------ **Definition: type IP []byte func (ip IP) DefaultMask() IPMask func (ip IP) Equal(x IP) bool func (ip IP) IsGlobalUnicast() bool func (ip IP) IsInterfaceLocalMulticast() bool func (ip IP) IsLinkLocalMulticast() bool func (ip IP) IsLinkLocalUnicast() bool func (ip IP) IsLoopback() bool func (ip IP) IsMulticast() bool func (ip IP) IsUnspecified() bool func (ip IP) MarshalText() ([]byte, error) func (ip IP) Mask(mask IPMask) IP func (ip IP) String() string func (ip IP) To16() IP func (ip IP) To4() IP func (ip *IP) UnmarshalText(text []byte) error ------------------------------------------------------------------------------------ **Description: An IP is a single IP address, a slice of bytes. Functions in this package accept either 4-byte (IPv4) or 16-byte (IPv6) slices as input. Note that in this documentation, referring to an IP address as an IPv4 address or an IPv6 address is a semantic property of the address, not just the length of the byte slice: a 16-byte slice can still be an IPv4 address. DefaultMask returns the default IP mask for the IP address ip. Only IPv4 addresses have default masks; DefaultMask returns nil if ip is not a valid IPv4 address. Equal reports whether ip and x are the same IP address. An IPv4 address and that same address in IPv6 form are considered to be equal. IsGlobalUnicast reports whether ip is a global unicast address. The identification of global unicast addresses uses address type identification as defined in RFC 1122, RFC 4632 and RFC 4291 with the exception of IPv4 directed broadcast addresses. It returns true even if ip is in IPv4 private address space or local IPv6 unicast address space. IsInterfaceLocalMulticast reports whether ip is an interface-local multicast address. IsLinkLocalMulticast reports whether ip is a link-local multicast address. IsLinkLocalUnicast reports whether ip is a link-local unicast address. IsLoopback reports whether ip is a loopback address. IsMulticast reports whether ip is a multicast address. IsUnspecified reports whether ip is an unspecified address, either the IPv4 address "0.0.0.0" or the IPv6 address "::". MarshalText implements the encoding.TextMarshaler interface. The encoding is the same as returned by String, with one exception: When len(ip) is zero, it returns an empty slice. Mask returns the result of masking the IP address ip with mask. String returns the string form of the IP address ip. It returns one of 4 forms: - "<nil>", if ip has length 0 - dotted decimal ("192.0.2.1"), if ip is an IPv4 or IP4-mapped IPv6 address - IPv6 ("2001:db8::1"), if ip is a valid IPv6 address - the hexadecimal form of ip, without punctuation, if no other cases apply To16 converts the IP address ip to a 16-byte representation. If ip is not an IP address (it is the wrong length), To16 returns nil. To4 converts the IPv4 address ip to a 4-byte representation. If ip is not an IPv4 address, To4 returns nil. UnmarshalText implements the encoding.TextUnmarshaler interface. The IP address is expected in a form accepted by ParseIP. ------------------------------------------------------------------------------------ **要点总结: 0. IP类型是代表单个IP地址的[]byte切片。本包的函数都可以接受4字节(IPv4)和16字节(IPv6)的切片 作为输入。注意,IP地址是IPv4地址还是IPv6地址是语义上的属性,而不取决于切片的长度:16字节的切片 也可以是IPv4地址; 1. DefaultMask方法返回IP地址ip的默认子网掩码。只有IPv4有默认子网掩码;如果ip不是合法的IPv4地址, 会返回nil;  2. Equal方法判断ip和x是否代表同一个IP地址,代表同一地址的IPv4地址和IPv6地址也被认为是相等的;  3. IsGlobalUnicast方法判断ip是否是全局单播地址;  4. IsInterfaceLocalMulticast方法判断ip是否是接口本地组播地址;  5. IsLinkLocalMulticast方法判断ip是否是链路本地组播地址;  6. IsLinkLocalUnicast方法判断ip是否是链路本地单播地址;  7. IsLoopback方法判断ip是否是环回地址;  8. IsMulticast方法判断ip是否是组播地址;  9. IsUnspecified方法判断ip是否是未指定地址;  10. MarshalText方法实现了encoding.TextMarshaler接口,返回值和String方法一样;  11. Mask方法认为mask为ip的子网掩码,返回ip的网络地址部分的ip,主机地址部分都置0;  12. String方法返回IP地址ip的字符串表示。如果ip是IPv4地址,返回值的格式为点分隔的, 如"172.16.31.10";否则表示为IPv6格式,如"fc00:db20:35b:7399::5";  13. To16方法将一个IP地址转换为16字节表示。如果ip不是一个IP地址(长度错误),To16会返回nil;  14. To4方法To4将一个IPv4地址转换为4字节表示。如果ip不是IPv4地址,To4会返回nil; 15. UnmarshalText实现了encoding.TextUnmarshaler接口,IP地址字符串是ParseIP函数可以接受的格式。 *************************************************************************************/ package main import ( "fmt" "net" ) func main() { ip := net.IPv4(byte(192), byte(168), byte(0), byte(1)) fmt.Println(ip) //返回 ipp := net.ParseIP("172.16.31.10") fmt.Printf("IP:%#v\n", ipp) ipm := ip.DefaultMask() fmt.Println(ipm.String()) fmt.Println("-------IsGlobalUnicast,IsLinkLocalMulticaset,IsLinkLocalMulticaset-----------------") fmt.Println(ip.IsGlobalUnicast(), ipp.IsGlobalUnicast(), net.ParseIP("255.255.256.0").IsGlobalUnicast()) fmt.Println(ip.IsLinkLocalMulticast(), ip.IsLinkLocalUnicast(), ip.IsInterfaceLocalMulticast()) fmt.Println(ipp.IsLinkLocalMulticast(), ipp.IsLinkLocalUnicast(), ipp.IsInterfaceLocalMulticast()) fmt.Println("-------IsLoopback,IsUnspecified,IsMulticast--------------------") fmt.Println(ip.IsMulticast(), ip.IsLoopback(), ip.IsUnspecified()) fmt.Println(ipp.IsMulticast(), ipp.IsLoopback(), ipp.IsUnspecified()) fmt.Println("-------------MarshalTex,String,Equal--------------") fmt.Println(ip.String(), ipp.String()) fmt.Println(ip.Equal(ipp), ip.Equal(ip)) mt1, _ := ip.MarshalText() mt2, _ := ipp.MarshalText() fmt.Println(string(mt1), string(mt2)) ip.UnmarshalText([]byte("192.168.3.11")) fmt.Println(ip.String()) fmt.Println("-------------MarshalTex,String,Equal--------------") to4 := ip.To4() to16 := ip.To16() fmt.Println(to4.String(), to16.String()) fmt.Printf("%#v\n", to4) fmt.Printf("%#v\n", to16) }
go
<reponame>CallControl/CallControlClient (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['../ApiClient', '../model/Complaints'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('../model/Complaints')); } else { // Browser globals (root is window) if (!root.CallControlApi) { root.CallControlApi = {}; } root.CallControlApi.ComplaintsApi = factory(root.CallControlApi.ApiClient, root.CallControlApi.Complaints); } }(this, function(ApiClient, Complaints) { 'use strict'; /** * Complaints service. * @module api/ComplaintsApi * @version 2015-11-01 */ /** * Constructs a new ComplaintsApi. * @alias module:api/ComplaintsApi * @class * @param {module:ApiClient} apiClient Optional API client implementation to use, default to {@link module:ApiClient#instance} * if unspecified. */ var exports = function(apiClient) { this.apiClient = apiClient || ApiClient.instance; /** * Callback function to receive the result of the complaintsComplaints operation. * @callback module:api/ComplaintsApi~complaintsComplaintsCallback * @param {String} error Error message, if any. * @param {module:model/Complaints} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Complaints: Free service (with registration), providing community and government complaint lookup by phone number for up to 2,000 queries per month. Details include number complaint rates from (FTC, FCC, IRS, Indiana Attorney General) and key entity tag extractions from complaints. * This is the main funciton to get data out of the call control reporting system&lt;br /&gt;\r\n Try with api_key &#39;demo&#39; and phone numbers 18008472911, 13157244022, 17275567300, 18008276655, and 12061231234 (last one not spam) * @param {String} phoneNumber phone number to search * @param {module:api/ComplaintsApi~complaintsComplaintsCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {module:model/Complaints} */ this.complaintsComplaints = function(phoneNumber, callback) { var postBody = null; // verify the required parameter 'phoneNumber' is set if (phoneNumber == undefined || phoneNumber == null) { throw "Missing the required parameter 'phoneNumber' when calling complaintsComplaints"; } var pathParams = { 'phoneNumber': phoneNumber }; var queryParams = { }; var headerParams = { }; var formParams = { }; var authNames = []; var contentTypes = []; var accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; var returnType = Complaints; return this.apiClient.callApi( '/api/2015-11-01/Complaints/{phoneNumber}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } }; return exports; }));
javascript
{ "name": "angular2gridster", "main": "index.d.ts", "author": "<NAME>", "description": "Dashboard component for angular 2", "globalDevDependencies": { "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2", "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#dd638012d63e069f2c99d06ef4dcc9616a943ee4" } }
json
Union Home Minister Amit Shah's Jammu and Kashmir visit was deferred due to existing weather conditions. Shah was scheduled to attend the Vikasit Bharat Sankalpa Yatra in Jammu, inaugurate projects worth Rs 1,379 crore, including the E-buses in Jammu city and lay the foundation stone for projects worth Rs 2,348 crore. Shah had also scheduled to distribute the appointment letters to those appointed on compassionate grounds. In the past 24 hours, widespread rainfall hit various parts of Tamil Nadu, including Chennai, prompting the state government to declare school closures. The India Meteorological Department forecasts additional precipitation, particularly heavy rain in isolated areas of Chengalpattu and Kancheepuram districts. Chennai, Tiruvallur, Ranipet, Vellore, Thiruvannamalai, Villupuram, Ramanathapuram, Thoothukudi, Tirunelveli districts, and Puducherry may also experience heavy rain. "In view of the inclement weather conditions in the region, Punjab Chief Minister Bhagwant Singh Mann has ordered that all the government, government-aided and private schools in the state up to Class 10 will remain closed from January 8-14," it said. Airtel's plan to use Google's parent company, Alphabet, laser technology is likely to face bumps because of weather conditions in rural and hard-to-reach places. Taara's laser Internet technology was developed at Alphabet's California innovation lab, called X. "We are not able to comment on Airtel's deployment of Taara's technology," an X spokeswoman wrote in response to ET's queries. Inclement weather caused obstacles in evacuating 29 Myanmar soldiers, including a major and a captain fled to Mizoram after their camp in Myanmar. Officials said that despite attempts on Friday and Saturday bad weather conditions across Mizoram prevented the Indian Air Force (IAF) from airlifting them out of the state. Northern Europe is preparing for severe weather conditions and gale-force winds, with warnings of widespread flooding in Danish waters, the Baltic Sea, and northern regions of the UK. The Danish Meteorological Institute predicts the worst flooding in over a century, while the Met Office has issued a rare red alert for parts of Scotland due to expected "exceptional rainfall." Storm Babet, as it is known, has already impacted Ireland, with flooding and power outages reported. Cricket enthusiasts and players alike will be keeping a close eye on the weather conditions in Sri Lanka, as rain may play a significant role in the outcome of this much-anticipated final of the Asia Cup. According to the latest weather updates for Sunday, there is a possibility of thunderstorms with scattered showers expected during the afternoon and evening. The highly anticipated Asia Cup 'Super 4' clash between India and Pakistan was interrupted by rain and suspended. The match will resume on Monday if the weather permits. India's openers, Rohit Sharma and Shubman Gill, had a strong partnership, but rain cut their innings short. The continuation of the match is uncertain due to the high probability of rain in Colombo. If the match cannot be completed, each team will receive one point. Amid inclement weather conditions, the new track to Mata Vaishno Devi cave shrine was closed, according to a police official. But, the old track to the shrine is opened for the yatris to use. Over 2,29,221 pilgrims have performed darshan at the Holy Cave in Amarnath since the beginning of Yatra on July 1, an official statement said. Enabling severe weather alerts on your iPhone or Android phone is a crucial step in staying informed and prepared for adverse weather conditions. By following the simple steps, you can activate these alerts and receive timely notifications to help ensure your safety and well-being. Remember to customize your alert settings according to your preferences, and stay vigilant during severe weather events. In order to ensure the safety of the pilgrims, the authorities have decided to temporarily suspend the yatra until further notice. The unpredictable and inclement weather conditions have made it hazardous to continue the pilgrimage at this time. The pilgrimage organizers are closely monitoring the weather situation and will resume the yatra as soon as it is deemed safe for the devotees. More than 150 Air India passengers travelling from Delhi to Port Blair spent a night in the city after their flight was diverted on Sunday due to inclement weather. Air India on Monday said it sincerely regrets the inconvenience caused to the passengers. There were 152 passengers in the flight. As many as 2,400 tourists were stranded in parts of North Sikkim as roads were blocked due to heavy rains since the last three days. The district administration has started necessary operations to evacuate the tourists from the said area. The department has also set up helpline numbers to answer queries regarding the tourists stranded. Around 300 people were trapped in the Dharchula and Gunji regions of Uttarakhand after a landslide, while an orange warning was issued for heavy rain, hailstorms, lightning, and wind gusts of up to 80 km per hour. The Uttarakhand Police and the weather department have warned tourists to be cautious, to take breaks and to seek shelter only in secure, concrete structures during inclement weather. Earlier, the police had asked Yatra pilgrims to plan their journey and bring rain and warm clothes with them. Flight operations at Delhi's Indira Gandhi International Airport were also affected on Saturday due to rain and inclement weather. The airport authorities have advised the people to contact the airlines for getting updated flight information. "Due to bad weather, flight operations are impacted at Delhi Airport. It is advisable to contact the airlines concerned for updated flight information," the Delhi Airport said in a statement on Saturday. Flight operations at Delhi's Indira Gandhi International Airport were also affected due to heavy rain and inclement weather. The airport authorities have advised the people to contact the airlines for getting updated flight information. In the meantime, registration is still ongoing for Badrinath, Gangotri and Yamunotri Dham at the passenger registration centers located in Rishikesh, according to the District Magistrate. Rudraprayag District Magistrate Mayur Dixit said that an appeal has been made for the safety of the pilgrims coming to visit Kedarnath Dham. The Centre on Monday said about 8-10 per cent of the wheat crop is estimated to have been damaged due to recent untimely rains and hailstorms in key producing states, but better yield prospects in late-sown areas are expected to make up for the production loss. According to officials, a few inches of snow had accumulated in Lamber, where Yatra was scheduled to spend the night camping in Banihal. The weather office has forecast heavy snowfall over middle and higher reaches and rains in plains during the day. The march started from Kanyakumari on September 7 and entered Jammu and Kashmir via Punjab on Thursday. A total of 69,535 pilgrims have left in 10 batches from the Bhagwati Nagar base camp in Jammu for the Valley since June 29, the day the first batch of pilgrims was flagged off by Lt Governor Manoj Sinha. Over one lakh pilgrims have offered prayers at the cave shrine, housing the naturally formed ice 'shivling', the officials said. The Canadian-built turboprop Twin Otter 9N-AET plane went missing on Sunday morning in the mountainous region of Nepal minutes after taking off from the tourist city of Pokhara. The plane was carrying four Indians, two Germans and 13 Nepali passengers, besides a three-member Nepali crew.
english
<gh_stars>0 [ { "DeniedAlternatives": [], "Files": { "stats/effects/fu_armoreffects/set_bonuses/samuraisetbonuseffect2.statuseffect": [ "/label" ] }, "Texts": { "Chs": "物理抗性+5%。^orange;武士刀:^reset;伤害+15%和暴击几率+3%。^orange;武士刀+伤害:^reset;暴击几率+1%及防御14%。", "Eng": "+5% Physical Resistance. ^orange;Katana:^reset; +15% Damage and +3% Crit. ^orange;Katana + Dagger:^reset; +1% Crit,14% Protection." } } ]
json
<filename>vertx-core/src/main/java/io/vertx/core/http/HttpClient.java /* * Copyright (c) 2011-2013 The original author or authors * ------------------------------------------------------ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * * The Eclipse Public License is available at * http://www.eclipse.org/legal/epl-v10.html * * The Apache License v2.0 is available at * http://www.opensource.org/licenses/apache2.0.php * * You may elect to redistribute this code under either of these licenses. */ package io.vertx.core.http; import io.vertx.codegen.annotations.VertxGen; import io.vertx.core.Handler; import io.vertx.core.MultiMap; import io.vertx.core.metrics.Measured; /** * An HTTP client that maintains a pool of connections to a specific host, at a specific port. The client supports * pipelining of requests.<p> * As well as HTTP requests, the client can act as a factory for {@code WebSocket websockets}.<p> * If an instance is instantiated from an event loop then the handlers * of the instance will always be called on that same event loop. * If an instance is instantiated from some other arbitrary Java thread (i.e. when running embedded) then * and event loop will be assigned to the instance and used when any of its handlers * are called.<p> * Instances of HttpClient are thread-safe.<p> * * @author <a href="http://tfox.org"><NAME></a> */ @VertxGen public interface HttpClient extends Measured { /** * Set an exception handler * * @return A reference to this, so multiple invocations can be chained together. */ HttpClient exceptionHandler(Handler<Throwable> handler); HttpClientRequest request(HttpMethod method, String absoluteURI, Handler<HttpClientResponse> responseHandler); HttpClientRequest request(HttpMethod method, int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler); HttpClient connectWebsocket(int port, String host, String requestURI, Handler<WebSocket> wsConnect); HttpClient connectWebsocket(int port, String host, String requestURI, MultiMap headers, Handler<WebSocket> wsConnect); HttpClient connectWebsocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect); HttpClient connectWebsocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect); /** * Close the HTTP client. This will cause any pooled HTTP connections to be closed. */ void close(); }
java
<gh_stars>0 { "name": "<NAME>", "img_file": "Wands3.png", "meaning": "The Three of Wands: This card points to strength, trade, discovery, and commerce." }
json
<filename>graphconv/util.py import numpy as np import tensorflow as tf import scipy.sparse as sp from scipy.sparse.linalg.eigen.arpack import eigsh # Code partly taken from https://github.com/tkipf/gcn. # The following license applies: # # The MIT License # # Copyright (c) 2016 <NAME> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # https://github.com/tkipf/gcn/blob/master/gcn/utils.py#L149 def chebyshev_polynomials(adj, k): """Calculate Chebyshev polynomials up to order k. Return a list of sparse matrices (tuple representation).""" # print("Calculating Chebyshev polynomials up to order {}...".format(k)) adj_normalized = normalize_adj(adj) laplacian = sp.eye(adj.shape[0], dtype=adj.dtype) - adj_normalized largest_eigval, _ = eigsh(laplacian, 1, which='LM') scaled_laplacian = (2. / largest_eigval[0]) * laplacian - sp.eye(adj.shape[0], dtype=adj.dtype) t_k = list() t_k.append(sp.eye(adj.shape[0], dtype=adj.dtype)) t_k.append(scaled_laplacian) def chebyshev_recurrence(t_k_minus_one, t_k_minus_two, scaled_lap): s_lap = sp.csr_matrix(scaled_lap, copy=True, dtype=adj.dtype) return 2 * s_lap.dot(t_k_minus_one) - t_k_minus_two for i in range(2, k+1): t_k.append(chebyshev_recurrence(t_k[-1], t_k[-2], scaled_laplacian)) return t_k # https://github.com/tkipf/gcn/blob/master/gcn/utils.py#L122 def normalize_adj(adj): """Symmetrically normalize adjacency matrix.""" adj = sp.coo_matrix(adj) rowsum = np.array(adj.sum(1)) d_inv_sqrt = np.power(rowsum, -0.5).flatten() d_inv_sqrt[np.isinf(d_inv_sqrt)] = 0. d_mat_inv_sqrt = sp.diags(d_inv_sqrt) return adj.dot(d_mat_inv_sqrt).transpose().dot(d_mat_inv_sqrt).tocoo() def preprocess_adj(adj): adj = (adj > 0).astype(adj.dtype) adj_normalized = normalize_adj(adj + sp.eye(adj.shape[0], dtype=adj.dtype)) return adj_normalized def sparse_dot_adj_batch(adj, x): # adj: V x V # x: B x V x N return tf.map_fn(lambda xx: tf.sparse_tensor_dense_matmul(adj, xx), x)
python
<gh_stars>1-10 use super::*; async fn command(fw_ctx: &FwContext, message: &Message, args: &str) -> CommandResult { message.reply(fw_ctx, args.to_string()).await?; Ok(()) } fn cmd<'a>( fw_ctx: &'a FwContext, message: &'a Arc<Message>, args: &'a str, ) -> Pin<Box<dyn Future<Output = CommandResult> + Send + 'a>> { Box::pin(command(fw_ctx, message, args)) } fn find_command<'a, 'b>( prefix: &str, fw: &'a StandardFramework, command: &'b str, ) -> Option<(&'a Command, &'b str)> { fw.root_group .find_command(command.strip_prefix(prefix).unwrap()) } fn assert_cmd_is( prefix: &str, fw: &StandardFramework, command: &str, expected_command_name: &str, expected_args: &str, ) { let (cmd, args) = find_command(prefix, fw, command).expect("Command not found"); assert_eq!(cmd.name.as_ref(), expected_command_name); assert_eq!(args, expected_args); } #[test] fn test_find_command() { let framework = StandardFramework::default() .configure(|c| c.prefix("!")) .group(|g| { g.name("Hello") .command(|| Command::new("aaa", cmd as CommandCodeFn)) .command(|| Command::new("bbbccc", cmd as CommandCodeFn)) .subgroup(|g| { g.name("bbb") .command(|| Command::new("ccc", cmd as CommandCodeFn).alias("eee")) .command(|| Command::new("ccceee", cmd as CommandCodeFn)) .default_command(|| Command::new("ddd", cmd as CommandCodeFn)) }) }); assert_cmd_is("!", &framework, "!aaa", "aaa", ""); assert_cmd_is("!", &framework, "!bbb ccc", "ccc", ""); assert_cmd_is("!", &framework, "!bbb", "ddd", ""); assert_cmd_is("!", &framework, "!bbb ddd", "ddd", "ddd"); assert_cmd_is("!", &framework, "!bbbccc", "bbbccc", ""); assert_cmd_is("!", &framework, "!bbbccc ", "bbbccc", ""); assert_cmd_is("!", &framework, "!bbb eee", "ccc", ""); assert_cmd_is("!", &framework, "!bbb ccceee", "ccceee", ""); }
rust
package com.salesforce.dva.argus.ws.dto; import com.salesforce.dva.argus.entity.AsyncBatchedMetricQuery; import com.salesforce.dva.argus.entity.BatchMetricQuery; import com.salesforce.dva.argus.entity.Metric; import java.util.ArrayList; import java.util.List; /** * Created by cguan on 6/7/16. */ public class BatchDto { //~ Instance fields ****************************************************************************************************************************** private String status; private int ttl; private long createdDate; private String ownerName; private List<QueryDto> queries; //~ Methods ************************************************************************************************************************************** public static BatchDto transformToDto(BatchMetricQuery batch) { BatchDto result = new BatchDto(); result.status = batch.getStatus().toString(); result.ttl = batch.getTtl(); result.createdDate = batch.getCreatedDate(); result.ownerName = batch.getOwnerName(); List<AsyncBatchedMetricQuery> batchQueries = batch.getQueries(); result.queries = new ArrayList<>(batchQueries.size()); for (AsyncBatchedMetricQuery query: batchQueries) { result.queries.add(new QueryDto(query.getExpression(), query.getResult(), query.getMessage())); } return result; } private static class QueryDto { String expression; Metric result; String message; QueryDto(String expression, Metric result, String message) { this.expression = expression; this.result = result; this.message = message; } public String getExpression() { return expression; } public void setExpression(String expression) { this.expression = expression; } public Metric getResult() { return result; } public void setResult(Metric result) { this.result = result; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } } public String getStatus() { return status; } public int getTtl() { return ttl; } public long getCreatedDate() { return createdDate; } public String getOwnerName() { return ownerName; } public List<QueryDto> getQueries() { return queries; } }
java
import csv import os def remove_if_exist(path): if os.path.exists(path): os.remove(path) def load_metadata(path): res = {} headers = None with open(path, newline='') as csvfile: reader = csv.reader(csvfile, delimiter=',', quotechar='"') for row in reader: if headers is None: headers = row continue item = {} uid = row[0] for index, token in enumerate(row): if index != 0: item[headers[index]] = token res[uid] = item return res def load_specter_embeddings(path): res = {} dim = None with open(path, newline='') as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: uid = row[0] vector = row[1:] res[uid] = vector if dim is None: dim = len(vector) else: assert dim == len( vector), "Embedding dimension mismatch" return res, dim def save_index_to_uid_file(index_to_uid, index, path): remove_if_exist(path) with open(path, 'w') as f: for index, uid in enumerate(index_to_uid): f.write(f"{index} {uid}\n")
python
/* Copyright 2021 The Kubernetes Authors. 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 pods import ( "time" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" ) type ageCondition int const ( longPendingCutoff = time.Hour * 2 youngerThan = iota olderThan = iota ) func countDistinctOwnerReferences(pods []*apiv1.Pod) int { distinctOwners := make(map[types.UID]struct{}) for _, pod := range pods { controllerRef := metav1.GetControllerOf(pod) if controllerRef == nil { continue } distinctOwners[controllerRef.UID] = struct{}{} } return len(distinctOwners) } func filterByAge(pods []*apiv1.Pod, condition ageCondition, age time.Duration) []*apiv1.Pod { var filtered []*apiv1.Pod for _, pod := range pods { cutoff := pod.GetCreationTimestamp().Time.Add(age) if condition == youngerThan && cutoff.After(time.Now()) { filtered = append(filtered, pod) } if condition == olderThan && cutoff.Before(time.Now()) { filtered = append(filtered, pod) } } return filtered }
go
class Ring { constructor(x, y, diameter) { this.x = x; this.y = y; this.diameter = diameter; this.radius = diameter / 2; } teken() { push(); noFill(); stroke(40); strokeWeight(8); ellipse(this.x, this.y, this.diameter); pop(); } }
javascript
New Inter signing Stefan de Vrij insists his conscience is clear over a controversial final performance for Lazio at the end of last season. De Vrij was widely believed to be on the verge of signing for Inter on a free transfer when he lined up against his future employers on the closing day of the Serie A season in May. The defender gave away a penalty which sparked the Nerazzurri's comeback for a 3-2 victory, with the result sealing its Champions League qualification at the expense of Lazio. Inter ultimately confirmed the move in July but, speaking to the media on Wednesday, the 26-year-old insisted he had given his all for his old side. "I felt sorry for the last game, but all those who know me and who worked with me at Lazio know how much I cared and how much I gave my best," De Vrij told reporters. "Would I replay that last game? The past doesn’t change, I look in the mirror and I'm at ease. "I know that I gave everything I could in those years, right until the end." Barcelona, Liverpool and Manchester United were all linked with De Vrij prior to the announcement of his transfer to Inter. The former Feyenoord centre-back noted the Serie A side's keen interest as key to his decision to remain in Italy. "I picked Inter because of the faith the club put in me, nobody wanted me as much as they did," he said. "I believe in the project and we have the same objectives in the team. I'm convinced that I've made the right choice."
english