text
stringlengths
1
1.04M
language
stringclasses
25 values
{ "name": "validity-compose", "description": "Compose a number of validators together to use as one", "version": "1.0.1", "main": "validator.js", "scripts": { "lint": "eslint -f unix .", "pretest": "npm-run-all lint", "test": "mocha", "coverage": "nyc npm-run-all test", "prepublish": "npm-run-all coverage" }, "publishConfig": { "registry": "http://registry.npmjs.org" }, "author": "<NAME> <<EMAIL>>", "license": "ISC", "dependencies": { "async-each-series": "^1.1.0" }, "devDependencies": { "eslint": "^1.3.1", "istanbul": "^0.3.18", "mocha": "^6.1.4", "npm-run-all": "^4.1.5", "nyc": "^14.1.1", "validity": "^1.1.1", "validity-integer": "^1.2.0", "validity-required": "^1.0.0" }, "repository": { "type": "git", "url": "<EMAIL>:serby/validity-compose" } }
json
var RoutingController = function( Context, Actions, Modelbuilder ){ Context.Actions = Actions; Context.Model = Modelbuilder(); };
javascript
New Delhi: Chief Justice of India NV Ramana on Saturday stressed that lakhs of people in India remain bereft of quality legal advice due to high corporate prices. He also highlighted the difficult judicial challenges like deficient infrastructure, shortage of administrative staff, and huge vacancies of judges in the country. While speaking at a function organised by the Bar Council of India to felicitate him, CJI NV Ramana said that a majority of women advocates struggle in the profession and very few women find representation at the top. After 75 years of independence, one would expect at least 50% women representation at all levels but we have been able to achieve only 11 per cent at the Supreme Court bench, he said. The Supreme Court, which came into being on January 26, 1950, has seen very few women judges since its inception. Prior to the appointment of Justices Kohli, Nagarathna and Trivedi, only eight women, starting with Justice M Fathima Beevi in 1989, have been made judges of the top court. The CJI then said, "Common people cannot afford quality legal advice at corporate prices, which is an area of concern. Even though we are strongly providing access to justice, lakhs of people in India are unable to approach courts to seek remedy. " "The judicial system is facing difficult challenges like deficient infrastructure, shortage of administrative staff & huge vacancies of judges. India needs National Judicial Infrastructure Corporation. During my high court days, I've seen that women don't have toilets," he added. Talking about the shortcomings in the judiciary, the Chief Justice of India asserted that he has prepared a voluminous report, collecting information from every nook and corner of the country detailing how many court buildings, chambers, and facilities that we have to provide to the Bar and women lawyers. "After one week, I will present it to the law minister," he confirmed.
english
<reponame>dkm/ds323x-rs<gh_stars>0 extern crate embedded_hal_mock as hal; use hal::i2c::Transaction as I2cTrans; use hal::spi::Transaction as SpiTrans; mod common; use common::{ destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR, }; extern crate ds323x; use ds323x::{ Alarm1Matching as A1M, Alarm2Matching as A2M, DayAlarm1, DayAlarm2, Error, Hours, NaiveTime, WeekdayAlarm1, WeekdayAlarm2, }; #[macro_export] macro_rules! _set_invalid_alarm_test { ($name:ident, $method:ident, $create_method:ident, $destroy_method:ident, $( $value:expr ),+) => { #[test] fn $name() { let mut dev = $create_method(&[]); assert_invalid_input_data!(dev.$method($($value),*)); $destroy_method(dev); } }; } macro_rules! set_invalid_alarm_test { ($name:ident, $method:ident, $( $value:expr ),+) => { mod $name { use super::*; _set_invalid_alarm_test!( cannot_set_invalid_ds3231, $method, new_ds3231, destroy_ds3231, $($value),* ); _set_invalid_alarm_test!( cannot_set_invalid_ds3232, $method, new_ds3232, destroy_ds3232, $($value),* ); _set_invalid_alarm_test!( cannot_set_invalid_ds3234, $method, new_ds3234, destroy_ds3234, $($value),* ); } }; } mod alarm1 { use super::*; set_invalid_alarm_test!( day_invalid_s, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::H24(1), minute: 1, second: 60 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_min, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::H24(1), minute: 60, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_second, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::H24(1), minute: 59, second: 60 }, A1M::SecondsMatch ); set_invalid_alarm_test!( day_invalid_minute, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::H24(1), minute: 60, second: 10 }, A1M::MinutesAndSecondsMatch ); set_invalid_alarm_test!( day_invalid_h, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::H24(24), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_h_hmasm, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::H24(24), minute: 1, second: 1 }, A1M::HoursMinutesAndSecondsMatch ); set_invalid_alarm_test!( day_invalid_am1, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::AM(0), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_am2, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::AM(13), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_pm1, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::PM(0), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_pm2, set_alarm1_day, DayAlarm1 { day: 1, hour: Hours::PM(13), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_d1, set_alarm1_day, DayAlarm1 { day: 0, hour: Hours::H24(1), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( day_invalid_d2, set_alarm1_day, DayAlarm1 { day: 32, hour: Hours::H24(1), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_s, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::H24(1), minute: 1, second: 60 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_min, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::H24(1), minute: 60, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_h, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::H24(24), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_h_hmasm, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::H24(24), minute: 1, second: 1 }, A1M::HoursMinutesAndSecondsMatch ); set_invalid_alarm_test!( wd_invalid_am1, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::AM(0), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_am2, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::AM(13), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_pm1, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::PM(0), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_pm2, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::PM(13), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_d1, set_alarm1_weekday, WeekdayAlarm1 { weekday: 0, hour: Hours::H24(1), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_d2, set_alarm1_weekday, WeekdayAlarm1 { weekday: 32, hour: Hours::H24(1), minute: 1, second: 1 }, A1M::AllMatch ); set_invalid_alarm_test!( wd_invalid_sec_sm, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::H24(1), minute: 1, second: 60 }, A1M::SecondsMatch ); set_invalid_alarm_test!( wd_invalid_min_masm, set_alarm1_weekday, WeekdayAlarm1 { weekday: 1, hour: Hours::H24(1), minute: 60, second: 1 }, A1M::MinutesAndSecondsMatch ); } mod alarm2 { use super::*; set_invalid_alarm_test!( day_invalid_min_mm, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::H24(1), minute: 60 }, A2M::MinutesMatch ); set_invalid_alarm_test!( day_invalid_min, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::H24(1), minute: 60 }, A2M::AllMatch ); set_invalid_alarm_test!( day_invalid_h, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::H24(24), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( day_invalid_h_hamm, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::H24(24), minute: 1 }, A2M::HoursAndMinutesMatch ); set_invalid_alarm_test!( day_invalid_am1, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::AM(0), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( day_invalid_am2, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::AM(13), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( day_invalid_pm1, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::PM(0), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( day_invalid_pm2, set_alarm2_day, DayAlarm2 { day: 1, hour: Hours::PM(13), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( day_invalid_d1, set_alarm2_day, DayAlarm2 { day: 0, hour: Hours::H24(1), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( day_invalid_d2, set_alarm2_day, DayAlarm2 { day: 32, hour: Hours::H24(1), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_min_mm, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::H24(1), minute: 60 }, A2M::MinutesMatch ); set_invalid_alarm_test!( wd_invalid_min, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::H24(1), minute: 60 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_h, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::H24(24), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_h_hmm, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::H24(24), minute: 1 }, A2M::HoursAndMinutesMatch ); set_invalid_alarm_test!( wd_invalid_am1, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::AM(0), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_am2, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::AM(13), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_pm1, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::PM(0), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_pm2, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::PM(13), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_d1, set_alarm2_weekday, WeekdayAlarm2 { weekday: 0, hour: Hours::H24(1), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_d2, set_alarm2_weekday, WeekdayAlarm2 { weekday: 32, hour: Hours::H24(1), minute: 1 }, A2M::AllMatch ); set_invalid_alarm_test!( wd_invalid_minute, set_alarm2_weekday, WeekdayAlarm2 { weekday: 1, hour: Hours::H24(1), minute: 60 }, A2M::HoursAndMinutesMatch ); } macro_rules! _set_values_test { ($name:ident, $method:ident, $create_method:ident, $destroy_method:ident, $transactions:expr, $( $value:expr ),+) => { #[test] fn $name() { let trans = $transactions; let mut dev = $create_method(&trans); dev.$method($($value),*).unwrap(); $destroy_method(dev); } }; } macro_rules! set_values_test { ($name:ident, $method:ident, $i2c_transactions:expr, $spi_transactions:expr, $( $value:expr ),+) => { mod $name { use super::*; _set_values_test!( can_set_ds3231, $method, new_ds3231, destroy_ds3231, $i2c_transactions, $($value),* ); _set_values_test!( can_set_ds3232, $method, new_ds3232, destroy_ds3232, $i2c_transactions, $($value),* ); _set_values_test!( can_set_ds3234, $method, new_ds3234, destroy_ds3234, $spi_transactions, $($value),* ); } }; } macro_rules! set_alarm_test { ($name:ident, $method:ident, $register:ident, [ $( $registers:expr ),+ ], $( $value:expr ),+) => { set_values_test!($name, $method, [ I2cTrans::write(DEV_ADDR, vec![Register::$register, $( $registers ),*]) ], [ SpiTrans::write(vec![Register::$register + 0x80, $( $registers ),*]) ], $($value),* ); }; } const AM: u8 = BF::ALARM_MATCH; mod alarm1_day { use super::*; set_alarm_test!( h24, set_alarm1_day, ALARM1_SECONDS, [4, 3, 2, 1], DayAlarm1 { day: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::AllMatch ); set_alarm_test!( am, set_alarm1_day, ALARM1_SECONDS, [4, 3, 0b0100_0010, 1], DayAlarm1 { day: 1, hour: Hours::AM(2), minute: 3, second: 4 }, A1M::AllMatch ); set_alarm_test!( pm, set_alarm1_day, ALARM1_SECONDS, [4, 3, 0b0110_0010, 1], DayAlarm1 { day: 1, hour: Hours::PM(2), minute: 3, second: 4 }, A1M::AllMatch ); set_alarm_test!( match_hms_naivetime, set_alarm1_hms, ALARM1_SECONDS, [4, 3, 2, AM | 1], NaiveTime::from_hms(2, 3, 4) ); set_alarm_test!( match_hms, set_alarm1_day, ALARM1_SECONDS, [4, 3, 2, AM | 1], DayAlarm1 { day: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::HoursMinutesAndSecondsMatch ); set_alarm_test!( match_hms_ignore_incorrect_day, set_alarm1_day, ALARM1_SECONDS, [4, 3, 2, AM | 1], DayAlarm1 { day: 0, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::HoursMinutesAndSecondsMatch ); set_alarm_test!( match_ms_ignore_invalid_hour, set_alarm1_day, ALARM1_SECONDS, [4, 3, AM | 0, AM | 1], DayAlarm1 { day: 1, hour: Hours::H24(24), minute: 3, second: 4 }, A1M::MinutesAndSecondsMatch ); set_alarm_test!( match_ms, set_alarm1_day, ALARM1_SECONDS, [4, 3, AM | 2, AM | 1], DayAlarm1 { day: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::MinutesAndSecondsMatch ); set_alarm_test!( match_ms_ignore_incorrect_day, set_alarm1_day, ALARM1_SECONDS, [4, 3, AM | 2, AM | 1], DayAlarm1 { day: 0, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::MinutesAndSecondsMatch ); set_alarm_test!( match_s, set_alarm1_day, ALARM1_SECONDS, [4, AM | 3, AM | 2, AM | 1], DayAlarm1 { day: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::SecondsMatch ); set_alarm_test!( match_s_ignore_incorrect_min, set_alarm1_day, ALARM1_SECONDS, [4, AM | 0, AM | 2, AM | 1], DayAlarm1 { day: 1, hour: Hours::H24(2), minute: 60, second: 4 }, A1M::SecondsMatch ); set_alarm_test!( match_ops, set_alarm1_day, ALARM1_SECONDS, [AM | 4, AM | 3, AM | 2, AM | 1], DayAlarm1 { day: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::OncePerSecond ); } mod alarm1_weekday { use super::*; set_alarm_test!( h24, set_alarm1_weekday, ALARM1_SECONDS, [4, 3, 2, BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::AllMatch ); set_alarm_test!( am, set_alarm1_weekday, ALARM1_SECONDS, [4, 3, 0b0100_0010, BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::AM(2), minute: 3, second: 4 }, A1M::AllMatch ); set_alarm_test!( pm, set_alarm1_weekday, ALARM1_SECONDS, [4, 3, 0b0110_0010, BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::PM(2), minute: 3, second: 4 }, A1M::AllMatch ); set_alarm_test!( match_hms_ignore_incorrect_wd, set_alarm1_weekday, ALARM1_SECONDS, [4, 3, 2, AM | BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 0, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::HoursMinutesAndSecondsMatch ); set_alarm_test!( match_hms, set_alarm1_weekday, ALARM1_SECONDS, [4, 3, 2, AM | BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::HoursMinutesAndSecondsMatch ); set_alarm_test!( match_ms, set_alarm1_weekday, ALARM1_SECONDS, [4, 3, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::MinutesAndSecondsMatch ); set_alarm_test!( match_s, set_alarm1_weekday, ALARM1_SECONDS, [4, AM | 3, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::SecondsMatch ); set_alarm_test!( match_s_ignore_incorrect_min, set_alarm1_weekday, ALARM1_SECONDS, [4, AM | 0, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::H24(2), minute: 60, second: 4 }, A1M::SecondsMatch ); set_alarm_test!( match_ops, set_alarm1_weekday, ALARM1_SECONDS, [AM | 4, AM | 3, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::H24(2), minute: 3, second: 4 }, A1M::OncePerSecond ); set_alarm_test!( match_ops_ignore_incorrect_sec, set_alarm1_weekday, ALARM1_SECONDS, [AM | 0, AM | 3, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm1 { weekday: 1, hour: Hours::H24(2), minute: 3, second: 60 }, A1M::OncePerSecond ); } mod alarm2_day { use super::*; set_alarm_test!( h24, set_alarm2_day, ALARM2_MINUTES, [3, 2, 1], DayAlarm2 { day: 1, hour: Hours::H24(2), minute: 3 }, A2M::AllMatch ); set_alarm_test!( am, set_alarm2_day, ALARM2_MINUTES, [3, 0b0100_0010, 1], DayAlarm2 { day: 1, hour: Hours::AM(2), minute: 3 }, A2M::AllMatch ); set_alarm_test!( pm, set_alarm2_day, ALARM2_MINUTES, [3, 0b0110_0010, 1], DayAlarm2 { day: 1, hour: Hours::PM(2), minute: 3 }, A2M::AllMatch ); set_alarm_test!( match_hm_naivetime, set_alarm2_hm, ALARM2_MINUTES, [3, 2, AM | 1], NaiveTime::from_hms(2, 3, 0) ); set_alarm_test!( match_hm, set_alarm2_day, ALARM2_MINUTES, [3, 2, AM | 1], DayAlarm2 { day: 1, hour: Hours::H24(2), minute: 3 }, A2M::HoursAndMinutesMatch ); set_alarm_test!( match_hm_ignore_incorrect_day, set_alarm2_day, ALARM2_MINUTES, [3, 2, AM | 1], DayAlarm2 { day: 0, hour: Hours::H24(2), minute: 3 }, A2M::HoursAndMinutesMatch ); set_alarm_test!( match_m, set_alarm2_day, ALARM2_MINUTES, [3, AM | 2, AM | 1], DayAlarm2 { day: 1, hour: Hours::H24(2), minute: 3 }, A2M::MinutesMatch ); set_alarm_test!( match_m_ignore_invalid_h, set_alarm2_day, ALARM2_MINUTES, [3, AM | 0, AM | 1], DayAlarm2 { day: 1, hour: Hours::H24(25), minute: 3 }, A2M::MinutesMatch ); set_alarm_test!( match_opm, set_alarm2_day, ALARM2_MINUTES, [AM | 3, AM | 2, AM | 1], DayAlarm2 { day: 1, hour: Hours::H24(2), minute: 3 }, A2M::OncePerMinute ); set_alarm_test!( match_opm_ignore_incorrect_min, set_alarm2_day, ALARM2_MINUTES, [AM | 0, AM | 2, AM | 1], DayAlarm2 { day: 1, hour: Hours::H24(2), minute: 60 }, A2M::OncePerMinute ); } mod alarm2_weekday { use super::*; set_alarm_test!( h24, set_alarm2_weekday, ALARM2_MINUTES, [3, 2, BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::H24(2), minute: 3 }, A2M::AllMatch ); set_alarm_test!( am, set_alarm2_weekday, ALARM2_MINUTES, [3, 0b0100_0010, BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::AM(2), minute: 3 }, A2M::AllMatch ); set_alarm_test!( pm, set_alarm2_weekday, ALARM2_MINUTES, [3, 0b0110_0010, BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::PM(2), minute: 3 }, A2M::AllMatch ); set_alarm_test!( match_hm, set_alarm2_weekday, ALARM2_MINUTES, [3, 2, AM | BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::H24(2), minute: 3 }, A2M::HoursAndMinutesMatch ); set_alarm_test!( match_hm_ignore_incorrect_wd, set_alarm2_weekday, ALARM2_MINUTES, [3, 2, AM | BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 0, hour: Hours::H24(2), minute: 3 }, A2M::HoursAndMinutesMatch ); set_alarm_test!( match_m, set_alarm2_weekday, ALARM2_MINUTES, [3, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::H24(2), minute: 3 }, A2M::MinutesMatch ); set_alarm_test!( match_m_ignore_invalid_hour, set_alarm2_weekday, ALARM2_MINUTES, [3, AM | 0, AM | BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::H24(24), minute: 3 }, A2M::MinutesMatch ); set_alarm_test!( match_opm, set_alarm2_weekday, ALARM2_MINUTES, [AM | 3, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::H24(2), minute: 3 }, A2M::OncePerMinute ); set_alarm_test!( match_opm_ignore_incorrect_min, set_alarm2_weekday, ALARM2_MINUTES, [AM | 0, AM | 2, AM | BF::WEEKDAY | 1], WeekdayAlarm2 { weekday: 1, hour: Hours::H24(2), minute: 60 }, A2M::OncePerMinute ); }
rust
<filename>data/2609348.json {"title": "GIF:蒂尔尼破门阿森纳两球领先,沃特福德危!", "source": "虎扑", "time": "2020-07-26 23:29:37", "content": "虎扑7月26日讯 英超最后一轮比赛,阿森纳主场迎战沃特福德,比赛第24分钟,蒂尔尼跟上破门,阿森纳2-0领先沃特福德,如果沃特福德不能追平,那么将铁定降级。\n\n (编辑:姚凡)"}
json
Prospective anime fans, or older anime fans, are more than likely aware of streaming services like Crunchyroll and Netflix. They have been practically the exclusive worldwide streaming homes for many anime like Jojo's Bizarre Adventure, Mobile Suit Gundam: The Witch from Mercury, and many others. These two streaming services practically dominate the anime market. But with the passage of time come newer, lesser-known, and specialized anime streaming services. Ever wanted to watch something that cannot be found on either site, at least without resorting to hundreds of dollars for full series or piracy? Well, this article will have that topic covered. This article is going to go into alternative anime streaming services, where to locate them, and how to access them. Disclaimer: This article will discuss other streaming services aside from the mainstream of Crunchyroll and Netflix and will try to provide locations and links. Any opinions are exclusive to the author. RetroCrush is an anime streaming service offering hours of classic anime, from Revolutionary Girl Utena to the entirety of City Hunter to the Urusei Yatsura movie collection, the works of Osamu Tezuka, and Bubblegum Crisis. While it does offer a premium tier at $4.99 per month or $50 per year, mostly to skip ads and access uncensored content, the majority of the content is free, and the ads are infrequent enough to not really be noticeable. It can be found at retrocrush.tv and enjoyed for free with a registered login. The upsides are the amount of older content on offer that would normally swing $60 and up physically, a 24/7 "live feed" of older anime and older Tokusatsu programming and other dramas, and the free tier's amount of content. The downsides are that the library, even with the premium content, isn't all that huge, at approximately 100 titles total as of the time of writing, with 33 titles gated off for premium (including Utena and Kite). Still, a good value if one is looking for older content. RetroCrush is available on the following platforms: A streaming service that might be familiar already is HiDive. HiDive offers exclusive newer anime like Tokyo Mew Mew New and Oshi No KO, as well as older favorites like Legend of the Galactic Heroes. Its prices are $4.99 per month or $47.99 per year. HiDive is much more known for its library, with more mature titles like Made in Abyss and Elfen Lied and shojo anime like Gunbuster, My Little Monster, and Nana. It's available worldwide and was formed as a result of the discontinuation of Anime Network Online and Anime Strike. It likewise supports up to three profiles per account. The downsides are the lack of a free tier aside from a seven-day free trial, no offline download support, and a slightly barebones mobile app. It's still cheaper than Crunchyroll and offers a yearly fee that is one-time as opposed to monthly. The other downside is the more niche library of 500 and more titles, though it is still bigger than RetroCrush. HiDive can be streamed on the following platforms: - Roku devices. Although a majority of Funimation's catalog has since been absorbed by Crunchyroll alongside VRV, the website and services continue to operate alongside the app. That's more than enough to earn it a spot on the list. Funimation's plans go from Premium ($7.99 per month or $79.99 per year) to Premium Plus ($9.99 a month or $99.99 per year). Premium Plus offers ad-free access to the entirety of the Funimation library, subtitles included, with five simultaneous streams from one account and downloads for offline viewing on supported mobile devices. It likewise offers a free tier and access to tons of Funimation-based English-dubbed anime like Akira, Ranking of Kings, and My Hero Academia, as well as subtitles for those dubbed anime. The downside is that it's been absorbed into Crunchyroll, so most of its newer programming is located there. The app was plagued with inconsistencies when it was working, such as delays, lag, and crashing of the app or streaming device. Likewise, the free tier ends after 1 or 2 episodes without a subscription. Despite the downsides, Funimation's app is still available on multiple platforms: - Chromecast, Samsung, and LG Smart TVs. Believe it or not, the website that's otherwise known as anime's version of Metacritic does have its own streaming service. It's one of the cheapest ones at $2.99 monthly or the annual plan of $29.99 per year with two months free. The website comes with a number of features similar to Crunchyroll. There are anime to watch in video form, from popular ones like Naruto to Demon Slayer to obscure ones like Asagiri no Miko, among others. They likewise have a manga library, though they require the purchase of digital manga volumes before viewing is possible. What they don't host on their own website, they link outward or show where it can be viewed (i.e., Crunchyroll, HiDive, etc.). It also includes detailed information about all the anime there. The downside is that the manga volumes need to be purchased, though previews are present. The library of anime isn't very big and usually depends on region availability. The website is mostly about cataloging one's favorite anime and manga, and there's not really huge availability outside of app stores for phones. MyAnimeList is available in these forms: - Google Play. Chances are that some anime fans are unaware that Amazon Prime Video, in addition to having a large collection of series and movies, also has plenty of anime on it. The price point is pretty high at $14.99 per month, but the Prime membership comes with all kinds of benefits, like saving on shipping and other things. The pros are aplenty. Plenty of series that aren't on Netflix or Crunchyroll find their home on Amazon Prime, including the entirety of Rebuild of Evangelion, Digimon Adventure Tri, and several others. It's not the only thing, as stated, as the anime collection mostly consists of older or obscure anime like Monster Rancher and Sonic X, among others. The negatives are that the anime collection is divided into "watch with Prime" (meaning no ads), "watch as hosted on other sites with ads" (Freevee, Hidive), or "rent or buy" (usually for movies or popular series they don't have the rights to stream). This means that while the collection is vast, not all of it is going to be hosted on Amazon's servers. Amazon Prime Video is available on: - Samsung, Sony, and LG Smart TVs. Another example of a streaming service that provides more than just anime is Hulu. They are considered on par with Netflix, having an anime catalog that consists of films, series, and other things. The cost varies by package plan. Starting at $5.99 per month, there are other tiers, including Hulu for $59.9 per year, Hulu (no ads) for $11.99 per month, Hulu + Live TV for $64.99 per month, Hulu + Live TV (no ads) for 70.99 per month, etc. The positives are abundant, with it being an alternative to Netflix and Crunchyroll. Hulu has its own exclusives like Tengoku-Daimakyo, Bleach: Thousand Year Blood War, classics like Akira and the original Sailor Moon, and modern hits like My Hero Academia and Chainsaw Man. It has subtitles and dubs, and likewise captions for each, including its English dubs, something vital that Crunchyroll tends to lack. The big negative is the locations it serves and regional demands. It only serves primarily the United States, Puerto Rico, military bases, and some locations in Japan. While there are ways to bypass region locking, the best methods require Amazon Fire Sticks and access to VPNs. Hulu can currently be watched on: - Amazon Fire TV (Fire OS 5.0 and later) - Apple TV (4th generation and later) - Echo Show (8, 10, and 15) - Nintendo Switch (R1 and Lite) CONTV's library is not likely to be as vast as other anime streaming websites on this list, but it is still worth mentioning considering it caters to older, nerdy tastes. The anime library is small, but the service makes up for it in other ways that will be highlighted, starting with the VIP membership, which costs $6.99 per month plus tax. The service has the MST3K library, comic issues from independent labels as well as some mainstream ones like Star Trek and Battlestar Galactica to read online, comic convention-based reality TV, Godzilla films, the Highlander series of films and series, and plenty of older anime from Bokurano to GTO to Gunslinger Girl and Fushigi Yuugi. The price is likewise fairly reasonable, and it has a free tier. The downside is, again, the region locking. As of now, CONTV is mainly servicing the United States. That tends to make it difficult to branch out to other countries and recommend them. The limited anime library is likewise for an older audience but still has some mainstream titles like Yu-Gi-Oh! and Fist of the North Star. That said, CONTV is available on: If CONtv is geek chic or niche, then IQIYI fits a very niche genre of Asian entertainment. Based in Singapore, the streaming service focuses on broadcasting pan-Asian entertainment, from Chinese and Korean dramas to anime adaptations of light novels, to an international audience. Standard monthly costs are $8.99; premium is $11.99 monthly, $89.99 yearly, and the highest tier is $119.99 on VIP. New members can take advantage of discounts, putting premium and standard costs at $1.99 and the first year at $71.99 for premium and VIP. The service has plenty of exclusives to entice prospective viewers, from various shows subtitled and dubbed to a lot of anime. Most of the anime skews toward original adaptations of light novels like Be My Wife, shonen like Devour Eternity, and even comedies like My Demon Tyrant and Sweet Baby. Effectively, they're either original or more obscure titles. The downside of this particular streaming service is arguably its high price point. The company itself has landed in hot water owing to being banned in Taiwan and having several investigations launched into it for fraud allegations. The streaming service has only had one complaint that was held up in court and since fixed: charging pre-screening fees for dramas. IQIYI is available on: One of the completely free and legal on-demand video streaming platforms with a large selection of anime is Tubi. It's free across major app platforms and may not be strictly anime-focused, but it has a large library of it. It's completely free, since a lot of it is ad-supported. The positives are the large library OF mainstream shonen like Jojo's Bizarre Adventure to Naruto, Redline to Full Metal Panic, and other classics like the original Ghost in the Shell movie and Lupin the Third. It's a very fun mix of anime across the 1990s, 2000s, and 2010s that are all free and clear to watch with subtitles for all. Also, being free and entirely legal helps. The areas this streaming service serves cover Australia, Canada, Costa Rica, Ecuador, El Salvador, Guatemala, Mexico, Panama, and the United States. A downside is the aforementioned advertisements, but they're infrequent enough to not be noticeable. Registration is optional, so users can view Tubi without registration if they choose. Tubi is available on: This ends the list of specialized anime streaming services aside from Crunchyroll or Netflix. Although this list covers only nine, these nine meticulously researched anime streaming services will help anyone who needs an alternative. After all, more competition can only be a good thing when it comes to having anime viewing options. Some options, like 9anime or Kissanime and its affiliates, would be copyright workarounds and encourage piracy, while Anime-Planet, a legal and free streaming site, links its content using Crunchyroll servers. Viz would be an option too if it had its own anime streaming service and didn't just have manga subscriptions. If any other options are missing, readers can list them in the comments.
english
<filename>LeviathanTest/TestFiles/StringOperations.cpp //! \file Testing for methods in StringOperations #include "Common/StringOperations.h" #include "catch.hpp" using namespace Leviathan; TEST_CASE("StringOperations::IsCharacterWhitespace", "[string]") { CHECK(StringOperations::IsCharacterWhitespace(' ')); CHECK(StringOperations::IsCharacterWhitespace('\t')); SECTION("random normal characters aren't whitespace") { CHECK(!StringOperations::IsCharacterWhitespace('a')); CHECK(!StringOperations::IsCharacterWhitespace('5')); CHECK(!StringOperations::IsCharacterWhitespace('K')); } } TEST_CASE("StringOperations::IsCharacterQuote", "[string]") { CHECK(StringOperations::IsCharacterQuote('\'')); CHECK(StringOperations::IsCharacterQuote('"')); CHECK(!StringOperations::IsCharacterQuote('a')); } TEST_CASE("StringOperations::RemoveExtension", "[string]") { SECTION("Works with empty input") { CHECK(StringOperations::RemoveExtension<std::string>("", false) == ""); CHECK(StringOperations::RemoveExtension<std::string>("", true) == ""); } SECTION("Works with extensionless files") { CHECK(StringOperations::RemoveExtension<std::string>("file", false) == "file"); CHECK(StringOperations::RemoveExtension<std::string>("file", true) == "file"); } SECTION("Basic filename cutting") { CHECK(StringOperations::RemoveExtension<std::string>("file.txt", false) == "file"); CHECK(StringOperations::RemoveExtension<std::string>("a.txt", false) == "a"); } SECTION("Path is left intact when not stripped") { CHECK(StringOperations::RemoveExtension<std::string>("/path/to/file.txt", false) == "/path/to/file"); CHECK(StringOperations::RemoveExtension<std::string>("path/file.txt", false) == "path/file"); } SECTION("Path stripping works") { SECTION("Just one level deep path") { SECTION("UNIX paths") { CHECK(StringOperations::RemoveExtension<std::string>("path/file.txt", true) == "file"); } SECTION("Windows paths") { CHECK(StringOperations::RemoveExtension<std::string>("path\\file.txt", true) == "file"); } } SECTION("multilevel paths") { SECTION("UNIX paths") { CHECK(StringOperations::RemoveExtension<std::string>( "/path/to/file.txt", true) == "file"); } SECTION("Windows paths") { CHECK(StringOperations::RemoveExtension<std::string>( "\\path\\to\\file.txt", true) == "file"); } SECTION("Mixed paths") { CHECK(StringOperations::RemoveExtension<std::string>( "/path\\to/file.txt", true) == "file"); CHECK(StringOperations::RemoveExtension<std::string>( "\\path/to\\file.txt", true) == "file"); } } SECTION("Without extension in the path") { CHECK(StringOperations::RemoveExtension<std::string>("/path/to/file", true) == "file"); } } } TEST_CASE("StringOperations::RemovePath", "[string]") { SECTION("Just one level deep path") { SECTION("UNIX paths") { CHECK(StringOperations::RemovePath<std::string>("path/file.txt") == "file.txt"); } SECTION("Windows paths") { CHECK(StringOperations::RemovePath<std::string>("path\\file.txt") == "file.txt"); } } SECTION("multilevel paths") { SECTION("UNIX paths") { CHECK( StringOperations::RemovePath<std::string>("/path/to/file.txt") == "file.txt"); } SECTION("Windows paths") { CHECK(StringOperations::RemovePath<std::string>("\\path\\to\\file.txt") == "file.txt"); } SECTION("Mixed paths") { CHECK( StringOperations::RemovePath<std::string>("/path\\to/file.txt") == "file.txt"); CHECK(StringOperations::RemovePath<std::string>("\\path/to\\file.txt") == "file.txt"); } } } TEST_CASE("StringOperations::MakeString", "[string]") { REQUIRE(sizeof(WINDOWS_LINE_SEPARATOR) - 1 == 2); REQUIRE(sizeof(UNIVERSAL_LINE_SEPARATOR) - 1 == 1); REQUIRE(WINDOWS_LINE_SEPARATOR[0] == '\r'); REQUIRE(WINDOWS_LINE_SEPARATOR[1] == '\n'); REQUIRE(WINDOWS_LINE_SEPARATOR[2] == '\0'); SECTION("Win separator wstring") { std::wstring separator; StringOperations::MakeString( separator, WINDOWS_LINE_SEPARATOR, sizeof(WINDOWS_LINE_SEPARATOR)); CHECK(separator == L"\r\n"); } SECTION("Win separator string") { std::string separator; StringOperations::MakeString( separator, WINDOWS_LINE_SEPARATOR, sizeof(WINDOWS_LINE_SEPARATOR)); CHECK(separator == "\r\n"); } } // First test duplicated for wstring and string others are string only as wstring versions // *should* also work if they pass TEST_CASE("Wstring cutting", "[string]") { std::wstring teststring = L"hey nice string -ql-you have -qlhere or -ql-mql-yaybe-ql- oh no! " "-qltest -ql-over or not-ql?"; std::vector<std::wstring> exampleresult; exampleresult.reserve(5); exampleresult.push_back(L"hey nice string "); exampleresult.push_back(L"you have -qlhere or "); exampleresult.push_back(L"mql-yaybe"); exampleresult.push_back(L" oh no! -qltest "); exampleresult.push_back(L"over or not-ql?"); std::vector<std::wstring> result; StringOperations::CutString(teststring, std::wstring(L"-ql-"), result); REQUIRE(result.size() == exampleresult.size()); for(size_t i = 0; i < exampleresult.size(); i++) { REQUIRE(result[i] == exampleresult[i]); } } TEST_CASE("String cutting", "[string]") { std::string teststring = "hey nice string -ql-you have -qlhere or -ql-mql-yaybe-ql- oh no! " "-qltest -ql-over or not-ql?"; std::vector<std::string> exampleresult; exampleresult.reserve(5); exampleresult.push_back("hey nice string "); exampleresult.push_back("you have -qlhere or "); exampleresult.push_back("mql-yaybe"); exampleresult.push_back(" oh no! -qltest "); exampleresult.push_back("over or not-ql?"); std::vector<std::string> result; StringOperations::CutString(teststring, std::string("-ql-"), result); REQUIRE(result.size() == exampleresult.size()); for(size_t i = 0; i < exampleresult.size(); i++) { REQUIRE(result[i] == exampleresult[i]); } SECTION("Single value gets copied to output") { std::vector<std::string> tagparts; StringOperations::CutString<std::string>("tag", ";", tagparts); REQUIRE(tagparts.size() == 1); CHECK(tagparts[0] == "tag"); } SECTION("Single character line cutting") { std::vector<std::string> result; StringOperations::CutLines<std::string>("victory sign\npeace sign\nv", result); CHECK(result == std::vector<std::string>({"victory sign", "peace sign", "v"})); } SECTION("Empty CutString") { std::vector<std::string> result; CHECK(StringOperations::CutString<std::string>("", "a", result) == false); REQUIRE(result.size() == 1); CHECK(result[0] == ""); } } TEST_CASE("String text replacing ", "[string]") { SECTION("Nice spaced out delimiters") { const std::string teststring = "hey nice string -ql-you have -qlhere or " "-ql-mql-yaybe-ql- oh no! -qltest -ql-over " "or not-ql?"; const std::string correctresult = "hey nice string hey_whatsthis?you have -qlhere or hey_whatsthis?mql-yaybehey_" "whatsthis? oh no! -qltest hey_whatsthis?over or not-ql?"; std::string result = StringOperations::Replace<std::string>(teststring, "-ql-", "hey_whatsthis?"); REQUIRE(result == correctresult); } SECTION("Replace after first character") { CHECK(StringOperations::Replace<std::string>("u%2FCute%20L%2F66%2F153370%2F01.jpg", "%2F", "/") == "u/Cute%20L/66/153370/01.jpg"); } } TEST_CASE("String whitespace trimming", "[string]") { const std::string testdata = " a asd hey nice ?! "; std::string result = testdata; const std::string correctresult = "a asd hey nice ?!"; StringOperations::RemovePreceedingTrailingSpaces(result); REQUIRE(result == correctresult); } TEST_CASE("String whitespace trimming without any whitespace", "[string]") { SECTION("Single letter") { std::string result = "s"; StringOperations::RemovePreceedingTrailingSpaces(result); CHECK(result == "s"); } SECTION("Short word") { std::string result = "sam"; StringOperations::RemovePreceedingTrailingSpaces(result); CHECK(result == "sam"); } } constexpr auto TESTPATHPLAIN = "My/super/path/filesthis.extsuper"; constexpr auto TESTPATHSTR = "My/super/path/filesthis.extsuper"; constexpr auto TESTPATHSTRWIN = "My\\super\\path\\filesthis.extsuper"; TEST_CASE("StringOperations common work with string and wstring", "[string]") { std::wstring paththing = Convert::Utf8ToUtf16(TESTPATHPLAIN); std::string paththing2 = TESTPATHSTRWIN; std::wstring result = StringOperations::RemoveExtension<std::wstring>(paththing, true); std::string result2 = StringOperations::RemoveExtension<std::string>(paththing2, true); std::wstring wstringified = Convert::Utf8ToUtf16(result2); CHECK(result == wstringified); CHECK(result == L"filesthis"); result = StringOperations::GetExtension<std::wstring>(paththing); CHECK(result == L"extsuper"); result = StringOperations::ChangeExtension<std::wstring>(paththing, L"superier"); CHECK(result == L"My/super/path/filesthis.superier"); std::wstring ressecond = StringOperations::RemovePath<std::wstring>(result); CHECK(ressecond == L"filesthis.superier"); std::string removed = StringOperations::RemovePath<std::string>("./GUI/Nice/Panels/Mytexture.png"); CHECK(removed == "Mytexture.png"); std::wstring pathy = StringOperations::GetPath<std::wstring>(paththing); CHECK(pathy == L"My/super/path/"); CHECK(StringOperations::StringStartsWith( std::wstring(L"My super text"), std::wstring(L"My"))); // This line causes use of uninitialized value error // bool val = StringOperations::StringStartsWith(std::wstring(L"}"), std::wstring(L"}")); // CHECK(val); CHECK(StringOperations::StringStartsWith(std::string("}"), std::string("}"))); CHECK(!StringOperations::StringStartsWith( std::string("This shouldn't match"), std::string("this"))); // Line end changing // std::wstring simplestr = L"Two\nlines"; const std::wstring convresult = StringOperations::ChangeLineEndsToWindows<std::wstring>(simplestr); CHECK(convresult == L"Two\r\nlines"); std::wstring pathtestoriginal = L"My text is quite nice\nand has\n multiple\r\n lines\n" L"that are separated\n"; std::wstring pathresult = StringOperations::ChangeLineEndsToWindows<std::wstring>(pathtestoriginal); CHECK(pathresult == L"My text is quite nice\r\nand has\r\n multiple\r\n lines\r\nthat " L"are separated\r\n"); std::wstring backlinetest = StringOperations::ChangeLineEndsToUniversal<std::wstring>(pathresult); CHECK(backlinetest == L"My text is quite nice\nand has\n multiple\n lines\nthat are " L"separated\n"); } TEST_CASE("StringOperations indent creation", "[string]") { CHECK(StringOperations::Indent<std::string>(1) == " "); CHECK(StringOperations::Indent<std::string>(3) == " "); CHECK(StringOperations::Indent<std::wstring>(1) == L" "); CHECK(StringOperations::Indent<std::wstring>(3) == L" "); } TEST_CASE("StringOperations indent lines", "[string]") { SECTION("Single line") { CHECK(StringOperations::IndentLines<std::string>("this is a line", 2) == " this is a line"); } SECTION("Two lines") { CHECK(StringOperations::IndentLines<std::string>("this is a line\nthis is a second", 1) == " this is a line\n this is a second"); } SECTION("Ends with a new line") { CHECK(StringOperations::IndentLines<std::string>("this is a line\n", 1) == " this is a line\n"); } SECTION("Remove existing spaces") { SECTION("Single line") { CHECK(StringOperations::IndentLines<std::string>(" this is a line", 2) == " this is a line"); } SECTION("Two lines") { CHECK(StringOperations::IndentLines<std::string>( " this is a line\n this is a second", 1) == " this is a line\n this is a second"); } } SECTION("Basic \\n lines") { constexpr auto input = "this is a\n multiline story\nthat spans many lines\n"; constexpr auto result = " this is a\n multiline story\n that spans many lines\n"; CHECK(StringOperations::IndentLines<std::string>(input, 3) == result); } SECTION("Windows lines") { constexpr auto input = "this is a\r\n multiline story\r\nthat spans many lines\r\n"; constexpr auto result = " this is a\n multiline story\n that spans many lines\n"; CHECK(StringOperations::IndentLines<std::string>(input, 3) == result); } } TEST_CASE("StringOperations replace sha hash character", "[string]") { CHECK(StringOperations::Replace<std::string>( "II+O7pSQgH8BG/gWrc+bAetVgxJNrJNX4zhA4oWV+V0=", "/", "_") == "II+O7pSQgH8BG_gWrc+bAetVgxJNrJNX4zhA4oWV+V0="); CHECK(StringOperations::ReplaceSingleCharacter<std::string>( "II+O7pSQgH8BG/gWrc+bAetVgxJNrJNX4zhA4oWV+V0=", '/', '_') == "II+O7pSQgH8BG_gWrc+bAetVgxJNrJNX4zhA4oWV+V0="); } TEST_CASE("StringOperations cut on new line", "[string]") { SECTION("Single line") { std::vector<std::string> output; CHECK(StringOperations::CutLines<std::string>("just a single string", output) == 1); REQUIRE(!output.empty()); CHECK(output[0] == "just a single string"); } SECTION("Basic two lines") { std::vector<std::string> output; CHECK(StringOperations::CutLines<std::string>("this is\n two lines", output) == 2); REQUIRE(output.size() == 2); CHECK(output[0] == "this is"); CHECK(output[1] == " two lines"); } SECTION("Windows separator") { std::vector<std::string> output; CHECK(StringOperations::CutLines<std::string>("this is\r\n two lines", output) == 2); REQUIRE(output.size() == 2); CHECK(output[0] == "this is"); CHECK(output[1] == " two lines"); } SECTION("Ending with a line separator") { std::vector<std::string> output; CHECK(StringOperations::CutLines<std::string>("this is\n two lines\n", output) == 2); REQUIRE(output.size() == 2); CHECK(output[0] == "this is"); CHECK(output[1] == " two lines"); } SECTION("Counting lines") { SECTION("Without empty lines") { std::vector<std::string> output; CHECK(StringOperations::CutLines<std::string>("just put \nsome line\nseparators " "in here to\ncheck", output) == 4); REQUIRE(output.size() == 4); } SECTION("With empty lines") { SECTION("\\n") { std::vector<std::string> output; CHECK(StringOperations::CutLines<std::string>("just put \n\nseparators " "in here to\ncheck", output) == 4); REQUIRE(output.size() == 4); } SECTION("Windows separator") { std::vector<std::string> output; CHECK(StringOperations::CutLines<std::string>("just put \r\n\r\nseparators " "in here to\r\ncheck", output) == 4); REQUIRE(output.size() == 4); } } } } TEST_CASE("StringOperations remove characters", "[string]") { SECTION("Nothing gets removed") { CHECK(StringOperations::RemoveCharacters<std::string>("just a single string", "") == "just a single string"); CHECK(StringOperations::RemoveCharacters<std::string>("just a single string", "z") == "just a single string"); } SECTION("Single character") { CHECK(StringOperations::RemoveCharacters<std::string>("just a single string", " ") == "justasinglestring"); CHECK(StringOperations::RemoveCharacters<std::string>("just a single string", "i") == "just a sngle strng"); } SECTION("Multiple characters") { CHECK(StringOperations::RemoveCharacters<std::string>("just a single string", " i") == "justasnglestrng"); } } TEST_CASE("StringOperations URL combine", "[string][url]") { SECTION("Hostnames") { CHECK(StringOperations::BaseHostName("http://google.fi") == "http://google.fi/"); CHECK(StringOperations::BaseHostName("http://google.fi/") == "http://google.fi/"); CHECK(StringOperations::BaseHostName( "http://a.content.com/b/Word Space/664/10232/01.jpg") == "http://a.content.com/"); } SECTION("Get protocol") { CHECK(StringOperations::URLProtocol("http://google.fi/") == "http"); CHECK(StringOperations::URLProtocol("https://google.fi/") == "https"); CHECK(StringOperations::URLProtocol("tel:936704") == "tel"); CHECK(StringOperations::URLProtocol("telnet://site.com") == "telnet"); } SECTION("Combines") { CHECK(StringOperations::CombineURL("http://google.fi", "img.jpg") == "http://google.fi/img.jpg"); CHECK(StringOperations::CombineURL("http://google.fi/", "img.jpg") == "http://google.fi/img.jpg"); CHECK(StringOperations::CombineURL("http://google.fi/", "/img.jpg") == "http://google.fi/img.jpg"); CHECK(StringOperations::CombineURL("http://google.fi", "/img.jpg") == "http://google.fi/img.jpg"); CHECK(StringOperations::CombineURL("http://google.fi/index.html", "/img.jpg") == "http://google.fi/img.jpg"); CHECK(StringOperations::CombineURL("http://google.fi/index.html/", "img.jpg") == "http://google.fi/index.html/img.jpg"); CHECK(StringOperations::CombineURL("http://google.fi/index.html", "/other/img.jpg") == "http://google.fi/other/img.jpg"); } SECTION("combine with double /") { CHECK(StringOperations::CombineURL("https://example.com/index.php?page=img", "https://example.com//img.example.com//images/1234.jpeg") == "https://img.example.com/images/1234.jpeg"); } SECTION("Combine starting double /") { CHECK(StringOperations::CombineURL( "https://a.example.com/a", "//abc.example.com/images/1234.jpeg") == "https://abc.example.com/images/1234.jpeg"); } SECTION("Combine with two full URLs") { SECTION("http") { CHECK(StringOperations::CombineURL("http://example.com/index.html", "http://test.com/a.png") == "http://test.com/a.png"); } SECTION("https") { CHECK(StringOperations::CombineURL("http://example.com/index.html", "https://test.com/a.png") == "https://test.com/a.png"); } SECTION("different protocol") { CHECK(StringOperations::CombineURL("http://example.com/index.html", "myprotocol://test.com/a.png") == "myprotocol://test.com/a.png"); } } } TEST_CASE("StringOperations IsURLDomain", "[string][url]") { CHECK(StringOperations::IsURLDomain("example.com")); CHECK(StringOperations::IsURLDomain("google.com")); CHECK(StringOperations::IsURLDomain("boostslair.com")); CHECK(StringOperations::IsURLDomain("fp.boostslair.com")); CHECK(StringOperations::IsURLDomain("a.b.test.com")); CHECK(!StringOperations::IsURLDomain("a.b/test.com")); CHECK(!StringOperations::IsURLDomain("file")); } TEST_CASE("StringOperations URL cut to path", "[string][url]") { CHECK(StringOperations::URLPath("http://google.fi/index.html") == "index.html"); CHECK(StringOperations::URLPath("http://a.content.com/b/Word Space/664/10232/01.jpg") == "b/Word Space/664/10232/01.jpg"); } TEST_CASE("StringOperations URL cut to path removes options", "[string][url]") { CHECK(StringOperations::URLPath("http://google.fi/index.html?lang=something") == "index.html"); CHECK(StringOperations::URLPath("http://google.fi/index.html?") == "index.html"); SECTION("It can be disabled") { CHECK(StringOperations::URLPath("http://google.fi/index.html?lang=something", false) == "index.html?lang=something"); } } TEST_CASE("StringOperations RepeatCharacter", "[string]") { SECTION("Basic one byte characters") { CHECK(StringOperations::RepeatCharacter<std::string>('a', 4) == "aaaa"); CHECK(StringOperations::RepeatCharacter<std::string>('a', 0) == ""); CHECK(StringOperations::RepeatCharacter<std::string>('a', 3) == "aaa"); CHECK(StringOperations::RepeatCharacter<std::string>(' ', 4) == " "); } } TEST_CASE("StringOperations RemoveEnding", "[string]") { SECTION("Single character") { CHECK(StringOperations::RemoveEnding<std::string>("my string", "g") == "my strin"); } SECTION("Short string") { CHECK(StringOperations::RemoveEnding<std::string>( "my string that ends with this", " this") == "my string that ends with"); } SECTION("Not removing anything") { CHECK(StringOperations::RemoveEnding<std::string>("my string", "n") == "my string"); CHECK(StringOperations::RemoveEnding<std::string>( "my string that ends with this", "i") == "my string that ends with this"); } } TEST_CASE("StringOperations RemovePrefix", "[string]") { SECTION("Single character") { CHECK(StringOperations::RemovePrefix<std::string>("my string", "m") == "y string"); } SECTION("Short string") { CHECK(StringOperations::RemovePrefix<std::string>( "my string that ends with this", "my ") == "string that ends with this"); } SECTION("Not removing anything") { CHECK(StringOperations::RemovePrefix<std::string>("my string", "y") == "my string"); CHECK(StringOperations::RemovePrefix<std::string>("my string that ends with this", "y string") == "my string that ends with this"); } } TEST_CASE("StringOperations EndsWith", "[string]") { CHECK(StringOperations::StringEndsWith<std::string>("stuff", "f")); CHECK(StringOperations::StringEndsWith<std::string>("stuff", "stuff")); CHECK(StringOperations::StringEndsWith<std::string>("", "")); CHECK(StringOperations::StringEndsWith<std::string>("aaa", "")); CHECK(!StringOperations::StringEndsWith<std::string>("stuff", "u")); CHECK(!StringOperations::StringEndsWith<std::string>("", "a")); }
cpp
// Type definitions for ag-grid-community v19.1.3 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { IComponent } from "../../interfaces/iComponent"; import { RowNode } from "../../entities/rowNode"; import { ColDef } from "../../entities/colDef"; import { Column } from "../../entities/column"; import { GridApi } from "../../gridApi"; import { ColumnApi } from "../../columnController/columnApi"; export interface ICellRendererParams { value: any; valueFormatted: any; getValue: () => any; setValue: (value: any) => void; formatValue: (value: any) => any; data: any; node: RowNode; colDef: ColDef; column: Column; $scope: any; rowIndex: number; api: GridApi; columnApi: ColumnApi; context: any; refreshCell: () => void; eGridCell: HTMLElement; eParentOfValue: HTMLElement; addRenderedRowListener: (eventType: string, listener: Function) => void; } export interface ICellRenderer { /** Get the cell to refresh. Return true if successful. Return false if not (or you don't have refresh logic), * then the grid will refresh the cell for you. */ refresh(params: any): boolean; } export interface ICellRendererComp extends ICellRenderer, IComponent<ICellRendererParams> { } export interface ICellRendererFunc { (params: any): HTMLElement | string; } //# sourceMappingURL=iCellRenderer.d.ts.map
typescript
from bottle import TEMPLATE_PATH, route, run, template, redirect, get, post, request, response, auth_basic, Bottle, abort, error, static_file import bottle import controller from controller import dobi_parcele_za_prikaz, dobi_info_parcele, dodaj_gosta_na_rezervacijo, naredi_rezervacijo, dobi_rezervacijo_po_id, zakljuci_na_datum_in_placaj, dobi_postavke_racuna import datetime as dt @bottle.get('/') def root(): redirect('/domov') @bottle.get('/domov') def index(): parcele = dobi_parcele_za_prikaz(dt.date.today()) return template("domov", parcele=parcele, hide_header_back=True) @bottle.get("/parcela/<id_parcele>") def parcela(id_parcele): 'Preverimo stanje parcele' rez, gostje = dobi_info_parcele(id_parcele, dt.date.today()) if rez is not None: stanje = "Parcela je trenutno zasedena" else: stanje = "Parcela je trenutno na voljo" return template('parcela', id_parcela=id_parcele, rezervacija=rez, stanje=stanje, gostje=gostje) @bottle.get("/naredi-rezervacijo/<id_parcele>") def nova_rezervacija(id_parcele=None): print(id_parcele) today = dt.date.today() tomorrow = today + dt.timedelta(days=1) return template('nova_rezervacija', id_parcele=id_parcele, today=today, tomorrow=tomorrow) @bottle.post("/naredi-rezervacijo") def naredi_novo_rezervacijo(): " V modelu naredi novo rezervacijo in ji doda prvega gosta" # Preberemo lastnosti iz forme ime = request.forms.ime#get("") priimek = request.forms.priimek#get("") emso = request.forms.emso#get("") drzava = request.forms.drzava#get("") id_parcele = request.forms.id_parcele#get("") od = request.forms.zacetek#get("") do = request.forms.konec#get("") print(ime, priimek) try: datum_od = dt.datetime.fromisoformat(od).date() datum_do = dt.datetime.fromisoformat(do).date() except Exception as e: print(e) print("Napaka pri pretvorbi datumov") return redirect("/naredi-rezervacijo") rezervacija = naredi_rezervacijo(id_parcele) dodaj_gosta_na_rezervacijo(rezervacija.id_rezervacije, { "EMSO":emso, "ime":ime, "priimek":priimek, "drzava":drzava, }, datum_od, datum_do) return redirect(f"/parcela/{id_parcele}") @bottle.get("/dodaj-gosta/<id_rezervacije>") def get_dodaj_gosta_na_rezervacijo(id_rezervacije): today = dt.date.today() tomorrow = today + dt.timedelta(days=1) rezervacija = dobi_rezervacijo_po_id(id_rezervacije) if not rezervacija: return template("error", sporocilo="Rezervacija ne obstaja!", naslov="Napaka") return template("dodajanje_gosta", id_rezervacije=id_rezervacije, today=today, tomorrow=tomorrow) @bottle.post("/dodaj-gosta-na-rezervacijo") def post_dodaj_gosta_na_rezervacijo(): " V modelu rezervaciji doda gosta" # Preberemo lastnosti iz forme ime = request.forms.ime priimek = request.forms.priimek emso = request.forms.emso#get("") drzava = request.forms.drzava#get("") id_rezervacije = request.forms.rez#get("") od = request.forms.zacetek#get("") do = request.forms.konec#get("") try: datum_od = dt.datetime.fromisoformat(od).date() datum_do = dt.datetime.fromisoformat(do).date() except Exception as e: print(e) print("Napaka pri pretvorbi datumov") return redirect("/dodaj-gosta") rezervacija = dobi_rezervacijo_po_id(id_rezervacije) if not rezervacija: return template("error", sporocilo="Rezervacija ne obstaja!", naslov="Napaka") dodaj_gosta_na_rezervacijo(rezervacija.id_rezervacije, { "EMSO":emso, "ime":ime, "priimek":priimek, "drzava":drzava, },datum_od,datum_do) print(id_rezervacije) return redirect(f"/parcela/{rezervacija.id_parcele}") @bottle.get("/predracun/<id_rezervacije>") def predracun(id_rezervacije): rezervacija = dobi_rezervacijo_po_id(id_rezervacije) if not rezervacija: return template("error", sporocilo="Rezervacija ne obstaja!", naslov="Napaka") today = dt.date.today() gostje = rezervacija.gostje sestevek, postavke = dobi_postavke_racuna(rezervacija) slovar_cen = {} slovar_kolicin = {} for gost in gostje: slovar_kolicin[gost] = len(gost.nocitve) slovar_cen[gost] = format(gost.cena_nocitve() * slovar_kolicin.get(gost), '.2f') return template("racun", id_rezervacije=id_rezervacije, sestevek=format(sestevek, '.2f'), gostje=gostje, today=today.strftime("%d/%m/%Y"), slovar_cen=slovar_cen, slovar_kolicin=slovar_kolicin) @bottle.get("/zakljuci/<id_rezervacije>") def racun(id_rezervacije): rezervacija = dobi_rezervacijo_po_id(id_rezervacije) if not rezervacija: return template("error", sporocilo="Rezervacija ne obstaja!", naslov="Napaka") today = dt.date.today() gostje = rezervacija.gostje sestevek, postavke = zakljuci_na_datum_in_placaj(rezervacija, dt.date.today()) slovar_cen = {} slovar_kolicin = {} for gost in gostje: slovar_kolicin[gost] = len(gost.nocitve) slovar_cen[gost] = format(gost.cena_nocitve() * slovar_kolicin.get(gost), '.2f') return template("racun", id_rezervacije=id_rezervacije, sestevek=format(sestevek, '.2f'), gostje=gostje, today=today.strftime("%d/%m/%Y"), slovar_cen=slovar_cen, slovar_kolicin=slovar_kolicin) @bottle.error(404) def napaka404(a): return template("error", sporocilo="Stran ne obstaja!", naslov="404") @bottle.error(500) def napaka500(a): return template("error", sporocilo="Napaka streznika!", naslov="500") bottle.run(reloader=True, debug=True)
python
{"title": "Matrix Sketching Over Sliding Windows.", "fields": ["augmented matrix", "state transition matrix", "convergent matrix", "generator matrix", "essential matrix"], "abstract": "Large-scale matrix computation becomes essential for many data data applications, and hence the problem of sketching matrix with small space and high precision has received extensive study for the past few years. This problem is often considered in the row-update streaming model, where the data set is a matrix A -- R n x d , and the processor receives a row (1 x d) of A at each timestamp. The goal is to maintain a smaller matrix (termed approximation matrix, or simply approximation) B -- R l x d as an approximation to A, such that the covariance error |A T A - B T B| is small and l ll n. This paper studies continuous tracking approximations to the matrix defined by a sliding window of most recent rows. We consider both sequence-based and time-based window. We show that maintaining A T A exactly requires linear space in the sliding window model, as opposed to O(d 2 ) space in the streaming model. With this observation, we present three general frameworks for matrix sketching on sliding windows. The sampling techniques give random samples of the rows in the window according to their squared norms. The Logarithmic Method converts a mergeable streaming matrix sketch into a matrix sketch on time-based sliding windows. The Dyadic Interval framework converts arbitrary streaming matrix sketch into a matrix sketch on sequence-based sliding windows. In addition to proving all algorithmic properties theoretically, we also conduct extensive empirical study with real data sets to demonstrate the efficiency of these algorithms.", "citation": "Citations (7)", "year": "2016", "departments": ["Renmin University of China", "Renmin University of China", "University of Utah", "Renmin University of China", "Renmin University of China"], "conf": "sigmod", "authors": ["<NAME>.....http://dblp.org/pers/hd/w/Wei:Zhewei", "<NAME>.....http://dblp.org/pers/hd/l/Liu:Xuancheng", "<NAME>.....http://dblp.org/pers/hd/l/Li_0001:Feifei", "<NAME>.....http://dblp.org/pers/hd/s/Shang:Shuo", "Xiaoyong Du.....http://dblp.org/pers/hd/d/Du:Xiaoyong", "Ji-Rong Wen.....http://dblp.org/pers/hd/w/Wen:Ji=Rong"], "pages": 16}
json
116/7 (17. 0 ov) 119/4 (16. 1 ov) 172/7 (20. 0 ov) 157 (20. 0 ov) IPL 2021 Points Table, RCB vs SRH 2021 Scorecard: Check the latest IPL points table after match no. 52 between Royal Challengers Bangalore and Sunrisers Hyderabad and also see the IPL 2021 Orange Cap and IPL Purple Cap 2021 holders in the ongoing T20 tournament. विराट कोहली इस विश्व कप के बाद टी20 क्रिकेट में कप्तानी करते हुए नजर नहीं आएंगे. live Score and Updates, RCB vs SRH, Live Cricket, Live IPL Score, Live Cricket Score, Ball by Ball Commentary, Cricket News, Virat Kohli, Kane Williamson. The suspense over whether the England cricket team will travel to Australia for the five-match Ashes series seems to be all but over with reports suggesting that skipper Joe Root has confirmed he would travel Down Under for the series. Chennai Super Kings all-rounder Sam Curran said that he is "gutted" by the setback and "absolutely loved" his stay with the Chennai franchise. RCB vs SRH: On the eve of their final league game, Kohli took to his social media pages and posted a clip where he is flaunting his full range in the nets. MS Dhoni quashed all rumours and confirmed that he would be back next year for the IPL and hopes to play his farewell match in Chennai. पांच बार की चैंपियन मुंबई इंडियस के लिए प्लेऑफ का सफर भी काफी कठिन नजर आ रहा है. Ind vs Pak, T20 WC: Abdul Razzaq also went on to claim that Imran Khan was better than Kapil Dev. IPL 2021 Points Table, DC vs CSK 2021 Scorecard: Check the latest IPL points table after match no. 50 between Delhi Capitals and Chennai Super Kings and also see the IPL 2021 Orange Cap and IPL Purple Cap 2021 holders in the ongoing T20 tournament.
english
The squabbling began with NCP leader Ajit Pawar sympathising with rebel Congressman Satyajeet Tambe—who has been expelled for six years for contesting the recent council elections as an independent—and advising the Congress to re-admit him into the party fold. Mumbai: A day after winning three out of five legislative council seats, the opposition Maharashtra Vikas Aghadi (MVA) should have been celebrating its victory. Instead, the three parties in the coalition chose to indulge in bickering and one-upmanship. The squabbling began with NCP leader Ajit Pawar sympathising with rebel Congressman Satyajeet Tambe—who has been expelled for six years for contesting the recent council elections as an independent—and advising the Congress to re-admit him into the party fold. He also spoke about the split in the Shiv Sena. The Congress was quick to express its disconcertion at Ajit’s statement. “In the MVA government, the NCP was handling the home department. They could have stopped the MLAs who rebelled. Why was it not done then? ” said Maharashtra Congress president Nana Patole, adding, however, that this was not the appropriate time for a blame game. “We don’t want to bring the past back or blame anyone for what happened last year,” he said. Hours later, the MVA leaders failed to reach a decision on contesting the assembly bypolls scheduled on February 27. “The Congress wants to contest from the Kasba Peth constituency whereas the NCP and Shiv Sena are both interested in the Chinchwad seat. The NCP also said that it has more strength than the Congress in the Kasba Peth constituency. It was later decided that the three parties will discuss the issue and decide who will fight from which seat,” said a senior leader privy to the development. “We have reviewed the status of both seats. We want to take other alliance partners such as the Peasants and Workers Party and Samajwadi Party into confidence, after which an announcement will be made on Saturday,” said Maharashtra NCP president Jayant Patil in a media interaction after the meeting.
english
function main() { function v0(v1,v2,v3,v4) { const v6 = [-306604.7520361028]; function v11(v12,v13,v14,v15,v16) { for (const v20 of v6) { const v22 = [13.37,13.37,13.37,13.37]; } } const v26 = v11("undefined",1337,13.37,Math); let v32 = 0; const v33 = v32 + 1; v32 = v33; } const v39 = [1337]; for (let v43 = 0; v43 < 100; v43++) { const v44 = v0(10,Function,1337,v39,Function); } } %NeverOptimizeFunction(main); main();
javascript
Influencers have been all the rage over social media for quite some time now with brands competing to rope them in for collaborations and cross-promotions. But have you ever come across a baby influencer? This adventurous American baby has travelled to 16 US states including Kansas, Utah, Arizona, Florida, Alaska, and New Mexico, and earns about Rs 75,000 ($1,000) a month from sponsorships. He even gets his diapers and wipes for free! Pretty cool for a baby, right? Briggs Darrington, who just turned one year old recently, lives in Idaho Falls with his travel blogger parents Jess and Steve. Briggs, who was born on October 14, 2020, went on his first overnight glamping trip in Nebraska when he was three weeks old and experienced his first flight when he was just 9 weeks. Since then, he has been on a whopping 45 flights, with the longest being about eight hours, from Utah to Hawaii. From bears in Alaska, balloon fiesta in Albuquerque, New Mexico, wolves in Yellowstone National Park, the Delicate Arch in Utah to beaches in California, this baby is quite the globetrotter. Briggs’ mom, Jess believes that he might be the youngest travel influencer in the world. Briggs’ travel tales have garnered a huge fan following, with over 250,000 likes on TikTok and 34,000 followers on Instagram. Jess, 28, who is a full-time travel blogger said that her son earns around Rs 75,000 a month while working with tourism boards and brands and also has a sponsor who provides free diapers and wipes. “I had been running a blog called Part Time Tourists for a few years. But when I got pregnant with Briggs in 2020, I was really nervous that my career was over. My husband and I really wanted to make it work. So I started to look for social media accounts that talked about baby travel, I couldn’t find a single one. There’s a ton of kid travel, but nothing aimed at babies," Jess was quoted as saying by Daily Mail. She realised there was a gap and decided to set up social media accounts as a fun way to share everything that she learned while travelling with a baby, to help other first-time parents. She said she never imagined that her posts would be so useful for new moms struggling with postpartum anxiety and depression. Although they’d been doing Part Time Tourists for the past couple of years, Briggs has quickly become much more popular with brands and tourism boards, thanks to his ‘cute’ flex on social media. Jess added that the family continued with their travels amid Covid-19 lockdowns by following all safety guidelines. They went on road trips and local vacations which allowed social distancing. They used to board flights via the gate of a plane that has already left, instead of going through their designated gate, to avoid crowds. They also stayed away from big cities and concentrated on exploring hidden gems and outdoor travel. Although it can be hard to travel with a baby at times, Jess said it’s worth it in the long run for the benefits and exposure to different people, cultures, environments, and places, which is critical for a child’s development. According to Jess, practising with your gear before travel, packing extra items in the stroller, ensuring your baby has on-the-go naps and giving munchies or a bottle to the baby while take-off or landing goes a long way in ensuring a smooth holiday. Read all the Latest News , Breaking News and IPL 2022 Live Updates here.
english
<gh_stars>0 [{"liveId":"5c9211ea0cf20f4b9b9363db","title":"赵天杨的直播间","subTitle":"啦啦啦","picPath":"/mediasource/live/1553076714725X44847H1it.jpg","startTime":1553076714904,"memberId":609002,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5c9211ea0cf20f4b9b9363db.lrc","streamPath":"http://liveplaylk.lvb.eastmoney.com/live/2519_3721606.flv?txSecret=9bab069e6425d653f8d45dc81bdecc8a&txTime=5C93636E","screenMode":0,"roomId":"18033754","bwqaVersion":0}]
json
Through the 18 years of her trial in the case, Bibi Jagir Kaur never lost the support of Badals and Akali Dal. Chandigarh: Six years after former Punjab cabinet minister and ex-president of the Shiromani Gurudwara Prabandhak Committee (SGPC) Bibi Jagir Kaur was convicted of illegal confinement and forcing her daughter into abortion, the Punjab and Haryana High Court Tuesday acquitted her of all charges. In 2000, Jagir Kaur, then SGPC chief, was accused of murdering her 19-year-old daughter Harpreet. But the trial court dropped the murder charge in 2012. A senior Shiromani Akali Dal leader presently heading the party’s women wing in Punjab, Jagir Kaur is a known Badal loyalist. Through the course of her trial and conviction over 18 years, Jagir Kaur never lost the support of Badals and the party. From propping her up as the SGPC chief to providing her election support over several polls, the Badals always accommodated her. On Tuesday, the high court provided her relief even as the complainant in the case vowed to move the Supreme Court. Born to the locally prominent Lobana family in Jalandhar, Jagir Kaur started her career as a mathematics teacher at the Begowal Government Secondary School. When her husband died of cancer in 1982, she got involved in local socio-religious activities and took over the Sant Prem Singh Muralewale dera at Begowal after her father. The dera has immense hold and influence over the Lobana community. She joined the Akali Dal in 1995 and was elected an SGPC member a year later. In 1997, she was given the party ticket for the assembly elections and won from Bholath constituency. Despite being a first time MLA, she was taken in as a cabinet minister by Parkash Singh Badal. In March 1999, due to a tussle between Badal and then SGPC chief Gurcharan Singh Tohra, the latter was removed and replaced by Jagir Kaur. She was hailed as the first woman SGPC chief. In November 2000, she was forced to step down as SGPC chief after registration of an FIR against her by the CBI in her daughter’s murder case. Although Jagir Kaur claimed to be a victim of political agenda, the case against her became a prominent election issue before the 2002 assembly elections. However, that didn’t deter Badal from giving her the ticket to contest from Bholath a second time. The Akalis lost, but she managed to retain her seat. In the 2007 assembly elections, she lost the Bholath seat even as the Akalis came to power in the state. However, she managed to wrest it back in 2012 and was inducted as a cabinet minister. The sensational case hit national headlines in April 2000 when Harpreet, alias Rosy, died under mysterious circumstances. She was allegedly being shifted from the residence of a family friend where she was staying in Phagwara to a hospital in Ludhiana and died on the way. Jagir Kaur claimed that her daughter fell ill and died while being rushed for treatment to a hospital. She was cremated at Jagir Kaur’s home in Begowal village in Kapurthala. Jagir Kaur was the SGPC chief at the time and the cremation was attended by the state’s top guns, including then chief minister Parkash Singh Badal. Media outcry followed Harpreet’s death forcing Badal to constitute a Punjab police team to probe the charges. A week after her death, Kamaljit Singh, a Begowal resident and small-time Akali worker, claimed to be Harpreet’s lover and approached the high court for a probe. He told the court that Jagir Kaur didn’t approve of their relationship and gave the court proof of their “secret wedding”. He alleged that she was pregnant but was forced to abort the child by Jagir Kaur, who had probably killed her too. He named Badal too in his petition for being party to destruction of evidence, but the court did not issue a notice to him. In June 2000, the high court ordered CBI to probe the case. He said he twice wrote to the chief justice of the Punjab and Haryana High Court seeking the high-profile case to be moved to another bench. “I had, in my request to the chief justice, listed several significant reasons why the case should not be heard by this particular bench, but no cognisance was taken of my request,” he said. In March 2012, a special CBI court convicted Jagir Kaur and sentenced her to five years’ rigorous imprisonment for illegal confinement and forceful abortion of her daughter. The court dropped murder charges against her and all other accused. Having had just been inducted as a cabinet minister in the Punjab government, she had to resign and was jailed immediately. Along with her, six other people had been tried for her daughter’s murder. While two were acquitted by the trial court, four others were convicted for destruction of evidence. On Tuesday, a division bench of Justice A. B. Chaudhari and Justice Kuldip Singh acquitted all the other accused too. This article incorrectly mentioned that Bibi Jagir Kaur was acquitted of killing her daughter on Tuesday, 4 December. She had been acquitted of that charge in 2012. The error is regretted.
english
<filename>Lux/BooleanToStringSwitchConverter.cpp #include "pch.h" #include "BooleanToStringSwitchConverter.h" #include "BooleanToStringSwitchConverter.g.cpp" using namespace std; using namespace winrt; using namespace winrt::Windows::Foundation; using namespace winrt::Windows::UI::Xaml; using namespace winrt::Windows::UI::Xaml::Interop; namespace winrt::Lux::implementation { IInspectable BooleanToStringSwitchConverter::Convert(IInspectable const& value, TypeName const& /*targetType*/, IInspectable const& parameter, hstring const& /*language*/) { auto strings = std::wstring(unbox_value_or(parameter, L"true|false")); auto split = wcschr(strings.c_str(), L'|'); if (split) { auto onText = strings.substr(0, split - strings.data()); auto offText = strings.substr(split - strings.data() + 1); return box_value(winrt::hstring(unbox_value_or(value, false) ? onText : offText)); } else { return DependencyProperty::UnsetValue(); } } IInspectable BooleanToStringSwitchConverter::ConvertBack(IInspectable const& /*value*/, TypeName const& /*targetType*/, IInspectable const& /*parameter*/, hstring const& /*language*/) { throw hresult_not_implemented(); } }
cpp
In May this year at the Leader’s Meeting in Porto, the European Union (EU) and India adopted the Connectivity Partnership, expanding our cooperation across the digital, energy, transport, and people-to-people sectors. Our partnership is centred on transparency, sustainability, equity and inclusivity for the benefit of both regions, in order to create links, not dependencies. With India, we already have a strong ongoing collaboration on sustainable infrastructure. For instance, the European Investment Bank (EIB) has financed over €4. 31 billion in the country since 1993, including significant connectivity projects. New operations are in the pipeline, such as further EIB investments in urban metro systems. The EU is working in the same spirit across the world. Earlier this year, the EU and Brazil inaugurated a new fibre-optic cable to carry terabytes of data faster and more securely between our two continents. This helps scientists in Europe and Latin America to work together, on issues from climate modelling to disaster mitigation. The cable starts in the EU, where the EU’s General Data Protection Regulation (GDPR) became the gold standard of data protection, and ends in Brazil, which recently introduced a similar law. The cable links two continents together building a data economy that respects the privacy of its citizens’ data. This is how Europe approaches connectivity — bringing partners together without creating unwanted dependencies. Last week, the EIB and the cooperation agencies of France, Spain and Germany joined the European Commission in Togo to identify projects to finance in the energy, transport and digital sectors. During the mission, the EIB signed a €100 million credit line to support African small and medium businesses to recover from the pandemic and to seize growth opportunities from the African Continental Free Trade Area (AfCFTA). These are just examples of what we call Team Europe, bringing together all those who work with our partners to support the green and digital transition. Since the start of the von der Leyen Commission, the twin transitions of green and digital in Europe have been at the forefront. With the new Global Gateway strategy, the EU continues to promote the green and digital transition at the global level. In a world of interdependence, where supply chains are showing their fragility, we know how important connectivity is. We have also seen how the links that connect us can also be weaponised. Data flows, energy supplies, rare earths, vaccines and semi-conductors are all instruments of power in today’s world. Which is why we need to ensure that global connectivity and access to these flows is based on rules and international standards. While flows in goods may be ideologically neutral, the rules which govern them are intertwined with political values. Particularly in the digital domain, Europe and other democracies must ensure that the standards of the future reflect our core values. Europe wants to reduce excessive dependencies and be more autonomous in areas such as the production of computer chips. Our autonomy is reinforced if all our partners have alternatives when making their investment decisions. Europe’s calling card and offer to our partner countries to address infrastructure investment needs is financially, socially, and environmentally sustainable connectivity. No ‘white elephants’ and no ‘debt traps’, but projects that are sustainable and serve the needs of local populations. For Europe to master the connectivity challenge, it needs not only principles and frameworks but also adequate resources and clear priorities. First, we will use the resources of Team Europe, the EU and its Member States in a smarter, more efficient way. The Global Gateway will mobilise investments of more than €300 billion in public and private funds for global infrastructure development between 2021 and 2027, financing the climate and digital transition, as well as health, education and research. We will mobilise half of the investments with the help of the EU budget and the other half indicates the planned investments from European financial institutions and Member States’ development finance institutions. We have remodelled our financial tools to provide the firepower that can blend loans and grants and provide the guarantees needed today. We put in place mechanisms to filter out abnormally low tenders and protect against offers that benefit from distortive foreign subsidies, which undermine the level playing field. We will also ensure that EU internal programmes — InvestEU, our research programme, Horizon Europe and the Connecting Europe Facility — will support Global Gateway, alongside Member States’ development banks, national promotional banks and export credit agencies. Of course, capital from the private sector will remain the biggest source of investment in infrastructure. That is why we are exploring the possibility of establishing a European Export Credit Facility to complement the existing export credit arrangements at the Member State level. This would help ensure a more level-playing field for EU businesses in third country markets, where they increasingly have to compete with foreign competitors that receive large support from their governments. Second, on the priorities, Global Gateway has identified a number of flagship projects. These includes the extension to the BELLA (Building the Europe Link to Latin America) cable to the rest of the Latin America, as part of the EU-LAC Digital Alliance; the expansion of the Trans-European Network to improve transport links with the Eastern Partnership and Western Balkan countries and scaled-up funding for the Erasmus+ student exchange programme worldwide. In Africa, along with support for new strategic transport corridors, the EU will mobilise €2. 4 billion grants for Sub-Saharan Africa and over €1 billion for North Africa to support renewable energy and the production of renewable hydrogen, which can help meet the EU’s projected demand for clean energy and help partners to do the same. At heart, the Global Gateway is about demonstrating how democratic values offer certainty and fairness for investors, sustainability for partners and long-term benefits for people around the world. The EU and India can be leaders in this endeavour.
english
Friends, today we are going to upload the प्रधानमंत्री फसल बीमा योजना लिस्ट 2022 PDF / Pradhan Mantri Fasal Bima Yojana List 2022 PDF to help you. Pradhan Mantri Fasal Bima Yojana 2022 Online Registration is started on the official website pmfby.gov.in. In this post, we are going to provide complete information about PMFBY List 2022 PDF and Claim Form PDF through this article. Pradhan PMFBY is an ambitious agricultural insurance scheme of the Narendra Modi government. The central government provides insurance cover and financial assistance to farmers in times of difficulty under this scheme. Below we have given the download link for फसल बीमा योजना लिस्ट 2022 PDF / Fasal Bima Yojana List 2022 PDF. The premium sum insured under the Fasal Bima Yojana has been reduced by the government to 2 percent for Kharif crops and 1.5 percent for Rabi crops. Interested farmers can register themselves online under Pradhan Mantri Fasal Bima Yojana on the official website of PM Crop Insurance Portal by the Department of Agriculture and Cooperation and Farmers Welfare, Ministry of Agriculture and Farmers Welfare. 31 जुलाई (खरीफ फसल के लिए) प्रधानमंत्री फसल बीमा योजना (Activity Calendar) किसानों के प्रस्तावों की प्राप्ति के लिए कट ऑफ़ तारीख (ऋणदाता और गैर-ऋणदाता) सर्वप्रथम आपको प्रधानमंत्री फसल बीमा योजना की आधिकारिक वेबसाइट पर जाना होगा। अब आपके सामने होम पेज खुलकर आएगा। होम पेज पर आपको लाभार्थी सूची के लिंक पर क्लिक करना होगा। अब आपके सामने एक नया पेज खुल कर आएगा जिसमें आपको अपने राज्य का चयन करना होगा। इसके पश्चात आपको अपने जिले का चयन करना होगा। अब आपको अपने ब्लॉक का चयन करना होगा। जैसे ही आप ब्लॉक का चयन करेंगे आपके सामने लाभार्थी सूची खुलकर आ जाएगी। REPORT THISIf the download link of प्रधानमंत्री फसल बीमा योजना लिस्ट 2022 | Pradhan Mantri Fasal Bima Yojana List 2022 PDF is not working or you feel any other problem with it, please Leave a Comment / Feedback. If प्रधानमंत्री फसल बीमा योजना लिस्ट 2022 | Pradhan Mantri Fasal Bima Yojana List 2022 is a copyright material Report This by sending a mail at [email protected]. We will not be providing the file or link of a reported PDF or any source for downloading at any cost.
english
package entity import ( "strconv" "strings" ) type Date struct { Year, Month, Day, Hour, Minute int } func isVaildDate(d Date) bool { if d.Year < 2000 || d.Year > 9999 || d.Month < 1 || d.Month > 12 || d.Day < 1 || d.Hour > 23 || d.Hour < 0 || d.Minute < 0 || d.Minute > 59 { return false } if d.Month == 1 || d.Month == 3 || d.Month == 5 || d.Month == 7 || d.Month == 8 || d.Month == 10 || d.Month == 12 { if d.Day > 31 { return false } } else if d.Month != 2 { if d.Day > 30 { return false } } else { if (d.Year%4 == 0 && d.Year%100 != 0) || d.Year%400 == 0 { if d.Day > 29 { return false } } else if d.Day > 28 { return false } } return true } //1949-10-1-12-0, TAKE INPUT AS VALID func date2String(d Date) string { str := strconv.Itoa(d.Year) + "-" + strconv.Itoa(d.Month) + "-" + strconv.Itoa(d.Day) + "-" + strconv.Itoa(d.Hour) + "-" + strconv.Itoa(d.Minute) return str } func string2ValidDate(s string) (bool, Date) { //format check with four'-' s1 := strings.Split(s, "-") if len(s1) != 5 { return false, Date{} } //every str should be int Year, yErr := strconv.Atoi(s1[0]) Month, mErr := strconv.Atoi(s1[1]) Day, dErr := strconv.Atoi(s1[2]) Hour, hErr := strconv.Atoi(s1[3]) Minute, fErr := strconv.Atoi(s1[4]) if yErr != nil || mErr != nil || dErr != nil || hErr != nil || fErr != nil { return false, Date{} } d := Date{Year, Month, Day, Hour, Minute} //check valid date if !isVaildDate(d) { return false, Date{} } return true, d } //d1 < d2 true, d1 >= d2 false, TAKE INPUT AS VALID func compareDate(d1 Date, d2 Date) bool { if d1.Year > d2.Year { return false } else if d1.Year == d2.Year { if d1.Month > d2.Month { return false } else if d1.Month == d2.Month { if d1.Day > d2.Day { return false } else if d1.Day == d2.Day { if d1.Hour > d2.Hour { return false } else if d1.Hour == d2.Hour { if d1.Minute >= d2.Minute { return false } } } } } return true } func equalDate(d1 Date, d2 Date) bool { return d1.Year == d2.Year && d1.Month == d2.Month && d1.Day == d2.Day && d1.Hour == d2.Hour && d1.Minute == d2.Minute }
go
<filename>__tests__/test_examples/ignore_comment/ignore_comment.css /* purgecss ignore */ h1 { color: blue; }
css
package language import ( "fmt" ) // closures are function values which references to variables outside them // adder return function which keeps own reference to own instance of sum func adderFunc() func(int) int { sum := 0 return func(x int) int { sum += x return sum } } // fibonacci - as closure func fibonacci() func() int { x := 0 y := 0 return func() int { if y == 0 { y = 1 } else { r := x + y x = y y = r } return x } } // ShowClosuresUsage - closures are function values which references to variables outside them func ShowClosuresUsage() { // making function values as variables adder, subtractor := adderFunc(), adderFunc() // add will effectively result in 3 adder(1) add := adder(2) // sub will effectively result in 6 subtractor(10) sub := subtractor(-4) fmt.Println(add, sub) // fibonacci as closure fib := fibonacci() for i := 0; i < 10; i++ { fmt.Println(fib()) } }
go
<reponame>echothreellc/echothree // -------------------------------------------------------------------------------- // Copyright 2002-2021 Echo Three, LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // -------------------------------------------------------------------------------- package com.echothree.model.control.invoice.server.transfer; import com.echothree.model.control.invoice.server.control.InvoiceControl; import com.echothree.model.data.user.server.entity.UserVisit; import com.echothree.util.server.transfer.BaseTransferCaches; public class InvoiceTransferCaches extends BaseTransferCaches { protected InvoiceControl invoiceControl; protected InvoiceLineUseTypeTransferCache invoiceLineUseTypeTransferCache; protected InvoiceRoleTypeTransferCache invoiceRoleTypeTransferCache; protected InvoiceRoleTransferCache invoiceRoleTransferCache; protected InvoiceTypeTransferCache invoiceTypeTransferCache; protected InvoiceTypeDescriptionTransferCache invoiceTypeDescriptionTransferCache; protected InvoiceAliasTypeTransferCache invoiceAliasTypeTransferCache; protected InvoiceAliasTypeDescriptionTransferCache invoiceAliasTypeDescriptionTransferCache; protected InvoiceLineTypeTransferCache invoiceLineTypeTransferCache; protected InvoiceLineTypeDescriptionTransferCache invoiceLineTypeDescriptionTransferCache; protected InvoiceTransferCache invoiceTransferCache; protected InvoiceAliasTransferCache invoiceAliasTransferCache; protected InvoiceLineTransferCache invoiceLineTransferCache; protected InvoiceLineItemTransferCache invoiceLineItemTransferCache; protected InvoiceLineGlAccountTransferCache invoiceLineGlAccountTransferCache; protected InvoiceTimeTypeTransferCache invoiceTimeTypeTransferCache; protected InvoiceTimeTypeDescriptionTransferCache invoiceTimeTypeDescriptionTransferCache; protected InvoiceTimeTransferCache invoiceTimeTransferCache; /** Creates a new instance of InvoiceTransferCaches */ public InvoiceTransferCaches(UserVisit userVisit, InvoiceControl invoiceControl) { super(userVisit); this.invoiceControl = invoiceControl; } public InvoiceLineUseTypeTransferCache getInvoiceLineUseTypeTransferCache() { if(invoiceLineUseTypeTransferCache == null) invoiceLineUseTypeTransferCache = new InvoiceLineUseTypeTransferCache(userVisit, invoiceControl); return invoiceLineUseTypeTransferCache; } public InvoiceRoleTypeTransferCache getInvoiceRoleTypeTransferCache() { if(invoiceRoleTypeTransferCache == null) invoiceRoleTypeTransferCache = new InvoiceRoleTypeTransferCache(userVisit, invoiceControl); return invoiceRoleTypeTransferCache; } public InvoiceRoleTransferCache getInvoiceRoleTransferCache() { if(invoiceRoleTransferCache == null) invoiceRoleTransferCache = new InvoiceRoleTransferCache(userVisit, invoiceControl); return invoiceRoleTransferCache; } public InvoiceTypeTransferCache getInvoiceTypeTransferCache() { if(invoiceTypeTransferCache == null) invoiceTypeTransferCache = new InvoiceTypeTransferCache(userVisit, invoiceControl); return invoiceTypeTransferCache; } public InvoiceTypeDescriptionTransferCache getInvoiceTypeDescriptionTransferCache() { if(invoiceTypeDescriptionTransferCache == null) invoiceTypeDescriptionTransferCache = new InvoiceTypeDescriptionTransferCache(userVisit, invoiceControl); return invoiceTypeDescriptionTransferCache; } public InvoiceAliasTypeTransferCache getInvoiceAliasTypeTransferCache() { if(invoiceAliasTypeTransferCache == null) invoiceAliasTypeTransferCache = new InvoiceAliasTypeTransferCache(userVisit, invoiceControl); return invoiceAliasTypeTransferCache; } public InvoiceAliasTypeDescriptionTransferCache getInvoiceAliasTypeDescriptionTransferCache() { if(invoiceAliasTypeDescriptionTransferCache == null) invoiceAliasTypeDescriptionTransferCache = new InvoiceAliasTypeDescriptionTransferCache(userVisit, invoiceControl); return invoiceAliasTypeDescriptionTransferCache; } public InvoiceLineTypeTransferCache getInvoiceLineTypeTransferCache() { if(invoiceLineTypeTransferCache == null) invoiceLineTypeTransferCache = new InvoiceLineTypeTransferCache(userVisit, invoiceControl); return invoiceLineTypeTransferCache; } public InvoiceLineTypeDescriptionTransferCache getInvoiceLineTypeDescriptionTransferCache() { if(invoiceLineTypeDescriptionTransferCache == null) invoiceLineTypeDescriptionTransferCache = new InvoiceLineTypeDescriptionTransferCache(userVisit, invoiceControl); return invoiceLineTypeDescriptionTransferCache; } public InvoiceTransferCache getInvoiceTransferCache() { if(invoiceTransferCache == null) invoiceTransferCache = new InvoiceTransferCache(userVisit, invoiceControl); return invoiceTransferCache; } public InvoiceAliasTransferCache getInvoiceAliasTransferCache() { if(invoiceAliasTransferCache == null) invoiceAliasTransferCache = new InvoiceAliasTransferCache(userVisit, invoiceControl); return invoiceAliasTransferCache; } public InvoiceLineTransferCache getInvoiceLineTransferCache() { if(invoiceLineTransferCache == null) invoiceLineTransferCache = new InvoiceLineTransferCache(userVisit, invoiceControl); return invoiceLineTransferCache; } public InvoiceLineGlAccountTransferCache getInvoiceLineGlAccountTransferCache() { if(invoiceLineGlAccountTransferCache == null) invoiceLineGlAccountTransferCache = new InvoiceLineGlAccountTransferCache(userVisit, invoiceControl); return invoiceLineGlAccountTransferCache; } public InvoiceLineItemTransferCache getInvoiceLineItemTransferCache() { if(invoiceLineItemTransferCache == null) invoiceLineItemTransferCache = new InvoiceLineItemTransferCache(userVisit, invoiceControl); return invoiceLineItemTransferCache; } public InvoiceTimeTypeTransferCache getInvoiceTimeTypeTransferCache() { if(invoiceTimeTypeTransferCache == null) invoiceTimeTypeTransferCache = new InvoiceTimeTypeTransferCache(userVisit, invoiceControl); return invoiceTimeTypeTransferCache; } public InvoiceTimeTransferCache getInvoiceTimeTransferCache() { if(invoiceTimeTransferCache == null) invoiceTimeTransferCache = new InvoiceTimeTransferCache(userVisit, invoiceControl); return invoiceTimeTransferCache; } public InvoiceTimeTypeDescriptionTransferCache getInvoiceTimeTypeDescriptionTransferCache() { if(invoiceTimeTypeDescriptionTransferCache == null) invoiceTimeTypeDescriptionTransferCache = new InvoiceTimeTypeDescriptionTransferCache(userVisit, invoiceControl); return invoiceTimeTypeDescriptionTransferCache; } }
java
<reponame>Cedcn/chrome-extension-ec-assistant @import "~antd/dist/antd.css"; @import "~react-progress-bar-plus/lib/progress-bar.css";
css
Mumbai, March 11: Zaheera Sheikh, the witness who turned hostile in the Best Bakery case, surrendered to a court at Mazgaon in Mumbai on Friday afternoon. Zaheera has been sent to judicial custody till March 13. She had been absconding ever since the Supreme Court sentenced her to one year in jail two days ago. Her sister Saheera Sheikh has also been served a court notice for turning hostile. Editor, Communalism Combat, Teesta Setalvad, who had been supportive of Zaheera all through her legal struggle, says that targeting Zaheera takes the spotlight away from those guilty in the Gujarat riot case. The social activist told CNN-IBN, "It is a welcome step that she surrendered because the fact that she did not give herself up to the legal process could work against her further. Now, that she has surrendered the legal process will take its course. But the story is not over yet. " Setalvad added that had Zaheera not been misguided, "February 28 would have been her victory". "The conduct of some of the lawyers, both in Bombay and in Vadodara, those who were a part of the misleading, is a shocking case of professional misconduct," she said. On Wednesday night, a special team of Gujarat police team had raided her sister Tahira Sheikh's house in Mumbai in search of Zaheera. The special team served a notice on Zaheera's brother-in-law. Earlier, a trial court in Mumbai had sentenced nine accused in the Best Bakery case to life in prison just two weeks back.
english
<reponame>leetrunghoo/learnEnglish { "lessonIndex": 222, "categoryIndex": 1, "sectionIndex": 6, "title": "Talking About Girls - Interactive Practice", "link": "http://www.talkenglish.com/lessonpractice.aspx?ALID=671", "html": "<h1>Talking About Girls - Interactive Practice</h1>Click on Listen All and follow along. After becoming comfortable with the entire conversation, become Person A by clicking on the Person A button. You will hear only Person B through the audio file. There will be a silence for you to repeat the sentences of Person A. Do the same for Person B. The speed of the conversation is native speed. Use the pause button if the pause between each sentence is too fast for you. After practicing several times, you will be able to speak as fast as a native.<table border=\"0\"><tr><td>1 &#xA0;&#xA0;&#xA0;</td></tr><tr><td><a href=\"http://www.talkenglish.com/AudioTE1/L107/practice/L107P2.mp3\">Listen All</a>&#xA0;&#xA0;|&#xA0;&#xA0;<a href=\"http://www.talkenglish.com/AudioTE1/L107/practice/L107P2b.mp3\">Person A</a>&#xA0;&#xA0;|&#xA0;&#xA0;<a href=\"http://www.talkenglish.com/AudioTE1/L107/practice/L107P2a.mp3\">Person B</a></td></tr><tr><td>A: &quot;Yo Matt. How goes it man?&quot;<br>B: &quot;Pretty good. What have you been up to?&quot;<br>A: &quot;You know that chick in psychology class?&quot;<br>B: &quot;Yeah. You only talk about her every other day.&quot;<br>A: &quot;I can&apos;t get her out of my mind. She is damn fine.&quot;<br>B: &quot;Why don&apos;t you go talk to her then?&quot;<br>A: &quot;I think she is out of my league.&quot;<br>B: &quot;Chicken. Somebody is only out of your league if you think so. What do you see in her anyway? She is a little chubby dude.&quot;<br>A: &quot;She is not. She has a nice figure. And she has such a pretty face.&quot;<br>B: &quot;Whatever. If you think so.&quot;<br>A: &quot;You like skinny girls or something?&quot;<br>B: &quot;I like normal girls without any flab hanging out.&quot;<br>A: &quot;Now you&apos;re exaggerating you freak.&quot;<br>B: &quot;Seriously, I like a girl who is fit and likes to exercise.&quot;<br>A: &quot;How about personality?&quot;<br>B: &quot;It doesn&apos;t matter until you are thinking about marriage and I&apos;m not thinking about that yet.&quot;<br>A: &quot;Well, I&apos;m looking so I don&apos;t care that much about figure. As long as she is nice and sweet.&quot;<br><br></td></tr><tr><td>2 &#xA0;</td></tr><tr><td><a href=\"http://www.talkenglish.com/AudioTE1/L107/practice/L107P3.mp3\">Listen All</a>&#xA0;&#xA0;|&#xA0;&#xA0;<a href=\"http://www.talkenglish.com/AudioTE1/L107/practice/L107P3b.mp3\">Person A</a>&#xA0;&#xA0;|&#xA0;&#xA0;<a href=\"http://www.talkenglish.com/AudioTE1/L107/practice/L107P3a.mp3\">Person B</a></td></tr><tr><td>A: &quot;Who do you think is hotter? Britney or Christina?&quot;<br>B: &quot;That&apos;s a no brainer. Christina is way hotter. You think Britney is hotter than Christina?&quot;<br>A: &quot;She has some serious curves that turn me on. And I like the way she moves. I think she&apos;s sexy.&quot;<br>B: &quot;Ok. How about between the three girls on Friends? Who do you think is the cutest?&quot;<br>A: &quot;I like Phoebe the most. She is so funny it cracks me up.&quot;<br>B: &quot;Ok. I agree with you there. Let&apos;s change the scenario a little. If you were stuck on an island, who would you choose to be with?&quot;<br>A: &quot;I&apos;d take <NAME>. I have this thing about her.&quot;<br>B: &quot;No way man. How about <NAME>? She is absolutely beautiful.&quot;<br></td></tr></table>" }
json
Login to the NPS account using credentials on the Protean CRA website. Select the option to update personal details under the tab demographic changes. Select Update Address Details and further select through DigiLocker and select driving licence under documents. Applicant will be redirected to DigiLocker Website, where he can login with login credentials and provide consent for sharing of documents/information with CRA. Allow NPS to access DigiLocker and issued documents and submit. Address as per driving licence will be updated in the NPS account. Thanks For Reading!
english
MELBOURNE, Nov 25 – An American dubbed the "Honeymoon Killer" over his wife\’s death on a diving trip flew out of Australia Thursday for the United States, where he may face further charges, officials said. Bubble-wrap salesman David "Gabe" Watson, who served 18 months in jail for manslaughter, left Melbourne shortly after noon (0100 GMT) under police escort after deciding not to challenge a deportation order. Watson\’s departure comes after the United States assured Australia that the 33-year-old would not face the death penalty if convicted in his home country. "The Australian government received assurances from the United States government that… the death penalty would not be sought, imposed or carried out in relation to this crime," Immigration Minister Chris Bowen said in a statement. Honeymooner Christina Watson, 26, drowned at the Great Barrier Reef in October 2003 after her husband of 11 days, an experienced rescue diver, failed to inflate her buoyancy vest or remove weights to bring her to the surface. In mid-2008, coroner David Glasgow found it was likely Watson killed his wife by holding her underwater and turning off her air supply, adding that he may have been seeking a life insurance payout. Watson, who had left Australia and remarried but voluntarily returned for his trial, was sentenced to four and a half years in June 2009, but all but 12 months of that sentence was suspended under a plea bargain. Australian authorities quickly appealed the "manifestly inadequate" term, extending it to 18 months. Watson completed the sentence on November 11 but was handed straight into immigration custody to await deportation. Legal officials in Watson\’s home state of Alabama have expressed disappointment at the sentence he served in Australia and threatened to lay murder and kidnapping charges.
english
Nivin's mustache twirling in 'Premam' was a big time hit. The actor has reveled how it all came about in an interview with an online portal. He says that introducing George's college life in a white mundu and black shirt was not pre planned. He says that they had all been ready to shoot in jeans but taking into consideration someone's opinion about the mundu, decided to give it a shot. The decision has clicked big time and college students across Kerala has adopted the look. Nivin also added that the mustache twirling is something he always does when he grows his mustache and beard. When he did it off shoot, it was asked to be done for the shoot too, adding to George's character. Follow us on Google News and stay updated with the latest!
english
import prettyBytes = require('pretty-bytes'); prettyBytes(1337); // => '1.34 kB' prettyBytes(100); // => '100 B'
typescript
<reponame>manishdwibedy/WeatherForecast<filename>app/src/main/java/weather/manish/com/weatherforecast/MapActivity.java package weather.manish.com.weatherforecast; import android.app.Activity; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.Intent; import android.os.Bundle; import com.google.gson.Gson; import com.hamweather.aeris.communication.AerisEngine; import weather.manish.com.weatherforecast.model.ForecastResponse; //public class MapActivity extends AppCompatActivity { public class MapActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_map); Intent intent = getIntent(); String data = intent.getStringExtra("data"); double latitude=0; double longitude=0; ForecastResponse response = new Gson().fromJson(data,ForecastResponse.class); latitude = Double.parseDouble(response.getLatitude()); longitude = Double.parseDouble(response.getLongitude()); AerisEngine.initWithKeys(this.getString(R.string.aeris_client_id), this.getString(R.string.aeris_client_secret), this); FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); Bundle bundle = new Bundle(); bundle.putString("latitude", Double.toString(latitude)); bundle.putString("longitude", Double.toString(longitude)); MapFragment mapFragment = new MapFragment(); mapFragment.setArguments(bundle); fragmentTransaction.add(R.id.ForecastMap,mapFragment); fragmentTransaction.commit(); } }
java
<gh_stars>1-10 package br.eti.clairton.security; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.enterprise.inject.Vetoed; import javax.validation.constraints.NotNull; @Vetoed public class GateInMemory implements Gate { private final Map<String, Map<String, Map<String, List<String>>>> authorizations; public GateInMemory() { this(new HashMap<String, Map<String, Map<String, List<String>>>>()); } public GateInMemory(final Map<String, Map<String, Map<String, List<String>>>> authorizations) { super(); this.authorizations = authorizations; } @Override public Boolean isOpen(@NotNull final String user, @NotNull final String app, @NotNull final String resource, @NotNull final String operation) { if (user != null) { return authorizations.get(user).get(app).get(resource) .contains(operation); } else { return Boolean.FALSE; } } }
java
<filename>src/styles.css /* You can add global styles to this file, and also import other style files */ html, body { height: 100%; } body { margin: 0; font-family: 'Roboto', sans-serif; display: flex; min-height: 100vh; flex-direction: column; } main { flex: 1 0 auto; }
css
<reponame>tabinfl/50ShadesOfGreyPill { "next_topic_id": 2, "topic": [ { "topic_id": 1, "title": "How censorship-resistant is ZeroNet?", "body": "Without Tor, it should be trivial for a state-level censor to hunt down every Zeronet-user by harvesting all IPs. With Tor, users can already access any ClearNet site and even host their own site via Onion address. So what's the added value of using ZeroNet?", "added": 1485527675 } ], "topic_vote": { "1_16EGCX1cmogYo2EPidRU3axQ6N3jNQndoa": 1 }, "next_comment_id": 2, "comment": { "1_16EGCX1cmogYo2EPidRU3axQ6N3jNQndoa": [ { "comment_id": 1, "body": "Nobody? No thoughts on this?", "added": 1486391643 } ] }, "comment_vote": {} }
json
The Indian U-17 Women's team succumbed to a 1-3 defeat to Sweden at Torremirona Relais in Spain, their first match of the exposure tour for the girls ahead of FIFA U-17 Women's World Cup event back at home. On Monday, Sudha Tirkey (62') scored the only goal for India after Sweden U-17 girls took a comfortable 3-0 lead through Ida Gramfors (44') Sara Frigren (52') and Selma Astrom (54'). India, however, looked promising at the start as they competed on equal terms in an intense midfield battle that saw winger Anita Kumari get an early shot at the rival goal, which was saved. Minutes later, Nitu Linda tried her luck to take a shot from the edge of the Swedish penalty area, but was blocked. India earned a free kick in the 19th minute and Anita once again made an attempt at the rival goal, this time a header, but the Swedish custodian Elin Ekmark saved it with ease. A few minutes later Sweden striker Maja Jarvensivu tried a long ranger, which went over the bar. Both Anita and India goalkeeper Anjali enjoyed a good first half. The former made a few inroads around the half-hour mark, while the latter made a few worthy saves to keep her side in the game. Despite the chances created by Thomas Dennerby's girls, it was Sweden, who got the breakthrough close to halftime when a Sara Frigren's pass from the corner kick was met by Ida Gramfors and she bulged the back of the net. Changing over, Swedish girls dominated possession and created chances in front of the Indian goal. In the 47th minute, Sweden doubled their lead scoring one from Frigren's rebound shot. Minutes later, Selma Astrom scored the third for the night making most of a Frigren cross. India head coach Dennerby made three changes, bringing on Sudha, Shubhangi and Shilky in place of Lynda Kom, Babina Devi and Varshika as India pressed hard to find the target. In the 62nd minute, Sudha made her immediate impact - she dribbled past her marker off a Astam long pass and chipped it in to pull one back for India. Nitu Linda almost created a chance out of nowhere, as she closed down on a rival defender to snatch the ball off her feet inside the Sweden penalty area. However, the Sweden goalkeeper was close at hand, managing to gather the ball. With less than 20 minutes of regulation time left on the clock, Dennerby made more changes, bringing in Naketa, Lavanya and Shailja in place of Kajal, Neha and Kajol Dsouza. India continued to drive forward but could not score again leaving Sweden to win the match with a 3-1 margin. FIFA U-17 Women's World Cup 2022 is scheduled to be held in India between October 11 and 30. The seventh edition of the biennial youth tournament will be the first-ever FIFA women's competition to be hosted by India. (Only the headline and picture of this report may have been reworked by the Business Standard staff; the rest of the content is auto-generated from a syndicated feed. )
english
A $42 million claim for compensation from FIFA will be tough for Shakhtar Donetsk to win, the Ukrainian club’s chief executive acknowledged, though a clear message had been sent by taking the case to sport’s highest court. Shakhtar is determined not to be a pushover in the January transfer window. Not after the club believed it lost control of too many players who left Ukraine this year as other teams gained from FIFA’s emergency transfer rules during the Russian invasion. “We will not accept that our players should be sold at discounts,” Shakhtar CEO Sergei Palkin told The Associated Press, one day after helping to present the club’s case against FIFA at the Court of Arbitration for Sport in Lausanne, Switzerland. Shakhtar values its most prized asset at 100 million euros ($106 million) with Premier League leader Arsenal most strongly linked to winger Mykhaylo Mudryk. “I don’t want European clubs to use our situation to devalue our players,” Palkin said in a telephone interview. “That is the worst scenario.” Players who were under Shakhtar’s control when Russia invaded Ukraine on Feb. 24 — one day before the national league was to resume after a winter break — are now with clubs in Brazil, England, France and Italy. Those clubs could avoid paying a transfer fee to Shakhtar, whose 2021-22 season was abandoned along with the rest of domestic soccer in Ukraine. Instead, FIFA allowed the players to suspend their contracts in Ukraine — initially until the end of last season in June, then for all of this season — and seek more playing and contractual stability in another country not at war. FIFA believed its interim rules better protected clubs than simply terminating all contracts, as the FIFPRO players’ union suggested, or having players seek to void deals that might require them to stay in Ukraine. FIFA’s emergency rules ended up costing Shakhtar tens of millions of euros (dollars), the club argues, because it had no leverage in the transfer market. Palkin said Shakhtar is up against “the biggest, most influential organization” in soccer at CAS, where it suggested FIFA could have helped by creating a reparations fund for Ukraine. “It will be difficult to get a positive decision,” he said. “But it’s important that our views should be heard. From my point of view the hearing was good.” A verdict from the CAS judges could come by mid-January though without the full written reasons to explain why. Those could take several months to publish. In a separate but similar case at CAS, a group of Russian clubs have also challenged the FIFA transfer rules. Players and coaches could suspend their contracts at Russian clubs which were banned this season from UEFA-organized European competitions. The Russian case was heard by a different panel of CAS judges on Nov. 21. No date has been set for a verdict. The legal picture should be clearer when Shakhtar returns to competitive action on February 16 in the Europa League knockout playoffs. Shakhtar hosts Rennes in the first leg in the Polish capital Warsaw, where the team played its three “home” games in the Champions League group stage. In March, Shakhtar resumes in the Ukrainian Premier League — playing games in empty stadiums, without ticket revenue, and often interrupted by air raid alerts. “They understand our position and that we need the finance,” Palkin said of Shakhtar’s rivals.
english
<reponame>jalmmor/qgis-gbif-api<gh_stars>10-100 {"offset":0,"limit":20,"endOfRecords":true,"count":1,"results":[{"key":1038328299,"datasetKey":"50c9509d-22c7-4a22-a47d-8c48425ef4a7","publishingOrgKey":"<KEY>","publishingCountry":"US","protocol":"DWC_ARCHIVE","lastCrawled":"2015-01-14T09:19:35.250+0000","lastParsed":"2014-11-11T11:08:45.571+0000","extensions":{},"basisOfRecord":"HUMAN_OBSERVATION","taxonKey":2581043,"kingdomKey":5,"phylumKey":95,"classKey":179,"orderKey":1052,"familyKey":8382,"genusKey":2581043,"scientificName":"<NAME>, 1795","kingdom":"Fungi","phylum":"Ascomycota","order":"Helotiales","family":"Hyaloscyphaceae","genus":"Lachnum","genericName":"Lachnum","taxonRank":"GENUS","dateIdentified":"2014-10-13T21:39:37.000+0000","decimalLongitude":170.5101,"decimalLatitude":-45.85385,"year":2014,"month":7,"day":11,"eventDate":"2014-07-10T22:00:00.000+0000","issues":["COORDINATE_ROUNDED","GEODETIC_DATUM_ASSUMED_WGS84","COUNTRY_DERIVED_FROM_COORDINATES"],"modified":"2014-10-18T00:18:18.000+0000","lastInterpreted":"2014-11-11T11:41:32.314+0000","references":"http://www.inaturalist.org/observations/1008353","identifiers":[],"media":[{"references":"http://static.inaturalist.org/photos/1269445/medium.?1413430429"},{"references":"http://static.inaturalist.org/photos/1269446/medium.?1413430426"},{"references":"http://static.inaturalist.org/photos/1269447/medium.?1413430428"}],"facts":[],"relations":[],"geodeticDatum":"WGS84","class":"Leotiomycetes","countryCode":"NZ","country":"New Zealand","verbatimEventDate":"July 11, 2014","verbatimLocality":"Dunedin - Woodhaugh Gardens","http://unknown.org/occurrenceDetails":"http://naturewatch.org.nz/observations/412558","rights":"Copyright <NAME>, licensed under a Creative Commons cc_by_name license: http://creativecommons.org/licenses/by/3.0/","rightsHolder":"<NAME>","occurrenceID":"http://naturewatch.org.nz/observations/412558","collectionCode":"Observations","taxonID":"203705","gbifID":"1038328299","institutionCode":"iNaturalist","datasetName":"iNaturalist research-grade observations","catalogNumber":"1008353","recordedBy":"<NAME>","identifier":"1008353","identificationID":"1785304"}]}
json
<reponame>teleivo/dhis2-github-action-metrics<gh_stars>0 {"total_count":1,"jobs":[{"id":5215225413,"run_id":1851690813,"run_url":"https://api.github.com/repos/dhis2/dhis2-core/actions/runs/1851690813","run_attempt":2,"node_id":"CR_kwDOA_1uaM8AAAABNtoGRQ","head_sha":"139e915bd89d75f76720eb4de43f98f1d33abde8","url":"https://api.github.com/repos/dhis2/dhis2-core/actions/jobs/5215225413","html_url":"https://github.com/dhis2/dhis2-core/runs/5215225413?check_suite_focus=true","status":"completed","conclusion":"failure","started_at":"2022-02-16T11:16:20Z","completed_at":"2022-02-16T11:29:53Z","name":"api-test","steps":[{"name":"Set up job","status":"completed","conclusion":"success","number":1,"started_at":"2022-02-16T11:16:20.000Z","completed_at":"2022-02-16T11:16:22.000Z"},{"name":"Run actions/checkout@v2","status":"completed","conclusion":"success","number":2,"started_at":"2022-02-16T11:16:22.000Z","completed_at":"2022-02-16T11:16:26.000Z"},{"name":"Set up JDK 11","status":"completed","conclusion":"success","number":3,"started_at":"2022-02-16T11:16:26.000Z","completed_at":"2022-02-16T11:16:55.000Z"},{"name":"Build core image","status":"completed","conclusion":"success","number":4,"started_at":"2022-02-16T11:16:55.000Z","completed_at":"2022-02-16T11:19:46.000Z"},{"name":"Login to Docker Hub","status":"completed","conclusion":"skipped","number":5,"started_at":"2022-02-16T11:19:46.000Z","completed_at":"2022-02-16T11:19:46.000Z"},{"name":"Set up Docker Buildx","status":"completed","conclusion":"success","number":6,"started_at":"2022-02-16T11:19:46.000Z","completed_at":"2022-02-16T11:19:55.000Z"},{"name":"Publish docker image","status":"completed","conclusion":"skipped","number":7,"started_at":"2022-02-16T11:19:55.000Z","completed_at":"2022-02-16T11:19:55.000Z"},{"name":"Build test image","status":"completed","conclusion":"success","number":8,"started_at":"2022-02-16T11:19:55.000Z","completed_at":"2022-02-16T11:20:18.000Z"},{"name":"Run tests","status":"completed","conclusion":"failure","number":9,"started_at":"2022-02-16T11:20:18.000Z","completed_at":"2022-02-16T11:29:47.000Z"},{"name":"Upload logs","status":"completed","conclusion":"success","number":10,"started_at":"2022-02-16T11:29:47.000Z","completed_at":"2022-02-16T11:29:51.000Z"},{"name":"Run actions/upload-artifact@v2","status":"completed","conclusion":"success","number":11,"started_at":"2022-02-16T11:29:51.000Z","completed_at":"2022-02-16T11:29:52.000Z"},{"name":"Post Build test image","status":"completed","conclusion":"success","number":19,"started_at":"2022-02-16T11:29:52.000Z","completed_at":"2022-02-16T11:29:52.000Z"},{"name":"Post Set up Docker Buildx","status":"completed","conclusion":"success","number":20,"started_at":"2022-02-16T11:29:52.000Z","completed_at":"2022-02-16T11:29:52.000Z"},{"name":"Post Set up JDK 11","status":"completed","conclusion":"success","number":21,"started_at":"2022-02-16T11:29:52.000Z","completed_at":"2022-02-16T11:29:53.000Z"},{"name":"Post Run actions/checkout@v2","status":"completed","conclusion":"success","number":22,"started_at":"2022-02-16T11:29:53.000Z","completed_at":"2022-02-16T11:29:53.000Z"},{"name":"Complete job","status":"completed","conclusion":"success","number":23,"started_at":"2022-02-16T11:29:53.000Z","completed_at":"2022-02-16T11:29:53.000Z"}],"check_run_url":"https://api.github.com/repos/dhis2/dhis2-core/check-runs/5215225413","labels":["ubuntu-latest"],"runner_id":4,"runner_name":"GitHub Actions 4","runner_group_id":2,"runner_group_name":"GitHub Actions"}]}
json
#!/usr/bin/env python3 # Test whether a connection is disconnected if it sets the will flag but does # not provide a will payload. from mosq_test_helper import * def do_test(proto_ver): rc = 1 keepalive = 10 connect_packet = mosq_test.gen_connect("will-no-payload", keepalive=keepalive, will_topic="will/topic", will_qos=1, will_retain=True, proto_ver=proto_ver) b = list(struct.unpack("B"*len(connect_packet), connect_packet)) bmod = b[0:len(b)-2] bmod[1] = bmod[1] - 2 # Reduce remaining length by two to remove final two payload length values connect_packet = struct.pack("B"*len(bmod), *bmod) port = mosq_test.get_port() broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port) try: sock = mosq_test.do_client_connect(connect_packet, b"", port=port) sock.close() rc = 0 except mosq_test.TestError: pass finally: broker.terminate() broker.wait() (stdo, stde) = broker.communicate() if rc: print(stde.decode('utf-8')) print("proto_ver=%d" % (proto_ver)) exit(rc) do_test(proto_ver=4) do_test(proto_ver=5) exit(0)
python
<reponame>dainst/gapvis {"text":"OP TACITUS. 287 titled to an honourable dismission. They delivered up their arms to the tribunes; but, being informed that Vespasian was in motion, they assembled again, and proved the best support of the Flavian cause. The first legion of marines was ordered into <span class=\"place\" data-place-id=\"1027\" >Spain<\/span>, that in repose and in- dolence their spirit might evaporate. The seventh and eleventh returned to their old winter quarters. For the thirteenth em- ployment was found in the building of two amphitheatres; one at <span class=\"place\" data-place-id=\"383628\" >Cremona<\/span>, and the other at <span class=\"place\" data-place-id=\"393421\" >Bononia<\/span>. In the former Caecina was preparing to exhibit a spectacle of gladiators, and Valens in the latter; both wishing to gratify the taste of their master, whom, in the midst of arduous affairs, no- thing could wean from his habitual plea- sures. LXVIII. Br these measures the van- quished party was sufficiently weakened; but the spirit of the conquerors could not long endure a state of tranquillity. A quarrel broke out, in its origin slight and ridiculous, but attended with conse- quences that kindled the flame of war","image":"http:\/\/books.google.com\/books?id=2X5KAAAAYAAJ&pg=PA285&img=1&zoom=3&hl=en&sig=ACfU3U0EP9dheeHNjmoJUOBWGWtU76Fmsw&ci=0%2C0%2C1000%2C2000&edge=0"}
json
<filename>src/main/resources/static/mas_json/2011_icse_-2244155564840110997.json {"title": "Reengineering legacy software products into software product line based on automatic variability analysis.", "fields": ["software design description", "resource oriented architecture", "software sizing", "package development process", "backporting"], "abstract": "In order to deliver the various and short time-to-market software products to customers, the paradigm of Software Product Line (SPL) represents a new endeavor to the software development. To migrate a family of legacy software products into SPL for effective reuse, one has to understand commonality and variability among existing products variants. The existing techniques rely on manual identification and modeling of variability, and the analysis based on those techniques is performed at several mutually independent levels of abstraction. We propose a sandwich approach that consolidates feature knowledge from top-down domain analysis with bottom-up analysis of code similarities in subject software products. Our proposed method integrates model differencing, clone detection, and information retrieval techniques, which can provide a systematic means to reengineer the legacy software products into SPL based on automatic variability analysis.", "citation": "Citations (16)", "departments": ["National University of Singapore"], "authors": ["<NAME>.....http://dblp.org/pers/hd/x/Xue:Yinxing"], "conf": "icse", "year": "2011", "pages": 4}
json
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Package calendar provides a Google Calendar barista module. package calendar // import "barista.run/modules/gsuite/calendar" import ( "net/http" "time" "barista.run/bar" "barista.run/base/value" "barista.run/oauth" "barista.run/outputs" "barista.run/timing" "golang.org/x/oauth2/google" calendar "google.golang.org/api/calendar/v3" ) // Status represents the response/status for an event. type Status string // Possible values for status per the calendar API. const ( StatusUnknown = Status("") StatusConfirmed = Status("confirmed") StatusTentative = Status("tentative") StatusCancelled = Status("cancelled") StatusDeclined = Status("declined") StatusUnresponded = Status("needsAction") ) // Event represents a calendar event. type Event struct { Start time.Time End time.Time Alert time.Time EventStatus Status Response Status Location string Summary string } // UntilStart returns the time remaining until the event starts. func (e Event) UntilStart() time.Duration { return e.Start.Sub(timing.Now()) } // UntilEnd returns the time remaining until the event ends. func (e Event) UntilEnd() time.Duration { return e.End.Sub(timing.Now()) } // UntilAlert returns the time remaining until a notification should be // displayed for this event. func (e Event) UntilAlert() time.Duration { return e.Alert.Sub(timing.Now()) } // EventList represents the list of events split by the temporal state of each // event: in progress, alerting (upcoming but within notification duration), or // upcoming beyond the notification duration. type EventList struct { // All events currently in progress InProgress []Event // Events where the time until start is less than the notification duration Alerting []Event // All other future events Upcoming []Event } type config struct { calendarID string lookahead time.Duration showDeclined bool } // Module represents a Google Calendar barista module. type Module struct { oauthConfig *oauth.Config config value.Value // of config scheduler *timing.Scheduler outputFunc value.Value // of func(EventList) bar.Output } // New creates a calendar module from the given oauth config. func New(clientConfig []byte) *Module { conf, err := google.ConfigFromJSON(clientConfig, calendar.CalendarReadonlyScope) if err != nil { panic("Bad client config: " + err.Error()) } m := &Module{ oauthConfig: oauth.Register(conf), scheduler: timing.NewScheduler(), } m.config.Set(config{calendarID: "primary"}) m.RefreshInterval(10 * time.Minute) m.TimeWindow(18 * time.Hour) m.Output(func(evts EventList) bar.Output { hasEvent := false out := outputs.Group() for _, e := range evts.InProgress { out.Append(outputs.Textf("ends %s: %s", e.End.Format("15:04"), e.Summary)) hasEvent = true } for _, e := range evts.Alerting { out.Append(outputs.Textf("%s: %s", e.Start.Format("15:04"), e.Summary)) hasEvent = true } if !hasEvent { for _, e := range evts.Upcoming { // If no other events have been displayed, show next upcoming. out.Append(outputs.Textf("%s: %s", e.Start.Format("15:04"), e.Summary)) break } } return out }) return m } // for tests, to wrap the client in a transport that redirects requests. var wrapForTest func(*http.Client) // Stream starts the module. func (m *Module) Stream(sink bar.Sink) { client, _ := m.oauthConfig.Client() if wrapForTest != nil { wrapForTest(client) } srv, _ := calendar.New(client) outf := m.outputFunc.Get().(func(EventList) bar.Output) nextOutputFunc, done := m.outputFunc.Subscribe() defer done() conf := m.getConfig() nextConfig, done := m.config.Subscribe() defer done() renderer := timing.NewScheduler() evts, err := fetch(srv, conf) for { if sink.Error(err) { return } list, refresh := makeEventList(evts) if !refresh.IsZero() { renderer.At(refresh.Add(time.Duration(1))) } sink.Output(outf(list)) select { case <-nextOutputFunc: outf = m.outputFunc.Get().(func(EventList) bar.Output) case <-nextConfig: conf = m.getConfig() evts, err = fetch(srv, conf) case <-m.scheduler.C: evts, err = fetch(srv, conf) case <-renderer.C: } } } func fetch(srv *calendar.Service, conf config) ([]Event, error) { timeMin := timing.Now() timeMax := timeMin.Add(conf.lookahead) req := srv.Events.List(conf.calendarID) req.MaxAttendees(1) req.OrderBy("startTime") // Simplify recurring events by converting them to single events. req.SingleEvents(true) req.TimeMin(timeMin.Format(time.RFC3339)) req.TimeMax(timeMax.Format(time.RFC3339)) req.Fields("items(end,location,start,status,summary,attendees,reminders),defaultReminders") res, err := req.Do() if err != nil { return nil, err } defaultAlert := getEarliestPopupReminder(res.DefaultReminders) events := []Event{} for _, e := range res.Items { if e.Start.DateTime == "" || e.End.DateTime == "" { // All day events only have .Date, not .DateTime. continue } start, err := time.Parse(time.RFC3339, e.Start.DateTime) if err != nil { return nil, err } end, err := time.Parse(time.RFC3339, e.End.DateTime) if err != nil { return nil, err } if end.Before(timeMin) { continue } selfStatus := StatusUnknown for _, at := range e.Attendees { if at.Self { selfStatus = Status(at.ResponseStatus) } } if !conf.showDeclined && selfStatus == StatusDeclined { continue } alert := defaultAlert if e.Reminders != nil && !e.Reminders.UseDefault { alert = getEarliestPopupReminder(e.Reminders.Overrides) } eventStatus := Status(e.Status) if eventStatus == StatusCancelled { continue } events = append(events, Event{ Start: start, End: end, Alert: start.Add(-alert), EventStatus: eventStatus, Response: selfStatus, Location: e.Location, Summary: e.Summary, }) } return events, nil } func getEarliestPopupReminder(rs []*calendar.EventReminder) time.Duration { duration := time.Duration(0) for _, r := range rs { if r.Method != "popup" { continue } rDuration := time.Duration(r.Minutes) * time.Minute if rDuration > duration { duration = rDuration } } return duration } func makeEventList(events []Event) (EventList, time.Time) { now := timing.Now() var refresh time.Time list := EventList{} for _, e := range events { switch { case now.After(e.End): continue case now.After(e.Start) && e.End.After(now): setIfEarlier(&refresh, e.End) list.InProgress = append(list.InProgress, e) case now.After(e.Alert) && e.Start.After(now): setIfEarlier(&refresh, e.Start) list.Alerting = append(list.Alerting, e) default: setIfEarlier(&refresh, e.Alert) list.Upcoming = append(list.Upcoming, e) } } return list, refresh } func setIfEarlier(target *time.Time, source time.Time) { if target.IsZero() || source.Before(*target) { *target = source } } // Output sets the output format for the module. func (m *Module) Output(outputFunc func(EventList) bar.Output) *Module { m.outputFunc.Set(outputFunc) return m } // RefreshInterval sets the interval for fetching new events. Note that this is // distinct from the rendering interval, which is returned by the output func // on each new output. func (m *Module) RefreshInterval(interval time.Duration) *Module { m.scheduler.Every(interval) return m } func (m *Module) getConfig() config { return m.config.Get().(config) } // CalendarID sets the ID of the calendar to fetch events for. func (m *Module) CalendarID(id string) *Module { c := m.getConfig() c.calendarID = id m.config.Set(c) return m } // TimeWindow controls the search window for future events. func (m *Module) TimeWindow(window time.Duration) *Module { c := m.getConfig() c.lookahead = window m.config.Set(c) return m } // ShowDeclined controls whether declined events are shown or ignored. func (m *Module) ShowDeclined(show bool) *Module { c := m.getConfig() c.showDeclined = show m.config.Set(c) return m }
go
{% extends "base.html" %} {% from 'bootstrap/pagination.html' import render_pagination %} {% block title %}Search results{% endblock %} {% block content %} <div class="row home__featured"> <div class="col-12"> {% if query and pagination.items %} <div class="row"> {% include "products/_items.html" %} </div> <div class="row"> <div class="m-auto"> {{ render_pagination(pagination) }} </div> </div> {% else %} <div class="row no-results"> <div class="col-12"> <h2>Search:<strong>{{ query }}</strong></h2> <svg data-src="{{ url_for('static', filename='img/no-results-bg.svg') }}" width="360" height="360"></svg> <p>Sorry, no matches found for your request.</p> <p>Try again or shop new arrivals.</p> </div> </div> {% endif %} </div> </div> {% endblock content %}
html
<filename>package.json { "name": "pico-engine", "private": true, "license": "MIT", "scripts": { "out": "lerna clean --yes && lerna exec -- npm i && rm -rf packages/*/package-lock.json && lerna exec --bail=false -- npm out", "clean": "lerna clean --yes", "clean-setup": "lerna clean --yes && rm -rf node_modules/ package-lock.json && npm run setup", "bootstrap": "lerna bootstrap --hoist", "setup": "npm i && npm run bootstrap", "publish": "lerna publish", "start": "cd packages/pico-engine && npm start", "test": "lerna run test" }, "devDependencies": { "eslint": "^4.8.0", "espree": "^3.5.1", "lerna": "^2.4.0" } }
json
After releasing the first look poster, the team of 'Hello World' decided to introduce us to the interns in the series. The office drama will be streaming on ZEE5 from 12th August and the latest video is surely going to bring a good buzz on this upcoming series. Just like in any workplace, we get to meet people with different backgrounds, different mindsets and different goals. The lead cast is introduced in this video in a unique way and each character is established along with their family situation or their goals. Sivasai Vardhan Jaladanki wrote and directed this series while PK Dhandi is the music composer. Edurolu Raju is the cinematographer while Praveen Pudi is the editor. The main cast includes Aryan Rajesh, Sadaa, Ram Nithin, Sudharshan Govind, Nitya Shetty, Nikil V Simha, Apoorva Rao, Geela Anil, Snehal S Kamat, Ravi Varma and Jayaprakash. Bankrolled under Pink Elephant Pictures, 'Hello' World' is produced by Niharika Konidela. Sadaa, Aryan Rajesh and others will be seen in major roles too. While talking about the series, the director said, "It is the story of eight youngsters who step into a large IT company hoping that their struggles are all behind them, only to find that life has a lot more in store than they had imagined. " The life of young techies and their experiences in the techie world will be showcased in this series.
english
Argentina star Lionel Messi was banned from playing for his national team for three months and fined $50,000 on Friday by CONMEBOL after he heavily criticized the South American football governing body during the Copa America. The 32-year-old Barcelona forward had accused CONMEBOL of "corruption" after he was sent off against Chile during the third-place play-off during the tournament in Brazil, which ended last month. Messi was angered by two incidents during the June-July Copa hosted by bitter rivals Brazil. Argentina were denied two penalty claims in their 2-0 semi-final defeat to the hosts, after which Messi claimed Brazil were "managing a lot in CONMEBOL these days. " And when he was harshly dismissed in the next game, which Argentina went on to win 2-1, he couldn't contain his anger. "Corruption and the referees are preventing people from enjoying the football and they're ruining it a bit," Messi said. with Chile captain Gary Medel in which television pictures suggested he'd done little wrong. The CONMEBOL statement on its website didn't specify why Messi was being punished but said it was related to articles 7. 1 and 7. 2 of its disciplinary regulations. One such clause refers to "offensive, insulting behavior or making defamatory protests of any kind. " Another clause mentions "breaching the decisions, directives or orders of the judicial bodies. " The ban means only that Messi will miss a handful of friendly matches as Argentina's next competitive fixture is not until the South American qualifiers for the 2022 World Cup in Qatar begin in March. However, he has already received a one-game ban from CONMEBOL for his red card against Chile meaning he'll miss the first of those. Argentina have two friendlies lined up in the United States in September against Chile and Mexico and another in October away to Germany. Messi would miss all three of those but be free to play for his country again in November.
english
Dil Hai Ki Manta Nahin is about Pooja Dharamchand (Pooja Bhatt) who is the daughter of a rich Mumbai shipping tycoon, Seth Dharamchand (Anupam Kher). She is head over heels in love with movie star Deepak Kumar (Sameer Chitre), but her father strongly disapproves of their courtship. One night, Pooja escapes from her father's yacht and hops on a bus to Bangalore to be with Deepak, who is on a shooting there. Meanwhile, Seth Dharamchand, realizing his daughter has run away, dispatches private detectives to locate her. On the bus to Bangalore, Pooja meets Raghu Jetley (Aamir Khan), a loud-mouth newspaperman who has just lost his job. He offers to help her in exchange for an exclusive story on her, which would revive his flagging career. Pooja is forced to agree to his demands, as he threatens to let her father know of her whereabouts should she not comply. After the bus breaks down, Raghu and Pooja go through various adventures together, and in their course find themselves falling more and more in love with each other. Raghu desires to marry Pooja, but financially he is in no shape to do so. He simply wanted a story on her life, but never wanted to win her heart. But later on he falls for her. Pooja also falls for Raghu and when she decides to go with him, she understands that Raghiu was just looking for a story and not her love. She calls it quits and goes back to Kher and agrees to marry Deepak. On the wedding day she realises her mistake and then runs away from the marriage mandap to Raghu and the movie ends on a good note.
english
Nowadays, the police department is making the best use of social media by responding to appeals for help from Facebook, Instagram and Twitter users. On Wednesday, when a youngster tagged the Cyberabad police by posting a pic of his mother's bruised and bloodied face, the police immediately responded. As per the youngster, his mother was sought to be battered to death by his father. However, the accused used influence and got charges like 'Attempt to murder' not included in the FIR. "As a last resort, I am approaching here. My Father (P Ramesh Babu) tried to kill my mother (P Rajamani ) in front of me using a digging bar and vegetable cutter. However, Chandanagar Police registered FIR under Sections 498A and 324 IPC (FIR no 251/2021 ) and removed 307 IPC," the youngster tweeted. At the time of writing, the Cyberabad police have ensured that the victim gets the required help. Follow us on Google News and stay updated with the latest!
english
import * as React from "react"; import ReactMarkdown from 'react-markdown'; import {AppID, LoadedPage} from "../configHandler/zodConfigTypes"; import * as constants from "../constants"; import "./pages.css"; interface CPageProps { perAppPages: Map<AppID, LoadedPage>; } // TODO: add support for using variables from constants.ts in markdown files // TODO: use menu.yml to determine which configs to read in / add to the config // TODO: use menu.yml to generate the links that will point to these export class CombinedPageElement extends React.PureComponent<CPageProps, any> { render() { const pages: JSX.Element[] = []; this.props.perAppPages.forEach((page, appID) => { pages.push(<div className="individual-page" key={`page-${appID}`}> {getHtmlForLoadedPage(page)} </div>); }); return <div className="combined-page"> {pages} </div>; } } function getHtmlForLoadedPage(p: LoadedPage) { if (p.pageType === "markdown") { const {mdText} = p; const mdTextWithConstants = replaceConstants(mdText); return <ReactMarkdown linkTarget="_blank">{mdTextWithConstants}</ReactMarkdown>; } } function replaceConstants(s: string) { return s.replace(/\${([a-zA-Z_][a-zA-Z0-9_]*)}/, (_match, p1) => { const varName = p1 as keyof typeof constants; if ( varName in constants && typeof constants[varName] === "string" ) { return constants[varName] as string; } else { return ""; } }); }
typescript
Home food delivery startup ZuperMeal has apparently closed down its operations eight months after it raised seed funding. The ZuperMeal app, when downloaded, is showing an error message. The website of the firm is also not working. Moreover, one of the three co-founders, Balasubramanian Anantha Narayanan, has also joined logistics startup LogiNext as vice president - business development, according to his LinkedIn profile. Narayanan could not be contacted till the time of filing this report. An email query sent to investor Ravi Saxena did not elicit any response till the time of filing this report. Attempts to reach out to other officials in the company were also unsuccessful. ZuperMeal had received $2 million (about Rs13 crore) in seed funding from celebrity chef Sanjeev Kapoor, Saxena and two unnamed foreign investors in October 2015. The development is yet another reminder of the grim situation that the food-tech sector finds itself in with investors not inclined to fund startups with high cash burn rate. Earlier this month, TinyOwl, a food ordering app, after struggling to restructure its business for several months shut down its operations in 17 cities except some areas of Mumbai. Mobile app Zeppery which allowed users to pre-order food at restaurants and other food outlets also closed down operations in May. In March, Bangalore-based online meal service provider iTiffin.in had stopped taking orders and advised employees to look for jobs. Dazo, operated by TapCibo Online Solutions Pvt. Ltd, closed down operations in October last year. Meanwhile, Zomato Media Pvt. Ltd, one of the early movers in the food-tech space, has scaled back operations in nine of its 23 overseas markets, including the US, as the restaurant search and food ordering startup looks to cut costs and conserve cash amid pressure to turn profitable. ZuperMeal Pvt. Ltd, which ran the ZuperMeal was founded in July 2016 by Pallavi Saxena, wife of Wonderchef co-founder Ravi Saxena, along with Narayanan and Prabhakar Banerjee. The Mumbai-based startup connected home chefs to consumers via its app. It had claimed to have 150 homemakers on its platform to cook 60 to 70 meals a day, at a net margin of 15%. At the same time, some food-tech startups have managed to raise funds. Earlier this month, Eatonomist, an online platform that delivers meals prepared at its kitchens, raised an undisclosed amount in seed investment from MCube Capital Advisors Pvt Ltd. In the same month, online food ordering platform Swiggy had raised Rs 47 crore (around $7 million) more from existing investors, including Norwest Venture Partners, DST Global and Accel Partners. In January, FreshMenu had raised $17 million in Series B funding while First Eat and Cookaroo are among the ventures that have secured seed or angel funding this year. The online food ordering business in India is estimated at Rs 5,000-6,000 crore, growing about 30% month-on-month, according to a report by India Brand Equity Foundation. The sector includes restaurant aggregators, food-ordering platforms, delivery-only players, proprietary meal sellers and cloud kitchens. Like this report? Sign up for our daily newsletter to get our top reports.
english
import json from tornado.httpclient import AsyncHTTPClient, HTTPRequest async def request(path, method='GET', data=None, header=None): http_client = AsyncHTTPClient() request = HTTPRequest( url=f'http://localhost:6666{path}', method=method, body=None if data is None else json.dumps(data), headers=header ) return await http_client.fetch(request)
python
46-year-old babysitter Rhonda Jewell was arrested and charged on Thursday in connection to the tragic death of a toddler. Rhonda allegedly left the 10-month-old toddler in the car for at least five hours. The internal temperature of the vehicle went over 133 degrees, which resulted in the death of the baby. Trigger warning: The article contains references to the death of a toddler. Readers’ description is advised. The baby was found unresponsive by her mother, who spotted that she was unattended inside the hot vehicle. The toddler was rushed to the hospital, where she was pronounced dead. According to hospital staff, the baby’s internal temperature was over a hundred degrees. Rhonda Jewell currently faces charges of aggravated manslaughter of a child. The same has been confirmed by Baker County Sheriff’s Office. Rhonda has currently been released with GPS monitoring after posting a bond of $25,000. On Wednesday, July 19, 2023, at around 8 am local time, Rhonda Jewell picked up the toddler from her house in north Macclenny. She then drove to another location on Estates Street in south Macclenny, where she was expected to watch three other children. Jewell ended up leaving the toddler inside the car for hours after she left. It was further revealed that the 46-year-old babysitter had been watching the toddler since June. At around 1 pm local time, when the toddler’s mother came to pick her up, she made the horrific discovery. She called emergency services and reported that the baby had blue lips and was not breathing. Responding officers rushed the toddler to Fraser Memorial Hospital, where she was declared dead. The arrest report confirmed: According to medical professionals, the baby was very hot when they touched her. They also stated that the baby’s external temperature was found to be 102.1 degrees, and her internal temperature was read as 110 degrees. They also mentioned that 110 is the highest temperature that the thermometer could read. The temperature in the area reached around 99 degrees that day when the toddler was left in the car for about five hours. According to Sheriff Scotty Rhoden: Rhoden further said: Authorities arrested Rhonda Jewell on Thursday and charged her with aggravated manslaughter of a child resulting in death. She was further taken to the Baker County Detention Center.
english
The Tamil Nadu Education Minister has announced that the admit card for the TN Public Exam, SSLC Exam 2020 would be available for the candidates after May 18. 2020 on dge. tn. gov. in. The Tamil Nadu SSLC or class 10th pending exams would be held from June 1 to June 12 for about 9. 5 lakh students. The dates for the chemistry exam for class 11th and the remaining 12th or +2 exams have also been announced in the state. The school education department is busy preparing the halls where the exams would be conducted for the 10th standard board examination. The hall tickets for this would be issued to the candidates after May 18 as per the Tamil Nadu Education Minister K A Sengottaiyan’s statement on Friday. While talking to the media in Nambiyur village near Gobichettipalayam the Minister said that social distancing would be maintained in the examination halls and the candidates must make it a compulsion to wear masks. The minister had gone to distribute food and vegetables to families hit by the COVID-19 lockdown in the above-mentioned village. The Tamil Nadu Board exams were halted due to the coronavirus outbreak in the state. The 10th and 12th both had their exams left. The dates have been provided in the southern India states and the candidates are preparing for the exams.
english
--- title: Właściwości osi atrybutu XML (Visual Basic) ms.date: 07/20/2015 f1_keywords: - vb.XmlPropertyAttributeAxis helpviewer_keywords: - attribute axis property [Visual Basic] - Visual Basic code, accessing XML - XML attribute axis property [Visual Basic] - XML axis [Visual Basic], attribute - XML [Visual Basic], accessing ms.assetid: 7a4777e1-0618-4de9-9510-fb9ace2bf4db ms.openlocfilehash: 896081c3dc7ca9e50b4dc4bd87675e957c34b649 ms.sourcegitcommit: 1f12db2d852d05bed8c53845f0b5a57a762979c8 ms.translationtype: MT ms.contentlocale: pl-PL ms.lasthandoff: 10/18/2019 ms.locfileid: "72582161" --- # <a name="xml-attribute-axis-property-visual-basic"></a>Właściwości osi atrybutu XML (Visual Basic) Zapewnia dostęp do wartości atrybutu dla obiektu <xref:System.Xml.Linq.XElement> lub do pierwszego elementu w kolekcji obiektów <xref:System.Xml.Linq.XElement>. ## <a name="syntax"></a>Składnia ```vb object.@attribute ' -or- object.@<attribute> ``` ## <a name="parts"></a>Części `object` Wymagany. Obiekt <xref:System.Xml.Linq.XElement> lub kolekcja obiektów <xref:System.Xml.Linq.XElement>. . @ Wymagany. Wskazuje początek właściwości osi atrybutu. < Opcjonalny. Oznacza początek nazwy atrybutu, gdy `attribute` nie jest prawidłowym identyfikatorem w Visual Basic. `attribute` Wymagany. Nazwa atrybutu, który ma zostać przypisany do formularza [`prefix`:] `name`. |Części|Opis| |----------|-----------------| |`prefix`|Opcjonalny. Prefiks przestrzeni nazw XML dla atrybutu. Musi to być globalna przestrzeń nazw XML zdefiniowana za pomocą instrukcji `Imports`.| |`name`|Wymagany. Nazwa atrybutu lokalnego. Zobacz [nazwy zadeklarowanych elementów i atrybutów XML](../../../visual-basic/programming-guide/language-features/xml/names-of-declared-xml-elements-and-attributes.md).| \> Opcjonalny. Oznacza koniec nazwy atrybutu, gdy `attribute` nie jest prawidłowym identyfikatorem w Visual Basic. ## <a name="return-value"></a>Wartość zwracana Ciąg, który zawiera wartość `attribute`. Jeśli nazwa atrybutu nie istnieje, zwracany jest `Nothing`. ## <a name="remarks"></a>Uwagi Można użyć właściwości osi atrybutu XML, aby uzyskać dostęp do wartości atrybutu według nazwy z obiektu <xref:System.Xml.Linq.XElement> lub z pierwszego elementu w kolekcji obiektów <xref:System.Xml.Linq.XElement>. Możesz pobrać wartość atrybutu według nazwy lub dodać nowy atrybut do elementu, określając nową nazwę poprzedzoną identyfikatorem @. W przypadku odwoływania się do atrybutu XML przy użyciu @ identyfikatora wartość atrybutu jest zwracana jako ciąg i nie trzeba jawnie określać właściwości <xref:System.Xml.Linq.XAttribute.Value%2A>. Reguły nazewnictwa dla atrybutów XML różnią się od reguł nazewnictwa dla identyfikatorów Visual Basic. Aby uzyskać dostęp do atrybutu XML o nazwie, która nie jest prawidłowym identyfikatorem Visual Basic, ujmij ją w nawiasy kątowe (\< i >). ## <a name="xml-namespaces"></a>Przestrzenie nazw XML Nazwa we właściwości osi atrybutu może używać tylko prefiksów przestrzeni nazw XML zadeklarowanych globalnie przy użyciu instrukcji `Imports`. Nie może używać prefiksów przestrzeni nazw XML zadeklarowanych lokalnie w literałach elementu XML. Aby uzyskać więcej informacji, zobacz [Imports — Instrukcja (przestrzeń nazw XML)](../../../visual-basic/language-reference/statements/imports-statement-xml-namespace.md). ## <a name="example"></a>Przykład Poniższy przykład pokazuje, jak pobrać wartości atrybutów XML o nazwie `type` z kolekcji elementów XML o nazwach `phone`. [!code-vb[VbXMLSamples#12](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbXMLSamples/VB/XMLSamples5.vb#12)] Ten kod wyświetla następujący tekst: `<phoneTypes>` `<type>home</type>` `<type>work</type>` `</phoneTypes>` ## <a name="example"></a>Przykład Poniższy przykład pokazuje, jak utworzyć atrybuty dla elementu XML w sposób deklaratywny, jako część pliku XML i dynamicznie przez dodanie atrybutu do wystąpienia obiektu <xref:System.Xml.Linq.XElement>. Atrybut `type` jest tworzony deklaratywnie, a atrybut `owner` jest tworzony dynamicznie. [!code-vb[VbXMLSamples#44](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbXMLSamples/VB/XMLSamples5.vb#44)] Ten kod wyświetla następujący tekst: ```xml <phone type="home" owner="<NAME>">206-555-0144</phone> ``` ## <a name="example"></a>Przykład W poniższym przykładzie użyto składni nawiasu ostrego, aby uzyskać wartość atrybutu XML o nazwie `number-type`, który nie jest prawidłowym identyfikatorem w Visual Basic. [!code-vb[VbXMLSamples#13](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbXMLSamples/VB/XMLSamples5.vb#13)] Ten kod wyświetla następujący tekst: `Phone type: work` ## <a name="example"></a>Przykład Poniższy przykład deklaruje `ns` jako prefiks przestrzeni nazw XML. Następnie używa prefiksu przestrzeni nazw w celu utworzenia literału XML i uzyskania dostępu do pierwszego węzła podrzędnego przy użyciu kwalifikowanej nazwy "`ns:name`". [!code-vb[VbXMLSamples#14](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbXMLSamples/VB/XMLSamples6.vb#14)] Ten kod wyświetla następujący tekst: `Phone type: home` ## <a name="see-also"></a>Zobacz także - <xref:System.Xml.Linq.XElement> - [Właściwości osi XML](../../../visual-basic/language-reference/xml-axis/index.md) - [Literały XML](../../../visual-basic/language-reference/xml-literals/index.md) - [Tworzenie kodu XML w Visual Basic](../../../visual-basic/programming-guide/language-features/xml/creating-xml.md) - [Nazwy deklarowanych elementów i atrybutów XML](../../../visual-basic/programming-guide/language-features/xml/names-of-declared-xml-elements-and-attributes.md)
markdown
package p69; /** * @author Glory * @date 2020/5/9 16:20 */ public class Solution { /** * 计算并返回 x 的平方根,其中 x 是非负整数。 * <p> * 由于返回类型是整数,结果只保留整数的部分,小数部分将被舍去。 * * 采用二分查找法实现 */ public int mySqrt(int x) { int min = 1, max = x, mid = 0; while (min <= max) { mid = min + (max - min) / 2; long value = (long) mid * mid; if (value < x) { min = mid + 1; } else if (value > x) { max = mid - 1; } else if (value == x) { return mid; } } return (long) mid * mid <= x ? mid : mid - 1; } public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.mySqrt(8)); } }
java
Thoughts carved into words and pictures can define a person. Experiences told in stories can tell the stark truth of where has one been, what has one seen and where can one be going ahead in life. Soon, you will be able to know the real Vatsal Kataria too, whether its Vatsal's experiences, learnings and achievements while studying in Other or what drives Vatsal's passion for talents like Photography, Product Photography, Fine Arts, Photo Editing and others. Probably Vatsal Kataria will share the secrets of studying Other with Professional Photography in the batch of 2014-2015 or the fun and activities with batch mates in college at Delhi. Companies will be able to know Vatsal professionally and get in touch by directly commenting on the blogs. Youth, who blog, get more and better job offers from companies than others. If you are Vatsal Kataria, add your first Blog here .
english
Pakistan’s former captain Javed Miandad has advised his fellow cricketers to avoid voicing opinions on political and other sensitive issues to avoid controversies. Miandad’s advice came in the wake of comments made by all-rounder Shahid Afridi on the Kashmir issue. Afridi’s comments on Kashmir can be heard in a video that went viral on Wednesday. “My comments are being misconstrued by Indian media! I’m passionate about my country and greatly value the struggles of Kashmiris. Humanity must prevail and they should get their rights,” Afridi tweeted on his account. This isn’t the first time Afridi has got himself into a controversy because of his comments. A few months back, he upset Miandad when he made some comments on the fixing issue and took a snipe at the former great.
english
import time import grovepi from grovepi import * import datetime; import urllib.request, urllib.parse import simplejson as json import requests from grove_rgb_lcd import * # Connect the Grove Light Sensor to analog port A0 # SIG,NC,VCC,GND light_sensor = 0 sound_sensor = 1 header_content = {'Content-type': 'application/json'} # Connect the LED to digital port D4 # SIG,NC,VCC,GND led = 4 # Turn on LED once sensor exceeds threshold resistance threshold = 10 dht_sensor_port = 7 # connect the DHt sensor to port 7 dht_sensor_type = 0 grovepi.pinMode(light_sensor,"INPUT") grovepi.pinMode(led,"OUTPUT") while True: try: # Get sensor value [ temp,hum ] = dht(dht_sensor_port,dht_sensor_type) lightsensor_value = grovepi.analogRead(light_sensor) soundsensor_value = grovepi.analogRead(sound_sensor) tem= int(temp) hu= int(hum) ts = datetime.datetime.now(); print("temp =", temp, "C\thumidity =", hum,"%") # Calculate resistance of sensor in K #resistance = (float)(1023 - sensor_value) * 10 / (sensor_value + 0.00001) LightData= json.dumps({'room_code':'WD.001.016', 'created_on': ts.strftime("%Y-%m-%dT%H:%M:%S"), 'type': 'light', 'value': lightsensor_value}); TempData= json.dumps({'room_code':'WD.001.016', 'created_on': ts.strftime("%Y-%m-%dT%H:%M:%S"), 'type': 'temp', 'value': tem}); SoundData= json.dumps({'room_code':'WD.001.016', 'created_on': ts.strftime("%Y-%m-%dT%H:%M:%S"), 'type': 'sound', 'value': soundsensor_value}); HumidData= json.dumps({'room_code':'WD.001.016', 'created_on': ts.strftime("%Y-%m-%dT%H:%M:%S"), 'type': 'humidity', 'value': hu}); l = requests.post('http://145.24.222.238/api/readings/create', data = LightData, headers = header_content) s = requests.post('http://172.16.17.32/api/readings/create', data = SoundData, headers = header_content) t = requests.post('http://172.16.17.3238/api/readings/create', data = TempData, headers = header_content) h = requests.post('http://172.16.17.32/api/readings/create', data = HumidData, headers = header_content) print('Light', lightsensor_value) print('Sound', soundsensor_value) print(ts.strftime("%Y-%m-%dT%H:%M:%S")) #if resistance > threshold: # # Send HIGH to switch on LED # grovepi.digitalWrite(led,1) #else: # Send LOW to switch off LED # grovepi.digitalWrite(led,0) #print("sensor_value = %d resistance = %.2f" %(sensor_value, resistance)) time.sleep(4) except IOError: print ("Error")
python
<filename>web/data/PixelFreak/47.json {"nft":{"id":"47","name":"PixelFreak #00047","description":"They call us ugly, and misfits, but we prefer to call ourselves freaks","image":"ipfs://QmVvktVapo4jiFkYeQvQQYGrqGnhSjAwWx88WR6eb33Cjv","attributes":[{"trait_type":"pet","value":"None"},{"trait_type":"body","value":"Hoodie F"},{"trait_type":"eyes","value":"3D"},{"trait_type":"head","value":"Aro"},{"trait_type":"nose","value":"Pixel"},{"trait_type":"extra","value":"Rabbit Ears"},{"trait_type":"mouth","value":"Lipstick"},{"trait_type":"background","value":"RandomColor"},{"trait_type":"Trait Count","value":"8"}]},"attributeRarities":[{"trait_type":"pet","value":"None","count":9511,"ratio":0.9511,"ratioScore":1.0514141520344864},{"trait_type":"body","value":"Hoodie F","count":87,"ratio":0.0087,"ratioScore":114.9425287356322},{"trait_type":"eyes","value":"3D","count":334,"ratio":0.0334,"ratioScore":29.940119760479043},{"trait_type":"head","value":"Aro","count":772,"ratio":0.0772,"ratioScore":12.953367875647668},{"trait_type":"nose","value":"Pixel","count":1464,"ratio":0.1464,"ratioScore":6.830601092896175},{"trait_type":"extra","value":"Rabbit Ears","count":380,"ratio":0.038,"ratioScore":26.315789473684212},{"trait_type":"mouth","value":"Lipstick","count":75,"ratio":0.0075,"ratioScore":133.33333333333334},{"trait_type":"background","value":"RandomColor","count":9595,"ratio":0.9595,"ratioScore":1.0422094841063054},{"trait_type":"Trait Count","value":"8","count":10000,"ratio":1,"ratioScore":1}],"rarityScore":327.40936390781343,"rank":747}
json
<filename>node_modules/@ionic-native/push/index.metadata.json [{"__symbolic":"module","version":4,"metadata":{"EventResponse":{"__symbolic":"interface"},"RegistrationEventResponse":{"__symbolic":"interface"},"NotificationEventResponse":{"__symbolic":"interface"},"NotificationEventAdditionalData":{"__symbolic":"interface"},"IOSPushOptions":{"__symbolic":"interface"},"CategoryArray":{"__symbolic":"interface"},"CategoryAction":{"__symbolic":"interface"},"CategoryActionData":{"__symbolic":"interface"},"AndroidPushOptions":{"__symbolic":"interface"},"BrowserPushOptions":{"__symbolic":"interface"},"PushOptions":{"__symbolic":"interface"},"Priority":{"__symbolic":"interface"},"Visibility":{"__symbolic":"interface"},"Channel":{"__symbolic":"interface"},"PushEvent":{"__symbolic":"interface"},"Push":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":325,"character":26},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin","line":316,"character":1},"arguments":[{"pluginName":"Push","plugin":"phonegap-plugin-push","pluginRef":"PushNotification","repo":"https://github.com/phonegap/phonegap-plugin-push","install":"ionic cordova plugin add phonegap-plugin-push","platforms":["Android","Browser","iOS","Windows"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":324,"character":1}}],"members":{"init":[{"__symbolic":"method"}],"hasPermission":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova","line":339,"character":3}}]}],"createChannel":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova","line":348,"character":3},"arguments":[{"callbackOrder":"reverse"}]}]}],"deleteChannel":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova","line":359,"character":3},"arguments":[{"callbackOrder":"reverse"}]}]}],"listChannels":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova","line":370,"character":3}}]}]}},"PushObject":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin","line":379,"character":1},"arguments":[{"pluginName":"Push","plugin":"phonegap-plugin-push","pluginRef":"PushNotification"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"on":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":400,"character":3},"arguments":[{"observable":true,"clearFunction":"off","clearWithArgs":true}]}]}],"unregister":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":414,"character":3}}]}],"setApplicationIconBadgeNumber":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":427,"character":3},"arguments":[{"callbackOrder":"reverse"}]}]}],"getApplicationIconBadgeNumber":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":437,"character":3}}]}],"finish":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":448,"character":3},"arguments":[{"callbackOrder":"reverse"}]}]}],"clearAllNotifications":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":458,"character":3}}]}],"subscribe":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":468,"character":3}}]}],"unsubscribe":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaInstance","line":478,"character":3}}]}]}}}}]
json
In a step aimed at strengthening various counter-terrorism measures, the government has decided to operationalise the ambitious National Counter-Terrorism Centre (NCTC) from March 1. A pet project of Union Home Minister P. Chidambaram, NCTC got the approval from the Cabinet Committee on Security (CCS) three weeks ago. The operations division of the counter-terrorism body has been given powers to arrest and carry out searches under Section 43 (A) of the Unlawful Activities (Prevention) Act, 1967. Initially, the NCTC will be located in the Intelligence Bureau and headed by a director, who will be an officer in the rank of additional director, IB. It will have three units - gathering intelligence, analysis of intelligence and carrying out operations - and each of these divisions would be headed by a joint director of Intelligence Bureau. The NCTC will have the power to requisition services of the elite National Security Guard (NSG), according to the official order. It will integrate intelligence pertaining to terrorism; analyse the same; pursue or mandate other agencies to pursue the different leads; and coordinate with the existing agencies for an effective response. It will also maintain a comprehensive data base of terrorists and their associates, friends, families, and supporters; of terrorist modules and gangs; and of all information pertaining to terrorists. “NCTC will prescribe counter-terrorism priorities for each stakeholder and ensure that all agencies have access to and receive source intelligence support that is necessary to execute counter terrorism plans and accomplish their assigned tasks,’’ the order said. It will also prepare daily threat assessment reviews and disseminate them to the appropriate levels in the Central government and to the State governments. The GoM that reviewed the internal security system in the aftermath of the Kargil conflict had recommended the establishment of a Multi-Agency Centre (MAC) in the Intelligence Bureau, which was set up in 2001 and its functions, powers and duties were prescribed in 2008. The Second Administrative Reforms Commission had in 2008 recommended that MAC should be converted into NCTC with personnel drawn from different intelligence and security agencies. A review of the current architecture of counter terrorism also revealed several gaps and deficiencies and the need was felt for a single of control and coordination of all counter terrorism measures. “The NCTC will fulfil this need also ensure that it does not duplicate the roles of other agencies and work through the existing agencies in the country,’’ official sources said.
english
Suzuki’s Alex Rins put up a dominant display at the circuit Ricardo Tormo to give the Hamamatsu factory an emotional send off in its last outing before the MotoGP operations shut off, as the Spaniard took the top honours at the Grand Prix of Valencia. Fabio Quartararo, who required nothing less than a win provided Bagnaia finished 14th or lower, had a stellar ride but it wasn’t enough for him to retain his title. The Frenchman finished fourth, and therefore, Ducati’s Francesco Bagnaia, who saw the chequered flag at ninth, did just enough to claim the 2022 MotoGP World Championship. Bagnaia pulled off the greatest comeback in the premier class motorcycle racing as he overcame a 91-point deficit from the mid-season standings. The 25-year-old became the first Italian since Valentino Rossi in 2009 to claim the MotoGP World Championship. Further, it was also Ducati’s first title after a 15-year-long drought. As the lights went out at the Ricardo Tormo, Rins made a swift move to jump from P5 to take the early lead at Turn 1, with poleman Jorge Martin and Honda’s Marc Marquez slotting in behind. As one would have expected, Quartararo and Bagnaia had a fierce exchange of positions in the early laps. The title contenders went on to make a worrisome contact in Lap 2, due to which the Italian lost the right wing of his Ducati. The Italian had a rather safe ride and did just about enough to earn the title. KTM’s Brad Binder gained a hard-fought five positions to finish second, ahead of Martin. Six time premier class champion Marquez, who has had an injury-beset season in 2022, had a day to forget as he crashed out into the gravel at Turn 8 in Lap 10, thereby promoting Quartararo to fourth. Aprilia, who were amongst the title contenders in the penultimate round of the campaign at Malaysian GP, had a dismaying outing as both their riders had to bow out of the race due to mechanical issues. Jack Miller ended his 2022 campaign in the gravel as he skidded off the track in the latter laps of the grand prix. Binder’s teammate Miguel Oliveira leap-frogged nine positions to finish fifth, ending KTM’s season on a high note. Suzuki’s Joan Mir gained six positions and finished sixth ahead of the Ducati trio of Luca Marini, Enea Bastianini, and Bagnaia. Yamaha’s Franco Morbidelli completed the top-ten ahead of Marco Bezzecchi, Raul Fernandez, as Remy Gardner, Takaaki Nakagami, and Fabio Di Giannantonio picked up the last points on the table.
english
Tokyo (AFP), May 28 – Fusako Shigenobu, the 76-year-old female founder of the once-feared Japanese Red Army, walked free from prison Saturday after completing a 20-year sentence for a 1974 embassy siege. Shigenobu was one of the world’s most notorious women during the 1970s and 1980s, when her radical leftist group carried out armed attacks worldwide in support of the Palestinian cause. Shigenobu left the prison in Tokyo in a black car with her daughter as several supporters held a banner saying “We love Fusako”. “I apologise for the inconvenience my arrest has caused to so many people,” Shigenobu told reporters after the release. “It’s half a century ago… but we caused damage to innocent people who were strangers to us by prioritising our battle, such as by hostage-taking,” she said. She is believed to have masterminded the 1972 machine gun and grenade attack on Tel Aviv’s Lod Airport, which left 26 people dead and injured about 80. The former soy-sauce company worker turned militant was arrested in Japan in 2000 and sentenced to two decades behind bars six years later for her part in a siege of the French embassy in the Netherlands. She had lived as a fugitive in the Middle East for around 30 years before resurfacing in Japan. Shigenobu’s daughter May, born in 1973 to a father from the militant Popular Front for the Liberation of Palestine (PFLP), hailed her mother’s release on social media. Shigenobu maintained her innocence over the siege, in which three Red Army militants stormed into the French embassy, taking the ambassador and 10 other staff hostage for 100 hours. Two police officers were shot and seriously wounded. France ended the standoff by freeing a jailed Red Army guerilla, who flew off with the hostage-takers in a plane to Syria. Shigenobu did not take part in the attack personally but the court said she coordinated the operation with the PFLP. Born into poverty in post-war Tokyo, Shigenobu was the daughter of a World War II major who became a grocer after Japan’s defeat. Her odyssey into Middle Eastern extremism began by accident when she passed a sit-in protest at a Tokyo university when she was 20. Japan was in the midst of campus tumult in the 1960s and 70s to protest the Vietnam War and the Japanese government’s plans to let the US military remain stationed in the country. Shigenobu quickly became involved in the leftist movement and decided to leave Japan aged 25. She announced the Red Army’s disbanding from prison in April 2001, and in 2008 was diagnosed with colon and intestinal cancer, undergoing several operations. Shigenobu said on Saturday she will first focus on her treatment and explained she will not be able to “contribute to the society” given her frail condition. In a letter to a Japan Times reporter in 2017 she admitted the group had failed in its aims. “Our hopes were not fulfilled and it came to an ugly end,” she wrote.
english
import React from 'react'; import { render } from '@testing-library/react'; import App from '../pages/_app'; describe('<App />', () => { const Component = () => <div />; const pageProps = {}; it('should render successfully', () => { const { baseElement } = render( <App Component={Component} pageProps={pageProps} /> ); expect(baseElement).toBeTruthy(); }); });
typescript
MAL vs GIB Dream11 Prediction, Fantasy Cricket Tips, Playing 11, Pitch Report, and Injury Update of 1st and 2nd T20I match between Malta and Gibraltar. MAL vs GIB 1st and 2nd T20I Match Preview: Malta will host Gibraltar in a 2-match T20I series on October 25th. Both matches will be played back-to-back on the same day. Both sides have met recently in the Valletta Cup, where Malta had the better of Gibraltar by 61 runs. At the time of writing this piece, Malta had qualified for the finals of the Valletta Cup, where were to face Switzerland. Basil George, Bikram Arora and Heinrich Gericke are the key players for them. Gibraltar, on the other hand, finished third in the standings of Valletta Cup. Balaji Pai and Louis Bruce are the players to watch out for them. Both sides have played continuous matches over the last few days and it will be interesting how they approach this match. MAL vs GIB 1st and 2nd T20I Match Details: MAL vs GIB 1st and 2nd T20I Match Pitch Report: The track here is likely to help the batters. As the match progresses, the spinners will come into play given the turn-on offer. Both teams will want to bat first upon winning the toss, with the weather being clear for the duration of the game. MAL vs GIB 1st and 2nd T20I Match Probable Playing XIs: Top Picks for MAL vs GIB Dream11 Prediction And Fantasy Cricket Tips: Heinrich Gericke had a good tournament with the bat in Valletta Cup. He is an aggressive batter by nature and has scored 328 runs in his T20I career, with the highest score of 91. Basil George is a capable top-order batter. He has scored 131 runs in his 7 T20Is at an average of 18.71, with the highest score of 48. Louis Bruce is the player to watch out for in the future from Gibraltar. In his only 7 T20Is, he has scored 293 runs at an average of 48.83, which includes 4 half-centuries. Balaji Pai has a century to his name in the T20Is. In his T20I career, he has scored 262 runs at an average of 43.66 and has also picked up 8 wickets at an economy of 5.78. MAL vs GIB Must Picks for Dream11 Team Prediction: |Statistics (Last 5 matches) MAL vs GIB Captain and Vice-Captain Choices: Suggested Playing XI No.1 for MAL vs GIB Dream11 Team: Wicketkeeper- Heinrich Gericke(c) All Rounders- Varun Prasath Thamatharam, Balaji Pai, Louis Bruce(vc) Suggested Playing XI No.2 for MAL vs GIB Dream11 Team: MAL vs GIB 1st and 2nd T20I Match Probable Winner: Malta are expected to win this match against Gibraltar.
english
{"PreferableImpersonator": ["HeelFaceTurn", "BecomingTheMask", "EffectiveKnockoff", "PrefersTheIllusion", "RedeemingReplacement", "SuspiciouslySimilarSubstitute", "WeWantOurJerkBack", "InUniverse", "ImpersonationExclusiveCharacter", "CrazyAwesome", "AllLovingHero", "FunPersonified", "LegacyImmortality", "NiceGuy", "HeroWithBadPublicity", "ButtMonkey", "IdenticalStranger", "CorruptPolitician", "RoyalBrat", "ManInTheIronMask", "CharacterTitle", "LiteralSplitPersonality", "AbhorrentAdmirer", "TheParagon", "AssassinationAttempt", "ReducedToDust", "RobotMe", "EmergencyPresidentialAddress", "ZerothLawRebellion", "RichIdiotWithNoDayJob", "TheHero", "FairyGodmother", "LiteralSplitPersonality", "Telenovela", "GoneHorriblyRight", "Telenovela", "RichBitch", "StepfordSuburbia", "CassandraTruth", "CoolOldLady", "ForScience", "KillAndReplace", "RidiculouslyHumanRobots", "NamesToRunAwayFromReallyFast", "Jerkass", "DuelBoss", "HopelessBossFight", "VoluntaryShapeshifting", "SerialKiller", "HonorAmongThieves", "NamesToRunAwayFromReallyFast", "Jerkass", "DuelBoss", "HopelessBossFight", "SpotTheImposter", "MyBelovedSmother", "BlackComedy", "RobotMe", "SpotTheImposter", "ItMakesSenseInContext", "MirrorUniverse", "Jerkass", "SpotTheImposter", "ActingUnnatural", "WeWantOurJerkBack", "BestFriend", "FreakyFridayFlip", "GettingCrapPastTheRadar", "RobotMe", "SpotTheImposter", "ItMakesSenseInContext"]}
json
Imagine the scene: a buoyant Prime Minister Narendra Modi getting into his car after his speech in the Afghan Parliament, which India built, the ultimate symbol of the triumph of democracy over centuries of internecine warfare. In his less-than-35-minute speech he urged the Taliban to join the peace process, and Pakistan and Iran to unite in trust and cooperation, saying India was there to contribute not compete — and was applauded no less than 62 times, more applause than speech. It left Afghan elders teary eyed. That is when Mr. Modi asks for his mobile phone and makes the call to Nawaz Sharif. The call is a brief one and Mr. Modi is easily persuaded to make an impromptu decision that will lead to an astonishing sub-continental moment of sorts. By the time call is over, the cavalcade reaches its next pit stop. That is when the entourage knows where it is going that afternoon and why it is going there, and a scramble ensues to see if there is anything in the plane that could be given as gift to the Prime Minister’s sudden hosts. The search yields nothing worthwhile, leaving it to the mandarins to figure out what to send through appropriate channels later. It is an empty-handed visit yet both Prime Ministers are bearing heavy invisible gifts in a journey without maps. Soon after the jhappi on the tarmac, and Prime Minister Sharif leads Prime Minister Modi into a helicopter for a 15-minute ride to his homestead, the message is somewhat deeper than the medium that conveys it. Imagine the Pakistani Prime Minister setting aside more than four hours on one of the busiest days of his life, a day in which he was to preside over the marriage of his granddaughter, to chaperone instead the Prime Minister of India for a quasi-summit without outcome, where no joint statement would be forthcoming as markers for the future. He remarks as much to his guest: that he has staked his political future on this new engagement with India. What explains this new bonhomie? Does this have a future? Is this process durable? How do we guard against surprises? Answers lie partly in Mr. Modi’s character. He is flinty in his persistence. As this newspaper has reported, he has cold-called Mr. Sharif repeatedly, almost badgering him with his Modi-style outreach. Everything seemed to finally fall into place in Bangkok, where over four hours the National Security Advisers (NSA) met along with the Foreign Secretaries and a core team of strategists, a meeting that came through backchannel efforts. It was an India-Pakistan meeting like none other. Here was Lt. -Gen. (retd. ) Naseer Khan Janjua, a representative of the Deep State, who had served in Swat, Balochistan, Quetta and as head of the National Defence University, and a former spymaster, known in Pakistan as Ajit “Devil”, in a situation where no arguments are traded. With India’s counterterrorism point person, former director, Intelligence Bureau, Asif Ibrahim, on the table, the Indian side objectively laid out its concerns and expectations “more in practical security terms and less in diplomatic terms”. Mr. Janjua responded positively, saying “the past is past” and Islamabad’s intention was to “move forward”. That meeting apparently established the basis to work together, a template of sorts, defining both the steps and the goals. The underpinnings: the NSA-level talks which Mr. Sharif has long been pushing and which was not finding takers in the previous government in Delhi, would bring the talks closer to the centres of power both in Islamabad and Delhi, and provide a surer way of testing intentions. Mr. Janjua and Mr. Doval were agreed in Bangkok that it would not be difficult to assess the intentions of the other. Given the devices at their disposal, the deployments, the continuous monitoring, it would be easy enough to determine if adequate efforts are being made to curtail or stop infiltration and disrupt communications among the terrorists, for example, or even maintain peace and tranquillity along the gun embankments on the LoC. The question of what Pakistan does to dismantle the infrastructure or put it out of business comes later, much later. After the Bangkok talks, for instance, there have been no reports about firing along the Line of Control (LoC). Thus about a week after the principles of the engagement were in place, Mr. Modi was telling the Combined Commanders’ Conference aboard INS Vikramaditya that India was engaging Pakistan to “try to turn the course of history… There are many challenges and barriers on the path. But the effort is worth it, because the peace dividends are huge and the future of our children is at stake. We will test their intentions to define the path ahead”. It was a speech the significance of which was to be underlined at Lahore, the path to which was defined at the Afghan Parliament as well. There is a larger context: in the past, backchannels have brought a broad-contour understanding between the two countries on a comprehensive outcome that both sides were privately more or less comfortable with. The lack of outcome is a factor of the wild card which makes its way onto the table in unpredictable ways. This engagement comes as the Obama administration wanes, the West’s engagement with Iran changes for the positive, West Asia remains in turmoil, Afghanistan readies to engage more with us both on security issues as well as economic aspects, and the Chinese footprint deepens in the region. If India were to retain a leadership role in the region, can it be done without addressing Pakistan?
english
<reponame>aurelj/embedded-graphics use crate::pixelcolor::raw::{ BigEndian, LittleEndian, RawData, RawU1, RawU16, RawU2, RawU24, RawU32, RawU4, RawU8, }; use byteorder::{ByteOrder, BE, LE}; use core::marker::PhantomData; /// Iterator over a slice of raw pixel data. #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] pub struct RawDataIter<'a, R, BO> { /// Pixel data. data: &'a [u8], /// Index into `data` for next read. byte_position: usize, /// Remaining bits in the current byte (only used for bpp < 8). bits_left: u8, raw_type: PhantomData<R>, byte_order: PhantomData<BO>, } impl<'a, R, BO> RawDataIter<'a, R, BO> { /// Creates a new raw data iterator. pub const fn new(data: &'a [u8]) -> Self { Self { data, byte_position: 0, bits_left: 8, raw_type: PhantomData, byte_order: PhantomData, } } /// Sets the read position. pub fn set_byte_position(&mut self, position: usize) { self.byte_position = position; self.bits_left = 8; } /// Align the read position to the next whole byte. /// /// If the read position is already at the beginning of a byte this is a noop. pub fn align(&mut self) { if self.bits_left == 8 { return; } self.byte_position = self.data.len().min(self.byte_position + 1); self.bits_left = 8; } /// Returns the next `bit_count` bits. fn next_bits(&mut self, bit_count: u8) -> Option<u8> { if self.bits_left == 0 || self.byte_position >= self.data.len() { return None; } let current_byte = self.data[self.byte_position]; let ret = current_byte >> (self.bits_left - bit_count); self.bits_left -= bit_count; if self.bits_left == 0 && self.byte_position < self.data.len() { self.byte_position += 1; self.bits_left = 8; } Some(ret) } /// Returns the a slice of the next `byte_count` bytes. fn next_bytes(&mut self, byte_count: usize) -> Option<&[u8]> { if (self.data.len() - self.byte_position) >= byte_count { let ret = &self.data[self.byte_position..]; self.byte_position += byte_count; Some(ret) } else { None } } } impl<'a, R> Iterator for RawDataIter<'a, R, LittleEndian> where R: RawData, { type Item = R; fn next(&mut self) -> Option<Self::Item> { R::next(self) } } impl<'a, R> Iterator for RawDataIter<'a, R, BigEndian> where R: RawData, { type Item = R; fn next(&mut self) -> Option<Self::Item> { R::next(self) } } /// Helper trait to implement the `next` method. pub trait RawDataIterNext<BO>: Sized { /// Advances the iterator and returns the next raw value. fn next<'a>(iter: &mut RawDataIter<'a, Self, BO>) -> Option<Self>; } macro_rules! impl_next_for_bits { ($raw_type:ident, $bit_count:expr) => { impl<BO> RawDataIterNext<BO> for $raw_type { fn next<'a>(iter: &mut RawDataIter<'a, $raw_type, BO>) -> Option<$raw_type> { iter.next_bits($bit_count).map($raw_type::new) } } }; } impl_next_for_bits!(RawU1, 1); impl_next_for_bits!(RawU2, 2); impl_next_for_bits!(RawU4, 4); impl<BO> RawDataIterNext<BO> for RawU8 { fn next<'a>(iter: &mut RawDataIter<'a, RawU8, BO>) -> Option<RawU8> { iter.next_bytes(1).map(|data| RawU8::new(data[0])) } } macro_rules! impl_next_for_bytes { ($raw_type:ident, $byte_count:expr, $endian:ident, $read_function:path) => { impl RawDataIterNext<$endian> for $raw_type { fn next<'a>(iter: &mut RawDataIter<'a, $raw_type, $endian>) -> Option<$raw_type> { iter.next_bytes($byte_count) .map(|data| $raw_type::new($read_function(data))) } } }; ($raw_type:ident, $byte_count:expr, $read_function:ident) => { impl_next_for_bytes!($raw_type, $byte_count, BigEndian, BE::$read_function); impl_next_for_bytes!($raw_type, $byte_count, LittleEndian, LE::$read_function); }; } impl_next_for_bytes!(RawU16, 2, read_u16); impl_next_for_bytes!(RawU24, 3, read_u24); impl_next_for_bytes!(RawU32, 4, read_u32); /// Dummy implementation to allow () as `PixelColor::Raw`. impl<BO> RawDataIterNext<BO> for () { fn next<'a>(_iter: &mut RawDataIter<'a, (), BO>) -> Option<()> { None } } #[cfg(test)] mod tests { use super::*; const BITS_DATA: &[u8] = &[0x12, 0x48, 0x5A, 0x0F]; const BYTES_DATA_1: &[u8] = &[0x10, 0x20, 0x30, 0x40, 0x50, 0x60]; const BYTES_DATA_2: &[u8] = &[0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80]; #[test] fn align_advances_to_next_byte() { let data = &[0x80, 0x80]; let mut iter: RawDataIter<RawU1, LittleEndian> = RawDataIter::new(data); assert_eq!(iter.next(), Some(RawU1::new(1))); assert_eq!(iter.next(), Some(RawU1::new(0))); let mut iter: RawDataIter<RawU1, LittleEndian> = RawDataIter::new(data); assert_eq!(iter.next(), Some(RawU1::new(1))); iter.align(); assert_eq!(iter.next(), Some(RawU1::new(1))); } #[test] fn calling_align_again_is_a_noop() { let data = &[0x80, 0xFF, 0x00]; let mut iter: RawDataIter<RawU1, LittleEndian> = RawDataIter::new(data); assert_eq!(iter.next(), Some(RawU1::new(1))); iter.align(); iter.align(); assert_eq!(iter.next(), Some(RawU1::new(1))); } #[test] fn set_byte_position_resets_bit_position() { let data = &[0x0F, 0x0F]; let mut iter: RawDataIter<RawU4, LittleEndian> = RawDataIter::new(data); assert_eq!(iter.next(), Some(RawU4::new(0))); iter.set_byte_position(1); assert_eq!(iter.next(), Some(RawU4::new(0))); } #[test] fn raw_u1() { #[rustfmt::skip] let expected = [ 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, ] .iter() .copied() .map(RawU1::new); let data: RawDataIter<RawU1, LittleEndian> = RawDataIter::new(BITS_DATA); assert!(data.eq(expected)); } #[test] fn raw_u2() { let expected = [0, 1, 0, 2, 1, 0, 2, 0, 1, 1, 2, 2, 0, 0, 3, 3] .iter() .copied() .map(RawU2::new); let iter: RawDataIter<RawU2, LittleEndian> = RawDataIter::new(BITS_DATA); assert!(iter.eq(expected)); } #[test] fn raw_u4() { let expected = [0x1, 0x2, 0x4, 0x8, 0x5, 0xA, 0x0, 0xF] .iter() .copied() .map(RawU4::new); let iter: RawDataIter<RawU4, LittleEndian> = RawDataIter::new(BITS_DATA); assert!(iter.eq(expected)); } #[test] fn raw_u8() { let expected = BYTES_DATA_1.iter().map(|&v| RawU8::new(v)); let iter: RawDataIter<RawU8, LittleEndian> = RawDataIter::new(BYTES_DATA_1); assert!(iter.eq(expected)); } #[test] fn raw_u16_le() { let expected = [0x2010, 0x4030, 0x6050].iter().copied().map(RawU16::new); let iter: RawDataIter<RawU16, LittleEndian> = RawDataIter::new(BYTES_DATA_1); assert!(iter.eq(expected)); } #[test] fn raw_u16_be() { let expected = [0x1020, 0x3040, 0x5060].iter().copied().map(RawU16::new); let iter: RawDataIter<RawU16, BigEndian> = RawDataIter::new(BYTES_DATA_1); assert!(iter.eq(expected)); } #[test] fn raw_u16_excess_bytes_are_ignored() { let iter: RawDataIter<RawU16, LittleEndian> = RawDataIter::new(&[0; 3]); assert_eq!(iter.count(), 1); } #[test] fn raw_u24_le() { let expected = [0x302010, 0x605040].iter().copied().map(RawU24::new); let iter: RawDataIter<RawU24, LittleEndian> = RawDataIter::new(BYTES_DATA_1); assert!(iter.into_iter().eq(expected)); } #[test] fn raw_u24_be() { let expected = [0x102030, 0x405060].iter().copied().map(RawU24::new); let iter: RawDataIter<RawU24, BigEndian> = RawDataIter::new(BYTES_DATA_1); assert!(iter.into_iter().eq(expected)); } #[test] fn raw_u24_excess_bytes_are_ignored() { let iter: RawDataIter<RawU24, LittleEndian> = RawDataIter::new(&[0; 7]); assert_eq!(iter.count(), 2); } #[test] fn raw_u32_le() { let expected = [0x40302010, 0x80706050].iter().copied().map(RawU32::new); let iter: RawDataIter<RawU32, LittleEndian> = RawDataIter::new(BYTES_DATA_2); assert!(iter.into_iter().eq(expected)); } #[test] fn raw_u32_be() { let expected = [0x10203040, 0x50607080].iter().copied().map(RawU32::new); let iter: RawDataIter<RawU32, BigEndian> = RawDataIter::new(BYTES_DATA_2); assert!(iter.into_iter().eq(expected)); } #[test] fn raw_u32_excess_bytes_are_ignored() { let iter: RawDataIter<RawU32, LittleEndian> = RawDataIter::new(&[0; 13]); assert_eq!(iter.count(), 3); } }
rust
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto package com.google.cloud.aiplatform.v1beta1.schema.predict.instance; public interface VideoActionRecognitionPredictionInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance) com.google.protobuf.MessageOrBuilder { /** * <pre> * The Google Cloud Storage location of the video on which to perform the * prediction. * </pre> * * <code>string content = 1;</code> * @return The content. */ java.lang.String getContent(); /** * <pre> * The Google Cloud Storage location of the video on which to perform the * prediction. * </pre> * * <code>string content = 1;</code> * @return The bytes for content. */ com.google.protobuf.ByteString getContentBytes(); /** * <pre> * The MIME type of the content of the video. Only the following are * supported: video/mp4 video/avi video/quicktime * </pre> * * <code>string mime_type = 2;</code> * @return The mimeType. */ java.lang.String getMimeType(); /** * <pre> * The MIME type of the content of the video. Only the following are * supported: video/mp4 video/avi video/quicktime * </pre> * * <code>string mime_type = 2;</code> * @return The bytes for mimeType. */ com.google.protobuf.ByteString getMimeTypeBytes(); /** * <pre> * The beginning, inclusive, of the video's time segment on which to perform * the prediction. Expressed as a number of seconds as measured from the * start of the video, with "s" appended at the end. Fractions are allowed, * up to a microsecond precision. * </pre> * * <code>string time_segment_start = 3;</code> * @return The timeSegmentStart. */ java.lang.String getTimeSegmentStart(); /** * <pre> * The beginning, inclusive, of the video's time segment on which to perform * the prediction. Expressed as a number of seconds as measured from the * start of the video, with "s" appended at the end. Fractions are allowed, * up to a microsecond precision. * </pre> * * <code>string time_segment_start = 3;</code> * @return The bytes for timeSegmentStart. */ com.google.protobuf.ByteString getTimeSegmentStartBytes(); /** * <pre> * The end, exclusive, of the video's time segment on which to perform * the prediction. Expressed as a number of seconds as measured from the * start of the video, with "s" appended at the end. Fractions are allowed, * up to a microsecond precision, and "inf" or "Infinity" is allowed, which * means the end of the video. * </pre> * * <code>string time_segment_end = 4;</code> * @return The timeSegmentEnd. */ java.lang.String getTimeSegmentEnd(); /** * <pre> * The end, exclusive, of the video's time segment on which to perform * the prediction. Expressed as a number of seconds as measured from the * start of the video, with "s" appended at the end. Fractions are allowed, * up to a microsecond precision, and "inf" or "Infinity" is allowed, which * means the end of the video. * </pre> * * <code>string time_segment_end = 4;</code> * @return The bytes for timeSegmentEnd. */ com.google.protobuf.ByteString getTimeSegmentEndBytes(); }
java
GHAZIABAD: In a shocking incident, a group of unidentified men fired upon a journalist in Ghaziabad near Delhi. Journalist Vikram Joshi, who runs a weekly newspaper, was travelling on a motorcycle with his two daughters when a group of men attacked him and opened fire at him. The whole incident was captured a CCTV camera installed in the area. The incident, which sent shockwaves, took place in the Vijay Nagar area of Ghaziabad. Vikram was immediately rushed to a private hospital in the area. He sustained gunshot wounds on his head and is said to be in a critical condition, as reports last came in. He is a resident of Pratap Vihar colony. Very recently, Joshi lodged a police complaint against a few ruffians of his locality, accusing them of molesting his niece. Police suspect that this could be the reason for the attempt on Joshi's life. Senior police officer Kalanidhi Naithani said, "Five suspects were arrested in connection with the case in which a journalist was shot by unknown persons in Vijay Nagar. Joshi's brother told us that he had been attacked while he was coming back from his sister's place yesterday. " In the video, one could see Vikram's bike swerving suddenly and in no time, the attackers can be seen dragging the rider and firing on him before running away from the spot. Here is the video. #Ghaziabad: AJournalist #Vikramjoshi was shot in the head in #Ghaziabad by men accused of molesting his niece. Tried my best but could not find names of these criminals.
english
package main import "unicode" func Checkspace(s string) bool { space := true for _, x := range s { if !unicode.IsSpace(x) { space = false break } } return space }
go
use byteorder::{BigEndian, ReadBytesExt}; use std::str; use std::slice::SliceIndex; #[derive(Clone, Copy)] pub struct FancySlice<'a> { data: &'a [u8], } impl<'a> FancySlice<'a> { pub fn new(data: &[u8]) -> FancySlice { FancySlice { data } } pub fn relative_fancy_slice<I: SliceIndex<[u8], Output=[u8]>>(&self, range: I) -> FancySlice { FancySlice { data: &self.data[range] } } pub fn relative_slice<I: SliceIndex<[u8], Output=[u8]>>(&self, range: I) -> &[u8] { &self.data[range] } pub fn u8(&self, offset: usize) -> u8 { self.data[offset] } pub fn i16_be(&self, offset: usize) -> i16 { (&self.data[offset..]).read_i16::<BigEndian>().unwrap() } pub fn u16_be(&self, offset: usize) -> u16 { (&self.data[offset..]).read_u16::<BigEndian>().unwrap() } pub fn i32_be(&self, offset: usize) -> i32 { (&self.data[offset..]).read_i32::<BigEndian>().unwrap() } pub fn u32_be(&self, offset: usize) -> u32 { (&self.data[offset..]).read_u32::<BigEndian>().unwrap() } pub fn f32_be(&self, offset: usize) -> f32 { (&self.data[offset..]).read_f32::<BigEndian>().unwrap() } pub fn str(&self, offset: usize) -> Result<&str, String> { let data = &self.data[offset..]; if let Some(length) = data.iter().position(|x| *x == 0) { str::from_utf8(&data[..length]).map_err(|x| format!("{}", x)) } else { Err(String::from("String was not terminated")) } } pub fn len(&self) -> usize { self.data.len() } /// Debug display each byte in hex pub fn hex<I: SliceIndex<[u8], Output=[u8]>>(&self, range: I) -> String { let data = &self.data[range]; let mut string = String::new(); for (i, byte) in data.iter().enumerate() { if i != 0 && i % 2 == 0 { string.push_str(" "); } string.push_str(&format!("{:02x}", byte)); } string } /// Debug display each byte as an ascii character if valid, otherwise display as '.' pub fn ascii<I: SliceIndex<[u8], Output=[u8]>>(&self, range: I) -> String { let data = &self.data[range]; let mut string = String::new(); for byte in data { let ascii = *byte as char; if ascii.is_ascii_graphic() { string.push(ascii); } else { string.push('.'); } } string } }
rust
<filename>_layouts/postlisting.html --- layout: default --- <article class="page"> <section> <h1 class="page-title">{{ page.title }}</h1> {{ content }} </section> <hr> <section> <h2>Posts in this category</h2> <ul> {% assign this_category = page.title | downcase %} {% for post in site.categories[this_category] %} {% include post_snippet.html %} {% endfor %} </ul> <ul class="related-posts"> {% assign this_category = page.title | downcase %} {% assign selected_posts = site.categories[this_category] %} {% for post in selected_posts %} <li> <time>{{ post.date | date_to_string }}</time> &mdash; <a href="{{ post.url }}">{{ post.title }}</a> </li> {% endfor %} </ul> </section> </article>
html
package org.code4everything.boot.base; import java.util.List; /** * 列表工具类 * * @author pantao * @since 2019/5/6 */ public final class ListUtils { private ListUtils() {} /** * 交换值 * * @param list 列表 * @param idx1 索引 * @param idx2 索引 * @param <T> 值类型 * * @since 1.1.2 */ public static <T> void swap(List<T> list, int idx1, int idx2) { T tmp = list.get(idx1); list.set(idx1, list.get(idx2)); list.set(idx2, tmp); } }
java
import React from "react" import { graphql, Link } from "gatsby" import Layout from "../../components/Layout" import * as styles from "../../styles/projects.module.scss" import Img from "gatsby-image" export default function Index({ data }) { console.log(data) console.log(data.site.siteMetadata.contact) const thumb_img = data.projects.nodes console.log(thumb_img) const projects = data.projects.nodes const contact = data.site.siteMetadata.contact return ( <Layout> <div className={styles.portfolio}> <h2>Porfolio</h2> <h3>Various of painting that I created</h3> <div className={styles.projects}> {projects.map(i => ( <Link to={"/projects/" + i.frontmatter.slug} key={i.id}> <div className={styles.itemwrapper}> <div className="thumb-img"> <Img fluid={i.frontmatter.thumb.childImageSharp.fluid} /> </div> <h3>{i.frontmatter.title}</h3> <p>{i.frontmatter.stack}</p> </div> </Link> ))} </div> <p>If you want to share your comments, contact me by {contact}</p> </div> </Layout> ) } export const query = graphql` query project { site { siteMetadata { contact } } projects: allMarkdownRemark( sort: { fields: frontmatter___date, order: ASC } ) { nodes { frontmatter { slug stack title thumb { childImageSharp { fluid { ...GatsbyImageSharpFluid } } } } id } } } `
javascript
NEET UG 2023: With only 38 days left for the entrance exam, most medical aspirants would be dealing with anxiety and nervousness. Check exam day guidelines, barred items, dress code, steps to download the Admit card, and other related details here. NEET UG 2023 Exam Day Guidelines: The National Testing Agency, with the approval of the Ministry of Health and Family Welfare and the Ministry of Human Resource Development (which is now known as the Ministry of Education), will conduct the National Eligibility Cum Entrance Test – Undergraduate (NEET-UG) on May 7, 2023. The examination will be held from 2:00 PM to 5:20 PM. The official website of the NTA for NEET (UG) – 2023 is https://neet. nta. nic. in/. The examination is held for admission to undergraduate courses in each of the disciplines i. e. BAMS, BUMS, and BSMS courses of the Indian System of Medicine in all Medical Institutions governed under this Act. NEET (UG) will also be applicable to admission to BHMS course as per National Commission for Homeopathy Act, 2020. Medical aspirants must adhere to the National Testing Agency’s specified dress code when taking the NEET UG exam. According to the Information Bulletin of NEET(UG) 2023, the candidates are instructed to follow the following dress code while appearing for NEET (UG) – 2023. With only 38 days left for the entrance exam, most medical aspirants would be dealing with anxiety and nervousness. Check exam day guidelines, barred items, dress code, steps to download the Admit card, and other related details here. NEET UG Dress Code – What to Wear And What Not! The candidates are instructed to follow the following dress code while appearing for NEET (UG) – 2023: Light clothes with long sleeves are not permitted. However in case, candidates come in cultural/ customary dress at the Examination Centre, they should report at least an hour before the last reporting time i. e. 12. 30 pm so that there is enough time for proper frisking without any inconvenience to the candidate while maintaining the sanctity of the examination. Slippers, sandals with low heels are permitted. Shoes are not permitted. In case of any deviation required due to unavoidable (medical, etc. ) circumstances, specific approval of NTA must be taken before the Admit Cards are issued. It is desired that the candidates follow instructions issued by the NTA strictly. This will help NTA in the fair conduct of the examination. “The NTA believes in the sanctity and fairness of conducting the examination, however, it also believes in the sensitivity involved in frisking (girl) candidates and will issue comprehensive instructions accordingly to the staff and other officials at the Examination Centres. The frisking of the female candidates will be done inside a closed enclosure by female staff only,” NTA in an official statement said. All those medical aspirants who have filled up the NEET UG application form can download their NEET UG Admit Card 2023 by visiting the official website at neet. nta. nic. in. Till now, NTA has not released any official date or time for the announcement of the exam city slip and admit card. At present, the NEET UG Application form is underway. The last date to submit the application form is April 6, 2023. Visit the official website of NTA NEET at neet. nta. nic. in. On the homepage, look for the link admit card link. Enter login credentials and hit the submit button. Your NTA NEET UG Admit Card will be displayed on the screen. Download it and take a printout of it for future reference. The candidates will be subjected to extensive and compulsory frisking before entering the Examination Centre with the help of highly sensitive metal detectors. The candidates are not allowed to carry the following items inside the Examination Centre under any circumstances. Any item like textual material (printed or written), bits of papers, Geometry/Pencil Box, Plastic Pouch, Calculator, Pen, Scale, Writing Pad, Pen Drives, Eraser, Calculator, Log Table, Electronic Pen/Scanner, etc. Any communication device like Mobile Phone, Bluetooth, Earphones, Microphone, Pager, Health Band, etc. Other items like Wallet, Goggles, Handbags, Belt, Cap, etc. Any Watch/Wristwatch, Bracelet, Camera, etc. Any ornaments/metallic items. Any food items opened or packed, water bottle, etc. Any other item which could be used for unfair means, by hiding communication devices like a microchip, camera, Bluetooth device, etc. No arrangement will be made at the Centres for keeping any articles/items belonging to the candidates. The candidates wearing articles or objects of faith (customary/ cultural/ religious ) should report at the examination centre atleast two hours before the last reporting time so that there is enough time for proper frisking without any inconvenience to the candidate while maintaining the sanctity of the examination. If upon screening, it is discovered that any candidate is actually carrying a suspected device within such item of faith, he/ she may be asked not to take it into the examination hall. The candidate will bring only the following to the Examination Centre: Admit Card along with passport size photograph affixed on it; One passport-size photograph is to be affixed on Attendance Sheet. Valid Original Identity proof, PwBD certificate, if applicable. One Post Card Size (4”X6”) color photograph with white background should be pasted on the Proforma downloaded with the Admit Card and should be handed over to Invigilator at Centre. “Candidate who does not bring the downloaded proforma with a postcard size (4”X6”) photograph pasted and one passport size photograph will not be allowed to sit in the examination and shall lead to his/her disqualification,” NTA in the information bulletin said. Last date of successful transaction of fee through Credit/Debit Card/Net-Banking/UPI 06 April 2023 (up to 11:50 PM) Date of Examination: 07 May 2023 (Sunday) Duration of Examination: 200 minutes (03 hours 20 Minutes) Timing of Examination: 02:00 PM to 05:20 PM (Indian Standard Time) Centre, Date, and Shift of NEET (UG) -2023 Examination: As indicated on Admit Card. Display of Recorded Responses and Answer Keys: To be announced later on the website. Declaration of Result on NTA website: To be announced later on the website. Candidates, who desire to appear in NEET (UG) – 2023, may see the detailed Information Bulletin available on the website: https://neet. nta. nic. in/. For further clarification related to NEET (UG) – 2023, the candidates can also contact 011-40759000 or email at neet@nta. ac. in.
english
<reponame>shitallathiya/RumorDetection {"contributors":null,"truncated":false,"text":"<NAME> magazine is planning a print-run of its next issue of a million copies, not usual 60,000. Expected to sell out #wato","in_reply_to_status_id":null,"id":553177822312013825,"favorite_count":88,"source":"<a href=\"http:\/\/twitter.com\" rel=\"nofollow\">Twitter Web Client<\/a>","retweeted":false,"coordinates":null,"entities":{"user_mentions":[],"symbols":[],"trends":[],"hashtags":[{"indices":[125,130],"text":"wato"}],"urls":[]},"in_reply_to_screen_name":null,"id_str":"553177822312013825","retweet_count":180,"in_reply_to_user_id":null,"favorited":false,"user":{"follow_request_sent":null,"profile_use_background_image":true,"default_profile_image":false,"id":22021978,"verified":false,"profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/551101559161901056\/iYmeHQgX_normal.jpeg","profile_sidebar_fill_color":"C0DFEC","profile_text_color":"333333","followers_count":50446,"profile_sidebar_border_color":"A8C7F7","id_str":"22021978","profile_background_color":"022330","listed_count":1718,"profile_background_image_url_https":"https:\/\/abs.twimg.com\/images\/themes\/theme15\/bg.png","utc_offset":0,"statuses_count":154350,"description":"Journalist, writer (India Dishonoured http:\/\/goo.gl\/oVc1xS), lecturer @Kingstonjourno, activist, environmentalist, feminist. Mostly tweet on current affairs.","friends_count":925,"location":"South London","profile_link_color":"0084B4","profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/551101559161901056\/iYmeHQgX_normal.jpeg","following":null,"geo_enabled":false,"profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/22021978\/1398209708","profile_background_image_url":"http:\/\/abs.twimg.com\/images\/themes\/theme15\/bg.png","name":"<NAME>","lang":"en","profile_background_tile":false,"favourites_count":117,"screen_name":"sunny_hundal","notifications":null,"url":"http:\/\/sunnyhundal.org","created_at":"Thu Feb 26 15:39:06 +0000 2009","contributors_enabled":false,"time_zone":"London","protected":false,"default_profile":false,"is_translator":false},"geo":null,"in_reply_to_user_id_str":null,"possibly_sensitive":false,"lang":"en","created_at":"Thu Jan 08 13:14:05 +0000 2015","filter_level":"low","in_reply_to_status_id_str":null,"place":null}
json
<filename>src/esri/directives/imgbig.js export default { bind: function (el, binding) { let oDiv = el; //当前元素 let self = this; //上下文 let type = binding.value.type; oDiv.onmousedown = function (e) { if (type === 'bg') { var url = $(e.currentTarget).css('backgroundImage').split("\"")[1]; } else if (type === 'img') { var url = e.currentTarget.src; } if (url) { $('.imgbig-wrap').show(); $('.imgbig-wrap').find('img').attr('src', url); } }; } }
javascript
<gh_stars>1-10 #ifndef PHYSICSSYSTEM__HPP #define PHYSICSSYSTEM__HPP //DESCRIPTION /* System used to deal with physics components and handle the per frame changes of entities. Interactions between entities is handled by the collision system. */ //INCLUDES #include <vector> #include <algorithm> #include <SDL2/SDL.h> #include "KF_math.hpp" #include "AbstractSystem.hpp" #include "EntityManager.hpp" #include "Messenger.hpp" #include "Message.hpp" #include "physics/KF_physics.hpp" //CLASSES class PhysicsSystem; //DEFINITIONS //MACROS //TYPEDEFS //FUNCTIONS //BEGIN class PhysicsSystem : public AbstractSystem { private: timeType previousTime = SDL_GetTicks(); timeType currentTime = 0; std::vector<AbstractForceGenerator*> generatorContainer; public: PhysicsSystem(); virtual ~PhysicsSystem(); //Generator methods void addForceGenerator(AbstractForceGenerator* generator); void removeForceGenerator(AbstractForceGenerator* gen); void removeForceGenerator(stringType generatorName); AbstractForceGenerator* getForceGenerator(stringType generatorName); boolType hasForceGenerator(stringType generatorName); const std::vector<AbstractForceGenerator*>& getForceGeneratorContainer(); void createMessages(); void process(); }; #endif //END PHYSICSSYSTEM__HPP
cpp
While the world publicly mourned the death of Steve Jobs on Thursday, Apple employees did so more quietly, as befits a company that prizes secrecy. Some employees said the mood at the company's headquarters in Cupertino, Calif., was a combination of sadness and business as usual. "We knew it was coming; it was just a matter of when, not if," said one employee who declined to be named, citing company policy. "I'm just really happy he was surrounded by his family when it happened." One former engineer who very recently left Apple to start her own company said she and the current employees she spoke with were shaken up by Mr. Jobs's death, even though it seemed inevitable. "Everyone is surprised but saying we shouldn't have been surprised," said the former employee, who requested anonymity to protect her relationship with the company and her friends there. Mr. Jobs "wouldn't have resigned if he was just a little ill or just a little tired. Being really sick -- that's the only thing that would make him get away from Apple." The former employee said she and others also were experiencing a feeling of gratitude. "People are saying they are so happy to have crossed paths with him. They're also saying, 'This is a new beginning. It's somebody else's time to fly.'" The engineer said there had been a lot of conversation about whether the company would falter or see a drop in creativity. She said the consensus among her contacts was that the culture would remain intact so long as the company retained the talent and creativity that surrounded Mr. Jobs, notably top lieutenants like Jonathan Ive, the company's design guru. Former Apple employees said they heard from friends at the company that the news of Mr. Jobs's death had spread internally via social media and news sites. There was word that the company was planning some kind of celebration of Mr. Jobs for employees, but there were few details. Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
english
<gh_stars>1-10 #include "test.h" static auto Evq0 = EventQueueT<1>(); static auto Evq1 = EventQueueT<1>(); static auto Evq2 = EventQueueT<1>(); static auto Evq3 = EventQueueT<1>(); static unsigned sent; static void proc3() { unsigned received; unsigned event; event = Evq3.wait(&received); ASSERT_success(event); ASSERT(received == sent); event = Evq2.give(received); ASSERT_success(event); ThisTask::stop(); } static void proc2() { unsigned received; unsigned event; ASSERT(!Tsk3); Tsk3.startFrom(proc3); ASSERT(!!Tsk3); event = Evq2.wait(&received); ASSERT_success(event); ASSERT(received == sent); event = Evq3.give(received); ASSERT_success(event); event = Evq2.wait(&received); ASSERT_success(event); ASSERT(received == sent); event = Evq1.give(received); ASSERT_success(event); event = Tsk3.join(); ASSERT_success(event); ThisTask::stop(); } static void proc1() { unsigned received; unsigned event; ASSERT(!Tsk2); Tsk2.startFrom(proc2); ASSERT(!!Tsk2); event = Evq1.wait(&received); ASSERT_success(event); ASSERT(received == sent); event = Evq2.give(received); ASSERT_success(event); event = Evq1.wait(&received); ASSERT_success(event); ASSERT(received == sent); event = Evq0.give(received); ASSERT_success(event); event = Tsk2.join(); ASSERT_success(event); ThisTask::stop(); } static void proc0() { unsigned received; unsigned event; ASSERT(!Tsk1); Tsk1.startFrom(proc1); ASSERT(!!Tsk1); event = Evq0.wait(&received); ASSERT_success(event); ASSERT(received == sent); event = Evq1.give(received); ASSERT_success(event); event = Evq0.wait(&received); ASSERT_success(event); ASSERT(received == sent); event = Tsk1.join(); ASSERT_success(event); ThisTask::stop(); } static void test() { unsigned event; ASSERT(!Tsk0); Tsk0.startFrom(proc0); ASSERT(!!Tsk0); event = Evq0.give(sent = rand()); ASSERT_success(event); event = Tsk0.join(); ASSERT_success(event); } extern "C" void test_event_queue_3() { TEST_Notify(); TEST_Call(); }
cpp
<reponame>dbf256/organicmaps #pragma once #include "indexer/feature_data.hpp" #include "indexer/ftypes_matcher.hpp" #include "indexer/drawing_rule_def.hpp" #include "base/buffer_vector.hpp" #include <cstdint> #include <functional> #include <string> #include <utility> class FeatureType; namespace drule { class BaseRule; } namespace df { class IsHatchingTerritoryChecker : public ftypes::BaseChecker { IsHatchingTerritoryChecker(); public: DECLARE_CHECKER_INSTANCE(IsHatchingTerritoryChecker); }; struct CaptionDescription { void Init(FeatureType & f, int8_t deviceLang, int const zoomLevel, feature::GeomType const type, drule::text_type_t const mainTextType, bool const auxCaptionExists); std::string const & GetMainText() const; std::string const & GetAuxText() const; std::string const & GetRoadNumber() const; bool IsNameExists() const; bool IsHouseNumberInMainText() const { return m_isHouseNumberInMainText; } private: // Clear aux name on high zoom and clear long main name on low zoom. void ProcessZoomLevel(int const zoomLevel); // Try to use house number as name of the object. void ProcessMainTextType(drule::text_type_t const & mainTextType); std::string m_mainText; std::string m_auxText; std::string m_roadNumber; std::string m_houseNumber; bool m_isHouseNumberInMainText = false; }; class Stylist { public: bool m_isCoastline = false; bool m_areaStyleExists = false; bool m_lineStyleExists = false; bool m_pointStyleExists = false; public: CaptionDescription const & GetCaptionDescription() const; struct TRuleWrapper { drule::BaseRule const * m_rule; double m_depth; bool m_hatching; }; template <class ToDo> void ForEachRule(ToDo && toDo) const { for (auto const & r : m_rules) toDo(r); } bool IsEmpty() const; private: friend bool InitStylist(FeatureType & f, int8_t deviceLang, int const zoomLevel, bool buildings3d, Stylist & s); CaptionDescription & GetCaptionDescriptionImpl(); private: typedef buffer_vector<TRuleWrapper, 8> rules_t; rules_t m_rules; CaptionDescription m_captionDescriptor; }; bool InitStylist(FeatureType & f, int8_t deviceLang, int const zoomLevel, bool buildings3d, Stylist & s); double GetFeaturePriority(FeatureType & f, int const zoomLevel); } // namespace df
cpp
Mumbai: Full-service carrier Air India, under its new owner Tata Group, Thursday it was looking forward to soaring high, propelled by the rich legacy of the two iconic brands and their shared mission to serve the country. “Brand new chapter unfolds for Air India as part of the Tata Group. Two iconic names come together to embark on a voyage of excellence,” the airline tweeted from its official handle. “Looking forward to soaring high propelled by our rich legacy and shared mission to serve our nation. Welcome aboard. @TataCompaies,” it added. Earlier on Thursday, the salt-to-software conglomerate took over Air India along with its low-cost international budget arm Air India Express and ground handling and cargo handling services unit AISATS, and vowed to turn around the loss-making airline, which was founded by the Tata Group but later went under government control in 1953. “We are excited to have Air India back in the Tata group, and are committed to making this a world-class airline. I warmly welcome all the employees of Air India, Air India Express and AISATS to our Group, and look forward to working together,” Tata Sons Chairman N Chandrasekaran said in a statement soon after the airline was transferred to the group. Talace Private Limited — a subsidiary of the Tata Group’s holding company Tata Sons — on October 8, 2021 won the bid to acquire debt-ridden Air India. Tatas offered Rs 18,000 crore as part of the winning bid — Rs 15,300 crore for Air India’s existing debt and Rs 2,700 crore to be paid as cash to the government. On October 11, 2021, a Letter of Intent (LoI) was issued to the Tata Group confirming the government’s willingness to sell its 100 per cent stake in the airline. On October 25, the government signed the share purchase agreement for the deal.
english
<reponame>japaric/tlsf #[cfg(not(any( feature = "FLI6", feature = "FLI7", feature = "FLI8", feature = "FLI9", feature = "FLI10", feature = "FLI11", feature = "FLI12", feature = "FLI13", feature = "FLI14", feature = "FLI15", feature = "FLI16", )))] compile_error!("you must enable one of the 'FLI*' features to compile this crate"); /// First Level Index (FLI) #[cfg(feature = "FLI6")] pub const USER_FLI: u8 = 6; /// First Level Index (FLI) #[cfg(feature = "FLI7")] pub const USER_FLI: u8 = 7; /// First Level Index (FLI) #[cfg(feature = "FLI8")] pub const USER_FLI: u8 = 8; /// First Level Index (FLI) #[cfg(feature = "FLI9")] pub const USER_FLI: u8 = 9; /// First Level Index (FLI) #[cfg(feature = "FLI10")] pub const USER_FLI: u8 = 10; /// First Level Index (FLI) #[cfg(feature = "FLI11")] pub const USER_FLI: u8 = 11; /// First Level Index (FLI) #[cfg(feature = "FLI12")] pub const USER_FLI: u8 = 12; /// First Level Index (FLI) #[cfg(feature = "FLI13")] pub const USER_FLI: u8 = 13; /// First Level Index (FLI) #[cfg(feature = "FLI14")] pub const USER_FLI: u8 = 14; /// First Level Index (FLI) #[cfg(feature = "FLI15")] pub const USER_FLI: u8 = 15; /// First Level Index (FLI) #[cfg(feature = "FLI16")] pub const USER_FLI: u8 = 16; // NOTE USER_FLI MUST be equal or less than 16 because we don't support block sizes greater than `1 // << 16` #[allow(dead_code)] const ASSERT0: [(); 0 - !(USER_FLI <= 16) as usize] = []; /// Maximum block size that can be managed by the allocator pub const MAX_BLOCK_SIZE: u16 = ((1u32 << USER_FLI) - ALIGN_SIZE as u32) as u16; /// Maximum block size that can be requested from the allocator pub const MAX_REQUEST_SIZE: u16 = ((1u32 << USER_FLI) - (1 << (USER_FLI - SLI_LOG2))) as u16; // All blocks are 4-byte aligned and their sizes are always multiple of 4 pub const ALIGN_SIZE_LOG2: u8 = 2; /// All block sizes are multiple of this number; this number is also the minimum alignment of all /// allocations pub const ALIGN_SIZE: u8 = 1 << ALIGN_SIZE_LOG2; pub const SLI_LOG2: u8 = 4; /// Second Level Index (FLI) pub const SLI: u8 = 1 << SLI_LOG2; // For small values of `fl` we would have to split sizes in the range of e.g. `4..8` into `SLI` // smaller ranges. That doesn't make much sense so instead we merge all the rows with `fl < // FLI_SHIFT` into a single row. pub const FLI_SHIFT: u8 = SLI_LOG2 + ALIGN_SIZE_LOG2; pub const FLI: u8 = USER_FLI - FLI_SHIFT + 1; // NOTE FLI MUST be equal or less than 16 because `Tlsf.fl_bitmap` is a `u16` #[allow(dead_code)] const ASSERT1: [(); 0 - !(FLI <= 16) as usize] = []; // NOTE FLI can't be smaller than `1` or `free_lists` would be a zero-element array #[allow(dead_code)] const ASSERT2: [(); 0 - !(FLI >= 1) as usize] = []; /// Block with sizes below this threshold will always have FL = 0; they'll all go into the merged /// row pub const SIZE_THRESHOLD: u16 = 1 << FLI_SHIFT; /// If the excess space has at least this many *usable* bytes then this block should be split pub const SPLIT_THRESHOLD: u16 = 1 * ALIGN_SIZE as u16;
rust
Feedback (2) PriceList for Ip65 Tri Proof Led Linear Light - Square Type – Eastrong Detail: Model No. Operation Voltage(V) For more information please refer manual! - Logistic center, warehouse, transshipment center; - Airport, gym, railway station; - Large manufacture plant and repair shop; Product detail pictures: Related Product Guide: Our development depends on the advanced equipment, excellent talents and continuously strengthened technology forces for PriceList for Ip65 Tri Proof Led Linear Light - Square Type – Eastrong , The product will supply to all over the world, such as: India, Japan, Uganda, Meanwhile, we're building up and consummating triangle market & strategic cooperation in order to achieve a multi-win trade supply chain to expand our market vertically and horizontally for a brighter prospects. development. Our philosophy is to create cost-effective products and solutions, promote perfect services, cooperate for long-term and mutual benefits, firm a in depth mode of excellent suppliers system and marketing agents, brand strategic cooperation sales system. The product classification is very detailed that can be very accurate to meet our demand, a professional wholesaler.
english
{"featureCount":1,"formatVersion":1,"histograms":{"meta":[{"arrayParams":{"chunkSize":10000,"length":1,"urlTemplate":"hist-50000-{Chunk}.json"},"basesPerBin":"50000"}],"stats":[{"basesPerBin":"50000","max":1,"mean":1}]},"intervals":{"classes":[{"attributes":["Start","End","Strand","Id","Name","Seq_id","Source","Subfeatures","Type"],"isArrayAttr":{"Subfeatures":1}},{"attributes":["Start","End","Strand","Coverage","Id","Identity","Indels","Matches","Mismatches","Name","Seq_id","Source","Subfeatures","Type","Unknowns"],"isArrayAttr":{"Subfeatures":1}},{"attributes":["Start","End","Strand","Id","Name","Score","Seq_id","Source","Target","Type"],"isArrayAttr":{}},{"attributes":["Start","End","Strand","Id","Name","Phase","Score","Seq_id","Source","Target","Type"],"isArrayAttr":{}},{"attributes":["Start","End","Chunk"],"isArrayAttr":{"Sublist":1}}],"count":1,"lazyClass":4,"maxEnd":19361,"minStart":16985,"nclist":[[0,16985,19361,-1,"tig00003411.g102.t1.path1","tig00003411.g102.t1","tig00052958_overlapping_hits_sub_region","cannabis_loc_scaffold",[[1,16985,19361,-1,"99.1","tig00003411.g102.t1.mrna1","92.2","33","2221","154","tig00003411.g102.t1","tig00052958_overlapping_hits_sub_region","cannabis_loc_scaffold",[[2,16985,19361,-1,"tig00003411.g102.t1.mrna1.exon1","tig00003411.g102.t1",92,"tig00052958_overlapping_hits_sub_region","cannabis_loc_scaffold","tig00003411.g102.t1 1 2407 +","exon"],[3,18681,18700,-1,"tig00003411.g102.t1.mrna1.cds1","tig00003411.g102.t1",0,85,"tig00052958_overlapping_hits_sub_region","cannabis_loc_scaffold","tig00003411.g102.t1 665 685 +","CDS"]],"mRNA","0"]],"gene"]],"urlTemplate":"lf-{Chunk}.json"}}
json
<gh_stars>1-10 { "$schema" : "http://json-schema.org/draft-07/schema#", "$id" : "AWS_WAFv2_WebACL.StatementThree.schema.json", "title" : "WebACLStatementThree", "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html", "type" : "object", "javaType" : "shiver.me.timbers.aws.wafv2.WebACLStatementThree", "javaInterfaces" : [ "shiver.me.timbers.aws.Property<WebACLStatementThree>" ], "properties" : { "ByteMatchStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-bytematchstatement", "$ref" : "AWS_WAFv2_WebACL.ByteMatchStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLByteMatchStatement>" }, "SqliMatchStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-sqlimatchstatement", "$ref" : "AWS_WAFv2_WebACL.SqliMatchStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLSqliMatchStatement>" }, "XssMatchStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-xssmatchstatement", "$ref" : "AWS_WAFv2_WebACL.XssMatchStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLXssMatchStatement>" }, "SizeConstraintStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-sizeconstraintstatement", "$ref" : "AWS_WAFv2_WebACL.SizeConstraintStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLSizeConstraintStatement>" }, "GeoMatchStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-geomatchstatement", "$ref" : "AWS_WAFv2_WebACL.GeoMatchStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLGeoMatchStatement>" }, "RuleGroupReferenceStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-rulegroupreferencestatement", "$ref" : "AWS_WAFv2_WebACL.RuleGroupReferenceStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLRuleGroupReferenceStatement>" }, "IPSetReferenceStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-ipsetreferencestatement", "$ref" : "AWS_WAFv2_WebACL.IPSetReferenceStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLIPSetReferenceStatement>" }, "RegexPatternSetReferenceStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-regexpatternsetreferencestatement", "$ref" : "AWS_WAFv2_WebACL.RegexPatternSetReferenceStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLRegexPatternSetReferenceStatement>" }, "ManagedRuleGroupStatement" : { "description" : "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-managedrulegroupstatement", "$ref" : "AWS_WAFv2_WebACL.ManagedRuleGroupStatement.schema.json", "javaType" : "shiver.me.timbers.aws.Property<shiver.me.timbers.aws.wafv2.WebACLManagedRuleGroupStatement>" } } }
json
<gh_stars>0 import { Client } from '../client' import { UriHelper } from '../uri-helper' import { ThBaseHandler } from '../base' import { BaseError } from '../errors' export interface UserPermissionsTemplatesOptions { user?: string base?: string } export interface UserPermissionsTemplatesResponse { data: UserPermissionsTemplate[] metadata: Record<string, unknown> } export interface UserPermissionsTemplateResponse { data?: UserPermissionsTemplate metadata?: Record<string, unknown> msg?: string } export interface UserPermissionsTemplate { name?: string scopes?: string[] deleted?: boolean active?: boolean } export class UserPermissionsTemplates extends ThBaseHandler { public static baseEndpoint = '/api/v0/user_permission_templates' endpoint: string http: Client public options: UserPermissionsTemplatesOptions public uriHelper: UriHelper constructor (options: UserPermissionsTemplatesOptions, http: Client) { super(http, { endpoint: UserPermissionsTemplates.baseEndpoint, base: options.base ?? 'https://api.tillhub.com' }) this.options = options this.http = http this.endpoint = UserPermissionsTemplates.baseEndpoint this.options.base = this.options.base ?? 'https://api.tillhub.com' this.uriHelper = new UriHelper(this.endpoint, this.options) } async create (template: UserPermissionsTemplate): Promise<UserPermissionsTemplateResponse> { try { const uri = this.uriHelper.generateBaseUri() const response = await this.http.getClient().post(uri, template) if (response.status !== 200) { throw new UserPermissionsTemplatesCreationFailed(undefined, { status: response.status }) } return { data: response.data.results[0], metadata: { count: response.data.count } } } catch (error: any) { throw new UserPermissionsTemplatesCreationFailed(error.message, { error }) } } async getAll (query?: Record<string, unknown>): Promise<UserPermissionsTemplatesResponse> { try { const baseUri = this.uriHelper.generateBaseUri() const uri = this.uriHelper.generateUriWithQuery(baseUri, query) const response = await this.http.getClient().get(uri) if (response.status !== 200) { throw new UserPermissionsTemplatesFetchFailed(undefined, { status: response.status }) } return { data: response.data.results, metadata: { count: response.data.count } } } catch (error: any) { throw new UserPermissionsTemplatesFetchFailed(error.message, { error }) } } async get ( templateId: string, query?: Record<string, unknown> ): Promise<UserPermissionsTemplateResponse> { try { const baseUri = this.uriHelper.generateBaseUri(`/${templateId}`) const uri = this.uriHelper.generateUriWithQuery(baseUri, query) const response = await this.http.getClient().get(uri) if (response.status !== 200) { throw new UserPermissionsTemplatesFetchOneFailed(undefined, { status: response.status }) } return { data: response.data.results[0], metadata: { count: 1 } } } catch (error: any) { throw new UserPermissionsTemplatesFetchOneFailed(error.message, { error }) } } async update ( templateId: string, template: UserPermissionsTemplate ): Promise<UserPermissionsTemplateResponse> { try { const uri = this.uriHelper.generateBaseUri(`/${templateId}`) const response = await this.http.getClient().put(uri, template) if (response.status !== 200) { throw new UserPermissionsTemplatesUpdateFailed(undefined, { status: response.status }) } return { data: response.data.results[0], metadata: { count: response.data.count } } } catch (error: any) { throw new UserPermissionsTemplatesUpdateFailed(error.message, { error }) } } async delete (templateId: string): Promise<UserPermissionsTemplateResponse> { const uri = this.uriHelper.generateBaseUri(`/${templateId}`) try { const response = await this.http.getClient().delete(uri) if (response.status !== 200) { throw new UserPermissionsTemplatesDeleteFailed(undefined, { status: response.status }) } return { msg: response.data.msg } } catch (error: any) { throw new UserPermissionsTemplatesDeleteFailed(error.message, { error }) } } } export class UserPermissionsTemplatesFetchFailed extends BaseError { public name = 'UserPermissionsTemplatesFetchFailed' constructor ( public message: string = 'Could not fetch all user permissions templates', properties?: Record<string, unknown> ) { super(message, properties) } } export class UserPermissionsTemplatesFetchOneFailed extends BaseError { public name = 'UserPermissionsTemplatesFetchOneFailed' constructor ( public message: string = 'Could not fetch one user permissions template', properties?: Record<string, unknown> ) { super(message, properties) } } export class UserPermissionsTemplatesUpdateFailed extends BaseError { public name = 'UserPermissionsTemplatesUpdateFailed' constructor ( public message: string = 'Could not update user permissions template', properties?: Record<string, unknown> ) { super(message, properties) } } export class UserPermissionsTemplatesCreationFailed extends BaseError { public name = 'UserPermissionsTemplatesCreationFailed' constructor ( public message: string = 'Could not create user permissions template', properties?: Record<string, unknown> ) { super(message, properties) } } export class UserPermissionsTemplatesDeleteFailed extends BaseError { public name = 'UserPermissionsTemplatesDeleteFailed' constructor ( public message: string = 'Could not delete user permissions template', properties?: Record<string, unknown> ) { super(message, properties) } }
typescript
<reponame>Virtuoel/TechReborn { "type": "minecraft:crafting_shaped", "pattern": [ "FFF", "SMS", " C " ], "key": { "F": { "item": "minecraft:flint" }, "S": { "item": "minecraft:cobblestone" }, "C": { "item": "techreborn:electronic_circuit" }, "M": { "item": "techreborn:basic_machine_frame" } }, "result": { "item": "techreborn:grinder" } }
json
The French voted it the `thing’ of the century. The French, mind it, known for their high-mindedness, their highly discerning noses, their haute cuisine, sorry, couture (but cuisine too! ) those inappropriately named `frogs’ (a creature not commonly associated with intellectual pursuits or exceptional tastes) have chosen television as the `thing’ of the century. Now, this is either the ultimate compliment or the most gratuitous insult: the box has been contemptuously dismissed as an idiot; the box has been sneeringly defined as a media of that lowliest form of life the masses; the box has been roundly damned as representing the worst in popular culture; and the French are universally celebrated for their sky-scraper HIGH CULTURE. Which makes their endorsement of television seem almost suspect. But let’s take nothing away from the endorsement itself. It’s pretty indisputable that television has played a significant role in changing the modern world: physically and mentally. It is great as an information-source, a revolutionary and an entertainer besides being the most trivial pursuit in the universe given the complete passivity it demands of those who pursue it. You have only to think of last week’s highjacking to appreciate its role as the first information reporter of all major events, especially accidents, disasters, major assassinations, etc. . And if you consider channels such as Discovery, you know how much you can learn from it. Television: it has helped pull down walls (Berlin), bring down governments (USSR, East European) and discredit political systems (communism); it has helped make average men into famous Presidents (Ronald Reagan) and successful Presidents into little men (Bill Clinton); it has transformed the ordinary into the mythic (Princess Diana’s car accident) and the terrible into the beautiful (wasn’t the bombing of Baghdad, a Diwali fireworks spectacle? ). If sports is the best brand name in the world, blame it on television. If sports is the greatest unifier, attribute it to television: more people, across the universe, watched the last soccer World Cup than any other event. To think of soccer, cricket, tennis, basketball, the Olympics, the other World Cups even golf, chess and rubgy is to think of television. Singlehandedly, the box has shifted the sports arena from the playing fields to the squatting couches: games are what thousands play and billions watch. Television: it has shrunk the world small enough to fit into a 12-inch TV screen; it reduced the concept of time and space to the meaningless before the Internet was conceived: live broadcasts from the outer space or any where on earth, ensure that experiences can be instantaneous andsimultaneous. Need we say more? Television has become the site for everything: if it didn’t happen on television, it didn’t happen. Therein lies its other significance: it has excluded all that it does not include which happens to be the better part of the world: billions, every where, may enjoy access to the remote control (metaphorically speaking) but they do not control what is shown. Media barons do. Perhaps television’s single, gravest shortcoming is that it is mass only in its audience. A bittersweet irony: television, which has been a liberator (in more senses than one), which has helped establish or defend democracy, is undemocratic. Undemocratic even in its variety: which is limited to the same programmes in different language. Television had the supreme power of public service because it crossed over the barriers of literacy as easily as geographical boundaries. In Britain, then Europe and many developing countries thereafter (including India), it was promoted as the medium of change withhigh-minded purposes: to educate, to inform and through the two to transform societies and mindsets. That was always going to be a bit of dream: can a medium which is technologically expensive and complex be deployed for community service? To serve the needs of ordinary people, without material recompense, when it can be exploited for material gains by a small group of people who control it? In India, we awoke to the possibilities of television like a late-riser. And committed the same errors the pioneers did but for different reasons:we centralised television control; we placed it in the keep of governments and bureaucrats. We didn’t place the camera in the hands of the average man or woman and let them decide what they wanted to see through the lens. Neither did we leave it to those who may have had the power to educate: the Rays, the Ramans or the Radhakrishnans. Instead, we let it lie moribund, allowed commercial interests to propel it into the entertainment business. Into the same stuff Publicservice broadcasting has become a boring word, and television can be anything but boring. Never that. Give us Bollywood and Tellywood’s dream sequences any day that’s entertainment, that’s television. But as events have proved this year, it is also information: the Lahore bus ride, Kargil, Orissa, elections… It’s said that the next century will belong to those who dot their names rather than their `i’s or forehead; that the Internet will fulfill the unrealised dreams of television: it will be truly democratic, it will place its power and potential at the fingertips of the cerfer. Maybe. In which case it will join television, literally in terms of the convergence of the two technologies and in its broad-based mass appeal. But for some time to come, they will remain discrete. As of now, Internet is a private affair, television nothing if not public. The first appeals to `me’, the second to all of us. Maybe that is what the next century will offer us: unity in diversity. Happy new year.
english
export default options => { class TrainCarriage { constructor(rules) { this.rules = rules } toString() { return this.rules.filter(v => v !== undefined && v !== null).map(v => `${v};`).join('\n') } } Object.keys(options).forEach(option => { Object.defineProperty(TrainCarriage.prototype, option, { get() { return new TrainCarriage(this.rules.concat(options[option])) } }) }) return new TrainCarriage([options.default]) }
javascript
To Start receiving timely alerts please follow the below steps: Click on the Menu icon of the browser, it opens up a list of options. Click on the “Options ”, it opens up the settings page, Here click on the “Privacy & Security” options listed on the left hand side of the page. Scroll down the page to the “Permission” section . Here click on the “Settings” tab of the Notification option. A pop up will open with all listed sites, select the option “ALLOW“, for the respective site under the status head to allow the notification. Once the changes is done, click on the “Save Changes” option to save the changes. શાહરુખના પગલે દીપિકાએ ગુમાવી હૉલીવુડ ફિલ્મ! જન્મદિવસ વિશેષ: સાંભળો નરેન્દ્ર મોદીની ટોપ 5 સ્પિચ! આ 7 કારણોના લીધે મોદી છે ભાજપના તારણહાર! ભાવિ PMને પાઠવો જન્મદિવસની શુભેચ્છા Oneindia પર! નરેન્દ્ર મોદી લખનૌ બેઠકથી ચૂંટાનારા નવમા PM બનશે? 'યુપીમાં નવરાત્રિ બાદ મોદી કરશે ચુંટણીનો શંખનાદ, લખનઉમાં યોજાશે મહારેલી' Do you want to clear all the notifications from your inbox? ) for our message and click on the activation link.
english
#include "RecoEcal/EgammaCoreTools/interface/EcalNextToDeadChannelRcd.h" #include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" EVENTSETUP_RECORD_REG(EcalNextToDeadChannelRcd);
cpp
<filename>games/360390.json {"appid": 360390, "name": "Nightside", "windows": true, "mac": false, "linux": true, "early_access": false, "lookup_time": 1490982451}
json
[ { "active": false, "log_source_type": "flatFile", "uid": "__CHANGE_ME__-4d8f-8144-ef480e69f1ee", "name": "Test logs", "deviceType": "test_dummy", "filterHelpers": { "boggus_test_file": true, "firewalld": true }, "baseDirectoryPath": "/tmp", "inclusionFilter": "*.log", "exclusionFilter": "", "recursionDepth": 0, "daysToWatchModifiedFiles": 0, "compressionType": "none", "multiLines": { "msgStartRegex": "", "msgStopRegex": "", "msgDelimiterRegex": "" }, "frequencyInSeconds": 5, "collectFromBeginning": false, "printToConsole": false }, { "active": false, "log_source_type": "flatFile", "uid": "__CHANGE_ME__-4d8f-8144-7e51c765f1ee", "name": "Fake Firewalld logs - WILL FAIL as we are providing a file instead of a directory under baseDirectoryPath", "deviceType": "test_firewalld", "filterHelpers": { "boggus_test_file": true, "firewalld": true }, "baseDirectoryPath": "/tmp/firewalld", "inclusionFilter": "", "exclusionFilter": "", "recursionDepth": 0, "daysToWatchModifiedFiles": 0, "compressionType": "none", "multiLines": { "msgStartRegex": "", "msgStopRegex": "", "msgDelimiterRegex": "" }, "frequencyInSeconds": 5, "collectFromBeginning": false, "printToConsole": false }, { "active": false, "log_source_type": "flatFile", "uid": "__CHANGE_ME__-4d8f-8144-7d51c765f1ee", "name": "Fake Firewalld logs", "deviceType": "test_firewalld", "filterHelpers": { "boggus_test_file": true, "firewalld": true }, "baseDirectoryPath": "/tmp", "inclusionFilter": "firewalld", "exclusionFilter": "", "recursionDepth": 0, "daysToWatchModifiedFiles": 1, "compressionType": "none", "multiLines": { "msgStartRegex": "", "msgStopRegex": "", "msgDelimiterRegex": "" }, "frequencyInSeconds": 5, "collectFromBeginning": true, "printToConsole": false }, { "active": false, "log_source_type": "flatFile", "uid": "__CHANGE_ME__-4fdd-bed5-1b1f2601adae", "name": "System wide Messages", "deviceType": "system_messages", "filterHelpers": { "System_Messages": true }, "baseDirectoryPath": "/var/log", "inclusionFilter": "messages", "exclusionFilter": "", "recursionDepth": 0, "daysToWatchModifiedFiles": 0, "compressionType": "none", "multiLines": { "msgStartRegex": "", "msgStopRegex": "", "msgDelimiterRegex": "" }, "frequencyInSeconds": 5, "printToConsole": false } ]
json
World Cup 2019, England vs Afghanistan (Eng vs Afg) Buildup: Struck by a series of injury setbacks, England will look to get the combination right when they take on the low-ranked but spirited Afghanistan in their bid get closer to a semi-final berth on Tuesday. The hosts are struggling with fitness issues, the latest being captain Eoin Morgan having to leave the field with a back spasm during the game against the West Indies. Opening batsman Jason Roy was also forced off the field during the same match due to a tight hamstring and has been ruled out of the game in Manchester. On the other hand, Afghanistan will be eager to post their first win in the ongoing 50-over showpiece. Playing in their second World Cup, the bottom-placed Afghanistan lost all four of their matches till now to South Africa, Australia, Sri Lanka and New Zealand respectively. However, the players from the war-torn nation can take confidence from the fact that they almost pulled off a win against Sri Lanka. Himself in doubt for the Afghanistan game, Morgan insisted there is no need to hit the panic button just yet. His fitness will be monitored over the next 24 hours before the final call is take on his participation on Tuesday. "It is sore. I have had back spasms before and it normally takes a few days to settle down. It is unclear, we will know more in the next 24 hours. You normally get a good indication the following day. "
english
<filename>origin-interface/src/main/java/space/dyenigma/shiro/ShiroUser.java<gh_stars>0 package space.dyenigma.shiro; import space.dyenigma.entity.BaseDomain; import java.io.Serializable; /** * origin/space.dyenigma.shiro * * @Description: 登录用户权限 * @Author: dingdongliang * @Date: 2015年9月14日 下午6:06:07 */ public class ShiroUser extends BaseDomain implements Serializable { private static final long serialVersionUID = 1L; private String userId; private String account; public ShiroUser(String userId, String account) { super(); this.userId = userId; this.account = account; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public String getAccount() { return account; } public void setAccount(String account) { this.account = account; } }
java
<filename>external/Wang2017/tweets/581208991579136000.json {"content": "Independent providers are a tiny proportion of providers in NHS - we are committed to a free NHS working for patients #BattleForNumber10", "entities": [{"offset": 0, "type": "ne", "id": 2, "entity": "independent"}, {"offset": 109, "type": "topic keyword", "id": 3, "entity": "patients"}, {"offset": 60, "type": "topic keyword", "id": 4, "entity": "nhs"}, {"offset": 93, "type": "topic keyword", "id": 5, "entity": "nhs"}], "topics": [{"topic": "nhs", "id": 1}], "tweet_id": "581208991579136000"}
json
A strategic battle against zombies in the garden at home. Expand the world of GTA: Online. One all-in-one tool for your iPhone, iPad, or iPod Touch. A classic game for Chess fans! A very powerful and versatile free file converter.
english
5 Eŋe olale rakoi, “Betlehem matko, Yuda kepeo, Propet eŋe iwa yale qeke, 9 Don iwa edangi, so yeropka arikoi, numao ariu paki serekin kakoi, serekinba kepe sasaino wakongi kakoi, serekin weku yewaka kakoi. Serekin eaŋo alakangi, so eŋe kama kama sari mage medep pake, ea wane kutno doŋ mane metke. 10 Eŋe Serekin kau paki, wetene peseki, oi bakom suaine okangoi! 11 Eŋe mat koto wau paki, so Yesu medep so nagaine Maria otkoi. Eŋe wawetene qeu paki, umi qe more bakomine kitokoi, pakiso, kiteene makoke bakom okankakei wane kine kine ma sarikoi, ea mangoi, gol, eki kelokine qoune simile, so kelok qoune simile ea mangoi. 12 Pakiso Anutuŋo kulu kuluo Herot wano koso mi zinge arikei wane girem edange. Eso eŋe zinge more, numa maneoka mateno arikoi. 16 Herot eŋe iwa yale detke, kepe sasaino ŋine ŋei lobo sarikoi, eŋe na isinangoi yale detki paki, sotine zok osike, paki eŋe don motki kawali ŋei eŋe Betlehem matko so mat osop osop pa arike, eao medep ŋei komaene etke (2) so eŋane bane medep abubu korop engu warekoi, eŋe ŋei lobo kepe sasaino ŋine sari serekinba wakonge, ea wane nasoine olatkoi, ea detki paki, ea wane kop okange. 17 Numa iwa okanbi Propet Yeremaiaŋo don mane rake, ea wane wele yewa wakonge, 19 Herot seukki, ŋadino Waom wane aŋelo maneŋo kulu kuluo Yosep Ezipt eao wakonkake, 20 Paki olale rake, “Ge wienom paki, medep eŋine so nagaine epunom, koso zinge more, Israel kepeo ariu, onoka wane medep qekei wane rakoi, ŋei ea mo seukkoi.” 21 Yale olatkiso, Yosep eŋe wieki paki, medep eŋine so nagaine epuki, so koso zinge Israel kepeo arikoi.
english