content
stringlengths
10
4.9M
Lossless image compression based on recursive nonlinear interpolation The generalized recursive interpolation (GRINT) algorithm was recently proposed and shown to be the most effective progressive technique for decorrelation of still image. A nonlinear version of GRINT (MRINT) employs median filtering in a nonseparabl...
/** * Provides token credentials to the client. * * @param req The HTTP servlet request * @param res The HTTP servlet response. * * @throws OAuthException Should any OAuth related problem occur. * @throws IOException Should an error occur while writing the output stream. */ private stati...
package e2e import ( "bytes" _ "embed" "errors" "fmt" "html/template" "math/rand" "os" "os/exec" "path/filepath" "sync" "testing" "time" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "sigs.k8s.io/yaml" ) var ( binDir string fai...
<filename>Encoder/IntraPredictor.cpp #include "IntraPredictor.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include "Config.h" #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> #define CALC_DIFF(x, y) ( x - y ) * ( x - y ) //#define CALC_DIFF(x, y) abs( x - y ) #de...
<filename>extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/reflection/GrpcServerIndex.java package io.quarkus.grpc.runtime.reflection; import static com.google.protobuf.Descriptors.FileDescriptor; import java.util.ArrayDeque; import java.util.Collections; import java.util.HashMap; import java.util.HashSe...
import collections a,b=map(int,input().split()) c=[list(map(int,input().split())) for i in range(a)] result=[] for i in range(a): n=c[i][1:] result+=n ans=collections.Counter(result) ans1,ans2=zip(*ans.most_common()) ans2=list(ans2) print(ans2.count(a))
<filename>blob_store/dav_blob_store/blob_store_verifier.go package dav_blob_store import ( "fmt" "net/http" "net/url" config_package "github.com/cloudfoundry-incubator/ltc/config" ) type Verifier struct{} func (Verifier) Verify(config *config_package.Config) (authorized bool, err error) { blobStoreURL := url.U...
// Copyright 2018 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
The Role of Vibrio cholerae Haemagglutinin Protease (HAP) in Extra-Intestinal Infection. INTRODUCTION Based on the diversity of surface O antigen Vibrio cholerae can be classified into 206 serogroups. Vibrio cholerae is the causative agent of cholera and extra intestinal infections like, septicemia, wound infection an...
/** * Get the next AnalyisEngine that should receive the CAS. */ @Override public Step next() throws AnalysisEngineProcessException { CAS cas = getCas(); Iterator componentIter = mComponentInfo.iterator(); while (componentIter.hasNext()) { ComponentInfo componentInfo = (Component...
def era5_pos(lon, lat): if abs(lat) > 90 or abs(lon) > 180: raise ValueError('The given coordinates ({}, {}) '.format(lon, lat) + 'do not fit to the available data range.') dx = 180 + lon dx = float(round(dx * 4) / 4) lat = float(round(lat * 4) / 4) return dx, lat
export declare function equals(one: any, other: any): boolean;
A Freeport man is accused of assaulting a state trooper during a traffic stop on the Southern State Parkway, and police are crediting two passing drivers for stopping and coming to the trooper's aid. State police say the suspect, Lenox Pascal, was pulled over just before 10 p.m. Friday near the Eagle Avenue exit in He...
<filename>src/clr_rom_src/main.cpp<gh_stars>0 // main.cpp // //MIT License //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //AUTHORS OR CO...
Rush Limbaugh laughed about Japanese refugees recycling after the earthquake that struck the country on his Tuesday show. A caller asked Limbaugh, "If these are the people that invented the Prius, have mastered public transportation, recycling, why did Mother Earth, Gaia if you will, hit them with this disaster?" Lim...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2011 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #ifndef RIPPLE_UINT256_H #define RIPPLE_UINT256_H #include <algorithm> #include <climits> #in...
import java.util.Scanner; import java.io.PrintWriter; import java.util.*; import java.lang.Math; public class abb{ private static Scanner sc = new Scanner(System.in); public static void p(long n,long k){ //long totali=n*k*2; //long l=(int)Math.sqrt(n*k*2); //long hi=n*k*2; //while(l<hi){...
class InlineQuery: '''id: Unique identifier for this query''' id: str '''from_user: Sender''' from_user: User '''location: Sender location, only for bots that request user location''' location: Optional[Location] '''query: Text of the query (up to 256 characters)''' query: str '''off...
/** * @class Lunch * @docs https://bell.harker.org/docs/api.html#get-lunchmenu */ export class Lunch { /** * Date of data * @type {!string} * @memberof Lunch */ date!: string /** * Lunch of the day * @type {!{place: string, food: string}[]} * @memberof Lunch */ ...
Tony Ortega was questioned by one of his followers on my exposure of Tony’s sleazy, dishonest reporting the other day on My Scientology Movie. The inquirer purports to be a full-fledged bunkeroo, and law school graduate. She also regularly trolls my blog, slavishly pandering to Ortega. Here is the thread: Chee Chalker...
// ClearTag finishes handling a tag. func (cs *connState) ClearTag(t Tag) { cs.tagMu.Lock() defer cs.tagMu.Unlock() ch, ok := cs.tags[t] if !ok { panic("unused tag cleared") } delete(cs.tags, t) close(ch) }
/** * @author Rinat Gareev */ public class ListWhitespaceChars { public static void main(String args[]) { System.out.println("Code\tWhite\tCategory"); for (int i = 0x0000; i <= 0xFFFF; i++) { if (Character.isWhitespace(i) || isControl(i) || isSep(i)) { System.out.printl...
/* ******************************* ----------------------------- | copyrights with l0gic_b0mb | ----------------------------- ******************************* */ #include<bits/stdc++.h> #define MOD 1000000007 #define llint long long int #define max(a,b) (a>=b?a:b) #define min(a,b) (a<=b?a:b) u...
def intervals_in_genomic_sort_order(interval_strings): def sort_key(interval_string): chrom, positions = interval_string.split(":") if chrom in CHROMOSOME_ORDER: chrom_ordinal = CHROMOSOME_ORDER.index(chrom) else: chrom_ordinal = sum(ord(c)*10**(len(chrom) - i) for i,...
import { ASTv2, generateSyntaxError, SourceSlice, SourceSpan } from '@glimmer/syntax'; import { expect } from '@glimmer/util'; import { Err, Ok, Result } from '../../../shared/result'; import * as mir from '../../2-encoding/mir'; import { NormalizationState } from '../context'; import { VISIT_EXPRS } from '../visitors...
PHILADELPHIA (CBS) — Police are investigating the deadly shooting of a woman in North Philadelphia. The shooting took place at about 9:15 a.m. Tuesday at 12th and Jefferson Streets, only blocks from the campus of Temple University. The family of 56-year-old Kim Jones is looking for answers after a woman described as ...
/// \brief A plugin to transport a model from point to point using /// pose animation. class ModelMove : public ModelPlugin { public: ModelMove(); private: void Move(const math::Vector3 &_start, const math::Vector3 &_end, math::Vector3 &_translation); private: bool LoadGoalsFromSDF(...
// report is used to deliver the func (m *Monit) report() { m.getStat() stat, _ := json.Marshal(m.config.Base) buf := bytes.NewBuffer(stat) r, _ := client.Post(m.config.Host, "application/json", buf) if r != nil { defer r.Body.Close() } }
<gh_stars>1-10 #ifndef __RECTANGLE_TEXT_H__ #define __RECTANGLE_TEXT_H__ #include <SDL2/SDL.h> #include <string> #include "drawable.h" #include "font.h" #include "paths.h" #include "texture.h" #define DEFAULT_PADDING_RECTANGLE_TEXT 2 namespace View { class RectangleText: public Drawable { private: Textur...
package models import ( "github.com/satori/go.uuid" "github.com/Jsharkc/TechTree/backend/general" "github.com/Jsharkc/TechTree/backend/tidb" ) type UserAddedServiceProvider struct { } var UserAddedService *UserAddedServiceProvider = &UserAddedServiceProvider{} type UserAdded struct { ID string `json:"...
<reponame>HaoZeke/math #ifndef STAN_MATH_REV_FUN_CHOLESKY_DECOMPOSE_HPP #define STAN_MATH_REV_FUN_CHOLESKY_DECOMPOSE_HPP #include <stan/math/rev/meta.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/rev/fun/value_of_rec.hpp> #include <stan/math/rev/fun/value_of.hpp> #include <stan/math/prim/err.hpp> #include...
Acid-base balance in field cases of bovine babesiosis Correspondence to Dr Doherty BOVINE babesiosis is a tickborne disease of worldwide economic importance characterised by fever, haemoglobinuria and anaemia. In Ireland, the aetiological agent is the intraerythrocytic protozoan parasite, Babesia divergens, which is t...
def subtract_spike_train(self, spt): present_units = np.unique(spt[:, 1]) for i in present_units: conv_res_len = self.n_time * 2 - 1 unit_sp = spt[spt[:, 1] == i, :] spt_idx = np.arange(0, conv_res_len) + unit_sp[:, :1] unit_idx = self.unit_overlap[i] ...
// copied from https://github.com/developit/preact-worker-demo/blob/bac36d7c34b241e4c041bcbdefaef77bcc5f367e/src/lib/undom.js import { assign, toLower, splice, findWhere, setImmediate, createAttributeFilter, } from './util'; /* const NODE_TYPES = { ELEMENT_NODE: 1, ATTRIBUTE_NODE: 2, ...
/// <reference types="node" /> import Timer = NodeJS.Timer; export default class TaskRunner { id: Timer; fn: Function; callbacks: (() => any)[]; constructor(fn?: Function); delay(delay: number, fn?: Function, callback?: () => any): Promise<unknown>; run(interval: number, fn?: Function, callback?...
/// Obtains the node and attributes of an underlying file immediately after its creation. /// /// `writable` and `state` are the properties of the node, passed in as arguments because we /// have to hold the node locked already. /// /// `path` and `name` are the path to the underlying file and the basename to lookup in...
import { Injectable } from '@angular/core'; import { Observable, of, throwError } from 'rxjs'; import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http'; import { catchError, tap, map } from 'rxjs/operators'; import { environment } from 'src/environments/environment.prod'; const httpOptions = {...
/** * It is responsible for setting the rule for group by sentence. * * @param grammarBuilder ApexGrammarBuilder parameter. */ private static void groupBySentence(LexerfulGrammarBuilder grammarBuilder) { grammarBuilder.rule(GROUP_BY_SENTENCE).is( GROUP, BY, gr...
<filename>src/str/Expression.java<gh_stars>1-10 package str; import java.util.Arrays; public class Expression { public static void main(String[] args) { String exp="1 + 2 - 3 * 5554 / 15 "; System.out.println(Arrays.toString(exp.split("\\D+"))); System.out.println(Arrays.toString(exp.split("\\s*\\d+\\s*"))); ...
s = input() def main(string): c = "keyence" head = string[:7] idx = 0 for s in head: if s == c[idx]: idx += 1 else: break if idx == 7: print("YES") return tail = string[-7+idx:] for s in tail: if s == c[idx]: idx += 1 else: break ...
<reponame>nvdungx/algo1 #ifndef __BST_H__ #define __BST_H__ #include <iostream> #include <string> #include <list> #include <vector> #include <memory> #include <iterator> template <typename KeyType = std::string, typename ValueType = int> class Node { public: KeyType key; ValueType value; bool color; ui...
Getty Ivanka Trump’s clothing brand does not provide industry-standard oversight for its factory workers, the Washington Post found. Share Pinterest Email “The time to change the narrative around women and work once and for all is long overdue; in fact, it’s become my life’s mission,” Ivanka Trump wrote in her book ...
<reponame>kratos47mhs/mall-swarm package com.macro.mall.dto; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; /** * Get S3 upload file authorization return result * Created by macro on 2018/5/17. */ @Data @EqualsAndHashCode(callSuper = false) public class AmazonS...
// Get retrieves an Entry using its key. func (o *OrderedMap) Get(key string) (iface.IPFSLogEntry, bool) { o.lock.RLock() defer o.lock.RUnlock() val, exists := o.values[key] return val, exists }
/** * Convert the key into a proper key list. * NoSQL uses a List of key values for major keys, * this allows for a special key syntax to be used, or a list. * "[<key1>,<key2>,..]" */ protected List createMajorKey(Object key) { List majorKeys = null; if (key instanceof List) { ...
/* * Copyright 2021 Larder Software Limited * * 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 o...
def one_time_step_local(self, f, fnew, m): with_rel_velocity = True if self.rel_vel_symb else False code = [self.transport_local(f, fnew)] f2m = self.f2m_local(fnew, m, with_rel_velocity) if isinstance(f2m, list): code.extend(f2m) else: code.append(f2m) ...
def _log_sink_pb_to_mapping(sink_pb): return { 'name': sink_pb.name, 'destination': sink_pb.destination, 'filter': sink_pb.filter, }
<gh_stars>10-100 package command import ( "flag" "fmt" "strings" "github.com/funkygao/gocli" ) type Logstash struct { Ui cli.Ui Cmd string } func (this *Logstash) Run(args []string) (exitCode int) { cmdFlags := flag.NewFlagSet("logstash", flag.ContinueOnError) cmdFlags.Usage = func() { this.Ui.Output(this....
<filename>vendor/github.com/anacrolix/torrent/request-strategy-impls.go package torrent import ( "github.com/anacrolix/torrent/metainfo" request_strategy "github.com/anacrolix/torrent/request-strategy" "github.com/anacrolix/torrent/storage" ) type requestStrategyInput struct { cl *Client capFunc storage.Tor...
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
An Islamist organization that distributes German-language copies of the Quran to passers-by has been banned by the German government who accused it of recruiting would-be jihadists to fight in Syria and Iraq. The True Religion organization, also known as Read, was outlawed Tuesday when officers raided 190 premises in ...
#ifndef GENETICALGORITHMLIB_MEMORYMANAGER_H #define GENETICALGORITHMLIB_MEMORYMANAGER_H #include <vector> #include <cstdio> #include <iostream> #include <set> #include <memory> template <class T> class MemoryManager { private: std::vector<std::shared_ptr<T>> instances_; std::set<int> freeSlots_; int maxMe...
/** * Delegate to the next {@code WebFilter} in the chain. * * @param exchange the current server exchange * @return {@code Mono<Void>} to indicate when request handling is complete */ @Override public Mono<Void> execute(final ServerWebExchange exchange) { ...
def OpenFile(self, windows_path): if self._single_file: path_spec = dfvfs_path_spec_factory.Factory.NewPathSpec( dfvfs_definitions.TYPE_INDICATOR_OS, location=self._source_path) if path_spec is None: return None return dfvfs_resolver.Resolver.OpenFileObject(path_spec) windows...
/** * An output stream that can be used to flatten Storable objects. * StorableOutput preserves the object identity of the stored objects. * * @see Storable * @see StorableInput */ public class StorableOutput extends StorableInOut { public static org.apache.log4j.Logger logger = org.apache.log4j.Logger ...
A hacker has taken over hundreds of Twitter accounts belonging to supporters of Islamic State since Sunday's attack at a gay nightclub in Orlando, using them to tweet gay pride messages and gay pornography, according to media reports including the Newsweek website. The gunman in Orlando, Omar Mateen, who killed 49 peo...
package github import ( "encoding/json" "errors" "fmt" "net/http" "path/filepath" "regexp" "github.com/soerenkoehler/go-simpson/util" ) const tagLatest = "latest" var uploadURLNormalizer = regexp.MustCompile(`\{\?[\w,]+\}$`) type ReleaseInfo struct { Context `json:"-"` ID int64 `json:"id"` Name...
package com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.items.military.plating; import com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.items.military.armor.*; public class IronPlating extends AbstractPlating { public IronPlating() { super("Bronze Plating", "Standard ir...
package main import ( "fmt" "git.kirsle.net/go/render" "git.kirsle.net/go/ui" ) func main() { mw, err := ui.NewMainWindow("UI Toolkit Demo") if err != nil { panic(err) } leftFrame := ui.NewFrame("Left Frame") leftFrame.Configure(ui.Config{ Width: 160, BorderSize: 1, BorderStyle: ui.BorderRais...
Effect of methionine hydroxy analog feed supplements: Significant alteration and enrichment of rumen microbiota and metabolome in Hu sheep Methionine hydroxy analogs (MHA) are widely used as the main sources of methionine in ruminant feed production. The purpose of this study was to explore the effect of using MHA sup...
// ClearHolidays removes all previously loaded holidays. func (so *Calendar) ClearHolidays() { so.Lock() defer so.Unlock() so.holidays = nil }
/** * Create an action button. * * @param contentActionId The content action id. * @param stringId1 The id of the string to be displayed on the first line of text. * @param stringId2 The id of the string to be displayed on the second line of text. * @return The action. */ ...
""" my_list = list(range(0,10)) my_list.append(10) print("Step 1:(append)", my_list) my_list.insert(2, 10) print("step 2:(insert)", my_list) my_list.pop() print("step 3:(pop)", my_list) my_list.remove(10) print("step 4:(pop)", my_list) """ # Queue follows FIFO (First in, First Out) # Stack follows LIFO (Last in, Fi...
/** * Uses the BankAccount compareTo method to sort ascending by account number * Use ANY of the 3 quadratic sorts */ public void sortAscending() { for (int i = 1; i <= accounts.size(); i++) { for (int k = 0; k < accounts.size()-i; k++) { if (accounts.get(k).compareTo(accounts.get(k+1)) > 0) ...
<gh_stars>1-10 from deceased import Deceased from obituary import Obituary from grave import Grave as make_grave #obituary = Obituary("victor", 30 , "SRAG, IRA") class Undertaker: def make_grave(): id =+ 1 #grave = Grave(id,"N", 15, 2 , "brickwork", "Empty", "XG") #grave = Grave() ...
<filename>Applications/InCallService/PHVideoCallViewController.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "PHCallViewController.h" #import "AVCEffectsDelegate.h" #import "CFXCameraViewControllerDelegate.h" #import "CFXE...
//package practiceShitA; import java.util.Scanner; public class BuyAShowel { public static void main(String[] args) { Scanner in=new Scanner(System.in); String s=in.nextLine(); String a[]=s.split(" "); //System.out.println(a[0]+" "+a[1]); int l=Character.getNumericValue(a[0].charAt(a[0].len...
<reponame>coblox/strum #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum CaseStyle { CamelCase, KebabCase, MixedCase, ShoutySnakeCase, SnakeCase, TitleCase, } impl<'s> From<&'s str> for CaseStyle { fn from(text: &'s str) -> CaseStyle { match text { "camel_case" => Ca...
// Creates a map from the query parameters of |url|. If |url| contains multiple // values for the same parameter, the last value is used. base::flat_map<std::string, std::string> MakeQueryMap(const GURL& url) { base::flat_map<std::string, std::string> result; for (net::QueryIterator query_it(url); !query_it.IsAtEn...
def add(self, step): if type(step) is not tuple: transformer = step if getattr(transformer, "name", None): name = transformer.name else: idx = len(self.steps) name = f"step{idx:02d}" step = (name, transformer) ...
/** * Created by Programmer on 6/6/2017. */ public class SellsDatabaseModel { private int id; private String sellsCode; private String customerId; private String totalAmount; private String discount; private String payAmount; private String paymentType; private String sellDate; pr...
Joseph Cummins is the author of Anything for a Vote: Dirty Tricks, Cheap Shots and October Surprises in U.S. Presidential Campaigns. If there’s one thing America’s presidential candidates have always loved, it’s attacking their opponents with slurs that cast aspersions on their manhood. These past few weeks have broug...
/// Writes commands without additional arguments. fn write_command(&mut self, cmd: Command) -> Result<(), Error<E>> { let (command, delay, allowed_if_running) = cmd.as_tuple(); if !allowed_if_running && self.is_running { return Err(Error::NotAllowed); } i2c::write_command(&mu...
/** * Created by couchot on 02/10/15. */ public class GestionnaireBaseSommets extends SQLiteOpenHelper { public static final String DATABASE_NAME = "db_sommets"; public static final int DATABASE_VERSION = 1; public static final String TABLE_SOMMET = "sommets"; public static final String ID = "id"; ...
/******************************************************************************* * Copyright (c) 2001-2014 Yann-Gal Guhneuc and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is...
Correlation between Skeletal Maturation and Developmental Stages of Canines and Second Molars among Iranian Population Statement of the Problem: Growth assessment has become an important issue in many medical and dental fields. Determining the stages of dental development and skeletal maturation are essential methods ...
import { serializeOverflow } from './core/overflow' import { serializeDisplay } from './core/display' import { serializeWidth } from './core/width' import { serializeHeight } from './core/height' import { serializeBackgroundColor } from './core/background-color' import { serializeBackgroundOrigin } from './core/backgr...
/** * Metric assessor to assess the {@link FeedOnTimeArrivalMetric} */ public class FeedOnTimeArrivalMetricAssessor implements MetricAssessor<FeedOnTimeArrivalMetric, Serializable> { private static final Logger LOG = LoggerFactory.getLogger(FeedOnTimeArrivalMetricAssessor.class); @Inject private OpsMana...
<reponame>Ciubix8513/Lunar-Math #pragma once #ifndef _VECTOR3_H_ #define _VECTOR3_H_ #include "Vector2.h" #define vec3 Vector3 namespace LunarMath { struct Vector3int { public: Vector3int(int NewX, int NewY, int NewZ); Vector3int(); int x, y, z; bool operator==(Vector3int other); friend bool operator==(c...
Story highlights Howard Kurtz: Sean Hannity-Keith Ellison dust-up made for good TV He says Fox host was just doing interview, and Ellison picked fight on spending cuts He says escalation, name-calling a sad reflection of coarsened political discourse Kurtz: Each man may have stood his ground on principle, but viewer...
Washington is closely monitoring the relations between Russia and Germany and will do anything to prevent the union between the two countries, founder of the global intelligence company Stratfor, George Friedman, said. © AP Photo / Stringer US Plans to Modernize Nukes in Germany Cause Concern to Russia According to F...
/* * appendFunctionName * Deparses function name from given function oid. */ static void appendFunctionName(Oid funcid, deparse_expr_cxt *context) { StringInfo buf = context->buf; HeapTuple proctup; Form_pg_proc procform; const char *proname; proctup = SearchSysCache1(PROCOID...
// Determine whether the string is a IPv6 mask bool IsIpMask6(char *str) { IP mask; if (str == NULL) { return false; } return StrToMask6(&mask, str); }
/* Module imports */ import { TestBed, ComponentFixture } from '@angular/core/testing'; import { IonicModule } from 'ionic-angular'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { By } from '@angular/platform-browser'; import { SimpleChange } from '@angular/core'; /* Test configu...
def all_operations(): cle_ops = collect_from_pyclesperanto_if_installed() tools_ops = collect_from_tools_menu_if_installed() npe2_ops = collect_from_npe2_if_installed() all_ops = {**cle_ops, **tools_ops, **npe2_ops} return all_ops
<filename>static/javascript/config/index.ts<gh_stars>1-10 import getRaces from "./races"; import getArmors from "./armors"; import getMounts from "./mounts"; import getWeapons from "./weapons"; import getFood from "./food"; const RACES = getRaces(); const ARMORS = getArmors(); const MOUNTS = getMounts(); const WEAPONS...
/** * If nodeName contains spark and hdinsight, we just think it is a spark node. * So set the service name to hdinsight * @param serviceName * @return */ private String transformHDInsight(String serviceName, Node node) { try { if (serviceName.equals(TelemetryConstants.ACTIO...
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import torch from torch import Tensor, nn import math from typing import Tuple, Type from .common import MLPBlock clas...
HIV-Related Cardiovascular Disease, Statins, and the REPRIEVE Trial. HIV infection is associated with increased cardiovascular disease (CVD), and increased rates of myocardial infarction and stroke have been observed in HIV-infected individuals. After traditional risk factors that are more common among people living w...
class RetrieveData: """ Retrieves and stores the weather data """ def __init__(self): self.key: str = settings.DARK_SKY_API_KEY self.latitude: float = 1.2921 self.longitude: float = 36.8219 self.units = 'si' self.data: CurrentData def retrieve_current_data(se...
<gh_stars>1-10 package hackflow import ( "bufio" "context" "fmt" "io" "net/http" ) func doGetMoreURL(dict io.Reader, url string, outCh chan interface{}) chan interface{} { scanner := bufio.NewScanner(dict) for scanner.Scan() { outCh <- fmt.Sprintf("%s/%s", url, scanner.Text()) } return outCh } //GetMoreUR...
<filename>examples/module_imports/mymodule.h<gh_stars>100-1000 #ifndef MYMODULE_H #define MYMODULE_H //@ require_module mymodule; //@ predicate mymodule_state(int x, int ctr); void mymodule_init(); //@ requires module(mymodule, true); //@ ensures mymodule_state(0, 0); void mymodule_destroy(); //@ requires mymodule_...
def read_file(): filename = sys.argv[1] file_input = open(filename, 'r') hexdump = file_input.readlines() file_input.close() new_dump = [] for dump in hexdump: new_dump.append(dump.replace("\n", "")) return new_dump
Design of a precise current source with adjustable frequency for AC-FSM AC-FSM is a new technology of external monitoring the internal corrosion for oil and gas pipelines. The current source stability of the FSM equipment is one of the important factors affecting the monitoring accuracy. According to the equipment req...
<gh_stars>0 import unittest from pystrings.palindrome_pairs import palindrome_pairs class PalindromePairsTests(unittest.TestCase): def test_one(self): self.assertEqual(palindrome_pairs(["bat", "tab", "cat"]), [[0, 1], [1, 0]]) def test_two(self): self.assertEqual( palindrome_pair...
/** * Created by IntelliJ IDEA. * User: niels * Date: 20/09/11 * Time: 14:38 * To change this template use File | Settings | File Templates. */ public class PeptideCheckFormFieldFactory implements FormFieldFactory { private static final Logger logger = Logger.getLogger(PeptideCheckFormFieldFactory.clas...
/** * Converts {@link ParaObject}s to H2 rows and inserts them. * @param <P> type of object * @param appid app id * @param objects list of ParaObjects */ protected static <P extends ParaObject> void createRows(String appid, List<P> objects) { if (StringUtils.isBlank(appid) || objects == null || objects.isEm...
/** * @description: access_token * @author: hlx 2018-09-19 **/ @Data public class UserAccessToken implements Serializable{ private String access_token; private Integer expires_in; private String refresh_token; private String openid; private String scope; public UserAcces...
<filename>src/_utils/interfaces.ts<gh_stars>0 export interface CommonFieldsProps { readonly id?: string readonly name: string readonly className?: Classcat.Class readonly value: string readonly disabled?: boolean readonly autoFocus?: boolean readonly required?: boolean } export interface A11yProps { id...