content
stringlengths
10
4.9M
import numpy as np import cv2 img = cv2.imread("imori.jpg") img = img * np.array([0.0722, 0.7152, 0.2126]) img = np.sum(img, axis=2) img[img<128] = 0 img[img>=128] = 255 cv2.imshow("imori", img.astype(np.uint8)) cv2.waitKey(0) cv2.destroyAllWindows()
def modified_action(elem, sony, paperpile, modtime, *, dry_run=True, verbose=True): smod = os.stat(sony).st_mtime pmod = os.stat(paperpile).st_mtime print('current: %i, sony: %i, paperpile: %i' % (modtime, smod, pmod)) if smod > modtime + 10: print('sony newer') if ...
<gh_stars>100-1000 /** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import type { DockTabStoreDependencies } from "../dock-tab-store/dock-tab.store"; import { DockTabStore } from "../dock-tab-store/dock-tab.store"; expor...
<reponame>DOREMUS-ANR/diabolo-converter<gh_stars>0 package org.doremus.diaboloConverter.files; import org.doremus.diaboloConverter.Utils; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import java.util.Collections; import ...
/** * This class implements the <code>ItemDefinition</code> interface. * All method calls are delegated to the wrapped {@link org.apache.jackrabbit.spi.QItemDefinition}, * performing the translation from <code>Name</code>s to JCR names * (and vice versa) where necessary. */ abstract class ItemDefinitionImpl implem...
#include<bits/stdc++.h> typedef long long ll; using namespace std; #define endl "\n" ll GCD(ll x) { ll sum = 0,tmp=x; while(tmp>0){ sum+=tmp%10; tmp/=10; } ll gcd = __gcd(x,sum); return gcd; } int main() { ll tc; cin>>tc; wh...
def makePoint(self, point): from com.vividsolutions.jts.geom import Coordinate ind = string.find(point,",") latStr = point[0:ind-1] lonStr = point[ind+1:len(point)] lat = float(latStr) lon = float(lonStr) return Coordinate(lon,lat)
/** * Takes a copy of the cells, possibly filtering cells in hidden columns and rows, and cells if a window is present. * Note filtering of {@link #labels} will happen later. */ private Set<SpreadsheetCell> filterCells(final Set<SpreadsheetCell> cells) { return filterCells( cells,...
<gh_stars>1-10 use crate::{bitcoind::BitcoindError, config::BitcoindConfig}; use revault_tx::bitcoin::{ consensus::encode, Amount, BlockHash, OutPoint, Transaction as BitcoinTransaction, }; use std::{ any::Any, fs, process, str::FromStr, thread, time::{Duration, Instant}, }; use jsonrpc::{ ...
<filename>Example/Pods/CPAPIService/CPAPIService/Classes/CPAPIService.h // // CPAPIService.h // CPAPIService // // Created by <NAME> on 2/24/20. // Copyright © 2020 CP Tech. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for CPAPIService. FOUNDATION_EXPORT double CPAPIService...
/** * Template method with default implementation (which may be overridden by a * subclass), to load or obtain an ApplicationContext instance which will be * used as the parent context of the root WebApplicationContext. If the * return value from the method is null, no parent context is set. * <p>The main rea...
/* PostAccountHolderBalance Retrieve the balance(s) of an account holder. This endpoint is used to retrieve the balance(s) of the accounts of an account holder. An account&#39;s balances are on a per-currency basis (i.e., an account may have multiple balances: one per currency). * @param request AccountHolderBalanceRe...
// compute the number of jumps needed to escape the maze int num_jumps(vector<int>& input) { int current = 0; int n = 0; int size = input.size(); while (current < size) { ++n; next_step(current, input); } return n; }
#pragma once #include "Config.h" #include "Serialize.h" #include "ModelUtils.h" #include "Routing.h" #include <array> #include <cstdint> class Project; class PlayState { public: //---------------------------------------- // Types //---------------------------------------- enum ExecuteType { ...
p,q,l,r = [ int(a) for a in input().split() ] a = [] b = [] c = [] d = [] for i in range(p): aa,bb = [ int(a) for a in input().split() ] a.append(aa) b.append(bb) for i in range(q): aa,bb = [ int(a) for a in input().split() ] c.append(aa) d.append(bb) #print(p,q,l,r) #print(a,b,c,d) counter = 0...
M:I 6 – Mission Impossible director Christopher McQuarrie has shared a first look at Henry Cavill with Tom Cruise in the 6th film of the franchise. McQuarrie posted the image on Instagram which reveals himself with the acting duo on set in Paris, check it out below: … A post shared by Christopher McQuarrie (@christop...
<reponame>artas360/pythran<gh_stars>0 #ifndef PYTHONIC_OPERATOR_DELITEM__HPP #define PYTHONIC_OPERATOR_DELITEM__HPP #include "pythonic/include/operator_/__delitem__.hpp" #include "pythonic/operator_/delitem.hpp" namespace pythonic { namespace operator_ { FPROXY_IMPL(pythonic::operator_, __delitem__, delite...
def _initialize_logging_with_id(self, class_name): if getattr(self, '_log', None) is not None: return log_name = "{}-{}".format(class_name, self.id) self._log = logging.getLogger(log_name) self.add_logging_handler(logging.NullHandler())
/** * Evaluates IndexBounds from the given IntervalEvaluationTrees for the given query. * 'indexBoundsInfo' contains the interval evaluation trees. * * Returns the built index bounds. */ std::unique_ptr<IndexBounds> makeIndexBounds( const stage_builder::IndexBoundsEvaluationInfo& indexBoundsInfo, const Canonic...
/** * @author Jeremy McCormick <jeremym@slac.stanford.edu> * @version $Id: AbstractLayeredSubdetector.java,v 1.10 2011/03/11 19:22:20 jeremy Exp $ */ abstract public class AbstractLayeredSubdetector extends AbstractSubdetector implements Layered { protected Layering layering; private List<Double> nrad; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; #define rep(i,l,r) for(int i=l;i<r;i++) #define rep2(i,r,l) for(int i=r;i>l;i--) #define sz(a) (ll)a.size() #define mp(a,b) make_pair(a,b) #define pb(a) push_back(a) #define nl "\n" #define pii pa...
//***************************************************************************** // //! Draws a vertical line. //! //! \param pContext is a pointer to the drawing context to use. //! \param lX is the X coordinate of the line. //! \param lY1 is the Y coordinate of one end of the line. //! \param lY2 is the Y coordinate o...
/** * SISO program GAGAOnString.java * * This is an APPROXIMATE version of a program solving the computational problem * GAGAOnString, which is itself uncomputable. * * progString: A Java program P * * inString: A string I, to be thought of as an input to P * * returns: the program attempts to return "yes...
/** * Disable receiving over this WeaveConnection. This method is used by the application * to indicate that it is not ready to receive any arrived data over the TCP connection. * In order to re-enable receiving, the application needs to call EnableReceive() to * allow WeaveConnection to hand over any recei...
def batch_internal_diversity(smiles, set_smiles=None): rand_mols = [Chem.MolFromSmiles(s) for s in smiles] fps = [AllChem.GetMorganFingerprintAsBitVect(m, 4, nBits=2048) for m in rand_mols] vals = [bulk_tanimoto_distance(s, fps) if verify_sequence(s) else 0.0 for s in smiles] return vals
<reponame>pinglue/pg-repo import path from "path"; import fs from "fs-extra"; import chokidar from "chokidar"; import type { ChannelInfo } from "../channel"; import { _merge } from "@pinglue/utils"; import { _readYaml } from "./utils/helpers.js"; import { Loader, LoaderSettings, LoaderOutpu...
/* * vmcache_alloc -- allocate memory (take it from the queue) * * It returns the number of allocated bytes if successful, otherwise -1. * The last extent of doubly-linked list of allocated extents is returned * in 'first_extent'. * 'small_extent' has to be zeroed in the beginning of a new allocation * (e.g. whe...
<reponame>nomad-xyz/monorepo import { Nomad, utils, Network, LocalNetwork, Key } from "../src"; import type { TokenIdentifier } from "@nomad-xyz/sdk/nomad/tokens"; import { ethers } from "ethers"; import { TransferMessage } from "@nomad-xyz/sdk/nomad"; import fs from "fs"; import { Waiter } from "../src/utils"; import ...
A new method to determine the causes of deviation in cylinder pressure curves of motored reciprocating piston engines Simulation calibration of modern engines to test bench measurements, mainly matching the indicated pressure curves in the combustion chamber, is a time consuming task that requires high user experience...
<filename>auto-CRC.py<gh_stars>10-100 #!/usr/bin/env python """ This script appends CRC-32s to the end of the files in a directory. This is intended for anime fansubbing releases. You can change what it checks by modifying the 'ext' (extension) on L47. Can be run both from the command line, and imported. """ import arg...
A Coherent and Managed Runtime for ML on the SCC Intel’s Single-Chip Cloud Computer (SCC) is a many-core architecture which stands out due to its complete lack of cache-coherence and the presence of fast, on-die interconnect for inter-core messaging. Cache-coherence, if required, must be implemented in software. Moreo...
/* Parcelable boilerplate from here on out. */ @Override public int describeContents() { /* We are saving no file descriptors. */ return 0; }
OFFICIALS WITH Washington’s football team have defended the team’s name by arguing that its fans and many Americans, including some who are Native American, see nothing objectionable in the moniker and don’t want it changed. The suggestion, of course, is that the push for a new name comes from outliers, a vocal but clu...
package pipeline import ( "context" "path/filepath" "testing" "time" "github.com/grafana/grafana-plugin-sdk-go/backend" "github.com/grafana/grafana-plugin-sdk-go/data" "github.com/grafana/grafana-plugin-sdk-go/experimental" "github.com/stretchr/testify/require" ) func checkExactConversion(tb testing.TB, file...
# Copyright 2020 The DDSP 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 law or agreed to in wri...
def pixel(ndf, input_nc=3, norm='batch', init_type='normal', init_gain=0.02): norm_layer = get_norm_layer(norm_type=norm) net = PixelDiscriminator(input_nc, ndf, norm_layer=norm_layer) init_weights(net, init_type, init_gain=init_gain) return net
// SetPriority accept only PriorityLow, PriorityMedium or PriorityHigh constants func (c MangaConfig) SetPriority(priority int) MangaConfig { acceptable := makeListInt(priorities) if _, ok := acceptable[priority]; !ok { return c } c["priority"] = strconv.Itoa(priority) return c }
import { Component, OnInit } from '@angular/core'; import {FirebaseService} from '../../services/firebase.service'; import {DataService} from '../../services/data.service'; import {Router, ActivatedRoute, Params} from '@angular/router'; @Component({ selector: 'app-applicant-list', templateUrl: './applicant-list.com...
/** * Copy from HAN * * @author Emmanuel Bernard */ public abstract class HANTestCase extends junit.framework.TestCase { private static SessionFactory sessions; private static AnnotationConfiguration cfg; private static Dialect dialect; private static Class lastTestClass; private Session session; public HAN...
On the Minimum Number of Monochromatic Generalized Schur Triples The solution to the problem of finding the minimum number of monochromatic triples $(x,y,x+ay)$ with $a\geq 2$ being a fixed positive integer over any 2-coloring of $ $ was conjectured by Butler, Costello, and Graham (2010) and Thanathipanonda (2009). We...
/** * When a variable is overriden by another, e.g. via xsl:import, * its references need to be copied or otherwise it may be * compiled away as dead code. This method can be used for that * purpose. */ public void copyReferences(VariableBase var) { final int size = _refs.size(); ...
/// For a given conditional copy, predicate the definition of the source of /// the copy under the given condition (using the same predicate register as /// the copy). bool HexagonExpandCondsets::predicate(MachineInstr *TfrI, bool Cond) { unsigned Opc = TfrI->getOpcode(); (void)Opc; assert(Opc == Hexagon::A2_tfrt...
Alumina scale growth and degradation modes of a TBC system Abstract The evolution of a thermal barrier coating system was followed during exposures at high temperature (1100°C) and under various thermal and mechanical loading conditions. The TBC system is composed of an EB-PVD yttria partially stabilised zirconia topc...
import { nil } from '../..'; describe('nil', () => { describe('required', () => { it('returns null if null passed', () => { expect(nil(null)).toBe(null); }); it('throws a typeError if other value is specified (no context specified)', () => { expect( () => nil(1), ).toThrow(new ...
Franchise player Carmelo Anthony offered a ringing endorsement of another player on the New York Knicks: point guard and roster hopeful Chasson Randle. Within an NBA organization, few individuals are more influential than the franchise player. What they suggest isn’t guaranteed to materialize, but it’s only rational t...
from math import ceil from collections import defaultdict as dd import sys input=sys.stdin.readline #n=int(input()) n=input().split()[0] su=0 for i in n: su=(su+int(i))%9 if(su==0): print("Yes") else: print("No")
<reponame>gannochenko/generators import { FunctionComponent } from 'react'; import { FooterRoot, Copyright, Links } from './style'; import { FooterPropsType } from './type'; import { Container } from '../Container'; import { Link } from '../Link'; import { meta } from '../../meta'; export const Footer: FunctionCompon...
package jp.sf.amateras.csseditor.editors; import jp.sf.amateras.htmleditor.ColorProvider; import jp.sf.amateras.htmleditor.HTMLPlugin; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.contentassist.ContentAssistant; import org.eclipse.jface.text.contentassist.IContentAssistant; import org.eclips...
#include <iostream> #include <vector> #include <stack> #include <queue> using namespace std; /** * 2020-04-20 * Veronica */ struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: TreeNode * bstFromPreorder(vector<int>& preorder...
/** * * jerry - Common Java Functionality * Copyright (c) 2012, <NAME> * * http://www.sangupta/projects/jerry * * 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.ap...
// Copyright 2020 The Kubernetes Authors. // SPDX-License-Identifier: Apache-2.0 package fake import ( "context" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/labels" "sigs.k8s.io/controller-runtime/pkg/client" ) type ClusterReader struct { NoopClusterReader GetResource *unstru...
Erythrocyte sodium-lithium countertransport: another link between essential hypertension and diabetes. Erythrocyte Na+/Li+ countertransport has been extensively investigated in human essential hypertension in numerous clinical, epidemiologic, and genetic studies and through these studies has emerged as the best-charac...
<reponame>xuezier/mvc-example export * from './StoreService'; export * from './StoreAddressService';
// Libraries import axios from 'axios' // Errors import { RequestError } from '../middleware/errorMiddleware' class PackageNotFound extends RequestError { constructor() { super(404, 'Package does not exist') } } /** * API Documentation * https://github.com/npm/registry/blob/master/docs/download-counts.md ...
#include <iostream> using namespace std; #include <string> #include <vector> #include <algorithm> #include <map> typedef long long ll; #include <cmath> #include <iomanip> const int MOD = 1000000007; ll POWER(ll x,ll y) { ll ret=1; ll p=x; for (ll i=y;i>0;i/=2) { if (i%2) ret=(ret*p)%MOD; p=(p*p)%MOD; } ret...
// Testing Rest Client access against ORCID REST API func TestRestAPI(t *testing.T) { apiURL := "https://pub.sandbox.orcid.org" clientID := "APP-01XX65MXBF79VJGF" clientSecret := "3a87028d-c84c-4d5f-8ad5-38a93181c9e1" testORCID := "0000-0003-0900-6903" api, err := New(apiURL, OAuth, clientID, clientSecret) if err...
<reponame>nirtamir2/vue-use-web import { ref, onMounted, onUnmounted } from '@vue/composition-api'; export function useMousePosition() { const x = ref(0); const y = ref(0); function handler(e: MouseEvent) { x.value = e.clientX; x.value = e.clientY; } onMounted(() => { window.addEventListener('m...
#----------------------------------------------------# #--Author: <NAME> (<NAME>)-----# #--W: https://harrys.fyi/----------------------------# #--E: <EMAIL>----------------------------# #----------------------------------------------------# #!/usr/bin/env python import fileinput import shutil from tkinter import * impo...
*a,=map(int,input().split()) a[0],a[1]=abs(a[0]),abs(a[1]) aa=min(a[0],a[1]) a[0]-=aa a[1]-=aa bb=aa*2+a[0]+a[1] print(['No','Yes'][a[2]-bb>-1 and (a[2]-bb)%2==0])
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; ...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class C { static int N; static char[] A; static int[] arr; static long[][][] dp=new long[1001][1001][27]; public static void main(String[] args) throws Throwable { Buffer...
// NewTransport returns an http.RoundTripper that modifies requests according to // the RequestModifiers passed in the arguments, before sending the requests to // the base http.RoundTripper (which, if nil, defaults to http.DefaultTransport). func NewTransport(base http.RoundTripper, modifiers ...RequestModifier) http....
<gh_stars>1-10 package main import ( "bytes" "flag" "fmt" "log" "net/rpc" "github.com/aws/aws-sdk-go/service/lambda" "github.com/cloudinterfaces/lrpc/client" "github.com/cloudinterfaces/lrpc/demo" ) func main() { flag.Parse() funcName := flag.Arg(0) if len(funcName) == 0 { log.Println("Function name req...
async def _poll_dead_pid(pid, callback, args): for timeout in (0.001, 0.01, 0.1, 1.0, 2.0): await asyncio.sleep(timeout) status = wait_pid(pid) if status is not None: _invoke_callback(callback, pid, status, args) break else: LOGGER.critical("Pid %r is not ...
Patrick Kaleta of the Buffalo Sabres is serving a 10-game suspension for his hit to the head of Jack Johnson of the Columbus Blue Jackets, which he’s currently appealing. On Friday, he addressed the suspension and his over-the-edge style of play … which he says he’s trying to change. From the Sabres: Scroll to contin...
Unsupervised Learning of Visual Features through Spike Timing Dependent Plasticity Spike timing dependent plasticity (STDP) is a learning rule that modifies synaptic strength as a function of the relative timing of pre- and postsynaptic spikes. When a neuron is repeatedly presented with similar inputs, STDP is known t...
/** * Updates the chart data from the chart template * * @param original the original chart to update * @param chart the template chart to update the original from * @return the updated chart */ public Chart updateChart(Chart original, Chart chart) { original.setInternationalNum...
def run(self, cur_time, points): device_dict = {} dx_result = Results() for point, value in list(points.items()): point_device = [name.lower() for name in point.split("&")] if point_device[0] not in device_dict: device_dict[point_device[0]] = [(point_devic...
def check_pdf_file_exists(dir_out, sample, file_name): actual_file = os.path.join(dir_out, sample, file_name) assert os.path.exists(actual_file), "Non-existent file: %s" % actual_file
1574. Multivariate Regression Analysis to Determine Independent Predictors of Treatment Outcomes in the RESTORE-IMI 2 Trial In the RESTORE-IMI 2 trial, imipenem/cilastatin/relebactam (IMI/REL) was non-inferior to PIP/TAZ for treating hospital-acquired/ventilator-associated bacterial pneumonia (HABP/VABP) in the ...
#!/usr/bin/env python3 import argparse from codeforces.parser import parse from utils.generators import ( generate_folder_structure, generate_test_files, copy_templates, ) class Platform: CODEFORCES = 'codeforces' def main(): parser = argparse.ArgumentParser() parser.add_argument( ...
/** * @author Mark Fisher */ public abstract class ReceptorEvent<D> { private static final ObjectMapper objectMapper = new ObjectMapper(); private final int id; private final String type; private Map<String, D> data; public ReceptorEvent(int id, String type) { this.id = id; this.type = type; } public...
#include "ch.h" #include "app_cfg.h" #include "message.h" #include "sxfs.h" #include "common.h" #include "crc/crc32.h" #include "touch.h" #include "types.h" #include <string.h> #include <stdio.h> typedef struct { uint32_t reset_count; unit_t temp_unit; output_ctrl_t control_mode; quantity_...
/** * Created by Joel on 19-Sep-17. */ public class DiscoverGamesContract { interface View extends BaseView<Presenter> { void setLoadingIndicator(boolean active); void showPopularGames(List<Game> games); void showMostAnticipatedGames(List<Game> games); void showUpcomingGames(L...
N,K=map(int,input().split()) A=list(map(int,input().split())) tmp=10**9+7 cna=0 for i,a in enumerate(A): for at in A[i+1:]: if a>at: cna+=1 cna2=0 for a in A: for at in A: if a>at: cna2+=1 kt=(K-1)*(K)//2 print((K*cna+kt*cna2)%tmp)
def monkey_patch_py2neo(): for item in IMPORT_TABLE: if not hasattr(py2neo, item.name): setattr(py2neo, item.name, getattr(this_module, item.name)) if py2neo_ver == 1: monkey_patch_py2neo_v1() elif py2neo_ver == 2: monkey_patch_py2neo_v2() elif py2neo_ver == 3: ...
// VolumeGet calls engine binary // TODO: Deprecated, replaced by gRPC proxy func (e *EngineBinary) VolumeGet(*longhorn.Engine) (*Volume, error) { output, err := e.ExecuteEngineBinary("info") if err != nil { return nil, errors.Wrapf(err, "cannot get volume info") } info := &Volume{} if err := json.Unmarshal([]by...
# -*- coding: utf-8 -*- from .trainer import Trainer from .plm_trainer import MaskedLMTrainer from .evaluation import (evaluate_text_classification, evaluate_entity_recognition, evaluate_attribute_extraction, evaluate_relation_extraction, ...
Chemometric discrimination of different tomato cultivars based on their volatile fingerprint in relation to lycopene and total phenolics content. INTRODUCTION The characteristic flavour of tomato is given by a complex mixture of sugars, acids, amino acids, minerals and volatile metabolites. Of these, volatile compound...
<gh_stars>0 package domain import ( "encoding/json" "errors" ) func ReadTasks(data []byte) (map[string]Task, error) { type instanceJson struct { Application_id string Warden_job_id uint64 Warden_container_path string Instance_index uint64 State string } type stagi...
/* eslint-env jest */ import { Parser } from "../gcode-parser"; test('all input should be preserved', () => { const parser = new Parser(); const gcode =`G1 X0 Y0 Z1 E1`; const parsed = parser.parseGCode(gcode); expect(parsed).not.toBeNull(); const unparsed = parser.lines.join('\n'); expect(unparsed).toEqu...
<filename>impl/src/main/java/com/github/chenjianjx/srb4jfullsample/impl/biz/auth/AccessTokenRepo.java<gh_stars>1-10 package com.github.chenjianjx.srb4jfullsample.impl.biz.auth; import java.sql.Timestamp; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis...
Premedication With Oral Pregabalin for the Prevention of Acute Postsurgical Pain in Coronary Artery Bypass Surgery Background: For coronary artery bypass grafting (CABG) sternotomy should be performed. The pain after surgery is severe and requires medical intervention. Use of the analgesics is limited by their side ef...
<commit_msg>Use the correct main for cancel job <commit_before>package com.ibm.streamsx.rest; import java.io.IOException; import java.math.BigInteger; import com.ibm.streamsx.topology.internal.streams.InvokeCancel; class StreamsConnectionImpl extends AbstractStreamsConnection { private final String userName; ...
package net.onrc.onos.core.intent; import static org.junit.Assert.assertEquals; import net.onrc.onos.core.topology.LinkData; import net.onrc.onos.core.util.Dpid; import net.onrc.onos.core.util.PortNumber; import net.onrc.onos.core.util.SwitchPort; import net.onrc.onos.core.util.serializers.KryoFactory; import org.jun...
//package codeforce; import java.io.*; import java.util.*; public class dimaandhares { static int[] a,b,c; static int[][] dp; static int n; public static void main(String[] args) throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); PrintWriter pw=new...
Is Unhealthy Fat Mass Disguised By A Healthy BMI In Females With Eating Disorders?: 1723 Board #4 June 1 1 CONCLUSION: Large differences in means were expected due to the MRI imaging a larger anatomical region (L5 to T9) compared to DXA (20% distance from iliac crest to base of skull). Our results indicate that quanti...
/** * Implementation of the algorithm General * Algorithm minimizes the MADFA per height level * @author Tobias * */ public class AlgorithmSPL_N extends AlgorithmSPL_T { @Override protected void addWord(String word) { // long nanoTime = System.nanoTime(); State currentState = this.automaton.getStartState...
#pragma once #include <cstdint> #include <cassert> #include <iostream> #include <memory> #include "symbol.hpp" namespace ast { template <typename T> using Ptr = std::shared_ptr<T>;//T*; template <typename T> using WeakPtr = std::weak_ptr<T>;//T*; #define newPtr std::make_shared #define castPtr std::dynamic_poin...
/** * User: blangel * Date: 12/30/11 * Time: 2:51 PM * * A {@link Command} to initialize a directory as a {@literal ply} project. */ public final class Init extends Command { private static final Set<File> CLEANUP_FILES = new HashSet<File>(); public Init(Args args) { super(args); } publ...
# Copyright 2017 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. # See LICENSE in the project root for license information. from unittest.mock import patch from fossor.checks.BasicEnvirCheck.diskusage import DiskUsage @patch('fossor.plugin.Plugin.shell_call') def test_disk_usage(...
/** * Functional tests to validate that {@code PrefsKeyAmplitudeSynced} properties get synced * correctly with amplitude user properties. * * @author Inderjeet Singh */ @RunWith(PowerMockRunner.class) @PrepareForTest({Context.class, SharedPreferences.class, PreferenceManager.class, Amplitude.class}) public class P...
def testSinglePageWithZeroPages( self ): project = TestUtils.createProject() self.assertIs( project.single_page, True )
Abstract 080: Dietary Fructose Enhances Protein Kinase C Activation by Angiotensin II in Proximal Tubules via Changes in Intracellular Calcium Dietary fructose causes salt-sensitive hypertension. This is in part due to increasing the sensitivity of proximal nephron Na reabsorption to angiotensin II (Ang II) such that ...
/** * Task synchronize list. * * @author Dmitriy Bobrov (bobrov.dmitriy@gmail.com) */ public class SyncListLinkTest { /** * Test add. */ @Test public void whenAddValueToLinkedConatainer() { SyncListLink<Integer> linkedList = new SyncListLink<>(); for (int i = 0; i < 6; i++) { ...
def generator2toolset(cls, generator): if not platform._is_win: raise NotImplementedError("generator2toolset only available on Windows") if not generator.startswith("Visual Studio"): raise ValueError("Toolsets only available for Visual Studio generators.") if genera...
import { IVersionMetaData } from './IVersionMetaData'; import { ITagInfo } from './ITagInfo'; export interface IProgram { id: number; name: string; path: string; langs: string[]; tagInfos: ITagInfo[]; versions: IVersionMetaData[]; }
Analysis of the phosphatidylinositol 3'-kinase signaling pathway in glioblastoma patients in vivo. Deregulated signaling through the phosphatidylinositol 3'-kinase (PI3K) pathway is common in many types of cancer, including glioblastoma. Dissecting the molecular events associated with activation of this pathway in gli...
public class Program { public static boolean returnTrue() { return true; } }
/** * Class for server analysis failed exception. * * @author Murat Artim * @date 7 Apr 2017 * @time 16:04:44 * */ public class ServerAnalysisFailedException extends Exception { /** Serial ID. */ private static final long serialVersionUID = 1L; /** Server message. */ private final AnalysisFailed serverMess...