content
stringlengths
10
4.9M
Immunological signature of patients with thymic epithelial tumors and Good syndrome Background Thymic epithelial tumors (TETs) are frequently accompanied by Good Syndrome (GS), a rare immunodeficiency, characterized by hypogammaglobulinemia and peripheral B cell lymphopenia. TETs can be also associated to other immuno...
/** * This method toggles the selection booleans over a range of data indexes * * @param start * @param end */ public void toggleSelectRange(int start,int end) { debug("Toggling start index [" + start + "] to end index [" + end + "]", 8); if(start > end) { int tmp = start; start = end; end = t...
//------ OLD SOOT FUNCTIONS CULLED FROM HERE ---- double CamSoot::gridFunction(const int k, const int n, const int m) { double gfun = 0; for (int l=0; l<=k; ++l) { int i = 6*(k-l+n); int j = 6*(l+m); gfun += bnCoeff(l,k) *( reducedMoments(i+1)*redu...
Comparing the Binding Interactions in the Receptor Binding Domains of SARS-CoV-2 and SARS-CoV SARS-CoV-2, since emerging in Wuhan, China, has been a major concern because of its high infection rate and has left more than six million infected people around the world. Many studies endeavored to reveal the structure of t...
#!/usr/bin/python import sys import re cin = sys.stdin.readlines() def str_to_int(s): base = 1 step = 26 sum = 0 for ch in s[-1::-1]: sum += base*(ord(ch) - ord('A') + 1) base *= step return sum def int_to_str(n): n = n - 1 base = 26 s = '' while n >= 0: ...
// Dependencies returns all dependencies, including transitive ones, for a library func Dependencies(dir, lib string) map[string]string { r := map[string]string{} file, err := File(filepath.Join(dir, lib, FileName)) if err != nil { return r } for dependency, version := range file.Require { if "php" == dependen...
/** * Validates if at least one recipient is specified * * @return */ @AssertTrue(message = "One of to, cc or bcc must be specified") @Schema(accessMode = READ_ONLY) public boolean isRecipientSpecified() { return !CollectionUtils.isEmpty(to) || !CollectionUtils.isEmpty(cc) || !Collec...
def nearestNeighbourSolution(dist_matrix): node = random.randrange(len(dist_matrix)) result = [node] nodes_to_visit = list(range(len(dist_matrix))) nodes_to_visit.remove(node) while nodes_to_visit: nearest_node = min([(dist_matrix[node][j], j) for j in nodes_to_visit], key=lambda x: x[0]) ...
<gh_stars>10-100 // NG import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { A11yModule } from '@angular/cdk/a11y'; // App import { NovoOverlayModule } from '../overlay/Overlay.module'; import { NovoTooltipModule } from '../toolt...
Durability Improvement of Pt/RGO Catalysts for PEMFC by Low-Temperature Self-Catalyzed Reduction Pt/C catalyst used for polymer electrolyte membrane fuel cells (PEMFCs) displays excellent initial performance, but it does not last long because of the lack of durability. In this study, a Pt/reduced graphene oxide (RGO) ...
def static_proxy(path): print(path) KBASE_ENDPOINT = os.environ.get('KBASE_ENDPOINT') print("Authenticating") token = None token_resp = get_token(request.headers) if token_resp.startswith("Error"): return token_resp else: token = token_resp if token is None: retur...
export { curveBasisClosed, curveBasisOpen, curveBasis, curveBundle, curveCardinalClosed, curveCardinalOpen, curveCardinal, curveCatmullRomClosed, curveCatmullRomOpen, curveCatmullRom, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfte...
import React from "react"; import classNames from "classnames"; import { constructAvatarUrl, attach, isDefined } from "Utility"; import { User } from "Utility/types"; import { Option } from "Utility/option"; import Placeholder from "Components/Placeholder"; import "./style.scss"; /** * Constructs an avatar URL for a ...
import styled from "styled-components/macro"; import GridItem from "components/GridItem"; export const Main = styled(GridItem)` & > ul { margin-bottom: 20px; } `;
/** * Transforms the given shape. * This method is similar to {@link AffineTransform#createTransformedShape(Shape)} except that: * * <ul> * <li>It tries to preserve the shape kind when possible. For example if the given shape * is an instance of {@link RectangularShape} and the giv...
// Channels returns names of channels for the specified group func (p *Playlist) Channels(group string) []*PlaylistItem { var ( id string url string channel string gchannel string ) items := make([]*PlaylistItem, 0) stmt, err := p.db.Prepare(cmdSelectChannels) if err != nil { return items } ...
/** * Helper binding method for function: sampleStandardDeviation. * @param values * @return the SourceModule.expr representing an application of sampleStandardDeviation */ public static final SourceModel.Expr sampleStandardDeviation(SourceModel.Expr values) { return SourceModel.Expr.Applicatio...
extended the above-mentioned considerations to systems of nite size. In the following these results which have been obtained by nite size scaling analysis and with the help of continuum eld theory will be summarized because they are essential for the interpretation of the Monte Carlo data. The basic quantities that en...
<reponame>yankay/autoscaler /* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
<filename>src/Lib.hs module Lib ( App, Config(..), build, canonicalDir, hoist, lexicographerFilesJSON, parseLexicographerFile, parseLexicographerFiles, readConfig, toWNDB, validateLexicographerFile, validateLexicographerFiles, wnLexFiles,...
It has been nearly a year since the Senate passed a strongly bipartisan immigration reform bill that would fix our broken immigration system, reduce federal deficits by nearly $850 billion, and increase GDP by $1.4 trillion over the next two decades. As the economic costs of inaction continue to grow, now is the time f...
"""Tests for the running of the Love Letter game""" import unittest import numpy as np from loveletter.game import Game from loveletter.card import Card from loveletter.player import PlayerAction, PlayerActionTools class TestGames(unittest.TestCase): """Love Letter Games""" @staticmethod def replay(see...
// AddDrawFe ... Add Draw Function to DrawFeList func (g *Game) AddDrawFe(df func()) int { handle := len(g.DrawFeList) g.DrawFeList = append(g.DrawFeList, df) return handle }
s = input() r = [] for i in s: if i == 'a': if len(r) != 0: r[-1] = 1-r[-1] r.append(1) else: r.append(0) print(' '.join(map(str,r)))
<reponame>dzzzul/labspy03 #latihan 1 #1.Tampilkan n bilangan acak yang lebih kecil dari 0.5. #2. nilai n diisi pada saat runtime #3. anda bisa menggunakan kombinasi while dan for untuk menyelesaikannya #4. gunakan fungsi random() yang dapat diimport terlebih dahulu print(20*"=") print("masukan nilai N = 5") import ra...
import random from xworld_task import XWorldTask class XWorldLanDirectionToObject(XWorldTask): def __init__(self, env): super(XWorldLanDirectionToObject, self).__init__(env) def idle(self): """ Start a task """ agent, _, _ = self._get_agent() goals = self._get_g...
def choose_seq_letters(letter_freqs, num_letters): letter_freqs = letter_freqs.copy() if num_letters not in xrange(0,27): raise ValueError(str(num_letters) + ' is not in [0,26]') elif num_letters == 0: return [] elif num_letters == 26: return letter_freqs.keys() else: ...
The Influence of Wood Pole Preservatives on Wood Fire and Electrical Safety The electrical performance of two water-borne wood pole preservatives (ACA and CCA) has been compared to that, of pentachlorophenol preservatives. Laboratory tests have indicated that for water-borne preservative treated poles, fire inception ...
An electrically tunable infrared filter on base of Fabry-Perot interferometer This contribution deals with design, fabrication and test of a micromachined Fabry-Perot-Interferometer in first order configuration. Main application fields are chemical analysis, infrared sensing and spectral imaging. Some of the most impo...
<reponame>Universitari/qMiniMetro #include <QApplication> #include <QIcon> #include "Game.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QIcon icon(QPixmap(":/Graphics/icon.png")); app.setWindowIcon(icon); // create and show the game Game::instance()->show(); // launch Qt event loop re...
<reponame>Skatteetaten/aurora-konsoll import * as React from 'react'; import ReactSelect from 'react-select'; import { GroupTypeBase, Theme } from 'react-select/src/types'; import { RadioButtonGroupProps, skeColor, } from '@skatteetaten/frontend-components'; interface ISelectProps { options?: readonly ( | ...
from pyspark.sql import SparkSession spark = SparkSession.builder.appName('read JSON files').getOrCreate() df = spark.read.format('json') \ .option("inferSchema", "true") \ .option("header", "true") \ .option("sep", ";") \ .load("people.json") df.show() df.printSchema() df2 = spark.read.json("people....
/** * Reverse a linked list using recursion. Example : Given 1->2->3->4->5->NULL, return 5->4->3->2->1->NULL. */ public class ReverseLinkListRecursion { ListNode head = null; public ListNode reverseList(ListNode A) { if (A == null) { return null; } else if (A.next == null) {...
<filename>zabbix-agent2/src/go/plugins/system/cpu/cpucounters_linux.go<gh_stars>0 /* ** Zabbix ** Copyright (C) 2001-2021 Zabbix SIA ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; e...
/* * 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 ...
def save_pickle(file, obj): f = open(file, "wb") cPickle.dump(obj, f) f.close()
The Clash Within a Civilisation At the end of the last century, there was much talk about a future clash of civilisations, replacing the Cold War confrontation. However, the development of events in the early 21rst century has turned the focus upon the clash within one of the largest civilisations of the World: Islam ...
/// Obtain list of generic arguments on the path's segment. pub fn path_segment_generic_args (segment:&syn::PathSegment) -> Vec<&syn::GenericArgument> { match segment.arguments { syn::PathArguments::AngleBracketed(ref args) => args.args.iter().collect(), _ => Vec::new(), ...
<gh_stars>1-10 /* * Copyright 2010 NEHTA * * Licensed under the NEHTA Open Source (Apache) License; you may not use this * file except in compliance with the License. A copy of the License is in the * 'license.txt' file, which should be provided with this work. * * Unless required by applicable law or agreed to ...
import MenuItem from './menuItem' export default MenuItem
def create_new_branch(self, new_branch_name, set_current_branch): assert self._dao is not None assert self._crypt_helper is not None assert isinstance(new_branch_name, str) or isinstance(new_branch_name, unicode) assert isinstance(set_current_branch, bool) log.uvsmgr("checking wo...
package com.sanri.tools.modules.database.service; import com.sanri.tools.modules.core.dtos.PluginDto; import com.sanri.tools.modules.core.service.file.FileManager; import com.sanri.tools.modules.core.service.plugin.PluginManager; import com.sanri.tools.modules.database.dtos.*; import com.sanri.tools.modules.database.d...
/* Copyright (C) 2005, 2004 Erik Eliasson, Johan Bilien Copyright (C) 2006 Mikael Magnusson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or ...
#ifndef BLEND2FS_H #define BLEND2FS_H const char blend2fs[] = "#extension GL_ARB_shader_texture_lod: enable\n" "\n" "uniform sampler2D edgesMapL;\n" "uniform sampler2D edgesMap;\n" "uniform sampler2D areaMap;\n" "\n" "/**\n" " * This one just returns the first level of a mip map chain, which allow us to\...
/** * The Access Condition (ResourcePolicy) REST Resource * * @author Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it) */ public class AccessConditionOptionRest { private String name; @JsonInclude(Include.NON_NULL) private UUID groupUUID; @JsonInclude(Include.NON_NULL) private ...
#!/usr/bin/env python import sys import os import PyQt4 import vtk from vtk.test import Testing class TestvtkQtTableView(Testing.vtkTest): def testvtkQtTableView(self): sphereSource = vtk.vtkSphereSource() tableConverter = vtk.vtkDataObjectToTable() tableConverter.SetInput(sphereSource.GetOutput()) ...
# Make DNSimple available directly from module for backwards-compatibility try: from dnsimple import DNSimple, DNSimpleException, DNSimpleAuthException except ImportError: from dnsimple.dnsimple import DNSimple, DNSimpleException, DNSimpleAuthException from ._version import get_versions __version__ = get_versi...
The 0.0003 Percent: Short-Run Dynamics of Extreme Wealth in America This paper analyzes the short-run dynamics and changing sources of wealth among the Forbes 400 list of the wealthiest individuals in the United States, using annual data for 12 years spanning before and after the financial crisis of 2008-9. Over the en...
# ALTERNATIVE BAKER reinventing dessert with gluten-free grains and flours WRITTEN AND PHOTOGRAPHED BY ALANNA TAYLOR-TOBIN CREATOR OF THE BOJON GOURMET Begin Reading Table of Contents About the Author Copyright Page **Thank you for buying this** **Page Street Publishing Co. ebook.** To receive special offe...
/* * (C) Symbol Contributors 2022 * * 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 ...
/** * Attempt to do a cleaning pass. This will only actually clean if it's * worth doing at the moment. (What this means is presently ill-defined * and subject to drastic change). * * \return * true if cleaning was performed, otherwise false. */ bool LogCleaner::clean() { CycleCounter<uint64_t> totalTi...
/** * Loads and reencrypts all account settings that are not using the latest encryption settings. This can be useful * if switching from JKS to KMS, or if a newer version of a key has been generated but existing accounts secrets * are using an older version of the key. * * @return number of accounts ref...
<reponame>dragos-atanasoae/nest-rest-api export default { mongoURI: 'mongodb+srv://test:T35t123@cluster0.t90a9.mongodb.net/myFirstDatabase?retryWrites=true&w=majority' }
<filename>ACEs/aces-consume-3rdparty-api/src/adaptiveCardExtensions/consumeThirdPartyAce/cardView/CardView.ts import { BasePrimaryTextCardView, IPrimaryTextCardParameters, IExternalLinkCardAction, IQuickViewCardAction } from '@microsoft/sp-adaptive-card-extension-base'; import * as strings from 'ConsumeThirdPar...
/** * @brief Compare this delegate to a static function * @param fn * @return */ bool EqualStatic(TFunction fn) const { #ifdef __DEBUG__ if (data_.pointer.function == fn) { assert((nullptr == data_.object) && (nullptr == data_.method_stub)); return true; } return false; #else ret...
def apply_data_augmentation_to_experiences(experiences: List, env_ids: List[int], data_augmnentation_fn: Callable) -> List: augmented_data, augmented_env_ids = [], [] for (o, a, r, succ_o, done, extra_info), env_i in zip(experiences, env_ids): augmented_exps = data_augmnentation_fn(o, a, r, succ_o, done...
def CreateTarget(self, target): self._Call('CreateTarget', target.__class__) self._RegisterClassMethods(target)
package database const ( // PrefixPeer defines the prefix of the peer db. PrefixPeer byte = iota // PrefixHealth defines the prefix of the health db. PrefixHealth // PrefixTangle defines the storage prefix for the tangle. PrefixTangle // PrefixMarkers defines the storage prefix for the markers used to optimi...
CHAPTER 3. Synthesis of Organic Thermoelectric Materials Thermoelectric material, one of the new energy materials, is regarded as one of the most important energy-saving materials, which can directly achieve the interconversion between heat and electricity. Since its discovery and wide application, organic thermoelect...
/// <summary> /// Appends the given element value to the end of the container. /// 1) The new element is initialized as a copy of value. /// 2) value is moved into the new element. /// /// If the new size() is greater than capacity() then all iterators and /// references (including the past-the-end iterator) are in...
int Solution::minimize(const vector<int> &A, const vector<int> &B, const vector<int> &C) { int ans = INT_MAX; int i = 0; int j = 0; int k = 0; int m = A.size(); int n = B.size(); int o = C.size(); while(i<m && j<n && k<o){ int a = A[i]; int b = B[j]; ...
Religion How a decades long fight between Christian factions came to an end. For half a century now, Kerala has been witnessing a fight between two factions of Malankara Christians, in the Kerala Malankara Orthodox Church and Jacobite Syrian Christian church. Finally, the battle seems to have concluded, thanks to a S...
/** * PyTorch Java API (version 1.8.1) does not provide a way to set threads directly. Intra-parallelism can only be * controlled by the environment variable OMP_NUM_THREADS. However, in Alink/Flink job, it is difficult to set * environment variables from outside, and the hack way to set inside Java process cannot w...
#include <cstdlib> #include <iostream> using namespace std; //用户自定义字面量 typedef unsigned char uint8; struct RGBA { uint8 r; uint8 g; uint8 b; uint8 a; RGBA(uint8 R, uint8 G, uint8 B, uint8 A = 0) : r(R), g(G), b(B), a(A) {} }; //"r255 g240 b155"_C //操作符"" 与_C 自定义后缀之间必须有空格,后缀建议以下划线开始。 RGBA operator "" _C(const ...
def generate_lattice_0D(ltype, volume, area=None, minvec=tol_m, max_ratio=10.0, maxattempts = 100, **kwargs): if ltype == "spherical": a = b = c = np.cbrt((3 * volume)/(4 * pi)) alpha = beta = gamma = 0.5 * pi if a < minvec: printx("Could not generate spherical lattice; volume to...
def write_user(user_status: UserStatus, user: str): symbol = lambda curr_symbol, color: click.style(curr_symbol, bold=True, fg=color) color = "" if user_status == UserStatus.ADD: color = "green" elif user_status == UserStatus.LEAVE: color = "blue" else: color = "red" click.echo(f' {symbol(user_status.valu...
<gh_stars>0 import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { Fabric8WitModule, SpaceNameModule } from 'ngx-fabric8-wit'; import { SpaceTemplateService } from '../../shared/space-template.service'; import { ModalModule } fro...
/** * Created by Akexorcist on 6/20/2016 AD. */ public class BaseActivity extends AppCompatActivity { protected View getRootView() { return findViewById(android.R.id.content); } protected void showBottomMessage(String message) { Snackbar.make(getRootView(), message, Snackbar.LENGTH_SHORT)...
/** * Created by gayathria on 15/12/14. */ public class OLESIP2FeePaidResponse extends OLESIP2Response { public OLESIP2FeePaidResponse() { code = OLESIP2Constants.FEE_PAID_RESPONSE; } public String getFeePaidResponse(String message, OLESIP2FeePaidRequestParser sip2FeePaidRequestParser) { ...
// If the tamper alarm trips, update the attribute to show that alarm is active void emberAfPluginTamperSwitchTamperAlarmCallback(void) { emberAfAppPrintln("Tamper detected!"); changeTamperStatus(EMBER_SECURITY_SENSOR_STATUS_TAMPER); }
The Belleville Bulls have been sold and are on their way to Hamilton. Hamilton Bulldogs Owner Michael Andlauer announced the official sale of the American Hockey League franchise to the National Hockey League's Montreal Canadiens. Andlauer also announced the purchase of the Ontario Hockey League's Belleville Bulls wh...
#include "classWithSingleInstanceDependency.hpp" #include <iostream> #include "singleton/get.hpp" #include "Tags.hpp" void ClassWithSingleInstanceDependency::run() { std::cout << "The generated random string is: " << singleton::get<RandomStringGenaratorTag>().getString() << std::endl; }
/*! FUNCTION: prep_pipeline() * SYNOPSIS: Helper for overarching MMORE-SEQS pipeline. * Prepares files for use in the MMORE-SEQS Pipeline */ STATUS_FLAG mmoreseqs_prep_pipeline(WORKER* worker) { printf("=== MMORESEQS: PREP PIPELINE ===\n"); ARGS* args = worker->args; TASKS* tasks = worker->tasks...
<reponame>OpenHFT/Java-Posix<gh_stars>1-10 package net.openhft.posix.internal.jna; import com.sun.jna.Pointer; public class JNAPosixInterface { public native long mmap(Pointer addr, long length, int prot, int flags, int fd, long offset); }
// Copyright (c) 2016-2021 <NAME> and Dr. <NAME> // Please see LICENSE for license or visit https://github.com/taocpp/taopq/ #include <cassert> #include <cctype> #include <cstring> #include <stdexcept> #include <string_view> #include <libpq-fe.h> #include <tao/pq/connection.hpp> namespace tao::pq::internal { nam...
#include <Arduino.h> #include "gravity_soil_moisture_sensor.h" /** * @brief Function to initialize the Gravity Soil Moisture Sensor * @param analog_pin : GPIO analog pin * @return true if a valid value is available. false otherwise */ bool GravitySoilMoistureSensor::Setup(const uint8_t analog_pin) { ...
def _getSessionQuery(self, request): q = Session.query() inequality_filter, filters = self._formatFilters(request.filters, SESSION_FIELDS) if not inequality_filter: q = q.order(Session.name) else: q = q.order(ndb.GenericProperty(inequality_filter)) q =...
Humans are terrible at driving. The US Department of Transport estimates that 94% of crashes are due to the driver. We drive too fast. We get distracted. We make poor decisions. If history is anything to go by, more than 1,000 people are likely to die on Australian roads in the next year. Each death is a tragedy for ...
#include "mock_cluster.h" #include <algorithm> #include <cassert> #include <solidarity/utils/logger.h> #include <solidarity/utils/utils.h> worker_t::worker_t(std::shared_ptr<solidarity::raft> t) { _target = t; self_addr = _target->self_addr(); _tread = std::thread([this]() { this->worker(); }); } worker_t::~wor...
<reponame>xrfang/go-webserver package main import ( "flag" "fmt" "net/http" "os" "path/filepath" "time" audit "github.com/xrfang/go-audit" res "github.com/xrfang/go-res" ) func main() { conf := flag.String("conf", "", "configuration file") ver := flag.Bool("version", false, "show version info") init := fl...
More details have emerged concerning the 20th anniversary reissue of Nirvana 's ‘Nevermind’ and fans will likely be pleased with the news. The new reissue will be available on Sept. 27 in two formats, offering “deluxe” and “super deluxe” editions of the classic release. The five disc (four CD/one DVD) super deluxe ve...
<gh_stars>10-100 from pymtl import * from lizard.util.rtl.interface import UseInterface from lizard.util.rtl.method import MethodSpec from lizard.core.rtl.pipeline_splitter import PipelineSplitterInterface, PipelineSplitterControllerInterface, PipelineSplitter from lizard.core.rtl.messages import DispatchMsg, PipelineM...
package net.teamhollow.newlands.init; import com.mojang.serialization.Codec; import net.minecraft.util.Identifier; import net.minecraft.world.gen.trunk.TrunkPlacer; import net.minecraft.world.gen.trunk.TrunkPlacerType; import net.teamhollow.newlands.NewLands; import net.teamhollow.newlands.mixin.TrunkPlacerTypeMixin;...
//ListApplicationsWithOutput - list applications on cf with output func (repo *ApplicationRepo) ListApplicationsWithOutput() (output []string, err error) { var apps []plugin_models.GetAppsModel apps, err = repo.conn.GetApps() for _, app := range apps { output = append(output, app.Name) } return }
<gh_stars>10-100 export type Validator = (value: string) => boolean; export const sourceTypeValidator = (value: string) => value !== ''; export const sourceNameValidator = (value: string) => new RegExp('^.').test(value); export const ocpClusterIdValidator = (value: string) => new RegExp('^.').test(value); export co...
def reset(self, **kwargs): self.env.reset(**kwargs) obs, _, done, _ = self.env.step(1) if done: self.env.reset(**kwargs) obs, _, done, _ = self.env.step(2) if done: self.env.reset(**kwargs) return obs
<reponame>MH15/imp<gh_stars>1-10 package org.imp.jvm.statement; import org.imp.jvm.domain.scope.Scope; import org.imp.jvm.expression.Expression; import org.imp.jvm.types.Type; import org.objectweb.asm.MethodVisitor; public class Return extends Statement { public final Expression expression; public Return(Ex...
<filename>src/notifications/api.ts<gh_stars>10-100 import { EnrichedPullRequest } from "../filtering/enriched-pull-request"; export interface Notifier { notify( pullRequests: EnrichedPullRequest[], alreadyNotifiedPullRequestUrls: Set<string> ): void; registerClickListener(clickListener: NotifierClickList...
package main import ( "fmt" "log" "context" "github.com/labstack/echo/v4" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/readpref" "go.mongodb.org/mongo-driver/mongo/options" _wineEstateRepo "github.com/sommelier/sommelier/v0/api/wine_estate/repository" "gith...
The Many Faces of Bacterium-Endothelium Interactions during Systemic Infections. A wide variety of pathogens reach the circulatory system during viral, parasitic, fungal, and bacterial infections, causing clinically diverse pathologies. Such systemic infections are usually severe and frequently life-threatening despit...
// ToClaimsHeader parses the bytes and returns the ClaimsHeader func (h HeaderBytes) ToClaimsHeader() *ClaimsHeader { if h == nil || len(h) != maxHeaderLen { return NewClaimsHeader() } compressionTypeMask := compressionTypeMask(h.extractHeaderAttribute(h[0], compressionTypeBitMask.toUint8())) datapathVersionMask ...
<gh_stars>0 // // JRAuditableEntityUI.h // JRAuditableEntityUI // // Created by <NAME> on 11/9/16. // Copyright © 2016 Dealer Information Systems. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for JRAuditableEntityUI. FOUNDATION_EXPORT double JRAuditableEntityUIVersionNumber; //! Pro...
/// types of the SameSite cookie attribute #[derive(Clone, Debug)] pub enum SameSiteTypes { Strict, Lax, None, } /// attributes a cookie can have #[derive(Clone, Debug)] pub enum CookieAttributes { Secure, HTTPOnly, Path(String), Domain(String), SameSite(SameSiteTypes), MaxAge(usize...
<reponame>Gofreedom0/civetcat // Code generated by protoc-gen-go. DO NOT EDIT. // source: pb.proto package pb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf ...
Fault diagnosis of CBTC On-board equipment based on improved GA-BP CBTC On-board equipment is a core component to ensure the safety of subway trains and improve transportation efficiency, and it is of great significance to quickly and effectively diagnose its fault types. Aiming at the complexity of the fault data of ...
/** * Created by Glooory on 17/3/22. */ @Module public class UserModule { private UserContract.View mView; public UserModule(UserContract.View view) { mView = view; } @ActivityScope @Provides UserContract.View provideUserContractView() { return mView; } @ActivitySco...
Looking for news you can trust? Subscribe to our free newsletters. Virginia Republicans have followed through on their threat to sue Gov. Terry McAuliffe over his April 22 decision to restore the voting rights of more than 200,000 felons, filing suit on Monday with the state’s Supreme Court and alleging that the gove...
Control Dominant Factors Analysis for Under-Actuated Vehicle Platoon Stability System As a kind of flexible and under actuated systems which based on cooperative vehicle infrastructure system (CVIS), autonomous tractor-semi trailer platoon in vehicle networking can enhance the information interaction and controllabili...
<filename>python/unicode/ex6.py #!/usr/bin/env python # -*- coding: utf-8 -*- import locale import os import sys import unicodedata from kitchen.text.converters import getwriter, to_bytes, to_unicode from kitchen.i18n import get_translation_object if __name__ == "__main__": # Setup gettext driven translations bu...
/** * prune CBOPushJoinRule rule * @param tables the list of tables in the logicalView * @return false if CBOPushJoinRule is invoked too many times and the table multiset has been optimized */ public boolean addTableList(String tables) { pushJoinHitCount++; int limit = paramManager.g...