text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
This story is now available on Chillzee KiMo.
கொண்டு புது வாழ்க்கையை நோக்கி பயணப்பட்டாள்.
Sasirekha has written more than 33 Tamil series in Chillzee and many more Novels in Chillzee KiMo.
Copyright © 2009 - 2023 Chillzee.in. All Rights Reserved.
| english |
Leader of Opposition in the Kerala Assembly V D Satheesan on Saturday said that the United Democratic Front (UDF) will not allow SilverLine project (semi high-speed rail) in the state as it is only for the elite class.
Leader of Opposition in the Kerala Assembly V D Satheesan on Saturday said that the United Democratic Front (UDF) will not allow SilverLine project (semi high-speed rail) in the state as it is only for the elite class.
"The state government even did not hold discussion over the project. We will not allow it. CPIM central committee had taken a strong stand against the Ahmedabad bullet train project. Even, CPIM general secretary said it is an elite project and will not help the poor. If the government is concentrating on the megaproject then the CPIM must clear their stand on the Centre's bullet train project," said Satheesan.
There are protests against the Kerala government's ambitious semi high-speed railway project SilverLine. It is believed to be one of the biggest infrastructure projects of the Pinarayi Vijayan government.
The proposed 529. 45-km railway line will cover 11 districts of the state connecting Thiruvananthapuram in the south to Kasaragod in the north just in four hours.
( With inputs from ANI ) | english |
In December, a senior Kashmiri doctor tweeted a disturbing picture of a young man undergoing treatment at a hospital in Srinagar for drug addiction.
The patient’s arm had developed gangrene after he inadvertently injected drugs into his artery. With the body tissue in his right arm and hand dead, the undergraduate student of science was disabled for life, said Dr Muhammad Salim Khan.
Khan shares such disturbing images often. His aim, he said, is to bring to light “the extent of the substance abuse problem we are facing”. “As a society, we can’t afford to be in denial any longer,” Dr Khan told Scroll.
Over the last few years, drug abuse has rapidly emerged as a frightening crisis affecting the young in the Union territory of Jammu and Kashmir.
Even political parties are taking note. On June 16, Jammu and Kashmir’s oldest mainstream political party, the National Conference, constituted an 11-member committee in order to look into substance abuse in the Union territory.
In a reply in the Lok Sabha to a question regarding drug addiction in the country, the Ministry of Social Justice and Empowerment in March said nearly 10 lakh people in the Union territory were into substance abuse. More than half of these abusers were addicted to opioids, according to the ministry.
If compared to the total population figures of Jammu and Kashmir, as per the 2011 census figures, nearly 8% of its population is into drug abuse.
Many other states in north India, including Punjab, Himachal Pradesh, Haryana and Delhi, too reported high levels of drug abuse. For example, the population into substance abuse in Himachal Pradesh is nearly 9 lakh.
While the use of cannabis or cocaine is low in Jammu and Kashmir, the Union territory’s burden of opioid cases (over 5 lakh) is significant. Even so, states like Punjab (25 lakh) and Haryana (21 lakh) have a higher number of opioid addicts.
Opioids “are a class of drugs that include the illegal drug heroin, synthetic opioids such as fentanyl, and pain relievers available legally by prescription...”, according to the American public research institute National Institute on Drug Abuse.
The figures presented in Parliament were based on a 2019 survey on the magnitude of substance abuse across India, which also measured drug use, harmful use and drug dependence. According to that survey, the number of individuals in Jammu and Kashmir addicted to opioids to a degree that needs professional intervention is close to 2 lakh, or 1.5% of its population.
The most recent study on the prevalence and pattern of drug use was carried out in 2022 by doctors at Srinagar’s Institute of Mental Health and Neuro-sciences. Limited to the 10 districts of Kashmir Valley, the study examined 1,500 patients of drug abuse, of which 1,280 were addicted to opioids. More than 50% of these opioid-dependent patients took heroin through injection. The average age of initiation into heroin addiction was 22.88 years, a significant figure in a region where 35 per cent of the population is in the 15-34 age group.
Worrying as the numbers are, experts say the problem is bigger.
In Kashmir Valley, Rather and other doctors say, the number of drug abuse victims turning up to seek help at de-addiction centres has seen an exponential rise.
In 2015, nearly 500 drug abuse victims turned up to seek help at Institute of Mental Health and Neurosciences, or IMHANS – Kashmir’s only dedicated hospital for psychiatric services. By 2021, that number had gone up to 24,000. Last year, the number of addicts who sought treatment at the hospital rose to 44,000.
“Every day, roughly 100-200 patients turn up at the hospital for treatment,” said Rather.
The addiction treatment facility of Srinagar’s Sher-i-Kashmir Institute of Medical Sciences, Bemina, was started only last year. Already, more than 1,800 patients affected by substance abuse have turned up for treatment. “Every day, we have 100 plus patients, of which three to five are new patients,” said Dr Abdul Majid, head of the psychiatry department at the hospital.
Majid, who heads the treatment centre in SKIMS Bemina, concurs with the assessment. “There is no doubt that the treatment gap is around 80-85 per cent. This is the number of substance abusers who are in the community and not seeking treatment,” he said.
The dominance of heroin users is worrying, doctors say.
Twenty-three-year-old Ahmad was 15 when he picked up the habit of smoking cannabis from his friends.
Three or four years ago, a friend introduced him to heroin.
“Since then, I switched to heroin,” said Ahmad, who is undergoing de-addiction treatment at Srinagar’s Institute of Mental Health and Neurosciences.
His source of income was snapped, but Ahmad did not stop. He took to selling valuables from home in order to buy heroin. Unlike many other substances, heroin is very expensive. The average monthly expenditure on heroin use for an individual is a little above Rs 88,000 per month, according to a survey by the Institute of Mental Health and Neurosciences.
But the battle against heroin is not easily won. Doctors say it is common for drug abuse victims to relapse.
An encounter with his friends drew Ahmad back to heroin. “Since then, it has been one and a half years and I haven’t stopped,” said Ahmed.
Experts and studies attribute the initiation into drug abuse to a host of factors – the most common being peer pressure.
“Various factors like stress, limited means of entertainment and recreation, influence of media and others are important factors that escalate the substance use in such regions,” pointed out the 2022 IMHANS study on substance abuse.
The IMHANS study of 2022, however, also underlined a possible relation between unemployment and substance abuse. While the substance use was seen majorly in the unemployed population, the study demanded “further research for studying relationship between unemployment and illicit drug use” in Kashmir valley.
But life in a conflict zone, where violence has left a lasting imprint on the psyche of the people, makes people more vulnerable. “People living in turmoil are vulnerable to shortcuts. One of the shortcuts to relieve stress obviously is seeking substances and their pleasure,” said Majid, who heads the psychiatry department at SKIMS, Bemina.
At the same time, he added, while conflict is one of the major contributors to the rising drug addiction, it’s not the only one.
Sheikh, a 21-year-old from Jammu, got into drugs through a chance encounter.
From a family which had a thriving business, Sheikh was neither worried about earning an income nor did he have any other personal problems.
“In our locality, drug abuse was common and I had seen boys talking about how euphoric they felt after taking it,” said Sheikh.
In order to satisfy his curiosity, Sheikh also tried taking medicinal opioids. He found it difficult to quit. “What complicated things for me is that since I was taking care of the family business, I was never short of money. That’s why I never stopped,” he said.
These days, Sheikh is undergoing de-addiction treatment at a government-run facility in Srinagar.
“Will I be able to get rid of this habit?” he asks.
Over the last few years, Jammu and Kashmir police have seized drugs worth crores and arrested many.
Besides registering hundreds of cases under Narcotic Drugs and Psychotropic Substances Act against the drug traffickers, the authorities have been using preventive detention laws against chronic drug peddlers to keep them behind bars.
Doctors concede the heroin supply chain has been disturbed to an extent. “Earlier, a gram of heroin would sell for Rs 3,000 which has now doubled to 6,000. It clearly means the supply has been affected,” said Rather.
At the same time, doctors as well as authorities say, an increasing intersection between crime and drug abuse is clearly visible in Kashmir valley.
Srinagar district magistrate Mohammad Aijaz Assad said there is a clear link between theft cases in the city and the drug abuse. “Recently, I received data from police and when I went through the data, it was shocking to find that most of the thefts, to the tune of 95%, have an angle of drugs,” he said at a recent seminar.
But while the law enforcement agencies and hospitals are at the forefront of the battle, the crisis is big enough that everyone needs to be involved, say doctors.
“It’s not my job or your job alone, it’s everybody’s job,” said Rather, the doctor at IMHANS.
There are signs of the concern trickling down. For example, it’s not common for a political party like the National Conference in Jammu and Kashmir to take up issues like drug abuse.
Imran Nabi Dar, a senior National Conference leader from south Kashmir’s Kulgam, is part of the 11-member committee set up by the party to look at drug abuse. He said they have held talks with different sections of the society and law enforcement agencies to understand the issue.
Doctors say it is also the turn of religious spaces and institutions to step up. “Religious scholars are key players. They have a platform and an audience every week,” said Rather from IMHANS.
The institute recently invited religious scholars to sensitize them about the issue, and counter the stigma against drug users. “We have to be non-judgmental and very empathetic to them. We have to look at them as victims,” said Rather.
| english |
{"derivation": "(Aramaic) corresponding to H3117 (\u05d9\u05d5\u05b9\u05dd);", "pron": "yome", "outline": "<ol><li> day</li><li> day always refers to a twenty-four hour period when the word is modified by a definite or cardinal number</li></ol>", "kjv_def": "day (by day), time.", "lemma": "\u05d9\u05d5\u05b9\u05dd", "frequency": 16, "strongs_def": "a day", "xlit": "y\u00f4wm"} | json |
<reponame>PrioritySoftware/app-master
import { ColumnsOptions } from "priority-ionic";
import { DirectActivation } from './direct-activation.class';
export declare class FormConfig
{
name: string;
subforms: Array<string>
parentForm: string;
searchColumns: Array<string>;
detailsColumnsOptions: ColumnsOptions;
listColumnsOptions: ColumnsOptions;
pos: number;
activations: { [key: string]: DirectActivation };
} | typescript |
<reponame>dwmkerr/app-version<gh_stars>0
const fs = require('fs');
const readline = require('readline');
module.exports = async function editGradleFile(filePath, find, replace, outputPath) {
return new Promise((resolve) => {
const updatedLines = [];
let updated = false;
// If we don't specify an output path, use the input path (i.e. overwrite).
const outputFilePath = outputPath || filePath;
const readInterface = readline.createInterface({
input: fs.createReadStream(filePath),
});
readInterface.on('line', (line) => {
if (find.test(line)) {
updatedLines.push(line.replace(find, replace));
updated = true;
} else {
updatedLines.push(line);
}
});
// When we've finished reading we can write the updated lines back to the file.
readInterface.on('close', () => {
updatedLines.push(''); // end the file with a newline as is standard
fs.writeFileSync(outputFilePath, updatedLines.join('\n'), 'utf-8');
return resolve(updated);
});
});
};
| javascript |
{"type":"Feature","id":"node/7791576100","properties":{"amenity":"marketplace","food":"yes","name":"<NAME>","opening_hours":"Th 10:00-18:00","id":"node/7791576100"},"geometry":{"type":"Point","coordinates":[11.5869439,48.1633588]}} | json |
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*/
import { IVssRestClientOptions } from "../Common/Context";
import { RestClientBase } from "../Common/RestClientBase";
import * as TestPlan from "../TestPlan/TestPlan";
export class TestPlanRestClient extends RestClientBase {
constructor(options: IVssRestClientOptions) {
super(options);
}
/**
* Create a test configuration.
*
* @param testConfigurationCreateUpdateParameters - TestConfigurationCreateUpdateParameters
* @param project - Project ID or project name
*/
public async createTestConfiguration(
testConfigurationCreateUpdateParameters: TestPlan.TestConfigurationCreateUpdateParameters,
project: string
): Promise<TestPlan.TestConfiguration> {
return this.beginRequest<TestPlan.TestConfiguration>({
apiVersion: "5.1-preview.1",
method: "POST",
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
routeValues: {
project: project
},
body: testConfigurationCreateUpdateParameters
});
}
/**
* Delete a test configuration by its ID.
*
* @param project - Project ID or project name
* @param testConfiguartionId - ID of the test configuration to delete.
*/
public async deleteTestConfguration(
project: string,
testConfiguartionId: number
): Promise<void> {
const queryValues: any = {
testConfiguartionId: testConfiguartionId
};
return this.beginRequest<void>({
apiVersion: "5.1-preview.1",
method: "DELETE",
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
routeValues: {
project: project
},
queryParams: queryValues
});
}
/**
* Get a test configuration
*
* @param project - Project ID or project name
* @param testConfigurationId - ID of the test configuration to get.
*/
public async getTestConfigurationById(
project: string,
testConfigurationId: number
): Promise<TestPlan.TestConfiguration> {
return this.beginRequest<TestPlan.TestConfiguration>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
routeValues: {
project: project,
testConfigurationId: testConfigurationId
}
});
}
/**
* Get a list of test configurations.
*
* @param project - Project ID or project name
* @param continuationToken - If the list of configurations returned is not complete, a continuation token to query next batch of configurations is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test configurations.
*/
public async getTestConfigurations(
project: string,
continuationToken?: string
): Promise<TestPlan.TestConfiguration[]> {
const queryValues: any = {
continuationToken: continuationToken
};
return this.beginRequest<TestPlan.TestConfiguration[]>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
routeValues: {
project: project
},
queryParams: queryValues
});
}
/**
* Update a test configuration by its ID.
*
* @param testConfigurationCreateUpdateParameters - TestConfigurationCreateUpdateParameters
* @param project - Project ID or project name
* @param testConfiguartionId - ID of the test configuration to update.
*/
public async updateTestConfiguration(
testConfigurationCreateUpdateParameters: TestPlan.TestConfigurationCreateUpdateParameters,
project: string,
testConfiguartionId: number
): Promise<TestPlan.TestConfiguration> {
const queryValues: any = {
testConfiguartionId: testConfiguartionId
};
return this.beginRequest<TestPlan.TestConfiguration>({
apiVersion: "5.1-preview.1",
method: "PATCH",
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
routeValues: {
project: project
},
queryParams: queryValues,
body: testConfigurationCreateUpdateParameters
});
}
/**
* Create a test plan.
*
* @param testPlanCreateParams - A testPlanCreateParams object.TestPlanCreateParams
* @param project - Project ID or project name
*/
public async createTestPlan(
testPlanCreateParams: TestPlan.TestPlanCreateParams,
project: string
): Promise<TestPlan.TestPlan> {
return this.beginRequest<TestPlan.TestPlan>({
apiVersion: "5.1-preview.1",
method: "POST",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
routeValues: {
project: project
},
body: testPlanCreateParams
});
}
/**
* Delete a test plan.
*
* @param project - Project ID or project name
* @param planId - ID of the test plan to be deleted.
*/
public async deleteTestPlan(
project: string,
planId: number
): Promise<void> {
return this.beginRequest<void>({
apiVersion: "5.1-preview.1",
method: "DELETE",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
routeValues: {
project: project,
planId: planId
}
});
}
/**
* Get a test plan by Id.
*
* @param project - Project ID or project name
* @param planId - ID of the test plan to get.
*/
public async getTestPlanById(
project: string,
planId: number
): Promise<TestPlan.TestPlan> {
return this.beginRequest<TestPlan.TestPlan>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
routeValues: {
project: project,
planId: planId
}
});
}
/**
* Get a list of test plans
*
* @param project - Project ID or project name
* @param owner - Filter for test plan by owner ID or name
* @param continuationToken - If the list of plans returned is not complete, a continuation token to query next batch of plans is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test plans.
* @param includePlanDetails - Get all properties of the test plan
* @param filterActivePlans - Get just the active plans
*/
public async getTestPlans(
project: string,
owner?: string,
continuationToken?: string,
includePlanDetails?: boolean,
filterActivePlans?: boolean
): Promise<TestPlan.TestPlan[]> {
const queryValues: any = {
owner: owner,
continuationToken: continuationToken,
includePlanDetails: includePlanDetails,
filterActivePlans: filterActivePlans
};
return this.beginRequest<TestPlan.TestPlan[]>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
routeValues: {
project: project
},
queryParams: queryValues
});
}
/**
* Update a test plan.
*
* @param testPlanUpdateParams - A testPlanUpdateParams object.TestPlanUpdateParams
* @param project - Project ID or project name
* @param planId - ID of the test plan to be updated.
*/
public async updateTestPlan(
testPlanUpdateParams: TestPlan.TestPlanUpdateParams,
project: string,
planId: number
): Promise<TestPlan.TestPlan> {
return this.beginRequest<TestPlan.TestPlan>({
apiVersion: "5.1-preview.1",
method: "PATCH",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
routeValues: {
project: project,
planId: planId
},
body: testPlanUpdateParams
});
}
/**
* Get a list of test suite entries in the test suite.
*
* @param project - Project ID or project name
* @param suiteId - Id of the parent suite.
* @param suiteEntryType -
*/
public async getSuiteEntries(
project: string,
suiteId: number,
suiteEntryType?: TestPlan.SuiteEntryTypes
): Promise<TestPlan.SuiteEntry[]> {
const queryValues: any = {
suiteEntryType: suiteEntryType
};
return this.beginRequest<TestPlan.SuiteEntry[]>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/SuiteEntry/{suiteId}",
routeValues: {
project: project,
suiteId: suiteId
},
queryParams: queryValues
});
}
/**
* Reorder test suite entries in the test suite.
*
* @param suiteEntries - List of SuiteEntry to reorder.
* @param project - Project ID or project name
* @param suiteId - Id of the parent test suite.
*/
public async reorderSuiteEntries(
suiteEntries: TestPlan.SuiteEntryUpdateParams[],
project: string,
suiteId: number
): Promise<TestPlan.SuiteEntry[]> {
return this.beginRequest<TestPlan.SuiteEntry[]>({
apiVersion: "5.1-preview.1",
method: "PATCH",
routeTemplate: "{project}/_apis/testplan/SuiteEntry/{suiteId}",
routeValues: {
project: project,
suiteId: suiteId
},
body: suiteEntries
});
}
/**
* Create test suite.
*
* @param testSuiteCreateParams - Parameters for suite creation
* @param project - Project ID or project name
* @param planId - ID of the test plan that contains the suites.
*/
public async createTestSuite(
testSuiteCreateParams: TestPlan.TestSuiteCreateParams,
project: string,
planId: number
): Promise<TestPlan.TestSuite> {
return this.beginRequest<TestPlan.TestSuite>({
apiVersion: "5.1-preview.1",
method: "POST",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
routeValues: {
project: project,
planId: planId
},
body: testSuiteCreateParams
});
}
/**
* Delete test suite.
*
* @param project - Project ID or project name
* @param planId - ID of the test plan that contains the suite.
* @param suiteId - ID of the test suite to delete.
*/
public async deleteTestSuite(
project: string,
planId: number,
suiteId: number
): Promise<void> {
return this.beginRequest<void>({
apiVersion: "5.1-preview.1",
method: "DELETE",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
}
});
}
/**
* Get test suite by suite id.
*
* @param project - Project ID or project name
* @param planId - ID of the test plan that contains the suites.
* @param suiteId - ID of the suite to get.
* @param expand - Include the children suites and testers details
*/
public async getTestSuiteById(
project: string,
planId: number,
suiteId: number,
expand?: TestPlan.SuiteExpand
): Promise<TestPlan.TestSuite> {
const queryValues: any = {
expand: expand
};
return this.beginRequest<TestPlan.TestSuite>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
},
queryParams: queryValues
});
}
/**
* Get test suites for plan.
*
* @param project - Project ID or project name
* @param planId - ID of the test plan for which suites are requested.
* @param expand - Include the children suites and testers details.
* @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
* @param asTreeView - If the suites returned should be in a tree structure.
*/
public async getTestSuitesForPlan(
project: string,
planId: number,
expand?: TestPlan.SuiteExpand,
continuationToken?: string,
asTreeView?: boolean
): Promise<TestPlan.TestSuite[]> {
const queryValues: any = {
expand: expand,
continuationToken: continuationToken,
asTreeView: asTreeView
};
return this.beginRequest<TestPlan.TestSuite[]>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
routeValues: {
project: project,
planId: planId
},
queryParams: queryValues
});
}
/**
* Update test suite.
*
* @param testSuiteUpdateParams - Parameters for suite updation
* @param project - Project ID or project name
* @param planId - ID of the test plan that contains the suites.
* @param suiteId - ID of the parent suite.
*/
public async updateTestSuite(
testSuiteUpdateParams: TestPlan.TestSuiteUpdateParams,
project: string,
planId: number,
suiteId: number
): Promise<TestPlan.TestSuite> {
return this.beginRequest<TestPlan.TestSuite>({
apiVersion: "5.1-preview.1",
method: "PATCH",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
},
body: testSuiteUpdateParams
});
}
/**
* Find the list of all test suites in which a given test case is present. This is helpful if you need to find out which test suites are using a test case, when you need to make changes to a test case.
*
* @param testCaseId - ID of the test case for which suites need to be fetched.
*/
public async getSuitesByTestCaseId(
testCaseId: number
): Promise<TestPlan.TestSuite[]> {
const queryValues: any = {
testCaseId: testCaseId
};
return this.beginRequest<TestPlan.TestSuite[]>({
apiVersion: "5.1-preview.1",
routeTemplate: "_apis/testplan/Suites",
queryParams: queryValues
});
}
/**
* Add test cases to a suite with specified configurations
*
* @param suiteTestCaseCreateUpdateParameters -
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
*/
public async addTestCasesToSuite(
suiteTestCaseCreateUpdateParameters: TestPlan.SuiteTestCaseCreateUpdateParameters[],
project: string,
planId: number,
suiteId: number
): Promise<TestPlan.TestCase[]> {
return this.beginRequest<TestPlan.TestCase[]>({
apiVersion: "5.1-preview.2",
method: "POST",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
},
body: suiteTestCaseCreateUpdateParameters
});
}
/**
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
* @param testCaseIds -
* @param witFields -
*/
public async getTestCase(
project: string,
planId: number,
suiteId: number,
testCaseIds: string,
witFields?: string
): Promise<TestPlan.TestCase[]> {
const queryValues: any = {
witFields: witFields
};
return this.beginRequest<TestPlan.TestCase[]>({
apiVersion: "5.1-preview.2",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId,
testCaseIds: testCaseIds
},
queryParams: queryValues
});
}
/**
* Get Test Case List return those test cases which have all the configuration Ids as mentioned in the optional paramter. If configuration Ids is null, it return all the test cases
*
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
* @param testIds -
* @param configurationIds -
* @param witFields -
* @param continuationToken -
*/
public async getTestCaseList(
project: string,
planId: number,
suiteId: number,
testIds?: string,
configurationIds?: string,
witFields?: string,
continuationToken?: string
): Promise<TestPlan.TestCase[]> {
const queryValues: any = {
testIds: testIds,
configurationIds: configurationIds,
witFields: witFields,
continuationToken: continuationToken
};
return this.beginRequest<TestPlan.TestCase[]>({
apiVersion: "5.1-preview.2",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
},
queryParams: queryValues
});
}
/**
* Removes test cases from a suite based on the list of test case Ids provided.
*
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
* @param testCaseIds -
*/
public async removeTestCasesFromSuite(
project: string,
planId: number,
suiteId: number,
testCaseIds: string
): Promise<void> {
return this.beginRequest<void>({
apiVersion: "5.1-preview.2",
method: "DELETE",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId,
testCaseIds: testCaseIds
}
});
}
/**
* Update the configurations for test cases
*
* @param suiteTestCaseCreateUpdateParameters -
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
*/
public async updateSuiteTestCases(
suiteTestCaseCreateUpdateParameters: TestPlan.SuiteTestCaseCreateUpdateParameters[],
project: string,
planId: number,
suiteId: number
): Promise<TestPlan.TestCase[]> {
return this.beginRequest<TestPlan.TestCase[]>({
apiVersion: "5.1-preview.2",
method: "PATCH",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
},
body: suiteTestCaseCreateUpdateParameters
});
}
/**
* Delete a test case.
*
* @param project - Project ID or project name
* @param testCaseId - Id of test case to be deleted.
*/
public async deleteTestCase(
project: string,
testCaseId: number
): Promise<void> {
return this.beginRequest<void>({
apiVersion: "5.1-preview.1",
method: "DELETE",
routeTemplate: "{project}/_apis/testplan/TestCases/{testCaseId}",
routeValues: {
project: project,
testCaseId: testCaseId
}
});
}
/**
* Clone test plan
*
* @param cloneRequestBody - Plan Clone Request Body detail TestPlanCloneRequest
* @param project - Project ID or project name
* @param deepClone - Clones all the associated test cases as well
*/
public async cloneTestPlan(
cloneRequestBody: TestPlan.CloneTestPlanParams,
project: string,
deepClone?: boolean
): Promise<TestPlan.CloneTestPlanOperationInformation> {
const queryValues: any = {
deepClone: deepClone
};
return this.beginRequest<TestPlan.CloneTestPlanOperationInformation>({
apiVersion: "5.1-preview.2",
method: "POST",
routeTemplate: "{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",
routeValues: {
project: project
},
queryParams: queryValues,
body: cloneRequestBody
});
}
/**
* Get clone information.
*
* @param project - Project ID or project name
* @param cloneOperationId - Operation ID returned when we queue a clone operation
*/
public async getCloneInformation(
project: string,
cloneOperationId: number
): Promise<TestPlan.CloneTestPlanOperationInformation> {
return this.beginRequest<TestPlan.CloneTestPlanOperationInformation>({
apiVersion: "5.1-preview.2",
routeTemplate: "{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",
routeValues: {
project: project,
cloneOperationId: cloneOperationId
}
});
}
/**
* Get a list of points based on point Ids provided.
*
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
* @param pointIds -
*/
public async getPoints(
project: string,
planId: number,
suiteId: number,
pointIds: string
): Promise<TestPlan.TestPoint[]> {
return this.beginRequest<TestPlan.TestPoint[]>({
apiVersion: "5.1-preview.2",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId,
pointIds: pointIds
}
});
}
/**
* Get all the points inside a suite based on some filters
*
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
* @param testPointIds -
* @param testCaseId -
* @param continuationToken -
*/
public async getPointsList(
project: string,
planId: number,
suiteId: number,
testPointIds?: string,
testCaseId?: string,
continuationToken?: string
): Promise<TestPlan.TestPoint[]> {
const queryValues: any = {
testPointIds: testPointIds,
testCaseId: testCaseId,
continuationToken: continuationToken
};
return this.beginRequest<TestPlan.TestPoint[]>({
apiVersion: "5.1-preview.2",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
},
queryParams: queryValues
});
}
/**
* Update Test Points. This is used to Reset test point to active, update the outcome of a test point or update the tester of a test point
*
* @param testPointUpdateParams -
* @param project - Project ID or project name
* @param planId -
* @param suiteId -
*/
public async updateTestPoints(
testPointUpdateParams: TestPlan.TestPointUpdateParams[],
project: string,
planId: number,
suiteId: number
): Promise<TestPlan.TestPoint[]> {
return this.beginRequest<TestPlan.TestPoint[]>({
apiVersion: "5.1-preview.2",
method: "PATCH",
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
routeValues: {
project: project,
planId: planId,
suiteId: suiteId
},
body: testPointUpdateParams
});
}
/**
* Clone test suite
*
* @param cloneRequestBody - Suite Clone Request Body detail TestSuiteCloneRequest
* @param project - Project ID or project name
* @param deepClone - Clones all the associated test cases as well
*/
public async cloneTestSuite(
cloneRequestBody: TestPlan.CloneTestSuiteParams,
project: string,
deepClone?: boolean
): Promise<TestPlan.CloneTestSuiteOperationInformation> {
const queryValues: any = {
deepClone: deepClone
};
return this.beginRequest<TestPlan.CloneTestSuiteOperationInformation>({
apiVersion: "5.1-preview.2",
method: "POST",
routeTemplate: "{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",
routeValues: {
project: project
},
queryParams: queryValues,
body: cloneRequestBody
});
}
/**
* Get clone information.
*
* @param project - Project ID or project name
* @param cloneOperationId - Operation ID returned when we queue a clone operation
*/
public async getSuiteCloneInformation(
project: string,
cloneOperationId: number
): Promise<TestPlan.CloneTestSuiteOperationInformation> {
return this.beginRequest<TestPlan.CloneTestSuiteOperationInformation>({
apiVersion: "5.1-preview.2",
routeTemplate: "{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",
routeValues: {
project: project,
cloneOperationId: cloneOperationId
}
});
}
/**
* Create a test variable.
*
* @param testVariableCreateUpdateParameters - TestVariableCreateUpdateParameters
* @param project - Project ID or project name
*/
public async createTestVariable(
testVariableCreateUpdateParameters: TestPlan.TestVariableCreateUpdateParameters,
project: string
): Promise<TestPlan.TestVariable> {
return this.beginRequest<TestPlan.TestVariable>({
apiVersion: "5.1-preview.1",
method: "POST",
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
routeValues: {
project: project
},
body: testVariableCreateUpdateParameters
});
}
/**
* Delete a test variable by its ID.
*
* @param project - Project ID or project name
* @param testVariableId - ID of the test variable to delete.
*/
public async deleteTestVariable(
project: string,
testVariableId: number
): Promise<void> {
return this.beginRequest<void>({
apiVersion: "5.1-preview.1",
method: "DELETE",
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
routeValues: {
project: project,
testVariableId: testVariableId
}
});
}
/**
* Get a test variable by its ID.
*
* @param project - Project ID or project name
* @param testVariableId - ID of the test variable to get.
*/
public async getTestVariableById(
project: string,
testVariableId: number
): Promise<TestPlan.TestVariable> {
return this.beginRequest<TestPlan.TestVariable>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
routeValues: {
project: project,
testVariableId: testVariableId
}
});
}
/**
* Get a list of test variables.
*
* @param project - Project ID or project name
* @param continuationToken - If the list of variables returned is not complete, a continuation token to query next batch of variables is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test variables.
*/
public async getTestVariables(
project: string,
continuationToken?: string
): Promise<TestPlan.TestVariable[]> {
const queryValues: any = {
continuationToken: continuationToken
};
return this.beginRequest<TestPlan.TestVariable[]>({
apiVersion: "5.1-preview.1",
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
routeValues: {
project: project
},
queryParams: queryValues
});
}
/**
* Update a test variable by its ID.
*
* @param testVariableCreateUpdateParameters - TestVariableCreateUpdateParameters
* @param project - Project ID or project name
* @param testVariableId - ID of the test variable to update.
*/
public async updateTestVariable(
testVariableCreateUpdateParameters: TestPlan.TestVariableCreateUpdateParameters,
project: string,
testVariableId: number
): Promise<TestPlan.TestVariable> {
return this.beginRequest<TestPlan.TestVariable>({
apiVersion: "5.1-preview.1",
method: "PATCH",
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
routeValues: {
project: project,
testVariableId: testVariableId
},
body: testVariableCreateUpdateParameters
});
}
}
| typescript |
import React from 'react';
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogProps,
DialogTitle,
makeStyles,
MuiThemeProvider,
Slide,
} from '@material-ui/core';
import { TransitionProps } from '@material-ui/core/transitions';
import { errorTheme } from '../../theme';
const Transition = React.forwardRef(function Transition(
props: TransitionProps & { children?: React.ReactElement<any, any> },
ref: React.Ref<unknown>
) {
return <Slide direction="up" ref={ref} {...props} />;
});
interface LoginModalProps {
onConfirm: () => void;
onCancel: () => void;
open: boolean;
}
const useStyles = makeStyles(theme => ({
button: {
margin: theme.spacing(1),
},
paper: {
position: 'absolute',
width: 400,
backgroundColor: theme.palette.background.paper,
boxShadow: theme.shadows[5],
outline: 'none',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
top: '50%',
left: '50%',
},
modalStyle: {
position: 'absolute',
boxShadow: '#7289da',
background: 'rgba(255, 255, 255, 1.0)',
float: 'left',
left: '50%',
top: '50%',
height: '50%',
width: '50%',
transform: 'translate(-50%, -50%)',
},
dialogTitle: {
fontWeight: 600,
fontSize: '50px',
},
}));
export default function ClubLeaveDialog(props: LoginModalProps) {
const classes = useStyles();
const { onCancel, onConfirm, open } = props;
const fullWidth = true;
const maxWidth: DialogProps['maxWidth'] = 'sm';
return (
<Dialog
fullWidth={fullWidth}
maxWidth={maxWidth}
open={open}
TransitionComponent={Transition}
onClose={onCancel}
aria-labelledby="max-width-dialog-title"
>
<DialogTitle id="leave-club-dialog" className={classes.dialogTitle}>
Leave club?
</DialogTitle>
<DialogContent>
<DialogContentText>
Are you sure you want to leave the club?
</DialogContentText>
</DialogContent>
<DialogActions>
<Button className={classes.button} onClick={onCancel} color="primary">
Cancel
</Button>
<MuiThemeProvider theme={errorTheme}>
<Button
className={classes.button}
onClick={onConfirm}
color="primary"
>
Yes, leave the club
</Button>
</MuiThemeProvider>
</DialogActions>
</Dialog>
);
}
| typescript |
<filename>experimental/federated_plugin/federated_plugin/example/windows/flutter/generated_plugin_registrant.cc<gh_stars>1-10
//
// Generated file. Do not edit.
//
#include "generated_plugin_registrant.h"
#include <federated_plugin_windows/federated_plugin_windows_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
FederatedPluginWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FederatedPluginWindowsPlugin"));
}
| cpp |
{
"generated": [
".gitignore",
".repo-metadata.json",
".rubocop.yml",
".yardopts",
"AUTHENTICATION.md",
"CHANGELOG.md",
"Gemfile",
"LICENSE.md",
"README.md",
"Rakefile",
"gapic_metadata.json",
"google-cloud-cloud_dms-v1.gemspec",
"lib/google-cloud-cloud_dms-v1.rb",
"lib/google/cloud/cloud_dms/v1.rb",
"lib/google/cloud/cloud_dms/v1/data_migration_service.rb",
"lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb",
"lib/google/cloud/cloud_dms/v1/data_migration_service/credentials.rb",
"lib/google/cloud/cloud_dms/v1/data_migration_service/operations.rb",
"lib/google/cloud/cloud_dms/v1/data_migration_service/paths.rb",
"lib/google/cloud/cloud_dms/v1/version.rb",
"lib/google/cloud/clouddms/v1/clouddms_pb.rb",
"lib/google/cloud/clouddms/v1/clouddms_resources_pb.rb",
"lib/google/cloud/clouddms/v1/clouddms_services_pb.rb",
"proto_docs/README.md",
"proto_docs/google/api/field_behavior.rb",
"proto_docs/google/api/resource.rb",
"proto_docs/google/cloud/clouddms/v1/clouddms.rb",
"proto_docs/google/cloud/clouddms/v1/clouddms_resources.rb",
"proto_docs/google/longrunning/operations.rb",
"proto_docs/google/protobuf/any.rb",
"proto_docs/google/protobuf/duration.rb",
"proto_docs/google/protobuf/empty.rb",
"proto_docs/google/protobuf/field_mask.rb",
"proto_docs/google/protobuf/timestamp.rb",
"proto_docs/google/protobuf/wrappers.rb",
"proto_docs/google/rpc/status.rb",
"snippets/Gemfile",
"snippets/data_migration_service/create_connection_profile.rb",
"snippets/data_migration_service/create_migration_job.rb",
"snippets/data_migration_service/delete_connection_profile.rb",
"snippets/data_migration_service/delete_migration_job.rb",
"snippets/data_migration_service/generate_ssh_script.rb",
"snippets/data_migration_service/get_connection_profile.rb",
"snippets/data_migration_service/get_migration_job.rb",
"snippets/data_migration_service/list_connection_profiles.rb",
"snippets/data_migration_service/list_migration_jobs.rb",
"snippets/data_migration_service/promote_migration_job.rb",
"snippets/data_migration_service/restart_migration_job.rb",
"snippets/data_migration_service/resume_migration_job.rb",
"snippets/data_migration_service/start_migration_job.rb",
"snippets/data_migration_service/stop_migration_job.rb",
"snippets/data_migration_service/update_connection_profile.rb",
"snippets/data_migration_service/update_migration_job.rb",
"snippets/data_migration_service/verify_migration_job.rb",
"test/google/cloud/cloud_dms/v1/data_migration_service_operations_test.rb",
"test/google/cloud/cloud_dms/v1/data_migration_service_paths_test.rb",
"test/google/cloud/cloud_dms/v1/data_migration_service_test.rb",
"test/helper.rb"
],
"static": [
".OwlBot.yaml"
]
}
| json |
<reponame>kolyasalubov/Lv-677.PythonCore
# Convert a Number to a String!
# We need a function that can transform a number into a string.
# What ways of achieving this do you know?
def number_to_string(num: int) -> str:
str_num = str(num)
return str_num
print(number_to_string(123))
print(type(number_to_string(123))) | python |
[{"id":87295,"idParent":13285,"namaWilayah":"BALAI BAIAK MALAI III KOTO","tingkatWilayah":4,"idPro":12920,"idKab":13253,"idKec":13285,"idKel":87295,"namaPro":"SUMATERA BARAT","namaKab":"<NAME>","namaKec":"IV KOTO AUR MALINTANG","namaKel":"BALAI BAIAK MALAI III KOTO","kodeWilayah":"13.05.09.2005"},{"id":13286,"idParent":13285,"namaWilayah":"III KOTO AUR MALINTANG","tingkatWilayah":4,"idPro":12920,"idKab":13253,"idKec":13285,"idKel":13286,"namaPro":"SUMATERA BARAT","namaKab":"<NAME>","namaKec":"IV KOTO AUR MALINTANG","namaKel":"III KOTO AUR MALINTANG","kodeWilayah":"13.05.09.2001"},{"id":87294,"idParent":13285,"namaWilayah":"III KOTO AUR MALINTANG SELATAN","tingkatWilayah":4,"idPro":12920,"idKab":13253,"idKec":13285,"idKel":87294,"namaPro":"SUMATERA BARAT","namaKab":"<NAME>","namaKec":"IV KOTO AUR MALINTANG","namaKel":"III KOTO AUR MALINTANG SELATAN","kodeWilayah":"13.05.09.2004"},{"id":87293,"idParent":13285,"namaWilayah":"III KOTO AUR MALINTANG TIMUR","tingkatWilayah":4,"idPro":12920,"idKab":13253,"idKec":13285,"idKel":87293,"namaPro":"<NAME>","namaKab":"<NAME>","namaKec":"<NAME>","namaKel":"III KOTO AUR <NAME>","kodeWilayah":"13.05.09.2003"},{"id":87292,"idParent":13285,"namaWilayah":"III KOTO AUR MALINTANG UTARA","tingkatWilayah":4,"idPro":12920,"idKab":13253,"idKec":13285,"idKel":87292,"namaPro":"<NAME>","namaKab":"<NAME>","namaKec":"<NAME>","namaKel":"III KOTO AUR MALINTANG UTARA","kodeWilayah":"13.05.09.2002"}] | json |
<reponame>mhendricks96/bus-mall<gh_stars>0
body {
background-color: cadetblue;
}
h1 {
font-size: 4em;
text-align: center;
}
h3 {
font-size: 2em;
text-align: center;
}
section {
background-color: aquamarine;
width: max-content;
margin: auto;
}
section img {
width: 300px;
margin: 50px;
}
img:hover {
cursor: pointer;
}
div:hover {
cursor: pointer;
}
#graph-section {
height: 450px;
width: 900px;
margin: auto;
background-color: cadetblue;
} | css |
<reponame>jonasclaes/reviewer
import { ICategory, ICategoryConstructorProperties } from ".";
import { database } from "../database";
export class Category implements ICategory {
public id: number | null = null;
public name: string | null = null;
constructor (props?: ICategoryConstructorProperties) {
if (props) {
this.id = props.id || null;
this.name = props.name || null;
}
}
public static async createTable(): Promise<void> {
await new Promise((resolve, reject) => {
database.getConnection().query("CREATE TABLE `categories` (`id` int(11) NOT NULL, `name` tinytext COLLATE utf8_unicode_ci NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", (err, results, fields) => {
if (err) {
reject(err);
} else {
resolve();
}
});
});
await new Promise((resolve, reject) => {
database.getConnection().query("ALTER TABLE `categories` ADD PRIMARY KEY (`id`)", (err, results, fields) => {
if (err) {
reject(err);
} else {
resolve();
}
});
});
await new Promise((resolve, reject) => {
database.getConnection().query("ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT", (err, results, fields) => {
if (err) {
reject(err);
} else {
resolve();
}
});
});
}
public static findAll(limit: number, offset: number): Promise<Category[]> {
return new Promise((resolve, reject) => {
database.getConnection().query("SELECT * FROM `categories` LIMIT ? OFFSET ?", [limit, offset], (err, results: ICategory[], fields) => {
if (err) {
reject(err);
} else {
const returnArray: Category[] = [];
results.forEach(element => {
returnArray.push(new Category(element));
});
resolve(returnArray);
}
});
});
}
public static findById(id: number): Promise<Category> {
return new Promise((resolve, reject) => {
database.getConnection().query("SELECT * FROM `categories` WHERE id = ?", [id], (err, results: ICategory[], fields) => {
if (err) {
reject(err);
} else {
resolve(new Category(results[0]));
}
});
});
}
public static findByName(name: string): Promise<Category> {
return new Promise((resolve, reject) => {
database.getConnection().query("SELECT * FROM `categories` WHERE name = ?", [name], (err, results: ICategory[], fields) => {
if (err) {
reject(err);
} else {
resolve(new Category(results[0]));
}
});
});
}
public save(): Promise<void> {
if (this.id == null) {
// Insert;
return new Promise((resolve, reject) => {
database.getConnection().query("INSERT INTO `categories` (`id`, `name`) VALUES (NULL, ?)", [this.name], (err, results, fields) => {
err ? reject(err) : resolve();
});
});
} else {
// Update;
return new Promise((resolve, reject) => {
database.getConnection().query("UPDATE `categories` SET `name` = ? WHERE `categories`.`id` = ?", [this.name, this.id], (err, results, fields) => {
err ? reject(err) : resolve();
});
});
}
}
public async delete(): Promise<void> {
if (this.id != null) {
return new Promise((resolve, reject) => {
database.getConnection().query("DELETE FROM `categories` WHERE `categories`.`id` = ?", [this.id], (err, results, fields) => {
err ? reject(err) : resolve();
});
});
}
}
} | typescript |
East Bengal signed Aniket Jadhav in the summer window (2022), as earlier revealed by Khel Now (along with contractual details). As it is, Odisha already have the likes of Jerry Mawihmingthanga and Nandhakumar Sekar, both of whom have been in scintillating form this season. With Jadhav’s addition, the Juggernauts will become more stronger, Khel Now understands.
During his stay at East Bengal, it once happened that Aniket Jadhav was dropped to the reserve team. Even his playing position was changed from that of a preferable left winger to a right winger. Thus, this change might come in as a blessing in disguise for Jadhav, who had mostly traded as a substitute at the Red & Golds.
A member of the Indian squad in the FIFA U-17 World Cup in 2017, Aniket Jadhav is a bright and talented winger. He has been part of the Indian Arrows, Jamshedpur FC and Hyderabad FC in his career. In 2022, he signed for East Bengal after the club were undergoing a complete revamp under new investors.
Currently, he wasn’t receiving enough game-time under Stephen Constantine. However, how much of the same he’ll receive at Odisha is also a question of immense importance.
The Juggernauts are having their best season perhaps, ever since their inception. Compared to the last two seasons, Odisha are in a better place and have delivered well under head coach Josep Gombau. They are currently in the fifth position of the ISL 2022-23 points table and have collected 22 points in 14 games. A table-top finish looks bleak with the way Mumbai City are trading. But nonetheless, the Juggernauts will go all guns blazing to perform their bit.
Khel Now had previously revealed about Odisha FC acquiring the services of Tankadhar Bag. With the addition of a right back and a prolific winger, the Juggernauts have made their intentions clear to the fellow ISL sides.
For more updates, follow Khel Now on Facebook, Twitter, Instagram, Youtube; download the Khel Now Android App or IOS App and join our community on Whatsapp & Telegram.
| english |
Sometimes it's hard to see the big picture when your raw data hasn’t been summarized. Your first instinct may be to create a PivotTable, but not everyone can look at numbers in a table and quickly see what's going on. PivotCharts are a great way to add data visualizations to your data.
Select a cell in your table.
Select Insert > PivotChart .
Select where you want the PivotChart to appear.
Select OK.
Select the fields to display in the menu.
Select a cell in your table.
Select PivotTable Tools > Analyze > PivotChart.
Select a chart.
Select OK.
To create a PivotChart on the Mac, you need to create a PivotTable first, and then insert a chart. Once that is done, the chart will behave like a PivotChart if you change the fields in the PivotTable Fields list.
Create a PivotTable if you don't have one already.
Select any cell within the PivotTable.
On the Insert tab, click a button to insert either a column, line, pie, or radar chart. Please note that other types of charts do not work with PivotTables at this time. For example, treemap charts, statistical charts, and combo charts do not work with PivotTables yet.
After you insert a column, line, pie, or radar chart, you can pivot it by changing or moving fields using the PivotTable Fields list.
You can also filter data in a PivotTable, and use slicers. When you do that, the chart will also be filtered.
To create a PivotChart in Excel for the web, you will first need to create a PivotTable. To do that, see Create a PivotTable to analyze worksheet data.
Select a cell in your PivotTable.
On the Insert tab, select the Insert Chart dropdown menu, and then click any chart option.
The chart will now appear in the worksheet. When you click anywhere in the chart, the Chart tab appears in the ribbon. You can use any of the options in the Chart tab to modify the chart.
Need more help?
You can always ask an expert in the Excel Tech Community or get support in Communities.
| english |
<gh_stars>1-10
version https://git-lfs.github.com/spec/v1
oid sha256:404bce6459590a6195c3010bd243957ec9e2eaa701fc4963c2ef3aa0a487a46c
size 20875
| json |
/*
* This file is open-source. This means that it can be reproduced in whole
* or in part, stored in a retrieval system transmitted in any form, or by
* any means electronic with my prior permission as an author and owner
* Please refer to the terms of the license agreement in the root of the project
*
* (c) 2020 joaodias.me, No Rights Reserved.
*/
export const debounce = (func: any) => {
// This holds the requestAnimationFrame reference, so we can cancel it if we wish
let frame: any;
// The debounce function returns a new function that can receive a variable number of arguments
return (...params: any) => {
// If the frame variable has been defined, clear it now, and queue for next frame
if (frame) {
cancelAnimationFrame(frame);
}
// Queue our function call for the next frame
frame = requestAnimationFrame(() => {
// Call our function and pass any params we received
func(...params);
});
};
};
| typescript |
// Utility functions for testing net2/http2
package test_utils
import (
"net"
"net/http"
"net/http/httptest"
"time"
. "gopkg.in/check.v1"
)
type TestServer struct {
*httptest.Server
CloseChan chan bool
}
// Create a dummy server for unittesting. DO NOT USE IN PRODUCTION.
func SetupTestServer(ssl bool) (*TestServer, string) {
closeChan := make(chan bool, 1)
serveMux := http.NewServeMux()
serveMux.HandleFunc(
"/slow_request",
func(writer http.ResponseWriter, req *http.Request) {
select {
case <-closeChan:
return
case <-time.After(500 * time.Millisecond):
return
}
})
serveMux.HandleFunc(
"/",
func(writer http.ResponseWriter, req *http.Request) {
writer.Write([]byte("ok"))
})
server := httptest.NewUnstartedServer(serveMux)
server.Config.ReadTimeout = 5 * time.Second
server.Config.WriteTimeout = 5 * time.Second
if ssl {
server.StartTLS()
} else {
server.Start()
}
addr := server.Listener.Addr().String()
return &TestServer{server, closeChan}, addr
}
// This returns a random port for unit testing. DO NOT USE IN PRODUCTION.
func RandomListenPort(c *C) int {
sock, err := net.Listen("tcp", "127.0.0.1:0")
c.Assert(err, IsNil)
port := sock.Addr().(*net.TCPAddr).Port
sock.Close()
return port
}
// This checks to ensure a server is running on the specified host port.
// DO NOT USE IN PRODUCTION.
func EnsureListen(c *C, hostport string) {
for i := 0; i < 10; i++ {
conn, err := net.Dial("tcp", hostport)
if err == nil {
conn.Close()
return
}
time.Sleep(time.Duration(50*(i+1)) * time.Millisecond)
}
c.FailNow()
}
| go |
package ca.ualberta.dorsa.seccam.ui.settings;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
/**
* The type Settings view model.
* Executed UI tested yet to be unit tested
* Executed UI tested yet to be unit tested
* @author <NAME> and <NAME>
* @date 2020-1-31
* Project: ECE 492 Group 1
*/
public class SettingsViewModel extends ViewModel {
private MutableLiveData<String> mText;
/**
* Instantiates a new Settings view model.
*/
public SettingsViewModel() {
mText = new MutableLiveData<>();
mText.setValue("This is settings fragment");
}
/**
* Gets text.
*
* @return the text
*/
public LiveData<String> getText() {
return mText;
}
} | java |
<gh_stars>0
---
title: sf.org.numEventsDroppedThrottle
brief: Number of events over per-minute limit
metric_type: counter
---
### sf.org.numEventsDroppedThrottle
Number of custom events you sent to SignalFx but that SignalFx didn't accept, because your organization exceeded its per-minute limit.
Dimension(s): `orgId`
Data Resolution: 1 second
| markdown |
<reponame>zhanhailiu/Market
from django.contrib import admin
from market.models import Category,Goods,UserProfile,Comment
# Register your models here.
admin.site.register(Category)
admin.site.register(Goods)
admin.site.register(UserProfile)
admin.site.register(Comment) | python |
<filename>src/main/java/bikeshop/domain/entities/Component.java
package bikeshop.domain.entities;
import javax.persistence.*;
@Entity
@Table(name = "components")
public class Component extends BaseEntity{
private String type;
private String description;
@Column(nullable = false, updatable = false)
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Column(nullable = false)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
| java |
.main-title{
font-family: 'Press Start 2P', cursive;
font-size: 50px;
color: #F25A70;
text-shadow: 4px 4px 0px #000;
margin-top: 40px;
} | css |
Gunupur/Muniguda: As BJD supremo Naveen Patnaik started his 5th innings as Chief Minister of Odisha, Jagannath Saraka was sworn-in as a minister of state. He took the oath of office and secrecy Wednesday.
Saraka was elected MLA from the Bissam Cuttack Assembly constituency. He is the minister of state for SC/ST development, minorities and backward classes welfare.
This has spread cheer in Bissam Cuttack. Good wishes and greetings from local leaders and party workers are reaching him from every nook and corner of Rayagada district.
Saraka was born in Munda village of Jhigidi panchayat in Bissam Cuttack block in Rayagada district. He completed degree from Rayagada College in 1995. Then he studied Law in Jeypore from 1997 to 2000. In 2002, he started his career as an advocate.
Saraka has worked at the All India Radio’s Jeypore station as coordinator for a tribal language programme.
He joined active politics and contested to the post of a samiti member in 1997. He was elected sarpanch in 2002. Later, he was elected as zilla parishad member in 2007 and as Rayagada zilla parishad chairman.
Saraka contested as an MLA on a BJD ticket in 2009 and was defeated by just 349 votes. In the 2014 Assembly elections he won from Bissam Cuttack Assembly constituency as a BJD candidate defeating Dambarudhar Ulaka of the Congress.
Born in a farming family, he continued studies with much difficulty. He used to help his father in farming. Saraka used to plough his field even when he was the MLA of Bissam Cuttack in 2014. | english |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* The following block of code may be used to automatically register your
* Vue components. It will recursively scan this directory for the Vue
* components and automatically register them with their "basename".
*
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/
const files = require.context('./', true, /\.vue$/i);
files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default));
// toaster
import Snotify from 'vue-snotify';
import 'vue-snotify/styles/simple.css';
Vue.use(Snotify);
// i18n
import VueI18n from 'vue-i18n';
Vue.use(VueI18n);
import messages from '../../public/js/langs/en.json';
export const i18n = new VueI18n({
locale: 'en', // set locale
fallbackLocale: 'en',
messages: { 'en': messages }
});
// Start Turbolinks
require('turbolinks').start();
// Boot the Vue component
document.addEventListener('turbolinks:load', (event) => {
const root = document.getElementById('app');
if (window.vue) {
window.vue.$destroy(true);
}
window.vue = new Vue({
i18n,
render: h => h(
Vue.component(root.dataset.component), {
props: JSON.parse(root.dataset.props)
}
)
}).$mount(root);
});
| javascript |
<reponame>vusec/safeinit<filename>llvm/lib/DebugInfo/CodeView/RecordSerialization.cpp
//===-- RecordSerialization.cpp -------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Utilities for serializing and deserializing CodeView records.
//
//===----------------------------------------------------------------------===//
#include "llvm/DebugInfo/CodeView/RecordSerialization.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/DebugInfo/CodeView/TypeRecord.h"
using namespace llvm;
using namespace llvm::codeview;
using namespace llvm::support;
/// Reinterpret a byte array as an array of characters. Does not interpret as
/// a C string, as StringRef has several helpers (split) that make that easy.
StringRef llvm::codeview::getBytesAsCharacters(ArrayRef<uint8_t> LeafData) {
return StringRef(reinterpret_cast<const char *>(LeafData.data()),
LeafData.size());
}
StringRef llvm::codeview::getBytesAsCString(ArrayRef<uint8_t> LeafData) {
return getBytesAsCharacters(LeafData).split('\0').first;
}
std::error_code llvm::codeview::consume(ArrayRef<uint8_t> &Data, APSInt &Num) {
// Used to avoid overload ambiguity on APInt construtor.
bool FalseVal = false;
if (Data.size() < 2)
return std::make_error_code(std::errc::illegal_byte_sequence);
uint16_t Short = *reinterpret_cast<const ulittle16_t *>(Data.data());
Data = Data.drop_front(2);
if (Short < LF_NUMERIC) {
Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false),
/*isUnsigned=*/true);
return std::error_code();
}
switch (Short) {
case LF_CHAR:
Num = APSInt(APInt(/*numBits=*/8,
*reinterpret_cast<const int8_t *>(Data.data()),
/*isSigned=*/true),
/*isUnsigned=*/false);
Data = Data.drop_front(1);
return std::error_code();
case LF_SHORT:
Num = APSInt(APInt(/*numBits=*/16,
*reinterpret_cast<const little16_t *>(Data.data()),
/*isSigned=*/true),
/*isUnsigned=*/false);
Data = Data.drop_front(2);
return std::error_code();
case LF_USHORT:
Num = APSInt(APInt(/*numBits=*/16,
*reinterpret_cast<const ulittle16_t *>(Data.data()),
/*isSigned=*/false),
/*isUnsigned=*/true);
Data = Data.drop_front(2);
return std::error_code();
case LF_LONG:
Num = APSInt(APInt(/*numBits=*/32,
*reinterpret_cast<const little32_t *>(Data.data()),
/*isSigned=*/true),
/*isUnsigned=*/false);
Data = Data.drop_front(4);
return std::error_code();
case LF_ULONG:
Num = APSInt(APInt(/*numBits=*/32,
*reinterpret_cast<const ulittle32_t *>(Data.data()),
/*isSigned=*/FalseVal),
/*isUnsigned=*/true);
Data = Data.drop_front(4);
return std::error_code();
case LF_QUADWORD:
Num = APSInt(APInt(/*numBits=*/64,
*reinterpret_cast<const little64_t *>(Data.data()),
/*isSigned=*/true),
/*isUnsigned=*/false);
Data = Data.drop_front(8);
return std::error_code();
case LF_UQUADWORD:
Num = APSInt(APInt(/*numBits=*/64,
*reinterpret_cast<const ulittle64_t *>(Data.data()),
/*isSigned=*/false),
/*isUnsigned=*/true);
Data = Data.drop_front(8);
return std::error_code();
}
return std::make_error_code(std::errc::illegal_byte_sequence);
}
std::error_code llvm::codeview::consume(StringRef &Data, APSInt &Num) {
ArrayRef<uint8_t> Bytes(Data.bytes_begin(), Data.bytes_end());
auto EC = consume(Bytes, Num);
Data = StringRef(reinterpret_cast<const char *>(Bytes.data()), Bytes.size());
return EC;
}
/// Decode a numeric leaf value that is known to be a uint64_t.
std::error_code llvm::codeview::consume_numeric(ArrayRef<uint8_t> &Data,
uint64_t &Num) {
APSInt N;
if (auto EC = consume(Data, N))
return EC;
if (N.isSigned() || !N.isIntN(64))
return std::make_error_code(std::errc::illegal_byte_sequence);
Num = N.getLimitedValue();
return std::error_code();
}
std::error_code llvm::codeview::consume(ArrayRef<uint8_t> &Data,
uint32_t &Item) {
const support::ulittle32_t *IntPtr;
if (auto EC = consumeObject(Data, IntPtr))
return EC;
Item = *IntPtr;
return std::error_code();
}
std::error_code llvm::codeview::consume(StringRef &Data, uint32_t &Item) {
ArrayRef<uint8_t> Bytes(Data.bytes_begin(), Data.bytes_end());
auto EC = consume(Bytes, Item);
Data = StringRef(reinterpret_cast<const char *>(Bytes.data()), Bytes.size());
return EC;
}
std::error_code llvm::codeview::consume(ArrayRef<uint8_t> &Data,
int32_t &Item) {
const support::little32_t *IntPtr;
if (auto EC = consumeObject(Data, IntPtr))
return EC;
Item = *IntPtr;
return std::error_code();
}
std::error_code llvm::codeview::consume(ArrayRef<uint8_t> &Data,
StringRef &Item) {
if (Data.empty())
return std::make_error_code(std::errc::illegal_byte_sequence);
StringRef Rest;
std::tie(Item, Rest) = getBytesAsCharacters(Data).split('\0');
// We expect this to be null terminated. If it was not, it is an error.
if (Data.size() == Item.size())
return std::make_error_code(std::errc::illegal_byte_sequence);
Data = ArrayRef<uint8_t>(Rest.bytes_begin(), Rest.bytes_end());
return std::error_code();
}
| cpp |
When the conditions suit Trent Boult he can be devastating, scything through top-orders.
Trent Boult can move the new ball. That bit, everyone is aware of. When the conditions suit him he can be devastating, scything through top-orders. Tim Southee, his partner-in-crime, was not present for New Zealand in their first Test of the ongoing series against India at Kanpur. Boult bowled a full-toss and an over-pitched delivery in his first over. KL Rahul dismissed him with disdain for two boundaries. Boult unleashed one of his trademark incoming deliveries in his second over, beating Rahul. He nearly undid Rahul with a lifter in his fourth over. Rahul retaliated with boundaries off the next two balls.
Kane Williamson took Boult off after that over. His figures read nought for 17 in 4 overs. He had bowled two beautiful deliveries, but Rahul had won the battle. Rahul was gone by the time Boult came back after lunch. By then the ball had gone old, and Murali Vijay and Cheteshwar Pujara were looking invincible. The innocuous spin trio of Mitchell Santner, Mark Craig, and Ish Sodhi was having little effect on the pair, who looked more and more solid as time passed.
Boult seemed ineffective. That bite was simply not there. He might have got Vijay when he slashed and edged, but that would hardly have a wicket Boult would have earned. There was a delectable late cut for four.
BJ Watling came up. Boult, not in the best of moods, bowled a bouncer. Four byes. Boult was not happy. Neither was Williamson.
Boult was back again thirty overs later. The ball was older. It hardly reversed. Ravichandran Ashwin casually steered him past third-man. A burst of three overs was what Boult got.
The second new ball, he must have thought; that, indeed, was what Boult was in the side for: pitch up the new ball, get it moving, find the edge, beatt the bat, hit the pads, hit timber, make batsmen jump around, make things happen.
Trent Boult was no ordinary new-ball bowler. He had proved himself in favourable conditions, but in conditions that offered little to swing bowlers, he had to show he was up with the best in business.
New Zealand were in with three spinners. There was no Southee. He was the spearhead. His job was to get wickets for his captain, for New Zealand.
This was his moment. The second new ball was his zone. He had run around chasing leather across Green Park through the day. His 12 fruitless overs had gone for 37. It was time to give it back to the Indians, to create a match out of nowhere.
The first over with the new ball went to Santner. Boult came on from the other end. The first five balls looked harmless. The sixth hurried on to Ashwin before he brought the bat down at the last moment.
Santner took out Rohit Sharma at the other end, but Ashwin was looking the more confident of the two. Boult pitched one outside off. Ashwin went for it. The inside-edge hit his pad.
Three balls and a single later, Boult found himself bowling to the in-form Wriddhiman Saha, a man gifted with an excellent technique for someone who does not bat in the top six.
The first ball to Saha was in the zone. Saha, still new to the crease, was sucked into it and was beaten.
Did the next ball pitch on off? It was perhaps a shade inside. Let us call it off-and-middle. The length was immaculate. The ball swung in viciously, taking Saha by surprise, making its way through the gate.
A cartwheeling stump would have been too crude a conclusion to something of that finesse. The ball simply dislodged the leg bail.
The next ball took the edge of Ravindra Jadeja and flew past point. The over had yielded a single wicket, but Boult had managed to rattle India in less than five minutes.
The fielders stood back for Ashwin in the next over. A bouncer was coming up. There was no doubt about that.
It came. It was too quick for Ashwin. The ball brushed his glove and ran to the fine-leg fence.
Of course Boult would pitch the next one up. Sizing up the batsman up with a short ball and following it with a pitched-up one was one of the oldest tricks in the ball.
He did pitch it up. The bouncer had been quicker than Ashwin had expected. This, too, was a surprise, for Boult had bowled it with cross-seam. The ball came tantalisingly close to Ashwin. He was forced to play — and edge to gully.
The 88th over. It would be Boult. He would get two more in the day. Batting has never been the strongest suit of Mohammed Shami, but he still had to be put out of the way.
Boult decided to give Shami the Saha treatment: pitch on off, swing in, whoosh in through the gate, and almost magically — kiss the off bail.
Boult has bowled better spells in his career, perhaps never more when the radar was on him during ICC World Cup 2015. But this burst of 1. 3-0-5-3 will be up there with one of its best, for it came when the pitch offered him nothing, when the batsmen were taking the Test away, when his captain opted for spinners, when his partner-in-crime was ruled out.
It was supposed to be India’s day, for it is their 500th Test, an occasion that saw a galaxy of former captains rarely seen together. India were on top for most of the day. India should have finished the day on top, at 300 for 5 or thereabouts. Instead, they are 291 for 9 as New Zealand gate-crashed their party.
After remaining near-invisible throughout the day Boult came back to light up Green Park to ruin India’s momentous occasion.
(Abhishek Mukherjee is the Chief Editor at CricketCountry and CricLife. He blogs here and can be followed on Twitter here. ) | english |
Rajasthan Royals have maintained their lead at the top of the standings.
New Delhi: Mumbai Indians inched closer towards elimination after setting themselves up for their first win, only to slump to their fifth defeat on trot as Punjab Kings won a high-scoring IPL thriller by 12 runs here on Wednesday.
A target of 199 looked imminently chaseable when teenagers Dewald Brevis (49 off 25 balls) and NT Tilak Varma (36 off 20 balls) were at the crease but Punjab bowlers did well enough to restrict MI to 186 for nine at the end of 20 overs.
Odean Smith (4/30 in 4 overs) redeemed himself after the horror last two balls against Gujarat Titans as he got two wickets in the final over for Punjab. For Mumbai, eight wins in nine games with this kind of bowling attack looks near impossible. The Baby AB’s transformation from boy to a man happened with that 29-run over which showed that MI had made a 10-year investment. He was finally out one short of his maiden IPL fifty but not before leaving everyone yearning for more.
Rajasthan Royals have maintained their lead at the top of the standings.
Jos Buttler has maintained his lead as the holder of the orange cap. His score of 100 (68) against Mumbai Indians is till now the highest of the ongoing season and the only century-knock so far. He has scored a total of 218 runs in 4 matches. Shivam Dube is in second position with 207 runs in 5 matches. Shikhar Dhawan occupies the third position with a total of 197 runs in 5 matches.
Yuzvendra Chahal like his Rajasthan Royals teammate has maintained his lead in the purple cap rankings with 11 wickets in 4 matches to his name. Umesh Yadav in second position has picked up 10 wickets in 5 matches. Kuldeep Yadav jumps to third position with 10 wickets in 4 matches. | english |
<reponame>arnonmoscona/jira-integration-plugin-fork
package com.intellij.jira.ui.dialog;
import com.intellij.jira.tasks.DeleteCommentTask;
import com.intellij.jira.tasks.DeleteIssueAttachmentTask;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
import com.intellij.ui.components.JBLabel;
import com.intellij.util.ui.FormBuilder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import static java.util.Objects.nonNull;
public class DeleteIssueAttachmentDialog extends DialogWrapper {
private Project project;
private String issueKey;
private String attachmentId;
public DeleteIssueAttachmentDialog(@NotNull Project project, String issueKey, String attachmentId) {
super(project, false);
this.project = project;
this.issueKey = issueKey;
this.attachmentId = attachmentId;
setTitle(String.format("Delete Attachment in %s", issueKey));
init();
}
@Nullable
@Override
protected JComponent createCenterPanel() {
return FormBuilder.createFormBuilder()
.addComponent(new JBLabel("You are going to delete this attachment. This cannot be undone."))
.getPanel();
}
@Override
protected void doOKAction() {
if(nonNull(project)){
new DeleteIssueAttachmentTask(project, issueKey, attachmentId).queue();
}
close(0);
}
}
| java |
<filename>19/Schriftliche Frage/19-254016.json
{
"vorgangId": "254016",
"VORGANG": {
"WAHLPERIODE": "19",
"VORGANGSTYP": "Schriftliche Frage",
"TITEL": "Verdachtsmeldungen auf Geldwäsche bzw. Terrorismusfinanzierung bei der Financial Intelligence Unit",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": {
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "19/13725",
"DRS_TYP": "Schriftliche Fragen",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/19/137/1913725.pdf"
},
"EU_DOK_NR": "",
"SCHLAGWORT": [
"Financial Intelligence Unit Deutschland",
"Finanzierung",
{
"_fundstelle": "true",
"__cdata": "Geldwäsche"
},
"Strafverfolgung",
{
"_fundstelle": "true",
"__cdata": "Terrorismus"
}
],
"ABSTRAKT": "Originaltext der Frage(n): \r\n \r\nWie verhält sich nach Kenntnis des Bundesministeriums der Finanzen (BMF) die Anzahl der seit Juni 2019 jeweils pro Monat bei der Financial Intelligence Unit (FIU) eingegangenen Verdachtsmeldungen auf Geldwäsche bzw. Terrorismusfinanzierung zu der Anzahl von Meldungen, die seitdem jeweils zum Monatsende an Strafverfolgungsbehörden weitergeleitet wurden, ins sogenannte Monitoring verschoben wurden oder bei der FIU in Bearbeitung waren (bitte tabellarisch darstellen und dabei (vorläufige) Angaben aus dem Monat September 2019 integrieren), und wie wird vor diesem Hintergrund den Hinweisen auf Straftaten, die sich aus dem im Monitoring der FIU geführten Meldungen für die Strafverfolgungsbehörden ergeben könnten, und die nicht mit Geldwäsche bzw. Terrorfinanzierung wohl aber mit anderen Delikten in Bezug stehen, umgegangen?"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": {
"ZUORDNUNG": "BT",
"URHEBER": "Schriftliche Frage/Schriftliche Antwort ",
"FUNDSTELLE": "04.10.2019 - BT-Drucksache 19/13725, Nr. 5",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/19/137/1913725.pdf",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Markus",
"NACHNAME": "Herbrand",
"FUNKTION": "MdB",
"FRAKTION": "FDP",
"AKTIVITAETSART": "Frage"
},
{
"VORNAME": "Sarah",
"NACHNAME": "Ryglewski",
"FUNKTION": "Parl. Staatssekr.",
"RESSORT": "Bundesministerium der Finanzen",
"AKTIVITAETSART": "Antwort"
}
]
}
}
}
| json |
/*
* Copyright (c) 2020 DLR Institute of Transport Research
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package de.dlr.ivf.tapas.util.parameters;
/**
* These enum constants provide factors to convert values between different
* currencies.
*
* @author mark_ma
*/
public enum CURRENCY {
/**
* German currency until 2002: German Mark (Deutsche Mark)
*/
DM(1),
/**
* European currency: EURO
*/
EUR(1.95583);
/**
* Factor to convert between currencies
*/
private final double factor;
/**
* Constructor sets the factor
*
* @param factor
*/
CURRENCY(double factor) {
this.factor = factor;
}
/**
* This method converts the given value in the given currency into the
* currency of this constant
*
* @param value value to convert
* @param currentCurrency the current currency the value is expressed in
* @return converted value into the currency of this constant
*/
public double convert(double value, CURRENCY currentCurrency) {
return value / currentCurrency.factor * this.factor;
}
} | java |
<reponame>christopherwj/a_code_a_day<filename>c++/generic_code/Linked_list/doc/html/class_node.js
var class_node =
[
[ "Node", "class_node.html#a8d9cf8575744ca8c0f236a0a82eda096", null ],
[ "data", "class_node.html#a87c003c9f600e3fc58e6e90835f0b605", null ],
[ "next", "class_node.html#a2559a716f69ccaa76d648d9f1b83065e", null ]
]; | javascript |
from add_score_compute import add_score_compute
from Team import Team
from Member import Member
if __name__ == '__main__':
us_smile = Team("µ's smile", [
Member('UR_Honoka', 5540, 4, 0, 'Grade'),
Member('SSR_Honoka', 5860, 3, add_score_compute('note', 24, 0.31, 435), 'Grade'),
Member('UR_Rin', 6330, 4, add_score_compute('perfect', 25, 0.33, 700), 'Grade'),
Member('SSR_Rin', 5920, 3, 0, 'Unit'),
Member('UR_Maki', 5410, 4, add_score_compute('perfect', 28, 0.42, 1610), 'Team'),
Member('SR_Maki', 5450, 2, add_score_compute('note', 13, 0.24, 285)),
Member('UR_Eli', 6300, 4, 0, 'Team'),
Member('SSR_Nozomi', 5850, 3, add_score_compute('combo', 18, 0.28, 545), 'Unit'),
Member('SSR_Kotori', 5840, 3, add_score_compute('perfect', 24, 0.38, 515), 'Unit')
])
us_pure = Team("µ's pure", [
Member('SSR_Umi', 5840, 5, add_score_compute('note', 23, 0.34, 455), 'Grade'),
Member('SSR_Eli', 5880, 5, 0, 'Grade'),
Member('UR_Eli', 5480, 4, add_score_compute('second', 13, 0.35, 600)),
Member('SSR_Nozomi', 5920, 3, 0, 'Grade'),
Member('UR_Nozomi', 5530, 4, 0, 'Grade'),
Member('UR_Maki', 6340, 4, 0),
Member('UR_Maki', 5510, 4, add_score_compute('perfect', 15, 0.4, 930), 'Team'),
Member('SSR_Maki', 5850, 4, add_score_compute('combo', 19, 0.33, 490), 'Unit'),
Member('SSR_Nico', 5860, 3, add_score_compute('note', 25, 0.35, 480), 'Grade')
])
us_cool = Team("µ's cool", [
Member('SSR_Umi', 5920, 3, 0, 'Team'),
Member('UR_Umi', 5550, 4, 0, 'Unit'),
Member('UR_Hanayo', 6340, 5, 0, 'Unit'),
Member('SSR_Hanayo', 5890, 3, 0, 'Unit'),
Member('SSR_Nico', 5920, 6, 0, 'Grade'),
Member('UR_Nico', 6240, 5, add_score_compute('combo', 18, 0.39, 1170), 'Team'),
Member('SSR_Maki', 5890, 5, 0, 'Grade'),
Member('SSR_Rin', 5840, 3, add_score_compute('perfect', 26, 0.42, 505), 'Grade'),
Member('UR_Rin', 6280, 4, 0),
])
aqours_smile = Team("Aqours smile", [
Member('SSR_Riko', 5850, 4, add_score_compute('perfect', 21, 0.39, 620), 'Grade'),
Member('SSR_Riko', 5890, 3, 0, 'Unit'),
Member('SSR_Ruby', 5840, 5, add_score_compute('perfect', 19, 0.4, 730), 'Unit'),
Member('UR_Mari', 6340, 4, 0, 'Team'),
Member('UR_Mari', 6370, 4, 0, 'Unit'),
Member('SSR_You', 5880, 3, 0, 'Unit'),
Member('SSR_You', 5840, 3, add_score_compute('combo', 26, 0.45, 670), 'Grade'),
Member('SSR_You', 5840, 3, add_score_compute('combo', 26, 0.45, 670), 'Grade'),
Member('SSR_Yoshiko', 5840, 5, add_score_compute('perfect', 25, 0.39, 745), 'Grade'),
])
aqours_pure = Team("Aqours pure", [
Member('SSR_Mari', 5840, 3, add_score_compute('perfect', 21, 0.33, 520), 'Grade'),
Member('SSR_Ruby', 5890, 5, 0, 'Grade'),
Member('SSR_Ruby', 5850, 3, add_score_compute('combo', 22, 0.37, 505), 'Unit'),
Member('SSR_Ruby', 5850, 5, add_score_compute('combo', 22, 0.41, 630), 'Unit'),
Member('UR_Ruby', 6320, 4, add_score_compute('note', 26, 0.46, 1330), 'Team'),
Member('SSR_You', 5850, 3, add_score_compute('note', 27, .36, 505), 'Unit'),
Member('SSR_You', 5920, 3, 0, 'Unit'),
Member('SSR_Riko', 5920, 3, 0, 'Grade'),
Member('SSR_Riko', 5920, 3, 0, 'Grade')
])
aqours_cool = Team("Aqours cool", [
Member('UR_Mari', 5520, 4, add_score_compute('note', 25, 0.36, 640), 'Unit'),
Member('SSR_Mari', 5850, 3, add_score_compute('combo', 25, 0.41, 520), 'Unit'),
Member('SR_Dia', 5480, 3),
Member('SSR_Dia', 5890, 3, 0, 'Team'),
Member('UR_Hanamaru', 6350, 4, 0, 'Grade'),
Member('SSR_Hanamaru', 5840, 3, 0, 'Unit'),
Member('UR_Yoshiko', 6350, 4, add_score_compute('combo', 21, 0.4, 1225), 'Unit'),
Member('SSR_Yoshiko', 5920, 3, 0, 'Unit'),
Member('SSR_Riko', 5840, 3, add_score_compute('note', 22, 0.32, 410), 'Grade')
])
print(us_smile)
print(us_pure)
print(us_cool)
print(aqours_smile)
print(aqours_pure)
print(aqours_cool) | python |
4 Where were you when I established(A) the earth?
Tell Me, if you have[a] understanding.
5 Who fixed its dimensions? Certainly you know!
Who stretched a measuring line across it?
6 What supports its foundations?
and all the sons of God(B) shouted for joy?
or marked off the heavens with the span of his hand?(A)
and the hills in the scales?
Holman Christian Standard Bible (HCSB)
Copyright © 1999, 2000, 2002, 2003, 2009 by Holman Bible Publishers, Nashville Tennessee. All rights reserved.
| english |
Prime Minister Narendra Modi will interact with students, parents and teachers during his annual 'Pariksha Pe Charcha' on January 27, the Ministry of Education announced on Tuesday.
The sixth edition of the interaction will be held at the Talkatora Indoor stadium in New Delhi, it said.
"The wait is over! #PPC2023 is going to be held on 27th January 2023 at Talkatora Indoor Stadium, New Delhi. Hon'ble PM Shri @narendramodi will interact with students, parents, and teachers. Stay Tuned! #ExamWarriors," the ministry said in a tweet.
Pariksha Pe Charcha is an annual event where PM Modi interacts with students appearing for the forthcoming board examination. During the event, he also answers students' queries related to exam stress and other issues.
The first edition of the prime minister's interactive programme with school and college students was held at the stadium on February 16, 2018.
"Pariksha Pe Charcha is part of the larger movement - 'Exam Warriors' - led by Prime Minister Narendra Modi, to create a stress-free atmosphere for youngsters. It is a movement that is driven by the PM to bring together students, parents, teachers and the society to foster an environment where the unique individuality of each child is celebrated, encouraged and allowed to express itself fully," the ministry said in a brief.
The registrations for participation in the annual event were open from November 25 to December 30.
According to the ministry officials, about 2,050 students, teachers and parents selected through competitions on MyGov, will be gifted PPC kits.
"Know your freedom fighters", "Our culture is our pride", "My book my inspiration", "Save environment for future generations", "My life my health", and "My start up dream" are among the themes on which students are required to make their submissions for the contest.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed. ) | english |
Xavi's Barcelona managed to pull out a rabbit from the hat as they walked out from the Santiago Bernabeu with a goal advantage into the second leg of Copa Del Rey. A mix-up in the 25th minute of the game was enough to decide the fate of the game.
Barcelona launched a lethal counterattack as a misplaced pass in the midfield allowed the young Spanish attacker Ferran Torres to slip the ball in Franck Kessie's path whose shot was initially saved but a deflection from Militao changed the course of the ball as it rolled in the back of the net.
Real Madrid initially thought that they had taken the lead in the 12th minute of the game. Madrid stole the possession in Barcelona's half and their forwards sprinted inside the visitors' box. Vinicius Junior produced a delightful cross to find Benzema who found the bottom corner of the net with ease. However, all their efforts came to nothing as Benzema was marginally wandering in the offside area.
The hosts had a fair share of opportunities to level the score in the first half. However, each moment was dealt with agitation rather than composure. Dani Carvajal's 41st-minute miss summed up Los Blancos entire first-half story. Toni Kroos executed a cross over the head of the entire Barcelona defensive line-up to find the veteran Spanish right-back. The 31-year-old defender snapped when the opportunity came to him and ended up blasting the ball into the stands from a distance of 10 yards.
The second half showcased a similar story. Real Madrid continued to dominate the possession while the visitors waited for an opening to strike the final nail in the coffin. Their patience was finally rewarded in the 72nd minute as Ferran Torres sprinted to the byline and made a cutback pass to find Kessie. With acres of space in the box, Kessie chose his spot, and fired a shot, only to be denied by his own player Ansu Fati rather than Thibaut Courtois.
As the game approached the final minutes Rodrygo tried to replicate Vinicus's goal in the UCL against Liverpool. However, his effort went wide past the goal. The hosts had a final chance to salvage something out of the game as they got a corner in the final seconds of the injury time. In order to redeem himself Militao went for the spectacular overhead kick from 12 yards out, only to see his effort go wide.
Barcelona's manager Xavi had a mixed reaction to this game's result. In the post-match conference, he said that: "I am satisfied with the result, but not with our match. We can't let our rival take the ball away from us. We have an advantage for the second leg, but we still have to compete very well. I think Real Madrid are very strong, and I still see them as the favourites. "
On the other hand, Real Madrid's manager Carlo Ancelotti gave his verdict on the game. In the post-match press conference, he said, "We played well, we took Barca to a place they didn't want to go, but we weren't decisive in the final third. The defeat hurts. But if we do the same again in the second game, we have the chance to go through. "
Barcelona will host Real Madrid at Camp Nou in the second leg of Copa Del Rey on 6th April.
( With inputs from ANI ) | english |
<meta http-equiv="REFRESH" content="10;url=http://wiki.services.openoffice.org/wiki/Documentation/FAQ">
<h3>This page is outdated. You will be redirected to <a href="http://wiki.services.openoffice.org/wiki/Documentation/FAQ">http://wiki.services.openoffice.org
/wiki/Documentation/FAQ</a> shortly.</h3>
<div style="margin-bottom: 10em;"></div>
<p><a href="../../index.html">Documentation</a> / <a
href="../index.html">User FAQ</a> / <a href="index.html">Calc</a> / <a
href="017.html" accesskey="p">Previous</a>-<a href="019.html"
accesskey="n">Next</a></p>
<h3>How can I rename a sheet?</h3>
<ol>
<li>Select the sheet to be renamed. </li>
<li>While still positioned over the sheet tab, click the right mouse
button to access the context menu, then choose <b>Rename Sheet...</b>.</li>
<li>Enter the new name.</li>
<li>Click <b>OK</b>.</li>
</ol>
<p><a href="../../index.html">Documentation</a> / <a
href="../index.html">User FAQ</a> / <a href="index.html">Calc</a> / <a
href="017.html" accesskey="p">Previous</a>-<a href="019.html"
accesskey="n">Next</a></p>
| html |
// Code generated by copypasta/template/leetcode/generator_test.go
package main
import (
"github.com/EndlessCheng/codeforces-go/leetcode/testutil"
"testing"
)
func Test(t *testing.T) {
t.Log("Current test is [c]")
examples := [][3]string{
{
`["UndergroundSystem","checkIn","checkIn","checkIn","checkOut","checkOut","checkOut","getAverageTime","getAverageTime","checkIn","getAverageTime","checkOut","getAverageTime"]`,
`[[],[45,"Leyton",3],[32,"Paradise",8],[27,"Leyton",10],[45,"Waterloo",15],[27,"Waterloo",20],[32,"Cambridge",22],["Paradise","Cambridge"],["Leyton","Waterloo"],[10,"Leyton",24],["Leyton","Waterloo"],[10,"Waterloo",38],["Leyton","Waterloo"]]`,
`[null,null,null,null,null,null,null,14,11,null,11,null,12]`,
},
}
targetCaseNum := 0
if err := testutil.RunLeetCodeClassWithExamples(t, Constructor, examples, targetCaseNum); err != nil {
t.Fatal(err)
}
}
// https://leetcode-cn.com/contest/weekly-contest-182/problems/design-underground-system/
| go |
<reponame>kmilohnk/Nest-HighSecurity<gh_stars>0
import { ApiProperty } from "@nestjs/swagger";
import { IsEnum, IsNumber, IsString } from "class-validator";
import { reportType } from "../../../common/enums/report-types.enum";
import { EnumToString } from "../../../common/helpers/enumToString";
export class CreateReportDTO {
@IsEnum(reportType,{
message: `must be a valid role value, ${ EnumToString(reportType) }`
})
@ApiProperty()
readonly type: reportType; // seguerencia que sea un enum con los tipos de repostes que hay (bomberos, carabineros, ambulancia, oficina1 y oficina2)
@IsNumber() @ApiProperty()
readonly clientId: number;
@IsNumber() @ApiProperty()
readonly shiftId: number;
}
export class ReportDTO {
readonly type: reportType; // seguerencia que sea un enum con los tipos de repostes que hay (bomberos, carabineros, ambulancia, oficina1 y oficina2)
readonly time: string;
readonly guardId: number;
}
| typescript |
import { Feed } from 'feed'
import BLOG from '@/blog.config'
import ReactDOMServer from 'react-dom/server'
import { getPostBlocks } from './notion'
import NotionPage from '@/components/NotionPage'
const createFeedContent = async post => {
// 加密的文章内容只返回摘要
if (post.password && post.password !== '') {
return post.summary
}
const blockMap = await getPostBlocks(post.id, 'rss-content')
if (blockMap) {
post.blockMap = blockMap
const content = ReactDOMServer.renderToString(<NotionPage post={post} />)
const regexExp =
/<div class="notion-collection-row"><div class="notion-collection-row-body"><div class="notion-collection-row-property"><div class="notion-collection-column-title"><svg.*?class="notion-collection-column-title-icon">.*?<\/svg><div class="notion-collection-column-title-body">.*?<\/div><\/div><div class="notion-collection-row-value">.*?<\/div><\/div><\/div><\/div>/g
return content.replace(regexExp, '')
}
}
export async function generateRss(posts) {
const year = new Date().getFullYear()
const feed = new Feed({
title: BLOG.TITLE,
description: BLOG.DESCRIPTION,
link: `${BLOG.LINK}/${BLOG.SUB_PATH}`,
language: BLOG.LANG,
favicon: `${BLOG.LINK}/favicon.png`,
copyright: `All rights reserved ${year}, ${BLOG.AUTHOR}`,
author: {
name: BLOG.AUTHOR,
email: BLOG.CONTACT_EMAIL,
link: BLOG.LINK
}
})
for (const post of posts) {
feed.addItem({
title: post.title,
guid: `${post.id}`,
link: `${BLOG.LINK}/article/${post.slug}`,
description: post.summary,
content: await createFeedContent(post),
date: new Date(post?.date?.start_date || post?.createdTime)
})
}
return feed.atom1()
}
| javascript |
import { Component, HostBinding, ChangeDetectionStrategy } from '@angular/core';
@Component({
selector: 'exp-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class LoginComponent {
@HostBinding('class') class = 'login-view';
}
| typescript |
<gh_stars>0
{"name":"Modeling Methods","children":[{"name":"Classification","children":[{"name":"Logistic regression"},{"name":"Linear discriminant analysis"},{"name":"Rules"},{"name":"Decision trees"},{"name":"Naive Bayes"},{"name":"K nearest neighbor"},{"name":"Probabilistic neural network"},{"name":"Support vector machine"}]},{"name":"Consensus","children":[{"name":"Models diversity","children":[{"name":"Different initializations"},{"name":"Different parameter choices"},{"name":"Different architectures"},{"name":"Different modeling methods"},{"name":"Different training sets"},{"name":"Different feature sets"}]},{"name":"Methods","children":[{"name":"Classifier selection"},{"name":"Classifier fusion"}]},{"name":"Common","children":[{"name":"Bagging"},{"name":"Boosting"},{"name":"AdaBoost"}]}]},{"name":"Regression","children":[{"name":"Multiple linear regression"},{"name":"Partial least squares"},{"name":"Multi-layer feedforward neural network"},{"name":"General regression neural network"},{"name":"Support vector regression"}]}]} | json |
use crate::lang::command::Command;
use crate::lang::command::OutputType::Known;
use crate::lang::errors::{mandate, CrushResult};
use crate::lang::execution_context::This;
use crate::lang::value::ValueType;
use crate::lang::{execution_context::CommandContext, value::Value};
use lazy_static::lazy_static;
use ordered_map::OrderedMap;
use signature::signature;
lazy_static! {
pub static ref METHODS: OrderedMap<String, Command> = {
let mut res: OrderedMap<String, Command> = OrderedMap::new();
let path = vec!["global", "types", "binary"];
Len::declare_method(&mut res, &path);
GetItem::declare_method(&mut res, &path);
res
};
}
#[signature(
len,
can_block = false,
output = Known(ValueType::Integer),
short = "The number of bytes in the binary.",
)]
struct Len {}
fn len(context: CommandContext) -> CrushResult<()> {
let val = context.this.binary()?;
context.output.send(Value::Integer(val.len() as i128))
}
#[signature(
__getitem__,
can_block = false,
output = Known(ValueType::Integer),
short = "Returns the byte at the specified offset.",
example = "(bin:from Cargo.toml)[4]"
)]
struct GetItem {
index: usize,
}
fn __getitem__(context: CommandContext) -> CrushResult<()> {
let cfg: GetItem = GetItem::parse(context.arguments, &context.global_state.printer())?;
let val = context.this.binary()?;
context.output.send(Value::Integer(
*mandate(val.get(cfg.index), "Index out of bounds")? as i128,
))
}
| rust |
<reponame>tambaslamin/covid-19-chs
/**
* @file
* Visual styles for COVID-19-CHS's promoted items views.
*/
.view-promoted-items .views-row {
margin: 30px 0;
}
.view-benefits-grid .views-row {
margin: 15px 0 0;
}
.view-promoted-items-block .views-row {
margin: 0 0 30px 0;
}
.headings-wide-spacing-enabled .view-promoted-items .views-field-title h5 {
letter-spacing: 0.3em;
text-transform: uppercase;
}
.view-promoted-items .views-field-title h5 a:hover {
text-decoration: none;
}
.region--light-typography .view-promoted-items .views-field-title h5 a,
.region--light-typography .view-promoted-items .views-field-title h5 a:hover {
color: #ffffff;
text-decoration: none;
}
.region--light-typography .view-promoted-items .views-field-body {
color: rgba(255, 255, 255, 0.3);
}
.view-promoted-items .views-field-field-chs-price {
font-size: 18px;
margin: 0px 0 10px 0;
font-weight: 700;
}
.region--light-typography .view-promoted-items .views-field-field-chs-price {
color: #ffffff;
}
.view-promoted-items .views-field-link {
margin-top: 20px;
}
.view-promoted-items .views-field-link a.chs-button {
padding-left: 50px;
padding-right: 50px;
}
.view-promoted-items-info {
position: absolute;
bottom: 8px;
right: 5px;
z-index: 11;
}
.view-promoted-items .views-field-created {
font-size: 14px;
margin-top: 5px;
}
.view-promoted-items .views-field-field-chs-prd-body,
.view-promoted-items .views-field-field-chs-alb-body {
padding-bottom: 15px;
}
.view-promoted-items .views-field-field-chs-prd-body p:last-child,
.view-promoted-items .views-field-field-chs-alb-body p:last-child {
padding-bottom: 0;
}
/* overlay */
.view-promoted-items .views-row > .overlay-container {
position: absolute;
display: block;
overflow: hidden;
top: -15px;
left: 0px;
right: 0px;
bottom: 0px;
}
| css |
<gh_stars>0
from datetime import datetime, time, timedelta
from PyShift.test.base_test import BaseTest
from PyShift.workschedule.work_schedule import WorkSchedule
class TestSnapSchedule(BaseTest):
def testLowNight(self):
description = "Low night demand"
self.workSchedule = WorkSchedule("Low Night Demand Plan", description)
# 3 shifts
day = self.workSchedule.createShift("Day", "Day shift", time(7, 0, 0), timedelta(hours=8))
swing = self.workSchedule.createShift("Swing", "Swing shift", time(15, 0, 0), timedelta(hours=8))
night = self.workSchedule.createShift("Night", "Night shift", time(23, 0, 0), timedelta(hours=8))
# Team rotation
rotation = self.workSchedule.createRotation("Low night demand", "Low night demand")
rotation.addSegment(day, 3, 0)
rotation.addSegment(swing, 4, 3)
rotation.addSegment(day, 4, 0)
rotation.addSegment(swing, 3, 4)
rotation.addSegment(day, 3, 0)
rotation.addSegment(night, 4, 3)
rotation.addSegment(day, 4, 0)
rotation.addSegment(night, 3, 4)
# 6 teams
self.workSchedule.createTeam("Team1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team2", "Second team", rotation, self.referenceDate - timedelta(days=21))
self.workSchedule.createTeam("Team3", "Third team", rotation, self.referenceDate - timedelta(days=7))
self.workSchedule.createTeam("Team4", "Fourth team", rotation, self.referenceDate - timedelta(days=28))
self.workSchedule.createTeam("Team5", "Fifth team", rotation, self.referenceDate - timedelta(days=14))
self.workSchedule.createTeam("Team6", "Sixth team", rotation, self.referenceDate - timedelta(days=35))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 896 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 6048 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 1344 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 1008 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 22.22, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 224 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 37.33, 2)
self.runBaseTest(timedelta(hours=224), timedelta(days=42))
def test3TeamFixed24(self):
description = "Fire departments"
self.workSchedule = WorkSchedule("3 Team Fixed 24 Plan", description)
# starts at 00:00 for 24 hours
shift = self.workSchedule.createShift("24 Hour", "24 hour shift", time(0, 0, 0), timedelta(hours=24))
# Team rotation
rotation = self.workSchedule.createRotation("3 Team Fixed 24 Plan", "3 Team Fixed 24 Plan")
rotation.addSegment(shift, 1, 1)
rotation.addSegment(shift, 1, 1)
rotation.addSegment(shift, 1, 4)
# 3 teams
self.workSchedule.createTeam("Team1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team2", "Second team", rotation, self.referenceDate - timedelta(days=3))
self.workSchedule.createTeam("Team3", "Third team", rotation, self.referenceDate - timedelta(days=6))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 672 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 648 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 216 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 216 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 33.33, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 72 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 56, 1)
self.runBaseTest(timedelta(hours=72), timedelta(days=9))
def test549(self):
description = "Compressed work workSchedule."
self.workSchedule = WorkSchedule("5/4/9 Plan", description)
# 1 starts at 07:00 for 9 hours
day1 = self.workSchedule.createShift("Day1", "Day shift #1", time(7, 0, 0), timedelta(hours=9))
# 2 starts at 07:00 for 8 hours
day2 = self.workSchedule.createShift("Day2", "Day shift #2", time(7, 0, 0), timedelta(hours=8))
# Team rotation (28 days)
rotation = self.workSchedule.createRotation("5/4/9 ", "5/4/9 ")
rotation.addSegment(day1, 4, 0)
rotation.addSegment(day2, 1, 3)
rotation.addSegment(day1, 4, 3)
rotation.addSegment(day1, 4, 2)
rotation.addSegment(day1, 4, 0)
rotation.addSegment(day2, 1, 2)
# 2 teams
self.workSchedule.createTeam("Team1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team2", "Second team", rotation, self.referenceDate - timedelta(days=14))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 320 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 1344 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 320 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 672 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 23.81, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 160 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 40, 1)
self.runBaseTest(timedelta(hours=160), timedelta(days=28))
def test9to5(self):
description = "This is the basic 9 to 5 workSchedule plan for office employees. Every employee works 8 hrs a day from Monday to Friday."
self.workSchedule = WorkSchedule("9 To 5 Plan", description)
# starts at 09:00 for 8 hours
day = self.workSchedule.createShift("Day", "Day shift", time(9, 0, 0), timedelta(hours=8))
# Team1 rotation (5 days)
rotation = self.workSchedule.createRotation("9 To 5 ", "9 To 5 ")
rotation.addSegment(day, 5, 2)
# 1 team, 1 shift
self.workSchedule.createTeam("Team", "One team", rotation, self.referenceDate)
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 160 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 168 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 40 * 3600)
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=1), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 168 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 23.81, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 40 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 40, 1)
self.runBaseTest(timedelta(hours=40), timedelta(days=7))
def test8Plus12(self):
description = "This is a fast rotation plan that uses 4 teams and a combination of three 8-hr shifts on weekdays and two 12-hr shifts on weekends to provide 24/7 coverage."
self.workSchedule = WorkSchedule("8 Plus 12 Plan", description)
# Day shift #1, starts at 07:00 for 12 hours
day1 = self.workSchedule.createShift("Day1", "Day shift #1", time(7, 0, 0), timedelta(hours=12))
# Day shift #2, starts at 07:00 for 8 hours
day2 = self.workSchedule.createShift("Day2", "Day shift #2", time(7, 0, 0), timedelta(hours=8))
# Swing shift, starts at 15:00 for 8 hours
swing = self.workSchedule.createShift("Swing", "Swing shift", time(15, 0, 0), timedelta(hours=8))
# Night shift #1, starts at 19:00 for 12 hours
night1 = self.workSchedule.createShift("Night1", "Night shift #1", time(19, 0, 0), timedelta(hours=12))
# Night shift #2, starts at 23:00 for 8 hours
night2 = self.workSchedule.createShift("Night2", "Night shift #2", time(23, 0, 0), timedelta(hours=8))
# shift rotation (28 days)
rotation = self.workSchedule.createRotation("8 Plus 12", "8 Plus 12")
rotation.addSegment(day2, 5, 0)
rotation.addSegment(day1, 2, 3)
rotation.addSegment(night2, 2, 0)
rotation.addSegment(night1, 2, 0)
rotation.addSegment(night2, 3, 4)
rotation.addSegment(swing, 5, 2)
# 4 teams, rotating through 5 shifts
self.workSchedule.createTeam("Team 1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team 2", "Second team", rotation, self.referenceDate - timedelta(days=7))
self.workSchedule.createTeam("Team 3", "Third team", rotation, self.referenceDate - timedelta(days=14))
self.workSchedule.createTeam("Team 4", "Fourth team", rotation, self.referenceDate - timedelta(days=21))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 672 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 2688 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 672 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 672 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 25.00, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 168 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 42, 1)
self.runBaseTest(timedelta(hours=168), timedelta(days=28))
def testICUInterns(self):
description = "This plan supports a combination of 14-hr day shift , 15.5-hr cross-cover shift , and a 14-hr night shift for medical interns. "
description = description + "The day shift and the cross-cover shift have the same start time (7:00AM). "
description = description + "The night shift starts at around 10:00PM and ends at 12:00PM on the next day."
self.workSchedule = WorkSchedule("ICU Interns Plan", description)
# Day shift #1, starts at 07:00 for 15.5 hours
crossover = self.workSchedule.createShift("Crossover", "Day shift #1 cross-over", time(7, 0, 0),
timedelta(hours=15) + timedelta(minutes=30))
# Day shift #2, starts at 07:00 for 14 hours
day = self.workSchedule.createShift("Day", "Day shift #2", time(7, 0, 0), timedelta(hours=14))
# Night shift, starts at 22:00 for 14 hours
night = self.workSchedule.createShift("Night", "Night shift", time(22, 0, 0), timedelta(hours=14))
# Team1 rotation
rotation = self.workSchedule.createRotation("ICU", "ICU")
rotation.addSegment(day, 1, 0)
rotation.addSegment(crossover, 1, 0)
rotation.addSegment(night, 1, 1)
self.workSchedule.createTeam("Team 1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team 2", "Second team", rotation, self.referenceDate - timedelta(days=3))
self.workSchedule.createTeam("Team 3", "Third team", rotation, self.referenceDate - timedelta(days=2))
self.workSchedule.createTeam("Team 4", "Forth team", rotation, self.referenceDate - timedelta(days=1))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 1223 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 384 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 174 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 96 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 45.31, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 43 * 3600 + 30 * 60)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 76.125, 1)
self.runBaseTest(timedelta(minutes=2610), timedelta(days=4))
def testDupont(self):
description = "The DuPont 12-hour rotating shift workSchedule uses 4 teams (crews) and 2 twelve-hour shifts to provide 24/7 coverage. "
description = description + "It consists of a 4-week cycle where each team works 4 consecutive night shifts, "
description = description + "followed by 3 days off duty, works 3 consecutive day shifts, followed by 1 day off duty, works 3 consecutive night shifts, "
description = description + "followed by 3 days off duty, work 4 consecutive day shift, then have 7 consecutive days off duty. "
description = description + "Personnel works an average 42 hours per week."
self.workSchedule = WorkSchedule("DuPont Schedule", description)
# Day shift, starts at 07:00 for 12 hours
day = self.workSchedule.createShift("Day", "Day shift", time(7, 0, 0), timedelta(hours=12))
# Night shift, starts at 19:00 for 12 hours
night = self.workSchedule.createShift("Night", "Night shift", time(19, 0, 0), timedelta(hours=12))
# Team1 rotation
rotation =self.workSchedule.createRotation("DuPont", "DuPont")
rotation.addSegment(night, 4, 3)
rotation.addSegment(day, 3, 1)
rotation.addSegment(night, 3, 3)
rotation.addSegment(day, 4, 7)
self.workSchedule.createTeam("Team 1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team 2", "Second team", rotation, self.referenceDate - timedelta(days=7))
self.workSchedule.createTeam("Team 3", "Third team", rotation, self.referenceDate - timedelta(days=14))
self.workSchedule.createTeam("Team 4", "Forth team", rotation, self.referenceDate - timedelta(days=21))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 672 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 2688 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 672 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 672 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 25.00, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 168 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 42.0, 1)
self.runBaseTest(timedelta(hours=168), timedelta(days=28))
def testDNO(self):
description = "This is a fast rotation plan that uses 3 teams and two 12-hr shifts to provide 24/7 coverage. "
description = description + "Each team rotates through the following sequence every three days: 1 day shift, 1 night shift, and 1 day off."
self.workSchedule = WorkSchedule("DNO Plan", description)
# Day shift, starts at 07:00 for 12 hours
day = self.workSchedule.createShift("Day", "Day shift", time(7, 0, 0), timedelta(hours=12))
# Night shift, starts at 19:00 for 12 hours
night = self.workSchedule.createShift("Night", "Night shift", time(19, 0, 0), timedelta(hours=12))
# rotation
rotation = self.workSchedule.createRotation("DNO", "DNO")
rotation.addSegment(day, 1, 0)
rotation.addSegment(night, 1, 1)
self.workSchedule.createTeam("Team 1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team 2", "Second team", rotation, self.referenceDate - timedelta(days=1))
self.workSchedule.createTeam("Team 3", "Third team", rotation, self.referenceDate - timedelta(days=2))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 672 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 216 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 72 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 72 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 33.33, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 24 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 56.0, 1)
self.runBaseTest(timedelta(hours=24), timedelta(days=3))
def test21TeamFixed(self):
description = "".join(["This plan is a fixed (no rotation) plan that uses 21 teams and three 8-hr shifts to provide 24/7 coverage. "
,"It maximizes the number of consecutive days off while still averaging 40 hours per week. "
,"Over a 7 week cycle, each employee has two 3 consecutive days off and is required to work 6 consecutive days on 5 of the 7 weeks. "
,"On any given day, 15 teams will be scheduled to work and 6 teams will be off. "
,"Each shift will be staffed by 5 teams so the minimum number of employees per shift is five. "])
self.workSchedule = WorkSchedule("21 Team Fixed 8 6D Plan", description)
# Day shift, starts at 07:00 for 8 hours
day = self.workSchedule.createShift("Day", "Day shift", time(7, 0, 0), timedelta(hours=8))
# Swing shift, starts at 15:00 for 8 hours
swing = self.workSchedule.createShift("Swing", "Swing shift", time(15, 0, 0), timedelta(hours=8))
# Night shift, starts at 15:00 for 8 hours
night = self.workSchedule.createShift("Night", "Night shift", time(23, 0, 0), timedelta(hours=8))
# day rotation
dayRotation = self.workSchedule.createRotation("Day", "Day")
dayRotation.addSegment(day, 6, 3)
dayRotation.addSegment(day, 5, 3)
dayRotation.addSegment(day, 6, 2)
dayRotation.addSegment(day, 6, 2)
dayRotation.addSegment(day, 6, 2)
dayRotation.addSegment(day, 6, 2)
# swing rotation
swingRotation = self.workSchedule.createRotation("Swing", "Swing")
swingRotation.addSegment(swing, 6, 3)
swingRotation.addSegment(swing, 5, 3)
swingRotation.addSegment(swing, 6, 2)
swingRotation.addSegment(swing, 6, 2)
swingRotation.addSegment(swing, 6, 2)
swingRotation.addSegment(swing, 6, 2)
# night rotation
nightRotation = self.workSchedule.createRotation("Night", "Night")
nightRotation.addSegment(night, 6, 3)
nightRotation.addSegment(night, 5, 3)
nightRotation.addSegment(night, 6, 2)
nightRotation.addSegment(night, 6, 2)
nightRotation.addSegment(night, 6, 2)
nightRotation.addSegment(night, 6, 2)
# day teams
self.workSchedule.createTeam("Team 1", "1st day team", dayRotation, self.referenceDate)
self.workSchedule.createTeam("Team 2", "2nd day team", dayRotation, self.referenceDate + timedelta(days=7))
self.workSchedule.createTeam("Team 3", "3rd day team", dayRotation, self.referenceDate + timedelta(days=14))
self.workSchedule.createTeam("Team 4", "4th day team", dayRotation, self.referenceDate + timedelta(days=21))
self.workSchedule.createTeam("Team 5", "5th day team", dayRotation, self.referenceDate + timedelta(days=28))
self.workSchedule.createTeam("Team 6", "6th day team", dayRotation, self.referenceDate + timedelta(days=35))
self.workSchedule.createTeam("Team 7", "7th day team", dayRotation, self.referenceDate + timedelta(days=42))
# swing teams
self.workSchedule.createTeam("Team 8", "1st swing team", swingRotation, self.referenceDate)
self.workSchedule.createTeam("Team 9", "2nd swing team", swingRotation, self.referenceDate + timedelta(days=7))
self.workSchedule.createTeam("Team 10", "3rd swing team", swingRotation, self.referenceDate + timedelta(days=14))
self.workSchedule.createTeam("Team 11", "4th swing team", swingRotation, self.referenceDate + timedelta(days=21))
self.workSchedule.createTeam("Team 12", "5th swing team", swingRotation, self.referenceDate + timedelta(days=28))
self.workSchedule.createTeam("Team 13", "6th swing team", swingRotation, self.referenceDate + timedelta(days=35))
self.workSchedule.createTeam("Team 14", "7th swing team", swingRotation, self.referenceDate + timedelta(days=42))
# night teams
self.workSchedule.createTeam("Team 15", "1st night team", nightRotation, self.referenceDate)
self.workSchedule.createTeam("Team 16", "2nd night team", nightRotation, self.referenceDate + timedelta(days=7))
self.workSchedule.createTeam("Team 17", "3rd night team", nightRotation, self.referenceDate + timedelta(days=14))
self.workSchedule.createTeam("Team 18", "4th night team", nightRotation, self.referenceDate + timedelta(days=21))
self.workSchedule.createTeam("Team 19", "5th night team", nightRotation, self.referenceDate + timedelta(days=28))
self.workSchedule.createTeam("Team 20", "6th night team", nightRotation, self.referenceDate + timedelta(days=35))
self.workSchedule.createTeam("Team 21", "7th night team", nightRotation, self.referenceDate + timedelta(days=42))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 3360 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 24696 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 5880 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 1176 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 23.81, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 280 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 40.0, 1)
self.runBaseTest(timedelta(hours=280), timedelta(days=49), self.referenceDate + timedelta(days=49))
def testTwoTeam(self):
description = "".join(["This is a fixed (no rotation) plan that uses 2 teams and two 12-hr shifts to provide 24/7 coverage. "
,"One team will be permanently on the day shift and the other will be on the night shift."])
self.workSchedule = WorkSchedule("2 Team Fixed 12 Plan", description)
# Day shift, starts at 07:00 for 12 hours
day = self.workSchedule.createShift("Day", "Day shift", time(7, 0, 0), timedelta(hours=12))
# Night shift, starts at 19:00 for 12 hours
night = self.workSchedule.createShift("Night", "Night shift", time(19, 0, 0), timedelta(hours=12))
# Team1 rotation
team1Rotation = self.workSchedule.createRotation("Team1", "Team1")
team1Rotation.addSegment(day, 1, 0)
# Team1 rotation
team2Rotation = self.workSchedule.createRotation("Team2", "Team2")
team2Rotation.addSegment(night, 1, 0)
self.workSchedule.createTeam("Team 1", "First team", team1Rotation, self.referenceDate)
self.workSchedule.createTeam("Team 2", "Second team", team2Rotation, self.referenceDate)
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 1320 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 48 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 24 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 24 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 50.00, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 12 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 84.0, 1)
self.runBaseTest(timedelta(hours=12), timedelta(days=1))
def testPanama(self):
description = "".join(["This is a slow rotation plan that uses 4 teams and two 12-hr shifts to provide 24/7 coverage. "
, "The working and non-working days follow this pattern: 2 days on, 2 days off, 3 days on, 2 days off, 2 days on, 3 days off. "
, "Each team works the same shift (day or night) for 28 days then switches over to the other shift for the next 28 days. "
, "After 56 days, the same sequence starts over."])
self.workSchedule = WorkSchedule("Panama", description)
# Day shift, starts at 07:00 for 12 hours
day = self.workSchedule.createShift("Day", "Day shift", time(7, 0, 0), timedelta(hours=12))
# Night shift, starts at 19:00 for 12 hours
night = self.workSchedule.createShift("Night", "Night shift", time(19, 0, 0), timedelta(hours=12))
# rotation
rotation = self.workSchedule.createRotation("Panama",
"2 days on, 2 days off, 3 days on, 2 days off, 2 days on, 3 days off")
# 2 days on, 2 off, 3 on, 2 off, 2 on, 3 off (and repeat)
rotation.addSegment(day, 2, 2)
rotation.addSegment(day, 3, 2)
rotation.addSegment(day, 2, 3)
rotation.addSegment(day, 2, 2)
rotation.addSegment(day, 3, 2)
rotation.addSegment(day, 2, 3)
# 2 nights on, 2 off, 3 on, 2 off, 2 on, 3 off (and repeat)
rotation.addSegment(night, 2, 2)
rotation.addSegment(night, 3, 2)
rotation.addSegment(night, 2, 3)
rotation.addSegment(night, 2, 2)
rotation.addSegment(night, 3, 2)
rotation.addSegment(night, 2, 3)
self.workSchedule.createTeam("Team 1", "First team", rotation, self.referenceDate)
self.workSchedule.createTeam("Team 2", "Second team", rotation, self.referenceDate - timedelta(days=28))
self.workSchedule.createTeam("Team 3", "Third team", rotation, self.referenceDate - timedelta(days=7))
self.workSchedule.createTeam("Team 4", "Fourth team", rotation, self.referenceDate - timedelta(days=35))
# specific checks
fromDateTime = datetime.combine(self.laterDate, self.laterTime)
toDateTime = datetime.combine(self.laterDate + timedelta(days=28), self.laterTime)
workingTime = self.workSchedule.calculateWorkingTime(fromDateTime, toDateTime)
nonWorkingTime = self.workSchedule.calculateNonWorkingTime(fromDateTime, toDateTime)
self.assertTrue(workingTime.total_seconds() == 672 * 3600)
self.assertTrue(nonWorkingTime.total_seconds() == 0)
self.assertTrue(self.workSchedule.getRotationDuration().total_seconds() == 5376 * 3600)
self.assertTrue(self.workSchedule.getRotationWorkingTime().total_seconds() == 1344 * 3600)
for team in self.workSchedule.teams:
self.assertTrue(team.rotation.getDuration().total_seconds() == 1344 * 3600)
self.assertAlmostEqual(team.getPercentageWorked(), 25.00, 2)
self.assertTrue(team.rotation.getWorkingTime().total_seconds() == 336 * 3600)
self.assertAlmostEqual(team.getAverageHoursWorkedPerWeek(), 42.0, 1)
self.runBaseTest(timedelta(hours=336), timedelta(days=56))
| python |
package tr.com.infumia.claimplugin.paper.api.member;
import java.util.Optional;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import tr.com.infumia.claimplugin.paper.api.permission.Control;
import tr.com.infumia.claimplugin.paper.api.permission.Permissible;
/**
* an interface to determine claim members.
*/
public interface Member extends Permissible, Control {
/**
* creates a new member.
*
* @param player the player to create.
*
* @return a newly created member.
*/
@NotNull
static Member member(@NotNull final OfflinePlayer player) {
return Member.member(player.getUniqueId());
}
/**
* creates a new member.
*
* @param player the player to create.
*
* @return a newly created member.
*/
@NotNull
static Member member(@NotNull final Player player) {
return Member.member(player.getUniqueId());
}
/**
* creates the member via unique id.
*
* @param uniqueId the unique id to get.
*
* @return a newly created member instance.
*/
@NotNull
static Member member(@NotNull final UUID uniqueId) {
return Members.createMember(uniqueId);
}
/**
* creates a new owner.
*
* @param player the player to create.
*
* @return a newly created member.
*/
@NotNull
static Member owner(@NotNull final OfflinePlayer player) {
return Member.owner(player.getUniqueId());
}
/**
* creates a new owner.
*
* @param player the player to create.
*
* @return a newly created member.
*/
@NotNull
static Member owner(@NotNull final Player player) {
return Member.owner(player.getUniqueId());
}
/**
* creates the owner via member.
*
* @param member the member to get.
*
* @return a newly created member instance.
*/
@NotNull
static Member owner(@NotNull final Member member) {
return Member.owner(member.getUniqueId());
}
/**
* creates the owner via unique id.
*
* @param uniqueId the unique id to get.
*
* @return a newly created member instance.
*/
@NotNull
static Member owner(@NotNull final UUID uniqueId) {
return Members.createOwner(uniqueId);
}
/**
* obtains the member as offline player.
*
* @return member as offline player.
*/
@NotNull
default OfflinePlayer getAsOfflinePlayer() {
return Bukkit.getOfflinePlayer(this.getUniqueId());
}
/**
* obtains the member as player.
*
* @return member as player.
*/
@NotNull
default Optional<Player> getAsPlayer() {
return Optional.ofNullable(Bukkit.getPlayer(this.getUniqueId()));
}
/**
* obtains the member as player.
*
* @return member as player.
*/
@NotNull
default Player getAsPlayerOrThrow() {
return this.getAsPlayer().orElseThrow(() ->
new IllegalStateException(String.format("Player called %s not found!", this.getUniqueId())));
}
/**
* obtains name or unique id of the member.
*
* @return name or uniqeu id.
*/
@NotNull
default String getName() {
final var name = this.getAsOfflinePlayer().getName();
return name == null ? this.getUniqueId().toString() : name;
}
/**
* obtains the unique id of the member.
*
* @return the unique id of the member.
*/
@NotNull
UUID getUniqueId();
}
| java |
<reponame>jamieliu386/jamieliu.me<gh_stars>1-10
[
{
"id": "passworks",
"title": "passworks",
"desc": "A collection of educational modules to teach students about the importance of password security.",
"tech": "React.js, Material-UI",
"github": "https://github.com/uclaacm/passworks",
"link": "https://passworks.uclaacm.com",
"dim": {
"height": 510.0999756,
"width": 1079.6644287
},
"info": [
{ "line" : "Led the development of an interactive lesson structure with an animated brute-force password guesser and animated text messages" },
{ "line" : "Developed a declarative framework for creating lesson modules, making them easily extensible" },
{ "line" : "Implemented a custom React.js router with fluid transitions between lesson content" },
{ "line" : "Sought user feedback to improve on lesson content and presentation" }
],
"img": "../images/projects/passworks.svg"
},
{
"id": "teach-la-editor",
"title": "Teach LA Code Editor",
"desc": "A web IDE made for K–12 students learning Python, HTML, and Processing.js.",
"tech": "React.js, Redux, Node.js, Firebase",
"github": "https://github.com/uclaacm/TeachLAFrontend",
"link": "https://editor.uclaacm.com/",
"dim": {
"height": 521.971,
"width": 1046.667
},
"info": [
{ "line" : "Added account management features allowing users to edit their display name and profile picture" },
{ "line" : "Implemented a view-only mode for programs, allowing them to be runnable but not editable" },
{ "line" : "Developed a feature allowing logged-in users to fork other people's shared programs" },
{ "line" : "Refactored code to improve component modularity and reusability" }
],
"img": "../images/projects/editor.svg"
},
{
"id": "hoth-website",
"title": "Hack on the Hill Website",
"desc": "The website for UCLA’s premier beginner-friendly hackathon, Hack on the Hill (HOTH).",
"tech": "Gatsby, Material-UI, GraphQL",
"github": "https://github.com/uclaacm/hoth.uclaacm.com",
"link": "https://hoth.uclaacm.com/",
"dim": {
"height": 580,
"width": 979.893
},
"info": [
{ "line" : "Ramped up development by setting up a GitHub Actions-based CI and a Netlify-based deployment workflow" },
{ "line" : "Developed responsive pages compatible with desktop and mobile devices using Material-UI components" },
{ "line" : "Iterated on website design by collaborating with external designers" }
],
"img": "../images/projects/hoth.svg"
},
{
"id": "butterfly",
"title": "GL Butterfly",
"desc": "An animated butterfly, drawn with vanilla JavaScript, WebGL, and the HTML ‘canvas’ element.",
"tech": "WebGL, JavaScript, Linear Algebra",
"github": "https://github.com/jamieliu386/tgbutterfly",
"link": "https://jamieliu386.github.io/tgbutterfly/",
"dim": {
"height": 600,
"width": 1080
},
"info": [
{ "line" : "Drew the vertices of five independently animated parts of the butterfly’s body" },
{ "line" : "Computed affine transformations necessary to animate the butterfly in a consistent manner" },
{ "line" : "Ensured proper alignment of body parts at all times throughout the animation" }
],
"img": "../images/projects/butterfly.png"
}
]
| json |
const mongoose = require('mongoose');
mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost/googlebooks', {
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true,
useFindAndModify: false,
})
.then(() => console.log("MongoDB has been connected"))
.catch((error) => console.log(err))
module.exports = mongoose.connection;
| javascript |
{"daterangepicker.css":"<KEY>,"daterangepicker.js":"<KEY>,"daterangepicker.min.css":"<KEY>,"daterangepicker.min.js":"<KEY>,"moment.js":"<KEY>,"moment.min.js":"<KEY>} | json |
The 75th year of India’s independence – Azadi ka Amrit Mahotsav has been an occasion to reinvigorate and re-emphasise India’s maritime moorings. INAS550, the premiere air squadron of Indian Navy based at Kochi, created history by carrying out maiden night landing by Dornier aircraft at the Agatti airfield in Lakshadweep islands on 13 October 2022. Located about 460 km west of Kochi in Arabian Sea, Agatti atoll houses the lone airstrip available in the archipelago of the Union Territory of Lakshadweep. The airfield operated by AAI was inaugurated in April 1988 for operation of DO-228. Operations were extended to ATR 72 in September 2010. However, owing to the short runway length and limited airfield services available, the operations of both civil airliners and military aircraft had been limited to day operations only. Under the aegis of Indian Navy, SNC took initiative to overcome this limitation and in coordination with AAI and DGCA, successfully carried out maiden night landing at Agatti on 13 October 2022. As part of trials, multiple approaches and landings were carried out from both sides of the runway to validate suitability for operations. The successful night trials would pave way for future operations of DO-228 aircraft from this airfield by night which will boost Indian Navy’s efforts towards round the clock maritime surveillance and support to the islands.
| english |
<filename>package-lock.json
{
"name": "@anderjason/node-filedb",
"version": "0.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@anderjason/node-crypto": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@anderjason/node-crypto/-/node-crypto-2.0.0.tgz",
"integrity": "<KEY>
"requires": {
"@anderjason/node-filesystem": "^2.0.0",
"tweetnacl": "^1.0.3",
"typescript": "^4.0.3"
}
},
"@anderjason/node-filesystem": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@anderjason/node-filesystem/-/node-filesystem-2.0.1.tgz",
"integrity": "<KEY>
"requires": {
"@anderjason/time": "^2.0.2",
"@anderjason/util": "^2.0.3"
}
},
"@anderjason/observable": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/@anderjason/observable/-/observable-3.2.1.tgz",
"integrity": "<KEY>
"requires": {
"@anderjason/tests": "^1.0.1",
"@anderjason/util": "^2.0.3"
}
},
"@anderjason/tests": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@anderjason/tests/-/tests-1.0.1.tgz",
"integrity": "<KEY>
"requires": {
"typescript": "^4.0.2"
}
},
"@anderjason/time": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@anderjason/time/-/time-2.0.2.tgz",
"integrity": "<KEY>
"requires": {
"@anderjason/tests": "^1.0.1",
"typescript": "^4.0.3"
}
},
"@anderjason/util": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/@anderjason/util/-/util-2.0.6.tgz",
"integrity": "<KEY>
"requires": {
"@anderjason/tests": "^1.0.1",
"typescript": "^4.2.4"
},
"dependencies": {
"typescript": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz",
"integrity": "<KEY>
}
}
},
"@types/node": {
"version": "15.6.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-15.6.1.tgz",
"integrity": "<KEY>
"dev": true
},
"skytree": {
"version": "9.3.1",
"resolved": "https://registry.npmjs.org/skytree/-/skytree-9.3.1.tgz",
"integrity": "<KEY>
"requires": {
"@anderjason/observable": "^3.2.0",
"@anderjason/tests": "^1.0.1",
"@anderjason/time": "^2.0.2",
"@anderjason/util": "^2.0.3"
}
},
"tweetnacl": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz",
"integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw=="
},
"typescript": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz",
"integrity": "sha512-<KEY>
}
}
}
| json |
U. S. basketball star Brittney Griner returned to stand trial at a Russian court on Tuesday as the United States sought to secure her release with a prisoner swap to help her avoid up to 10 years in jail on drugs charges.
Griner, a two-time Olympic gold medalist and a Women’s National Basketball Association (WNBA) star, was detained at Moscow’s Sheremetyevo airport on Feb. 17 with vape cartridges containing hashish oil in her luggage.
U. S. Secretary of State Antony Blinken said on Wednesday the United States has made a ”substantial offer” to Russia to release American citizens held in Russia, including Griner and former Marine Paul Whelan.
Russia said that there was no deal yet, and Griner is unlikely to be swapped until there is a verdict, which could happen by mid-August.
Griner, 31, has pleaded guilty to the charges against her but has denied that she intended to break Russian law.
Wearing a plain khaki T-shirt and round-rimmed glassed, Griner was ushered a courtroom by police at Khimki District Court outside Moscow, Griner held up personal photographs before taking a seat in the defendant’s cage.
The two-time Olympic champion testified last week that she could not understand how the vape cartridges had ended up in her luggage, speculating that she had inadvertently packed them as she rushed to leave.
Griner had been her way to join her Russian team, UMMC Ekaterinburg, for the playoffs after spending time at home in the United States.
Read all the Latest News and Breaking News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters) | english |
{
"$id": "http://maasglobal.com/maas-backend/subscriptions/subscriptions-estimate/response.json",
"description": "Response schema for subscriptions-estimate",
"type": "object",
"properties": {
"estimate": {
"$ref": "http://maasglobal.com/maas-backend/subscriptions/pricing.json"
},
"debug": {
"type": "object",
"additionalProperties": true
}
},
"required": [ "estimate" ],
"additionalProperties": false
}
| json |
Goalpara, March 20: A tiol semir on Urdu language titled ‘Hazrat Ameer Khusro Ki Adabi Khidmat’ was held at Oasis Academy under the auspices of Oasis Trust recently. The day-long programme was sponsored by the tiol Commission for Promotion of Urdu Language, Ministry of Human Resources and Development.
Academician AR Saikia, former Vice-Principal of Goalpara College, conducted the semir as speaker while Ekramul Hussain, former district and sessions judge, attended as the chief guest in the programme. Renowned educationist Prof. DJ Abedin, Mufti Saad Uddin Qashimi, Prof. Bakshi HA Ahmed, Sk. Hazarat Ali Ahmed and M. Sozimuddin Ahmed attended as the resource persons and focused on the life and works of Ameer Khusro.
The speakers recalled how the world poet assimilated the Persian language with the local language to enrich the Urdu language. Khusro’s contribution towards ghazal, qawwali, and tara was also highly lauded on the occasion. Earlier, the purpose of the occasion was explained by Prof. MA Kashem, vice-president, and vote of thanks was given by Prof. ATM Forhad Ali, secretary of Oasis Trust. | english |
{"title": "A GPU-based index to support interactive spatio-temporal queries over historical data.", "fields": ["data set", "spatial query", "trips architecture", "speedup", "order of magnitude"], "abstract": "There are increasing volumes of spatio-temporal data from various sources such as sensors, social networks and urban environments. Analysis of such data requires flexible exploration and visualizations, but queries that span multiple geographical regions over multiple time slices are expensive to compute, making it challenging to attain interactive speeds for large data sets. In this paper, we propose a new indexing scheme that makes use of modern GPUs to efficiently support spatio-temporal queries over point data. The index covers multiple dimensions, thus allowing simultaneous filtering of spatial and temporal attributes. It uses a block-based storage structure to speed up OLAP-type queries over historical data, and supports query processing over in-memory and disk-resident data. We present different query execution algorithms that we designed to allow the index to be used in different hardware configurations, including CPU-only, GPU-only, and a combination of CPU and GPU. To demonstrate the effectiveness of our techniques, we implemented them on top of MongoDB and performed an experimental evaluation using two real-world data sets: New York City's (NYC) taxi data - consisting of over 868 million taxi trips spanning a period of five years, and Twitter posts - over 1.1 billion tweets collected over a period of 14 months. Our results show that our GPU-based index obtains interactive, sub-second response times for queries over large data sets and leads to at least two orders of magnitude speedup over spatial indexes implemented in existing open-source and commercial database systems.", "citation": "Citations (5)", "departments": ["New York University", "City University of New York", "New York University", "New York University"], "authors": ["<NAME>.....http://dblp.org/pers/hd/d/Doraiswamy:Harish", "<NAME>.....http://dblp.org/pers/hd/v/Vo:Huy_T=", "Cl\u00e1<NAME>.....http://dblp.org/pers/hd/s/Silva:Cl=aacute=udio_T=", "<NAME>.....http://dblp.org/pers/hd/f/Freire:Juliana"], "conf": "icde", "year": "2016", "pages": 12} | json |
Looking to end their two-game winless run in the MLS, New England Revolution take on Toronto FC at Gillette Stadium on Wednesday.
The visitors are currently on a six-game losing streak and will be aiming to end that dire run.
New England Revolution failed to return to winning ways last time out as they were held to a 2-2 draw by Columbus Crew.
Caleb Porter's men fought back from two goals down to grab a hard-earned point thanks to Gyasi Zardes and an own goal from Andrew Farrell.
Prior to that, New England Revolution fell to a shock 2-1 defeat at the hands of rock-bottom FC Dallas to snap their five-game winning run.
Despite the slight dip in form, Bruce Arena’s men remain at the summit of the Eastern Conference table, three points above Orlando City SC, who have a game in hand.
Toronto FC, on the other hand, failed to end their horrid run of results last Saturday as they suffered a 7-1 mauling at the hands of DC United.
In a goal glut, seven different players got on the score sheet for DC United as they ran riot at the Audi Field Stadium.
The result condemned Toronto FC to a sixth straight defeat, while they have failed to taste victory in their last seven outings.
Chris Armas’ side have picked up just one win so far and this dire run of results has seen them crash to the bottom of the Eastern Conference table.
New England Revolution have been the slightly better side in the history of this fixture, claiming 13 wins from their last 33 games against Toronto FC. The visitors have picked up nine wins, while 11 games have ended all square.
The hosts will have to cope without the services of Christian Mafla and Luis Caicedo, who remain sidelined due to injury.
Striker Tajon Buchanan and goalkeeper Matt Turner are unavailable for the Revs as they are both playing in the Gold Cup for Canada and the USA respectively.
Julian Dunn (hip) and Ifunanyachi Achara (ACL) are nursing injuries and will miss out on the game.
Goal threats Ayo Akinola and Jonathan Osorio are both on international duty with Canada in the Gold Cup. Richie Laryea is also unavailable as he represents Canada in the Gold Cup, while Kemar Lawrence is part of the Jamaican team at the same tournament.
Eriq Zavaleta received a red card on the weekend and has been suspended for this match, but he would not have been available as he is with El Salvador at the Gold Cup.
While New England Revolution have experienced a slight drop-off in form, they have enjoyed a brilliant start to the campaign. In stark contrast, Toronto FC are rooted to the bottom of the table and head into the game on a horrific six-game losing streak.
We predict the hosts will find their feet and return to winning ways as they are clearly superior in terms of player quality and experience.
Help us improve our previews and prediction section. Take a 30 second survey now.
| english |
<reponame>svemaraju/svemaraju.github.io
{"questions": [{"player_1": {"name": "<NAME>", "player_stat": 2.0}, "player_2": {"name": "<NAME>", "player_stat": 2.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 2020.0}, "player_2": {"name": "<NAME>", "player_stat": 2604.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 3684.0}, "player_2": {"name": "<NAME>", "player_stat": 757.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 31.86}, "player_2": {"name": "<NAME>", "player_stat": 26.68}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 3.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 17.6}, "player_2": {"name": "<NAME>", "player_stat": 21.4}, "stat": "strike_rate", "skill": "BOWL", "question_text": "Who has the better bowling strike rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 6.87}, "player_2": {"name": "<NAME>", "player_stat": 6.67}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 26.0}, "player_2": {"name": "<NAME>", "player_stat": 108.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 8.0}, "player_2": {"name": "<NAME>", "player_stat": 4.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 12.0}, "player_2": {"name": "<NAME>", "player_stat": 75.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 7.34}, "player_2": {"name": "<NAME>", "player_stat": 7.09}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 43.0}, "player_2": {"name": "<NAME>", "player_stat": 27.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 21.9}, "player_2": {"name": "<NAME>", "player_stat": 19.1}, "stat": "strike_rate", "skill": "BOWL", "question_text": "Who has the better bowling strike rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 133.53}, "player_2": {"name": "<NAME>", "player_stat": 135.47}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 1.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "hundreds", "skill": "BAT", "question_text": "Who has scored more hundreds?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 131.37}, "player_2": {"name": "<NAME>", "player_stat": 130.07}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 38.0}, "player_2": {"name": "<NAME>", "player_stat": 37.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 570.0}, "player_2": {"name": "<NAME>", "player_stat": 1652.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}]} | json |
<gh_stars>10-100
{
"manifest_version": 2,
"name": "__MSG_manifest_name__",
"short_name": "Anki-leo",
"description": "__MSG_manifest_description__",
"version": "4.0.2",
"author": "<NAME> <<EMAIL>>",
"default_locale": "en",
"permissions": [
"http://lingualeo.com/",
"downloads",
"background",
"webNavigation"
],
"background": {
"scripts": ["./background.js"],
"persistent": false
},
"icons": {
"16": "icons/16x16.png",
"48": "icons/48x48.png",
"128": "icons/128x128.png"
},
"content_scripts": [
{
"matches": [
"*://lingualeo.com/*"
],
"js": ["content.js"],
"css": ["leo-export.css"],
"run_at": "document_end",
"all_frames": false
}
],
"web_accessible_resources": [
"js/index.js"
]
}
| json |
const azureFunctionHandler = require("azure-aws-serverless-express");
const express = require("express");
const app = express();
const qs = require("qs");
const axios = require("axios");
const createAccessToken = function (clientSecret, code, redirectUri) {
return axios.post(
"https://app.vssps.visualstudio.com/oauth2/token",
qs.stringify({
client_assertion_type:
"urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
client_assertion: clientSecret,
grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer",
assertion: code,
redirect_uri: redirectUri,
})
);
};
app.get("/api/create-ado-access-token", (req, res) => {
console.log("doing create-ado-access-token");
const secret = process.env.ADO_CLIENT_SECRET;
const redirectUri = process.env.ADO_CALLBACK_URL;
createAccessToken(secret, req.query.code, redirectUri)
.then(function (tokenResp) {
var _a = tokenResp.data,
access_token = _a.access_token,
error = _a.error;
if (error) {
res.status(400).json({ error: error });
} else {
res.status(200).json({ token: access_token });
}
})
.catch(function (err) {
console.log(err);
res.status(400).json({ error: "Could not get token" });
});
});
module.exports = azureFunctionHandler(app);
| javascript |
<reponame>gitter-badger/android-accounting
package com.mphj.accountry.utils;
import android.content.Context;
import com.mphj.accountry.models.db.DaoMaster;
import com.mphj.accountry.models.db.DaoSession;
/**
* Created by mphj on 11/7/2017.
*/
public class DaoManager {
public static final String DB_NAME = "mphj.db";
private static DaoSession daoSession;
public static synchronized void init(Context c){
if (daoSession == null)
daoSession = new DaoMaster(
new DaoMaster.DevOpenHelper(c, DB_NAME).getWritableDb()).newSession();
}
public static DaoSession session(){
return daoSession;
}
}
| java |
Who doesn’t like a ‘Larger than Life’ experience when it comes to televisions? Gone are the days when a TV was for watching video content only. Nowadays, web surfing, third party audio and video streaming (Netflix, Prime Video, etc.), video calls and even gaming have become a normal part of our television watching experience. With so many features to choose from, it becomes difficult to decide which Smart TV is the best. Check out this list of the best 65-inch smart TVs on Amazon.
Amplify your TV watching experience with the Sony Bravia OLED TV KD-65A8G. Sporting a 4K Ultra HD with a 3840 x 2160p resolution and a 50Hz refresh rate, this TV claims to take your audio and video experience to the next level. It also packs a TRILUMINOUS Display with a 4K X-Reality PRO engine to enhance the visual performance. With four HDMI ports and three USB ports, you can connect Blu-Ray DVD Players, set-top box, gaming consoles and more. You should be able to experience good audio with its Acoustic Surface Audio Technology and its 40W audio output. This smart TV also offers multiple features like built-in Wi-Fi, voice search, Google Play Store, Netflix, Chromecast, Prime Video, YouTube and many more. Get a truly smart TV experience by using Alexa to control it.
The LG Smart IPS LED TV 65UM7290PTD has a 4K Ultra HD 3840 x 2160 resolution and a refresh rate of 50Hz. Its smart features like Google Assistant, voice control, AI ThinQ, Cloud photo and video and Web OS just add to the fun of using this device. You should be able to experience true Surround Sound and good sound quality with its DTS Virtual: X and 20W audio output. This device also offers wireless audio through 2-Way Bluetooth compatibility. Connect multiple inputs like gaming consoles, set-top boxes, Blu-Ray DVD Players, etc., using its three HDMI Ports and two USB Ports.
Enter into the world of smart TVs with the Sony Bravia Ultra HD LED TV 65X8000H. With features like Android TV, voice search, Google Play, Chromecast, Netflix, Prime Video and HDR Gaming, you should be able to enjoy a premium Smart TV experience. Watch your favourite shows in Ultra HD with its display built up of X1, 4K HDR, 4K X-Reality Pro and Motionflow XR. The display on this device is augmented with a 4K Ultra HD 3840 x 2160 resolution with a Refresh Rate of 50Hz so that you can experience good-quality video. The sound on this TV should be good as it sports Dolby Atmos Bass Reflex speakers with X-Balance and TV MusicBox along with a 20W audio output.
If you are looking for a large TV under budget, this model from TCL should do just fine. This 65-inch 4K UHD display supports HDR 10 and Micro Dimming technologies to deliver a brilliant visual output with bright and vivid colours. Furthermore, the display supports refresh rates up to 60Hz, which should account for a smooth viewing experience. The thin bezels on three sides bring the larger than life experience to the fore. In terms of sound output, it delivers 20W of power and uses an AI Audio Engine technology to make the sound as balanced as possible.
Performing tasks on gadgets using voice commands has become the norm, and this 65-inch 4K UHD TV from Samsung enables you to do just that. It supports not one but three different voice assistants – Bixby, Alexa and Google Voice Assistant. It has other smart TV features as well, such as Live Cast, Home Cloud, Screen Share and various pre-installed OTT platforms like Hotstar, Amazon Prime Video, Netflix and more. Finally, it has three HDMI and two USB ports at the back, enabling you to connect multiple devices like additional speakers, set-top box, gaming consoles or external storage devices to enhance your user experience.
If you are looking for a larger than life experience in terms of both audio and video output from your TV, then this model from Vu should do you justice. This 65-inch 4K UHD smart TV delivers a sound output of 30W, and uses technologies like Dolby Vision, HDR10, Dolby Atmos, DTS Virtual:X Surround Sound and more to deliver a truly immersive TV-viewing experience. This TV is also good to play video games or even use it as a PC monitor, as it has special Game and PC modes. It has even more smart TV features like built-in Chromecast, complete Google ecosystem and ActiVoice remote control to make it an ideal modern TV.
| english |
<filename>config/config.example.json
{
"VisitorChannelID": "C01230ABC",
"SlackSettings": {
"BotAPIKey": "<KEY>",
"AppAPIKey": "<KEY>",
"VerificationToken": "XYXYXY<PASSWORD> <KEY>"
},
"WebServerSettings": {
"Port": 8000
},
"DebugEnabled": true,
"DBSettings": {
"Driver": "postgres",
"Connection": "postgres://postgres@localhost:5432/slack_visitor?sslmode=disable"
}
}
| json |
<gh_stars>1-10
{
"Group": "Misc",
"FriendlyName": "GittiGidiyor",
"SystemName": "Misc.GittiGidiyor",
"Version": "1.00",
"SupportedVersions": [ "4.20" ],
"Author": "<NAME> - <EMAIL>",
"DisplayOrder": 1,
"FileName": "Nop.Plugin.Misc.GittiGidiyor.dll",
"Description": "This plugin allows to integrate with GittiGidiyor Api for nopCommerce v4.20 on .NET Core"
} | json |
<filename>JogoGalaxyAds/Jogo.Beta/src/modelo/Retry.java<gh_stars>0
package modelo;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class Retry extends JFrame{
public Retry(){
JOptionPane.showConfirmDialog(null, "RETRY? ");
Fase fase = new Fase();
}
}
| java |
import os
from pocketsphinx import AudioFile
from pocketsphinx import Pocketsphinx
from src import util
test_video = os.environ['DATA_PATH'] + "/other/sphinx_test_video/beachball.mp4"
test_audio = os.environ['DATA_PATH'] + "/other/sphinx_test_audio/interview.wav"
fps = 100 # default
audio_file = AudioFile(audio_file=test_audio, frate=100)
for phrase in audio_file: # frate (default=100)
print(" ".join([s.word for s in phrase.seg()]))
#print(Pocketsphinx().decode(audio_file=test_audio))
# i'm home i'm a i'm won't home all cool i'm wall long and lulu move up at bay back when when i'm i'm home
| python |
Bigg Boss 16 Ravivaar Ka Vaar HIGHLIGHTS: In today's episode, It’s was a classic showdown with Archana challenging Shiv’s integrity and Stan stirring the pot. Priyanka joined in and accused Shiv and Stan of misrepresenting others and playing underhanded games. Shiv responded with fury, marching towards Priyanka with blazing eyes and asking her how dare she curse him. On the other hand, Shalin seemed extremely tension free after Tina's eviction. He bonded with his new friends Shiv and MC stan and celebrates his happiness. Nimrit and Shiv fought over Shiv's childish behavior. | english |
Dismissing Beijing's criticism for calling COVID-19 a "Chinese virus", US President Donald Trump has accused it of spreading false information about the US.
New York, March 18 Dismissing Beijing's criticism for calling COVID-19 a "Chinese virus", US President Donald Trump has accused it of spreading false information about the US.
"I didn't appreciate the fact that China was saying that our military gave it to them," Trump said on Tuesday when he was asked at a news briefing in Washington about the China's criticism. "Our military did not give it to anybody. "
"China was putting out information, which was false," he said.
He said, "Rather than having an argument, I said I have to call it where it came from; it did come from China. So, I think it's a very accurate term. "
COVID-19 originated in Wuhan in China,
China's Foreign Ministry Spokesperson Geng Shuang took exception to Trump using the term "Chinese virus" in a tweet on Monday to describe COVID-19.
He said the US should "correct its mistake and stop its groundless accusations against China".
US Secretary of State Mike Pompeo had accused China of impeding world efforts to fight the coronavirus through censorship.
"Had China permitted its own and foreign journalists and medical personnel to speak and investigate freely, Chinese officials and other nations would have been far better prepared to address the challenge," he had said.
Earlier in a tweet, Speaker Nancy Pelosi had accused House of Representatives Republican leader Kevin McCarthy of being "bigoted" and "spreading misinformation" because he had called COVID-19 "Chinese coronavirus".
However, she has repeatedly referred to another virus that originated in Africa - Ebola Virus - by the name of the river and region where it was found. | english |
<p>So I’ve now been offered admission to two of the three PhD programs to which I have applied. The third I knew was unlikely as they require a thesis Master’s degree, but I don’t have a thesis. I was hoping that the fact I’ve co-authored two books might count for something (because frankly, writing a book is far more work than writing a thesis).</p>
<p>So for now I’m mulling over the best decision to make – but what an <em>amazing</em> place to be: choosing between two excellent schools, with the choice of two amazing advisers. There really isn’t a losing option at this point, which is an <strong>amazing</strong> place to be.</p>
<p> </p>
<p> </p>
| html |
//!
//! The arguments processing module.
//!
#[derive(Clone)]
pub struct Arguments {
inputs: Vec<String>,
video: String,
english: Vec<String>,
ukrainian: Vec<String>,
russian: Vec<String>,
other: Vec<String>,
subtitles: Vec<String>,
track_names: Vec<String>,
language: String,
title: String,
destination: String,
output_path: String,
dummy: bool,
}
impl Arguments {
pub fn from_cmd() -> Result<Self, ()> {
let mut iter = 0..<usize>::max_value();
let args = clap::App::new(env!("CARGO_PKG_NAME"))
.version(env!("CARGO_PKG_VERSION"))
.author(env!("CARGO_PKG_AUTHORS"))
.about(env!("CARGO_PKG_DESCRIPTION"))
.arg(
clap::Arg::with_name("input")
.display_order(iter.next().unwrap())
.help("Input media files")
.short("i")
.long("input")
.value_name("STRING")
.takes_value(true)
.required(true)
.multiple(true),
)
.arg(
clap::Arg::with_name("video")
.display_order(iter.next().unwrap())
.help("The video stream specifier")
.short("v")
.long("video")
.value_name("INT:INT")
.takes_value(true)
.default_value("0"),
)
.arg(
clap::Arg::with_name("english")
.display_order(iter.next().unwrap())
.help("English audio stream specifiers")
.short("e")
.long("audio-english")
.value_name("INT:INT")
.takes_value(true)
.multiple(true),
)
.arg(
clap::Arg::with_name("ukrainian")
.display_order(iter.next().unwrap())
.help("Ukrainian audio stream specifiers")
.short("u")
.long("audio-ukrainian")
.value_name("INT:INT")
.takes_value(true)
.multiple(true),
)
.arg(
clap::Arg::with_name("russian")
.display_order(iter.next().unwrap())
.help("Russian audio stream specifiers")
.short("r")
.long("audio-russian")
.value_name("INT:INT")
.takes_value(true)
.multiple(true),
)
.arg(
clap::Arg::with_name("other")
.display_order(iter.next().unwrap())
.help("Other audio stream specifiers")
.short("o")
.long("audio-other")
.value_name("INT:INT")
.takes_value(true)
.multiple(true),
)
.arg(
clap::Arg::with_name("subtitles")
.display_order(iter.next().unwrap())
.help("Subtitle stream specifiers")
.short("s")
.long("subtitles")
.value_name("INT:INT")
.takes_value(true)
.multiple(true),
)
.arg(
clap::Arg::with_name("track-names")
.display_order(iter.next().unwrap())
.help("Track names")
.short("t")
.long("track-names")
.value_name("STRING")
.takes_value(true)
.multiple(true),
)
.arg(
clap::Arg::with_name("language")
.display_order(iter.next().unwrap())
.help("The output movie language")
.short("l")
.long("language")
.value_name("STRING")
.takes_value(true),
)
.arg(
clap::Arg::with_name("prefix")
.display_order(iter.next().unwrap())
.help("The output movie name prefix")
.short("p")
.long("prefix")
.value_name("STRING")
.takes_value(true),
)
.arg(
clap::Arg::with_name("name")
.display_order(iter.next().unwrap())
.help("The output movie name")
.short("n")
.long("name")
.value_name("STRING")
.takes_value(true),
)
.arg(
clap::Arg::with_name("destination")
.display_order(iter.next().unwrap())
.help("The output movie destination directory")
.short("d")
.long("destination")
.value_name("STRING")
.takes_value(true)
.required(true)
.default_value("."),
)
.get_matches();
let language = args.value_of("language").unwrap_or("eng").to_owned();
let title = args.value_of("name").unwrap_or_default();
let destination = args.value_of("destination").unwrap_or(".").to_owned();
let dummy = args.value_of("name").is_none();
Ok(Arguments {
inputs: args
.values_of("input")
.unwrap()
.map(|v| v.to_owned())
.collect::<Vec<String>>(),
video: args.value_of("video").unwrap_or_default().to_owned(),
english: args
.values_of("english")
.unwrap_or_default()
.map(|v| v.to_owned())
.collect::<Vec<String>>(),
ukrainian: args
.values_of("ukrainian")
.unwrap_or_default()
.map(|v| v.to_owned())
.collect::<Vec<String>>(),
russian: args
.values_of("russian")
.unwrap_or_default()
.map(|v| v.to_owned())
.collect::<Vec<String>>(),
other: args
.values_of("other")
.unwrap_or_default()
.map(|v| v.to_owned())
.collect::<Vec<String>>(),
subtitles: args
.values_of("subtitles")
.unwrap_or_default()
.map(|v| v.to_owned())
.collect::<Vec<String>>(),
track_names: args
.values_of("track-names")
.unwrap_or_default()
.map(|v| v.to_owned())
.map(|v| {
if v.to_lowercase() == "o" {
"Original".to_owned()
} else {
v
}
})
.map(|v| {
if v.to_lowercase() == "d" {
"Dub".to_owned()
} else {
v
}
})
.collect::<Vec<String>>(),
language,
title: title.to_owned(),
destination: destination.to_owned(),
output_path: destination
+ "/"
+ args
.value_of("prefix")
.map(|v| v.to_owned() + ".")
.unwrap_or_default()
.as_str()
+ title
+ ".mkv",
dummy,
})
}
pub fn inputs(&self) -> &Vec<String> {
&self.inputs
}
pub fn video_stream(&self) -> &str {
&self.video
}
pub fn audio_streams(&self) -> Vec<String> {
let mut streams = Vec::with_capacity(
self.english.len() + self.ukrainian.len() + self.russian.len() + self.other.len(),
);
streams.append(self.english.clone().as_mut());
streams.append(self.ukrainian.clone().as_mut());
streams.append(self.russian.clone().as_mut());
streams.append(self.other.clone().as_mut());
streams
}
pub fn english_streams(&self) -> &Vec<String> {
&self.english
}
pub fn ukrainian_streams(&self) -> &Vec<String> {
&self.ukrainian
}
pub fn russian_streams(&self) -> &Vec<String> {
&self.russian
}
pub fn other_streams(&self) -> &Vec<String> {
&self.other
}
pub fn subtitle_streams(&self) -> &Vec<String> {
&self.subtitles
}
pub fn track_names(&self) -> &Vec<String> {
&self.track_names
}
pub fn language(&self) -> &str {
self.language.as_str()
}
pub fn title(&self) -> &str {
self.title.as_str()
}
pub fn output_path(&self) -> &str {
self.output_path.as_str()
}
pub fn dummy(&self) -> bool {
self.dummy
}
}
impl ::std::fmt::Display for Arguments {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
writeln!(f, "{0} ARGUMENTS {0}", "_".repeat(32))?;
for i in 0..self.inputs.len() {
writeln!(f, "Input #{:04}: {}", i + 1, self.inputs[i])?;
}
if self.dummy {
writeln!(f, "Dummy mode!")?;
return Ok(());
}
writeln!(f, "Stream HEVC: {}", self.video)?;
writeln!(f, "Streams ENG: {:?}", self.english)?;
writeln!(f, "Streams UKR: {:?}", self.ukrainian)?;
writeln!(f, "Streams RUS: {:?}", self.russian)?;
writeln!(f, "Streams OTH: {:?}", self.other)?;
writeln!(f, "Streams SUB: {:?}", self.subtitles)?;
writeln!(f, "Track names: {:?}", self.track_names)?;
writeln!(f, "Language : {}", self.language)?;
writeln!(f, "Output file: {}", self.title)?;
writeln!(f, "Output path: {}", self.output_path)?;
writeln!(f, "{}", "_".repeat(75))?;
Ok(())
}
}
| rust |
{
"version": "2.17.5",
"date": "2021-07-26",
"entries": [
{
"type": "feature",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Annotate and document members that are modeled as deprecated"
},
{
"type": "feature",
"category": "AWS SSO Identity Store",
"contributor": "",
"description": "Documentation updates for SSO API Ref."
},
{
"type": "feature",
"category": "Amazon Textract",
"contributor": "",
"description": "Adds support for AnalyzeExpense, a new API to extract relevant data such as contact information, items purchased, and vendor name, from almost any invoice or receipt without the need for any templates or configuration."
},
{
"type": "feature",
"category": "AWS Proton",
"contributor": "",
"description": "Documentation-only update links"
},
{
"type": "documentation",
"category": "Amazon S3",
"contributor": "",
"description": "Deprecate S3 CopySource parameter for CopyObject & UploadPartCopy"
},
{
"type": "feature",
"category": "AWS S3 Control",
"contributor": "",
"description": "S3 Access Point aliases can be used anywhere you use S3 bucket names to access data in S3"
},
{
"type": "feature",
"category": "Synthetics",
"contributor": "",
"description": "CloudWatch Synthetics now supports visual testing in its canaries."
},
{
"type": "feature",
"category": "Amazon CloudWatch",
"contributor": "",
"description": "SDK update to support creation of Cross-Account Metric Alarms and update API documentation."
}
]
} | json |
<reponame>bundestag/dip21-daten<gh_stars>10-100
{
"vorgangId": "248522",
"VORGANG": {
"WAHLPERIODE": "19",
"VORGANGSTYP": "Schriftliche Frage",
"TITEL": "Durchschnittliche Bearbeitungsdauer von Anträgen auf Erwerbsminderungsrente in den Jahren 2010 bis 2018",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": {
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "19/9360",
"DRS_TYP": "Schriftliche Fragen",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/19/093/1909360.pdf"
},
"EU_DOK_NR": "",
"SCHLAGWORT": {
"_fundstelle": "true",
"__cdata": "Erwerbsminderungsrente"
},
"ABSTRAKT": "Originaltext der Frage(n): \r\n \r\nWie lang war nach Kenntnis der Bundesregierung in den einzelnen Jahren von 2010 bis 2018 jeweils die durchschnittliche Bearbeitungsdauer bei Anträgen auf eine Rente wegen Erwerbsminderung (bitte für die Jahre von 2014 bis 2016 weiter nach Erstanträgen sowie Anträgen auf Verlängerung oder Entfristung einer laufenden Rente unterscheiden) sowie bei Widersprüchen gegen Bescheide über die Ablehnung oder Gewährung einer Rente wegen Erwerbsminderung?"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": {
"ZUORDNUNG": "BT",
"URHEBER": "Schriftliche Frage/Schriftliche Antwort ",
"FUNDSTELLE": "12.04.2019 - BT-Drucksache 19/9360, Nr. 81",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/19/093/1909360.pdf",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Sabine",
"NACHNAME": "Zimmermann",
"WAHLKREISZUSATZ": "Zwickau",
"FUNKTION": "MdB",
"FRAKTION": "DIE LINKE",
"AKTIVITAETSART": "Frage"
},
{
"VORNAME": "Kerstin",
"NACHNAME": "Griese",
"FUNKTION": "Parl. Staatssekr.",
"RESSORT": "Bundesministerium für Arbeit und Soziales",
"AKTIVITAETSART": "Antwort"
}
]
}
}
}
| json |
<gh_stars>1-10
{
"ImportPath": "github.com/janeczku/go-redwall",
"GoVersion": "go1.5",
"Deps": [
{
"ImportPath": "github.com/Sirupsen/logrus",
"Comment": "v0.8.7",
"Rev": "418b41d23a1bf978c06faea5313ba194650ac088"
},
{
"ImportPath": "github.com/WatchBeam/fsm",
"Rev": "b57836b18c491b8ebeb65f54a3fe8243ee4816cc"
},
{
"ImportPath": "github.com/garyburd/redigo/internal",
"Rev": "6ece6e0a09f28cc399b21550cbf37ab39ba63cce"
},
{
"ImportPath": "github.com/garyburd/redigo/redis",
"Rev": "6ece6e0a09f28cc399b21550cbf37ab39ba63cce"
},
{
"ImportPath": "github.com/mcprohosting/redutil/pubsub",
"Rev": "92721a25bad0ecdd615d4f635fab90e3c594a466"
}
]
}
| json |
package com.binance.dex.api.client.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum OrderType {
LIMIT(2L);
private long value;
OrderType(long value) {
this.value = value;
}
@JsonCreator
public static OrderType fromValue(long value) {
for (OrderType ot : OrderType.values()) {
if (ot.value == value) {
return ot;
}
}
return null;
}
@JsonValue
public long toValue() {
return this.value;
}
}
| java |
<reponame>Vladimir-Zakharenkov/shevkunenko.ru
[
{
"video": "http://vladimirz.asuscomm.com/vrt1/tretya-raketa.mp4",
"preview": "//shevkunenko.ru/img/krfilm/persons/raketa.png",
"ps_var_name": "start"
}
] | json |
<filename>collections/fm.alarmclasses/Discovery/Error/Low_Privileges.json
{
"name": "Discovery | Error | Low Privileges",
"$collection": "fm.alarmclasses",
"uuid": "1783626e-130f-4a5c-80ff-fbf7165f1fd3",
"description": "Low privilege for executing command on managed object",
"is_unique": true,
"user_clearable": true,
"default_severity__name": "WARNING",
"vars": [
{
"name": "path",
"description": "Path to alarms"
},
{
"name": "message",
"description": "Error detail message"
}
],
"subject_template": "Low Privileges",
"body_template": "Low privileges for execute command on managed object {{alarm.managed_object.name}} (IP: {{alarm.managed_object.address}}). All SA tasks to this object are temporary suspended",
"symptoms": "CLI command is not supported in current CLI mode and nothing password for raise permission level",
"probable_causes": "Low permission level and not credential to raise it for execute command",
"recommended_actions": "Add enable password to managed object settings or grant permission for execute commands"
}
| json |
DeMeco Ryans has become one of the key members of the San Francisco 49ers' coaching staff. The defensive coordinator has contributed immensely to their success over the years and has led them to the NFC Championship game this season.
However, Ryans' meteoric rise as a coach doesn't come as a surprise as he was one of the top linebackers in the country during his playing days. The 38-year-old is now being linked with a head coaching job at a few NFL teams, including the Denver Broncos and Houston Texans.
As a coach, Ryans has a 52-46 regular-season record and a 6-2 record in the playoffs. He has spent six years as a coach, all of which have been with the 49ers.
Ryans began his stint with San Francisco as a defensive quality control coach in January 2017. The following year, he was promoted to the team's inside linebackers coach.
After three seasons, Ryans was promoted to the role of the Niners' defensive coordinator in January 2021.
DeMeco Ryans was picked by the Houston Texans in the 2006 NFL Draft. He won Defensive Rookie of the Year after an impressive showing for the team.
He also earned two Pro Bowl honors before joining the Philadelphia Eagles in 2012. The linebacker spent four seasons with the Eagles before hanging up his cleats to move into coaching.
In total, Ryans finished his NFL career with an impressive 971 tackles, 13. 5 sacks, seven forced fumbles, seven interceptions, and one defensive touchdown.
Following an impressive season as the Niners' defensive coordinator this year, Ryans is being considered as the next head coach for the Texans. The Houston outfit fired Lovie Smith after a terrible campaign and are reportedly weighing a reunion with Ryans.
However, Ryans will need to focus on his current role in San Francisco as the team is set to take on the Philadelphia Eagles in the NFC Championship on Sunday.
Top 5 players BANNED from the NBA for drug use! Shocking names ahead! | english |
Kolkata: The Election Commission has made elaborate arrangements for counting of votes on May 2 for the West Bengal assembly polls and put in place measures to ensure strict adherence to health safety protocols, amid a raging second wave of COVID-19, an official said on Saturday.
A three-tier security arrangement has been in place at 108 counting centres where polled electronic voting machines (EVMs), along with voter-verifiable paper audit trail (VVPAT) units have been kept in strong rooms, he said.
At least 292 observers have been appointed and 256 companies of central forces deployed at the counting centres spread across 23 districts of the state that voted in eight phases between March 27 and April 29.
South 24 Parganas district has the maximum number of counting centres at 15, while Kalimpong, Alipurduar and Jhargram have one each.
Counting will begin at 8 am on Sunday.
In view of the rising coronavirus cases in the state, steps have been taken to ensure that COVID guidelines are strictly followed during the counting, the official said.
All the EVMs and VVPATs at the counting centres will be sanitised before the commencement of the process.
“Masks, face shields and sanitiser will be kept outside the centres for those involved in the exercise. At least 15 rounds of sanitisation will be done at each centre during the process. We have made a special arrangement for this,” he said.
The poll panel has decided to place tables in a counting hall in such a way so that social distancing norms are maintained.
“Not more than seven tables, instead of 14, will be allowed in a counting hall. More tables will be placed where we do not have any space constraint,” he said.
According to the EC guidelines, candidates and their agents will have to produce a negative COVID test report or double dose of vaccination certificate to get an entry into a counting centre.
“We have asked the political parties and candidates to give a list of their agents along with a negative test report or vaccination certificate. They will be allowed if they meet the safety requirement,” the official said.
Orders have been issued to all the district administration to prevent gatherings outside the counting centres, and actions will be taken against those involved in the violation of the guidelines, he said.
Meanwhile, the West Bengal government on Friday ordered shutdown of all shopping malls, salons, restaurants, bars, sports complexes, gyms, spas and swimming pools in the state with immediate effect until further orders, amid the surge in COVID-19 cases.
Social, cultural, academic, entertainment-related gatherings and congregations have also been prohibited in the state for the time being, according to the order.
The state on Friday registered the highest single-day COVID-19 deaths with 96 people succumbing to the disease, the health department said in a bulletin.
The tally mounted at 8,28,366 with a record one-day spike of 17,411 new cases of infection.
The state government, however, said activities related to the electoral counting processes and victory rallies will be guided by the Election Commission protocols.
“The surge in COVID cases is a huge challenge for us.
We have taken all forms of measures for Sunday’s counting process. Any violation of measures will attract severe action, including legal one,” the official said.
The EC has banned roadshows and vehicle rallies in the state and noted that the COVID safety norms were being flouted in West Bengal during campaigning.
Blotched by violence, vicious personal attacks and jingoistic fulminations, polling for one of the most gruelling and long-drawn West Bengal assembly elections concluded on Thursday.
The majority of exit polls released after the eighth and final round of voting suggested that the ruling TMC might have an edge over the opposition BJP and the Left-Congress-ISF combine. But, who will get the magic figure of 147 in the house of 294 will be known only after the votes are counted on Sunday. | english |
<gh_stars>1-10
{
"id": 11550,
"source": "ellicott",
"verse_id": 18576,
"verse_count": 1,
"reference": "45:14",
"title": "",
"html": "<p>Thus saith the Lord . . .\u2014A new section opens. In <a class=\"isa\" verses=\"WzE4NTA5XQ==\">Isaiah 43:3<\/a>, Egypt, Ethiopia, Seba, had been given to Cyrus, as a reward, or ransom, for the deliverance of Israel. Here the prophet goes a step farther, and contemplates them as coming, in the spirit of a voluntary surrender, as proselytes to the faith of Israel, in self-imposed bondage, offering to Israel, as one with God, the \u201csupplication\u201d which, elsewhere, is offered to Jehovah. The promise reminds us of <a class=\"ref\">Psalms 68:31; Psalms 72:10<\/a>, and yet more of <a class=\"isa\" verses=\"W1sxODAyOF0seyIxNzgzNSI6M31d\">Isaiah 19:23; Isaiah 9:5-7<\/a>. A partial fulfilment may have been found in the command given by Cyrus, that these and other nations should assist in the work of rebuilding the Temple (<a class=\"ref\">Ezra 1:4<\/a>). Egypt and Ethiopia send the products of their labour. The Sab\u00e6ans (sc. the people of Meroe), strong, but not wealthy, come freely to offer their own labour. <\/p>",
"audit": null
} | json |
Everyone wants to become a better person, but there are many such changes in life that humans are unable to focus on their own well being. But if you want to make yourself a better person then you should always keep trying for it, only then you can be happy and also become a better person.
If you manage things well from the beginning, then no one can stop you from becoming better. Apart from this, there are many other ways by which you can make yourself a better person.
It is very important to identify yourself to make yourself better and it is also very important to be confident because you cannot improve yourself until you know yourself.
A healthy body is also very important for your well-being because when you are completely healthy, you will also get positive energy and you will feel good. Through this article, we are telling you some ways by which you can make yourself even better.
To improve yourself, it is most important that you face your fears, as long as your fears are not overcome. Till then you cannot make yourself better, so it is very important to deal with fear. Because fear stops a person from Moving Forward. When you face fear, you move without fear.
If you want to make yourself a better person, it is very important to accept your mistakes for this, because you cannot make yourself a better person until you accept your mistakes.
Everyone makes some mistakes in their life, but if you want that you do not make that mistake again, for this you will have to first rectify your mistake, which will help you to make you a good person.
A person can become a better person only when he sets his goal and tries to achieve it. Because the desire and efforts made by a person to achieve his goal make him better and help him to achieve success.
If you want to be a good person, then you need to trust yourself because it is the confidence of the person that motivates him to move forward.
With this, a person with his self-confidence always thinks of doing good and moving forward, but when you lose confidence, then your thinking also pushes you to a lower level and then we give up and our hands fail.
At the same time, you must have also noticed that today a better person is the one whose confidence is full of codification.
Every Sunday(any day) spend at least 10 to 15 minutes planning for the whole week. At that time, write about your whole week plan, looking at your to-do list and prepare accordingly. With this you can do your work to the fullest, by doing this you will be able to do all your work comfortably without any worry.
To improve yourself it is important that you motivate yourself because when you motivate yourself from time to time, you will have a strong desire to move forward, so that you will be able to accomplish your goal and become a successful person, but until you yourself Will not inspire you, will not create confidence in you and will be afraid to do any new work or take any decision of life, so to be successful and Gay is extremely important to have the confidence to grow.
You can also improve yourself through meditation because meditation is the way in which you help forget everything from your mind and focus on yourself.
Let me tell you that through peaceful self-meditation you get a chance to understand yourself. Whenever it comes to betterment, you always look at yourself as an example of the other, but you try to think about yourself and try to Improve yourself by leaving others.
At the same time, when you give priority to your desires and respect your goals and intentions, only then you will be able to improve yourself.
Because in the life of all of us, there are definitely some people with whom we can never move forward with us, so do not try to make everyone happy.
If you have the urge to learn, then you can become a better person because what you learn, apply them in your life too. You can also learn from your mistakes.
If we have the urge to learn, then we can learn from anything anytime and anywhere. We can also learn good habits from good people. So whenever we get a chance, we should keep learning something.
If you keep yourself away from negative thinking, then you will get help in improving yourself because whenever we start a new job or think about success in our lives, the first thing to think about is whether we are successful Will be able to Or how much we will benefit from this work.
Such questions should be prevented from moving forward in your mind, so if you want to be successful in your life, then it is important that you keep moving forward regardless of these things. Because negativity prevents you from moving forward. So we should always keep ourselves away from negative thoughts.
The post Tips to improve yourself | Gyan Tips appeared first on Gyanshare.
| english |
<reponame>Datenschule/schulscraper-data
{"name":"<NAME>","id":"NI-39585-1","address":"Zur Schule 1, 26188 Edewecht","school_type":"Grundschule","phone":"04405 9859990","email":"<EMAIL>","programs":{"programs":[]},"state":"NI","lon":7.937306,"lat":53.122455}
| json |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
* disclaimer.
*
* (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
* following disclaimer in the documentation and/or other materials provided with the distribution.
*
* (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote
* products derived from this software without specific prior written permission from the respective party.
*
* (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative
* works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without
* specific prior written permission from Alliance for Sustainable Energy, LLC.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**********************************************************************************************************************/
#include "ChillerHeaterPerformanceElectricEIR.hpp"
#include "ChillerHeaterPerformanceElectricEIR_Impl.hpp"
// Needed for the convenience functions to return parents
#include "CentralHeatPumpSystem.hpp"
#include "CentralHeatPumpSystem_Impl.hpp"
#include "CentralHeatPumpSystemModule.hpp"
#include "CentralHeatPumpSystemModule_Impl.hpp"
#include "Model.hpp"
//#include "Model_Impl.hpp"
#include "Curve.hpp"
#include "Curve_Impl.hpp"
#include "CurveBiquadratic.hpp"
#include "CurveBicubic.hpp"
#include <utilities/idd/IddFactory.hxx>
#include <utilities/idd/IddEnums.hxx>
#include <utilities/idd/OS_ChillerHeaterPerformance_Electric_EIR_FieldEnums.hxx>
#include "../utilities/units/Unit.hpp"
#include "../utilities/core/Assert.hpp"
namespace openstudio {
namespace model {
namespace detail {
ChillerHeaterPerformanceElectricEIR_Impl::ChillerHeaterPerformanceElectricEIR_Impl(const IdfObject& idfObject,
Model_Impl* model,
bool keepHandle)
: ParentObject_Impl(idfObject,model,keepHandle)
{
OS_ASSERT(idfObject.iddObject().type() == ChillerHeaterPerformanceElectricEIR::iddObjectType());
}
ChillerHeaterPerformanceElectricEIR_Impl::ChillerHeaterPerformanceElectricEIR_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
Model_Impl* model,
bool keepHandle)
: ParentObject_Impl(other,model,keepHandle)
{
OS_ASSERT(other.iddObject().type() == ChillerHeaterPerformanceElectricEIR::iddObjectType());
}
ChillerHeaterPerformanceElectricEIR_Impl::ChillerHeaterPerformanceElectricEIR_Impl(const ChillerHeaterPerformanceElectricEIR_Impl& other,
Model_Impl* model,
bool keepHandle)
: ParentObject_Impl(other,model,keepHandle)
{}
const std::vector<std::string>& ChillerHeaterPerformanceElectricEIR_Impl::outputVariableNames() const
{
static std::vector<std::string> result;
if (result.empty()){
// TODO: Implement? Problem is that the output for this is extremely weird/unusual
// You actually have to go to the CentralHeatPumpSystem to find the Number of Chiller Heater Modules XXX
// result.push_back("Chiller Heater Operation Mode Unit <x>");
}
return result;
}
IddObjectType ChillerHeaterPerformanceElectricEIR_Impl::iddObjectType() const {
return ChillerHeaterPerformanceElectricEIR::iddObjectType();
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeEvaporatorCapacity() const {
return getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity,true);
}
bool ChillerHeaterPerformanceElectricEIR_Impl::isReferenceCoolingModeEvaporatorCapacityAutosized() const {
bool result = false;
boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity, true);
if (value) {
result = openstudio::istringEqual(value.get(), "autosize");
}
return result;
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeCOP() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeCOP,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeLeavingChilledWaterTemperature() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingChilledWaterTemperature,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeEnteringCondenserFluidTemperature() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEnteringCondenserFluidTemperature,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeLeavingCondenserWaterTemperature() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingCondenserWaterTemperature,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeCoolingCapacityRatio() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingCapacityRatio,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeCoolingPowerInputRatio() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingPowerInputRatio,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeLeavingChilledWaterTemperature() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingChilledWaterTemperature,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeLeavingCondenserWaterTemperature() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingCondenserWaterTemperature,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeEnteringCondenserFluidTemperature() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeEnteringCondenserFluidTemperature,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::heatingModeEnteringChilledWaterTemperatureLowLimit() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeEnteringChilledWaterTemperatureLowLimit,true);
OS_ASSERT(value);
return value.get();
}
std::string ChillerHeaterPerformanceElectricEIR_Impl::chilledWaterFlowModeType() const {
boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::ChilledWaterFlowModeType,true);
OS_ASSERT(value);
return value.get();
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::designChilledWaterFlowRate() const {
return getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate,true);
}
bool ChillerHeaterPerformanceElectricEIR_Impl::isDesignChilledWaterFlowRateAutosized() const {
bool result = false;
boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, true);
if (value) {
result = openstudio::istringEqual(value.get(), "autosize");
}
return result;
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::designCondenserWaterFlowRate() const {
return getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate,true);
}
bool ChillerHeaterPerformanceElectricEIR_Impl::isDesignCondenserWaterFlowRateAutosized() const {
bool result = false;
boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, true);
if (value) {
result = openstudio::istringEqual(value.get(), "autosize");
}
return result;
}
double ChillerHeaterPerformanceElectricEIR_Impl::designHotWaterFlowRate() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignHotWaterFlowRate,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::compressorMotorEfficiency() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CompressorMotorEfficiency,true);
OS_ASSERT(value);
return value.get();
}
std::string ChillerHeaterPerformanceElectricEIR_Impl::condenserType() const {
boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::CondenserType,true);
OS_ASSERT(value);
return value.get();
}
std::string ChillerHeaterPerformanceElectricEIR_Impl::coolingModeTemperatureCurveCondenserWaterIndependentVariable() const {
boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeTemperatureCurveCondenserWaterIndependentVariable,true);
OS_ASSERT(value);
return value.get();
}
Curve ChillerHeaterPerformanceElectricEIR_Impl::coolingModeCoolingCapacityFunctionOfTemperatureCurve() const {
boost::optional<Curve> value = optionalCoolingModeCoolingCapacityFunctionOfTemperatureCurve();
if (!value) {
LOG_AND_THROW(briefDescription() << " does not have an Cooling Mode Cooling Capacity Function of Temperature Curve attached.");
}
return value.get();
}
Curve ChillerHeaterPerformanceElectricEIR_Impl::coolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
boost::optional<Curve> value = optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
if (!value) {
LOG_AND_THROW(briefDescription() << " does not have an Cooling Mode Electric Input to Cooling Output Ratio Function of Temperature Curve attached.");
}
return value.get();
}
Curve ChillerHeaterPerformanceElectricEIR_Impl::coolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
boost::optional<Curve> value = optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
if (!value) {
LOG_AND_THROW(briefDescription() << " does not have an Cooling Mode Electric Input to Cooling Output Ratio Function of Part Load Ratio Curve attached.");
}
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::coolingModeCoolingCapacityOptimumPartLoadRatio() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityOptimumPartLoadRatio,true);
OS_ASSERT(value);
return value.get();
}
std::string ChillerHeaterPerformanceElectricEIR_Impl::heatingModeTemperatureCurveCondenserWaterIndependentVariable() const {
boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeTemperatureCurveCondenserWaterIndependentVariable,true);
OS_ASSERT(value);
return value.get();
}
Curve ChillerHeaterPerformanceElectricEIR_Impl::heatingModeCoolingCapacityFunctionOfTemperatureCurve() const {
boost::optional<Curve> value = optionalHeatingModeCoolingCapacityFunctionOfTemperatureCurve();
if (!value) {
LOG_AND_THROW(briefDescription() << " does not have an Heating Mode Cooling Capacity Function of Temperature Curve attached.");
}
return value.get();
}
Curve ChillerHeaterPerformanceElectricEIR_Impl::heatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
boost::optional<Curve> value = optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
if (!value) {
LOG_AND_THROW(briefDescription() << " does not have an Heating Mode Electric Input to Cooling Output Ratio Function of Temperature Curve attached.");
}
return value.get();
}
Curve ChillerHeaterPerformanceElectricEIR_Impl::heatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
boost::optional<Curve> value = optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
if (!value) {
LOG_AND_THROW(briefDescription() << " does not have an Heating Mode Electric Input to Cooling Output Ratio Function of Part Load Ratio Curve attached.");
}
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::heatingModeCoolingCapacityOptimumPartLoadRatio() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityOptimumPartLoadRatio,true);
OS_ASSERT(value);
return value.get();
}
double ChillerHeaterPerformanceElectricEIR_Impl::sizingFactor() const {
boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::SizingFactor,true);
OS_ASSERT(value);
return value.get();
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeEvaporatorCapacity(boost::optional<double> referenceCoolingModeEvaporatorCapacity) {
bool result(false);
if (referenceCoolingModeEvaporatorCapacity) {
result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity, referenceCoolingModeEvaporatorCapacity.get());
}
return result;
}
void ChillerHeaterPerformanceElectricEIR_Impl::autosizeReferenceCoolingModeEvaporatorCapacity() {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity, "autosize");
OS_ASSERT(result);
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeCOP(double referenceCoolingModeCOP) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeCOP, referenceCoolingModeCOP);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeLeavingChilledWaterTemperature(double referenceCoolingModeLeavingChilledWaterTemperature) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingChilledWaterTemperature, referenceCoolingModeLeavingChilledWaterTemperature);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeEnteringCondenserFluidTemperature(double referenceCoolingModeEnteringCondenserFluidTemperature) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEnteringCondenserFluidTemperature, referenceCoolingModeEnteringCondenserFluidTemperature);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeLeavingCondenserWaterTemperature(double referenceCoolingModeLeavingCondenserWaterTemperature) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingCondenserWaterTemperature, referenceCoolingModeLeavingCondenserWaterTemperature);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeCoolingCapacityRatio(double referenceHeatingModeCoolingCapacityRatio) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingCapacityRatio, referenceHeatingModeCoolingCapacityRatio);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeCoolingPowerInputRatio(double referenceHeatingModeCoolingPowerInputRatio) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingPowerInputRatio, referenceHeatingModeCoolingPowerInputRatio);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeLeavingChilledWaterTemperature(double referenceHeatingModeLeavingChilledWaterTemperature) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingChilledWaterTemperature, referenceHeatingModeLeavingChilledWaterTemperature);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeLeavingCondenserWaterTemperature(double referenceHeatingModeLeavingCondenserWaterTemperature) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingCondenserWaterTemperature, referenceHeatingModeLeavingCondenserWaterTemperature);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeEnteringCondenserFluidTemperature(double referenceHeatingModeEnteringCondenserFluidTemperature) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeEnteringCondenserFluidTemperature, referenceHeatingModeEnteringCondenserFluidTemperature);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeEnteringChilledWaterTemperatureLowLimit(double heatingModeEnteringChilledWaterTemperatureLowLimit) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeEnteringChilledWaterTemperatureLowLimit, heatingModeEnteringChilledWaterTemperatureLowLimit);
OS_ASSERT(result);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setChilledWaterFlowModeType(std::string const & chilledWaterFlowModeType) {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::ChilledWaterFlowModeType, chilledWaterFlowModeType);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setDesignChilledWaterFlowRate(boost::optional<double> designChilledWaterFlowRate) {
bool result(false);
if (designChilledWaterFlowRate) {
result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, designChilledWaterFlowRate.get());
}
else {
resetDesignChilledWaterFlowRate();
result = true;
}
return result;
}
void ChillerHeaterPerformanceElectricEIR_Impl::resetDesignChilledWaterFlowRate() {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, "");
OS_ASSERT(result);
}
void ChillerHeaterPerformanceElectricEIR_Impl::autosizeDesignChilledWaterFlowRate() {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, "autosize");
OS_ASSERT(result);
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setDesignCondenserWaterFlowRate(boost::optional<double> designCondenserWaterFlowRate) {
bool result(false);
if (designCondenserWaterFlowRate) {
result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, designCondenserWaterFlowRate.get());
}
else {
resetDesignCondenserWaterFlowRate();
result = true;
}
return result;
}
void ChillerHeaterPerformanceElectricEIR_Impl::resetDesignCondenserWaterFlowRate() {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, "");
OS_ASSERT(result);
}
void ChillerHeaterPerformanceElectricEIR_Impl::autosizeDesignCondenserWaterFlowRate() {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, "autosize");
OS_ASSERT(result);
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setDesignHotWaterFlowRate(double designHotWaterFlowRate) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignHotWaterFlowRate, designHotWaterFlowRate);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setCompressorMotorEfficiency(double compressorMotorEfficiency) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CompressorMotorEfficiency, compressorMotorEfficiency);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setCondenserType(std::string const & condenserType) {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::CondenserType, condenserType);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeTemperatureCurveCondenserWaterIndependentVariable(std::string const & coolingModeTemperatureCurveCondenserWaterIndependentVariable) {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeTemperatureCurveCondenserWaterIndependentVariable, coolingModeTemperatureCurveCondenserWaterIndependentVariable);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
bool result = setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityFunctionofTemperatureCurveName, curve.handle());
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
bool result = setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName, curve.handle());
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
bool result = setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName, curve.handle());
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeCoolingCapacityOptimumPartLoadRatio(double coolingModeCoolingCapacityOptimumPartLoadRatio) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityOptimumPartLoadRatio, coolingModeCoolingCapacityOptimumPartLoadRatio);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeTemperatureCurveCondenserWaterIndependentVariable(std::string const & heatingModeTemperatureCurveCondenserWaterIndependentVariable) {
bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeTemperatureCurveCondenserWaterIndependentVariable, heatingModeTemperatureCurveCondenserWaterIndependentVariable);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
bool result = setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityFunctionofTemperatureCurveName, curve.handle());
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
bool result = setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName, curve.handle());
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
bool result = setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName, curve.handle());
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeCoolingCapacityOptimumPartLoadRatio(double heatingModeCoolingCapacityOptimumPartLoadRatio) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityOptimumPartLoadRatio, heatingModeCoolingCapacityOptimumPartLoadRatio);
return result;
}
bool ChillerHeaterPerformanceElectricEIR_Impl::setSizingFactor(double sizingFactor) {
bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::SizingFactor, sizingFactor);
return result;
}
boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalCoolingModeCoolingCapacityFunctionOfTemperatureCurve() const {
return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityFunctionofTemperatureCurveName);
}
boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName);
}
boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName);
}
boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalHeatingModeCoolingCapacityFunctionOfTemperatureCurve() const {
return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityFunctionofTemperatureCurveName);
}
boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName);
}
boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName);
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::autosizedReferenceCoolingModeEvaporatorCapacity() const {
return getAutosizedValue("Design Size Reference Cooling Mode Evaporator Capacity", "W");
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::autosizedDesignChilledWaterFlowRate() const {
return getAutosizedValue("Design Size Design Chilled Water Flow Rate", "m3/s");
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::autosizedDesignCondenserWaterFlowRate() const {
return getAutosizedValue("Design Size Design Condenser Water Flow Rate", "m3/s");
}
void ChillerHeaterPerformanceElectricEIR_Impl::autosize() {
autosizeReferenceCoolingModeEvaporatorCapacity();
autosizeDesignChilledWaterFlowRate();
autosizeDesignCondenserWaterFlowRate();
}
void ChillerHeaterPerformanceElectricEIR_Impl::applySizingValues() {
boost::optional<double> val;
val = autosizedReferenceCoolingModeEvaporatorCapacity();
if (val) {
setReferenceCoolingModeEvaporatorCapacity(val.get());
}
val = autosizedDesignChilledWaterFlowRate();
if (val) {
setDesignChilledWaterFlowRate(val.get());
}
val = autosizedDesignCondenserWaterFlowRate();
if (val) {
setDesignCondenserWaterFlowRate(val.get());
}
}
// Convenience functions to return parent CentralHeatPumpSystem and CentralHeatPumpSystemModule
/*
* boost::optional<CentralHeatPumpSystemModule> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystemModule() const {
*
* boost::optional<CentralHeatPumpSystemModule> result;
* for ( const CentralHeatPumpSystemModule& central_hp_module : this->model().getConcreteModelObjects<CentralHeatPumpSystemModule>() )
* {
* ChillerHeaterPerformanceElectricEIR chiller = central_hp_module.chillerHeaterModulesPerformanceComponent();
* if (chiller.handle() == this->handle())
* {
* result = central_hp_module;
* }
* }
* return result;
* }
*/
/*
* boost::optional<CentralHeatPumpSystem> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystem() const {
*
* boost::optional<CentralHeatPumpSystem> result;
*
* // Check if this chiller has a CentralHeatPumpSystemModule
* if ( boost::optional<CentralHeatPumpSystemModule> this_central_hp_module = this->centralHeatPumpSystemModule() )
* {
* // TODO: use the CentralHeatPumpSystemModule::centralHeatPumpSystem() method instead
* if ( boost::optional<CentralHeatPumpSystem> central_hp = this_central_hp_module->centralHeatPumpSystem() )
* {
* result = central_hp.get();
* }
*
* // loop on all CentralHeatPumpSystems in the model
* //for ( const CentralHeatPumpSystem& central_hp : this->model().getConcreteModelObjects<CentralHeatPumpSystem>() )
* //{
* //// Loop on each CentralHeatPumpSystemModules
* //for (const CentralHeatPumpSystemModule& central_hp_module : central_hp.modules() )
* //{
* //if ( central_hp_module.handle() == this_central_hp_module->handle() )
* //{
* //result = central_hp;
* //}
* //}
* //}
* }
* return result;
* }
*/
// Convenience functions to return a vector of parent CentralHeatPumpSystemModules
std::vector<CentralHeatPumpSystemModule> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystemModules() const {
std::vector<CentralHeatPumpSystemModule> result;
// Loop on all CentralHeatPumpSystemModules
for ( const CentralHeatPumpSystemModule& central_hp_module : this->model().getConcreteModelObjects<CentralHeatPumpSystemModule>() )
{
// If the ChillerHeaterPerformanceElectricEIR is the same as this one, add it to the result
ChillerHeaterPerformanceElectricEIR chiller = central_hp_module.chillerHeaterModulesPerformanceComponent();
if (chiller.handle() == this->handle())
{
result.push_back(central_hp_module);
}
}
return result;
}
std::vector<CentralHeatPumpSystem> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystems() const {
std::vector<CentralHeatPumpSystem> result;
// TODO: cleanup
//EITHER
//
// Loop on all parent CentralHeatPumpSystemModules
/*
*for (const CentralHeatPumpSystemModule& mod : this->centralHeatPumpSystemModules() )
*{
* // Use the CentralHeatPumpSystemModule::centralHeatPumpSystem() method instead
* // If there's one, add that to result vector
* if ( boost::optional<CentralHeatPumpSystem> central_hp = mod.centralHeatPumpSystem() )
* {
* result.push_back(central_hp.get()):
* }
*}
*/
// OR
//
// loop on all CentralHeatPumpSystems in the model
for ( const CentralHeatPumpSystem& central_hp : this->model().getConcreteModelObjects<CentralHeatPumpSystem>() )
{
// flag to avoid pushing it several times (a CentralHP can have multiple Mods that reference this chillerPerf)
bool is_added = false;
// Loop on each CentralHeatPumpSystemModules
for (const CentralHeatPumpSystemModule& central_hp_module : central_hp.modules() )
{
if (!is_added) {
ChillerHeaterPerformanceElectricEIR chiller = central_hp_module.chillerHeaterModulesPerformanceComponent();
if ( chiller.handle() == this->handle() ) {
result.push_back(central_hp);
is_added = true;
}
}
}
}
return result;
}
} // detail
ChillerHeaterPerformanceElectricEIR::ChillerHeaterPerformanceElectricEIR(const Model& model)
: ParentObject(ChillerHeaterPerformanceElectricEIR::iddObjectType(),model)
{
OS_ASSERT(getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>());
CurveBiquadratic chillerHeaterClgCapFT(model);
chillerHeaterClgCapFT.setCoefficient1Constant(0.950829);
chillerHeaterClgCapFT.setCoefficient2x(3.419327E-02);
chillerHeaterClgCapFT.setCoefficient3xPOW2(2.66642E-04);
chillerHeaterClgCapFT.setCoefficient4y(-1.733397E-03);
chillerHeaterClgCapFT.setCoefficient5yPOW2(-1.762417E-04);
chillerHeaterClgCapFT.setCoefficient6xTIMESY(-3.69198E-05);
chillerHeaterClgCapFT.setMinimumValueofx(4.44);
chillerHeaterClgCapFT.setMaximumValueofx(12.78);
chillerHeaterClgCapFT.setMinimumValueofy(12.78);
chillerHeaterClgCapFT.setMaximumValueofy(29.44);
chillerHeaterClgCapFT.setInputUnitTypeforX("Temperature");
chillerHeaterClgCapFT.setInputUnitTypeforY("Temperature");
chillerHeaterClgCapFT.setOutputUnitType("Dimensionless");
CurveBiquadratic chillerHeaterClgEIRFT(model);
chillerHeaterClgEIRFT.setCoefficient1Constant(0.7362431);
chillerHeaterClgEIRFT.setCoefficient2x(2.136491E-02);
chillerHeaterClgEIRFT.setCoefficient3xPOW2(3.638909E-04);
chillerHeaterClgEIRFT.setCoefficient4y(-4.284947E-03);
chillerHeaterClgEIRFT.setCoefficient5yPOW2(3.389817E-04);
chillerHeaterClgEIRFT.setCoefficient6xTIMESY(-3.632396E-04);
chillerHeaterClgEIRFT.setMinimumValueofx(4.44);
chillerHeaterClgEIRFT.setMaximumValueofx(12.78);
chillerHeaterClgEIRFT.setMinimumValueofy(12.78);
chillerHeaterClgEIRFT.setMaximumValueofy(29.44);
chillerHeaterClgEIRFT.setInputUnitTypeforX("Temperature");
chillerHeaterClgEIRFT.setInputUnitTypeforY("Temperature");
chillerHeaterClgEIRFT.setOutputUnitType("Dimensionless");
CurveBiquadratic chillerHeaterHtgCapFT(model);
chillerHeaterHtgCapFT.setCoefficient1Constant(0.9415266);
chillerHeaterHtgCapFT.setCoefficient2x(5.527431E-02);
chillerHeaterHtgCapFT.setCoefficient3xPOW2(3.573558E-04);
chillerHeaterHtgCapFT.setCoefficient4y(1.258391E-03);
chillerHeaterHtgCapFT.setCoefficient5yPOW2(-6.420546E-05);
chillerHeaterHtgCapFT.setCoefficient6xTIMESY(-5.350989E-04);
chillerHeaterHtgCapFT.setMinimumValueofx(4.44);
chillerHeaterHtgCapFT.setMaximumValueofx(15.56);
chillerHeaterHtgCapFT.setMinimumValueofy(25);
chillerHeaterHtgCapFT.setMaximumValueofy(57.22);
chillerHeaterHtgCapFT.setInputUnitTypeforX("Temperature");
chillerHeaterHtgCapFT.setInputUnitTypeforY("Temperature");
chillerHeaterHtgCapFT.setOutputUnitType("Dimensionless");
CurveBiquadratic chillerHeaterHtgEIRFT(model);
chillerHeaterHtgEIRFT.setCoefficient1Constant(0.2286246);
chillerHeaterHtgEIRFT.setCoefficient2x(2.498714E-02);
chillerHeaterHtgEIRFT.setCoefficient3xPOW2(-1.267106E-05);
chillerHeaterHtgEIRFT.setCoefficient4y(9.327184E-03);
chillerHeaterHtgEIRFT.setCoefficient5yPOW2(5.892037E-05);
chillerHeaterHtgEIRFT.setCoefficient6xTIMESY(-3.268512E-04);
chillerHeaterHtgEIRFT.setMinimumValueofx(4.44);
chillerHeaterHtgEIRFT.setMaximumValueofx(15.56);
chillerHeaterHtgEIRFT.setMinimumValueofy(25);
chillerHeaterHtgEIRFT.setMaximumValueofy(57.22);
chillerHeaterHtgEIRFT.setInputUnitTypeforX("Temperature");
chillerHeaterHtgEIRFT.setInputUnitTypeforY("Temperature");
chillerHeaterHtgEIRFT.setOutputUnitType("Dimensionless");
CurveBicubic chillerHeaterClgEIRFPLR(model);
chillerHeaterClgEIRFPLR.setCoefficient1Constant(0.0);
chillerHeaterClgEIRFPLR.setCoefficient2x(1.22895);
chillerHeaterClgEIRFPLR.setCoefficient3xPOW2(-0.751383);
chillerHeaterClgEIRFPLR.setCoefficient7xPOW3(0.517396);
chillerHeaterClgEIRFPLR.setMinimumValueofx(0.2);
chillerHeaterClgEIRFPLR.setMaximumValueofx(1);
CurveBicubic chillerHeaterHtgEIRFPLR(model);
chillerHeaterHtgEIRFPLR.setCoefficient1Constant(0.0);
chillerHeaterHtgEIRFPLR.setCoefficient2x(1.12853);
chillerHeaterHtgEIRFPLR.setCoefficient3xPOW2(-0.0264962);
chillerHeaterHtgEIRFPLR.setCoefficient7xPOW3(-0.103811);
chillerHeaterHtgEIRFPLR.setMinimumValueofx(0.3);
chillerHeaterHtgEIRFPLR.setMaximumValueofx(1);
bool ok = true;
autosizeReferenceCoolingModeEvaporatorCapacity();
autosizeDesignCondenserWaterFlowRate();
autosizeDesignChilledWaterFlowRate();
ok = setReferenceCoolingModeCOP( 1.5 );
OS_ASSERT(ok);
setReferenceCoolingModeLeavingChilledWaterTemperature( 6.67 );
setReferenceCoolingModeEnteringCondenserFluidTemperature( 29.4 );
setReferenceCoolingModeLeavingCondenserWaterTemperature( 35.0 );
setReferenceHeatingModeCoolingCapacityRatio( 0.74 );
ok = setReferenceHeatingModeCoolingPowerInputRatio( 1.38 );
OS_ASSERT(ok);
setReferenceHeatingModeLeavingChilledWaterTemperature( 6.67 );
setReferenceHeatingModeLeavingCondenserWaterTemperature( 60 );
setReferenceHeatingModeEnteringCondenserFluidTemperature( 29.44 );
setHeatingModeEnteringChilledWaterTemperatureLowLimit( 5 );
ok = setChilledWaterFlowModeType( "VariableFlow" );
OS_ASSERT(ok);
ok = setDesignHotWaterFlowRate( 0.0003525 );
OS_ASSERT(ok);
ok = setCompressorMotorEfficiency( 1 );
OS_ASSERT(ok);
ok = setCondenserType( "WaterCooled" );
OS_ASSERT(ok);
ok = setCoolingModeTemperatureCurveCondenserWaterIndependentVariable( "EnteringCondenser" );
OS_ASSERT(ok);
ok = setCoolingModeCoolingCapacityFunctionOfTemperatureCurve( chillerHeaterClgCapFT );
OS_ASSERT(ok);
ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve( chillerHeaterClgEIRFT );
OS_ASSERT(ok);
ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve( chillerHeaterClgEIRFPLR );
OS_ASSERT(ok);
ok = setCoolingModeCoolingCapacityOptimumPartLoadRatio( 1 );
OS_ASSERT(ok);
ok = setHeatingModeTemperatureCurveCondenserWaterIndependentVariable( "LeavingCondenser" );
OS_ASSERT(ok);
ok = setHeatingModeCoolingCapacityFunctionOfTemperatureCurve( chillerHeaterHtgCapFT );
OS_ASSERT(ok);
ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve( chillerHeaterHtgEIRFT );
OS_ASSERT(ok);
ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve( chillerHeaterHtgEIRFPLR );
OS_ASSERT(ok);
ok = setHeatingModeCoolingCapacityOptimumPartLoadRatio( 1 );
OS_ASSERT(ok);
ok = setSizingFactor( 1 );
OS_ASSERT(ok);
}
ChillerHeaterPerformanceElectricEIR::ChillerHeaterPerformanceElectricEIR(
const Model& model,
const Curve& chillerHeaterClgCapFT,
const Curve& chillerHeaterClgEIRFT,
const Curve& chillerHeaterClgEIRFPLR,
const Curve& chillerHeaterHtgCapFT,
const Curve& chillerHeaterHtgEIRFT,
const Curve& chillerHeaterHtgEIRFPLR
)
: ParentObject(ChillerHeaterPerformanceElectricEIR::iddObjectType(),model)
{
OS_ASSERT(getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>());
bool ok = true;
autosizeReferenceCoolingModeEvaporatorCapacity();
autosizeDesignCondenserWaterFlowRate();
autosizeDesignChilledWaterFlowRate();
ok = setReferenceCoolingModeCOP( 1.5 );
OS_ASSERT(ok);
setReferenceCoolingModeLeavingChilledWaterTemperature( 6.67 );
setReferenceCoolingModeEnteringCondenserFluidTemperature( 29.4 );
setReferenceCoolingModeLeavingCondenserWaterTemperature( 35.0 );
setReferenceHeatingModeCoolingCapacityRatio( 0.74 );
ok = setReferenceHeatingModeCoolingPowerInputRatio( 1.38 );
OS_ASSERT(ok);
setReferenceHeatingModeLeavingChilledWaterTemperature( 6.67 );
setReferenceHeatingModeLeavingCondenserWaterTemperature( 60 );
setReferenceHeatingModeEnteringCondenserFluidTemperature( 29.44 );
setHeatingModeEnteringChilledWaterTemperatureLowLimit( 5 );
ok = setChilledWaterFlowModeType( "VariableFlow" );
OS_ASSERT(ok);
ok = setDesignHotWaterFlowRate( 0.0003525 );
OS_ASSERT(ok);
ok = setCompressorMotorEfficiency( 1 );
OS_ASSERT(ok);
ok = setCondenserType( "WaterCooled" );
OS_ASSERT(ok);
ok = setCoolingModeTemperatureCurveCondenserWaterIndependentVariable( "EnteringCondenser" );
OS_ASSERT(ok);
ok = setCoolingModeCoolingCapacityFunctionOfTemperatureCurve( chillerHeaterClgCapFT );
OS_ASSERT(ok);
ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve( chillerHeaterClgEIRFT );
OS_ASSERT(ok);
ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve( chillerHeaterClgEIRFPLR );
OS_ASSERT(ok);
ok = setCoolingModeCoolingCapacityOptimumPartLoadRatio( 1 );
OS_ASSERT(ok);
ok = setHeatingModeTemperatureCurveCondenserWaterIndependentVariable( "LeavingCondenser" );
OS_ASSERT(ok);
ok = setHeatingModeCoolingCapacityFunctionOfTemperatureCurve( chillerHeaterHtgCapFT );
OS_ASSERT(ok);
ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve( chillerHeaterHtgEIRFT );
OS_ASSERT(ok);
ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve( chillerHeaterHtgEIRFPLR );
OS_ASSERT(ok);
ok = setHeatingModeCoolingCapacityOptimumPartLoadRatio( 1 );
OS_ASSERT(ok);
ok = setSizingFactor( 1 );
OS_ASSERT(ok);
}
IddObjectType ChillerHeaterPerformanceElectricEIR::iddObjectType() {
return IddObjectType(IddObjectType::OS_ChillerHeaterPerformance_Electric_EIR);
}
std::vector<std::string> ChillerHeaterPerformanceElectricEIR::chilledWaterFlowModeTypeValues() {
return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
OS_ChillerHeaterPerformance_Electric_EIRFields::ChilledWaterFlowModeType);
}
std::vector<std::string> ChillerHeaterPerformanceElectricEIR::condenserTypeValues() {
return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
OS_ChillerHeaterPerformance_Electric_EIRFields::CondenserType);
}
std::vector<std::string> ChillerHeaterPerformanceElectricEIR::coolingModeTemperatureCurveCondenserWaterIndependentVariableValues() {
return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeTemperatureCurveCondenserWaterIndependentVariable);
}
std::vector<std::string> ChillerHeaterPerformanceElectricEIR::heatingModeTemperatureCurveCondenserWaterIndependentVariableValues() {
return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeTemperatureCurveCondenserWaterIndependentVariable);
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR::referenceCoolingModeEvaporatorCapacity() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeEvaporatorCapacity();
}
bool ChillerHeaterPerformanceElectricEIR::isReferenceCoolingModeEvaporatorCapacityAutosized() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->isReferenceCoolingModeEvaporatorCapacityAutosized();
}
double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeCOP() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeCOP();
}
double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeLeavingChilledWaterTemperature() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeLeavingChilledWaterTemperature();
}
double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeEnteringCondenserFluidTemperature() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeEnteringCondenserFluidTemperature();
}
double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeLeavingCondenserWaterTemperature() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeLeavingCondenserWaterTemperature();
}
double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeCoolingCapacityRatio() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeCoolingCapacityRatio();
}
double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeCoolingPowerInputRatio() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeCoolingPowerInputRatio();
}
double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeLeavingChilledWaterTemperature() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeLeavingChilledWaterTemperature();
}
double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeLeavingCondenserWaterTemperature() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeLeavingCondenserWaterTemperature();
}
double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeEnteringCondenserFluidTemperature() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeEnteringCondenserFluidTemperature();
}
double ChillerHeaterPerformanceElectricEIR::heatingModeEnteringChilledWaterTemperatureLowLimit() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeEnteringChilledWaterTemperatureLowLimit();
}
std::string ChillerHeaterPerformanceElectricEIR::chilledWaterFlowModeType() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->chilledWaterFlowModeType();
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR::designChilledWaterFlowRate() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->designChilledWaterFlowRate();
}
bool ChillerHeaterPerformanceElectricEIR::isDesignChilledWaterFlowRateAutosized() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->isDesignChilledWaterFlowRateAutosized();
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR::designCondenserWaterFlowRate() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->designCondenserWaterFlowRate();
}
bool ChillerHeaterPerformanceElectricEIR::isDesignCondenserWaterFlowRateAutosized() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->isDesignCondenserWaterFlowRateAutosized();
}
double ChillerHeaterPerformanceElectricEIR::designHotWaterFlowRate() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->designHotWaterFlowRate();
}
double ChillerHeaterPerformanceElectricEIR::compressorMotorEfficiency() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->compressorMotorEfficiency();
}
std::string ChillerHeaterPerformanceElectricEIR::condenserType() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->condenserType();
}
std::string ChillerHeaterPerformanceElectricEIR::coolingModeTemperatureCurveCondenserWaterIndependentVariable() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeTemperatureCurveCondenserWaterIndependentVariable();
}
Curve ChillerHeaterPerformanceElectricEIR::coolingModeCoolingCapacityFunctionOfTemperatureCurve() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeCoolingCapacityFunctionOfTemperatureCurve();
}
Curve ChillerHeaterPerformanceElectricEIR::coolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
}
Curve ChillerHeaterPerformanceElectricEIR::coolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
}
double ChillerHeaterPerformanceElectricEIR::coolingModeCoolingCapacityOptimumPartLoadRatio() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeCoolingCapacityOptimumPartLoadRatio();
}
std::string ChillerHeaterPerformanceElectricEIR::heatingModeTemperatureCurveCondenserWaterIndependentVariable() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeTemperatureCurveCondenserWaterIndependentVariable();
}
Curve ChillerHeaterPerformanceElectricEIR::heatingModeCoolingCapacityFunctionOfTemperatureCurve() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeCoolingCapacityFunctionOfTemperatureCurve();
}
Curve ChillerHeaterPerformanceElectricEIR::heatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
}
Curve ChillerHeaterPerformanceElectricEIR::heatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
}
double ChillerHeaterPerformanceElectricEIR::heatingModeCoolingCapacityOptimumPartLoadRatio() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeCoolingCapacityOptimumPartLoadRatio();
}
double ChillerHeaterPerformanceElectricEIR::sizingFactor() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->sizingFactor();
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeEvaporatorCapacity(double referenceCoolingModeEvaporatorCapacity) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeEvaporatorCapacity(referenceCoolingModeEvaporatorCapacity);
}
void ChillerHeaterPerformanceElectricEIR::autosizeReferenceCoolingModeEvaporatorCapacity() {
getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizeReferenceCoolingModeEvaporatorCapacity();
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeCOP(double referenceCoolingModeCOP) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeCOP(referenceCoolingModeCOP);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeLeavingChilledWaterTemperature(double referenceCoolingModeLeavingChilledWaterTemperature) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeLeavingChilledWaterTemperature(referenceCoolingModeLeavingChilledWaterTemperature);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeEnteringCondenserFluidTemperature(double referenceCoolingModeEnteringCondenserFluidTemperature) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeEnteringCondenserFluidTemperature(referenceCoolingModeEnteringCondenserFluidTemperature);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeLeavingCondenserWaterTemperature(double referenceCoolingModeLeavingCondenserWaterTemperature) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeLeavingCondenserWaterTemperature(referenceCoolingModeLeavingCondenserWaterTemperature);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeCoolingCapacityRatio(double referenceHeatingModeCoolingCapacityRatio) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeCoolingCapacityRatio(referenceHeatingModeCoolingCapacityRatio);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeCoolingPowerInputRatio(double referenceHeatingModeCoolingPowerInputRatio) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeCoolingPowerInputRatio(referenceHeatingModeCoolingPowerInputRatio);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeLeavingChilledWaterTemperature(double referenceHeatingModeLeavingChilledWaterTemperature) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeLeavingChilledWaterTemperature(referenceHeatingModeLeavingChilledWaterTemperature);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeLeavingCondenserWaterTemperature(double referenceHeatingModeLeavingCondenserWaterTemperature) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeLeavingCondenserWaterTemperature(referenceHeatingModeLeavingCondenserWaterTemperature);
}
bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeEnteringCondenserFluidTemperature(double referenceHeatingModeEnteringCondenserFluidTemperature) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeEnteringCondenserFluidTemperature(referenceHeatingModeEnteringCondenserFluidTemperature);
}
bool ChillerHeaterPerformanceElectricEIR::setHeatingModeEnteringChilledWaterTemperatureLowLimit(double heatingModeEnteringChilledWaterTemperatureLowLimit) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeEnteringChilledWaterTemperatureLowLimit(heatingModeEnteringChilledWaterTemperatureLowLimit);
}
bool ChillerHeaterPerformanceElectricEIR::setChilledWaterFlowModeType(const std::string& chilledWaterFlowModeType) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setChilledWaterFlowModeType(chilledWaterFlowModeType);
}
bool ChillerHeaterPerformanceElectricEIR::setDesignChilledWaterFlowRate(double designChilledWaterFlowRate) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setDesignChilledWaterFlowRate(designChilledWaterFlowRate);
}
void ChillerHeaterPerformanceElectricEIR::resetDesignChilledWaterFlowRate() {
getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->resetDesignChilledWaterFlowRate();
}
void ChillerHeaterPerformanceElectricEIR::autosizeDesignChilledWaterFlowRate() {
getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizeDesignChilledWaterFlowRate();
}
bool ChillerHeaterPerformanceElectricEIR::setDesignCondenserWaterFlowRate(double designCondenserWaterFlowRate) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setDesignCondenserWaterFlowRate(designCondenserWaterFlowRate);
}
void ChillerHeaterPerformanceElectricEIR::resetDesignCondenserWaterFlowRate() {
getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->resetDesignCondenserWaterFlowRate();
}
void ChillerHeaterPerformanceElectricEIR::autosizeDesignCondenserWaterFlowRate() {
getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizeDesignCondenserWaterFlowRate();
}
bool ChillerHeaterPerformanceElectricEIR::setDesignHotWaterFlowRate(double designHotWaterFlowRate) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setDesignHotWaterFlowRate(designHotWaterFlowRate);
}
bool ChillerHeaterPerformanceElectricEIR::setCompressorMotorEfficiency(double compressorMotorEfficiency) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCompressorMotorEfficiency(compressorMotorEfficiency);
}
bool ChillerHeaterPerformanceElectricEIR::setCondenserType(const std::string& condenserType) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCondenserType(condenserType);
}
bool ChillerHeaterPerformanceElectricEIR::setCoolingModeTemperatureCurveCondenserWaterIndependentVariable(const std::string& coolingModeTemperatureCurveCondenserWaterIndependentVariable) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeTemperatureCurveCondenserWaterIndependentVariable(coolingModeTemperatureCurveCondenserWaterIndependentVariable);
}
bool ChillerHeaterPerformanceElectricEIR::setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(curve);
}
bool ChillerHeaterPerformanceElectricEIR::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(curve);
}
bool ChillerHeaterPerformanceElectricEIR::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(curve);
}
bool ChillerHeaterPerformanceElectricEIR::setCoolingModeCoolingCapacityOptimumPartLoadRatio(double coolingModeCoolingCapacityOptimumPartLoadRatio) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeCoolingCapacityOptimumPartLoadRatio(coolingModeCoolingCapacityOptimumPartLoadRatio);
}
bool ChillerHeaterPerformanceElectricEIR::setHeatingModeTemperatureCurveCondenserWaterIndependentVariable(const std::string& heatingModeTemperatureCurveCondenserWaterIndependentVariable) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeTemperatureCurveCondenserWaterIndependentVariable(heatingModeTemperatureCurveCondenserWaterIndependentVariable);
}
bool ChillerHeaterPerformanceElectricEIR::setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(curve);
}
bool ChillerHeaterPerformanceElectricEIR::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(curve);
}
bool ChillerHeaterPerformanceElectricEIR::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(curve);
}
bool ChillerHeaterPerformanceElectricEIR::setHeatingModeCoolingCapacityOptimumPartLoadRatio(double heatingModeCoolingCapacityOptimumPartLoadRatio) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeCoolingCapacityOptimumPartLoadRatio(heatingModeCoolingCapacityOptimumPartLoadRatio);
}
bool ChillerHeaterPerformanceElectricEIR::setSizingFactor(double sizingFactor) {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setSizingFactor(sizingFactor);
}
// Reverse lookups
std::vector<CentralHeatPumpSystemModule> ChillerHeaterPerformanceElectricEIR::centralHeatPumpSystemModules() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->centralHeatPumpSystemModules();
}
std::vector<CentralHeatPumpSystem> ChillerHeaterPerformanceElectricEIR::centralHeatPumpSystems() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->centralHeatPumpSystems();
}
/// @cond
ChillerHeaterPerformanceElectricEIR::ChillerHeaterPerformanceElectricEIR(std::shared_ptr<detail::ChillerHeaterPerformanceElectricEIR_Impl> impl)
: ParentObject(std::move(impl))
{}
/// @endcond
boost::optional<double> ChillerHeaterPerformanceElectricEIR::autosizedReferenceCoolingModeEvaporatorCapacity() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizedReferenceCoolingModeEvaporatorCapacity();
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR::autosizedDesignChilledWaterFlowRate() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizedDesignChilledWaterFlowRate();
}
boost::optional<double> ChillerHeaterPerformanceElectricEIR::autosizedDesignCondenserWaterFlowRate() const {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizedDesignCondenserWaterFlowRate();
}
void ChillerHeaterPerformanceElectricEIR::autosize() {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosize();
}
void ChillerHeaterPerformanceElectricEIR::applySizingValues() {
return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->applySizingValues();
}
} // model
} // openstudio
| cpp |
The winter transfer window is open and we have witnessed some great deals and some surprise deals. FC Barcelona is running riots in the transfer market sealing Kevin Prince Boateng on a loan deal and then following it up with De Jong's €90 million done deal.
Roman Abramovich is no bad either. Chelsea has sealed Christian Pulisic and loaned him back to Dortmund while calling Higuain in for reinforcement up front.
Real Madrid made a move and successfully completed the signing of Brahim Diaz from Manchester City.
In a very surprising move, AC Milan managed to bag Genoa's top scorer and one of the top 5 scorers in Serie A, Krzysztof Piątek.
The Polish will stay with AC Milan until 2023. After witnessing these deals, it makes us wonder about the future of these players. Sometimes transfer turns out to be amazing and sometimes the new team is just not suited for the player and they lose form.
Here we take a look at some big-name signings from last year and rate their progress with their new team.
Note: Arrange ascendingly in terms of popularity of the signing and impact of the player.
#10 Theo Walcott (Arsenal to Everton)
The Englishman switched allegiance from North London to Merseyside for a €20 million deal. After switching sides, he also went on to comment that he wasn't enjoying life at Arsenal.
Last season when he arrived at Everton, the Toffees already had Wayne Rooney, Oumar Niasse and young Calvert-Lewin with them. Plus, they also added Cenk Tosun with them. Yet, Walcott, for all the hype he had performed up to the level that people expected from him.
Even though he joined after half-season and made only 13 appearances, he scored three goals and made three assists (highest by any Everton forward in 2017/18).
He also completed at least 2 dribbles per game and made 1 key pass per game. His average number of passes made was second only to Wayne Rooney. Walcott's addition provided the depth that the Toffees needed up front.
This season he has scored three goals and got two assists so far in 19 appearances(starts). The addition of Richarlison sees the Brazilian being the more imposing figure among the forwards.
Richarlison and Walcott have made 21 and 23 appearances each with the Brazilian playing more minutes. In front of goal, Richarlison has been lethal, scoring nine goals.
However, Walcott is much better when it comes to ball control and keeping possession. Richarlison gets dispossessed more and has worse touches than Walcott.
Our conclusion is that Walcott has done more than justice to his price tag and played a valuable role for Everton. After Rooney's departure, he has complemented Richarlison's goal tally with his better control and chance creation.
Verdict: The Englishman, for his price tag, did well adapting last season but has been just about average till now. The Toffees rely more on Richarlison for scoring.
#9 Mario Gomez (Wolfsburg to Stuttgart)
Mario Gomez was on top of the world when he was at Bayern Munich. Super Mario scored for fun when he played for the Bavarians.
Later on, he had an underwhelming spell at Fiorentina. He moved to Besiktas and then to Wolfsburg. But finally, he returned to his very home and the place where he started from, VfB Stuttgart. His transfer fee was just about £2. 7 million.
Despite being 33 and the oldest forward in the Stuttgart roster, Gomez ended the season with eight goals. Although he joined in January, his goal tally was enough to make him the top-scorer of his team.
He also had more passes per game than all the other forwards including, Asano, Donis, and Ginczek.
Mario Gomez is still the leading goal-scorer for Stuttgart with five goals. As Stuttgart struggle at the 16th spot, Mario still has scored almost 35% of his team's goals.
As he is aging, Mario's career is almost in its twilight and he is playing the best he could for his first club.
Although he has scored, there has not been any major impact in the team's performance with his addition this season. Last season though, his goals played a major role in winning some games in March and April.
Verdict: Super Mario can still score but he has not been able to lift his team this season. However, he made match-winning contributions last season. He tips Walcott because of adding more value to the team.
#8 Marc Bartra (Borussia Dortmund to Real Betis)
Former Barcelona man, Marc Bartra moved from Borussia Dortmund to Real Betis for €10. 5 million.
Quique Setien who had experimented with both three and four-man defenses till then made Bartra a regular starter.
Setien mostly used a three-man defense as he does even now. Zouhair Feddal and Aissa Mandi started alongside Bartra in the three-man formation.
From January till the end of the season, Bartra adapted really well to the situation and style that Real Betis employed.
Bartra averaged a massive 2. 4 tackles per game, 2 interceptions per game and almost 6 clearances per game. Even Raphael Varane had averaged only 1 tackle and 1 interception per game.
In 2018/19, Bartra is still a regular starter in the team and plays alongside Mandi and Javi Garcia mostly in the three-man defence.
Even in the new season, he boasts of better stats than both Sergio Ramos and Raphael Varane.
Marc Bartra surely wouldn't have cost a fortune for Real Madrid and yet he has been so good under Setien. His stats speak volumes of his success with Betis. He has been a really good signing for Betis.
Verdict: Bartra has been a good addition to the defensive line and does well whenever he is on the pitch.
#7 Manuel Akanji ( FC Basel to Borussia Dortmund)
Manuel Akanji after some sparkling performances with FC Basel moved to Germany. Borussia Dortmund paid a sum of about €21. 5 million to acquire the services of the Swiss.
Akanji was bought to add depth to the defense of Borussia Dortmund. He played only 10 games last season for Dortmund. If we remove Bayern's 6-0 routing of Dortmund, they conceded only nine in nine matches when Akanji played.
Akanji average two tackles per game in the 2017/18 season, more than Benjamin Pavard and Jerome Boateng, two of Bundesliga's best.
This season Akanji has already featured in 13 out of 18 games for Borussia Dortmund. He has built a solid partnership with Dan Axel Zagadou at the back.
Dortmund has conceded the least number of goals in Bundesliga this season, along with Leipzig and Monchengladbach. (18)
Akanji's comparison with respect to his last season shows his improvement as a defender. His interceptions have gone from 0. 6 to 1. 3 this season.
His tackle rate is at 0. 8 per game and the foul rate is at 0. 2 per game. If he is getting 3 out of four tackles right, then it is amazing, isn't it?
He is still young but after Sokratis left, he has done well to hold the lines along with Zagadou.
Verdict: Akanji has improved massively from last season and hasn't let the void left by Sokratis disturb the team. He is rated higher than Bartra due to his progress and impact on the team.
#6 Olivier Giroud (Arsenal to Chelsea)
After Arsenal acquired the services of Pierre Emerick Aubameyang from Borussia Dortmund, Chelsea confirmed the signing of Olivier Giroud for a fee of €17 million.
Giroud scored only three goals in 13 appearances for Chelsea and had one assist. He only had one key pass per game on an average, which even Alvaro Morata bettered. (1. 1 key passes per game)
Giroud's arrival did not have much of an impact on the already lopsided season for the Blues. He scored on only two of his 13 appearances but the team went on to win both times.
Even this season, Giroud is not any favorite to start. He has only played about 600 minutes in the league out of a possible 2000.
In his 18 appearances, 12 were as a substitute. He has scored only one goal this season and assisted 4 but his average match rating is worse than last season.
(6. 76 last season, 6. 53 this season) His key passes per game are now less than one and so are his dribbles per game.
With Giroud not showing any signs for improvement or making a case to be added to the first team, we cannot expect to see him starting more often.
When Chelsea sign Higuain as a backup striker even though Giroud is present, we can contemplate what the coach and management think of the Frenchman.
Maybe his Chelsea days are numbered as well. However, his signing has not been a hit by any means.
Verdict: Giroud is truly out of sorts in the current Chelsea team and has not lived up to what the management expected from him. He is a top transfer because he was a popular signing.
#5 Lucas Moura (PSG to Tottenham)
Lucas Moura joined the Spurs from PSG for €28. 4 million in the last winter transfer window. Lack of playing time at PSG would have been the main reason behind his move but he did not get any playing time in Tottenham either.
However, he was patient and has played over 1300 minutes in the league. Not only has he played for this much amount of time, but his performances are also up to the mark with his teammates.
He has scored six goals this season. He is not much of a playmaker though. He has only 0. 9 key passes per game and has no assists.
But despite not being the best of passes, he is a great contributor even in the defence. He averages one tackle and one interception per game.
He helps Mauricio Pochettinho's style of changing the starting 11 regularly. When Son Heung-Min or Dele Alli need a rest, Lucas Moura can be put right into the attacking midfield position, left, right or center.
Moura has also started as a center forward this season. He has shown exceptional performances, notably against United in the 3-0 win and against Barcelona in the 1-1 draw.
Moura has shown that he has the quality to start and succeed in Tottenham. We can expect him to improve over time. He has fulfilled the purpose he was bought for, add depth and perform well.
Verdict: A star apart from the fab-four was Tottenham's requirement. We can even call the forwards as fab-five now. Moura has fit right into the team.
#4 Philippe Coutinho (Liverpool to Barcelona)
The most expensive winter transfer in history. Philippe Coutinho joined Barcelona for a sum of €130 million.
Coutinho's start to his Barcelona career was amazing, to say the least. He made 18 appearances for Barcelona while scoring eight goals and creating five assists. He also had 1. 5 key passes per game, 2. 5 dribbles per game and an average match rating of 7. 66.
However, almost one year after he joined Barcelona, even now he couldn't cement his place in the starting lineup.
What is his problem? No one has an exact answer. He is not good playing at the left-wing and neither in the central midfield.
Ousmane Dembele's astounding performances have earned him a place in the starting lineup and Coutinho is under more pressure to perform.
Maybe due to this pressure, he never really looks to play killer through balls. He'd rather pass it sideways to make sure he doesn't make a mistake.
But in Barcelona, they expect players to take risks and also succeed in it. Coutinho doesn't want to be the person to make a mistake.
At the moment, he tries too much all alone. Tries to dribble and cut inside of the defender and then finish with his finesse shot. But that is not enough because that is about everything that he does. No involvement in build-up play is not excusable at Barcelona even for a No. 9.
He had shown some good signs against Eibar but he gave the ball away cheaply yesterday in Copa del Rey which resulted in a Sevilla goal. He had better pull his socks up and start delivering because sooner than later, he will lose his coach's trust.
Verdict: A lot was expected of Coutinho and Barcelona splashed the cash on him. It is not Coutinho's fault entirely, there is absolutely no position where he can replace another player in the team.
#3 Pierre-Emerick Aubameyang (Borussia Dortmund to Arsenal)
One of Borussia Dortmund's biggest exports. Pierre-Emerick Aubameyang joined the Gunners for a sum of €63. 75 million.
Aubameyang got off to a quick start and bagged 10 goals in 13 appearances. He also got 4 assists to go with it. But Arsenal's season was not going very well when Aubameyang came in and thus they couldn't salvage a Champions League spot.
Now that we are in the new season Aubameyang has made several adjustments to the game. In comparison to his last season, he has won almost double aerial duels per game. His passing accuracy (0. 6 to 1. 2) has also increased to 75% from 69%.
Also, it is worth noting that he has lowered the average number of passes per game. In turn, he is making himself well-positioned to receive passes and cutbacks into the box.
He has no defensive contributions as such but he more than makes it up with his offensive game. Aubameyang has bagged 14 goals this season with three assists.
He is only behind Salah. He is in the running for Golden Boot this season and he has impressed under both Wenger and Emery.
Verdict: Aubameyang has been directly involved in 35% of the goals scored by Arsenal in the Premier League. He has been as good as he was last season and has cemented his spot in the starting 11.
#2 Aymeric Laporte (Athletic Bilbao to Manchester City)
When Pep Guardiola demanded this kid from Athletic Bilbao, a few eyebrows were raised. But for Pep Guardiola it is not a new thing.
Ever since he joined City, he has the free hand to demand any player he wants and Sheikh Mansoor would splash some cash on him. That's how it works. But what is different between Guardiola and PSG, is that Guardiola asks for players with potential rather than a big name.
Laporte was just one of the potentials that Guardiola loved. He only made nine appearances in the Premier League last season and he showed his worth in each of them.
City conceded only five goals in the nine games that Laporte played, and that included keeping a clean sheet against Chelsea and restricting Spurs to 1 goal only.
Come this season, Pep has put more trust on Laporte. Alongside John Stones, he is now the first-choice center back for Pep Guardiola with Otamendi moving to the bench.
But the only things that have changed are the minutes given to Laporte and the season. His performances are still the same, ever consistent. He averages the same 0. 9 tackles and 1. 1 interceptions that he did last season. Astounding isn't it?
Laporte's stats show his consistency and he has been ever present in the defense and at times pushes into the midfield as well.
The only person who doesn't trust Laporte as much is Didier Deschamps and he didn't make it to the Nations League Final without him.
Verdict: As good as Aymeric Laporte is, we cannot give him a 10/10. Simply, he has done very well at the back for City, it is not like they don't face shots or counter-attacks. But we cannot have two people with a perfect 10.
#1 Virgil Van Dijk (Southampton to Liverpool)
The best defender in the world at the moment. The best defender in the world this season. There is absolutely no argument against the two statements.
This season, nobody has been better than Virgil Van Dijk in the back end. Neither Ramos, nor Varane, nor Pique or anyone else.
Last summer, Liverpool were trolled heavily for their winter transfer window. They let go off Coutinho and they signed a player who was hardly known to many people.
To add to it, they paid €78. 8 million to land the Dutchman at Anfield, making him the most expensive defender till date. But one year after the deal, Van Dijk has shown everybody that 75 million for him was a bargain.
After Van Dijk's arrival, Liverpool's defense was steadied and looked more than composed. This showed in the remaining league matches and the UEFA Champions League knockout stages.
In the final against Real Madrid, never once was the defense broke or left-behind as such. Two goals were gifted by Karius and one was a flash of brilliance from Bale.
Van Dijk had averaged 1. 3 interceptions and 1. 1 tackles per game last season. This season he averages 1. 1 interceptions and 0. 9 tackles.
But Liverpool seems a far better side especially defensively. In two league games, even Manchester City scored only two past them. Liverpool has the best defensive record in the league and has conceded only 13 goals.
Van Dijk has been a rock at the back. Even if Liverpool concede 20 goals in the remaining 15 games they will have a better defensive record than the last season. With Van Dijk in front of the keeper, even that is just a weak possibility.
Verdict: A perfect signing by Liverpool. Not only are his performances up to the mark but he has steadied the whole defensive line, exactly what Liverpool asked of him. | english |
Vedanta Resources Ltd has extended the deadline for bondholders to express their agreement on the revised terms of the $3.2 billion bonds due between 2024 and 2025, pushing it back to January 2 from the initial deadline of December 27. VRL is seeking bondholders' approval to amend the terms and covenants of its dollar-denominated bonds.
As per reports, the promoter entity will be selling 16 crore Vedanta shares in block deal at an offer price of Rs 258.5 per share on Thursday. Anil Agarwal-led Vedanta Resources, a London-based company, is taking various measures to pay its debt in the past few months.
Mining company Vedanta has declared a 1,850% interim dividend for the financial year 2023-24, totalling Rs 6,877 crore. The dividend would be given as per law, the company said. Vedante reported poor Q4 profits, hit by declining metal prices as revenue from its core aluminium business dropped to 33% from 39% on year.
Thursday was the weekly options expiry day, which did not allow the Nifty50 to violate the level that saw an accumulation of the highest Put open interest. The headline index eventually ended up with a small loss.
The latest outbreak in China that has crippled most of its activities has also forced the factory floor to hit a pause on massive investments aimed at building a chip industry to compete with the US. Amidst this, the supply chain continues to be extremely disrupted and there are no signs of recovery in the near term. In such a scenario, India’s continued effort to incentivise local chip manufacturing can go a long way, not only for domestic needs, but also to grow as an exporter.
The rating agency also said the weakening rupee is credit negative for Indian companies that generate revenue in the domestic currency but depend on US dollar debt to fund their operations and also credit negative for companies with dollar-denominated costs but rupee-based revenue."However, we expect the negative credit implications to be limited or temporary," Moody's said.
Nationalist Congress Party (NCP) leaders Supriya Sule, Jitendra Awhad and state unit president Jayant Patil are scheduled to join Gandhi on the way and will also attend the public rally. Former Maharashtra minister and Shiv Sena leader Aaditya Thackeray will join the yatra on Friday.
"Is Maharashtra Pakistan that you drove the project to Gujarat? What mistake has the youth of Maharashtra done?" questioned Aaditya. He was speaking at an event to pay respect to social reformer and his great-grandfather Keshav Thackeray, also known as Prabhodankar Thackeray. Fadnavis on Friday said the neighbouring state was "no Pakistan".
In the wake of a massive central government push to bridge a growing shortage for the chips that run electronic devices, states are jostling in their bid to bag investments into semiconductor and display fab plants which can go up to $5 billion each.
Asish Narayan has been appointed as the resolution professional (RP) in the case by a division bench led by judicial member Suchitra Kanuparthi and a technical member Chandra Bhan Singh. The next date of hearing is 20 September.
The MCA has clarified that they are not seeking any reliefs against the corporate debtor (companies) but they are impleaded and the reliefs are only against erstwhile promoters and key managerial personnel of the group but not against the company.
A two judge bench headed by officiating NCLAT chairman Ashok Iqbal Singh Cheema has stayed the implementation of the resolution plan and adjourned the matter to September 7 till which date the company will be continued to be managed by the resolution professional.
"People should wait for better entry opportunities in commodity stocks because this is the only segment which has actually been moving up in a durable fashion in the entire market," says Sandip Sabharwal.
Industry executives said factory floors, which traditionally required workers to operate heavy machinery, are turning more mechanised with the use of ergonomic process lines, robotics, allowing companies to hire a more diverse workforce.
Vedanta Aluminium plans to meet officials of the environment ministry "soon" to chalk out its strategy related to expansion of alumina refinery in Orissa, following rejection of its review petition by the Orissa high court last week.
| english |
Carbohydrates or carbs are blamed for causing health problems in people, like obesity and weight gain. So many people tend to avoid them. But, to function in a proper way, the body needs an optimum amount of carbohydrates. Your body can signal you in many ways to indicate that it lacks carbohydrates. Here are seven signs of carbohydrate deficiency.
Many healthy carbohydrates like whole grains, fruits, vegetables, and nuts contain fibre. Fibre helps to keep you full for longer and keeps digestive issues at bay. So when you are not eating enough plant-based carbs, you are lacking fibre in your diet, which can cause constipation.
The primary function of carbohydrates is to provide energy to your body. By the action of enzymes, carbohydrates are broken down into glucose, the energy source for your body. After glucose is produced, some of it is utilised immediately, and the rest is stored in the liver, muscles, and cells for future use. So, if you do not eat enough carbs, you will not have enough energy. As a result, you might feel weak, exhausted, tired, and fatigued.
Since a lack of carbohydrates can make you energy deficient, you tend to feel fatigued. This impact is also visible on the brain, and you are not able to think and concentrate properly due to a drop in your energy levels.
You can suffer from nutrient deficiency when you lack carbohydrates. Nutrient deficiency can make you prone to illnesses both in the short and long run. By not eating healthy carbs, you may miss out on vitamin C, which helps to boost the immune system; folate, which helps to keep the heart healthy; vitamin A, which keeps your eyes healthy.
You might end up with bad breath when you are too low on carbs. The chemicals that are generated in the breath when the body burns fat are a common cause of bad breath. This is another sign that your body is undergoing ketosis, the fat-burning process.
Ketosis can occur when you reduce your carbohydrate intake drastically. It happens when the body doesn’t have enough glucose for energy. The body uses stored fat instead at this point. These partly-digested fats start the ketosis process, during which you can experience mental fatigue, headache, poor breath, and nausea. Apart from these issues, ketosis can also raise the amount of uric acid in the body. This increases your chance of developing kidney stones and joint swelling, which can be severe.
You may also feel pain in your head when your body lacks carbohydrates. People who are on a keto diet might have experienced this. This also happens when glucose is unavailable to make energy, and your body initiates ketosis.
While unhealthy carbohydrate options like refined, sugared, and processed ones can be avoided, you can include plant-based carbs in your diet as they will provide you with fibre, which is good for your gut. | english |
function solve() {
let inputText = document.getElementById('arr').value;
let inputArray = JSON.parse(inputText);
let resultElement = document.getElementById('result');
for (let i = 0; i < inputArray.length; i++) {
let result = Number(inputArray[i]) * inputArray.length;
let pElement = document.createElement('p');
pElement.textContent = `${i} -> ${result}`;
resultElement.appendChild(pElement)
}
} | javascript |
{
"prod_path": "src/java/org/apache/commons/math/stat/UnivariateImpl.java",
"prod_sha1": "1be3d32358b8e26ef078a68c235b8abcd761a74d",
"repository": "commons-math",
"prod_qual": "org/apache/commons/math/stat/UnivariateImpl.java",
"prod_time": {
"$date": 1055796144000
},
"prod_typ": "EDIT",
"sample_type": "NEGATIVE",
"test_path": "src/test/org/apache/commons/math/stat/UnivariateImplTest.java",
"test_qual": "org/apache/commons/math/stat/UnivariateImplTest.java",
"add_annotation_line": 0,
"add_call_line": 44,
"add_classname_line": 3,
"add_condition_line": 24,
"add_field_line": 13,
"add_import_line": 0,
"add_packageid_line": 0,
"add_parameter_line": 23,
"add_return_line": 38,
"del_annotation_line": 0,
"del_call_line": 41,
"del_classname_line": 3,
"del_condition_line": 21,
"del_field_line": 13,
"del_import_line": 0,
"del_packageid_line": 0,
"del_parameter_line": 20,
"del_return_line": 35,
"test_typ": "Non"
} | json |
Supply will likely be affected in areas including North Delhi, Northwest Delhi, West Delhi and parts of South Delhi. Production at the 90 MGD water treatment plant at Chandrawal and 120 MGD water treatment plant at Wazirabad have been impacted due to a fall in the water level at Wazirabad pond.
- Since April 30, it was the fourth time that Delhi requested Haryana for additional water.
- Haryana Chief Minister Manohar Lal Khattar said that the Delhi government has been lying on matter of water.
New Delhi: Once again the water supply in the national capital will take a hit as production is being affected at the Haiderpur and Bawana water treatment plants.
A note was issued by the Delhi Jal Board on Saturday which stated that the clear water production has been affected from water treatment plants at Haiderpur phase-I, phase-II and Bawana due to depletion of pond level at Wazirabad and maximum possible diversion towards Wazirabad from CLC (Carrier Lined Channel), and flow fluctuation in DSB (Delhi Sub-Branch), also at intake Haiderpur excessive floating materials in CLC/DSB. Water from Haryana to Delhi is brought by the CLC and DSB. Around 200 MGD (million gallons per day) of water is produced at the water treatment plant at Haiderpur and 20 MGD of water is produced at Bawana, reported The Indian Express.
Supply will likely be affected in areas including North Delhi, Northwest Delhi, West Delhi and parts of South Delhi. Production at the 90 MGD water treatment plant at Chandrawal and 120 MGD water treatment plant at Wazirabad have been impacted due to a fall in the water level at Wazirabad pond. As per the Delhi Jal Board, the water at the Wazirabad pond on Saturday was the lowest so far in the season at 668. 3 ft against the required level of 674. 5 ft. On May 17, the water level at Wazirabad pond was 669 ft and the Yamuna was running dry, then, the Delhi Jal Board wrote to the Haryana Irrigation Department and requested an additional 150 cusecs of water to be released into the river. Since April 30, it was the fourth time that Delhi requested Haryana for additional water. The water production at Wazirabad and Chandrawal had fallen by 55 MGD as per the letter. The letter stated that there was a shortage of 120 cusecs of water as Delhi is not getting flow from river Yamuna. On May 17, Haryana Chief Minister Manohar Lal Khattar said that the Delhi government has been lying on matter of water. And that, it is being given 1050 cusecs of water as its share.
The Haryana Irrigation Department responded to the request by the Delhi Jal Board for additional water on May 12. It stated that Haryana is supplying full share of water to Delhi and if there is any shortage of water at Wazirabad it is solely due to internal mismanagement of water by the Delhi Jal Board and Haryana has not role in it.
Manipur Unrest: CM N Biren Singh Hints At Involvement Of 'External Forces' In Ethnic Violence, Calls It 'Pre-Planned' | english |
{
"vorgangId": "75443",
"VORGANG": {
"WAHLPERIODE": "18",
"VORGANGSTYP": "Kleine Anfrage",
"TITEL": "Ernteausfälle und Hungersnöte aufgrund von Klimawandel",
"INITIATIVE": "Fraktion <NAME>",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": [
{
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "18/9174",
"DRS_TYP": "Kleine Anfrage",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/091/1809174.pdf"
},
{
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "18/9306",
"DRS_TYP": "Antwort",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/093/1809306.pdf"
}
],
"EU_DOK_NR": "",
"SACHGEBIET": [
"Umwelt",
"Landwirtschaft und Ernährung",
"Entwicklungspolitik"
],
"SCHLAGWORT": [
"Entschädigung",
"Entwicklungszusammenarbeit",
"Ernährungs- und Landwirtschaftsorganisation der Vereinten Nationen",
{
"_fundstelle": "true",
"__cdata": "Ernteschaden"
},
{
"_fundstelle": "true",
"__cdata": "Hunger"
},
"Klimaschutz",
{
"_fundstelle": "true",
"__cdata": "Klimawandel"
},
"Lebensmittelversorgung"
],
"ABSTRAKT": "Aufrufe der UN-Landwirtschaftsorganisation (FAO) zur Leistung zusätzlicher Hilfen zur Begegnung von Hungersnöten, geleistete Hilfen, Mittelbereitstellung, insb. aus dem Etat der Entwicklungszusammenarbeit, jährlicher Beitrag für Sofortprogramme sowie langfristige Projekte, Mittel der Entwicklungszusammenarbeit für klimabezogene Maßnahmen; Ernteausfälle in Deutschland aufgrund klimatischer Schwankungen und Höhe der Entschädigungszahlungen \r\n(insgesamt 10 Einzelfragen)"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": [
{
"ZUORDNUNG": "BT",
"URHEBER": "Kleine Anfrage, Urheber : Fraktion DIE LINKE ",
"FUNDSTELLE": "13.07.2016 - BT-Drucksache 18/9174",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/091/1809174.pdf",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Ralph",
"NACHNAME": "Lenkert",
"FUNKTION": "MdB",
"FRAKTION": "DIE LINKE",
"AKTIVITAETSART": "Kleine Anfrage"
},
{
"VORNAME": "Niema",
"NACHNAME": "Movassat",
"FUNKTION": "MdB",
"FRAKTION": "DIE LINKE",
"AKTIVITAETSART": "Kleine Anfrage"
}
]
},
{
"ZUORDNUNG": "BT",
"URHEBER": "Antwort, Urheber : Bundesregierung, Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung (federführend)",
"FUNDSTELLE": "01.08.2016 - BT-Drucksache 18/9306",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/093/1809306.pdf"
}
]
}
}
| json |
{
"vorgangId": "49824",
"VORGANG": {
"WAHLPERIODE": "17",
"VORGANGSTYP": "Schriftliche Frage",
"TITEL": "Verstoß gegen das europäische Wettbewerbsrecht durch die Neuregelung der Überlassungspflichten im Kreislaufwirtschaftsgesetz; Unterbindung der illegalen Entsorgung von Altfahrzeugen",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": {
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "17/11787",
"DRS_TYP": "Schriftliche Fragen",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/117/1711787.pdf"
},
"EU_DOK_NR": "",
"SCHLAGWORT": [
{
"_fundstelle": "true",
"__cdata": "Altfahrzeug"
},
"Europäische Union",
"Illegale Abfallbeseitigung",
{
"_fundstelle": "true",
"__cdata": "Kreislaufwirtschaftsgesetz"
},
"Wettbewerbsrecht"
],
"ABSTRAKT": "Originaltext der Frage(n): \r\n \r\nBesteht nach Auffassung der Bundesregierung die Gefahr, dass die Regelungen der Überlassungspflichten im neuen Kreislaufwirtschaftsgesetz gegen das europäische Wettbewerbsrecht verstoßen, und wie ist die Haltung der Bundesregierung in dieser Frage? \r\n \r\nWelche Maßnahmen will die Bundesregierung ergreifen, um den illegalen Export von Altautos zu verhindern?"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": {
"ZUORDNUNG": "BT",
"URHEBER": "Schriftliche Frage/Schriftliche Antwort ",
"FUNDSTELLE": "07.12.2012 - BT-Drucksache 17/11787, Nr. 122, 123",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/117/1711787.pdf",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Gerd",
"NACHNAME": "Bollmann",
"FUNKTION": "MdB",
"FRAKTION": "SPD",
"AKTIVITAETSART": "Frage"
},
{
"VORNAME": "Ursula",
"NACHNAME": "Heinen-Esser",
"FUNKTION": "Parl. Staatssekr.",
"RESSORT": "Bundesministerium für Umwelt, Naturschutz und Reaktorsicherheit",
"AKTIVITAETSART": "Antwort"
}
]
}
}
}
| json |
In a cricket tour that's caused all kinds of problems for the visiting Indians, they now find themselves 1-0 down in a three-game ODI series. Can they draw level in Paarl today? To find out, here's our guide to watch a South Africa vs India live stream and catch ODI cricket action online no matter where you are in the world.
Live stream: Disney Plus Hotstar (IN) | SuperSport (SA) | Sky Sports (UK) | Kayo Sports FREE trial (AU) | Willow TV via Sling TV (US)
After a magnificent Test series victory, the Proteas took their momentum into Wednesday's first ODI and eased to a 31-run victory. In large part, that was thanks to splendid centuries from Rassie van der Dussen and captain Temba Bavuma. Despite 50s from Shikhar Dhawan, Shardul Tahkur and disposed former captain Virat Kohli, they never really looked in the chase.
But this India team are a resilient bunch, and they've shown time and again that they have strength in depth. If they choose to ring the changes for this 2nd ODI at Boland Park, the fresh faces will be desperate to bring parity to the series score.
Will South Africa seal the series, of can KL Rahul's men turn the tide and level things up? Find out by following our guide to find a reliable 2022 South Africa vs India cricket live stream and watch every six and wicket online from anywhere.
In India, South Africa, the UK, Australia, New Zealand or the US? We've got you covered with your official broadcasting options below.
But if you're out of the country and are still desperate to tune into certain matches, you'll quickly find that online access is geo-blocked. In order to get around that (and assuming it complies with the Ts&Cs of the broadcaster in question), you can download and use a VPN.
We've taken the time to try out all the biggest VPN providers and we found ExpressVPN to be the pick of the bunch. It works with lots of devices and offers super fast connections across its many servers.
Throw in its robust set of security features and ExpressVPN is the best all-round VPN for streaming - and perhaps best of all, it has a 30-day money back guarantee plus 3 months FREE when you subscribe for a year.
Access ExpressVPN via your laptop, iPhone, tablet, Android phone, PlayStation, Xbox and plenty more. Express is a do-it-all service that also benefits from 24/7 customer support.
Star Sports subscribers in India can watch the South Africa ODI series live either via the Star Sports TV channels or by getting a Disney+ Hotstar streaming subscription.
Play gets underway at 2pm IST for each ODI.
Star Sports 1/1 HD will have English commentary. You can also catch all the South Africa vs India action on Star Sports 1 Hindi/1 Hindi HD, Star Sports Kannada, Star Sports Tamil, and Star Sports Telugu.
The Disney Plus Hotstar prices changed recently. The Disney Plus Hotstar new plans start at Rs 499 instead of Rs 399 (VIP) though the all-access content plan remains the same at Rs 1,499.
Those of you wanting to live stream South Africa vs India on the move will need to use the Hotstar app, which is available via the web, Android, iOS, and Apple TV.
- The best data plans to catch all the live action (India-only)
Cricket fans looking to watch the Proteas vs India 1st ODI in South Africa can catch the action on SuperSport.
Play is set to get underway at 10.30am SAST on each fixture of the series.
And if you're not going to be able to watch on your TV, you can also tune in via the network's streaming service for PC and Mac, as well as via SuperSport's dedicated app.
You can watch South Africa vs India via via Sky Sports and its dedicated Sky Sports Cricket channel, with play set to begin at 8.30am GMT during each ODI.
Sky Sports subscribers also get to watch on the move using the Sky Go app, which is available on nearly all modern phones, tablets, laptops, PCs and consoles.
For those without Sky, a better option may be to pick up a Now TV Sky Sports Monthly Pass, which includes all 11 channels.
To access your usual streaming service from outside the UK, you'll need to download a good VPN, as detailed above.
South Africa vs India live stream: where to watch cricket in the US (and Canada)
In the US, play gets underway at 3.30am ET / 12.30am PT each morning/night of the South Africa vs India ODI series.
South Africa vs India is being shown by dedicated cricket streaming service Willow TV, which is available from a number of cable providers in the US and Canada. Willow TV subscribers can also use their cable provider’s login details on willow.tv to stream the cricket online there.
A better option for those looking for an alternative to cable would be to opt for a cord-cutting streaming service like Sling TV.
If you already have Sling, you can add Willow TV for an extra $5 for one month. And if you don't, then you can currently give it a try by getting a free 3-day free trial on Sling.
Cricket fans Down Under can watch South Africa vs India on Fox Sports and via Foxtel - play starts at 7.30pm AEDT for each match.
If you don't have Fox as part of a pay TV package, your best option is to sign up for the excellent Kayo Sports streaming service.
It features no lock-in contracts and gives you access to over 50 other sports including the NRL, soccer, F1, NFL... the list goes on! Handy if you don't want to go all-out on Fox.
Better still, Kayo offers a FREE two-week trial!
After that, the Basic Package costs $25 per month and allows users to stream across two devices simultaneously. The service also offers a Premium Package, which provides three concurrent streams for $35 per month.
Don't forget, you can take your cricket coverage abroad with you as well. For those wanting to watch home coverage of sports from overseas, a good VPN is the solution.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Adam was formerly the Content Director of Subscriptions and Services at Future, meaning that he oversaw many of the articles TechRadar produces about antivirus software, VPN, TV streaming, broadband and mobile phone contracts - from buying guides and deals news, to industry interest pieces and reviews. Adam has now dusted off his keyboard to write articles for the likes of TechRadar, T3 and Tom's Guide.
| english |
{
"id": "d336-70",
"text": "Mr, <NAME>\nJune 15, 1954\nTIME ANYONE SUGGESTED THAT WE GET OUT OF THE OPERATING BUSINESS. ANY TIME\nTHAT YOU HAVE A BUSINESS THAT IS OPERATING YOU CAN MAKE MONEY AND YOU CAN\nSUPPORT OTHER THINGS. YOU CAN HIDE A MULTITUDE OF SINS BEHIND THE TAPE NET¬\nWORK AND I THINK IT WOULD BE VERY FOOLISH TO ALLOW IT TO PASS TO OTHER HANDS\nEVEN THOUGH I REALIZE IT IS A TREMENDOUS DRAIN ON THE HEADQUARTERS STAFF.\nI DIDN’T MEAN TO BE SO LONG-WINDED BUT I FEEL VERY STRONGLY ABOUT THIS.\nI KNOW YOU AND OTHERS DO TOO. I KNOW IT IS MERELY A QUESTION OF GETTING SOME\nFAITHFULS TOGETHER AND I WOULD BE HAPPY TO WORK WITH YOU TO TRY TO MAKE THOSE\nPEOPLE WORK TOGETHER ON THIS MOST VITAL ISSUE.\nJSMgw\nDlRECTOR ,\nWBAA\n—fc> jgJW"
} | json |
{"dataset_id": "deabeb9b-7a37-4062-a1e0-8fcef7909609", "dataset_version": "0321dbde969d2f5d6b533e35b5c5c51ac0b15758", "type": "directory", "children": [{"type": "dataset", "name": "3T_multiresolution_fmri", "path": "original/3T_multiresolution_fmri", "dataset_id": "5b1081d6-84d7-11e8-b00a-a0369fb55db0", "dataset_version": "b623351b43eb2715331ac59ad4cf41682e84ff7d"}, {"type": "dataset", "name": "3T_structural_mri", "path": "original/3T_structural_mri", "dataset_id": "1882e2e6-fbbf-4ade-a65f-3a1615235f51", "dataset_version": "e5d2f8368fc5f6717d8ef131041c6d943298d0c7"}, {"type": "dataset", "name": "7T_multiresolution_fmri", "path": "original/7T_multiresolution_fmri", "dataset_id": "3a8648b3-7df8-413f-8efb-4d39040ac174", "dataset_version": "10e23aafa8271f742e9022a3522d9a88d7fe30cf"}, {"type": "dataset", "name": "phase2", "path": "original/phase2", "dataset_id": "5eaff716-54eb-11e8-803d-a0369f7c647e", "dataset_version": "72f835ada046bd0479009ea0ff933b30a95b0076"}], "path": "original", "name": "original"} | json |
New Delhi: As the government responded to the allegations of four Supreme Court judges with a studied silence, Congress president Rahul Gandhi called the points raised by the judges "extremely important" that "must be looked into carefully". Mr Gandhi's brief remarks came after the party said it was "deeply perturbed" by today's developments and asked the top court's judges to jointly take up the issues flagged by the four judges.
- Congress said it is "deeply perturbed by these developments"
The Congress also asked that the petition concerning the death of Judge BH Loya should be entrusted to the senior-most judges of the Supreme Court, "who should ensure that under their supervision there is a thorough and impartial investigation of the case by an independent SIT (special investigation team)".
Rahul Gandhi said he wanted to make a statement as it was a "sensitive and important issue".
The BJP, however, accused the Congress of politicising the "internal affairs" of the Supreme Court. "None of us should politicise issues of judiciary and this is an advice to Congress party. The people of this country are watching Congress party exposing itself," BJP spokesperson Sambit Patra said.
The four judges, who are most-senior at the top court after the Chief Justice - said that "things are not in order" with what they described as "the administration of the Supreme Court". An independent judiciary is essential for a functioning democracy, they said. Asked if they believed the Chief Justice should be impeached, they said, "Let the nation decide. "
The four judges, who acknowledged that it was unprecedented for them to address the media, said they had raised their concerns about assignment of cases with the Chief Justice today. When asked if their complaints include the case of the death of a CBI judge, Loya, "yes" said Justice Gogoi. He however declined to elaborate.
Judge Loya was hearing a case that accused BJP president Amit Shah of murder when he died in Nagpur in December 2014. His family has alleged that his death was unnatural and came after he was offered 100 crores as a bribe to rule in favour of the BJP leader. Medical records show Judge Loya died of a cardiac arrest.
But the Congress appeared to target the government when it underlined that one of points that the judges had specifically highlighted was the "the long silence of the government of India to the memorandum of procedure that was finalised by the Supreme Court". The Congress also held the delay responsible for the nearly 40 per cent vacancies in the judiciary that it said, led to delay in justice delivery to citizens.
The second was, the party said in a statement, what was being described as 'selectively' assigning cases "to the benches of their preference without any rational basis for such assignment".
The Congress also called for an end to selective assignment of cases. "Cases that have far reaching implications to society and government must be heard. . . by the senior-most judges of the Supreme Court," the party said.
The Congress or its chief said nothing on reports that it was considering a petition to impeach the top judge. Congress sources said it's "too early and at present it's not being considered. " | english |
Occupying a place of pride in the world of literature, Mirza Asadullah Baig Khan, who wrote under the pen name ‘Ghalib’ is one of the most quotable Urdu poets whose sher or couplets relate with almost all situations of life. Born on December 27, 1797 in Agra’s Kala Mahal, Ghalib belonged to a family descending from Aibak Turks who moved to Samarkand (modern-day Uzbekistan) after the downfall of Seljuk kings.
He came to Delhi as a married 13-year-old boy and left behind a treasure of quotes that will long be memorised, narrated and cherished generations after generations. During the last years of the Mughal Empire, Ghalib was a prominent Urdu and Persian poet who was appointed as the poet tutor of Bahadur Shah Zafar II and of Prince Fakhr-ud Din Mirza, eldest son of Bahadur Shah II.
Despite being made an important courtier of the last Mughal Emperor Bahadur Shah Zafar II, Ghalib had proclaimed that he would gain fame only after his death and rightly so. The fame and glory that evaded him during his lifetime has now turned his poems and writings immortal as they act as the best life coach.
On Mirza Ghalib’s 223rd birth anniversary, here’s remembering the legendary Urdu poet and the epitome of Ganga-Jamuni tehzeeb with these 20 couplets that capture the pathos of love or are highly popular for holding relevance even today:
I will cry a thousand times, why should someone complain?
Translation: Nothing now could even make me smile,
(Couplets and translations credit: Rekhta org. )
Mirza Ghalib’s poetry and prose are distinguished for his sparkling wit, tough ratiocination and his innovations in technique and diction. He died in his rented accommodation in Old Delhi’s Ballimaran which was declared a heritage site by the Archaeological Survey of India.
This haveli, now known as Ghalib ki Haveli, was a gift to Mirza Ghalib by a physician or ‘hakim’ who was smitten by his work. It was this house that witnessed the poet pen his Urdu and Persian ‘diwans’ and after his death in 1869, the hakim would sit there every evening, refusing anyone to enter the building.
Located in the Gali Qasim Jan of Ballimaran, Old Delhi, the haveli’s walls are smeared with life-size portraits of the legendary poet and his couplets preserved in hand-written form or painted to house the memorial museum. Ghalib’s sculpture, books and other housing objects related to him also adorn the large columned-compound of the haveli.
Irrespective of your literary interests, you cannot be in Delhi and afford to miss the essence of 19th century Urdu poet Mirza Ghalib who was buried in Nizamuddin. Exuding the lifestyle and architecture of the Mughal era, which was on a decline then, Ghalib ki haveli or Ghalib’s mansion is a must-visit for all poetry lovers and travel enthusiasts. | english |
{
"name": "ytdl-splitter-core",
"version": "1.0.4",
"description": "Module to download YouTube videos as separate audio files, using the tracklist provided on the description of the video or CUE files.",
"main": "index.js",
"scripts": {
"test": "exit 0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/raltamirano/ytdl-splitter-core.git"
},
"keywords": [
"cue",
"split",
"audio",
"mp3",
"download",
"youtube",
"video"
],
"author": "<NAME> <<EMAIL>> (https://github.com/raltamirano)",
"license": "MIT",
"bugs": {
"url": "https://github.com/raltamirano/ytdl-splitter-core/issues"
},
"homepage": "https://github.com/raltamirano/ytdl-splitter-core#readme",
"dependencies": {
"avconv": "^3.0.1",
"chaining-tool": "0.0.4",
"cue-parser": "0.0.3",
"sanitize-filename": "^1.4.2",
"ytdl-core": "^0.6.0"
}
}
| json |
Make your ad stand out!
Get up to 20 times more responses by applying Ad Promotions.
Select one or more options.
BundleSell faster for less!
casio scientific 991ex original (thailand)
| english |
package com.pratamawijaya.retrofit20;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import com.pratamawijaya.retrofit20.data.RetrofitHelper;
import com.pratamawijaya.retrofit20.model.Contributor;
import java.util.List;
import retrofit.Call;
import retrofit.Callback;
import retrofit.Response;
public class MainActivity extends AppCompatActivity {
private RetrofitHelper api;
private ProgressDialog progressDialog;
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
progressDialog = new ProgressDialog(this);
progressDialog.setMessage("Loading...");
api = new RetrofitHelper();
//Observable<List<Contributor>> observable = api.getService().contributors("square", "retrofit");
//
//observable.observeOn(AndroidSchedulers.mainThread())
// .subscribe(new Subscriber<List<Contributor>>() {
// @Override public void onCompleted() {
//
// }
//
// @Override public void onError(Throwable e) {
//
// }
//
// @Override public void onNext(List<Contributor> contributors) {
// for (Contributor data : contributors)
// Timber.d("data :" + data.getLogin());
// }
// });
//api.getService()
// .contributors("square", "retrofit")
// .subscribeOn(Schedulers.newThread())
// .observeOn(AndroidSchedulers.mainThread())
// .subscribe(new Observer<List<Contributor>>() {
// @Override public void onCompleted() {
// progressDialog.dismiss();
// }
//
// @Override public void onError(Throwable e) {
// Timber.e("error : " + e.toString());
// }
//
// @Override public void onNext(List<Contributor> contributors) {
// for (Contributor data : contributors)
// Log.d("data", "" + data.getLogin());
// }
// });
Call<List<Contributor>> call = api.getService().contributors("square", "retrofit");
progressDialog.show();
call.enqueue(new Callback<List<Contributor>>() {
@Override public void onResponse(Response<List<Contributor>> response) {
progressDialog.dismiss();
for (Contributor data : response.body())
Log.d("data", "" + data.getLogin());
}
@Override public void onFailure(Throwable t) {
progressDialog.dismiss();
}
});
call.cancel();
}
@Override public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
| java |
package com.xiao.o2o.exception;
public class ProductOperationException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 5584346780287780978L;
public ProductOperationException(String msg) {
super(msg);
}
}
| java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.