content
stringlengths
10
4.9M
# coding: utf-8 import matplotlib.pyplot as plt from perceptron import prepare_data, train_batch from const import FEATURE_NUM, IMG_FOLDER, CUR_FOLDER path = CUR_FOLDER + IMG_FOLDER def plot_dot(x, y, data='0', y_label='number of updates', margin=False, agg=False): fig = plt.figure() ax = fig....
<filename>Godeps/_workspace/src/github.com/untoldwind/routing/matcher.go package routing import "net/http" type Matcher func(remainingPath string, resp http.ResponseWriter, req *http.Request) bool
def config_dump(config_obj, config_path, keyfile_path): if keyfile_path is None: files.json_dump(config_obj, config_path) else: box = crypto.load_box(keyfile_path) crypto.json_secret_dump(config_obj, box, config_path)
import awesome_print class AttrDict(object): def __init__(self, dct): self.dict = dct def __repr__(self): return repr(self.dict) def __str__(self): return awesome_print.awesome_print.format(self.dict) def __getattr__(self, attr): try: val = self.dict[attr]...
<reponame>cliveyao/waltz<gh_stars>1-10 /* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
When George Ayittey saw rock star Bono in the audience at a conference, he made a special effort to rip into the foreign aid establishment. Bono later told Ayittey that he liked his speech but did not agree with that foreign aid is not effective in ending poverty. Ayittey gave Bono a copy of his book, Africa Unchaine...
// This module contains a collection of YANG definitions // for Cisco IOS-XR infra-infra package configuration. // // This module contains definitions // for the following management objects: // banners: Schema for Banner configuration commands // // Copyright (c) 2013-2017 by Cisco Systems, Inc. // All rights rese...
// CrossedOut crosses out provided string. func CrossedOut(s string) string { if s == "" { return "" } return CrossedOutOn + s + CrossedOutOff }
// based on the longest side of the cell public double radiusMeters() { double width = this.widthMeters(); double height = this.heightMeters(); return MathUtils.overlappingCircleRadius(width, height); }
import { fetch } from 'undici' import http from 'node:http' import net from 'node:net' import { fetchEventSource } from '../src/sse/fetchEventSource' let url: string let server: http.Server beforeAll(async () => { server = http.createServer() await new Promise<void>((resolve) => server.listen(0, resolve)) co...
class S3Handler: """ Interface for interacting with an S3 Bucket. """ def __init__(self, bucket): self.s3 = boto3.resource('s3') self.s3_client = boto3.client('s3') self.s3_bucket = self.s3.Bucket(bucket) def store_content_in_s3(self, obj_key: str, content: str): s3...
//Promena stanja igre(Inicijalizija, Pomeri, Gradi) public void nextState() { if (nextMove) { nextMove=false; switch (player_state) { case Game.STATE_INIT:{ if (player_turn==1) { ...
Evaluating the intersection between "green events" and sense of community at Liverpool's Lark Lane Farmers Market. More research needs to evaluate links between community psychology and event impacts. Events are not just entertainment focused economic drivers, but gatherings contributing to society, community, and loc...
/** * @file src/r2plugin/r2cgen.cpp * @brief C code generation and token marking. * @copyright (c) 2020 Avast Software, licensed under the MIT license. */ #include <fstream> #include <optional> #include "r2plugin/r2data.h" #include "r2plugin/r2cgen.h" using namespace retdec::r2plugin; /** * Translation map bet...
def reset(self, reset_params = None): vis_obs, vec_obs = self._env.reset(reset_params = reset_params) vis_obs = self._vis_obs_to_gray(vis_obs) return vis_obs, vec_obs
OXIDATION OF PSYCHOTROPIC DRUGS BY BROMAMINE-B IN ACIDIC BUFFER: A KINETIC STUDY USING SPECTROPHOTOMETRY The kinetics of oxidation of chlorpromazine hydrochloride (CPH) and fluphenazine dihydrochloride (FPH) by bromamine-B (BAB) in pH 1.6 buffer solution has been studied spectrophotometrically at λmax = 570 nm and 530...
<gh_stars>1-10 import React from 'react' import Navigation from './Navigation' import { screen, render } from '@testing' describe('Navigation', () => { it('renders without crashing', async () => { render(<Navigation />) await screen.findByTestId('navigation') }) })
class DecodeContext: """ Internal class to keep tracks of types during typed decoding DecodeContext are immutable """ doc: Union[str, JSONObject] # pylint: disable=unsubscriptable-object pos: Pos globalns: Dict localns: Dict types: TypeTuple get_args: Callable[[TypeHint], Tupl...
<gh_stars>0 import { ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { ApolloQueryResult } from '@apollo/client/core'; import { GetApplicationGQL, GetApplicationQuery, GetWorksGQL, GetWorksQuery, WorkFragment, WorkSpecificationFragment, }...
/// nekowin: OpenGL and Vulkan compatible library for context / surface window generation /// licence: Apache, see LICENCE /// file: napi.h - source file for platform independant api calls /// author: <NAME> #define __NAPI_C #include <napi.h> void neko_ChangeVCMode(bool is_vcp, neko_Window win) { wslots[win].v...
President-elect Donald Trump Donald John TrumpHouse committee believes it has evidence Trump requested putting ally in charge of Cohen probe: report Vietnamese airline takes steps to open flights to US on sidelines of Trump-Kim summit Manafort's attorneys say he should get less than 10 years in prison MORE is upending ...
package org.linkedbuildingdata.ifc2lbd.core.utils; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStreamWriter; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.Arrays;...
// CopyTree recursively copies a directory tree. // // The destination directory must not already exist. // // If the optional Symlinks flag is true, symbolic links in the source tree // result in symbolic links in the destination tree; if it is false, the // contents of the files pointed to by symbolic links are copie...
/** * Default implementation of the {@link OmniEclipseClasspathContainer} interface. * * @author Donat Csikos */ public class DefaultOmniEclipseClasspathContainer extends AbstractOmniClasspathEntry implements OmniEclipseClasspathContainer { private final String path; private final boolean isExported; ...
// MethodOverrideWithConfig returns a MethodOverride middleware with config. // See: `MethodOverride()`. func MethodOverrideWithConfig(config MethodOverrideConfig) makross.Handler { if config.Skipper == nil { config.Skipper = DefaultMethodOverrideConfig.Skipper } if config.Getter == nil { config.Getter = Default...
<reponame>ajitkhaparde/trex-core<filename>src/dpdk/drivers/event/dlb/pf/base/dlb_resource.c /* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2016-2020 Intel Corporation */ #include "dlb_hw_types.h" #include "../../dlb_user.h" #include "dlb_resource.h" #include "dlb_osdep.h" #include "dlb_osdep_bitmap.h" #incl...
"""Example for exploring SQLAlchemy This project provide code how to use AQLAlchemy. THis idea is to build an example sequentially in steps to give new users the idea on where to start and how to progress. Along the way some principles will be exhibited. The code should be self-explanatory without as little as...
<filename>src/Compiler/index.ts<gh_stars>1-10 import { Expression, ExpressionType } from '../Parser'; import { Evaluator, EvaluatorContext, CompilerOptions, EvaluatorFactory } from './Evaluator'; import * as Error from './Error'; import { ArrayPrototype } from './ArrayPrototype'; import { makeValueMarshaller } from './...
<filename>vendor/code.cloudfoundry.org/locket/grpcserver/server_test.go package grpcserver_test import ( "crypto/tls" "fmt" "google.golang.org/grpc" "google.golang.org/grpc/credentials" "code.cloudfoundry.org/cfhttp" "code.cloudfoundry.org/inigo/helpers/portauthority" "code.cloudfoundry.org/lager/lagertest" ...
# _*_ using utf-8 _*_ A, B, T = [int(e) for e in input().strip().split()] ans = (T//A) * B print(ans)
<gh_stars>1-10 use super::pbrt::Spectrum; use super::primitive::Primitive; use super::geometry::{Bounds3f, Ray, Vector3f}; use super::light::{Light, LightFlags}; use super::sampler::Sampler; use super::interaction::{Interaction, SurfaceInteraction}; use super::stats_accumulator::StatsAccumulator; use std::sync::Arc; p...
<reponame>hdansou/vscode-ansible-autocomplete<filename>src/completion-item-provider.ts import { CompletionItemProvider, TextDocument, Position, CancellationToken, CompletionItem } from 'vscode'; import { CompletionEngine } from './completion-engine'; export class AnsibleCompletionItemProvider implements CompletionIte...
package uniswap import ( "fmt" "testing" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/snebel29/uniswap-go-sdk/contracts/erc20" ) // TODO: Create some live test scenario in so...
/* ** Try to convert a value from string to a number value. ** If the value is not a string or is a string not representing ** a valid numeral (or if coercions from strings to numbers ** are disabled via macro 'cvt2num'), do not modify 'result' ** and return 0. */ static int l_strton (const TValue *obj, TValue *result)...
def main( filename: Iterable[PathLike], config_file: PathLike, exclude: "Optional[List[str]]", colour: "ColourTrilean" = None, verbose: bool = False, show_traceback: bool = False, show_diff: bool = False, ): import fnmatch import re from domdf_python_tools.paths import PathPlus from formate.config i...
import java.util.Scanner; import java.util.SortedSet; import java.util.TreeSet; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); for (;;) { int n = Integer.parseInt(scan.next()); int m = Integer.parseInt(scan.next()); if (n == 0 && m == 0) break; int...
// Alright here's the big stuff. A Serializer needs to implement a _lot_ of methods. Fortunately // for us, we don't actually need that much functionality out of our serializer. So we're going to // leave most things unimplemented, and then implement them if we ever end up needing them. impl<'a> Serializer for &'a mut ...
A study of the coastal climates in France using temperature and precipitation data (1961–1990) The coastal climates of France have been studied using temperature and precipitation data from 1961 to 1990. It is found that the coastlines of the French Atlantic (and adjacent seas) and Mediterranean show many similar clim...
A couple of years ago, the basketball team I root for, the University of Michigan, had a player named Zack Novak. Everybody loved his story. He was slow and pudgy coming out of high school, recruited by nobody, and offered a spot at Michigan. Turned out he could play, at least some. He was only six foot three, but he p...
#include<stdio.h> int main() { int t,a,b,c,d,ans,n,emp,full,g,m,rem,i; scanf("%d",&t); while(t--) { int l[1000]; scanf("%d %d",&a,&b); if(a==1) { printf("0\n"); } else if(a==2) { printf("%d\n",b); } else if(a>2) { if(a%2==1) { emp = a/2+1; full = a-emp; ...
import path from 'path' import { stop, lookItUp, lookItUpSync } from '../src' import { CWD, PKG_PATH, BAR_PATH, isFileInDir } from './utils' const hasPkgJson = (dir: string): string | null => isFileInDir('package.json', dir) describe('lookItUp', () => { it('should return package.json path', async () => { cons...
def list_to_cell_grid(cells: List[A], mapping: Dict[Tuple[int, int], int]) -> CellGrid[A]: cell_grid = [] last_i = None for i, j in sorted(list(mapping.keys())): if i != last_i: cell_grid.append([]) cell_grid[i].append(cells[mapping[(i, j)]]) last_i ...
<gh_stars>1-10 #include <QFontDialog> #include "appearancesettingsmenu.h" #include "game.h" AppearanceSettingsMenu::AppearanceSettingsMenu(Game *game, QGridLayout *grid) : Menu(game, grid) { grid->addWidget(&appearanceSettingsLabel, 0, 1); appearanceSettingsLabel.setVisible(false); appearanceSettin...
import * as vscode from 'vscode' import { EOL } from 'os' import type { Extension } from '../main' export class TeXMagician { extension: Extension constructor(extension: Extension) { this.extension = extension } getFileName(file: string): string { const segments = file.replace(/\\/g, ...
/** * Adds the connecting IP and the time of the connection to the database. */ @RequestMapping( value = "/add", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST) @ResponseBody String addRequest(HttpServletRequest request) { JsonObject aOutJson =...
/* *+ * Name: * smf_clipped_stats1D * Purpose: * Calculate mean, median and standard deviation of data with sigma clipping * Language: * Starlink ANSI C * Type of Module: * Library routine * Invocation: * void smf_clipped_stats1D( const double *data, dim_t nclips, * ...
/** * (U) This class is responsible for generating the Software Bill Of Materials (SBOM) for all Ubuntu * Linux Operating Systems. * * @author wrgoff * @since 23 April 2020 */ public class UbuntuSBomGenerator extends UnixSBomGenerator { private static final String PACKAGE_MANAGER = "apt"; private static fina...
<filename>UtilPrograms/userDataGen/src/main/java/com/adu/dataGen/UserRepository.java package com.adu.dataGen; import org.springframework.data.mongodb.repository.MongoRepository; public interface UserRepository extends MongoRepository<User,String> { }
/** * This example demonstrates how to access the local storage and perform operations with it. * * <p>Accessing the session storage is performed by calling {@code Frame.sessionStorage()} instead * of {@code Frame.localStorage()} */ public final class LocalWebStorage { private static final String KEY = "Name"...
Integrating big data into the computing curricula An important recent technological development in computer science is the availability of highly distributed and scalable systems to process Big Data, i.e., datasets with high volume, velocity and variety. Given the extensive and effective use of systems incorporating B...
import 'express-session'; import { UserAttributes } from '../app/models/User'; declare module 'express-session' { export interface SessionData { userId: number; authenticated: boolean; user: Partial<UserAttributes>; } }
<filename>components/credentials/src/test/java/org/cloudfoundry/credhub/domain/CertificateGenerationParametersTest.java package org.cloudfoundry.credhub.domain; import org.cloudfoundry.credhub.requests.CertificateGenerationRequestParameters; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runn...
<reponame>diegomacario/Quaternion-Experiments #ifndef FINITE_STATE_MACHINE_H #define FINITE_STATE_MACHINE_H #include <unordered_map> #include <memory> #include "state.h" class FiniteStateMachine { public: FiniteStateMachine() = default; ~FiniteStateMachine() = default; FiniteStateMachine(const FiniteState...
<filename>src/main/java/at/tugraz/ist/ase/common/CmdLineOptionsBase.java /* * CommonPackage * * Copyright (c) 2022-2022 * * @author: <NAME> (<EMAIL>) */ package at.tugraz.ist.ase.common; import lombok.Getter; import lombok.NonNull; import lombok.extern.slf4j.Slf4j; import org.kohsuke.args4j.CmdLineException; im...
def is_operator_next(self): operators = [ TokenType.ADD, TokenType.SUBTRACT, TokenType.DIVIDE, TokenType.MULTIPLY ] return any([self.peek(operator) for operator in operators])
#include <stdio.h> int main() { int n,l,r,x,c=1,s1=0,s2=0,s=0; scanf("%d %d %d",&n,&l,&r); int mat[n]; for(x=0;x<l;x++) { s=s+c; c=c*2; } s1=s+(n-l); for(x=x;x<r;x++) { s=s+c; c=c*2; } s2=s+(n-r)*(c/2); printf("%d %d",s1,s...
<reponame>devan-huapaya/community-organization-operations-suite /*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { ServiceAnswerInput } from '@cbosuite/schema/dist/provider-types' import { v4 as createId } from 'uuid' import { DbServiceA...
#include "starkware/proof_system/proof_system.h" #include <stdexcept> #include "gtest/gtest.h" #include "starkware/error_handling/error_handling.h" namespace starkware { namespace { TEST(FalseOnError, Correctness) { EXPECT_TRUE(FalseOnError([]() { ASSERT_RELEASE(true, ""); })); EXPECT_FALSE(FalseOnError([]() {...
// Waits for a sync token and import the mailbox as texture. GLuint SynchronizeAndImportMailbox(gpu::gles2::GLES2Interface* gl, const gpu::SyncToken& sync_token, const gpu::Mailbox& mailbox) { gl->WaitSyncTokenCHROMIUM(sync_token.GetConstData()); ...
// Determinate the bit length of p1, p2 for bit length of p. // Per FIPS186-4, table Table B.1., p52 static cc_size ccrsa_fips186_auxiliary_prime_length(cc_size plen) { cc_size auxiliary_prime_bitlen; if (plen<=512) { auxiliary_prime_bitlen=101; } else if (plen<=1024) { auxiliary_prime_b...
// clearMapping prepares all in-memory-mappings and other cache fields. All previous cached entries are removed. func (plugin *IPSecConfigurator) clearMapping() { plugin.spdIndexes.Clear() plugin.cachedSpdIndexes.Clear() plugin.saIndexes.Clear() }
import csv import io import json import unittest from scripts.migrate_to_whatsapp_templates.prebirth1 import Prebirth1Migration class TestPrebirth1(unittest.TestCase): def setUp(self): self.prebirth1 = Prebirth1Migration() def test_sequence_number_to_weeks(self): """ Given a certain ...
/** * Created by Dal-Dev-Team on 17/3/7. */ public class DDLSlow extends DetectStrategy { private static final Logger LOGGER = LoggerFactory.getLogger(DDLSlow.class); @Override public void detect0() { if (curSql.type == QUERY_TYPE.COMMIT) { sqlScore = curSql.result.getAvgDurInCurWindow() ...
<filename>src/app/customers/card/card.component.ts<gh_stars>0 import {Component, Input, OnInit} from '@angular/core'; import {Customer} from '../interfaces/customer.interface'; @Component({ selector: 'app-customer-card', templateUrl: './card.component.html', styleUrls: ['./card.component.css'] }) export class Ca...
Parity Violating Deep Inelastic Electron-Deuteron Scattering: Higher Twist and Parton Angular Momentum We study the effect of parton angular momentum on the twist-four correction to the left-right asymmetry in the electron-deuteron parity-violating deep inelastic scattering (PVDIS). We show that this higher-twist corr...
EVE: Valkyrie – Warzone review Imagine yourself in a single-seat fighter-ship. You’re floating in the vast emptiness of space with three other pilots like yourself escorting a cargo ship. You think it’s just another quiet mission, easy credits in your pocket, but that’s not the case. Bogies appear on your radar – one ...
#pragma once #include "../Core/Types.hpp" #include "../Core/String.hpp" namespace Ax { namespace System { struct SUUID { uint32 data1; uint16 data2; uint16 data3; uint8 data4[ 8 ]; String ToString() const; }; void GenerateUuid( SUUID &uuid ); }}
n, m = input().split(' ') n = int(n) m = int(m) bulbs_list=[] for i in range(n): temp = input().split(' ') bulbs_list = bulbs_list + temp[1:] bulbs_set = set(bulbs_list) if len(bulbs_set)==m: print("YES") else: print("NO")
<reponame>nealholt/python_programming_curricula import pygame, math, random #Setup pygame.init() width = 900 height = 600 screen = pygame.display.set_mode((width,height)) clock = pygame.time.Clock() font = pygame.font.SysFont('Arial', 24) black = 0,0,0 white = 255,255,255 class Asteroid: def __init__(self, surface,...
Storage of multivolume holograms using the phase-encoding technique Reconfigural volume holograms are important for a wide range of multiple data storage applications, including optical interconnection systems, image processing and neural network models. Several techniques for multiplexing to obtain a large number of ...
def update_stochastic_states(self): for statename, generator in self.rngs.items(): if self._rng_params[statename][1]: gen_method = getattr(generator, self._rng_params[statename][1]) setattr(self, statename, gen_method(*self._rng_params[statename][2]))
ATLANTA — Pushing aside years of funding problems and construction dilemmas, this city on Tuesday opened a small loop of a transportation option that last operated here more than six decades ago: streetcars. Although the electric streetcars, condemned by some as a $98 million gimmick, will not relieve Atlanta’s traffi...
use proconio::{input, fastout}; use std::cmp::*; #[fastout] fn main() { input!{ x:usize, y:usize, a:usize, b:usize, c:usize, mut p: [i64; a], mut q: [i64; b], mut r: [i64; c], } p.sort(); p.reverse(); q.sort(); q.reverse(); r.extend_from_slice(&p[0..x]); ...
Tropical Race Four, a soil-born fungus, has been destroying bananas across the world. It kills the plant and makes bananas smell like garbage. That deadly fungus is expected to hit Central America, which is where we get all our bananas from. There are a thousand types of bananas in the world but only one represents 99...
/** * this handles all cool effects that go on per arrow * * @param g2d copy of the graphics from {@link GameGame#paint(java.awt.Graphics)} * @param imageLayer seperate image for effects */ public void paint(Graphics2D g2d, BufferedImage imageLayer) { AffineTransform a = new AffineTransform(); a.translat...
/** * Tests the visit alias declaration method. */ @Test public final void testVisitAliasDeclaration() { AddDeclarationProgramVisitor visitor = new AddDeclarationProgramVisitor(); visitor.setProgram(program); visitor.visit(aliasDeclaration); verify(program, times(1)).addAli...
// GetNetwork retrieves a single network by id func (s *Service) GetNetwork(networkID string) (Network, error) { body, err := s.getNetworkResponseBody(networkID) return body.Data, err }
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_INSTALLER_GCAPI_GOOGLE_UPDATE_UTIL_H_ #define CHROME_INSTALLER_GCAPI_GOOGLE_UPDATE_UTIL_H_ #include <string> namespace gcapi_internals { ...
Recent developments in renal cell cancer immunotherapy Various immunotherapeutic approaches for the treatment of renal cell carcinoma (RCC) have been developed for > 90 years. Existing immunotherapeutic strategies against RCC include: systemic administration of cytokines; therapeutic vaccines based on tumor cells or d...
/* * by: Tyler Brazill * problem: p082A **/ import java.util.Scanner; public class p082A { public void start() throws Exception { Scanner in = new Scanner(System.in); String[] ppl = {"Sheldon", "Leonard", "Penny", "Rajesh", "Howard"}; int target = in.nextInt()-1; int sodas = 0; int length = 5...
The members of the Security Council condemned the attack “in the strongest terms,” the 15-member body said in a statement issued to the press this afternoon. According to media reports, at least six people were killed and several more were injured yesterday in the bombing when a remote controlled device was detonated ...
Energy Star standards, which rate the energy efficiency of buildings and products, need an update, according to Consumer Reports. On the heels of criticism of Energy Star last week from a New York congresswoman, the magazine said the ratings program needed to raise the bar on qualifying products and develop better tes...
/** * compute and return the size of the network - the number of adjustable parameters * @return the size of the network - the number of adjustable parameters */ int ANN::size()const{ if(NN_PRINT_FUNC>0) std::cout<<"ANN::size():\n"; int s=0; for(int n=0; n<nlayer_; ++n) s+=bias_[n].size(); for(int n=0; n<nlayer_...
import { LanguageDecorator } from '../language-decorators/language_decorator' import { Argument } from './argument' import { Receiver } from './receiver' import { Utils } from '../utils'; export abstract class Expression implements Receiver { comment?: string chainedMethodCall: MethodCall|null = null; abstract forc...
//~ Innere Klassen ---------------------------------------------------- private static class DayOperator<T extends ChronoEntity<T>> implements ChronoOperator<T> { //~ Instanzvariablen ---------------------------------------------- private final boolean backwards; //~ Konstruktoren ---...
<gh_stars>0 {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} ...
<gh_stars>1-10 // Copyright 2017 <NAME> aka. Luxko // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed //...
/* Copyright 2015 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef PN_FUNCTION_H_ #define PN_FUNCTION_H_ static PNConstant* pn_function_append_constant(PNModule* module, ...
Human echolocation operates as a viable “sense,” working in tandem with other senses to deliver information to people with visual impairment, according to new research published in Psychological Science, a journal of the Association for Psychological Science. Ironically, the proof for the vision-like qualities of echo...
// sign creates the signature for specific checkpoint // with local key. Only contract admins have the permission to // sign checkpoint. func sign(ctx *cli.Context) error { var ( offline bool chash common.Hash cindex uint64 address common.Address node *rpc.Client oracle *checkpointoracle.CheckpointOr...
/** * Callback method that is executed after the user has selected his photos * * @param requestCode the code from the startActivityForResult(...) call * @param resultCode a code indicating whether the user has completed or cancelled the selection * @param data the activity specific data (see b...
/** * Notify the framework that the device is connected to the IMS network. * * @param attributes The attributes associated with the IMS registration. */ public final void onRegistered(@NonNull ImsRegistrationAttributes attributes) { updateToState(attributes, RegistrationManager.REGISTRATION...
export {createWorkerMessenger} from './worker'; export {createIframeWorkerMessenger} from './iframe';
package tableTest import ( "bytes" "io" "strconv" "strings" "testing" ) // Test defines an expected output given a specified input. type Test struct { Input string Output string } // RwFunc consumes input from a Reader and writes output to a Writer. type RwFunc func(io.Reader, io.Writer) error // Run execut...
Symmetries of the asymptotically de Sitter spacetimes We start a systematic investigation of possible isometries of the asymptotically de Sitter solutions to Einstein equations. We reformulate the Killing equation as conformal equations for the initial data at $\mathcal{I}^+$. This allows for partial classification of...
import json import os import unittest from jsonschema import validate from Routing.MockPathfinder import MockPathfinder def load_schema(filename): file = os.path.join(os.path.dirname(__file__), "schemas/" + filename) with open(file) as f: return json.loads(f.read()) class MockPathfinderTest(unittest...
Pig Intestinal Membrane‐Bound Receptor (Guanylyl Cyclase) for Heat‐Stable Enterotoxin: cDNA Cloning, Functional Expression, and Characterization A cDNA encoding the receptor protein for a heat‐stable enterotoxin (STa) produced by enterotoxigenic Escherichia coli was cloned from intestinal epithelial cells of a 10‐week...
/* * Unit test for verifying logic after removing redundant ClassTag fields for key and value from * com.basho.riak.spark.japi.rdd.RiakJavaPairRDD class */ @SuppressWarnings("unchecked") @Test public void createWithClass() { final RiakRDD<Tuple2<String, Object>> rdd = mock(RiakRDD.class);...
<filename>src/module/enterprise/availability/availability.component.ts import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild, } from '@angular/core'; import { debounceTime } from 'rxjs/operators'; @Component({ selector: 'amexio...
/** * Created with IntelliJ IDEA. * User: neil * Date: 18/04/2013 * Time: 13:52 * To change this template use File | Settings | File Templates. */ public class RulesKeyValueExtractorTest { private RulesKeyValueExtractor kve; @Before public void before() { kve = new RulesKeyValueExtractor(); ...