text
stringlengths
1
1.04M
language
stringclasses
25 values
MANGALDAI, August 31: Four thousand villagers of 35 villages in Darrang district have been severally affected by the fresh wave of flood caused by the incessant rains which also caused a breach of 70 feet of the embankment of River Saktola at Jaramchowka which has inundated 10 villages. The rising water of rivers Nonoi and Noa have also submerged several villages. The stretches of the PWD roads of Mangaldai-Patharighat Khairabari, Mangaldai-Mazikuchi have been submerged under flood water in several places disrupting the road communication. According to the District Disaster Magement Department here, the sudden flood has affected more than 1000 hectares of agricultural land of 35 villages of Mangaldai, Patharighat and Sipajhar Revenue circle. However, relief materials are yet to be distributed. On the other hand, the flood caused by River Noa at Kalaigaon has breached the embankment in Kalaigaon area of Udalguri and part of Darrang district inundating several villages.
english
A year after the NFL Draft was forced to go virtual, it will be live in Cleveland with players in attendance this April. With that said, the presumptive No. 1 pick will not be there. Former Clemson quarterback Trevor Lawrence, who is expected to be taken by the Jacksonville Jaguars with the top selection, declined the NFL’s invite to attend the draft, according to ESPN. Instead, he will be watching it at Clemson with a few family members and friends. Lawrence is the top-rated quarterback in a draft class that features Ohio State’s Justin Fields, Alabama’s Mac Jones, Zach Wilson of BYU, and Trey Lance of North Dakota State. Lawrence had successful surgery on his left shoulder in mid-February. He is expected to make a full recovery, and doctors say that he will 100% be ready for training camp, according to the NFL Network. Lawrence just wrapped up his junior season with Clemson. He finished with 3,153 passing yards to go along with 24 touchdowns and only five interceptions in 2020. The Tigers were undefeated with a 9-0 record with Lawrence under center. They made it to the College Football Playoff semifinals in a showdown against Ohio State, but the Buckeyes pulled out a 49-28 victory putting an end to Lawrence’s collegiate career.
english
<gh_stars>1-10 import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import { Observable } from 'rxjs/Observable'; @Injectable() export class AlertService { private subject = new Subject<any>(); info(message: string) { this.subject.next({ type: 'info', text: message }); } danger(message: string) { this.subject.next({ type: 'danger', text: message }); } success(message: string) { this.subject.next({ type: 'success', text: message }); } timeOutClear(time: number) { setTimeout(() => this.subject.next(), time * 1000); } clear() { this.subject.next(); } getMessage(): Observable<any> { return this.subject.asObservable(); } }
typescript
<gh_stars>0 export function drawRadiusBox(context, {x, y, w, h, r}) { // avoid radius larger than width or height r = Math.min(r, Math.floor(Math.min(w, h) / 2)); // avoid radius is negative r = Math.max(r, 0); context.beginPath(); context.moveTo(x + r, y); context.arcTo(x + w, y, x + w, y + h, r); context.arcTo(x + w, y + h, x, y + h, r); context.arcTo(x, y + h, x, y, r); context.arcTo(x, y, x + w, y, r); context.closePath(); } /* istanbul ignore next */ function gradientBox(angle, rect) { const [x, y, w, h] = rect; angle %= 360; if(angle < 0) { angle += 360; } let ret = [x, y, x + w, y + h]; if(angle >= 0 && angle < 90) { const tan = Math.tan(Math.PI * angle / 180); let d = tan * w; if(d <= h) { ret = [x, y, x + w, y + d]; } else { d = h / tan; ret = [x, y, x + d, y + h]; } } else if(angle >= 90 && angle < 180) { const tan = Math.tan(Math.PI * (angle - 90) / 180); let d = tan * h; if(d <= w) { ret = [x + w, y, x + w - d, y + h]; } else { d = w / tan; ret = [x + w, y, x, y + d]; } } else if(angle >= 180 && angle < 270) { const tan = Math.tan(Math.PI * (angle - 180) / 180); let d = tan * w; if(d <= h) { ret = [x + w, y + h, x, y + h - d]; } else { d = h / tan; ret = [x + w, y + h, x + w - d, y]; } } else if(angle >= 270 && angle < 360) { const tan = Math.tan(Math.PI * (angle - 270) / 180); let d = tan * h; if(d <= w) { ret = [x, y + h, x + d, y]; } else { d = w / tan; ret = [x, y + h, x + w, y + h - d]; } } return ret; } export function findColor(context, sprite, prop) { const gradients = sprite.attr('gradients') || {}; let color = prop === 'border' ? sprite.attr(prop).color : sprite.attr(prop), gradient; if(gradients[prop]) { /* istanbul ignore next */ gradient = gradients[prop]; } else if(typeof color !== 'string') { gradient = color; } if(gradient) { let {colors, vector, direction, rect} = gradient; /* istanbul ignore if */ if(direction != null) { if(prop === 'border') { rect = rect || [0, 0, ...sprite.outerSize]; } else { const {width: borderWidth} = sprite.attr('border'); rect = rect || [borderWidth, borderWidth, ...sprite.innerSize]; } vector = gradientBox(direction, rect); } if(vector.length === 4) { color = context.createLinearGradient(...vector); } else if(vector.length === 6) { color = context.createRadialGradient(...vector); } /* istanbul ignore next */ else if(vector.length === 3) { // for wxapp color = context.createCircularGradient(...vector); } /* istanbul ignore next */ else { throw Error('Invalid gradient vector!'); } colors.forEach((o) => { color.addColorStop(o.offset, o.color); }); } return color; } const contextPool = [], maxPollSize = 20; export const cacheContextPool = { get(context) { if(contextPool.length > 0) { return contextPool.pop(); } const canvas = context.canvas; if(!canvas || !canvas.cloneNode) { return; } const copied = canvas.cloneNode(); return copied.getContext('2d'); }, put(...contexts) { contexts.every((context) => { context.canvas.width = 0; context.canvas.height = 0; contextPool.push(context); return contextPool.length < maxPollSize; }); }, get size() { return contextPool.length; }, };
javascript
<filename>src/data/awards/004.json { "awardId": "4", "name": "<NAME>, vintage 2004, Premios Bacchus 2016, Spain", "image": "/assets/uploads/Gran-Bacchus-Oro.png" }
json
Flowers covered in snow after Colorado gets a spring storm. (AP Photo) Snow falls on flowers after the arrival of a spring storm, in Boulder, Colorado. (AP Photo) Two women walk after the arrival of the spring storm in Colorado. (AP Photo) A localcouple waits to cross the road after spring storm hits Colorado. (AP Photo) Snow covered flowers in storm hit Colorado. (AP Photo) A construction crew works after the arrival of a spring storm, in Boulder, Colorado. (AP Photo)
english
Swachh Bharat Mission-Urban 2.0 (SBM-U 2.0) was launched by Hon’ble Prime Minister on 1st October, 2021, with the vision of creating Garbage Free Cities by 2026. Towards this end, one of the major objectives under the Mission is ‘Lakshya Zero’ Dumpsite to remediate 16 crore metric tonnes (MT) of legacy waste dumpsites occupying nearly 15,000 acres of city land. Legacy dumpsites pose a major threat to the environment and contributes to air pollution and water pollution. Clearing these mountains of years-old waste is critical to not just transforming the urban landscape of the country, but also addressing the issue of public health and environmental concerns. The National Mission organized a series of workshops on legacy waste remediation that brought stakeholders ranging from technical experts, private sector players, and senior officials from States and Cities together to identify their challenges, chalk out action plans, and arrive at viable and implementable solutions for legacy waste remediation. Sessions with representatives from Vadodara, Noida, Bhopal and Delhi sharing their experiences and learnings of carrying out dumpsite remediation work was also organized for greater knowledge exchange between States and Urban Local Bodies (ULBs). MoHUA celebrated ‘Azadi Ka Amrit Mahotsav’ fortnight from 17th January to 31st January 2022 on the theme of ‘Smart Cities, Smart Urbanization’. Prioritizing the issue of dumpsite remediation, more than 260 cities across 5 States/UTs have submitted their Action Plan for Legacy Waste Remediation to MoHUA, thus signifying their commitment to the vision of garbage free cities. In this regard, the Ministry of Housing and Urban Affairs (MoHUA) has approved the proposal worth ₹77.66 crore submitted by Andhra Pradesh for remediation of over 42 lakh MT of waste in 28 ULBs. Currently, 118 lakh MT of unremediated legacy waste is present across the State locking up over 463 acres of valuable land. MoHUA’s approval makes this the largest one-time approval of funds for legacy dumpsite remediation to Andhra Pradesh. The oldest dumpsite of the State at Chittoor, commissioned in 1985, as well as the city with the maximum amount of waste, Nellore, are both set to achieve ‘Lakshya Zero’ under the approved project. While Nellore Municipal Corporation has proposed to remediate 6.8 lakh MT of legacy waste, Chittoor is set to remediate 1.3 lakh MT of waste and reclaim 16 acres of land. Additionally, Madanapalle Municipal Corporation is gearing up to recover 42.35 acres of land. This will assist the State to advance towards sustainable urbanization during the Amrit Kaal by taking forward Swachh Bharat Mission- Urban 2.0’s vision for ‘Lakshya Zero Dumpsites’. For regular updates, please follow the Swachh Bharat Mission’s official website and social media properties:
english
Kevin Owens and Sami Zayn are two of the most polarizing figures in WWE. The two have a long and tumultuous history in the company. Starting off as best friends, turning into enemies, back to best friends, and now enemies once again. Sami Zayn has been the instigator in this feud this time around, after feeling that he was betrayed by KO, who refused to believe his conspiracy theories. This ultimately led to a match at WrestleMania, one that Kevin Owens would win. However, the feud did not end there and has been going on for the better part of two months now. Sami Zayn recently defeated Kevin Owens at Hell in a Cell, where he hoped he would be done with the Prizefighter. Unfortunately for the Great Liberator, WWE official Adam Pearce had other plans. Adam Pearce made an official announcement after Sami Zayn requested to be put into the Money in the Bank ladder match. He confirmed that Zayn would have to beat KO in a Last Man Standing match on next week's episode of SmackDown if he has any hope of qualifying for the match. It will be a massive match for Kevin Owens and Sami Zayn, as both will have their eyes on the Money in the Bank briefcase. Kevin Owens himself has previously claimed that he still wants to win the WWE Universal Championship. Following his match at Hell in a Cell, Kevin Owens made a public announcement via Twitter that he would be taking a break from wrestling. Owens announced that after going through a hell of a match with Sami Zayn, he would need a little break. It is believed that Owens' statement was for storyline purposes, but it looks like it served very little purpose, as Adam Pearce's announcement means that KO is only taking a two-week break from wrestling. Usually, these announcements regarding breaks from wrestling lead to significant amounts of time being taken away from the squared circle. However, it looks like WWE has other plans. What do you think about next week's Last Man Standing qualifying match? Who do you think will win? Let us know in the comments section below.
english
The Goalpara district police of Assam on Wednesday arrested two persons in connection with an alleged selling of twin babies. The police have arrested Kushal Talukdar, the father of the twins, who is a government employee and Ronuka Kalita, a mid-day meal cook, who acted as the broker. Talukdar is an employee of the education department and a resident of Dolgoma under Matia Police Station. Mid-day meal cook Ronuka Kalita works at a school near Dolgoma. “We have arrested both the persons in connection with the case No. 454/19 under IPC Sections 372/373/211 and Sections 80/81 of Juvenile Justice Care and Protection of Children act 2015,” said Amitava Basumatary, additional superintendent of police, Goalpara on Thursday. “They were produced before the court and the court sent both of them to the judicial custody. We are inquiring into the other aspects of the case,” Basumatary added. According to information, Rupa, Kushal Talukdar’s wife, gave birth to twins, both male, on June 19 at a private hospital in Goalpara town. The couple already has a baby of one-and-six-months old. As per previous arrangement, one baby was handed over to a childless couple of Guwahati city who was in contact with the family through the broker, Ronuka Kalita since Rupa was six months’ pregnant. The second baby was handed over to a couple of Lakhipur town in West Goalpara. Reportedly, Ronuka Kalita admitted that she herself had handed over the baby to the couple, whose residence is located 46 km away from the Goalpara town. It is suspected that a deal was made in exchange of huge amount of money in the case. The matter came to light when a local youth near the residence of Kushal Talukdar, who donated blood for Kushal’s wife, came to know about the delivery of the babies and their subsequent selling. “I was shocked to learn this because I was told that Rupa has undergone a surgical operation and urgently needed blood,” said the youth on condition of anonymity. Smitten by conscience, the same youth in the third week of July filed a complaint at the District Child Protection Unit (DCPU) office. “We immediately began an investigation and confirmed after visiting the hospital concerned and by questioning Kushal Deka,” said Pranati Nath, institutional care protection officer of DCPU. “We ordered them to surrender the babies before the Child Welfare Committee (CWC) as soon as possible,” added Nath. Both the babies were accordingly surrendered by the two families to the CWC in presence of their biological parents on July 22. The CWC in return placed them under the Bongaigaon district-based state adoption authority designated home. “We have placed the babies for the next 60 days as per the Juvenile Justice Care and Protection of Children Act 2015 and if not reclaimed by the biological parents within this period, they will be declared as free for adoption,” informed advocate Sohidur Rahman, member of Goalpara CWC. The sections which are levelled against the accused, if proved, may lead them to an imprisonment up to ten years.
english
// Copyright 2013 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 com.google.enterprise.connector.dctm; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Strings; import com.google.enterprise.connector.dctm.dfcwrap.IAcl; import com.google.enterprise.connector.dctm.dfcwrap.ICollection; import com.google.enterprise.connector.dctm.dfcwrap.IGroup; import com.google.enterprise.connector.dctm.dfcwrap.IId; import com.google.enterprise.connector.dctm.dfcwrap.ISession; import com.google.enterprise.connector.dctm.dfcwrap.IUser; import com.google.enterprise.connector.spi.Document; import com.google.enterprise.connector.spi.DocumentList; import com.google.enterprise.connector.spi.Principal; import com.google.enterprise.connector.spi.RepositoryDocumentException; import com.google.enterprise.connector.spi.RepositoryException; import com.google.enterprise.connector.spi.SecureDocument; import com.google.enterprise.connector.spi.SpiConstants; import com.google.enterprise.connector.spi.SpiConstants.ActionType; import com.google.enterprise.connector.spi.SpiConstants.CaseSensitivityType; import com.google.enterprise.connector.spi.SpiConstants.PrincipalType; import com.google.enterprise.connector.spi.Value; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Stack; import java.util.logging.Level; import java.util.logging.Logger; import javax.naming.InvalidNameException; import javax.naming.ldap.LdapName; /** * @since 3.2.0 */ public class DctmAclList implements DocumentList { // TODO(Srinivas): Refactor similarities between DocumentList. private static final Logger logger = Logger.getLogger(DctmAclList.class.getName()); private ISession session; private final ICollection collectionAcl; private final ICollection collectionAclToModify; private final HashSet<String> aclModifiedIds = new HashSet<String>(); private final Checkpoint checkpoint; private final DctmTraversalManager traversalManager; private Stack<Document> requiredGroupAclStack; public DctmAclList(DctmTraversalManager traversalManager, ISession session, ICollection collAcl, ICollection collAclToModify, Checkpoint checkpoint) { this.traversalManager = traversalManager; this.session = session; this.collectionAcl = collAcl; this.collectionAclToModify = collAclToModify; this.checkpoint = checkpoint; } @Override public Document nextDocument() throws RepositoryException { Document retAclDocument; Document retDoc = null; boolean skippingDoc = false; try { while (retDoc == null) { if (requiredGroupAclStack != null && !requiredGroupAclStack.isEmpty()) { retDoc = requiredGroupAclStack.pop(); } else if (isOpen(collectionAcl) && collectionAcl.next()) { logger.fine("Looking through the collection of ACLs to add"); String objId = ""; try { objId = collectionAcl.getString("r_object_id"); logger.fine("ACL r_object_id is " + objId); checkpoint.setAclCheckpoint(objId); IAcl aclObj = fetchAcl(objId); if (isRequiredGroupOrSet(aclObj)) { logger.log(Level.FINE, "ACL {0} has required groups or required group set", objId); requiredGroupAclStack = getSecureAclDocumentWithRequiredGroupOrSet(aclObj, objId); retDoc = requiredGroupAclStack.pop(); } else { retAclDocument = getSecureAclDocument(aclObj, objId, ActionType.ADD); logger.fine("Creation of a new ACL to add"); retDoc = retAclDocument; } } catch (RepositoryException e) { logger.severe("impossible to get the r_object_id of the document"); return null; } } else if (isOpen(collectionAclToModify) && collectionAclToModify.next()) { logger.fine("Looking through the collection of ACLs to modify"); String eventId = ""; eventId = collectionAclToModify.getString("r_object_id"); String modifyDateToStr = collectionAclToModify.getString("time_stamp_utc_str"); logger.fine("audit event r_object_id is " + eventId + ", modifyDate is " + modifyDateToStr); checkpoint.setAclModifyCheckpoint(modifyDateToStr, eventId); String chronicleId = collectionAclToModify.getString("chronicle_id"); if (aclModifiedIds.contains(chronicleId)) { logger.fine("Skipping redundant modify of: " + chronicleId); continue; } String objIdModify = collectionAclToModify.getString("audited_obj_id"); if (collectionAclToModify.getString("event_name").equalsIgnoreCase( "dm_destroy")) { logger.log(Level.FINE, "ACL to delete: {0}" + objIdModify); retAclDocument = getSecureAclDocument(null, objIdModify, ActionType.DELETE); } else { IAcl aclObj = fetchAcl(objIdModify); if (isRequiredGroupOrSet(aclObj)) { logger.log(Level.FINE, "ACL to modify: {0} has required groups " + "or required group set", objIdModify); requiredGroupAclStack = getSecureAclDocumentWithRequiredGroupOrSet(aclObj, objIdModify); retAclDocument = requiredGroupAclStack.pop(); } else { logger.log(Level.FINE, "ACL to modify: {0} has no required groups", objIdModify); retAclDocument = getSecureAclDocument(aclObj, objIdModify, ActionType.ADD); } } aclModifiedIds.add(chronicleId); retDoc = retAclDocument; } else { logger.fine("End of ACL list"); break; } } } catch (RepositoryDocumentException rde) { logger.warning("Error while trying to get next document : " + rde); skippingDoc = true; throw rde; } catch (RepositoryException re) { logger.warning("Error while trying to get next document : " + re); if (lostConnection()) { // If we have lost connectivity to the server, rollback the // checkpoint to the previous state, retrying this document later. checkpoint.restore(); } throw re; } finally { if (retDoc == null && !skippingDoc) { logger.fine("retDoc is null before finalize"); finalize(); } } return retDoc; } @Override public String checkpoint() throws RepositoryException { try { return checkpoint.asString(); } finally { finalize(); } } /* * Fetches the ACL object */ private IAcl fetchAcl(String docId) throws RepositoryDocumentException { IId id = traversalManager.getClientX().getId(docId); return (IAcl) session.getObject(id); } private boolean isRequiredGroupOrSet(IAcl aclObj) throws RepositoryException { for (int i = 0; i < aclObj.getAccessorCount(); i++) { int permitType = aclObj.getAccessorPermitType(i); if (permitType == IAcl.DF_PERMIT_TYPE_REQUIRED_GROUP || permitType == IAcl.DF_PERMIT_TYPE_REQUIRED_GROUP_SET) { return true; } } return false; } /* * Processes users and groups from the ACL object, populates the user and * group list with users and groups with READ permission. Populates * denyusers and denygroup list with restricted users and groups with no * READ permission */ @VisibleForTesting void processAcl(IAcl aclObj, Map<String, List<Value>> aclValues) throws RepositoryDocumentException, RepositoryException { List<Value> userPrincipals = new ArrayList<Value>(); List<Value> groupPrincipals = new ArrayList<Value>(); List<Value> userDenyPrincipals = new ArrayList<Value>(); List<Value> groupDenyPrincipals = new ArrayList<Value>(); try { for (int i = 0; i < aclObj.getAccessorCount(); i++) { String userName = aclObj.getAccessorName(i); int permitType = aclObj.getAccessorPermitType(i); String userLoginName = getUserLoginName(userName); if (userLoginName == null) { logger.log(Level.FINE, "Skipping invalid username {0} found in ACL.", userName); continue; } if (permitType == IAcl.DF_PERMIT_TYPE_ACCESS_RESTRICTION) { if (aclObj.getAccessorPermit(i) <= IAcl.DF_PERMIT_READ) { if (aclObj.isGroup(i)) { groupDenyPrincipals.add(asPrincipalValue(userLoginName, getGroupNamespace(userName))); } else { userDenyPrincipals.add(asPrincipalValue(userLoginName, getUserNamespace(userName))); } } } else if (aclObj.getAccessorPermit(i) >= IAcl.DF_PERMIT_READ) { if (userName.equalsIgnoreCase("dm_world") || aclObj.isGroup(i)) { groupPrincipals.add(asPrincipalValue(userLoginName, getGroupNamespace(userName))); } else if (userName.equalsIgnoreCase("dm_owner") || userName.equalsIgnoreCase("dm_group")) { // skip dm_owner and dm_group for now. // TODO (Srinivas): Need to resolve these acls continue; } else { userPrincipals.add(asPrincipalValue(userLoginName, getUserNamespace(userName))); } } } // add users and groups principals to the map aclValues.put(SpiConstants.PROPNAME_ACLUSERS, userPrincipals); aclValues.put(SpiConstants.PROPNAME_ACLGROUPS, groupPrincipals); aclValues.put(SpiConstants.PROPNAME_ACLDENYUSERS, userDenyPrincipals); aclValues.put(SpiConstants.PROPNAME_ACLDENYGROUPS, groupDenyPrincipals); } catch (RepositoryDocumentException e) { logger.log(Level.WARNING, "Error fetching Acl user and group names"); throw e; } } /* Creates a secure document using Acl users and groups. */ private Document getSecureAclDocument(IAcl aclObj, String objId, ActionType action) throws RepositoryDocumentException, RepositoryException { Map<String, List<Value>> aclValues = new HashMap<String, List<Value>>(); aclValues.put(SpiConstants.PROPNAME_DOCID, Collections.singletonList(Value.getStringValue(objId))); aclValues.put(SpiConstants.PROPNAME_ACTION, Collections.singletonList(Value.getStringValue(action.toString()))); if (ActionType.ADD.equals(action)) { processAcl(aclObj, aclValues); aclValues.put(SpiConstants.PROPNAME_ACLINHERITANCETYPE, Collections.singletonList(Value.getStringValue( SpiConstants.AclInheritanceType.PARENT_OVERRIDES.toString()))); } return SecureDocument.createAcl(aclValues); } private Document getRequiredSecureAclDocument(IAcl aclObj, String idValue, String parentIdValue, String... group) throws RepositoryException { Map<String, List<Value>> aclValues = new HashMap<String, List<Value>>(); aclValues.put(SpiConstants.PROPNAME_DOCID, Collections.singletonList(Value.getStringValue(idValue))); if (parentIdValue != null) { aclValues.put(SpiConstants.PROPNAME_ACLINHERITFROM_DOCID, Collections.singletonList(Value.getStringValue(parentIdValue))); } if (aclObj != null) { aclValues.put(SpiConstants.PROPNAME_ACLINHERITANCETYPE, Collections.singletonList(Value.getStringValue( SpiConstants.AclInheritanceType.PARENT_OVERRIDES.toString()))); processAcl(aclObj, aclValues); } else { aclValues.put(SpiConstants.PROPNAME_ACLINHERITANCETYPE, Collections.singletonList(Value.getStringValue( SpiConstants.AclInheritanceType.AND_BOTH_PERMIT.toString()))); List<Value> groupPrincipals = new ArrayList<Value>(); for (String name : group) { groupPrincipals.add(asPrincipalValue(name, getGroupNamespace(name))); } aclValues.put(SpiConstants.PROPNAME_ACLGROUPS, groupPrincipals); } return SecureDocument.createAcl(aclValues); } private Stack<Document> getSecureAclDocumentWithRequiredGroupOrSet( IAcl aclObj, String objId) throws RepositoryException { Stack<Document> docStack = new Stack<Document>(); List<String> requiredGroupSetPrincipals = new ArrayList<String>(); boolean processedReqGroupSet = false; String accessor = null; String parentIdValue = null; for (int i = 0; i < aclObj.getAccessorCount(); i++) { int permitType = aclObj.getAccessorPermitType(i); if (permitType == IAcl.DF_PERMIT_TYPE_REQUIRED_GROUP) { accessor = aclObj.getAccessorName(i); String aclIdValue = objId + "_" + accessor; // do not process ACL principals Document doc = getRequiredSecureAclDocument(null, aclIdValue, parentIdValue, accessor); docStack.push(doc); parentIdValue = aclIdValue; } else if (permitType == IAcl.DF_PERMIT_TYPE_REQUIRED_GROUP_SET) { String accessorName = aclObj.getAccessorName(i); requiredGroupSetPrincipals.add(accessorName); processedReqGroupSet = true; } } if (processedReqGroupSet) { String idValue = objId + "_reqGroupSet"; String[] groups = requiredGroupSetPrincipals.toArray(new String[0]); docStack.push(getRequiredSecureAclDocument(null, idValue, parentIdValue, groups)); parentIdValue = idValue; } // process ACL principals docStack.push(getRequiredSecureAclDocument(aclObj, objId, parentIdValue)); return docStack; } private Value asPrincipalValue(String item, String namespace) throws RepositoryDocumentException { return Value.getPrincipalValue(new Principal(PrincipalType.UNKNOWN, namespace, item, CaseSensitivityType.EVERYTHING_CASE_SENSITIVE)); } private String getUserLoginName(String userName) throws RepositoryException { if (userName.equalsIgnoreCase("dm_world") || userName.equalsIgnoreCase("dm_owner") || userName.equalsIgnoreCase("dm_group")) { return userName; } try { IUser userObj = (IUser) session.getObjectByQualification( "dm_user where user_name = '" + userName + "'"); if (userObj == null) { return null; } if (!Strings.isNullOrEmpty(userObj.getUserSourceAsString()) && userObj.getUserSourceAsString().equalsIgnoreCase("ldap")) { String dnName = userObj.getUserDistinguishedLDAPName(); if (Strings.isNullOrEmpty(dnName)) { // TODO(jlacey): This is inconsistent with authN, which // matches such users against windows_domain. This case // probably can't happen, so I don't think it's important. logger.log(Level.FINE, "Missing DN for user: {0}", userName); return null; } try { LdapName dnDomain = IdentityUtil.getDomainComponents(dnName); if (!dnDomain.isEmpty()) { return IdentityUtil.getFirstDomainFromDN(dnDomain) + "\\" + userObj.getUserLoginName(); } // Else fall-through to use windows_domain. } catch (InvalidNameException e) { logger.log(Level.FINE, "Invalid DN " + dnName + " for user: " + userName, e); return null; } } String userLoginName; String windowsDomain = traversalManager.getWindowsDomain(); if (!Strings.isNullOrEmpty(windowsDomain) && !userObj.isGroup()) { logger.log(Level.FINEST, "using configured domain: {0} for unsynchronized user {1}", new String[] {windowsDomain, userName}); userLoginName = windowsDomain + "\\" + userObj.getUserLoginName(); } else { userLoginName = userObj.getUserLoginName(); } return userLoginName; } catch (RepositoryException e) { logger.finer(e.getMessage()); logger.info("error getting user login name for: " + userName); throw e; } } private String getUserNamespace(String usergroup) throws RepositoryDocumentException { String localNamespace = traversalManager.getLocalNamespace(); String globalNamespace = traversalManager.getGlobalNamespace(); try { IUser userObj = (IUser) session.getObjectByQualification( "dm_user where user_name = '" + usergroup + "'"); if (userObj != null) { // TODO(srinivas) to check with Meghna about name space for users // if it is always global namespace. setting to global for now. return globalNamespace; // following code commented until verification from Meghna // if (Strings.isNullOrEmpty(userObj.getUserSourceAsString())) { // logger.fine("local namespace for user " + usergroup); // return localNamespace; // } else { // logger.fine("global namespace for user " + usergroup); // return globalNamespace; // } } else { return null; } } catch (RepositoryDocumentException e) { logger.fine("Exception in getNamespace " + e.getMessage()); throw e; } } private String getGroupNamespace(String usergroup) throws RepositoryDocumentException { String localNamespace = traversalManager.getLocalNamespace(); String globalNamespace = traversalManager.getGlobalNamespace(); // special group local to repository if (usergroup.equalsIgnoreCase("dm_world")) { return localNamespace; } try { IGroup groupObj = (IGroup) session.getObjectByQualification( "dm_group where group_name = '" + usergroup + "'"); if (groupObj != null) { if (Strings.isNullOrEmpty(groupObj.getUserSource())) { logger.finer("local namespace for group " + usergroup); return localNamespace; } else { logger.finer("global namespace for group " + usergroup); return globalNamespace; } } else { return null; } } catch (RepositoryDocumentException e) { logger.fine("Exception in getNamespace " + e.getMessage()); throw e; } } /** * Test connectivity to server. If we have a session and * can verify that session isConnected(), return false. * If we cannot verify the session is connected return true. * If we don't have a session to test, return false. */ private boolean lostConnection() { try { return (session != null && !session.isConnected()); } catch (Exception e) { logger.warning("Lost connectivity to server: " + e); return true; } } /** * Return true if the collection is open (non-null and not in CLOSED_STATE). */ private static boolean isOpen(ICollection collection) { return ((collection != null) && (collection.getState() != ICollection.DF_CLOSED_STATE)); } // Last chance to make sure the collections are closed and their sessions // are released. @Override protected void finalize() { try { if (isOpen(collectionAcl)) { try { collectionAcl.close(); logger.fine("collection of ACLs to add closed"); } catch (RepositoryException e) { logger.warning( "Error while closing the collection of ACLs to add: " + e); } } if (isOpen(collectionAclToModify)) { try { collectionAclToModify.close(); logger.fine("collection of ACLs to modify closed"); } catch (RepositoryException e) { logger.warning( "Error while closing the collection of ACLs to modify: " + e); } } } finally { if (session != null) { traversalManager.getSessionManager().release(session); session = null; logger.fine("collection session released"); } } } }
java
--- layout: default title: eBay Skin (legacy) ds: 4 static_dir: ../static --- {% include common/main.html %}
html
//! Constant values pub const CARGO_TOML: &str = include_str!("../../Cargo.toml");
rust
[{"liveId":"5c789f3f0cf2fa7045aaefe3","title":"胡丽芝的直播间","subTitle":"直播直播速来速来","picPath":"/mediasource/live/15510206482422o5Q8XeBz1.jpg","startTime":1551408959570,"memberId":528094,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5c789f3f0cf2fa7045aaefe3.lrc","streamPath":"http://liveplaylk.lvb.eastmoney.com/live/2519_3711236.flv?txSecret=ed7858ca207c20c8da9b15324dc2451c&txTime=5C79F0C4","screenMode":0,"roomId":"8691721","bwqaVersion":0}]
json
<filename>web/js/scripts_app_7.js /** * Created by Laurynas on 2016-12-14. */ $(function () { $.material.init(); var dom = "<'row'<'col-sm-6'><'col-sm-6 pull-right'f>>" + "<'row'<'col-sm-12't>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>"; $('table.dt').DataTable({dom: dom}); $("select").dropdown({"optionClass": "withripple"}); $('.datepicker').bootstrapMaterialDatePicker({ weekStart : 1, nowButton: true, switchOnClick : true, format: 'YYYY-MM-DD HH:mm' }); $("#loading").fadeOut("fast"); });
javascript
<filename>mine_params.py<gh_stars>0 import glob import os ''' Warning: this is slow normally and mind-numbingly slow over VPN ''' def mine_param(param): outputlist = [] for f in biglist: with open(f, 'rt') as fin: for line in fin: if line.startswith(f'##${param.upper()}'): outputlist.append(line.partition('<')[2].partition('>')[0]) break return outputlist def saveBiglist(biglist): with open('mine_params_output.csv', 'w', newline = '') as fout: writer = csv.writer(fout) for b in biglist: _ = writer.writerow([b]) path = r"S:\opacc" #biglist = glob.glob(os.path.join(path, '**', 'acqu'), recursive = True)
python
The first copy of Gopi Gopika Godavari, presented by Anandi Arts and produced by Valluripalli Ramesh under the banner of Maharshi Cinema under the direction of Vamsi, with Venu and Kamalini Mukherjee in the lead, is ready. The producer says, "The audio which was released into the market is getting good response. All the audiences who listened to the songs are complimenting Chakri for giving fantastic tunes and for the lyrics penned by Ramajogaiah Sastry. The title is very appropriate for the subject. We are making efforts to release the film in the first week of June. " Krishna Bhagawan, Kondavalasa Lakshmana Rao, Jeeva, Kalyan, Jayalalita, Sana, Pilla Prasad and others are in the cast. Dialogues are by Padala Siva Subrahmanyam, camera is by Loki B Goud, while editing is by Baswa Paidi Reddy.
english
Apple Arcade is available in India for a monthly subscription fee of Rs 99. - Apple Arcade will soon feature Asphalt 8: Airborne game. - There will be no extra charges for the game except for the Arcade subscription fee. - There will be a new physics engine on the Apple Arcade version of Asphalt 8: Airborne. By Shubham Verma: Asphalt 8: Airborne, the smash-hit arcade car racing game, is coming to Apple Arcade and along with it is getting rid of in-app purchases. Apple Arcade is the iPhone maker’s subscription-based service for exclusive games, for which users did not need to pay individual charges. However, Apple is now roping in classic and popular games to make Apple Arcade even more lucrative. Asphalt has been there for much longer than Apple Arcade has and that is what Apple thinks will benefit it. First launched in 2004 for a Nintendo DS, Asphalt is currently available for up to its ninth generation called Asphalt 9: Legends. However, Apple is going for the Asphalt 8: Airborne that was released back in 2013 and was one of the most popular racing games. It features extreme arcade racing with a horde of cars and motorcycles with a wide level of customisation. The Asphalt 8: Legends was also the first game to have launched on Apple’s tvOS platform. Apple said that the Arcade version of Asphalt 8: Airborne will feature “more than 90 licensed dream cars in an intensive driving experience powered by a brand-new physics engine. ” This hints that there will be some changes in this version of the game. Asphalt 8: Airborne has been downloaded over 120 million times across different platforms. The biggest change, however, is the way users pay for different game elements. With Apple Arcade, which costs Rs 99 per month in India, users will not need to make in-app purchases because everything is a part of the subscription bundle. This is completely different to the regular Asphalt 8: Airborne version that is a free-to-play game, which means anyone can download and play it, but additional items need to be purchased through the eligible payment method. For in-app purchases, however, there is going to be a coin system wherein users will earn coins for completing various activities and then they can use the coins to buy additional items. It is also a lot convenient because you are not paying anything additional for the game here. It will be available under Apple Arcade for a monthly fee just like the rest of the games.
english
made a steady start to an important personal season as the home side put together a solid response to a hefty Western Australia total. On a surface that offered precious little to the quicks and only a modicum of gentle turn, Carder and Head took their third wicket stand to 96 by the close to give South Australia a good chance of avoiding the follow-on having been a little unsteady on 2 for 65. Left-armer Joel Paris had pinned Jake Weatherald lbw and Henry Hunt gloved a pull down the leg side having looked set for a significant score. Carder, given the No. 3 role after his winter move to Redbacks, was composed throughout while Head, who is probably the frontrunner for the No. 5 spot in the Test team, appeared in good touch although had been a little fortunate when an edge off Cameron Green flew wide of the lone slip. Green and Lance Morris had some issues with the frontline during their spells with 10 no-balls between them while Morris also twice conceded five wides in a wayward display. Western Australia had resumed on 4 for 324 after the opening-day centuries from Shaun Marsh and Green. They progressed at a good tempo as the Redbacks' bowlers again struggled to make much of an impression on a docile surface. led the way with a half-century off 76 balls which be brought up with consecutive straight sixes in Sam Kerber's first over the day to follow his hundred in the Marsh Cup game. There was a century for the taking here, too, but in his eagerness to keep the innings moving he top-edged Lloyd Pope high to midwicket. Hilton Cartwright, part of a fifth-wicket stand of 109, took a leaf out of Philippe's book by also reaching his fifty with the first of two back-to-back sixes off Pope and was annoyed when he missed another by picking out deep midwicket shortly before lunch. Pope, who was barely used by Head on the first day, took his haul to four wickets, the last of them bringing the declaration, although they were all largely donated by Western Australia's push to score quickly.
english
<reponame>Maxopoly/cards-database import { Card } from '../../../interfaces' import Set from '../Secret Wonders' const card: Card = { name: { en: "Kecleon", fr: "Kecleon", }, illustrator: "<NAME>", rarity: "Uncommon", category: "Pokemon", set: Set, dexId: [ 352, ], hp: 70, types: [ "Colorless", ], stage: "Basic", abilities: [ { type: "Poke-BODY", name: { en: "Camouflage", fr: "Camouflage", }, effect: { en: "If any basic Energy card attached to Kecleon is the same type as the Attacking Pokémon's type, any damage done by attacks from that Pokémon to Kecleon is reduced by 40 (after applying Weakness and Resistance).", fr: "Si n'importe quelle carte Énergie de base attachée à Kecleon est du même type que le Pokémon Attaquant, tous dégâts infligés à Kecleon par des attaques de ce Pokémon sont réduits de 40 (après application de la Faiblesse et de la Résistance).", }, }, ], attacks: [ { cost: [ "Colorless", "Colorless", ], name: { en: "<NAME>", fr: "<NAME>", }, effect: { en: "Flip a coin. If tails, this attack does no damage to the Defending Pokémon. Instead, this attack does 20 damage to 1 of your Pokémon. (Don't apply Weakness and Resistance for Benched Pokémon.)", fr: "Lancez une pièce. Si c'est pile, cette attaque n'inflige pas de dégâts au Pokémon Défenseur. Cette attaque inflige 20 dégâts à 1 de vos Pokémon. (Vous ne pouvez pas appliquer la Faiblesse et la Résistance aux Pokémon de Banc).", }, damage: 60, }, ], weaknesses: [ { type: "Fighting", value: "+10" }, ], retreat: 1, } export default card
typescript
{"2010":"","2016":"","Department":"Рівненський апеляційний господарський суд","Region":"Рівненська область","Position":"Суддя Рівненського апеляційного господарського суду","Name":"<NAME>","Link":"https://drive.google.com/open?id=0BygiyWAl79DMM1pvb2JEMWw4VHM","Note":"У меня","AdditionalNote":"","декларації 2015":"","Youtube":"","ПІБ2":"","Кількість справ":"","Оскаржені":"","Кількість скарг":"1","Кількість дисциплінарних стягнень":"","Клейма":"","Фото":"http://picua.org/img/2018-04/05/1989pd4b0gboke7fc5gpatovo.jpg","Як живе":"","Декларація доброчесності судді подано у 2016 році (вперше)":"","Декларація родинних зв’язків судді подано у 2016 році":"","key":"roziznana_inna_viktorivna","field8":"","Link 2015":"","field9":"","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"","type":"judge","analytics":[{"y":2013,"i":571400,"c":1,"k":102.5,"ka":1,"l":500,"la":1,"fi":8640},{"y":2014,"i":225157,"c":1,"k":102.5,"ka":1,"l":500,"la":1,"fi":8640,"fc":1},{"y":2015,"m":785317.92,"i":290844,"c":1,"k":102.5,"ka":1,"l":500,"la":1,"ff":75.8,"ffa":1,"fh":252.8,"fha":1,"j":1},{"y":2016,"m":785317.92,"i":295834,"c":1,"k":102.5,"ka":1,"l":500,"la":1,"ff":75.8,"ffa":1,"fh":252.8,"fha":1},{"y":2017,"m":785317.92,"i":439613,"c":1,"l":11250,"la":3,"ff":75.8,"ffa":1,"fh":252.8,"fha":1,"fl":21500,"fla":2}],"declarationsLinks":[{"id":"vulyk_73_28","year":2013,"url":"http://static.declarations.com.ua/declarations/chosen_ones/judges_batch/1411_roziznana_inna_viktorivna.pdf","provider":"declarations.com.ua.opendata"},{"id":"vulyk_55_158","year":2014,"url":"http://static.declarations.com.ua/declarations/chosen_ones/mega_batch/roziznana_inna_viktorivna.pdf","provider":"declarations.com.ua.opendata"},{"id":"nacp_4d6baa7b-d860-4fb9-b3a3-ccf486f0556c","year":2015,"provider":"declarations.com.ua.opendata"},{"id":"nacp_4af96950-4d71-411f-a165-0fa90a432483","year":2016,"provider":"declarations.com.ua.opendata"},{"id":"nacp_df4cc255-6c5e-4f82-ad8e-f00acf953330","year":2017,"provider":"declarations.com.ua.opendata"}]}
json
Nikon D500 is an awesome camera with professional grade features. The only point to note here is the crop sensor which Nikon calls DX. It's a drawback or advantage, depending on the user. But the image quality is same as a fullframe body, which Nikon calls FX. The performance is really amazing and at par with D50 a flagship FX model from Nikon.
english
<gh_stars>0 {"SchemaVersion":1,"Name":"GroveRotaryAngleSensor","ComponentId":"1525a362-27a9-43f2-97ac-de8931beb8aa","EntryPoint":"/bin/app","CmdArgs":[],"TargetApplicationRuntimeVersion":1,"Capabilities":{"AllowedConnections":[],"Gpio":[8,9,10,15,16,17,18,19,20,12,13,0,1,4,5,57,58,11,14,48],"Uart":["ISU0","ISU3"],"WifiConfig":false}}
json
A much relished pakoda in Tamil Nadu, the banana blossoms (vazhaipoo) in this vadai are first cleaned out by removing the hard pistil, and chopped finely. It is then added to the lentil paste with an array of spices and deep-fried in sesame or gingelly oil. - One whole banana inflorescence, cleaned and chopped (about 3 cups) - Mix all the lentils with rice and soak for minimum of two hours. Drain, and grind in a food processor to make a coarse paste. Add all the other ingredients to the lentil paste, except the oil, and mix thoroughly. - Take large lime-sized portions of the mixture and shape into flat vadais. Drop them into the oil. Keep turning the vadais gently to cook evenly until they become crisp and golden-brown on the surface. Remove from oil with the help of a slotted spoon and place them on a plate lined with a kitchen towel. - Serve hot with Coconut Chutney. Excerpted with permission from Pakodas: The Snack for All Seasons, Sangeeta Khanna, Westland.
english
Nothing lasts forever, and the only things you can count on as inevitable are death and taxes. Death hit the world of pro wrestling rather hard in 2018, taking many beloved wrestling stars into its unforgiving grip. Some of the deaths were tragic, others due to natural causes, but all of them left a gaping hole in the hearts of many wrestling fans. Looking back, we can choose to give in to the despair that these legends are no longer with us. Or, alternatively, we can look back fondly upon their great wrestling matches and the legacies they left behind. Some of the names who departed the world in 2018 have been wrestling legends who have dominated the sport and played a crucial role in making the industry what it is today. Here in this list, we take a look at those superstars who we lost in 2018, along with a great match featuring their unique talents and personas. . Country of origin: Yugoslavia (Croatia) Trained by: Stu Hart in the infamous Hart Dungeon. Josip Hrvoje Peruzovic was born in the then-Soviet Republic of Yugoslavia. A gifted athlete from an early age, he entered the world of weightlifting and was on the national team. He emigrated to Canada in the late 1960s, where he would receive training from none other than Stu Hart. Not many know that Josip was actually the second man to bear the Nikolai Volkoff gimmick; the first was journeyman wrestler Steve Gobb. However, there's no question as to who had the better run with the character. Nikolai Volkoff is actually Peruzovic's second gimmick; Originally he was part of a tag team called the Mongols, and his ring name was Bepo. The Mongols had some success, winning the WWWF tag team titles on one occasion. As Volkoff, he would also reign as tag team champion in the then-WWF, teaming with Iron Sheik. Perhaps Volkoff is best known for his dulcet tones; He often sang the Soviet national anthem before his matches, and his voice was so lyrical and strong that the fans were mesmerized into silence -- despite this being the height of the Cold War and anti-Communist propaganda in the United States. We remember Nikolai Volkoff with this classic match against an obscure bleached blonde wrestler known as Hulk Hogan -- perhaps you've heard of him? Volkoff challenges the Hulkster for the WWF championship on Saturday Night's Main Event. The run up to the event was once again, the much fabled USA vs USSR storyline and you can clearly tell who the fans were backing in this encounter. #2 Grandmaster Sexay (Brian Christopher) Real Name: Brian Christopher Lawler (Jerry "The King" Lawler is his father. ) Trained by: Hot Stuff Eddie Gilbert and Jerry Lawler. When Jerry Lawler's son Brian decided he wanted to be a wrestler, his father was conflicted. For one thing, The King knew what a rough business it was. For another, the elder Lawler worried his son would be forever stuck in his shadow. So, Jerry Lawler decided not to use his connections to help Brian Christopher's career. Brian Christopher would initially wrestle under a mask to avoid being associated with his famous father. As Nebula, he would compete in a team known as the Twilight Zone. Once the team disbanded, he adopted the alias Too Sexy Brian Christopher. For whatever reason, Jerry Lawler changed his position on helping his son, and Brian was granted a WWE contract. He made waves in the light heavyweight division, but really picked up steam when teamed with "Too Hot" Scott Taylor as the tandem Two Much. The pair were primarily enhancement talent (i. e. , jobbers) but were enough of a fixture to be featured on WWE promotional media and commercials. The team changed their image in 1999, becoming wannabe white rappers, and that's when he became known as Grandmaster Sexay. As Too Cool, the team would actually reign as tag champions, and were known for their post-match dancing, which sometimes included Rikishi Fatu (who, despite some information on the web, was never a formal member of Too Cool. ) Christopher was dubbed as one half of the 'hip hop' twins with Scotty 2 Hotty but was never alble to hold his own in the singles setup. Brian Christopher sadly took his own life last year, but we prefer to remember him with this classic wrestling match against Edge and Christian. Bruno Sammartino was born in Nazi-occupied Italy, and spent most of his youth hiding from German soldiers. The deprivation of wartime made him weak and sickly. This combined with his lack of being able to speak English made him a target for bullies when he emigrated to Pittsburg, USA. In order to make himself less of a target, Sammartino got into weightlifting -- and how! He nearly made it on the US Olympic team, and for a time held the world record for a bench press at 556 pounds -- and they didn't use support straps back in that era, and held the weight for longer. Sammartino began to market his talents as a strongman, and it was there that ex-wrestler and promoter Rudy Miller scouted him. Sammartino is a rarity in that he didn't have to pay dues; He won his first match in just nineteen seconds! Bruno ranged around the territories a great deal, but his biggest accomplishments are his dual WWWF world title reigns. We remember Bruno Sammartino with this classic Steel Cage bout against another wrestling legend, Stan "The Lariat" Hansen. Country of Origin: Florida, USA. Dirty Dick Slater might never have become a pro wrestler if it had not been for one Eddie Graham. The former wrestler and promoter donated a wrestling mat to the high school Dick attended along with Eddie's son, Mike. Slater made his first foray into pro wrestling as a booker, not a performer, but that quickly changed. While modern fans are unfamiliar with Dick Slater, he won over fifty championships in promotions in the USA and Japan. Most fans are probably familiar with his late 1990s WCW run where he was part of Col. Parker's Tennessee Stud Stable. While he never reached the same heights of fame, Slater was once a major rival of Nature Boy Ric Flair, who mentioned his passing on social media. We remember Dirty Dick Slater with this match against the Nature Boy in the old NWA promotion. The commotion at the end of the match was noteworthy. Jim Neidhart's strength was recognizable from an early age. While in high school he held the record for furthest shot put distance, and competed heavily in track and field. He also played on the football team, and his strength and toughness landed him a job with the Dallas Cowboys. However, he would never take the field with the team save during the preseason and certain practices. Neidhart was released from his contract with the Cowboys, and turned his sights on pro wrestling. Neidhart was trained in Canada under the legendary Stu Hart in the infamous Hart family dungeon. Supposedly, the training was brutal and involved testing the prospective wrestlers to see what their pain tolerance and endurance was like. Neidhart weathered the storm and would soon make his debut as a pro. He spent several years working the southern promotions, most famously being the tag team partner of King Kong Bundy. But it was his tenure in the WWE that most people remember. Teaming with Bret "Hitman" Hart - -his real-life brother in law -- Neidhart became a tag team champion as one half of the Hart Foundation. Here they are competing against two fellow dearly departed legends, British Bulldog and Junkyard Dog. Vader's power, quickness, and agility earned him a reputation in high school football, so much so that over forty different universities tried to recruit him! He would eventually go pro, joining the NFL and playing for the Los Angeles Rams as a center until an unfortunate patella injury ended his career. Undaunted, White would continue to train for a return to football when he was scouted by a pro wrestling promoter. White joined Verne Gagne's AWA, where he was a babyface called Baby Bull, then later Bull Power. He quickly rose through the ranks to the point he was given the honor of a title shot against Stan Hansen, a man whose name became synonymous with Vader's because of an incident years later in Japan. According to Vader, Hansen went off script and struck him with a cowbell before the match started. Vader decided to 'work snug,' meaning many of his punches and blows were real. Hansen, no stranger to working snug, responded in kind, and the result was Vader's eyeball being gouged out. Instead of stopping the match, Vader popped his eyeball back in and continued the bout. The match, and Vader, became legendary. He was also famous for being the reason pro wrestling was banned from the legendary Sumo Hall after he squashed fan favorite Antonio Inoki, resulting in a riot. Vader was best known for his strong style, ring shaking powerbombs, and surprising agility for a man who weighed well over four hundred pounds. We remember Vader with his pier six brawl he had against Stan Hansen, the infamous 'eyeball' match. Vader can be seen explaining the damage done to his eye socket in the video below: Do you have any cherished memories of the superstars on our list? Please comment and let us know, and as always thanks for reading!
english
#![forbid(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] //! A utility for recursively measuring the size of an object //! //! This contains the [`DeepSizeOf`](DeepSizeOf) trait, and re-exports //! the `DeepSizeOf` derive macro from [`deepsize_derive`](https://docs.rs/deepsize_derive) //! //! ```rust //! use deepsize::DeepSizeOf; //! //! #[derive(DeepSizeOf)] //! struct Test { //! a: u32, //! b: Box<u8>, //! } //! //! fn main() { //! let object = Test { //! a: 15, //! b: Box::new(255), //! }; //! //! // The stack size of the struct: //! // The size of a u32 (4) //! // 4 bytes padding (64 bit only) //! // The stack size of the Box (a usize pointer, 32 or 64 bits: 4 or 8 bytes) //! // + the size of a u8 (1), the Box's heap storage //! #[cfg(target_pointer_width = "64")] //! assert_eq!(object.deep_size_of(), 17); //! #[cfg(target_pointer_width = "32")] //! assert_eq!(object.deep_size_of(), 9); //! } //! ``` //! extern crate alloc; extern crate core; #[cfg(feature = "derive")] extern crate self as deepsize; #[cfg(feature = "derive")] pub use deepsize_derive::*; use core::mem::{size_of, size_of_val}; #[cfg(test)] mod test; #[macro_use] mod default_impls; mod external_impls; /// A trait for measuring the size of an object and its children /// /// In many cases this is just `std::mem::size_of::<T>()`, but if /// the struct contains a `Vec`, `String`, `Box`, or other allocated object or /// reference, then it is the size of the struct, plus the size of the contents /// of the object. pub trait DeepSizeOf { /// Returns an estimation of a total size of memory owned by the /// object, including heap-managed storage. /// /// This is an estimation and not a precise result, because it /// doesn't account for allocator's overhead. /// /// ```rust /// use deepsize::DeepSizeOf; /// /// let mut map: Vec<(Box<u32>, String)> = Vec::new(); /// /// map.push((Box::new(42u32), String::from("Hello World"))); /// map.push((Box::new(20u32), String::from("Something"))); /// map.push((Box::new(0u32), String::from("A string"))); /// map.push((Box::new(255u32), String::from("Dynamically Allocated!"))); /// /// assert_eq!(map.deep_size_of(), /// std::mem::size_of::<Vec<(Box<u32>, String)>>() + /// 4 * std::mem::size_of::<(Box<u32>, String)>() + /// 4 * std::mem::size_of::<u32>() + /// 11 + 9 + 8 + 22 /// ); /// ``` #[inline] fn deep_size_of(&self) -> usize { size_of_val(self) + self.deep_size_of_children(&mut Context::new()) } /// Deprecated: equivalent to `std::mem::size_of_val(val) + val.deep_size_of_children()` #[deprecated(since = "0.1.1", note = "use `std::mem::size_of_val(val) + val.deep_size_of_children()` instead")] #[inline] fn recurse_deep_size_of(&self, context: &mut Context) -> usize { size_of_val(self) + self.deep_size_of_children(context) } /// Returns an estimation of the heap-managed storage of this object. /// This does not include the size of the object itself. /// /// This is an estimation and not a precise result, because it /// doesn't account for allocator's overhead. /// /// This is an internal function (this shouldn't be called directly), /// and requires a [`Context`](Context) to track visited references. /// Implementations of this function should only call `deep_size_of_children`, /// and not `deep_size_of` so that they reference tracking is not reset. /// /// In all other cases, `deep_size_of` should be called instead of this function. /// /// If a struct and all of its children do not allocate or have references, /// this method should return `0`, as it cannot have any heap allocated /// children. There is a shortcut macro for this implementation, [`known_size_of`](known_size_of), /// used like `known_deep_size!(0, (), u32, u64);` which generates the impls. /// /// The most common way to use this method, and how the derive works, /// is to call this method on each of the structs members and sum the /// results, which works as long as all members of the struct implmeent /// DeepSizeOf. /// /// To implement this for a collection type, you should sum the deep sizes of /// the items of the collection and then add the size of the allocation of the /// collection itself. This can become much more complicated if the collection /// has multiple seperate allocations. /// /// Here is an example from the implementation of `DeepSizeOf` for `Vec<T>` /// ```rust, ignore /// # use deepsize::{DeepSizeOf, Context}; /// impl<T> DeepSizeOf for std::vec::Vec<T> where T: DeepSizeOf { /// fn deep_size_of_children(&self, context: &mut Context) -> usize { /// // Size of heap allocations for each child /// self.iter().map(|child| child.deep_size_of_children(context)).sum() /// + self.capacity() * std::mem::size_of::<T>() // Size of Vec's heap allocation /// } /// } /// ``` fn deep_size_of_children(&self, context: &mut Context) -> usize; } use hashbrown::HashSet as GenericSet; /// The context of which references have already been seen. /// This should only be used in the implementation of the /// `deep_size_of_children` function, and (eventually, when this /// reaches 0.2) will not be able to be constructed, and only obtained /// from inside the function. /// /// Keeps track of the [`Arc`](std::sync::Arc)s, [`Rc`](std::rc::Rc)s, and references /// that have been visited, so that [`Arc`](std::sync::Arc)s and other references /// aren't double counted. /// /// Currently this counts each reference once, although there are arguments for /// only counting owned data and ignoring partial ownership, or for counting /// partial refernces such as Arc as its size divided by the strong reference count. /// /// [Github Issue discussion here](https://github.com/dtolnay/request-for-implementation/issues/22) /// /// This must be passed between `deep_size_of_children` calls when /// recursing, so that references are not double-counted. #[derive(Debug)] pub struct Context { /// A set of all [`Arcs`](std::sync::Arc) that have already been counted pub arcs: GenericSet<usize>, /// A set of all [`Rcs`](std::sync::Arc) that have already been counted pub rcs: GenericSet<usize>, // /// A set of all normal references that have already been counted // pub refs: GenericSet<usize>, } impl Context { /// Creates a new empty context for use in the deep_size functions fn new() -> Self { Self { arcs: GenericSet::new(), rcs: GenericSet::new(), // refs: GenericSet::new(), } } /// Adds an [`Arc`](std::sync::Arc) to the list of visited [`Arc`](std::sync::Arc)s #[inline] pub fn add_arc<T: ?Sized>(&mut self, arc: &alloc::sync::Arc<T>) -> bool { // Somewhat unsafe way of getting a pointer to the inner `ArcInner` // object without changing the count let pointer: usize = alloc::sync::Arc::as_ptr(arc) as *const u8 as usize; self.arcs.insert(pointer) } /// Adds an [`Rc`](std::rc::Rc) to the list of visited [`Rc`](std::rc::Rc)s #[inline] pub fn add_rc<T: ?Sized>(&mut self, rc: &alloc::rc::Rc<T>) -> bool { // Somewhat unsafe way of getting a pointer to the inner `RcBox` // object without changing the count let pointer: usize = alloc::rc::Rc::as_ptr(rc) as *const u8 as usize; self.rcs.insert(pointer) } // /// Adds a [`reference`](std::reference) to the list of visited [`reference`](std::reference)s // /// Adds an [`Rc`](std::rc::Rc) to the list of visited [`Rc`](std::rc::Rc)s // #[inline] // pub fn add_ref<T>(&mut self, reference: &T) -> bool { // let pointer: usize = reference as *const _ as usize; // self.refs.insert(pointer) // } } impl<T> DeepSizeOf for alloc::vec::Vec<T> where T: DeepSizeOf, { /// Sums the size of each child object, and then adds the size of /// the unused capacity. /// /// ```rust /// use deepsize::DeepSizeOf; /// /// let mut vec: Vec<u8> = vec![]; /// for i in 0..13 { /// vec.push(i); /// } /// /// // The capacity (16) plus three usizes (len, cap, pointer) /// assert_eq!(vec.deep_size_of(), 16 + 24); /// ``` /// With allocated objects: /// ```rust /// use deepsize::DeepSizeOf; /// /// let mut vec: Vec<Box<u64>> = vec![]; /// for i in 0..13 { /// vec.push(Box::new(i)); /// } /// /// // The capacity (16?) * size (8) plus three usizes (len, cap, pointer) /// // and length (13) * the allocated size of each object /// assert_eq!(vec.deep_size_of(), 24 + vec.capacity() * 8 + 13 * 8); /// ``` #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { self.iter().map(|child| child.deep_size_of_children(context)).sum::<usize>() + self.capacity() * size_of::<T>() // Size of unused capacity } } impl<T> DeepSizeOf for alloc::collections::VecDeque<T> where T: DeepSizeOf, { /// Sums the size of each child object, and then adds the size of /// the unused capacity. /// /// ```rust /// use deepsize::DeepSizeOf; /// use std::collections::VecDeque; /// /// let mut vec: VecDeque<u8> = VecDeque::new(); /// for i in 0..12 { /// vec.push_back(i); /// } /// vec.push_front(13); /// /// // The capacity (15?) plus four usizes (start, end, cap, pointer) /// assert_eq!(vec.deep_size_of(), vec.capacity() * 1 + 32); /// ``` /// With allocated objects: /// ```rust /// use deepsize::DeepSizeOf; /// use std::collections::VecDeque; /// /// let mut vec: VecDeque<Box<u64>> = VecDeque::new(); /// for i in 0..12 { /// vec.push_back(Box::new(i)); /// } /// vec.push_front(Box::new(13)); /// /// // The capacity (15?) * size (8) plus four usizes (start, end, cap, pointer) /// // and length (13) * the allocated size of each object /// assert_eq!(vec.deep_size_of(), 32 + vec.capacity() * 8 + 13 * 8); /// ``` #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { // Deep size of children self.iter().map(|child| child.deep_size_of_children(context)).sum::<usize>() + self.capacity() * size_of::<T>() // Size of Vec's heap allocation } } impl<T> DeepSizeOf for alloc::collections::LinkedList<T> where T: DeepSizeOf, { /// Sums the size of each child object, assuming the overhead of /// each node is 2 usize (next, prev) /// /// ```rust /// use deepsize::DeepSizeOf; /// use std::collections::LinkedList; /// /// let mut list: LinkedList<u8> = LinkedList::new(); /// for i in 0..12 { /// list.push_back(i); /// } /// list.push_front(13); /// /// assert_eq!(list.deep_size_of(), std::mem::size_of::<LinkedList<u8>>() /// + 13 * 1 + 13 * 2 * 8); /// ``` #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { self.iter().fold(0, |sum, child| { sum + size_of_val(child) + child.deep_size_of_children(context) + size_of::<usize>() * 2 // overhead of each node }) } } #[cfg(feature = "std")] impl<K, V, S> DeepSizeOf for std::collections::HashMap<K, V, S> where K: DeepSizeOf + Eq + std::hash::Hash, V: DeepSizeOf, S: std::hash::BuildHasher, { // FIXME // How much more overhead is there to a hashmap? The docs say it is // essensially just a Vec<Option<(u64, K, V)>> // Update this to work for hashbrown::HashMap #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { self.iter().fold(0, |sum, (key, val)| { sum + key.deep_size_of_children(context) + val.deep_size_of_children(context) }) + self.capacity() * size_of::<Option<(u64, K, V)>>() // Size of container capacity } } #[cfg(feature = "std")] impl<T, S> DeepSizeOf for std::collections::HashSet<T, S> where T: DeepSizeOf + Eq + std::hash::Hash, S: std::hash::BuildHasher, { #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { self.iter().fold(0, |sum, item| sum + item.deep_size_of_children(context)) + self.capacity() * size_of::<Option<(u64, T, ())>>() // Size container storage } } impl<T: ?Sized> DeepSizeOf for alloc::boxed::Box<T> where T: DeepSizeOf, { #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { // May cause inacuracies, measures size of the value, but not the allocation size let val: &T = &*self; size_of_val(val) + val.deep_size_of_children(context) } } impl<T: ?Sized> DeepSizeOf for alloc::sync::Arc<T> where T: DeepSizeOf, { #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { if !context.add_arc(self) { 0 } else { let val: &T = &*self; // Size of the Arc, size of the value, size of the allocations of the value size_of_val(val) + val.deep_size_of_children(context) } } } impl<T: ?Sized> DeepSizeOf for alloc::rc::Rc<T> where T: DeepSizeOf, { #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { if !context.add_rc(self) { 0 } else { let val: &T = &*self; size_of_val(val) + val.deep_size_of_children(context) } } } impl<T: ?Sized> DeepSizeOf for &T where T: DeepSizeOf, { #[inline] fn deep_size_of_children(&self, _context: &mut Context) -> usize { // if !context.add_ref(&self) { // 0 // } else { // size_of_val(*self) + (*self).deep_size_of_children(context) // } 0 } } impl<T> DeepSizeOf for &mut T where T: DeepSizeOf + ?Sized, { #[inline] fn deep_size_of_children(&self, _context: &mut Context) -> usize { 0 } } impl<T> DeepSizeOf for [T] where T: DeepSizeOf, { #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { self.iter().fold(0, |sum, elem| sum + elem.deep_size_of_children(context)) } } impl<T, const N: usize> DeepSizeOf for [T; N] where T: DeepSizeOf, { #[inline] fn deep_size_of_children(&self, context: &mut Context) -> usize { self.as_ref().deep_size_of_children(context) } } // A btree node has 2*B - 1 (K,V) pairs and (usize, u16, u16) // overhead, and an internal btree node additionally has 2*B // `usize` overhead. // A node can contain between B - 1 and 2*B - 1 elements, so // we assume it has the midpoint 3/2*B - 1. // Constants from rust's source: // https://doc.rust-lang.org/src/alloc/collections/btree/node.rs.html#43-45 const BTREE_B: usize = 6; const BTREE_MIN: usize = 2 * BTREE_B - 1; const BTREE_MAX: usize = BTREE_B - 1; #[cfg(feature = "std")] impl<K: Ord + DeepSizeOf, V: DeepSizeOf> DeepSizeOf for std::collections::BTreeMap<K, V> { fn deep_size_of_children(&self, context: &mut Context) -> usize { let element_size = self.iter().fold(0, |sum, (k, v)| { sum + k.deep_size_of_children(context) + v.deep_size_of_children(context) }); let overhead = size_of::<(usize, u16, u16, [(K, V); BTREE_MAX], [usize; BTREE_B])>(); element_size + self.len() * overhead * 2 / (BTREE_MAX + BTREE_MIN) } } #[cfg(feature = "std")] impl<K: Ord + DeepSizeOf> DeepSizeOf for std::collections::BTreeSet<K> { fn deep_size_of_children(&self, context: &mut Context) -> usize { let element_size = self.iter().fold(0, |sum, item| sum + item.deep_size_of_children(context)); let overhead = size_of::<(usize, u16, u16, [K; BTREE_MAX], [usize; BTREE_B])>(); element_size + self.len() * overhead * 2 / (BTREE_MAX + BTREE_MIN) } }
rust
New Delhi: He may not be celebrating his 47th birthday this year as a mark of respect to the frontline workers leading India’s fight against the COVID-19 pandemic, but wishes from the Indian cricket fraternity kept pouring in for batting legend Sachin Tendulkar on Friday. Former and current players thronged to Twitter to wish their ‘Little Master’ on his special day. While current skipper Virat Kohli and BCCI President Sourav Ganguly led the wishes in the morning, the likes of India’s pace ace Jasprit Bumrah, star batter K. L. Rahul and dashing opener Shikhar Dhawan joined the bandwagon as the day progressed. “To a true inspiration, on the cricket field and off it, happy birthday Sachin sir, I hope you have a great day,” Bumrah said in a tweet with a picture of him and Tendulkar having a conversation during their time spent at Mumbai Indians. Rahul, who has hit a purple patch of late, recalled the wonderful memories of Tendulkar and said he has learnt so much from the cricketing great rated as one of the best to have ever played the game. “Wishing the great @sachin_rt a very happy birthday. So many wonderful memories of watching you play, and so many great cricket lessons you’ve shared with all of us. Thank you and hope you have a great day,” Rahul added. “Happy birthday @sachin_rt paaji, wish you lots of happiness and good health in the years ahead Hugging face,” Dhawan said in a tweet. Earlier, Kohli tweeted saying Tendulkar’s passion for the game inspired many. “Happy birthday to the man whose passion for the game of cricket has inspired many. Wishing you an amazing year paaji,” he wrote. Former India cricketer Yuvraj Singh never hid his admiration for Tendulkar and he too wished him on social media. His post read: “To the legend with an eternal sweet spot on the bat and in our hearts. Here’s wishing Master Blaster Sachin a very happy birthday. May your life continue to shine like your records and may you continue to inspire billions through your noble deeds. Loads of love and best wishes. Tendulkar’s former opening partner, Virender Sehwag, put up a collage of different pictures to illustrate his never say die spirit. He wrote: “True that the great man could stop time in India when batting. But the biggest inspiration Sachin paaji’s career is summed up in these two pictures. Much needed to remember especially in these difficult times that after every adversary comes victory. “Happy birthday sir thank you for inspiring many and making people believe that dreams do come true. May god bless you with great health and you continue to inspire and guide us always,” said India leg-spinner Yuzvendra Chahal.
english
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RuleBlockComponent } from './rule-block/rule-block.component'; const COMPONENTS = [ RuleBlockComponent, ]; @NgModule({ imports: [ CommonModule ], declarations: [...COMPONENTS], exports: [ ...COMPONENTS, ] }) export class LinkRuleModule { }
typescript
{ "jquery.js": "jquery-f648c5b315.js", "rest-manager-admin.css": "rest-manager-admin-f3255b6726.css", "rest-manager-admin.js": "rest-manager-admin-c4f40caa2b.js" }
json
{"IceHound": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [4], "Original": ["AirDefenceSeeker"], "Replacement": ["Ice Hound"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "InfernoDragon": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [5], "Original": ["BabyDragon"], "Replacement": ["InfernoDragon"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperArcher": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [7], "Original": ["Archer"], "Replacement": ["EliteArcher"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperBalloon": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [7], "Original": ["Balloon"], "Replacement": ["HastyBalloon"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperBarbarian": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [7], "Original": ["Barbarian"], "Replacement": ["EliteBarbarian"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperBowler": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [3], "Original": ["Bowler"], "Replacement": ["Super Bowler"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperDragon": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [6], "Original": ["Dragon"], "Replacement": ["Super Dragon"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperGiant": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [8], "Original": ["Giant"], "Replacement": ["EliteGiant"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperGoblin": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [6], "Original": ["Goblin"], "Replacement": ["EliteGoblin"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperMinion": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [7], "Original": ["Gargoyle"], "Replacement": ["Super Minion"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperValkyrie": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [6], "Original": ["Warrior Girl"], "Replacement": ["EliteValkyrie"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperWallbreaker": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [6], "Original": ["Wall Breaker"], "Replacement": ["EliteWallBreaker"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperWitch": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [4], "Original": ["Warlock"], "Replacement": ["Head Witch"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}, "SuperWizard": {"CooldownH": [72], "DurationH": [72], "MinOriginalLevel": [8], "Original": ["Wizard"], "Replacement": ["Super Wizard"], "Resource": ["DarkElixir"], "ResourceCost": [25000]}}
json
{"Department":"Одеська місцева прокуратура №4","Name":"<NAME>","Position":"Прокурор Одеської місцевої прокуратури №4","Region":"Одеська область","analytics":[{"c":1,"ff":151.2,"ffa":2,"fi":49820,"i":89783,"y":2015},{"c":1,"ff":157.85,"ffa":2,"fi":107990,"i":139873,"y":2016},{"fc":1,"ff":59,"ffa":1,"i":281222,"y":2017},{"fc":1,"ff":59,"ffa":1,"i":695192,"m":519961,"y":2018},{"c":1,"fi":570091,"k":29.5,"ka":1,"m":774835,"y":2019},{"y":2020}],"declarationsLinks":[{"id":"nacp_a0850c8d-4979-461b-adb7-61a94487bbcf","provider":"declarations.com.ua.opendata","year":2015},{"id":"nacp_a9b1fa1f-0b4a-4acf-8398-bc1018d3c668","provider":"declarations.com.ua.opendata","year":2016},{"id":"nacp_573e2f6b-809a-4b8b-b457-cb892e99b04c","provider":"declarations.com.ua.opendata","year":2017},{"id":"nacp_3c8d73e0-7c0f-44c5-ab59-0439a673e6e4","provider":"declarations.com.ua.opendata","year":2018},{"id":"nacp_94af81cd-3a8b-4ef0-9697-53ee172c8b86","provider":"declarations.com.ua.opendata","year":2019},{"id":"nacp_03512d7a-5fd0-48ce-b57a-6fc5c1515a5f","provider":"declarations.com.ua.opendata","year":2020}],"key":"subotin_denis_vasilovich","type":"prosecutor","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"https://public.nazk.gov.ua/declaration/a0850c8d-4979-461b-adb7-61a94487bbcf","Декларації 2016":"https://public.nazk.gov.ua/declaration/a9b1fa1f-0b4a-4acf-8398-bc1018d3c668","Декларації доброчесності":"https://www.gp.gov.ua/integrity_profile/files/464a003d9c0ac2f24e0aba526c88c5de.pdf","Фото":"http://picua.org/img/2018-04/08/l1bu1pxjo13fvck4jg6iqy4pq.jpg","Як живе":""}
json
Follow these tips if you really want to sustain yourself in the Fashion Industry. By India Today Web Desk: As a strong demand for Fashion-forward clothing is increasing, the fashion industry in India is booming to a phenomenal extent. As per the report, the Indian clothing market will be worth 25 trillion Rupees by 2030, making it the sixth-largest market hub globally. The fashion industry is growing each day at an exponential rate. Over the past year, consumer behaviour has undoubtedly shifted drastically, as people sheltered from the virus in their own homes, travel was restricted and stores were closed around the world. However, the dominance of digital consumption continues and will grow in 2021. Companies must develop more engaging and enticing social experiences to encourage consumers to connect with the desired brand. The fashion industry has catapulted into the midst of seismic shifts due to several changes in consumer spending habits, digital innovation, and rising globalization. In a world full of advancement in technology, consumers are used to getting what they want, when and where they want it, easily using various apps. In fact, globally in the number of internet users in the past year, India saw the strongest absolute growth. Social media use is expanding at the rate of around 25 per cent annually, with nearly 70 per cent of users active on Instagram. Social media plays a vital role in providing a platform to introduce consumers to fashion brands that are away from the dominant informal market. Slowly the Fashion Industry is starting to wake up to the fact that consumer preferences have changed with time, and they want more eco-friendly products. The Fashion Industry is volatile and dynamic, as the trends keep on changing and coming back, again and again, is the biggest challenge for Fashion Students. It is extremely important for students to stay on the top of the game because surviving in an advanced industry is not everybody’s cup of tea and so, to achieve success in the career, one must adopt all the traits needed to stand out. Students always keep in mind to get through harsh environments of the fashion industry challenges. The students are advised as follows: Be technically sound: Students need to know how to use CAD (computer-aided design) program and must be familiar with any editing graphic designing software along with knowledge of 3D software that could help them improve their designs because today’s industry demands a talent who knows work with 360 degrees approach. Nowadays, technologies are presenting opportunities for brands to conduct an authentic sustainable business, engage audiences and stay relevant. Be visionary: You can see the visions come directly to your imagination when you are passionate about something. Pre-decide your long-term and short-term vision to stay clear wherever you need to go, how you want to operate, what strategy you need to accomplish your vision, and how you want to create an impact on your consumer and stand out with others. Go through customers: To take feedback from customers when you are growing your brand and introducing a fresh collection to the world is very important. Many fashion brands conduct a survey from time to time to know about the taste of their desired consumers, to predict the rise and fall of trends. They research everything from climate to color preferences, social media trends, etc. , and the collected data are considered under predictive analytics. The data-driven strategy helps the brands run more efficiently, by giving them room to innovate and balance supply and demand. Taking feedback and communicating with customers also motivate the entrepreneurs to calibrate their designs and personalize their merchandise accordingly. Sustainability: The fashion industry is popularly known for creating trends, and now the Industry is working on its most important trend sustainability. As the demand for a consumer-centric approach rises, a lot of people, globally, have become conscious of what they consume. According to research findings, 88 per cent of the consumers want brands to help them be more environmentally friendly because customers want to have a positive impact on the environment. Adapt new trends: Trend is something that flips easily because the fashion industry is extremely dynamic, and it changes in the blink of an eye. Currently, fashion trends have become more simplified due to the global pandemic of Covid 19. Most fashion brands have toned down their styling even after the pandemic; clothing is likely to stay simple and comfortable. Students need to adapt to the changes and creatively make way for new trends to remain afloat where competition is cut-throat or nosebleed.
english
<gh_stars>1-10 { "name": "express-stream-sse", "version": "1.0.1", "description": "Convert NodeJS streams to Server-Sent Events express routes (EventSource)", "license": "MIT", "repository": "revolunet/express-stream-sse", "author": { "name": "<NAME>", "email": "<EMAIL>", "url": "http://github.com/revolunet" }, "engines": { "node": ">=0.10.0" }, "scripts": { "readme": "node ./node_modules/.bin/node-readme", "test": "./node_modules/.bin/babel-tape-runner ./spec/**/*.spec.js | ./node_modules/.bin/tap-spec", "zuul": "./node_modules/.bin/zuul --local --open -- spec/**/*.spec.js", "build": "./node_modules/.bin/babel -d ./dist ./src", "publish": "git push --tags && npm publish" }, "main": "dist/index.js", "keywords": [ "node", "express", "stream", "sse", "realtime", "eventsource" ], "files": [ "dist/*", "README.md", "LICENCE" ], "devDependencies": { "babel-cli": "^6.3.17", "babel-eslint": "*", "babel-preset-es2015": "*", "babel-tape-runner": "*", "eslint": "*", "eslint-config-airbnb": "*", "node-readme": "^0.1.8", "tap-spec": "^4.0.2", "tape": "^4.0.0", "zuul": "^3.8.0" } }
json
American singer-songwriter Taylor Swift kicked off her long-awaited Eras tour in Arizona on Friday. At the concert, the pop star performed hits and fan favorites from her nearly two-decade career. However, one special moment stole the show when a couple decided to get married in the middle of the concert. A video of the incident which is going viral on social media shows Rene Hurtado tying the knot with her partner Max Bochman while standing in the front row at Taylor Swift's second show in Glendale, Arizona. Dressed in a white dress and veil, the bride is seen exchanging vows with the groom in a tuxedo. As the newlyweds shared a kiss upon completion of vows, Swifties in attendance erupted in cheers and claps. This video was shared by the Twitter page @TheSwiftSociety and originally posted on TikTok by @madimarotta. Watch the video here: The bride told TMZ that the couple discussed eloping on the day of her concert and having the event serve as their wedding reception. However, they later decided to make their favourite artist a part of their nuptials by getting married during her concert. ''It was really thrilling and exciting. I'm so glad that we did it. It was really special, and the timing during the concert was so beautiful'', she told Rolling Stone. The couple's 'real' wedding reception is slated for March 2024, where they plan to take on a hip-hop theme. Meanwhile, the video received mixed reactions on Twitter. While some were happy for the couple, others called their actions ''rude'' and ''disrespectful. '' One user wrote, ''Is it just me or does anyone else think is kind of rude? Like it kind of just seems like quite the opposite of concert etiquette. '' Another commented, ''Probably an unpopular opinion but, kinda disrespectful. Like, not the time, not the place. This is Taylor's show, not yours. '' A third defended them saying, ''it was during "intermission" and its not like they blocking views or anything anyone could've ignored. '' In a similar video that went viral, a man was seen proposing to his girlfriend, in the backdrop of Taylor Swift performing her all-time favourite song, Love Story.
english
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>EDHEC</title> <link href="images/favicon.ico" rel="icon"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <div class="site-content"> <header> <div class="header-top"> <div class="logo-header"> <img src="images/logoedhec1.jpg"> </div> <div class="info-header"> <marquee>Bienvenue sur le Site Officiel du Groupe <NAME></marquee> </div> </div> <div class="banner"> <img src="images/imgedhec2.jpg"> </div> <div class="menu"> <ul> <li><a href="index.html">Accueil</a></li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Nos Filères </a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> <a class="dropdown-item" href="pages/it.html">Informatiques</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="pages/marketing.html">Commerciales</a> </div> </li> <li><a href="pages/event.html">Evénements</a></li> <li><a href="pages/contact.html">Contact</a></li> </ul> </div> </header> <div class="content"> <div class="row"> <div class="title"> <h1>Bienvenue dans notre établissement</h1> </div> </div> <!--================Speech =================--> <section id="about" class="creative_feature_area"> <div class="container"> <div class="digital_feature p_100"> <div class="row"> <div class="col-lg-6"> <div class="d_feature_text"> <div class="main_title"> <i><h2>Dr <NAME> <br> <h4>Directeur Fondateur</h4> </h2></i> </div> <p > Groupe Ecole des Hautes Etudes Commerciales-Abidjan (Gpe EDHEG-Abidjan) a été créé en Novembre 2004. Aujourd’hui, le Groupe EDHEG-Abidjan est constitué de quatre (04) écoles à savoir EDHEG-Abidjan, EDHEG-Bouaké et EDHEG-San Pédro. Le Groupe EDHEG-Abidjan est spécialisé dans la formation: des Commerciaux, des Gestionnaires d’Entreprise, des Juristes d’Entreprise, des Comptables et Financiers et des Informaticiens. Il a pour vocation de former des Cadres gestionnaires et Dirigeants d’entreprise via une formation polyvalente et opérationnelle de haut niveau et une préparation aux métiers de décideurs à travers des séminaires, alternance école- entreprise, stages de fin d’étude. </p> </div> </div> <div class="col-lg-6"> <div class="d_feature_img"> <img src="images/logoedhec1.jpg" alt="" width="200px" height="300px"> </div> </div> </div> </div> </div> </section> <!--================End Speech =================--> <!--================Our Service Area =================--> <section id="services" class="service_area"> <div class="container"> <div class="center_title"> <h2>Groupe EDHEC-Abidjan</h2> <p>Une nouvelle vision de la formation en gestion</p> </div> <div class="row service_item_inner"> <div class="col-lg-4"> <div class="service_item"> <i class="ti-ruler-pencil"></i> <h4>BTS</h4> <p>The Fancy that recognize the talent and effort of the best web designers, developers and agencies in the world.</p> </div> </div> <div class="col-lg-4"> <div class="service_item"> <i class="ti-desktop"></i> <h4>Licene Pro</h4> <p>The Fancy that recognize the talent and effort of the best web designers, developers and agencies in the world.</p> </div> </div> <div class="col-lg-4"> <div class="service_item"> <i class="ti-announcement"></i> <h4>Cycle Ingenieur (Master)</h4> <p>The Fancy that recognize the talent and effort of the best web designers, developers and agencies in the world.</p> </div> </div> </div> </div> </section> <!--================End Our Service Area =================--> <!--================Latest News Area =================--> <section id="news" class="latest_news_area p_100"> <div class="container"> <div class="b_center_title"> <h2>Actualités</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p> </div> <div class="l_news_inner"> <div class="row"> <div class="col-lg-4 col-md-6"> <div class="l_news_item"> <div class="l_news_img"><a href="#"><img class="img-fluid" src="images/imgedhec3.jpg" alt=""></a></div> <div class="l_news_content"> <a href="#"><h4>Lorem ipsum dolor sit amet</h4></a> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.</p> </div> </div> </div> <div class="col-lg-4 col-md-6"> <div class="l_news_item"> <div class="l_news_img "><a href="#"><img class="img-fluid" src="images/imgedhec2.jpg" alt=""></a></div> <div class="l_news_content"> <a href="#"><h4>Lorem ipsum dolor sit amet</h4></a> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna</p> </div> </div> </div> <div class="col-lg-4 col-md-6"> <div class="l_news_item"> <div class="l_news_img"><a href="#"><img class="img-fluid" src="images/imgedhec1.jpg" alt=""></a></div> <div class="l_news_content"> <a href="#"><h4>Lorem ipsum dolor sit amet</h4></a> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna</p> </div> </div> </div> </div> </div> </div> </section> </div> <footer> <div class="logo-footer"> <img src="images/logoedhec1.jpg "> </div> <div class="info-footer"> <ul> <li><a href="#">Copyright &copy;<script>document.write(new Date().getFullYear());</script> Tout Droit Reservé</a></li> <li><a href="#">Tel : 22 48 78 66</a></li> <li><a href="#">Email : <EMAIL></a></li> <li><a href="../index.html">Site internet : www.groupeedhec.com</a></li> </ul> </div> </footer> </div> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="<KEY>" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="<KEY>" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="<KEY>AXv9k" crossorigin="anonymous"></script> </body> </html>
html
PART [V] GUJARAT GOVERNMENT GAZETTE, EX., 24-2-82 (b) in sub-section (6), for the words "the Rector, if any, and in the absence of the Rector" the words "the Pro-ViceChancellor, and in the absence of the ProVice-Chancellor," shall be substituted. (3) In section 11(a) in sub-section (4), in clause (a), for the words "thereafter report his action" the words "thereafter furnish information regarding his action" shall be substituted; (b) after sub-section (5), the following sub-section shall be inserted, namely "(5A) (a) Subject to the provisions contained in sub-section (4) and notwithstanding anything contained in sub-section after the Vice-Chancellor (5) where as he deems making such inquiry fit is of opinion that the execution of any order or resolution of an authority specified in or declared under section 15, or the doing of anything which is about to be done or is being done by or on behalf of the University (i) is inconsistent with the provisions of this Act or of any statute, ordinance, rule or regulation, or (ii) is not in the interest of the University, or (iii) is likely to lead to breach of peace, he may forward a copy of the order or resolution or, as the case may be, refer the doing of the thing, with a statement of reasons, to the authority which made the order or passed the resolution or proposes to do the thing for reconsideration by that authority as to whether the said order or resolution may not be rescinded, or revised or modified in the manner stated by him, or the doing of the thing be refrained from. (b) Where the authority after reconsideration revises or modifies the order or the resolution in the manner stated by the Vice-Chancellor, then notwithstanding any.
english
Mira Kapoor swears by an ayurvedic way of life. Not only does she follows the same when it comes to her diet and well-being, Mira also believes in a simple ayurvedic bedtime routine to ensure her hair and skin remain healthy. Taking to Instagram recently, the 27-year-old gave a glimpse of her night stand which has a few essentials for “pampering each and every part” of the body. “What’s on my night stand? Here are all the things I like to do before I get into bed. Pampering each and every part and nourishing it before the body works it’s magic to repair and replenish,” she captioned the video post. Take a look. In the video, she can be seen unwinding with a few things starting from A2 ghee rubbed on the soles of her feet. “Calms vata. Helps you sleep like a baby,” she shared. Here are other things on her nightstand. Cold-pressed sesame oil “to massage on to my knees and elbows. Helps strengthen joints”. Hand cream for soft hands. Lip balm to nourish and repair the lips. Guasha for lymphatic drainage. Silk scrunchie to loosely tie the hair that prevents tangles and breakage. What’s her favourite? “My favourite? Ghee on my feet. You’ll thank me after you’ve slept like a baby. I like to do it when I know I need to be up early to catch a flight or when I’m sleeping late,” she revealed. 📣 For more lifestyle news, follow us on Instagram | Twitter | Facebook and don’t miss out on the latest updates!
english
Well, this is just an orgy of nepotism today! Some good, some bad, some boring. Anyway, trailers! Happy Birthday Ekta Kapoor! You may say Farah or Zoya has more power, and maybe if you just look at the films they produced, okay. But if you look at all the stars and stories and production changes Ekta has done through film AND television, there is no contest. So, for her birthday, here are 18 reasons I love you, one for every hundred episodes produced of Kyunki Saas Bhi Kabhi Bahu Thi (1833 in total). (this is an updated and reposted-post from last year) Learn Indian Primary Narratives Through Film Songs! I considered “myths”, but that’s not quite right. There are a combination of Persian legends, Punjabi folk tales, and of course the Puranic stories of Ram and Sita, which are all important to know if you watch Hindi film because they influence the way the narratives play out. Luckily, many of them are summarized and represented through simple songs! There were 3 interesting industrial news stories in one day, which I want to use as jumping off point to discuss how money and art intersect in Hindi film. The first two are short and kind of set the stage, the last one is the very interesting one that relates to the whole history of how film finances work. (this was originally posted as a news round-up, but it really makes more sense as a Hindi Film 101) Oh boy! My favorite juicy scandalous fascinating addictive news items! That’s right, INSIDE INDUSTRY BUSINESS STORIES! Let’s get into contracts and star rates and all kinds of fun stuff like that! No joke, I really do find these stories way way way more fun to talk about than, like Anushka-Virat wedding news. Maybe you do to! And even if you don’t, you can just not read this! That works too. Well, everyone wants to release first looks on Valentine’s Day. So there are soooooooooooo many. And also, bonus, a reminder that once upon a time Jaya and Amitabh were so in love you could die.
english
<reponame>g0v/amis-moedict<filename>amis-deploy/s/mikanikawan.json<gh_stars>1-10 {"t":"mikanikawan","h":[{"d":[{"f":"導致把…匱乏、缺少了。","e":["`Mi~`kanikawan~ `ako~ `ko~ `maamaan~ `ko~ `nanom~.我缺飲用水了。"]},{"f":"指出現匱乏、缺少情況或結果的。","e":["`Pasowalen~ `ho~ `ko~ `mi~`kanikawan~ `iso~!說說你所缺乏的情況。"]}]}],"stem":"nikaw"}
json
<gh_stars>1-10 {"vega-tooltip.js":"<KEY>,"vega-tooltip.min.js":"<KEY>}
json
<gh_stars>0 import React from 'react'; import { Flex } from 'grid-styled'; import Header from 'core/components/header'; import BeerListContainer from 'beer-list/containers/beer-list-container'; import BeerModalContainer from 'beer-list/containers/beer-modal-container'; import SearchBeerContainer from 'beer-list/containers/search-beer-container'; import BeerListPaginationContainer from 'beer-list/containers/beer-list-pagination-container'; const Home = () => ( <React.Fragment> <Header /> <Flex is="section" justifyContent="center" mt="-2.5em"> <SearchBeerContainer /> </Flex> <Flex is="section" justifyContent="center"> <BeerListContainer /> </Flex> <Flex is="section" justifyContent="center"> <BeerListPaginationContainer /> </Flex> <BeerModalContainer /> </React.Fragment> ); export default Home;
javascript
(() => { 'use strict'; const sAdded = new Map(); class MockHelperApi { constructor() { } add({name, filepath}) { global.helper[name] = require(filepath); sAdded.set(name, true); return Promise.resolve(); } static mockCleanUp() { sAdded.forEach((filepath, name) => { delete global.helper[name]; }); } } module.exports = MockHelperApi; })();
javascript
/* Button –––––––––––––––––––––––––––––––––––––––––––––––––– */ .button, button, input[type='button'], input[type='reset'], input[type='submit']{ background-color: var(--color-primary); border: .1rem solid var(--color-primary); border-radius: .4rem; color: var(--color-initial); cursor: pointer; display: inline-block; font-size: 1.1rem; font-weight: 700; height: 3.8rem; letter-spacing: .1rem; line-height: 3.8rem; padding: 0 3.0rem; text-align: center; text-decoration: none; text-transform: uppercase; white-space: nowrap; &:hover, &:focus{ background-color: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-initial); outline: 0; } &.button-disabled, &[disabled]{ opacity: .5; cursor: default; &:hover, &:focus{ background-color: var(--color-primary); border-color: var(--color-primary); } } &.button-outline{ color: var(--color-primary); background-color: transparent; &:hover, &:focus{ color: var(--color-secondary); background-color: transparent; border-color: var(--color-secondary); } &.button-disabled, &[disabled]{ &:hover, &:focus{ color: var(--color-primary); border-color: inherit; } } } &.button-clear{ color: var(--color-primary); background-color: transparent; border-color: transparent; &:hover, &:focus{ color: var(--color-secondary); background-color: transparent; border-color: transparent; } &.button-disabled, &[disabled]{ &:hover, &:focus{ color: var(--color-primary); } } } }
css
Sebastian Vettel was pleased with the progress he saw from Ferrari at the Belgian Grand Prix on Friday as he and teammate Kimi Raikkonen set the fastest times. Lewis Hamilton and Mercedes lead the way in the title race, but at Spa-Francorchamps, where Ferrari has thrived historically, the Italian outfit showed its speed early on. Vettel, Hamilton's nearest challenger, topped the FP1 leaderboard with a best time of a minute and 44.358 seconds, before Raikkonen led the way in FP2 in a minute and 43.355 seconds. Despite impressing on a largely dry day, Vettel still feels there is more work to do as Ferrari look to begin the second half of the season in style. "I think it's going the right way. It was a bit difficult to figure out where we are and I think we'll have to wait for [Saturday] to have a better idea," the German driver said. "The new engine has done what it was supposed to do. Everything was working well. Now, we'll see; rain shouldn't give us any more problems and, should we have wet conditions, it would be quite nice to have confirmation that we found the right things to do." "On this track, everything seems to happen faster. It should be a lot of fun and, if we have dry conditions tomorrow for qualifying, we should be OK." "There are still some special tracks on the calendar and, for sure, this one in Spa is very exciting in terms of cornering speeds. We still need to do some work, but we have time to do it." Hamilton came third and then second in the two sessions and he, too, was pleased with how the return to the track went. "I'm happy to be back in the car again. These are the fastest F1 cars we've ever had, and you really feel it at this track. You go almost flat through Pouhon - it's crazy," the Mercedes man said. "We've brought a new engine and everything was running smoothly. It's really close between us and Ferrari; it seems like we've both been bringing new updates at a similar rate."
english
{"css.js":"<KEY>,"css.min.js":"<KEY>}
json
<gh_stars>1-10 import { fetchJSON } from '../../utils'; let lastRefresh = 0; let data; export async function get(req, res) { if (Date.now() > lastRefresh + 60 * 60 * 1000) { data = await fetchJSON( 'https://raw.githubusercontent.com/ozh/github-colors/master/colors.json' ); lastRefresh = Date.now(); } return res.status(200).send(data); }
javascript
from pfwrapper import PyPatternFinder from collections import namedtuple Pattern = namedtuple('Pattern', ['base', 'sens', 'pBase', 'pAll', 'pDX', 'pD_X', 'pX', 'pDY', 'pD_Y', 'pY', 'pDXY', 'pD_XY', 'pXY']) DivergentPattern = namedtuple('DivergentPattern', ['base', 'sens', 'pDY', 'pD_Y', 'pDXY', 'pD_XY', 'score']) class PatternFinder: def __init__(self, root_params, leaf_params, target_value, sensitive_var_ids): self.pattern_finder = PyPatternFinder(root_params, leaf_params, target_value, sensitive_var_ids) self.num_visited = -1 def convert_pattern(self, p): return DivergentPattern(base=p['base'], sens=p['sens'], pDY=p['pDY'], pD_Y=p['pNotDY'], pDXY=p['pDXY'], pD_XY=p['pNotDXY'], score=p['kld']) def find_any_divergent(self, threshold, num_patterns): patterns, self.num_visited = self.pattern_finder.get_divergent_patterns(threshold, num_patterns, True) patterns = [self.convert_pattern(p) for p in patterns] return patterns def find_any_discriminating(self, threshold, num_patterns): patterns, self.num_visited = self.pattern_finder.get_discriminating_patterns(threshold, num_patterns, True) patterns = [self.convert_pattern(p) for p in patterns] return patterns def get_divergent_patterns(self, threshold, num_patterns): patterns, self.num_visited = self.pattern_finder.get_divergent_patterns(threshold, num_patterns) patterns = [self.convert_pattern(p) for p in patterns] return patterns def get_discriminating_patterns(self, threshold, num_patterns): patterns, self.num_visited = self.pattern_finder.get_discriminating_patterns(threshold, num_patterns) patterns = [self.convert_pattern(p) for p in patterns] return patterns if __name__ == '__main__': root_params = [0.1, 0.9] leaf_params = [[0.3, 0.7, 0.1, 0.9], [0.4, 0.6, 0.5, 0.5], [0.2, 0.8, 0.3, 0.7], [0.15, 0.85, 0.25, 0.75]] target_value = 1 sensitive_var_ids = [0, 2] threshold = 0.1 num_patterns = 3 pf = PatternFinder(root_params, leaf_params, target_value, sensitive_var_ids) dis_patterns = pf.get_discriminating_patterns(threshold, num_patterns) print(dis_patterns) print('visited nodes: %d\n'%pf.num_visited) div_patterns = pf.get_divergent_patterns(threshold, num_patterns) print(div_patterns) print('visited nodes: %d\n'%pf.num_visited)
python
/* * Copyright (C) 2017-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "runtime/command_stream/command_stream_receiver_with_aub_dump.inl" #include "runtime/os_interface/windows/device_command_stream.inl" #include "runtime/os_interface/windows/wddm_device_command_stream.inl" namespace NEO { template class DeviceCommandStreamReceiver<SKLFamily>; template class WddmCommandStreamReceiver<SKLFamily>; template class CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<SKLFamily>>; } // namespace NEO
cpp
// import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader"; global.THREE = require("three"); const bla = require("three/examples/js/loaders/GLTFLoader"); console.log(bla); export class GLTFResolver { constructor() { this.type = "gltf"; this.loader = new THREE.GLTFLoader(); } resolve(item) { return new Promise((resolve) => { this.loader.load(item.url, (scene) => { resolve(Object.assign(item, { scene })); }); }); } get(item) { return item.scene; } }
javascript
<reponame>umd-mith/airwaves { "id": "d863-19", "text": "Program #9\nProgram\nProgram\nProgram\nProgram\n\"Freedom of the Press\"\nThe values and abuses of a free press shown\ndramatically by Jefferson's advocacy of it\nwhile in opposition, and his continued advocacy\nof it under considerable disillusionment during\nthe attacks on him while he was President.\n#10 \"The University of the United States\"\nThis program illustrates the founding of the\nUniversity of Virginia, and describes Jefferson's\nbill for \"lie More General Diffusion of Know¬\nledge\". The central ideas are universal public education\nand the application of selective tests in higher\neducation.\n#11 \"To Secure These Rights\"\nThe ultimate purposes of government, illustrated\nby the political association of Jefferson and James\nMadison during half a century. \"Nothing is un¬\nchangeable but the inherent and inalienable rights\nof man. \"\n#12 \"Nature's Most Precious Gift\"\nThe natural aristocracy of talent and virtue\ndramatized by the friendship between Jefferson\nand <NAME>, and discussed by them in their\nfamous correspondence of old age. The program\nends with the death of both men on July 4th, 1826.\n#13 \"What the Jeffersonian Heritage Means\nT oday. \" ~~ “ '\nA summation by Professor <NAME>.\n-- 30 ---" }
json
<filename>src/main/java/org/diplomatiq/diplomatiqbackend/domain/entities/helpers/AuthenticationSessionMultiFactorElevationRequestHelper.java package org.diplomatiq.diplomatiqbackend.domain.entities.helpers; import org.diplomatiq.diplomatiqbackend.domain.entities.concretes.AuthenticationSessionMultiFactorElevationRequest; import org.diplomatiq.diplomatiqbackend.domain.entities.utils.ExpirationUtils; import org.diplomatiq.diplomatiqbackend.utils.crypto.random.RandomUtils; import java.time.Duration; public class AuthenticationSessionMultiFactorElevationRequestHelper { private static final Duration AUTHENTICATION_SESSION_MULTI_FACTOR_ELEVATION_REQUEST_VALIDITY = Duration.ofMinutes(5); private static final int AUTHENTICATION_SESSION_MULTI_FACTOR_ELEVATION_REQUEST_CODE_LENGTH = 8; public static AuthenticationSessionMultiFactorElevationRequest create() { AuthenticationSessionMultiFactorElevationRequest authenticationSessionMultiFactorElevationRequest = new AuthenticationSessionMultiFactorElevationRequest(); ExpirationUtils.setExpirationLifeSpan(authenticationSessionMultiFactorElevationRequest, AUTHENTICATION_SESSION_MULTI_FACTOR_ELEVATION_REQUEST_VALIDITY); authenticationSessionMultiFactorElevationRequest.setRequestCode( RandomUtils.numericString(AUTHENTICATION_SESSION_MULTI_FACTOR_ELEVATION_REQUEST_CODE_LENGTH)); return authenticationSessionMultiFactorElevationRequest; } }
java
I am using Reliance Jio sim since the preview offer started and was pretty much happy with the service. But the problem has started a few weeks ago that I am not able to make any calls even when I haven’t used any data on that particular day. Whenever I am trying to make calls, It needs at least 5 minutes for getting the call connected. And that really make you angry. Here is a video which I have taken now when I tried to make a call with Reliance Jio sim, and later I ended up making the call with my Vodafone Postpaid connection. So guys, let us just figure out how Reliance is gonna rule the world if things are going like this? Dear Reliance Team, Do you think people will come towards you after you end up giving the free data/call offer if things are going like this? Update from State Connectivity Lead of Reliance Jio on behalf of this post. Airtel Vodafone and idea has ganged up and are not providing Connectivity to Jio.. they say offer what we are giving is against their money making interest.. calls to bsnl, Docomo mts etc no problem certain number series of idea no issues. Jio has filed the petition in DOT, speaking on behalf of consumers are denied freedom to access free calls by airtel idea Vodafone.. hopefully will be able to resolve soon.
english
{ "user": "lousando", "repos": 1, "login": "lousando", "id": 1214300, "avatar_url": "https://avatars1.githubusercontent.com/u/1214300?v=3", "url": "https://api.github.com/users/lousando", "html_url": "https://github.com/lousando", "followers_url": "https://api.github.com/users/lousando/followers", "following_url": "https://api.github.com/users/lousando/following{/other_user}", "gists_url": "https://api.github.com/users/lousando/gists{/gist_id}", "starred_url": "https://api.github.com/users/lousando/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lousando/subscriptions", "organizations_url": "https://api.github.com/users/lousando/orgs", "repos_url": "https://api.github.com/users/lousando/repos", "events_url": "https://api.github.com/users/lousando/events{/privacy}", "received_events_url": "https://api.github.com/users/lousando/received_events", "type": "User", "site_admin": false, "name": "<NAME>", "company": "eCreations LLC", "blog": null, "location": "Glendale, AZ", "email": null, "hireable": null, "bio": "Problem Solver.", "public_repos": 10, "public_gists": 6, "followers": 13, "following": 12, "created_at": "2011-11-22T23:39:51Z", "updated_at": "2017-02-28T21:50:48Z" }
json
{"word":"rhetoric","definition":"1. The art of composition; especially, elegant composition in prose. 2. Oratory; the art of speaking with propriety, elegance, and force. Locke. 3. Hence, artificial eloquence; fine language or declamation without conviction or earnest feeling. 4. Fig. : The power of persuasion or attraction; that which allures or charms. Sweet, silent rhetoric of persuading eyes. Daniel."}
json
<reponame>rkuma238/React_UI # TeleJSON A library for teleporting rich data to another place. ## Install ```sh yarn add telejson ``` ## What can it do, what can't it do: `JSON.parse` & `JSON.stringify` have limitation by design, because there are no data formats for things like - Date - Function - Class - Symbol - etc. Also JSON doesn't support cyclic data structures. This library allows you to pass in data with all all the above properties. It will transform the properties to something that's allowed by the JSON spec whilst stringifying, and then convert back to the cyclic data structure when parsing. When parsing, **class instances** will be given the Class's name again. The prototype isn't copied over. **Functions** are supported, they are stringified and will be eval-ed when called. This lazy eval is important for performance. The eval happens via `eval()` Functions are stripped of comments and whitespace. > Obviously calling the function will only really work as expected if the functions were pure the begin with. **Regular expressions** just work. **Symbol** will be re-created with the same string. (resulting in a similar, but different symbol) **Dates** are parsed back into actual Date objects. ## API You have 2 choices: ```js import { stringify, parse } from 'telejson'; const Foo = function () {}; const root = { date: new Date('2018'), regex1: /foo/, regex2: /foo/g, regex2: new RegExp('foo', 'i'), fn1: () => 'foo', fn2: function fn2() { return 'foo'; }, Foo: new Foo(), }; // something cyclic root.root = root; const stringified = stringify(root); const parsed = parse(stringified); ``` stringify and parse do not conform to the JSON.stringify or JSON.parse api. they take an data object and a option object. OR you can use use the `replacer` and `reviver`: ```js import { replacer, reviver } from 'telejson'; import data from 'somewhere'; const stringified = JSON.stringify(data, reviver(), 2); const parsed = JSON.parse(stringified, reviver(), 2); ``` notice that both replacer and reviver need to be called! doing the following will NOT WORK: ``` const stringified = JSON.stringify(data, reviver, 2); const parsed = JSON.parse(stringified, reviver, 2); ``` ## options You either pass the options-object to `replacer` or as a second argument to `stringify`: ```js replacer({ maxDepth: 10 }); stringify(date, { maxDepth: 10 }); ``` ### replacer `maxDepth`: controls how deep to keep stringifying. When max depth is reach, objects will be replaced with `"[Object]"`, arrays will be replaced with `"[Array(<length>)]"`. default value is `10` This option is really useful if your object is huge/complex, and you don't care about the deeply nested data. `space`: controls how to prettify the output string. default value is `undefined`, no white space is used. Only relevant when using `stringify`. `allowFunction`: When set to false, functions will not be serialized. (default = true) `allowRegExp`: When set to false, regular expressions will not be serialized. (default = true) `allowClass`: When set to false, class instances will not be serialized. (default = true) `allowDate`: When set to false, Date objects will not be serialized. (default = true) `allowUndefined`: When set to false, `undefined` will not be serialized. (default = true) `allowSymbol`: When set to false, Symbols will not be serialized. (default = true) ### reviver `lazyEval`: When set to false, lazy eval will be disabled. (default true) Note: disabling lazy eval will affect performance. Consider disabling it only if you truly need to. ## Requirements `telejson` depends on the collection type `Map`. If you support older browsers and devices which may not yet provide these natively (e.g. IE < 11) or which have non-compliant implementations (e.g. IE 11), consider including a global polyfill in your bundled application, such as `core-js` or `babel-polyfill`. ## Contributing If you have any suggestions, please open an issue. All contributions are welcome! ### run tests: ```sh yarn test ```
markdown
<filename>pyrsss/signal/sepfilter.py import numpy as NP import scipy.sparse from .util import zero_pad from .convmtx import Convmtx class SepFilter(object): def __init__(self, n, h_list, mode='full'): """ Construct a separable filter, i.e., the filter that operates on a signal with shape *n* where the $i$th component of *h_list* is the kernel for the $i$th dimension. The *mode* parameter can be one of: - full: standard convolution, i.e., zero-padding at the edges. - valid: convolution where only those portions of complete overlap, i.e., no zero-padding, are considered. - circ: circular convolution, i.e., periodic boundary condition at the edges. """ self.n = n self.ndim = len(n) self.h_list = [NP.copy(h_i) for h_i in h_list] self.m = tuple(map(lambda x: len(x), self.h_list)) self.mode = mode self.k_full = tuple(NP.array(self.n) + NP.array(self.m) - 1) self.k_valid = tuple(NP.array(self.n) - NP.array(self.m) + 1) if self.mode == 'full': self.k = self.k_full elif self.mode == 'valid': self.k = self.k_valid elif self.mode == 'circ': self.k = self.k_full else: assert(False) self.H_list = list(map(lambda x: NP.fft.fft(x[1], n=self.k_full[x[0]]), enumerate(self.h_list))) def reducer(x, y): i, y_i = y shape = [len(y_i)] + [1]*i return NP.reshape(y_i, shape) * x self.h = reduce(reducer, enumerate(reversed(self.h_list)), 1) self.H = reduce(reducer, enumerate(reversed(self.H_list)), 1) def operate(self, x): """ Apply the separable filter to the signal vector *x*. """ X = NP.fft.fftn(x, s=self.k_full) if NP.isrealobj(self.h) and NP.isrealobj(x): y = NP.real(NP.fft.ifftn(self.H * X)) else: y = NP.fft.ifftn(self.H * X) if self.mode == 'full' or self.mode == 'circ': return y elif self.mode == 'valid': slice_list = [] for i in range(self.ndim): if self.m[i]-1 == 0: slice_list.append(slice(None, None, None)) else: slice_list.append(slice(self.m[i]-1, -(self.m[i]-1), None)) return y[slice_list] else: assert(False) def __mul__(self, x): """ Apply the separable filter (via the multiplication operator) to the signal vector *x*. """ return self.operate(x) def asmatrix(self): """ Return the sparse matrix representation of the separable filter. """ h_matrix = NP.array([1]) for i in range(self.ndim): if self.mode == 'circ': h_i = Convmtx([self.k[i]], self.h_list[i], mode=self.mode) else: h_i = Convmtx([self.n[i]], self.h_list[i], mode=self.mode) h_matrix = scipy.sparse.kron(h_matrix, h_i) return h_matrix def random_validation(N, ndim_max=4, n_max=10, m_max=10, modes=['full', 'valid', 'circ']): """ Validate the :class:`SepFilter` implementation by comparing *N* direct circular and full / valid convolutions with those computed using :class:`SepFilter`. Limit the kernel and signal vector dimension to *n_dim_max*, and the length per dimension to *n_max* for the signal and *m_max* for the convolution kernel. Only consider convolution types given in *modes*. """ for i in range(1, N+1): ndim = NP.random.random_integers(1, ndim_max) n = NP.random.random_integers(1, n_max, ndim) m = NP.random.random_integers(1, m_max, ndim) mode = modes[NP.random.random_integers(0, 2)] for j, n_j in enumerate(n): if n_j - m[j] + 1 <= 0: n[j] = m[j] if mode == 'full' or mode == 'circ': k = m + n - 1 elif mode == 'valid': k = n - m + 1 else: assert(False) assert((NP.array(k) > 0).all()) print('{} of {} (n={} k={} mode={})'.format(i, N, n, k, mode)) h_list = [NP.random.randn(m_i) for m_i in m] x = NP.random.randn(*n) H = SepFilter(n, h_list, mode=mode) if mode == 'circ': y_true = scipy.signal.convolve(x, H.h, mode='full') else: y_true = scipy.signal.convolve(x, H.h, mode=mode) y_sep = H * x assert(NP.allclose(y_sep, y_true)) if mode == 'circ': H_matrix_true = Convmtx(k, H.h, mode=mode) x = zero_pad(x, k) else: H_matrix_true = Convmtx(n, H.h, mode=mode) H_matrix_sep = H.asmatrix() y_matrix_true = H_matrix_true * x.flat y_matrix_sep = H_matrix_sep * x.flat assert(NP.allclose(y_matrix_sep, y_matrix_true)) return True if __name__ == '__main__': random_validation(100)
python
import { ref, Ref, UnwrapRef, computed, watch } from '@vue/runtime-dom' import throttle from 'lodash.throttle' import useLocalStorage from '../useLocalStorage' import useVisibilityState from '../useVisibilityState' import useWindowFocus from '../useWindowFocus' import useTimeoutFn from '../useTimeoutFn' import { setCache, getCache } from './cache' import { now, isClient, isDef } from '../utils' import defaultConfig, { SWRConfig } from './config' export type UpdateReason = Ref<'fresh' | 'stale' | 'network'> type SWRResult<D, E> = [ () => any, { refData: Ref<D> refError: Ref<E> revalidate: () => any refReason: UpdateReason } ] const STORAGE_KEY_PREFIX = 'USE_SWR_CACHED_TIME_' type RawFetcher<D> = (...arg: any[]) => Promise<UnwrapRef<D>> export type Fetcher<Data = any> = () => ReturnType<RawFetcher<Data>> export default function useSWR<Data = any, Error = any>( key: string, fetch: Fetcher<Data>, options: Partial<SWRConfig<Data, Error>> = defaultConfig ): SWRResult<Data, Error> { const config = Object.assign({}, defaultConfig, options) const refData = ref<Data>() const refError = ref<Error>() const refReason: UpdateReason = ref('network') const refCachedTime = useLocalStorage(STORAGE_KEY_PREFIX + key, 0) const refMaxAge = computed(() => refCachedTime.value + config.maxAge) const refSwr = computed(() => refMaxAge.value + config.swr) async function performFetch() { const startTime = now() // Is fresh, use the cache to satisfy the request if (startTime <= refMaxAge.value) { refData.value = getCache(key) refReason.value = 'fresh' return } // The cached value will be stale, but will be used to fulfill the API request, // at the same time, "in the background", a revalidation request will be made. if (startTime <= refSwr.value) { refReason.value = 'stale' refData.value = getCache(key) if (isClient && isDef(window.requestIdleCallback)) { window.requestIdleCallback(revalidate) } else { revalidate() } return } // Requests fall outside of the `stale-while-revalidate` window, // getting the response from the network. await revalidate() refReason.value = 'network' } // revalidateId is used to determine whether the result of an asynchronous request is valid. let revalidateId = 0 async function revalidate() { const currentId = ++revalidateId let isTimeout = false const [stopTimeoutFn] = useTimeoutFn(() => { config.onRevalidateTimeout(key, refReason.value, config) // Although the request has timed out, it is still possible to return data in the future, // so it is marked as timed out in order to discard future data. config.shouldTimeoutInvalid && (isTimeout = true) }, config.timeout) // If 0, the timeout is immediately turned off. if (!config.timeout) stopTimeoutFn() try { const res = await fetch() stopTimeoutFn() // Means that there is a newer `revalidation` here, // and invalidates the current `revalidation`. if (currentId < revalidateId || isTimeout) return refData.value = res setCache(key, refData.value) // call onSuccess hook config.onSuccess && config.onSuccess(refData.value, key, config) // update cachedTime refCachedTime.value = now() } catch (e) { stopTimeoutFn() // Means that there is a newer `revalidation` here, // and invalidates the current `revalidation`. if (currentId < revalidateId || isTimeout) return refError.value = e // call onError hook config.onError && config.onError(e, key, config) } } let lock = !config.initial // Re-fetch when visible & focus const onFocus = throttle(performFetch, config.focusThrottleInterval) config.revalidateOnFocus && watch( [useVisibilityState(), useWindowFocus()], ([isVisible, isFocus]) => { !lock && (isVisible && isFocus) && onFocus() }, { lazy: !config.initial } ) const doFetch = () => { lock = false performFetch() } return [ doFetch, { refData, refError, revalidate, refReason } ] }
typescript
import os if os.getenv('CLOSETINN_ENV', 'development') == 'development': from development import * elif os.getenv('CLOSETINN_ENV') == 'production': print 'PRODUCTION' from production import *
python
.card { width: 200px; height: 80px; padding: 15px; border-radius:5px; color: rgb(0, 75, 150); border: 2px solid rgb(35, 145, 255); box-shadow: 10px 10px 15px lightgrey; margin:20px 0px 0px 20px; float:left; } .card:hover{ color:white; cursor: pointer; background-color: rgb(35, 145, 255); box-shadow: 10px 10px 15px grey; } .container{ height: 60px; } .title{ margin:20px; color: rgb(0, 75, 150); } .btitle{ font-size: 16px; margin-bottom: 0px; } .roomCode,.date{ font-size: 12px; } .viewBtn{ float: right; margin-bottom: 5px; } a{ text-decoration: none; color:rgb(0, 75, 150); } a:hover{ color:white; }
css
116/7 (17. 0 ov) 119/4 (16. 1 ov) Inning Break: Bangladesh beat Afghanistan by 6 wickets (D/L method) 172/7 (20. 0 ov) 157 (20. 0 ov) KL Rahul was given a respite by Steven Smith after he was dropped on 46. During the IPL 2014, Dale Steyn was very impressed with his Sunrisers Hyderabad teammate. A look back at how the events unfolded on Day 3 of the 4th Test at Sydney. KL Rahul and Virat Kohli stitched a 141-run stand for the third wicket. Camera that captures seagull view, spotted with the bird itself! Spidercam does produce spectacular sights for audiences who consume cricket on television. Rohit, who in trying to sweep a Nathan Lyon delivery, fell on the pitch awkwardly. Tons from Virat Kohli and KL Rahul helped India end Day Three on 336 for five. Walters claimed that Smith is almost foolproof, adding that the skipper has great determination. Virat Kohli scored his fourth Test ton of the series against Australia.
english
<filename>Data/Ministere_des_finances/Communiques_de_presse/Communiques_2016-04-21_3006.json {"id": 3006, "url": "http://proxy-pubminefi.diffusion.finances.gouv.fr/pub/document/18/20831.pdf", "author": "<NAME>", "title": "INVITATION PRESSE - <NAME> effectuera un déplacement dans le Puy-de-Dôme sur le thème de l'innovation industrielle le lundi 25 avril 2016", "text": " \n \n \n \n \nEMM<NAME> \nMINISTRE DE L’ECONOMIE, DE L’INDUSTRIE \nET DU NUMERIQUE \n \nI n v i t a t i o n p r e s s e \nI n v i t a t i o n p r e s s e \nwww.economie.gouv.fr \n \n \n \n \n \n \n \n \n \n \nParis, le 21 avril 2016 \nN°1343 \n \n \n<NAME>, ministre de l’Economie, de l’Industrie et du Numérique \neffectuera un déplacement dans le Puy-de-Dôme sur le thème de l’innovation industrielle \nle lundi 25 avril 2016 \n \n<NAME> effectuera une visite de l’entreprise Rexiaa, spécialisée dans la fabrication de \nmatériaux composites pour les secteurs des transports et de l’aéronautique civile et militaire. Depuis plus \nd’un quart de siècle, cette entreprise a fait de l’innovation le fer de lance de son développement, se \npositionnant ainsi aujourd’hui comme l’un des leaders dans son domaine. \nLe Ministre rencontrera également des chefs d’entreprises et des élus locaux et échangera avec eux \nsur la situation économique locale, et en particulier sur la modernisation des entreprises et des outils \nindustriels, dans la perspective de la conférence économique organisée par la mairie de Clermont-Ferrand. \n \n \nProgramme prévisionnel : \n \n08h45 \nAccueil sur le site de l’entreprise Rexiaa par <NAME>, PDG et Jacques \nMONIOT, directeur général, et en présence d’élus et de parlementaires locaux. La visite \nde l’entreprise s’effectue en compagnie d’élèves d’une classe de 3ème du lycée \nprofessionnel <NAME>-<NAME>, avec lesquels le Ministre échangera en fin de \nvisite \n \nZone industrielle des Listes \n8, rue Pierre-Antoine Rouvet – 63 500 Issoire \n \n09h50 \nEchange informel avec la presse \n \n10h30 \nInauguration d’un EHPAD (Etablissement d’hébergement pour personnes âgées \ndépendantes), à l’invitation de <NAME>-<NAME>, député-maire de Coudes et en \nprésence d’élus et de parlementaires locaux \n \nRoute de Clémensat – 63 320 Champeix \n \n\n \n \n \n \n12h20 \nEntretien avec la direction et les représentants syndicaux des Ateliers de construction \ndu centre (ACC), en présence de Mme Odile SAUGES, députée et de MM. Yves \nGOUTTEBEL, Président du département du Puy-de-Dôme et <NAME>, maire de \nClermont-Ferrand (sans presse) \n \nMairie de Clermont-Ferrand \n10, rue <NAME> – 63 000 Clermont-Ferrand \n \n13h00 \nDéjeuner avec des élus, des parlementaires et des chefs d’entreprise locaux (sans \npresse) \n \n \n \n \nAccréditations auprès de la préfecture du Puy-de-Dôme, \nMme <NAME>, par téléphone au 04 73 98 63 14 / 63 29 et au 06 80 37 34 18 \nou par mail à <EMAIL> \n \n \n \nContact presse : \nCabinet d’<NAME> : \n01 53 18 45 13 \n", "published_date": "2016-04-21", "section": "Communiques"}
json
class ControlRod extends Tile { constructor(col, row, simulation) { super(col, row, simulation); this.cool = CONFIG.controlRodCool; this.color = { r: 154, g: 18, b: 179 }; } // Randomly absorb a neutron if control rod is down onReact(n) { if ((random(100) / 100 < CONFIG.controlRodChance) && (this.simulation.controlRods)) { this.simulation.glow(n.pos.x, n.pos.y, { r: 255, g: 255, b: 255 }); this.simulation.removeNeutron(n); this.heat += CONFIG.controlRodHeat; return true; } } update() { if (this.simulation.controlRods) { this.color = { r: 108, g: 122, b: 137 }; } else { this.color = { r: 154, g: 18, b: 179 }; } this.spreadHeat(); } }
javascript
<filename>Actors/IErrorHandler.d.ts /** * Defines how an actor handles an error. */ export default interface IErrorHandler { /** * Defines how an actor handles an error. On return, it will process the next * message (if any). * @param error The error to handle. */ (reason: any): void }
typescript
Kannada actor Kichcha Sudeep has filed a defamation case against producer MN Kumar, who had accused him of accepting a token advance payment for a film but subsequently ignoring him. For the unversed, Kumar had held a media conference and accused Sudeep of evading him after accepting remuneration for agreeing to do a film, seven years ago. Kumar alleged that he incurred substantial losses as a result of Sudeep's failure to meet his responsibilities in a Kannada film project that was scheduled to begin after the release of the movie Vikrant Rona. Refuting the allegation, Sudeep sent a legal notice citing defamation to Kumar, and sought Rs 10 crore in damages, along with an unconditional apology for having made such statements. This apology will have to be published in all relevant print and visual media, the notice states. It further mentions that Kumar has made false and illegal claims against Sudeep and that the matter of having paid the actor is a figment of the producer's imagination. Before responding to the allegations legally, Sudeep had penned a cryptic post on Twitter. "Let it be known: my goodness is not a tool for manipulation or misuse. It shines brightest when genuine, and I won't let arrogance taint its radiance. Stay humble, stay true," he noted. Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
english
Mangaluru, Jul 17: Carmel School with great devoutness and pride celebrated the feast of its patroness, Our Lady of Mount Carmel in the school auditorium recently. The programme was presided over by Sr Sarika, principal. The Radio Video show was scripted and presented verbally and enacted by the students of class X and the Carmel Blossoms. Anam,Khushi, Shazma and Varshitha were the presenters whose conversation imparted a dramatic touch to the programme and kept the listeners bound to the items presented therein. The show initiated with hymns, prayers and gospel reading accentuating the joyful mysteries. The statue of Mount Carmel was showered with flowers amidst the singing of the hymn ‘We Assembled Here Today’. Carmel Blossoms presented a one-act play elucidating the history of the feast and thereafter manifesting how a family was salvaged from drowning only through ardent prayers to Our Lady of Mount Carmel and devotion to the scapular. Thereafter advertisements were displayed on food and medicine for the soul (Inspirational Garden) and Zumba dance to reduce weight to be healthy, wealthy and strong. Keeping in mind, the need for entertainment a scintillating dance was presented. The audience was then brought face to face with an indomitable woman, a true soldier of the spirit, a mystic, a vision, who stood passionately for in her pursuit of the truth and she never wavered. She dart over many of her contemporaries and left an invaluable legacy to humankind. By her fortuitous destiny, all connected to her through Carmel convent institutions which was a pigment of mother veronica’s vision which she decided to impart education to young girls around the world. It was an interview with Mother Veronica (Prenisha D’Souza) and the interviewer was Nidhi of Class X. The 10 amazing virtues of Mother Mary were associated to the life of Mother Veronica, through thought provoking questions, captivating quotations, a puzzling scenario that captured the concentration and attentiveness of the faculty and the students by Sr Sarika, principal in her presidential address.
english
Corpse Husband, Rachell "Valkyrae" Hofstetter, and Ryan Higa were amused after Thomas "Sykkuno" gave their friend Christina "TinaKitten" Kenyon an interesting nickname. Tina made a "confession" about a show she had watched the day before the stream, leading to Sykkuno calling her a "pegasister. " The term immediately drew laughter and confusion from the lot, even causing Tina to hysterically laugh at its absurdity. Sykkuno, Valkyrae, and Corpse Husband discuss the term "pegasister" During their latest live stream, Thomas "Sykkuno," Christina "TinaKitten" Kenyon, Corpse Husband, Rachell "Valkyrae" Hofstetter, and Ryan Higa all joined together to play Riot Games' Valorant. As they waited to begin their session, TinaKitten made a sudden confession that took Sykkuno by surprise: "I watched My Little Pony last night on my projector. I did, I did. Am I a 'brony'? No, but. . " Midway through her confession, Sykkuno began pondering the term for fans of the latest My Little Pony animated show. Before she could finish talking, he had found the word he was looking for and confronted her: "You're a pegasister. She's a- yeah, I had to- I googled it, I googled it. Is that the right term? Did I get it right? " TinaKitten immediately burst into laughter, partially screaming into her mic at the absurdity of the claim. Valkyrae and Corpse Husband were confused by the word, with Corpse stating, "That sounds like a horrible string of words mixed in that's, that's bad in so many (ways). " According to wiktionary. org, "Pegasister is a female fan of the animated television series My Little Pony: Friendship is Magic, typically an adult. " The male alternative to the term would be "brony," which TinaKitten mentioned during her initial confession. They eventually began playing, queuing for a match soon after everyone recovered from the hilarious incident. As of late, Sykkuno has been on a roll regarding trolling his friends while feigning innocence, such as when he pulled a fast one on his Mario Party lobby with Leslie "Fuslie" Fu Valkyrae and others.
english
[{"namaKab":"DHARMASRAYA","originalFilename":"GESBED DAPIL 4.jpg","namaPartai":"Persatuan Indonesia","id":145537,"noUrut":1,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"DHARMASRAYA","originalFilename":"HABIBULLAH (FILEminimizer).jpg","namaPartai":"Persatuan Indonesia","id":261843,"noUrut":2,"nama":"<NAME>.","stringJenisKelamin":"Laki-Laki"},{"namaKab":"DHARMASRAYA","originalFilename":"GUSMIATI.jpg","namaPartai":"Persatuan Indonesia","id":263383,"noUrut":3,"nama":"GUSMIATI","stringJenisKelamin":"Perempuan"},{"namaKab":"DHARMASRAYA","originalFilename":"REFDINAL (1) (FILEminimizer).jpg","namaPartai":"Persatuan Indonesia","id":262838,"noUrut":4,"nama":"<NAME>.","stringJenisKelamin":"Laki-Laki"},{"namaKab":"DHARMASRAYA","originalFilename":"<NAME>AHFUDIN (FILEminimizer).jpg","namaPartai":"Persatuan Indonesia","id":132760,"noUrut":5,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"DHARMASRAYA","originalFilename":"RAYNI (FILEminimizer).JPG","namaPartai":"Persatuan Indonesia","id":134026,"noUrut":6,"nama":"<NAME>.","stringJenisKelamin":"Perempuan"},{"namaKab":"DHARMASRAYA","originalFilename":"ZULFATMI (FILEminimizer).jpg","namaPartai":"Persatuan Indonesia","id":262497,"noUrut":7,"nama":"ZULFATMI","stringJenisKelamin":"Laki-Laki"},{"namaKab":"DHARMASRAYA","originalFilename":"NOPA LULITA (FILEminimizer).jpg","namaPartai":"Persatuan Indonesia","id":263172,"noUrut":8,"nama":"<NAME>","stringJenisKelamin":"Perempuan"}]
json
<gh_stars>10-100 version https://git-lfs.github.com/spec/v1 oid sha256:8ecaa260718c38b5b319ff1fabdb05a9092818ff8ad7ccdd6face2934a8d14af size 1443
json
<reponame>alexboii/Discover-Poetry { "author": "<NAME>", "classification": "Refrain", "keywords": [ "Activities", "Jobs", "Working", "Pets", "Relationships", "Nature" ], "period": "", "reference": "http://www.poetryfoundation.org/poem/173534", "region": "U.S., New England", "text": [ "I'm going out to clean the pasture spring;", "I'll only stop to rake the leaves away", "(And wait to watch the water clear, I may):", "I sha'n't be gone long.\u2014You come too.", "I'm going out to fetch the little calf", "That's standing by the mother. It's so young,", "It totters when she licks it with her tongue.", "I sha'n't be gone long.\u2014You come too." ], "title": "The Pasture", "year": "" }
json
<reponame>jjatinggoyal/accessbility-indicators {"html_attributions": [], "results": [{"business_status": "OPERATIONAL", "geometry": {"location": {"lat": 24.8190953, "lng": 86.4661061}, "viewport": {"northeast": {"lat": 24.8206419802915, "lng": 86.46762493029152}, "southwest": {"lat": 24.8179440197085, "lng": 86.4649269697085}}}, "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png", "icon_background_color": "#7B9EB0", "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet", "name": "New primry school duverphari", "place_id": "ChIJSW3HPTt38TkRcHE6S70rcp0", "plus_code": {"compound_code": "RF98+JC Tola Bhelbindha, Bihar, India", "global_code": "7MP8RF98+JC"}, "rating": 4, "reference": "ChIJSW3HPTt38TkRcHE6S70rcp0", "scope": "GOOGLE", "types": ["school", "point_of_interest", "establishment"], "user_ratings_total": 1, "vicinity": "Kesopur - Borwa Road, Tola Bhelbindha"}, {"business_status": "OPERATIONAL", "geometry": {"location": {"lat": 24.8094698, "lng": 86.4713944}, "viewport": {"northeast": {"lat": 24.8108039802915, "lng": 86.47275658029153}, "southwest": {"lat": 24.8081060197085, "lng": 86.47005861970851}}}, "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png", "icon_background_color": "#7B9EB0", "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet", "name": "<NAME>", "photos": [{"height": 1836, "html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/111375507931056823679\"><NAME></a>"], "photo_reference": "<KEY>", "width": 3264}], "place_id": "ChIJCSHTbZx38TkR9upKhQxOlU4", "plus_code": {"compound_code": "RF5C+QH Tola Dumarmah, Bihar, India", "global_code": "7MP8RF5C+QH"}, "rating": 5, "reference": "ChIJCSHTbZx38TkR9upKhQxOlU4", "scope": "GOOGLE", "types": ["school", "point_of_interest", "establishment"], "user_ratings_total": 1, "vicinity": "Dumar Main Rd"}, {"business_status": "OPERATIONAL", "geometry": {"location": {"lat": 24.8242719, "lng": 86.4626897}, "viewport": {"northeast": {"lat": 24.8255043802915, "lng": 86.46416178029149}, "southwest": {"lat": 24.8228064197085, "lng": 86.46146381970848}}}, "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png", "icon_background_color": "#7B9EB0", "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet", "name": "HIGH SCHOOL D<NAME>", "place_id": "ChIJdcL1rsR38TkRimcXB0nnr-Q", "reference": "ChIJdcL1rsR38TkRimcXB0nnr-Q", "scope": "GOOGLE", "types": ["school", "point_of_interest", "establishment"], "vicinity": "RFF7+P34, Tola Bhelbindha"}, {"business_status": "OPERATIONAL", "geometry": {"location": {"lat": 24.8258521, "lng": 86.47693989999999}, "viewport": {"northeast": {"lat": 24.8272322802915, "lng": 86.4782454302915}, "southwest": {"lat": 24.8245343197085, "lng": 86.47554746970847}}}, "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png", "icon_background_color": "#7B9EB0", "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet", "name": "Primary school salga", "place_id": "ChIJAYqZTG938TkRREIYAmD-9FY", "reference": "ChIJAYqZTG938TkRREIYAmD-9FY", "scope": "GOOGLE", "types": ["primary_school", "school", "point_of_interest", "establishment"], "vicinity": "RFGG+8QW, Tola Sabaijor"}, {"business_status": "OPERATIONAL", "geometry": {"location": {"lat": 24.8232777, "lng": 86.48072619999999}, "viewport": {"northeast": {"lat": 24.8246173302915, "lng": 86.4820557302915}, "southwest": {"lat": 24.8219193697085, "lng": 86.4793577697085}}}, "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png", "icon_background_color": "#7B9EB0", "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet", "name": "Middle school savaijor math", "photos": [{"height": 4160, "html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/102958269968235515925\">RAMAN KUMAR</a>"], "photo_reference": "<KEY>", "width": 2352}], "place_id": "ChIJx8OVMkt38TkRE4dGUAyogW4", "rating": 5, "reference": "ChIJx8OVMkt38TkRE4dGUAyogW4", "scope": "GOOGLE", "types": ["school", "point_of_interest", "establishment"], "user_ratings_total": 1, "vicinity": "RFFJ+879, Tola Sabaijor"}], "status": "OK"}
json
<reponame>jesussobrino/angular-bus-stop <bus-stop-header></bus-stop-header> <div class="container"> <h2>Departures Timetable in {{routeParams.busStopName}}</h2> <table class="table" ng-if="busStopDepartures.arrivals.length > 0"> <thead> <tr> <th>Route Name</th> <th>Destination</th> <th>Estimated Wait</th> <th>Scheduled Time</th> <th>Real time?</th> <th>Status</th> </tr> </thead> <tbody> <tr ng-repeat="arrival in busStopDepartures.arrivals"> <td>{{arrival.routeName}}</td> <td>{{arrival.destination}}</td> <td>{{arrival.estimatedWait}}</td> <td>{{arrival.scheduledTime}}</td> <td>{{arrival.isRealTime ? 'Yes' : 'No'}}</td> <td>{{arrival.isCancelled ? 'Cancelled' : 'Available'}}</td> </tr> </tbody> </table> <p ng-if="busStopDepartures.arrivals.length === 0">Sorry. There are not arrivals available in {{routeParams.busStopName}}</p> <p><strong>Updated at: {{busStopDepartures.lastUpdated}}</strong></p> </div>
html
<reponame>voltexde/GoMint package io.gomint.server.network.packet; import io.gomint.jraknet.PacketBuffer; import io.gomint.math.Location; import io.gomint.server.network.Protocol; import io.gomint.server.player.PlayerPermission; import io.gomint.server.util.BlockIdentifier; import io.gomint.server.world.BlockRuntimeIDs; import io.gomint.world.Gamerule; import lombok.Data; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * @author geNAZt * @version 1.0 */ @Data public class PacketStartGame extends Packet { // Entity data private long entityId; private long runtimeEntityId; private int gamemode; private Location spawn; // Level data private int seed; private int dimension; private int generator; private int worldGamemode; private int difficulty; private int x; private int y; private int z; private boolean hasAchievementsDisabled = true; private int dayCycleStopTime; private boolean eduMode; private float rainLevel; private float lightningLevel; private boolean isMultiplayerGame = true; private boolean hasLANBroadcast = true; private boolean hasXboxLiveBroadcast = false; private boolean commandsEnabled; private boolean isTexturePacksRequired; // Gamerule data private Map<Gamerule, Object> gamerules; private boolean hasBonusChestEnabled; private boolean hasStartWithMapEnabled; private boolean hasTrustPlayersEnabled; private int defaultPlayerPermission = PlayerPermission.MEMBER.getId(); private int xboxLiveBroadcastMode = 0; private boolean hasPlatformBroadcast = false; private int platformBroadcastMode = 0; private boolean xboxLiveBroadcastIntent = false; // World data private String levelId; private String worldName; private String templateName; private boolean unknown1 = true; private long currentTick; private int enchantmentSeed; // Server stuff private String correlationId; // Runtime ID private List<BlockIdentifier> runtimeIDs; /** * Create a new start game packet */ public PacketStartGame() { super( Protocol.PACKET_START_GAME ); } @Override public void serialize( PacketBuffer buffer, int protocolID ) { buffer.writeSignedVarLong( this.entityId ); // EntityUnique buffer.writeUnsignedVarLong( this.runtimeEntityId ); // EntityRuntime buffer.writeSignedVarInt( this.gamemode ); // VarInt buffer.writeLFloat( this.spawn.getX() ); // Vec3 buffer.writeLFloat( this.spawn.getY() ); buffer.writeLFloat( this.spawn.getZ() ); buffer.writeLFloat( this.spawn.getYaw() ); // Vec2 buffer.writeLFloat( this.spawn.getPitch() ); // LevelSettings buffer.writeSignedVarInt( this.seed ); buffer.writeSignedVarInt( this.dimension ); buffer.writeSignedVarInt( this.generator ); buffer.writeSignedVarInt( this.worldGamemode ); buffer.writeSignedVarInt( this.difficulty ); buffer.writeSignedVarInt( (int) this.spawn.getX() ); buffer.writeUnsignedVarInt( (int) this.spawn.getY() ); buffer.writeSignedVarInt( (int) this.spawn.getZ() ); buffer.writeBoolean( this.hasAchievementsDisabled ); buffer.writeSignedVarInt( this.dayCycleStopTime ); buffer.writeBoolean( this.eduMode ); buffer.writeBoolean( true ); // This is hasEduModeEnabled, we default to false until we have all EDU stuff in buffer.writeLFloat( this.rainLevel ); buffer.writeLFloat( this.lightningLevel ); buffer.writeBoolean( this.isMultiplayerGame ); buffer.writeBoolean( this.hasLANBroadcast ); buffer.writeBoolean( this.hasXboxLiveBroadcast ); buffer.writeBoolean( this.commandsEnabled ); buffer.writeBoolean( this.isTexturePacksRequired ); writeGamerules( this.gamerules, buffer ); buffer.writeBoolean( this.hasBonusChestEnabled ); buffer.writeBoolean( this.hasStartWithMapEnabled ); buffer.writeBoolean( this.hasTrustPlayersEnabled ); buffer.writeSignedVarInt( this.defaultPlayerPermission ); buffer.writeSignedVarInt( this.xboxLiveBroadcastMode ); buffer.writeInt( 32 ); buffer.writeBoolean( this.hasPlatformBroadcast ); buffer.writeSignedVarInt( this.platformBroadcastMode ); buffer.writeBoolean( this.xboxLiveBroadcastIntent ); buffer.writeBoolean( false ); buffer.writeBoolean( false ); buffer.writeBoolean( false ); buffer.writeBoolean( false ); buffer.writeString( this.levelId ); buffer.writeString( this.worldName ); buffer.writeString( this.templateName ); buffer.writeBoolean( this.unknown1 ); buffer.writeLLong( this.currentTick ); buffer.writeSignedVarInt( this.enchantmentSeed ); // Write palette data byte[] data = BlockRuntimeIDs.getPacketCache(); buffer.writeBytes( data ); buffer.writeString( this.correlationId ); } @Override public void deserialize( PacketBuffer buffer, int protocolID ) { this.entityId = buffer.readSignedVarLong().longValue(); this.runtimeEntityId = buffer.readUnsignedVarLong(); buffer.readSignedVarInt(); this.spawn = new Location( null, buffer.readLFloat(), buffer.readLFloat(), buffer.readLFloat(), buffer.readLFloat(), buffer.readLFloat() ); for ( int i = 0; i < 6; i++ ) { buffer.readSignedVarInt(); } buffer.readUnsignedVarInt(); buffer.readSignedVarInt(); buffer.readBoolean(); buffer.readSignedVarInt(); buffer.readBoolean(); buffer.readBoolean(); buffer.readLFloat(); buffer.readLFloat(); for ( int i = 0; i < 5; i++ ) { buffer.readBoolean(); } readGamerules( buffer ); for ( int i = 0; i < 3; i++ ) { buffer.readBoolean(); } buffer.readSignedVarInt(); buffer.readSignedVarInt(); buffer.readInt(); buffer.readBoolean(); buffer.readSignedVarInt(); for ( int i = 0; i < 5; i++ ) { buffer.readBoolean(); } for ( int i = 0; i < 3; i++ ) { buffer.readString(); } buffer.readBoolean(); buffer.readLLong(); buffer.readSignedVarInt(); // Runtime IDs int amountOfBlocks = buffer.readUnsignedVarInt(); this.runtimeIDs = new ArrayList<>( amountOfBlocks ); for ( int i = 0; i < amountOfBlocks; i++ ) { this.runtimeIDs.add( new BlockIdentifier( buffer.readString(), buffer.readLShort() ) ); } // Skip the rest for now buffer.skip( buffer.getRemaining() ); } }
java
import service from '@/utils/request' // @Tags Project // @Summary 创建Project // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data body model.Project true "创建Project" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Router /project/createProject [post] export const createProject = (data) => { return service({ url: '/project/createProject', method: 'post', data }) } // @Tags Project // @Summary 删除Project // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data body model.Project true "删除Project" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /project/deleteProject [delete] export const deleteProject = (data) => { return service({ url: '/project/deleteProject', method: 'delete', data }) } // @Tags Project // @Summary 删除Project // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data body request.IdsReq true "批量删除Project" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /project/deleteProject [delete] export const deleteProjectByIds = (data) => { return service({ url: '/project/deleteProjectByIds', method: 'delete', data }) } // @Tags Project // @Summary 更新Project // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data body model.Project true "更新Project" // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" // @Router /project/updateProject [put] export const updateProject = (data) => { return service({ url: '/project/updateProject', method: 'put', data }) } // @Tags Project // @Summary 用id查询Project // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data query model.Project true "用id查询Project" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Router /project/findProject [get] export const findProject = (params) => { return service({ url: '/project/findProject', method: 'get', params }) } // @Tags Project // @Summary 分页获取Project列表 // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data query request.PageInfo true "分页获取Project列表" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Router /project/getProjectList [get] export const getProjectList = (params) => { return service({ url: '/project/getProjectList', method: 'get', params }) } // @Tags Project // @Summary 上传项目附件(分片) // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data query model.Project true "上传项目附件(分片)" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Router /project/uploadProjectFile [post] export const uploadProjectChunk = (data) => { return service({ url: '/project/uploadProjectFileChunk', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data }) } // @Tags Project // @Summary 合并分片 // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data query model.Project true "合并分片" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Router /project/uploadProjectFile [post] export const mergeProjectFileChunk = (params) => { return service({ url: '/project/mergeProjectFileChunk', method: 'post', params }) } // @Tags Project // @Summary 按类型分页获取项目的附件记录 // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data query model.Project true "上传项目附件(分片)" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Router /project/uploadProjectFile [get] export const getProjectFileRecordList = (params) => { return service({ url: '/project/getProjectFileRecordList', method: 'get', params }) } // @Tags Project // @Summary 删除ProjectFile // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data body request.IdsReq true "批量删除ProjectFile" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /project/deleteProject [delete] export const deleteProjectFileByIds = (data) => { return service({ url: '/project/deleteProjectFileByIds', method: 'delete', data }) } // @Tags Project // @Summary 下载附件 // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data body request.IdsReq true "批量删除ProjectFile" // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" // @Router /project/deleteProject [delete] export const downloadFile = (params) => { return service({ url: '/project/downloadFile', method: 'get', params, responseType: 'blob' // 制定响应类型 }) } // @Tags Project // @Summary 修改项目状态 // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data query model.Project true "修改项目状态" // @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}" // @Router /project/changeProjectStatus [post] export const changeProjectStatus = (data) => { return service({ url: '/project/changeProjectStatus', method: 'post', data }) } // @Tags Project // @Summary 导出Project列表 // @Security ApiKeyAuth // @accept application/json // @Produce application/json // @Param data query request.PageInfo true "导出Project列表" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Router /project/getProjectList [get] export const exportToExcel = (params) => { return service({ url: '/project/exportToExcel', method: 'get', params, responseType: 'blob' // 制定响应类型 }) }
javascript
<reponame>XadillaX/bilibili-av /** * XadillaX created at 2015-09-19 23:40:49 With ♥ * * Copyright (c) 2015 Souche.com, all rights * reserved. */ var qs = require("querystring"); var spidex = require("spidex"); var helper = require("./helper"); var GET_PAGE_LIST_URL = "http://www.bilibili.com/widget/getPageList"; /** * AV * @param {Number} aid aid of bilibili av * @param {Number} page the page number of AV * @param {Object} options the parse options * @constructor */ var AV = function(aid, page, options) { if(typeof page === "object" || page === undefined) { options = page; page = 1; } this.aid = aid; this.page = page; this.options = options || {}; this.cid = undefined; this.pageName = undefined; // 10 seconds timeout if(this.options.timeout === undefined) { this.options.timeout = 10000; } }; /** * fetchCidAndName * @param {Function} callback the callback function */ AV.prototype.fetchCidAndName = function(callback) { if(undefined !== this.cid && undefined !== this.pageName) { return process.nextTick(callback); } var self = this; var querystring = qs.stringify({ aid: this.aid }); spidex.get(GET_PAGE_LIST_URL + "?" + querystring, { charset: "binary", timeout: this.options.timeout }, function(html, status) { if(status === 404) { return callback(new Error("No such aid " + self.aid)); } if(status !== 200) { return callback(new Error("Server returns status code " + status)); } helper.gunzipResponse(html, function(err, html) { if(err) { return callback(new Error("Can't parse response buffer")); } try { var json = JSON.parse(html); for(var i = 0; i < json.length; i++) { if(json[i].page === self.page) { self.cid = parseInt(json[i].cid); self.pageName = json[i].pagename; return callback(); } } callback(new Error("No such page in " + self.aid)); } catch(e) { return callback(new Error("Can't parse cid or page name of " + self.aid + "-" + self.page)); } }); }).on("error", function(err) { callback(err); }); }; /** * getCid * @param {Function} callback the callback function */ AV.prototype.getCid = function(callback) { if(undefined !== this.cid) { var self = this; return process.nextTick(function() { callback(undefined, self.cid); }); } var self = this; this.fetchCidAndName(function(err) { if(err) return callback(err); if(undefined === self.cid) return callback(new Error("Unknown error occurred while fetching cid")); callback(undefined, self.cid); }); }; /** * getPageName * @param {Function} callback the callback function */ AV.prototype.getPageName = function(callback) { if(undefined !== this.pageName) { var self = this; return process.nextTick(function() { callback(undefined, self.pageName); }); } var self = this; this.fetchCidAndName(function(err) { if(err) return callback(err); if(undefined === self.pageName) { return callback( new Error("Unknown error occurred while fetching page name")); } callback(undefined, self.pageName); }); }; module.exports = AV;
javascript
{"derivation": "from H7235 (\u05e8\u05b8\u05d1\u05b8\u05d4);", "pron": "tar-beeth'", "outline": "<ol><li> increment, usury, interest, bonus</li></ol>", "kjv_def": "increase, unjust gain.", "lemma": "\u05ea\u05bc\u05b7\u05e8\u05b0\u05d1\u05bc\u05b4\u05d9\u05ea", "frequency": 5, "strongs_def": "multiplication, i.e. percentage or bonus in addition to principal", "xlit": "tarb\u00eeyth"}
json
<filename>fileapi/tests/test_functional.py import os import shutil import tempfile from django.contrib.auth.models import User from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.core.files.storage import FileSystemStorage from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.ui import WebDriverWait from .. import views class FunctionalTests(StaticLiveServerTestCase): """Iteractive tests with selenium.""" @classmethod def setUpClass(cls): cls.browser = webdriver.PhantomJS() super().setUpClass() @classmethod def tearDownClass(cls): cls.browser.quit() super().tearDownClass() def setUp(self): self.temp_dir = tempfile.mkdtemp() self._orig_storage = views.storage views.storage = FileSystemStorage(self.temp_dir) self.username = 'test' self.password = '<PASSWORD>' User.objects.create_user(self.username, '', self.password) def tearDown(self): shutil.rmtree(self.temp_dir) views.storage = self._orig_storage def test_show_login(self): """The login should be shown on page load.""" self.browser.get(self.live_server_url) form = self.browser.find_element_by_id('login') upload = self.browser.find_element_by_id('upload') self.assertTrue(form.is_displayed(), 'Login form should be visible.') self.assertFalse(upload.is_displayed(), 'Upload area should not be visible.') def login(self, username, password): """Helper for login form submission.""" self.browser.get(self.live_server_url) form = self.browser.find_element_by_id('login') username_input = form.find_element_by_name('username') username_input.send_keys(username) password_input = form.find_element_by_name('password') password_input.send_keys(password) form.submit() def test_login(self): """Submit the login form with a valid login.""" self.login(self.username, self.password) WebDriverWait(self.browser, 5).until( expected_conditions.visibility_of_element_located((By.ID, 'upload'))) form = self.browser.find_element_by_id('login') self.assertFalse(form.is_displayed(), 'Login form should no longer be visible.') def test_invalid_login(self): """Submit the login form with an invalid login.""" self.login(self.username, self.password[1:]) error = WebDriverWait(self.browser, 5).until( expected_conditions.presence_of_element_located((By.CLASS_NAME, 'error'))) self.assertEqual('Invalid username/password', error.text) form = self.browser.find_element_by_id('login') self.assertTrue(form.is_displayed(), 'Login form should still be visible.') def test_browse_files(self): """Browse existing uploads.""" _, test_file = tempfile.mkstemp(dir=self.temp_dir) self.login(self.username, self.password) element = WebDriverWait(self.browser, 5).until( expected_conditions.presence_of_element_located((By.CLASS_NAME, 'file'))) self.assertIn(os.path.basename(test_file), element.text) def test_file_delete(self): """Delete uploaded file.""" _, test_file = tempfile.mkstemp(dir=self.temp_dir) self.login(self.username, self.password) element = WebDriverWait(self.browser, 5).until( expected_conditions.presence_of_element_located((By.CLASS_NAME, 'file'))) element.find_element_by_class_name('delete').click() self.browser.implicitly_wait(1) with self.assertRaises(NoSuchElementException): self.browser.find_element_by_class_name('file') self.assertFalse(os.path.exists(test_file)) def upload(self, filepath): # Create file input for fake drag and drop self.browser.execute_script(''' input = $('<input>', {id: 'seleniumUpload', type: 'file'}).appendTo('body'); '''); self.browser.find_element_by_id('seleniumUpload').send_keys(filepath) # Fake a file drag and drop event self.browser.execute_script(''' event = $.Event('drop'); event.originalEvent = { dataTransfer: {files: input.get(0).files} }; $('#upload').trigger(event); '''); def test_file_upload(self): """Drag and drop a new file upload.""" self.login(self.username, self.password) _, test_file = tempfile.mkstemp() with open(test_file, 'w') as f: f.write('XXX') self.upload(test_file) element = WebDriverWait(self.browser, 5).until( expected_conditions.presence_of_element_located((By.CLASS_NAME, 'file'))) self.assertIn(os.path.basename(test_file), element.text) def test_invalid_file(self): """Drag and drop a new file upload.""" self.login(self.username, self.password) _, test_file = tempfile.mkstemp() self.upload(test_file) element = WebDriverWait(self.browser, 5).until( expected_conditions.presence_of_element_located((By.CLASS_NAME, 'error'))) self.assertEqual('The submitted file is empty.', element.text)
python
{ "id": 27917, "citation_title": "The Micro Anatomy of Macro Consumption Adjustments", "citation_author": [ "<NAME>", "<NAME>", "<NAME>" ], "citation_publication_date": "2020-10-12", "issue_date": "2020-10-08", "revision_date": "None", "topics": [ "Macroeconomics", "Consumption and Investment", "Fiscal Policy", "International Economics", "International Macroeconomics" ], "program": [ "Economic Fluctuations and Growth", "International Finance and Macroeconomics", "Monetary Economics" ], "projects": null, "working_groups": null, "abstract": "\n\nWe study crises characterized by large adjustments of aggregate consumption through their microlevel patterns. We show that leading theories designed to explain aggregate consumption dynamics differ markedly in their cross-sectional predictions. While theories based on financial frictions predict that rich households with liquid assets should be able to smooth consumption during bad times, neoclassical theories predict that these agents would optimally adjust their consumption if crises severely affect their permanent income. Using microlevel data on several episodes of large aggregate-consumption adjustment, we document that rich households significantly adjust consumption relative to their income, consistent with the permanent-income hypothesis of consumption during crises. We discuss our findings' implications for the effectiveness of stabilization policies that target consumption during crises.\n\n", "acknowledgement": "\nWe thank <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and the participants of various seminars and conferences for useful comments and suggestions. The views expressed herein are those of the authors and do not necessarily reflect the views of the National Bureau of Economic Research.\n\n\n" }
json
زەبوورێکی داود. 23 یەزدان شوانی منە، پێویستم بە هیچ نابێت. 3 گیانم دەبووژێنێتەوە. لە پێناوی ناوی خۆی. گۆچان و داردەستەکەت دڵنەواییم دەکەن. جامەکەم لێوانلێو دەکەیت. بۆ هەتاهەتایە لە ماڵی یەزدان دەژیم. A psalm of David. 1 The Lord is my shepherd,(A) I lack nothing.(B) 2 He makes me lie down in green pastures, he leads me beside quiet waters,(C) 3 he refreshes my soul.(D) He guides me(E) along the right paths(F) for his name’s sake.(G) through the darkest valley,[a](H) I will fear no evil,(I) for you are with me;(J) your rod and your staff, they comfort me. Holy Bible, Kurdi Sorani Standard Copyright © 1998, 2011, 2016 by Biblica, Inc.® All rights reserved worldwide. Holy Bible, New International Version®, NIV® Copyright ©1973, 1978, 1984, 2011 by Biblica, Inc.® Used by permission. All rights reserved worldwide. NIV Reverse Interlinear Bible: English to Hebrew and English to Greek. Copyright © 2019 by Zondervan.
english
from django.contrib import admin from . import models # Register your models here. @admin.register(models.PHR) class AuthorAdmin(admin.ModelAdmin): list_display = ('first_name', 'last_name')
python
<filename>package.json { "name": "mh-self-declare", "version": "0.0.1", "description": "To perform taxes declaration automatically", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "<NAME>", "license": "ISC", "dependencies": { "@sendgrid/mail": "^7.4.2", "dotenv": "^8.2.0", "puppeteer": "^8.0.0" } }
json
version https://git-lfs.github.com/spec/v1 oid sha256:14dd87f74d18824f713841ab3953328d3eec0402a6dd445a7272fcbbedb41aa6 size 673780
json
<reponame>JamesGDiaz/ccxws /* eslint-disable no-sparse-arrays */ import { CircularBuffer } from "../../src/flowcontrol/CircularBuffer"; import { expect } from "chai"; describe("CircularBuffer", () => { it("empty read returns undefined", () => { const sut = new CircularBuffer(4); expect(sut.read()).to.be.undefined; }); it("empty read after values", () => { const sut = new CircularBuffer(4); sut.write(1); expect(sut.read()).to.equal(1); expect(sut.read()).to.be.undefined; }); it("multi enq/deq", () => { const sut = new CircularBuffer(4); sut.write(0); sut.write(1); expect(sut.read()).to.equal(0); expect(sut.read()).to.equal(1); }); it("multi enq/deq max", () => { const sut = new CircularBuffer(4); sut.write(0); sut.write(1); sut.write(2); expect(sut.read()).to.equal(0); expect(sut.read()).to.equal(1); expect(sut.read()).to.equal(2); }); it("multi enq/deq repeatedly", () => { const sut = new CircularBuffer(4); for (let i = 0; i < 1024; i++) { sut.write(0); sut.write(1); expect(sut.read()).to.equal(0); expect(sut.read()).to.equal(1); } }); it("cycle 1", () => { const sut = new CircularBuffer(4); expect(sut.write(0)).to.be.true; expect(sut.write(1)).to.be.true; expect(sut.write(2)).to.be.true; expect(sut.write(3)).to.be.false; expect(sut.buffer).to.deep.equal([undefined, 0, 1, 2]); }); it("cycle 2", () => { const sut = new CircularBuffer(4); expect(sut.write(0)).to.be.true; expect(sut.write(1)).to.be.true; expect(sut.write(2)).to.be.true; sut.read(); expect(sut.write(3)).to.be.true; expect(sut.buffer).to.deep.equal([3, undefined, 1, 2]); expect(sut.write(4)).to.be.false; }); it("cycle 3", () => { const sut = new CircularBuffer(4); expect(sut.write(0)).to.be.true; expect(sut.write(1)).to.be.true; expect(sut.write(2)).to.be.true; sut.read(); expect(sut.write(3)).to.be.true; expect(sut.buffer).to.deep.equal([3, undefined, 1, 2]); sut.read(); expect(sut.write(4)).to.be.true; expect(sut.buffer).to.deep.equal([3, 4, undefined, 2]); expect(sut.write(5)).to.be.false; }); it("cycle 4", () => { const sut = new CircularBuffer(4); expect(sut.write(0)).to.be.true; expect(sut.write(1)).to.be.true; expect(sut.write(2)).to.be.true; sut.read(); expect(sut.write(3)).to.be.true; expect(sut.buffer).to.deep.equal([3, undefined, 1, 2]); sut.read(); expect(sut.write(4)).to.be.true; expect(sut.buffer).to.deep.equal([3, 4, undefined, 2]); sut.read(); expect(sut.write(5)).to.be.true; expect(sut.buffer).to.deep.equal([3, 4, 5, undefined]); expect(sut.write(6)).to.be.false; }); it("cycle 5", () => { const sut = new CircularBuffer(4); expect(sut.write(0)).to.be.true; expect(sut.write(1)).to.be.true; expect(sut.write(2)).to.be.true; sut.read(); expect(sut.write(3)).to.be.true; expect(sut.buffer).to.deep.equal([3, undefined, 1, 2]); sut.read(); expect(sut.write(4)).to.be.true; expect(sut.buffer).to.deep.equal([3, 4, undefined, 2]); sut.read(); expect(sut.write(5)).to.be.true; expect(sut.buffer).to.deep.equal([3, 4, 5, undefined]); sut.read(); expect(sut.write(6)).to.be.true; expect(sut.buffer).to.deep.equal([undefined, 4, 5, 6]); expect(sut.write(7)).to.be.false; }); it("fills and empties", () => { const sut = new CircularBuffer(4); expect(sut.write(0)).to.be.true; expect(sut.write(1)).to.be.true; expect(sut.write(2)).to.be.true; expect(sut.read()).to.equal(0); expect(sut.read()).to.equal(1); expect(sut.read()).to.equal(2); expect(sut.write(3)).to.be.true; expect(sut.write(4)).to.be.true; expect(sut.read()).to.equal(3); expect(sut.read()).to.equal(4); expect(sut.write(5)).to.be.true; expect(sut.read()).to.equal(5); expect(sut.write(6)).to.be.true; expect(sut.read()).to.equal(6); expect(sut.write(7)).to.be.true; expect(sut.read()).to.equal(7); expect(sut.write(8)).to.be.true; expect(sut.read()).to.equal(8); }); it("full cycles", () => { const sut = new CircularBuffer(4); sut.write("a"); sut.write("b"); sut.write("c"); for (let i = 0; i < 1000; i++) { const a = sut.read(); const b = sut.read(); const c = sut.read(); expect(a).to.equal("a"); expect(b).to.equal("b"); expect(c).to.equal("c"); sut.write(a); sut.write(b); sut.write(c); expect(sut.write("nope")).to.be.false; } }); it("partial cycles", () => { const sut = new CircularBuffer(8); sut.write("a"); sut.write("b"); sut.write("c"); for (let i = 0; i < 10000; i++) { const a = sut.read(); const b = sut.read(); const c = sut.read(); expect(a).to.equal("a"); expect(b).to.equal("b"); expect(c).to.equal("c"); sut.write(a); sut.write(b); sut.write(c); } }); });
typescript
जवान का धमाका: 10 मिनट में दीपिका ने लूटी महफिल, सबसे बड़ा सरप्राइज है 'मुन्ना भाई' Follow Us On: Jawan का धमाका: 10 मिनट में Deepika ने लूटी महफिल, सबसे बड़ा Surprise है 'Munna Bhai' Special Briefing on the Visit of President of Maldives to India (August 02, 2022) Kriti Sanon recently unveiled the Skechers Walkathon in Mumbai and when we caught up with the now National Award winning actress, we did a super fun Rapid Fire. From discussing what she, Kareena Kapoor Khan and Tabu bond over to revealing what she loves, hates and tolerates about her co-stars Prabhas, Varun Dhawan and Kartik Aaryan, she aces it. She also gives an insight on the dating rumours and explains why she wants to steal Gangubai Kathiawadi #from her fellow National Awardee colleague Alia Bhatt. Watch the video to know more. Check out the video to know more. SUBSCRIBE To Bollywood Bubble: Also, Visit - https://www.bollywoodbubble.com . One stop Destination for Latest Bollywood Updates. Click on the Subscribe Button NOW and Stay Tuned. Product Links : PS - My channel is dedicated to my much beloved n most missed Father - Mr. Kulwant Singh. He was, is and will always be in my heart to heal it whenever it gets hurt. He's living this life through me. A River's Story - The Quest for the Brahmaputra, 'The Quest for the Brahmaputra' is a journey along the course of Brahmaputra, the largest river in India. Originating from Tibet as river Tsang-Po, Brahmaputra travels through the hills and plateaus of Tibet, entering the plains of Assam and finally merges with the Bay of Bengal through Bangladesh. Changing its name six times throughout its journey, the Brahmaputra is equivalent to Navarasa, the nine emotions; sometimes calm and silent, as if in a meditative mood, sometimes destructive like a monster. The film portrays the culture and livelihoods that have flourished along the river. Over half a million people are dependent on the river, which also has religious importance in their lives 'The Quest for the Brahmaputra' is a quest that ends with the silent answer from a fisherman, when asked about their dependence even though the river is so destructive.
english
The main attraction for WWE’s Royal Rumble has always been the big battle royal which gives the winner a title shot and a place in the main event of WrestleMania. But one aspect of the pay-per-view that doesn’t get the deserved limelight is the matches being fought for the coveted titles in the company. Down its history, Royal Rumble has produced some epic encounters apart from the battle royal. And as the annual event approaches closer, here is a look back at those matches that made the headlines even without being the theme of the show. 5- John Cena vs. Umaga (2007) This match was a depiction of how the monster characters would be used properly in the wrestling business. Though it may sound comic, Cena went into the match like a superhero to put an end to the monster who was causing chaos. The last man standing match surprisingly produced the goods despite a comic plot and ended up as one of the most cruel and intense matches in the history of Royal Rumble. Umaga wasn’t one of those main event stars in the business and that hurt the match a bit. the match ended when a bloodied Cena choked Umaga with the ring ropes making the monster split blood and unable to answer the ten count. 4-Triple H vs. Cactus Jack (2000) Mick Foley’s Cactus Jack was one of those gimmicks which stands out from the rest mainly because of the development it had along with the brilliance of Foley himself. And one of the feuds that redefined the character was with Triple H in the start of the century. This street fight had a lot of buildup unlike the new age storylines. Triple H was portrayed as an arrogant champion when Jack was more unique than the last man on earth. The barb wires and thumbtacks ripped flesh for 30 grueling minutes before Triple H gave Jack a pedigree through the thumbtacks for a win. 3- The Rock vs. Mankind (1999) It’s just one of those examples showing why Mick Foley is considered as a Hardcore Legend. He went against The Rock in an I quit match for the WWE Championship on the 12th annual Royal Rumble and gave the fans a memorable encounter. Most of the match happened outside the ring when each men would go through immense punishment to please the fans. The match went to and fro with a lot of entertainment value and the Mankind never admitted that he quit but ended up on the losing side when the audio of Mick screaming I quit was played so that the Rock could win. 2- Triple H vs. Shawn Michaels (2004) It’s no secret that these two could make stars shine on the earth when pitted against each other. The match was being fought for the World Heavyweight Championship but the deep currents of emotions took the centre-stage than the title itself. The excellent angle of friends turning into enemies was pulled off with such precision that the fans still drool when thinking about this feud. Both men painted the canvas red in this last man standing match but the match failed to produce a winner and ended in a draw. The lack of a proper result doesn’t hinder the place that this match has in the history of the pay-per-view instead it led to another great match when the duo would go against Chris Benoit in a triple threat match at the twentieth anniversary of WrestleMania. 1- Chris Benoit vs. Kurt Angle (2003) The match didn’t have any special stipulations like the other matches on the list but technical maestros like Kurt Angle and Chris Benoit proved that they only need a canvas to paint a masterpiece. The match came amidst of Angle forming Team Angle to avoid facing Brock Lesnar while Benoit was someone pursuing his destiny to win the title. The match was at the epitome of technical wrestling as both men exchanged suplexes and submissions with pin point perfection. The adrenaline pumping action would keep the energy levels up from the first bell to the last till Benoit tapped out to an Angle lock just after an Angle slam from the top rope. The matches in the future would have a tough time surpassing this epic which showed that wrestling doesn’t need to have chair shots and blood to be entertaining.
english
''' ------------------------------------- Assignment 2 - EE2703 (Jan-May 2020) Done by <NAME> (EE18B122) Created on 18/01/20 Last Modified on 04/02/20 ------------------------------------- ''' # importing necessary libraries import sys import cmath import numpy as np import pandas as pd # To improve readability CIRCUIT_START = ".circuit" CIRCUIT_END = ".end" RESISTOR = "R" CAPACITOR = "C" INDUCTOR = "L" IVS = "V" ICS = "I" VCVS = "E" VCCS = "G" CCVS = "H" CCCS = "F" PI = np.pi # Classes for each circuit component class resistor: def __init__(self, name, n1, n2, val): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 class inductor: def __init__(self, name, n1, n2, val): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 class capacitor: def __init__(self, name, n1, n2, val): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 class voltageSource: def __init__(self, name, n1, n2, val, phase=0): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 self.phase = float(phase) class currentSource: def __init__(self, name, n1, n2, val, phase=0): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 self.phase = float(phase) class vcvs: def __init__(self, name, n1, n2, n3, n4, val): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 self.node3 = n3 self.node4 = n4 class vccs: def __init__(self, name, n1, n2, n3, n4, val): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 self.node3 = n3 self.node4 = n4 class ccvs: def __init__(self, name, n1, n2, vName, val): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 self.vSource = vName class cccs: def __init__(self, name, n1, n2, vName, val): self.name = name self.value = enggToMath(val) self.node1 = n1 self.node2 = n2 self.vSource = vName # Convert a number in engineer's format to math def enggToMath(enggNumber): try: return float(enggNumber) except: lenEnggNumber = len(enggNumber) # Kilo if enggNumber[lenEnggNumber-1] == 'k': base = int(enggNumber[0:lenEnggNumber-1]) return base*1e3 # Milli elif enggNumber[lenEnggNumber-1] == 'm': base = int(enggNumber[0:lenEnggNumber-1]) return base*1e-3 # Micro elif enggNumber[lenEnggNumber-1] == 'u': base = int(enggNumber[0:lenEnggNumber-1]) return base*1e-6 # Nano elif enggNumber[lenEnggNumber-1] == 'n': base = int(enggNumber[0:lenEnggNumber-1]) return base*1e-9 # Mega elif enggNumber[lenEnggNumber-1] == 'M': base = int(enggNumber[0:lenEnggNumber-1]) return base*1e6 else: sys.exit("Please check the component values given. Supported engineer units are: M, k, m, u, n\nYou can also enter values in exponential format (eg. 1e3 = 1000).") if __name__ == "__main__": # checking number of command line arguments if len(sys.argv)!=2 : sys.exit("Invalid number of arguments!") else: try: circuitFile = sys.argv[1] circuitFreq = 1e-100 circuitComponents = { RESISTOR: [], CAPACITOR: [], INDUCTOR: [], IVS: [], ICS: [], VCVS: [], VCCS: [], CCVS: [], CCCS: [] } circuitNodes = [] # checking if given netlist file is of correct type if (not circuitFile.endswith(".netlist")): print("Wrong file type!") else: netlistFileLines = [] with open (circuitFile, "r") as f: for line in f.readlines(): netlistFileLines.append(line.split('#')[0].split('\n')[0]) # Getting frequency, if any if(line[:3] == '.ac'): circuitFreq = float(line.split()[2]) # Setting Angular Frequency w w = 2*PI*circuitFreq try: # Finding the location of the identifiers identifier1 = netlistFileLines.index(CIRCUIT_START) identifier2 = netlistFileLines.index(CIRCUIT_END) circuitBody = netlistFileLines[identifier1+1:identifier2] for line in circuitBody: # Extracting the data from the line lineTokens = line.split() # Appending new nodes to a list try: if lineTokens[1] not in circuitNodes: circuitNodes.append(lineTokens[1]) if lineTokens[2] not in circuitNodes: circuitNodes.append(lineTokens[2]) except IndexError: continue # Resistor if lineTokens[0][0] == RESISTOR: circuitComponents[RESISTOR].append(resistor(lineTokens[0], lineTokens[1], lineTokens[2], lineTokens[3])) # Capacitor elif lineTokens[0][0] == CAPACITOR: circuitComponents[CAPACITOR].append(capacitor(lineTokens[0], lineTokens[1], lineTokens[2], lineTokens[3])) # Inductor elif lineTokens[0][0] == INDUCTOR: circuitComponents[INDUCTOR].append(inductor(lineTokens[0], lineTokens[1], lineTokens[2], lineTokens[3])) # Voltage Source elif lineTokens[0][0] == IVS: if len(lineTokens) == 5: # DC Source circuitComponents[IVS].append(voltageSource(lineTokens[0], lineTokens[1], lineTokens[2], float(lineTokens[4]))) elif len(lineTokens) == 6: # AC Source if circuitFreq == 1e-100: sys.exit("Frequency of AC Source not specified!!") circuitComponents[IVS].append(voltageSource(lineTokens[0], lineTokens[1], lineTokens[2], float(lineTokens[4])/2, lineTokens[5])) # Current Source elif lineTokens[0][0] == ICS: if len(lineTokens) == 5: # DC Source circuitComponents[ICS].append(currentSource(lineTokens[0], lineTokens[1], lineTokens[2], float(lineTokens[4]))) elif len(lineTokens) == 6: # AC Source if circuitFreq == 1e-100: sys.exit("Frequency of AC Source not specified!!") circuitComponents[ICS].append(currentSource(lineTokens[0], lineTokens[1], lineTokens[2], float(lineTokens[4])/2, lineTokens[5])) # VCVS elif lineTokens[0][0] == VCVS: circuitComponents[VCVS].append(vcvs(lineTokens[0], lineTokens[1], lineTokens[2], lineTokens[3], lineTokens[4], lineTokens[5])) # VCCS elif lineTokens[0][0] == VCCS: circuitComponents[VCCS].append(vcvs(lineTokens[0], lineTokens[1], lineTokens[2], lineTokens[3], lineTokens[4], lineTokens[5])) # CCVS elif lineTokens[0][0] == CCVS: circuitComponents[CCVS].append(ccvs(lineTokens[0], lineTokens[1], lineTokens[2], lineTokens[3], lineTokens[4])) # CCCS elif lineTokens[0][0] == CCCS: circuitComponents[CCCS].append(cccs(lineTokens[0], lineTokens[1], lineTokens[2], lineTokens[3], lineTokens[4])) # Erroneous Component Name else: sys.exit("Wrong Component Given. ABORT!") try: circuitNodes.remove('GND') circuitNodes = ['GND'] + circuitNodes except: sys.exit("No ground node specified in the circuit!!") # Creating a dictionary with node names and their numbers (to reduce the time taken by later parts of the program) nodeNumbers = {circuitNodes[i]:i for i in range(len(circuitNodes))} numNodes = len(circuitNodes) numVS = len(circuitComponents[IVS])+len(circuitComponents[VCVS])+len(circuitComponents[CCVS]) # Creating Matrices M and b matrixM = np.zeros((numNodes+numVS, numNodes+numVS), np.complex) matrixB = np.zeros((numNodes+numVS,), np.complex) # GND Equation matrixM[0][0] = 1.0 # Resistor Equations for r in circuitComponents[RESISTOR]: if r.node1 != 'GND': matrixM[nodeNumbers[r.node1]][nodeNumbers[r.node1]] += 1/r.value matrixM[nodeNumbers[r.node1]][nodeNumbers[r.node2]] -= 1/r.value if r.node2 != 'GND': matrixM[nodeNumbers[r.node2]][nodeNumbers[r.node1]] -= 1/r.value matrixM[nodeNumbers[r.node2]][nodeNumbers[r.node2]] += 1/r.value # Capacitor Equations for c in circuitComponents[CAPACITOR]: if c.node1 != 'GND': matrixM[nodeNumbers[c.node1]][nodeNumbers[c.node1]] += complex(0, w*c.value) matrixM[nodeNumbers[c.node1]][nodeNumbers[c.node2]] -= complex(0, w*c.value) if c.node2 != 'GND': matrixM[nodeNumbers[c.node2]][nodeNumbers[c.node1]] -= complex(0, w*c.value) matrixM[nodeNumbers[c.node2]][nodeNumbers[c.node2]] += complex(0, w*c.value) # Inductor Equations for l in circuitComponents[INDUCTOR]: if l.node1 != 'GND': matrixM[nodeNumbers[l.node1]][nodeNumbers[l.node1]] += complex(0, -1.0/(w*l.value)) matrixM[nodeNumbers[l.node1]][nodeNumbers[l.node2]] -= complex(0, -1.0/(w*l.value)) if l.node2 != 'GND': matrixM[nodeNumbers[l.node2]][nodeNumbers[l.node1]] -= complex(0, -1.0/(w*l.value)) matrixM[nodeNumbers[l.node2]][nodeNumbers[l.node2]] += complex(0, -1.0/(w*l.value)) # Voltage Source Equations for i in range(len(circuitComponents[IVS])): # Equation accounting for current through the source if circuitComponents[IVS][i].node1 != 'GND': matrixM[nodeNumbers[circuitComponents[IVS][i].node1]][numNodes+i] = 1.0 if circuitComponents[IVS][i].node2 != 'GND': matrixM[nodeNumbers[circuitComponents[IVS][i].node2]][numNodes+i] = -1.0 # Auxiliary Equations matrixM[numNodes+i][nodeNumbers[circuitComponents[IVS][i].node1]] = -1.0 matrixM[numNodes+i][nodeNumbers[circuitComponents[IVS][i].node2]] = +1.0 matrixB[numNodes+i] = cmath.rect(circuitComponents[IVS][i].value, circuitComponents[IVS][i].phase*PI/180) # Current Source Equations for i in circuitComponents[ICS]: if i.node1 != 'GND': matrixB[nodeNumbers[i.node1]] = -1*i.value if i.node2 != 'GND': matrixB[nodeNumbers[i.node2]] = i.value # VCVS Equations for i in range(len(circuitComponents[VCVS])): # Equation accounting for current through the source if circuitComponents[VCVS][i].node1 != 'GND': matrixM[nodeNumbers[circuitComponents[VCVS][i].node1]][numNodes+len(circuitComponents[IVS])+i] = 1.0 if circuitComponents[VCVS][i].node2 != 'GND': matrixM[nodeNumbers[circuitComponents[VCVS][i].node2]][numNodes+len(circuitComponents[IVS])+i] = -1.0 matrixM[numNodes+len(circuitComponents[IVS])+i][nodeNumbers[circuitComponents[VCVS][i].node1]] = 1.0 matrixM[numNodes+len(circuitComponents[IVS])+i][nodeNumbers[circuitComponents[VCVS][i].node2]] = -1.0 matrixM[numNodes+len(circuitComponents[IVS])+i][nodeNumbers[circuitComponents[VCVS][i].node3]] = -1.0*circuitComponents[VCVS][i].value matrixM[numNodes+len(circuitComponents[IVS])+i][nodeNumbers[circuitComponents[VCVS][i].node4]] = 1.0*circuitComponents[VCVS][i].value # CCVS Equations for i in range(len(circuitComponents[CCVS])): # Equation accounting for current through the source if circuitComponents[VCVS][i].node1 != 'GND': matrixM[nodeNumbers[circuitComponents[CCVS][i].node1]][numNodes+len(circuitComponents[IVS])+len(circuitComponents[VCVS])+i] = 1.0 if circuitComponents[VCVS][i].node2 != 'GND': matrixM[nodeNumbers[circuitComponents[VCVS][i].node2]][numNodes+len(circuitComponents[IVS])+len(circuitComponents[VCVS])+i] = -1.0 matrixM[numNodes+len(circuitComponents[IVS])+len(circuitComponents[VCVS])+i][nodeNumbers[circuitComponents[CCVS][i].node1]] = 1.0 matrixM[numNodes+len(circuitComponents[IVS])+len(circuitComponents[VCVS])+i][nodeNumbers[circuitComponents[CCVS][i].node2]] = -1.0 matrixM[numNodes+len(circuitComponents[IVS])+len(circuitComponents[VCVS])+i][numNodes+len(circuitComponents[IVS])+len(circuitComponents[VCVS])+i] = -1.0*circuitComponents[CCVS][i].value # VCCS Equations for vccs in circuitComponents[VCCS]: if vccs.node1 != 'GND': matrixM[nodeNumbers[vccs.node1]][nodeNumbers[vccs.node4]]+=vccs.value matrixM[nodeNumbers[vccs.node1]][nodeNumbers[vccs.node3]]-=vccs.value if vccs.node2 != 'GND': matrixM[nodeNumbers[vccs.node2]][nodeNumbers[vccs.node4]]-=vccs.value matrixM[nodeNumbers[vccs.node3]][nodeNumbers[vccs.node3]]+=vccs.value # CCCS Equations for cccs in circuitComponents[CCCS]: def getIndexIVS(vName): for i in range(len(circuitComponents[IVS])): if circuitComponents[IVS][i].name == vName: return i if cccs.node1 != 'GND': matrixM[nodeNumbers[cccs.node1]][numNodes+getIndexIVS(cccs.vSource)]-=cccs.value if cccs.node2 != 'GND': matrixM[nodeNumbers[cccs.node2]][numNodes+getIndexIVS(cccs.vSource)]+=cccs.value try: x = np.linalg.solve(matrixM, matrixB) circuitCurrents = [] # Formatting Output Data for v in circuitComponents[IVS]: circuitCurrents.append("current in "+v.name) for v in circuitComponents[VCVS]: circuitCurrents.append("current in "+v.name) for v in circuitComponents[CCVS]: circuitCurrents.append("current in "+v.name) # Printing output in table format print(pd.DataFrame(x, circuitNodes+circuitCurrents, columns=['Voltage / Current'])) print("The values given above are AMPLITUDE values and NOT RMS values.") except np.linalg.LinAlgError: sys.exit("Singular Matrix Formed! Please check if you have entered the circuit definition correctly!") except ValueError: sys.exit("Netlist does not abide to given format!") except FileNotFoundError: sys.exit("Given file does not exist!")
python
<gh_stars>0 package br.com.finances.config.errors; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityExistsException; import org.springframework.http.HttpStatus; import org.springframework.validation.FieldError; import org.springframework.web.bind.MethodArgumentNotValidException; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.RestControllerAdvice; @RestControllerAdvice public class ErrorHandler { @ResponseStatus(code = HttpStatus.BAD_REQUEST) @ExceptionHandler(MethodArgumentNotValidException.class) public List<ErrorFormDTO> handle(MethodArgumentNotValidException exception) { List<ErrorFormDTO> errorFormDto = new ArrayList<>(); List<FieldError> fieldErrors = exception.getBindingResult().getFieldErrors(); fieldErrors.forEach(e -> { errorFormDto.add(new ErrorFormDTO(e.getField(), e.getDefaultMessage())); }); return errorFormDto; } @ResponseStatus(code = HttpStatus.BAD_REQUEST) @ExceptionHandler(EntityExistsException.class) public ErrorDTO handle(EntityExistsException exception) { return new ErrorDTO("There is already an entity with this description in this month registered."); } @ResponseStatus(code = HttpStatus.BAD_REQUEST) @ExceptionHandler(EmailAlreadyRegisteredException.class) public ErrorDTO handle(EmailAlreadyRegisteredException exception) { return new ErrorDTO("There is already a client with this email registered."); } }
java
H. Saint John Philby, (born April 3, 1885, Saint Johns, Badula, Ceylon [now Sri Lanka]—died September 30, 1960, Beirut, Lebanon), British explorer and Arabist, the first European to cross the Rubʿ al-Khali, or Empty Quarter, of Arabia from east to west. Philby was educated at Trinity College, Cambridge, and joined the Indian Civil Service in 1907. In 1917, as political officer of the Mesopotamian Expeditionary force, he was dispatched on a diplomatic mission to ʿAbd al-ʿAzīz ibn Saʿūd. After meeting with the future king of Saudi Arabia, he crossed the desert from Al-ʿUqayr to Jidda—an exploit recorded in his book, Heart of Arabia (1922). Philby succeeded T.E. Lawrence as chief British representative in Transjordan (1921–24) but resigned to establish a business in Arabia. He was an unofficial adviser of Ibn Saʿūd and converted to Islam in 1930. After an unsuccessful foray into politics in England in 1939 and a brief incarceration there in 1940 because of his antiwar views, Philby returned to Arabia in 1945. Ten years later he was expelled because of his public criticism of the inefficiency and extravagance of the oil-enriched Saʿūdi regime. Philby made important contributions based on his Arabian explorations to the fields of archaeology, cartography, and linguistics. His son, Kim Philby, became a Soviet agent within the British intelligence service.
english
<reponame>ishine/DiffSinger-1 import re from data_gen.tts.data_gen_utils import PUNCS from g2p_en import G2p import unicodedata from g2p_en.expand import normalize_numbers from nltk import pos_tag from nltk.tokenize import TweetTokenizer from data_gen.tts.txt_processors.base_text_processor import BaseTxtProcessor class EnG2p(G2p): word_tokenize = TweetTokenizer().tokenize def __call__(self, text): # preprocessing words = EnG2p.word_tokenize(text) tokens = pos_tag(words) # tuples of (word, tag) # steps prons = [] for word, pos in tokens: if re.search("[a-z]", word) is None: pron = [word] elif word in self.homograph2features: # Check homograph pron1, pron2, pos1 = self.homograph2features[word] if pos.startswith(pos1): pron = pron1 else: pron = pron2 elif word in self.cmu: # lookup CMU dict pron = self.cmu[word][0] else: # predict for oov pron = self.predict(word) prons.extend(pron) prons.extend([" "]) return prons[:-1] class TxtProcessor(BaseTxtProcessor): g2p = EnG2p() @staticmethod def preprocess_text(text): text = normalize_numbers(text) text = ''.join(char for char in unicodedata.normalize('NFD', text) if unicodedata.category(char) != 'Mn') # Strip accents text = text.lower() text = re.sub("[\'\"()]+", "", text) text = re.sub("[-]+", " ", text) text = re.sub(f"[^ a-z{PUNCS}]", "", text) text = re.sub(f" ?([{PUNCS}]) ?", r"\1", text) # !! -> ! text = re.sub(f"([{PUNCS}])+", r"\1", text) # !! -> ! text = text.replace("i.e.", "that is") text = text.replace("i.e.", "that is") text = text.replace("etc.", "etc") text = re.sub(f"([{PUNCS}])", r" \1 ", text) text = re.sub(rf"\s+", r" ", text) return text @classmethod def process(cls, txt, pre_align_args): txt = cls.preprocess_text(txt).strip() phs = cls.g2p(txt) phs_ = [] n_word_sep = 0 for p in phs: if p.strip() == '': phs_ += ['|'] n_word_sep += 1 else: phs_ += p.split(" ") phs = phs_ assert n_word_sep + 1 == len(txt.split(" ")), (phs, f"\"{txt}\"") return phs, txt
python
import * as typeormconfigoptions from './ormconfig'; import { CellModule } from './cell/cell.module'; import { ConfigServiceModule } from './config-service/config-service.module'; import { Module } from '@nestjs/common'; import { SudokuModule } from './sudoku/sudoku.module'; import { TypeOrmModule, TypeOrmModuleAsyncOptions } from '@nestjs/typeorm'; @Module({ imports: [ // ServeStaticModule.forRoot({ // rootPath: join(__dirname, '..', 'public'), // }), TypeOrmModule.forRootAsync({ useFactory: async () => typeormconfigoptions as TypeOrmModuleAsyncOptions, }), ConfigServiceModule, SudokuModule, CellModule, ], }) export class AppModule {}
typescript
Union minister of state for defence Ajay Bhatt , who is on a two-day visit to Kashmir, visited a forward post on the Line of Control on Sunday, a day after reviewing the security situation in Kashmir. On his arrival on Saturday, Bhatt was received by GOC Chinar Corps Lt Gen DP Pandey and was briefed about the existing security situation and the measures being taken to safeguard the border and hinterland from adversaries, Col Emron Musavi, PRO (defence), Srinagar, said. The minister was briefed on the efforts of the Army to identify and target overground workers (OGWs) who are involved in radicalisation and recruitment of youths into terrorist ranks, he said. While interacting with troops, the minister expressed his appreciation towards the Indian Army. Bhatt “reinforced the need to be prepared to meet emerging security challenges effectively”, the spokesman said. The minister also laid a wreath at Chinar Corps War Memorial.
english
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-q6x4-wf9q-6g23", "modified": "2022-04-14T00:00:44Z", "published": "2022-04-03T00:00:57Z", "aliases": [ "CVE-2022-28352" ], "details": "WeeChat (aka Wee Enhanced Environment for Chat) 3.2 to 3.4 before 3.4.1 does not properly verify the TLS certificate of the server, after certain GnuTLS options are changed, which allows man-in-the-middle attackers to spoof a TLS chat server via an arbitrary certificate. NOTE: this only affects situations where weechat.network.gnutls_ca_system or weechat.network.gnutls_ca_user is changed without a WeeChat restart.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N" } ], "affected": [ ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-28352" }, { "type": "WEB", "url": "https://github.com/weechat/weechat/issues/1763" }, { "type": "WEB", "url": "https://weechat.org/doc/security/WSA-2022-1/" } ], "database_specific": { "cwe_ids": [ "CWE-295" ], "severity": "MODERATE", "github_reviewed": false } }
json
G. Suvarna Panda Das . ‘Smart city’ concept is catching up, says Municipal Commissioner. The Vijayawada Municipal Corporation is working on an Intelligent Traffic Management System to be introduced on the BRTS Road. Association of India). developing a city. Visionary leaders, said Mr. Das, long-term benefits. where people can distress,” he suggested. and resource generation. urinals were among his other proposals. developers take up projects there. way for organised growth of the city. Satellite Township on Hyderabad road, construction of flyovers and expansion of Gannavaram airport were other demands. Andhra Chamber of Commerce and Industry president M. Murali Krishna and others were present.
english
<gh_stars>0 from flask import json, jsonify, request #Testes básicos para as rotas de CRUD def test_add_sala(client): response= client.post('/cadastrar_sala', data=json.dumps( {'nome': 'sala 31313'}), content_type='application/json') response= client.post('/cadastrar_sala', data=json.dumps( {'nome': 'sala 341'}), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_editar_sala(client): response= client.post('/editar_sala/1',data=json.dumps( {"novo_nome": 'tom'}), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_editar_sala_inexistente(client): response= client.post('/editar_sala/23',data=json.dumps( {"novo_nome": 'tom'}), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro' def test_apagar_sala(client): response= client.post('/cadastrar_sala', data=json.dumps( {'nome': 'sala 23'}), content_type='application/json') response= client.post('/apagar_sala/3',) data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_apagar_sala_inexistente(client): response= client.post('/apagar_sala/24',) data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro' def test_add_espaco_cafe(client): response= client.post('/cadastrar_espaco_cafe', data=json.dumps( {'nome': 'café 123'}), content_type='application/json') response= client.post('/cadastrar_espaco_cafe', data=json.dumps( {'nome': 'café 321'}), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_editar_espaco_cafe(client): response= client.post('/editar_cafe/1',data=json.dumps( {"novo_nome": 'café 22'}), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_editar_espaco_cafe_inexistente(client): response= client.post('/editar_cafe/21',data=json.dumps( {"novo_nome": 'tom'}), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro' def test_apagar_espaco_cafe(client): response= client.post('/cadastrar_espaco_cafe', data=json.dumps( {'nome': 'café 333'}), content_type='application/json') response= client.post('/apagar_espaco_cafe/3',) data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_apagar_espaco_cafe_inexistente(client): response= client.post('/apagar_espaco_cafe/99',) data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro' def test_add_pessoa(client): dados = {'cpf': '99112585483', 'nome': 'Carlos', 'sobrenome' : 'Silva', 'sala1_id' : 1, 'cafe1_id': 1, 'cafe2_id': 2, } response= client.post('/cadastrar_pessoa', data=json.dumps( dados ), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['detalhes'] == 'ok' def test_editar_pessoa(client): dados = {'novo_cpf': '34602355196', 'novo_nome': 'Augusto', 'novo_sobrenome' : 'Carara',} response= client.post('/editar_pessoa/99112585483', data=json.dumps( dados ), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_editar_pessoa_inexistente(client): dados = {'novo_cpf': '53847856677', 'novo_nome': 'Augusto', 'novo_sobrenome' : 'Carara',} response= client.post('/editar_pessoa/53847856677', data=json.dumps( dados ), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro' def test_apagar_pessoa(client): dados = {'cpf': '17715550175', 'nome': 'Geralt', 'sobrenome' : 'Rivia', 'sala1_id' : 1, 'cafe1_id': 1, 'cafe2_id': 2, } response= client.post('/cadastrar_pessoa', data=json.dumps( dados ), content_type='application/json') response= client.post('/apagar_pessoa/17715550175',) data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'ok' def test_apagar_pessoa_inexistente(client): response= client.post('/apagar_pessoa/9585785757',) data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro' def test_add_pessoa_badCPF(client): dados = {'cpf': 'awdawdawdawdawd', 'nome': 'Jonas', 'sobrenome' : 'Souza', 'sala1_id' : 2, 'cafe1_id': 1, 'cafe2_id': 2, } response= client.post('/cadastrar_pessoa', data=json.dumps( dados ), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro' def test_add_pessoa_cpf_repetido(client): dados = {'cpf': '34602355196', 'nome': 'Jonas', 'sobrenome' : 'Souza', 'sala1_id' : 2, 'cafe1_id': 1, 'cafe2_id': 2, } response= client.post('/cadastrar_pessoa', data=json.dumps( dados ), content_type='application/json') data = json.loads(response.get_data(as_text=True)) assert data['resultado'] == 'erro'
python
<gh_stars>0 package yokwe.stock.us.nasdaq; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.TreeMap; import yokwe.stock.us.Storage; import yokwe.util.CSVUtil; import yokwe.util.DoubleUtil; import yokwe.util.StringUtil; import yokwe.util.UnexpectedException; public class Dividend implements Comparable<Dividend> { private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Dividend.class); private static final String PATH_DIR = Storage.NASDAQ.getPath("div"); public static String getPath(String symbol) { return String.format("%s/%s.csv", PATH_DIR, symbol); } public static void save(Collection<Dividend> collection) { save(new ArrayList<>(collection)); } public static void save(List<Dividend> list) { if (list.isEmpty()) return; String symbol = list.get(0).symbol; // Sort before save Collections.sort(list); CSVUtil.write(Dividend.class).file(getPath(symbol), list); } public static List<Dividend> getList(String symbol) { List<Dividend> ret = CSVUtil.read(Dividend.class).file(getPath(symbol)); return ret == null ? new ArrayList<>() : ret; } public static Map<String, Dividend> getMap(String symbol) { // exDate Map<String, Dividend> ret = new TreeMap<>(); for(var e: getList(symbol)) { String exDate = e.exDate; if (ret.containsKey(exDate)) { logger.error("Duplicate exDate"); logger.error(" old {}", ret.get(exDate)); logger.error(" new {}", e); throw new UnexpectedException("Duplicate exDate"); } else { ret.put(exDate, e); } } return ret; } // "exOrEffDate":"10/27/2021","type":"CASH","amount":"$0.12","declarationDate":"01/18/2021","recordDate":"10/28/2021","paymentDate":"10/29/2021" public String symbol; // normalized symbol like TRNT-A and RDS.A not like TRTN^A and RDS/A public String type; @CSVUtil.DecimalPlaces(6) public double amount; public String declDate; // YYYY-MM-DD public String exDate; // YYYY-MM-DD public String recordDate; // YYYY-MM-DD public String payDate; // YYYY-MM-DD public Dividend(String symbol, String type, double amount, String declDate, String exDate, String recordDate, String payDate) { this.symbol = symbol == null ? null : symbol.trim(); this.type = type == null ? null : type.trim(); this.amount = DoubleUtil.roundQuantity(amount); this.declDate = declDate; this.exDate = exDate; this.recordDate = recordDate; this.payDate = payDate; } public Dividend() { this(null, null, 0, null, null, null, null); } @Override public String toString() { return StringUtil.toString(this); } @Override public int compareTo(Dividend that) { int ret = this.symbol.compareTo(that.symbol); if (ret == 0) ret= this.exDate.compareTo(that.exDate); return ret; } @Override public boolean equals(Object o) { if (o instanceof Dividend) { Dividend that = (Dividend) o; return this.symbol.equals(that.symbol) && this.type.equals(that.type) && DoubleUtil.isAlmostEqual(this.amount, that.amount) && this.declDate.equals(that.declDate) && this.exDate.equals(that.exDate) && this.recordDate.equals(that.recordDate) && this.payDate.equals(that.payDate); } else { return false; } } }
java
<gh_stars>1-10 // // Copyright 2021 Google LLC // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // package com.google.solutions.jitaccess.core.adapters; import org.junit.jupiter.api.Test; import java.time.Duration; import java.time.OffsetDateTime; import java.time.ZoneOffset; import static org.junit.jupiter.api.Assertions.*; public class TestIamConditions { // ------------------------------------------------------------------------- // isTemporaryConditionClause. // ------------------------------------------------------------------------- @Test public void whenExpressionIsNull_ThenIsTemporaryConditionClauseReturnsFalse() { assertFalse(IamConditions.isTemporaryConditionClause(null)); } @Test public void whenExpressionIsEmpty_ThenIsTemporaryConditionClauseReturnsFalse() { assertFalse(IamConditions.isTemporaryConditionClause("")); } @Test public void whenExpressionIsTemporaryCondition_ThenIsTemporaryConditionClauseReturnsTrue() { var clause = " (request.time >= timestamp(\"2020-01-01T00:00:00Z\") && " + "request.time < timestamp(\"2020-01-01T00:05:00Z\")) "; assertTrue(IamConditions.isTemporaryConditionClause(clause)); } @Test public void whenExpressionContainsMoreThanTemporaryCondition_ThenIsTemporaryConditionClauseReturnsTrue() { var clause = " (request.time >= timestamp(\"2020-01-01T00:00:00Z\") && " + "request.time < timestamp(\"2020-01-01T00:05:00Z\")) && foo='foo' "; assertFalse(IamConditions.isTemporaryConditionClause(clause)); } // ------------------------------------------------------------------------- // createTemporaryConditionClause. // ------------------------------------------------------------------------- @Test public void whenDurationValid_ThenCreateTemporaryConditionClauseReturnsClause() { var clause = IamConditions.createTemporaryConditionClause( OffsetDateTime.of(2020, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC), Duration.ofMinutes(5)); assertEquals( "(request.time >= timestamp(\"2020-01-01T00:00:00Z\") && " + "request.time < timestamp(\"2020-01-01T00:05:00Z\"))", clause); } }
java
Once the frontrunner to be named India’s national bird, the Great Indian Bustard has long been on the brink of extinction. The Great Indian Bustard (GIB), is one of the heaviest flying birds, and is found mainly in the Indian subcontinent. Barely 150 of these birds are estimated to be surviving now globally. However, a major conservation effort launched about four years ago is bringing a ray of hope. Since June last year, nine GIB eggs collected from the Desert National Park in Jaisalmer where a conservation centre has been set up, have hatched, and the chicks are reported to be doing well. This is the largest number of hatchings reported within a six-month frame by any GIB conservation programme in the world, say officials. Forest officials have identified seven females and one male among the GIB chicks; the sex of the ninth and youngest chick, which hatched a couple of months ago, is not yet known. Giving the chicks the right diet is a challenge, the officials said. “Very little is known about their food habitat. With inputs provided by our counterparts in Gujarat, scientists have identified bird feed that is rich in proteins and calcium,” Arindam Tomar, Chief Wildlife Warden of the Rajasthan Wildlife Department, told The Indian Express over the phone. The GIB is known to eat insects, harvested foodgrains, and fruit. “The uncontrolled use of pesticides and insecticides in farms has badly hit their food habitat,” said Tomar, who took over as the project head in early 2019. Vanishing grasslands, and attacks by dogs and foxes have contributed to the threat to the GIB’s survival. The Ministry of Environment, Forest and Climate Change, and the Wildlife Institute of India (WII), Dehradun, are working to save the GIB. The Ministry has allotted special funds to the tune of Rs 33 crore, a part of which was used to set up the incubation and chick-rearing centre in Jaisalmer. In a report submitted to the Ministry in November 2018, the WII said extensive land surveys have been carried out to locate suitable habitats for the chicks. Officials have zeroed in on 14 spots, based rainfall, accessibility, proximity to wild source, habitat and topographic suitability, availability of water, temperature, etc. , and identified Sorsan as the site most conducive for their rearing. “Sorsan would allow the birds to breed more frequently, unlike Jaisalmer, which sees frequent droughts. Also, with access via road and suitable flat grassland habitat is available,” the WII report said. The centre will be the birds’ home for a few years — a safe habitat would have to be readied before they can be released into the wild. Male birds reach sexual maturity between the ages of 4 and 5; females at age 3-4. Generally, the GIB lives up to age 15 or 16, experts said. A female lays an egg once in 1-2 years, and the chicks’ survival rate is 60%-70%. “Being such long-lived and slow reproducing species, adult mortality remains high,” the WII report said. According to the WII report, the bird was once abundant in Kutch, Nagpur, Amravati, Solapur, Bellary, and Koppal districts in the states of Gujarat, Maharashtra, and Karnataka. “Karnataka has expressed interest in working with us, but there is nothing concrete from Maharashtra so far,” the officer said. Globally and in India, high voltage power lines are a major threat to the GIB, the WII report says. The bird has poor frontal vision, which restricts it from spotting power lines early. “…About 15% of the population (dies) due to the power lines in Jaisalmer alone. This, in comparison to the natural cause of deaths contributed only 4% to 5% cases,” the report says.
english
<reponame>Flakebi/typos<filename>crates/dictgen/src/map.rs<gh_stars>100-1000 #[cfg(feature = "codegen")] pub fn generate_map<'d, W: std::io::Write, V: std::fmt::Display>( file: &mut W, name: &str, value_type: &str, data: impl Iterator<Item = (&'d str, V)>, ) -> Result<(), std::io::Error> { let mut data: Vec<_> = data.collect(); data.sort_unstable_by_key(|v| unicase::UniCase::new(v.0)); let mut smallest = usize::MAX; let mut largest = usize::MIN; writeln!( file, "pub static {}: dictgen::DictTable<{}> = dictgen::DictTable {{", name, value_type )?; writeln!(file, " keys: &[")?; for (key, _value) in data.iter() { smallest = std::cmp::min(smallest, key.len()); largest = std::cmp::max(largest, key.len()); let key = if key.is_ascii() { format!("dictgen::InsensitiveStr::Ascii({:?})", key) } else { format!("dictgen::InsensitiveStr::Unicode({:?})", key) }; writeln!(file, " {},", key)?; } if largest == 0 { smallest = 0; } writeln!(file, " ],")?; writeln!(file, " values: &[")?; for (_key, value) in data.iter() { writeln!(file, " {},", value)?; } writeln!(file, " ],")?; writeln!(file, " range: {}..={},", smallest, largest)?; writeln!(file, "}};")?; Ok(()) } pub struct DictMap<V: 'static> { pub map: phf::Map<crate::InsensitiveStr<'static>, V>, pub range: std::ops::RangeInclusive<usize>, } impl<V> DictMap<V> { pub fn find(&self, word: &'_ unicase::UniCase<&str>) -> Option<&V> { if self.range.contains(&word.len()) { self.map.get(&(*word).into()) } else { None } } pub fn iter(&self) -> impl Iterator<Item = (unicase::UniCase<&str>, &V)> + '_ { self.map.entries().map(|(k, v)| (k.convert(), v)) } } impl<'s> phf_shared::PhfHash for crate::InsensitiveStr<'s> { #[inline] fn phf_hash<H: core::hash::Hasher>(&self, state: &mut H) { core::hash::Hash::hash(self, state) } } impl<'s> phf_shared::FmtConst for crate::InsensitiveStr<'s> { fn fmt_const(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match self { crate::InsensitiveStr::Ascii(_) => f.write_str("dictgen::InsensitiveStr::Ascii(")?, crate::InsensitiveStr::Unicode(_) => { f.write_str("dictgen::InsensitiveStr::Unicode(")? } } self.into_inner().fmt_const(f)?; f.write_str(")") } } impl<'b, 'a: 'b> phf_shared::PhfBorrow<crate::InsensitiveStr<'b>> for crate::InsensitiveStr<'a> { fn borrow(&self) -> &crate::InsensitiveStr<'b> { self } }
rust
Paris Saint-Germain (PSG) failed to impress against AS Monaco in Ligue 1 on Sunday. The Parisians succumbed to a 0-3 defeat but remain atop the league table, 12 points clear of second-placed Marseille. Meanwhile, Arsenal and France legend Thierry Henry has slammed fans for booing Lionel Messi during the Parisians' league game against Bordeaux. Elsewhere, a French football pundit has urged the French giants to sack manager Mauricio Pochettino. On that note, here's a look at the key PSG transfer stories as on 21st March 2022: Thierry Henry has slammed PSG fans for turning on Lionel Messi in the league game against Bordeaux. The Argentinean has struggled since arriving in Paris. His misery was compounded by a Round of 16 exit against Real Madrid in the UEFA Champions League. The premature departure from the tournament forced fans to turn on the 34-year-old legend. However, Henry believes the reaction from the fans was not justified. While Messi has not lit up Ligue 1 - scoring just twice in 18 games - he has been one of the most productive players in the league. The seven-time Ballon d’Or winner has the joint-most assists (10) in Ligue 1, though, along with teammate Kylian Mbappe and Rennes' Benjamin Bourigeaud. The Argentinean missed the defeat to Monaco due to illness, and perhaps his absence was felt by the Parisians on the pitch. After the game, as relayed by The Mirror, Henry said that the Parisians created nothing in the absence of Messi. "Last week, PSG fans booed Messi. How can you boo the greatest of all-time? The guy that has assisted the most goals in Ligue 1 (this season)? Today, without Messi, the team created nothing,” said Henry. French football pundit Eric Rabesandratana has urged PSG to sack manager Mauricio Pochettino. The Argentinean has endured a difficult campaign with the Parisians so far and suffered another setback on Sunday. Speaking on France Bleu Paris, as cited by PSG Talk, Rabesandratana said that a new face would help prepare the team for next season. “I know Mauricio Pochettino well, especially the person. It’s a complicated situation. Inevitably, when we observe his work, it does not correspond to the expectations of PSG. We are waiting to know if he will continue, especially by the end of the season,” said Rabesandratana. He continued: “I think it would be interesting to change coach now because there is a little time left. What would be good is that we use this time for the preparation and adaptation of a new coach. In the integration plan and to save time, this could be positive." Pochettino is widely tipped to join Manchester United next season, having largely underwhelmed in his stint at the Parc des Princes. Zinedine Zidane is expected to arrive at the club if the Argentinian leaves. Kylian Mbappe has urged his teammates to remain professional after the 0-3 defeat against Monaco in Ligue 1. The Frenchman failed to get going in a game where PSG were second-best all night. After the game, as relayed by The Mirror, Mbappe sounded determined to help the Parisians lift their tenth league title, eighth in ten years. “We lost to a great team who are playing to get into Europe. They (Monaco) were determined and carried out their game plan. I hope they get into Europe. They deserved to win. The goal is to go for the 10th league title. The rest doesn't matter,” said Mbappe. The attacker continued: "Even if we win 8-0 or 9-0, people will still be thinking about the Champions League. We must remain professional and respect each other. We have to respect the fans who support us, the people and our families. You have to respect yourself if you have a shred of respect for what you do." Mbappe has been one of the sole shining lights in an otherwise disappointing campaign for the Parisians, netting 26 times across competitions. However, he is widely tipped to join Real Madrid as a free agent this summer.
english
Due to people spending most of the times indoors during the winter season, which limits exposure to sunlight and lowers vitamin D levels, period cramps is more common during this time of year. Your blood arteries narrow in cold weather, limiting blood flow and taxing your heart’s ability to pump blood throughout your body. For many women, a few days of cramps, mood swings and annoyance are referred to as their period. But then three too five-day duration of cramping gets worse in the winter. The only luxury that comes to mind in this situation is cuddling up in bed with a hot water bag and a nice comforting beverage. The factor may be one of the factors contributing to cramps being more sever in the winter. Hence, understanding these factors can be the first step towards reducing your period cramps in winter. Let us have a look on how can you reduce your cramps during winter season. Here are tips to combat period cramps in winter: To keep your whole body warm, use hot water bottles and hand warmers. It helps in decreasing the cramp pain. Attempt running both prior to and during the cycles. Your body’s muscles are helped to relax, and you stay warm for the majority of the day. Cinnamon is frequently used in the winter as well to keep the body warm throughout the chilly months. Due to its anti-spasmodic effects, cinnamon has demonstrated that it can ease period cramps. It has been demonstrated to significantly less the discomfort, menstural bleeding, nausea, and vomiting that are dysmenorrhea’s side effects. Wonder herb ginger is excellent in reducing menstruation cramps. This plant is essential for reducing the production of prostaglandins, which cause discomfort. It can also make irregular periods regular and battle premenstrual syndrome-related lethargy. Bloating can cause discomfort and make menstrual cramps worse during the menstrual cycle. Getting rid of the pain will be made easier by drinking adequate water. Similarly, choosing hot water will calm your muscles and improve blood flow throughout your body. Menstrual cramps are definitely uncomfortable and unsettling. You’ll need to swear by hot therapy to get rid of the cramps. Choose a heating pad, or hot water, and apply it to your stomach. You can also take a hot bath. Heat has a tendency to relax the contracting muscles that cause pain while also increasing blood flow to the area. The anti-inflammatory qualities of chamomile, fennel, or ginger tea can reduce period pain. Additionally, the benefits of herbal teas can aid in your relaxation and stress reduction. It may be calming. So, give any herbal tea of your choosing a try and you’ll definitely notice a change. Don’t drink too much of these teas. Keep these tips in mind if you often suffer from menstrual cramps in the winter season.
english
<reponame>caracole-io/circuitscourts<filename>floreal/views/view_purchases.py #!/usr/bin/python # -*- coding: utf-8 -*- import os from django.http import HttpResponse, HttpResponseForbidden from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from caracole import settings from .decorators import nw_admin_required from .getters import get_delivery, get_subgroup from . import latex from .spreadsheet import spreadsheet from .delivery_description import delivery_description MIME_TYPE = { 'pdf': "application/pdf", 'xlsx': "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} def non_html_response(name_bits, name_extension, content): """Common helper to serve PDF and Excel content.""" filename = ("_".join(name_bits) + "." + name_extension).replace(" ", "_") mime_type = MIME_TYPE[name_extension] response = HttpResponse(content_type=mime_type) response['Content-Disposition'] = 'attachment; filename="%s"' % filename response.write(content) return response @login_required() def view_purchases_html(request, delivery, subgroup=None): """View purchases for a given delivery, possibly restricted to a subgroup. (subgroup) staff only.""" dv = get_delivery(delivery) if subgroup: sg = get_subgroup(subgroup) if request.user not in sg.staff.all() and request.user not in sg.network.staff.all(): return HttpResponseForbidden("Réservé aux admins") subgroups = [sg] else: if request.user not in dv.network.staff.all(): return HttpResponseForbidden("Réservé aux admins") subgroups = dv.network.subgroup_set.all() return render_to_response('view_purchases.html', delivery_description(dv, subgroups)) @login_required() def view_purchases_xlsx(request, delivery, subgroup=None): """View purchases for a given delivery as an MS-Excel spreadsheet, possibly restricted to a subgroup. (subgroup) staff only.""" dv = get_delivery(delivery) if subgroup: sg = get_subgroup(subgroup) if request.user not in sg.staff.all() and request.user not in sg.network.staff.all(): return HttpResponseForbidden("Réservé aux admins") subgroups = [sg] else: if request.user not in dv.network.staff.all(): return HttpResponseForbidden("Réservé aux admins") subgroups = dv.network.subgroup_set.all() return non_html_response((dv.network.name, dv.name), "xlsx", spreadsheet(dv, subgroups)) @login_required() def view_purchases_latex(request, delivery, subgroup=None): """View purchases for a given delivery as a PDF table, generated through LaTeX, possibly restricted to a subgroup. (subgroup) staff only.""" dv = get_delivery(delivery) if subgroup: sg = get_subgroup(subgroup) if request.user not in sg.staff.all() and request.user not in sg.network.staff.all(): return HttpResponseForbidden("Réservé aux admins") content = latex.subgroup(dv, sg) name_bits = (dv.network.name, dv.name, sg.name) else: if request.user not in dv.network.staff.all(): return HttpResponseForbidden("Réservé aux admins") content = latex.delivery_table(dv) name_bits = (dv.network.name, dv.name) return non_html_response(name_bits, "pdf", content) @login_required() def view_cards_latex(request, delivery, subgroup=None): """View purchases for a given delivery as a PDF table, generated through LaTeX, possibly restricted to a subgroup. Subgroups are presented as ready-to-cut tables, whole deliveries as list per subgroup. (subgroup) staff only.""" dv = get_delivery(delivery) if subgroup: sg = get_subgroup(subgroup) if request.user not in sg.staff.all() and request.user not in sg.network.staff.all(): return HttpResponseForbidden("Réservé aux admins") content = latex.cards(dv, sg) name_bits = (dv.network.name, dv.name, sg.name) else: content = latex.delivery_cards(dv) name_bits = (dv.network.name, dv.name) return non_html_response(name_bits, "pdf", content) @nw_admin_required(lambda a: get_delivery(a['delivery']).network) def get_archive(request, delivery, suffix): """Retrieve the PDF/MS-Excel file versions of a terminated delivery which have been saved upontermination.""" dv = get_delivery(delivery) file_name = os.path.join(settings.DELIVERY_ARCHIVE_DIR, "dv-%d.%s" % (dv.id, suffix)) with open(file_name) as f: content = f.read() name_bits = (dv.network.name, dv.name) return non_html_response(name_bits, suffix, content)
python
Hong Kong-based digital asset exchange crypto.com has begun issuing Visa crypto cards for its users in Brazil. Users applying for and receiving the cards will not be charged any monthly, annual, or ATM withdrawal fees, the company has said. Unlike normal Visa credit cards that offer a line of credit, these crypto Visa cards are prepaid in nature and need to be recharged using fiat or cryptocurrencies. These cards can convert all the tokens of the decentralised finance (DeFi) protocol stored in them into the respective market's currency, which can then be used for purchases and ATM withdrawals. “The Crypto.com Visa Card offers up to 8 percent back on spending, LoungeKey airport lounge access, and 100 percent subscription rebates for Spotify, Netflix, and Amazon Prime,” the asset exchange company wrote in a blog post announcing the expansion. Brazilian nationals will have to clear an approval process after having applied for the card. As soon as the clearance comes through, users will be issued a virtual card that would be usable before the physical card arrives. The crypto Visa card that is currently available in the US, Europe, the UK, Canada, and Singapore, is entering Brazil perhaps amid crypto adoption picking pace there. In October, Brazilian cab-hailing major 99 enabled the sale and purchase of Bitcoin via its digital wallet app 99Pay. In Fact, earlier this week, Brazilian parliamentarian Luizão Goulart proposed a bill to legalise cryptocurrency as a form of payment for workers in the public and private sectors. If the bill does get cleared, Brazil could become only the second country to approve Bitcoin as legal tender, after El Salvador went through with the process in September. Earlier this week, the overall valuation of the crypto market reached the $3 trillion (roughly Rs. 2,22,79,296 crore) mark, as per market research tracker, CoinGecko. Interested in cryptocurrency? We discuss all things crypto with WazirX CEO Nischal Shetty and WeekendInvesting founder Alok Jain on Orbital, the Gadgets 360 podcast. Orbital is available on Apple Podcasts, Google Podcasts, Spotify, Amazon Music and wherever you get your podcasts. Affiliate links may be automatically generated - see our ethics statement for details.
english