content
stringlengths
10
4.9M
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
<filename>common/dao-api/src/main/java/org/thingsboard/server/dao/user/UserService.java<gh_stars>1-10 package org.thingsboard.server.dao.user; import com.google.common.util.concurrent.ListenableFuture; import org.thingsboard.server.common.data.User; import org.thingsboard.server.common.data.id.CustomerId; import org.t...
/** * Checks the behavior of {@link FailedPublisherStageFactory} when running on the Vert.x Context. * * @author <a href="http://escoffier.me">Clement Escoffier</a> */ public class FailedPublisherStageFactoryTest extends StageTestBase { @Test public void createWithErrorFromVertxContext() { Exceptio...
// ProcessAddress is the entrypoint for the StructProcessor func (gp StructProcessor) ProcessAddress(algodData, indexerData []byte) (Result, error) { var indexerResponse generated.AccountResponse err := json.Unmarshal(indexerData, &indexerResponse) if err != nil { return Result{}, fmt.Errorf("unable to parse index...
import { Fragment } from 'react'; import { Member } from '../../models'; interface IMembershipProfileProps { member: Member; } const MembershipProfile: React.FC<IMembershipProfileProps> = ({ member }) => { const details = [ { key: '<NAME>', value: member['<NAME>'] }, { key: 'Gender', value: member['Gender...
// Unzip unzips the input byte slice. func Unzip(in []byte) ([]byte, error) { inReader := bytes.NewReader(in) gzipReader, err := gzip.NewReader(inReader) if err != nil { return nil, err } defer gzipReader.Close() var result bytes.Buffer _, err = result.ReadFrom(gzipReader) if err != nil { return nil, err }...
<reponame>ebegen/Dunner import numpy as np import pandas as pd import swifter class DataCleaner(): def _getDuplicateColumns(self, df,verbose=False): groups = df.columns.to_series().groupby(df.dtypes).groups duplicated_columns = [] for dtype, col_names in groups.items(): column_v...
class InstanceManager: """ The static (singleton) hero instance manager. We avoid using the defualt Malmo instance management because it only allows one host. """ MINECRAFT_DIR = os.path.join("/minerl.herobraine", "scripts") MC_COMMAND = os.path.join(MINECRAFT_DIR, 'launchHero.sh') MA...
from core.constants import VISIBILITY_CHOICES, Visibility from core.models import TimestampModel from django.db import models class MStreamManager(models.Manager): def visible(self, user): if user.is_authenticated: return super().get_queryset() else: return super().get_quer...
import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; class ByteInOutExample { @Test void testInt() throws Exception { final long value1 = 1234567890987654321L; final byte[] bs = new byte[8]; bs[0] = (byte) ((value1 >>> 56) & 0xff); bs[1] = (byte) ((value1 >>> 48) & 0xff); ...
YOOO LET’S TALK ABOUT CARPET DIEM FOR A MINUTE, SHALL WE? Not only is it a great episode with body switching antics and all that Stanley foreshadowing, but what I love about this episode is how the twins react to getting their bodies switched. With most TV shows, when characters switch bodies they only freak out a tiny...
ctvbc.ca The two boys who have admitted to the brutal murder of Kimberly Proctor were avid players in an online role-playing game and experts say it's likely the line between fantasy and reality became blurred. On Wednesday, a B.C. court heard how two teens, aged 16 and 18, planned the murder of the Colwood, B.C., gi...
package handlers import ( "encoding/json" "automata/devices" "log" "strings" ) func SmokerHandler(message []byte) bool { decoder := json.NewDecoder(strings.NewReader(string(message))) //Initialize the struct var smokerUpdate devices.SmokerRead err := decoder.Decode(&smokerUpdate) if err !=...
// RGB Core Library: a reference implementation of RGB smart contract standards. // Written in 2019-2022 by // Dr. <NAME> <<EMAIL>> // // To the extent possible under law, the author(s) have dedicated all copyright // and related and neighboring rights to this software to the public domain // worldwide. This softwa...
def file_version_exists_in_file_system(self, product_version_id: int): file_path = self.file_version_path_for_id(product_version_id=product_version_id, full_path=True) return os.path.isfile(path=file_path)
import React from 'react' import { renderRoutes } from 'react-router-config' import ReactConfig from './routers' import { history } from '@/assets/js/history' import { ConnectedRouter } from 'connected-react-router' const Routers: React.FC = () => { return ( <ConnectedRouter history={history}> {renderRoutes...
/** * Create an internmediate model of the external resource (JSON string) * * @param externalId * @param externalResource * @return */ @Override public ResourceModel makeResourceModel(String externalId, String externalResource) { CrossrefResolverAPI resolverAPI = new CrossrefR...
import { Field, Int, ObjectType } from '@nestjs/graphql' import { Channel } from './channel' import { Emojis } from './emojis' import { GuildMember } from './guildMember' import { Roles } from './roles' import { Sticker } from './sticker' @ObjectType() export class Guild { @Field({ nullable: true }) owner?: boole...
/** * Invokes a previously open invocation stream. The stream must not be * closed. * * @param rid Previous invocation request ID * @param params Parameters of the invocation, can be {@code null} * @see #invoke */ public void continuousInvoke(int rid, JsonObject params) { R...
// RUN: %clang_cc1 -fsyntax-only -verify %s struct A { A() : value(), cvalue() { } // expected-error {{reference to type 'int' requires an initializer}} int &value; const int cvalue; }; struct B { int field; }; struct X { X() { } // expected-error {{constructor for 'X' must explicitly initialize ...
FDG PET/CT and MR imaging of CD34-negative soft-tissue solitary fibrous tumor with NAB2-STAT6 fusion gene. Extrapleural solitary fibrous tumor (SFT) is an uncommon mesenchymal neoplasm of intermediate biological potential. Herein, we describe the radiological, histological, immunohistochemical and molecular genetic fe...
/** * * @author <a href="mailto:alex@jboss.org">Alex Loubyansky</a> */ public class FKStackOverflowUnitTestCase extends JBossTestCase { // Constructor public FKStackOverflowUnitTestCase(String name) { super(name); } // Suite public static Test suite() throws Exception { return ...
def update_access_url_service( self, project_id, service_id, access_url_changes): try: service_old = self.storage_controller.get_service( project_id, service_id ) except ValueError as e: LOG.warning('Get service {0} failed. ...
// NewAgent will connect to nats in main cluster and proxy connections locally // to an http.Handler. // TODO: add reasonable defaults for keepAliveInterval func NewAgent(nc *nats.Conn, id uuid.UUID, handler http.Handler, subject string, keepAliveInterval time.Duration) *Agent { return &Agent{ nc: nc, id:...
import request from 'supertest' import app from '../app' import { genApiData } from '../util' import { genErr, genErrRes } from '../util/err' describe('General app endpoints', () => { it('should respond to GET request with 200 and API data', () => request(app) .get('/') .then(res => { expect...
<filename>lock/helpers_test.go package lock import ( "log" "net" etcd "go.etcd.io/etcd/client/v3" ) func init() { s, err := net.Dial("tcp", "127.0.0.1:2379") if err != nil { log.Fatalln("etcd is not running on localhost", err) } s.Close() } func client() *etcd.Client { client, err := etcd.New(etcd.Config{...
<reponame>grj1046/go-cnblogs package ing import ( "encoding/json" "log" "net/http" "strconv" "strings" "time" "errors" "github.com/PuerkitoBio/goquery" ) //Client ing.cnblogs.com type Client struct { //IngID int authCookie string urlStr string httpClient *http.Client } /...
Johnny 3 Tears recently took some time to sit down with French-Canadian music blog Metal Universe. Johnny takes time to speak on the creative process behind V, tour-mates, and the first official word on the fate of former member Da Kurlzz. You can read the original French interview on the Metal Universe site. We have...
def closed(self): return not self.__parser or self.__parser.closed
package glm import "fmt" type Sphere struct { Center Vec3 Radius float32 } func NewSphere(v *Vec3, r float32) *Sphere { return &Sphere{*v, r} } func (s *Sphere) CylinderCoord(n *Vec3) *Vec2 { a := Atan2(n.X, n.Y) return &Vec2{a / Pi2, (1 - n.X) / 2} } func (s *Sphere) Midpoint(a, b *Vec3) (mid *Vec3) { mid =...
<gh_stars>1-10 use frunk_core::{hlist, HList}; use serde::{Deserialize, Serialize}; use serde_json::json; use crate::{HLabelledMap, Labelled}; #[derive(Debug, Eq, PartialEq, Serialize, Deserialize)] struct A { a: usize, } impl Labelled for A { const KEY: &'static str = "a"; } #[derive(Debug, Eq, PartialEq, ...
// UPDATE di una entry nella mappa public void update(Note note) throws InvalidKeyException { if(!reg.containsKey(note.getTitle())) throw new InvalidKeyException("Nota non presente"); reg.put(note.getTitle(), note); }
/** * Storage for the raw results of finding similar images. Everything is stored in memory in an uncompressed format. * * @author Peter Abeles */ public class SimilarImagesData implements LookUpSimilarImages { public final List<String> listImages = new ArrayList<>(); public final Map<String, Info> imageMap = new...
def parse_stack(par, post_fix, ann, root, output) -> List[Tuple[List[RGoal], List[RGoal]]]: items = serlib.cparser.children(post_fix, ann, root).tolist() res = [] for item in items: _first, _second = serlib.cparser.children(post_fix, ann, item).tolist() first = parse_goals(par, post_fix, ann...
Adam West Guest Star Information Gender Status Birth September 19, 1928 Walla Walla, Washington, USA Death June 9, 2017 (aged 88) Los Angeles, California, USA Nationality American Claim to fame Actor Character Himself Batman Mayor Adam West First appearance Mr. Plow" This article is about Adam West the actor and g...
import { Routes, RouterModule } from '@angular/router'; import { AuthComponent } from './auth.component'; import { MetaGuard } from '@ngx-meta/core'; const authRoutes: Routes = [ { path: '', redirectTo: 'login', pathMatch: 'full' }, { path: '', component: AuthComponent, // Wrapper canActivateChil...
<reponame>GiovanniSM20/java<gh_stars>1-10 package Controller; public interface IUsuario { boolean validarLogin (String login, String senha); }
package test_persistence import ( "testing" cconf "github.com/pip-services3-go/pip-services3-commons-go/config" persist "github.com/pip-templates/pip-templates-microservice-go/persistence" ) func TestBeaconsFilePersistence(t *testing.T) { var persistence *persist.BeaconsFilePersistence var fixture *BeaconsPersi...
def _mul_matrix(self, other): from .non_lazy_tensor import NonLazyTensor from .mul_lazy_tensor import MulLazyTensor self = self.evaluate_kernel() other = other.evaluate_kernel() if isinstance(self, NonLazyTensor) or isinstance(other, NonLazyTensor): return NonLazyTens...
/** * Returns the next random number in the sequence. * * @return The next random number. */ public final synchronized double nextDouble() { int k; k = m[i] - m[j]; if (k < 0) { k += m1; } m[j] = k; if (i == 0) { i = 16; ...
/** * This class exists solely so GSON can correctly * parse the JSON returned from the database representing * the team stats */ public class Score { private String score; private String win; private String lose; public String getScore() { return score; } public void setScore(Str...
import sys from math import * readints=lambda:map(int, input().strip('\n').split()) la,ra,ta=readints() lb,rb,tb=readints() k=(la-lb)/gcd(ta,tb) klo=floor(k) khi=ceil(k) def intersection(ax,ay,bx,by): # print(ax,ay,bx,by) l,r=max(ax,bx),min(ay,by) if l>r: return 0 return r-l+1 # print(klo,khi) an...
. The effect of lipoxygenase derivatives of 13-hydroperoxylinoleic acid (13-HPODE) and 13-hydroxylinoleic acid (13-HODE) on zymosan-induced chemiluminescence of rat neutrophils in vitro was evaluated. It was found that both derivatives inhibit functional activity of neutrophils. The extent of inhibition was changed by...
// Put stores the provided key/value pair to the mock address index bucket. // // This is part of the internalBucket interface. func (b *addrIndexBucket) Put(key []byte, value []byte) error { var levelKey [levelKeySize]byte copy(levelKey[:], key) b.levels[levelKey] = value return nil }
<filename>research_pyutils/path_related.py # Copyright (C) 2015 <NAME> # available under the terms of the Apache License, Version 2.0 import os from os import system, listdir, walk from os.path import isdir, isfile, sep, join, getmtime import shutil import errno from glob import glob from subprocess import check_outpu...
How many of the NYC rats survived hurricane Sandy? This question has been asked in the wake of Sandy's flooding of lower and east Manhattan. See, for example, articles in Huffington Post Green, Forbes, National Geographic, Business Insider, Mother Nature Network and NYMag. The short answer is: some rats drowned, some ...
from sklearn.base import BaseEstimator, RegressorMixin from sklearn.utils.validation import check_is_fitted class FunctionRegressor(BaseEstimator, RegressorMixin): """ This class allows you to pass a function to make the predictions you're interested in. Arguments: func: the function that can mak...
#include<bits/stdc++.h> using namespace std; #define ll long long #define DEBUG(x) cout << '>' << #x << ':' << x << endl; #define REP(i,n) for(ll i=0;i<(n);i++) #define FOR(i,a,b) for(ll i=(a);i<(b);i++) #define FORC(i,a,b,c) for(ll i=(a);i<(b);i+=(c)) #define pb(x) push_back(x) #define ff first #define ss sec...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Cardano.Wallet.Network.BlockHeadersSpec ( spec ) where import P...
<gh_stars>1-10 #include<fcntl.h> #include<stdio.h> #include<unistd.h> #include<string.h> int main(int argc, const char* const* argv) { if (argc <= 1) { return 1; } for(int i = 1; i<argc; i++) { char location[20] = "proc/"; strcat(location, argv[i]); strcat(location...
a=[] n,m=(map(int,input().strip().split(' '))) d={} for i in range(n): arr=list(map(str,input().strip().split(' '))) if arr[1] in d: d[arr[1]].append(arr[0]) else: d[arr[1]]=[arr[0]] for i in range(m): ss=input() arr=list(ss.split(' ')) l=len(arr[1]) ...
/** * https://wiki.vg/Protocol#Craft_Recipe_Request<br> * <br> * This packet is sent when a player clicks a recipe in the crafting book that * is craftable (white border).<br> * <br> * Packet ID: 0x19<br> * State: Play<br> * Bound To: Server * * @author Martin * */ public class PacketPlayInAutoRecipeEvent e...
N = int(input()) al = "abcdefghijklmnopqrstuvwxyz" atoi = {s:i for i, s in enumerate(al)} def func(s, i): if i == N: print(s) return maxi = max([atoi[c] for c in s]) for c in al[:maxi+2]: func(s+c, i+1) func("a", 1)
Finite-size scaling analysis of the S=1 Ising model on the triangular lattice. We study the S=1 Ising model, equivalent to the three-state lattice-gas model, with nearest-neighbor, pairwise interactions on a two-dimensional, triangular lattice. We pay particular attention to the antiferromagnetic phase diagrams. We sh...
#include <boost/lexical_cast.hpp> #include <assert.h> #include "Iop_Spu2_Core.h" #include "../Log.h" #define LOG_NAME_PREFIX ("iop_spu2_core_") #define SPU_BASE_SAMPLING_RATE (48000) using namespace Iop; using namespace Iop::Spu2; #define MAX_ADDRESS_REGISTER (22) #define MAX_COEFFICIENT_REGISTER (10) ...
// Copyright (c) 2018 Chef Software Inc. and/or applicable contributors // // 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 r...
These are R.E.G.R.E.T.'s website, Facebook page (Update: the page's content seems now to be hidden) and Twitter. This is the US Food & Drug Administration page that gives Gardasil information, which references 772 serious adverse events following administration of Gardasil, out of 23,000,000 doses administered. There i...
Men have been wearing wrist watches for over 100 years. It was during World War I when soldiers in the trenches realized the traditional pocket watch of the time was not going to cut it on the battle field. With limited communications during that time, precision timing was everything and soldiers couldn’t be fishing ar...
package main import ( "encoding/csv" "fmt" "io" "log" "os" ) func main() { csvFile, err := os.Open("file-to-read.csv") defer csvFile.Close() if err != nil { log.Fatal(err) } reader := csv.NewReader(csvFile) var aSliceOfMaps []map[string]string for { values, err := reader.Read() if err == io.EO...
import numpy as np from rllab.misc.instrument import VariantGenerator from sac.misc.utils import flatten, get_git_rev, deep_update M = 256 REPARAMETERIZE = True LSP_POLICY_PARAMS_BASE = { 'type': 'lsp', 'coupling_layers': 2, 's_t_layers': 1, 'action_prior': 'uniform', # 'preprocessing_hidden_size...
/** * The PredicateSplitUpRule might have rewritten disjunctions into complex predicate/union chains. If no rule between * the PredicateSplitUpRule and this rule has benefited from these chains, executing them as predicates and unions might * be more expensive than having the ExpressionEvaluator run on the original ...
/* Enable or disable irq according to the 'disable' flag. */ static inline void maskInterrupt(bool_t disable, interrupt_t irq) { if (disable) { avic->intdisnum = irq; } else { avic->intennum = irq; } }
A shipwreck in the Namib desert on the Skeleton Coast of Namibia. Photo: Wolfgang Steiner/Getty Images/iStockphoto This week, to accompany our cover story on worst-case climate scenarios, we’re publishing a series of extended interviews with climatologists on the subject — most of them from the “godfather generation” ...
/** * This class represents a color expressed in the indexed XTerm 256 color extension, where each color is defined in a * lookup-table. All in all, there are 256 codes, but in order to know which one to know you either need to have the * table at hand, or you can use the two static helper methods which ...
<gh_stars>10-100 /** * @file ruuvi_device_id.h * @author TheSomeMan * @date 2021-07-08 * @copyright Ruuvi Innovations Ltd, license BSD-3-Clause. */ #ifndef RUUVI_GATEWAY_ESP_DEVICE_ID_H #define RUUVI_GATEWAY_ESP_DEVICE_ID_H #include <stdint.h> #include <stdbool.h> #include "mac_addr.h" #ifdef __cplusplus extern...
def manage_actors(self, monitor, stop=False): alive = 0 if self.managed_actors: for aid, actor in list(self.managed_actors.items()): alive += self.manage_actor(monitor, actor, stop) return alive
<gh_stars>10-100 package replication import ( "context" "fmt" "testing" "time" apis_composition "github.com/atlassian/voyager/pkg/apis/composition" comp_v1 "github.com/atlassian/voyager/pkg/apis/composition/v1" "github.com/atlassian/voyager/pkg/k8s" "github.com/stretchr/testify/assert" "github.com/stretchr/t...
def _check_directory(host_path: str, output_name: str) -> None: def raiser(exc: OSError): raise exc for root, subdirs, files in os.walk(host_path, onerror=raiser, followlinks=False): for fn in files: fn = os.path.join(root, fn) if os.path.islink(fn) and ( ...
Belsnickel (also Belschnickel , Belznickle , Belznickel , Pelznikel , Pelznickel , from pelzen (or belzen , German for to wallop or to drub [1] ) and Nickel being a hypocorism of the given name Nikolaus ) is a crotchety, fur-clad Christmas gift-bringer figure in the folklore of the Palatinate region of southwestern Ger...
/* eslint-disable no-console */ import * as core from '@actions/core'; import * as github from '@actions/github'; import { CrawlerApiClient } from './crawler-api-client'; import type { ConfigJson } from './types/configJson'; import type { GetCrawlersResponseBody } from './types/publicApiJsonResponses'; // CREDENTIALS...
import sys try: sys.stdin=open('inputf.in', 'r') sys.stdout=open('outputf.in','w') except: pass # hello # sys.setrecursionlimit(2000) #------------------------------------------------ #importing libraries import math import sys from math import sqrt from collections import defaultdict from collections import Counte...
#include <cstring> #include "aergo.hpp" unsigned char privkey[32] = { 0xDB, 0x85, 0xDD, 0x0C, 0xBA, 0x47, 0x32, 0xA1, 0x1A, 0xEB, 0x3C, 0x7C, 0x48, 0x91, 0xFB, 0xD2, 0xFE, 0xC4, 0x5F, 0xC7, 0x2D, 0xB3, 0x3F, 0xB6, 0x1F, 0x31, 0xEB, 0x57, 0xE7, 0x24, 0x61, 0x76 }; int main() { Aergo aergo("testnet-api.aergo....
<reponame>zchen0211/ELF_inf #!/usr/bin/env python import sys import torch # Thanks jerry! def main(): f = sys.argv[1] model_data = torch.load(f) state_dict = model_data['state_dict'] keys_to_delete = [] for key in state_dict.keys(): if key.endswith('.num_batches_tracked'): key...
<reponame>dragen1860/MAML-Pytorch-RL<filename>test/test_pipe2.py from multiprocessing import Process, Pipe import numpy as np def writeToConnection(conn): conn.send(np.ones(3)) conn.close() if __name__ == '__main__': recv_conn, send_conn = Pipe(duplex=False) p = Process(target=writeToConnection, args=(send_co...
Relationship between changes in antigen expression and protein synthesis in human melanoma cells after hyperthermia and photodynamic treatment. Hyperthermia and photoactivated hematoporphyrin derivative induce a dose-dependent reduction in the expression of the p250 surface melanoma-associated antigen on the human FME...
// UnmarshalResponse reads the response from the given request and unmarshals // the value into the given result. func UnmarshalResponse(req *http.Request, result interface{}) (*http.Response, error) { resp, err := http.DefaultClient.Do(req) if err != nil { return resp, err } if resp.StatusCode == http.StatusNoCo...
<gh_stars>1-10 import muster, { action, applyTransforms, array, call, catchError, computed, createCaller, createSetter, defer, DoneNodeType, entries, error, fields, filter, first, fromPromise, get, getInvalidTypeError, includes, isPending, isQueryNodeDefinition, key, last, ...
/* * called in either blk_queue_cleanup or elevator_switch, tagset * is required for freeing requests */ void blk_mq_sched_free_requests(struct request_queue *q) { struct blk_mq_hw_ctx *hctx; int i; queue_for_each_hw_ctx(q, hctx, i) { if (hctx->sched_tags) blk_mq_free_rqs(q->tag_set, hctx->sched_tags, i); }...
/** * @return the indication of whether objects will be validated before being returned to the pool * @see ConnectionProperties#setTestOnReturn(boolean) */ public final boolean isTestOnReturn() { return testOnReturn; }
#include <iomanip> #include <sstream> #include <chrono> #include <ctime> #include <Log.h> std::ostream &Log::stream() { return std::cout; } std::string Log::header(const LogLevel &level) { auto now = std::chrono::system_clock::now(); auto time = std::chrono::system_clock::to_time_t(now); std::strings...
/* * Copyright WSO2 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 i...
Influence of egg storage time and preincubation warming profile on embryonic development, hatchability, and chick quality. When eggs are stored beyond 7 d, hatchability and chick quality decrease. The cause of the negative effects of prolonged egg storage is not clear. The negative effects may be caused by a decrease ...
// ChangePassword changes user's password func (s *Service) ChangePassword(c *gin.Context, oldPass, newPass string, id int) error { if !s.rbac.EnforceUser(c, id) { return apperr.Forbidden } u, err := s.udb.View(c, id) if err != nil { return err } if !auth.HashMatchesPassword(u.Password, oldPass) { return ap...
<gh_stars>0 import { AbstractExpressRoutes } from '../expressRoutesManager'; import { ExpressControllerCommunicationDelegate } from '../../controllers/communicationDelegates/communicationDelegates'; import { BuildingsController } from '../../controllers/buildings/buildingsController'; import { DAOBundle } from '../../m...
// checkWorkerMCPStatus is for reconciling update status of all machines in profiling MCP func (r *MachineConfigReconciler) checkWorkerMCPStatus(ctx context.Context) (ctrl.Result, error) { mcp := &mcv1.MachineConfigPool{} if err := r.ClientGet(ctx, types.NamespacedName{Name: WorkerNodeMCPName}, mcp); err != nil { r...
<reponame>jbarratt/goadvent2016<filename>day11/main.go<gh_stars>0 package main import ( "bytes" "fmt" ) //go:generate stringer -type=Element // Floors represents the number of floors const Floors = 4 var numComponents int // Element is the element of the generator or chip type Element uint8 // Element types con...
/** * Defines the parameters for the origin group override action. */ public class OriginGroupOverrideActionParameters { /** * The odatatype property. */ @JsonProperty(value = "@odata\\.type", required = true) private String odatatype; /** * defines the OriginGroup that would override ...
Billionaire Michael Dell‘s investment firm MSD Capital, L.P has purchased the entire New York print archive of renowned photo agency Magnum Photos, totaling nearly 200,000 images. The collection includes some of the most iconic images throughout history, including photos of world leaders, celebrities, and major events ...
/** Internal method to add rule. */ @SuppressWarnings({ "unchecked", "rawtypes" }) static void addRule( TypeAnnotationToRule toRule, Annotation a, Class<?> clazz, List<SerializationRule> newRules, List<SerializationRule> rules ) { SerializationRule rule; try { rule = toRule.createRule(a, clazz); } catch (Ex...
Transfer Therapy Cancer Regression in Patients Receiving Cell Lymphocyte Clonotypes Correlates with Cutting Edge: Persistence of Transferred The lack of persistence of transferred autologous mature lymphocytes in humans has been a major limitation to the application of effective cell transfer therapies. The results of...
// openFile opens fn, a file within the testdata dir, and returns an FD and the file's size. func openFile(fn string) (*os.File, int64, error) { f, err := os.Open(filepath.Join("testdata", fn)) if err != nil { return nil, 0, err } s, err := f.Stat() if err != nil { f.Close() return nil, 0, err } return f, ...
/** * Handles parsing of the user's input when an autocomplete is requested. */ public class PartialInputParser { /** * Searches for autocomplete results based on the user's input and the provided application model. */ public static PartialInput parse(String partialInputString, Model model) throws ...
def remove_random_edge(self): u, v, k = self.get_random_edge() logger.log(5, 'removing %s, %s (%s)', u, v, k) self.graph.remove_edge(u, v, k)
/** * Highchart by default puts a credits label in the lower right corner of the * chart. This can be changed using these options. */ @Generated(value = "This class is generated and shouldn't be modified", comments = "Incorrect and missing API should be reported to https://github.com/vaadin/vaadin-charts-flow/issues...
We spend too much attention and energy on the Union Budget. It focusses on doing more things. It’s about building more roads, more low income housing, allowing investment, changing tax structures and of course, about telling us how badly the government has been doing this. We pay too little attention to building thing...
def hash(self, key): value = 0 for i in range(len(key)): value = (value * self.hash_base + ord(key[i])) % self.table_capacity return value
Combustion of olive husks in a small scale bfb facility for heat and steam generation The paper reports a work-in-progress outlook of a R&D project aimed at developing an advanced boiler for the combustion of virgin and exhaust olive husks at small scale. Fluidized bed technology has been preferred because of its well...
The Discovery of the Great Wall of Jordan, Southern Levant Great wall of Jordan also known as Khatt Shebib is a unique ancient wall situated in Southern Jordan near Maan City. The remains of the wall which includes towers, barracks, rooms ...etc. are 150 km long from south to north, making it the longest linear archae...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { i18n } from '@kbn/i18n'; import { lt } from '../../functions/common/...
<reponame>747500/html-to-docx<gh_stars>0 declare module 'html-to-docx';