text
stringlengths 1
1.04M
| language
stringclasses 25
values |
|---|---|
from pdlpy.distribution import Distribution
from pdlpy.math import ceil, log2
class Geometric(Distribution):
"""
Discrete probability distributions of the random number X of Bernoulli trials needed to get a single success
"""
def __init__(self, p: float):
"""
Parameters
p: the probability of the positive outcome of the experiment
"""
self._p = p
self._mean = 1 / p
self._median = ceil(-1 / log2(1 - p)) if p != 1 else 1
self._mode = 1
self._var = (1 - p) / (p ** 2)
def __str__(self):
return (
"Geometric("
f"p={self._p:.2f}, "
f"mean={self._mean:.2f}, "
f"median={self._median:.2f}, "
f"mode={self._mode:.2f}, "
f"var={self._var:.2f}"
")"
)
def pmf(self, x: int) -> float:
"""
Probability Mass Function
Parameters
x: a value of the random variable X
Returns
the probability that X will take a value exactly equal to x
"""
return (1 - self._p) ** x * self._p
def cdf(self, x: int) -> float:
"""
Cumulative Distribution Function
Parameters
x: a value of the random variable X
Returns
the probability that X will take a value less than or equal to x
"""
if x == 0:
return self.pmf(0)
else:
return self.pmf(x) + self.cdf(x - 1)
|
python
|
.scrollPage-menu ul h2 {
display: none;
}
@media screen and (max-width: 1000px) {
.scrollPage-menu ul h2 {
display: block !important;
}
.scrollPage-content>div {
padding: 20px !important;
}
}
#news a {
color: white !important;
}
.btn-group .btn,
#library .btn {
background-color: #fff !important;
color: #333 !important;
}
|
css
|
Goddess of Victory NIKKE tier list ranks every character into different tiers based on utility and battle prowess. This gacha title allows you to create a fighting squad of five characters called Nikke. You control them interchangeably one at a time and shoot enemies. Each has its unique weapon type: Assault Rifle, Submachine Gun (SMG), Mini Gun, Rocket Launcher, Shotgun, and Shotgun.
Each character performs unique roles: Attacker, Support, and Defender. Since the game features a roster of over 80 characters, selecting the best out of them might be daunting. So, to ease this process, this article provides a Goddess of Victory NIKKE tier list ranking all Nikkes from the strongest to weakest.
All Goddess of Victory NIKKE characters ranked from best to worst (September 8, 2023)
This article divides all playable Goddess of Victory NIKKE characters into SS, S, A, B, and C-tier. Like other gacha titles’ tier lists, the C-tier characters are the worst performers, and SS are the best ones in the current meta. Below is the tier list of all NIKKEs to help you choose the best ones to create a winning team.
These are the best-performing female soldiers in the current meta. They outperform in every game mode and make your journey easy as hell. Invest your resources in the following SS-tier Nikkes to always win all battles.
Although they are not at par with SS-tier Nikkes, they can easily win all game modes with little to no difficulty. Upgrade the following S-tier Nikkes in your roster to win more battles.
The A-tier Nikkes are strong at their individual role. However, they can only dish out minor damage, provide support, or defend your roster. These are great in mid-game stages, and you must invest most of your resources to strengthen them.
These are average fighters of this mobile gacha title. You must upgrade them at every opportunity to win battles with them. However, you should avoid these Nikkes once you reach the mid-game stages. You will find the B-tier characters in the below list:
It’s noteworthy that the NIKKE tier list changes with every update. The developers at Shift Up regularly update Goddess of Victory NIKKE, introducing new characters. In addition, Shift Up adjusts some Nikkes by buffing or nerfing some existing ones.
|
english
|
Tejasswi Prakash and Karan Kundrra are surely talking about future together and this statement by the handsome hunk proves it.
Karan Kundrra and Tejasswi Prakash are all about love. The stars fell in love with each other in Bigg Boss 15 house and ever since then they have been together. Outside the controversial house, they are painting the town red with their mushiness. In every interview, they reveal some sweet things about each other. Karan Kundrra recently stated that he will be a good father and revealed how many kids Tejasswi Prakash wants. We bet, you'll be left shocked to know the number.
In an interview with Siddharth Kanan, Karan Kundrra revealed that Tejasswi wants 25 kids. WHAT! He mentioned that he wants a baby girl when he gets married. Talking about why he thinks he will be a better father than husband, Karan Kundrra stated, "I was very young when my sister had kids. I was only 12. They mostly lived with us. So, I realised I am very good with kids." Well, with this, one thing is clear that Karan and Teja do talk about their future together. We can't wait to get some news about their wedding soon.
Meanwhile, it was recently that rumours of their roka had hit the headlines. It so happened that Karan Kundrra and his family visited Tejasswi Prakash and her family to their home. As Karan stepped out, he had a tikka on his forehead. Many assumed that it was because Tejasswi and Karan got rokafied.
On the work front, Tejasswi Prakash is busy with Naagin 6. She is aceing the role of a Shesh Naagin. Karan Kundrra on the other hand is a jailor in Kangana Ranaut's show Lock Upp. He recently even featured in a music video titled Kamle.
Stay tuned to BollywoodLife for the latest scoops and updates from Bollywood, Hollywood, South, TV and Web-Series.
Click to join us on Facebook, Twitter, Youtube and Instagram.
Also follow us on Facebook Messenger for latest updates.
|
english
|
{
"author_id": "<NAME>",
"author_url": "https://edabit.com/user/mNMQvcxKSSvqqMYCH",
"challenge_id": "dHAk8zPwacSev6Hmv",
"code": "function nomNom(arr) {\n \n}",
"difficulty": "Hard",
"instructions": "<p><span>A number can </span><strong><span>eat</span></strong><span> the number to the right of it if it's </span><strong><span>smaller</span></strong><span> than itself. After eating that number, it becomes the sum of itself and that number. Your job is to create a function that returns the final array after the leftmost element has finished \"eating\".</span></p><h3><span>Examples</span></h3><pre><code>[5, 3, 7] \u279e [8, 7] \u279e [15]\n\n// 5 eats 3 to become 8\n// 8 eats 7 to become 15</code></pre><pre><code>[5, 3, 9] \u279e [8, 9]\n\n// 5 eats 3 to become 8\n// 8 cannot eat 9, since 8 < 9</code></pre><pre><code>nomNom([1, 2, 3]) \u279e [1, 2, 3]\n\nnomNom([2, 1, 3]) \u279e [3, 3]\n\nnomNom([8, 5, 9]) \u279e [22]</code></pre><h3><span>Notes</span></h3><p><span>Test input contains only an array of numbers.</span></p>",
"source_url": "https://edabit.com/challenge/dHAk8zPwacSev6Hmv",
"tags": [
"arrays",
"logic",
"math"
],
"tests": "Test.assertSimilar(nomNom([1, 2, 3]), [1, 2, 3], \"1 cannot eat 2, so numbers remain uneaten.\")\nTest.assertSimilar(nomNom([2, 1, 3]), [3, 3], \"2 can eat 1 to become 3. 3 cannot eat 3.\")\nTest.assertSimilar(nomNom([8, 5, 9]), [22], \"8 eats 5 to become 13, 13 eats 9 to become 22.\")\nTest.assertSimilar(nomNom([5, 3, 7]), [15], \"5 eats 3 to become 8. 8 eats 7 to become 15.\")\nTest.assertSimilar(nomNom([5, 3, 9]), [8, 9], \"5 eats 3 to become 8. 8 cannot eat 9.\")\nTest.assertSimilar(nomNom([6, 5, 6, 100]), [17, 100], \"6 eats 5 to become 11. 11 eats 7 to become 17. 17 cannot eat 100.\")",
"title": "Seven Ate Nine"
}
|
json
|
A man, out on bail in a rape case, was arrested on Monday in Rajasthan's Sirohi district for allegedly stabbing to death the woman he had raped last year, police said. The accused had been pressuring the woman for withdrawal of the complaint against him since he was out on bail and stabbed her to death on Saturday night at her house in Nagani village in Sirohi district, ADG (Crime) Ravi Prakash Meharda said.
The ADG confirmed the arrest of the accused Netram on Monday morning. He had raped the victim and a case had been lodged against him in November 2020. He had been arrested by the police and had been in judicial custody for six months," said the officer.
The accused was the victim's neighbour. She was a widow and had been working in a local anganwadi in the village. After her husband's death, Netram allegedly raped her last year under the pretext of some help and a complaint of rape had been lodged by her against him.
According to the police, Netram came out on bail in April and had been constantly threatening the victim to withdraw the case but she was not responding to his repeated calls. On Saturday night, he barged into her house and stabbed her to death, while she was sleeping. He also injured her younger sister, who also was present in the house, as she tried to save her sister. She raised an alarm, but Netram managed to escape from the spot.
Read all the Latest News, Breaking News and Coronavirus News here. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI)
|
english
|
<reponame>twillouer/apm-agent-java
/*-
* #%L
* Elastic APM Java agent
* %%
* Copyright (C) 2018 - 2020 Elastic and contributors
* %%
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. 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.
* #L%
*/
package co.elastic.apm.agent.process;
import co.elastic.apm.agent.AbstractInstrumentationTest;
import co.elastic.apm.agent.impl.transaction.AbstractSpan;
import co.elastic.apm.agent.impl.transaction.Transaction;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecuteResultHandler;
import org.apache.commons.exec.DefaultExecutor;
import org.apache.commons.exec.ExecuteException;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import static org.assertj.core.api.Assertions.assertThat;
public class CommonsExecAsyncInstrumentationTest extends AbstractInstrumentationTest {
@Test
void asyncProcessWithinTransaction() throws IOException, InterruptedException {
startTransaction();
asyncProcessHasTransactionContext(true);
terminateTransaction();
}
@Test
void asyncProcessOutsideTransaction() throws IOException, InterruptedException {
asyncProcessHasTransactionContext(false);
}
@Test
void customInstrumentationClassName() {
assertThat(MyExecutor.class.getSimpleName())
.describedAs("'Executor' is required in subclass name for faster instrumentation non-matching")
.contains("Executor");
}
private static AbstractSpan<?> asyncProcessHasTransactionContext(boolean expectedInTransaction) throws IOException, InterruptedException {
AtomicReference<AbstractSpan<?>> activeTransaction = new AtomicReference<>();
DefaultExecutor executor = new MyExecutor(activeTransaction);
final AtomicBoolean processProperlyCompleted = new AtomicBoolean(false);
DefaultExecuteResultHandler handler = new DefaultExecuteResultHandler() {
// note: calling super is required otherwise process termination is not detected and waits forever
@Override
public void onProcessComplete(int exitValue) {
super.onProcessComplete(exitValue);
processProperlyCompleted.set(exitValue == 0);
}
@Override
public void onProcessFailed(ExecuteException e) {
super.onProcessFailed(e);
processProperlyCompleted.set(false);
}
};
executor.execute(new CommandLine(getJavaBinaryPath()).addArgument("-version"), handler);
handler.waitFor();
assertThat(processProperlyCompleted.get())
.describedAs("async process should have properly executed")
.isTrue();
if (expectedInTransaction) {
assertThat(activeTransaction.get())
.describedAs("executor runnable not in the expected transaction context")
.isNotNull();
} else {
assertThat(activeTransaction.get())
.describedAs("executor runnable should not be in transaction context")
.isNull();
}
return activeTransaction.get();
}
private static String getJavaBinaryPath() {
boolean isWindows = System.getProperty("os.name").startsWith("Windows");
String executable = isWindows ? "java.exe" : "java";
Path path = Paths.get(System.getProperty("java.home"), "bin", executable);
if (!Files.isExecutable(path)) {
throw new IllegalStateException("unable to find java path");
}
return path.toAbsolutePath().toString();
}
private static void startTransaction() {
Transaction transaction = tracer.startRootTransaction(CommonsExecAsyncInstrumentationTest.class.getClassLoader());
transaction.withType("request").activate();
}
private static void terminateTransaction() {
Transaction transaction = tracer.currentTransaction();
assertThat(transaction).isNotNull();
transaction.deactivate().end();
reporter.assertRecycledAfterDecrementingReferences();
}
/**
* Custom implementation for testing, requires to have 'Executor' in name
*/
private static class MyExecutor extends DefaultExecutor {
private AtomicReference<AbstractSpan<?>> activeTransaction;
private MyExecutor(AtomicReference<AbstractSpan<?>> activeTransaction) {
this.activeTransaction = activeTransaction;
}
@Override
protected Thread createThread(final Runnable runnable, String name) {
Runnable wrapped = new Runnable() {
@Override
public void run() {
// we don't assert directly here as throwing an exception will wait forever
activeTransaction.set(tracer.getActive());
runnable.run();
}
};
return super.createThread(wrapped, name);
}
}
}
|
java
|
import ATV from 'atvjs'
import template from './template.hbs'
import fastXmlParser from 'fast-xml-parser'
import API from 'lib/ivysilani.js'
import History from 'lib/history.js'
var programme_id = null
var player = new Player()
const PlayPage = ATV.Page.create({
name: 'play',
ready (options, resolve, reject) {
programme_id = options.ID
let setQuality
let setPlayerType
if (options.isVod === '') {
setQuality = 'web'
setPlayerType = 'ios'
} else {
setQuality = 'max1080p'
setPlayerType = 'progressive'
}
const getPlaylistUrl = ATV.Ajax.post(API.url.playlist, API.xhrOptions({
ID: options.ID,
quality: setQuality,
playerType: setPlayerType,
playlistType: 'json'
}))
Promise
.all([getPlaylistUrl])
.then((xhrs) => {
const parsed = fastXmlParser.parse(xhrs[0].response)
if ('playlistURL' in parsed) {
const playlistUrl = Object.values(parsed)[0]
console.log(playlistUrl)
const tvosPlaylist = new Playlist()
const playlist = API.syncAjax(playlistUrl, { responseType: 'json' }).playlist
Object.entries(playlist).forEach(([key, value]) => {
const mediaItem = new MediaItem('video', value.streamUrls.main)
mediaItem.artworkImageURL = value.previewImageUrl
mediaItem.title = value.title
tvosPlaylist.push(mediaItem)
if (key == 0) {
player.playlist = tvosPlaylist
player.addEventListener('timeDidChange', function(info) {
History.setProgressTime(programme_id, info.time, value.duration)
}, {
interval: 1
})
}
})
var watched = History.watched(programme_id)
if ((watched > 0) && (watched < 0.99)) {
var progressTime = History.progressTime(programme_id)
var time = new Date(progressTime * 1000).toISOString('H:mm:ss').substr(11, 8)
var doc = ATV.Navigation.presentModal({
template: template,
data: {
time: time
},
})
doc
.getElementById('play-btn')
.addEventListener('select', () => {
player.play()
})
doc
.getElementById('resume-btn')
.addEventListener('select', () => {
player.seekToTime(progressTime)
player.play()
})
}
else {
player.play()
resolve(false)
}
}
else {
ATV.Navigation.showError({
data: {
title: 'Chyba',
message: 'Video se nepodařilo nalézt'
},
type: 'document'
})
}
}, (xhr) => {
reject(xhr)
})
}
})
export default PlayPage
|
javascript
|
<filename>docs/outlook/mapi/supporting-event-notification.md
---
title: Prise en charge des notifications d’événement
manager: soliver
ms.date: 11/16/2014
ms.audience: Developer
localization_priority: Normal
api_type:
- COM
ms.assetid: a1e3e49c-8d1d-4f7e-ba5a-be441f0f10ae
description: 'Derniére modification : samedi 23 juillet 2011'
ms.openlocfilehash: 83c102c25b17b6769c0c676bbadd874224f75cf6
ms.sourcegitcommit: 8fe462c32b91c87911942c188f3445e85a54137c
ms.translationtype: MT
ms.contentlocale: fr-FR
ms.lasthandoff: 04/23/2019
ms.locfileid: "32327425"
---
# <a name="supporting-event-notification"></a>Prise en charge des notifications d’événement
**S’applique à** : Outlook 2013 | Outlook 2016
Étant donné que la prise en charge de la notification d’événement peut être compliquée, MAPI fournit trois méthodes d’objet de prise en charge qui implémentent les parties les plus difficiles du processus. Ces méthodes fonctionnent en tant qu’unité et un fournisseur doit utiliser les trois méthodes ou aucune d’entre elles.
Les méthodes de prise en charge MAPI utilisent des clés de notification pour gérer les connexions entre les réceptions de notification et les objets qui génèrent les notifications. Une clé de notification est une structure [NOTIFKEY](notifkey.md) qui contient des données binaires qui identifient un objet parmi les processus. Une clé de notification est généralement copiée à partir de l’identificateur d’entrée à long terme de l’objet source de notification. Si le client a fourni un identificateur d’entrée dans l’appel au service **Conseil,** vous pouvez l’utiliser pour la clé de notification. Si le _paramètre lpEntryID_ à **Advise** est NULL, utilisez l’identificateur d’entrée de l’objet conteneur le plus à l’extérieur possible, tel que la magasin de messages.
Pour utiliser les méthodes de support, appelez [IMAPISupport::Subscribe](imapisupport-subscribe.md) chaque fois qu’un client appelle votre méthode **Advise** pour s’inscrire à une notification. Allouez une structure [NOTIFKEY](notifkey.md) et créez une clé de notification unique pour votre objet source de conseil. Par exemple, un fournisseur de magasins de messages qui est invité à avertir un client lorsqu’un message est reçu dans un dossier particulier crée une clé de notification pour ce dossier. Passez un pointeur vers la structure **NOTIFKEY** dans l’appel à **s’abonner,** ainsi qu’un pointeur vers le sink de conseil du client. **Subscribe** calls the advise sink’s [IUnknown::AddRef](https://msdn.microsoft.com/library/b4316efd-73d4-4995-b898-8025a316ba63%28Office.15%29.aspx) method to increment its reference count and MAPI retains the pointer until the registration is canceled.
Vous pouvez transmettre l’indicateur NOTIFY_SYNC s’abonner pour demander que **Notify** se comporte de manière synchrone et ne retourne pas tant qu’il n’a pas effectué tous les appels aux méthodes [IMAPIAdviseSink::OnNotify](imapiadvisesink-onnotify.md) des sinks de notification inscrits. Définissez cet indicateur uniquement pour votre propre utilisation interne. Ne la définissez pas lorsque vous répondez à un **appel** de conseil client. La notification d’événement entre les clients et les fournisseurs est toujours asynchrone. Autrement dit, MAPI garantit que l’appel au cours duquel un événement se produit sera de retour au client avant que les appels **OnNotify** ne soient effectués.
Si vous définissez l’indicateur NOTIFY_SYNC, n’abonnez aucune modification à l’un des objets de sink de conseil et ne passez pas un wrapper advise sink créé par [HrThisThreadAdviseSink](hrthisthreadadvisesink.md) pour s’abonner. **HrThisThreadAdviseSink** crée une version thread-safe d’un réception de conseil à utiliser uniquement avec une notification asynchrone.
Si un réception de notification inscrit pour une notification synchrone renvoie à partir de **OnNotify** avec l’indicateur CALLBACK_DISCONTINUE définie, [IMAPISupport::Notify](imapisupport-notify.md) définit l’indicateur NOTIFY_CANCELED et renvoie sans effectuer d’appels à **OnNotify**.
Une **fois l’abonnement** renvoyé, vous n’aurez plus besoin de conserver votre copie du reçu de conseil du client. Appelez sa [méthode IUnknown::Release](https://msdn.microsoft.com/library/4b494c6f-f0ee-4c35-ae45-ed956f40dc7a%28Office.15%29.aspx) pour la libérer. **L’abonnement** renvoie un numéro de connexion autre que zéro que vous devez renvoyer au client. Le numéro de connexion représente le lien entre la source de conseil et le sink de conseil. Il reste valide jusqu’à ce que le client effectue un appel réussi à **Unadvise**.
Lorsque le client est prêt à annuler une inscription, il appelle votre **méthode Unadvise.** Passez le numéro de connexion de **l’appel Unadvise** à [IMAPISupport::Unsubscribe](imapisupport-unsubscribe.md). **Unsubscribe** calls the advise sink’s **IUnknown::Release** method. Comme avec **Advise** et **Unadvise,** les appels à **Subscribe** et **Unsubscribe** doivent être associés. Vous devez effectuer un appel à **Unsubscribe** pour chaque appel effectué pour **s’abonner.** Toutefois, vous n’avez pas besoin d’appeler **Subscribe** chaque fois que votre **méthode Advise** est appelée. À l’inverse, vous pouvez l’appeler pour la configuration des notifications internes.
Lorsqu’un événement se produit, allouez une ou plusieurs structures [de NOTIFICATION](notification.md) du type approprié pour l’événement et appelez [IMAPISupport::Notify](imapisupport-notify.md). **Notify** génère une notification pour chaque réception de notification inscrit. Vous devez définir tous les membres inutilisés de la structure [NOTIFICATION](notification.md) sur zéro. Cette technique d’initialisation de la structure **NOTIFICATION** peut aider les clients à créer des implémentations **OnNotify** plus petites, plus rapides et moins sujettes aux erreurs.
Notez qu’une structure **de NOTIFICATION** distincte est nécessaire pour chaque événement, même pour plusieurs événements du même type. Par exemple, si trois clients sont inscrits pour la notification de table sur une table particulière et que cinq lignes sont ajoutées à la table, vous devez créer cinq structures **OBJECT_NOTIFICATION** pour votre appel **Notify.** Une notification par lot comme celle-ci se traduit par de meilleures performances que l’appel **de Notification** cinq fois. Pour chaque **appel Notify,** MAPI appelle la méthode [IMAPIAdviseSink::OnNotify](imapiadvisesink-onnotify.md) de chaque reçu de notification inscrit. S’il n’existe aucun reçu de conseil inscrit, MAPI ignore l’appel.
Les fournisseurs de services qui envoient des notifications par lots doivent les commander afin qu’ils soient interprétés de la première notification à la dernière. Ce traitement est particulièrement nécessaire lorsqu’un lot de notifications contient une série d’événements, tels que TABLE_ROW_ADDED avec un événement qui fait référence à une ligne précédente ajoutée dans un autre événement du même lot.
## <a name="see-also"></a>Voir aussi
[Fournisseurs de services MAPI](mapi-service-providers.md)
|
markdown
|
<reponame>IljaCooreman/baby-logger
import { Context } from '../../utils';
import { schedule } from '../../schedule';
import { ScheduleSlot } from '../../generated/prisma-client';
export const scheduleSlots = {
async createScheduleSlot(parent, { babyId, start, end, slotName }, ctx: Context) {
return await ctx.prisma.createScheduleSlot({start, end, slot: slotName, baby: {connect: {id: babyId}}});
},
async createSchedule(parent, {babyId}, ctx: Context): Promise<ScheduleSlot[]> {
const resultArray = [];
for (let i = 0; i < schedule.length; i++) {
const element = schedule[i];
const {start, end, slot} = element;
const result = await ctx.prisma.createScheduleSlot({start, end, slot, baby: {connect: {id: babyId}}})
console.log(result)
resultArray.push(result)
}
return resultArray;
}
}
|
typescript
|
from rest_framework import serializers
from .models import Upload
class UploadSerializer(serializers.ModelSerializer):
class Meta:
model = Upload
fields = '__all__'
|
python
|
In view of the violence around Ram Navami in parts of West Bengal, the Mamata Banerjee-led state government has now asked senior police officials to remain extra cautious on Hanuman Jayanti and has issued special guidelines for the same.
State government has instructed police to carry out strict monitoring and vigil in sensitive areas, with more emphases to be given in vulnerable areas. Every police personnel posted in such areas has been asked to use a police body-camera. The state government has also asked police to prevent spread of rumours and take strict action against those found doing so.
The West Bengal government has also directed police to monitor social media posts and take strict action against those putting up fake news. Police officers have also been told to hold meetings with community leaders to maintain social harmony. Superior officers have been asked to supervise all processions.
The directions also states that strong police arrangements should be made and provocation by any group should be dealt with strictly and immediately. Police personnel should use helmets and adequate non-lethal equipment should be there in stock, the instructions said.
Further, Kolkata Police has also come up with applications that need to be submitted for carrying out meeting and rallies. One has to fill up that form and apply for permission for carrying out rallies and meetings in Kolkata. Use of arms and lathis is not allowed in rallies, as per this new form .
|
english
|
# gocode
dummy repo for generated go code
|
markdown
|
var Bouvet;
(function (Bouvet) {
var TodoApp;
(function (TodoApp) {
"use strict";
TodoApp.app = angular.module("TSTodoApp", []);
})(TodoApp = Bouvet.TodoApp || (Bouvet.TodoApp = {}));
})(Bouvet || (Bouvet = {}));
//# sourceMappingURL=app.js.map
|
javascript
|
import * as t from "io-ts/Codec";
import { Inverse } from "../base/inverse";
import { flow } from "fp-ts/function";
export const OpenMin =
(message = `Number is smaller than min`) =>
(min: number) =>
t.refine<number, number>(
(i): i is number => i > min,
message,
)(t.number);
export type OpenMin = ReturnType<typeof OpenMin>
export const OpenMax =
(message = `Number is larger than max`) =>
(max: number) =>
t.refine<number, number>(
(i): i is number => i < max,
message,
)(t.number);
export type OpenMax = ReturnType<typeof OpenMax>;
export const ClosedMax =
(message = "String matches provided regexp") =>
flow(
OpenMin(),
Inverse(message)(t.number),
);
export type ClosedMax = ReturnType<typeof ClosedMax>;
export const ClosedMin =
(message = "String matches provided regexp") =>
flow(
OpenMax(),
Inverse(message)(t.number),
);
export type ClosedMin = ReturnType<typeof ClosedMin>;
export const Positive = OpenMin("Number isn't positive")(0);
export type Positive = t.TypeOf<typeof Positive>
export const Negative = OpenMax("Number isn't negative")(0);
export type Negative = t.TypeOf<typeof Negative>
export const NonPositive = ClosedMin("Number isn't non-positive")(0);
export type NonPositive = t.TypeOf<typeof NonPositive>
export const NonNegative = ClosedMax("Number isn't non-negative")(0);
export type NonNegative = t.TypeOf<typeof NonNegative>
|
typescript
|
<reponame>PHClement/Freelance-Invoice<filename>assets/locales/es.json
{
"translation": {
"navbar": {
"dashboard": "Tablero",
"clients": "Clientela",
"devis": "Estimados",
"factures": "Facturas",
"taxes": "Gastos"
},
"dashboard": {
"hello": "Hola",
"cards": {
"summary": "Resumen",
"stats": "Estadísticas",
"income": "Ventas",
"taxes": "Impuestos",
"profit": "Lngresos netos",
"lastinvoice": ""
}
},
"clients": {
"filter": "Filtros",
"order": "Orden",
"search": "Buscar un cliente ...",
"since": "Ya que...",
"hasfacture": "Tiene al menos una factura?",
"view": "Ver",
"edit": "Editar",
"delete": "Eliminar",
"name": "Nombre",
"date": "Fecha",
"actions": "Acción",
"create": "Crear un cliente"
},
"form": {
"firstName" : "Prénom",
"name" : "Nom",
"rank" : "Role dans l'entreprise",
"email": "Email",
"password": "<PASSWORD>",
"validate": "Validar",
"login": "Iniciar sesión",
"add" : "Ajouter"
},
"validation": {
"email": "Se requiere una dirección de correo electrónico !",
"password": "<PASSWORD>!",
"firstName": "Le prénom est requis !",
"name": "Le nom de famille est requis !",
"rank": "Le role dans l'entreprise est requis !"
},
"errors": {
"error": "Error"
},
"admin": {
"users": "Utilisateurs",
"society": "Mon Entreprise",
"settings": "Paramètres",
"updates": "Mise à jour",
"usersContent": {
"add_user": "Ajouter un utilisateur"
}
},
"api": {
"responses": {
"E_AUTH_NO_REGISTERED": "Usted no está registrado !",
"E_AUTH_INVALID_PASSWORD": "Su contraseña es inv<PASSWORD> !",
"E_AUTH_NO_USER": "¡El usuario con un correo electrónico dado no existe!",
"E_AUTH_CANT_REGISTER": "No se puede agregar el usuario!",
"E_AUTH_ALREADY_REGISTERED": "¡El usuario ya ha sido agregado!",
"E_AUTH_SESSION_EXPIRATION": "Su sesión ha expirado, ¡vuelva a conectar!",
"E_DB_ERROR": "¡Ocurrió Un Error en la Base de Datos!",
"E_CANT_UPLOAD": "No se puede enviar el archivo, ¡inténtalo de nuevo!",
"E_NO_PERMISSION": "No tienes permiso para hacer eso !",
"E_NO_PERMISSION_ADMIN": "No tienes permiso para hacer eso !",
"E_ROUTES_ERROR": "Ha ocurrido un error. Por favor intente otra vez !",
"E_INVALID_REQUEST": "Solicitud no válida !",
"E_MODEL_NO_ENTRY": "¡Ninguna entrada en la base de datos!",
"E_ALREADY_REQUESTED_IP": "Ya ha realizado una solicitud, ¡intente más tarde!"
}
}
}
}
|
json
|
// This file has been generated by Py++.
#ifndef SingletonWindowFactoryManager_hpp__pyplusplus_wrapper
#define SingletonWindowFactoryManager_hpp__pyplusplus_wrapper
void register_SingletonWindowFactoryManager_class();
#endif//SingletonWindowFactoryManager_hpp__pyplusplus_wrapper
|
cpp
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Functional tests for `ugetcli` package - `create` command.
Tests functionality of the cli create command with various options.
"""
import os
import unittest
import json
from click.testing import CliRunner
from mock import MagicMock, patch
from ugetcli import cli
from ugetcli.utils import create_empty_file
class TestUGetCliCreate(unittest.TestCase):
"""Functional Tests for `ugetcli` package - `create` command."""
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with default options"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
csproj_mock.get_csproj_at_path.return_value = "TestProject.csproj"
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
result = runner.invoke(cli.ugetcli, ['create'], obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_path_directory(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --path option when path is a directory"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "custom/MyProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("custom/bin/Output/Debug")
create_empty_file("custom/bin/Output/Debug/TestProject.dll")
create_empty_file("custom/bin/Output/Debug/TestProject.pdb")
result = runner.invoke(cli.ugetcli, ['create', '--path', 'custom/'], obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
csproj_mock.assert_called_with('custom/')
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_path_file(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --path option when path is a .csproj file"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "custom/MyProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("custom/bin/Output/Debug")
create_empty_file("custom/bin/Output/Debug/TestProject.dll")
create_empty_file("custom/bin/Output/Debug/TestProject.pdb")
result = runner.invoke(cli.ugetcli, ['create', '--path', 'custom/MyProject.csproj'], obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
csproj_mock.assert_called_with('custom/MyProject.csproj')
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_output_dir(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --output-dir option"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('out/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
result = runner.invoke(cli.ugetcli, ['create', '--output-dir', 'out'], obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_configuration(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --configuration option"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Debug.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
result = runner.invoke(cli.ugetcli, ['create', '--configuration', 'Debug'],
obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_unity_project_path(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --unity-project-path"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'MyUnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
result = runner.invoke(
cli.ugetcli, ['create', '--unity-project-path', 'MyUnityProject'], obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_root_directory(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --root-dir"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/MyUnityPackageRoot') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
result = runner.invoke(
cli.ugetcli, ['create', '--root-dir', 'MyUnityPackageRoot'], obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_clean(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --clean"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
os.makedirs("Output/")
create_empty_file("Output/TestProject_0.1.0_Release.unitypackage") # Should be removed
create_empty_file("Output/TestProject_0.1.1_Release.unitypackage") # Should be removed
create_empty_file("Output/TestProject_0.1.0_Debug.unitypackage") # Should NOT be removed
result = runner.invoke(
cli.ugetcli, ['create', '--clean'], obj={})
assert not os.path.isfile("Output/TestProject_0.1.0_Release.unitypackage")
assert not os.path.isfile("Output/TestProject_0.1.1_Release.unitypackage")
assert os.path.isfile("Output/TestProject_0.1.0_Debug.unitypackage")
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_unity_username(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with --unity-username"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'UnityProject' in args[0] # In temp folder
assert os.path.normpath('UnityProject/Assets/TestProject') in args[0]
assert os.path.normpath('Output/TestProject_1.0.0_Release.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
result = runner.invoke(
cli.ugetcli, ['create'], obj={})
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
@patch('ugetcli.uget.CsProj')
@patch('ugetcli.uget.UnityPackageRunner')
def test_cli_uget_create_with_config_json(
self, unitypackage_runner_mock, csproj_mock):
"""Test cli: uget create with options loaded via config json"""
invocation_results = [False]
# Mock running Unity to export unity package
def export_unitypackage_mock(*args, **kwargs):
assert 'CustomUnityProject' in args[0] # In temp folder
assert os.path.normpath('CustomUnityProject/Assets/MyUnityPackage') in args[0]
assert os.path.normpath('CustomOutput/TestProject_1.0.0_Debug.unitypackage') in args[1]
create_empty_file(args[1])
invocation_results[0] = True
return 0
unitypackage_runner_instance = MagicMock()
unitypackage_runner_instance.export_unitypackage = export_unitypackage_mock
unitypackage_runner_mock.return_value = unitypackage_runner_instance
csproj_instance = MagicMock()
csproj_instance.get_assembly_name.return_value = "TestProject"
csproj_instance.get_assembly_version.return_value = "1.0.0"
csproj_instance.get_output_path.return_value = "bin/Output/Debug"
csproj_instance.path = "TestProject.csproj"
csproj_mock.return_value = csproj_instance
config_data = {
"output_dir": "CustomOutput",
"configuration": "Debug",
"unity_project_path": "CustomUnityProject",
"root_dir": "MyUnityPackage",
"clean": True,
}
runner = CliRunner(env={})
with runner.isolated_filesystem():
os.makedirs("bin/Output/Debug")
create_empty_file("bin/Output/Debug/TestProject.dll")
create_empty_file("bin/Output/Debug/TestProject.pdb")
os.makedirs("CustomOutput/")
create_empty_file("CustomOutput/TestProject_0.1.0_Release.unitypackage") # Should be removed
result = runner.invoke(
cli.ugetcli, ['create', '--config', json.dumps(config_data)], obj={})
assert not os.path.isfile("Output/TestProject_0.1.0_Release.unitypackage")
assert result.exit_code == 0, result
unitypackage_runner_mock.assert_called_with(False)
assert invocation_results[0], "did not invoke export_unitypackage_mock"
|
python
|
<reponame>blugelabs/beer-search
{"name":"<NAME>","abv":6.2,"ibu":0.0,"srm":0.0,"upc":0,"type":"beer","brewery_id":"unibroue","updated":"2010-07-22 20:00:20","description":"The opaque blackness and beige-colored\r\nfoam mousse of Chambly Noire belie its light,\r\nrefreshing body and clean, long finish,\r\nfeaturing hints of roasted coffee beans, toast\r\nand toffee. \r\n\r\nWe recommend pairing it with grilled salmon,\r\nsteak or tuna au poivre, smoked meats,\r\ncoffee-crusted rack of lamb, or chocolate\r\nespresso flan.","style":"Dark American-Belgo-Style Ale","category":"North American Ale"}
|
json
|
Bolivian President Evo Morales was on Wednesday finally on his way back home after a diplomatic flap set off by France, Italy and Portugal refusing to let his private jet overfly them as he headed home from Moscow and, upon landing in Vienna for refuelling, denying him permission to take off. The actions followed rumours that the whistle-blower Edward Snowden was on board.
Mr. Morales was returning after a meeting of producer-countries of natural gas.
France, Italy and Portugal evidently feared that Mr. Snowden would have boarded the presidential aircraft with a view to obtaining political asylum upon touching down on European soil. They did not wish to risk having Mr. Snowden on their hands, or face Washington’s ire. They, therefore, chose to deny permission to overfly.
It would have been difficult for a European Union country to refuse Mr. Snowden political asylum because the death penalty remains legal in the U. S. and it would virtually be obliged to grant asylum to a person who faced the death penalty back home.
Mr. Morales said he failed to understand how anyone could have thought Mr. Snowden would be in his aircraft. “This gentleman is not a suitcase or a fly that I could place on board my plane and take to Bolivia,” he said.
There was anger in Bolivia with many citizens claiming that the life of their President was put in danger. Bolivian authorities said rumours about Mr. Snowden being on board the aircraft were floated by U. S. agents in order to put pressure on Bolivia.
Dozens of people demonstrated outside the French Embassy in La Paz, the Bolivian capital. There was no immediate comment from French authorities on the matter.
|
english
|
<filename>oscm-app-vmware/src/main/java/org/oscm/app/vmware/business/VM.java
/**
* *****************************************************************************
*
* <p>Copyright FUJITSU LIMITED 2018
*
* <p>Creation Date: 2016-05-24
*
* <p>*****************************************************************************
*/
package org.oscm.app.vmware.business;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.oscm.app.v2_0.exceptions.APPlatformException;
import org.oscm.app.vmware.business.Script.OS;
import org.oscm.app.vmware.i18n.Messages;
import org.oscm.app.vmware.remote.vmware.VMwareClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.vmware.vim25.CustomFieldDef;
import com.vmware.vim25.GuestInfo;
import com.vmware.vim25.GuestNicInfo;
import com.vmware.vim25.InvalidStateFaultMsg;
import com.vmware.vim25.ManagedObjectReference;
import com.vmware.vim25.RuntimeFaultFaultMsg;
import com.vmware.vim25.TaskInfo;
import com.vmware.vim25.VimPortType;
import com.vmware.vim25.VirtualDevice;
import com.vmware.vim25.VirtualDisk;
import com.vmware.vim25.VirtualMachineConfigInfo;
import com.vmware.vim25.VirtualMachineConfigSpec;
import com.vmware.vim25.VirtualMachinePowerState;
import com.vmware.vim25.VirtualMachineRuntimeInfo;
import com.vmware.vim25.VirtualMachineSnapshotInfo;
import com.vmware.vim25.VirtualMachineSnapshotTree;
import com.vmware.vim25.VirtualMachineSummary;
public class VM extends Template {
private static final Logger logger = LoggerFactory.getLogger(VM.class);
private static final String GUEST_STATE_RUNNING = "running";
private static final String TOOLS_RUNNING_STATE = "guestToolsRunning";
private ManagedObjectReference vmInstance;
private ManagedObjectReference customFieldsManager;
private VirtualMachineConfigInfo configSpec;
private ManagedObjectReference folder;
private GuestInfo guestInfo;
private String instanceName;
private VirtualMachineSummary virtualMachineSummary;
private VirtualMachineSnapshotInfo virtualMachineSnapshotInfo;
public VM(VMwareClient vmw, String instanceName) throws Exception {
this.vmw = vmw;
this.instanceName = instanceName;
vmInstance = vmw.getServiceUtil().getDecendentMoRef(null, "VirtualMachine", instanceName);
customFieldsManager = vmw.getConnection().getServiceContent().getCustomFieldsManager();
configSpec =
(VirtualMachineConfigInfo) vmw.getServiceUtil().getDynamicProperty(vmInstance, "config");
folder = (ManagedObjectReference) vmw.getServiceUtil().getDynamicProperty(vmInstance, "parent");
guestInfo = (GuestInfo) vmw.getServiceUtil().getDynamicProperty(vmInstance, "guest");
virtualMachineSummary =
(VirtualMachineSummary) vmw.getServiceUtil().getDynamicProperty(vmInstance, "summary");
virtualMachineSnapshotInfo =
(VirtualMachineSnapshotInfo)
vmw.getServiceUtil().getDynamicProperty(vmInstance, "snapshot");
if (vmInstance == null || configSpec == null || folder == null || guestInfo == null) {
logger.warn("failed to retrieve VM");
throw new Exception(
"VM " + instanceName + " does not exist or failed to retrieve information.");
}
}
public String createVmUrl(VMPropertyHandler ph)
throws InvalidStateFaultMsg, RuntimeFaultFaultMsg {
StringBuilder url = new StringBuilder();
url.append("https://");
url.append(ph.getTargetVCenterServer());
url.append(":");
url.append(ph.getVsphereConsolePort());
url.append("/vsphere-client/webconsole.html?vmId=");
url.append(vmInstance.getValue().toString());
url.append("&vmName=");
url.append(configSpec.getName());
url.append("&serverGuid=");
url.append(vmw.getConnection().getServiceContent().getAbout().getInstanceUuid());
url.append("&host=");
url.append(ph.getTargetVCenterServer());
url.append(":443");
url.append("&sessionTicket=");
url.append("cst-VCT");
return url.toString();
}
public List<String> getSnashotsAsList() {
List<String> snapshots = new ArrayList<String>();
if (virtualMachineSnapshotInfo != null) {
List<VirtualMachineSnapshotTree> snap = virtualMachineSnapshotInfo.getRootSnapshotList();
snapshots.addAll(getSnapshots(snap, new ArrayList<String>(), ""));
}
return snapshots;
}
private List<String> getSnapshots(
List<VirtualMachineSnapshotTree> vmst, ArrayList<String> snaps, String indent) {
for (Iterator<VirtualMachineSnapshotTree> iterator = vmst.iterator(); iterator.hasNext(); ) {
VirtualMachineSnapshotTree snap = iterator.next();
snaps.add(indent + "Snapshot: " + snap.getName());
getSnapshots(snap.getChildSnapshotList(), snaps, indent + " ");
}
return snaps;
}
public Integer getGuestMemoryUsage() {
return virtualMachineSummary.getQuickStats().getGuestMemoryUsage();
}
public void setCostumValues(Map<String, String> settings) {
List<CustomFieldDef> fields;
try {
fields =
(List<CustomFieldDef>)
vmw.getServiceUtil().getDynamicProperty(customFieldsManager, "field");
for (CustomFieldDef field : fields) {
if (settings.containsKey(field.getName())) {
vmw.getConnection()
.getService()
.setCustomValue(vmInstance, field.getName(), settings.get(field.getName()));
}
}
} catch (Exception e) {
logger.warn("Failed to set costum value for vm " + vmInstance, e);
}
}
public Integer getOverallCpuUsage() {
return virtualMachineSummary.getQuickStats().getOverallCpuUsage();
}
public Integer getUptimeSeconds() {
return virtualMachineSummary.getQuickStats().getUptimeSeconds();
}
public String getStatus() {
return guestInfo.getGuestState();
}
public String getGuestFullName() {
return configSpec.getGuestFullName();
}
public boolean isLinux() {
String guestid = configSpec.getGuestId();
boolean isLinux =
guestid.startsWith("cent")
|| guestid.startsWith("debian")
|| guestid.startsWith("freebsd")
|| guestid.startsWith("oracle")
|| guestid.startsWith("other24xLinux")
|| guestid.startsWith("other26xLinux")
|| guestid.startsWith("otherLinux")
|| guestid.startsWith("redhat")
|| guestid.startsWith("rhel")
|| guestid.startsWith("sles")
|| guestid.startsWith("suse")
|| guestid.startsWith("ubuntu");
logger.debug(
"instanceName: "
+ instanceName
+ " isLinux: "
+ isLinux
+ " guestid: "
+ configSpec.getGuestId()
+ " OS: "
+ configSpec.getGuestFullName());
return isLinux;
}
public void updateServiceParameter(VMPropertyHandler paramHandler) throws Exception {
logger.debug("instanceName: " + instanceName);
int key = getDataDiskKey();
if (key != -1) {
paramHandler.setDataDiskKey(1, key);
}
if (!paramHandler.isServiceSettingTrue(VMPropertyHandler.TS_IMPORT_EXISTING_VM)
&& !paramHandler.getInstanceName().equals(guestInfo.getHostName())) {
throw new Exception(
"Instancename and hostname do not match. Hostname: "
+ guestInfo.getHostName()
+ " Instancename: "
+ paramHandler.getInstanceName());
}
String targetFolder = (String) vmw.getServiceUtil().getDynamicProperty(folder, "name");
Integer ramMB =
(Integer)
vmw.getServiceUtil().getDynamicProperty(vmInstance, "summary.config.memorySizeMB");
paramHandler.setSetting(VMPropertyHandler.TS_AMOUNT_OF_RAM, ramMB.toString());
paramHandler.setSetting(VMPropertyHandler.TS_NUMBER_OF_CPU, Integer.toString(getNumCPU()));
paramHandler.setSetting(VMPropertyHandler.TS_TARGET_FOLDER, targetFolder);
paramHandler.setSetting(VMPropertyHandler.TS_DISK_SIZE, getDiskSizeInGB(1));
paramHandler.setSetting(
VMPropertyHandler.TS_DATA_DISK_SIZE.replace("#", "1"), getDiskSizeInGB(2));
paramHandler.setSetting(
VMPropertyHandler.TS_NUMBER_OF_NICS, Integer.toString(getNumberOfNICs()));
int i = 1;
List<GuestNicInfo> nicList = guestInfo.getNet();
for (GuestNicInfo info : nicList) {
if (info.getIpAddress() != null && info.getIpAddress().size() > 0) {
paramHandler.setSetting("NIC" + i + "_IP_ADDRESS", info.getIpAddress().get(0));
if (info.getNetwork() != null) {
paramHandler.setSetting("NIC" + i + "_NETWORK_ADAPTER", info.getNetwork());
}
i++;
}
}
}
public OS detectOs() {
if (configSpec.getGuestId().startsWith("win")) {
return OS.WINDOWS;
}
return OS.LINUX;
}
public boolean isRunning() throws Exception {
VirtualMachineRuntimeInfo vmRuntimeInfo =
(VirtualMachineRuntimeInfo) vmw.getServiceUtil().getDynamicProperty(vmInstance, "runtime");
boolean isRunning = false;
if (vmRuntimeInfo != null) {
isRunning = !VirtualMachinePowerState.POWERED_OFF.equals(vmRuntimeInfo.getPowerState());
logger.debug(Boolean.toString(isRunning));
} else {
logger.warn("Failed to retrieve runtime information from VM " + instanceName);
}
return isRunning;
}
public boolean isStopped() throws Exception {
VirtualMachineRuntimeInfo vmRuntimeInfo =
(VirtualMachineRuntimeInfo) vmw.getServiceUtil().getDynamicProperty(vmInstance, "runtime");
if (vmRuntimeInfo != null) {
return VirtualMachinePowerState.POWERED_OFF.equals(vmRuntimeInfo.getPowerState());
}
logger.warn("Failed to retrieve runtime information from VM " + instanceName);
return false;
}
public TaskInfo start() throws Exception {
logger.debug("instanceName: " + instanceName);
ManagedObjectReference startTask =
vmw.getConnection().getService().powerOnVMTask(vmInstance, null);
TaskInfo tInfo = (TaskInfo) vmw.getServiceUtil().getDynamicProperty(startTask, "info");
return tInfo;
}
public TaskInfo stop(boolean forceStop) throws Exception {
logger.debug("instanceName: " + instanceName + " forceStop: " + forceStop);
TaskInfo tInfo = null;
if (forceStop) {
logger.debug("Call vSphere API: powerOffVMTask() instanceName: " + instanceName);
ManagedObjectReference stopTask = vmw.getConnection().getService().powerOffVMTask(vmInstance);
tInfo = (TaskInfo) vmw.getServiceUtil().getDynamicProperty(stopTask, "info");
} else {
if (isRunning()) {
logger.debug("Call vSphere API: shutdownGuest() instanceName: " + instanceName);
vmw.getConnection().getService().shutdownGuest(vmInstance);
}
}
return tInfo;
}
public ManagedObjectReference getFolder() {
return folder;
}
public void runScript(VMPropertyHandler paramHandler) throws Exception {
logger.debug("instanceName: " + instanceName);
String scriptURL = paramHandler.getServiceSetting(VMPropertyHandler.TS_SCRIPT_URL);
Script script = Script.getInstance();
if (scriptURL != null) {
try {
script.initScript(paramHandler, detectOs());
script.execute(vmw, vmInstance);
} catch (Exception e) {
script.setScriptExecuting(false);
throw e;
}
}
}
public void updateLinuxVMPassword(VMPropertyHandler paramHandler) throws Exception {
logger.debug("instanceName: " + instanceName);
String password = paramHandler.getServiceSetting(VMPropertyHandler.TS_LINUX_ROOT_PWD);
String updateScript = VMScript.updateLinuxVMRootPassword(password);
Script script = Script.getInstance();
if (updateScript != null) {
script.initScript(paramHandler, detectOs(), updateScript);
script.execute(vmw, vmInstance);
}
}
public boolean isScriptExecuting() {
Script script = Script.getInstance();
return script.isScriptExecuting();
}
public int getNumberOfNICs() throws Exception {
return NetworkManager.getNumberOfNICs(vmw, vmInstance);
}
public String getNetworkName(int numNic) throws Exception {
return NetworkManager.getNetworkName(vmw, vmInstance, numNic);
}
/**
* Reconfigures VMware instance. Memory, CPU, disk space and network adapter. The VM has been
* created and must be stopped to reconfigure the hardware.
*/
public TaskInfo reconfigureVirtualMachine(VMPropertyHandler paramHandler) throws Exception {
logger.debug("instanceName: " + instanceName);
VimPortType service = vmw.getConnection().getService();
VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
vmConfigSpec.setMemoryMB(Long.valueOf(paramHandler.getConfigMemoryMB()));
vmConfigSpec.setNumCPUs(Integer.valueOf(paramHandler.getConfigCPUs()));
String reqUser = paramHandler.getServiceSetting(VMPropertyHandler.REQUESTING_USER);
String comment =
Messages.get(
paramHandler.getLocale(),
"vm_comment",
new Object[] {
paramHandler.getSettings().getOrganizationName(),
paramHandler.getSettings().getSubscriptionId(),
reqUser
});
String annotation = vmConfigSpec.getAnnotation();
comment = updateComment(comment, annotation);
vmConfigSpec.setAnnotation(comment);
DiskManager diskManager = createDiskManager(paramHandler);
diskManager.reconfigureDisks(vmConfigSpec, vmInstance);
configureNetworkAdapter(paramHandler, vmConfigSpec);
logger.debug("Call vSphere API: reconfigVMTask()");
ManagedObjectReference reconfigureTask = service.reconfigVMTask(vmInstance, vmConfigSpec);
return (TaskInfo) vmw.getServiceUtil().getDynamicProperty(reconfigureTask, "info");
}
protected void configureNetworkAdapter(
VMPropertyHandler paramHandler, VirtualMachineConfigSpec vmConfigSpec) throws Exception {
NetworkManager.configureNetworkAdapter(vmw, vmConfigSpec, paramHandler, vmInstance);
}
protected DiskManager createDiskManager(VMPropertyHandler paramHandler) {
return new DiskManager(vmw, paramHandler);
}
public TaskInfo updateCommentField(String comment) throws Exception {
logger.debug("instanceName: " + instanceName + " comment: " + comment);
VimPortType service = vmw.getConnection().getService();
VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
String annotation = vmConfigSpec.getAnnotation();
comment = updateComment(comment, annotation);
vmConfigSpec.setAnnotation(comment);
logger.debug("Call vSphere API: reconfigVMTask()");
ManagedObjectReference reconfigureTask = service.reconfigVMTask(vmInstance, vmConfigSpec);
return (TaskInfo) vmw.getServiceUtil().getDynamicProperty(reconfigureTask, "info");
}
String updateComment(String comment, String annotation) {
if (annotation == null) {
annotation = "";
}
Pattern pattern =
Pattern.compile(
".*" + "CT-MG \\{" + "[\\r\\n]+(.*?)[\\r\\n]+" + "\\}" + ".*", Pattern.DOTALL);
Matcher matcher = pattern.matcher(annotation);
if (matcher.find()) {
return annotation.replace(matcher.group(1), comment);
}
if (annotation.trim().length() == 0) {
return "CT-MG {\n".concat(comment).concat("\n}");
}
return annotation.concat("\n").concat("CT-MG {\n").concat(comment).concat("\n}");
}
/**
* Delete VMware instance on vSphere server.
*
* @param vmw connected VMware client entity
* @param instanceId id of the instance
*/
public TaskInfo delete() throws Exception {
logger.debug("Call vSphere API: destroyTask() instanceName: " + instanceName);
ManagedObjectReference startTask = vmw.getConnection().getService().destroyTask(vmInstance);
return (TaskInfo) vmw.getServiceUtil().getDynamicProperty(startTask, "info");
}
boolean arePortgroupsAvailable(VMPropertyHandler properties) {
int numberOfNICs =
Integer.parseInt(properties.getServiceSetting(VMPropertyHandler.TS_NUMBER_OF_NICS));
for (int i = 1; i <= numberOfNICs; i++) {
if (!properties.getPortGroup(i).isEmpty()) {
return true;
}
}
return false;
}
public VMwareGuestSystemStatus getState(VMPropertyHandler properties) throws Exception {
boolean networkCardsConnected = areNetworkCardsConnected();
boolean validHostname = isValidHostname();
boolean validIp = isValidIp(properties);
logger.debug(
String.format(
"getState networkCardsConnected=%s validHostname=%s, validIp=%s",
String.valueOf(networkCardsConnected),
String.valueOf(validHostname),
String.valueOf(validIp)));
if (isLinux()) {
boolean firstStart =
isNotEmpty(guestInfo.getHostName())
&& !validIp
&& guestIsReady()
&& networkCardsConnected;
boolean secondStart = validHostname && validIp && guestIsReady() && networkCardsConnected;
if (firstStart || secondStart) {
logger.debug("firstStart: " + firstStart + " secondStart: " + secondStart);
return VMwareGuestSystemStatus.GUEST_READY;
}
logger.debug(createLogForGetState(validHostname, properties, networkCardsConnected, validIp));
return VMwareGuestSystemStatus.GUEST_NOTREADY;
}
if (validHostname
&& networkCardsConnected
&& (validIp || arePortgroupsAvailable(properties))
&& guestIsReady()) {
return VMwareGuestSystemStatus.GUEST_READY;
}
logger.debug(createLogForGetState(validHostname, properties, networkCardsConnected, validIp));
return VMwareGuestSystemStatus.GUEST_NOTREADY;
}
boolean guestIsReady() {
return (isGuestSystemRunning() && areGuestToolsRunning());
}
String createLogForGetState(
boolean validHostname,
VMPropertyHandler configuration,
boolean isConnected,
boolean validIp) {
StringBuilder sb = new StringBuilder();
sb.append("Guest system is not ready yet ");
sb.append("[");
sb.append("hostname (" + validHostname + ") =" + guestInfo.getHostName() + ", ");
sb.append("ipReady=" + validIp + ", ");
for (int i = 1; i <= configuration.getNumberOfNetworkAdapter(); i++) {
GuestNicInfo info = getNicInfo(configuration, i);
if (info != null) {
sb.append(info.getNetwork() + "=");
sb.append(info.getIpAddress());
sb.append(",");
}
}
sb.append("guestState=" + guestInfo.getGuestState() + ", ");
sb.append("toolsState=" + guestInfo.getToolsStatus() + ", ");
sb.append("toolsRunning=" + guestInfo.getToolsRunningStatus() + ", ");
sb.append("isConnected=" + isConnected);
sb.append("]");
String logStatement = sb.toString();
return logStatement;
}
private boolean isNotEmpty(String validate) {
return validate != null && validate.length() > 0;
}
boolean areGuestToolsRunning() {
return TOOLS_RUNNING_STATE.equals(guestInfo.getToolsRunningStatus());
}
boolean isGuestSystemRunning() {
return GUEST_STATE_RUNNING.equals(guestInfo.getGuestState());
}
boolean areNetworkCardsConnected() {
boolean isConnected = false;
if (guestInfo.getNet() != null && !guestInfo.getNet().isEmpty()) {
isConnected = true;
}
for (GuestNicInfo nicInfo : guestInfo.getNet()) {
isConnected = isConnected && nicInfo.isConnected();
}
return isConnected;
}
boolean isValidHostname() {
String hostname = guestInfo.getHostName();
return hostname != null
&& hostname.length() > 0
&& hostname.toUpperCase().startsWith(instanceName.toUpperCase());
}
boolean isValidIp(VMPropertyHandler configuration) {
for (int i = 1; i <= configuration.getNumberOfNetworkAdapter(); i++) {
GuestNicInfo info = getNicInfo(configuration, i);
if (info == null) {
return false;
}
if (configuration.isAdapterConfiguredManually(i)) {
logger.debug(String.format("Manual configured IP %s", configuration.getIpAddress(i)));
if (!containsIpAddress(info, configuration.getIpAddress(i))) {
return false;
}
} else {
if (!ipAddressExists(info)) {
logger.debug(String.format("GuestInfo for network %s has no IPs", info.getNetwork()));
return false;
}
}
}
return true;
}
GuestNicInfo getNicInfo(VMPropertyHandler configuration, int i) {
if (configuration.getNetworkAdapter(i).isEmpty()) {
logger.debug(String.format("No network adapter %s", i));
return null;
}
logger.debug(String.format("NIC adapter %s", configuration.getNetworkAdapter(i)));
for (GuestNicInfo info : guestInfo.getNet()) {
boolean dhcp = configuration.isAdapterConfiguredByDhcp(i);
logger.debug(
String.format("GuestInfo IP %s dhcp=%s", info.getIpAddress(), String.valueOf(dhcp)));
if (dhcp) {
return info;
}
logger.debug(String.format("GuestNicInfo.getNetwork = %s", info.getNetwork()));
if (configuration.getNetworkAdapter(i).equals(info.getNetwork())) {
return info;
}
}
return null;
}
boolean containsIpAddress(GuestNicInfo info, String address) {
return info.getIpAddress().contains(address);
}
boolean guestInfoContainsNic(String adapter) {
for (GuestNicInfo info : guestInfo.getNet()) {
if (info.getNetwork().equals(adapter)) {
return true;
}
}
return false;
}
boolean ipAddressExists(GuestNicInfo info) {
if (info.getIpAddress().isEmpty()) {
return false;
}
for (String ip : info.getIpAddress()) {
if (ip == null || ip.trim().length() == 0) {
return false;
}
}
return true;
}
public String generateAccessInfo(VMPropertyHandler paramHandler) throws Exception {
VMwareAccessInfo accInfo = new VMwareAccessInfo(paramHandler);
String accessInfo = accInfo.generateAccessInfo(guestInfo);
logger.debug(
"Generated access information for service instance '" + instanceName + "':\n" + accessInfo);
return accessInfo;
}
protected int getDataDiskKey() throws Exception {
List<VirtualDevice> devices = configSpec.getHardware().getDevice();
int countDisks = 0;
int key = -1;
for (VirtualDevice vdInfo : devices) {
if (vdInfo instanceof VirtualDisk) {
countDisks++;
if (countDisks == 2) {
key = ((VirtualDisk) vdInfo).getKey();
break;
}
}
}
return key;
}
protected String getDiskSizeInGB(int disk) throws Exception {
String size = "";
List<VirtualDevice> devices = configSpec.getHardware().getDevice();
int countDisks = 0;
for (VirtualDevice vdInfo : devices) {
if (vdInfo instanceof VirtualDisk) {
countDisks++;
if (countDisks == disk) {
long gigabyte = ((VirtualDisk) vdInfo).getCapacityInKB() / 1024 / 1024;
size = Long.toString(gigabyte);
break;
}
}
}
return size;
}
public String getTotalDiskSizeInMB() throws Exception {
long megabyte = 0;
List<VirtualDevice> devices = configSpec.getHardware().getDevice();
for (VirtualDevice vdInfo : devices) {
if (vdInfo instanceof VirtualDisk) {
megabyte = megabyte + (((VirtualDisk) vdInfo).getCapacityInKB() / 1024);
}
}
return Long.toString(megabyte);
}
public Integer getNumCPU() {
return configSpec.getHardware().getNumCPU();
}
public Integer getCoresPerCPU() {
return configSpec.getHardware().getNumCoresPerSocket();
}
public String getCPUModel(VMPropertyHandler paramHandler) throws Exception {
String datacenter = paramHandler.getTargetDatacenter();
ManagedObjectReference dataCenterRef =
vmw.getServiceUtil().getDecendentMoRef(null, "Datacenter", datacenter);
if (dataCenterRef == null) {
logger.error("Datacenter not found. dataCenter: " + datacenter);
throw new APPlatformException(
Messages.get(
paramHandler.getLocale(), "error_invalid_datacenter", new Object[] {datacenter}));
}
String hostName = paramHandler.getServiceSetting(VMPropertyHandler.TS_TARGET_HOST);
ManagedObjectReference hostRef =
vmw.getServiceUtil().getDecendentMoRef(dataCenterRef, "HostSystem", hostName);
if (hostRef == null) {
logger.error("Target host " + hostName + " not found");
throw new APPlatformException(Messages.getAll("error_invalid_host", new Object[] {hostName}));
}
return (String) vmw.getServiceUtil().getDynamicProperty(hostRef, "summary.hardware.cpuModel");
}
/** @return fully qualified domain name */
public String getFQDN() {
// TODO do not remove method. Please implement, return FQDN
return "";
}
}
|
java
|
a, body, input, label, li, p, span, table, td, th {
font-family: 'Prompt', sans-serif;
color: #595555;
}
/*Utility class*/
.pointer:hover {cursor: pointer;}
/*Fix color*/
.bg-orange, .bg-orange>a {
color: #ffffff!important;
}
.alert-success>p {
color: #ffffff!important;
}
/*Override component*/
a>.info-box:hover {
background-color: rgb(245, 245, 245);
}
.dropzone {
border: 2px dashed rgba(0,0,0,.3) !important;
}
.dropzone .dz-preview .dz-error-message {
background: linear-gradient(to bottom, #ff1129, #ff1129);
}
.dz-error-message>span {
color: #FFFFFF !important;
}
|
css
|
After Prime Minister Narendra Modi chaired a meeting on cyclone-related issues on Thursday, the Director-General of the National Disaster Response Force (NDRF), Atul Karwal informed that a total of 33 more teams are being deployed at the required places to deal with the situation arising out of the impending cyclone in the Bay of Bengal.
Speaking to ANI, Mr Karwal said, "PM Modi held a meeting today and he has been given the details of the cyclone situation. We are in constant contact with the state governments and assuring them of providing required NDRF teams. "
"A total of 29 teams have already been deployed at the required places. Now a total of 33 teams are also being deployed to deal with the situation. All the people have been taken to safer places," the DG-NDRF added.
The India Meteorological Department (IMD) issued an alert for the formation of a cyclone which is expected to cross the coasts of Andhra Pradesh and Odisha by the morning of December 4, with wind speeds ranging from 90 kmph to 100 kmph, accompanied by heavy rainfall and tidal waves in the coastal districts of these states.
Earlier on Wednesday, Cabinet Secretary Rajiv Gauba in the National Crisis Management Committee (NCMC) meeting reviewed the preparedness of Central ministries agencies and state governments to deal with the situation arising out of the impending cyclone in the Bay of Bengal.
|
english
|
new Vue({
el: '#appUsers',
vuetify: new Vuetify(),
data: () => ({
tab: null,
items: [
'Список пользователей',
'Роли и права',
],
links: {
'users': true,
'roles': false,
},
loaderRoles: false,
validRoles: false,
createRolePermission: {
'newRole': '',
'descriptionRole': '',
'newPermission': '',
'descriptionPermission': '',
'userId': null
},
newRoleRule: [
v => !!v || 'Данное поле должно быть заполнено'
],
descriptionRoleRule: [
v => !!v || 'Данное поле должно быть заполнено'
],
newPermissionRule: [
v => !!v || 'Данное поле должно быть заполнено'
],
descriptionPermissionRule: [
v => !!v || 'Данное поле должно быть заполнено'
],
}),
methods: {
pageNavigation(event) {
if (event.target.innerText == 'СПИСОК ПОЛЬЗОВАТЕЛЕЙ') {
this.links.users = true;
this.links.roles = false;
} else if (event.target.innerText == 'РОЛИ И ПРАВА') {
this.links.users = false;
this.links.roles = true;
}
},
createRoles() {
this.loaderRoles = true;
axios.post('/admin/users/create-role-permission', {
'data': this.createRolePermission
}).then( (response) => {
this.loaderRoles = false;
console.log(response);
}).catch( (error) => {
console.log(error.message)
})
}
}
})
|
javascript
|
{"id":"0350","tableId":"0350","tableType":"User","name":"Occurrence code","chapters":["CH_06"],"entries":[{"value":"01","description":"Auto accident","comment":null},{"value":"02","description":"No fault insurance involved-including auto accident/other","comment":null},{"value":"03","description":"Accident/tort liability","comment":null},{"value":"04","description":"Accident/employment related","comment":null},{"value":"05","description":"Other accident","comment":null},{"value":"06","description":"Crime victim","comment":null},{"value":"09","description":"Start of infertility treatment cycle","comment":null},{"value":"10","description":"Last menstrual period","comment":null},{"value":"11","description":"Onset of symptoms/illness","comment":null},{"value":"12","description":"Date of onset for a chronically dependent individual","comment":null},{"value":"17","description":"Date outpatient occupational therapy plan established or last reviewed","comment":null},{"value":"18","description":"Date of retirement patient/beneficiary","comment":null},{"value":"19","description":"Date of retirement spouse","comment":null},{"value":"20","description":"Guarantee of payment began","comment":null},{"value":"21","description":"UR notice received","comment":null},{"value":"22","description":"Date active care ended","comment":null},{"value":"24","description":"Date insurance denied","comment":null},{"value":"25","description":"Date benefits terminated by primary payor","comment":null},{"value":"26","description":"Date SNF bed available","comment":null},{"value":"27","description":"Date home health plan established","comment":null},{"value":"28","description":"Spouse’s date of birth","comment":null},{"value":"29","description":"Date outpatient physical therapy plan established or last reviewed","comment":null},{"value":"30","description":"Date outpatient speech pathology plan established or last reviewed","comment":null},{"value":"31","description":"Date beneficiary notified of intent to bill (accommodations)","comment":null},{"value":"32","description":"Date beneficiary notified of intent to bill (procedures or treatments)","comment":null},{"value":"33","description":"First day of the Medicare coordination period for ESRD beneficiaries covered by EGHP","comment":null},{"value":"34","description":"Date of election of extended care facilities","comment":null},{"value":"35","description":"Date treatment started for P.T.","comment":null},{"value":"36","description":"Date of inpatient hospital discharge for covered transplant patients","comment":null},{"value":"37","description":"Date of inpatient hospital discharge for non-covered transplant patient","comment":null},{"value":"40","description":"Scheduled date of admission","comment":null},{"value":"41","description":"Date of first test for pre-admission testing","comment":null},{"value":"42","description":"Date of discharge","comment":null},{"value":"43","description":"Scheduled date of canceled surgery","comment":null},{"value":"44","description":"Date treatment started for O.T.","comment":null},{"value":"45","description":"Date treatment started for S.T.","comment":null},{"value":"46","description":"Date treatment started for cardiac rehab.","comment":null},{"value":"47 ... 49","description":"Payer codes","comment":null},{"value":"50","description":"Date lien released","comment":null},{"value":"51","description":"Date treatment started for psychiatric care","comment":null},{"value":"70 ... 99","description":"Occurrence span codes and dates","comment":null},{"value":"A1","description":"Birthdate - insured A","comment":null},{"value":"A2","description":"Effective date - insured A policy","comment":null},{"value":"A3","description":"Benefits exhausted payer A","comment":null}]}
|
json
|
If news reports are to be believed, Putin will become a father once again at the age of 69.
Digital Desk: Amid the Russia-Ukraine conflict, Russian President Vladimir Putin has received some good news. If news reports are to be believed, Putin will become a father once again at the age of 69.
According to the Daily Mail, Putin's secret girlfriend Alina Kabaeva, a former Russian gymnast, is expecting again.
The report, which first surfaced on Monday, has yet to be verified by the Russian President. Reportedly, the news has put Putin in shock.
According to the Russian Telegram channel General SVR, which is thought to be managed by a former Kremlin intelligence official, the pregnancy of the 2004 Olympic gold medalist rhythmic gymnast-turned-media mogul was not a planned one.
The couple already has two children together, which Putin has not confirmed officially. Moreover, from his first marriage, Putin has two daughters. Notably, in October, President Vladimir Putin will turn 70 years old. Let us also mention that the President will undergo cancer surgery in the coming days.
Who is Alina Kabaeva?
Alina Kabaeva is a retired rhythmic gymnast and a Russian politician and media manager. Alina has won two Olympic medals, 14 World Championships, and 21 European Championship medals during her career, making her one of the most successful gymnastics players of all time.
Alina is said to be Putin's girlfriend by many publications, including The Guardian. But Putin has never openly admitted this. Alina is hardly seen in public places. In December 2021, she was last spotted performing in Moscow at the Divine Grace rhythmic gymnastics tournament.
In 1983, Vladimir Putin married Lyudmila Aleksandrovna Ocheretnaya. Both of them divorced in 2014, ending 30 years of marriage. Mariya Putina and Katerina Tikhonova are Putin and Lyudmila's kids. Mariya was born in Leningrad in 1985, and Katerina was born in Germany in 1986.
Meanwhile, Lyudmila married a businessman 21 years younger than her after their divorce.
Daughters completed their studies under a fake identity.
The daughters of Putin and Lyudmila were named after their grandmother. Putin's daughters were enrolled in a German-speaking school when the family moved to Moscow in 1996. However, after Putin was appointed acting President, the daughters were removed from school and teachers began visiting them at home to teach them. With their false identities, both daughters eventually completed their courses.
Putin is a grandfather too.
According to international media reports, Mariya Putin, Putin's 36-year-old daughter, resides in Moscow with her Dutch husband. Mariya, a medical researcher, is also a mother. In 2017, Putin revealed to director Oliver Stone that he is a grandfather.
When Stone inquired if he had ever played with his grandchild, Putin said, "Unfortunately, very few times. " on the other hand, Katerina, the second daughter, is an acrobat dancer. In 2013, Katerina Tikhonova married Kirill Shamalov, a Russian billionaire. However, in the year 2018, the couple got divorced.
|
english
|
{"appid": 321310, "name": "<NAME>", "windows": true, "mac": false, "linux": true, "early_access": true, "lookup_time": 1490978788}
|
json
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" href="favicon.ico" type="image/png">
<title>Wrapper Online</title>
<meta name="description" content="Wrapper Online is a GoAnimate Private Server remake revived by the community!">
<meta property="og:type" content="website">
<meta property="og:title" content="Wrapper Online" />
<meta property="og:description" content="Wrapper Online is a GoAnimate Private Server remake revived by the community!" />
<meta property="og:url" content="https://wrapper.online" />
<meta property="og:image" content="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/modern-normalize.css">
<link rel="stylesheet" type="text/css" href="css/global.css">
</head>
<body>
<header>
<div>
<h1 style="margin:0"><img id="logo" src="logo.png" alt="Wrapper: Online"/></h1>
</div>
</header>
<main>
<h2 id="welcome-to-the-home-of-the-asset-servers-for-wrapper-offline">Wrapper Online is closed but assets will still exist</h2>
<p>It’s most likely <a style="color:#777; cursor:pointer" id="cleverlydone" onclick="misterfreeman.play()" but="">you’re not supposed to be here</a>.<br />
You probably got here through the magic known as the Network tab.<br />
If you meant to come here, feel free to look around and do stuff. Maybe you’ll find a secret…</p>
<p><a href="/credits">Click here to view the credits</a></p>
<p><a href="https://github.com/2Epik4u/Wrapper-Online-assets">Click here to view the Wrapper: Online's asset server using github</a></p>
<p><a href="/brokethebatter">make a cool video</a></p>
</main>
</body></html>
|
html
|
Great to have you all my dear friends around once more. How are we all doing today? Hope we all had a wonderful weekend.
We are now in the 4th week of the Steemit Engagement challenge Season 3. This time, I will be engaging in the challenge of steemkids community with the title W4:Childhood or adulthood, which do you prefer?
When I saw this challenge topic, I was laughing all the way. Because it is very funny and interesting. Well let me go straight to the challenge tips to talk more on this.
A child can have several meanings depending on the angle or statement to which it is applied.
A child can mean someone below the age of puberty or below the age of an adult.
It could also mean the son or daughter of a parent. The term could also refer to someone who acts immaturely or irresponsibly in issues.
Despite all these definitions my country have its own definition of a child. In Nigeria, a child is someone is between the ages of 0 years to 17.999 years.
So once a person is eighteen years, he is no more a child but treated as an adult, taking full responsibility of his actions whether good or bad.
As earlier said, an adult is a person who is 18 years and above in age. Such a person is said to be a grown up, having the ability to take his or her own decisions, thus being held accountable for his inactions.
To further confirm this, such a person can register for his voters card. To be able to exercise his right of voting and be voted for, process his national identity card, engage in any contract including marriage and be liable for them.
Personally, I would prefer Childhood to Adulthood for these reasons.
° As a child you do not bother yourself with the problems of an adult. You do not think about what the Future will be, about whom to marry or even money.
° As a child you get the most of the attention you need from your loving parents and guardians. They are always interested in your well-being and happiness.
°.Childhood offers an opportunity to learn and acquire so many skills as quickly as possible. This is because the brains is at a very high absorption level unlike when we are adults, the speed of learning reduces drastically.
° A child imaginative thinking can run wild, trying out new things without fear of failure and being adjudged negatively by other people. This part of a child is not enjoyed by an adult.
However, I would like to say briefly that each of the stages are good. What most people would choose is dependent on their experiences on each level whether childhood to Adulthood.
If you have pictures of your childhood and adulthood, we will like to see it.
Unfortunately, I do not have my childhood photos with me where I live now. My childhood photographs are in my hometown and cannot access them right now.
However, I have my adulthood pictures and I cherish them so much.
This is actually a lovely contest. Talking about adulthood and childhood reminds us of both good and bad memories. Unfortunately, we cannot go back to being a child again, but we can make good of our adulthood and get the best from it.
I invite @goodybest, @benson6 and @madilyn02 to join in this contest.
|
english
|
class TextManipulation:
def formatText(text):
newText = text.replace("&", "\n")
return newText
|
python
|
1 Saña, tee nija'nu kúu sa, te tée sa nuu ndaka ni ja ni ka nduu ni sa'ya Su'si o ma ja ni kaji ña'a maa Su'si ma. Kútoo ndija ña'a sa, te masu maa in‑ni sa kútoo ña'a, nú masu ja ndaka tna'a o a ja ni ka jini i ja ndaa ma,
2 tna'a ja ndaa ja iyo ini anua o a te jin koo ji'in o ni‑kani ni‑jika.
3 Yuva o Su'si ma ji'in Jesucristo Sa'ya maa Yuva o ma, na skuta'vi ña'a ya ja vii ja va'a ma, te kúnda'vi ini ña'a ya, te sa'a ya ja jin koo mani ndaka o, sukan ka kandija o ja ndaa ma te ka kutoo tna'a o ma.
4 Ni kusii ini xeen sa ja ni jini sa ja jaku ni ja ni ka nduu o sa'ya Su'si ma, te ka sa'a ndija ni sukan ni tatnuni Yuva o Su'si ma.
5 Te vitna jikan‑ta'vi sa nuu ni ja ûni jín kutoo tna'a ndi‑in ndi‑in o. Masu in tnu'u jaa kúu tnu'u ya'a ja tátnuni sa nuu ni a, nú masu ja in tnu'u ja jâ ni tatnuni ya onde xinañu'u ma kúu i.
6 Te nuna jin ko kutoo tna'a o ma, jin sa'a o sukan ni tatnuni ya ma. Te tnu'u ya'a kúu tnu'u ni ka jiniso'o ni onde xinañu'u ma, ja jín kutoo tna'a o sukan ká'an ya ma.
7 Jin koto va'a ni maa ni, vaa ka iyo kua'a ñayii ñuu ñayivi a ja ka ka'an i ja Jesucristo ma, masu ni kii ñayivi ya ñuu ñayivi a, te sukan jin xnda'vi ña'a i. Te na in ká'an sa'a, ñayii xnda'vi ña'a kúu i, te ñayii jini u'vi nuu Jesucristo ma kúu i.
8 Jin konde'ya ni ja jin kuu maa ni, sukan‑va'a má jin skenaa ni ndaka ja skuta'vi ña'a Su'si ma ja ka satniñu o a.
9 Ndeva'a‑ni na in ndúnaa ja ndaa ma te ñatuu tníi i ja ko kuu i sukan ká'an tnu'u Cristo ma, ñatuu iyo i ji'in Su'si ma. Te ñayii tníi i te sa'a i sukan ká'an tnu'u Cristo ma, ñayii yukan kúu ñayii iyo ji'in Yuva o Su'si ma ji'in Sa'ya ya Jesucristo ma.
10 Nú na in kenda nuu ka iyo ni a te ñatuu ká'an i sukan ká'an tnu'u Cristo ma, má jin kuan‑ta'vi ni i nuu ka iyo ni a, ni a jin kuña'a ni: “¡Va'a sa'a ni ja ni kenda ni, te jinkoo ni!”, vaa in ñayii sa'a ja u'vi kúu i.
11 Vaa nú na in jiña'a: “¡Va'a sa'a ni ja ni kenda ni, te jinkoo ni!”, chi kétna'a ini i ji'in ñayii sa'a ja u'vi ma.
12 Iyo kua'a xeen ja tee sa nuu ni, kovaa ñatuu kúni sa ja tee sa ndaka nuu tutu a ji'in tinta a, vaa ndetu sa ja jaan maa sa, te nuu nuu o jin ndatnu'u o a, sukan‑va'a jin ndusii ini ndija o.
13 Ñayii ni ka nduu sa'ya Su'si ma, tna'a ñayii ni kaji ya ma, ka ndakan‑tnu'u ñaña'a ña i. Te sukan kó kuu.
|
english
|
from torch.nn.modules.loss import _Loss
import torch
from enum import Enum
from typing import Union
class Mode(Enum):
BINARY = "binary"
MULTICLASS = "multiclass"
MULTILABEL = "multilabel"
class Reduction(Enum):
SUM = "sum"
MEAN = "mean"
NONE = "none"
SAMPLE_SUM = "sample_sum" # mean by sample dim + sum by batch dim
def _reduce(x: torch.Tensor, reduction: Union[str, Reduction]="mean") -> torch.Tensor:
r"""Reduce input in batch dimension if needed.
Args:
x: Tensor with shape (N, *).
reduction: Specifies the reduction type:
``'none'`` | ``'mean'`` | ``'sum'``. Default: ``'mean'``
"""
reduction = Reduction(reduction)
if reduction == Reduction.NONE:
return x
elif reduction == Reduction.MEAN:
return x.mean()
elif reduction == Reduction.SUM:
return x.sum()
else:
raise ValueError("Uknown reduction. Expected one of {'none', 'mean', 'sum'}")
class Loss(_Loss):
"""Loss which supports addition and multiplication"""
def __add__(self, other):
if isinstance(other, Loss):
return SumOfLosses(self, other)
else:
raise ValueError("Loss should be inherited from `Loss` class")
def __radd__(self, other):
return self.__add__(other)
def __mul__(self, value):
if isinstance(value, (int, float)):
return WeightedLoss(self, value)
else:
raise ValueError("Loss should be multiplied by int or float")
def __rmul__(self, other):
return self.__mul__(other)
class WeightedLoss(Loss):
"""
Wrapper class around loss function that applies weighted with fixed factor.
This class helps to balance multiple losses if they have different scales
"""
def __init__(self, loss, weight=1.0):
super().__init__()
self.loss = loss
self.register_buffer("weight", torch.tensor([weight]))
def forward(self, *inputs):
return self.loss(*inputs) * self.weight[0]
class SumOfLosses(Loss):
def __init__(self, l1, l2):
super().__init__()
self.l1 = l1
self.l2 = l2
def __call__(self, *inputs):
return self.l1(*inputs) + self.l2(*inputs)
|
python
|
{
"name": "Template",
"description": "Template",
"description-de": "Vorlage/Muster",
"doc": "widgets/Template/doc.html",
"url": "apps/WidgetLoader?widget=Template&",
"icon": "widgets/Template/icon.png",
"width": 800,
"height": 480,
"args": ""
}
|
json
|
116/7 (17. 0 ov)
119/4 (16. 1 ov)
172/7 (20. 0 ov)
157 (20. 0 ov)
Australia named Ashton Agar as Steve O'Keefe's replacement and will partner with Nathan Lyon in the spin department.
Ricky Ponting believes the upcoming Ashes series against England will be the biggest challenge for current skipper Steven Smith.
0 number of clashes between India and Bangladesh in Champions Trophy history. This will be their maiden face-off in the tournament’s history.
From a Photoshopped image featuring a beheaded MS Dhoni or another depicting Virat Kohli as a cobbler, fans from this nation leave no stone unturned to bury India under a barrage of trolls.
ICC Champions Trophy 2017: This will be Bangladesh's first semi-final in the tournament's history when they face India on Thursday.
Pakistan head into Champions Trophy semi-final with England in Cardiff on Wednesday, as coach Mickey Arthur believes their “best game” could see his side cause a major upset.
0 number of clashes between England and Pakistan in Champions Trophy history. This will be their maiden face-off in the tournament's history.
ICC Champions Trophy 2017: England and Pakistan meet in a major ICC ODI tournament after a huge gap of 5,225 days.
Bailey has opined that out of favour all-rounder Mitchell Marsh could do for Australia what Stokes has been doing for England. In his latest column, Bailey has said Marsh junior has the ability to emulate Stokes’ heroics.
चैंपियंस ट्रॉफी के बाद अनिल कुंबले का कार्यकाल खत्म होने वाला था।
|
english
|
The versatile director of Tollywood, Gunasekhar who defined the new age Cinema with his maverick films is going to have a low key birthday (June 02) celebrations this year. The Director is all set to bounce back yet again with a historical film with young actor Rana in and as 'Hiranya Kashapa'
The fans of the Director are wishing him on his birthday on Twitter and are showering heaps and praises for the director's journey.
Yes, Gunasekhar has come from Ram Gopal Varma's School. He is one of the assistants to RGV for the film 'Shiva'. Gunasekhar over the years have crafted master pieces on silver screen namely 'Chudalani Undi', 'Manoharam' and 'Okkadu' to name a few.
His last film as a director and producer was the historical 'Rudramadevi' starring Anushka and Rana in the lead. The film scored a decent hit at the Box Office and saved the Director from becoming bankrupt!
Now the Director is busy in the pre production work of his next historical big film 'Hiranya Kashapa' with Rana.
Gunasekhar to his credit remains in the hearts of Tollywood film lovers with his films children Ramayana and 'Okkadu' that was remade in almost all the major film languages. Early 2000's was just Gunasekhar and his Okkadu such was his fame! He is the only director to make three films with Mahesh babu first and to resurrect the career of Mahesh Babu.
Tupaki. Com Wishes Gunasekhar A Happy Birthday.
|
english
|
<reponame>swrobel/fhir<gh_stars>100-1000
{"resourceType":"SearchParameter","id":"SearchParameter-date","url":"http://hl7.org/fhir/SearchParameter/SearchParameter-date","name":"date","status":"draft","experimental":false,"date":"2017-04-19T07:44:43+10:00","publisher":"Health Level Seven International (FHIR Infrastructure)","contact":[{"telecom":[{"system":"url","value":"http://hl7.org/fhir"}]},{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg/index.cfm"}]}],"code":"date","base":["SearchParameter"],"type":"date","description":"The search parameter publication date","expression":"SearchParameter.date","xpath":"f:SearchParameter/f:date","xpathUsage":"normal"}
|
json
|
# A 以上 B 以下の整数のうち、回文数となるものの個数を求めてください。
# ただし、回文数とは、先頭に 0 をつけない 10 進表記を文字列として見たとき、
# 前から読んでも後ろから読んでも同じ文字列となるような正の整数のことを指します。
# 文字列を逆順にして、同じ桁数の値をみる
a, b = map(int, input().split())
cnt = 0
for i in range(a, b+1):
s = str(i)
s_r = s[::-1]
n = int(len(str(s))/2)
if s[: n] == s_r[:n]:
cnt += 1
print(cnt)
|
python
|
<gh_stars>10-100
# coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Data generator for the timeseries problem."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
def generate_data(timeseries_length, timeseries_params):
"""Generates synthetic timeseries using input parameters.
Each generated timeseries has timeseries_length data points.
Parameters for each timeseries are specified by timeseries_params.
Args:
timeseries_length: Number of data points to generate for each timeseries.
timeseries_params: Parameters used to generate the timeseries. The following
parameters need to be specified for each timeseries:
m = Slope of the timeseries used to compute the timeseries trend.
b = y-intercept of the timeseries used to compute the timeseries trend.
A = Timeseries amplitude used to compute timeseries period.
freqcoeff = Frequency coefficient used to compute timeseries period.
rndA = Random amplitude used to inject noise into the timeseries.
fn = Base timeseries function (np.cos or np.sin).
Example params for two timeseries.
[{"m": 0.006, "b": 300.0, "A":50.0, "freqcoeff":1500.0, "rndA":15.0,
"fn": np.sin},
{"m": 0.000, "b": 500.0, "A":35.0, "freqcoeff":3500.0, "rndA":25.0,
"fn": np.cos}]
Returns:
Multi-timeseries (list of list).
"""
x = range(timeseries_length)
multi_timeseries = []
for p in timeseries_params:
# Trend
y1 = [p["m"] * i + p["b"] for i in x]
# Period
y2 = [p["A"] * p["fn"](i / p["freqcoeff"]) for i in x]
# Noise
y3 = np.random.normal(0, p["rndA"], timeseries_length).tolist()
# Sum of Trend, Period and Noise. Replace negative values with zero.
y = [max(a + b + c, 0) for a, b, c in zip(y1, y2, y3)]
multi_timeseries.append(y)
return multi_timeseries
|
python
|
{
"name": "BX20",
"description": "A reverberation unit.",
"url": "https://www.akg.com/pro/p/bx20"
}
|
json
|
export interface IAuthReset {
password: string,
retype: string
}
|
typescript
|
<reponame>MichielStock/SelectedTopicsOptimization<filename>Chapters/02.Unconstrained/figure_btls.py
"""
Created on Tuesday 13 February 2019
Last update: -
@author: <NAME>
<EMAIL>
Figure BTLS
"""
from teachingtools import *
fig = show_inexact_ls(alpha=0.4, beta=0.9, Dx=10)
fig.savefig('Figures/btls.png')
|
python
|
import React from 'react';
import { DialogDecorator, dialogDecoratorArgs } from '../../decorators';
import { SUIT } from '../../types';
import { TrumpChosenDialog, TrumpChosenDialogProps } from '.';
export default {
component: TrumpChosenDialog,
decorators: [DialogDecorator],
title: 'dialogs/TrumpChosenDialog',
};
export const HeartsChosen = (props: TrumpChosenDialogProps) => (
<TrumpChosenDialog
{...props}
{...dialogDecoratorArgs}
/>
);
HeartsChosen.args = {
open: true,
trumpSuit: SUIT.HEARTS,
};
export const JesterChosen = (props: TrumpChosenDialogProps) => (
<TrumpChosenDialog
{...props}
{...dialogDecoratorArgs}
open={true}
trumpSuit={SUIT.JESTER}
/>
);
|
typescript
|
Babar Azam, the captain of Pakistan, garnered many admirers when he tweeted that he was rooting for Virat Kohli, who is going through a hard time. In the aftermath of Kohli’s 16-run dismissal in the second One-Day International against England, Babar tweeted, “This too shall pass.” As soon as the tweet became widely known, admirers began thanking Babar for standing with Kohli.
Babar spoke at a news conference the day before the opening Test against Sri Lanka when he was questioned about his tweet about Virat Kohli.
As a player myself, I know you can go through such a phase (out of form) and I also know what a player goes through in such a phase. In those times, you need support. I just tweeted thinking that it will give just some support. He is one of the best players,” Babar said during a press conference.
“He is playing a lot of cricket and he knows how to come out of these situations. It takes time, if you back players, it will be really good,” he added.
Fans frequently debate who of the two stars, Babar and Kohli, can hit a greater cover drive because they are two of the current top batters.
When Kohli chased a wide pitch beyond the off-stump in the second One-Day International against England, Jos Buttler took an easy catch and Kohli was out for yet another low score.
Since scoring his last international century in 2019, Kohli has failed to reach the three-figure mark. The Edgbaston Test and the subsequent two T20Is against England saw the batter struggle to get going.
Kohli will be playing the last ODI against England and would hope that he gets back into runs as he won’t be playing the West Indies series.
|
english
|
use rustc::mir::visit::Visitor;
use rustc::mir::TerminatorKind;
use rustc::mir::{BasicBlock, Body, Location, Place, ReadOnlyBodyAndCache, Rvalue};
use rustc::mir::{BorrowKind, Mutability, Operand};
use rustc::mir::{Statement, StatementKind};
use rustc::ty::TyCtxt;
use rustc_data_structures::graph::dominators::Dominators;
use crate::dataflow::indexes::BorrowIndex;
use crate::borrow_check::{
borrow_set::BorrowSet, facts::AllFacts, location::LocationTable, path_utils::*, AccessDepth,
Activation, ArtificialField, Deep, JustWrite, LocalMutationIsAllowed, MutateMode, Read,
ReadKind, ReadOrWrite, Reservation, Shallow, Write, WriteAndRead, WriteKind,
};
pub(super) fn generate_invalidates<'tcx>(
tcx: TyCtxt<'tcx>,
all_facts: &mut Option<AllFacts>,
location_table: &LocationTable,
body: ReadOnlyBodyAndCache<'_, 'tcx>,
borrow_set: &BorrowSet<'tcx>,
) {
if all_facts.is_none() {
// Nothing to do if we don't have any facts
return;
}
if let Some(all_facts) = all_facts {
let _prof_timer = tcx.prof.generic_activity("polonius_fact_generation");
let dominators = body.dominators();
let mut ig = InvalidationGenerator {
all_facts,
borrow_set,
tcx,
location_table,
body: &body,
dominators,
};
ig.visit_body(body);
}
}
struct InvalidationGenerator<'cx, 'tcx> {
tcx: TyCtxt<'tcx>,
all_facts: &'cx mut AllFacts,
location_table: &'cx LocationTable,
body: &'cx Body<'tcx>,
dominators: Dominators<BasicBlock>,
borrow_set: &'cx BorrowSet<'tcx>,
}
/// Visits the whole MIR and generates `invalidates()` facts.
/// Most of the code implementing this was stolen from `borrow_check/mod.rs`.
impl<'cx, 'tcx> Visitor<'tcx> for InvalidationGenerator<'cx, 'tcx> {
fn visit_statement(&mut self, statement: &Statement<'tcx>, location: Location) {
self.check_activations(location);
match statement.kind {
StatementKind::Assign(box (ref lhs, ref rhs)) => {
self.consume_rvalue(location, rhs);
self.mutate_place(location, lhs, Shallow(None), JustWrite);
}
StatementKind::FakeRead(_, _) => {
// Only relevant for initialized/liveness/safety checks.
}
StatementKind::SetDiscriminant { ref place, variant_index: _ } => {
self.mutate_place(location, place, Shallow(None), JustWrite);
}
StatementKind::LlvmInlineAsm(ref asm) => {
for (o, output) in asm.asm.outputs.iter().zip(asm.outputs.iter()) {
if o.is_indirect {
// FIXME(eddyb) indirect inline asm outputs should
// be encoded through MIR place derefs instead.
self.access_place(
location,
output,
(Deep, Read(ReadKind::Copy)),
LocalMutationIsAllowed::No,
);
} else {
self.mutate_place(
location,
output,
if o.is_rw { Deep } else { Shallow(None) },
if o.is_rw { WriteAndRead } else { JustWrite },
);
}
}
for (_, input) in asm.inputs.iter() {
self.consume_operand(location, input);
}
}
StatementKind::Nop
| StatementKind::AscribeUserType(..)
| StatementKind::Retag { .. }
| StatementKind::StorageLive(..) => {
// `Nop`, `AscribeUserType`, `Retag`, and `StorageLive` are irrelevant
// to borrow check.
}
StatementKind::StorageDead(local) => {
self.access_place(
location,
&Place::from(local),
(Shallow(None), Write(WriteKind::StorageDeadOrDrop)),
LocalMutationIsAllowed::Yes,
);
}
}
self.super_statement(statement, location);
}
fn visit_terminator_kind(&mut self, kind: &TerminatorKind<'tcx>, location: Location) {
self.check_activations(location);
match kind {
TerminatorKind::SwitchInt { ref discr, switch_ty: _, values: _, targets: _ } => {
self.consume_operand(location, discr);
}
TerminatorKind::Drop { location: ref drop_place, target: _, unwind: _ } => {
self.access_place(
location,
drop_place,
(AccessDepth::Drop, Write(WriteKind::StorageDeadOrDrop)),
LocalMutationIsAllowed::Yes,
);
}
TerminatorKind::DropAndReplace {
location: ref drop_place,
value: ref new_value,
target: _,
unwind: _,
} => {
self.mutate_place(location, drop_place, Deep, JustWrite);
self.consume_operand(location, new_value);
}
TerminatorKind::Call {
ref func,
ref args,
ref destination,
cleanup: _,
from_hir_call: _,
} => {
self.consume_operand(location, func);
for arg in args {
self.consume_operand(location, arg);
}
if let Some((ref dest, _ /*bb*/)) = *destination {
self.mutate_place(location, dest, Deep, JustWrite);
}
}
TerminatorKind::Assert { ref cond, expected: _, ref msg, target: _, cleanup: _ } => {
self.consume_operand(location, cond);
use rustc::mir::AssertKind;
if let AssertKind::BoundsCheck { ref len, ref index } = *msg {
self.consume_operand(location, len);
self.consume_operand(location, index);
}
}
TerminatorKind::Yield { ref value, resume, resume_arg, drop: _ } => {
self.consume_operand(location, value);
// Invalidate all borrows of local places
let borrow_set = self.borrow_set.clone();
let resume = self.location_table.start_index(resume.start_location());
for i in borrow_set.borrows.indices() {
if borrow_of_local_data(&borrow_set.borrows[i].borrowed_place) {
self.all_facts.invalidates.push((resume, i));
}
}
self.mutate_place(location, resume_arg, Deep, JustWrite);
}
TerminatorKind::Resume | TerminatorKind::Return | TerminatorKind::GeneratorDrop => {
// Invalidate all borrows of local places
let borrow_set = self.borrow_set.clone();
let start = self.location_table.start_index(location);
for i in borrow_set.borrows.indices() {
if borrow_of_local_data(&borrow_set.borrows[i].borrowed_place) {
self.all_facts.invalidates.push((start, i));
}
}
}
TerminatorKind::Goto { target: _ }
| TerminatorKind::Abort
| TerminatorKind::Unreachable
| TerminatorKind::FalseEdges { real_target: _, imaginary_target: _ }
| TerminatorKind::FalseUnwind { real_target: _, unwind: _ } => {
// no data used, thus irrelevant to borrowck
}
}
self.super_terminator_kind(kind, location);
}
}
impl<'cx, 'tcx> InvalidationGenerator<'cx, 'tcx> {
/// Simulates mutation of a place.
fn mutate_place(
&mut self,
location: Location,
place: &Place<'tcx>,
kind: AccessDepth,
_mode: MutateMode,
) {
self.access_place(
location,
place,
(kind, Write(WriteKind::Mutate)),
LocalMutationIsAllowed::ExceptUpvars,
);
}
/// Simulates consumption of an operand.
fn consume_operand(&mut self, location: Location, operand: &Operand<'tcx>) {
match *operand {
Operand::Copy(ref place) => {
self.access_place(
location,
place,
(Deep, Read(ReadKind::Copy)),
LocalMutationIsAllowed::No,
);
}
Operand::Move(ref place) => {
self.access_place(
location,
place,
(Deep, Write(WriteKind::Move)),
LocalMutationIsAllowed::Yes,
);
}
Operand::Constant(_) => {}
}
}
// Simulates consumption of an rvalue
fn consume_rvalue(&mut self, location: Location, rvalue: &Rvalue<'tcx>) {
match *rvalue {
Rvalue::Ref(_ /*rgn*/, bk, ref place) => {
let access_kind = match bk {
BorrowKind::Shallow => {
(Shallow(Some(ArtificialField::ShallowBorrow)), Read(ReadKind::Borrow(bk)))
}
BorrowKind::Shared => (Deep, Read(ReadKind::Borrow(bk))),
BorrowKind::Unique | BorrowKind::Mut { .. } => {
let wk = WriteKind::MutableBorrow(bk);
if allow_two_phase_borrow(bk) {
(Deep, Reservation(wk))
} else {
(Deep, Write(wk))
}
}
};
self.access_place(location, place, access_kind, LocalMutationIsAllowed::No);
}
Rvalue::AddressOf(mutability, ref place) => {
let access_kind = match mutability {
Mutability::Mut => (
Deep,
Write(WriteKind::MutableBorrow(BorrowKind::Mut {
allow_two_phase_borrow: false,
})),
),
Mutability::Not => (Deep, Read(ReadKind::Borrow(BorrowKind::Shared))),
};
self.access_place(location, place, access_kind, LocalMutationIsAllowed::No);
}
Rvalue::Use(ref operand)
| Rvalue::Repeat(ref operand, _)
| Rvalue::UnaryOp(_ /*un_op*/, ref operand)
| Rvalue::Cast(_ /*cast_kind*/, ref operand, _ /*ty*/) => {
self.consume_operand(location, operand)
}
Rvalue::Len(ref place) | Rvalue::Discriminant(ref place) => {
let af = match *rvalue {
Rvalue::Len(..) => Some(ArtificialField::ArrayLength),
Rvalue::Discriminant(..) => None,
_ => unreachable!(),
};
self.access_place(
location,
place,
(Shallow(af), Read(ReadKind::Copy)),
LocalMutationIsAllowed::No,
);
}
Rvalue::BinaryOp(_bin_op, ref operand1, ref operand2)
| Rvalue::CheckedBinaryOp(_bin_op, ref operand1, ref operand2) => {
self.consume_operand(location, operand1);
self.consume_operand(location, operand2);
}
Rvalue::NullaryOp(_op, _ty) => {}
Rvalue::Aggregate(_, ref operands) => {
for operand in operands {
self.consume_operand(location, operand);
}
}
}
}
/// Simulates an access to a place.
fn access_place(
&mut self,
location: Location,
place: &Place<'tcx>,
kind: (AccessDepth, ReadOrWrite),
_is_local_mutation_allowed: LocalMutationIsAllowed,
) {
let (sd, rw) = kind;
// note: not doing check_access_permissions checks because they don't generate invalidates
self.check_access_for_conflict(location, place, sd, rw);
}
fn check_access_for_conflict(
&mut self,
location: Location,
place: &Place<'tcx>,
sd: AccessDepth,
rw: ReadOrWrite,
) {
debug!(
"invalidation::check_access_for_conflict(location={:?}, place={:?}, sd={:?}, \
rw={:?})",
location, place, sd, rw,
);
let tcx = self.tcx;
let body = self.body;
let borrow_set = self.borrow_set.clone();
let indices = self.borrow_set.borrows.indices();
each_borrow_involving_path(
self,
tcx,
body,
location,
(sd, place),
&borrow_set.clone(),
indices,
|this, borrow_index, borrow| {
match (rw, borrow.kind) {
// Obviously an activation is compatible with its own
// reservation (or even prior activating uses of same
// borrow); so don't check if they interfere.
//
// NOTE: *reservations* do conflict with themselves;
// thus aren't injecting unsoundenss w/ this check.)
(Activation(_, activating), _) if activating == borrow_index => {
// Activating a borrow doesn't generate any invalidations, since we
// have already taken the reservation
}
(Read(_), BorrowKind::Shallow)
| (Read(_), BorrowKind::Shared)
| (Read(ReadKind::Borrow(BorrowKind::Shallow)), BorrowKind::Unique)
| (Read(ReadKind::Borrow(BorrowKind::Shallow)), BorrowKind::Mut { .. }) => {
// Reads don't invalidate shared or shallow borrows
}
(Read(_), BorrowKind::Unique) | (Read(_), BorrowKind::Mut { .. }) => {
// Reading from mere reservations of mutable-borrows is OK.
if !is_active(&this.dominators, borrow, location) {
// If the borrow isn't active yet, reads don't invalidate it
assert!(allow_two_phase_borrow(borrow.kind));
return Control::Continue;
}
// Unique and mutable borrows are invalidated by reads from any
// involved path
this.generate_invalidates(borrow_index, location);
}
(Reservation(_), _) | (Activation(_, _), _) | (Write(_), _) => {
// unique or mutable borrows are invalidated by writes.
// Reservations count as writes since we need to check
// that activating the borrow will be OK
// FIXME(bob_twinkles) is this actually the right thing to do?
this.generate_invalidates(borrow_index, location);
}
}
Control::Continue
},
);
}
/// Generates a new `invalidates(L, B)` fact.
fn generate_invalidates(&mut self, b: BorrowIndex, l: Location) {
let lidx = self.location_table.start_index(l);
self.all_facts.invalidates.push((lidx, b));
}
fn check_activations(&mut self, location: Location) {
// Two-phase borrow support: For each activation that is newly
// generated at this statement, check if it interferes with
// another borrow.
for &borrow_index in self.borrow_set.activations_at_location(location) {
let borrow = &self.borrow_set[borrow_index];
// only mutable borrows should be 2-phase
assert!(match borrow.kind {
BorrowKind::Shared | BorrowKind::Shallow => false,
BorrowKind::Unique | BorrowKind::Mut { .. } => true,
});
self.access_place(
location,
&borrow.borrowed_place,
(Deep, Activation(WriteKind::MutableBorrow(borrow.kind), borrow_index)),
LocalMutationIsAllowed::No,
);
// We do not need to call `check_if_path_or_subpath_is_moved`
// again, as we already called it when we made the
// initial reservation.
}
}
}
|
rust
|
WHAT: “Pursuing photography is my humble effort to capture and share various moods of creations of God and mankind with the hope to spread smiles and trigger a few thoughts. It has been an amazing journey through the days of black and white to colour photography on the traditional medium of film rolls or 35 mm transparencies and finally the digital images,” says Ashwini Attri, talking about his solo exhibition of photographs titled, ‘Third Eye. ’ An auditor by profession, Attri is an amateur photographer and became interested in photography during his college days. Since then, he has been trying his hand at capturing nature, monuments, portraits, flora and fauna, candid moments, and anything which interests him. The exhibits displayed are digital images clicked with Nikon DSLRs D70s and D90 and he plays with light and shade to bring forward the beauty of the known and unknown aspects of our lives and surroundings.
|
english
|
Facebook's new app, Threads, is challenging Twitter's dominance in the social media space. Twitter CEO Jack Dorsey has criticized Threads for copying his brainchild.
Facebook founder Mark Zuckerberg has sent a request to his Twitter counterpart Jack Dorsey on new launched platform Threads. Dorsey, who slammed the Threads, has surprisingly made his account on the platform.
Threads, which has seen over 150 million downloads, has challenged Twitter severely — which has struggled since it was taken private by Elon Musk.
However, Dorsey has continued to slam Threads for copying his brainchild Twitter. Dorsey once tweeted, "All your Threads belong to us [sic]" along with a screenshot of the Threads app screen on his iPhone which shows that the app needs at least 14 permissions to run.
Meta launched Threads on 5 July for iOS and Android users in 100 countries and is currently free on the App Store. The app is running without ads now.
It remains to be seen where the battle between the two big tech companies will end as of now Threads has continued to set new records for user growth since its launch earlies this month, with celebrities, politicians, and other newsmakers joining the platform.
Twitter had nearly 240 million monetizable daily active users as of July last year, according to the company's last public disclosure before Musk's takeover, although data from web analytics companies indicates usage has dropped since then.
It’s still early days, but Threads could generate some serious cash for the social media giant, according to Evercore ISI.
Threads will reach close to 200 million daily active users and generate about $8 billion in annual revenue over the next two years, Evercore ISI analysts estimate.
Milestone Alert! Livemint tops charts as the fastest growing news website in the world 🌏 Click here to know more.
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
|
<filename>out/refract/article_289.json
{
"year": "2011",
"metaSession": "3",
"pdf1page": "http://editions-rnti.fr/render_pdf.php?p1&p=1000947",
"pdfarticle": "http://editions-rnti.fr/render_pdf.php?p=1000947",
"abstract": "Des travaux récents (Pilaszy et al., 2009) suggèrent que les métadonnées sont quasiment inutiles pour les systèmes de recommandation, y compris en situation de cold-start : les données de logs de notation sont beaucoup plus informatives. Nous étudions, sur une base de référence de logs d'usages pour la recommandation automatique de DVD (Netflix), les performances de systèmes de recommandation basés sur des sources de données collaboratives, thématiques et hybrides en situation de démarrage à froid (cold-start). Nous exhibons des cas expérimentaux où les métadonnées apportent plus que les données de logs d'usage (collaboratives) pour la performance prédictive. Pour gérer le cold-start d'un système de recommandation, nous montrons que des approches en cascade, thématiques puis hybrides, puis collaboratives, seraient plus appropriées.",
"title": "Apport des données thématiques dans les systèmes de recommandation : hybridation et démarrage à froid",
"placeAut":[{
"place":"Lannion",
"country":"France",
"location":{
"lat":"48.732084",
"lon":"-3.459144"
}
}],
"series": "Revue des Nouvelles Technologies de l'Information",
"location": "{u'lat': 48.390394, u'lon': -4.486076}",
"place": "Brest",
"booktitle": "EGC",
"idArt": "289",
"authors": "['<NAME>','<NAME>','<NAME>','<NAME>']"
}
|
json
|
Abu Dhabi’s Etihad Airways said on Sunday its chief commercial officer was leaving the state carrier as part of a broad management restructuring as it struggles through the pandemic.
Robin Kamark, along with three other senior executives, will leave with their responsibilities taken over by other members of management, the airline said in a statement.
Etihad said the changes were made due to the impact of COVID-19 and part of plans to downsize to a mid-sized carrier, a reorganisation announced two years ago.
“As a responsible business, we can no longer continue to incrementally adapt to a marketplace that we believe has changed for the foreseeable future,” Chief Executive Tony Douglas said.
TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH.
What you get on Business Standard Premium?
- Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app.
- Pick your 5 favourite companies, get a daily email with all news updates on them.
- Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006.
- Preferential invites to Business Standard events.
- Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more.
|
english
|
Actress abduction case: Dileep unwell in jail?
Actor Dileep who was arrested on July 10th, 2017 by Aluva police after having found irrefutable evidence against the actor for conspiring the abduction and assault of a popular Malayalam actress, is reportedly unwell in jail. As per the reports, Dileep is unwell due to prolonged stress and affected life pattern as he has not been able to sleep properly since the arrest. Though the actor was given medical care he has not been moved to a hospital due to security concerns.
The actor is currently in remand at Aluva Sub Jail for being the conspirator in the actress attack case happened on February 17, 2017. The actor's bail plea at High Court was rejected and now, for his fresh bail plea in the High Court, Dileep would be represented by senior lawyer B. Raman Pillai. Dileep's former lawyer was advocate Ramkumar. What the Police have to offer as new findings to oppose Dileep's bail will be crucial in the case now.
Follow us on Google News and stay updated with the latest!
|
english
|
Truthing, a Palo Alto based startup announced that they are opening up their platform for connected device makers to deliver on-demand, video-based tech support to consumers, and drive user engagement. One of the biggest challenges facing the connected device market today is the DIY model of installation and troubleshooting, without the backup of dedicated on-demand support. Truthing wants to change this by giving consumers access to tech support across brands and devices from the convenience of a mobile app.
Truthing functions on a peer-to-peer model, so device makers can set up personalized brand portals, on-board their specialists, and enable on-demand access to tech support for users.
The marketplace model enables 2-way communication with users invested in the connected device ecosystem, by combining existing support and marketing channels into a single channel. This allows delivery of information regarding new products and deals to new and existing users, including virtual product demos. This increases user engagement, improves the efficiency of marketing messaging by virtue of targeting a focused audience, and in turn offers better value for the consumer.
By delivering more on-demand support via video, brands can significantly reduce their cost of support. In-home visits are more expensive, and consumers too stand to benefit as many issues can be resolved online at a fraction of the cost.
Truthing provides an independent marketplace for device makers, support providers and consumers. This ensures a level playing field for all brands on the platform, and more choices for the end consumer. They are in advanced talks with several device makers across the connected device ecosystem, and expect to on-board the first set of partners soon.
How does Truthing work?
Truthing acts as a platform, which provides a window for customers and manufacturers by offering on-demand tech-support. Smart-device manufacturers can create their product portfolio by creating personalised portals, and customers can access tech-support for products.
Truthing app is available on iOS app store for free. Users can download the same to different solutions offered by Truthing. This is a two-way platform, where the platform combines existing product support with the Truthing support under a unified platform, which enables faster diagnosis and troubleshooting of the problem.
Visit Truthing official website for more information on the products and services offered on the platform.
|
english
|
Aishwarya Rai Bachchan has celebrated her 45th birthday on 2nd November. On her birthday, the actress has celebrated her birthday bash in the famous tourist spot i. e. Goa with her family and friends.
Her stunning pictures in black monokini that went viral on the Internet.
In the viral pictures, Aishwarya can be seen doing masti with her hubby Abhishek Bachchan and daughter Aaradhya in swimming pool.
See her pics:
Also, Aish shared some beautiful photos on her social media with her mother, Vrinda.
She also thanked fans for their lovely birthday wishes for her.
Also, she had super fun with Abhi and Aaradhya. She even took all her fun time photos on her Insta account.
|
english
|
King Nagarjuna`s dual role family entertainer Soggade Chinni Nayana content already reached USA and drives already delivered to all the locations yesterday Tuesday Jan 12th itself as well ahead of two days.
before premiere shows. Premieres in all locations were confirmed for Jan 14th and online ticketing also already opened. We are releasing in about 80 locations with Premiere shows almost in all the locations.
All tickets $12 adults and $8 kids including premiere shows. This is a perfect family entertainer with all the ingredients and we can assure that you will not be disappointed.
email movie@blueskycinemas. com for any further inquiries or information.
Follow us on Google News and stay updated with the latest!
|
english
|
An Alabama man was sentenced on Tuesday to nearly two years in prison for storming the U. S. Capitol and invading the Senate floor with a knife on his hip and a gaping wound on his face.
A police officer shot Joshua Matthew Black in his left cheek with a crowd-control munition outside the Capitol during the riot on Jan. 6, 2021. The bloody hole in his face didn't stop Black from occupying the Senate with other rioters after lawmakers evacuated the chamber.
"Black was a notorious offender during the attack on the Capitol," prosecutors wrote in a court filing. "The nation was shocked and appalled at the events of January 6, and perhaps no other incident sparked as much as outrage and distress as Black and other rioters’ occupation of the Senate Chamber. "
Prosecutors had recommended a five-year prison sentence for Black, 47, of Leeds, Alabama, a suburb of Birmingham.
U. S. District Judge Amy Berman Jackson sentenced Black to 22 months in prison followed by two years of supervised release, according to court records.
Black didn't testify before the judge convicted him in January of five charges, including three felonies, after hearing trial testimony without a jury. Jackson also acquitted him of one count, obstructing a congressional proceeding.
Black joined the mob that disrupted the Jan. 6 joint session of Congress for certifying President Joe Biden's 2020 electoral victory. But the judge concluded that prosecutors didn't prove Black knowingly intended to obstruct or impede the proceedings.
Defense attorney Clark Fleckinger said Black, an evangelical Christian, was motivated by his religious beliefs. Black believed God directed him to go to Washington so he could "plead the blood of Jesus" on the Senate floor "to foster Congressional atonement for what he perceived to be the transgressions of (a) corrupt Democratic Party and Republican Party," Fleckinger wrote in a court filing.
More than 1,000 people have been charged with Capitol riot-related crimes. Roughly 500 of them have been sentenced to terms of imprisonment ranging from seven days to over 14 years. Nineteen have received prison sentences of five years or longer, according to an Associated Press review of court records.
Black, who runs a lawn-mowing business, traveled alone to Washington, D. C. , to attend then-President Donald Trump’s "Stop the Steal" rally on Jan. 6. He joined the crowd walking to the Capitol before Trump finished his speech.
Black, armed with a concealed knife, was the first rioter to breach the barricade at the Lower West Terrace, according to prosecutors.
"This brazen act no doubt encouraged other rioters, who soon after overran the entire Lower West Terrace," they wrote.
Black then joined the mob on the West Plaza, where police shot him with a "less-than-lethal" munition, prosecutors said.
"Rioters near Black became enraged that he was shot, and they harassed and assaulted officers," they wrote.
After entering the Capitol through the East Rotunda doors, he breached the Senate chamber and remained inside for over 20 minutes. Black rummaged through a desk assigned to Sen. Ted Cruz and posed for photos on the Senate dais. Before leaving, he joined other rioters in a "raucous demonstration styled as a prayer" led by Jacob Chansley, the self-styled "QAnon Shaman," prosecutors said.
Black later told the FBI that he had a hunting knife on his hip — in a sheath beneath his coat — while inside the Senate chamber. FBI agents found the knife at Black's home when they arrested him on Jan. 14, 2021.
He was jailed in Washington after his arrest and remained detained until a judge ordered his release on April 24, 2021. He'll get credit for the jail time that he already served.
|
english
|
<filename>sources/2020/2020_25.cpp
#include "2020_24.h"
namespace Day25_2020
{
uintmax_t find_loop_size(uintmax_t key)
{
uintmax_t v = 1;
uintmax_t sn = 7;
uintmax_t i = 0;
while (1)
{
v = (v * sn) % 20201227;
i++;
if (v == key)
return i;
}
}
uintmax_t calculate(uintmax_t key, uintmax_t loop)
{
uintmax_t v = 1;
for (uintmax_t i = 0; i < loop; i++)
v = (v * key) % 20201227;
return v;
}
uintmax_t part_one(uintmax_t card_public_key, uintmax_t door_public_key)
{
return calculate(door_public_key, find_loop_size(card_public_key));
}
t_output main(const t_input& input)
{
uintmax_t card_public_key = stoi(input[0]);
uintmax_t door_public_key = stoi(input[1]);
auto t0 = chrono::steady_clock::now();
auto p1 = part_one(card_public_key, door_public_key);
auto t1 = chrono::steady_clock::now();
vector<string> solutions;
solutions.push_back(to_string(p1));
return make_pair(solutions, chrono::duration<double>((t1 - t0) * 1000).count());
}
}
|
cpp
|
{
"roles": ["Carry", "Durable"],"ID":52,"Patch":"6.79c","Name":"Viper","Alignment":1,"Movespeed":285,"MaxDmg":46,"MinDmg":44,"HP":530,"Mana":195,"HPRegen":0.25,"ManaRegen":0.01,"Armor":1.94,"Range":575,"ProjectileSpeed":1200,"BaseStr":20,"BaseAgi":21,"BaseInt":15,"StrGain":1.9,"AgiGain":2.5,"IntGain":1.8,"PrimaryStat":1,"BaseAttackTime":1.7,"DayVision":1800,"NightVision":800,"AttackPoint":0.33,"AttackSwing":1,"CastPoint":0.3,"CastSwing":0.51,"Turnrate":0.4,"Legs":0}
|
json
|
extern crate trumpet;
use trumpet::common::HadoopConf;
use trumpet::hdfs::Hdfs;
fn main() {
let conf = HadoopConf::new();
let hdfs = Hdfs::new(&conf);
let stats = hdfs.get_fs_stats();
println!("Got: {:?}", stats);
}
|
rust
|
Why did the Almighty Allah create the universe?
And how much does Allah love His creation?
Why did the Almighty Allah create the universe?
And how much does Allah love His creation?
How vast is the dominion of the Almighty Allah?
And is it an unreasonable statement to say that the Almighty Allah infinitely loves a sinner?
Finally, what does it mean when it is said that \"Allah Eagerly Awaits Your Return\"?
The late Ayatollah Misbah-Yazdi (R) provides us with a short, but profound lesson on the basics of loving Allah.
Video Tags:
\"Everyone has someone in this world [to rely on];
\"I too have a merciful Mawla.\"
\"Everyone has someone in this world [to rely on];
\"I too have a merciful Mawla.\"
\"A Mawla who gives all that he has to the poor all at once.\"
\"A lonely stranger is the person;\"
\"who is a foreigner even in his own home.\"
\"The lonely stranger of the universe;\"
\"the son of al-Zahra (A)!\"
This and more in this soulful Latmiya recited by Meysam Motiee in elegy of Imam al-Jawad (A).
Our condolences to the believers upon the martyrdom of the 9th divinely appointed Imam, Imam Muhammad ibn Ali al-Jawad (A).
Video Tags:
Follow us:
Follow us:
Do you know why we don’t repent, worship, do good deeds or endeavor to have a good intention very much? Because we think we always have these opportunities! That’s it.
It’s like small, scattered clouds that come into the sky for a short time. When you look again, they’re not there anymore. This is how opportunities are. The Commander of the Faithful, Ali (as), has said this and not just any person! He knows the universe better than others. He said that this is how we should look at matters.
One of these opportunities is the Night of Destiny and the month of Ramadan. There are many opportunities that we miss unfortunately. We have been told to read the Jawshan Kabeer Supplication on the Nights of Destiny. A door to Heaven has opened for us! Don’t read even one line of the Jawshan Kabeer Supplication negligently. Don’t call God by even one of His attributes in the Jawshan Kabeer Supplication negligently. “God, did You hear me? I am saying this to You. O He Who plans the day and the night. O He Who gives the sustenance of the small child. O God, did You hear me? I said this about You! See.” Whether you cry or not, pay attention while you are saying these and they will have an effect on the world!
Do you know why we don’t repent, worship, do good deeds or endeavor to have a good intention very much? Because we think we always have these opportunities! Many people think like this. “I’ll do it later.” God doesn’t like such an attitude. Are you sure you will have a chance in the future?! Who will give you this chance? When a good deed comes to your mind, does it come for no reason? When something good comes to your heart, don’t ignore it! Think, “An angel has inspired this thought in me!
Salutations upon the believers all across the world and upon all of humanity upon the Be\'that of the Messenger of Allah (S).
Salutations upon the believers all across the world and upon all of humanity upon the Be\'that of the Messenger of Allah (S).
Is the Eid of Mab\'ath limited to the Muslims?
And what was the greatest gift of the universe?
What is known as \'the greatest reflection\'?
Finally, who is the best servant of the Almighty Allah?
Imam Sayyid Ali Khamenei congratulates the Muslim Ummah and all of humanity on the auspicious Eid of Mab\'ath, as his eminence speaks about \"Mab\'ath: The Eid of Humanity\".
Video Tags:
Imam Ali says, \"When fighting became intense, we would seek refuge behind the holy prophet.\"
Imam Ali says, \"When fighting became intense, we would seek refuge behind the holy prophet.\"
The Prophet says \"No prophet suffered as I suffered\"
The Prophet loved the city of makkah, the prophet says \"Allah is witness that you are dear to me\"
The prophet says\"when I miss jannah I kiss the neck of Fatimah\"
When The Prophet was pelted by stones from non-muslims he would still make excuses for them, saying \"maybe their children will pray\"
The dua of the people of jannah is\"they made it to jannah, who did they give credit to, they say Allah is the one who guided us\"
The people of hell say:\"give us water\"
The Prophet says\"there will be people in paradise will say : how did you end up in hell. we used to invite people to goodness but we never practiced\"
Surah yunus says \" the dua of the people of jannah is tasbeeh and greet each other with salam, they end every transaction with taween\"
Allah says\"go to pharaoh for he has transgressed\"
The dua of Musa is\"help me change myself and help me overcome my shortcomings\"
Allah says \"do all of this so me and Aron can doo tasbeeh\"
When Yunus was in the belly of the whale Allah says \"the only reason I saved Yunus is because he did tasbeeh\"
The malaikah says that they are better than human because they do tasbeeh day and night and don\'t get tired.
How is the living Imam, Imam al-Mahdi (A) depicted in the holy Quran?
How is the living Imam, Imam al-Mahdi (A) depicted in the holy Quran?
And what is one of the greatest realities of this world and this universe?
What does Imam al-Baqir (A) say about verse number 105, of Chapter 21 as it regards to the instances of this holy verse of the Quran?
What is the relevance of Chapter number 11, verse number 86 of the holy Quran and what does it have to do with our discussion, and what does Imam al-Baqir (A) say about it?
And finally what\'s the connection between \"Imam Mahdi (A), Imam Baqir (A), and the Quran\"?
Sister Spade explains and answers these questions and more, based upon selections from the book, The Essence of Creation, 3rd edition.
It\'s time to get in sync with the Imam (A) of your time.
Video Tags:
We haven’t been able to help people to understand this attractive, affectionate, deep, rational concept of getting close to God.
We haven’t been able to help people to understand this attractive, affectionate, deep, rational concept of getting close to God.
Follow us:
The most important feature of a goal is that it should create a fire from within a person. It should give warmth, strengthen, entertain and give direction to a person’s imaginations. This is how a person’s goal should be, otherwise one’s life is useless. [As a poem says,] “Pray over his body although he’s not dead.” A life in which one’s goal doesn’t give warmth and doesn’t answer one’s need for love is a very low level of life.
In our life, everything really depends on the goal we choose. Imagine if you let people be free but don’t talk about religion, God’s commands or beliefs. Just tell people, “Live with a goal that warms you, creates a fire and answers your need for love. See where you can find this goal yourself.” They can’t find such a goal even if false propaganda is used.
Have you seen that people talk about love and affection? It’s interesting that everyone talks about love, but no one reaches to it. Everyone likes and admires a life filled with love. Instead of using the term “a life with love,” God has designed this in religion in this way that He says, “Set your goal to be getting close to Me.” Getting close to God will light a fire (of love) in one’s heart. Maybe when people talk about a life with love, this is what they mean.
And we have worked so poorly and weakly in this regard! The effects of our deeds have sometimes been so repulsive that we haven’t been able to help people to understand this attractive, affectionate, deep, and so rational concept of getting close to God. People do not know religion to be getting close to God. But no deed without having the intention of getting close to God is accepted. Unfortunately, if you introduce religion without the concept of getting close to God, religion will seem awful to people. Those people [who’ve learned this kind of religion] are right to hate it. Perhaps religion without the passionate, attractive meaning of closeness to God has been taught to them.
Do we get disturbed if we see an unreligious or corrupt event at times? What is the reason behind it?
Do we get disturbed if we see an unreligious or corrupt event at times? What is the reason behind it?
In whose hands is the ultimate control of the universe and the cosmos?
Why was the esteemed Imam Khomeini (R) hopeful and calm when he left this temporary world?
Was his hope only due to faith in Allah or were there other more on the ground factors?
And what does Imam Khamenei have to say to the youth?
Furthermore, what was Imam Ali’s complain to his faithful and loyal companion, Malik al-Ashtar?
And what were Imam Ali\\\'s words of wisdom to Malik al-Ashtar?
Finally, what should we do in times of worry and unrest?
Agha Alireza Panahian talks about the determining factors of the destiny of the universe and placing our trust in the Highest Authority, the All-Mighty Allah.
And remember, \\\"The Present & the Future is Promising\\\".
Video Tags:
He wants to prove to you that He is the only power.
Follow us:
He wants to prove to you that He is the only power.
Follow us:
We want God to give us security. We want to seek refuge in God as a result of having experienced insecurity. What do we need to know to make this come about better? What is it? God\'s power. His power!
I will tell you now. Read the Qur\'an a lot. God, the Almighty, seriously intends to convince everyone who reads these verses that He is the first and last power in the universe. He wants to prove to you that He is a superpower, and actually He is the only power.
God is the absolute power. He does whatever He wants. He forgives, guides and grants sustenance to whomever He wants. [Qur’an 3:129, 74:31, 2:212] He attributes many things to Himself. “We [God] created heaven and earth. We said this and that.” God creates an upheaval! A person gradually accepts this.
Therefore, I ask you to first look at the Qur\'an as an educational, spiritually effective, constructive book, not as a book that should be translated scientifically to take rulings and lessons from it. Let it correct you.
For example, they give eggplant stew to someone in a laboratory and say, “Test this and see if it’s good or not. Check the amount of vitamins in it.” This scientist won’t eat it even if he is dying from hunger. He wants to test this food. Many of us who go toward the Qur’an act like this scientist in the laboratory does. “Let’s see what’s in it.” Eat it! Eat it! You’re weak from hunger. Consume the Qur’an!
For example, one is listening to music. [Someone says,] “You’re listening to music a lot. You really enjoy it!” [He replies,] “No, I’ve been asked to write down the lyrics of these 100 songs. That’s what I’m doing. I don’t like them at all. I can’t relate to them. I don’t know their genres or anything about them.” This is a meaningless connection with music. The purpose of music is not for you to write the lyrics! A person who does this is a researcher and doesn’t understand the elements of music. He doesn’t fly with music.
Does anyone fly with music? Yes, as much as a hen can fly! But with the Qur’an, one flies to God Himself. He flies through the atmosphere and through the galaxy.
I went to that same college the next month. He came to me very upset! I asked myself, “What should I do now? It seems my suggestion wasn’t appropriate for him.” He was truly upset. He came forward and said angrily, “I’ve wasted my life! Why hadn’t I ever done this before? You don’t know what an impact this has had on me!” He was ahead of the one who had suggested this!
Use the Qur’an. Recite the Qur’an a lot. God, the Almighty, seriously intends to convince everyone who reads these verses that He is the first and last power in the universe. He wants to prove to you that He is a superpower, and actually He is the only power.
What will the future be like? The future is Islam.
Follow us:
What will the future be like? The future is Islam.
Follow us:
We are at the end of one century and the start of a new century based on the Hijri solar calendar. Even if it wasn’t the beginning of a new century the changes in the world show that a long period of history has finished and the state of the world is changing.
Maybe we couldn’t have said this eight months ago. We couldn’t have said it last year. But now, with the events that we are witnessing in the world in recent months and in the period that we are in, everyone agrees that we are at a turn in history, an expression used by the dear Leader of the Islamic Revolution.
What do you predict for this coming century? What do you suggest for its name? I have a suggestion for the name of this century. The coming century is bringing a civilization that will replace Western civilization. It will be an alternative civilization to Western civilization, according to many thinkers. Of course, they say this quietly and don’t announce it frequently on TV.
The alternative civilization will be the \\\"new Islamic civilization.\\\" The future civilization will be a \\\"Mahdavi [Imam Mahdi] civilization.\\\" Why am I saying this? Because no one in the world has any plans for the future! There is no thinker in the world to say that the future will be determined by socialism, or by liberal democracy, or to say the future will be determined by a certain lifestyle.
Yes, in terms of technology, they say technology will advance a lot! Yes, it is said that the world’s governments will be saved from dictatorial rulers. Yes, everyone is saying that a new chaos is being created in the world. Everyone says these things. But can the United Nations ensure order in the world? No. The previous century was the century of the rise and fall of Western civilization. The next century is the century of the new Islamic civilization.
It has been narrated from Imam Muhammad Baqir (as), “Our government will be the last government. Because after our government has been established, has succeeded and that great civilization ‘has been raised by God above all religions’ [Qur’an 61:9], no one will say, ‘If I had been in charge, I would have done that too.’” According to Imam Baqir (as), when that government is established no one will have anything else to say. A theoretical vacuum will have existed.
There is no voice in the universe talking about the future of the world for us to evaluate it to see if it is right or wrong! No one in the world says that in the future everyone will go toward Marxism, or that everyone will go toward a certain religion. Except for us. We are the only ones talking about the future! For forty years, we have been answering in religious forums. We have answered doubts. We have answered false claims. There is no longer a false claim in the world for us to answer! No one even has a claim for the future.
Only these minarets and mosques of yours talk about the future. Only you have hope for the future! This is a big celebration itself. And our community must be the one to explain the Mahdavi civilization. Every mosque, gathering, class or book that does not talk about the Mahdavi future of the world, has reduced its own value to nearly zero. Tell me about the future! What will the future be like?
In the name of God, the Beneficent, the Merciful. The feeling of wanting to supplicate God is a feeling that is caused by spiritual maturity. As a result of spiritual maturity, a person feels dependent on God, like the attachment a child has to his parents. When you separate a child from his mother, he doesn’t calm down no matter what logic you use. He can’t tolerate even a moment of being separated whatever your reasoning. One who reaches spiritual maturity gains this feeling in connection with the Lord of the universe. The difference is that a child doesn’t have a sense of guilt, humility, humbleness, beseeching, and many other feelings towards his parents that a servant has towards his master. But, this kind of feeling of needing to be close to one’s parents, is created in a person who has reached spiritual maturity. Of course, his feeling of needing to be close to the Lord of the universe is much more intense than that of a child. He sees some obstacles between God and himself. He feels sad because of these obstacles. These obstacles may be natural obstacles, like the length of one’s lifespan before meeting God. He sees these natural obstacles as being a barrier for getting close to God and meeting Him, so he cries. Or these obstacles may be from himself, and they are usually of this type.
Basically, one of the good feelings that a servant who has attained spiritual growth feels towards his master is that he always feels guilty before his master. This feeling of guilt is a true feeling and not a compliment. This will be the cause of his broken heart and sorrow, and he will be able to supplicate God. If the Almighty God wants to be gracious to a person, He puts him on the path of the relationship between a servant and his master. Naturally, there is only crying on this path. Perhaps many who are not familiar with these ideas will be surprised at these words. It’s like a person who wants to use logic to compel a child to be patient and silent for a few minutes while being apart from his mother. But the child doesn’t accept this at all. It’s as if no one understands the child, and the child doesn’t understand others.
Rumi says beautifully in a poem, “When He wants to help us, He pulls our interest towards moaning.” Next, the poem describes a heart, which moans. “Auspicious is the heart, which burns for Him (from love). Good for the eyes, which weep for Him. A person who sees the end is a blessed servant. The end of each cry is a laugh. Wherever there are flowing tears, there’ll be mercy. Wherever there is running water, there’ll be greenery.” The poem continues describing crying.
These are not descriptions, which will create that feeling in us. It’s like trying to describe a perfume or the smell of a flower. Or, it is like when we try to explain colors for a person who cannot see. There aren’t any words for describing colors. There are no words for describing the smell of a flower, or the smell of a perfume or cologne. Although people experience it, they cannot describe it. This state of wanting to supplicate God is created due to a spiritual growth. A person’s spiritual growth causes him to feel a need. This is in the same way that when people reach the age of maturity they feel a need for a companion, the same way that parents feel a need for children, and the same way that people feel a need for being in a community and are sad when they are alone. When a person grows spiritually, he wants this relationship with God too.
All these supplications can be understood in such an atmosphere. If a person is not in such an atmosphere, he cannot understand this supplication at all. It’s very good if we recite this supplication with this feeling, this pleading and praying that, “God, open this door for me.” Or, we should read this supplication with the feeling that we are very far from the feeling that the Commander of the Faithful, Ali (‘a), felt. Praising this beautiful relationship and regretting that we don’t have it can bring a person closer to Him.
Beseeching is a term, which has been used seven times in the Holy Qur’an with the same meaning. Of course, it’s more than seven times. But, only in seven cases has it been used with exactly the same meaning of a person praying to God pleadingly. The fundamental meaning of beseeching is not crying. Crying is one of its results. It is the height of pleading, entreating, and being humble in front of the Almighty God. If we want to say the meaning, a person who beseeches is one who pleads a lot. A person who beseeches is one who doesn’t have any pride or assets. He’s extremely humble.
Beseeching has been mentioned in the Qur’an in different situations. Beseeching is a kind of pleading, which isn’t hidden anymore and is apparent. This broken heart shows itself, “Pray to your Lord beseechingly and in secret.” [Qur’an 7:55] This means to call God beseechingly, meaning openly, or hidden within yourself. There are other verses, which refer to this too.
In the verse before this verse, God the Almighty says that He has sent this scourge for people to beseech Him, “We have certainly sent (apostles) to nations before you, then We seized them with stress and distress so that they might entreat (Us).” [Qur’an 6:42] For us common people, this kind of beseeching God is elicited in tribulations. For those who don’t beseech God, even in tribulations, their hearts have truly become hardened as the Qur’an says. But, for people with understanding and the Friends of God, beseeching God is the result of their deep understanding, extreme interest and intense ardor for the high position of being close to God. We should resolve this riddle in our minds once and forever, that is this extent of crying needed when talking to God that the Commander of the Faithful moaned to God like this? What did he really want? What punishment did he fear?!
We should accept that there is a spiritual maturity, which many don’t achieve at all. This spiritual maturity is more than fearing punishment, more than the intensity of suffering that a person will tolerate in Hell, and more than the fear of a sinful person or a criminal of retribution. Some good people feel such a severe need for being close to God that if they see they are far from this intense need, even a bit, they cry to God beseechingly. Was the Commander of the Faithful a weak person for someone to see his crying, broken heart? All his existence was solidity. If the entire universe had turned upside down, he would have stood firmly and wouldn’t have even flinched! He had nothing to be afraid of or to lose.
So, why did he moan to God like this? He had reached a spiritual maturity. He felt a severe need for those high spiritual positions. When he felt a bit far from that desirable point, and that peak became more novel and substantial for him every moment, he would cry pleadingly.
A stunning clip where we are reminded that true faith can only be attained through rational and logical thought. Sayyid Haydar Hasanayn calls out to our inner hearts and intuition, awakening the deep desire to recognize the reality of life, the universe and everything. In so many ways, the life-long journey of Islam begins with one very small step: the step of contemplation. This series is a call to reflect upon on some of the points which Imam Khamenei explains in the extraordinary book, “An Outline of Islamic Thought In the Quran”.
Video Tags:
If you were to take a coffee cup, and break it in half, then in half again, and keep carrying on, where would you end up? Could you keep on going forever? Or would you eventually find a set of indivisible building blocks out of which everything is made? Jonathan Butterworth explains the Standard Model theory and how it helps us understand the world we live in.
Lesson by Jon Butterworth, directed by Nick Hilditch.
Thank you so much to our patrons for your support! Without you this video would not be possible! Jennifer Kurkoski, phkphk12321, Arlene Weston, Mehmet Yusuf Ertekin, Ten Cha, Les Howard, Kevin O\'Leary, Francisco Leos, Robert Patrick, Jorge, Marcus Appelbaum, Alan Wilder, Amin Talaei, Mohamed Elsayed, Angel Pantoja, Eimann P. Evarola, Claire Ousey, Carlos H. Costa, Tariq Keblaoui, Bela Namyslik, Nick Johnson, Won Jang, Johnnie Graham, Junjie Huang, Harshita Jagdish Sahijwani, Amber Alexander, Yelena Baykova, Laurence McMillan, John C. Vesey, Karmi Nguyen, Chung Wah Gnapp, Andrew Sprott, Jane White, Ayan Doss, BRENDAN NEALE, Lawrence Teh Swee Kiang, Alex Pierce, Nick Cozby, Jeffrey Segrest, Anthony Arcis, Ugur Doga Sezgin, Kathryn Vacha, Allyson Martin, Srinivasa C Pasumarthi, 张晓雨, Ann Marie Reus, Nishant Suneja, Javier Lara Rosado, Jerry Yang and Shubham Arora.
Topics Discussed:
3 - What does Sajda mean in the Realm of Malaika?
Topics Discussed:
Topics Discussed:
2 - What is the connection between the Angels & Human Being? To what Extent?
3 - The Angels are always Obedient towards Allah, they cannot disobey Him. If so, then why did the Angles \'\'Question\'\' Allah regarding the Creation of Man?
[4] Youth Sessions || Insan Shanasi In The Story of Hazrat Adam (as) | Studying The Lives of Anbiya (as), the Way to Gain Recognition of the Last Prophet (pbuh) & the 12 Imams (as)
Topics Discussed:
1 - The Relation between Anbiya (as) and the Last Prophet (pbuh)
2 - Recognition of Prophet Muhammad (pbuh) & Ahlul Bayt (as) is based upon the Recognition of Anbiya (as)
4 - How Does Allah Talk to Us? With What Methodology He wants to teach us Tawheed, Adl, Nabuwwat.....?
Topics Discussed:
Topics Discussed:
4 - The Wideness of the Universe & Power of Insan in The Story of Hazrat Sulaiman (as)
KAZschool is an amazing channel for kids where Khanum Amber Zehra shares about Islamic Stories, Prophet PBUH stories for kids,
Islamic guideline because mother’s lap is the first school.
►►Watch More Video From Here:
►►Social Media:
►PLEASE NOTE:
►COPYRIGHT NOTICE:
channel link) all speakers and artists should also be credited in the description.
►Video Footage:
videos without permission. Please contact us for more information.
A beautiful and eye-opening clip that will expand our spiritual awareness regarding where we have come from and where we are heading. We’ve all heard of the Afterlife, but what about the “Pre-life”? Shaykh Mansour Leghaei explains the concept of human existence before our creation and the philosophical implications of this Quranic idea.
Video Tags:
Eid al-Mab\'as (mab\'ath) is one of the greatest Eids of Islam. On this special occasion we pay a tribute to the greatest man who has ever walked the earth - The Prophet of Allah - Prophet Muhammad ibne Abdallah (S). Infinite salutations of the humans, jins, angels, in short every existence of the universe.
Hamed Zamani recites this beautiful tribute to Prophet - along with scenes from the movie - Muhammad Rasulallah (S).
Video Tags:
Are you thinking negatively or positively? If the latter is correct, then you should know that your perception of all existence, life, the universe and everything reflects your inner feelings about Allah.
Video Tags:
Many – if not most – human beings go through life without ever truly undergoing the necessary transformation into the best that we can be. We come to this world as caterpillars, and it is our aim to develop into butterflies. But we often remain as crawling creatures of this lowly dimension, devouring our way through the dunya (worldly life), blind, deaf and dumb. When do we truly contemplate and make the conscious decision to be better? Brother Khalil Jafar beautifully sets forth an example of our existence in this world as something essentially alien. Do we really belong here? Is there a precedence within the Holy Quran which indicates that we were sent down from a higher realm of existence? What now is our aim in regards to life, the universe and everything?
Video Tags:
|
english
|
<gh_stars>0
import { describe, it } from '@ephox/bedrock-client';
import { assert } from 'chai';
import * as fc from 'fast-check';
import { isPercentage, isPixel } from 'tinymce/models/dom/table/core/TableUtils';
describe('atomic.tinymce.models.dom.table.TableUtilsTest', () => {
it('isPercentage', () => {
assert.isFalse(isPercentage(''), 'Empty string is false');
assert.isFalse(isPercentage('%'), 'Single % string is false');
assert.isTrue(isPercentage('10%'), 'Percentage string is true');
assert.isTrue(isPercentage('10.125%'), 'Percentage with decimal string is true');
fc.assert(fc.property(fc.float(1, 100), (n) => {
assert.isTrue(isPercentage(n + '%'), 'Arbitrary float with percent string is true');
assert.isFalse(isPercentage(n + ''), 'Number string is false');
assert.isFalse(isPercentage(n + 'px'), 'Pixel string is false');
assert.isFalse(isPercentage(n + '%' + n), 'String containing % string is false');
}));
});
it('isPixel', () => {
assert.isFalse(isPixel(''), 'Empty string is false');
assert.isFalse(isPixel('px'), 'Single px string is false');
assert.isTrue(isPixel('10px'), 'Pixel string is true');
assert.isTrue(isPixel('10.125px'), 'Pixel with decimal string is true');
fc.assert(fc.property(fc.float(1, 100), (n) => {
assert.isTrue(isPixel(n + 'px'), 'Arbitrary float with px string is true');
assert.isFalse(isPixel(n + ''), 'Number string is false');
assert.isFalse(isPixel(n + '%'), 'Percent string is false');
assert.isFalse(isPixel(n + 'px' + n), 'String containing px string is false');
}));
});
});
|
typescript
|
<reponame>tied/innovation-funding-service
package org.innovateuk.ifs.management.competition.setup.organisationaleligibility.populator;
import org.innovateuk.ifs.competition.resource.CompetitionOrganisationConfigResource;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.competition.service.CompetitionRestService;
import org.innovateuk.ifs.management.competition.setup.organisationaleligibility.viewmodel.LeadInternationalOrganisationViewModel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import static org.innovateuk.ifs.commons.rest.RestResult.restSuccess;
import static org.innovateuk.ifs.competition.builder.CompetitionOrganisationConfigResourceBuilder.newCompetitionOrganisationConfigResource;
import static org.innovateuk.ifs.competition.builder.CompetitionResourceBuilder.newCompetitionResource;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
@RunWith(MockitoJUnitRunner.Silent.class)
public class LeadInternationalOrganisationViewModelPopulatorTest {
@InjectMocks
private LeadInternationalOrganisationViewModelPopulator populator;
@Mock
private CompetitionRestService competitionRestService;
@Test
public void populateModel() {
long competitionId = 100L;
CompetitionResource competition = newCompetitionResource().withId(competitionId).build();
CompetitionOrganisationConfigResource configResource = newCompetitionOrganisationConfigResource().withInternationalLeadOrganisationAllowed(true).build();
when(competitionRestService.getCompetitionById(competitionId)).thenReturn(restSuccess(competition));
LeadInternationalOrganisationViewModel result = populator.populateModel(competitionId, configResource);
assertTrue(result.isLeadInternationalOrganisationsApplicable());
}
}
|
java
|
It's been quite a newsworthy day as WWE's Elimination Chamber PPV had many significant moments that were trending all over the internet.
The Miz winning the WWE Championship for the second time in his career is inarguably the show's most significant talking point. Why did WWE decide to book a successful Money in the Bank cash-in? What's next for Drew McIntyre and the WWE Championship?
Several updates about WWE's plans and the reasoning behind the Elimination Chamber decisions have been revealed. WWE could reportedly be planning a big match for Bobby Lashley.
Vince McMahon also denied a top WWE female Superstar's request for a release. An update on Cartlito's status and future has also been covered today.
A report about the United States Championship match from Elimination Chamber has been featured as well. The WWE Rumor Roundup ends with 'Angry Miz Girl' reacting to The A-Lister's WWE Championship victory.
Sasha Banks is the face of the WWE women's division right now as the SmackDown Women's Champion, and The Legit Boss is finally enjoying a sustained run at the top as a titleholder.
However, there was a time not too long ago when Sasha Banks' WWE career almost came to an end. During a sneak peek of the upcoming episode of Stone Cold Steve Austin's Broken Skull Sessions, Sasha Banks revealed that she wanted to leave WWE a few years ago.
Sasha Banks went through a very challenging period in 2019 when she battled severe depression. Banks recalled that she wasn't the person she had dreamt of being, and needed a break from the spotlight to find herself again. Sasha Banks went to the lengths of asking for her WWE release, but Vince McMahon would reject her request.
The WWE CEO gave Sasha Banks 30 days to think about her request. Banks took more time, and she admitted that the wrestling business' hectic nature got to her.
"One of the hardest things that I had to do was to ask to leave the WWE. . . Vince was like, no. He said no. He said I'm gonna give you thirty days to think about it, and I took more than thirty days. This place can definitely get to you. It's hard. " said Banks.
Sasha Banks would take a hiatus and return to begin a very fruitful run that has brought her a lot of success. The Boss is expected to face Bianca Belair at WrestleMania 37, and it is also going to be one of the top featured contests of the event.
The Miz successfully cashed in the Money in the Bank contract to win the WWE Championship at Elimination Chamber. A world title change this close to WrestleMania has understandably sent shockwaves across the internet, and the fans are wondering about what's next for the WWE Championship.
WrestleVotes had an update that noted that The Miz is not scheduled to be in the WWE Championship match at WrestleMania 37. However, Bobby Lashley - who helped The A-Lister win the title, is slated to be involved in the match.
It's that time of year- LOTS of misinformation b/w sources, which happens around WM. However, from source: WWE Title match- The Miz is not scheduled to be involved. As of now, Bobby Lashley IS.
Dave Meltzer had also noted earlier in the day during the Wrestling Observer Radio that The Miz capturing the WWE Championship is just a transition to get to another angle.
"Well, they will both get it. It's just a question of when. It's not like the world ends at WrestleMania. They are going to do it. They are definitely going to do it. The question is, you know, do they have Drew win the title, you know, tomorrow, and then defend against Sheamus, and then against Lashley, or in the opposite order, or do they go with Drew beating Miz at Fastlane, and then defend against probably Lashley and then Sheamus comes after Lashley. "
Meltzer speculated that The A-Lister could soon drop the title, possibly at Fastlane, before moving on to the rumored tag team match against Bad Bunny and Damian Priest WrestleMania 37.
Bobby Lashley and Sheamus would ideally be in contention for the WWE Championship match, but the Hurt Business member seems to be locked in for the marquee title contest.
Carlito received rave reviews for his recent performances at the WWE Royal Rumble and the RAW episode after the PPV. The former United States Champion looked in better physical shape than his first WWE run, and there was an expectation that the company would sign him for another stint.
However, during a recent appearance on The Wrestling Inc. Daily podcast, Carlito revealed that he has no clue about what's next for him regarding the WWE. He has heard nothing about WWE wanting him to be a producer or active performer.
The former WWE IC Champion added that he would love to return and contribute if the idea piques his interest.
"Right now, I don't know where I sit. There was never a trial or something to be a producer backstage or something. None of that was was ever mentioned to me. All we talked about was the Rumble and RAW, and then after that, who knows? But as of now, I'd love to come back. It's all in the air right now. I have no idea what's next for me. " said Carlito.
Carlito would like to contribute by helping the up-and-coming talent, and a coach's role at the WWE PC would suit the popular Puerto Rican wrestler.
"I'm open to whatever ideas are out there. As long as it's a good idea, I don't mind. I know I'm a little long in the tooth now. What's the saying? I got more years behind me than ahead of me. I like helping out the new talent and stuff. If somebody's got a good idea, then I'm happy to hear it. " said Carlito.
Dave Meltzer had reported in the Wrestling Newsletter that Carlito is not under contract with WWE, and as things stand, he is a free agent.
The 42-year-old wrestler could work out a deal with the WWE, and we'll keep you updated on all the developments about his future.
The WWE United States Championship changed hands at Elimination Chamber as Matt Riddle pinned John Morrison to win the title.
However, the Triple Threat match was in jeopardy of becoming a singles contest after Keith Lee was removed from the match hours before the PPV. WWE didn't change their decision and booked a pre-show match to determine Keith Lee's replacement. John Morrison was picked, and he was ultimately just in the match to eat the pinfall.
Dave Meltzer also noted in the WOR that WWE didn't change the match format as the title change would not have worked in a singles match. Meltzer would add that WWE could have had anyone in the third spot.
"Now you know why they didn't do a singles match, and why they were adamant, you know, originally, if Keith Lee was not it, but that just wouldn't work for what they were trying to do. So, that's why they had to get Morrison in the match or somebody. (It) could have been anyone in that third man spot. . . "
Meltzer would later add that Matt Riddle signed a new WWE contract, explaining why WWE rewarded him with the United States title.
WWE is also pivoting to a Bobby Lashley vs. Drew McIntyre program, and dropping the US title without taking the pin keeps him strong.
"Angry Miz Girl" is one of the most popular memes in WWE history. Caley, the face of the meme, spoke to SK Wrestling's Abhilash Mendhe following The Miz's recent WWE title victory.
Caley considered Miz as one of the best performers on the roster, and she was delighted to see him as a heel champion. Caley admitted that her opinions about The A-Lister have changed over the years.
"I personally think he's one of the best on the roster, I know it's a big change from my opinion 10 years ago, but I love him when he's a heel champion; I think he's got the personality for it down; to a T. "
"I loved meeting The Miz, and he was always super kind to me, and he worked super hard, so I definitely think he deserves it. " said Caley.
Caley also shared her honest thoughts about The Miz possibly going up against someone like Brock Lesnar for the WWE Championship at WrestleMania 37.
"As for Brock Lesnar, I honestly don't care for him that much; he's never been a favorite of mine. So I'd rather see him (The Miz) fight Drew McIntyre. " said Caley.
The Miz's second WWE Championship reign might not be a very long one based on all the updates. The biggest question is this: how will WWE book him to lose the title? Let us know your predictions for the WWE Championship in the comments section.
|
english
|
package ninja.soroosh.chatopia.core.runner;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class Event<T> {
private String eventName;
private T payload;
}
|
java
|
<gh_stars>10-100
{
"vorgangId": "55529",
"VORGANG": {
"WAHLPERIODE": "17",
"VORGANGSTYP": "Schriftliche Frage",
"TITEL": "Mittel des Förderprogramms \"Aktionsgruppenprogramm\" 2013",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": {
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "17/14577",
"DRS_TYP": "Schriftliche Fragen",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/145/1714577.pdf"
},
"EU_DOK_NR": "",
"SCHLAGWORT": [
{
"_fundstelle": "true",
"__cdata": "Bildung"
},
"Bildungspolitik",
{
"_fundstelle": "true",
"__cdata": "Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"
},
"Bundesmittel",
{
"_fundstelle": "true",
"__cdata": "Programm der Bundesregierung"
}
],
"ABSTRAKT": "Originaltext der Frage(n): \r\n \r\nWie viele Mittel hat das Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung (über die ENGAGEMENT GLOBAL gGmbH) im Jahr 2013 im Rahmen des Förderprogramms \"Aktionsgruppenprogramm\" für den 1. Deutschen Entwicklungstag verwendet, und wie viele Anträge wurden damit im Vergleich zu den im Jahr 2013 insgesamt gestellten Anträgen bedient? \r\n \r\nSeit wann genau war das \"Aktionsgruppenprogramm\" 2013 ausgeschöpft, und wie viele Anträge wurden in den Vorjahren 2010 bis 2012 im Zeitraum Juli bis Dezember im Rahmen des \"Aktionsgruppenprogramms\" gestellt?"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": {
"ZUORDNUNG": "BT",
"URHEBER": "Schriftliche Frage/Schriftliche Antwort ",
"FUNDSTELLE": "16.08.2013 - BT-Drucksache 17/14577, Nr. 97, 98",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/145/1714577.pdf",
"PERSOENLICHER_URHEBER": [
{
"PERSON_TITEL": "Dr.",
"VORNAME": "Bärbel",
"NACHNAME": "Kofler",
"FUNKTION": "MdB",
"FRAKTION": "SPD",
"AKTIVITAETSART": "Frage"
},
{
"VORNAME": "Gudrun",
"NACHNAME": "Kopp",
"FUNKTION": "Parl. Staatssekr.",
"RESSORT": "Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung",
"AKTIVITAETSART": "Antwort"
}
]
}
}
}
|
json
|
Sunday October 07, 2018,
On Day 2 of TechSparks 2018, the excitement continued unabated. Intriguing panels that probed the disruptors of the startup ecosystem, talks that broke myths, and some new and old tricks of business. And of course, there are 30 new stars - presenting YourStory's Tech30 2018!
If Day 1 had the likes of Vijay Shekhar Sharma, Kishore Biyani, Divyank Turakhia, Ashish Bhasin and Team BigBasket wowing the audience, Day 2 started with your daily dose of news - and what will drive the next 500 million Indian users - and it’s not porn! Yes, we started bright and fresh as YourStory Founder and CEO Shradha Sharma and Dailyhunt founder Virendra Gupta and President Umang Bedi broke down how they were using AI, ML and deep learning to bring you your daily dose of content.
If content is the new favourite child, the one that's been around it commerce - and its new buzzword is ‘O2O’ or online-to-offline. Future Group’s Kishore Biyani underscored the importance of building a “digital layer on top of physical retail” on Friday, and today Rajiv Srivasta, Founder and CPTO of Urban Ladder, and Ramakant Sharma, Co-founder of Livspace, decoded the biggest conundrum faced by ecommerce today. And the verdict was - 'Online is great to start a business, but offline is better to build trust and value. '
“Around three years back, we decided that we were more a brand and not just a marketplace. A brand needs to be where the consumer is. And today, consumers for this category are 99 percent offline. They ask us where our store is even as we deliver their online orders,” said Rajiv.
A bright spark was Ajey Gore, CTO of Go-Jek, who said that though his company had started off as a ride-hailing startup, it now delivers 100 million monthly orders spread across 22 products or services.
Arvind Mediratta, Managing Director and CEO of METRO Cash and Carry India had many founders queueing up to partner and be associated with him, while Sameer Nigam, Founder and CEO of PhonePe spoke about how he aced the unusual combination for success.
Goa’s Minister for Revenue, Information Technology, Labour and Employment, Rohan Khaunte told the audience exactly why they needed to head to the state - and no, it was not only to enjoy its pristine beaches and bebinca cake, but because it made business sense. Manish Ghosal, Senior Consultant, AP Innovation Society of Government said entrepreneurs need to start up in Tier-II and Tier-III cities.
Simple and unassuming, the c0-founder of India's fastest Unicorn and yet, the boy-next-door - that's Udaan’s Sujeet Kumar! In a fireside chat with Shradha, he shared his experiences and the company’s growth to be the fastest growing B2B commerce network in the country.
So TechSparks is not only about startup founders - a peek on the other side of the table would show the toughest part of an investor’s job is to say ‘no’ to entrepreneurs. Six investors representing the crème-de-la-crème of India’s VCs discussed what they liked, and hated about their job. While new age entrepreneurs made them happy, refusing investments was declared as the inevitable ‘Debbie Downer’.
If you have seen Zomato’s “Get bhel delivered faster than bail" ad, you already know this guy. Internet personality and Zomato’s Art Director, Akshar Pathak enthralled the audience with his witty stories, comical designs, and insights into designing for new age brands. A word of caution though - “Something funny to me, might be offensive for you," he says, adding he believes in being between the 'safe' and 'offensive' zones.
The niche area of deep science startups is oft unexplored and speakers at TechSparks demystified it for keen listeners. While Siddharth Pai, Founder and General Partner of Siana Capital, explained how investors need to tap this space for greater impact, Prasad Kompalli, CEO and Co-founder of mfine elaborated on how AI will power the next generation of doctors.
“We are creating a virtual doctor which will help infinitely scale doctors' reach and supplement as their assistant so that more people can be diagnosed and treated quickly,” he said.
Over at the HerStory track, women leaders explained why true victory lies in the success of women, how women need to take charge of their money, and shared tips on dealing with corporate politics.
A power panel saw Naiyya Saggi, Founder of BabyChakra, Shalini Prakash, Venture Partner of 500Startups, Sivareena Sarika, Co-founder of PregBuddy, and Kalyani Khona, CEO and Co-Founder of Inclov came together to hash out how women need to stop shying away from the spotlight, and own their success.
We love stories - but of course, we are YourStory! YouTube celebrity and “Mostly Sane” Prajakta Koli said she never expected her channel to be as popular, and that brands are now more open to non-traditional advertisements, reshaping content as we know it.
Day 2 at TechSparks is when we reveal our Tech30 startups - a list of 30 young and promising startups that we carefully handpick. Each startup founder oozed confidence as they delivered their pitch in style. For a complete list, check this and stay tuned to YourStory for details on each of our super startups.
Not all the action was in the auditoriums - intriguing products, and fun experience zones made exhibitor stalls a hit among all, and each saw an average of 200 to talk shop. The buzzing courtyard witnessed not many future business deals, but also some cool collaborations.
ChaiPoint created a massive experience zone, serving beverages from its latest IoT enabled coffee/chai machine, ‘boxC’ that comes with a cloud-based dispenser and your own barista. NetApp had some great leads for new channel partners, and Zoho was overwhelmed with the footfall they received. Rumours are, their business card bowl is overflowing!
LiveVR More wowed their visitors with a 2-minute showreel of their creative content and managed to impress almost everyone. Like all good things, the ninth edition of TechSparks has come to an end, but we will be back next year, with more energy, more enthusiasm, and yet the same soul - trying to be the storyteller for each entrepreneur.
For more details on TechSparks, check our coverage, Facebook, Twitter and Instagram!
|
english
|
Bollywood actress Bipasha Basu is currently basking in the joy of motherly bliss. On November 12 this year, Bipasha and Karan Singh Grover became proud parents to their now one-month-old daughter – Devi. Bipasha’s love for kids is quite evident from her social media posts, which are full of sneak peeks of her little ball of sunshine. And recently, the Raaz actress dropped the first glimpse of Ayaz Khan and Jannat Khan’s newborn daughter, Dua, on Instagram.
The adorable picture gave social media users a glimpse of a chubby-cheeked Dua in a soft pink garment. With her tiny hands, the new member can be seen holding onto her parents’ fingers delicately. Bipasha hashtagged her post with the words “#scorpio” and “#capricorn,” indicating that Devi’s zodiac sign is Scorpio, while Dua’s is Capricorn.
As soon as the cute first glimpse of Ayaz and Jannat’s daughter surfaced on the internet, social media users queued in the comments to congratulate the couple and shower their love on the little one. While one user wished, “Duas for little Dua,” another commented, “Mashallah. ” Many others went, “Awwwwww…” dropping numerous red heart emojis.
Dill Mill Gayye actor Ayaz Khan and his wife Jannat Khan welcomed their bundle of joy on December 21. The elated parents announced Dua’s arrival in a heartwarming Instagram post. “Dua’s do come true! ! On 21:12:22, Allah blessed us with the arrival of our baby girl Dua Husain Khan,” wrote Ayaz, tagging his wife Jannat.
|
english
|
var namespaceanonymous__namespace_02Ioss__Quad16_8C_03 =
[
[ "Constants", "structanonymous__namespace_02Ioss__Quad16_8C_03_1_1Constants.html", "structanonymous__namespace_02Ioss__Quad16_8C_03_1_1Constants" ]
];
|
javascript
|
<reponame>maxcape/maxcape
@font-face { font-family: "OpenSans-Light"; src: url('../fonts/OpenSans-Light.ttf'); }
@font-face { font-family: "OpenSans-Regular"; src: url('../fonts/OpenSans-Regular.ttf'); }
@font-face { font-family: "Montserrat-Thin"; src: url('../fonts/Montserrat-Thin.otf'); }
@font-face { font-family: "Montserrat-Light"; src: url('../fonts/Montserrat-Light.otf'); }
@font-face { font-family: "Montserrat-Regular"; src: url('../fonts/Montserrat-Regular.otf'); }
@font-face { font-family: "Montserrat-Bold"; src: url('../fonts/Montserrat-Bold.otf'); }
html,body {
height:100%;
}
body {
background-color:#323b44;
color:#98a6ad;
font-family: "OpenSans-Regular", sans-serif;
}
/*
* Header
*/
header {
/* background: #323b44 url(../img/header.jpg) top -180px center no-repeat;*/
padding-top:30px;
padding-bottom:40px;
width:100%;
color:white;
line-height: 1em;
}
header h1 {
font-family: "Montserrat-Bold", sans-serif;
color:white;
}
/*
* Dropdowns
*/
.navbar .dropdown-menu, .dropdown-menu {
margin-top: 0;
background-color: #3d4853;
border: none;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
}
.navbar .dropdown-item, .dropdown-menu {
color:#98a6ad;
}
.navbar .dropdown-item:hover, .navbar .dropdown:active, .navbar .dropdown:focus {
background-color: #3d4853;
}
.dropdown-item {
color: #efefef;
}
.dropdown-item:hover, .dropdown-item:active, .dropdown-item:focus {
background-color: transparent;
}
/*
* Footer
*/
footer {
padding: 50px 0 30px 0;
color:#888;
background: #323b44 url(../img/footer.jpg) top -180px center no-repeat;
border-top: solid 1px #36404a;
}
footer h1 {
font-family: "Montserrat-Bold", sans-serif;
color: #efefef;
}
footer h5 {
color:#CCC;
}
footer .social-icon {
display: inline-block;
}
.footer-links {
list-style: none;
margin: 0;
padding: 0;
}
.footer-links li {
display: inline-block;
width:100%;
border-bottom: solid 1px #222;
}
.footer-links li:last-child {
border-bottom: 0;
}
.footer-links li a {
display: inline-block;
color:#98a6ad;
padding: 5px 0 5px 0;
width:100%;
transition: all .2s ease-in-out;
}
.footer-links li a:before {
font-family: FontAwesome, sans-serif;
content: '\f105';
margin-top: 5px;
font-size: 10px;
margin-right: 10px;
float:left;
transition: all .2s ease-in-out;
}
.footer-links li a:hover:before {
margin-right: 20px;
}
.footer-links li a:hover, .footer-links li a:hover:before {
text-decoration: none;
}
.section-copyright {
background-color:rgba(0,0,0,0.2);
color:#555;
font-size: 12px;
}
/*
* Navbar
*/
nav.bg-dark {
background-color: #36404a !important;
}
/*
* Cards
*/
.card {
background-color: #36404a;
}
.card .card-header {
background-color:rgba(255,255,255,0.02);
border-bottom: none;
}
.card .card-footer {
background-color:rgba(255,255,255,0.02);
border-top: none;
}
.card .list-group-item {
background-color:transparent;
border-top: none;
border-bottom: none;
}
.card .list-group-item:first-child {
border-bottom: none;
}
.card .list-group-item:last-child {
border-top: none;
}
.card .list-alternate .list-group-item:nth-child(even) {
background-color: rgba(255,255,255,0.02);
}
.card .badge-primary {
background-color: rgba(255,255,255,0.1);
}
.card .badge-secondary {
background-color: transparent;
}
.card .badge-primary {
background-color: rgba(255,255,255,0.1);
}
/*
* Buttons
*/
.btn-primary {
box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
transition: all .15s ease;
letter-spacing: .025em;
text-transform: uppercase;
will-change: transform;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.focus, .btn-primary:active, .btn-primary:focus, .btn-primary:hover, .open > .dropdown-toggle.btn-primary, .btn-primary:not([disabled]):not(.disabled).active, .btn-primary:not([disabled]):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
transform: translateY(-1px);
}
/*
* utilities
*/
.text-success {
color: #77de51 !important;
}
.text-danger {
color: #ff6a6d !important;
}
.profile-avatar img {
background-color: #485561;
border: 1px solid #4c5a67;
}
.rounded-circle {
border-radius: 50%!important;
}
.img-thumbnail {
padding: .25rem;
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: .25rem;
max-width: 100%;
height: auto;
}
h1,h2,h3,h4,h5,h6 {
font-family: "Montserrat-Bold", sans-serif;
}
.text-muted {
color: rgba(255,255,255,0.35) !important;
}
.discord {
max-height:300px;overflow-y:scroll;
}
.card-scroll {
max-height: 500px;
overflow-y: scroll;
}
.card-scroll::-webkit-scrollbar {
width: 10px;
}
/* width */
.discord::-webkit-scrollbar, .microcolors::-webkit-scrollbar {
width: 6px;
}
/* Track */
.discord::-webkit-scrollbar-track, .microcolors::-webkit-scrollbar-track,
.card-scroll::-webkit-scrollbar-track {
background: rgba(0,0,0,0.2);
}
/* Handle */
.discord::-webkit-scrollbar-thumb, .microcolors::-webkit-scrollbar-thumb,
.card-scroll::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.15);
border-radius: 10px;
}
/* Handle on hover */
.discord::-webkit-scrollbar-thumb:hover, .microcolors::-webkit-scrollbar-thumb:hover,
.card-scroll::-webkit-scrollbar-thumb:hover
{
background: rgba(255,255,255,0.2);
}
/*
* Discord Block
*/
.discord-avatar {
border-radius:50%;
overflow:hidden;
background-size:cover;
width:20px;
height:20px;
margin-top:3px;
margin-right:10px;
box-shadow: inset 0px 0px 3px #000;
}
.discord-avatar img {
border-radius: 50%;
margin-top:-11px;
margin-left: -1px;
width:110%;
height: 110%;
}
.dnd { border: solid 1px red; }
.idle { border: solid 1px yellow; }
.online { border: solid 1px green; }
/*
* Forms
*/
.form-control {
border: 1px solid #4c5a67;
background-color: #434f5c;
box-shadow: none;
color: #ffffff;
}
.form-control:focus {
background: #4c5a67;
border-color: #526170;
box-shadow: none;
color: #ffffff;
}
.form-control:disabled {
background-color: #434f5c !important;
}
.input-group-text {
border-radius: 2px;
background-color: #526170;
color: #98a6ad;
border: 1px solid #526170;
}
.checkbox input[type="checkbox"] {
cursor: pointer;
opacity: 0;
z-index: 1;
outline: none !important;
}
.checkbox label {
display: inline-block;
padding-left: 5px;
position: relative;
font-weight: 500;
font-size: 13px;
}
.checkbox label::before {
-o-transition: 0.3s ease-in-out;
-webkit-transition: 0.3s ease-in-out;
background-color: #3d4853;
border-radius: 2px;
border: 1px solid #98a6ad;
content: "";
display: inline-block;
height: 17px;
left: 0;
margin-left: -17px;
position: absolute;
transition: 0.3s ease-in-out;
width: 17px;
outline: none !important;
}
.checkbox label::after {
color: #98a6ad;
display: inline-block;
font-size: 11px;
height: 16px;
left: 0;
margin-left: -17px;
padding-left: 3px;
padding-top: 1px;
position: absolute;
top: 0;
width: 16px;
}
.checkbox input[type="checkbox"]:checked + label::after {
content: "\f00c";
color:#fff;
font-family: 'Font Awesome 5 pro', sans-serif;
}
/*
* Tabs
*/
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
color: #ffffff;
background-color: #485561;
border-color: #485561 #485561 #485561;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
color: #ffffff;
background-color: #485561;
border-color: #485561 #485561 #485561;
}
.nav-tabs .nav-link {
border: 1px solid transparent;
border-top-left-radius: .25rem;
border-top-right-radius: .25rem;
}
.tabs-bordered li a, .tabs-bordered li a:hover, .tabs-bordered li a:focus {
border: 0 !important;
padding: 10px 20px !important;
}
.nav-tabs > li > a, .nav-pills > li > a {
color: #98a6ad;
font-weight: 300;
}
.nav-link {
display: block;
padding: .5rem 1rem;
}
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
border-color: #485561 #485561 #485561;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
color: #ffffff;
background-color: #485561;
border-color: #485561 #485561 #485561;
}
.tabs-bordered {
border-bottom: 2px solid rgba(152, 166, 173, 0.2) !important;
}
.author-block {
display: none;
min-width:150px;
}
@media(min-width: 992px) {
.author-block {
display: inline-block;
}
.skill-progress {
display: table-cell !important;
}
}
/*
* Profile Avatar
*/
.progress-avatar {
background-repeat: no-repeat;
background-size: 80px 80px;
background-position: top 30px center;
overflow: hidden;
position: relative;
}
.progress-avatar .progress-percent {
position: absolute;
width: 100%;
height: 170px;
line-height: 260px;
top: 0;
left: 0;
}
.player-stats h4 {
font-family: "Montserrat-Light", sans-serif;
}
/*
* Tables
*/
.table td, .table th {
vertical-align: middle;
}
.table thead th {
border-color: #434f5c;
}
.table td, .table th {
border-color: #434f5c;
}
.skill-progress {
display: none;
}
.skills .progress {
height: 15px;
width: 100px;
background-color: rgba(0,0,0,0.2) !important;
}
.skills .progress .progress-inner {
position: absolute;
width: 100px;
z-index: 1000;
}
.memberico {
position: absolute;
height:25px;
margin-top: -11px;
}
.theme {
background-color:rgba(0,0,0,0.1);
-webkit-transition: all .5s ease-in-out;
}
@media(max-width:768px) {
.theme {
display: none;
}
header .fal {
display: none !important;
}
}
.theme:hover {
cursor: pointer;
-webkit-transform: rotate(360deg);
}
.themebox {
display: none;
background-color: rgba(0,0,0,0.2);
text-align: center;
}
.theme-color {
display: inline-block;
border-radius: 5px;
margin-top: 10px;
margin-bottom: 5px;
width: 30px;
height: 30px;
}
#canvascontainer-max {
position:relative;
width:238px;
height:465px;
display:inline-block;
}
#canvascontainer-max canvas {
position:absolute;
}
#canvascontainer-comp {
position:relative;
width:238px;
height:465px;
display:inline-block;
margin-left:10px;
}
#canvascontainer-comp canvas {
position:absolute;
z-index:50;
}
#canvascontainer-comp button {
position:absolute;
bottom:0;
left:45px;
}
.color {
width: 50px;
height: 50px;
border-radius: 5px;
margin-bottom:5px;
position:relative;
float:left;
}
.color:nth-of-type(odd) {
margin-right:5px;
}
#colors {
display:block;
width: 105px;
overflow:hidden;
float:left;
}
#coloroutput input {
float:left;
clear:right;
width:25px;
}
#coloroutput label, #coloroutput input {
margin-bottom:10px;
}
#coloroutput label:first-of-type, #coloroutput input:first-of-type {
margin-top:5px;
}
#coloroutput label:last-of-type, #coloroutput input:last-of-type {
margin-bottom:0;
}
#output {
display:block;
margin-left: 20px;
margin-top: 20px;
}
#minicolors {
float:left;
}
.minicolor {
width:20px;
height:20px;
border-radius:5px;
margin:8px 5px 8px 0;
cursor:pointer;
}
.minicolor:first-of-type {
margin-top:1px;
}
.microcolors {
max-height: 300px;
overflow-y: scroll;
}
.microcolor {
margin:9px 1px 1px 1px;
border-radius:2px;
width:10px;
height:10px;
float:left;
}
.selected-cape-color {
border:2px solid limegreen !important;
}
#vote-cape:hover {
cursor: pointer;
}
.progress-bar {
background-color: #3bafda !important;
}
|
css
|
A special bench of the National Green Tribunal has directed Hindalco Industries Limited and Raipur Energen Limited (REL) to pay ₹10 crore interim compensation for violating environmental clearance (EC) norms on the functioning of the open-cast mine in Sambalpur district.
The coal mine falls in an area designated as critically polluted industrial cluster, having a score of more than 70 that requires extra mitigation measures for operating any polluting activity.
As per EC conditions, preparation of progressive mine closure plan based on the quantum of coal extracted from the mining area was required and overburden generated was required to be backfilled. The entire mining area was required to be backfilled up to the ground level.
However, the companies allegedly violated the condition and dumped the overburden on agricultural fields, adversely affecting land fertility and resulting in soil contamination. Besides, the companies built an earthen bund by encroaching private land.
Hindalco, which acquired Indian Aluminium Company Limited, the original lessee of coal block since 1994, was granted EC for coal extraction in 2001. GMR Chhattisgarh Energy Limited won the coal block bid in 2015. Later, it became REL, a subsidiary of Adani Power Limited.
According to NGT, Hindalco had first created overburden and when the lease of the mine was handed over to REL, it remained under an obligation to comply with the EC conditions and to manage the overburden with the existent norms.
“We accordingly apportion the liability between Hindalco and REL in the ratio of 75:25. Compensation for past damage to environment due to the violation and the cost of remediation has to be worked out,” the NGT said.
The NGT directed Hindalco to deposit an interim compensation of ₹7. 5 crore and ₹2. 5 crore for REL to meet the assessed compensation and cost of remediation. It further directed that compensation for past violations and cost of remediation should be worked out and restoration plan prepared by a six-member expert committee. The nodal agency will be regional officer, Ministry of Environment Forest and Climate Change, Bhubaneswar, for coordination and compliance.
|
english
|
# pylint: disable=invalid-name, arguments-differ, missing-docstring, line-too-long, no-member, redefined-builtin, abstract-method
from functools import partial
from typing import List, Tuple
import math
import torch
from e3nn import o3, rs
from e3nn.linear_mod import KernelLinear
from e3nn.util.eval_code import eval_code
from e3nn.util.sparse import get_sparse_buffer, register_sparse_buffer
class LearnableTensorSquare(torch.nn.Module):
def __init__(self, Rs_in, Rs_out, linear=True, allow_change_output=False, allow_zero_outputs=False):
super().__init__()
self.Rs_in = rs.simplify(Rs_in)
self.Rs_out = rs.simplify(Rs_out)
ls = [l for _, l, _ in self.Rs_out]
selection_rule = partial(o3.selection_rule, lfilter=lambda l: l in ls)
if linear:
Rs_in = [(1, 0, 1)] + self.Rs_in
else:
Rs_in = self.Rs_in
self.linear = linear
Rs_ts, T = rs.tensor_square(Rs_in, selection_rule)
register_sparse_buffer(self, 'T', T) # [out, in1 * in2]
ls = [l for _, l, _ in Rs_ts]
if allow_change_output:
self.Rs_out = [(mul, l, p) for mul, l, p in self.Rs_out if l in ls]
elif not allow_zero_outputs:
assert all(l in ls for _, l, _ in self.Rs_out)
self.kernel = KernelLinear(Rs_ts, self.Rs_out) # [out, in, w]
def __repr__(self):
return "{name} ({Rs_in} -> {Rs_out})".format(
name=self.__class__.__name__,
Rs_in=rs.format_Rs(self.Rs_in),
Rs_out=rs.format_Rs(self.Rs_out),
)
def forward(self, features):
'''
:param features: [..., channels]
'''
*size, n = features.size()
features = features.reshape(-1, n)
assert n == rs.dim(self.Rs_in)
if self.linear:
features = torch.cat([features.new_ones(features.shape[0], 1), features], dim=1)
n += 1
T = get_sparse_buffer(self, 'T') # [out, in1 * in2]
kernel = (T.t() @ self.kernel().T).T.reshape(rs.dim(self.Rs_out), n, n) # [out, in1, in2]
features = torch.einsum('zi,zj->zij', features, features)
features = torch.einsum('kij,zij->zk', kernel, features)
return features.reshape(*size, -1)
class LearnableTensorProduct(torch.nn.Module):
def __init__(self, Rs_in1, Rs_in2, Rs_out, allow_change_output=False):
super().__init__()
self.Rs_in1 = rs.simplify(Rs_in1)
self.Rs_in2 = rs.simplify(Rs_in2)
self.Rs_out = rs.simplify(Rs_out)
ls = [l for _, l, _ in self.Rs_out]
selection_rule = partial(o3.selection_rule, lfilter=lambda l: l in ls)
Rs_ts, T = rs.tensor_product(self.Rs_in1, self.Rs_in2, selection_rule)
register_sparse_buffer(self, 'T', T) # [out, in1 * in2]
ls = [l for _, l, _ in Rs_ts]
if allow_change_output:
self.Rs_out = [(mul, l, p) for mul, l, p in self.Rs_out if l in ls]
else:
assert all(l in ls for _, l, _ in self.Rs_out)
self.kernel = KernelLinear(Rs_ts, self.Rs_out) # [out, in, w]
def forward(self, features_1, features_2):
"""
:return: tensor [..., channel]
"""
*size, n = features_1.size()
features_1 = features_1.reshape(-1, n)
assert n == rs.dim(self.Rs_in1)
*size2, n = features_2.size()
features_2 = features_2.reshape(-1, n)
assert size == size2
T = get_sparse_buffer(self, 'T') # [out, in1 * in2]
kernel = (T.t() @ self.kernel().T).T.reshape(rs.dim(self.Rs_out), rs.dim(self.Rs_in1), rs.dim(self.Rs_in2)) # [out, in1, in2]
features = torch.einsum('kij,zi,zj->zk', kernel, features_1, features_2)
return features.reshape(*size, -1)
_tensor_product_code = """
import torch
@torch.jit.script
def main(ARGSx1: torch.Tensor, x2: torch.Tensor, w: torch.Tensor) -> torch.Tensor:
batch = x1.shape[0]
out = x1.new_zeros((batch, DIM))
ein = torch.einsum
CODE
return out
"""
def WeightedTensorProduct(Rs_in1, Rs_in2, Rs_out, normalization='component', own_weight=True):
Rs_in1 = rs.simplify(Rs_in1)
Rs_in2 = rs.simplify(Rs_in2)
Rs_out = rs.simplify(Rs_out)
instr = [
(i_1, i_2, i_out, 'uvw')
for i_1, (_, l_1, p_1) in enumerate(Rs_in1)
for i_2, (_, l_2, p_2) in enumerate(Rs_in2)
for i_out, (_, l_out, p_out) in enumerate(Rs_out)
if abs(l_1 - l_2) <= l_out <= l_1 + l_2 and p_1 * p_2 == p_out
]
return CustomWeightedTensorProduct(Rs_in1, Rs_in2, Rs_out, instr, normalization, own_weight)
def GroupedWeightedTensorProduct(Rs_in1, Rs_in2, Rs_out, groups=math.inf, normalization='component', own_weight=True):
Rs_in1 = rs.convention(Rs_in1)
Rs_in2 = rs.convention(Rs_in2)
Rs_out = rs.convention(Rs_out)
groups = min(groups, min(mul for mul, _, _ in Rs_in1), min(mul for mul, _, _ in Rs_out))
Rs_in1 = [(mul // groups + (g < mul % groups), l, p) for mul, l, p in Rs_in1 for g in range(groups)]
Rs_out = [(mul // groups + (g < mul % groups), l, p) for mul, l, p in Rs_out for g in range(groups)]
instr = [
(i_1, i_2, i_out, 'uvw')
for i_1, (_, l_1, p_1) in enumerate(Rs_in1)
for i_2, (_, l_2, p_2) in enumerate(Rs_in2)
for i_out, (_, l_out, p_out) in enumerate(Rs_out)
if abs(l_1 - l_2) <= l_out <= l_1 + l_2 and p_1 * p_2 == p_out
if i_1 % groups == i_out % groups
]
return CustomWeightedTensorProduct(Rs_in1, Rs_in2, Rs_out, instr, normalization, own_weight)
class CustomWeightedTensorProduct(torch.nn.Module):
def __init__(
self,
Rs_in1: rs.TY_RS_LOOSE,
Rs_in2: rs.TY_RS_LOOSE,
Rs_out: rs.TY_RS_LOOSE,
instr: List[Tuple[int, int, int, str]],
normalization: str = 'component',
own_weight: bool = True,
_specialized_code=True,
):
"""
Create a Tensor Product operation that has each of his path weighted by a parameter.
`instr` is a list of instructions.
An instruction if of the form (i_1, i_2, i_out, mode)
it means "Put `Rs_in1[i_1] otimes Rs_in2[i_2] into Rs_out[i_out]"
`mode` determines the way the multiplicities are treated.
The default mode should be 'uvw', meaning that all paths are created.
"""
super().__init__()
assert normalization in ['component', 'norm']
self.Rs_in1 = rs.convention(Rs_in1)
self.Rs_in2 = rs.convention(Rs_in2)
self.Rs_out = rs.convention(Rs_out)
code = ""
index_w = 0
wigners = set()
count = [0 for _ in range(rs.dim(self.Rs_out))]
instr = sorted(instr) # for optimization
for i_1, (mul_1, l_1, p_1) in enumerate(self.Rs_in1):
index_1 = rs.dim(self.Rs_in1[:i_1])
dim_1 = mul_1 * (2 * l_1 + 1)
code += f" x1_{i_1} = x1[:, {index_1}:{index_1+dim_1}].reshape(batch, {mul_1}, {2 * l_1 + 1})\n"
code += f"\n"
for i_2, (mul_2, l_2, p_2) in enumerate(self.Rs_in2):
index_2 = rs.dim(self.Rs_in2[:i_2])
dim_2 = mul_2 * (2 * l_2 + 1)
code += f" x2_{i_2} = x2[:, {index_2}:{index_2+dim_2}].reshape(batch, {mul_2}, {2 * l_2 + 1})\n"
code += f"\n"
last_ss = None
for i_1, i_2, i_out, mode in instr:
mul_1, l_1, p_1 = self.Rs_in1[i_1]
mul_2, l_2, p_2 = self.Rs_in2[i_2]
mul_out, l_out, p_out = self.Rs_out[i_out]
dim_1 = mul_1 * (2 * l_1 + 1)
dim_2 = mul_2 * (2 * l_2 + 1)
dim_out = mul_out * (2 * l_out + 1)
index_1 = rs.dim(self.Rs_in1[:i_1])
index_2 = rs.dim(self.Rs_in2[:i_2])
index_out = rs.dim(self.Rs_out[:i_out])
assert p_1 * p_2 == p_out
assert abs(l_1 - l_2) <= l_out <= l_1 + l_2
if dim_1 == 0 or dim_2 == 0 or dim_out == 0:
continue
code += f" # {l_1} x {l_2} = {l_out}\n"
code += f" s1 = x1_{i_1}\n"
code += f" s2 = x2_{i_2}\n"
assert mode in ['uvw', 'uvu', 'uvv', 'uuw', 'uuu', 'uvuv']
if _specialized_code:
# optimized code for special cases:
# 0 x 0 = 0
# 0 x L = L
# L x 0 = L
# L x L = 0
# 1 x 1 = 1
if (l_1, l_2, l_out) == (0, 0, 0) and mode == 'uvw' and normalization in ['component', 'norm']:
code += f" s1 = s1.reshape(batch, {mul_1})\n"
code += f" s2 = s2.reshape(batch, {mul_2})\n"
dim_w = mul_1 * mul_2 * mul_out
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2}, {mul_out})\n"
index_w += dim_w
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuvw,zu,zv->zw', sw, s1, s2)\n"
code += "\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1 * mul_2
continue
if l_1 == 0 and l_2 == l_out and mode == 'uvw' and normalization == 'component':
code += f" s1 = s1.reshape(batch, {mul_1})\n"
dim_w = mul_1 * mul_2 * mul_out
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2}, {mul_out})\n"
index_w += dim_w
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuvw,zu,zvi->zwi', sw, s1, s2).reshape(batch, {dim_out})\n"
code += "\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1 * mul_2
continue
if l_2 == 0 and l_1 == l_out and mode == 'uvw' and normalization == 'component':
code += f" s2 = s2.reshape(batch, {mul_2})\n"
dim_w = mul_1 * mul_2 * mul_out
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2}, {mul_out})\n"
index_w += dim_w
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuvw,zui,zv->zwi', sw, s1, s2).reshape(batch, {dim_out})\n"
code += "\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1 * mul_2
continue
if l_1 == l_2 and l_out == 0 and mode == 'uvw' and normalization == 'component':
# Cl_l_0 = eye(3) / sqrt(2L+1)
dim_w = mul_1 * mul_2 * mul_out
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2}, {mul_out}).div({(2 * l_1 + 1)**0.5})\n"
index_w += dim_w
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuvw,zui,zvi->zw', sw, s1, s2).reshape(batch, {dim_out})\n"
code += "\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1 * mul_2
continue
if (l_1, l_2, l_out) == (1, 1, 1) and mode == 'uvw' and normalization == 'component':
# C1_1_1 = levi-civita / sqrt(2)
code += f" s1 = s1.reshape(batch, {mul_1}, 1, {2 * l_1 + 1})\n"
code += f" s2 = s2.reshape(batch, 1, {mul_2}, {2 * l_2 + 1})\n"
code += f" s1, s2 = torch.broadcast_tensors(s1, s2)\n"
dim_w = mul_1 * mul_2 * mul_out
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2}, {mul_out}).div({2**0.5})\n"
index_w += dim_w
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuvw,zuvi->zwi', sw, torch.cross(s1, s2, dim=3)).reshape(batch, {dim_out})\n"
code += "\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1 * mul_2
continue
if last_ss != (i_1, i_2, mode[:2]):
if mode[:2] == 'uv':
code += f" ss = ein('zui,zvj->zuvij', s1, s2)\n"
if mode[:2] == 'uu':
code += f" ss = ein('zui,zuj->zuij', s1, s2)\n"
last_ss = (i_1, i_2, mode[:2])
wigners.add((l_1, l_2, l_out))
if mode == 'uvw':
dim_w = mul_1 * mul_2 * mul_out
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2}, {mul_out})\n"
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuvw,ijk,zuvij->zwk', sw, C{l_1}_{l_2}_{l_out}, ss).reshape(batch, {dim_out})\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1 * mul_2
if mode == 'uvu':
assert mul_1 == mul_out
dim_w = mul_1 * mul_2
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2})\n"
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuv,ijk,zuvij->zuk', sw, C{l_1}_{l_2}_{l_out}, ss).reshape(batch, {dim_out})\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_2
if mode == 'uvv':
assert mul_2 == mul_out
dim_w = mul_1 * mul_2
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2})\n"
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuv,ijk,zuvij->zvk', sw, C{l_1}_{l_2}_{l_out}, ss).reshape(batch, {dim_out})\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1
if mode == 'uuw':
assert mul_1 == mul_2
dim_w = mul_1 * mul_out
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_out})\n"
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuw,ijk,zuij->zwk', sw, C{l_1}_{l_2}_{l_out}, ss).reshape(batch, {dim_out})\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += mul_1
if mode == 'uuu':
assert mul_1 == mul_2 == mul_out
dim_w = mul_1
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1})\n"
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zu,ijk,zuij->zuk', sw, C{l_1}_{l_2}_{l_out}, ss).reshape(batch, {dim_out})\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += 1
if mode == 'uvuv':
assert mul_1 * mul_2 == mul_out
dim_w = mul_1 * mul_2
code += f" sw = w[:, {index_w}:{index_w+dim_w}].reshape(batch, {mul_1}, {mul_2})\n"
code += f" out[:, {index_out}:{index_out+dim_out}] += ein('zuv,ijk,zuvij->zuvk', sw, C{l_1}_{l_2}_{l_out}, ss).reshape(batch, {dim_out})\n"
for pos in range(index_out, index_out + dim_out):
count[pos] += 1
index_w += dim_w
code += "\n"
ilast = 0
clast = count[0]
for i, c in enumerate(count):
if clast != c:
if clast > 1:
code += f" out[:, {ilast}:{i}].div_({clast ** 0.5})\n"
clast = c
ilast = i
if clast > 1:
code += f" out[:, {ilast}:].div_({clast ** 0.5})\n"
wigners = sorted(wigners)
self.wigners_names = [f"C{l_1}_{l_2}_{l_3}" for l_1, l_2, l_3 in wigners]
args = ", ".join(f"{arg}: torch.Tensor" for arg in self.wigners_names)
if args:
args += ', '
for arg, (l_1, l_2, l_out) in zip(self.wigners_names, wigners):
wig = o3.wigner_3j(l_1, l_2, l_out)
if normalization == 'component':
wig *= (2 * l_out + 1) ** 0.5
if normalization == 'norm':
wig *= (2 * l_1 + 1) ** 0.5 * (2 * l_2 + 1) ** 0.5
self.register_buffer(arg, wig)
x = _tensor_product_code
x = x.replace("DIM", f"{rs.dim(self.Rs_out)}")
x = x.replace("ARGS", args)
x = x.replace("CODE", code)
self.code = x
self.main = eval_code(x).main
self.nweight = index_w
if own_weight:
self.weight = torch.nn.Parameter(torch.randn(self.nweight))
def __repr__(self):
return "{name} ({Rs_in1} x {Rs_in2} -> {Rs_out} using {nw} paths)".format(
name=self.__class__.__name__,
Rs_in1=rs.format_Rs(self.Rs_in1),
Rs_in2=rs.format_Rs(self.Rs_in2),
Rs_out=rs.format_Rs(self.Rs_out),
nw=self.nweight,
)
def forward(self, features_1, features_2, weight=None):
"""
:return: tensor [..., channel]
"""
*size, n = features_1.size()
features_1 = features_1.reshape(-1, n)
assert n == rs.dim(self.Rs_in1), f"{n} is not {rs.dim(self.Rs_in1)}"
*size2, n = features_2.size()
features_2 = features_2.reshape(-1, n)
assert n == rs.dim(self.Rs_in2), f"{n} is not {rs.dim(self.Rs_in2)}"
assert size == size2
if weight is None:
weight = self.weight
weight = weight.reshape(-1, self.nweight)
if weight.shape[0] == 1:
weight = weight.repeat(features_1.shape[0], 1)
wigners = [getattr(self, arg) for arg in self.wigners_names]
if features_1.shape[0] == 0:
return torch.zeros(*size, rs.dim(self.Rs_out))
features = self.main(*wigners, features_1, features_2, weight)
return features.reshape(*size, -1)
|
python
|
#pragma once
#include "SampleBase.hpp"
#include "ResourceMapping.h"
#include "BasicMath.hpp"
#ifndef M_PI
# define M_PI 3.14159265358979323846 // pi
#endif
namespace Diligent
{
class CyberSpace final : public SampleBase
{
public:
virtual void ModifyEngineInitInfo(const ModifyEngineInitInfoAttribs& Attribs) override final;
virtual void Initialize(const SampleInitInfo& InitInfo) override final;
virtual void Render() override final;
virtual void Update(double CurrTime, double ElapsedTime) override final;
virtual const Char* GetSampleName() const override final { return "XPeng's CyberParticle"; }
private:
void CreateRenderParticlePSO();
void CreateUpdateParticlePSO();
void CreateParticleBuffers();
void CreateConsantBuffer();
void UpdateUI();
int m_NumParticles = 10000;
int m_iWorldSize = 512;
int m_ThreadGroupSize = 256;
RefCntAutoPtr<IPipelineState> m_pUpdateParticlesPSO;
RefCntAutoPtr<IShaderResourceBinding> m_pUpdateParticlesSRB;
RefCntAutoPtr<IPipelineState> m_pMoveParticlesPSO;
RefCntAutoPtr<IShaderResourceBinding> m_pMoveParticlesSRB;
RefCntAutoPtr<IPipelineState> m_pRenderParticlePSO;
RefCntAutoPtr<IShaderResourceBinding> m_pRenderParticleSRB;
RefCntAutoPtr<IBuffer> m_Constants;
RefCntAutoPtr<IBuffer> m_pParticleAttribsBuffer;
RefCntAutoPtr<IBuffer> m_pNeighbourAttribsBuffer;
RefCntAutoPtr<IResourceMapping> m_pResMapping;
int4 m_i4NID = int4(1, 2, 3, 4);
float m_fTimeDelta = 0;
float m_fSimulationSpeed = 1;
bool m_bPaused = false;
MouseState m_LastMouseState;
float2 m_f2ViewShift = float2(0,0);
float m_fViewScale = 1.0f;
};
} // namespace Diligent
|
cpp
|
<gh_stars>1-10
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [whatwg] attribute "media" on "script" element
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20attribute%20%22media%22%20on%20%22script%22%20element&In-Reply-To=%3CPine.LNX.4.62.0811142103100.1041%40hixie.dreamhostps.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="059472.html">
<LINK REL="Next" HREF="059473.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[whatwg] attribute "media" on "script" element</H1>
<!--htdig_noindex-->
<B><NAME></B>
<A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20attribute%20%22media%22%20on%20%22script%22%20element&In-Reply-To=%3CPine.LNX.4.62.0811142103100.1041%40hixie.dreamhostps.com%3E"
TITLE="[whatwg] attribute "media" on "script" element">ian at hixie.ch
</A><BR>
<I>Fri Nov 14 13:18:25 PST 2008</I>
<P><UL>
<LI>Previous message: <A HREF="059472.html">[whatwg] attribute "media" on "script" element
</A></li>
<LI>Next message: <A HREF="059473.html">[whatwg] Off-topic: listserv bounces
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#59477">[ date ]</a>
<a href="thread.html#59477">[ thread ]</a>
<a href="subject.html#59477">[ subject ]</a>
<a href="author.html#59477">[ author ]</a>
</LI>
</UL>
<HR>
<!--/htdig_noindex-->
<!--beginarticle-->
<PRE>On Fri, 14 Nov 2008, <NAME> wrote:
><i>
</I>><i> Would it be possible to have "media" attribute in the SCRIPT element?
</I>><i> Addmitted vaues would be the same of STYLE element (all, screen, print,
</I>><i> handheld ...)
</I>
This doesn't really work because media queries are supposed to change
dynamically. The real solution here is a combination of XBL2 and a new API
in the CSSOM-View draft (window.media).
--
<NAME> U+1047E )\._.,--....,'``. fL
<A HREF="http://ln.hixie.ch/">http://ln.hixie.ch/</A> U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
</PRE>
<!--endarticle-->
<!--htdig_noindex-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="059472.html">[whatwg] attribute "media" on "script" element
</A></li>
<LI>Next message: <A HREF="059473.html">[whatwg] Off-topic: listserv bounces
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#59477">[ date ]</a>
<a href="thread.html#59477">[ thread ]</a>
<a href="subject.html#59477">[ subject ]</a>
<a href="author.html#59477">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
mailing list</a><br>
<!--/htdig_noindex-->
</body></html>
|
html
|
<gh_stars>1-10
//! This module handles argument parsing for the migrator binary.
use bottlerocket_release::BottlerocketRelease;
use semver::Version;
use simplelog::LevelFilter;
use std::env;
use std::fs;
use std::path::{Path, PathBuf};
use std::process;
use std::str::FromStr;
/// Informs the user about proper usage of the program and exits.
fn usage() -> ! {
let program_name = env::args().next().unwrap_or_else(|| "program".to_string());
eprintln!(
r"Usage: {}
--datastore-path PATH
--migration-directories PATH[:PATH:PATH...]
(--migrate-to-version x.y | --migrate-to-version-from-os-release)
[ --no-color ]
[ --log-level trace|debug|info|warn|error ]",
program_name
);
process::exit(2);
}
/// Prints a more specific message before exiting through usage().
fn usage_msg<S: AsRef<str>>(msg: S) -> ! {
eprintln!("{}\n", msg.as_ref());
usage();
}
/// Stores user-supplied arguments.
pub(crate) struct Args {
pub(crate) datastore_path: PathBuf,
pub(crate) log_level: LevelFilter,
pub(crate) migration_directories: Vec<PathBuf>,
pub(crate) migrate_to_version: Version,
}
impl Args {
/// Parses user arguments into an Args structure.
pub(crate) fn from_env(args: env::Args) -> Self {
// Required parameters.
let mut datastore_path = None;
let mut log_level = None;
let mut migration_directories = None;
let mut migrate_to_version = None;
let mut iter = args.skip(1);
while let Some(arg) = iter.next() {
match arg.as_ref() {
"--datastore-path" => {
let path_str = iter
.next()
.unwrap_or_else(|| usage_msg("Did not give argument to --datastore-path"));
trace!("Given --datastore-path: {}", path_str);
// On first boot, the data store won't exist yet, because storewolf runs after.
if !Path::new(&path_str).exists() {
eprintln!(
"Data store does not exist at given path, exiting ({})",
path_str
);
process::exit(0);
}
let canonical = fs::canonicalize(path_str).unwrap_or_else(|e| {
usage_msg(format!(
"Could not canonicalize given data store path: {}",
e
))
});
trace!("Canonicalized data store path: {}", canonical.display());
datastore_path = Some(canonical);
}
"--log-level" => {
let log_level_str = iter
.next()
.unwrap_or_else(|| usage_msg("Did not give argument to --log-level"));
log_level = Some(LevelFilter::from_str(&log_level_str).unwrap_or_else(|_| {
usage_msg(format!("Invalid log level '{}'", log_level_str))
}));
}
"--migration-directories" => {
let paths_str = iter.next().unwrap_or_else(|| {
usage_msg("Did not give argument to --migration-directories")
});
trace!("Given --migration-directories: {}", paths_str);
let paths: Vec<_> = paths_str.split(':').map(PathBuf::from).collect();
if paths.is_empty() {
usage_msg("Found no paths in argument to --migration-directories");
}
migration_directories = Some(paths);
}
"--migrate-to-version" => {
let version_str = iter.next().unwrap_or_else(|| {
usage_msg("Did not give argument to --migrate-to-version")
});
trace!("Given --migrate-to-version: {}", version_str);
let version = Version::from_str(&version_str).unwrap_or_else(|e| {
usage_msg(format!("Invalid argument to --migrate-to-version: {}", e))
});
migrate_to_version = Some(version)
}
"--migrate-to-version-from-os-release" => {
let br = BottlerocketRelease::new().unwrap_or_else(|e| {
usage_msg(format!("Unable to get version from os-release: {}", e))
});
migrate_to_version = Some(br.version_id)
}
_ => usage(),
}
}
Self {
datastore_path: datastore_path.unwrap_or_else(|| usage()),
log_level: log_level.unwrap_or_else(|| LevelFilter::Info),
migration_directories: migration_directories.unwrap_or_else(|| usage()),
migrate_to_version: migrate_to_version.unwrap_or_else(|| usage()),
}
}
}
|
rust
|
Elina Svitolina had a strong service game and kept the pressure high to move into her first US Open quarterfinal on Sunday night. A relaxed and focused straight sets win over Madison Keys ended her opponent’s 10 match win streak at Arthur Ashe Stadium with a 7-5, 6-4 result at the Billy Jean King National Tennis Center. The 24-year-old officially marked her place in the quarterfinal of every single grand slam.
This marked the fourth match between the two with the American leading the series including her win two years ago. The Illinois native had yet to drop a set and held off Sofia Kenin from getting a leg up on her in the third round. The world number five had a similar result against Dayana Yastremska who she blanked in the second set.
Having yet to drop a set, the two top ten players would likely go to the brink of their match. Svitolina once again had a chance to surpass her round of 16 finish and would have a challenge getting any leverage against the 2017 finalist of the tournament.
The American opened with a 111mph ace but struggled with the first serve at times. She managed to hold serve against the fifth seed but found little chance of breaking the Ukrainian.
After five service holds, Svitolina had a slight edge winning 9 of 9 from the first serve. Her first double fault was committed in the sixth but held firm to remain even with Keys. The fifth seed produced a chance for a break in the following game, but the defense from the 10th seed shut the opportunity down maintain the pace for her benefit.
After the four-all tie, Keys not only upped her ace record to six but sent it to Svitolina at 122 mph. It set up a strong service hold from Keys pressuring the Ukrainian to falter. Errors assisted in the tenth straight service hold with Svitolina gaining a shot at the set. The backhand let the American down setting up two break points but a recovery of crosscourt winners brought the tenth seed to deuce.
Two smothered forehands gave Svitolina the break needed to serve for the set at 6-5.
A good net-front crosscourt opened scoring for the world number five who painted the line on a great return. With an error giving her two set points, Svitolina watched a wide return from Keys put the set to rest after 38 minutes. It was the 21st of the set that practically negated the 20 winners she produced.
To get back on the right track, Keys put together a strong service game in the second set. Svitolina looked to take advantage but committed the second double fault of the match. Errors blew her 40-0 start but held with another forehand from Keys going into the net. An early break arrived for the Ukrainian as the errors from the 10th seed racked up quickly. They returned to service holds where the lead remained with Svitolina after seven.
A key hold made it 5-3 for the fifth seed putting Keys on the edge with a hold needed to stay alive. Drawn errors by Svitolina kept the American in the hunt with a line drive winner clinching the ninth on serve. The fifth seed cruised to victory with Keys continuing the onslaught of backhand errors that finished the match in 1 hour and 14 minutes.
It was the first time Keys lost a match at night ending a decade long streak of success. With the motivation moving her into Tuesday match against Johanna Konta, Svitolina had her eyes set on further progress.
|
english
|
{"source_db":"PMC","source_id":"3359311","division_id":26,"section":"Caption-Figure 8","text":"Disruption of CFTR activity does not increase IL-1beta production in PBMCs or macrophages.\nPBMCs from CF patients (n = 15) and controls (n = 13) were treated with CFTRinh172 (10 microM) for 18 hours prior to stimulation with live PAO1 (MOI = 1). (A) IL-1beta and (B) IL-8 production was measured at 24 hours. (C) Monocytes from controls (n = 3) were differentiated into macrophages. Macrophages were treated with CFTRinh172, stimulated as per monocytes, and measured for IL-1beta production at 24 hours. THP-1 reporter cells were treated with CFTRinh172 24 hours prior to stimulation with PAO1 and measured for (D) IL-1beta secretion, (E) IL-8, and (F) NF-kappaB/AP-1 activity at 24 hours (n = 4).","catanns":[{"id":"T5","span":{"begin":37,"end":45},"category":"Positive_regulation"},{"id":"T1","span":{"begin":46,"end":54},"category":"Protein"},{"id":"T6","span":{"begin":55,"end":65},"category":"Gene_expression"},{"id":"T2","span":{"begin":250,"end":258},"category":"Protein"},{"id":"T7","span":{"begin":272,"end":282},"category":"Gene_expression"},{"id":"T3","span":{"begin":471,"end":479},"category":"Protein"},{"id":"T8","span":{"begin":480,"end":490},"category":"Gene_expression"},{"id":"T4","span":{"begin":615,"end":623},"category":"Protein"},{"id":"T9","span":{"begin":624,"end":633},"category":"Localization"}],"insanns":[{"id":"E1","type":"instanceOf","object":"T5"},{"id":"E2","type":"instanceOf","object":"T6"},{"id":"E3","type":"instanceOf","object":"T7"},{"id":"E4","type":"instanceOf","object":"T8"},{"id":"E5","type":"instanceOf","object":"T9"}],"relanns":[{"id":"R1","type":"themeOf","subject":"E2","object":"E1"},{"id":"R2","type":"themeOf","subject":"T1","object":"E2"},{"id":"R3","type":"themeOf","subject":"T2","object":"E3"},{"id":"R4","type":"themeOf","subject":"T3","object":"E4"},{"id":"R5","type":"themeOf","subject":"T4","object":"E5"}],"modanns":[{"id":"M1","type":"Negation","object":"E1"},{"id":"M2","type":"Speculation","object":"E3"},{"id":"M3","type":"Speculation","object":"E4"},{"id":"M4","type":"Speculation","object":"E5"}]}
|
json
|
<reponame>sshtools/forker<gh_stars>10-100
/**
* Copyright © 2015 - 2021 SSHTOOLS Limited (<EMAIL>)
*
* 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 com.sshtools.forker.common;
/**
* Represents the priority of a process. Note, the OS may support more less
* priorities, but currently a least common denominator approach has been taken
* with this feature. This may change in the future.
*
*/
public enum Priority {
/**
* Low priority
*/
LOW,
/**
* Normal priority, i.e. as decided by OS when priority is not explicitly
* set
*/
NORMAL,
/**
* High priority
*/
HIGH,
/**
* Realtime (when supported)
*/
REALTIME
}
|
java
|
Jaipur: In an exciting match of the IPL on Thursday, the Rajasthan Royals had to face defeat at the hands of the Lucknow Supergiants at their home ground, Jaipur. To watch this match, a large number of spectators reached the stadium, where Rajasthan Chief Minister Ashok Gehlot was also present. Gehlot enjoyed the match while sitting in the spectators' gallery. When Gehlot reached the stadium, slogans of 'Modi-Modi' were raised in front of him.
Its video is going viral on social media, in which it is seen that Ashok Gehlot is reaching the stadium to watch the match, and as soon as he accepts the greetings of the audience by shaking hands, some spectators sitting there chant 'Modi-Modi' slogans. Even after all this, Gehlot moves ahead with a smile. On the other hand, if we talk about the match, at one time the victory of the Rajasthan Royals seemed certain in this match, but it is not said that cricket is a game of uncertainties. Then it happened, and such a turn happened that the Lucknow Supergiants won the match by 10 runs.
This is not the first time that slogans have been raised in favour of Prime Minister Modi in front of Gehlot in this way; this has happened on many occasions before. In September last year, when Ashok Gehlot reached Ramdevra near Jaisalmer for darshan at the Lok Devta Baba Ramdev temple, even then there were slogans in support of Prime Minister Modi. Even then, Chief Minister Gehlot did not express any displeasure even after the slogans of 'Modi-Modi' were raised in the temple; rather, he was seen smiling. Later, he left after accepting the greetings of the devotees present in the temple.
|
english
|
/**
* @extends Error
*/
export default class AuthPasswordError extends Error {
public type: string;
constructor(password) {
const msg = `Bad password '${password}'.`;
super(msg);
this.message = msg;
this.type = "AuthPasswordError";
}
}
|
typescript
|
<reponame>tdhman/IndicatorRatingBar
package com.helado.indicatorratingbar;
/**
* Custom event delegate for RatingGrid.
* Use this interface to implement custom events in RatingGrid
* and delegate to RatingView.
*/
public interface RatingGridEvent {
/**
* Example: add custom delegate event
* void sizeChangedEvent(int newHeight, int oldHeight);
*/
}
|
java
|
<gh_stars>1-10
export declare function concatUint8Arrays(...args: Uint8Array[]): Uint8Array;
|
typescript
|
<gh_stars>1-10
"""
This module exists to do basic processing of timecourse data that is output
from kinefld simulations
Possible things TODO:
add a wildcardstructure thing like ****** when structures not yet exposed
"""
import math
import numpy as np
import pandas
# from scipy.signal import argrelextrema
from scipy.optimize import curve_fit
from copy import deepcopy
from collections import OrderedDict
from collections import Counter
class TimeCourseStructure(object):
"""
class will contain the information of a given set of experimental runs on
Kinefold
Requires an output dictionay structure that is output from hyak processing
"""
def __init__(self, compresseddict, structurewindow=None, timewindow=None,
rescale=False, firstexposure=False, maxlength=False, cutoff=0.0):
"""
This function initializes the object - the only thing required for
this step is the dictionaryofruns
:param dictionaryofruns: This is the dictionary containing all of the
simulation imformation
:type dictionaryofruns: dict
:param structurewindow: The start and stop window that you want to look
at - (this is 1 indexed!)
:type structurewindow: list
:param timewindow: The start and stop of the timewindow you want to
consider
:type timewindow: list
:param cutoff: The smallest observed max frequency of structure to
consider. This is great for reducing the size of things that you
produce
:type cutoff: float
:param rescale: This will extend the max time of a simulation if True.
this is important for considering a diverse set of simulations
:type rescale: boolean
:param maxlength: If true the maximum length of the sequence will be
used as the end of the indexstomine
:type maxlength: boolean
"""
self.structures = {}
self.structuredataframe = None
self.stats = {}
self.timewindow = timewindow
self.structurewindow = structurewindow
#self.sequence = self.completesequence
self.dictionary = compresseddict
self.completesequence = compresseddict['sequence']
if structurewindow or (timewindow and maxlength):
self.generate_data(structurewindow, timewindow, cutoff, rescale,
maxlength, firstexposure)
@classmethod
def init_from_dictofruns(cls, dictionaryofruns, structurewindow=None, timewindow=None,
rescale=False, firstexposure=False, maxlength=False, cutoff=0.0):
"""
This function initializes the object - the only thing required for
this step is the dictionaryofruns
:param dictionaryofruns: This is the dictionary containing all of the
simulation imformation
:type dictionaryofruns: dict
:param structurewindow: The start and stop window that you want to look
at - (this is 1 indexed!)
:type structurewindow: list
:param timewindow: The start and stop of the timewindow you want to
consider
:type timewindow: list
:param cutoff: The smallest observed max frequency of structure to
consider. This is great for reducing the size of things that you
produce
:type cutoff: float
:param rescale: This will extend the max time of a simulation if True.
this is important for considering a diverse set of simulations
:type rescale: boolean
:param maxlength: If true the maximum length of the sequence will be
used as the end of the indexstomine
:type maxlength: boolean
"""
from ..hyak import process as hyakp
temprundict, baseadditiontime, completesequence, simulation_type = \
hyakp.consolidate_run_dictionary(dictionaryofruns)
#This step is time intensive and needs to be optimized
dictionary = hyakp.compress_run_dictionary(temprundict,
baseadditiontime, completesequence,
simulation_type)
#A list of structures that have been found thus far and their max
#frequency
output = cls(dictionary, structurewindow, timewindow, rescale,
firstexposure, maxlength, cutoff)
return output
def generate_data(self, structurewindow, timewindow=None, cutoff=0.0,
maxlength=None, firstexposure=True):
""" This function will condense the run dictionary information into a
pandas dataframe that is windowed by the specified bounds.
:param structurewindow: The start and stop location of structure (1
indexed)
:type structurewindow: (int, int)
:param timewindow: The timewindow of the simulation to consider when
generating the data
:type timewindow: (float, float)
:param cutoff: The minimum frequency a structure must have to be
considered
:type cutoff: float
:param maxlength:
:type maxlength:
:param firstexposure: Should the dataframe start after the first base
has been exposed?
:type firstexposure: bool
:returns: Populates the structure dataframe of the object
:rtype: None
"""
self.structurewindow = structurewindow
self.timewindow = timewindow
if maxlength:
self.structurewindow = calculate_indexs_from_time(
self.dictionary, self.timewindow)
self.structuredataframe = \
structure_evaluation(self.dictionary, self.structurewindow,
self.timewindow, cutoff, firstexposure)
self.sequence = self.completesequence[
self.structurewindow[0] - 1: self.structurewindow[1]]
def find_sequence_index(self, sequence):
"""this function will look through the parts and identify the start
and stop location of the part if it exists in the part
:param sequence: the sequence of the part that you are looking for
:type sequence: str
"""
# First convert the string to RNA
sequence = dna_to_rna(sequence)
try:
lowindex = self.completesequence.index(sequence) + 1
highindex = lowindex -1 + len(sequence)
except ValueError:
return 'Target sequence is not in the complete sequence'
return [lowindex, highindex]
def calculate_folding_rate(self, structurelist):
"""This function will fit an exponential function to fit folding data
with the goal of finding a rate of folding a max value of folding
sum the contribution of multiple parts for this folding rate
:param structurelist: list of all of the structures to be considered
:type structurelist: list of str
:return: returns popt and pcov
popt = [maxvalue, rate]
pcov an array of the variance of these values
"""
# First consolidate all of the structures
timearray = np.array(self.structuredataframe.index.tolist())
timearray = timearray - min(timearray)
structurearray = np.zeros(len(timearray))
for structure in structurelist:
try:
structurearray += self.structuredataframe[structure].values
except KeyError:
pass
# timearray = timearray[:1000]
# structurearray = structurearray[:1000]
# shift = self.baseadditiontime * self.structurewindow[1]
popt, pcov = curve_fit(rate_of_folding_func, timearray,
structurearray, p0=[0.5, 0.0001])
# popt, pcov = curve_fit(
# lambda t, maxvalue, rate: rate_of_folding_func(
# t, shift, maxvalue, rate),
# temptime, freq)
return popt, pcov
def maxium_frequency_of_structures(self, structurelist):
"""
This function searches the populated structuredataframe for all of the
structures that are requested. Right now this requires that you have
generated a dataframe with the appropriate window
:param structurelist: list of all of the structures to be considered
:type structurelist: list of str
:return: Maximum frequency of a combined set of structures appearing
:rtype: float
"""
structurearray = np.zeros(self.structuredataframe.shape[0])
for structure in structurelist:
try:
structurearray += self.structuredataframe[structure].values
except KeyError:
pass
return structurearray.max()
def final_frequency_of_structures(self, structurelist):
"""
This function searches the populated structuredataframe for all of the
structures that are requested and then returns the final frequency
of the collection of structures
:param structurelist: list of all of the structures to be considered
:type structurelist: list of str
:return: Maximum frequency of a combined set of structures appearing
:rtype: float
"""
return_frequency = 0.
for structure, frequency in self.structuredataframe.iloc[-1].iteritems():
if structure in structurelist:
return_frequency += frequency
return return_frequency
def average_frequency_of_structures(self, structurelist):
"""
This function will process an exisiting structuredataframe. It searches
for every strcuture that is asked for, creates a vector of their total
folding frequency, and then integrates under this data and normalizes
to the toal time that is elapsed
:param structurelist: list of all of the structures to be considered
:type structurelist: list of str
:return: Average frequency structures appeared
:rtype: float
"""
structurearray = np.zeros(self.structuredataframe.shape[0])
for structure in structurelist:
try:
structurearray += self.structuredataframe[structure].values
except KeyError:
pass
total_time = self.structuredataframe.index[-1] - \
self.structuredataframe.index[0]
return np.trapz(x=self.structuredataframe.index, y=structurearray) / \
total_time
def time_frequency_vector_of_structures(self, structurelist):
"""
This function pulls out the time and frequency of a set of structures
for a dataframe which has data.
:param sructurelist:
:type structurelist: list
:return: array of (time, frequency)
:rtype: np.array
"""
structurearray = np.zeros(self.structuredataframe.shape[0])
timearray = np.array(self.structuredataframe.index)
for structure in structurelist:
try:
structurearray += self.structuredataframe[structure].values
except KeyError:
pass
return np.vstack((timearray, structurearray))
def final_structures_seen(self, structurewindow, cutoff=0.0):
"""Generates data for the specific window and then returns the windowed
structures for the devices
:param structurewindow:
:type structurewindow:
:param cutoff: The maximum frequency of structure to be considered
:type cutoff: float
:returns: List of final dotbracket structures seen
:rtype: list
"""
return_list = []
self.generate_data(structurewindow, cutoff=cutoff,
firstexposure=True)
for structure, frequency in self.structuredataframe.iloc[-1].iteritems():
if frequency > cutoff:
return_list.append(structure)
return return_list
def __repr__(self):
# Crude Sorting system
sortlist = []
for structure in self.structures:
sortlist.append([self.structures[structure][0], structure])
sortlist.sort()
output = ''
output += '======================================================'
output += '\n'
output += self.sequence + ' ' + 'Time (ms)' + ' ' + 'Max Freq'
for structure in sortlist:
output += '\n'
structure = structure[1]
linetoprint = structure
linetoprint += ' '
linetoprint += str(self.structures[structure][0]).zfill(8)
linetoprint += ' '
linetoprint += str(self.structures[structure][1])
output += linetoprint
return output
def rate_of_folding_func(t, maxvalue, rate):
return maxvalue*(1 - np.exp(-rate*(t)))
def calcuate_time_vector_for_structures(compresseddict, timewindow,
firstexposure=False,
windowstartstop=None):
mintime, maxtime = timewindow
if windowstartstop:
lengthofsequence = windowstartstop[1]
startindex = None
stopindex = None
timelist = compresseddict['dotbracket'].keys()
for index, timepoint in enumerate(timelist):
if firstexposure and startindex is None:
size = len(compresseddict['dotbracket'][timepoint].most_common(1)[0][0])
if size == lengthofsequence:
startindex = index
elif startindex is None and timepoint >= mintime:
startindex = index
elif stopindex is None and timepoint >= maxtime:
stopindex = index
break
if not stopindex:
stopindex = len(timelist) - 1
return timelist[startindex : stopindex + 1]
def calculate_indexs_from_time(dictionaryofruns, timewindow):
""" This serves to find the last possible base of the window
sequence """
output = [1, 0]
maxtime = timewindow[1]
#Cycle through the time points
for timepoint in dictionaryofruns['dotbracket']:
maxlength = len(
dictionaryofruns['dotbracket'][timepoint].most_common[1][0][0])
if maxtime <= timepoint:
break
output[1] = maxlength
return output
def structure_evaluation(dictionaryofruns, structurewindow, timewindow=None,
cutoff=0., firstexposure=False):
"""
:param dictionaryofruns: This is the standard dictionary that is output by
Kinefold runnumber:['dotbracket', etc, etc,]:list
:type dictionaryofruns: Dictionary
:param structurewindow: The start and stop positions of the dotbrackets to
mine over time (1 indexed)
:param timewindow: If used this outlines the timepoints of interest
:type timewindow: list of lists of floats
:param cutoff: This is a way to remove not common structures - anystructure
which doesn't appear more than the cutoff is removed from the output
:type cutoff: float
"""
# Probably best to have this set up as a dictionary output?
if timewindow:
mintime, maxtime = timewindow
else:
mintime = 0
# Grab the max time of the run
maxtime = dictionaryofruns['dotbracket'].keys()[-1]
timevector = calcuate_time_vector_for_structures(dictionaryofruns, [mintime, maxtime], firstexposure, structurewindow)
# Now create structure dicitonary and populate it
structuredataframe = pandas.DataFrame(timevector, columns=['time'])
structuredataframe = structuredataframe.set_index('time')
timesize = len(timevector)
for timepoint in timevector:
if timepoint >= mintime:
structuredataframe = add_structure_data(dictionaryofruns['dotbracket'][timepoint], structurewindow, structuredataframe, timepoint, timesize)
elif timepoint <= maxtime:
structuredataframe = add_structure_data(dictionaryofruns['dotbracket'][timepoint], structurewindow, structuredataframe, timepoint, timesize)
break
return structuredataframe.fillna(0)
def add_structure_data(counterofstructures, structurewindow,
structuredataframe, timepoint, sizeoftimevector):
tempstrudict = Counter()
for structure in counterofstructures:
if len(structure) < structurewindow[1]:
return structuredataframe
tempstru = structure[structurewindow[0]-1: structurewindow[1]]
try:
tempstrudict[tempstru] += counterofstructures[structure]
except KeyError:
tempstrudict[tempstru] = counterofstructures[structure]
for structure in tempstrudict:
if structure not in structuredataframe:
structuredataframe[structure] = np.zeros(sizeoftimevector)
structuredataframe.ix[timepoint, structure] = tempstrudict[structure]
# print structuredataframe
# raw_input()
return structuredataframe
def dna_to_rna(seq):
"""(str) -> changed string
simple function to replace all T with U
"""
seq = seq.upper()
seq = seq.replace("T","U")
return seq
|
python
|
{
"name": "@gourmet/promise-each",
"version": "0.3.3",
"description": "Iterates through an array asynchronously in series - the handler will not be called until the promise returned by the previous call is resolved.",
"main": "gmsrc/promiseEach.js",
"dependencies": {
"@gourmet/promise-repeat": "^0.3.3",
"@gourmet/promise-sync": "^0.3.3"
},
"license": "MIT",
"repository": "https://github.com/gourmetjs/gourmet-ssr/tree/master/utils/promise-each"
}
|
json
|
HYDERABAD: Rehabilitation of destitute including beggars has once again begun to haunt GHMC. While earlier such projects have been flops for various reasons, it is in a tearing hurry to open at least 10 night shelters by next month.
If not for the Standing Committee holding back clearance till the project was studied in depth by the members, Urban Community Development (UCD) officials would have gone ahead to select a private partner in the form of a non-governmental organisation to run the shelters in designated municipal community halls under the public, private partnership mode.
Committee members pointed out that modalities for the project like financial issues were yet to be hammered out and wanted a wider discussion before being approved. They were also keen to know the security, rehabilitation and other aspects for the poor being taken into such shelters.
Plan is to start 10 night shelters, two each in the five zones to accommodate the 994-odd homeless destitute identified in various parts of the capital. Ideally, there has to be one shelter for every one lakh population and hence 60 such shelters are required for the population as per the 2001 census.
UCD officials want to begin with the 10 before going for new shelters as the Supreme Court has given time till December to open and run night shelters for the homeless. The select night shelters with provision for power, beds, drinking water and toilet facilities are to be first spruced up by taking up repairs of the existing halls where these are coming up.
Also part of the scheme is to provide basic health care, counselling on addictions, ascertain their capabilities to provide some kind of vocational training and other life skills with the help of NGOs. Despite misgivings considering the ham-handed way in which the earlier such rehabilitation centres have been handled there is perceptible urgency in the getting it off the ground because the Apex court has asked other States to visit shelters being set up here and emulate.
|
english
|
<reponame>bradfitz/qopher<filename>data/reviews/644/6449097.json<gh_stars>1-10
{
"description": "proxy: move from exp/proxy\n\nThis change copies exp/proxy to go.net without any code changes. A\nfollowup CL will remove exp/proxy.",
"cc": [
"<EMAIL>",
"<EMAIL>"
],
"reviewers": [],
"messages": [
{
"sender": "<EMAIL>",
"recipients": [
"<EMAIL>",
"<EMAIL>",
"<EMAIL>",
"<EMAIL>"
],
"text": "*** Submitted as http://code.google.com/p/go/source/detail?r=d7d24fafd03c&repo=net ***\n\nproxy: move from exp/proxy\n\nThis change copies exp/proxy to go.net without any code changes. A\nfollowup CL will remove exp/proxy.\n\nR=golang-dev, rsc\nCC=golang-dev\nhttp://codereview.appspot.com/6449097",
"disapproval": false,
"date": "2012-08-07 16:02:30.827960",
"approval": false
},
{
"sender": "<EMAIL>",
"recipients": [
"<EMAIL>",
"<EMAIL>",
"<EMAIL>",
"<EMAIL>",
"<EMAIL>"
],
"text": "LGTM",
"disapproval": false,
"date": "2012-08-06 20:21:05.092370",
"approval": true
},
{
"sender": "<EMAIL>",
"recipients": [
"<EMAIL>",
"<EMAIL>",
"<EMAIL>",
"<EMAIL>"
],
"text": "Hello <EMAIL> (cc: <EMAIL>),\n\nI'd like you to review this change to\nhttps://agl%40golang.org@code.google.com/p/go.net/",
"disapproval": false,
"date": "2012-08-06 13:31:11.685860",
"approval": false
},
{
"sender": "<EMAIL>",
"recipients": [
"<EMAIL>",
"<EMAIL>",
"<EMAIL>",
"<EMAIL>"
],
"text": "(I was traveling over the weekend and I'm at USENIX this week, but I still have email access etc.)\n\nhttp://codereview.appspot.com/6449097/diff/2001/proxy/per_host.go\nFile proxy/per_host.go (right):\n\nhttp://codereview.appspot.com/6449097/diff/2001/proxy/per_host.go#newcode115\nproxy/per_host.go:115: // AddIP specifies an IP range that will use the bypass proxy. Note that this\nNote: this comment is wrong, but I'd like this CL to be a simple move with changes coming in later CLs.",
"disapproval": false,
"date": "2012-08-06 13:37:10.765730",
"approval": false
}
],
"owner_email": "<EMAIL>",
"private": false,
"base_url": "",
"owner": "agl1",
"subject": "code review 6449097: proxy: move from exp/proxy",
"created": "2012-08-06 13:23:01.998830",
"patchsets": [
1,
2001,
5001,
3,
11001
],
"modified": "2012-08-07 16:02:31.788410",
"closed": true,
"issue": 6449097
}
|
json
|
import { Convert, Paragraph, ParagraphProperty } from "../src";
import { XmlToElement } from "xml-util";
import { ReadXml, ReadJson } from "./utility";
test("paragraph-property", () =>
{
//
const xml_paragraph = ReadXml("paragraph/sample.xml");
const paragraph = Convert(XmlToElement(xml_paragraph));
const new_paragraph = Convert(paragraph.PrepareXml()) as Paragraph;
//
const xml_propety = `<w:pPr><w:pStyle w:val="1"/></w:pPr>`;
const property = Convert(XmlToElement(xml_propety)) as ParagraphProperty;
new_paragraph.UpdateProperty(property);
//
const result = new_paragraph.PrepareXml();
//writeFileSync(resolve(__dirname,"./data/paragraph/paragraph.json"),JSON.stringify(result));
const to_compare = ReadJson("paragraph/paragraph.json");
expect(result).toEqual(to_compare);
});
|
typescript
|
<gh_stars>1-10
{"download_url": "https://github.com/CompileInc/cappy/archive/v1.0.tar.gz", "extensions": {"python.commands": {"wrap_console": {"cappy": "cappy.cappy:cli"}}, "python.details": {"contacts": [{"email": "<EMAIL>", "name": "<NAME>", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/CompileInc/cappy"}}, "python.exports": {"console_scripts": {"cappy": "cappy.cappy:cli"}}}, "extras": [], "generator": "bdist_wheel (0.29.0)", "keywords": ["cappy", "proxy", "http"], "license": "MIT", "metadata_version": "2.0", "name": "cappy", "run_requires": [{"requires": ["fire (==0.1.0)", "requests[security] (==2.13.0)"]}], "summary": "A simple file based python poxy", "version": "1.0"}
|
json
|
Former Cuban leader Fidel Castro warned of the aftermath of uncontrollable climate change and the side effect of scientific progress in an article published on Monday.
“Science created the ability to destroy ourselves and the planet several times in a matter of hours,” said Mr. Castro in an editorial published by local media. “The greatest contradiction in our age is the ability of our species to destroy itself and its inability to govern itself at the same time. ” In the editorial entitled “The madness of our time. ” Mr. Castro listed the catastrophic effects of global warming and pointed to threats posed by new weapons and military technologies of the United States.
He criticized the United States for developing new high-tech military devices such as the recent launch of an unmanned “space plane” by U. S. air force from Cape Canaveral. These moves “reveal the true philosophy of the United States,” said Mr. Castro. He also described the role of U. S. President Barack Obama at the Climate Change Summit in Copenhagen as “disappointing” and a “painful deception” to the public.
Mr. Castro said global warming will lead to the rise of sea levels, the decrease of drinkable water and arable land. It will also result in the pollution of oceans and extinction of many species in a few decades.
Mr. Castro noted that genetic manipulation and chemical fertilizers helped meet people’s basic needs for food, and he questioned if they can produce healthy food fit for consumption. He also stressed the need for protecting non-renewable vital minerals and energy. Mr. Castro, 83, handed over power to his brother Raul Castro for health reasons in June 2006. Since then he has devoted to work on what he called his “reflections” on issues of global importance through editorials.
|
english
|
Wholesale inflation declined for the second consecutive month to 11. 16 per cent in July 2021 from 12. 07 per cent in June, even as prices of manufactured goods and crude oil remained elevated. In fact, industry says that inflationary pressure on manufacturing is a cause for concern, particularly for small businesses, especially in these difficult times.
The wholesale price index (WPI) inflation is at a three-month low but remained in double digits in this fiscal year so far. It was largely due to the low-base effect as there was deflation of 0. 25 per cent in July 2020.
The high rate of inflation during the month is primarily due to the rise in prices of crude oil, manufactured products like basic metals, food products, textiles, chemicals and chemical products as compared to the corresponding month of the previous year, the ministry of commerce and industry said in a statement.
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
|
<reponame>aviageiro/AmziPrologCore
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.72 [en] (WinNT; U) [Netscape]">
<title>Hello - Visual Basic Hello Sample</title>
</head>
<body bgcolor="#FFFFFF">
<h1> <font color="#0000FF">Hello -- Visual Basic Hello Sample</font></h1>
This is the first Visual Basic sample to get running. It ensures you have everything
installed correctly.
<h2>Building the Sample</h2>
<p>To build it:
<ol>
<li>Compile hello.pro</li>
<li>Link hello.plm into hello.xpl.</li>
<li>Open the VB project hello and build hello.exe. </li>
</ol>
<h2>Running the Sample</h2>
<p>To run it:
<ol>
<li> Run hello.exe.</li>
</ol>
<!-- #BeginLibraryItem "/docs/Library/Copyright.lbi" -->
<p><i><font size=-1>Copyright ©1987-2004 Amzi! inc. All Rights Reserved.
Amzi! is a registered trademark and Logic Server and e-Prolog are trademarks
of Amzi! inc.</font></i></p>
<!-- #EndLibraryItem --></body>
</html>
|
html
|
Kashmiri Pandit employees on Monday threatened to appeal to international human rights organisations for asylum if the central government failed to relocate them from the Valley in the wake of attacks on minorities.
The employees, recruited under PM Package, have been protesting since the killing of one of their colleagues Rahul Bhat inside his office in the Chadoora area of Budgam district on May 12. Later, Rajni Bala, a government school teacher from the minority community, was shot dead by terrorists at her school in Kulgam district.
"On this international refugee day, we demand that our elected government relocate and attach us with the office of Relief Commissioner Jammu till the situation in Kashmir improves," Sanjay Kaul, a leader of the All Minority Employees Association Kashmir (AMEAK), told reporters at Sheikhpora Migrant colony in Budgam.
He said if the government failed to address their demand for relocation, the employees will be forced to appeal to the international community and human rights organisations to come to their aid.
"Right now we have hopes with our elected government. If it fails in ensuring our safety, which can only be achieved by relocating us, we will be forced to appeal for asylum," Mr Kaul said.
During Lieutenant Governor Manoj Sinha's visit to the migrant colony, he had promised to keep the doors of dialogue open with the minority employees, Kaul said.
"These doors have been shut. Issues cannot be resolved in one meeting. We are willing to take 10 steps but let the government at least take two," he added.
Mr Kaul said the service-related issues that the Jammu and Kashmir administration has started addressing after Bhat's killing were pending for the past 12 years.
"Are we to seek resolution of service issues by spilling our blood? Kashmiri Pandits will not be taken for a ride again," he said amid sloganeering by other protesting migrant employees.
Asked if the employees will resign from the service if the government did not agree to their demand for relocation, Mr Kaul said, "We will announce our future action in due course of time. For the time being, we are organising protests from Kashmir to Kanyakumari. "
Mr Kaul claimed that 70 percent of the 4,800 PM Package employees have fled Kashmir since Bhat's killing.
"The government claims on providing accommodation to minority employees are all lies. Only 1,200 employees have been provided accommodation while the rest are living in rented accommodations," he claimed.
The press conference was also attended by PM Package employees' representatives from Vessu, Mattan and Baramulla.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed. )
|
english
|
The trailer of Rohit Shetty’s Cirkus made it clear that the film is going to be a crazy comedy. It is often observed that the shoot of a crazy comic drama can be equally crazy. This is more in the case of Shetty, as we have seen the behind-the-scenes visuals in the ending credits of most of his films.
Following this, Ranveer Singh, the leading man of Cirkus, said that Shetty was the first filmmaker to get a film rolling when the COVID-19 pandemic was at its peak.
Interestingly, it was Shetty’s Akshay Kumar-starrer Sooryavanshi which was the first big film to release in theatres during 2021 Diwali period. The cop movie became a blockbuster and it paved the way for other big films to start getting released in cinema halls.
For those not in the know, Cirkus is an adaptation of the legendary William Shakespeare’s comedy play The Comedy Of Errors. The film is all set to release in cinemas on December 23.
Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
|
english
|
India's pharmaceutical market contracted by 4.5% in June due to a fall in anti-infectives and respiratory drug sales as Covid cases decreased. According to an IQVIA report, the Moving Annual Turnover (MAT) growth for June fell to 10.6% from 11.3% in May. The highest growth therapies were anti-viral, antineoplast/immunomodulator, urology and vaccines. The report also shows a higher growth rate for the chronic segment than the acute segment. Sandeep Budhiraja of Max Healthcare noted that they are seeing a relatively mild flu season, which is occurring earlier than usual.
The brokerage upgraded the stock to a REDUCE (Earlier SELL) with an unchanged DCF-based TP of Rs 2,150/share (implying 46x Dec-24 P/E) as the downside is now limited, post the recent 15%+ stock correction.
Titan’s jewellery division is expected to register early double digit revenue growth to the tune of 11% YoY in Q3FY23 (12% including CaratLane). Prima facie, the growth trajectory appears to have moderated but we believe the growth rate should be viewed in the context of a very strong base of Q3FY22 (the division had recorded 37% YoY growth).
Titan Company Ltd. key Products/Revenue Segments include Jewellery, Watches, Precious & Semi Precious Stones, Eyewear, Others, Other Operating Revenue, Scrap, Other Services for the year ending 31-Mar-2022.
The new appointments will play a significant role as the company advances through key inflection points in the coming year. Krishnan will be instrumental in implementing the firm’s strategy to achieve business expansion and profitable growth while Sandeep will contribute to strengthening the user experience and product design efforts.
For the quarter ended June 30, 2022, the company has reported a consolidated total income of Rs 9487 crore, up 20.52 per cent from last quarter total income of Rs 7872 crore and up 169.59 per cent from last year same quarter total income of Rs 3519 crore.
IIM-A launched the 'IIM Ahmedabad Endowment Fund' with an initial commitment of Rs 100 crore from 10 founding alumni, including Info Edge founder Sanjeev Bikhchandani and Makemytrip founder Deep Kalra.
|
english
|
<gh_stars>0
/*
* Copyright (c) 2014-2015 University of Ulm
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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 de.uniulm.omi.cloudiator.lance.lca;
import static de.uniulm.omi.cloudiator.lance.lca.LcaRegistryConstants.*;
import java.util.Map;
import de.uniulm.omi.cloudiator.lance.application.ApplicationInstanceId;
import de.uniulm.omi.cloudiator.lance.application.DeploymentContext;
import de.uniulm.omi.cloudiator.lance.application.component.ComponentId;
import de.uniulm.omi.cloudiator.lance.application.component.DeployableComponent;
import de.uniulm.omi.cloudiator.lance.application.component.PortReference;
import de.uniulm.omi.cloudiator.lance.lca.container.ComponentInstanceId;
import de.uniulm.omi.cloudiator.lance.lca.container.ContainerStatus;
import de.uniulm.omi.cloudiator.lance.lca.registry.RegistrationException;
import de.uniulm.omi.cloudiator.lance.lifecycle.LifecycleHandlerType;
public final class GlobalRegistryAccessor {
private final LcaRegistry reg;
// private final ApplicationId appId;
private final ApplicationInstanceId appInstId;
private final ComponentId compId;
private final DeploymentContext ctx;
// private final DeployableComponent comp;
private final ComponentInstanceId localId;
public GlobalRegistryAccessor(DeploymentContext ctxParam, DeployableComponent compParam, ComponentInstanceId localIdParam) {
reg = ctxParam.getRegistry();
// appId = _ctx.getApplicationId();
appInstId = ctxParam.getApplicationInstanceId();
compId = compParam.getComponentId();
ctx = ctxParam;
// comp = _comp;
localId = localIdParam;
}
public final void init(ComponentInstanceId myId) throws RegistrationException {
reg.addComponentInstance(appInstId, compId, myId);
reg.addComponentProperty(appInstId, compId, myId, COMPONENT_INSTANCE_STATUS, LifecycleHandlerType.NEW.toString());
}
public final void updateInstanceState(ComponentInstanceId myId, LifecycleHandlerType type) throws RegistrationException {
reg.addComponentProperty(appInstId, compId, myId, COMPONENT_INSTANCE_STATUS, type.toString());
}
public final void updateContainerState(ComponentInstanceId myId, ContainerStatus type) throws RegistrationException {
reg.addComponentProperty(appInstId, compId, myId, CONTAINER_STATUS, type.toString());
}
public static boolean dumpMapHasContainerStatus(Map<String, String> map, ContainerStatus type) {
if(type == null)
throw new NullPointerException("type has to be set");
return type.toString().equals(map.get(CONTAINER_STATUS));
}
/*
@Deprecated
public final String getProperty(ComponentInstanceId myId, String name) throws RegistrationException {
try {
String ret = reg.getComponentProperty(appInstId, compId, myId, name);
return ret;
} catch(RemoteException re) {
throw new RegistrationException("cannot get registered entity: " + name);
}
}
@Deprecated
public void setProperty(ComponentInstanceId myId, String name, String value) throws RegistrationException {
try {
reg.addComponentProperty(appInstId, compId, myId, name, value);
} catch(RemoteException re) {
throw new RegistrationException("cannot register entity: " + name);
}
}
@Deprecated
private void addPort(ComponentInstanceId myId, String name, Integer port) throws RemoteException {
reg.addComponentProperty(appInstId, compId, myId, "ACCESS_" + name, port.toString());
}
@Deprecated
public String getSinkPortNameAsFullPortName(OutPort the_port) {
final PortReference sinkReference = (PortReference) ctx.getProperty(the_port.getName(), OutPort.class);
if(sinkReference == null) throw new IllegalStateException("sink unknown");
return sinkReference.getPortName();
}
@Deprecated
public void registerPorts(ComponentInstanceId myId, Map<String, Integer> mapping) throws RegistrationException {
try {
for(String key : mapping.keySet()) {
Integer i = mapping.get(key);
addPort(myId, key, i);
}
} catch(RemoteException re) {
throw new RegistrationException(re);
}
}
@Deprecated
public Map<ComponentInstanceId, Map<String, String>> findAvailablePortInstances(OutPort the_port) throws RegistrationException {
final PortReference sinkReference = (PortReference) ctx.getProperty(the_port.getName(), OutPort.class);
if(sinkReference == null) throw new IllegalStateException("sink unknown: port '" + the_port.getName() + "' not correctly wired.");
Map<ComponentInstanceId, Map<String, String>> dump;
try { dump = reg.dumpComponent(appInstId, sinkReference.getComponentId()); }
catch(RemoteException re) { throw new RegistrationException(re); }
final String fullPortName = buildFullPortName(sinkReference.getPortName());
for(ComponentInstanceId id : new HashSet<ComponentInstanceId>(dump.keySet())) {
Map<String,String> values = dump.get(id);
String portValue = values.get(fullPortName);
int portNr;
try { portNr = Integer.parseInt(portValue); }
catch(NumberFormatException nfe) {portNr = -1;}
if(portNr == -1) { dump.remove(id); }
}
return dump;
}
@Deprecated
public void schedulePortPolling(Runnable runner) {
hostContext.scheduleAction(runner);
}
@Deprecated
public void run(Runnable runner) {
hostContext.run(runner);
}
/*
@Deprecated
public static String determineIpaddress(String this_cloudId, Map<String, String> map) {
String that_cloudId = map.get(CLOUD_PROVIDER_ID);
if(that_cloudId == null) {
System.err.println("cloudId not set for remote host");
} else if(this_cloudId == null) {
System.err.println("own cloudId not set for");
throw new IllegalStateException("not set");
}
if(this_cloudId.equals(that_cloudId)) {
String ip = map.get(HOST_INTERNAL_IP);
if(ip != null) { return ip; }
System.err.println("local ip address not set for remote host");
} else {
String ip = map.get(HOST_PUBLIC_IP);
if(ip != null) { return ip; }
System.err.println("public ip address not set for remote host");
}
return null;
}
@Deprecated
public static Integer readPortProperty(String portName, Map<String, String> map) {
String full = buildFullPortName(portName);
String portVal = map.get(full);
try {
int i = Integer.parseInt(portVal);
if(i < 1 || i > 65536) return null;
return Integer.valueOf(i);
} catch(NumberFormatException nfe) {
return null;
}
}
@Deprecated
public String getLocalCloudProdivder() {
return hostContext.getCloudIdentifier();
}
*/
public Map<ComponentInstanceId, Map<String, String>> retrieveComponentDump(PortReference sinkReference) throws RegistrationException {
return reg.dumpComponent(appInstId, sinkReference.getComponentId());
}
public void addLocalProperty(String key, String value) throws RegistrationException {
reg.addComponentProperty(appInstId, compId, localId, key, value);
}
public String getComponentInstanceProperty(ComponentInstanceId myId, String key) throws RegistrationException {
return reg.getComponentProperty(appInstId, compId, myId, key);
}
public<T> Object getLocalProperty(String name, Class<T> clazz) throws RegistrationException {
Object o = null;
try {
o = ctx.getProperty(name, clazz);
} catch(Exception ex){
throw new RegistrationException("invalid property", ex);
}
if(o == null)
throw new RegistrationException("unknown property");
return o;
}
}
|
java
|
{
"total_count": 47,
"results": [
{
"matching_type": "REGEX",
"file_or_folder": "\\.accdb$",
"operation": "WRITE",
"comment": "Access 2007 Database File."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.application$",
"operation": "WRITE",
"comment": "Microsoft application File. It provides a way to launch Windows applications from a webpage with just one click. (default blacklist entry)."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.asm$",
"operation": "WRITE",
"comment": "Assembly Language Source Code File, Program written in assembly language, a low level programming language that can be converted to machine language; may be edited with a text editor and run using an assembler program, such as HLA, MASM, FASM, NASM, or GAS (default blacklist entry)."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.backup$",
"operation": "WRITE",
"comment": "Android Backup File. Backup file created by some Android phones and other Android mobile devices (default blacklist entry)."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.bat$",
"operation": "WRITE",
"comment": "DOS Batch File. A DOS batch file used to execute commands with the Windows Command Prompt (default blacklist entry)."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.bz2$",
"operation": "WRITE",
"comment": "Bzip2 Compressed File. Compressed archive created by bzip2, a file compression program often found on Unix-based systems"
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.cer$",
"operation": "WRITE",
"comment": "Internet Security Certificate. A CER file is a security file provided by a third party Certificate Authority, such as VeriSign or Thwate, that verifies the authenticity of a website. It is installed on a web server to establish the validity of a certain website hosted on the server (default blacklist entry)."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.cmd$",
"operation": "WRITE",
"comment": "Windows Command File. A Batch file that contains a series of commands executed in order with the Windows Command Prompt (default blacklist entry)."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.com$",
"operation": "WRITE",
"comment": "DOS Command File. An executable program capable of being run by MS-DOS and Windows. (default blacklist entry)."
},
{
"matching_type": "REGEX",
"file_or_folder": "\\.cpl$",
"operation": "WRITE",
"comment": "Windows control panel item, such as Displays, Mouse, Sound, or Networking, used by the Windows operating system. (default blacklist entry)."
}
]
}
|
json
|
Monday January 17, 2022,
, the technology-based platform offering end-to-end agricultural services to farmers in India, on Monday announced its acquisition of Maharashtra-based B2B agri-input marketplace startup, .
DeHaat’s Co-founder and CEO Shashank Kumar confirmed that with the integration of Helicrofter, encompassing 2,000+ agri-input retailers and 30 sellers across Maharashtra, DeHaat has now added another major Indian agricultural belt to their already expansive geographical footprint.
Currently DeHaat serves over 700,000 farmers across Bihar, Uttar Pradesh, Jharkhand, West Bengal, Odisha, Madhya Pradesh, and Rajasthan. The addition of Helicrofter to their roster comes in line with the overarching goal of geographical expansion, as it marks DeHaat’s entry into Maharashtra.
Founded in 2020 by Siddhartha Choudhary, Helicrofter is a farm input ecommerce platform designed to do away with supply chain inefficiencies in the rural ecosystem. Despite the pandemic, Helicrofter has been generating revenue since the very first month of its inception and has achieved annual revenue in excess of Rs 50 crore.
Building on their portfolio of D2C brands across categories,has now acquired 90 percent stake in , a women’s fashion and lifestyle brand styled by Sussanne Khan, Malaika Arora and Bipasha Basu.
Founded by Preeta Sukhtankar, along with Yashika Punjabee and Sonam Shah, The Label Life caters to the lifestyle savvy 25 years+ working women for all her fashion and lifestyle needs. The brand is popular in India and the middle-east markets and is available through its website, portals such as Myntra, Nykaa, Namshi (UAE) and a standalone store in Kolkata.
Since its launch six years ago, the brand has built a base of over 1. 2 million customers and followers. The Label Life is G. O. A. T Brand Labs’ first acquisition in the women’s westernwear space. The plan is to add multiple brands in this segment.
The brand currently sells across categories like apparel, accessories, footwear and home. The plans are to further build these categories and expand to categories like jewellery, beauty and personal care and loungewear, among others — to offer a complete range of lifestyle products.
The India arm of global early-stage venture capital firm,, has announced 19 student entrepreneurs as part of its inaugural Antler India Fellowship cohort.
Antler India Fellowship, announced in November 2021, aims to promote entrepreneurship at the university level and as a viable career option. It offers an equity-free grant of $20,000 and mentorship to India’s brightest students to turn their startup ideas into a business. Through a 16-week programme, it provides a platform for experimentation, building and scaling with the support of equity-free capital, mentors and a peer network.
It received 2,400+ applications from students across the country, covering 375+ cities and 700+ colleges. Of all the applications received, eight teams were chosen (0. 3 percent acceptance rate) to be a part of the cohort.
The chosen student entrepreneurs gain access to a hands-on programme, facilitated by domain experts and founders, spanning idea validation, user research, product, engineering and marketing. Mentors include Suchita Salwan (Founder, LBB), Varun Khona (Founder, HeadOut), and Ankit Gupta (Founder, Quizizz) among others.
Antler plans to deploy $100 million to $150 million in 100+ Indian startups over the next 3 years.
According to the Monster Employment Index, the job analysis report by Monster. com, a Quess Company, robust growth in hiring activity was witnessed in the last six months with a 6 percent uptick, while December 2021 saw a monthly incline of 2 percent in December 2021 as compared to the previous month.
Across industries, the month of December 2021 saw retail and agro-based industries witnessing a positive incline of 12 percent, on account of multi-channel approaches, technological adoption, and government initiatives. The demand for roles in healthcare witnessed a surge of 6 percent on account of rising COVID-19 cases in the country, while roles in HR and admin (5 percent), and finance and accounts (4 percent) also saw an uptick over the month. Further, it is quite encouraging to note that the demand for entry-level/freshers and intermediate roles saw the highest monthly growth at 2 percent, as compared to other experience levels (December 2021 vs November 2021).
A year-on-year (December 2021 vs Decemeber 2020) comparison indicates that industries such as Retail (14 percent) and Travel and Tourism (4 percent) witnessed a revival and are estimated to grow further in 2022. Further, Tier-II cities such as Kolkata (13 percent), Coimbatore (11 percent), Kochi (5 percent), and Baroda (2 percent) observed favourable rise in hiring activity along with metro cities.
Craft Silicon and Karza Technologies partnered to automate onboarding and verification with intelligent solutions to provide a delightful customer experience to Microlending Institutions. Digital disruption is picking up pace; through this partnership, Craft Silicon aims to leverage Karza Technologies and digitally empower the MFI sector (BFSI sector is a broad description) with advanced KYC services, bank account verification, front-end engagement for offering swift, smooth, and secure onboarding and user verification solution to Microlending Institutions.
Using Karza Technologies will further strengthen Craft Silicon's resolve to provide a frictionless customer experience while ensuring the highest protection against fraud. Their commitment is a testament to the initiative and the joint ambition to significantly improve the onboarding experience for MFI customers.
With this partnership, both companies aim to simplify the onboarding process and reinforce financial inclusion. Companies aim to simplify the onboarding process and reinforce financial inclusion address match, which in turn will assist in achieving accurate matching of facial features and real-time verification of bank accounts. It will reduce errors and customer drops during loan processing resulting in high leads to client conversion and zero manipulation.
Online crowdfunding platformhas partnered with Mzaalo, a blockchain-based gamified video streaming platform, to create a positive social impact nationwide.
This collaboration allows Mzaalo users to watch premium content and earn reward coins without having to pay any subscription fee. The platform gratifies the time and attention of users by allowing them to redeem their earned coins for Donatekart vouchers and make an impact in the lives of thousands.
Donatekart has been working towards empowering and uplifting the lives of countless people and animals across India since 2016. With causes varying from ending hunger, supporting the elderly, educating underprivileged children, helping injured animals and many more, Donatekart has impacted over 1000+ NGOs so far and raised over Rs 150 crore worth of donations with the support of 5+ lakh donors.
, a SaaS fintech company that helps businesses digitise their spends, on Monday announced the appointment of Sathish N as its Chief Product Officer. The company aims to further strengthen its suite of financial products that help businesses digitise and aggregate their spends through automated and innovative workflows.
Sathish is a seasoned fintech product leader with 25+ years of experience in launching multiple enterprise-scale products and platforms to global markets out of India in the areas of digital transformation, omnichannel engagement, payments, fintech, digital lending, customer centricity, revenue management, Enterprise Product Catalog, and Digital Core Banking.
Sathish joins Zaggle from FSS where he was working as the Deputy Chief Product Officer. He is an Electronics and Communication Engineer from Bharathiar University and has participated in the Leadership programme at the INSEAD business school.
At Zaggle, Sathish will work closely with the Fintech’s MD and CEO, Avinash Godkhindi, and lead product innovation besides being in charge of all overall product strategy, design and development.
, a clean plant-based nutrition brand for daily wellness and strength, recently launched the ‘Plant A Tree’ initiative to fulfil its brand promise of sustainability for the environment and better health for people. The initiative begins in January 2022 and will be a continuously ongoing initiative. Plix has pledged to plant a tree (seed) for every single purchase made by its customers. The company has earmarked a land parcel in Maharashtra to plant the saplings.
Right from the outset, Plix has strategically focused on sustaining the balance of nature. Not using any artificial ingredients such as preservatives, flavours or colours in Plix products was the first commitment by the brand. And now, Plix is taking its environment conservation efforts to the next level with the ‘Plant A Tree’ initiative.
Founded in 2019 by Rishubh Satiya and Akash Zaveri, Plix is on a mission to transform the dietary and lifestyle habits of people globally. The brand is constantly innovating to replace the conventional formats of pills with palatable gummies, superfood powders, and effervescent. The company has products across categories such as weight loss, hair and skin nutrition, daily wellness, women’s health, and workout.
, an EV charging infratech player, announced that it is enabling all its 52 EV charging hubs with EVRE fast chargers. This will enable the charging hubs with AC chargers (3. 3 KW industrial/Domestic 3-pin sockets and 7KW Type-II) and fast DC chargers (GB/T and CCS) for all its consumers including EV fleets and retail customers.
The large hubs by EVRE can charge up to 80 EVs at the same time.
The charging hubs, powered with an intelligent framework by EVRE, will ensure a seamless charging experience for every EV user. Along with slow and fast unmanned smart charging, the hubs will provide single-window access to all the services through the EVRE app. The EVRE hubs will fully operate with cloud-based technology that will be capable of dynamic load management creating a one-stop-shop for all the requirements of an EV driver.
For the convenience of EV fleets, EVRE has enabled an always-connected aggregator with a one-web dashboard that provides features such as telematics for complete real-time monitoring, smart keys-management as well as automated systems for ensuring safety of the vehicles. The idea is to create a 100 percent safe and reliable network for a frictionless charging experience on the go.
Apart from the technology enablement, the EVRE hubs ensure a hassle-free charging experience for every EV user with installed amenities such as smart parking and charging points, Eat and Charge facility, retiring rooms especially for the comfort of last-mile delivery fleets and vehicle servicing. EVRE also offers insurance coverage against hazards to driver-users operating the charging stations. The digitally managed hubs will be equipped with solar-based EV charging solutions as well.
has announced the evolution of its flagship startup accelerator programme - Flipkart Leap to identify wider and relevant market opportunities for its selected startups. After the completion of the first cohort of the programme, Flipkart Leap will now evolve into two new programmes — Flipkart Leap Ahead (FLA) and Flipkart Leap Innovation Network (FLIN). Flipkart Leap is proud to announce this launch on National Startup Day, a day recognised by Prime Minister Narendra Modi recently to help startup culture spread better across India.
Designed to cater to the dynamic needs of startups across different stages, these two programmes — FLA and FLIN — will support the startups through insights, mentorship and funding as needed, while helping them scale and build disruptive innovations. With the introduction of these programmes, the startup ecosystem will be able to access end-to-end partnerships with Flipkart across their growth stages.
The Flipkart Leap programme graduated its first cohort in July 2021 with eight startups, who have gone on to raise further funding/investment post their selection in the programme.
|
english
|
What does WSSCA mean? The above is one of WSSCA meanings. You can download the image below to print or share it with your friends through Twitter, Facebook, Google or Pinterest. If you are a webmaster or blogger, feel free to post the image on your website. The WSSCA may have other definitions. Please scroll down to see its definitions in English, and other five meanings in your language.
Meaning of WSSCAThe following image presents one of the definitions of WSSCA in English language. You can download the image file in PNG format for offline use or send image of WSSCA definition to your friends by email.
|
english
|
Prv. Close:
Prv. Close:
Your Directors have pleasure in presenting this Thirty-Second (32nd) Directors’ Report along with the Audited Financial Statements for the Financial Year ended March 31,2023.
1. HIGHLIGHTS OF FINANCIAL PERFORMANCE:
Your Company’s Standalone and Consolidated performance during the Financial Year 2022-23 as compared to that of the previous Financial Year 2021-22 is summarized below:
(Rs. in Crore)
Profit Before Taxation (PBT)
Profit After Taxation (PAT)
2. REVIEW OF OPERATIONS / STATE OF AFFAIRS OF THE COMPANY, ITS SUBSIDIARIES & JOINT VENTURES & OTHER ASSOCIATES:
There has been no change in the nature of business of your Company during the Financial Year 2022-23.
The business-wise performance of your Company is discussed in detail as follows:
During the Financial Year 2022-23, the Animal Feed segment delivered continued volume growth of 6% year-on-year led by market share gains in Cattle Feed and Aqua Feed categories. Cattle Feed segment continued to record strong growth, cementing its leadership position through portfolio of new products launched over the last two years. However, feed industry faced multiple profitability headwinds during the year, including unfavourable Government interventions in input as well as output prices and limited pass-through of input cost inflation amid competitive pressure. Consequently, segment results declined by 24% year-on-year in the Financial Year 2022-23.
Standalone segment revenues recovered to '' 595.75 Crore in the Financial Year 2022-23 from '' 544.91 Crore in the Financial Year 202122. Your Company’s sales growth was led by in-house and in-licensed product portfolio. However, margin profile was impacted by lower volumes under plant growth regulators category, product rationalisation initiatives and elevated input costs. Entire industry faced margin pressure due to high level of channel inventories, aggressive pricing strategies and limited transmission of input cost inflation as focus shifted to collections. Standalone segment results declined by 26.7% year-on-year to '' 74.32 Crore in the Financial Year 2022-23 from ''101.37 Crore in the Financial Year 2021-22. The segment achieved substantial improvement in working capital position with strict focus on channel hygiene during the year.
Vegetable oil segment recorded another good year despite last year’s high base. Segment revenues increased to '' 1,298.49 Crore in the Financial Year 2022-23 from '' 1,264.75 Crore in the Financial Year 2021-22, while segment results increased to '' 249.11 Crore from '' 240.83 Crore. Modest performance in the Financial Year 2022-23 was driven by consistent volume growth coupled with further improvement in Oil Extraction Ratio. Average prices for crude palm oil and palm kernel oil fell by 11% year-on-year during the year under review, which constrained profitability growth.
Your Company has interests in several businesses including dairy products, poultry, value-added vegetarian and non-vegetarian products, cattle breeding and dairy farming, through its Subsidiaries, Joint Ventures and other Associates.
Pursuant to the provisions of Section 129(3) of the Companies Act, 2013 read with the Rules framed thereunder, a Statement containing the salient features of the Financial Statements of your Company’s Subsidiaries and Associates in Form AOC-1 is annexed to and forms a part of the Financial Statement. The Statement provides the details of performance and financial position of each of the Subsidiaries and Associates. In accordance with Section 136 of the Companies Act, 2013, the Audited Financial Statements, including the Consolidated Financial Statement, Audited Accounts of all the Subsidiaries and other documents attached thereto are available on your Company’s website www.godreiagrovet.com.
Your Directors present herewith, a broad overview of the operations and financials of Subsidiaries, Joint Ventures and other Associates of your Company during the Financial Year 2022-23, as follows:
Godvet Agrochem Limited (“Godvet”) is a wholly-owned subsidiary of your Company.
During the Financial Year 2022-23, Godvet recorded Profit Before Tax of '' 0.99 Crore, as compared to Profit Before Tax of '' 1.14 Crore in the previous Financial Year 2021-22.
Astec LifeSciences Limited (“Astec”) manufactures agrochemical active ingredients (technical), bulk and formulations, intermediate products and sells its products in India as well as exports them to approximately 18 (eighteen) countries. During the Financial Year 2022-23, Astec recorded Consolidated Total Income of '' 641.23 Crore as compared to '' 687.03 Crore in the previous Financial Year 2021-22. Profit Before Exceptional Items and Tax also declined to '' 34.95 Crore in Financial Year 2022-23 from '' 121.13 Crore in the previous Financial Year. Decline in Total Income and profitability in the Financial Year 2022-23 was attributed to unprecedented drop in volumes as well as realizations mainly in the second half of the year.
The shareholding of your Company in Astec as on March 31, 2023 was 64.77% of the total Paid-up Equity Share Capital of Astec.
Astec had the following 2 (Two) Subsidiaries throughout the Financial Year 2022-23:
During the Financial Year 2022-23, Behram Chemicals Private Limited (“Behram”) reported a Profit Before Tax of t 0.11 Crore, as compared to Profit Before Tax of t 0.09 Crore during the previous Financial Year 2021-22.
The shareholding of Astec in Behram as on March 31,2023 was 65.63% of the total Paid-up Equity Share Capital of Behram.
During the Financial Year 2022-23, Comercializadora Agricola Agroastrachem Cia Ltda (“Comercializadora”), reported Nil Profit / Loss Before Tax as compared to Nil Profit / Loss during the previous Financial Year 2021-22.
Comercializadora is a wholly-owned subsidiary of Astec.
Creamline Dairy Products Limited (“CDPL”) is one of the leading private dairy companies in Southern India and its products are sold under the brand name ‘Godrej Jersey’.
During the Financial Year 2022-23, CDPL recorded a Total Income of '' 1,506.40 Crore, representing a year-on-year growth of 27.8%. The continued growth in Financial Year 2022-23 as compared to the previous Financial Year was led primarily by market share gains in value-added products, mainly curd, milk drinks and ghee. However, margin profile was impacted by continued rise in milk procurement costs and limited transmission through price hikes. As a result, CDPL reported a Loss Before Tax excluding Exceptional Items of ('' 56.27 Crore) in the current Financial Year 2022-23 vis-a-vis Loss of ('' 32.35 Crore) in the previous Financial Year.
The shareholding of your Company in CDPL as on March 31,2023 was 51.91% of the total Paid-up Equity Share Capital of CDPL.
Godrej Tyson Foods Limited (“GTFL”) is engaged in the manufacturing of processed poultry and vegetarian products through its brands ‘Real Good Chicken’ and ‘Yummiez’. GTFL is also engaged in the sale of live birds in the market.
During the Financial Year 2022-23, GTFL recorded a Total Income of '' 1,004.93 Crore, representing a year-on-year growth of 27.9%. Growth in Total Income for the third consecutive year was a result of robust volume performance in branded segments - Real Good Chicken (RGC) and Yummiez. GTFL’s Profit Before Tax also recovered sharply to '' 13.20 Crore in the Financial Year 2022-23 from '' 3.03 Crore reported in the previous Financial Year.
Your Company currently holds a 51.00% equity stake in GTFL.
Godrej Maxximilk Private Limited (“GMPL”) is a wholly-owned subsidiary of your Company.
GMPL is engaged in in-vitro production of high-quality cows that aid dairy farmers produce top-quality milk, thereby increasing their yield by a significant proportion.
During the Financial Year 2022-23, GMPL has reported a Loss Before Tax of ('' 4.70 Crore), as compared to a Loss Before Tax of ('' 9.77 Crore) in the previous Financial Year.
ACI Godrej Agrovet Private Limited (“ACIGAVPL”) recorded Revenues of '' 1,946.70 Crore during the Financial Year 2022-23, as compared to '' 1,557.87 Crore during the Financial Year 2021-22.
ACIGAVPL continues to remain amongst top players in all the feed categories it operates in Bangladesh.
The shareholding of your Company in ACIGAVPL as on March 31,2023 was 50% of the total Paid-up Equity Share Capital of ACIGAVPL.
Your Company has an investment in the units of Omnivore India Capital Trust, a venture capital organization that invests in Indian start-ups developing breakthrough technologies for food and agriculture. This investment is considered as a Joint Venture, as the Company participates in the key activities jointly with the Investment Manager.
Your Company held 24% equity stake in the Al Rahba International Trading Limited Liability Company (Al Rahba), an associate (with a 33.33% share in profits) as on March 31,2023, which has been liquidated as on the date of this Report.
Your Company continues to manage its treasury operations efficiently and has been able to borrow funds for its operations at competitive rates.
During the Financial Year 2022-23, your Company had dual rating for its Commercial Paper Programme of t 1,000 Crore (Rupees One Thousand Crore Only) as follows:
2. Credit Rating by CRISIL: “CRISIL A1 ” (pronounced as ‘CRISIL A one plus’ rating).
In accordance with the Credit Rating assigned to the Commercial Paper Programme of your Company as above, the Board of Directors has granted its approval for borrowing by way of issuance of Commercial Papers upto an aggregate limit of t 1,000 Crore (Rupees One Thousand Crore Only).
Moreover, your Company continues to enjoy long term rating of “ICRA AA’’ (pronounced as ‘ICRA double A’ for its t 68.25 Crore Bank limits / facilities and short-term rating of “ICRA A1 ” (pronounced as ‘ICRA A one plus’ rating) for its t 595 Crore Bank limits / facilities.
In your Company, information is considered as an important business asset and Information Security recommendations are implemented to provide adequate security to critical information assets in the organization.
and all critical applications are accessible through secure channels. The Disaster Recovery (DR) site is maintained for critical business applications and DR Drills are conducted as per audit recommendations, in order to ensure business continuity and compliance.
The digital transformation initiatives are in progress across businesses, which include deployment of web-based and mobile applications and automation of business processes using Robotic Process Automation in order to bring in operational efficiency and be a future ready resilient organization. Your Company is also working on Cloud adoption to strengthen infrastructure availability and provide better manageability, thereby ensuring business continuity. Use of the latest technologies like Artificial Intelligence (AI) and Machine Learning (ML) & Predictive analytics is in place.
Your Company has several manufacturing facilities across the country, including but not limited to the following:
Sachin (Surat - Gujarat), Miraj (Sangli, Maharashtra), Dhule (Maharashtra), Nashik (Maharashtra), Khanna (Ludhiana, Punjab), Ikolaha (Ludhiana, Punjab), Khurda (Orissa), Chandauli (Uttar Pradesh), Kharagpur (West Bengal), Erode (Tamil Nadu), Hajipur (Bihar), Tumkur (Karnataka), Unnao (Uttar Pradesh), Medchal (Telangana) and Bundi (Rajasthan)
Hanuman Junction (Krishna District, Andhra Pradesh), Kondapalli (Vijayawada, Andhra Pradesh) and Barabanki (Uttar Pradesh)
Samba (Jammu) and Lote Parshuram (Ratnagiri, Maharashtra)
Valpoi (Sattari, Goa), Ch. Pothepalli (West Godavari District, Andhra Pradesh), Chintalapudi (Andhra Pradesh), Seethanagaram (West Godavari District, Andhra Pradesh), Varanavasi (Ariyalur, Tamil Nadu) and Kolasib (Mizoram)
Your Company has amicable employee relations at all locations and would like to place on record its sincere appreciation for the unstinted support it continues to receive from all its employees. Your Company also continued to focus on manpower productivity and efficiency during the Financial Year under review and hence drives various learning and development interventions in this regard, in line with the organizational objectives. Your Company is also committed to foster employee engagement and connect, while maintaining a safe and healthy workplace. Your Company has several policies formulated for the benefit of employees, which promote gender diversity, equal opportunity, prevention of sexual harassment, safety and health of employees. As on March 31, 2023, the total number of permanent employees of the Company was 2,747.
7. MATERIAL CHANGES AND COMMITMENTS SINCE THE FINANCIAL YEAR END:
There are no material changes and commitments affecting the financial position of your Company which have occurred between the end of the Financial Year 2022-23 to which the Financial Statements relate and the date of the Directors’ Report (i.e., from April 1,2023 upto May 9, 2023). The Management of your Company has considered internal and certain external sources of information, including economic forecasts and industry reports upto the date of approval of the Financial Statements, in determining the impact on various elements of its Financial Statements.
The Board of Directors of your Company has recommended a Final Dividend for the Financial Year 2022-23 at the rate of 95% (Ninety Five per cent), i.e., t 9.50 (Rupees Nine and Paise Fifty Only) per Equity Share of Face Value of t 10/- (Rupees Ten Only) each, subject to approval of the Shareholders at the ensuing Thirty-Second Annual General Meeting (“32nd AGM”).
The Dividend will be paid to the Shareholders whose names appear in the Register of Members of the Company as on Friday, July 28, 2023 and in respect of shares held in dematerialized form, it will be paid to Shareholders whose names are furnished by National Securities Depository Limited (NSDL) and Central Depository Services (India) Limited (CDSL), as the beneficial owners as on that date.
The Shareholders of your Company are requested to note that the Income Tax Act, 1961, as amended by the Finance Act, 2022, mandates that dividends paid or distributed by a Company after April 1,2020 shall be taxable in the hands of the Shareholders. The Company shall, therefore, be required to deduct Tax at Source (TDS) at the time of making payment of the Final Dividend. In order to enable your Company to determine and deduct the appropriate TDS as applicable, the Shareholders are requested to read the instructions given in the Notes to the Notice convening the 32nd AGM, forming a part of this Annual Report.
The Dividend payout for the Financial Year 2022-23 is in accordance with the Company’s Dividend Distribution Policy.
In terms of Regulation 43A of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 (“Listing Regulations”), the Dividend Distribution Policy of the Company is made available on the website of the Company and can be accessed on the web-link https://www.godreiagrovet.com/sustainabilitv/codes-and-policies.
B. Status of Final Dividend Declared for the Financial Year 2021-22:
The Company had declared a Final Dividend at the rate of 95%, i.e., t 9.50/- (Rupees Nine and Paise Fifty Only) per Equity Share of Face Value of t 10/- (Rupees Ten Only) each, at its 31st (Thirty-First) Annual General Meeting held on July 29, 2022 for the Financial Year 2021-22, aggregating to t 182,55,20,798/- (Rupees One Hundred Eighty Two Crore Fifty Five Lakh Twenty Thousand Seven Hundred Ninety Eight Only).
As on March 31, 2023, t 182,52,80,024.50 (Rupees One Hundred Eighty Two Crore Fifty Two Lakh Eighty Thousand Twenty Four and Paise Fifty Only) was paid and t 2,40,773.50 (Rupees Two Lakh Forty Thousand Seven Hundred Seventy Three and Paise Fifty Only) is lying in the Unpaid Dividend Account for the said Financial Year 2021-22.
The Final Dividend declared and paid for the Financial Year 2021-22 by the Company was in compliance with the provisions of the Companies Act, 2013 and the Rules framed thereunder and in accordance with the Company’s Dividend Distribution Policy.
Your Directors do not propose to transfer any amount to reserve during the Financial Year 2022-23.
Your Company’s Equity Share Capital position as at the beginning of the Financial Year 2022-23 (i.e., as on April 1,2022) and as at the end of the said Financial Year (i.e., as on March 31, 2023) was as follows:
Face Value Per Share (?)
Total Amount (?)
Face Value Per Share (?)
Total Amount (?)
As on April 1,2022:
During the Financial Year 2022-23, your Company has allotted 47,930 (Forty Seven Thousand Nine Hundred and Thirty) Equity Shares of Face Value of t 10/- (Rupees Ten Only) each under the Godrej Agrovet Limited - Employees Stock Grant Scheme 2018 (“ESGS 2018”), pursuant to exercise of options by Eligible Employees under ESGS 2018.
The aforementioned 47,930 (Forty Seven Thousand Nine Hundred and Thirty) Equity Shares rank pari passu with the existing Equity Shares of the Company and have been listed for trading on the National Stock Exchange of India Limited (NSE) and BSE Limited (BSE).
11. EMPLOYEES STOCK GRANT SCHEME, 2018:
Your Company has implemented and through the Nomination and Remuneration Committee of the Board of Directors administers, the Godrej Agrovet Limited - Employees Stock Grant Scheme, 2018 (“ESGS 2018”), under which stock options are granted to the Eligible Employees, in compliance with the provisions of the Securities and Exchange Board of India (Share Based Employee Benefits and Sweat Equity) Regulations, 2021 [erstwhile Securities and Exchange Board of India (Share Based Employee Benefits) Regulations, 2014].
The details of the Stock Grants allotted under ESGS 2018 have been uploaded on the website of the Company www.godreiagrovet.com.
The Board of Directors of your Company confirms as follows:
(b) There have been no changes in ESGS 2018 during the Financial Year 2022-23.
Shareholders. Any request for inspection of the said Certificate may please be sent to aavlinvestors@aodreiaarovet.com.
The disclosure as per Regulation 14 of the Securities and Exchange Board of India (Share Based Employee Benefits and Sweat Equity) Regulations, 2021 has been made available on the website of the Company, viz., www.godreiagrovet.com.
Your Company has not accepted any deposits covered under Chapter V of the Companies Act, 2013 [(i.e., deposits within the meaning of Rule 2(1)(c) of the Companies (Acceptance of Deposits) Rules, 2014)], during the Financial Year 2022-23.
Thus, the details of deposits required as per the provisions of the Companies (Accounts) Rules, 2013 are as follows:
Your Company continues to be a Subsidiary of Godrej Industries Limited (“GIL”), as defined under Section 2(87) of the Companies Act, 2013. As on March 31, 2023, the shareholding of GIL in your Company was 12,47,14,957 (Twelve Crore Forty Seven Lakh Fourteen Thousand Nine Hundred and Fifty-Seven) Equity Shares of Face Value of ? 10/- (Rupees Ten Only) each, aggregating to 64.90% of the Paid-up Equity Share Capital of the Company. GIL is also a listed company (listed on BSE Limited and the National Stock Exchange of India Limited).
During the Financial Year 2022-23, no company has newly become or ceased to be a Subsidiary of your Company.
Your Company had the following subsidiaries [as defined under Section 2(87) of the Companies Act, 2013] during the Financial Year 2022-23:
A Subsidiary of your Company throughout the Financial Year 2022-23, in which your Company holds 64.77% of the Equity Share Capital as on March 31, 2023.
15. JOINT VENTURE COMPANY:
During the Financial Year 2022-23, no company has newly become or ceased to be a Joint Venture (JV) company of your Company.
Your Company holds 50% of the Paid-Up Equity Share Capital in ACI Godrej Agrovet Private Limited (“ACI GAVPL”) (a body corporate incorporated in and under the laws of Bangladesh), while the remaining 50% of the Paid-Up Equity Share Capital in ACI GAVPL is held by Advanced Chemical Industries (ACI) Limited, Bangladesh, pursuant to a Joint Venture arrangement.
16. ASSOCIATE COMPANY:
During the Financial Year 2022-23, no company has become or ceased to be an Associate Company of your Company.
i. Al Rahba International Trading LLC, Abu Dhabi, United Arab Emirates (UAE)
Your Company held 24% shareholding and 33.33% profit share in Al Rahba International Trading LLC, Abu Dhabi, United Arab Emirates (UAE) as on March 31,2023, which has been liquidated as on the date of this Report.
17. SCHEME OF AMALGAMATION / ARRANGEMENT:
During the Financial Year 2022-23, your Company has not proposed or considered or approved any Scheme of Merger / Amalgamation / Takeover / Demerger or Arrangement with its Members and/or Creditors.
18. DETAILS IN RESPECT OF ADEQUACY OF INTERNAL FINANCIAL CONTROLS WITH REFERENCE TO THE FINANCIAL STATEMENT:
In the opinion of the Board of Directors of your Company, adequate internal financial controls are available, operative and adequate, with reference to the preparation and finalization of the Financial Statement for the Financial Year 2022-23.
19. DETAILS OF APPLICATION MADE OR ANY PROCEEDING PENDING UNDER THE INSOLVENCY AND BANKRUPTCY CODE, 2016, DURING THE FINANCIAL YEAR ALONG WITH THEIR STATUS AS AT THE END OF THE FINANCIAL YEAR:
During the Financial Year 2022-23, there was no application made and proceeding initiated / pending by any Financial and/or Operational Creditors against your Company under the Insolvency and Bankruptcy Code, 2016.
As on the date of this Report, there is no application or proceeding pending against your Company under the Insolvency and Bankruptcy Code, 2016.
20. DETAILS OF DIFFERENCE BETWEEN THE AMOUNT OF VALUATION AT THE TIME OF ONE-TIME SETTLEMENT AND THE VALUATION DONE AT THE TIME OF TAKING A LOAN FROM THE BANKS OR FINANCIAL INSTITUTIONS ALONG WITH THE REASONS THEREOF:
During the Financial Year 2022-23, the Company has not made any settlement with its bankers for any loan(s) / facility(ies) availed or / and still in existence.
21. ANNUAL RETURN:
Pursuant to Section 92(3) of the Companies Act, 2013 read with the Companies (Management and Administration) Amendment Rules, 2021, Annual Return in Form MGT-7 for the Financial Year 2022-23 is being placed on the website of your Company and is available at the web-link https://www.godreiagrovet.com/investors/annual-reports.
22. DIRECTORS:
The Board of Directors of your Company comprised of the following Directors, as on March 31,2023:
The following changes have taken place in the Directors of your Company during the Financial Year 2022-23 and till the date of this Report:
Dr. Raghunath A. Mashelkar ceased to be the Director (Non-Executive & Independent) of the Company with effect from July 18, 2022, on account of expiry of term of 5 (Five) years.
The first term of appointment of Mr. Natarajan Srinivasan as an “Independent Director” of the Company was liable to come to an end on July 17, 2022. Upon recommendation made by the Nomination and Remuneration Committee, the Board of Directors through a Resolution passed on May 28, 2022, had approved and recommended to the Shareholders, the re-appointment of Mr. Natarajan Srinivasan as an “Independent Director”, to hold office for a second term of 5 (Five) years i.e., w.e.f. July 18, 2022 upto July 17, 2027. Accordingly, the Shareholders of the Company by passing a Special Resolution through Postal Ballot (whose results were declared on July 4, 2022), approved the said re-appointment for a second term of 5 (Five) years, i.e., w.e.f. July 18, 2022 upto July 18, 2027.
In accordance with the provisions of Section 152 of Companies Act, 2013, Mr. Nadir B. Godrej and Ms. Nisaba Godrej, Non-Executive & Non-Independent Directors, were liable for retire by rotation at the 31st (Thirty-First) Annual General Meeting (AGM) of the Company on July 29, 2022 and being eligible and having offered themselves for re-appointment, were re-appointed at the said AGM.
Mr. Burjis Godrej was appointed as an “Executive Director” by the Board of Directors of the Company at its Meeting held on February 4, 2022, to hold office for a term of 5 (Five) years commencing from November 1, 2022 upto October 31, 2027, subject to the approval of the Shareholders. The Shareholders’ approval was obtained by a Special Resolution passed at the 31st (Thirty-First) Annual General Meeting held on July 29, 2022.
Upon recommendation made by the Nomination and Remuneration Committee, the Board of Directors, at its Meeting held on May 9, 2022, had approved the re-appointment of Mr. Balram S. Yadav as the “Managing Director” of the Company, for further period commencing from September 1, 2022 upto April 30, 2025, subject to the approval of the Shareholders at the 31st (Thirty-First) Annual General Meeting of the Company. The Shareholders’ approval was obtained by a Special Resolution passed at the 31st (Thirty-First) Annual General Meeting held on July 29, 2022.
Ms. Ritu Verma was appointed as an “Additional Director” (Non-Executive & Independent) by the Board of Directors through a Resolution passed by Circulation on January 28, 2023, to hold office for a term of 5 (Five) years commencing from January 27, 2023 upto January 26, 2028, subject to the approval of the Shareholders. The Shareholders’ approval was obtained by a Special Resolution passed through Postal Ballot which concluded on March 4, 2023.
Ms. Tanya A. Dubash [Director Identification Number (DIN): 00026028)], Non-Executive, NonIndependent Director, is liable to retire by rotation at the ensuing 32nd (Thirty-Second) Annual General Meeting (“32nd AGM”) of your Company and being eligible, has offered herself for reappointment, as a “Director” of the Company.
Mr. Jamshyd N. Godrej (DIN: 00076250), Non-Executive & Non-Independent Director, is liable to retire by rotation at the ensuing 32nd (Thirty-Second) Annual General Meeting (“32nd AGM”) of your Company in terms of Section 152(6) of the Companies Act, 2013 and being eligible, offers himself for re-appointment, with the continuation of such directorship being subject to the fulfilment of requirements under applicable laws, including the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015.
Pursuant to the provisions of Regulation 34(3) read with Schedule V to the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, the Company has obtained a Certificate from M/s. BNP & Associates, Company Secretaries and the Secretarial Auditors of the Company, certifying that none of the Directors of the Company have been debarred or disqualified from being appointed or continuing as Directors of companies by the Securities and Exchange Board of India (SEBI) or by the Ministry of Corporate Affairs (MCA) or by any such statutory authority. The said Certificate is annexed to the Corporate Governance Report of the Company for the Financial Year 2022-23.
The following are the Key Managerial Personnel (KMP) of your Company pursuant to the provisions of Section 203 of the Companies Act, 2013, throughout the Financial Year 2022-23:
1. Mr. Balram S. Yadav - Managing Director;
2. Mr. Burjis Godrej, Executive Director;
3. Mr. S. Varadaraj - Chief Financial Officer & Head - Legal & IT;
4. Mr. Vivek Raizada - Head - Legal & Company Secretary & Compliance Officer.
24. POLICY ON APPOINTMENT & REMUNERATION OF DIRECTORS:
In compliance with the provisions of Section 178 of the Companies Act, 2013 and Regulation 19 of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, the Nomination and Remuneration Committee of the Board of the Directors of your Company has formulated a Nomination and Remuneration Policy.
The Nomination and Remuneration Policy of your Company has been made available on website of the Company at https://www.godreiagrovet.com/sustainability/codes-and-policies.
25. INDEPENDENCE & OTHER MATTERS PERTAINING TO INDEPENDENT DIRECTORS:
As on March 31, 2023, the following Directors on your Company’s Board were Independent Directors:
Pursuant to the provisions of Section 134(3)(d) of the Companies Act, 2013, disclosure is hereby given that your Company has received declaration / confirmation of independence from all its Independent Directors, pursuant to Section 149(7) of the Companies Act, 2013 and Regulation 16(1)(b) of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, as amended from time to time, and the same have been noted and taken on record by the Board, after undertaking due assessment of the veracity of the same, at its Meeting held on May 9, 2023.
The criteria for determining qualification, positive attributes and independence of Directors is provided in the Nomination and Remuneration Policy of the Company and is available on the Company’s website at https://www.godreiagrovet.com/sustainability/codes-and-policies.
The abovementioned criteria are reproduced below:
An Independent Director of your Company is required to possess appropriate skills, experience and knowledge in one or more fields of Finance, Law, Management, Sales, Marketing, Administration, Research, Corporate Governance, Technical Operations or other disciplines related to the Company’s business.
An Independent Director shall be a person who shall:
i. uphold ethical standards of integrity and probity;
ii. act objectively and constructively while exercising his / her duties;
iii. exercise his/her responsibilities in a bona fide manner in the interest of the Company;
iv. devote sufficient time and attention to his/her professional obligations for informed and balanced decision making;
v. not allow any extraneous considerations that will vitiate his/her exercise of objective independent judgment in the paramount interest of the Company as a whole, while concurring in or dissenting from the collective judgment of the Board of Directors in its decision-making;
vi. not abuse his / her position to the detriment of the Company or its Shareholders or for the purpose of gaining direct or indirect personal advantage or advantage to any associated person;
vii. refrain from any action that would lead to loss of his/her independence;
viii. where circumstances arise which make an Independent Director lose his / her independence, the Independent Director must immediately inform the Board accordingly;
ix. assist the Company in implementing the best corporate governance practices.
3. Independence of Independent Directors:
An Independent Director should meet the criteria for independence prescribed under Section 149(6) of the Companies Act, 2013 and Regulation 16 (1) of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 (as may be amended from time to time).
All the Independent Directors of your Company have complied with the Code for Independent Directors prescribed in Schedule IV to the Companies Act, 2013.
The details of familiarization programmes attended by the Independent Directors during the Financial Year 2022-23 are available on the website of the Company and can be accessed through the web-link https://www.godreiagrovet.com/investors/ compliance.
In opinion of the Board of Directors of your Company, the following Independent Directors of the Company, who have been appointed / re-appointed during the Financial Year 2022-23, possess the requisite integrity, expertise, and experience:
All the Independent Directors of your Company are registered with the Indian Institute of Corporate Affairs, Manesar (“IICA”) and have their name included in the ‘Independent Directors Data Bank’ maintained by the IICA.
The status of Proficiency Test of the Independent Directors conducted by IICA are as follows:
26. MEETINGS OF THE BOARD OF DIRECTORS:
The Meetings of the Board of Directors are pre-scheduled and intimated to all the Directors in advance, in order to enable them to plan their schedule. However, in case of special and urgent business needs, approval is taken either by convening Meetings at a shorter notice with consent of all the Directors or by passing a Resolution through Circulation.
There were 4 (Four) Meetings of the Board of Directors held during the Financial Year 2022-23, (i.e., May 9, 2022, July 29, 2022, November 4, 2022 and February 8, 2023). The details of Board Meetings and the attendance of the Directors thereat are provided in the Corporate Governance Report, which forms a part of the Annual Report.
The maximum gap between any two consecutive Board Meetings did not exceed 120 (One Hundred Twenty) days.
Pursuant to the provisions of Section 177(1) of the Companies Act, 2013, Rule 6 of the Companies (Meetings of Board & Its Powers) Rules, 2014 and Regulation 18 read with Part C of Schedule II to the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, your Company has constituted an Audit Committee of the Board of Directors, comprising of the following Directors as on March 31, 2023:
Sr. No.
There were 4 (Four) Meetings of the Audit Committee held during the Financial Year 2022-23, (i.e., May 9, 2022, July 29, 2022, November 4, 2022 and February 8, 2023).
The Statutory Auditors, Internal Auditors and Chief Financial Officer attend the Audit Committee Meetings as Invitees. The Company Secretary and Compliance Officer acts as Secretary to the Audit Committee. The Audit Committee makes observations and recommendations to the Board of Directors, which are noted and accepted by the Board.
During the Financial Year 2022-23, all recommendations made by the Audit Committee to the Board of Directors were accepted by the Board and there were no instances where the recommendations were not accepted.
Mr. Vivek Raizada, Company Secretary & Compliance Officer is the Secretary to the Audit Committee. He has attended the Meetings of the Audit Committee held during the Financial Year 2022-23.
28. NOMINATION AND REMUNERATION COMMITTEE:
Pursuant to the provisions of Section 178 of the Companies Act, 2013, Rule 6 of the Companies (Meetings of Board & Its Powers) Rules, 2014 and Regulation 19 read with Part D of Schedule II to the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, your Company has constituted a Nomination and Remuneration Committee of the Board of Directors, comprising of the following Directors as on March 31, 2023:
Sr. No.
There was 1 (One) Meeting of the Nomination and Remuneration Committee held during the Financial Year 2022-23 (i.e., on May 9, 2022).
Mr. Vivek Raizada, Company Secretary & Compliance Officer is the Secretary to the Nomination and Remuneration Committee. He has attended the Meeting of the Nomination and Remuneration Committee held during the Financial Year 2022-23.
29. STAKEHOLDERS’ RELATIONSHIP COMMITTEE:
Pursuant to the provisions of Section 178 of the Companies Act, 2013 and Regulation 20 read with Part D of Schedule II to the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, your Company has constituted a Stakeholders’ Relationship Committee of the Board of Directors, comprising of the following Directors as on March 31,2023:
Sr. No.
There was 1 (One) Meeting of the Stakeholders’ Relationship Committee held during the Financial Year 2022-23 (i.e., on November 4, 2022).
Mr. Vivek Raizada, Company Secretary & Compliance Officer is the Secretary to the Stakeholders’ Relationship Committee. He has attended the Meeting of the Stakeholders’ Relationship Committee held during the Financial Year 2022-23.
Pursuant to the provisions of Section 135 of the Companies Act, 2013 and the Companies (Corporate Social Responsibility Policy) Rules, 2014, your Company has constituted a Corporate Social Responsibility (CSR) Committee of the Board of Directors, comprising of the following Directors as on March 31,2023:
Sr. No.
Dr. Ashok Gulati (#)
(*) Dr. Raghunath A. Mashelkar ceased to be a Director (Non-Executive & Independent) of the Company with effect from July 18, 2022, due to expiry of his term of 5 (Five) Years and consequently ceased to be the Chairman of the Corporate Social Responsibility Committee.
(#) Dr. Ashok Gulati, Independent Director has been inducted as the Chairman of Corporate Social Responsibility Committee with effect from August 10, 2022.
There were 2 (Two) Meetings of the CSR Committee held during the Financial Year 2022-23 (i.e., on May 9, 2022 and November 4, 2022).
Mr. Vivek Raizada, Company Secretary & Compliance Officer is the Secretary to the CSR Committee. He has attended the Meetings of the CSR Committee held during the Financial Year 2022-23.
Your Company is committed to the Godrej Group’s ‘Good & Green’ vision of creating a more inclusive and greener India. Our strategic CSR Projects, undertaken as part of our overall sustainability framework, actively work towards the Godrej Group’s Good & Green goals and have helped us carve out a reputation for being one of the most committed and responsible companies in the industry.
The CSR Policy of your Company is available on your Company’s website and can be accessed through the web-link https://www.godrejagrovet.com/sustainability/codes-and-policies.
During the Financial Year 2022-23, your Company was required to spend ? 7.85 Crore towards CSR Activities in terms of the mandatory provisions of Section 135 of the Companies Act, 2013 and the Companies (Corporate Social Responsibility Policy) Rules, 2014, while the actual CSR spending for the year was ? 8.01 Crore. Thus, the mandatory amount for the Financial Year 2022-23 has been fully spent by the Company.
An amount of ? 0.09 Crore which remained unspent from your Company’s planned CSR budget and which is attributable to ongoing projects, has been transferred by the Company to Unspent CSR Account as on date.
The Annual Report on CSR Activities of your Company for the Financial Year 2022-23 is annexed herewith as “Annexure - A”.
31. RISK MANAGEMENT COMMITTEE:
Pursuant to Regulation 21 read with Part D of Schedule II to the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, your Company has constituted a Risk Management Committee of the Board of Directors, comprising of the following Directors as on March 31, 2023:
Sr. No.
There were 2 (Two) Meetings of the Risk Management Committee held during the Financial Year 2022-23 (i.e., on July 29, 2022 & January 24, 2023).
The details of the Risk Management Committee and its terms of reference are set out in the Corporate Governance Report forming a part of the Annual Report.
Your Company endeavors to become aware of different kinds of business risks and bring together elements of best practices for risk management in relation to existing and emerging risks. Rather than eliminating or avoiding these risks, the decision-making process at your Company considers it appropriate to take fair and reasonable risk which also enables your Company to effectively leverage market opportunities.
The Board determines the fair and reasonable extent of principal risks that your Company is willing to take to achieve its strategic objectives. With the support of the Audit Committee, it carries out a review of the effectiveness of your Company’s risk management process covering all material risks.
Your Company has substantial operations spread almost all over the country and its competitive position is influenced by the economic, regulatory and political situations and actions of the competitors.
The Company has developed and implemented a Risk Management Policy and in the opinion of the Board of Directors, no risks have been identified which may threaten the existence of your Company.
Your Company continuously monitors business and operational risks. All key functions and divisions are independently responsible to monitor risks associated within their respective areas of operations such as production, insurance, legal and other issues like health, safety and environment.
Your Company has constituted the Managing Committee of the Board of Directors, pursuant to Article 144 of the Articles of Association of the Company, comprising of the following Directors as on March 31, 2023:
Sr. No.
The Managing Committee met 10 (Ten) times during the Financial Year 2022-23, (i.e., on April 18, 2022, May 9, 2022, June 3, 2022, July 11, 2022, July 29, 2022, September 2, 2022, November 4, 2022, December 21, 2022, February 8, 2023 and March 20, 2023).
The terms of reference of the Managing Committee include handling of various administrative and other matters of the Company, which have been delegated to the Managing Committee by the Board of Directors from time to time.
33. Meeting of Independent Directors:
The Independent Directors met once during the Financial Year 2022-23, i.e., on May 9, 2022, pursuant to the provisions of Regulation 25 of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 and Schedule IV to the Companies Act, 2013.
The Meeting of the Independent Directors was conducted without the presence of the Chairman, Managing Director, Non-Executive Directors, Chief Financial Officer and the Company Secretary & Compliance Officer of the Company.
Your Company has adopted a Whistle Blower Policy (“Policy”) as a part of its vigil mechanism. The purpose of the Policy is to enable employees to raise concerns regarding unacceptable improper practices and/or any unethical practices in the organization without the knowledge of the Management. All employees will be protected from any adverse action for reporting any unacceptable or improper practice and/or any unethical practice, fraud, or violation of any law, rule or regulation.
This Policy is also applicable to your Company’s Directors and employees and it is available on the internal employee portal as well as the website of your Company at the web-link https://www.godreiagrovet.com/sustainabilitv/codes-and-policies.
Mr. V. Swaminathan, Head - Corporate Audit & Assurance, has been appointed as the ‘Whistle Blowing Officer’ and his contact details have been mentioned in the Policy. Furthermore, employees are also free to communicate their complaints directly to the Chairman of the Audit Committee, as stated in the Policy. To support its people to overcome their ethical dilemmas and raise an ethical concern freely “Speak-up” was launched in Godrej. It is a platform for Godrej employees, business associates, agents, vendors, distributors and consultants to easily raise their ethical concerns in any of the following ways:
While raising a concern, the person can choose to remain anonymous. “Speak-up” ensures to maintain confidentiality for genuine concerns. The Audit Committee reviews reports made under this Policy and implements corrective actions, wherever necessary.
The Board of Directors of your Company has carried out an Annual Performance Evaluation of its own, the Directors individually as well as the evaluation of the working of its Committees. The performance evaluation of the Board as a whole, the Chairman of the Board and NonIndependent Directors was carried out by the Independent Directors.
A structured questionnaire was prepared after taking into consideration various aspects of the Board’s functioning, composition of the Board and its Committees, culture, execution and performance of specific duties, obligations and governance. The confidential online questionnaire was responded to by the Directors and vital feedback was received from them on how the Board currently operates and ways and means to enhance its effectiveness.
The Board of Directors has expressed its satisfaction with the entire evaluation process.
36. PREVENTION OF SEXUAL HARASSMENT AT WORKPLACE & INTERNAL COMPLAINTS COMMITTEE:
Your Company is committed to create and maintain an atmosphere in which employees can work together without fear of sexual harassment, exploitation or intimidation.
The Board of Directors of your Company has constituted Internal Complaints Committees (“ICC”) at Head Office as well as regional levels, pursuant to the provisions of the Sexual Harassment of Women at Workplace (Prevention, Prohibition and Redressal) Act, 2013 and the Rules framed thereunder.
The Company has complied with the provisions relating to the constitution of ICCs under the Sexual Harassment of Women at Workplace (Prevention, Prohibition and Redressal) Act, 2013.
The ICC at the Head Office level comprised of the following Members as on March 31,2023:
The Company has formulated and circulated to all the employees, a gender-neutral Policy on Prevention of Sexual Harassment at Workplace (“POSH Policy”) under the Sexual Harassment of Women at Workplace (Prevention, Prohibition and Redressal) Act, 2013, which provides for a proper mechanism for redressal of complaints of sexual harassment.
The Company has received and resolved 1 (One) complaint under the POSH Policy during the Financial Year 2022-23 which has been resolved as on March 31, 2023.
37. SIGNIFICANT REGULATORY OR COURT ORDERS:
During the Financial Year 2022-23 and thereafter till the date of this Report, there were no significant and material orders passed by the regulators or Courts or Tribunals which can adversely impact the going concern status of your Company and its operations in future.
38. PARTICULARS OF LOANS, GUARANTEES AND INVESTMENTS UNDER SECTION 186 OF THE COMPANIES ACT, 2013:
As required to be reported pursuant to the provisions of Section 186 and Section 134(3)(g) of the Companies Act, 2013, the particulars of loans, guarantees and investments by your Company under the aforesaid provisions during the Financial Year 2021-22, have been provided in the Notes to the Financial Statement.
39. PARTICULARS OF CONTRACTS OR ARRANGEMENTS WITH RELATED PARTIES REFERRED TO IN SUB-SECTION (1) OF SECTION 188 OF THE COMPANIES ACT, 2013:
During the Financial Year 2022-23:
• There were no material significant Related Party Transactions entered into by the Company with Promoters, Directors, Key Managerial Personnel or other designated persons which may have a potential conflict with the interest of the Company.
• None of the Directors had any pecuniary relationships or transactions vis-a-vis the Company.
• Requisite prior approvals of the Audit Committee of the Board of Directors were obtained for Related Party Transactions.
Therefore, disclosure of Related Party Transactions in Form AOC-2 as per the provisions of Sections 134(3)(h) and 188 of the Companies Act, 2013 read with Rule 8(2) of the Companies (Accounts) Rules, 2014 is not applicable.
Attention of the Shareholders is also drawn to the disclosure of Related Party Transactions set out in Note No. 57 of the Standalone Financial Statements, forming part of the Annual Report.
Except as disclosed below, all Related Party Transactions entered into by your Company during the Financial Year 2022-23, were on arm’s length basis and in the ordinary course of business.
During the Financial Year 2022-23, the Company has obtained approvals for entering into the following Related Party Transactions which were not in ordinary course of business of the Company, but were at an arm’s length price:
(i) Approval for entering into a transaction of purchase / direct transfer to a third party, a land admeasuring 71 Cents, situated at Ambattur, Tamil Nadu of Godrej and Boyce Manufacturing Company Limited (“G&B”);
(ii) Approval for payment of remuneration to Mr. Burjis Godrej, proposed Executive Director, a Related Party in terms of the provisions of Section 2(76) of the Companies Act, 2013 and Regulation 2(1)(zb) of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, for the Financial Year 2022-23;
(iii) Approval for the transaction of sale of residential flat owned by the Company to Mr. Anurag Roy, Chief Executive Officer & Whole Time Director of Astec LifeSciences Limited, Subsidiary Company.
During the Financial Year 2022-23, there have been no instances of frauds reported by the Auditors under Section 143(12) of the Companies Act, 2013 and the Rules framed thereunder, either to the Company or to the Central Government.
41. INTERNAL FINANCIAL CONTROLS:
Your Company is committed to constantly improve the effectiveness of internal financial controls and processes for efficient conduct of its business operations and ensuring security to its assets and timely preparation of reliable financial information. In the opinion of the Board, the internal financial control system of your Company commensurate with the size, scale and complexity of business operations of your Company.
The Company has a proper system of internal controls to ensure that all the assets are safeguarded and protected against loss from unauthorized use or disposition and that transactions are authorized, recorded and reported correctly.
Your Company’s Corporate Audit & Assurance Department, issues well-documented operating procedures and authorities, with adequate in-built controls at the beginning of any activity and during the continuation of the process, if there is a major change.
The internal control is supplemented by an extensive programme of internal, external audits and periodic review by the Management. This system is designed to adequately ensure that financial and other records are reliable for preparing financial statements and other data and for maintaining accountability of assets.
The Statutory Auditors and the Internal Auditors are, inter alia, invited to attend the Audit Committee Meetings and present their observations on adequacy of Internal Financial Controls and the steps required to bridge gaps, if any. Accordingly, the Audit Committee makes observations and recommendations to the Board of Directors of your Company.
42. DISCLOSURES OF TRANSACTIONS OF THE COMPANY WITH ANY PERSON OR ENTITY BELONGING TO THE PROMOTER / PROMOTER GROUP:
The transactions with persons or entities belonging to the promoter / promoter group which hold(s) 10% or more shareholding in the Company, as stated under Schedule V, Part A (2A) of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulation, 2015, have been disclosed in the Notes to the accompanying Financial Statements. All such transactions during the Financial Year under review were on arm’s length basis, entered into with an intent to further the Company’s interests.
43. DIRECTORS’ RESPONSIBILITY STATEMENT:
Pursuant to the provisions contained in sub-sections (3)(c) and (5) of Section 134 of the Companies Act, 2013, the Directors of your Company, to the best of their knowledge and ability, confirm that:
a) in the preparation of the Annual Accounts for the Financial Year ended March 31, 2023, the applicable Accounting Standards have been followed along with proper explanation relating to material departures;
b) they have selected such accounting policies and applied them consistently and made judgments and estimates that are reasonable and prudent so as to give a true and fair view of the state of affairs of the Company at the end of the Financial Year (i.e., as on March 31, 2023) and of the profit and loss of the Company for that period (i.e., the Financial Year 2022-23);
c) they have taken proper and sufficient care for the maintenance of adequate accounting records in accordance with the provisions of the Companies Act, 2013 for safeguarding the assets of the Company and for preventing and detecting fraud and other irregularities;
d) they have prepared the Annual Accounts on a going concern basis;
f) they have devised proper systems to ensure compliance with the provisions of all applicable laws and that such systems were adequate and operating effectively.
In accordance with Regulation 34 of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 (“Listing Regulations”), a detailed report on Corporate Governance forms a part of the Annual Report.
M/s. BNP & Associates, Company Secretaries, who are also the “Secretarial Auditors” of your Company, have certified your Company’s compliance with the requirements of Corporate Governance in terms of Regulation 34 of the Listing Regulations and their Compliance Certificate is annexed to the Report on Corporate Governance.
Upon recommendation by the Audit Committee, the Board of Directors of the Company, at its Meeting held on May 9, 2022 had recommended to the Shareholders the re-appointment of BSR & Co. LLP, Chartered Accountants, as the “Statutory Auditors” of the Company, for a second term of 5 (Five) years, to hold office from the conclusion of the 31st (Thirty First) Annual General Meeting (“AGM”) till the conclusion of the 36th (Thirty Sixth) AGM.
The Shareholders of the company at its 31st (Thirty-First) AGM held on July 29, 2022 had approved the re-appointment of BSR & Co. LLP, Chartered Accountants (Firm Registration Number: 101248W/W-100022) as the “Statutory Auditors” of the Company, pursuant to Sections 139 to 144 of the Companies Act, 2013 and Rules 3 to 6 of the Companies (Audit and Auditors) Rules, 2014, to hold office for a second term of 5 (Five) years, i.e., from the conclusion of the 31st (Thirty First) AGM, till the conclusion of the 36th (Thirty Sixth) AGM.
46. COST RECORDS AND COST AUDITORS:
M/s. P. M. Nanabhoy & Co., Cost Accountants, Mumbai (Firm Registration No.: 00012) were appointed by the Board of Directors at its Meeting held on May 9, 2022, as the “Cost Auditors” of the Company for the Financial Year 2022-23, for all the applicable products, pursuant to the provisions of Section 148 of the Companies Act, 2013 and the Companies (Cost Records and Audit) Rules, 2014. The Shareholders of the Company at their 31st Annual General Meeting (“AGM”) held on July 29, 2022, had ratified the remuneration payable to the Cost Auditors in terms of Rule 14 of the Companies (Audit & Auditors) Rules, 2014.
The Company has prepared and maintained cost accounts and records for the Financial Year 2022-23, as per sub-section (1) of Section 148 of the Companies Act, 2013 and the Companies (Cost Records and Audit) Rules, 2014.
M/s. P. M. Nanabhoy & Co., Cost Accountants, Mumbai have been re-appointed by the Board of Directors, at its Meeting held on May 9, 2023, as the “Cost Auditors” of the Company for the Financial Year 2023-24, for all the applicable products, pursuant to the provisions of Section 148 of the Companies Act, 2013 and the Companies (Cost Records and Audit) Rules, 2014. The Shareholders are requested to ratify the remuneration payable to the Cost Auditors at their ensuing 32nd Annual General Meeting, in terms of Rule 14 of the Companies (Audit & Auditors) Rules, 2014.
47. SECRETARIAL AUDITORS AND SECRETARIAL AUDIT REPORT:
The Board of Directors of your Company, at its Meeting held on May 9, 2022, had appointed M/s. BNP & Associates, Company Secretaries (Firm Registration No.:P2014MH037400), as the “Secretarial Auditors” of the Company, to conduct the Secretarial Audit for the Financial Year 2022-23, pursuant to the provisions of Section 204 of the Companies Act, 2013 and Rule 9 of the Companies (Appointment & Remuneration of Managerial Personnel) Rules, 2014.
The Secretarial Audit Report submitted by M/s. BNP & Associates, the Secretarial Auditors, for the Financial Year 2022-23 is annexed as “Annexure - B” to this Board’s Report.
The Board of Directors of your Company at its Meeting held on May 9, 2023, has re-appointed M/s. BNP & Associates, Company Secretaries (Firm Registration No.: P2014MH037400), who have provided their consent and confirmed their eligibility to act as the “Secretarial Auditors” of the Company, to conduct the Secretarial Audit for the Financial Year 2023-24, pursuant to the provisions of Section 204 of the Companies Act, 2013 and Rule 9 of the Companies (Appointment & Remuneration of Managerial Personnel) Rules, 2014.
48. SECRETARIAL AUDIT REPORT OF UNLISTED MATERIAL SUBSIDIARY:
Pursuant to the provisions of Regulation 24A of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, the Secretarial Audit Report for the Financial Year 2022-23 of Creamline Dairy Products Limited (“CDPL”), an Unlisted Material Subsidiary of your Company, is annexed as “Annexure - C” to this Board’s Report.
49. RESPONSES TO QUALIFICATIONS, RESERVATIONS, ADVERSE REMARKS & DISCLAIMERS MADE BY THE STATUTORY AUDITORS, THE SECRETARIAL AUDITORS AND COST AUDITORS:
There are no qualifications, reservations, adverse remarks and disclaimers of the Statutory Auditors in their Auditors’ Reports (Standalone and Consolidated) on the Financial Statements for the Financial Year 2022-23.
Except as stated below, there are no qualifications, reservations, adverse remarks and disclaimers of the Secretarial Auditors in their Secretarial Audit Report for the Financial Year 2022-23:
The Stock Exchanges had sought a clarification from the Company in February 2023 in relation to Regulation 17 of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 (“the Listing Regulations”), regarding the composition of the Board, stating that half of the Board was not independent on November 1, 2022. In this connection, the Company has clarified that subsequent to Mr. Burjis Godrej joining the Board as an “Executive Director” with effect from November 1,2022, the Company has appointed Ms. Ritu Verma as an “Independent Director” with effect from January 27, 2023 [for a term of 5 (Five) years, i.e., upto January 26, 2028], thus reinstating the required optimal 50%-50% balance between Independent Directors and Non-Independent Directors, within a period of 3 (three) months as provided under Regulation 25(6) of the Listing Regulations. While the Company has duly deposited the penalty levied by the Stock Exchanges, the Company has also made an application for waiver of penalty amount, which is in process as on the date of this Report.
There are no qualifications, reservations, adverse remarks and disclaimers of the Cost Auditors in their Cost Audit Report for the Financial Year 2021-22, which was received and noted during the Financial Year 2022-23. The Cost Audit Report for the Financial Year 2022-23 will be received in due course.
Your Company has paid requisite Annual Listing Fees to BSE Limited (BSE) and National Stock Exchange of India Limited (NSE), the Stock Exchange where its securities are listed.
Your Company’s Equity Shares are available for dematerialization through National Securities Depository Limited (NSDL) and Central Depository Services (India) Limited (CDSL). The ISIN Number of your Company for both NSDL and CdSL is INE850D01014.
Your Company works with the purpose of constant innovation to improve farmer productivity and thereby to help in feeding the nation. It continues to focus and invest significantly on cutting edge Research & Development (R&D) initiatives and strongly believes that productive R&D is a key ingredient for the Company’s success and growth.
53. CONSERVATION OF ENERGY, TECHNOLOGY ABSORPTION AND FOREIGN EXCHANGE EARNINGS AND OUTGO:
The information in respect of matters pertaining to conservation of energy, technology absorption and foreign exchange earnings and outgo, as required under Section 134(3)(m) of the Companies Act, 2013 and Rule 8(3) of the Companies (Accounts) Rules, 2014 is given in the “Annexure - D” to this Directors’ Report.
The Companies Act, 2013 read with the Rules framed thereunder and the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 (“Listing Regulations”) have mandated the formulation of certain policies for listed and/ or unlisted companies. All the Policies and Codes adopted by your Company, from time to time, are available on the Company’s website viz., https://www.godreiagrovet.com/sustainabilitv/codes-and-policies. pursuant to Regulation 46 of the Listing Regulations. The Policies are reviewed periodically by the Board of Directors and its Committees and are updated based on the need and new compliance requirements.
The key policies that have been adopted by your Company are as follows:
The Company has in place, a Risk Management Policy which has been framed by the Board of Directors of the Company, based on the recommendation made by the Risk Management Committee. This Policy deals with identifying and assessing risks such as operational, strategic, financial, security, cyber security, property, regulatory, reputational and other risks and the Company has in place an adequate risk management infrastructure capable of addressing these risks.
In the opinion of the Board of Directors, no risks have been identified which may threaten the existence of your Company.
The Corporate Social Responsibility Committee has formulated and recommended to the Board of Directors, a Corporate Social Responsibility Policy, indicating the activities to be undertaken by the Company as corporate social responsibility, which has been approved by the Board. This Policy outlines the Company’s strategy to bring about a positive impact on society through activities and programmes relating to livelihood, healthcare, education, sanitation, environment, etc.
This Policy is used to determine the material subsidiaries of the Company in order to comply with the requirements of Regulation 16(1)(c) and Regulation 24 of the Listing Regulations.
As on March 31, 2023, Creamline Dairy Products Limited is a material unlisted Subsidiary of your Company.
This Policy approved by the Board formulates the criteria for determining qualifications, competencies, positive attributes and independence of a Director and also the criteria for determining the remuneration of the Directors, Key Managerial Personnel and other Senior Management employees.
The Company has a Vigil Mechanism / Whistle Blower Policy. The purpose of this Policy is to enable employees to raise concerns regarding unacceptable improper practices and/ or any unethical practices in the organization without the knowledge of the Management. The Policy provides adequate safeguards against victimization of persons who use such mechanism and makes provision for access to the Whistle Blowing Officer or direct access to the Chairperson of the Audit Committee, in appropriate or exceptional cases.
The Company has in place, a Policy on Prevention of Sexual Harassment at Workplace, which provides for a proper mechanism for redressal of complaints of sexual harassment and thereby encourages employees to work together without fear of sexual harassment, exploitation or intimidation.
This Policy regulates all transactions between the Company and its Related Parties.
This Policy sets up an appropriate mechanism to curb Insider Trading, in accordance with the provisions of the Securities and Exchange Board of India (Prohibition of Insider Trading) Regulations, 2015, as amended from time to time.
This Policy applies to disclosure of material events affecting the Company. This Policy warrants disclosure to investors and has been framed in compliance with the requirements of the Listing Regulations.
The purpose of this Policy is to specify the type of documents and time period for preservation thereof based on the classification mentioned under Regulation 9 of the Listing Regulations. This Policy covers all business records of the Company, including written, printed and recorded matter and electronic forms of records.
This Policy is framed pursuant to the provisions of the Listing Regulations. As per this Policy, all such events or information which have been disclosed to the Stock Exchanges are required to be hosted on the website of the Company for a minimum period of 5 (Five) years and thereafter in terms of the Policy.
This Policy is framed by the Board of Directors in terms of the Listing Regulations. The focus of the Company is to have a Policy on distribution of dividend so that the investor may form their own judgment as to when and how much dividend they may expect.
Code of Practices and Procedures for Fair Disclosure of Unpublished Price Sensitive Information (UPSI)
This Policy / Code is framed by the Board of Directors in terms of the Securities and Exchange Board of India (Prohibition of Insider Trading) (Amendment) Regulations, 2018. It aims to strengthen the Internal Control System and curb / prevent leak of Unpublished Price Sensitive Information (“UPSI”) without a legitimate purpose. The Policy / Code intends to formulate a stated framework and policy for fair disclosure of events and occurrences that could impact price discovery in the market for the Company’s securities. In general, this Policy aims to maintain the uniformity, transparency and fairness in dealings with all stakeholders and to ensure adherence to applicable laws and regulations.
The Company has in place, a Policy / Code of Conduct for the Board of Directors and Senior Management Personnel which reflects the legal and ethical values to which the Company is strongly committed. The Directors and Senior Management Personnel of your Company have complied with the Code during the Financial Year 2022-23.
This Policy endeavours to promote diversity at Board level, with a view to enhance its effectiveness.
Your Company has a Policy on Familiarization Programmes for Independent Directors, which lays down the practices followed by the Company in this regard, on a continuous basis.
Your Company has in place, a Human Rights Policy which demonstrates your Company’s commitment to respect human rights and treat people with dignity and respect in the course of conduct of its business.
Your Company is in compliance with the Secretarial Standards on Meetings of the Board of Directors (SS-1), Secretarial Standards on General Meetings (SS-2), as issued by the Institute of Company Secretaries of India (ICSI).
56. BUSINESS RESPONSIBILITY & SUSTAINABILITY REPORT:
The Company has prepared its Business Responsibility & Sustainability Report (BRSR) for the Financial Year 2022-23, in accordance with the Regulation 34 (2) of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015 and Circular No. SEBI/HO/CFD/CMD-2/P/CIR/2021/562 dated May 10, 2021 issued by the Securities and Exchange Board of India (SEBI), to describe the initiatives taken by the Company from an environmental, social and governance perspective.
The BRSR seeks disclosures from listed entities on their performance against the nine principles of the ‘National Guidelines on Responsible Business Conduct (NGBRCs) and reporting under each principle is divided into essential and leadership indicators. The essential indicators are required to be reported on a mandatory basis while the reporting of leadership indicators is on a voluntary basis.
The remuneration paid to the Directors and Key Managerial Personnel of the Company during the Financial Year 2022-23 was in accordance with the Nomination and Remuneration Policy of the Company.
Disclosures with respect to the remuneration of Directors and employees as required under Section 197(12) of the Companies Act, 2013 and Rule 5(1) of the Companies (Appointment and Remuneration of Managerial Personnel) Rules, 2014 have been given as “Annexure - E” to this Report.
The disclosure as per Section 197(12) of the Companies Act, 2013 read with Rule 5 (2) and Rule 5 (3) of the Companies (Appointment and Remuneration of Managerial Personnel) Rules, 2014, in respect of employees of your Company, is available for inspection by the Shareholders at the Registered Office of the Company, during business hours, i.e., between 10.00 a.m. (1ST) to 5.00 p.m. (1ST), on all working days (i.e., excluding Saturdays, Sundays and Public Holidays), upto the date of the ensuing 32nd (Thirty-Second) Annual General Meeting of the Company, subject to such restrictions as may be imposed by the Government(s) and / or local authority(ies) from time to time. If any Shareholder is interested in inspecting the records thereof, such Shareholder may write to the Company Secretary & Compliance Officer at gavlinvestors@godreiagrovet.com.
The additional information required to be given under the Companies Act, 2013 and the Rules made thereunder, has been laid out in the Notes attached to and forming part of the Financial Statements. The Notes to the Financial Statements referred to the Auditors’ Report are self-explanatory and therefore do not call for any further explanation.
The Consolidated Financial Statement of your Company forms part of this Annual Report. Accordingly, this Annual Report of your Company does not contain the Financial Statements of its Subsidiaries.
The Audited Annual Financial Statements and related information of the Company’s Subsidiaries will be made available upon request. These documents will also be available for inspection. If any Shareholder is interested in inspecting the records thereof, such Shareholder may write to the Company Secretary at gavlinvestors@godreiagrovet.com.
The Subsidiary Companies’ Financial Statements are also available on the Company’s website https://www.godreiagrovet.com/investors/annual-reports. pursuant to the provisions of Section 136 of the Companies Act, 2013.
60. INVESTOR EDUCATION AND PROTECTION FUND (IEPF):
Pursuant to Section 125 and other applicable provisions of the Companies Act, 2013, read with the Investor Education and Protection Fund Authority (Accounting, Audit, Transfer and Refund) Rules, 2016 (“IEPF Rules”), all the unpaid or unclaimed dividends are required to be transferred to the Investor Education and Protection Fund established by the Central Government (“IEPF Authority”), upon completion of 7 (Seven) years. Further, according to the IEPF Rules, the shares in respect of which dividend has not been paid or claimed by the Shareholders for 7 (Seven) consecutive years or more are also required to be transferred to the demat account created by the IEPF Authority.
Your Company does not have any unpaid or unclaimed dividend or shares relating thereto which is required to be transferred to the IEPF Authority till the date of this Report.
61. MANAGEMENT DISCUSSION AND ANALYSIS REPORT:
The Management Discussion and Analysis Report for the Financial Year 2022-23, as prescribed under Regulation 34(2) of the Securities and Exchange Board of India (Listing Obligations and Disclosure Requirements) Regulations, 2015, forms a part of the Annual Report.
Statements in the Directors’ Report and the Management Discussion and Analysis Report describing the Company’s objectives, projections, expectations, estimates or forecasts may be forward-looking within the meaning of applicable laws and regulations. Actual results may differ substantially or materially from those expressed or implied therein due to risks and uncertainties. Important factors that could influence the Company’s operations, inter alia, include global and domestic demand and supply conditions affecting selling prices of finished goods, input availability and prices, changes in government regulations, tax laws, economic, political developments within the country and other factors such as litigations and industrial relations.
Your Directors wish to place on record sincere appreciation for the support and co-operation received from various Central and State Government Departments, organizations and agencies. Your Directors also gratefully acknowledge all stakeholders of your Company, viz., Shareholders, customers, dealers, vendors, banks and other business partners for excellent support received from them during the Financial Year under review. Your Directors also express their genuine appreciation to all the employees of the Company for their unstinted commitment and continued contribution to the growth of your Company.
Nadir B. Godrej Chairman (DIN: 00066195)
Date Sources:Live BSE and NSE Quotes Service: TickerPlant | Corporate Data, F&O Data & Historical price volume data: Dion Global Solutions Ltd.
BSE Quotes and Sensex are real-time and licensed from the Bombay Stock Exchange. NSE Quotes and Nifty are also real time and licenced from National Stock Exchange. All times stamps are reflecting IST (Indian Standard Time).
By using this site, you agree to the Terms of Service and Privacy Policy.
|
english
|
Drama based on real events that took place in 1994 in South Lebanon. The film is a dramatic account of an operation that took place in South Lebanon in 1994 by the Islamic Resistance Movements against the Israeli Occupation. In Arabic with English subtitles.
Drama based on real events that took place in 1994 in South Lebanon. The film is a dramatic account of an operation that took place in South Lebanon in 1994 by the Islamic Resistance Movements against the Israeli Occupation. In Arabic with English subtitles.
Drama based on real events that took place in 1994 in South Lebanon. The film is a dramatic account of an operation that took place in South Lebanon in 1994 by the Islamic Resistance Movements against the Israeli Occupation. In Arabic with English subtitles.
Drama based on real events that took place in 1994 in South Lebanon. The film is a dramatic account of an operation that took place in South Lebanon in 1994 by the Islamic Resistance Movements against the Israeli Occupation. In Arabic with English subtitles.
Drama based on real events that took place in 1994 in South Lebanon. The film is a dramatic account of an operation that took place in South Lebanon in 1994 by the Islamic Resistance Movements against the Israeli Occupation. In Arabic with English subtitles.
Drama based on real events that took place in 1994 in South Lebanon. The film is a dramatic account of an operation that took place in South Lebanon in 1994 by the Islamic Resistance Movements against the Israeli Occupation. In Arabic with English subtitles.
Drama based on real events that took place in 1994 in South Lebanon. The film is a dramatic account of an operation that took place in South Lebanon in 1994 by the Islamic Resistance Movements against the Israeli Occupation. In Arabic with English subtitles.
The Mayor of Jerusalem has authorized the demolition of more Palestinian homes in Eastern Jerusalem that it considers "illegal". He has slated 20,000 Palestinian homes in East Jerusalem for demolition on account of them being considered by him as "illegal".
But Dahi Khalfan Tamim, the emirate's police chief in charge of the investigation, is convinced Mossad, the Israeli spy agency, sent a squad to Dubai to assassinate Mabhouh.
Al Jazeera's Dan Nolan has this exlcusive interview with the man fast-becoming a hero across the Arab world for holding Israel to account.
A well-known Sunni Scholar, Tahir-ul-Qadri, from Pakistan testifies the presence of water around the Shrine of Hazrat Abbas (a.s). He is an eye-witness. Watch and listen to the first hand account. The video also includes the original clip of fresh water flowing around the grave of Ghazi Abbas (a.s).
Shia and Sunni Muslims are united and love Prophet Muhammad (s) and his pure progeny, the Ahlulbayt (a.s).
Israel has deported many of the almost 700 pro-Palestinian activists that were captured during the deadly raid on the Gaza aid flotilla. And with a growing number of them ready to give their eyewitness account of Israel's actions, the global outcry shows no sign of subsiding. At least nine activists were killed and scores wounded in the attack.
German pro-Palestinian activist Norman Paech has said he only saw wooden sticks being brandished as Israeli commandos abseiled on to the deck of the Mavi Marmara.
Eyewitness accounts from ships raided by Israeli commandos have cast doubt on Israel's version of events that led to the deaths of at least 10 people.
Israel says its soldiers were attacked with "knives, clubs and other weapons" More..and opened fire in self defence.
"European Campaign to End Siege on Gaza", announced that it already obtain the funding of the first three ships of the new fleet which will go to the Gaza Strip, which will be named "fleet of Freedom 2", related to the name of the First Fleet, who was exposed to piracy and a bloody massacre by Israel against the peace activists on board.
Al Jazeera's Jamal Elshayyal has been released by Israeli authorities following Monday's deadly raid on the Mavi Marmara aid ship that was destined for Gaza.
Our producer, who reported from the ship as Israel launched the raid, was on the top deck when the ship was attacked.
Here, he tells his account of what happened.
Peace activist Youssef Benderbal gave RT a first-hand account of Israel's attack on the humanitarian Freedom Flotilla which had been heading for Gaza this week.
Arab states remain adamant about bringing Israel to account for its nuclear activities by proposing a relevant draft resolution to UN's nuclear watchdog for its upcoming annual conference.
As the 54th annual general conference of the International Atomic Energy Agency (IAEA) is set to convene next week, there is great international anticipation for a major focus on Tel Aviv's nuclear activities, after so many years of ignoring the issue.
"The Arab Group urges to keep the item 'Israeli nuclear capabilities' on the agenda of the general conference and ... will submit a draft resolution," said the Sudanese envoy to the organization, Mahmound El-Amin on behalf of 22 Arab states, AFP reported.
"The Arab Group requests the IAEA member states to support the draft resolution and vote in favor of it," he added.
The Israeli regime is widely believed to have manufactured numerous nuclear warheads since 1958, a year after IAEA's inception.
The agency, however, has so far refused to ratify any resolutions on Israel's nuclear activities.
Former US President Jimmy Carter has attested to the existence of the Israeli nuclear arsenal, confirming that it includes between 200 to 300 warheads. Decades of recurrent reporting and aerial footage have also established the Israeli possession of atomic arms.
The IAEA Director General, Yukiya Amano recently reported to the agency's Board of Governors about the nuclear program, saying that Tel Aviv was restricting the agency from examining its nuclear potentials.
The report, however, merely calls on Tel Aviv to join the Nuclear Non-Proliferation Treaty (NPT) and "place all its nuclear facilities under comprehensive IAEA safeguards," with no enforcement or follow-up measures behind it.
El-Amin called the report "weak and disappointing" and said that the organization uses "double standards" when it comes to Israel.
Efforts by Arab states and other countries caused an NPT review conference in May to issue a statement, highlighting the importance of Tel Aviv's acceding to the treaty and its allowing the IAEA to fully inspect its nuclear sites.
The United States, Israel's strongest ally, has served its Arab allies with a warning against supporting the draft resolution on Israel's nuclear activities, arguing that it poses risks to the renewed direct talks between the Tel Aviv regime and the Palestinian Authority (PA).
Many Palestinian groups have already abandoned hope in the process, citing the White House's partiality in favor of the Israelis and arguing that the acting PA Chief, Mahmoud Abbas, does not represent most Palestinians.
On October 20 2010, two IDF soldiers came to the University of Michigan campus as part of a national PR campaign by Stand With Us aimed at justifying Israel's recent atrocities in the Middle East. Students, staff, and community members collectively engaged in a silent walk-out in memory and in solidarity with all of the silenced Palestinian children that were killed by the IDF during Israel's most recent offensive on the Gaza Strip who are unable to take a stand and give their account today.
This is a ‘meccan’ surah. The Quraysh, among whom the Holy Prophet (s) was born, was a tribe held in great esteem, as the guardians of the holy Ka-bah, by the Arabs. They were the descendants of prophet Ibrahim (as) through his son Ismail (as). The custody of the sacred shrine of the Ka-bah enabled them to obtain covenants of security from the rulers of neighbouring countries on all sides on account of which they travelled to Syria in summer, and to Yemen in winter, to carry out their trade. Their trade caravans enriched them, united them, and drew people from distant parts to visit Makka, to bring and take from there merchandise of various kinds. This honour and advantage they owed to their position as servants of the sacred house. They owed it to Allah. It was therefore right and fitting that they should worship Allah alone and accept as true the religion of Allah, Islam, brought by the Holy Prophet.
The Holy Prophet (s.a.w.) said that the one who recites this surah will get the reward of ten times the number of people performing Tawaaf and I’tekaaf.
The recitation of surah al-Feel and al-Quraysh in the compulsory prayers carries great reward. If this surah is recited on food, its ill effects are removed. Those with heart ailments should recite this surah and then gently blow into some drinking water and drink it. If a poor person recites this surah before sunrise, ALLAH (swt) will make it easy for him to get his sustenance.
Charles Darwin\'s theory of natural selection has defined biology. Yet today, a growing number of scientists question its ability to account for the origin and diversity of life. This six-part series examines Darwinian evolution and presents a powerful challenge to its validity: the theory of intelligent design.
Charles Darwin\'s theory of natural selection has defined biology. Yet today, a growing number of scientists question its ability to account for the origin and diversity of life. This six-part series examines Darwinian evolution and presents a powerful challenge to its validity: the theory of intelligent design.
حضرت آیت الله خامنه ای رهبر معظم انقلاب اسلامی، صبح امروز در دیدار صدها نفر از « زنان فرهیخته، استادان حوزه و دانشگاه و نخبگان عرصه های مختلف»، « زن» را از دید اسلام، بزرگ خانه و گل و ریحانه خانواده خواندند و با اشاره به بحران زن در جوامع غربی افزودند: در نظام اسلامی، کارهای فراوان برای احیای جایگاه حقیقی زن انجام شده اما هنوز مشکلات زیادی بخصوص در عرصه رفتار با زن در خانواده، وجود دارد که باید با ایجاد پشتوانه های قانونی و اجرایی آنها را حل کرد.
به گزارش واحد مرکزی خبر ، حضرت آیت الله خامنه ای در این دیدار که در آستانه میلاد بانوی دو عالم حضرت فاطمه زهرا سلام الله علیها، و روز زن برگزار شد، با تبریک این میلاد خجسته، تشکیل جلسه با حضور جمعی از بانوان برجسته و نخبه کشور و نگاه دقیق و موشکافانه آنان به مسائل مختلف از جمله مسئله زنان و خانواده را نمادی از حرکت عظیم بانوان به سمت کمال و تعالی دانستند و تأکید کردند: نظام جمهوری اسلامی ایران توانسته است به قله ای دست یابد که عبارت است از پرورش زنان فرزانه و صاحب اندیشه و رأی، در ظریف ترین و حساس ترین مسائل جامعه.
ایشان مبنای مشکلات دنیای امروز در مورد مسئله زن را نگاه غلط غرب به جایگاه و شأن زن در جامعه و کج فهمی نسبت به موضوع خانواده برشمردند و تأکید کردند: این دو مشکل موجب شده است که موضوع زن در دنیا، به یک بحران تبدیل شود.
ایشان در تشریح نگاه ظالمانه غرب به « زن»، افزودند: در نامعادله ای که غرب تدریجاً در جوامع مختلف تبلیغ و القا کرده است بشریت به دو بخش تقسیم می شود: «مردان» که طرف ذینفع به شمار می آیند، و «زنان» که طرف مورد انتفاع و مورد استفاده هستند.
حضرت آیت الله خامنه ای افزودند: براساس همین مبنا و نگاه غلط، اگر زنان بخواهند در جوامع غربی نمود و شخصیت یابند باید حتماً به گونه ای رفتار کنند که مردان یعنی طرف ذینفع می خواهند و می پسندند که این اهانت بزرگترین ظلم و حق کشی در حق زنان است.
رهبر انقلاب اسلامی با اشاره به تلاش سازمان یافته و تدریجی سیاست گذاران راهبردی غرب برای جا انداختن این فرهنگ غلط در افکار ملتها، خاطرنشان کردند: به همین علت، امروز اگر کسی رفتار مبتنی بر جذابیتهای زنانه را در محیطهای عمومی محکوم کند مورد هجوم و جار و جنجال دستگاههای تبلیغاتی و سیاسی غرب قرار می گیرد.
ایشان علنی شدن مخالفت با حجاب در غرب را از دیگر پیامدهای نگاه ظالمانه به مسئله زن دانستند و افزودند: غربی ها مدعی اند که حجاب یک مسئله دینی است و در جوامع لائیک نباید ظهور پیدا کند اما علت واقعی مخالفت غرب با حجاب این است که سیاست راهبردی و بنیانی غرب درباره زن یعنی عرضه شدن و هرزه شدن زن را با چالش روبرو می کند و مانع تحقق آن می شود.
حضرت آیت الله خامنه ای با استناد به گزارشهای مراکز رسمی جهانی، سست شدن بنیان خانواده، رشد سریع تجارت شرم آور و رقت بار زنان – پدیده کودکان نامشروع و زندگیهای مشترک اما بدون ازدواج را از پیامدهای شوم نگاه مبتنی بر سوءاستفاده غرب به مقوله زن دانستند و افزودند: جمهوری اسلامی باید بطور صریح و بدون پرده پوشی، مبانی غلط غرب در مقوله زن را مورد هجوم و انتقاد جدی و بی وقفه قرار دهد و به مسئولیت خود در دفاع از جایگاه و شأن حقیقی زنان عمل کند.
ایشان نگاه غلط به خانواده را مشکل دومی دانستند که باعث بروز بحران مربوط به زنان در جوامع غربی شده است.
حضرت آیت الله خامنه ای در این زمینه افزودند: برخلاف غرب، نظر اسلام درباره خانواده و جایگاه زن بسیار روشن است و پیامبر گرامی اسلام و ائمه اطهار (ع) در سخنان مختلف بر این جایگاه رفیع تأکید کرده اند.
حضرت آیت الله خامنه ای، تحقق دیدگاه و خواسته اسلام درباره زن و خانواده را، نیازمند پشتوانه قانونی و ضمانت اجرایی خواندند و خاطرنشان کردند: با وجود همه کارهایی که پس از انقلاب انجام شده است، هنوز درباره زن و رفتار در محیط خانواده، کمبودهای زیادی وجود دارد که باید برطرف شود.
ایشان تأکید کردند: محیط خانواده برای زن باید محیطی امن – با عزت و آرامش بخش باشد تا زن بتواند وظیفه اصلی خود را که حفظ خانواده است به بهترین وجه انجام دهد.
حضرت آیت الله خامنه ای با اشاره به نگاه و حرکت هولناکی که قبل از انقلاب درباره زنان رایج بود افزودند: زن ایرانی به علت گوهر ناب ایمان، بر آن موج مخرب فائق آمد و به یکی از پایه های اساسی پیروزی و استمرار انقلاب تبدیل شد.
رهبر انقلاب اسلامی نگاه خوشبینانه به روند ارتقای جایگاه زنان در سه دهه اخیر را نگاهی واقع بینانه خواندند و با اشاره به پیشرفتهای تحسین برانگیز زنان در عرصه های مختلف سیاسی – اجتماعی – فرهنگی و بویژه علمی افزودند: در قله پرافتخار این روند، مادران و همسران شهیدان – رزمندگان و جانبازان به عنوان اسوه های صبر و مقاومت، همچون کوه ایستاده اند و به دیگران درس ایثار و ایمان می آموزند.
رهبر انقلاب افزودند: البته این نگاه خوش بینانه نباید مانع دیدن ضعفها بشود بلکه باید با شناخت دقیق نقائص و مشکلات و برطرف کردن آنها ، روند موفقیت آمیز جمهوری اسلامی را در مقوله «زنان» شتاب بخشید و بر فرهنگ غلط غربی رایج در دنیا فائق آمد.
حضرت آیت الله خامنه ای خاطرنشان کردند: عمده کارهای مربوط به مقوله «زن» باید با مطالعه و اندیشه ورزی زنان و ارائه راهکارهای اجرایی حل مشکلات انجام شود تا به فضل الهی، زنان و دختران جوان، گامهای بلندتری در این زمینه بردارند و ایران اسلامی روز به روز به اهداف متعالی خود نزدیکتر شود.
رهبر انقلاب اسلامی با تأکید بر اینکه مسئله زن و خانواده یکی از موضوعات مهم برای بحث و مطالعه و اندیشه ورزی است، خاطرنشان کردند: بر همین اساس یکی از سلسله نشست های اندیشه های راهبردی در آینده، به موضوع زن و خانواده اختصاص خواهد یافت.
حضرت آیت الله خامنه ای با دعوت از همه بانوان اندیشمند برای مشارکت جدی در مباحث مربوط به این نشست، افزودند: باید فصول مربوط به مسئله زن بصورت تخصصی و علمی و با تکیه بر منابع اسلامی و فکر ناب انقلابی بررسی و در نشست اندیشه های راهبردی مطرح شود تا نتایج آن مبنای برنامه ریزی و عمل قرار گیرد.
در ابتدای این دیدار 10 نفر از زنان فرهیخته، نخبه و روشنفکر دیدگاههای خود را درباره مسائل مختلف فرهنگی – اجتماعی – سیاسی بیان کردند.
در سخنان خود بر این نکات تأکید کردند:
• محکومیت بی توجهی مدعیان حقوق بشر به ظلم مضاعفی که در حق زنان بحرین و فلسطین انجام می شود.
در این دیدار مادر 4 شهید و همسر شهید سیدحمزه سجادیان که در دیدار حضور داشت در پیامی که همسر یکی از فرزندان شهیدش قرائت کرد بر وفاداری و ایستادگی زنان ایرانی بر عهد و پیمان با اسلام و امام و شهیدان تأکید کرد.
FARS NEWS:
TEHRAN (FNA)- Supreme Leader of the Islamic Revolution Ayatollah Seyed Ali Khamenei lambasted the western countries for their instrumental use of women, describing the West\\\'s wrong view about woman as the root cause of the different problems existing in the western families.
\\\"In the wrong equation that the West has gradually induced and inspired in the different societies, the human being is divided into two parts; Men who are considered as beneficiaries and women who are exploited and used,\\\" Ayatollah Khamenei said on Sunday, addressing a large number of Iranian women on the threshold of the \\\'Women\\\'s Day\\\' in Iran marking the birthday anniversary of Islam\\\'s number one woman Hazrat Fatema (AS), daughter of Prophet Mohammad (PBUH), spouse of Shiite\\\'s first Imam and mother of Shiite Islam\\\'s second and third Imams.
Based on this very wrong view, if women in the West want to prove themselves as renowned personalities in the society, they should behave in a way that men, as the beneficiaries, like, and this insult is the biggest oppression and cruelty against women, Ayatollah Khamenei added.
Referring to the figures published by the international centers, Ayatollah Khamenei reiterated that the weakening foundations of the western families, rapid growth of women trafficking and women trade, illegitimate births and shared life outside matrimony are just a few of the evil consequences of the West\\\'s improper view of women, which is based on misuse.
Every day, women in Europe and the US fall victim to one of the most flagrant abuses of their human rights - the right to live without violence.
It might be the stranger lurking in the back alley: much more likely it is the partner, relative, friend or colleague - for most violence against women is carried out by someone they know.
Crime statistics show that one woman in four has been attacked at some time in their lives and that at least 15 per cent of all European women have experienced domestic violence in a relationship after the age of 16. With domestic violence still very much a hidden crime, the real figure is sure to be higher. Other forms of violence - such as stalking, forced marriage, forced abortions, and forced sterilization - still pass largely unrecorded.
Conviction rates for any type of violence against women are notoriously low. When police pick up a case, on average there are 35 previous incidents to take into account. And law enforcement agents do not always possess the required expertise to produce the evidence necessary to see perpetrators brought to justice. Is it any wonder that convictions are rare?
Governments throughout Europe are recognizing the challenge, but have fallen short of action. Some have now set up refuges for abused women, some have criminalized harassment. Others use restraining orders, counseling or mediation services, or expel the violent partner from the home. Practices differ from country to country, with no clear legislative model - leaving Europe\\\'s women vulnerable to a crime that should have passed into the history books years ago.
Given the mottos chanted by Europe about its pioneering role in the protection of human rights throughout the world, is this the utopia that the western society is calling everyone to?
Source Code: http://www.webintersect.com Learn how to easily apply a pure css drop down menu that will extend user account options under a certain menu item on your website.
In this 18th video we discuss Payment Processors, SSL encrypted pages, and encrypted button code. As well as some PayPal setting options within your account. The E - Commerce Web Site we will be assembling is one in which all of the inventory is in a MySQL database and we offer a custom PHP cart for a unique shopping experience.
Learn how to program app orientation for Android device turning features. When the mobile device user flips the view mode you want to make sure you account for that. Luckily it is simple to do using Actionscript 3.0 and Flash.
In this edition of the show Nargess Moballeghi discusses the truth of 9/11 with the American architect and founder of Architects and Engineers for 9/11 Truth, Richard Gage.
Gage says his organization wants a new investigation that takes into account the evidence not reviewed by the National Institute of Science and Technology report. He cites the molten metal seen at the base of the three skyscrapers and the fact that fire could not have razed the third World Trade Center building, WTC7, which was not hit by a plane, to the ground.
|
english
|
CNET examines on the ongoing problem of disc compatibility on Blu-ray players, and why it's something reviews won't always catch.
Disc compatibility issues have plagued Blu-ray since the format came out. At first, we figured it was part of Blu-ray's growing pains and would eventually go away, like the annoying confusion about Blu-ray profiles. However, disc compatibility issues have persisted and manufacturers regularly have to issue firmware updates for their players when certain movies won't play.
We recently posted a review for the LG BD570 and shortly afterward we saw several user opinions complaining about playback issues on "Up"--primarily, the movie skipping ahead at 1:03. That's frustrating for us; "Up" wasn't a disc we looked at during our tests, but obviously glitchy playback is a serious issue. Our review of the BD590 is also coming soon, so we wanted to investigate.
We contacted LG about the issue (they're looking into it) and rush ordered a copy of "Up." The first time we tried to load "Up" on the BD590, the player froze and we were forced to power it off. But after that, to our surprise, the movie played fine on both the LG BD570 and BD590 on several attempts, with no chapter skips around 1:03. (We had no issues with "Terminator: Salvation," either, another disc that some found problematic.)
Considering the initial freeze-up was the only time that happened during our testing period with the BD590, it's hard to consider it a major flaw. We don't doubt that people are having trouble with playback issues, but since we don't have any firsthand evidence that the BD570/BD590 have significant playback or disc compatibility problems, we're not going to ding it in our review.
Minor hiccups are our experience--we've even had the rock-solid Oppo BDP-83 occasionally freeze on a disc--but usually they're uncommon and intermittent enough not to merit mention in the final write-up.
Ultimately, these kinds of issues are what the user opinions are for. No matter how much disc compatibility testing we do, we'd never be able to match the extensive testing that goes on just from buyers watching movies on their players. CNET's user opinions and the "owners' threads" at AVS Forum are great resources for discovering issues like this that we won't catch in our limited review periods. (But user reports aren't flawless, either; our impression after reading CNET user opinions/AVS Forum was that both LG players would definitely have problem with "Up" and that's wasn't the case with our review samples.)
In the bigger picture, it's unacceptable that disc compatibility is still an issue on Blu-ray players, when we didn't have these problems in the DVD era. Blu-ray has a lot of perks, but we'd easily trade BD-Live for perfect disc compatibility.
Update: LG has issued a statement regarding the playback problems some users are experiencing:
LG takes seriously the feedback from customers regarding sporadic BD570 and BD590 playback issues when some Blu-ray discs are viewed in the 1080p/24 mode. We are informing users that by switching the video output to the 1080p/60 mode they can avoid this issue and still enjoy Full HD1080p playback of the disc. We are working to develop a permanent solution, and will provide additional details on its release in the near future.
Additionally, we've been able to confirm the issue on our review sample with "Up" and "Terminator: Salvation". Our previous testing was only in 1080p/60, which is why we didn't notice it previously. As it stands now, we don't feel the problem is significant enough to warrant a rating decrease on either player--especially since 1080p60 playback is fine--but we'll continue to monitor user feedback to see if the issue becomes more widespread.
|
english
|
<filename>db/locales/fr/templates/5c3df7d588a4501f290594e5.json
{
"Name": "9x19 mm Traçante Verte",
"ShortName": "TV",
"Description": "Cartouche de 9x19 mm à balle à noyau en acier et traçante de couleur verte.",
"casingName": "9x19 mm Traçante Verte"
}
|
json
|
Greece has predicted that it will emerge from its six-year long recession next year, in a sign it may be finally recovering from its debt crisis.
The Greek government made the forecast in a first draft of its 2014 budget, which predicted 0.6% growth.
"We foresee the end of recession in 2014," vice finance minister Christos Staikouras said.
Greece will submit a final budget in November.
Greece's economy has shrunk by 23% since 2008, and it has been dependent on rescue loans from other European Union countries and the International Monetary Fund since 2010.
So far, it has received 240bn euros (£206bn) in loans from the "troika" of international lenders - the European Commission, European Central Bank and the International Monetary Fund.
In return, its economy has been strictly supervised by the troika and the government has been forced to impose drastic cuts, tax rises, and labour market and pension reforms.
The troika will also have to approve Greece's budget for next year before it can be finalised.
Greece's budget prediction reflects signs of optimism around the Greek economy.
Tourism is picking up, leading to a rise in seasonal employment. Manufacturing is also showing some signs of recovery, while retail sales continue to decline, but at a slower pace than previously.
However, analysts remain cautious.
The unemployment rate stands at a record of almost 28%, and threats of further job cuts have led to strikes and civil unrest, that economists worry could jeopardise further economic recovery.
|
english
|
<reponame>ez-connect/react-native-ez-components
{
"files.trimTrailingWhitespace": true,
"tslint.ignoreDefinitionFiles": true,
"cSpell.enabled": true
}
|
json
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.