content
stringlengths
10
4.9M
import numpy as np lst=input().split(" ") A=int(lst[0]) B=int(lst[1]) K=int(lst[2]) lst=[] for i in range(1,min(A,B)+1): if A%i==0 and B%i==0: lst.append(i) print(lst[len(lst)-K])
/** * Creates a patch from the two passed in files, writing the result * to <code>os</code>. * * @param oldPath TODO * @param newPath TODO * @param os TODO * @param minimal TODO * @throws IOException TODO */ public static void createPatch( String oldPath, String newPath...
def active_authenticators(self, email, username, password): try: for authenticator in self.authenticators: filter_template = authenticator.filter_template if filter_template: filter_str = filter_template.format(email=email, username=username, passw...
/************************************************************************* > File Name: b.cpp > Author: ghost_lzw > Mail: lanzongwei@gmail.com > Created Time: Tue 21 Jan 2020 05:07:31 PM DST ************************************************************************/ #include<bits/stdc++.h> using namesp...
/** * A simple {@link Fragment} subclass. */ public class BlankFragment extends Fragment { View view; private Button btnNextMatch; //coundown===================== private String EVENT_DATE_TIME = "2018-12-31 10:30:00"; private String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"; private LinearLayout...
///////////////////////////////////////////////// /// \brief This feature constructs an empty model and returns its pointer /// from the given world. class ConstructEmptyModelFeature : public virtual Feature { public: template <typename PolicyT, typename FeaturesT> class World : public virtual Feature::World<Policy...
def forward(self, tasks): features = self.feature_extractor(tasks) q = self.q_predictor(features) q_dictionary = [self.q_vector_to_dictionary(q[b]) for b in range(len(tasks))] grammars = [self.template_cfg.Q_to_PCFG(q_dictionary[b]) for b in range(len(tasks))]...
THE URGENCY OF VIEWING NON-TEST ASSESSMENTS AS HUMANISTIC ASSESSMENT Assessing students with various characteristics is a challenge for teachers. The effort of being adaptable to each characteristic leads to joyful moments or even frustrating situations. How can we deal with the characteristics? This article is aimed ...
Platelet Number and Indexes during Acute Pancreatitis ABSTRACT Aim Acute pancreatitis (AP) is an inflammatory disorder, the incidence of which has been increasing over recent years. Mean platelet volume (MPV) is an index of platelet activation and influenced by inflammation. The objective of the present study is to as...
/** * This method forces the thread to wait if there are less than 2 balls in the circle * balls are leaving * @throws InterruptedException */ public synchronized void consume()throws InterruptedException { while (numOfSpritesinCircle <= 2){ wait(); } numOfSpritesinCircle--; notifyAll();...
KCNA KCNA/Reuters A top US general has told reporters that North Korea has likely achieved the capability of being able to miniaturize nuclear weapons that could be placed on top of a rocket, Felicia Schwartz reports for The Wall Street Journal. Gen. Curtis Scaparrotti, the commander of US forces on the Korean peninsu...
Pollution for Promotion This paper demonstrates that China’s high environmental pollution levels can partly be explained by the incentives embedded in the country’s political institutions. Guided by a simple career concerns model with the choice of dirty and clean technologies, I examine empirically how promotion ince...
/** * @brief Adds a task listener. * @param listener The listener * @return None */ void Task::AddTaskListener(const std::shared_ptr<TaskListener> &listener) { APP_LOGI("Task.AddTaskListener listener called start"); taskListeners_.Offer(listener); }
<reponame>ETspielberg/alma-connector package org.unidue.ub.libintel.almaconnector.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import org.unidue.ub.libintel.almaconnector.model.run.AlmaExportRun; import java.util.Date; import java.util.Lis...
// IsInstanceRunning returns whether the instance is in running state. func (g *GCloud) IsInstanceRunning(name string) (bool, error) { status, err := g.getInstanceStatus(name) if err != nil { return false, err } return status == instanceStatusRunning, nil }
<filename>src/util/config.h /*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_UTIL_CONFIG_H #define CPROVER_UTIL_CONFIG_H #include <util/cmdline.h> #include <util/options.h> #i...
Okay, that’s not true. But it’s no different than this: Prosecutors Ask if 8 Banks Duped Rating Agencies Wall Street played a crucial role in the mortgage market’s path to collapse. Investment banks bundled mortgage loans into securities and then often rebundled those securities one or two more times. Those securitie...
P2X7 receptors: role in bone cell formation and function. The role of the P2X7 receptor (P2X7R) is being explored with intensive interest in the context of normal bone physiology, bone-related diseases and, to an extent, bone cancer. In this review, we cover the current understanding of P2X7R regulation of bone cell f...
n = int(input()) l = list(map(int,input().split())) total = sum(l) majority=(total//2)+1 indices = [0] parties = 0 alice = l[0] majority = majority - alice for i in range(1,n): seats = l[i] if (2*seats<=alice)&(majority>0): majority = majority - seats parties = parties + 1 ...
/** * Created by piek on 9/8/14. */ public class SrlFrameNetTagger { /** * <externalRef confidence="0.165911" reference="nld-21-d_n-36759-n" resource="cdb2.0-nld-all.infv.0.0.no-allwords"> <externalRef resource="predicate-matrix1.1"> <externalRef reference="fn:Fluidic_motion" resource="fn"...
/** * Returns the Cholesky decomposition of A'A. */ public Cholesky CholeskyOfAtA() { DenseMatrix VD = Matrix.zeros(V.nrows(), V.ncols()); for (int i = 0; i < V.nrows(); i++) { for (int j = 0; j < V.ncols(); j++) { VD.set(i, j, V.get(i, j) * s[j]); } ...
// AnalyzersRun returns a list of IDs associated with the analyzers that were // run. func (r *Report) AnalyzersRun() string { ids := []string{} for _, analyzer := range r.Analyzers { ids = append(ids, analyzer.ID()) } return strings.Join(ids, ", ") }
Image caption Can you be obese and healthy? The idea of "healthy obesity" is a myth, research suggests. Excess fat still carries health risks even when cholesterol, blood pressure and sugar levels are normal, according to a study of more than 60,000 people. It has been argued that being overweight does not necessari...
package com.github.fedorchuck.developers_notification.http; import com.github.fedorchuck.developers_notification.Utils; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.IOException; import java.util.HashMap; /** * @author <a href="http://vl-fedorchuck.r...
/* * Copyright 2012 the original author or 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 applica...
As of Friday morning, NFLPA records showed the Atlanta Falcons with $23,855,200 in cap space. The contracts for newly signed players Brooks Reed, Justin Durant, Leonard Hankerson and Mike Person are in the system while the contracts for Adrian Clayborn, O'Brien Schofield and Antone Smith are not in the system. Durant'...
package ca.jrvs.apps.trading.dao.config; public class MarketDataConfig { private String host; private String token; public String getHost() { return host; } public void setHost(String host) { if (host == null) { throw new IllegalArgumentException("Input host is null"); } this.host = ...
/// Creates a rotation matrix for a camera looking at a target /// \param position The camera position /// \param target The position the camera is looking at /// \param up The up vector /// \return The matrix static inline Matrix4x4 Matrix4x4FromLookAt(Vector3 position, Vector3 target, Vector3 up) { Vector3 f = Vecto...
/** Format a set of rules as an HTML text block to show in an instructions panel */ public static String createRulesPage(String title, Collection<Rule> rules) { StringBuilder sb = new StringBuilder("<html><br><br>"); sb.append("<font face=\""); sb.append(WidgetConstants.FONT_INSTRUCTION_PANEL.getName() + "\" size...
// BackRepoClassdiagram.CheckoutPhaseTwoInstance Checkouts staged instances of Classdiagram to the BackRepo // Phase Two is the update of instance with the field in the database func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, classdiagramDB *ClassdiagramDB) (Er...
Image copyright AFP Image caption Some villagers in Guinea have been scared by the appearance of health workers trying to combat Ebola Eight members of a team trying to raise awareness about Ebola have been killed by villagers using machetes and clubs in Guinea, officials say. Some of the bodies - of health workers, ...
<filename>src/core/notification.c #include "notification.h" char *MTR_MessageTypeToTitle(uint8_t messageType) { switch (messageType) { case MTR_DMT_INFO: return MTR_NTT_INFO; break; case MTR_DMT_NOTE: return MTR_NTT_NOTE; break; case MTR_D...
/** Dummy distribution trait def for test (handles conversion of * SimpleDistribution). */ private static class ConvertRelDistributionTraitDef extends RelTraitDef<SimpleDistribution> { @Override public Class<SimpleDistribution> getTraitClass() { return SimpleDistribution.class; } @Override ...
package rxfamily.entity; /** * Created by Administrator on 2018/1/18 0018. */ public class AddDriverLicenseEntity extends BaseEntity{ /** * data : {"createDate":"2010-01-01","id":"<KEY>"} */ private DataBean data; public DataBean getData() { return data; } public void setD...
// run in its own goroutine func (in *TaskInstance) watchPipe(r io.Reader, name string) { br := bufio.NewReader(r) for { sl, isPrefix, err := br.ReadLine() if err == io.EOF { return } if err != nil { in.Printf("pipe %q closed: %v", name, err) return } in.output.Add(&Line{ T: time.Now(),...
#ifndef __PDDL__DETAIL__NORMALIZATION__DOMAIN_H #define __PDDL__DETAIL__NORMALIZATION__DOMAIN_H #include <pddl/ASTForward.h> #include <pddl/Context.h> #include <pddl/NormalizedASTForward.h> namespace pddl { namespace detail { ///////////////////////////////////////////////////////////////////////////////////////////...
On what would be the self-taught artist’s 125th birthday, Intuit: The Center for Intuitive and Outsider Art is holding a daylong celebration formally recognized by the mayor of Chicago. One hundred and twenty-five years ago today, Henry Darger was born at home to a poor couple in Chicago. His mother died four years la...
// Respond to request with a message. func (req *request) Respond(msg interface{}) error { req.mu.Lock() defer req.mu.Unlock() if req.finished { return ErrAlreadyResponded } req.finished = true fail, ok := msg.(error) if ok { select { case req.failure <- fail: return nil default: panic("grid: respo...
<gh_stars>10-100 //! git hook manager tool use anyhow::{ bail, Result, }; use log::*; use shared::find_root; #[cfg(not(windows))] use std::os::unix::fs::{ symlink, PermissionsExt, }; #[cfg(windows)] use std::os::windows::fs::symlink_file; use std::{ env, fs, io::Write, path::Path, }; const HOOKS: [&st...
/** * If this method returns without throwing an exception, you can be sure that an equivalent * LynxModule instance is registered with the LynxUsbDevice. However, it is not guaranteed that * the exact LynxModule instance passed in is the one registered to the LynxUsbDevice. ALWAYS use * the one connected t...
// AllEmpty returns a bool whether All of the variadic inputs are "empty" strings. // see rstrings::IsEmpty for empty-checking logic // if no inputs are passed, it defaults to true func AllEmpty(a ...string) bool { acc := true for _, v := range a { acc = acc && rstrings.IsEmpty(v) } return acc }
/** * Alternative to using ::converter, will try and lookup the class in the type converter registry. * If it fails to find anything, this.converter will be null and * CmdRuntimeException.CreationFailure will be thrown when build() is called. * * @param clazz class of converter * @return this */ de...
// so that it is a valid XML id private String fixTag(String tag) { return tag.replaceAll(" ", "-") .replaceAll("/", "_") .replaceAll("&", "."); }
/** * Factory method to create a mock object of a given type. * * @param <T> the type of the created mock object * @param type the type of the mock object to create * @return the created mock object */ protected final <T> T createMock( final Class<T> type ) { final T mock...
def find_directives(self, name, exclude=True):
import argparse import json import multiprocessing as mp import operator import time import sys import mergelife import ml_evolve as ev import numpy as np bestGenome = None evalCount = 0 startTime = 0 timeLastUpdate = 0 totalEvalCount = 0 runCount = 1 noImprovement = 0 waitingCount = 0 population = [] def subproces...
<reponame>unofficial-mirror/ietfdb # Copyright The IETF Trust 2011-2019, All Rights Reserved # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import datetime import hashlib import io import json import math import os import re import six from collections import defaul...
/** * @author "S. Coutin (CINES)" * */ class FileBasedInterface { /** * Used to convert the data object to a string fitting with the rp_console output file format * * @return * The string representing the data object */ private String toTextFileOutput(DataObject dataOb...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root', }) export class StatisticsService { private statisticUrl = 'http://localhost:5000/api/statistics'; // URL private httpOptions = { h...
def base58_encode(raw_bytes): return base58.b58encode(raw_bytes)
X, Y = map(int, input().split()) def comb(n, r, mod=10 ** 9 + 7): n1 = n + 1 r = min(n, n - r) numer = denom = 1 for i in range(1, r + 1): numer = numer * (n1 - i) % mod denom = denom * i % mod return numer * pow(denom, mod - 2, mod) % mod # x + y coordinates increase by 3 per one move # x + y should ...
// Returns the modulo of two Words. // Note: % operator don't support floats, so // calling this will set the float value to 0. func ModWord(a Word, b Word, t TypeRepresentation) (out Word) { switch t { case TypeU64: out = WordU64(a.AsU64 % b.AsU64) case TypeI64: out = WordI64(a.AsI64 % b.AsI64) case TypeF64: ...
/** * Creates a sequence of all values in another sequence after the predicate * fails once. * @param predFn The predicate. * @param seq The input sequence. * @param <T> The type of values in the input sequence. * @return The output sequence. */ public static <T> Seq<T> dropWhile(Pred...
package com.adventofcode.day10; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.*; public class AdapterArray { private static final String JOLTAGE_ADAPTERS = "resources/day_10_joltage_adapters_input.txt"; private static final int MAX_JOLT_DIFFERENCE = 3; ...
<filename>GoLang/SortTriangle/SortTriangle.go package main import ( "fmt" "math" ) func main() { var totalTriangle int var inputBuffer float64 fmt.Scan(&totalTriangle) var triangles = make([][]float64, 0) for i := 0; i < totalTriangle; i++ { tmp := make([]float64, 0) for j := 0; j < 3; j++ { fmt.Scan(&i...
// The command returning non-0 does NOT constitute an error -- that // is communicated back via the command return code, and the calling // function is responsible for determining how to handle that func (cmdResult *CommandResult) Run() (err error) { var stdout, stderr bytes.Buffer cmdResult.ExecCmd = exec.Command(cm...
// LoadWords loads a list of words from a file in path locatoin func LoadWords(path string) (words []string, err error) { var text *os.File text, err = os.Open(path) if err != nil { return } defer text.Close() wordsMap := make(map[string]int) words = make([]string, 0, 100000) s := bufio.NewScanner(text) for ...
/** * Moves the cursor to the previous row in this <code>ResultSet</code> object. * <p/> * When a call to the <code>previous</code> method returns <code>false</code>, the cursor is positioned before the * first row. Any invocation of a <code>ResultSet</code> method which requires a current row will...
// GetUsers returns the members in an App // Pass in an optional AppFilterOptions struct to filter the results // The Users in the app are returned func (a *AppsService) GetUsers(appID string, opt *AppFilterOptions) (appUsers []AppUser, resp *Response, err error) { pagesRetreived := 0 var u string if opt.NextURL...
Ingo Fender + 41 61 280 8415 ingo.fender@bis.org Jacob Gyntelberg + 41 61 280 8891 jacob.gyntelberg@bis.org Overview: global financial crisis spurs unprecedented policy actions Financial stability concerns took centre stage once again over the period between end-August and end-November. In the wake of the mid-S...
/** * Validate assertion signature. If none is found and the SAML response did not have one and the SP requires * the assertions to be signed, the validation fails. * * @param signature * @param context * @param engine */ protected void validateAssertionSignature(final Signature sign...
Trump Can Have This Iran Deal or No Iran Deal Ever since Donald Trump told the American Israel Public Affairs Committee (AIPAC) that his “No. 1 priority is to dismantle the disastrous deal with Iran,” the nuclear agreement has faced frequent predictions of its demise. Trump’s election was seen as heralding the death k...
<filename>src/main/java/com/active4j/hr/yc/util/YcBaoxianType.java package com.active4j.hr.yc.util; public enum YcBaoxianType { }
<gh_stars>0 //! MIPS CP0 Context register. //! //! See Figure 6.5 in IDT R30xx Manual on page 6-4. use bit_field::BitField; /// Context Register. #[derive(Clone, Copy, Debug)] pub struct ContextRegister { pub bits: u32, } impl Default for ContextRegister { fn default() -> Self { Self::new() } } i...
/** * A Callable that pauses execution of its calling threads. */ public static class PauseCallable<T> implements Callable<T> { private final long _pauseCall; private final CountDownLatch _paused; private final CountDownLatch _resume; private final Callable<T> _target; private final AtomicLo...
<reponame>lucasgabrielsantos/CursoPOO package cursoemvideo.aula02; public class Aula02_1 { public static void main(String[] args) { Cadeira cad1 = new Cadeira(); cad1.tipo = "Plástico"; cad1.cor = "Preta"; cad1.peso = 5; cad1.temgente(); cad1.temninguem(); ...
<reponame>chusopr/cloudbreak package com.sequenceiq.it.cloudbreak.filesystem; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Value; import org.testng.Assert; import org.testng.annotations.AfterTest; import org.testng...
/** * Globus Information System. * * By creating a Globus Resource Factory, the Grid-Globus bindings will be initialized * when this factory is created! * The current resource system provides information about the Globus implementation. */ public class GlobusRSFactory extends VRSFactory { // "grid" is covere...
<reponame>mkannwischer/PQClean<filename>crypto_kem/kyber768-90s/avx2/reduce.h #ifndef PQCLEAN_KYBER76890S_AVX2_REDUCE_H #define PQCLEAN_KYBER76890S_AVX2_REDUCE_H #include "params.h" #include <immintrin.h> void PQCLEAN_KYBER76890S_AVX2_reduce_avx(__m256i *r, const __m256i *PQCLEAN_KYBER76890S_AVX2_qdata); void PQCLEAN_...
package edu.tamu.app.controller; import static edu.tamu.weaver.response.ApiStatus.SUCCESS; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.ann...
Renal replacement lipomatosis and xanthogranulomatous pyelonephritis: differential diagnosis. Renal replacement lipomatosis (RRL) is a relatively uncommon entity, although misdiagnosis mainly with xanthogranulomatous pyelonephritis (XGP) due to lack of awareness by urologists, radiologists, and pathologists may be res...
/****************************************************************** * Create a natural language paraphrase of a logical statement. This is the * entry point for this function, but kifExprPara does most of the work. * * @param stmt The statement to be paraphrased. * @param phraseMap An association list of...
<filename>src/seed-data/Fermentables/grains.ts const grains: TFermentables[] = [ { name: '<NAME>', type: 'Grain', potential: 1.027, yield: 0.587, 'coarse-fine-diff': 0.015, moisture: 0.04, color: 3, 'recommend-mash': true, 'add-after-boil': false, 'diastatic-power': 0, 'max...
ALBANY, N.Y. -- Gov. Andrew Cuomo on Tuesday evening announced a plan to cut taxes on New Yorkers who make between $40,000 and $300,000 a year. Cuomo told news outlets during a presentation inside the governor's mansion that the plan, if adopted, would save average middle-class taxpayers $250 a year. When fully implem...
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later /* Copyright 2013-2018 IBM Corp. */ #ifndef __ERRORLOG_H #define __ERRORLOG_H #include <compiler.h> #include <opal.h> #include <stdint.h> #include <ccan/list/list.h> /* Classification of error/events type reported on OPAL */ /* Platform Events/Errors: Report...
<reponame>tomphp/pb-git-hooks use std::fmt::Display; use regex::Regex; use crate::{ errors::PbCommitMessageLintsError, external::vcs::Vcs, lints::{ duplicate_trailers::lint_duplicated_trailers, missing_jira_issue_key::lint_missing_jira_issue_key, missing_pivotal_tracker_id::lint_mi...
import sqlalchemy as sa from sqlalchemy.orm import sessionmaker from collections import OrderedDict from dbmodels import Dbinfo, Dbtype, Check_item, Alarm_threshold, Alarm_level from alarm_message import alarm_message from check_instruction import check_instruction conn = sa.create_engine('mysql+pymysql://opr:Opr*123...
/* Method: Push data info with config param, Note: it's saved into database! */ static SFakeDataHandle FakeDb_PushDataInfo(SFakeConfigParam * configParamPtr, SFakeDataInfo * dataInfoPtr) { assert (configParamPtr != NULL); assert (dataInfoPtr != NULL); { ...
#include<bits/stdc++.h> #define ll long long using namespace std; int main(){ ll n,k; cin>>n>>k; ll t=n; ll c2=0,c5=0; while(n%2==0){ c2++; n/=2; } while(n%5==0){ c5++; n/=5; } cout<<max(t,(ll)t*(ll)pow((ll)2,k-c2>=0?k-c2:0)*(ll)pow((ll)5,k-c5>=0?k-c5:0))<<endl; }
/** * Index this directory and return the data store. * * @param name the name of the data store * @param dir the root directory * @return the data store */ public Store indexDirectory(final String name, final String dir) { Store store = new Store(name, dir);...
Correlation Between High-Density Lipoprotein and Monocyte Subsets in Patients with Stable Coronary Heart Disease Background High-density lipoprotein (HDL) consists of heterogeneous particles with a variety of structures and functions. Its role in atherosclerosis has been gradually recognized. Studies have shown dysfun...
package intset import ( "testing" ) func initIntSet(begin, end int) *IntSet { s := &IntSet{} for x := begin; x <= end; x++ { s.Add(x) } return s } func initElems(begin, end int) []int { var elems []int for x := begin; x <= end; x++ { elems = append(elems, x) } return elems } func TestIntSet_Elems(t *te...
//----------------------------------------------------------------------------- // culls a node to the frustum or area frustum //----------------------------------------------------------------------------- bool CBuildWorldListsJob::R_CullNode( mnode_t *pNode ) { if ( !m_bViewerInSolidSpace && pNode->area > 0 ) { i...
package charts.builder.spreadsheet; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementExc...
import { IElectronDashboardState } from "../type_defs/IDashboardState" import { ipcRenderer } from "electron" import { ChannelNames } from "../../../../ipc/ChannelNames" import { ISaveDashboardFromDialogResp } from "../../../../server/dashboard/dashboardIpcManager" export const saveDashboardFromDialog = async (state:...
<gh_stars>1-10 /* { dg-do compile } */ typedef int U __attribute__ ((vector_size (16))); int foo (int i) { #if __SSE2__ register #endif U u #if __SSE2__ asm ("xmm0") #endif ; return u[i]; }
Electron Enhanced Atomic Layer Deposition (EE-ALD) Electron enhanced atomic layer deposition (EE-ALD) can dramatically reduce the temperatures required for film growth. Temperature reduction is possible because of electron stimulated desorption (ESD) of surface species. The desorption process creates highly reactive "...
#pragma once #include "misc/functionnal.hh" #include "misc/parse-error.hh" #include "misc/random.hh" #include "misc/random-mt.hh" #include "misc/rect.hh" #include "misc/timer.hh" #include "misc/xor-shift.hh"
As interest in the alleged warming of the planet wanes, the global warming inquisition is hoping to make an example of a heretical reporter whose only sin is healthy skepticism. The enviro-Left is busy attempting to subject London-based Paul Ingrassia, an American journalist brought in by Reuters to beef up its worldw...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <mariana-trench/Assert.h> #include <mariana-trench/CallPositionFrames.h> #include <mariana-trench/Features.h> #include <...
Where has Marcel Reece been in the Raiders offense? There is little doubt that Marcel is a difference maker with the ball in his hands but he has not been able to get going yet this year in OC Greg Olson's offense. The Raiders need to do something about this mismanagement of assets because Reece is too damn good of a p...
<reponame>Webonnix/beam #pragma once #include "../Math.h" #pragma pack (push, 1) struct HomogenousPool { typedef MultiPrecision::Float Float; struct Scale { static const uint32_t s_Threshold = 20; // 1mln static bool IsSane(const Float& x, uint32_t nThreshold) { // sho...
/** * Adds a fractal panel to the main frame. */ public void addFractal(JPanel pnl) { frm.remove(fractal); fractal = pnl; c.gridx = 0; c.gridy = 2; c.fill = GridBagConstraints.BOTH; c.weightx = 1.0; c.weighty = 1.0; c.insets = new Insets(10, 10, ...
<filename>etcdctlv3/command/snapshot_command.go<gh_stars>0 // Copyright 2016 CoreOS, 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-...
This article is over 1 year old World Wildlife Fund calls for public pressure on the Palaszczuk government to reduce habitat destruction Tree clearing may have killed 180 koalas in Queensland in two years, says wildlife group Tree clearing may have killed as many as 180 koalas in south-east Queensland in the two yea...
#include <bits/stdc++.h> using namespace std; #define sd(x) scanf("%d",&x) #define su(x) scanf("%u",&x) #define slld(x) scanf("%lld",&x) #define sc(x) scanf("%c",&x) #define ss(x) scanf("%s",x) #define sf(x) scanf("%f",&x) #define slf(x) scanf("%lf",&x) #define ll long long int #define mod(x,n) (x+n)%n i...
/** Compare logP from logit model with that calculated by JulesLogit */ public void testLogitModelLogP() throws LearnerException { JulesLogit logit = new JulesLogit(); logit.nodeCost(LogitFN.getX(node4,cdmsData),LogitFN.getZ(node4,cdmsData)); Value.Structured y = logit.getParams(); Value...
def add(self, widgetType, widgetName, widget, group=None): widgGroup = self.group(widgetType, group) if widgetName in widgGroup: raise ItemLookupError("Duplicate key: '" + widgetName + "' already exists") else: widgGroup[widgetName] = widget widget.APPJAR_TYPE = w...
/// Send a .caidx file to the remote. /// pub async fn send_index(&self, path: &Path) -> Result<(), Box<dyn std::error::Error>> { let file = read(path)?; let name = Path::new(path.file_name().expect("This must be a valid filename")); self.push_file(name, &file).await?; Ok(()) }
// Copyright 2012-2017 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pci import ( "bytes" ) //Devices contains a slice of one or more PCI devices type Devices []*PCI // String stringifies the PCI devices. Curr...