content
stringlengths
10
4.9M
<filename>controller/src/main/java/org/jboss/as/controller/services/path/RelativePathService.java /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of indi...
Serum polychlorinated biphenyls (PCBs) in Anniston, AL, residents have been associated with hypertension and diabetes. There have been no systematic interventions to reduce PCB body burdens in Anniston or other populations. Our objective was to determine the efficacy of 15 g/day of dietary olestra to reduce PCBs in Ann...
Pirro: 'Bozos' Still Haven't Figured Out What Russia Did to Stop 'Queen Hillary' Cruz: 'There's No Good Answer in Syria After 8 Years of Obama Weakness' Judge Jeanine Pirro applauded President Trump's decision to launch 59 missiles targeting a Syrian air base in response to the recent chemical weapons attack on civil...
#include <iostream> #include <cstdio> using namespace std; int main() { char c, cp; int ans; int count=0; int len[100000]; int sum=0, psum=0; int ind=0; int temp; while(c!='0'&&c!='1'){ scanf("%c", &c); } cp=c; count=1; sum++; while(cin>>c){ if(c=='0' || c=='1'){ sum++; i...
// Complete the countingValleys function below. func countingValleys(n int32, s string) int32 { var valleys int32 return valleys }
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
<reponame>blockchainhelppro/Erc-Tokens #include "dxvk_buffer.h" #include "dxvk_device.h" namespace dxvk { DxvkBuffer::DxvkBuffer( DxvkDevice* device, const DxvkBufferCreateInfo& createInfo, VkMemoryPropertyFlags memoryType) : m_device (device), m_info (creat...
/** * Adds the tablespace. * * @param query the query */ private void addTablespace(StringBuffer query) { if (null != this.tablespaceName) { query.append(MPPDBIDEConstants.LINE_SEPARATOR); query.append("TABLESPACE "); query.append(ServerObject.getQualified...
def pack_result_summary_key(result_summary_key): assert result_summary_key.kind() == 'TaskResultSummary' request_key = result_summary_key_to_request_key(result_summary_key) return pack_request_key(request_key) + '0'
Story highlights Errol Louis: The conflict over Sandy relief reflects deep division in Republican Party He says the House majority is split between pragmatic pols and radical budget cutters John Boehner is caught in the middle, trying to keep a lid on the battle, Louis says Louis: Complaints, threats by Christie, Ki...
package net.londonunderground; import mtr.RegistryObject; import mtr.mappings.BlockEntityMapper; import net.fabricmc.api.ModInitializer; import net.londonunderground.mappings.FabricRegistryUtilities; import net.minecraft.core.Registry; import net.minecraft.resources.ResourceLocation; import net.minecraft.sounds.SoundE...
#include <fstream> #include <sstream> #include <algorithm> #include "bitmatrix.h" void bye_bye() { printf("ERROR: The original bitmatrix was modified.\n"); exit(1); } void check_equal(Bitmatrix *b1, Bitmatrix *b2) { int i, j; if (b1 == NULL || b2 == NULL) { if (b1 == b2) return; bye_bye(); } if ...
//! Template cards for Welcome Screen. //! //! Template cards allow user to select a predefined template by clicking on the corresponding //! card. use ensogl::prelude::*; use ensogl::system::web::traits::*; use crate::ClickableElement; use enso_frp as frp; use ensogl::system::web; use web::Element; use web::HtmlDiv...
/** Benchmarks for the {@link DoubleFormat} class. */ @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.NANOSECONDS) @Warmup(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS) @Measurement(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS) @Fork(value = 1, jvmArgs = {"-server", "-Xms512M", "-Xmx512M"})...
package com.ervin.ez_websocket.controller; import org.jasypt.encryption.StringEncryptor; import org.jasypt.encryption.pbe.PooledPBEStringEncryptor; import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotati...
class Song { public Id: any; public Name: string; public Url: string; public Duration: string; public Image: string; } export default Song;
import React from "react" import assert from "assert" import reactNodeToString from "./index" type Test = [input: React.ReactNode, expectedOutput: string] describe("react-node-to-string", () => { it("extracts correct string", () => { const tests: Test[] = [ ["lorem ipsum", "lorem ipsum"], [123, "123...
Supplemental Material: Holocene to latest Pleistocene incremental slip rates from the east-central Hope fault (Conway segment) at Hossack Station, Marlborough fault system, South Island, New Zealand: Towards a dated path of earthquake slip along a plate boundary fault <div>Includes IRSL detailed procedures with figure...
SAN DIEGO — The talking heads on MLB Network ran through a segment on the Cubs that spelled it out with a “SHAKE IT UP” on-screen graphic: Call up Javier Baez, make him your third baseman and shift Kris Bryant to left field. Starlin Castro didn’t look up from his phone on Wednesday afternoon, relaxing in a leather cha...
MUMBAI, India--(BUSINESS WIRE)--Axalta Coating Systems (NYSE: AXTA), a leading global supplier of liquid and powder coatings, opened its expanded Technology Center Savli in Vadodara in the state of Gujarat, India. The technology investment demonstrates Axalta’s commitment to delivering innovative coating solutions in I...
""" 输入一个整数数组,实现一个函数来调整该数组中数字的顺序, 使得所有的奇数位于数组的前半部分,所有的偶数位于数组的后半部分, 并保证奇数和奇数,偶数和偶数之间的相对位置不变。 """ # -*- coding:utf-8 -*- class Solution: def reOrderArray(self, array): # write code here # key 作为排序依据 return sorted(array, key=lambda x: x%2==0)
/** * Unit test for simple App. */ public class SAXParserTest extends TestCase { /** * Create the test case * * @param testName * name of the test case */ public SAXParserTest(String testName) { super(testName); } /** * @return the suite of tests being tested */ public static Test sui...
/** * A Simple map that doesn't allow null Values. * * @author Yeelp * * @param <Key> the type of keys of the map * @param <Value> the type of values stored in the map */ public class NonNullMap<Key, Value> extends HashMap<Key, Value> implements Map<Key, Value> { private static final long serialVersionUID =...
Effects of Hydrogen Peroxide on Dental Unit Biofilms and Treatment Water Contamination Objectives: To study effects of various concentrations of hydrogen peroxide on mature waterline biofilms and in controlling planktonic (free-floating) organisms in simulated dental treatment water systems; and to study in vitro the ...
Thermal Monitoring of Natural Source Zone Depletion Natural depletion of subsurface petroleum liquids releases energy in the form of heat. The rate of natural source zone depletion (NSZD) can be derived from subsurface temperature data. An energy balance is performed to resolve NSZD‐generated energy in terms of W/m2. ...
def build_css_class(localized_fieldname, prefix=''): bits = localized_fieldname.split('_') css_class = '' if len(bits) == 1: css_class = str(localized_fieldname) elif len(bits) == 2: css_class = '-'.join(bits) elif len(bits) > 2: css_class = _join_css_class(bits, 2) i...
def distribution_quantiles(mr, quantile, F_sv, norm_consts=None, start_values=None, times=None, method='brentq', tol=1e-8): if times is None: times = mr.times if start_values is None: start_values = np.zeros((len(times),)) if norm_consts is None: ...
import cv2 as cv import jpeg4py import numpy as np from PIL import Image davis_palette = np.repeat(np.expand_dims(np.arange(0, 256), 1), 3, 1).astype(np.uint8) davis_palette[:22, :] = [[0, 0, 0], [128, 0, 0], [0, 128, 0], [128, 128, 0], [0, 0, 128], [128, 0, 128], [0, 128, 128], [128, 128, 128...
#include "DataFormats/ForwardDetId/interface/HFNoseDetId.h" #include "DataFormats/ForwardDetId/interface/HFNoseTriggerDetId.h" #include "DataFormats/ForwardDetId/interface/HGCalTriggerDetId.h" #include "DataFormats/ForwardDetId/interface/HFNoseDetIdToModule.h" #include "DataFormats/DetId/interface/DetId.h" #include <c...
def ensure_exists(self, app_id, json_file): logging.info('Check if app "%s" is deployed', app_id) app_exists = self.app_exists(app_id) if not app_exists: logging.info('Deploying app "%s"', app_id) json_contents = self._load_json(json_file) self.deploy_app(json...
/** * This java example will demonstrate right padding a string * of size 10 with spaces and 0 * * @author Justin Musgrove * @see <a href='http://www.leveluplunch.com/java/examples/right-pad-string/'>Right pad string</a> * */ public class RightPadString { @Test public void right_pad_string_with_zeros_java (...
<gh_stars>100-1000 #include "test.h" #include "lcg.h" #include <cassert> #include <cmath> template <class T> void boxmuller(T* data, size_t count) { assert(count % 2 == 0); static const T twopi = T(2.0 * 3.14159265358979323846); LCG<T> r; for (size_t i = 0; i < count; i += 2) { T u1 = 1.0f - r(); // [0, 1...
class TrainingArguments: """ Represents the arguments we use in our PyTorch integration scripts for training tasks Using :class:`NmArgumentParser` we can turn this class into `argparse <https://docs.python.org/3/library/argparse.html#module-argparse>`__ arguments that can be specified on the co...
import esphome.codegen as cg binary_ns = cg.esphome_ns.namespace("binary")
/* searches array for a given element num */ void search ( int *arr, int num ) { int i ; for ( i = 0 ; i < MAX ; i++ ) { if ( arr[i] == num ) { printf ( "\n\nThe element %d is present at %dth position.", num, i + 1 ) ; return ; } } if ( i == MAX ) printf ( "\n\nThe element %d is not present in ...
/** * Create a StatsdMeterRegistry bean if global metrics are enables * and the statsd is enabled. Will be true by default when this * configuration is included in project. * * @return A StatsdMeterRegistry */ @Bean @Primary @Singleton @Requires(property = MICRONAUT_METRICS_EN...
import java.util.Scanner; public class Main { public static void main(String[] args) { int[] ii = new int[1000100]; ii[0] = 1; ii[1] = 2; for(int i = 2; i < ii.length; i++) if(i % 2 == 0) ii[i] = ii[i-1] + 1; else ...
/** * @brief The function tests whether the particle is still within the cubic cell box. If the particle has moved outside the box, it returns 0. Otherwise, it returns 1. * * @param r REBOUND simulation to operate on * @param node is the pointer to a node cell * @return 0 is particle is not in cell, 1 if it ...
def associate_asset(self, mod_name, asset_name, source=None): name = asset_name.replace('\\', '/').split('/')[-1] if name in self._assets: asset = self._assets[name] if source is not None: t = 'associate_asset() for %s got source, but asset %r already exists.' ...
<gh_stars>0 import { createContext, FC, useContext, useEffect, useState } from "react"; import { formatPrice } from "../utils/format"; import api from "../services/api"; export interface IProduct { id: string; name: string; price: number; sellingPrice: number; imageUrl: string; priceFormatted: string; ...
import Axios from 'axios'; import Config from '../Config'; export const backendApi = Axios.create({ baseURL: Config.backendServiceURL, });
// GetSubGroups will fill a passed groups array with all the // direct subgroups. func (g *Group) GetSubGroups(groups *[]*Group) { g.lock.Lock() for _, v := range g.subg { *groups = append(*groups, v) } g.lock.Unlock() }
def history(locs: ArrayLike, name: int) -> np.void: locs = np.sort(locs, order=("time", "loc"), kind="stable") dt = [("locs", locs.dtype, locs.shape), ("name", np.int64)] return np.array([(locs, name)], dtype=dt)[0]
/** * Simple Widget to display the FPS count of your application. * You can easily add it to an instance of ExtRenderLoop. * * @author Marvin Froehlich (aka Qudus) */ public class FPSCounter extends Label implements FPSListener { private char decimalSep = '.'; private float lastFPS = -1.0f; priva...
import Data.List (|>) a b = b a main = do s1 <- getLine s2 <- getLine let n = s1 |> (read :: String -> Int) d = s2 |> group |> map length |> length r = min (d + 2) (length s2) print r
/** * Store the locale to the chosen storage, like f. e. the session * * @param invocation the action invocation * @param locale the locale to store * @param storage the place to store this locale (like Storage.SESSSION.toString()) * * @return the locale */ protected Locale store...
def process(buf: Buffer): eth_frame = ethernet.Ethernet.read_from_buffer(buf) if eth_frame.next_header == ethernet.ETHER_TYPE_ARP: arp_frame = arp.ARP.read_from_buffer(buf) if arp_frame.operation == arp.OPERATION_REPLY: push_data( str(ip_address(arp_frame.target_protocol_address)), ethernet.mac_to_str(...
def _GetStdioLogTests(stdio_log_url, tests_failed_list): print('\nFetching builder stdio log file from: %s' % stdio_log_url) stdio_text_file = urllib2.urlopen(stdio_log_url) p_test = r'\[\d*/\d*\] (.*?) \(.*\)' p_exit = r'exit code \(as seen by runtest.py\)\: (\d+)' test_lines = [] exit_flag = False exit_...
// HTTPRequest sends a http request with headers func HTTPRequest(method, uri string, body []byte, ctxRequest *http.Request, headers map[string]string) ([]byte, error) { if ctxRequest != nil { beforeRequest := time.Now().UnixNano() defer logRequest(ctxRequest, method, uri, beforeRequest) } req, err := http.NewRe...
// Filter implements yaml.Filter func (a *Add) Filter(object *yaml.RNode) (*yaml.RNode, error) { if a.FieldName == "" && a.FieldValue == "" { return nil, errors.Errorf("must specify either fieldName or fieldValue") } if a.Ref == "" { return nil, errors.Errorf("must specify ref") } return object, accept(a, obje...
/* * Access functions for PCI config space using RTAS calls. */ int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) { struct pci_controller *hose = bus->sysdata; unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | (((bus->number - hose->first_busno) & 0xf...
def main(fileGlob): for fileName in glob.glob(fileGlob) : extract_references(fileName)
def create(exp): import FreeCAD, Part if type(exp) is Box: vec = FreeCAD.Vector(exp.position.x, exp.position.y, exp.position.z) if (exp.rotation.x, exp.rotation.y, exp.rotation.z) == (0,0,0): rotax = FreeCAD.Vector(0,0,1) else: rotax = FreeCAD.Vect...
/* * slot_deform_datarow * Extract data from the DataRow message into Datum/isnull arrays. * We always extract all atributes, as specified in tts_tupleDescriptor, * because there is no easy way to find random attribute in the DataRow. */ static void slot_deform_datarow(TupleTableSlot *slot) { int attnum; i...
def _read_until(self, content: str): reply = self._tn.read_until(content.encode('ascii')) reply = Connection.ASNI_REGEX.sub('', reply.decode('ascii')) return reply
<filename>src/main/java/net/aidantaylor/bukkit/sleepytime/SleepyTime.java package net.aidantaylor.bukkit.sleepytime; import java.util.ArrayList; import java.util.List; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.World; import org.bukkit.configuration.file.FileConfiguration; import org.buk...
// withPortMappings sets the container port mappings to the host func withPortMappings(portMappings []PortMapping) createOpt { return func(r *createOpts) *createOpts { r.PortMappings = portMappings return r } }
def contains_all(self,points): return self.contains(points).all()
// Tests that the log file sink cannot write to a log file // if the log file name is not specified. TEST_METHOD(LogFileCannotWriteWithoutFileName) { CTestLoggerService loggerService; loggerService.SetFileFlags(LoggingFlags_Errors); AssertSucceeded(loggerService.Initialize())...
As the right-wing leadership of the organized U.S. Jewish community defends Israel against international condemnation for its deadly seizure of a flotilla bearing humanitarian supplies for Gaza, a familiar clutch of neoconservative hawks is going on the offensive against what they see as the flotilla’s chief defender, ...
/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export type AddressToValidate = PartialAddress; export type PostalCode = string; exp...
package com.example.SpringArticle.Service; import com.example.SpringArticle.Entity.Article; import com.example.SpringArticle.dto.ArticleForm; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import javax.tran...
We know that “money” plays significant role in our lives. Though money is not the whole thing, it can help us to achieve our goals. So it’s vital to increase financial intelligence. Realize what factual wealth is: True wealth is not just having luxurious house and cars. The real true wealth is FAMILY, FITNESS and WE...
<filename>test.cc<gh_stars>0 #include <gtest/gtest.h> #include <glog/logging.h> #include <gflags/gflags.h> TEST(Math, Adding) { LOG(INFO) << "Hello World!"; EXPECT_EQ(2 + 2, 4); }
/** * Created by Service_User on 2018/7/27. */ public class PlantInfoDialog { static List<String> plantList = new ArrayList<String>(); private static ListView lv_planList; private static EditText et_plantName; private static Button btn_plantSearch; public static void showDialog(Context context){ ...
Characterizing Microblogs with Topic Models As microblogging grows in popularity, services like Twitter are coming to support information gathering needs above and beyond their traditional roles as social networks. But most users’ interaction with Twitter is still primarily focused on their social graphs, forcing ...
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Faraday FTGMAC100 Gigabit Ethernet * * (C) Copyright 2009-2011 Faraday Technology * Po-Yu Chuang <ratbert@faraday-tech.com> */ #ifndef __FTGMAC100_H #define __FTGMAC100_H #define FTGMAC100_OFFSET_ISR 0x00 #define FTGMAC100_OFFSET_IER 0x04 #define FTGMAC100_O...
#[cfg(test)] mod tests { use twentyone::game::{Dealer, DealerRequest, Player, PlayerAction}; use twentyone::{cards, game}; #[test] fn deck_tests() { let mut deck = cards::create_deck(); cards::shuffle_deck(&mut deck); let card = deck.get(0).unwrap().clone(); // Draw card...
Branson, Missouri (CNN) Democrats could pick up the Senate majority this November -- thanks to Donald Trump voters in Missouri. The Missouri Senate race has shaped up to be one of the most unexpected opportunities for Democrats to flip a seat this November. But unlike many Democrats looking for an advantage by tying ...
/* * Find out when the next timer event is due to happen. This * is used on S/390 to stop all activity when a cpus is idle. * This functions needs to be called disabled. */ static unsigned long __next_timer_interrupt(tvec_base_t *base) { unsigned long timer_jiffies = base->timer_jiffies; unsigned long expires = t...
/** * Abstraction of a figure drawable on a BitMap. * * @absFun see specific concrete class. * @repInv r and c are non negative. */ public abstract class Figure { /** row coordinate */ protected final int r; /** column coordinate */ protected final int c; /** * Constructs a new Figure of coordinates r and ...
/****************************************************************************** ** ** GMCache_ClearSampleCache ** ** Forces the Mixer to remove all entries from the sample cache ** NOTE: Do not abuse this function... It can obscure instrument resource ** leaks that may be important to track otherwise ** *...
/** * MzTab DataAccessController for MzTab Files. The mzTabController is supporting only those files with Protein identification and * PSMs and not Peptide Information is store because the link between both objects is missed. MzTab will be supported only based in * the PSMs and Core proteins the ambiguity proteins w...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> * Copyright (c) 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softw...
<filename>src/main/java/gov/nasa/pds/web/ui/containers/tabularManagement/TabularLabelContainer.java package gov.nasa.pds.web.ui.containers.tabularManagement; import gov.nasa.arc.pds.tools.util.FileUtils; import gov.nasa.pds.tools.containers.VolumeContainerSimple; import gov.nasa.pds.tools.dict.DictIdentifier; import g...
/* * This is just returns n no. of spaces appended together * I have used it many times in program */ public static StringBuffer spacer(int n) { StringBuffer space = new StringBuffer(); for (int i = 0; i < n; i++) { space.append(" "); } return space; }
Challenges of Drug-Facilitated Sexual Assault. This article provides the reader with an understanding of the numerous challenges of drug-facilitated sexual assaults (DFSA). The challenges are categorized as follows: the drugs, reporting the crime, evidence collection, and laboratory analysis of specimens. The challeng...
<gh_stars>0 import { usesWindowServiceResponse } from '../messaging'; declare global { interface Window { urls: { [key: string]: string }; } } // eslint-disable-next-line no-undef const someUrlsUsedInModuleScope = window.urls; export async function usesWindowService() { return usesWindowServiceRe...
<reponame>TheGenial/Java-Projects package com.arif.restfulinpeace.dao; import com.arif.restfulinpeace.model.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; @Repository public interface UserRepos...
<gh_stars>100-1000 // Copyright 2019 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. #include "chrome/browser/notifications/scheduler/internal/notification_scheduler.h" #include <set> #include <string> #include <utility...
/*---------------------------------------------------------------- * Author: Samuel Miravet-Verde * Written: 09/25/2015 * Last updated: 09/25/2015 * * Compilation: javac SumOfTwoDice.java * Execution: java SumOfTwoDice * * Generate 2 integers between 1 and 6, and print their sum. * ...
/** * Sentiment ingest uses {@link StanfordCoreNLP} class to calculate sentiment scores. */ public class SentimentAnalyzer { private final StanfordCoreNLP pipeline; public SentimentAnalyzer() { Properties props = new Properties(); props.setProperty("annotators", "tokenize, ssplit, pos, parse...
/** * Figure out the type of the list: * 1) if t was explicit then use it * 2) if we have field typed as a list, then use its definition * 3) if inferred is false, then drop back to list of Obj * 4) If inferred is true then return null and we'll infer the common type */ private Type toListOfTy...
// // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // // D...
<filename>storage/volume/core_util.go<gh_stars>1000+ package volume import ( "context" "path" "github.com/alibaba/pouch/storage/volume/driver" "github.com/alibaba/pouch/storage/volume/types" "github.com/pkg/errors" ) func (c *Core) volumePath(ctx context.Context, v *types.Volume, dv driver.Driver) (string, err...
<filename>src/shared/__tests__/Observer.spec.ts import { Observer, ObserverCallbackFunc } from '../Observer' describe('Observer', () => { let observer: Observer<number | null> beforeEach(() => { observer = new Observer(null) }) it('subscribe duplicate', () => { const fn = jest.fn() observer.sub(...
<reponame>gauravyeole/KVstoreDB # File system Configuration FIle # @author: <NAME> <<EMAIL>> MAX_BLK_SIZE = 8 MAX_NUM_INODES = 10 NUM_OF_BLKS = 250
//! \exception std::runtime_error Raised if \a newSection has the same tag as a previously //! added section. void iMXImage::addSection(Section *newSection) { section_iterator_t it = beginSection(); for (; it != endSection(); ++it) { if ((*it)->getIdentifier() == newSection->getIdentifier()) ...
The surprise discovery of traces of European ancestry in the 24,000-year-old bones of a boy unearthed in the heart of Siberia has caught the attention of Canadian experts, who say the find could rewrite the story of the people who first populated ancient Canada and the rest of the Americas. A study published in the jo...
def resource_attributes(self): return { 'url': None, 'archive': 'gz', }
/* JTypes * #All about thos types * Showing the various data types in Java * Farai Gandiya */ public class JTypes{ public static void main(String[] args){ //Bytes are whole numbers between -128 and 127. They use one byte of memory System.out.println("Let's talk about bytes!"); byte byte1 = -12; ...
// update updates the fetcher for the next scan request func (f *fetcher) update(resp *pb.ScanResponse, region hrpc.RegionInfo) { if resp.GetMoreResultsInRegion() { if resp.ScannerId != nil { f.scannerID = resp.GetScannerId() } } else { f.scannerID = noScannerID f.startRow = region.StopKey() } }
// @adjivas - github.com/adjivas. See the LICENSE // file at the top-level directory of this distribution and at // https://github.com/adjivas/linear_regression // // This file may not be copied, modified, or distributed // except according to those terms. extern crate linear_regression; #[test] fn test_estimate_pric...
// Add2Tree method adds vanity package into vanity tree. func Add2Tree(p *models.VanityPackage) error { if err := processVanityPackage(p); err != nil { return err } host := Thumbai.AddHost(p.Host) if p.Path == "@" { host.AddRootVanity(p) } else if err := host.AddVanity2Tree(p.Path, p); err != nil { return er...
<filename>client/src/modules/components/AnalyticCard/AnalyticCard.tsx import React from 'react' import classNames from 'classnames' import { Loaders, Price, Space, Typography } from 'modules/ui' import s from './AnalyticCard.module.scss' export interface AnalyticCardProps extends React.HTMLAttributes<HTMLDivElement> {...
def _add_oclass(self, oclass, graph): attr = "" for key, value in oclass.attributes.items(): attr += self.attribute.format(key.argname, value[0]) label = self.label.format(str(oclass), attr) if oclass.namespace in self._namespaces: graph.node(str(oclass), label=la...
/** * @param root - root of the given BST * @param key - value of the node to be deleted * @return - root of the tree after deleting the node */ public Node deleteNode(Node root, int key) { if (root == null) { return root; } if (key < root.data) { roo...
*aa,n = map(int, open(0).read().split()) n *= 1000 bb = [250,500,1000,2000] for i in range(1,4): aa[i] = min(aa[i], aa[i-1]*2) ans = 0 for b,a in zip(bb[::-1], aa[::-1]): ans += n // b * a n %= b print(ans)
Bad Quaker Podcast With Ben Stone The clash between Chris Cantwell and the FSP is important, but the underlying issue is more important than the actions of either of the parties involved. Links: Bigger Than Cantwell and the FSP There is a controversy in and around the Free State Project, concerning Chris Cantwell ...
def _any_is_conman(self) -> bool: res = any([self._is_conman, *[x._is_conman for x in self._columns.values()]]) return res