text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<filename>test/util/globals.js
// TODO: exclude this from test bundle
/* eslint-disable fp/no-mutation */
global['reactComposingProto'] = require('../../src/main');
global.when = function() {
const args = Array.prototype.slice.apply(arguments);
args[0] = 'when ' + args[0];
describe.apply(this, args);
};
global.expect = require('expect.js');
// create a DOM environment for tests
const jsdom = require('jsdom').jsdom;
const exposedProperties = ['window', 'navigator', 'document'];
global.document = jsdom('');
global.window = document.defaultView;
Object.keys(document.defaultView).forEach(property => {
if (typeof global[property] === 'undefined') {
exposedProperties.push(property);
global[property] = document.defaultView[property];
}
});
global.navigator = {
userAgent: 'node.js'
};
| javascript |
#! /usr/bin/env python
from __future__ import print_function
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torchvision
from torchvision import datasets, transforms
import torchvision.models as models
import time
import sys
import os
import glob
log_interval = 10
seed = 1
use_cuda = True
completed_batch =0
completed_test_batch =0
criterion = nn.CrossEntropyLoss()
def train(model, device, train_loader, optimizer, epoch):
global completed_batch
train_loss = 0
correct = 0
total = 0
model.train()
for batch_idx, (data, target) in enumerate(train_loader):
data, target = data.to(device), target.to(device)
optimizer.zero_grad()
output = model(data)
loss = criterion(output, target)
loss.backward()
optimizer.step()
train_loss += loss.item()
_, predicted = output.max(1)
total += target.size(0)
correct += predicted.eq(target).sum().item()
completed_batch += 1
print ('Train - batches : {}, average loss: {:.4f}, accuracy: {}/{} ({:.0f}%)'.format(
completed_batch, train_loss/(batch_idx+1), correct, total, 100.*correct/total))
#print ("Timestamp %d, Iteration %d" % (int(round(time.time()*1000)),completed_batch))
#print ("Timestamp %d, batchIdx %d" % (int(round(time.time()*1000)),batch_idx))
def test(model, device, test_loader, epoch):
global completed_test_batch
global completed_batch
model.eval()
test_loss = 0
correct = 0
total = 0
completed_test_batch = completed_batch - len(test_loader)
with torch.no_grad():
for batch_idx, (data, target) in enumerate(test_loader):
data, target = data.to(device), target.to(device)
output = model(data)
loss = criterion(output, target)
test_loss += loss.item() # sum up batch loss
_, pred = output.max(1) # get the index of the max log-probability
correct += pred.eq(target.view_as(pred)).sum().item()
total += target.size(0)
completed_test_batch += 1
test_loss /= len(test_loader.dataset)
test_acc = 100. * correct / len(test_loader.dataset)
# Output test info for per epoch
print('Test - batches: {}, average loss: {:.4f}, accuracy: {}/{} ({:.0f}%)\n'.format(
completed_batch, test_loss, correct, len(test_loader.dataset),
100. * correct / len(test_loader.dataset)))
def getDatasets():
train_data_dir = "/tmp/data"
test_data_dir = "/tmp/data"
transform_train = transforms.Compose([
transforms.Resize(224),
#transforms.RandomCrop(self.resolution, padding=4),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
])
transform_test = transforms.Compose([
transforms.Resize(224),
transforms.ToTensor(),
transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
])
return (torchvision.datasets.CIFAR10(root=train_data_dir, train=True, download=True, transform = transform_train),
torchvision.datasets.CIFAR10(root=test_data_dir, train=False, download=True, transform = transform_test)
)
def main(model_type, pretrained = False):
torch.manual_seed(seed)
device = torch.device("cuda" if use_cuda else "cpu")
kwargs = {'num_workers': 1, 'pin_memory': True} if use_cuda else {}
train_dataset, test_dataset = getDatasets()
train_loader = torch.utils.data.DataLoader(train_dataset, batch_size=64, shuffle=True, **kwargs)
test_loader = torch.utils.data.DataLoader(test_dataset, batch_size=64, shuffle=True, **kwargs)
print('==> Building model..' + str(model_type))
# create model from torchvision
if pretrained:
print("=> using pre-trained model '{}'".format(model_type))
model = models.__dict__[model_type](pretrained=True)
else:
print("=> creating model '{}'".format(model_type))
model = models.__dict__[model_type]()
for param in model.parameters():
param.requires_grad = True # set False if you only want to train the last layer using pretrained model
# Replace the last fully-connected layer
# Parameters of newly constructed modules have requires_grad=True by default
model.fc = nn.Linear(512, 10)
#print(model)
model.to(device)
optimizer = optim.SGD(model.parameters(), lr=0.01, momentum=0, dampening=0, weight_decay=0, nesterov=False)
epochs = 1
scheduler = optim.lr_scheduler.StepLR(optimizer, 30, 0.1, last_epoch=-1)
# Output total iterations info for deep learning insights
print("Total iterations: %s" % (len(train_loader) * epochs))
for epoch in range(1, epochs+1):
print("\nRunning epoch %s ..." % epoch)
train(model, device, train_loader, optimizer, epoch)
test(model, device, test_loader, epoch)
scheduler.step()
torch.save(model.state_dict(), "/tmp/model_epoch_%d.pth"%(epoch))
torch.save(model.state_dict(), "/tmp/model_epoch_final.pth")
if __name__ == '__main__':
'''
Supported Resnet models:
* ResNet-18
main("resnet18")
* ResNet-34
main("resnet34")
* ResNet-50
main("resnet50")
* ResNet-101
main("resnet101")
* ResNet-152
main("resnet152")
'''
#main("resnet18", pretrained = True)
main("resnet18")
| python |
<reponame>stdlib-js/www
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Namespace | stdlib</title>
<meta name="description" content="stdlib is a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing.">
<meta name="author" content="stdlib">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="manifest" href="../manifest.json">
<link rel="mask-icon" href="../safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<!-- Facebook Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="stdlib">
<meta property="og:url" content="https://stdlib.io/">
<meta property="og:title" content="A standard library for JavaScript and Node.js.">
<meta property="og:description" content="stdlib is a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing.">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="">
<!-- Twitter -->
<meta name="twitter:card" content="A standard library for JavaScript and Node.js.">
<meta name="twitter:site" content="@stdlibjs">
<meta name="twitter:url" content="https://stdlib.io/">
<meta name="twitter:title" content="stdlib">
<meta name="twitter:description" content="stdlib is a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing.">
<meta name="twitter:image" content="">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="stylesheet" href="../assets/css/theme.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title"><img src="../logo_white.svg" alt="stdlib"></a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/_simulate_iter_docs_types_index_d_.html">"simulate/iter/docs/types/index.d"</a>
</li>
<li>
<a href="_simulate_iter_docs_types_index_d_.namespace.html">Namespace</a>
</li>
</ul>
<h1>Interface Namespace</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Interface describing the <code>iter</code> namespace.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">Namespace</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section tsd-is-not-exported">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterbartletthannpulse" class="tsd-kind-icon">iter<wbr>Bartlett<wbr>Hann<wbr>Pulse</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterbartlettpulse" class="tsd-kind-icon">iter<wbr>Bartlett<wbr>Pulse</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#itercosinewave" class="tsd-kind-icon">iter<wbr>Cosine<wbr>Wave</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterdiraccomb" class="tsd-kind-icon">iter<wbr>Dirac<wbr>Comb</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterflattoppulse" class="tsd-kind-icon">iter<wbr>Flat<wbr>Top<wbr>Pulse</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterhannpulse" class="tsd-kind-icon">iter<wbr>Hann<wbr>Pulse</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterlanczospulse" class="tsd-kind-icon">iter<wbr>Lanczos<wbr>Pulse</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterperiodicsinc" class="tsd-kind-icon">iter<wbr>Periodic<wbr>Sinc</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterpulse" class="tsd-kind-icon">iter<wbr>Pulse</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#itersawtoothwave" class="tsd-kind-icon">iter<wbr>Sawtooth<wbr>Wave</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#itersinewave" class="tsd-kind-icon">iter<wbr>Sine<wbr>Wave</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#itersquarewave" class="tsd-kind-icon">iter<wbr>Square<wbr>Wave</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#itertrianglewave" class="tsd-kind-icon">iter<wbr>Triangle<wbr>Wave</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterawgn" class="tsd-kind-icon">iterawgn</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterawln" class="tsd-kind-icon">iterawln</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported"><a href="_simulate_iter_docs_types_index_d_.namespace.html#iterawun" class="tsd-kind-icon">iterawun</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterbartletthannpulse" class="tsd-anchor"></a>
<h3>iter<wbr>Bartlett<wbr>Hann<wbr>Pulse</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Bartlett<wbr>Hann<wbr>Pulse<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_docs_types_index_d_.html#iterbartletthannpulse" class="tsd-signature-type">iterBartlettHannPulse</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L193">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:193</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a Bartlett-Hann pulse waveform.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 100)</p>
</dd>
<dt>param</dt>
<dd><p>pulse duration (default: options.period)</p>
</dd>
<dt>param</dt>
<dd><p>amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> option must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be less than or equal to the <code>period</code></p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be greater than 2</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterbartlettpulse" class="tsd-anchor"></a>
<h3>iter<wbr>Bartlett<wbr>Pulse</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Bartlett<wbr>Pulse<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_docs_types_index_d_.html#iterbartlettpulse" class="tsd-signature-type">iterBartlettPulse</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L235">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:235</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a Bartlett pulse waveform.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 100)</p>
</dd>
<dt>param</dt>
<dd><p>pulse duration (default: options.period)</p>
</dd>
<dt>param</dt>
<dd><p>amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> option must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be less than or equal to the <code>period</code></p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be greater than 2</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="itercosinewave" class="tsd-anchor"></a>
<h3>iter<wbr>Cosine<wbr>Wave</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Cosine<wbr>Wave<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_cosine_wave_docs_types_index_d_.html#itercosinewave" class="tsd-signature-type">iterCosineWave</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L273">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:273</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a cosine wave.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a cosine wave repeats (default: 10)</p>
</dd>
<dt>param</dt>
<dd><p>peak amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> must be a nonnegative number</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterdiraccomb" class="tsd-anchor"></a>
<h3>iter<wbr>Dirac<wbr>Comb</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Dirac<wbr>Comb<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_dirac_comb_docs_types_index_d_.html#iterdiraccomb" class="tsd-signature-type">iterDiracComb</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L309">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:309</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a Dirac comb.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 10)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterflattoppulse" class="tsd-anchor"></a>
<h3>iter<wbr>Flat<wbr>Top<wbr>Pulse</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Flat<wbr>Top<wbr>Pulse<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_flat_top_pulse_docs_types_index_d_.html#iterflattoppulse" class="tsd-signature-type">iterFlatTopPulse</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L351">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:351</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a flat top pulse waveform.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 100)</p>
</dd>
<dt>param</dt>
<dd><p>pulse duration (default: options.period)</p>
</dd>
<dt>param</dt>
<dd><p>amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> option must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be less than or equal to the <code>period</code></p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be greater than 2</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterhannpulse" class="tsd-anchor"></a>
<h3>iter<wbr>Hann<wbr>Pulse</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Hann<wbr>Pulse<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_hann_pulse_docs_types_index_d_.html#iterhannpulse" class="tsd-signature-type">iterHannPulse</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L393">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:393</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a Hann pulse waveform.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 100)</p>
</dd>
<dt>param</dt>
<dd><p>pulse duration (default: options.period)</p>
</dd>
<dt>param</dt>
<dd><p>amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> option must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be less than or equal to the <code>period</code></p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be greater than 2</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterlanczospulse" class="tsd-anchor"></a>
<h3>iter<wbr>Lanczos<wbr>Pulse</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Lanczos<wbr>Pulse<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_lanczos_pulse_docs_types_index_d_.html#iterlanczospulse" class="tsd-signature-type">iterLanczosPulse</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L435">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:435</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a Lanczos pulse waveform.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 100)</p>
</dd>
<dt>param</dt>
<dd><p>pulse duration (default: options.period)</p>
</dd>
<dt>param</dt>
<dd><p>amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> option must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be less than or equal to the <code>period</code></p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be greater than 2</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterperiodicsinc" class="tsd-anchor"></a>
<h3>iter<wbr>Periodic<wbr>Sinc</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Periodic<wbr>Sinc<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_periodic_sinc_docs_types_index_d_.html#iterperiodicsinc" class="tsd-signature-type">iterPeriodicSinc</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L475">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:475</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a periodic sinc waveform.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>order</p>
</dd>
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 100)</p>
</dd>
<dt>param</dt>
<dd><p>peak amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p>first argument must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> must be a nonnegative number</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterpulse" class="tsd-anchor"></a>
<h3>iter<wbr>Pulse</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Pulse<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_pulse_docs_types_index_d_.html#iterpulse" class="tsd-signature-type">iterPulse</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L516">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:516</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a pulse waveform.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 10)</p>
</dd>
<dt>param</dt>
<dd><p>number of consecutive iterations of maximum amplitude during one period (default: options.period/2)</p>
</dd>
<dt>param</dt>
<dd><p>minimum amplitude (default: 0.0)</p>
</dd>
<dt>param</dt>
<dd><p>maximum amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>duration</code> option must be less than the <code>period</code></p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="itersawtoothwave" class="tsd-anchor"></a>
<h3>iter<wbr>Sawtooth<wbr>Wave</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Sawtooth<wbr>Wave<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_sawtooth_wave_docs_types_index_d_.html#itersawtoothwave" class="tsd-signature-type">iterSawtoothWave</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L554">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:554</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a sawtooth wave.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 10)</p>
</dd>
<dt>param</dt>
<dd><p>peak amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> must be a nonnegative number</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="itersinewave" class="tsd-anchor"></a>
<h3>iter<wbr>Sine<wbr>Wave</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Sine<wbr>Wave<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_sine_wave_docs_types_index_d_.html#itersinewave" class="tsd-signature-type">iterSineWave</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L592">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:592</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a sine wave.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a sine wave repeats (default: 10)</p>
</dd>
<dt>param</dt>
<dd><p>peak amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> must be a nonnegative number</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="itersquarewave" class="tsd-anchor"></a>
<h3>iter<wbr>Square<wbr>Wave</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Square<wbr>Wave<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_square_wave_docs_types_index_d_.html#itersquarewave" class="tsd-signature-type">iterSquareWave</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L630">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:630</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a square wave.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a square wave repeats (default: 10)</p>
</dd>
<dt>param</dt>
<dd><p>minimum amplitude (default: -1.0)</p>
</dd>
<dt>param</dt>
<dd><p>maximum amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive even integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="itertrianglewave" class="tsd-anchor"></a>
<h3>iter<wbr>Triangle<wbr>Wave</h3>
<div class="tsd-signature tsd-kind-icon">iter<wbr>Triangle<wbr>Wave<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_triangle_wave_docs_types_index_d_.html#itertrianglewave" class="tsd-signature-type">iterTriangleWave</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L668">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:668</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which generates a triangle wave.</p>
</div>
<a href="#notes" id="notes" style="color: inherit; text-decoration: none;">
<h2>Notes</h2>
</a>
<ul>
<li>If an environment supports <code>Symbol.iterator</code>, the returned iterator is iterable.</li>
</ul>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations before a waveform repeats (default: 10)</p>
</dd>
<dt>param</dt>
<dd><p>peak amplitude (default: 1.0)</p>
</dd>
<dt>param</dt>
<dd><p>phase offset (in units of iterations; default: 0)</p>
</dd>
<dt>param</dt>
<dd><p>number of iterations (default: 1e308)</p>
</dd>
<dt>throws</dt>
<dd><p><code>period</code> option must be a positive integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>amplitude</code> must be a nonnegative number</p>
</dd>
<dt>throws</dt>
<dd><p><code>offset</code> option must be an integer</p>
</dd>
<dt>throws</dt>
<dd><p><code>iter</code> option must be a nonnegative integer</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterawgn" class="tsd-anchor"></a>
<h3>iterawgn</h3>
<div class="tsd-signature tsd-kind-icon">iterawgn<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_awgn_docs_types_index_d_.html#iterawgn" class="tsd-signature-type">iterawgn</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L79">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:79</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which introduces additive white Gaussian noise with standard deviation <code>sigma</code>.</p>
</div>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>input iterator</p>
</dd>
<dt>param</dt>
<dd><p>standard deviation of the noise</p>
</dd>
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator for generating pseudorandom numbers drawn from a standard normal distribution</p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator state</p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator seed</p>
</dd>
<dt>param</dt>
<dd><p>boolean indicating whether to copy a provided pseudorandom number generator state (default: true)</p>
</dd>
<dt>throws</dt>
<dd><p><code>sigma</code> must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p>must provide a valid state</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterawln" class="tsd-anchor"></a>
<h3>iterawln</h3>
<div class="tsd-signature tsd-kind-icon">iterawln<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_awln_docs_types_index_d_.html#iterawln" class="tsd-signature-type">iterawln</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L115">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:115</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which introduces additive white Laplacian (a.k.a. biexponential or double-exponential) noise with standard deviation <code>sigma</code>.</p>
</div>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>input iterator</p>
</dd>
<dt>param</dt>
<dd><p>standard deviation of the noise</p>
</dd>
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator for generating uniformly distributed pseudorandom numbers on the interval <code>[0,1)</code></p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator state</p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator seed</p>
</dd>
<dt>param</dt>
<dd><p>boolean indicating whether to copy a provided pseudorandom number generator state (default: true)</p>
</dd>
<dt>throws</dt>
<dd><p><code>sigma</code> must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p>must provide a valid state</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a name="iterawun" class="tsd-anchor"></a>
<h3>iterawun</h3>
<div class="tsd-signature tsd-kind-icon">iterawun<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><a href="../modules/_simulate_iter_awun_docs_types_index_d_.html#iterawun" class="tsd-signature-type">iterawun</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/stdlib-js/stdlib/blob/61b1a8a068/lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts#L151">lib/node_modules/@stdlib/simulate/iter/docs/types/index.d.ts:151</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns an iterator which introduces additive white uniform noise with standard deviation <code>sigma</code>.</p>
</div>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>input iterator</p>
</dd>
<dt>param</dt>
<dd><p>standard deviation of the noise</p>
</dd>
<dt>param</dt>
<dd><p>function options</p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator for generating uniformly distributed pseudorandom numbers on the interval <code>[0,1)</code></p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator state</p>
</dd>
<dt>param</dt>
<dd><p>pseudorandom number generator seed</p>
</dd>
<dt>param</dt>
<dd><p>boolean indicating whether to copy a provided pseudorandom number generator state (default: true)</p>
</dd>
<dt>throws</dt>
<dd><p><code>sigma</code> must be a positive number</p>
</dd>
<dt>throws</dt>
<dd><p>must provide a valid state</p>
</dd>
<dt>returns</dt>
<dd><p>iterator</p>
</dd>
</div>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Packages</em></a>
</li>
<li class="current tsd-kind-external-module">
<a href="../modules/_simulate_iter_docs_types_index_d_.html">"simulate/iter/docs/types/index.d"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html" class="tsd-kind-icon">Namespace</a>
<ul>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterbartletthannpulse" class="tsd-kind-icon">iter<wbr>Bartlett<wbr>Hann<wbr>Pulse</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterbartlettpulse" class="tsd-kind-icon">iter<wbr>Bartlett<wbr>Pulse</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#itercosinewave" class="tsd-kind-icon">iter<wbr>Cosine<wbr>Wave</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterdiraccomb" class="tsd-kind-icon">iter<wbr>Dirac<wbr>Comb</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterflattoppulse" class="tsd-kind-icon">iter<wbr>Flat<wbr>Top<wbr>Pulse</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterhannpulse" class="tsd-kind-icon">iter<wbr>Hann<wbr>Pulse</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterlanczospulse" class="tsd-kind-icon">iter<wbr>Lanczos<wbr>Pulse</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterperiodicsinc" class="tsd-kind-icon">iter<wbr>Periodic<wbr>Sinc</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterpulse" class="tsd-kind-icon">iter<wbr>Pulse</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#itersawtoothwave" class="tsd-kind-icon">iter<wbr>Sawtooth<wbr>Wave</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#itersinewave" class="tsd-kind-icon">iter<wbr>Sine<wbr>Wave</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#itersquarewave" class="tsd-kind-icon">iter<wbr>Square<wbr>Wave</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#itertrianglewave" class="tsd-kind-icon">iter<wbr>Triangle<wbr>Wave</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterawgn" class="tsd-kind-icon">iterawgn</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterawln" class="tsd-kind-icon">iterawln</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported">
<a href="_simulate_iter_docs_types_index_d_.namespace.html#iterawun" class="tsd-kind-icon">iterawun</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterbartletthannpulse" class="tsd-kind-icon">iter<wbr>Bartlett<wbr>Hann<wbr>Pulse</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterbartlettpulse" class="tsd-kind-icon">iter<wbr>Bartlett<wbr>Pulse</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#itercosinewave" class="tsd-kind-icon">iter<wbr>Cosine<wbr>Wave</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterdiraccomb" class="tsd-kind-icon">iter<wbr>Dirac<wbr>Comb</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterflattoppulse" class="tsd-kind-icon">iter<wbr>Flat<wbr>Top<wbr>Pulse</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterhannpulse" class="tsd-kind-icon">iter<wbr>Hann<wbr>Pulse</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterlanczospulse" class="tsd-kind-icon">iter<wbr>Lanczos<wbr>Pulse</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterperiodicsinc" class="tsd-kind-icon">iter<wbr>Periodic<wbr>Sinc</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterpulse" class="tsd-kind-icon">iter<wbr>Pulse</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#itersawtoothwave" class="tsd-kind-icon">iter<wbr>Sawtooth<wbr>Wave</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#itersinewave" class="tsd-kind-icon">iter<wbr>Sine<wbr>Wave</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#itersquarewave" class="tsd-kind-icon">iter<wbr>Square<wbr>Wave</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#itertrianglewave" class="tsd-kind-icon">iter<wbr>Triangle<wbr>Wave</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterawgn" class="tsd-kind-icon">iterawgn</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterawln" class="tsd-kind-icon">iterawln</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#iterawun" class="tsd-kind-icon">iterawun</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_simulate_iter_docs_types_index_d_.html#ns" class="tsd-kind-icon">ns</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer>
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
<div class="bottom-nav center border-top">
<a href="https://www.patreon.com/athan">Donate</a>
/
<a href="/docs/api/">Docs</a>
/
<a href="https://gitter.im/stdlib-js/stdlib">Chat</a>
/
<a href="https://twitter.com/stdlibjs">Twitter</a>
/
<a href="https://github.com/stdlib-js/stdlib">Contribute</a>
</div>
</footer>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script src="../assets/js/theme.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-105890493-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html> | html |
[{"name":"苹果又叫滔婆柰柰子频婆平波天然子","value":"54大卡"},
{"name":"香蕉又叫蕉子蕉果甘蕉","value":"93大卡"},
{"name":"番茄又叫西红柿洋柿子狼桃番李子金","value":"20大卡"},
{"name":"黄瓜又叫胡瓜王瓜刺瓜","value":"16大卡"},
{"name":"西瓜又叫寒瓜天生白虎汤夏瓜水瓜","value":"26大卡"},
{"name":"桃又叫桃实桃子","value":"51大卡"},
{"name":"红富士苹果","value":"49大卡"},
{"name":"橙又叫橙子金球香橙黄橙脐橙","value":"48大卡"},
{"name":"红枣(干)又叫红枣大枣枣子","value":"276大卡"},
{"name":"小白菜又叫青菜油白菜白菜秧","value":"17大卡"},
{"name":"大白菜","value":"18大卡"},
{"name":"梨又叫梨子快果玉乳果宗蜜父雪梨","value":"50大卡"},
{"name":"柚子又叫文旦香抛霜柚臭橙","value":"42大卡"},
{"name":"猕猴桃又叫毛桃藤梨苌楚羊桃毛梨","value":"61大卡"},
{"name":"南瓜又叫麦瓜番瓜倭瓜金瓜伏瓜饭","value":"23大卡"},
{"name":"胡萝卜老又叫黄萝卜金笋丁香萝卜","value":"39大卡"},
{"name":"生菜(牛俐)","value":"16大卡"},
{"name":"橘子又叫橘柑柑橘桔柑子","value":"44大卡"},
{"name":"木瓜又叫乳瓜木梨文冠果","value":"29大卡"},
{"name":"葡萄又叫草龙珠山葫芦蒲桃菩提子","value":"44大卡"},
{"name":"樱桃番茄又叫葡萄番茄小西红柿圣女果小番茄","value":"22大卡"},
{"name":"冬瓜又叫白瓜水芝地芝枕瓜濮瓜白","value":"12大卡"},
{"name":"木耳(水发)又叫黑木耳云耳","value":"27大卡"},
{"name":"花菜又叫菜花花椰菜椰花菜花甘蓝洋","value":"26大卡"},
{"name":"柑桔又叫桔子","value":"51大卡"},
{"name":"菠菜又叫菠棱菜赤根菜波斯草鹦鹉菜","value":"28大卡"},
{"name":"草莓又叫大草莓士多啤梨红莓地莓","value":"32大卡"},
{"name":"西兰花又叫绿菜花西兰花菜西蓝花","value":"36大卡"},
{"name":"芒果又叫庵罗果檬果蜜望子香盖","value":"35大卡"},
{"name":"绿豆芽又叫巧芽豆芽菜如意菜掐菜银","value":"19大卡"},
{"name":"香菇鲜又叫冬菇香菌爪菰花菇香","value":"26大卡"},
{"name":"茄子又叫落苏茄瓜","value":"23大卡"},
{"name":"哈密瓜又叫甜瓜","value":"34大卡"},
{"name":"甜瓜又叫甘瓜库洪维吾尔语","value":"27大卡"},
{"name":"李子又叫布朗麦李脆李金沙李嘉庆子","value":"38大卡"},
{"name":"海带(浸)又叫江白菜昆布","value":"16大卡"},
{"name":"葡萄干","value":"344大卡"},
{"name":"红枣(鲜)又叫红枣美枣良枣","value":"125大卡"},
{"name":"青椒又叫青辣椒尖椒海椒","value":"27大卡"},
{"name":"洋葱又叫洋葱头玉葱葱头圆葱球葱葱头","value":"40大卡"},
{"name":"金针菇又叫朴菰构菌冻菌金菇毛柄","value":"32大卡"},
{"name":"青香蕉苹果又叫青苹果","value":"52大卡"},
{"name":"藕又叫连菜藕菡萏芙蕖莲藕","value":"73大卡"},
{"name":"红提子葡萄又叫提子红提","value":"52大卡"},
{"name":"海带又叫昆布江白菜纶布海昆布海马","value":"13大卡"},
{"name":"荔枝又叫丹荔丽枝香果勒荔离支","value":"71大卡"},
{"name":"生菜(叶用莴苣)又叫油麦菜","value":"15大卡"},
{"name":"结球甘蓝绿又叫卷心菜包心菜洋白菜","value":"26大卡"},
{"name":"樱桃又叫车厘子莺桃含桃荆桃朱樱","value":"46大卡"},
{"name":"黄豆芽又叫大豆芽清水豆芽","value":"47大卡"},
{"name":"苦瓜又叫凉瓜癞瓜锦荔枝癞葡萄","value":"22大卡"},
{"name":"小叶桔","value":"40大卡"},
{"name":"毛豆又叫枝豆菜用大豆","value":"131大卡"},
{"name":"豆角","value":"34大卡"},
{"name":"芹菜茎","value":"22大卡"},
{"name":"鹅黄梨","value":"41大卡"},
{"name":"丝瓜又叫天丝瓜天罗蜜瓜布瓜天吊瓜","value":"21大卡"},
{"name":"巨峰葡萄","value":"51大卡"},
{"name":"白兰瓜又叫兰州瓜华莱士兰州蜜瓜","value":"23大卡"},
{"name":"马奶子葡萄","value":"41大卡"},
{"name":"紫菜(干)又叫索菜子菜甘紫菜","value":"250大卡"},
{"name":"国光苹果","value":"56大卡"},
{"name":"四季豆又叫菜豆豆角白饭豆云扁豆龙","value":"31大卡"},
{"name":"莴笋又叫莴苣春菜生笋千金菜茎用莴","value":"15大卡"},
{"name":"蘑菇(鲜蘑)又叫蕈菌茸蘑菰蘑菇蕈","value":"24大卡"},
{"name":"长把梨","value":"62大卡"},
{"name":"银耳(干)又叫白木耳雪耳","value":"261大卡"},
{"name":"枣(干大)","value":"317大卡"},
{"name":"杏又叫杏果甜梅叭达杏杏实杏子","value":"38大卡"},
{"name":"杨梅又叫龙睛朱红水杨梅白蒂梅树梅","value":"30大卡"},
{"name":"韭菜又叫壮阳草赶阳草长生草起阳草","value":"29大卡"},
{"name":"紫葡萄","value":"45大卡"},
{"name":"冬枣","value":"105大卡"},
{"name":"西瓜(京欣一号)","value":"34大卡"},
{"name":"竹笋又叫笋毛笋竹芽竹萌","value":"23大卡"},
{"name":"李子杏","value":"37大卡"},
{"name":"西葫芦又叫搅瓜白南瓜","value":"19大卡"},
{"name":"黄香蕉苹果","value":"53大卡"},
{"name":"油菜心又叫菜心","value":"24大卡"},
{"name":"西芹又叫西洋芹菜美芹","value":"16大卡"},
{"name":"番石榴又叫芭乐","value":"53大卡"},
{"name":"平菇又叫侧耳耳菇青蘑北风菌蚝菌","value":"24大卡"},
{"name":"苹果梨","value":"53大卡"},
{"name":"娃娃菜","value":"13大卡"},
{"name":"白粉桃","value":"26大卡"},
{"name":"蕹菜又叫空心菜藤藤菜蕹菜蓊菜通心","value":"23大卡"},
{"name":"甜椒又叫青柿子椒菜椒翠椒海椒柿子","value":"25大卡"},
{"name":"茼蒿又叫蒿子杆蓬蒿菜蒿菜菊花菜茼","value":"24大卡"},
{"name":"油麦菜又叫莜麦菜苦菜牛俐生菜","value":"15大卡"},
{"name":"桂圆(干)","value":"277大卡"},
{"name":"木耳(干)又叫黑木耳云耳桑耳松耳","value":"265大卡"},
{"name":"芦柑又叫柑果椪柑","value":"44大卡"},
{"name":"红萝卜","value":"22大卡"},
{"name":"油菜又叫芸薹胡菜薹菜","value":"25大卡"},
{"name":"芹菜(白茎)又叫旱芹样芹菜药芹香芹蒲芹","value":"17大卡"},
{"name":"小西瓜又叫地雷瓜","value":"29大卡"}
] | json |
{"title": "Slow design for meaningful interactions.", "fields": ["strategic design", "by product", "philosophy of design", "sustainability", "design elements and principles"], "abstract": "In this paper we report on an exploration of how to apply the theory of Slow Design to mass produced products to establish more mindful usage of products; the intention behind this is to promote product attachment and the associated sustainable benefits of long term use. Slow Design is a design philosophy that focuses on promoting well-being for individuals, society, and the natural environment. It encourages people to do things at the right time and at the right speed which helps them to understand and reflect on their actions. Several authors have proposed Slow Design principles and cases have been reported in which these principles were applied in cultural design projects. These applications indicated that Slow Design can indeed have a positive impact on wellbeing. Although promising, this philosophy has not yet been used in the design of mass consumer products. In this paper we present a design case study in which we explored how the Slow Design principles can be applied in the design of an electric fruit juicer. Two studies are reported on where the conditions for implementing Slow Design are explored. The results led to a revision of the principles for use by product designers. The main finding from the case study is that the Slow Design principles can be used to create more 'mindful' interactions that stimulate positive user involvement. This is not from designing interactions that require more time per se, but by stimulating the user to use more time for those parts of the interaction that are meaningful and less for those that are not meaningful.", "citation": "Citations (34)", "departments": ["Philips", "Philips", "Delft University of Technology", "Delft University of Technology", "Designit, Munich, Germany"], "authors": ["<NAME>.....http://dblp.org/pers/hd/g/Grosse=Hering:Barbara", "<NAME>.....http://dblp.org/pers/hd/m/Mason:Jon", "<NAME>.....http://dblp.org/pers/hd/a/Aliakseyeu:Dzmitry", "<NAME>.....http://dblp.org/pers/hd/b/Bakker:Conny", "<NAME>.....http://dblp.org/pers/hd/d/Desmet:Pieter"], "conf": "chi", "year": "2013", "pages": 10} | json |
<reponame>MohammadALSalamat/mvecommerce
/**
* 360 Degree Gallery
*/
.product-360-popup .mfp-content {
max-width: 83rem; }
.product-gallery-degree {
position: absolute !important;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
cursor: ew-resize; }
.product-gallery-degree .product-degree-images {
display: none;
list-style: none;
margin: 0;
padding: 0;
height: 100%;
background-color: #fff;
position: relative; }
.product-gallery-degree .product-degree-images:after {
content: '';
border-color: rgba(175, 175, 175, 0.05) rgba(175, 175, 175, 0.1) rgba(175, 175, 175, 0.15);
border-radius: 50%;
border-style: solid;
border-width: 2px 2px 4px;
bottom: 60px;
height: 50%;
left: 50px;
position: absolute;
right: 50px;
z-index: 10;
transition-delay: 0.5s; }
.product-gallery-degree .product-degree-images img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: auto;
max-height: 500px;
max-width: 100%; }
.product-gallery-degree .product-degree-images img.previous-image {
visibility: hidden; }
.product-gallery-degree .product-degree-images img.current-image {
visibility: visible; }
.product-gallery-degree .w-loading {
margin-top: 0 !important; }
.product-gallery-degree .nav_bar {
position: absolute;
display: flex;
align-items: center;
left: 50%;
transform: translateX(-50%);
bottom: 15px;
z-index: 11;
padding: 0 1.5rem;
border-radius: 3rem;
background: rgba(255, 255, 255, 0.5); }
.product-gallery-degree .nav_bar a {
margin: 0 1rem;
font-size: 0;
text-align: center;
color: var(--wolmart-dark-color, #333); }
.product-gallery-degree .nav_bar a:hover {
color: #444; }
.product-gallery-degree .nav_bar a:before {
font-family: 'wolmart';
font-size: 3rem; }
.product-gallery-degree .nav_bar > :nth-child(2):before {
content: "\f144";
font-family: 'Font Awesome 5 Free';
font-size: 4rem; }
.product-gallery-degree .nav_bar .nav_bar_stop:before {
content: "\f28b"; }
.product-gallery-degree .nav_bar .nav_bar_previous:before {
content: "\e926"; }
.product-gallery-degree .nav_bar .nav_bar_next:before {
content: "\e928"; }
@media (max-width: 767px) {
.product-gallery-degree .product-degree-images:after {
bottom: 20%;
height: 35%;
left: 5%;
right: 5%; } }
@media (max-width: 869px) {
.product-gallery-degree {
width: calc(100vw - 40px) !important;
max-height: 100vw; } }
@media (max-height: 539px) {
.product-gallery-degree {
height: calc(100vh - 40px) !important;
max-width: 166vh; } }
| css |
<gh_stars>0
import express from 'express';
import morgan from 'morgan';
import cors from 'cors';
import dotenv from 'dotenv';
import logger from './server/utils/logger';
import Route from './server/routes';
dotenv.config();
const app = express();
app.use(cors());
app.options('*', cors());
app.use(express.json());
app.use(express.urlencoded({
extended: true,
}));
app.use(morgan(':remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] :response-time ms'));
app.use('/api/v1', Route);
app.use('*', (req, res) => res.status(404).json('Not Found'));
const PORT = process.env.PORT || '8000';
app.listen(PORT, () => {
logger.info(`server is running at port ${PORT}`);
});
export default app;
| javascript |
Every Roblox player forgets their password from time to time, but there are several options to retrieve it.
When you first established your Roblox account, the most important step was to link a verified email. Hopefully, you did that. Additionally, the option to connect a phone number to your Roblox account is also available. Both options are explored.
Here’s a step-by-step guide on what to do if you forgot your password for Roblox.
Every player is asked to link a verified email to retrieve passwords and usernames. It works as follows:
Step 1: On the login screen for Roblox, select “Forgot Password or Username”. This hyperlink and will redirect you.
Step 2: At the top of the box, there are two tabs. Select the Password tab.
Step 3: In the text box labeled “Email”, type in the email linked to the Roblox account you forgot the password to.
Step 4: Select Submit. A password recovery email will be sent to your inbox.
Step 5: Open the email and select the Reset Password button. This will redirect you to Roblox.
Step 6: Type in a new password. Do include capital letters, numbers, and symbols for the strongest security. Also, write it down and store it for safekeeping.
Step 7: After you’ve confirmed the password, choose Submit.
In the event that you did not link a verified email to your Roblox account, you will need to email [email protected]. They will only ask for information that you, the account holder, will know in order to verify that it’s your account.
Aside from the password recovery email, Roblox passwords can also be reset via the phone number linked to the account. Here’s how it works:
Step 1: On the login screen for Roblox, select “Forgot Password or Username”.
Step 2: Choose the Password tab at the top.
Step 3: Along the bottom, select “Use phone number to reset password”.
Step 4: Pick your region from the dropdown menu.
Step 5: Type in your phone number and select Submit.
Step 6: A six-digit code will be sent to your phone number. Type it into the text box and select Verify.
Step 7: Create a new password.
Now that you have access to your account, you can return to your favorite Roblox Roblox games, like the recently released Nikeland or YouTube Simulator. | english |
Bollywood superstar, Salman Khan, was on the sets of Indian Idol Junior promoting his forthcoming film, Bajrangi Bhaijaan. Sonakshi Sinha, one of the celebrity judges on the show was with Salman in the judge panel along with Vishal Dadlani and Adnan Sami.
With the Salman and Kareena Kapoor starer film, Bhajrangi Bhaijaan, releasing on July 17, the 49-year-old has started promoting his film on various platforms. He graced the Sony Entertainment's popular singing reality show, Indian Idol Junior to do the same.
Sonakshi and the other judges of the show posted a few pictures that were clicked with the Dabangg star on the sets on their social networking accounts and the compilation of the pictures are in the slider below.
Sonakshi tweeted saying, "Ladko ka bhai, n ladkiyon ka jaan... Bajrangi Bhai-jaan n adnan sami with us! Lelele selfie lele re!!"
"Full dhamaal on the sets of #IndianIdolJr2 with @BeingSalmanKhan @sonakshisinha @VishalDadlani @AdnanSamiLive," she also tweeted.
Salman loves children and everyone knows it.This was clearly evident on the sets of the reality show as well. Along with being sweet and consideration the young contestants, Salman was also seen clicking a number of pictures with them.
Adnan Sami sang the first song from Bajrangi Bhaijaan that was released recently, 'Bhar Do Jholi Meri', impressing everyone including Salman. Salman, Sonakshi, Adnan and Vishal were seen having fun time on the sets along with the young contestants.
Salman Khan was on the sets of Indian Idol Junior last night, June 30, promoting his upcoming film, Bajrangi Bhaijaan. The Bollywood superstar was seen having a gala time on the sets.
Salman Khan had his Dabangg co-star, Sonakshi Sinha, giving him company being a celebrity judge on the Sony Entertainment Television's singing reality show.
Salman, Sonakshi, Adnan were seen taking selfies with the young contestants on the show. Salman looked having a lot of fun with the young crowd.
Salman joined Sonakshi Sinha and Vishal Dadlani in judging the kids contesting on the singing reality show.
Adnan Sami and Salman Khan were seen posing for a selfie on the sets of the singing reality show.
One of the lucky contestant was seen getting a hug from the Dabangg star when he was on the show promoting his film, Bajrangi Bhaijaan.
It was evident that Salman Khan, Sonakshi Sinha and the other judges had a fun time on the singing reality show promoting Bajrangi Bhaijaan.
Salman Khan has started promoting his film on various television shows and his first stop happened to be Indian Idol Junior.
| english |
<reponame>digibearapp/digibear-icons-angular
import { DbIconDefinition } from "@digibearapp/digibear-common-types";
declare const dbArrowReturnRightUpSmall: DbIconDefinition;
export default dbArrowReturnRightUpSmall;
| typescript |
<reponame>heromark/x-pipe<filename>redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/migration/command/MigrationCommandBuilder.java<gh_stars>0
package com.ctrip.xpipe.redis.console.migration.command;
import com.ctrip.xpipe.api.command.Command;
import com.ctrip.xpipe.redis.core.metaserver.MetaServerConsoleService;
/**
* @author shyin
*
* Dec 8, 2016
*/
public interface MigrationCommandBuilder {
Command<MetaServerConsoleService.PrimaryDcCheckMessage> buildDcCheckCommand(final String cluster, final String shard, final String dc, final String newPrimaryDc);
Command<MetaServerConsoleService.PrimaryDcChangeMessage> buildPrevPrimaryDcCommand(final String cluster, final String shard, final String prevPrimaryDc);
Command<MetaServerConsoleService.PrimaryDcChangeMessage> buildNewPrimaryDcCommand(final String cluster, final String shard, final String newPrimaryDc);
Command<MetaServerConsoleService.PrimaryDcChangeMessage> buildOtherDcCommand(final String cluster, final String shard, final String primaryDc, final String executeDc);
Command<MetaServerConsoleService.PrimaryDcChangeMessage> buildRollBackCommand(final String cluster, final String shard, final String prevPrimaryDc);
}
| java |
<gh_stars>0
import NotFound from './notFound.container';
export default NotFound;
| javascript |
/*
* 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.pig.backend.hadoop.executionengine.mapReduceLayer;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.mapred.JobClient;
import org.apache.hadoop.mapred.JobID;
import org.apache.hadoop.mapred.RunningJob;
import org.apache.hadoop.mapred.TaskReport;
import org.apache.hadoop.mapred.jobcontrol.Job;
import org.apache.hadoop.mapred.jobcontrol.JobControl;
import org.apache.pig.FuncSpec;
import org.apache.pig.PigException;
import org.apache.pig.backend.executionengine.ExecException;
import org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PhysicalPlan;
import org.apache.pig.impl.PigContext;
import org.apache.pig.impl.plan.PlanException;
import org.apache.pig.impl.plan.VisitorException;
import org.apache.pig.impl.util.LogUtils;
import org.apache.pig.tools.pigstats.PigStats;
public abstract class Launcher {
private static final Log log = LogFactory.getLog(Launcher.class);
long totalHadoopTimeSpent;
String newLine = "\n";
boolean pigException = false;
boolean outOfMemory = false;
static final String OOM_ERR = "OutOfMemoryError";
protected Launcher(){
totalHadoopTimeSpent = 0;
//handle the windows portion of \r
if (System.getProperty("os.name").toUpperCase().startsWith("WINDOWS")) {
newLine = "\r\n";
}
reset();
}
/**
* Resets the state after a launch
*/
public void reset() {
}
/**
* Method to launch pig for hadoop either for a cluster's
* job tracker or for a local job runner. THe only difference
* between the two is the job client. Depending on the pig context
* the job client will be initialize to one of the two.
* Launchers for other frameworks can overide these methods.
* Given an input PhysicalPlan, it compiles it
* to get a MapReduce Plan. The MapReduce plan which
* has multiple MapReduce operators each one of which
* has to be run as a map reduce job with dependency
* information stored in the plan. It compiles the
* MROperPlan into a JobControl object. Each Map Reduce
* operator is converted into a Job and added to the JobControl
* object. Each Job also has a set of dependent Jobs that
* are created using the MROperPlan.
* The JobControl object is obtained from the JobControlCompiler
* Then a new thread is spawned that submits these jobs
* while respecting the dependency information.
* The parent thread monitors the submitted jobs' progress and
* after it is complete, stops the JobControl thread.
* @param php
* @param grpName
* @param pc
* @throws PlanException
* @throws VisitorException
* @throws IOException
* @throws ExecException
* @throws JobCreationException
*/
public abstract PigStats launchPig(PhysicalPlan php, String grpName, PigContext pc)
throws PlanException, VisitorException, IOException, ExecException,
JobCreationException, Exception;
/**
* Explain how a pig job will be executed on the underlying
* infrastructure.
* @param pp PhysicalPlan to explain
* @param pc PigContext to use for configuration
* @param ps PrintStream to write output on.
* @param format Format to write in
* @param verbose Amount of information to print
* @throws VisitorException
* @throws IOException
*/
public abstract void explain(
PhysicalPlan pp,
PigContext pc,
PrintStream ps,
String format,
boolean verbose) throws PlanException,
VisitorException,
IOException;
protected boolean isComplete(double prog){
return (int)(Math.ceil(prog)) == 1;
}
protected void getStats(Job job, JobClient jobClient, boolean errNotDbg, PigContext pigContext) throws Exception {
JobID MRJobID = job.getAssignedJobID();
String jobMessage = job.getMessage();
Exception backendException = null;
if(MRJobID == null) {
try {
LogUtils.writeLog("Backend error message during job submission", jobMessage,
pigContext.getProperties().getProperty("pig.logfile"),
log);
backendException = getExceptionFromString(jobMessage);
} catch (Exception e) {
int errCode = 2997;
String msg = "Unable to recreate exception from backend error: " + jobMessage;
throw new ExecException(msg, errCode, PigException.BUG);
}
throw backendException;
}
try {
TaskReport[] mapRep = jobClient.getMapTaskReports(MRJobID);
getErrorMessages(mapRep, "map", errNotDbg, pigContext);
totalHadoopTimeSpent += computeTimeSpent(mapRep);
TaskReport[] redRep = jobClient.getReduceTaskReports(MRJobID);
getErrorMessages(redRep, "reduce", errNotDbg, pigContext);
totalHadoopTimeSpent += computeTimeSpent(mapRep);
} catch (IOException e) {
if(job.getState() == Job.SUCCESS) {
// if the job succeeded, let the user know that
// we were unable to get statistics
log.warn("Unable to get job related diagnostics");
} else {
throw e;
}
}
}
protected long computeTimeSpent(TaskReport[] mapReports) {
long timeSpent = 0;
for (TaskReport r : mapReports) {
timeSpent += (r.getFinishTime() - r.getStartTime());
}
return timeSpent;
}
protected void getErrorMessages(TaskReport reports[], String type, boolean errNotDbg, PigContext pigContext) throws Exception
{
for (int i = 0; i < reports.length; i++) {
String msgs[] = reports[i].getDiagnostics();
ArrayList<Exception> exceptions = new ArrayList<Exception>();
String exceptionCreateFailMsg = null;
boolean jobFailed = false;
float successfulProgress = 1.0f;
if (msgs.length > 0) {
//if the progress reported is not 1.0f then the map or reduce job failed
//this comparison is in place till Hadoop 0.20 provides methods to query
//job status
if(reports[i].getProgress() != successfulProgress) {
jobFailed = true;
}
Set<String> errorMessageSet = new HashSet<String>();
for (int j = 0; j < msgs.length; j++) {
if(!errorMessageSet.contains(msgs[j])) {
errorMessageSet.add(msgs[j]);
if (errNotDbg) {
//errNotDbg is used only for failed jobs
//keep track of all the unique exceptions
try {
LogUtils.writeLog("Backend error message", msgs[j],
pigContext.getProperties().getProperty("pig.logfile"),
log);
Exception e = getExceptionFromString(msgs[j]);
exceptions.add(e);
} catch (Exception e1) {
exceptionCreateFailMsg = msgs[j];
}
} else {
log.debug("Error message from task (" + type + ") " +
reports[i].getTaskID() + msgs[j]);
}
}
}
}
//if there are no valid exception that could be created, report
if((exceptions.size() == 0) && (exceptionCreateFailMsg != null)){
int errCode = 2997;
String msg = "Unable to recreate exception from backed error: "+exceptionCreateFailMsg;
throw new ExecException(msg, errCode, PigException.BUG);
}
//if its a failed job then check if there is more than one exception
//more than one exception implies possibly different kinds of failures
//log all the different failures and throw the exception corresponding
//to the first failure
if(jobFailed) {
if(exceptions.size() > 1) {
for(int j = 0; j < exceptions.size(); ++j) {
String headerMessage = "Error message from task (" + type + ") " + reports[i].getTaskID();
LogUtils.writeLog(exceptions.get(j), pigContext.getProperties().getProperty("pig.logfile"), log, false, headerMessage, false, false);
}
throw exceptions.get(0);
} else if(exceptions.size() == 1) {
throw exceptions.get(0);
} else {
int errCode = 2115;
String msg = "Internal error. Expected to throw exception from the backend. Did not find any exception to throw.";
throw new ExecException(msg, errCode, PigException.BUG);
}
}
}
}
/**
* Compute the progress of the current job submitted
* through the JobControl object jc to the JobClient jobClient
* @param jc - The JobControl object that has been submitted
* @param jobClient - The JobClient to which it has been submitted
* @return The progress as a precentage in double format
* @throws IOException
*/
protected double calculateProgress(JobControl jc, JobClient jobClient) throws IOException{
double prog = 0.0;
prog += jc.getSuccessfulJobs().size();
List runnJobs = jc.getRunningJobs();
for (Object object : runnJobs) {
Job j = (Job)object;
prog += progressOfRunningJob(j, jobClient);
}
return prog;
}
/**
* Returns the progress of a Job j which is part of a submitted
* JobControl object. The progress is for this Job. So it has to
* be scaled down by the num of jobs that are present in the
* JobControl.
* @param j - The Job for which progress is required
* @param jobClient - the JobClient to which it has been submitted
* @return Returns the percentage progress of this Job
* @throws IOException
*/
protected double progressOfRunningJob(Job j, JobClient jobClient) throws IOException{
JobID mrJobID = j.getAssignedJobID();
RunningJob rj = jobClient.getJob(mrJobID);
if(rj==null && j.getState()==Job.SUCCESS)
return 1;
else if(rj==null)
return 0;
else{
double mapProg = rj.mapProgress();
double redProg = rj.reduceProgress();
return (mapProg + redProg)/2;
}
}
public long getTotalHadoopTimeSpent() {
return totalHadoopTimeSpent;
}
/**
*
* @param stackTraceLine The string representation of {@link Throwable#printStackTrace() printStackTrace}
* Handles internal PigException and its subclasses that override the {@link Throwable#toString() toString} method
* @return An exception object whose string representation of printStackTrace is the input stackTrace
* @throws Exception
*/
Exception getExceptionFromString(String stackTrace) throws Exception{
String[] lines = stackTrace.split(newLine);
Throwable t = getExceptionFromStrings(lines, 0);
if(!pigException) {
int errCode = 6015;
String msg = "During execution, encountered a Hadoop error.";
ExecException ee = new ExecException(msg, errCode, PigException.REMOTE_ENVIRONMENT, t);
ee.setStackTrace(t.getStackTrace());
return ee;
} else {
pigException = false;
if(outOfMemory) {
outOfMemory = false;
int errCode = 6016;
String msg = "Out of memory.";
ExecException ee = new ExecException(msg, errCode, PigException.REMOTE_ENVIRONMENT, t);
ee.setStackTrace(t.getStackTrace());
return ee;
}
return (Exception)t;
}
}
/**
*
* @param stackTraceLine An array of strings that represent {@link Throwable#printStackTrace() printStackTrace}
* output, split by newline
* @return An exception object whose string representation of printStackTrace is the input stackTrace
* @throws Exception
*/
private Throwable getExceptionFromStrings(String[] stackTraceLines, int startingLineNum) throws Exception{
/*
* parse the array of string and throw the appropriate exception
* first: from the line startingLineNum extract the exception name extract the message if any
* fourth: create the appropriate exception and return it
* An example of the stack trace:
org.apache.pig.backend.executionengine.ExecException: ERROR 1075: Received a bytearray from the UDF. Cannot determine how to convert the bytearray to int.
at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POCast.getNext(POCast.java:152)
at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.LessThanExpr.getNext(LessThanExpr.java:85)
at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POFilter.getNext(POFilter.java:148)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.runPipeline(PigMapBase.java:184)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:174)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:65)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:227)
at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2207)
*/
int prevStartingLineNum = startingLineNum;
if(stackTraceLines.length > 0 && startingLineNum < (stackTraceLines.length - 1)) {
//the regex for matching the exception class name; note the use of the $ for matching nested classes
String exceptionNameDelimiter = "(\\w+(\\$\\w+)?\\.)+\\w+";
Pattern exceptionNamePattern = Pattern.compile(exceptionNameDelimiter);
//from the first line extract the exception name and the exception message
Matcher exceptionNameMatcher = exceptionNamePattern.matcher(stackTraceLines[startingLineNum]);
String exceptionName = null;
String exceptionMessage = null;
if (exceptionNameMatcher.find()) {
exceptionName = exceptionNameMatcher.group();
/*
* note that the substring is from end + 2
* the regex matcher ends at one position beyond the match
* in this case it will end at colon (:)
* the exception message will have a preceding space (after the colon (:))
*/
if (exceptionName.contains(OOM_ERR)) {
outOfMemory = true;
}
if(stackTraceLines[startingLineNum].length() > exceptionNameMatcher.end()) {
exceptionMessage = stackTraceLines[startingLineNum].substring(exceptionNameMatcher.end() + 2);
}
++startingLineNum;
}
//the exceptionName should not be null
if(exceptionName != null) {
ArrayList<StackTraceElement> stackTraceElements = new ArrayList<StackTraceElement>();
//Create stack trace elements for the remaining lines
String stackElementRegex = "\\s+at\\s+(\\w+(\\$\\w+)?\\.)+(\\<)?\\w+(\\>)?";
Pattern stackElementPattern = Pattern.compile(stackElementRegex);
String pigExceptionRegex = "org\\.apache\\.pig\\.";
Pattern pigExceptionPattern = Pattern.compile(pigExceptionRegex);
String moreElementRegex = "\\s+\\.\\.\\.\\s+\\d+\\s+more";
Pattern moreElementPattern = Pattern.compile(moreElementRegex);
String pigPackageRegex = "org.apache.pig";
int lineNum = startingLineNum;
for(; lineNum < (stackTraceLines.length - 1); ++lineNum) {
Matcher stackElementMatcher = stackElementPattern.matcher(stackTraceLines[lineNum]);
if(stackElementMatcher.find()) {
StackTraceElement ste = getStackTraceElement(stackTraceLines[lineNum]);
stackTraceElements.add(ste);
String className = ste.getClassName();
Matcher pigExceptionMatcher = pigExceptionPattern.matcher(className);
if(pigExceptionMatcher.find()) {
pigException = true;
}
} else {
Matcher moreElementMatcher = moreElementPattern.matcher(stackTraceLines[lineNum]);
if(moreElementMatcher.find()) {
++lineNum;
}
break;
}
}
startingLineNum = lineNum;
//create the appropriate exception; setup the stack trace and message
Object object = PigContext.instantiateFuncFromSpec(exceptionName);
if(object instanceof PigException) {
//extract the error code and message the regex for matching the custom format of ERROR <ERROR CODE>:
String errMessageRegex = "ERROR\\s+\\d+:";
Pattern errMessagePattern = Pattern.compile(errMessageRegex);
Matcher errMessageMatcher = errMessagePattern.matcher(exceptionMessage);
if(errMessageMatcher.find()) {
String errMessageStub = errMessageMatcher.group();
/*
* extract the actual exception message sans the ERROR <ERROR CODE>:
* again note that the matcher ends at the space following the colon (:)
* the exception message appears after the space and hence the end + 1
*/
exceptionMessage = exceptionMessage.substring(errMessageMatcher.end() + 1);
//the regex to match the error code wich is a string of numerals
String errCodeRegex = "\\d+";
Pattern errCodePattern = Pattern.compile(errCodeRegex);
Matcher errCodeMatcher = errCodePattern.matcher(errMessageStub);
String code = null;
if(errCodeMatcher.find()) {
code = errCodeMatcher.group();
}
//could receive a number format exception here but it will be propagated up the stack
int errCode;
if (code != null)
errCode = Integer.parseInt(code);
else
errCode = 2998;
//create the exception with the message and then set the error code and error source
FuncSpec funcSpec = new FuncSpec(exceptionName, exceptionMessage);
object = PigContext.instantiateFuncFromSpec(funcSpec);
((PigException)object).setErrorCode(errCode);
((PigException)object).setErrorSource(PigException.determineErrorSource(errCode));
} else { //else for if(errMessageMatcher.find())
/*
* did not find the error code which means that the PigException or its
* subclass is not returning the error code
* highly unlikely: should never be here
*/
FuncSpec funcSpec = new FuncSpec(exceptionName, exceptionMessage);
object = PigContext.instantiateFuncFromSpec(funcSpec);
((PigException)object).setErrorCode(2997);//generic error code
((PigException)object).setErrorSource(PigException.BUG);
}
} else { //else for if(object instanceof PigException)
//its not PigException; create the exception with the message
object = PigContext.instantiateFuncFromSpec(new FuncSpec(exceptionName, exceptionMessage));
}
StackTraceElement[] steArr = new StackTraceElement[stackTraceElements.size()];
((Throwable)object).setStackTrace(stackTraceElements.toArray(steArr));
if(startingLineNum < (stackTraceLines.length - 1)) {
Throwable e = getExceptionFromStrings(stackTraceLines, startingLineNum);
((Throwable)object).initCause(e);
}
return (Throwable)object;
} else { //else for if(exceptionName != null)
int errCode = 2055;
String msg = "Did not find exception name to create exception from string: " + Arrays.toString(stackTraceLines);
throw new ExecException(msg, errCode, PigException.BUG);
}
} else { //else for if(lines.length > 0)
int errCode = 2056;
String msg = "Cannot create exception from empty string.";
throw new ExecException(msg, errCode, PigException.BUG);
}
}
/**
*
* @param line the string representation of a stack trace returned by {@link Throwable#printStackTrace() printStackTrace}
* @return the StackTraceElement object representing the stack trace
* @throws Exception
*/
public StackTraceElement getStackTraceElement(String line) throws Exception{
/*
* the format of the line is something like:
* at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:65)
* note the white space before the 'at'. Its not of much importance but noted for posterity.
*/
String[] items;
/*
* regex for matching the fully qualified method Name
* note the use of the $ for matching nested classes
* and the use of < and > for constructors
*/
String qualifiedMethodNameRegex = "(\\w+(\\$\\w+)?\\.)+(<)?\\w+(>)?";
Pattern qualifiedMethodNamePattern = Pattern.compile(qualifiedMethodNameRegex);
Matcher contentMatcher = qualifiedMethodNamePattern.matcher(line);
//org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:65)
String content = null;
if(contentMatcher.find()) {
content = line.substring(contentMatcher.start());
} else {
int errCode = 2057;
String msg = "Did not find fully qualified method name to reconstruct stack trace: " + line;
throw new ExecException(msg, errCode, PigException.BUG);
}
Matcher qualifiedMethodNameMatcher = qualifiedMethodNamePattern.matcher(content);
//org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map
String qualifiedMethodName = null;
//(PigMapOnly.java:65)
String fileDetails = null;
if(qualifiedMethodNameMatcher.find()) {
qualifiedMethodName = qualifiedMethodNameMatcher.group();
fileDetails = content.substring(qualifiedMethodNameMatcher.end() + 1);
} else {
int errCode = 2057;
String msg = "Did not find fully qualified method name to reconstruct stack trace: " + line;
throw new ExecException(msg, errCode, PigException.BUG);
}
//From the fully qualified method name, extract the declaring class and method name
items = qualifiedMethodName.split("\\.");
//initialize the declaringClass (to org in most cases)
String declaringClass = items[0];
//the last member is always the method name
String methodName = items[items.length - 1];
StringBuilder sb = new StringBuilder();
//concatenate the names by adding the dot (.) between the members till the penultimate member
for(int i = 1; i < items.length - 1; ++i) {
sb.append('.');
sb.append(items[i]);
}
declaringClass += sb.toString();
//from the file details extract the file name and the line number
//PigMapOnly.java:65
fileDetails = fileDetails.substring(0, fileDetails.length() - 1);
items = fileDetails.split(":");
//PigMapOnly.java
String fileName = null;
int lineNumber = 0;
if(items.length > 0) {
fileName = items[0];
lineNumber = Integer.parseInt(items[1]);
}
return new StackTraceElement(declaringClass, methodName, fileName, lineNumber);
}
}
| java |
---
title: Fichier Include
description: Fichier Include
services: virtual-network
author: rockboyfor
ms.service: virtual-network
ms.topic: include
origin.date: 04/13/2018
ms.date: 06/11/2018
ms.author: v-yeche
ms.custom: include file
ms.openlocfilehash: 40b81904daabfdad7e45571d8ab86cf32cac8964
ms.sourcegitcommit: 3102f886aa962842303c8753fe8fa5324a52834a
ms.translationtype: MT
ms.contentlocale: fr-FR
ms.lasthandoff: 04/23/2019
ms.locfileid: "60743357"
---
## <a name="scenario"></a>Scénario
Pour mieux illustrer la création d’itinéraires définis par l’utilisateur, ce document utilise le scénario suivant :

Dans ce scénario, vous créez un itinéraire défini par l’utilisateur pour le *sous-réseau frontal* et un autre pour le *sous-réseau principal*, comme suit :
* **UDR-FrontEnd**. L’itinéraire frontal défini par l’utilisateur est appliqué au sous-réseau *FrontEnd* et contient un itinéraire :
* **RouteToBackend**. Cet itinéraire envoie tout le trafic sur le sous-réseau principal à la machine virtuelle **FW1**.
* **UDR-BackEnd**. L’UDR principal est appliqué au sous-réseau *BackEnd* et contient un itinéraire :
* **RouteToFrontend**. Cet itinéraire envoie tout le trafic sur le sous-réseau frontal à la machine virtuelle **FW1**.
La combinaison de ces itinéraires garantit que tout le trafic qui transite d’un sous-réseau à un autre est routé vers la machine virtuelle **FW1**, qui fait office d’équipement virtuel. Vous devez également activer le transfert IP pour la machine virtuelle **FW1**, afin qu’elle puisse recevoir le trafic destiné aux autres machines virtuelles.
| markdown |
import React, { Component } from "react";
import SelectionCreator from "./SelectionCreator";
import { Checkbox as IndividualCheckbox } from "@material-ui/core";
class Checkbox extends Component {
constructor(props) {
super(props);
}
render() {
const Checkbox = ({ index }) => <IndividualCheckbox disabled />;
return <SelectionCreator ListMarker={Checkbox} />;
}
}
export default Checkbox;
| javascript |
{
"name":"windowseat/windowseat",
"repositories": [
{
"type":"git",
"url":"https://github.com/cameronjacobson/SimpleHttpClient.git"
},
{
"type":"git",
"url":"https://github.com/cameronjacobson/Phixd.git"
},
{
"type":"git",
"url":"https://github.com/cameronjacobson/Phreezer.git"
}
],
"require": {
"php": ">=5.4.0",
"ext-event": "*",
"phixd/phixd": "@dev",
"phreezer/phreezer": "@dev",
"datashovel/simplehttpclient": "@dev",
"mtdowling/transducers": "@dev"
},
"autoload": {
"psr-0": {
"WindowSeat": "src/"
}
}
}
| json |
Tomorowo Taguchi (born November 30, 1957) is a Japanese actor. After leaving Dokkyo University without graduating, he started to earn his living as an illustrator, writer and pornographic cartoonist. He joined a theatre called Hakken no Kai in 1978 and he made a screen debut in Zokubutsu Zukan (based on the book by Yasutaka Tsutsui) in 1982. He was also a prominent cult musician in the Tokyo underground scene with his band Bachikaburi in the 1980s and early 1990s. He is probably most well known to the West as the lead actor in Tetsuo and Tetsuo II directed by Shinya Tsukamoto. He also makes regular appearances in Takashi Miike's films. He became known to the Japanese public as a narrator for the TV documentary series Project X - Challengers which aired between 2000 and 2005 by NHK. Taguchi directed Iden & Tity in 2003 and his second film, Shikisoku Generation, is scheduled for release in 2009. From Wikipedia, the free encyclopedia.
| english |
Vishvas News investigated and found that the video is not from Haryana. This video is from Iran and falsely passed off as from India.
Vishvas News (New Delhi): A video is going viral on social media, in which a man on a motorcycle can be seen setting a petrol pump on fire. As per the claim, the video is from Haryana, where a man upset over rising petrol prices sets a petrol pump on fire. Vishvas News investigated and found that the video is not from Haryana. This video is from Iran and falsely passed off as from India.
The archived version of this post can be viewed by clicking here.
Vishvas News searched the internet on whether any incident of burning of any petrol pump in Haryana has come to light recently. We could not find any concrete information on any authentic media outlet.
We used Invid to extract the keywords of the video. On performing Google reverse image search using appropriate keywords, we found this video in a flipped form on some Facebook and Instagram pages. That is, the petrol pump is seen on the left in the viral video. In the video uploaded on Iranian Facebook pages in June, the petrol pump is on the right. That is, this video has been flipped and made viral.
Now we did a Google reverse image search again of the screengrabs of the original video. We found a news from https://www.yjc.news/ in which a thumb image of the viral video was used. According to the news, this incident is of June 10, when a youth had set a petrol pump to fire after a fight between a youth and a petrol pump worker in Rafsanjan, Iran. We found this news along with the thumb image of this video on many other Iranian news websites.
For more information, Vishvas News contacted Sunil Jha, Haryana Digital Incharge of Dainik Jagran. He told us that no such incident has happened in Haryana in the recent past. This video is not from Haryana.
Now it was time to scan the profile of the user ‘Bablu Yadav’ who shared the post on Facebook. On scanning the profile, we found that the user is a resident of Surat, Gujarat.
Conclusion: Vishvas News investigated and found that the video is not from Haryana. This video is from Iran and falsely passed off as from India.
- Claim Review : Was troubled by the rising price of oil, ran away after burning a petrol pump in Haryana.
Know the truth! If you have any doubts about any information or a rumor, do let us know!
Knowing the truth is your right. If you feel any information is doubtful and it can impact the society or nation, send it to us by any of the sources mentioned below.
Fact-checking journalism, which holds mirror to power while being free from the ropes of corporate and politics, is possible only with support from public. Help us in our fight against fake news.
| english |
---
title: 1050 Antispam 4.7.500 Server busy. Försök igen senare från [XXX.XXX.XXX.XXX]
ms.author: chrisda
author: chrisda
manager: dansimp
ms.date: 04/21/2020
ms.audience: ITPro
ms.topic: article
ms.service: o365-administration
ROBOTS: NOINDEX, NOFOLLOW
localization_priority: Normal
ms.custom:
- "1050"
- "3100024"
ms.assetid: a97b7845-4884-4d99-bab6-52539603cab2
ms.openlocfilehash: 84a5dfccd7ec3e4640c728ab1740220309a0d97b61157d0fd4e463ed95aef0d2
ms.sourcegitcommit: b5f7da89a650d2915dc652449623c78be6247175
ms.translationtype: MT
ms.contentlocale: sv-SE
ms.lasthandoff: 08/05/2021
ms.locfileid: "53932655"
---
# <a name="47500-server-busy-please-try-again-later"></a>4.7.500 Server upptagen, försök igen senare
Det här felet inträffar när volymen av e-posttrafik från käll-IP-adressen överskrider gränsen baserat på ryktet (eller brist på rykte) för käll-IP-adressen.
Blockeringen av e-post från käll-IP-adressen upphör att gälla inom en timme. Om käll-IP-adressen är en lokal e-postserver som tillhör dig kontrollerar du konfigurationen av e-postflödeskopplingen. Om beteendet kvarstår i mer än en timme kontaktar du supporten för att begära ett undantag för käll-IP-adressen.
| markdown |
<gh_stars>0
{"relations":[{"id":27295,"relationtype":{"id":6,"rtype":"Containment","role_from":"contained by","role_to":"contains","symmetrical":false},"basket":{"id":235,"display_name":"China"},"direction":"source"},{"id":83144,"relationtype":{"id":7,"rtype":"MultipleTokens","role_from":"Multiple Tokens with","role_to":"Multiple Tokens with","symmetrical":true},"basket":{"id":28665,"display_name":"China -- trafficking into Thailand"},"direction":"destination"},{"id":111625,"relationtype":{"id":6,"rtype":"Containment","role_from":"contained by","role_to":"contains","symmetrical":false},"basket":{"id":29375,"display_name":"Thailand"},"direction":"source"},{"id":83145,"relationtype":{"id":7,"rtype":"MultipleTokens","role_from":"Multiple Tokens with","role_to":"Multiple Tokens with","symmetrical":true},"basket":{"id":29383,"display_name":"Thailand -- trafficking from Burma, China, and Vietnam"},"direction":"destination"},{"id":12448,"relationtype":{"id":4,"rtype":"Subentry","role_from":"Main Entry of","role_to":"Subentry of","symmetrical":false},"basket":{"id":28809,"display_name":"Trafficking in women"},"direction":"source"},{"id":157396,"relationtype":{"id":7,"rtype":"MultipleTokens","role_from":"Multiple Tokens with","role_to":"Multiple Tokens with","symmetrical":true},"basket":{"id":29402,"display_name":"Trafficking in women -- Burma to Thailand"},"direction":"source"},{"id":157398,"relationtype":{"id":7,"rtype":"MultipleTokens","role_from":"Multiple Tokens with","role_to":"Multiple Tokens with","symmetrical":true},"basket":{"id":29419,"display_name":"Trafficking in women -- into Thailand"},"direction":"destination"},{"id":98386,"relationtype":{"id":6,"rtype":"Containment","role_from":"contained by","role_to":"contains","symmetrical":false},"basket":{"id":22256,"display_name":"Woman"},"direction":"source"}],"basket":{"id":29403,"topic_hits":[{"id":30605,"name":"Trafficking in women -- China to Thailand","scope":{"id":2,"scope":"Generic"},"bypass":false,"hidden":false,"preferred":false}],"occurs":[{"id":75337,"location":{"id":19627,"document":{"title":"The Prostitution of Sexuality","author":"<NAME>"},"localid":"page_186","sequence_number":193},"basket":29403},{"id":75338,"location":{"id":19630,"document":{"title":"The Prostitution of Sexuality","author":"<NAME>"},"localid":"page_189","sequence_number":196},"basket":29403},{"id":75339,"location":{"id":19676,"document":{"title":"The Prostitution of Sexuality","author":"<NAME>"},"localid":"page_235","sequence_number":242},"basket":29403}],"display_name":"Trafficking in women -- China to Thailand","description":"","review":{"reviewer":null,"time":null,"reviewed":false,"changed":false},"weblinks":[],"types":[]}} | json |
{
"name": "<NAME>",
"number": "28529976",
"is_illegal": false,
"text": "Activate this card by Tributing 1 Level 2 or lower Plant-Type monster; Special Summon 1 Plant-Type monster from your hand or Deck whose Level is less than or equal to the Level the Tributed monster had on the field +3. When this card leaves the field, destroy that monster. When that monster leaves the field, destroy this card.",
"type": "Spell",
"is_monster": false,
"is_spell": true,
"is_trap": false,
"property": "Continuous"
} | json |
{
"prefix": "!",
"token": "<insert token>",
"channel": "<channel ID to log to>",
"requesturl": "https://<IP/Hostname>:<server port>/players.json",
"guildid": "<guild ID to log to>",
"mysqlconnectionstring": "mysql://<user>:<password>@<server>:<port>/<database>",
"updateintervalinms": 20000,
"dev": true
} | json |
<filename>shapes/sphere.js<gh_stars>10-100
import { Entity } from '../core';
import { Render } from '../components';
import { Transform } from '../components';
const t = 0.5 + Math.sqrt(5) / 2;
const vertices = [
-1, t, 0,
1, t, 0,
-1, -t, 0,
1, -t, 0,
0, -1, t,
0, 1, t,
0, -1, -t,
0, 1, -t,
t, 0, -1,
t, 0, 1,
-t, 0, -1,
-t, 0, 1
];
const normals = [
-1, t, 0,
1, t, 0,
-1, -t, 0,
1, -t, 0,
0, -1, t,
0, 1, t,
0, -1, -t,
0, 1, -t,
t, 0, -1,
t, 0, 1,
-t, 0, -1,
-t, 0, 1
];
const indices = [
0, 11, 5,
0, 5, 1,
0, 1, 7,
0, 7, 10,
0, 10, 11,
1, 5, 9,
5, 11, 4,
11, 10, 2,
10, 7, 6,
7, 1, 8,
3, 9, 4,
3, 4, 2,
3, 2, 6,
3, 6, 8,
3, 8, 9,
4, 9, 5,
2, 4, 11,
6, 2, 10,
8, 6, 7,
9, 8, 1
];
const uvs = [
0.5881, 0.5,
0.75, 0.6762,
0.5, 0.8237,
0.75, 0.6762,
1, 0.8237,
0.5, 0.8237,
0, 0.8237,
0.25, 0.6762,
0.5, 0.8237,
0.25, 0.6762,
0.4118, 0.5,
0.5, 0.8237,
0.4118, 0.5,
0.5881, 0.5,
0.5, 0.8237,
0.75, 0.6762,
0.9118, 0.5,
1, 0.8237,
0.5881, 0.5,
0.75, 0.3237,
0.75, 0.6762,
0.4118, 0.5,
0.5, 0.1762,
0.5881, 0.5,
0.25, 0.6762,
0.25, 0.3237,
0.4118, 0.5,
0, 0.8237,
0.0881, 0.5,
0.25, 0.6762,
0.9118, 0.5,
0.75, 0.3237,
1, 0.1762,
0.75, 0.3237,
0.5, 0.1762,
1, 0.1762,
0.5, 0.1762,
0.25, 0.3237,
0, 0.1762,
0.25, 0.3237,
0.0881, 0.5,
0, 0.1762,
1.0881, 0.5,
0.9118, 0.5,
1, 0.1762,
0.9118, 0.5,
0.75, 0.6762,
0.75, 0.3237,
0.75, 0.3237,
0.5881, 0.5,
0.5, 0.1762,
0.5, 0.1762,
0.4118, 0.5,
0.25, 0.3237,
0.25, 0.3237,
0.25, 0.6762,
0.0881, 0.5,
1.0881, 0.5,
1, 0.8237,
0.9118, 0.5
];
export class Sphere extends Entity {
constructor(options = {}) {
options.components = [
new Transform(),
new Render({
vertices,
indices,
normals,
uvs,
material: options.material
})
];
super(options);
}
// TODO: https://github.com/hughsk/icosphere/blob/master/index.js
}
| javascript |
New Orleans Saints running back Alvin Kamara is expected to be suspended to start the 2023 NFL season. Kamara was arrested during the 2022 Pro Bowl weekend in Las Vegas for attacking a man at a nightclub. He was seen punching the man multiple times on video.
While he didn't face a suspension during the 2022 season, it was expected that the league would take action the next season, heading into the 2023 season.
This morning, NFL Network reporter Ian Rapoport broke the news that Kamara is expected to be suspended this season, but he didn't know how long it will be. Kamara is meeting with NFL Commissioner Roger Goodell, and that could determine the amount of games he is suspended for.
Ian Rapoport tweeted:
"From Inside Training Camp: #Saints RB Alvin Kamara is expected to be suspended for his incident in Las Vegas, but how long could be determined from his meeting with Roger Goodell."
Alvin Kamara has made five Pro Bowls and had two All-Pro selections in his career. Last season, he recorded 1,387 total yards on offense while scoring four touchdowns. The Saints' offense will take a hit in production for however long Kamara is out.
With Alvin Kamara expected to be suspended heading into the 2023 season, newly acquired running back Jamaal Williams is expected to lead the backfield in Kamara's absence.
The New Orleans Saints signed the league leader in touchdowns from last season, with the thought of being without Kamara for some time.
Williams is a good replacement as he is coming off the best season of his NFL career. He recorded 1,066 yards on the ground and ran for 17 touchdowns. He has run for at least 460 yards in each of the six seasons he's played in the NFL.
Behind him, the lineup features Kendre Miller and Dwayne Washington. Miller was the team's third-round pick in the 2023 NFL Draft and is currently listed as the team's third-string running back.
Washington has been a member of the Saints for the last five seasons. He signed with the team in 2018 after spending the first two seasons of his career with the Detroit Lions, and he's served as a backup for the majority of his career. He has recorded a total of 592 rushing yards, one touchdown, and 101 receiving yards.
| english |
<reponame>olafwrieden/helping-hands
import { Entity, PrimaryGeneratedColumn, Column, Timestamp, CreateDateColumn, OneToMany } from "typeorm";
import { Rating } from "./Rating";
export enum Gender {
FEMALE = "female",
MALE = "male",
OTHER = "other"
}
@Entity({ orderBy: { createdOn: "ASC" } })
export class Users {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column()
firstName: string;
@Column()
lastName: string;
@Column({
type: "text",
default: "I am passionate about helping in the local community and love to volunteer! I can help with plumbing, gardening and shopping. I also have a car and can drive you to your appoitments."
})
bio: string;
@Column({
type: "enum",
enum: Gender
})
gender: string;
@Column({
unique: true
})
email: string;
@Column()
phone: string;
@Column({ select: false })
password: string;
@Column()
address: string;
@Column()
city: string;
@Column()
zipCode: number
@CreateDateColumn()
createdOn: string
@Column({ default: true, select: false })
enabled: boolean;
@OneToMany(type => Rating, rating => rating.userId)
ratings: Rating[]
@Column({ default: false })
isVolunteer: boolean
@Column({ default: false })
canDrive: boolean
}
| typescript |
English boxing promoter Frank Warren has weighed in on a potential fight between Anthony Joshua vs. Zhilei Zhang.
Zhang recently locked horns against Warren's client Joe Joyce on September 23 at the OVO Arena Wembley in London, England. The fight was a rematch as they previously fought in April 2023 and 'Big Bang' emerged victorious in that fight via a sixth-round TKO.
The second fight unfolded in a similar manner as Zhang proceeded to knock Joyce out in the third round this time.
The British promoter praised 'Big Bang's ability to absorb shots and suggested that the 40-year-old could possibly knock out Joshua in a fight.
In a recent interview with TalkSport, Frank Warren previewed the potential heavyweight showdown between Anthony Joshua and Zhilei Zhang and made a prediction for the fight. He said:
"He's [Zhilei Zhang] got a good chin, he's taken a couple of good shots in fights, but more importantly he can bang. And I know that if he catches Joshua with one of them it will be lights out, there's no doubt about that."
In the same interview, Warren spoke about Zhang's future in the sport. According to the 71-year-old, a fight between 'Big Bang' and Anthony Joshua would be the obvious way to go. However, the boxing promoter is doubtful whether 'AJ's team would accept the fight or not. Warren added:
"Zhang has announced his arrival on the world stage, he's in the top four heavyweights in the world, that was a magnificent knockout, he boxed extremely well the fight before against a very tough and able and unbeaten opponent in Joe Joyce, so he's there now and he's got a seat at the table. Him against Joshua is a no-brainer, but I don't think they'll risk the fight against Zhang."
Warren has also gone on record to share that Oleksandr Usyk and Tyson Fury could also serve as possible future opponents for Zhang.
Joshua has only lost one professional fight via knockout in his career. In June 2019, 'AJ' faced Andy Ruiz Jr. and suffered the first defeat of his boxing career by 'Destroyer' in the seventh round of the fight.
| english |
{
"generator-coffee-node": {
"promptValues": {
"authorName": "<NAME>",
"authorEmail": "<EMAIL>",
"authorUrl": "http://www.grillbrickstudios.com"
}
}
} | json |
<gh_stars>1-10
module.export = {
default: 'app',
disks: {
app: {
driver: 'file',
root: '/app',
jail: true,
},
},
};
| javascript |
Film Shaitan borrows from the real life devil. This story is about five youngsters set in the urban scape of Mumbai. Young, intelligent, good looking and cool, they have no hang ups and boundaries. In short they are prone to excitement and change in life.
relocate. Amy had a disturbed childhood and therefore has grown up to be a disturbed teenager. After coming to Mumbai she joins a group of rich, reckless and aimless young people, who are hell-bent on living life on the edge. Drugs, speed, racing cars is a sure element in their lives, until one such race that ends in an accident. That is where the story begins. They fall into a vicious pit, full of crime and violence. They come to a situation where everything takes a back seat, be it sanity or morality. And the fact that most of them are carefree, strikes the notes in the film.
With Shaitan, the Indian audiences will experience a total new genre of cinema for the very first time. The reality, edginess and awkwardness that stays with the viewers after the show, proves the proficient work of the writers (Megha Ramaswamy and Bejoy Nambiar) and director (Bejoy Nambiar). Shaitan brilliantly investigates the darker side of the freedom, which is aggressive, sexual, brutal, edgy and well aware of everything happening around. Producer Anurag Kashyap's films have always been labeled 'dark', but the tinge of wickedness and reality that its carries is also seen in Shaitan.
The truth that when the inner demon in everybody comes out, it makes one blind and violent. This has been brought out very well with Shaitan. This film is totally a director's work. First-timer Bejoy Nambiar is magnificent and succeeds in striking the right pulse in people. Bejoy brilliantly looks into the psyche of youngsters through Shaitan.
exhilarating cinematic experience. The spectacular cinematography [Madhie] is hard-hitting and the forceful dialogues [Abhijeet Deshpande] and marvelous. The background score [Ranjit Barot] is superb. The chase sequence [Jaaved Ejaaz] in the second hour is simply remarkable. The sound design [Kunal Sharma] is top notch.
Over all, all these elements come together to fill in the thrill that Shaitan imparts.
The beauty of the film is that there are no heroes like a typical Bollywood cinema. The protagonists are all victims who face the consequences. The cast of the film is superb. Rajeev Khandelwal gives a nailing performance as a cop fighting his inner demons. Kalki is excellent and shocking. Neil Bhoopalam is first-class. Shiv Pandit is good. Kirti Kulhari is efficient. Gulshan Deviah is top notch. Rajat Barmecha is interesting in the cameo.
The supporting cast are fine at their job. Pavan Malhotra is first-rate. Rajit Kapur leaves an impression. Nikhil Chinnappa is good. Rukhsar is okay. Rajkumar Yadav gets it correct.
The first hour of Shaitan is not that weighty. It looked like the best was reserved for the second hour. The Rajeev Khandelwal marriage track seemed to be unnatural and forceful. Narration could've been little precise, probably without the marital discord. With such hard-hitting and dynamic content, Shaitan could've easily been a songless film, though the soundtrack is fantastic.
On the whole, Shaitan is contemporary, thrilling, intense and hard-hitting. It connects instantly with the audience. The film is disturbing and pleasant at the same time. Don't miss it! Take a chance for a change of taste.
| english |
Like any other eight-year-old girl would do, Alisha Abdullah would cling to her father wherever he went; she was greatly inspired by him. But unlike most other Indian girls, she knew she would become a national motorbike racing champion right back then.
Every time she accompanied her father, Abdullah (a bike racer himself) to the tracks, she became increasingly passionate about motorsport. She was quick enough to grasp the intricacies of the mean machines, and she formally started racing when she was eight. Her first win came when she was 10. And when she was just 13 years old, she won the MRF National Go-Karting Championship and the Best Novice Award at the National level Formula Car Racing in the open class. Ever since then, there has been no looking back for Alisha.
“I was never fascinated by Barbie dolls and toys like other girls of my age. Cars and bikes were my fascination,” says the Volkswagen India racer. Some of her achievements include finishing second in the 2006 National Road Racing Championship UCAL, finishing eighth in the 2012 Volkswagen National Polo Cup (India), being honoured with the Rotary Young Achiever Award in 2008 and finishing third in the 2009 JK Tyre National Super-bike Racing Championship, among 15 men.
“There was never any specific reason for me to decide racing is going to be my career and life. It’s just in my genes, seeing him race every time inspired me. In fact he’s been my coach and trainer throughout, but for the international races,” says the prodigy, who is also an ace tennis player. | english |
<reponame>Mattlk13/dependent-packages
["movement-ui-kit","onus","qzzr-ui-components","react-button-group","react-dropdown-button","react-messagebox","react-simple-toolbar","react-simple-tree","react-toolbar","react-tree-view"] | json |
#include <bits/stdc++.h>
using namespace std;
inline void keep_window_open() { char ch; cin >> ch; }
int main(void)
{
cout << "Hello World!\n";
keep_window_open();
return 0;
} | cpp |
<reponame>jgchristian/helmfile
package app
import (
"bufio"
"bytes"
"io"
"path/filepath"
"sync"
"testing"
"github.com/roboll/helmfile/pkg/exectest"
"github.com/roboll/helmfile/pkg/helmexec"
"github.com/roboll/helmfile/pkg/testhelper"
"github.com/variantdev/vals"
"go.uber.org/zap"
)
const (
helmV2ListFlags = "--kube-contextdefault--deleting--deployed--failed--pending"
helmV2ListFlagsWithoutKubeContext = "--deleting--deployed--failed--pending"
helmV3ListFlags = "--kube-contextdefault--uninstalling--deployed--failed--pending"
helmV3ListFlagsWithoutKubeContext = "--uninstalling--deployed--failed--pending"
)
type destroyConfig struct {
args string
concurrency int
interactive bool
skipDeps bool
logger *zap.SugaredLogger
}
func (d destroyConfig) Args() string {
return d.args
}
func (d destroyConfig) Interactive() bool {
return d.interactive
}
func (d destroyConfig) Logger() *zap.SugaredLogger {
return d.logger
}
func (d destroyConfig) Concurrency() int {
return d.concurrency
}
func (d destroyConfig) SkipDeps() bool {
return d.skipDeps
}
func TestDestroy(t *testing.T) {
type testcase struct {
helm3 bool
ns string
concurrency int
error string
files map[string]string
selectors []string
lists map[exectest.ListKey]string
diffs map[exectest.DiffKey]error
upgraded []exectest.Release
deleted []exectest.Release
log string
}
check := func(t *testing.T, tc testcase) {
t.Helper()
wantUpgrades := tc.upgraded
wantDeletes := tc.deleted
var helm = &exectest.Helm{
Helm3: tc.helm3,
FailOnUnexpectedList: true,
FailOnUnexpectedDiff: true,
Lists: tc.lists,
Diffs: tc.diffs,
DiffMutex: &sync.Mutex{},
ChartsMutex: &sync.Mutex{},
ReleasesMutex: &sync.Mutex{},
}
bs := &bytes.Buffer{}
func() {
t.Helper()
logReader, logWriter := io.Pipe()
logFlushed := &sync.WaitGroup{}
// Ensure all the log is consumed into `bs` by calling `logWriter.Close()` followed by `logFlushed.Wait()`
logFlushed.Add(1)
go func() {
scanner := bufio.NewScanner(logReader)
for scanner.Scan() {
bs.Write(scanner.Bytes())
bs.WriteString("\n")
}
logFlushed.Done()
}()
defer func() {
// This is here to avoid data-trace on bytes buffer `bs` to capture logs
if err := logWriter.Close(); err != nil {
panic(err)
}
logFlushed.Wait()
}()
logger := helmexec.NewLogger(logWriter, "debug")
valsRuntime, err := vals.New(vals.Options{CacheSize: 32})
if err != nil {
t.Errorf("unexpected error creating vals runtime: %v", err)
}
app := appWithFs(&App{
OverrideHelmBinary: DefaultHelmBinary,
glob: filepath.Glob,
abs: filepath.Abs,
OverrideKubeContext: "default",
Env: "default",
Logger: logger,
helms: map[helmKey]helmexec.Interface{
createHelmKey("helm", "default"): helm,
},
valsRuntime: valsRuntime,
}, tc.files)
if tc.ns != "" {
app.Namespace = tc.ns
}
if tc.selectors != nil {
app.Selectors = tc.selectors
}
destroyErr := app.Destroy(destroyConfig{
// if we check log output, concurrency must be 1. otherwise the test becomes non-deterministic.
concurrency: tc.concurrency,
logger: logger,
})
if tc.error == "" && destroyErr != nil {
t.Fatalf("unexpected error: %v", destroyErr)
} else if tc.error != "" && destroyErr == nil {
t.Fatal("expected error did not occur")
} else if tc.error != "" && destroyErr != nil && tc.error != destroyErr.Error() {
t.Fatalf("invalid error: expected %q, got %q", tc.error, destroyErr.Error())
}
if len(wantUpgrades) > len(helm.Releases) {
t.Fatalf("insufficient number of upgrades: got %d, want %d", len(helm.Releases), len(wantUpgrades))
}
for relIdx := range wantUpgrades {
if wantUpgrades[relIdx].Name != helm.Releases[relIdx].Name {
t.Errorf("releases[%d].name: got %q, want %q", relIdx, helm.Releases[relIdx].Name, wantUpgrades[relIdx].Name)
}
for flagIdx := range wantUpgrades[relIdx].Flags {
if wantUpgrades[relIdx].Flags[flagIdx] != helm.Releases[relIdx].Flags[flagIdx] {
t.Errorf("releaes[%d].flags[%d]: got %v, want %v", relIdx, flagIdx, helm.Releases[relIdx].Flags[flagIdx], wantUpgrades[relIdx].Flags[flagIdx])
}
}
}
if len(wantDeletes) > len(helm.Deleted) {
t.Fatalf("insufficient number of deletes: got %d, want %d", len(helm.Deleted), len(wantDeletes))
}
for relIdx := range wantDeletes {
if wantDeletes[relIdx].Name != helm.Deleted[relIdx].Name {
t.Errorf("releases[%d].name: got %q, want %q", relIdx, helm.Deleted[relIdx].Name, wantDeletes[relIdx].Name)
}
for flagIdx := range wantDeletes[relIdx].Flags {
if wantDeletes[relIdx].Flags[flagIdx] != helm.Deleted[relIdx].Flags[flagIdx] {
t.Errorf("releaes[%d].flags[%d]: got %v, want %v", relIdx, flagIdx, helm.Deleted[relIdx].Flags[flagIdx], wantDeletes[relIdx].Flags[flagIdx])
}
}
}
}()
if tc.log != "" {
actual := bs.String()
diff, exists := testhelper.Diff(tc.log, actual, 3)
if exists {
t.Errorf("unexpected log:\nDIFF\n%s\nEOD", diff)
}
}
}
files := map[string]string{
"/path/to/helmfile.yaml": `
releases:
- name: database
chart: charts/mysql
needs:
- logging
- name: frontend-v1
chart: charts/frontend
installed: false
needs:
- servicemesh
- logging
- backend-v1
- name: frontend-v2
chart: charts/frontend
needs:
- servicemesh
- logging
- backend-v2
- name: frontend-v3
chart: charts/frontend
needs:
- servicemesh
- logging
- backend-v2
- name: backend-v1
chart: charts/backend
installed: false
needs:
- servicemesh
- logging
- database
- anotherbackend
- name: backend-v2
chart: charts/backend
needs:
- servicemesh
- logging
- database
- anotherbackend
- name: anotherbackend
chart: charts/anotherbackend
needs:
- servicemesh
- logging
- database
- name: servicemesh
chart: charts/istio
needs:
- logging
- name: logging
chart: charts/fluent-bit
- name: front-proxy
chart: stable/envoy
`,
}
filesForTwoReleases := map[string]string{
"/path/to/helmfile.yaml": `
releases:
- name: backend-v1
chart: charts/backend
installed: false
- name: frontend-v1
chart: charts/frontend
needs:
- backend-v1
`,
}
t.Run("smoke", func(t *testing.T) {
//
// complex test cases for smoke testing
//
check(t, testcase{
files: files,
diffs: map[exectest.DiffKey]error{},
lists: map[exectest.ListKey]string{
exectest.ListKey{Filter: "^frontend-v1$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
exectest.ListKey{Filter: "^frontend-v2$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
frontend-v2 4 Fri Nov 1 08:40:07 2019 DEPLOYED frontend-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^frontend-v3$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
frontend-v3 4 Fri Nov 1 08:40:07 2019 DEPLOYED frontend-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^backend-v1$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
exectest.ListKey{Filter: "^backend-v2$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
backend-v2 4 Fri Nov 1 08:40:07 2019 DEPLOYED backend-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^logging$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
logging 4 Fri Nov 1 08:40:07 2019 DEPLOYED fluent-bit-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^front-proxy$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
front-proxy 4 Fri Nov 1 08:40:07 2019 DEPLOYED envoy-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^servicemesh$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
servicemesh 4 Fri Nov 1 08:40:07 2019 DEPLOYED istio-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^database$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
database 4 Fri Nov 1 08:40:07 2019 DEPLOYED mysql-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^anotherbackend$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
anotherbackend 4 Fri Nov 1 08:40:07 2019 DEPLOYED anotherbackend-3.1.0 3.1.0 default
`,
},
// Disable concurrency to avoid in-deterministic result
concurrency: 1,
upgraded: []exectest.Release{},
deleted: []exectest.Release{
{Name: "frontend-v3", Flags: []string{}},
{Name: "frontend-v2", Flags: []string{}},
{Name: "frontend-v1", Flags: []string{}},
{Name: "backend-v2", Flags: []string{}},
{Name: "backend-v1", Flags: []string{}},
{Name: "anotherbackend", Flags: []string{}},
{Name: "servicemesh", Flags: []string{}},
{Name: "database", Flags: []string{}},
{Name: "front-proxy", Flags: []string{}},
{Name: "logging", Flags: []string{}},
},
log: `processing file "helmfile.yaml" in directory "."
first-pass rendering starting for "helmfile.yaml.part.0": inherited=&{default map[] map[]}, overrode=<nil>
first-pass uses: &{default map[] map[]}
first-pass rendering output of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: database
3: chart: charts/mysql
4: needs:
5: - logging
6: - name: frontend-v1
7: chart: charts/frontend
8: installed: false
9: needs:
10: - servicemesh
11: - logging
12: - backend-v1
13: - name: frontend-v2
14: chart: charts/frontend
15: needs:
16: - servicemesh
17: - logging
18: - backend-v2
19: - name: frontend-v3
20: chart: charts/frontend
21: needs:
22: - servicemesh
23: - logging
24: - backend-v2
25: - name: backend-v1
26: chart: charts/backend
27: installed: false
28: needs:
29: - servicemesh
30: - logging
31: - database
32: - anotherbackend
33: - name: backend-v2
34: chart: charts/backend
35: needs:
36: - servicemesh
37: - logging
38: - database
39: - anotherbackend
40: - name: anotherbackend
41: chart: charts/anotherbackend
42: needs:
43: - servicemesh
44: - logging
45: - database
46: - name: servicemesh
47: chart: charts/istio
48: needs:
49: - logging
50: - name: logging
51: chart: charts/fluent-bit
52: - name: front-proxy
53: chart: stable/envoy
54:
first-pass produced: &{default map[] map[]}
first-pass rendering result of "helmfile.yaml.part.0": {default map[] map[]}
vals:
map[]
defaultVals:[]
second-pass rendering result of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: database
3: chart: charts/mysql
4: needs:
5: - logging
6: - name: frontend-v1
7: chart: charts/frontend
8: installed: false
9: needs:
10: - servicemesh
11: - logging
12: - backend-v1
13: - name: frontend-v2
14: chart: charts/frontend
15: needs:
16: - servicemesh
17: - logging
18: - backend-v2
19: - name: frontend-v3
20: chart: charts/frontend
21: needs:
22: - servicemesh
23: - logging
24: - backend-v2
25: - name: backend-v1
26: chart: charts/backend
27: installed: false
28: needs:
29: - servicemesh
30: - logging
31: - database
32: - anotherbackend
33: - name: backend-v2
34: chart: charts/backend
35: needs:
36: - servicemesh
37: - logging
38: - database
39: - anotherbackend
40: - name: anotherbackend
41: chart: charts/anotherbackend
42: needs:
43: - servicemesh
44: - logging
45: - database
46: - name: servicemesh
47: chart: charts/istio
48: needs:
49: - logging
50: - name: logging
51: chart: charts/fluent-bit
52: - name: front-proxy
53: chart: stable/envoy
54:
merged environment: &{default map[] map[]}
10 release(s) found in helmfile.yaml
processing 5 groups of releases in this order:
GROUP RELEASES
1 default//frontend-v3, default//frontend-v2, default//frontend-v1
2 default//backend-v2, default//backend-v1
3 default//anotherbackend
4 default//servicemesh, default//database
5 default//front-proxy, default//logging
processing releases in group 1/5: default//frontend-v3, default//frontend-v2, default//frontend-v1
release "frontend-v3" processed
release "frontend-v2" processed
release "frontend-v1" processed
processing releases in group 2/5: default//backend-v2, default//backend-v1
release "backend-v2" processed
release "backend-v1" processed
processing releases in group 3/5: default//anotherbackend
release "anotherbackend" processed
processing releases in group 4/5: default//servicemesh, default//database
release "servicemesh" processed
release "database" processed
processing releases in group 5/5: default//front-proxy, default//logging
release "front-proxy" processed
release "logging" processed
DELETED RELEASES:
NAME
frontend-v3
frontend-v2
frontend-v1
backend-v2
backend-v1
anotherbackend
servicemesh
database
front-proxy
logging
`,
})
})
t.Run("destroy only one release with selector", func(t *testing.T) {
check(t, testcase{
files: files,
selectors: []string{"name=logging"},
diffs: map[exectest.DiffKey]error{},
lists: map[exectest.ListKey]string{
exectest.ListKey{Filter: "^frontend-v1$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
exectest.ListKey{Filter: "^frontend-v2$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
frontend-v2 4 Fri Nov 1 08:40:07 2019 DEPLOYED frontend-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^frontend-v3$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
frontend-v3 4 Fri Nov 1 08:40:07 2019 DEPLOYED frontend-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^backend-v1$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
exectest.ListKey{Filter: "^backend-v2$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
backend-v2 4 Fri Nov 1 08:40:07 2019 DEPLOYED backend-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^logging$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
logging 4 Fri Nov 1 08:40:07 2019 DEPLOYED fluent-bit-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^front-proxy$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
front-proxy 4 Fri Nov 1 08:40:07 2019 DEPLOYED envoy-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^servicemesh$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
servicemesh 4 Fri Nov 1 08:40:07 2019 DEPLOYED istio-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^database$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
database 4 Fri Nov 1 08:40:07 2019 DEPLOYED mysql-3.1.0 3.1.0 default
`,
exectest.ListKey{Filter: "^anotherbackend$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
anotherbackend 4 Fri Nov 1 08:40:07 2019 DEPLOYED anotherbackend-3.1.0 3.1.0 default
`,
},
// Disable concurrency to avoid in-deterministic result
concurrency: 1,
upgraded: []exectest.Release{},
deleted: []exectest.Release{
{Name: "logging", Flags: []string{}},
},
log: `processing file "helmfile.yaml" in directory "."
first-pass rendering starting for "helmfile.yaml.part.0": inherited=&{default map[] map[]}, overrode=<nil>
first-pass uses: &{default map[] map[]}
first-pass rendering output of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: database
3: chart: charts/mysql
4: needs:
5: - logging
6: - name: frontend-v1
7: chart: charts/frontend
8: installed: false
9: needs:
10: - servicemesh
11: - logging
12: - backend-v1
13: - name: frontend-v2
14: chart: charts/frontend
15: needs:
16: - servicemesh
17: - logging
18: - backend-v2
19: - name: frontend-v3
20: chart: charts/frontend
21: needs:
22: - servicemesh
23: - logging
24: - backend-v2
25: - name: backend-v1
26: chart: charts/backend
27: installed: false
28: needs:
29: - servicemesh
30: - logging
31: - database
32: - anotherbackend
33: - name: backend-v2
34: chart: charts/backend
35: needs:
36: - servicemesh
37: - logging
38: - database
39: - anotherbackend
40: - name: anotherbackend
41: chart: charts/anotherbackend
42: needs:
43: - servicemesh
44: - logging
45: - database
46: - name: servicemesh
47: chart: charts/istio
48: needs:
49: - logging
50: - name: logging
51: chart: charts/fluent-bit
52: - name: front-proxy
53: chart: stable/envoy
54:
first-pass produced: &{default map[] map[]}
first-pass rendering result of "helmfile.yaml.part.0": {default map[] map[]}
vals:
map[]
defaultVals:[]
second-pass rendering result of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: database
3: chart: charts/mysql
4: needs:
5: - logging
6: - name: frontend-v1
7: chart: charts/frontend
8: installed: false
9: needs:
10: - servicemesh
11: - logging
12: - backend-v1
13: - name: frontend-v2
14: chart: charts/frontend
15: needs:
16: - servicemesh
17: - logging
18: - backend-v2
19: - name: frontend-v3
20: chart: charts/frontend
21: needs:
22: - servicemesh
23: - logging
24: - backend-v2
25: - name: backend-v1
26: chart: charts/backend
27: installed: false
28: needs:
29: - servicemesh
30: - logging
31: - database
32: - anotherbackend
33: - name: backend-v2
34: chart: charts/backend
35: needs:
36: - servicemesh
37: - logging
38: - database
39: - anotherbackend
40: - name: anotherbackend
41: chart: charts/anotherbackend
42: needs:
43: - servicemesh
44: - logging
45: - database
46: - name: servicemesh
47: chart: charts/istio
48: needs:
49: - logging
50: - name: logging
51: chart: charts/fluent-bit
52: - name: front-proxy
53: chart: stable/envoy
54:
merged environment: &{default map[] map[]}
1 release(s) matching name=logging found in helmfile.yaml
processing 1 groups of releases in this order:
GROUP RELEASES
1 default//logging
processing releases in group 1/1: default//logging
release "logging" processed
DELETED RELEASES:
NAME
logging
`,
})
})
t.Run("destroy installed but disabled release", func(t *testing.T) {
check(t, testcase{
files: filesForTwoReleases,
diffs: map[exectest.DiffKey]error{},
lists: map[exectest.ListKey]string{
exectest.ListKey{Filter: "^frontend-v1$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
exectest.ListKey{Filter: "^backend-v1$", Flags: helmV2ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
},
// Disable concurrency to avoid in-deterministic result
concurrency: 1,
upgraded: []exectest.Release{},
deleted: []exectest.Release{
{Name: "frontend-v1", Flags: []string{}},
},
log: `processing file "helmfile.yaml" in directory "."
first-pass rendering starting for "helmfile.yaml.part.0": inherited=&{default map[] map[]}, overrode=<nil>
first-pass uses: &{default map[] map[]}
first-pass rendering output of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: backend-v1
3: chart: charts/backend
4: installed: false
5: - name: frontend-v1
6: chart: charts/frontend
7: needs:
8: - backend-v1
9:
first-pass produced: &{default map[] map[]}
first-pass rendering result of "helmfile.yaml.part.0": {default map[] map[]}
vals:
map[]
defaultVals:[]
second-pass rendering result of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: backend-v1
3: chart: charts/backend
4: installed: false
5: - name: frontend-v1
6: chart: charts/frontend
7: needs:
8: - backend-v1
9:
merged environment: &{default map[] map[]}
2 release(s) found in helmfile.yaml
processing 2 groups of releases in this order:
GROUP RELEASES
1 default//frontend-v1
2 default//backend-v1
processing releases in group 1/2: default//frontend-v1
release "frontend-v1" processed
processing releases in group 2/2: default//backend-v1
release "backend-v1" processed
DELETED RELEASES:
NAME
frontend-v1
backend-v1
`,
})
})
t.Run("helm3", func(t *testing.T) {
check(t, testcase{
helm3: true,
files: filesForTwoReleases,
diffs: map[exectest.DiffKey]error{},
lists: map[exectest.ListKey]string{
exectest.ListKey{Filter: "^frontend-v1$", Flags: helmV3ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
exectest.ListKey{Filter: "^backend-v1$", Flags: helmV3ListFlags}: `NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
`,
},
// Disable concurrency to avoid in-deterministic result
concurrency: 1,
upgraded: []exectest.Release{},
deleted: []exectest.Release{
{Name: "frontend-v1", Flags: []string{}},
},
log: `processing file "helmfile.yaml" in directory "."
first-pass rendering starting for "helmfile.yaml.part.0": inherited=&{default map[] map[]}, overrode=<nil>
first-pass uses: &{default map[] map[]}
first-pass rendering output of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: backend-v1
3: chart: charts/backend
4: installed: false
5: - name: frontend-v1
6: chart: charts/frontend
7: needs:
8: - backend-v1
9:
first-pass produced: &{default map[] map[]}
first-pass rendering result of "helmfile.yaml.part.0": {default map[] map[]}
vals:
map[]
defaultVals:[]
second-pass rendering result of "helmfile.yaml.part.0":
0:
1: releases:
2: - name: backend-v1
3: chart: charts/backend
4: installed: false
5: - name: frontend-v1
6: chart: charts/frontend
7: needs:
8: - backend-v1
9:
merged environment: &{default map[] map[]}
2 release(s) found in helmfile.yaml
processing 2 groups of releases in this order:
GROUP RELEASES
1 default//frontend-v1
2 default//backend-v1
processing releases in group 1/2: default//frontend-v1
release "frontend-v1" processed
processing releases in group 2/2: default//backend-v1
release "backend-v1" processed
DELETED RELEASES:
NAME
frontend-v1
backend-v1
`,
})
})
}
| go |
Timbuktu, Mali, Dec 14 – French troops were preparing to leave the Malian city of Timbuktu on Tuesday, in a symbolic departure more than eight years after Paris first intervened in the conflict-torn Sahel state.
It was there that then French president Francois Hollande formally declared the start of France’s military intervention, in February 2013, designed to root out jihadist insurgents.
A few days prior, French legionnaires and Malian troops had liberated Timbuktu, a northern desert city, after an eight-month Islamist occupation.
“Some people were overcome by emotion, women were crying, young people were shouting, I myself was overwhelmed,” said Yehia Tandina, a Timbuktu television journalist, recalling the day.
Mohamed Ibrahim, the former president of the Timbuktu regional council, also described the day as “joyful” and “beautiful”.
But now French troops are leaving their base in Timbuktu, raising questions about the future of jihadist activity as militants put down roots in the countryside.
Mathieu, a French sergeant, was part of the original contingent of French soldiers who arrived in Mali, and has returned to the Timbuktu base for the handover ceremony.
“We’ve come full circle,” he said, smiling.
Since 2013, Paris has deployed around 5,100 troops across the Sahel region — which includes Mali — helping to support local governments and their poorly equipped forces fight an ever-growing Islamist insurgency.
However, French President Emmanuel Macron announced a major drawdown of French troops in June, after a military takeover in Mali in August 2020 that ousted the elected president Ibrahim Boubacar Keita.
France’s military deployment in the Sahel is due to fall to about 3,000 troops by next year.
French forces have already left bases in the northern Malian towns of Kidal and Tessalit.
The French were greeted as liberators when they entered Timbuktu in 2013.
Former president Hollande also described the day French soldiers retook the city as “the best day of his political life”.
Sergeant Mathieu said the atmosphere was no longer as jovial, although that locals are not hostile.
A lack of enthusiasm may be linked to continuing conflict across the vast nation of 19 million people.
Jihadists attacks have grown more frequent since 2013, and the conflict has spilled over into neighbouring Burkina Faso and Niger.
Whether France’s mission can be described as a military success is a sensitive question.
For Master Corporal Julien, who was also in Timbuktu in 2013: “We have to hope that things will get better for civilians”.
Outside the city, locals appear to have come to terms with the jihadists, said security officials and Western diplomats.
An acceptance of their legitimacy, at least among locals, may have also decreased violence.
“Where there is coexistence, there will certainly be fewer negative acts,” said Tandina, the journalist, noting improved security in the Timbuktu region.
According to the UN, militant attacks on civilians in Timbuktu and the surrounding area are at their lowest since 2015.
Still, Westerners cannot travel outside the city without an armed escort.
The central government, which is supported by the UN inside the city, is largely invisible in the countryside.
Most jihadists in the region are affiliated to al-Qaeda. In their propaganda, they boast that they control the territory and have won the hearts of locals.
A Timbuktu resident, who declined to be named, told AFP many people prefer to use the Islamic court system rather than the official one.
One Islamic judge, Houka Houka Ag Alhousseini, remains active in the area despite figuring on a United Nations sanctions list for having worked in a similar capacity during the jihadist occupation of Timbuktu.
Near Timbuktu airport, equipment from the French base ranging from satellite dishes to crates of medicine is piled up and ready to ship to the country’s main Sahel military base at Gao in northern Mali.
Tents, among other small items, were due to be left behind.
The remaining French soldiers were milling about the camp with not much to do: the wifi has been disconnected, putting them on the same footing as Timbuktu residents.
Jihadists recently attacked telecommunications infrastructure, causing persistent network problems.
“Of course there are problems” said Ali Ibrahim, a 26-year-old law student, citing a lack of work, among other issues impacting residents’ lives. | english |
<filename>docs/extensions/FrameworkElementExtensions.md
---
title: FrameworkElement Extensions
author: Sergio0694
description: Provides attached dependency properties and extensions for the FrameworkElement type.
keywords: windows 10, uwp, windows community toolkit, uwp community toolkit, uwp toolkit, FrameworkElement, extensions
dev_langs:
- csharp
- vb
---
# FrameworkElement Extensions
[`FrameworkElementExtensions`](/dotnet/api/microsoft.toolkit.uwp.ui.frameworkelementextensions) provides a collection of attached dependency properties, helpers and extension methods to work with [`FrameworkElement`](/uwp/api/windows.ui.xaml.frameworkelement) objects. In particular, it also includes a series of extension methods to explore the logical tree from a given UI element and find child or parent objects.
> **Platform APIs:** [`FrameworkElementExtensions`](/dotnet/api/microsoft.toolkit.uwp.ui.frameworkelementextensions), [`DependencyObjectExtensions`](/dotnet/api/microsoft.toolkit.uwp.ui.DependencyObjectExtensions)
## Logical tree extensions
The `FindChild` and `FindParent` methods (and their overloads) provide an easy way to explore the logical tree starting from a given `FrameworkElement` instance and find other controls connected to it.
These APIs differ from the *visual tree* extensions (in the [`DependencyObjectExtensions`](/dotnet/api/microsoft.toolkit.uwp.ui.DependencyObjectExtensions) class) where extra containers and styles can wrap other elements. The logical tree instead defines how controls are directly connected through construction. These methods can also be used on controls that aren't yet connected or rendered in the visual tree.
Here are some examples of how these extensions can be used:
```csharp
// Include the namespace to access the extensions
using Microsoft.Toolkit.Uwp.UI;
// Find a logical child control using its name
var control = uiElement.FindChild("MyTextBox");
// Find the first logical child control of a specified type
control = uiElement.FindChild<ListView>();
// Find all logical child controls of the specified type.
// The FindChildren extension will iterate through all the existing
// child nodes of the starting control, so here we also use the
// OfType<T>() LINQ extension (from System.Linq) to filter to a type.
foreach (var child in uiElement.FindChildren().OfType<ListViewItem>())
{
// ...
}
// Find the first logical parent using its name
control = uiElement.FindParent("MyGrid");
// Find the first logical parent control of a specified type
control = uiElement.FindParent<Grid>();
// Retrieves the Content for the specified control from whatever its "Content" property may be
var content = uiElement.GetContentControl();
```
```vb
' Include the namespace to access the extensions
Imports Microsoft.Toolkit.Uwp.UI
' Find a logical child control using its name
Dim control = uiElement.FindChild("MyTextBox")
' Find the first logical child control of a specified type
control = uiElement.FindChild(Of ListView)()
' Find all the child nodes of a specified type. Like in the C# example,
' here we are also using a LINQ extension to filter the returned items.
For Each child In uiElement.FindChildren().OfType(Of ListViewItem)()
' ...
Next
' Find the first logical parent using its name
control = uiElement.FindParent("MyGrid")
' Find the first logical parent control of a specified type
control = uiElement.FindParent(Of Grid)()
' Retrieves the Content for the specified control from whatever its "Content" property may be
Dim content = uiElement.GetContentControl()
```
## EnableActualSizeBinding
The `EnableActualSizeBinding` property allows you to enable/disable the binding for the `ActualHeight` and `ActualWidth` extensions. The `ActualHeight` and `ActualWidth` properties then make it possible to bind to the `ActualHeight` and `ActualWidth` properties of a given object.
Here is an example of how the `ActualWidth` attached property can be used in a binding:
```xaml
<Rectangle
x:Name="TargetObject"
ui:FrameworkElementExtensions.EnableActualSizeBinding="true"/>
...
<TextBlock Text="{Binding ElementName=TargetObject, Path=(ui:FrameworkElementExtensions.ActualHeight)}" />
```
## AncestorType
The `AncestorType` attached property will walk the visual tree from the attached element for another element of the specified type. That value will be stored in the attached element's `Ancestor` property. This can then be used for binding to properties on the parent element. This is similar to the [`FindAncestor`](/dotnet/api/system.windows.data.relativesourcemode) mode to [`RelativeSource`](/dotnet/desktop/wpf/advanced/relativesource-markupextension) data binding in WPF.
Here is an example of how this can be used:
```xaml
<Button
ui:FrameworkElementExtensions.AncestorType="Grid"
Visibility="{Binding (ui:FrameworkElementExtensions.Ancestor).Visibility,RelativeSource={RelativeSource Self}}"/>
```
## Cursor
The `Cursor` attached property enables you to easily change the mouse cursor over specific Framework elements. Values of this property are values from the [`CoreCursorType`](/uwp/api/windows.ui.core.corecursortype) type.
Here is how you can easily set a custom cursor type for a target `FrameworkElement` instance:
```xaml
<Page
x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.MouseCursorPage"
xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Border
ui:FrameworkElementExtensions.Cursor="Hand"
Width="220" Height="120" Background="DeepSkyBlue"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</Page>
```
> [!NOTE]
> Even though Microsoft recommends in [UWP Design guidelines](/windows/apps/design/input/mouse-interactions#cursors) hover effects instead of custom cursors over interactive elements, custom cursors can be useful in some specific scenarios.
> [!WARNING]
> Because the UWP framework does not support metadata on attached properties, specifically the [`FrameworkPropertyMetadata.Inherits`](/dotnet/api/system.windows.frameworkpropertymetadata.-ctor#System_Windows_FrameworkPropertyMetadata__ctor_System_Object_System_Windows_FrameworkPropertyMetadataOptions_System_Windows_PropertyChangedCallback_System_Windows_CoerceValueCallback_) flag, the `Cursor` property might not work properly in some very specific XAML layout scenarios when combining nested `FrameworkElement`-s with different `CoreCursorType` values set on them.
## Examples
You can find more examples in the [unit tests](https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/rel/7.1.0/UnitTests).
| markdown |
KUALA LUMPUR, Nov 21 — Bursa Malaysia opened lower as losses on regional bourses and weaker oil prices hampered buying sentiment in the local market. At 9.10am, the benchmark FTSE Bursa Malaysia KLCI (FBM KLCI) lost 15.06 points to 1,695.65 from Monday’s close of 1,710.71,...Read more:
Wow, back in the previous gomen, this would be made into campaigns and songs of hatred to the gomen by the oppo back then. Suddenly, all are pretty quiet these days. 'Benefits' are flowing in indeed for them, hence the silence regarding the economy going down.
| english |
An incident that has left many scared and stunned occurred in Odisha recently after two pythons were found entangled in a JCB. The deadly reptiles were rescued with the help of locals and snake rescue experts. They were later released in a nearby forest around the area. This was done in the presence of forest officials. According to a report published in the Indian Express, the incident happened during a beautification project that was underway at the water reservoir in Paligumula village of Berhampur.
The driver of the JCB machine revealed that they spotted the big snakes while they were digging the soil in the canal. He anticipates that the snakes would have been hibernating there as the temperature has dipped significantly in the state.
He also revealed that one of the snakes became aggressive and made attempts to attack the people present at the spot. Eventually, snake rescue experts were called. With the help from locals and experts, both the pythons were removed from the machine. Swadhin Kumar Sahu, a snake rescue expert who was a part of the team, mentioned that one of the pythons was a massive 11 feet long reptile, while the other one was seven feet long.
When the rescue operation was started, the two snakes were in an entangled condition in the JCB. The entire process of removing the snakes from the machine’s bonnet took more than four hours, reported news agency ANI.
Meanwhile, a king cobra was rescued from a well in Odisha’s Burujhari village of Ganjam district. This incident occurred in July last year. The reptile was spotted by the locals in an abandoned well. After that, the people in the area informed the forest department officials who then sent a team of experts to rescue the snake. The king cobra that was rescued by people working in the Khollikote forest range was said to be around 12-15 feet long. It took around an hour to complete the entire rescue process. | english |
Can I take Gabapentin during pregnancy?
Gabapentin capsules should not be taken during pregnancy unless advised by your physician. Use contraception if you are a woman of child-bearing potential. Medicines for epilepsy should not be discontinued abruptly as there is a risk of fits which can be harmful to the baby. Discuss with your doctor if you are pregnant.
Can I take Gabapentin while breastfeeding?
Gabapentin passes into breast milk. Since the effect on the baby is unknown, it is not recommended to breastfeed while using Gabapentin capsules.
Can I drive if I have consumed Gabapentin?
Caution is advised as Gabapentin can cause dizziness or tiredness. Avoid driving if you experience these.
Can I consume alcohol with Gabapentin?
It is not recommended with alcohol as it increases the risk of side effects like drowsiness and difficulty in concentrating.
How Does It Work?
It affects chemicals and nerves in the body that cause seizures (convulsions) and some types of nerve pain.
Gabapentin may interact with medicines like Levothyroxine, Ascorbic Acid, Alprazolam, Atorvastatin and Furosemide.
If you are on treatment with Gabapentin avoid fish oil as it increases the side effects of it.
Symptoms of overdose are double vision, slurred speech, loss of consciousness, drowsiness and diarrhea. Inform your doctor immediately in case of overdose.
If you missed any dose, take it as soon as you remember. If it is time for your next dose, then skip the missed dose & do not take extra medicine to compensate for the missed dose.
The information provided herein is supplied to the best of our abilities to make it accurate and reliable as it is published after a review by a team of professionals. This information is solely intended to provide a general overview on the product and must be used for informational purposes only. You should not use the information provided herein to diagnose, prevent, or cure a health problem. Nothing contained on this page is intended to create a doctor-patient relationship, replace or be a substitute for a registered medical practitioner's medical treatment/advice or consultation. The absence of any information or warning to any medicine shall not be considered and assumed as an implied assurance. We highly recommend that you consult your registered medical practitioner for all queries or doubts related to your medical condition. You hereby agree that you shall not make any health or medical-related decision based in whole or in part on anything contained in the Site. Please click here for detailed T&C.
| english |
# seat-shuffling
A Jupyter notebook for facilitating and visualizing randomized office reseating
## This isn't intended to be a fully generic solution
If you'd like to try using our tool, here's how:
1. Fill in the names of people on the team in `team.csv` (replacing things like `First1` and `Last1` with people's actual first and last names). Specify whether each person needs a seat (`True`) or not (`False`), and what their original seat numbers are.
(Specifying the original seat isn't necessary for shuffling -- it's just needed for visualizing permutation cycles.)
2. If you want to specify some seats by hand, fill those in in `fixed_seats.csv`.
3. In order to use this code for your own purposes, you'll probably need to change the seat numbering and the layout in the visualization code.
After customizing the code for your own layout/needs, we hope this code proves useful and fun for you.
| markdown |
<gh_stars>0
[{"liveId":"5b0988450cf27c5d80eaa4a1","title":"林嘉佩的直播间","subTitle":"57","picPath":"/mediasource/live/152553594218074GaLS5LCk.jpg","startTime":1527351365921,"memberId":63562,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5b0988450cf27c5d80eaa4a1.lrc","streamPath":"http://2519.liveplay.myqcloud.com/live/2519_3593162.flv","screenMode":0,"roomId":"3869327","bwqaVersion":0},{"liveId":"5b09854e0cf27c5d80eaa4a0","title":"阳青颖的直播间","subTitle":"播","picPath":"/mediasource/live/15273506060438cSQrKUVnh.jpg","startTime":1527350606186,"memberId":63576,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5b09854e0cf27c5d80eaa4a0.lrc","streamPath":"http://2519.liveplay.myqcloud.com/live/2519_3593159.flv","screenMode":0,"roomId":"3869330","bwqaVersion":0},{"liveId":"5b0984380cf25f5a23ae083b","title":"农燕萍的直播间","subTitle":"刚刚好刚刚没冲上电(´;︵;`)","picPath":"/mediasource/live/15273465745248R8HFS2b6w.png","startTime":1527350328766,"memberId":417321,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5b0984380cf25f5a23ae083b.lrc","streamPath":"http://2519.liveplay.myqcloud.com/live/2519_3593152.flv","screenMode":0,"roomId":"5081873","bwqaVersion":0},{"liveId":"5b097ba90cf27c5d80eaa49d","title":"谢蕾蕾的直播间","subTitle":"我来啦!","picPath":"/mediasource/live/1527347874202u0G4QFUNp2.jpg","startTime":1527348137114,"memberId":63572,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5b097ba90cf27c5d80eaa49d.lrc","streamPath":"http://pl.live.weibo.com/alicdn/fd6d38288b59e51bc7562153b2afcd4b_wb480.flv","screenMode":0,"roomId":"3871119","bwqaVersion":0},{"liveId":"5b0978f50cf2392c4b1c2421","title":"任心怡的直播间","subTitle":"睡醒了👀","picPath":"/mediasource/live/1527347445475kGN640Vo8O.jpg","startTime":1527347445741,"memberId":407112,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5b0978f50cf2392c4b1c2421.lrc","streamPath":"http://pl.live.weibo.com/alicdn/2913424f1bb073d77643af7c8711057e_wb480.flv","screenMode":0,"roomId":"4310650","bwqaVersion":0},{"liveId":"5b0977690cf2392c4b1c2420","title":"陈琳的电台","subTitle":"嗷呜🔔","picPath":"/mediasource/live/1523275222190W11k9rKlju.jpg,/mediasource/live/1523275222355C2RBMaLiKY.jpg","startTime":1527347049397,"memberId":6431,"liveType":2,"picLoopTime":30000,"lrcPath":"/mediasource/live/lrc/5b0977690cf2392c4b1c2420.lrc","streamPath":"http://livepull.48.cn/pocket48/snh48_chen_lin_jxvnd.flv","screenMode":0,"roomId":"3870022","bwqaVersion":0}]
| json |
<gh_stars>0
{
"@metadata": {
"authors": [
"Cedric31"
]
},
"mediafunctions-desc": "Foncion parser per l’obtencion d'entresenhas que concernisson los fichièrs mèdias",
"mediafunctions-invalid-title": "« $1 » es pas un títol valid.",
"mediafunctions-not-exist": "« $1 » existís pas."
}
| json |
New Delhi: Newly-branded company Meta has claimed that the prevalence of hate speech on Facebook continued to decrease for the fourth quarter in a row this year. The company also revealed, for the first time, that hate speech prevalence on Instagram was 0.02 per cent for the third quarter (Q3).
In the September quarter (Q3), it was 0.03 per cent or 3 views of hate speech per 10,000 views of content on Facebook, down from 0.05 per cent or 5 views of hate speech per 10,000 views of content in Q2.
“We continue to see a reduction in hate speech due to our improvements in our technology and ranking changes that reduce problematic content in News Feed, including through improved personalization,” Meta said in a statement.
The social network removed 13.6 million pieces of content on Facebook for violating its violence and incitement policy.
“On Instagram, we removed 3.3 million pieces of this content with a proactive detection rate of 96.4 per cent,” Meta said.
In Q3, the prevalence of bullying and harassment content was 0.14-0.15 per cent or between 14 and 15 views of bullying and harassment content per 10,000 views of content on Facebook.
On Instagram, it was 0.05-0.06 per cent or between 5 and 6 views per 10,000 views of content on Instagram.
“We removed 9.2 million pieces of bullying and harassment content on Facebook, with a proactive rate of 59.4 per cent. We removed 7.8 million pieces of bullying and harassment content on Instagram with a proactive rate of 83.2 per cent,” the company noted.
| english |
<gh_stars>0
/// <reference path="../libs/core/enums.d.ts"/>
/// <reference path="../node_modules/pxt-core/built/pxtsim.d.ts"/>
/// <reference path="../node_modules/phaser-ce/typescript/phaser.d.ts" />
namespace pxsim.Robot {
/**
* Moves the robot forward by 1 cell.
*/
//% blockId=moveForward block="walk forward"
export function moveForwardAsync() {
board().moveForward();
return Promise.delay(100)
}
/**
* Makes the robot turn left.
*/
//% blockId=turnLeft block="turn left"
export function turnLeftAsync() {
// Move the robot forward
board().turnLeft();
return Promise.delay(100)
}
/**
* Makes the robot turn right.
*/
//% blockId=turnRight block="turn right"
export function turnRightAsync() {
// Move the robot forward
board().turnRight();
return Promise.delay(100)
}
/**
* Makes the robot face up north.
*/
//% blockId=faceUp block="face North"
export function faceUpAsync() {
board().faceUp();
return Promise.delay(100)
}
/**
* Makes the robot face south.
*/
//% blockId=faceDown block="face South"
export function faceDownAsync() {
board().faceDown();
return Promise.delay(100)
}
/**
* Makes the robot face west.
*/
//% blockId=faceLeft block="face West"
export function faceLeftAsync() {
board().faceLeft();
return Promise.delay(100)
}
/**
* Makes the robot face east.
*/
//% blockId=faceRight block="face East"
export function faceRightAsync() {
board().faceRight();
return Promise.delay(100)
}
/**
* Returns true if there is wall directly in front of the robot, and false otherwise.
*/
//% blockId=wallAhead block="wall ahead at level %level"
export function wallAhead(level: number) {
return board().wallAhead(level);
}
/**
* Causes the robot is use BFS to navigate the maze.
*/
//% blockId=doSomething block="Breath First Search"
// export function BreathFirstSearch() {
// board().triggerBFS();
// }
}
// namespace pxsim.loops {
// /**
// * Repeats the code forever in the background. On each iteration, allows other code to run.
// * @param body the code to repeat
// */
// //% help=functions/forever weight=55 blockGap=8
// //% blockId=device_forever block="forever"
// export function forever(body: RefAction): void {
// thread.forever(body)
// }
// /**
// * Pause for the specified time in milliseconds
// * @param ms how long to pause for, eg: 100, 200, 500, 1000, 2000
// */
// //% help=functions/pause weight=54
// //% block="pause (ms) %pause" blockId=device_pause
// export function pauseAsync(ms: number) {
// return Promise.delay(ms)
// }
// }
| typescript |
package de.bitbrain.braingdx.physics;
import com.badlogic.gdx.math.*;
import com.badlogic.gdx.physics.box2d.ChainShape;
import com.badlogic.gdx.physics.box2d.CircleShape;
import com.badlogic.gdx.physics.box2d.PolygonShape;
import java.util.ArrayList;
import java.util.List;
public class PhysicsBodyFactory {
public static PolygonShape getRectangle(Rectangle rectangle) {
PolygonShape polygon = new PolygonShape();
polygon.setAsBox(rectangle.width * 0.5f,
rectangle.height * 0.5f,
new Vector2(rectangle.width * 0.5f, rectangle.height * 0.5f),
0.0f);
return polygon;
}
public static CircleShape getCircle(Circle circle) {
CircleShape circleShape = new CircleShape();
circleShape.setRadius(circle.radius);
circleShape.setPosition(new Vector2(circle.x, circle.y));
return circleShape;
}
public static List<PolygonShape> getPolygons(Polygon polygon) {
List<PolygonShape> polygonShapes = new ArrayList<PolygonShape>();
float[] vertices = polygon.getTransformedVertices();
PolygonShape polygonShape = new PolygonShape();
polygonShape.set(vertices);
polygonShapes.add(polygonShape);
return polygonShapes;
}
public static ChainShape getPolyline(Polyline polyline) {
float[] vertices = polyline.getTransformedVertices();
Vector2[] worldVertices = new Vector2[vertices.length / 2];
for (int i = 0; i < vertices.length / 2; ++i) {
worldVertices[i] = new Vector2();
worldVertices[i].x = vertices[i * 2];
worldVertices[i].y = vertices[i * 2 + 1];
}
ChainShape chain = new ChainShape();
chain.createChain(worldVertices);
return chain;
}
}
| java |
""" Main program to launch proc/hdfs.py
"""
import argparse
import logging
from pars import addargs
import sys
import logging
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
from proc.hdfs import DIRHDFS
def gettestargs(parser) :
i = "/home/sbartkowski/work/webhdfsdirectory/testdata/inputhdfs.txt"
return parser.parse_args([i,"inimical1","14000","sb","/user/sb","dir1","/tmp/download","--dryrun"])
def getargs(parser) :
return parser.parse_args(sys.argv[1:])
def readargs():
parser = argparse.ArgumentParser(
description='Download HDFS using WEB REST/API')
addargs(parser)
# return gettestargs(parser)
return getargs(parser)
def main():
args = readargs()
T = DIRHDFS(args.host[0], args.port[0], args.user[0],args.regexp,args.dryrun)
T.downloadhdfsdir(args.userdir[0], args.usersubdir[0], args.localdir[0])
if __name__ == "__main__":
# execute only if run as a script
main()
| python |
<filename>include/Mono/Unity/UnityTlsConversions.hpp
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: Mono.Unity.UnityTls
#include "Mono/Unity/UnityTls.hpp"
// Completed includes
// Begin forward declares
// Forward declaring namespace: System::Security::Authentication
namespace System::Security::Authentication {
// Forward declaring type: SslProtocols
struct SslProtocols;
}
// Forward declaring namespace: Mono::Security::Interface
namespace Mono::Security::Interface {
// Forward declaring type: TlsProtocols
struct TlsProtocols;
// Forward declaring type: AlertDescription
struct AlertDescription;
// Forward declaring type: MonoSslPolicyErrors
struct MonoSslPolicyErrors;
}
// Completed forward declares
// Type namespace: Mono.Unity
namespace Mono::Unity {
// Size: 0x10
#pragma pack(push, 1)
// Autogenerated type: Mono.Unity.UnityTlsConversions
class UnityTlsConversions : public ::Il2CppObject {
public:
// Creating value type constructor for type: UnityTlsConversions
UnityTlsConversions() noexcept {}
// static public Mono.Unity.UnityTls/unitytls_protocol GetMinProtocol(System.Security.Authentication.SslProtocols protocols)
// Offset: 0x1848740
static Mono::Unity::UnityTls::unitytls_protocol GetMinProtocol(System::Security::Authentication::SslProtocols protocols);
// static public Mono.Unity.UnityTls/unitytls_protocol GetMaxProtocol(System.Security.Authentication.SslProtocols protocols)
// Offset: 0x1848864
static Mono::Unity::UnityTls::unitytls_protocol GetMaxProtocol(System::Security::Authentication::SslProtocols protocols);
// static public Mono.Security.Interface.TlsProtocols ConvertProtocolVersion(Mono.Unity.UnityTls/unitytls_protocol protocol)
// Offset: 0x1848988
static Mono::Security::Interface::TlsProtocols ConvertProtocolVersion(Mono::Unity::UnityTls::unitytls_protocol protocol);
// static public Mono.Security.Interface.AlertDescription VerifyResultToAlertDescription(Mono.Unity.UnityTls/unitytls_x509verify_result verifyResult, Mono.Security.Interface.AlertDescription defaultAlert)
// Offset: 0x18489A8
static Mono::Security::Interface::AlertDescription VerifyResultToAlertDescription(Mono::Unity::UnityTls::unitytls_x509verify_result verifyResult, Mono::Security::Interface::AlertDescription defaultAlert);
// static public Mono.Security.Interface.MonoSslPolicyErrors VerifyResultToPolicyErrror(Mono.Unity.UnityTls/unitytls_x509verify_result verifyResult)
// Offset: 0x1848D80
static Mono::Security::Interface::MonoSslPolicyErrors VerifyResultToPolicyErrror(Mono::Unity::UnityTls::unitytls_x509verify_result verifyResult);
}; // Mono.Unity.UnityTlsConversions
#pragma pack(pop)
}
#include "extern/beatsaber-hook/shared/utils/il2cpp-type-check.hpp"
DEFINE_IL2CPP_ARG_TYPE(Mono::Unity::UnityTlsConversions*, "Mono.Unity", "UnityTlsConversions");
| cpp |
{
"@metadata": {
"authors": [
"Mashoi7",
"Varvana"
]
},
"betafeatures-toplink": "Beta",
"tooltip-pt-betafeatures": "Beta-ominaisuot"
}
| json |
Reflecting this situation in the Indian context, could we have done a similar M&A transaction in India? There are a couple of unique points in this deal which must be evaluated to answer this question. First, the ability to do a 100% buyout of a listed company. Under the US regulation, one can make an offer for a 100% buyout whereas under the Indian takeover code, acquisition is restricted to a particular limit beyond which a reverse book building approach is required for the offer.
Further, while one can delist the company upon a successful reverse book building offer, a 100% buyout is still not possible as there is no provision for a minority squeeze out.
In a nutshell, one will have to have the company listed with a certain percentage of minority shareholding. This does not allow the buyer to utilise 100% cash flow of the company for a leveraged buyout. While there have been discussions in the past to create an ability to buyout 100%, there may be merit in revisiting this requirement.
A 100% buyout allows all shareholders to exit at a price which is usually higher than the market price. The argument that a reverse book building ensures better price realisation for the public shareholders is not necessarily based on sound logic in this context.
Secondly, in the above transaction, almost half of the purchase price is funded through debt financing. Funding through the debt allows the potential buyer to pay a higher purchase price as the cost of the debt is theoretically lower than the cost of equity. Getting a better price through a debt financing structure or a leveraged buyout is indeed a positive from the investor’s perspective. However, the key issue is about the lender of debt. Should a lender be financing an acquisition? This is purely a risk, credit, and commercial decision. A lender should have the ability to analyse its risk appetite and evaluate its options accordingly. I would argue that by not allowing the opportunity to fund an acquisition, one is denying a lender an ability to do business. This could be an important business proposition within the risk framework of a lender.
However, in India, banks’ ability to lend for acquisition is very restricted. In 1992, we witnessed the first capital market scam, the ‘Harshad Mehta Scam’ where leverage finance was used as a tool to fuel equity investment. This had subsequently resulted in a market crash. More recently in 2007-08, in the US, we saw a similar credit build up in the mortgage financing which resulted in the market crash. These were all signs of excesses. Similarly, whenever excesses are witnessed, the government intervenes and stops such practices. Therefore, since 1992, Indian banks are not permitted to finance equity beyond a certain limit.
I would argue that a lot of water has flown under the bridge since the 1990s. Several activities which were not allowed in 1992 are flourishing today.
Therefore, we should be open to re-examine both leverage buyout via bank financing as well as a 100% buyout situation. We should keep in mind that we would not allow a level playing field to an Indian player if they are deprived of the leverage whereas a foreign buyer can find leverage outside India via a holding company structure. I totally understand that this will be a significant step and a reversal of status quo situation of the last over 3 decades. But, this government and regulators have shown the ability and willingness to pick up issues afresh and re-evaluate them in the current context.
I hope that we will have a global style M&As soon.
Download The Economic Times News App to get Daily Market Updates & Live Business News.
Subscribe to The Economic Times Prime and read the Economic Times ePaper Online.and Sensex Today.
| english |
Wednesday April 26, 2023,
In a year rife with layoffs,expects hiring to increase albeit only marginally at an aggregate level. The company continues to hire engineering talent apart from filling roles for specific verticals, including supply chain as part of logistics provider Ekart opening up to third-party businesses, value commerce platform Shopsy, and its grocery division.
“At an aggregate level, there will be natural- and performance-led attrition. Overall, there will be positives and we will be back-filling as well,” Krishna Raghavan, Chief People Officer at Flipkart tells YourStory.
Flipkart Group, including Flipkart and its multiple entities—fashion retaileras well as travel company —employ over 15,000 employees on their rolls, according to recent reports.
Flipkart had earlier announced in March in an internal letter that senior leadership from Grade 10 and above, including managers and vice presidents, would not receive increments. This would impact nearly 30% of its employee base.
However, the company plans on continuing bonus programmes, increments and promotions for other employees. The CPO adds that Flipkart has already mapped its annual hiring expectations and will continue to hire senior talent, including vice presidents and senior vice presidents, in certain business functions.
“Despite the current global economic uncertainties, Indian companies are expected to provide double-digit salary hikes on average in 2023. This is the second consecutive year of reasonable hikes, and it is primarily aimed at reducing attrition rate,” says Sanjay Shetty, Director-Professional Search and Selection at Randstad India.
He further notes that due to global macroeconomic uncertainties, Indian organisations had reduced their budgets towards increments, as employee costs have risen faster than revenue growth over the last three to four years.
According to data shared by online employment solution platform foundit (formerly Monster APAC and ME), India’s retail industry registered 40% growth in hiring activity annually driven by ecommerce—a trend which is likely to continue.
“There has been constant hiring across all major companies, with a major focus on supply chain lately,” Sekhar Garisa, CEO of foundit, explains.
Shetty of Randstad India shares a similar outlook for hiring in the sector.
“Among the emerging industries that have a high potential for employment in India in 2023, ecommerce, digital services, and banking and financial technology stand out owing to the consumers’ affinity towards these sectors,” he observes, adding that the growth of new ecommerce companies had added to the numbers.
As per the FICCI-Randstad startup hiring survey, startups in the ecommerce sector are expected to increase hiring by 11-20% in the upcoming months.
Flipkart has also been actively recruiting from Tier I engineering and business schools as part of its campus intake. The company continues to hire talent beyond the top schools through programmes including case-study competitions such as GRiD and WiRED, post-internship offers, and other channels. It also runs programmes such as Girls Wanna Code, Project Runway, and Vidyarthini to hire women in technology and supply chain roles.
“Our remuneration for campus hires is at par with industry standards. We look at rewards through a holistic lens and offer opportunities for wealth creation for our employees,” says Krishna of Flipkart.
Even as the ecommerce sector is expected to register the highest salary growth of up to 12.5%, according to data shared by foundit, the hook for employers continues to be rewards and benefits, rather than cash payouts.
“The compensation is driven more by ESOPs (Employee Stock Ownership Plan) and promotions than the paychecks,” Garisa notes.
ESOPs allow employees to purchase company stocks at a fixed price while employee benefits include non-wage compensation such as health insurance and retirement plans.
"Both serve different purposes: ESOPs provide an opportunity for long-term profit, while employee benefits support overall well-being and future-proofing,” Shetty of Randstad observes.
In keeping with the trend, Flipkart has decided to continue with ESOP-related benefits for the current year, including refresher grants as part of the appraisal cycle.
“All our bonus programmes continue, all our promotions continue and employees who are getting promoted will get increments. All our stock programmes, including joining grant, annual refresher grant, and other benefits will continue,” says Krishna.
Flipkart has also made other policy overhauls such as unlimited medical insurance and unlimited wellness leaves for employees across the board.
(Cover image and infographics by Nihar Apte.)
| english |
package demo;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@RepositoryRestResource
public interface PersonRepository extends PagingAndSortingRepository<Person, Long> {
}
| java |
If you are thinking of naming your child Indus, then it is important to know its meaning first. Let us tell you that Indus means India, Star. Having India, Star is considered very good and this is also reflected in the people named Indus. Indus Before naming a name, it is important to know its meaning. The name Indus means India, Star and the effect of this meaning is also visible like the person named Indus. By keeping the name Indus, your child also acquires the qualities that are included in its meaning. It is believed that a person with the name Indus can have a glimpse of India, Star in his nature. The zodiac sign of the name Indus, the lucky number of the name Indus, and the personality of the people with the name Indus or the meaning of this name, etc. are explained further.
People with the name Indus have the lucky number 9 and are under the influence of the planet Mars. People named Indus are mentally strong and face difficulties with courage. There may be many obstacles before starting any work, but people named Indus achieve success through their passion. People with name Indus are fearless and sometimes this becomes a cause of trouble for them. People named Indus can become good leaders in the future because they have leadership qualities. People with this number maintain friendship and enmity with full dedication.
Those whose name is Indus, and their zodiac sign is Aries, these people are courageous and have confidence in themselves. They are self-confident and always want to know something. A person named Indus does not feel any fear of taking risks. These people are always ready for new work. They like challenges. These people are always full of energy. People with this zodiac sign quickly become stubborn and also have a lot of pride. People named Indus do not like to compromise with their careers. They don't trust anyone even in matters of money.
|Happy (Celebrity Name: Shobhaa De)
|Dusky, Mother of Lord Hanuman (Mother of Hanuman)
|Priceless, Invaluable, precious (Celebrity Name: Anu Malik)
| english |
//
// $Id$
//
//
// Original author: <NAME> <brian.pratt <a.t> insilicos.com>
//
// Copyright 2012 Spielberg Family Center for Applied Proteomics
// University of Southern California, Los Angeles, California 90033
//
// 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.
//
#define PWIZ_SOURCE
#include "SpectrumList_ZeroSamplesFilter.hpp"
#include "pwiz/utility/misc/Container.hpp"
#include "pwiz/analysis/common/ExtraZeroSamplesFilter.hpp"
#include "pwiz/analysis/common/ZeroSampleFiller.hpp"
namespace pwiz {
namespace analysis {
using namespace msdata;
using namespace pwiz::util;
PWIZ_API_DECL
SpectrumList_ZeroSamplesFilter::SpectrumList_ZeroSamplesFilter(
const msdata::SpectrumListPtr& inner,
const IntegerSet& msLevelsToFilter,
Mode mode,
size_t flankingZeroCount)
: SpectrumListWrapper(inner), mode_(mode),
flankingZeroCount_(flankingZeroCount), msLevelsToFilter_(msLevelsToFilter)
{
// add processing methods to the copy of the inner SpectrumList's data processing
ProcessingMethod method;
method.order = dp_->processingMethods.size();
if (Mode_RemoveExtraZeros == mode)
{
method.userParams.push_back(UserParam("removed extra zero samples"));
}
else
{
method.userParams.push_back(UserParam("added missing zero samples"));
}
if (!dp_->processingMethods.empty())
method.softwarePtr = dp_->processingMethods[0].softwarePtr;
dp_->processingMethods.push_back(method);
}
PWIZ_API_DECL bool SpectrumList_ZeroSamplesFilter::accept(const msdata::SpectrumListPtr& inner)
{
return true;
}
PWIZ_API_DECL SpectrumPtr SpectrumList_ZeroSamplesFilter::spectrum(size_t index, bool getBinaryData) const
{
SpectrumPtr s = inner_->spectrum(index, true);
if (!msLevelsToFilter_.contains(s->cvParam(MS_ms_level).valueAs<int>()))
return s;
try
{
BinaryData<double>& mzs = s->getMZArray()->data;
BinaryData<double>& intensities = s->getIntensityArray()->data;
vector<double> FilteredMZs, FilteredIntensities;
if (Mode_AddMissingZeros == mode_)
ZeroSampleFiller().fill(mzs, intensities, FilteredMZs, FilteredIntensities, flankingZeroCount_);
else
ExtraZeroSamplesFilter().remove_zeros(mzs, intensities, FilteredMZs, FilteredIntensities,
!s->hasCVParam(MS_centroid_spectrum)); // preserve flanking zeros if not centroided
mzs.swap(FilteredMZs);
intensities.swap(FilteredIntensities);
s->defaultArrayLength = mzs.size();
}
catch(std::exception& e)
{
throw std::runtime_error(std::string("[SpectrumList_ZeroSamplesFilter] Error filtering intensity data: ") + e.what());
}
s->dataProcessingPtr = dp_;
return s;
}
} // namespace analysis
} // namespace pwiz
| cpp |
<reponame>JamesFrost/twitch-emoji<filename>dist/channels/radderssgaming.json
{"template":{"small":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/1.0","medium":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/2.0","large":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/3.0"},"channels":{"radderssgaming":{"title":"RadderssGaming","channel_id":47241839,"link":"http://twitch.tv/radderssgaming","desc":null,"plans":{"$4.99":"21563","$9.99":"23547","$24.99":"23548"},"id":"radderssgaming","first_seen":"2017-03-20 14:20:02","badge":"https://static-cdn.jtvnw.net/badges/v1/d971226c-fb07-4052-bacf-ed4fd3d01c5d/1","badge_starting":"https://static-cdn.jtvnw.net/badges/v1/d971226c-fb07-4052-bacf-ed4fd3d01c5d/3","badge_3m":"https://static-cdn.jtvnw.net/badges/v1/cb084c30-8468-47a4-a582-d7010985c584/3","badge_6m":"https://static-cdn.jtvnw.net/badges/v1/0fd9402d-fad8-48f2-a35b-f609fc48fe08/3","badge_12m":"https://static-cdn.jtvnw.net/badges/v1/3f6f7d04-19c5-475c-ad80-f8ef275694d5/3","badge_24m":null,"badges":{"0":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/d971226c-fb07-4052-bacf-ed4fd3d01c5d/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/d971226c-fb07-4052-bacf-ed4fd3d01c5d/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/d971226c-fb07-4052-bacf-ed4fd3d01c5d/3","description":"Subscriber","title":"Subscriber","click_action":"subscribe_to_channel","click_url":""},"3":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/cb084c30-8468-47a4-a582-d7010985c584/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/cb084c30-8468-47a4-a582-d7010985c584/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/cb084c30-8468-47a4-a582-d7010985c584/3","description":"3-Month Subscriber","title":"3-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"6":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/0fd9402d-fad8-48f2-a35b-f609fc48fe08/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/0fd9402d-fad8-48f2-a35b-f609fc48fe08/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/0fd9402d-fad8-48f2-a35b-f609fc48fe08/3","description":"6-Month Subscriber","title":"6-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"12":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/3f6f7d04-19c5-475c-ad80-f8ef275694d5/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/3f6f7d04-19c5-475c-ad80-f8ef275694d5/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/3f6f7d04-19c5-475c-ad80-f8ef275694d5/3","description":"1-Year Subscriber","title":"1-Year Subscriber","click_action":"subscribe_to_channel","click_url":""}},"bits_badges":null,"cheermote1":"https://d3aqoihi2n8ty8.cloudfront.net/partner-actions/47241839/30b9a70f-165f-430d-a335-ffb9568306a6/1/light/animated/3/64b9d5d8bc9e46c04bdc1e8cc2365cfdccd7dff8.gif","cheermote100":"https://d3aqoihi2n8ty8.cloudfront.net/partner-actions/47241839/30b9a70f-165f-430d-a335-ffb9568306a6/100/light/animated/3/9d3fc843d61965cd65758ccf8aa0f3c64db19c88.gif","cheermote1000":"https://d3aqoihi2n8ty8.cloudfront.net/partner-actions/47241839/30b9a70f-165f-430d-a335-ffb9568306a6/1000/light/animated/3/ab8e34f4163823387bc0b393826f58fda056e92f.gif","cheermote5000":"https://d3aqoihi2n8ty8.cloudfront.net/partner-actions/47241839/30b9a70f-165f-430d-a335-ffb9568306a6/5000/light/animated/3/58b2b411f59654e45ec812d1897221e4a15516d7.gif","cheermote10000":"https://d3aqoihi2n8ty8.cloudfront.net/partner-actions/47241839/30b9a70f-165f-430d-a335-ffb9568306a6/10000/light/animated/3/5c7373e4a5d77af3c5b6e7bfbc561f4b1d9992d6.gif","set":21563,"emotes":[{"code":"raddHype","image_id":157395,"set":21563},{"code":"raddLove","image_id":151016,"set":21563},{"code":"raddHi","image_id":151020,"set":21563},{"code":"raddFail","image_id":151017,"set":21563},{"code":"raddSing","image_id":151019,"set":21563},{"code":"raddScared","image_id":151021,"set":21563},{"code":"raddW","image_id":151022,"set":21563},{"code":"raddNo","image_id":157393,"set":21563},{"code":"raddOmg","image_id":151015,"set":21563},{"code":"raddSalt","image_id":153546,"set":21563},{"code":"raddThump","image_id":222183,"set":21563},{"code":"raddF","image_id":168690,"set":21563},{"code":"raddCalibrate","image_id":180920,"set":21563},{"code":"raddGW","image_id":166400,"set":23547},{"code":"raddGasm","image_id":199623,"set":21563},{"code":"raddYass","image_id":191894,"set":21563},{"code":"raddBirthday","image_id":287653,"set":23548}]}}}
| json |
33 This is the blessing with which Moses the man of God blessed Bnei-Yisrael before his death. 2 He said,
and dawned on Bnei-Yisrael from Seir.
He shone forth from Mount Paran,
blazing fire[a] for them from His right hand.
all His kedoshim are in His hand.
They followed in Your steps,
each receiving Your words.
a heritage for the community of Jacob.
when the heads of the people gathered,
all the tribes of Israel together.
6 ‘Let Reuben live and not die,
7 Now this is for Judah. He said,
‘Hear, Adonai, the voice of Judah!
Bring him to his people.
His hands contended for him,
8 For Levi he said,
‘Let Your Thummim and Urim be with Your pious man.
You tested him at Massah,
9 He said of his father and mother,
or recognize his children.
and kept Your covenant.
and Israel Your Torah.
and whole burnt offerings on Your altar.
11 Adonai, bless his resources,
find favor in the work of his hands.
who rise against him and hate him,
12 For Benjamin he said,
rests securely beside Him.
He shields him all day long.
13 For Joseph he said,
and from the deep lying beneath,
and the months’ yield,
and the bounty of the everlasting hills,
dwelling in the bush.
May it come on Joseph’s head,
among his brothers.
17 The firstborn ox—majesty is his.
His horns are the horns of the wild ox.
With them he gores peoples,
all at once, to the ends of the earth.
They are the myriads of Ephraim,
18 For Zebulun he said,
‘Rejoice, Zebulun, in your going out,
and Issachar, in your tents.
there they offer righteous sacrifices.
20 For Gad he said,
‘Blessed is the one who enlarges Gad.
Like a lion he crouches,
or even the crown of a head.
21 He chose the best for himself,
for there a marked portion was reserved.
He came with the heads of the people.
22 For Dan he said,
23 For Naphtali he said,
and full of the blessing of Adonai,
24 For Asher he said,
may he be the favorite of his brothers,
and may he dip his foot in oil.
will be iron and bronze.
26 “There is none like God, Jeshurun,
and through the skies in His majesty.
27 A refuge is the ancient God,
and underneath are everlasting arms.
28 So Israel rests in safety,
in a land of grain and new wine.
Yes, his heavens drip dew.
29 Happy are you, O Israel!
Who is like you, a people saved by Adonai,
and the Sword of your triumph?
Your enemies will cower before you,
- Deuteronomy 33:2 Heb. obscure; possibly fiery law or mountain slopes.
Moses Blesses the Tribes(A)
33 This is the blessing(B) that Moses the man of God(C) pronounced on the Israelites before his death. 2 He said:
“The Lord came from Sinai(D)
and dawned over them from Seir;(E)
he shone forth(F) from Mount Paran.(G)
He came with[a] myriads of holy ones(H)
3 Surely it is you who love(I) the people;
all the holy ones are in your hand.(J)
At your feet they all bow down,(K)
and from you receive instruction,
4 the law that Moses gave us,(L)
the possession of the assembly of Jacob.(M)
5 He was king(N) over Jeshurun[c](O)
when the leaders of the people assembled,
along with the tribes of Israel.
7 And this he said about Judah:(Q)
“Hear, Lord, the cry of Judah;
bring him to his people.
With his own hands he defends his cause.
8 About Levi(R) he said:
to your faithful servant.(T)
You tested(U) him at Massah;
you contended with him at the waters of Meribah.(V)
9 He said of his father and mother,(W)
or acknowledge his own children,
and guarded your covenant.(X)
and your law to Israel.(Z)
He offers incense before you(AA)
and whole burnt offerings on your altar.(AB)
11 Bless all his skills, Lord,
and be pleased with the work of his hands.(AC)
Strike down those who rise against him,
12 About Benjamin(AD) he said:
“Let the beloved of the Lord rest secure in him,(AE)
for he shields him all day long,(AF)
13 About Joseph(AI) he said:
and with the deep waters that lie below;(AJ)
and the finest the moon can yield;
15 with the choicest gifts of the ancient mountains(AK)
and the fruitfulness of the everlasting hills;
and the favor of him who dwelt in the burning bush.(AL)
Let all these rest on the head of Joseph,
on the brow of the prince among[e] his brothers.(AM)
17 In majesty he is like a firstborn bull;
his horns(AN) are the horns of a wild ox.(AO)
With them he will gore(AP) the nations,
even those at the ends of the earth.
Such are the ten thousands of Ephraim;(AQ)
18 About Zebulun(AS) he said:
“Rejoice, Zebulun, in your going out,
and you, Issachar,(AT) in your tents.
19 They will summon peoples to the mountain(AU)
and there offer the sacrifices of the righteous;(AV)
they will feast on the abundance of the seas,(AW)
20 About Gad(AX) he said:
“Blessed is he who enlarges Gad’s domain!(AY)
Gad lives there like a lion,
tearing at arm or head.
21 He chose the best land for himself;(AZ)
the leader’s portion was kept for him.(BA)
When the heads of the people assembled,
he carried out the Lord’s righteous will,(BB)
22 About Dan(BC) he said:
“Dan is a lion’s cub,
23 About Naphtali(BD) he said:
and is full of his blessing;
24 About Asher(BE) he said:
“Most blessed of sons is Asher;
let him be favored by his brothers,
and let him bathe his feet in oil.(BF)
25 The bolts of your gates will be iron and bronze,(BG)
and your strength will equal your days.(BH)
26 “There is no one like the God of Jeshurun,(BI)
who rides(BJ) across the heavens to help you(BK)
and on the clouds(BL) in his majesty.(BM)
27 The eternal(BN) God is your refuge,(BO)
and underneath are the everlasting(BP) arms.
He will drive out your enemies before you,(BQ)
saying, ‘Destroy them!’(BR)
28 So Israel will live in safety;(BS)
in a land of grain and new wine,
where the heavens drop dew.(BT)
29 Blessed are you, Israel!(BU)
Who is like you,(BV)
a people saved by the Lord?(BW)
He is your shield and helper(BX)
and your glorious sword.
Your enemies will cower before you,
- Deuteronomy 33:2 The meaning of the Hebrew for this phrase is uncertain.
- Deuteronomy 33:5 Jeshurun means the upright one, that is, Israel; also in verse 26.
Tree of Life (TLV) Translation of the Bible. Copyright © 2015 by The Messianic Jewish Family Bible Society.
Holy Bible, New International Version®, NIV® Copyright ©1973, 1978, 1984, 2011 by Biblica, Inc.® Used by permission. All rights reserved worldwide.
NIV Reverse Interlinear Bible: English to Hebrew and English to Greek. Copyright © 2019 by Zondervan.
| english |
<reponame>tson1111/newspark
package org.apache.spark.sql.catalyst.expressions.codegen;
public class VariableValue$ extends scala.runtime.AbstractFunction2<java.lang.String, java.lang.Class<?>, org.apache.spark.sql.catalyst.expressions.codegen.VariableValue> implements scala.Serializable {
/**
* Static reference to the singleton instance of this Scala object.
*/
public static final VariableValue$ MODULE$ = null;
public VariableValue$ () { throw new RuntimeException(); }
}
| java |
export default function(req, res) {
res.setData("a", 222);
res.end();
}
| javascript |
package md
// xgo/md/document.go
import (
"fmt"
)
var _ = fmt.Print
type Document struct {
refDict map[string]*Definition
Holder
}
func NewDocument(opt *Options) (q *Document, err error) {
h, err := NewHolder(opt, false, uint(0)) // not Blockquote, depth 0
if err == nil {
q = &Document{
refDict: make(map[string]*Definition),
Holder: *h,
}
}
return
}
// A pointer to the definition is returned to signal success.
func (q *Document) AddDefinition(id string, uri, title []rune, isImg bool) (
def *Definition, err error) {
if id == "" {
err = NilDocument
} else if len(uri) == 0 {
err = EmptyURI
} else {
// XXX Note that this allows duplicate definitions
def = &Definition{uri: uri, title: title, isImg: isImg}
q.refDict[id] = def
}
return
}
func (q *Document) GetHtml() (body []rune) {
if len(q.blocks) > 0 {
var (
inUnordered bool
inOrdered bool
testing = q.opt.Testing
)
// DEBUG
if testing {
fmt.Printf("Document.GetHtml(): have %d blocks\n", len(q.blocks))
}
// END
for i := 0; i < len(q.blocks)-1; i++ {
block := q.blocks[i]
content := block.GetHtml()
switch block.(type) {
case *Ordered:
if inUnordered {
inUnordered = false
body = append(body, UL_CLOSE...)
}
if !inOrdered {
inOrdered = true
body = append(body, OL_OPEN...)
}
case *Unordered:
if inOrdered {
inOrdered = false
body = append(body, OL_CLOSE...)
}
if !inUnordered {
inUnordered = true
body = append(body, UL_OPEN...)
}
default:
if inUnordered {
body = append(body, UL_CLOSE...)
inUnordered = false
}
if inOrdered {
body = append(body, OL_CLOSE...)
inOrdered = false
}
}
body = append(body, content...)
}
// output last block IF it is not a LineSep
lastBlock := q.blocks[len(q.blocks)-1]
switch lastBlock.(type) {
case *LineSep:
// do nothing
if testing {
fmt.Printf("skipping final LineSep\n") // DEBUG
}
default:
// DEBUG
if testing {
fmt.Printf("outputting '%s'\n", string(lastBlock.GetHtml()))
}
// END
body = append(body, lastBlock.GetHtml()...)
}
if inOrdered {
body = append(body, OL_CLOSE...)
}
if inUnordered {
body = append(body, UL_CLOSE...)
}
// drop any terminating CR/LF
// 2015-04-01 dropped this action (commonmark needs terminating
// newline
//for body[len(body)-1] == '\n' || body[len(body)-1] == '\r' {
// body = body[:len(body)-1]
//
// 2015-04-01 for commonmark
if (len(body) == 0) || (body[len(body)-1] != '\n') {
body = append(body, '\n')
}
}
// XXX Blockquote is preceded by LF
if len(body) > 0 && body[0] == LF {
body = body[1:]
}
return
}
| go |
<filename>cpp/datasets/ade20k.cc
/* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "cpp/datasets/ade20k.h"
#include <cstdint>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <sstream>
#include <streambuf>
#include <string>
#include <unordered_set>
#include "cpp/utils.h"
#include "tensorflow/lite/kernels/kernel_util.h"
#include "tensorflow/lite/tools/evaluation/proto/evaluation_stages.pb.h"
#include "tensorflow/lite/tools/evaluation/stages/image_preprocessing_stage.h"
#include "tensorflow/lite/tools/evaluation/utils.h"
namespace mlperf {
namespace mobile {
namespace {
inline TfLiteType DataType2TfType(DataType::Type type) {
switch (type) {
case DataType::Float32:
return kTfLiteFloat32;
case DataType::Uint8:
return kTfLiteUInt8;
case DataType::Int8:
return kTfLiteInt8;
case DataType::Float16:
return kTfLiteFloat16;
}
return kTfLiteNoType;
}
} // namespace
ADE20K::ADE20K(const DataFormat& input_format, const DataFormat& output_format,
const std::string& image_dir,
const std::string& ground_truth_dir, int num_classes,
int image_width, int image_height)
: Dataset(input_format, output_format),
num_classes_(num_classes),
image_width_(image_width),
image_height_(image_height) {
if (input_format_.size() != 1 || output_format_.size() != 1) {
LOG(FATAL) << "ADE20K model only supports 1 input and 1 output";
return;
}
// Finds all images under image_dir.
std::unordered_set<std::string> exts{".rgb8", ".jpg", ".jpeg"};
TfLiteStatus ret = tflite::evaluation::GetSortedFileNames(
tflite::evaluation::StripTrailingSlashes(image_dir), &image_list_, exts);
if (ret == kTfLiteError || image_list_.empty()) {
LOG(FATAL) << "Failed to list all the images file in provided path";
return;
}
samples_ =
std::vector<std::vector<std::vector<uint8_t>*>>(image_list_.size());
// Finds all ground truth files under ground_truth_dir.
std::unordered_set<std::string> gt_exts{".raw"};
ret = tflite::evaluation::GetSortedFileNames(
tflite::evaluation::StripTrailingSlashes(ground_truth_dir),
&ground_truth_list_, gt_exts);
if (ret == kTfLiteError || ground_truth_list_.empty()) {
LOG(ERROR) << "Failed to list all the ground truth files in provided path. "
"Only measuring performance.";
}
// Prepares the preprocessing stage.
tflite::evaluation::ImagePreprocessingConfigBuilder builder(
"image_preprocessing", DataType2TfType(input_format_.at(0).type));
builder.AddDefaultNormalizationStep();
preprocessing_stage_.reset(
new tflite::evaluation::ImagePreprocessingStage(builder.build()));
if (preprocessing_stage_->Init() != kTfLiteOk) {
LOG(FATAL) << "Failed to init preprocessing stage";
}
counted_ = std::vector<bool>(image_list_.size(), false);
}
void ADE20K::LoadSamplesToRam(const std::vector<QuerySampleIndex>& samples) {
for (QuerySampleIndex sample_idx : samples) {
// Preprocessing.
if (sample_idx >= image_list_.size()) {
LOG(FATAL) << "Sample index out of bound";
}
std::string filename = image_list_.at(sample_idx);
preprocessing_stage_->SetImagePath(&filename);
if (preprocessing_stage_->Run() != kTfLiteOk) {
LOG(FATAL) << "Failed to run preprocessing stage";
}
// Move data out of preprocessing_stage_ so it can be reused.
int total_byte = input_format_[0].size * input_format_[0].GetByte();
void* data_void = preprocessing_stage_->GetPreprocessedImageData();
std::vector<uint8_t>* data_uint8 = new std::vector<uint8_t>(total_byte);
std::copy(static_cast<uint8_t*>(data_void),
static_cast<uint8_t*>(data_void) + total_byte,
data_uint8->begin());
samples_.at(sample_idx).push_back(data_uint8);
}
}
void ADE20K::UnloadSamplesFromRam(
const std::vector<QuerySampleIndex>& samples) {
for (QuerySampleIndex sample_idx : samples) {
for (std::vector<uint8_t>* v : samples_.at(sample_idx)) {
delete v;
}
samples_.at(sample_idx).clear();
}
}
std::vector<uint8_t> ADE20K::ProcessOutput(const int sample_idx,
const std::vector<void*>& outputs) {
if (ground_truth_list_.empty()) {
return std::vector<uint8_t>();
}
if (!counted_[sample_idx]) {
std::vector<uint64_t> tps, fps, fns;
std::string filename = ground_truth_list_.at(sample_idx);
std::ifstream stream(filename, std::ios::in | std::ios::binary);
std::vector<uint8_t> ground_truth_vector(
(std::istreambuf_iterator<char>(stream)),
std::istreambuf_iterator<char>());
auto output = reinterpret_cast<int32_t*>(outputs[0]);
for (int c = 1; c <= num_classes_; c++) {
uint64_t true_positive = 0, false_positive = 0, false_negative = 0;
for (int i = 0; i < (image_width_ * image_height_ - 1); i++) {
auto p = (uint8_t)0x000000ff & output[i];
auto g = ground_truth_vector[i];
// trichotomy
if ((p == c) or (g == c)) {
if (p == g) {
true_positive++;
} else if (p == c) {
if ((g > 0) && (g <= num_classes_)) false_positive++;
} else {
false_negative++;
}
}
}
tps.push_back(true_positive);
fps.push_back(false_positive);
fns.push_back(false_negative);
}
if (!initialized_) {
initialized_ = true;
for (int j = 0; j < num_classes_; j++) {
tp_acc_.push_back(tps[j]);
fp_acc_.push_back(fps[j]);
fn_acc_.push_back(fns[j]);
}
} else {
for (int j = 0; j < num_classes_; j++) {
tp_acc_[j] += tps[j];
fp_acc_[j] += fps[j];
fn_acc_[j] += fns[j];
}
}
#if __DEBUG__
for (int j = 0; j < num_classes_; j++) {
LOG(INFO) << tp_acc_[j] << ", " << fp_acc_[j] << ", " << fn_acc_[j];
if (j < 30) std::cout << ", ";
}
LOG(INFO) << "\n";
for (int j = 0; j < num_classes_; j++) {
LOG(INFO) << "mIOU class " << j + 1 << ": "
<< tp_acc_[j] * 1.0 / (tp_acc_[j] + fp_acc_[j] + fn_acc_[j])
<< "\n";
}
#endif
counted_[sample_idx] = true;
}
return std::vector<uint8_t>();
}
float ADE20K::ComputeAccuracy() {
if (ground_truth_list_.empty()) {
return 0.0;
}
float iou_sum = 0.0;
for (int j = 0; j < num_classes_; j++) {
auto iou = tp_acc_[j] * 1.0 / (tp_acc_[j] + fp_acc_[j] + fn_acc_[j]);
#if __DEBUG__
LOG(INFO) << "IOU class " << j + 1 << ": " << tp_acc_[j] << ", "
<< fp_acc_[j] << ", " << fn_acc_[j] << ", " << iou << "\n";
#endif
iou_sum += iou;
}
#if __DEBUG__
LOG(INFO) << "mIOU over_all: " << iou_sum / num_classes_ << "\n";
#endif
return iou_sum / num_classes_;
}
std::string ADE20K::ComputeAccuracyString() {
float result = ComputeAccuracy();
if (result == 0.0f) {
return std::string("N/A");
}
std::stringstream stream;
stream << std::fixed << std::setprecision(4) << result << " mIoU";
return stream.str();
}
} // namespace mobile
} // namespace mlperf
| cpp |
Sales of luxury apartments have bounced back, thanks to factors such as demand from non-resident Indians (NRIs), work from home, and cuts in stamp duty and other levies in some states.
Though sales of residential units have come down by 33 per cent in April-September this year to 42,250 units in the top seven cities in the country, the share of luxury apartments priced over Rs 2 crore has remained the same at around 10 per cent, said Anarock Property Consultants.
However, April and May were a washout for residential developers due to the lockdown.
TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH.
What you get on Business Standard Premium?
- Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app.
- Pick your 5 favourite companies, get a daily email with all news updates on them.
- Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006.
- Preferential invites to Business Standard events.
- Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more. | english |
Taiwan held an artillery drill Tuesday simulating a defence against an attack as its top diplomat accused Beijing of preparing to invade the island after days of massive Chinese war games.
China launched its largest-ever air and sea exercises around Taiwan last week in a furious response to a visit by US House Speaker Nancy Pelosi, the highest-ranking American official to visit the self-ruled island in decades.
Taiwan lives under the constant threat of invasion by China, which views its neighbour as part of Chinese territory to be seized one day, by force if necessary.
“China has used the drills and its military playbook to prepare for the invasion of Taiwan," Joseph Wu told a press conference in Taipei on Tuesday, accusing Beijing of using Pelosi’s visit as a pretext for military action.
“China’s real intention is to alter the status quo in the Taiwan Strait and entire region," he said.
Taipei’s drill started in the southern county of Pingtung shortly after 0040 GMT with the firing of target flares and artillery, ending just under an hour later at 0130 GMT, said Lou Woei-jye, spokesman for Taiwan’s Eighth Army Corps.
Soldiers fired from howitzers tucked into the coast, hidden from view of the road that leads to popular beach destination Kenting.
The drills, which will also take place Thursday, included the deployment of hundreds of troops and about 40 howitzers, the army said.
On Monday, Lou told AFP the drills had been scheduled previously and were not in response to China’s exercises.
The island routinely stages military drills simulating defence against a Chinese invasion, and last month practised repelling attacks from the sea in a “joint interception operation" as part of its largest annual exercises.
The anti-landing exercises come after China extended its own joint sea and air drills around Taiwan on Monday, but Washington said it did not expect an escalation from Beijing.
“I’m not worried, but I’m concerned they’re moving as much as they are. But I don’t think they’re going to do anything more than they are," Biden told reporters at Dover Air Force Base.
China has not confirmed if its drills in the Taiwan Strait will continue Tuesday.
But Taiwanese foreign minister Joseph Wu condemned Beijing for extending its military exercises around the island, accusing them of trying to control the Taiwan Strait and waters in the wider Asia-Pacific region.
“It is conducting large-scale military exercises and missile launches, as well as cyber-attacks, a disinformation campaign and economic coercion in order to weaken public morale in Taiwan," he said.
Wu went on to thank Western allies, including the US after Pelosi’s visit, for standing up to China.
“It also sends a clear message to the world that democracy will not bow to the intimidation of authoritarianism," he said.
Taiwan has insisted that no Chinese warplanes or ships entered its territorial waters — within 12 nautical miles of land — during Beijing’s drills.
The Chinese military, however, released a video last week of an air force pilot filming the island’s coastline and mountains from his cockpit, showing how close it had come to Taiwan’s shores.
Its ships and planes have also regularly crossed the median line — an unofficial demarcation between China and Taiwan that the former does not recognise — since drills began last week.
Ballistic missiles were fired over Taiwan’s capital, Taipei, during the exercises last week, according to Chinese state media.
On Tuesday, the Chinese military released more details about the anti-submarine drills it had conducted a day earlier around the island.
The People’s Liberation Army’s Eastern Theater command said the exercises were aimed at enhancing the ability of air and sea units to work together while hunting submarines.
It said maritime patrol aircraft, fighter jets, helicopters and a destroyer practiced locating and attacking targets in the waters off Taiwan.
The scale and intensity of China’s drills — as well as its withdrawal from key talks on climate and defence — have triggered outrage in the United States and other democracies.
The drills have also shown how an increasingly emboldened Chinese military could carry out a gruelling blockade of the island, experts say.
But Beijing on Monday defended its behaviour as “firm, forceful and appropriate" to American provocation.
“(We) are only issuing a warning to the perpetrators," foreign ministry spokesman Wang Wenbin told a regular briefing, promising China would “firmly smash the Taiwan authorities’ illusion of gaining independence through the US".
“We urge the US to do some earnest reflection, and immediately correct its mistakes. "
Read the Latest News and Breaking News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - AFP) | english |
const socketio = require("socket.io-client")
const readline = require('readline');
let username1 = ""
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
//////////////////////////////////////////////////////
//functions
const setUsername = () => {
rl.question('Input {address:port} here:', (answer) => {
let socket = socketio(`http://${answer}`);
socket.on('reciever', function (a) {
console.log(a)
})
rl.question('Input Username:', (answer) => {
username1 = answer
socket.emit('userjoined', `${username1} has joined the channel`, (data) => {
console.log("lol")
})
messagesend(socket)
console.log("cool")
});
})
}
function messagesend(socket) {
rl.question('', (answer) => {
socket.emit('newmessage', `${username1}: ${answer}`, (data) => {
});
messagesend(socket)
});
}
////////////////////////////////////////////////////////
//entrypoint
setUsername() | javascript |
Many members of the Minecraft community are familiar with the famous dream team member, CaptainPuffy. CaptainPuffy is a Twitch streamer and YouTuber who recently joined the dream SMP team on November 16th, 2020.
The Dream SMP Team is a whitelisted team of Minecraft players who play on the Dream Team server. This server is a private multiplayer server in which all the players create an improbable plot, server story and history. The Dream Team is where CaptainPuffy gained most of her online fame.
But enough about the dream team. Many players are interested in CaptainPuffy's skins, texture packs, and individual lore. Here is everything players need to know about famous Minecraft player, CaptainPuffy.
Also read: Fundy's Minecraft skin, mods, real name, seed, and more.
Who is CaptainPuffy?
CaptainPuffy's real name is Caroline, and online, she often goes by Cara. CaptainPuffy was born on September 18th, 1998, which makes her astrological sign a Virgo. She's currently 22-years-old.
CaptainPuffy had always been a passionate gamer and became famous through her Twitch streaming career. Her fame didn't stop there, as her YouTube and Twitter account both took off shortly after her Twitch gained traction.
CaptainPuffy has many different Minecraft skins that players can buy. The classic CaptainPuffy skin includes long hair, which drapes over the left shoulder, a captain's coat with yellow shoulder pads, and sunglasses.
This classic CaptainPuffy skin is available in colors blue, green, pink, orange, yellow, and purple. But the skin options don't stop there. CaptainPuffy offers many other custom skins beside her captain suits. There's also the rainbow-themed sheep skin which CaptainPuffy is famous for using. The rainbow skin comes in many different variations, including Dora and corruption-themed ones.
Many of CaptainPuffy's skins are closely tied to her Minecraft lore in the Dream SMP world. When she is in certain parts of the map, such as Snowchester, she will wear different skins to represent the different locations.
There are several different CaptainPuffy skins to choose from. These skins are available at minecraftskins.com for download and viewing.
Many players who watch CaptainPuffy's streams and videos wonder what texture pack she uses. The texture pack CaptainPuffy uses is called Vanilla Tweaks. This texture pack acts as the name sounds, and is similar to vanilla Minecraft, with some slight adjustments to make the terrain more interesting.
Vanilla Tweaks is an interesting texture pack, as it lets players pick and choose which portions of the pack they'd like to add to their world. Most texture packs will only allow players to download and use the entire pack as a whole, but if a player only wants one small feature, Vanilla Tweaks will allow them to download and use that feature without any extras.
Players can download the Vanilla Tweaks texture pack on VanillaTweaks.net.
CaptainPuffy's Minecraft character is instrumental to the Minecraft lore of the Dream SMP Team. She was the leader of the loose resistance against the Eggpire and holds a position as one of Eret's Knights.
CaptainPuffy, or Puffy as she's known on the famous Dream Team SMP server, plays an instrumental role in the server's lore and plot. Her character, while new, has quickly become one of the leaders of the resistance against the Eggpire.
There are many different factions, groups, and empires on the Dream Team server, too many to cover in only one article. Puffy also has a house in the faction of Snowchester. Each faction has its own leaders, followers, and flag. These factions fight against each other in the fictional world of Dream Team SMP.
CaptainPuffy is considered to be one of the kindest players on the Dream Team SMP. She has gone out of her way to be kind to everyone on the server regardless of where they stand. She also spends much of her time rebuilding the natural look of the Dream Team server and refers to herself as a janitor since she spends so much of her time cleaning and rebuilding.
CaptainPuffy also has an often unseen, chaotic side, as she is known for her massive pranks. These pranks never go too far, and usually only involve minor destruction and chaos towards her friends on the server.
Besides pranking and rebuilding, CaptainPuffy acts as just that - a captain. She has been leading the resistance against the eggpire but regrets not doing it sooner. Puffy was caught in a predicate when her friends turned out to be some of the biggest antagonists on the server. Now Puffy leads the resistance with full force against the eggpire.
There's much more Minecraft Dream Team lore to explore, and players should watch CaptainPuffy on Twitch and YouTube to better understand the niche world of the dream team's adventures.
Also read: Dream: The Minecraft genius who’s breaking the internet.
| english |
Srinagar: Three terrorists were neutralised in an encounter in Jammu and Kashmir’s Pulwama district on Tuesday. The Kashmir Zone Police wrote on Twitter that the terrorists were gunned down in an ongoing encounter at Hakripora / Kakapora area of Pulwama.
Three AK rifles were recovered from the possession of the terrorists.
"A total of three terrorists killed in the encounter at Pulwama. Three AKs recovered. Operation concluded," Indian Army's Chinar Corps said.
"Three terrorists were killed and their bodies were retrieved from the site of encounter. Their identification is being ascertained. However, as per reliable sources and technical input, they were affiliated with Lashkar-e-Taiba and involved in attack on CRPF at Pulwama yesterday," the J&K Police said.
The encounter was led by a joint team of the Indian Army, the Central Reserve Police Force and the Jammu and Kashmir Police.
The security forces had launched a search operation and cordoned off the area after receiving specific information about the presence of terrorists there.
As the security forces came close to the area where terrorists were hiding, they came under heavy fire. Soon, the gunfight ensued.
This was the second encounter in Jammu and Kashmir over the past 24 hours. Two terrorists were neutralised earlier in a gunfight at Melhora area in South Kashmir’s Shopian district. | english |
<reponame>datavisorfrankhe/wordpress_gatsby
{"componentChunkName":"component---src-templates-blog-post-template-js","path":"/post/the-underground-market-for-user-accounts","result":{"data":{"wordpressPost":{"id":"87ee80c2-5c40-5353-9dbf-0d1f7b041463","title":"The Underground Market for User Accounts | Fake Accounts, Account Fraud","content":"<div style=\"text-align: left;\"><img class=\"alignleft wp-image-1631\" src=\"https://localhost:8000/wp-content/uploads/2015/09/forsalesign.png\" alt=\"For Sale Sign - Real Accounts of Fake Accounts?\" width=\"273\" height=\"203\" /></div>\n<p><span style=\"font-weight: 300;\">User accounts are extremely valuable – real accounts far more so than fake accounts. This is not only true for Internet properties, which are valued by the size and growth of their user base, but also for professional online criminals exploiting these platforms for a profit. </span></p>\n<p><span style=\"font-weight: 300;\">The prevalence of these user accounts in the underground market proves this is a common problem across all social platforms. The figure below shows the price range per account on <a href=\"http://www.blackhatworld.com/\">BlackHat World</a>, a web forum for black hats providing tips or services for online marketing. As you can see, the price varies widely by service, and also depends on the number of accounts purchased, whether the accounts are phone-verified, the country in which they were created, the age of the accounts, etc. Credible accounts are far more valuable than fake accounts. </span></p>\n<p><figure id=\"attachment_1491\" aria-describedby=\"caption-attachment-1491\" style=\"width: 548px\" class=\"wp-caption aligncenter\"><img class=\"wp-image-1491\" src=\"https://localhost:8000/wp-content/uploads/2016/02/price_per_account.png\" alt=\"Price Per Account - Real Accounts Not Fake Accounts\" width=\"548\" height=\"519\" /><figcaption id=\"caption-attachment-1491\" class=\"wp-caption-text\">The price range of a user account on Black Hat World forums. This figure is based on data collected during two weeks in late July to early August 2015.</figcaption></figure></p>\n<p><span style=\"font-weight: 300;\">In the figure, the red line is the median price per account, the box is drawn between the first and third quartile of the price range, and the “whiskers” (in dotted line) extend to the furthest value within 1.5 times the interquartile range from the end of the boxes. Any data point further than that is marked as ‘+’.</span></p>\n<p><span style=\"font-weight: 300;\">In addition to accounts, other types of social currency are also up for sale. On the BlackHat World forums, a thousand Facebook “likes” run for a median price of $3, a thousand Twitter retweets is about $0.75, and a thousand Instagram followers is $2. Combo packages are available – $18.99 will buy you 530 Facebook likes, 500 Twitter shares, 380 Google +1’s, 300 Pinterest repins, 250 Facebook shares, and 240 LinkedIn shares. Looking for a quality marketing channel? LinkedIn accounts with 500 connections are only $30 each.</span></p>\n<p><span style=\"font-weight: 300;\">So what does all of this mean? Clearly it shows that the current security solutions in place, such as multi-factor authentication and rules/model-based systems, are ineffective at stopping mass registrations and account takeovers. It also underscores the point that there is a thriving underground for “fraud-as-a-service” where people buy and sell user accounts, fake reviews, followers like commodities on the stock exchange. Furthermore, it demonstrates the type of adversary we are now up against. Well-organized, well-funded criminal businesses that are spending a lot of money in these black markets to create huge armies of fake accounts to do their bidding for financial gain – whether it be fraudulent transactions, spam ad campaigns, promotional abuse or more. We need to rethink how we combat this modern adversary by stopping the creation of these accounts and the downstream damage they conduct.</span></p>\n","excerpt":"<p>User accounts are extremely valuable – real accounts far more so than fake accounts. This is not only true for Internet properties, which are valued by the size and growth of their user base, but also for professional online criminals exploiting these platforms for a profit. The prevalence of these user accounts in the underground […]</p>\n","date":"September 15, 2015","author":{"id":"<PASSWORD>","name":"<NAME>"}}},"pageContext":{"id":9167}}} | json |
import { FooterConfig } from 'types/portal-config'
const footer: FooterConfig = {
contactUs: 'mailto:<EMAIL>',
}
export default footer
| typescript |
<reponame>rotemamsa/formulae.brew.sh<gh_stars>1-10
{
"token": "<PASSWORD>",
"full_token": "<PASSWORD>",
"tap": "homebrew/cask",
"name": [
"Paperpile"
],
"desc": "Citation plugin for Microsoft Word",
"homepage": "https://paperpile.com/word-plugin/",
"url": "https://cdn.paperpile.com/download/desktop/Paperpile-0.7.2.dmg",
"appcast": null,
"version": "0.7.2",
"versions": {
},
"installed": null,
"outdated": false,
"sha256": "d512ad93042c580cdf6343f466dd3d83c1108b2badec400d0d9ad0dc49a14807",
"artifacts": [
[
"Paperpile.app"
],
{
"trash": [
"~/Library/Application Support/Paperpile",
"~/Library/Group Containers/*.Office/User Content.localized/Startup.localized/Word/paperpile*",
"~/Library/Preferences/com.paperpile.paperpile.plist"
],
"signal": {
}
}
],
"caveats": null,
"depends_on": {
},
"conflicts_with": null,
"container": null,
"auto_updates": true
}
| json |
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "main/_macros.html" as macros %}
{% block title %}顶点云 - 我的云盘{% endblock %}
{% block page_content %}
<section id="top" class="two">
<div class="container">
<header>
<div>
<form method="POST" action="{{ url_for('main.cloud', type=_type, order='name', path=_path, key=key, direction='front', _external=True) }}">
{{ form.hidden_tag() }}
{{ form.key(class="form-control", placeholder="根据关键字检索文件") }}
</form>
</div>
<br/>
<div style="text-align:right">
<a href="{{ url_for('main.cloud', type=_type, order='name', path=_path, key='', direction='front', _external=True) }}">
{% if key != '' %}
<button type="button" class="btn btn-success">清空筛选条件</button>
{% endif %}
</a>
<a href="{{ url_for('main.upload', path=_path, _external=True) }}">
<button type="button" class="btn btn-success">上传</button>
</a>
<a href="{{ url_for('main.newfolder', path=_path, _external=True) }}">
<button type="button" class="btn btn-success">新文件夹</button>
</a>
<div class="btn-group">
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% if _type == 'video' %}
只看视频
{% elif _type == 'music' %}
只看音乐
{% elif _type == 'photo' %}
只看图片
{% elif _type == 'document' %}
只看文档
{% elif _type == 'compress' %}
只看压缩文件
{% else %}
选择查看方式
{% endif %}
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ url_for('main.cloud', type='all',direction=_direction, order=_order, key=key, _external=True) }}">全部</a>
<a class="dropdown-item" href="{{ url_for('main.cloud', type='music', direction=_direction, order=_order, key=key, _external=True) }}">音乐</a>
<a class="dropdown-item" href="{{ url_for('main.cloud', type='video', direction=_direction, order=_order, key=key, _external=True) }}">视频</a>
<a class="dropdown-item" href="{{ url_for('main.cloud', type='photo', direction=_direction, order=_order, key=key, _external=True) }}">图片</a>
<a class="dropdown-item" href="{{ url_for('main.cloud', type='document', direction=_direction, order=_order, key=key, _external=True) }}">文档</a>
<a class="dropdown-item" href="{{ url_for('main.cloud', type='compress', direction=_direction, order=_order, key=key, _external=True) }}">压缩文件</a>
<div class="dropdown-divider"></div>
{% if _direction == "front" %}
<a class="dropdown-item" href="{{ url_for('main.cloud', type=_type, order='time', path=_path, key=key, direction='reverse', _external=True) }}">按时间排序</a>
{% else %}
<a class="dropdown-item" href="{{ url_for('main.cloud', type=_type, order='time', path=_path, key=key, direction='front', _external=True) }}">按时间排序</a>
{% endif %}
{% if _direction == "front" %}
<a class="dropdown-item" href="{{ url_for('main.cloud', type=_type, order='name', path=_path, key=key, direction='reverse', _external=True) }}">按名称排序</a>
{% else %}
<a class="dropdown-item" href="{{ url_for('main.cloud', type=_type, order='name', path=_path, key=key, direction='front', _external=True) }}">按名称排序</a>
{% endif %}
</div>
</div>
</div>
{% if _type == "all" %}
<div style="text-align:left">
<div class="link-block">
当前路径:
{% for __path, _pathView in pathlists %}
<a class="link-item" href="{{ url_for('main.cloud', path=__path, order=_order, direction=_direction, _external=True) }}">
{{ _pathView }}</a>
{% endfor %}
</div>
</div>
{% endif %}
<div style="text-align:center">
{% if files %}
{% include 'main/cloud/_ownfiles.html' %}
{% else %}
{% if key == '' %}
<h3 class="text-warning">这里什么都没有</h3>
{% else %}
<h3 class="text-warning">没有检索到相关文件</h3>
{% endif %}
{% endif %}
</div>
{% if pagination %}
<div class="pagination">
{{ macros.pagination_widget(pagination, 'main.cloud', key=key,
type=_type, order=_order, direction=_direction) }}
</div>
{% endif %}
</header>
</div>
</section>
{% endblock %}
{% block scripts %}
{{ super() }}
{{ pagedown.include_pagedown() }}
{% endblock %}
| html |
In every IPL, before the start of the tournament when one looks at the squad of the Royal ..
In our last piece, we did a little SWOT analysis of Rajasthan Royals. We saw how aggressiv ..
The Indian Premier League’s bidding war is over. The sides are now ready for the fac ..
Rajasthan Royals have tied up with Deakin University, Australia to promote sports educa ..
The Indian Premier League (IPL), nation’s most popular annual domestic twenty-twenty con ..
In a shocking development that could disappoint millions of cricket fans worldwide, the go ..
Ambati Rayudu, the explosive middle-order Indian batsman, has been ruled out of the ongoin ..
IPL 8 Eliminator: Can Rajasthan thwart Bangalore’s royal challenge?
Rajasthan Royals (RR) will face an uphill task tonight when it faces Royal Challengers Ban ..
The concept of multiple home venues has prompted BCCI to revisit their IPL revenue model a ..
Everyone is busy witnessing the last ball finishes in the ongoing Indian Premier League (I ..
| english |
<reponame>libc16/azure-rest-api-specs
{
"parameters": {
"subscriptionId": "6e0219f5-327a-4365-904f-05eed4227ad7",
"resourceGroupName": "ResourceGroupForSDKTest",
"dataManagerName": "TestAzureSDKOperations",
"api-version": "2019-06-01",
"x-ms-client-request-id": [
"c8bc3615-68e3-4d43-a64d-a6c2f5b7ae6b"
],
"accept-language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.26614.01",
"OSName/Windows",
"OSVersion/Microsoft.Windows.10.0.19555.",
"Microsoft.Azure.Management.HybridData.HybridDataManagementClient/1.0.1.preview"
]
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"repositoryId": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink",
"state": "Enabled",
"extendedProperties": {
"StorageAccountNameForQueue": "dmsdatasink"
},
"dataStoreTypeId": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"
},
"name": "TestAzureStorage1",
"id": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1",
"type": "Microsoft.HybridData/dataManagers/dataStores"
},
{
"properties": {
"repositoryId": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600",
"state": "Enabled",
"extendedProperties": {
"resourceId": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600",
"extendedSaKey": null
},
"dataStoreTypeId": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"
},
"name": "TestStorSimpleSource1",
"id": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1",
"type": "Microsoft.HybridData/dataManagers/dataStores"
}
],
"nextLink": null
}
}
}
}
| json |
{
"profileAlternative": {
"name": "<NAME>",
"headline": "Data Scientist at Hinge",
"location": "Greater New York City Area",
"connections": "500+"
},
"aboutAlternative": {},
"positions": [],
"educations": [
{
"title": "New York University",
"degree": "Master’s Degree",
"date1": "2016",
"date2": "2018"
},
{
"title": "University of Southern California",
"degree": "Bachelor of Science (B.S.)",
"date1": "2008",
"date2": "2012"
},
{
"title": "London School of Economics and Political Science",
"degree": "General Course Study Abroad",
"date1": "2010",
"date2": "2011"
}
],
"skills": [
{
"title": "Data Science"
},
{
"title": "Machine Learning"
},
{
"title": "Statistical Modeling"
},
{
"title": "Analytics"
},
{
"title": "Data Analysis"
},
{
"title": "Python"
},
{
"title": "SQL"
},
{
"title": "R"
}
],
"recommendations": {
"givenCount": "0",
"receivedCount": "0",
"given": [],
"received": []
},
"accomplishments": [
{
"count": "1",
"items": [
"Algorithms as Prosecutors: Lowering Rearrest Rates Without Disparate Impacts and Identifying Defendant Characteristics 'Noisy' to Human Decision-Makers"
]
}
],
"peopleAlsoViewed": [
{
"user": "https://www.linkedin.com/in/joel-micalizzi/",
"text": "Director, Data Engineering at Hinge"
},
{
"user": "https://www.linkedin.com/in/katie-sohn-5b13b8b/",
"text": "Data Scientist"
},
{
"user": "https://www.linkedin.com/in/samuel-levy-869a8911/",
"text": "COO at Hinge App"
},
{
"user": "https://www.linkedin.com/in/bencelebicic/",
"text": "CTO @Hinge - We're hiring"
},
{
"user": "https://www.linkedin.com/in/chuheng-hu/",
"text": "McKinsey & Company - Data Scientist"
},
{
"user": "https://www.linkedin.com/in/justin-mcleod-b43156134/",
"text": "Founder, CEO at Hinge"
},
{
"user": "https://www.linkedin.com/in/nickciao/",
"text": "Staff Software Eng @ Hinge"
},
{
"user": "https://www.linkedin.com/in/xianzhicao/",
"text": "Data Scientist (Machine/Deep Learning & AI)"
},
{
"user": "https://www.linkedin.com/in/stellasun1/",
"text": "Data Scientist at Facebook"
},
{
"user": "https://www.linkedin.com/in/lindsay-norman-42873112/",
"text": "Director of Design at Hinge"
}
],
"volunteerExperience": [],
"profile": {
"name": "<NAME>",
"headline": "Data Scientist at Hinge",
"location": "Greater New York City Area",
"connections": "500+"
}
} | json |
<reponame>skunkie/vrealize-pysdk
import os
from setuptools import setup
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='vralib',
packages=['vralib'],
version='0.1',
description='This is a helper library used to manage vRealize Automation via python.',
author='<NAME>',
author_email='<EMAIL>',
url='https://github.com/kovarus/vrealize-pysdk',
keywords=['vralib'],
long_description=read('README.md'),
long_description_content_type='text/markdown',
license='Apache License, Version 2.0',
install_requires=[
'requests',
],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Software Development',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)
| python |
<reponame>swaplicado/sa-lib-10<gh_stars>0
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sa.lib.grid;
/**
*
* @author <NAME>
*/
public final class SGridPaneSettings {
private int mnPrimaryKeyLength;
private int mnTypeKeyLength;
private boolean mbDateApplying;
private boolean mbUpdatableApplying;
private boolean mbDisableableApplying;
private boolean mbDeletableApplying;
private boolean mbDisabledApplying;
private boolean mbDeletedApplying;
private boolean mbSystemApplying;
private boolean mbUserApplying;
private boolean mbUserInsertApplying;
private boolean mbUserUpdateApplying;
public SGridPaneSettings(int primaryKeyLength) {
this(primaryKeyLength, 0);
}
public SGridPaneSettings(int primaryKeyLength, int typeKeyLength) {
mnPrimaryKeyLength = primaryKeyLength;
mnTypeKeyLength = typeKeyLength;
mbDateApplying = false;
mbUpdatableApplying = false;
mbDisableableApplying = false;
mbDeletableApplying = false;
mbDisabledApplying = false;
mbDeletedApplying = false;
mbSystemApplying = false;
mbUserApplying = false;
mbUserInsertApplying = false;
mbUserUpdateApplying = false;
}
public void setPrimaryKeyLength(int n) { mnPrimaryKeyLength = n; }
public void setTypeKeyLength(int n) { mnTypeKeyLength = n; }
public void setDateApplying(boolean b) { mbDateApplying = b; }
public void setUpdatableApplying(boolean b) { mbUpdatableApplying = b; }
public void setDisableableApplying(boolean b) { mbDisableableApplying = b; }
public void setDeletableApplying(boolean b) { mbDeletableApplying = b; }
public void setDisabledApplying(boolean b) { mbDisabledApplying = b; }
public void setDeletedApplying(boolean b) { mbDeletedApplying = b; }
public void setSystemApplying(boolean b) { mbSystemApplying = b; }
public void setUserApplying(boolean b) { mbUserApplying = b; }
public void setUserInsertApplying(boolean b) { mbUserInsertApplying = b; }
public void setUserUpdateApplying(boolean b) { mbUserUpdateApplying = b; }
public int getPrimaryKeyLength() { return mnPrimaryKeyLength; }
public int getTypeKeyLength() { return mnTypeKeyLength; }
public boolean isDateApplying() { return mbDateApplying; }
public boolean isUpdatableApplying() { return mbUpdatableApplying; }
public boolean isDisableableApplying() { return mbDisableableApplying; }
public boolean isDeletableApplying() { return mbDeletableApplying; }
public boolean isDisabledApplying() { return mbDisabledApplying; }
public boolean isDeletedApplying() { return mbDeletedApplying; }
public boolean isSystemApplying() { return mbSystemApplying; }
public boolean isUserApplying() { return mbUserApplying; }
public boolean isUserInsertApplying() { return mbUserInsertApplying; }
public boolean isUserUpdateApplying() { return mbUserUpdateApplying; }
}
| java |
(function () {
var TunnelPhantom = angular.module('TunnelPhantom');
TunnelPhantom.directive('minyear', MinYear);
function MinYear(dateParserService) {
return {
restrict: 'A',
require: 'ngModel',
link: function (scope, elm, attr, ctrl) {
if (typeof attr.minyear !== 'undefined' || attr.minyear) {
var minVal;
ctrl.$validators.minyear = function (value) {
return minVal === 'undefined' || isNaN(minVal) || validateMinDate(value, minVal);
};
attr.$observe('minyear', function (val) {
minVal = parseInt(val);
ctrl.$validate();
});
}
function validateMinDate(value, minVal) {
var year = dateParserService.getYear(value);
return year != undefined && year > minVal;
}
}
}
}
MinYear.$inject = ['dateParserService'];
})();
| javascript |
<filename>celery_tasks/tasks.py
import logging
from celery import Task
from celery.exceptions import MaxRetriesExceededError
from .app_worker import app
from .yolo import YoloModel
class PredictTask(Task):
def __init__(self):
super().__init__()
self.model = None
def __call__(self, *args, **kwargs):
if not self.model:
logging.info('Loading Model...')
self.model = YoloModel()
logging.info('Model loaded')
return self.run(*args, **kwargs)
@app.task(ignore_result=False, bind=True, base=PredictTask)
def predict_image(self, data):
try:
data_pred = self.model.predict(data)
return {'status': 'SUCCESS', 'result': data_pred}
except Exception as ex:
try:
self.retry(countdown=2)
except MaxRetriesExceededError as ex:
return {'status': 'FAIL', 'result': 'max retried achieved'}
| python |
#!/usr/bin/env node
const joinGeneratorsIntoBuffer = (...$generators) => {
if ($generators.some((item) => typeof item !== 'function')) {
// eslint-disable-next-line no-console
console.error('joinBuffer\'s params must be function whoes name start with "gen"');
return '';
}
return $generators.reduce((prev, curr) => (prev += `${curr()}\r\n\r\n`), '');
};
module.exports = joinGeneratorsIntoBuffer;
| javascript |
<filename>tools/tools.go<gh_stars>0
//go:build tools
// +build tools
// package tool pins a number of Go dependencies that we use. Go builds really fast,
// so wherever we can, we just build from source rather than pulling in third party binaries.
package main
//noinspection ALL
import (
_ "github.com/bufbuild/buf/cmd/buf"
_ "github.com/fullstorydev/grpcurl/cmd/grpcurl"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
_ "github.com/spf13/cobra-cli"
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
)
| go |
Nier Automata is an action role-playing game developed by Platinum Games. It was initially launched on 23rd February 2017, across platforms including PS4, Xbox One, and PC. Nier Automata is a commercially successful game that has won many major and minor awards over the years.
During the recent Tokyo Game Show: Nier-centric event, we got a decent amount of new info about the Nier series. The publisher, Square Enix, announced a remastered version of 2010's Nier Replicant. The new game is officially called Nier Replicant ver. 1. 22474487139 and is set for release on 23rd April 2021 across platforms including PC, Xbox One and PS4.
The pre-orders for Nier Replicant ver. 1. 22474487139 are currently active on the respective platforms' online stores.
According to the developers, Nier Replicant ver. 1. 22474487139 is an upgraded prequel to Nier Automata. The story follows a young man who sets on a journey and a strange talking Grimoire, Weiess, searching for Sealed verses to save his sister, Yonah, who has fallen terminally ill to a disease.
With all the new Nier Replicant info coming in, we thought this would be a great time to get back to the critically acclaimed Nier Automata. Following that, we bring the official system requirements of Nier Automata that can give users a technical overview of how it will perform on their PCs.
Nier Automata PC minimum system requirements:
Nier Automata PC recommended system requirements: | english |
Sperm sorting technology (Microsort method) is a procedure in which the X-bearing chromosome and Y-bearing chromosome of the semen sample is separated to get the desired gender of the upcoming baby either boy or girl.
Scientists consider and believe that large X chromosomes have more DNA up to 2.8% as compared to the tiny Y chromosome. In this procedure, a semen or sperm sample is collected from a Donor or father and treated with a fluorescent dye that attaches to DNA and glows in laser light. Under this laser light sperm having more DNA glows more brightly than sperms having less DNA, i.e X chromosome DNA will glow more brightly than Y chromosome DNA. This difference of brightness will be sufficient for distinguishing two types of sperm under detector laser light.
These identified sperms are then passed through a very narrow tube with a limited diameter which allows only one sperm cell to be passed at a time. When sperm move through this special tube, are illuminated by laser light. An automated sperm sorter system automatically detects the sperm DNA brightness and sends the X Sperm Cells down in one tube and Y sperm cells in another.
Now, these separated sperms can be used to fertilize the egg as per desired gender i.e X sperm cells for female baby and Y sperm cells for baby Boy. In the IUI procedure, these sorted sperm cells are injected into a women's uterus near the egg in the fallopian tube. While in IVF procedure these separated sperm cells will be used to fertilize the egg in the laboratory.
Studies show that after the separation of X and Y sperms cells, Tube having X sperms cells have 91% X and 9% Y sperms cells, while Y sperm cells Tube has 74% Y sperm and 26% X sperm. It's means that results for getting the desired gender baby is not foolproof but have higher success chances, especially of the girl as compared to Boy.
In the IUI procedure results can be different but in the IVF procedure 100% results can be achieved by examining the fertilized embryo chromosome in the laboratory and after confirmation, only the required embryo will be transferred to the uterus of the woman. These procedures are to be used only for family balance purposes, to avoid genetic diseases, or in circumstances required necessary for some reason. Ethically, it should not be allowed in normal situations, because widespread gender selection can lead to gender imbalance in society and cause social problems.
Share your Thoughts & Experiences in the comments by clicking here!
| english |
# ChartJs
ChartJs
| markdown |
public class Test<T> {
interface A<T> {
void foo(T t);
}
interface B<T> {
void bar(T t);
}
} | java |
The Chief Minister was just speaking on a lot of topics - there are no roads, no hospitals and nothing of Film Division of any sort. I felt satisfied to hear him discussing these problems as it made me feel that this Chief Minister trusts this government to change things. And since he has such faith in my government, I feel the need to fulfill these wishes.
The Porbandar-Silcher Road that he mentioned - I had laid the foundation stone of the road in Gujarat at Porbandar in the capacity of Chief Minister of the State during the period of Atal Bihari Vajpayee government. It is also possible that I come here for a similar inauguration in future. But all the subjects that the Chief Minister has mentioned are important. We too are keen on developing North East, the land of Ashta Lakshmi and hence we have allotted a budget of about Rs 60000 crores towards the development of its infrastructure.
During the bilateral talks in Myanmar on my recent visit there, the maximum impetus was on the subject of how to establish connectivity with Imphal. Be it air connectivity, road connectivity or i-ways, it should benefit everyone and the government of Myanmar has also taken important decisions to get associated with the infrastructure projects with the government of India so that this region can be made more accessible. You will surely notice the results in the coming days.
Today, I have had the good fortune of being here for the Sangai festival. Our country has a lot of potential for tourism. No matter where in the world a tourist goes, our one State of India is capable of showcasing more than all that one country can offer the tourist. A tourist can easily tour a State for a month and if he keeps visiting our country every year, choosing to experience a new State, a lifetime wouldn't be enough to see entire India. Every State of our country has a different highlight, such varied is the heritage of our country!
North East and especially Manipur have a lot of opportunities for the development of tourism. Like the Chief Minister just pointed out, I belong to Gujarat. Krishna is celebrated in Dwarka there and I have been brought up in a similar environment, worshipping Lord Krishna. When I saw you worshipping Lord Krishna, singing his praises, I felt right at home in Manipur.
The world tourism sector has an estimated potential worth 3 trillion dollars. If there is any one sector that is growing by leaps and bounds globally, it is the tourism sector. Some places have shown a growth of 40 per cent in this sector. India has a lot to offer to the world that can influence and inspire them. But this area is still largely untapped. It is our constant effort to attract the world through our rich heritage.
The game of Polo was born here. There was a Polo programme arranged here yesterday, in which, according to the information I have, 8 countries participated. This is your heritage. I want the world to know about the place that gave birth to Polo and hence I will match steps with the state in its efforts to highlight their assets.
I just met with delegates from the HRD Ministry and asked them if there was a possibility of about 100 students from all the universities of the country visit North East as tourists. Only if university students start visiting, the tourism scene of the region will change drastically.
They have already begun work towards making this a possibility and you should be able to see the results soon. And there is such diversity of heritage in Manipur. There is song, dance, theatre, costumes and what not. It is truly reflective in its rich cultural heritage. The reason of my joining in the Sangai festival is the same. I want the world to see what Manipur has to offer and when they see the PM visiting, they might want to find out what the hoopla is all about.
There are two theories - one that says if the infrastructure is developed, tourism will develop and the other goes if tourism prospers, infrastructure will have to develop. Both theories carry equal weight. If tourism prospers, the quality of infrastructure will improve which in turn will bring in more visitors. These changes take place gradually over a period of time. We just need to create a friendly environment.
If there is good connectivity then there will be a droves of visitors here. I firmly believe that tourism is one such sector that gives maximum returns in the minimum investment. Everyone - from a snack vendor, an auto rickshaw driver, a florist, a vegetable vendor to a cab driver, a guest house owner and even those offering the option of home stay and a tea vendor - everyone can benefit from the development of tourism. I will be particularly happy if the tea vendor earns well. What I mean to say is that even the poorest of poor would benefit from it.
The government of India has recognised the power of Manipur and hence we have decided to establish a sports university here. Manipur has a huge role to play in India's achievements in sports. We want to harness this power to the optimum as this power is inherent in the DNA of the people of Manipur. Additionally, the people of Manipur have a sportsman spirit and we want to set an example for the rest of the country.
Some people think that a sports university only helps in creating good players but that is not the case. A sport in itself is a large economy. Right from making a playground to those who write scoreboards, the one involved in collection of data, those looking after the players' food habits, physiotherapy and sportsman costumes - everyone finds employment. The youth of Manipur who might not have been able to become players but they can train themselves in this university to become an umpire, a scorer or become a physiotherapist of a good sportsman or can become dietician of a good sportsman, they can also become makers or architects of a playground. In a manner, opportunities of overall development are associated with a sports university. Many people might otherwise think that a sports university would mean a place where players would be trained. But that is not the case. It is a science, an economy, a complete creation with elements of technology, arithmetic and many such elements. You cannot imagine the amount of changes a university can bring about in Manipur.
When I visited Australia recently, I have asked them to collaborate with us on the Manipur Sports University. I want to connect the countries of the world with Manipur and you will reap the benefits in the coming days.
The youth of Manipur wants job and there is a need for skill development that will eventually lead to jobs. I have also asked an IT professional that I just met, to focus on the possibility of establishing call centers here in cities like Manipur, Nagaland, Meghalaya, Mizoram etc. instead of in cities like Hyderabad and Bangalore. The weather here would diminish the need of air conditioners, thus bringing down the cost hugely. The youth here also speak fluent English, so the language shouldn't be a barrier. I am trying to get this done. I will try and pull some companies here due to which there will be a lot of opportunities for the youth here and they wouldn't have to leave Manipur in search of better jobs.
I have also thought of the possibility of employing the youth of Manipur in the police force of Delhi. When the world sees the youth from the North East policing the streets of Delhi, keeping it safe, they will realise the true potential of these States. I want to work towards this as well.
When I was the Chief Minister of Gujarat, I had a plan that wasn't put into action. I had envisioned a strategy of sort where every State of the North East - 8 of them - will select and send 200 women each to be a part of the police force in Gujarat, in every two years. So, a total of 1600 women would have joined the police forces in Gujarat. Imagine the kind of national integration that would be!
At the same time I had also emphasised how Gujaratis were the best tourists in the whole world. No matter where you go, you will find a Gujarati there. We like to roam around, spending the wealth we have. So as per my plan, if 1600 girls would stay in Gujarat for 2 years, they would at least mingle with 15-20 families each who would in return visit their State thus enhancing tourism. I have told the Chief Minister of Gujarat to explore the possibility and if anyone from the North East wants to visit Gujarat, we would welcome them with open arms. Imagine the benefits these states will reap by associating with a prosperous state like Gujarat.
Therefore, my brothers and sisters of Manipur, all the points that have been raised by the Chief Minister at the closing ceremony of the Sangai festival today, naturally having faith in me, please be assured that I will do my best to keep that faith as I am a man who tries to live up to them. I will go back and discuss the issues with the people of the concerned departments and see what can be done about them. I will also try to fulfill all the promises I have made here today and put all the plans into action. I will also expect that the manner in which Manipur has made us proud in the field of sports, similarly it becomes the flag bearer in the arena of development.
However, I am deeply concerned by one issue here which I would like to address. The youth of Manipur are victims of drug abuse and this deeply hurts me. My heart goes out to the parents of such youth. It is our responsibility to ensure that our future generation does not suffer due to this. It is a dangerous path and it is not about an individual but the whole family and eventually the society and the country suffers immensely due to this.
Hence we need to make a collective decision as a society, to ensure that we will end this. In a land where Lord Krishna and his miracles are celebrated, where we find the country's best players, we will not let Manipur suffer from such a disease. The youth of Manipur have the capability of changing the future of the country. Drugs destroy everything and today as we have gathered here at the pious occasion of the Sangai festival, I request the youth of Manipur to give up drugs. I know it is a difficult addiction to kick, but once you decide, you will be able to come out of it. Once you save yourself, you and your family will benefit from it and grow.
With this request, I thank the people of Manipur for inviting me here and being a part of your celebrations. Thank you!
(The original speech was in Hindi, this is the English rendering. Original speech remains the authoritative version)
| english |
<reponame>proullon/protoc-gen-gotemplate
// Code generated by protoc-gen-gotemplate
package article
import (
"github.com/moul/protoc-gen-gotemplate/examples/import/output/models/article"
"github.com/moul/protoc-gen-gotemplate/examples/import/output/models/common"
)
type Repository interface {
GetArticle(getarticle *common.GetArticle ) (*article.Article, error)
} | go |
# Copyright (c) 2019 UAVCAN Consortium
# This software is distributed under the terms of the MIT License.
# Author: <NAME> <<EMAIL>>
"""
Publishes ``uavcan.node.Heartbeat`` periodically and provides a couple of basic auxiliary services;
see :class:`HeartbeatPublisher`.
"""
import enum
import time
import typing
import logging
import asyncio
import uavcan.node
from uavcan.node import Heartbeat_1_0 as Heartbeat
import pyuavcan
class Health(enum.IntEnum):
"""
Mirrors the health enumeration defined in ``uavcan.node.Heartbeat``.
When enumerations are natively supported in DSDL, this will be replaced with an alias.
"""
NOMINAL = uavcan.node.Health_1_0.NOMINAL
ADVISORY = uavcan.node.Health_1_0.ADVISORY
CAUTION = uavcan.node.Health_1_0.CAUTION
WARNING = uavcan.node.Health_1_0.WARNING
class Mode(enum.IntEnum):
"""
Mirrors the mode enumeration defined in ``uavcan.node.Heartbeat``.
When enumerations are natively supported in DSDL, this will be replaced with an alias.
"""
OPERATIONAL = uavcan.node.Mode_1_0.OPERATIONAL
INITIALIZATION = uavcan.node.Mode_1_0.INITIALIZATION
MAINTENANCE = uavcan.node.Mode_1_0.MAINTENANCE
SOFTWARE_UPDATE = uavcan.node.Mode_1_0.SOFTWARE_UPDATE
VENDOR_SPECIFIC_STATUS_CODE_MASK = (
2 ** list(pyuavcan.dsdl.get_model(Heartbeat)["vendor_specific_status_code"].data_type.bit_length_set)[0] - 1
)
_logger = logging.getLogger(__name__)
class HeartbeatPublisher:
"""
This class manages periodic publication of the node heartbeat message.
Also it subscribes to heartbeat messages from other nodes and logs cautionary messages
if a node-ID conflict is detected on the bus.
Instances must be manually started when initialization is finished by invoking :meth:`start`.
The default states are as follows:
- Health is NOMINAL.
- Mode is OPERATIONAL.
- Vendor-specific status code is zero.
- Period is MAX_PUBLICATION_PERIOD (see the DSDL definition).
- Priority is default as defined by the presentation layer (i.e., NOMINAL).
"""
def __init__(self, presentation: pyuavcan.presentation.Presentation):
self._presentation = presentation
self._instantiated_at = time.monotonic()
self._health = Health.NOMINAL
self._mode = Mode.OPERATIONAL
self._vendor_specific_status_code = 0
self._pre_heartbeat_handlers: typing.List[typing.Callable[[], None]] = []
self._maybe_task: typing.Optional[asyncio.Task[None]] = None
self._priority = pyuavcan.presentation.DEFAULT_PRIORITY
self._period = float(Heartbeat.MAX_PUBLICATION_PERIOD)
self._subscriber = self._presentation.make_subscriber_with_fixed_subject_id(Heartbeat)
def start(self) -> None:
"""
Starts the background publishing task on the presentation's event loop.
It will be stopped automatically when closed. Does nothing if already started.
"""
if not self._maybe_task:
self._subscriber.receive_in_background(self._handle_received_heartbeat)
self._maybe_task = self._presentation.loop.create_task(self._task_function())
@property
def uptime(self) -> float:
"""The current amount of time, in seconds, elapsed since the object was instantiated."""
out = time.monotonic() - self._instantiated_at
assert out >= 0
return out
@property
def health(self) -> Health:
"""The health value to report with Heartbeat; see :class:`Health`."""
return self._health
@health.setter
def health(self, value: typing.Union[Health, int]) -> None:
self._health = Health(value)
@property
def mode(self) -> Mode:
"""The mode value to report with Heartbeat; see :class:`Mode`."""
return self._mode
@mode.setter
def mode(self, value: typing.Union[Mode, int]) -> None:
self._mode = Mode(value)
@property
def vendor_specific_status_code(self) -> int:
"""The vendor-specific status code (VSSC) value to report with Heartbeat."""
return self._vendor_specific_status_code
@vendor_specific_status_code.setter
def vendor_specific_status_code(self, value: int) -> None:
value = int(value)
if 0 <= value <= VENDOR_SPECIFIC_STATUS_CODE_MASK:
self._vendor_specific_status_code = value
else:
raise ValueError(f"Invalid vendor-specific status code: {value}")
@property
def period(self) -> float:
"""
How often the Heartbeat messages should be published. The upper limit (i.e., the lowest frequency)
is constrained by the UAVCAN specification; please see the DSDL source of ``uavcan.node.Heartbeat``.
"""
return self._period
@period.setter
def period(self, value: float) -> None:
value = float(value)
if 0 < value <= Heartbeat.MAX_PUBLICATION_PERIOD:
self._period = value
else:
raise ValueError(f"Invalid heartbeat period: {value}")
@property
def priority(self) -> pyuavcan.transport.Priority:
"""
The transfer priority level to use when publishing Heartbeat messages.
"""
return self._priority
@priority.setter
def priority(self, value: pyuavcan.transport.Priority) -> None:
# noinspection PyArgumentList
self._priority = pyuavcan.transport.Priority(value)
def add_pre_heartbeat_handler(self, handler: typing.Callable[[], None]) -> None:
"""
Adds a new handler to be invoked immediately before a heartbeat message is published.
The number of such handlers is unlimited.
The handler invocation order follows the order of their registration.
Handlers are invoked from a task running on the presentation's event loop.
Handlers are not invoked until the instance is started.
The handler can be used to synchronize the heartbeat message data (health, mode, vendor-specific status code)
with external states. Observe that the handler will be invoked even if the heartbeat is not to be published,
e.g., if the node is anonymous (does not have a node ID). If the handler throws an exception, it will be
suppressed and logged. Note that the handler is to be not a coroutine but a regular function.
This is a good method of scheduling periodic status checks on the node.
"""
self._pre_heartbeat_handlers.append(handler)
def make_message(self) -> Heartbeat:
"""Constructs a new heartbeat message from the object's state."""
return Heartbeat(
uptime=int(self.uptime), # must floor
health=uavcan.node.Health_1_0(self.health),
mode=uavcan.node.Mode_1_0(self.mode),
vendor_specific_status_code=self.vendor_specific_status_code,
)
def close(self) -> None:
"""
Closes the publisher, the subscriber, and stops the internal task.
Subsequent invocations have no effect.
"""
if self._maybe_task:
self._subscriber.close()
self._maybe_task.cancel()
self._maybe_task = None
async def _task_function(self) -> None:
next_heartbeat_at = time.monotonic()
pub: typing.Optional[pyuavcan.presentation.Publisher[Heartbeat]] = None
try:
while self._maybe_task:
try:
pyuavcan.util.broadcast(self._pre_heartbeat_handlers)()
if self._presentation.transport.local_node_id is not None:
if pub is None:
pub = self._presentation.make_publisher_with_fixed_subject_id(Heartbeat)
assert pub is not None
pub.priority = self._priority
if not await pub.publish(self.make_message()):
_logger.error("%s heartbeat send timed out", self)
except (asyncio.CancelledError, pyuavcan.transport.ResourceClosedError) as ex:
_logger.debug("%s publisher task will exit: %s", self, ex)
break
except Exception as ex: # pragma: no cover
_logger.exception("%s publisher task exception: %s", self, ex)
next_heartbeat_at += self._period
await asyncio.sleep(next_heartbeat_at - time.monotonic())
finally:
_logger.debug("%s publisher task is stopping", self)
if pub is not None:
pub.close()
async def _handle_received_heartbeat(self, msg: Heartbeat, metadata: pyuavcan.transport.TransferFrom) -> None:
local_node_id = self._presentation.transport.local_node_id
remote_node_id = metadata.source_node_id
if local_node_id is not None and remote_node_id is not None and local_node_id == remote_node_id:
_logger.warning(
"NODE-ID CONFLICT: There is another node on the network that uses the same node-ID %d. "
"Its latest heartbeat is %s with transfer metadata %s",
remote_node_id,
msg,
metadata,
)
def __repr__(self) -> str:
return pyuavcan.util.repr_attributes(
self,
heartbeat=self.make_message(),
priority=self._priority.name,
period=self._period,
)
| python |
The United States has sent aids to Ukraine after Russia unleashed a ‘special military operation’ in 2022, later US has also sent aid to Israel after Hamas fighters launched a surprise attack on 7 October, 2023. Now US Treasury Secretary Janet Yellen has told Sky News, US can ‘certainly afford’ wars on two fronts.
In an interview with Sky News, the US treasure secretary informed that the economy and public finances were in good shape to ensure backing for US interests abroad.
Yellen also informed that it was too early to understand the ramification of the war between Benjamin Netanyahu's Israel and Hamas fighters from Gaza. This comes even as threat of the war spilling to a regional conflict in the Middles East looms, and oil and gas prices remain volatile.
Talking about the vacant position of a House speaker following McCarthy's ouster, Yellen appealed for Republicans to fill the void left in order for greater financial support to flow.
"We do need to come up with funds, both for Israel and for Ukraine. This is a priority", Yellen told Sky News. "It's really up to the House to find, seat a speaker and to put us in a position where legislation can be passed."
"Exciting news! Mint is now on WhatsApp Channels 🚀 Subscribe today by clicking the link and stay updated with the latest financial insights!" Click here!
She added, "We stand with Israel. America has also made clear to Israel, we're working very closely with the Israelis, that they have a right to defend themselves. But it's important to try to spare innocent civilian lives to the maximum extent possible.
"America can certainly afford to stand with Israel and to support Israel's military needs and we also can and must support Ukraine in its struggle against Russia."
Meanwhile US Secretary of State Anthony Blinken renewed pledges of American support for Israel in its war against Hamas as he returned to the country for the second time in less than a week.
In Jerusalem on Monday to consult with Prime Minister Benjamin Netanyahu and other senior officials, Blinken also briefed them about discussions he had with Arab leaders on the conduct of the war and the need to protect civilians.
According to official statement, “Blinken underlined his firm support for Israel’s right to defend itself from Hamas’ fighters and reaffirmed US determination to provide the Israeli government with what it needs to protect its citizens".
In the current update, Israel's relentless bombardment on Gaza has killed 2,808 people while over a thousand remain missing under rubbles. The World Health Organnization (WHO) has also warned that there are less than 24 hours of food, water, fuel, and electricity left in Gaza, as Palestinians scrabble for survival in the besieged enclave.
Unlock a world of Benefits! From insightful newsletters to real-time stock tracking, breaking news and a personalized newsfeed – it's all here, just a click away! Login Now!
| english |
# Wrong answer 10%
name = input()
YESnames = []
NOnames = []
first = ""
biggestName = 0
habay = ""
while name != "FIM":
name, choice = name.split()
if choice == "YES":
if first == "":
first = name
l = len(name)
if biggestName < l:
biggestName = l
if name not in YESnames:
YESnames.append(name)
else:
NOnames.append(name)
| python |
Saari Ki Saari 2.0 Lyrics in Hindi, sung by Darshan Raval, Asees Kaur. The song is written by Darshan Raval and music created by Music Lijo George. Music Label T-Series.
Music Video of Saari Ki Saari 2.0:
| english |
{
"body": "Some of my colleagues also experience this recently and I thought it would be worth to report.\r\n\r\nTypically users add following in `.bashrc` for Spack\u2019s shell support:\r\n\r\n```\r\nsource $SPACK_ROOT/share/spack/setup-env.sh\r\n```\r\n\r\nBut it seems like this goes into infinite recursion. My colleague told me : \" but logging into daint takes a million years and eventually starts spitting out buffer overflow errors\" :)\r\n\r\n```\r\n*** buffer overflow detected ***: /opt/cray/pe/modules/3.2.10.5/bin/modulecmd terminated\r\n======= Backtrace: =========\r\n/lib64/libc.so.6(+0x7277f)[0x2b5f954cb77f]\r\n/lib64/libc.so.6(__fortify_fail+0x37)[0x2b5f9554e4a7]\r\n/lib64/libc.so.6(+0xf36c0)[0x2b5f9554c6c0]\r\n/lib64/libc.so.6(+0xf5417)[0x2b5f9554e417]\r\n/usr/lib64/libtcl8.6.so(+0x136a2b)[0x2b5f94cd9a2b]\r\n/lib64/libpthread.so.0(+0x80a4)[0x2b5f958090a4]\r\n/lib64/libc.so.6(clone+0x6d)[0x2b5f9553e02d]\r\n======= Memory map: ========\r\n00400000-00422000 r-xp 00000000 08:11 9277275 /opt/cray/pe/modules/3.2.10.5/bin/modulecmd\r\n00621000-00622000 r--p 00021000 08:11 9277275 /opt/cray/pe/modules/3.2.10.5/bin/modulecmd\r\n00622000-00625000 rw-p 00022000 08:11 9277275 /opt/cray/pe/modules/3.2.10.5/bin/modulecmd\r\n00625000-0062f000 rw-p 00000000 00:00 0 \r\n018f1000-08cf0000 rw-p 00000000 00:00 0 \u200b\r\n```\r\n\r\nThe same happened on another Cray machine. I was looking into following code snippet in `lib/spack/spack/platforms/cray.py` which execute `. /etc/profile`: \r\n\r\n```\r\n # CAUTION - $USER is generally needed in the sub-environment.\r\n # There may be other variables needed for general success.\r\n output = env('USER=%s' % os.environ['USER'],\r\n 'HOME=%s' % os.environ['HOME'],\r\n '/bin/bash', '--noprofile', '--norc', '-c',\r\n '. /etc/profile; module list -lt',\r\n output=str, error=str)\r\n self._defmods = _get_modules_in_modulecmd_output(output)\r\n targets = []\r\n```\r\n\r\nI see there `--norc` option but is this full proof? Because documentation says \"**may be**\" :\r\n\r\n```\r\nWhen an interactive shell that is not a login shell is started, Bash reads and\r\nexecutes commands from ~/.bashrc, if that file exists. This may be inhibited\r\nby using the --norc option. \r\n```\r\n",
"user": "pramodskumbhar",
"url": "https://api.github.com/repos/spack/spack/issues/5114",
"updated_at": "2020-07-06 20:55:16",
"created_at": "2017-08-15 20:45:14",
"closed_at": "2020-07-06 20:55:16",
"state": "closed",
"title": "setup-env.sh in .bashrc causing infinite recursion on Cray",
"number": 5114,
"milestone": null,
"labels": [
"cray",
"modules",
"shell-support",
"impact-high"
],
"id": 250433190,
"html_url": "https://github.com/spack/spack/issues/5114",
"assignees": [
"alalazo"
],
"comments": 8
} | json |
Doctors claimed this was the first documented case of reinfection in Karnataka.
A 27-year-old woman in Bengaluru was infected a second time with the coronavirus, a month after her first bout, the Fortis Hospital said on Sunday, The Indian Express reported. Doctors claimed this was the first documented case of reinfection in Karnataka.
According to the team of experts in the Department of Infectious Diseases of the hospital, the woman, who had no history of comorbidities, tested positive for the first time in July after she developed mild symptoms. However, she recovered well and was discharged on July 24 after her test results were negative.
The other possibility, Patil added, was that the antibodies disappeared within a month, leaving the woman susceptible to reinfection. “Reinfection cases mean that the antibodies may not be produced by every individual or if they do develop, they may not last long enough, and therefore, allowing the virus to enter the body and cause the disease again,” he said.
Patil said that in both the cases, the patient has not had a “severe disease” and was only exhibiting mild symptoms. The suspected reinfection case in Bengaluru comes at a time when the city has 41,479 active cases, till Sunday.
The world’s first confirmed case of reinfection was reported by scientists in Hong Kong on August 24, reportedly backed up by genetic sequences of the two episodes of the 33-year-old man’s infections in March and in August. The Indian Council of Medical Research Director General Professor Balram Bhargava at the time had said there was “no need to be alarmed immensely” over the reinfection case. But Balram had admitted that it is not yet known how long the immunity lasts in Covid-19 patients.
On August 26, Telangana Health Minister Eatala Rajender said that two cases of coronavirus reinfection have been reported in the state. The health minister claimed there is no guarantee that one will not get re-affected by the coronavirus after getting affected once and recovering.
Babu added that it is difficult to establish the reinfection. “Only more studies in the future can tell about the extent of reinfections,” he said.
Karnataka has reported 2,83,298 cases, including 6,938 deaths as of Sunday, according to the Union health ministry. India’s coronavirus tally, meanwhile, reached 41,13,811, after a record rise in cases of 90,632 cases in 24 hours. The toll rose by 1,065 to 70,626. India now has 8,62,320 active cases, while 31,80,865 people have recovered, pushing the recovery rate to 77.23%.
Also read:
| english |
Football nut who has religiously followed European club football and international football over the last 15 years. Want to see India qualify for World Cup in lifetime. Part-time cricket fan, who yearns for the good old years of 2001 - 2007 when the Indian Cricket team did well in tests abroad. When Sanjay Bangar and Rahul Dravid opened the batting in England or when Akash Chopra and Viru dovetailed in Australia. Ex blogger (Senior Contributor) with GMS. | english |
{
"abstract": "Scheduled for release in mid-June after the conference, Python 3.7 is\nshaping up to be a feature-packed release! This talk will cover all the\nnew features of note that will be making their debut in Python 3.7.\n\n*Tags:* Community, Django, DevOps\n\nScheduled on `thursday 11:55 </schedule/#thu-11:55-lecture>`__ in room\nlecture\n",
"copyright_text": null,
"description": "Scheduled for release in mid-June after the conference, Python 3.7 is\nshaping up to be a feature-packed release! This talk will cover all the\nnew features of Python 3.7, including the Data Classes and the Context\nVariables for the asynchronous programming with asyncio.\n",
"duration": 1808,
"language": "eng",
"recorded": "2018-10-25",
"related_urls": [
{
"label": "Conference schedule",
"url": "https://de.pycon.org/schedule/"
}
],
"speakers": [
"<NAME>"
],
"tags": [
"Community",
"Django",
"DevOps"
],
"thumbnail_url": "https://i.ytimg.com/vi/hnjX858YhFk/maxresdefault.jpg",
"title": "What's new in Python 3.7?",
"videos": [
{
"type": "youtube",
"url": "https://www.youtube.com/watch?v=hnjX858YhFk"
}
]
}
| json |
version https://git-lfs.github.com/spec/v1
oid sha256:151753666923c0472cb49f1fdf848e1ece9a43cc00e67f53eee5385fe971ed89
size 20684
| json |
A native of Uttarakhand, Ekta had clinched 34 wickets in 19 matches and 11 wickets in seven T20s during the consideration period by ICC.
For the first time, an Indian woman cricketer has made it to both the International Cricket Council’s One Day and Twenty20 Teams of the Year.
Left-arm spinner Ekta Bisht, who had made it to the limelight for her exceptional bowling and wicket-claiming prowess, will be joining Mithali Raj, captain of Indian women’s cricket team in the T20 team and all-rounder Harmanpreet Kaur in the ODI team.
The decision was passed by the ICC panel on Thursday after taking the player’s performances into account from 21 September 2016 to date.
A native of Uttarakhand, Ekta had clinched 34 wickets in 19 matches and 11 wickets in seven T20s during the consideration period and has a ranking of 14th and 12th in ODIs and T20s, respectively.
The 31-year-old ace cricketer had first made her foray into the women’s national cricket team in 2011, with an ODI debut against Australia on 2 July 2011.
Her moment of fame emerged during a match against Pakistan in February when Ekta claimed five wickets in just eight runs.
Her outstanding performance not only lent India an edge over its rivalling neighbour with a seven-wicket win but also smashed their batting line-up of 67 runs. Interestingly, seven of her ten overs were maiden.
Another mind-blowing highlight in Ekta’s career had been one of the league matches during the ICC World Cup 2017, where she had claimed five wickets in 18 runs during her 10-over spell against Pakistan, yet again.
Her destructive bowling also trashed the neighbouring team by a margin of 95 runs and a low score chase of 170 runs.
One can also take into account Ekta’s stupendous performance in the match between India and Sri Lanka during the ICC Women T20 World Cup in in 2012. India went on to win the match, thanks to a game-changing hat-trick by Ekta in the last over that restricted the opponents to 100 runs for eight wickets.
Like this story? Or have something to share?
Connect with us on Facebook and Twitter.
NEW: Click here to get positive news on WhatsApp!
We bring stories straight from the heart of India, to inspire millions and create a wave of impact. Our positive movement is growing bigger everyday, and we would love for you to join it.
Please contribute whatever you can, every little penny helps our team in bringing you more stories that support dreams and spread hope.
| english |
Secured 1st position in engineering Olympiad held at our college in 2013 when I was fresher.That achievement gives boost to my confidence for challenges & competition related to academics.I also became a good team player in next 3 years of my college.
Suman is based out of Bhubaneswar & has studied ME-Mechanical Engineering, BE BTech-Bachelor of Engineering or Technology from Year 2017-2018 in Other, Other.
Suman Kumar Singh is Skilled in Autocad, CATIA, Communication Skills and other talents.
| english |
{
"word": "Daunorubicin",
"definitions": [
"A synthetic antibiotic that interferes with DNA synthesis and is used in the treatment of acute leukaemia and other cancers."
],
"parts-of-speech": "Noun"
} | json |
Today marks the 63rd glorious birthday of iconic star Sanjay Dutt who has been ruling the hearts of Indian audiences and his fans in an illustrious career spanning more than four decades. Let us look at his net worth, luxurious cars and lavish houses owned by the 'PK' star.
Sinead O'Connor, the globally prominent and celebrated Irish singer best known for her decades-long musical career, has passed away at 56. Here's everything you need to know about the late enigmatic songstress whose death has left her fans really sad and in a state of mourning.
Discover the captivating story of a US woman who received a postcard from Paris, France, 54 years after it was mailed, unraveling a perplexing mystery of its long journey.
Moon missions have captivated the world for decades, symbolising mankind's boundless curiosity and our relentless pursuit of exploration.
"France has always maintained its cooperation with India, even during the time when sanctions were imposed on the latter following the 1998 nuclear tests. That's why we have had so many decades of continuity, reliability and trustworthiness with this country," says Dr Swasti Rao, Associate Fellow at the Manohar Parrikar IDSA.
Santanu Sengupta, Goldman Sachs Research's India economist, said India's dependency ratio is projected to be one of the lowest among regional economies in the next two decades. This favourable ratio between the working-age population and dependents creates a valuable opportunity for India to foster the growth of its manufacturing capabilities, expand its services sector, and make significant investments in infrastructure.
Following intense rainfall, a directive has been issued to close all schools on June 19, 2023. This closure applies not only to schools in Chennai but also to those in Kancheepuram, Tiruvallur and Chengalpet.
The Indian Navy is desperately looking to replace its ageing submarine fleet. Currently, it has 16 conventional submarines of which 11 are of over two decades old.
Manipur Violece: Experts and local residents in the northeast region are deeply concerned about the recent outbreak of ethnic violence, which they view as a complex and explosive mix of disputes over land rights, cultural dominance, and drug trafficking.
Over the decades, as India evolved into the nation it is today, Parliament House has been witness to many a moment in history -- from cerebral debates to high-decibel, raucous discussions and the passing of legislations -- some landmark and others controversial.
Hrithik Roshan, for decades, has inspired actors who look up to him for his inimitable style, superlative acting prowess and benchmark dance performances. Now, he has another fanboy added to his list, thanks to cricketer Shubman Gill. | english |
Calgary, Alberta--(Newsfile Corp. - September 21, 2023) - Rumbu Holdings Ltd. (TSXV: RMB.P) ("Rumbu" or the "Company"), a capital pool company listed on the TSX Venture Exchange ("TSXV"), is pleased to announce that it has scheduled an Annual and Special Meeting of Shareholders to approve, amongst other matters, the Company's Qualifying Transaction (the "Transaction"). The Transaction is the proposed business combination of Rumbu and the Schrader Funeral Home Business located in Smithers, British Columbia (the "Funeral Business") which is owned by Daryl and Jamie Lockyer (the "Lockyers"), with the ongoing public company (the "Resulting Issuer") acquiring the Funeral Business. The Transaction will constitute as a Qualifying Transaction ("QT") pursuant to the rules of the TSXV and is subject to the final approval of the TSXV. If the Transaction is approved by the Shareholders of the Company and it is completed, the proposed Transaction will constitute the Company's QT as set forth in Policy 2.4 of the policies of the TSXV ("Exchange Policy 2.4"). Concurrent with the approval of the QT by its Shareholders, Rumbu plans to complete a non-brokered private placement of up to 1,000,000 Common Shares of Rumbu at a price of $0.20 per share with minimum subscription of $1,800 consisting of a minimum of nine (9) Public Shareholders, each holding a board lot representing 1,000 Common Shares.
Rumbu is a reporting issuer in good standing in Alberta and British Columbia and its Common Shares (the "Rumbu Shares") are listed for trading on the TSX Venture Exchange (the "TSXV"). Currently, Rumbu currently has 6,500,000 Common Shares issued and outstanding, stock options outstanding to acquire 650,000 Common Shares at a price of $0.10 per share until December 10, 2032 (the "Stock Options") and Agent's Options outstanding to acquire 400,000 Common Shares at a price of $0.10 per share until December 10, 2027 (the "Agent's Options"). After completion of the QT, the Resulting Issuer will have 13,500,000 Common Shares issued and outstanding, if the Private Placement is fully subscribed.
The Lockyers jointly own a Funeral Home Business held by Schrader Funeral Home and Cremation Services Ltd. (the "Funeral Business") with a primary funeral home located in Smithers, British Columbia. The Funeral Business is a funeral business that provides all funeral and cremation related services to the public in its market area. The Lockyers believe that Rumbu will allow and provide a vehicle to them to expand their Funeral Business in Western Canada and particularly in Alberta, British Columbia and Saskatchewan. They also believe that Rumbu will enable them to access faster growth opportunities in this market place today where succession planning is booming. The Lockyers believe that based upon proven results and experience by them in the past that the partnership with Rumbu will fuel growth in the funeral home business and unlock additional potential value.
Concurrent with the completion of the Qualifying Transaction, Rumbu will complete a non-brokered private placement (the "Private Placement") of up to 1,000,000 Common Shares of Rumbu at a price of $0.20 per share. The Private Placement is comprised of minimum proceeds of $1,800 consisting of a minimum of nine (9) Public Shareholders, each holding a board lot, representing 1,000 Common Shares. The Private Placement is not a Related Party Transaction as none of the Subscribers to the Private Placement will be Related Parties. All securities issued in the Private Placement will be subject to a statutory hold period of four (4) months from the date of issue. The proceeds from the Private Placement will be utilized for general working capital purposes and there will be no fees or commissions paid in connection with the Private Placement.
Pursuant to the terms of the Definitive Agreement between Rumbu and the Lockyers, Rumbu will acquire the Funeral Business in exchange for the issuance by Rumbu of 6,000,000 Common Shares of Rumbu (the "QT Shares") at a deemed issue price of $0.20 per Rumbu Share to the Lockyers for a total purchase price of $1,200,000 CDN. The outstanding management and director options of Rumbu and the Agent's Options, as the case may be, shall remain outstanding and shall be governed by their applicable Option Agreements. The QT Shares shall be distributed to the Lockyers pursuant to their instructions on the basis of 3,300,000 Common Shares to Daryl Lockyer and 2,700,000 Common Shares to Jamie D. Lockyer. At this point, Mr. Lockyer will directly own 3,800,000 Common Shares of the Resulting Issuer, as he was previously issued 500,000 Common Shares upon the formation of Rumbu. The Transaction may be considered a "Related Party Transaction" pursuant to Multilateral Instrument 61-101 - Protection of Minority Security Holders in Special Transactions ("MI-61-101") and Rumbu was required to hold a Special Meeting of the Shareholders of Rumbu (the "Shareholders") and obtain a majority of the minority shareholder approval, as Daryl Lockyer is a Director of Rumbu and the Transaction constitutes a Non-Arms Length Transaction pursuant to the policies of the TSXV. Mr. Lockyer is a Director and Shareholder of Rumbu holding 500,000 Common Shares and 125,000 Options of Rumbu. Therefore, the Transaction will be subject to shareholder approval and Rumbu specifically confirms that it will be seeking shareholder approval under the policies of the TSXV.
The closing of the Transaction will be subject to several conditions, including, but not limited to the following:
- Approval by the Majority of the Minority Shareholders of Rumbu of the QT;
- The receipt of all regulatory, corporate and third party approvals, including the approval of the TSXV and compliance with all applicable regulatory requirements and conditions necessary to complete the Transaction;
- The completion of the Private Placement;
- The maintenance of Rumbu's listing on the TSXV;
- The confirmation of the representations and warranties of each party to the Definitive Agreement as set out in such Agreement;
- The delivery of standard completion documentation including, but not limited to, legal opinions, officers' certificates and certificates of good standing or compliance of the parties and other mutual conditions precedent customary for a transaction such as the Transaction.
On the closing of the Transaction, it is anticipated that the Board of Directors of the Resulting Issuer will consist of five Directors and Shelina Hirji will resign as a Director and be replaced by Jamie D. Lockyer. The following table sets out the names, relationships to the Company and summarizes the backgrounds of all persons who, at this time, are expected to be insiders of the Company upon closing of the QT.
|Proposed President,
|Daryl Lockyer has been involved in the funeral home business for more than 30 years as a mortuary, funeral home manager, executive and director. For the past 20 years, Mr. Lockyer has been the President of The Caring Group Corp., a funeral home business headquartered in Lethbridge, Alberta with funeral homes in Alberta and British Columbia. Mr. Lockyer also provides consulting services to various companies in the funeral home business through Lockyer Management Corp.
|Since 2008, Ms. Lockyer has been an Employee of The Caring Group Corp. in Lethbridge, Alberta, a funeral home business. Ms. Lockyer attended Mount Royal University, receiving her Funeral Director and Embalmer Certificate in 2008 and has in her career been involved in all facets of funeral home operations and management.
|Ms. Hirji is designated accountant with over 38 years of experience ranging from infrastructure, construction, mining and oil and gas exploration and production. She has held senior accounting and management roles in both private and public companies and the Alberta Securities Commission. She has an Advanced Accounting Certificate and Diploma from Southern Alberta Institute of Technology and is a registered CPA.
|Since 1973, Mr. Drysdale has been a lawyer, was a partner of two (2) major law firms for 35 years and was the founder of Drysdale Law in 2010, a specialized corporate and securities law boutique with a particular focus on corporate and securities law practice.
|Mr. Wylie is a Professional Landman and was previously a senior manager with Paramount Resources Ltd. from 1991 to 2020 and now manages ArthurBo Energy Inc., a private company that provides land management and consulting services to the energy industry.
|Mr. Sullivan is a Financial Advisor and was previously a senior officer and Chief Financial Officer of a number of publicly listed companies and held contract and executive positions with a number of private companies involved in solar panel fabrication, environmental services, oilsands and frac sands for the past twenty (20) years.
In connection with the Transaction and pursuant to the requirements of the TSXV, Rumbu has completed and mailed on this date to the Shareholders an Information Circular for the holding of an Annual and Special Meeting to be held on Monday, October 16, 2023 at 10:00 a.m. and which Circular provides for the consideration and voting upon conventional annual meeting resolutions, the new Option Plan and the Proposed Transaction involving the purchase of all of the issued and outstanding securities of the Funeral Business from the Lockyers, which will constitute the QT of Rumbu. The Resulting Issuer intends to list as a Tier 2 Industrial Issuer in the Funeral Services sector, subject to meeting the requirements of the TSXV.
Sponsorship of a QT of a capital pool company is required by the TSXV and the TSXV has granted Rumbu a waiver from sponsorship in connection with the QT.
In accordance with the TSXV policies, Rumbu's Common Shares were halted from trading on May 1, 2023 and will remain so until the documentation required by the TSXV for the QT can be provided to the TSXV. Rumbu's Common Shares will remain halted until completion of the QT.
The TSXV has in no way passed upon the merits of the proposed transaction and has neither approved nor disapproved the contents of this Press Release. Neither the TSXV nor its Regulation Services Provider (as that term is defined in the policies of the TSXV) accepts responsibility for the adequacy or accuracy of this release.
For further information concerning this press release, please contact:
Rumbu Holdings Ltd.
Completion of the Transaction is subject to a number of conditions, including but not limited to, Exchange acceptance and if applicable pursuant to Exchange Requirements, majority of the minority shareholder approval. Where applicable, the Transaction cannot close until the required shareholder approval is obtained. There can be no assurance that the Transaction will be completed as proposed or at all. Investors are cautioned that, except as disclosed in the management information circular to be prepared in connection with the Transaction, any information release or received with respect to the Transaction may not be accurate or complete and should not be relied upon. Trading in the securities of a capital pool company should be considered highly speculative.
Except for statements of historical fact, this news release contains certain "forward-looking information" within the meaning of applicable securities law. Forward-looking information is frequently characterized by words such as "plan", "expect", "project", "intend", "believe", "anticipate", "estimate" and other similar words, or statements that certain events or conditions "may" or "will" occur. Forward-looking statements are based on the opinions and estimates of management at the date the statements are made and are subject to a variety of risks and uncertainties and other factors that could cause actual events or results to differ materially from those anticipated in the forward-looking statements. The Company undertakes no obligation to update forward-looking information if circumstances or management's estimates or opinions should change except as required by law. The reader is cautioned not to place undue reliance on forward- looking statements. More detailed information about potential factors that could affect financial results is included in the documents filed from time to time with the Canadian securities regulatory authorities by the Company.
The Securities of Rumbu being offered have not been, nor will be, registered under the United States Securities Act of 1933, as amended, and may not be offered or sold within the United States or to, or for the account or benefit of, U.S. persons absent, U.S. registration or an applicable exemption from U.S. registration requirements. This release does not constitute an offer for sale of securities in the United States.
| english |
<gh_stars>1000+
// Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
//
// 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 internal_test
import (
"context"
"fmt"
"github.com/gardener/gardener/pkg/client/kubernetes/clientmap"
"github.com/gardener/gardener/pkg/client/kubernetes/clientmap/internal"
"github.com/gardener/gardener/pkg/client/kubernetes/clientmap/keys"
mockclientmap "github.com/gardener/gardener/pkg/client/kubernetes/clientmap/mock"
"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("DelegatingClientMap", func() {
var (
ctx context.Context
cm clientmap.ClientMap
key clientmap.ClientSetKey
ctrl *gomock.Controller
gardenClientMap, seedClientMap, shootClientMap, plantClientMap *mockclientmap.MockClientMap
)
BeforeEach(func() {
ctx = context.TODO()
ctrl = gomock.NewController(GinkgoT())
gardenClientMap = mockclientmap.NewMockClientMap(ctrl)
seedClientMap = mockclientmap.NewMockClientMap(ctrl)
shootClientMap = mockclientmap.NewMockClientMap(ctrl)
plantClientMap = mockclientmap.NewMockClientMap(ctrl)
cm = internal.NewDelegatingClientMap(gardenClientMap, seedClientMap, shootClientMap, plantClientMap)
})
AfterEach(func() {
ctrl.Finish()
})
Context("NewDelegatingClientMap", func() {
It("should panic, if gardenClientMap is nil", func() {
Expect(func() {
_ = internal.NewDelegatingClientMap(nil, nil, nil, nil)
}).To(Panic())
})
})
Context("GardenClientSetKey", func() {
BeforeEach(func() {
key = keys.ForGarden()
})
It("Should delegate GetClient to GardenClientMap", func() {
gardenClientMap.EXPECT().GetClient(ctx, key).Return(nil, nil)
_, err := cm.GetClient(ctx, key)
Expect(err).NotTo(HaveOccurred())
})
It("Should delegate InvalidateClient to GardenClientMap", func() {
gardenClientMap.EXPECT().InvalidateClient(key)
Expect(cm.InvalidateClient(key)).To(Succeed())
})
})
Context("SeedClientSetKey", func() {
BeforeEach(func() {
key = keys.ForSeedWithName("eu-1")
})
It("Should delegate GetClient to SeedClientMap", func() {
seedClientMap.EXPECT().GetClient(ctx, key).Return(nil, nil)
_, err := cm.GetClient(ctx, key)
Expect(err).NotTo(HaveOccurred())
})
It("Should error on GetClient if SeedClientMap is nil", func() {
cm = internal.NewDelegatingClientMap(gardenClientMap, nil, shootClientMap, plantClientMap)
_, err := cm.GetClient(ctx, key)
Expect(err).To(MatchError(ContainSubstring("unsupported ClientSetKey type")))
})
It("Should delegate InvalidateClient to SeedClientMap", func() {
seedClientMap.EXPECT().InvalidateClient(key)
Expect(cm.InvalidateClient(key)).To(Succeed())
})
It("Should error on InvalidateClient if SeedClientMap is nil", func() {
cm = internal.NewDelegatingClientMap(gardenClientMap, nil, shootClientMap, plantClientMap)
err := cm.InvalidateClient(key)
Expect(err).To(MatchError(ContainSubstring("unsupported ClientSetKey type")))
})
})
Context("ShootClientSetKey", func() {
BeforeEach(func() {
key = keys.ForShootWithNamespacedName("core", "sunflower")
})
It("Should delegate GetClient to ShootClientMap", func() {
shootClientMap.EXPECT().GetClient(ctx, key).Return(nil, nil)
_, err := cm.GetClient(ctx, key)
Expect(err).NotTo(HaveOccurred())
})
It("Should error on GetClient if ShootClientMap is nil", func() {
cm = internal.NewDelegatingClientMap(gardenClientMap, seedClientMap, nil, plantClientMap)
_, err := cm.GetClient(ctx, key)
Expect(err).To(MatchError(ContainSubstring("unsupported ClientSetKey type")))
})
It("Should delegate InvalidateClient to ShootClientMap", func() {
shootClientMap.EXPECT().InvalidateClient(key)
Expect(cm.InvalidateClient(key)).To(Succeed())
})
It("Should error on InvalidateClient if ShootClientMap is nil", func() {
cm = internal.NewDelegatingClientMap(gardenClientMap, seedClientMap, nil, plantClientMap)
err := cm.InvalidateClient(key)
Expect(err).To(MatchError(ContainSubstring("unsupported ClientSetKey type")))
})
})
Context("PlantClientSetKey", func() {
BeforeEach(func() {
key = keys.ForPlantWithNamespacedName("core", "lotus")
})
It("Should delegate GetClient to PlantClientMap", func() {
plantClientMap.EXPECT().GetClient(ctx, key).Return(nil, nil)
_, err := cm.GetClient(ctx, key)
Expect(err).NotTo(HaveOccurred())
})
It("Should error on GetClient if PlantClientMap is nil", func() {
cm = internal.NewDelegatingClientMap(gardenClientMap, seedClientMap, shootClientMap, nil)
_, err := cm.GetClient(ctx, key)
Expect(err).To(MatchError(ContainSubstring("unsupported ClientSetKey type")))
})
It("Should delegate InvalidateClient to PlantClientMap", func() {
plantClientMap.EXPECT().InvalidateClient(key)
Expect(cm.InvalidateClient(key)).To(Succeed())
})
It("Should error on InvalidateClient if PlantClientMap is nil", func() {
cm = internal.NewDelegatingClientMap(gardenClientMap, seedClientMap, shootClientMap, nil)
err := cm.InvalidateClient(key)
Expect(err).To(MatchError(ContainSubstring("unsupported ClientSetKey type")))
})
})
Describe("#GetClient", func() {
It("should fail for unknown ClientSetKey type", func() {
key = fakeKey{}
cs, err := cm.GetClient(ctx, key)
Expect(cs).To(BeNil())
Expect(err).To(MatchError(ContainSubstring("unknown ClientSetKey type")))
})
})
Describe("#InvalidateClient", func() {
It("should fail for unknown ClientSetKey type", func() {
key = fakeKey{}
err := cm.InvalidateClient(key)
Expect(err).To(MatchError(ContainSubstring("unknown ClientSetKey type")))
})
})
Describe("#Start", func() {
It("should delegate start to all ClientMaps", func() {
gardenClientMap.EXPECT().Start(ctx.Done())
seedClientMap.EXPECT().Start(ctx.Done())
shootClientMap.EXPECT().Start(ctx.Done())
plantClientMap.EXPECT().Start(ctx.Done())
Expect(cm.Start(ctx.Done())).To(Succeed())
})
It("should fail, as starting GardenClients fails", func() {
fakeErr := fmt.Errorf("fake")
gardenClientMap.EXPECT().Start(ctx.Done()).Return(fakeErr)
Expect(cm.Start(ctx.Done())).To(MatchError("failed to start garden ClientMap: fake"))
})
It("should fail, as starting SeedClients fails", func() {
fakeErr := fmt.Errorf("fake")
gardenClientMap.EXPECT().Start(ctx.Done())
seedClientMap.EXPECT().Start(ctx.Done()).Return(fakeErr)
Expect(cm.Start(ctx.Done())).To(MatchError("failed to start seed ClientMap: fake"))
})
It("should fail, as starting ShootClients fails", func() {
fakeErr := fmt.Errorf("fake")
gardenClientMap.EXPECT().Start(ctx.Done())
seedClientMap.EXPECT().Start(ctx.Done())
shootClientMap.EXPECT().Start(ctx.Done()).Return(fakeErr)
Expect(cm.Start(ctx.Done())).To(MatchError("failed to start shoot ClientMap: fake"))
})
It("should fail, as starting PlantClients fails", func() {
fakeErr := fmt.Errorf("fake")
gardenClientMap.EXPECT().Start(ctx.Done())
seedClientMap.EXPECT().Start(ctx.Done())
shootClientMap.EXPECT().Start(ctx.Done())
plantClientMap.EXPECT().Start(ctx.Done()).Return(fakeErr)
Expect(cm.Start(ctx.Done())).To(MatchError("failed to start plant ClientMap: fake"))
})
})
})
type fakeKey struct{}
func (f fakeKey) Key() string {
return "fake"
}
| go |
<reponame>kalabukdima/idcontain.rs<gh_stars>1-10
use std::cmp::Ordering;
use std::fmt::{Debug, Formatter, Result as FmtResult};
use std::hash::{Hash, Hasher};
use std::marker::PhantomData;
use std::u32;
/// The maximum size of id containers.
pub const MAXIMUM_CAPACITY: usize = u32::MAX as usize - 1;
/// The type used internally to store a tag.
///
/// This type is almost internal and you should only care about it if calling
/// `with_capacity_and_seed_tag`.
pub type IdTag = u32;
/// The type used internally to store a index.
///
/// This type is almost internal and you should only care about it if building data structures on
/// top of the existing ones.
pub type IdIndex = u32;
/// The `Id` of an element of type `T` as returned by `IdSlab` insertions.
///
/// `Id`-s are opaque, but `Copy`, comparable and hashable. Think of an `Id` as a safe `*const T`
/// which you can dereference if you have a reference to the originating `IdSlab`.
///
/// Implementation
/// ---
/// Internally an `Id` is implemented as an `(index, tag)` pair. The `index` points to a slot in
/// the `IdSlab`, while the `tag` allows disambiguating between values when a slot gets reused (a
/// matching tag is stored in the slot and is incremented every time a value is removed from that
/// slot).
pub struct Id<T> {
#[doc(hidden)]
pub index: IdIndex,
#[doc(hidden)]
pub tag: IdTag,
#[doc(hidden)]
pub _data: PhantomData<T>,
}
impl<T> Id<T> {
/// Returns an invalid `Id` (which will never be returned by a container).
///
/// Panics
/// ---
/// None.
///
/// Example
/// ---
/// ```
/// # use idcontain::{IdSlab, Id};
/// let id_slab: IdSlab<&'static str> = IdSlab::new();
/// assert!(!id_slab.contains(Id::invalid()));
/// ```
pub fn invalid() -> Self {
Id {
index: u32::MAX,
tag: u32::MAX,
_data: PhantomData,
}
}
/// Casts the `Id` to an `Id` of a different type.
///
/// This is handy when using `IdSlab` to generate proxy `Id`-s for an `IdMap`.
///
/// Panics
/// ---
/// None.
///
/// Example
/// ---
/// ```
/// # use idcontain::{IdSlab, Id};
/// let mut id_slab: IdSlab<()> = IdSlab::new();
/// let id: Id<u32> = id_slab.insert(()).cast();
/// ```
pub fn cast<U>(self) -> Id<U> {
Id {
index: self.index,
tag: self.tag,
_data: PhantomData,
}
}
}
impl<T> Debug for Id<T> {
fn fmt(&self, formatter: &mut Formatter) -> FmtResult {
write!(formatter, "{}.{:x}", self.index, self.tag)
}
}
impl<T> Hash for Id<T> {
fn hash<H: Hasher>(&self, state: &mut H) {
(self.index, self.tag).hash(state)
}
}
impl<T> PartialOrd for Id<T> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
}
}
impl<T> PartialEq for Id<T> {
fn eq(&self, other: &Self) -> bool {
self.tag == other.tag && self.index == other.index
}
}
impl<T> Ord for Id<T> {
fn cmp(&self, other: &Self) -> Ordering {
(self.tag, self.index).cmp(&(other.tag, other.index))
}
}
#[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))]
impl<T> Clone for Id<T> {
fn clone(&self) -> Self {
Id {
index: self.index,
tag: self.tag,
_data: PhantomData,
}
}
}
impl<T> Copy for Id<T> {}
impl<T> Eq for Id<T> {}
impl<T> Default for Id<T> {
fn default() -> Self {
Self::invalid()
}
}
| rust |
<filename>data/376/37672.json<gh_stars>0
{"date":"2012-07-05","platform":"TV","images":{"small":"https://lain.bgm.tv/pic/cover/s/30/2e/37672_hPOTZ.jpg","grid":"https://lain.bgm.tv/pic/cover/g/30/2e/37672_hPOTZ.jpg","large":"https://lain.bgm.tv/pic/cover/l/30/2e/37672_hPOTZ.jpg","medium":"https://lain.bgm.tv/pic/cover/m/30/2e/37672_hPOTZ.jpg","common":"https://lain.bgm.tv/pic/cover/c/30/2e/37672_hPOTZ.jpg"},"summary":"眼神有些凶恶但是纯情的花店打工青年·叶月亮介。他所暗恋的是花店店长的岛尾六花。一见钟情之后就一直光顾六花的花店,并且借着打工募集的机会得到了在店里打工的机会。虽然达成了心愿,但是年长8岁的六花似乎已经放弃了恋爱。明明就在眼前但是什么都做不到的亮介十分的无奈。有一天,被六花叫到花店二楼家里的亮介,在屋子里遇见了上半身半裸的男性。这个没有预期到的事态,让亮介半怒半呆,然后知道了意外的事实。这个男人不是六花的同居对象,而是她已经过世的丈夫的幽灵·岛尾笃。这个六花没法看见的幽灵一直妨碍着亮介的恋爱,就在没有进展两人僵持的情况下,岛尾提出了意想不到的提案。","name":"夏雪ランデブー","name_cn":"夏雪密会","tags":[{"name":"2012年7月","count":307},{"name":"中村悠一","count":257},{"name":"福山润","count":229},{"name":"夏雪密会","count":195},{"name":"noitaminA","count":158},{"name":"人鬼NTR","count":150},{"name":"TV","count":138},{"name":"恋爱","count":128},{"name":"2012","count":84},{"name":"治愈","count":70},{"name":"大原さやか","count":69},{"name":"动画工房","count":64},{"name":"寡妇情结","count":57},{"name":"NTR","count":45},{"name":"姐弟恋","count":42},{"name":"漫画改","count":40},{"name":"動画工房","count":27},{"name":"不喜欢女主角发型","count":25},{"name":"松尾衡","count":24},{"name":"漫改","count":17},{"name":"2012年","count":11},{"name":"动画","count":8},{"name":"福山潤","count":7},{"name":"虐","count":6},{"name":"Aimer","count":5},{"name":"大原沙耶香","count":5},{"name":"爱情","count":5},{"name":"TVA","count":4},{"name":"アニメ","count":4},{"name":"季番","count":4}],"infobox":[{"key":"中文名","value":"夏雪密会"},{"key":"话数","value":"11"},{"key":"放送开始","value":"2012年7月5日"},{"key":"放送星期","value":"星期四"},{"key":"官方网站","value":"http://natsuyuki.tv/"},{"key":"播放电视台","value":"フジテレビ noitaminA"},{"key":"播放结束","value":"2012年9月13日"},{"key":"原作","value":"河内遙"},{"key":"导演","value":"松尾衡"},{"key":"人物设定","value":"谷口淳一郎"}],"rating":{"rank":2245,"total":1390,"count":{"1":4,"2":2,"3":2,"4":9,"5":72,"6":285,"7":563,"8":357,"9":66,"10":30},"score":7.1},"total_episodes":11,"collection":{"on_hold":224,"dropped":200,"wish":583,"collect":1608,"doing":260},"id":37672,"eps":11,"volumes":0,"locked":false,"nsfw":false,"type":2} | json |
The smartphone is tipped to come with a rear-mounted fingerprint scanner.
2017 can be said the year of bezel-less smartphones. From Samsung's flagship devices Galaxy S8 and Galaxy S8 to newly launched Nubia Z17, it has become a trend among smartphone manufacturers to ditch the bezels. The reason behind is this trend is that the bezel-less display is making way for larger screens and it looks aesthetically appealing as well.
Now, it looks like Google has decided to follow the same suit. A new image claimed to be of the Google Pixel 2 has revealed its almost edge-to-edge display. Due to the small size of the image, the details of the device cannot be seen clearly. However, we must agree that it looks stunning. In terms of design, the alleged Google Pixel 2 looks quite similar to the Pixel and Pixel XL.
According to the render published on Android Headlines, it has the same two-toned look on the rear part that features a matte finish for metal and Black glass for the top portion. You can also see that the corners of the smartphone are slightly rounded for providing a better hand grip.
Moving on to another important aspect, the rear part of the device holds a dual camera setup. The horizontally arranged camera sensors are placed on the top left corner and are also accompanied by a LED flashlight. There is a circular design which seems like the fingerprint scanner. However, as mentioned earlier, the image not clear enough to say that with confidence.
Well, it goes without saying, this is just a leak so don't jump to conclusions just yet. It is also worth pointing out that the Pixel 2 design is exactly the same as that of the original Pixel phone sans the dual camera setup. So it quite unlikely of Google to not change the design in its new smartphone.
In any case, we expect to see more leaks pertaining to the Google Pixel 2 in the upcoming days. | english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.