content stringlengths 10 4.9M |
|---|
Ralph Klein, the former premier of Alberta, has died at 70. He shall not now ever be able to collect on the vast debt of apologies he is owed by calumniators, false chroniclers, lazy pundits, and political enemies. The misunderstandings of Ralph have been copious and mostly deliberate. He is still routinely characteriz... |
def is_interactive(self, log=True):
if log:
self.logger.info(('determining whether page object {} is interactive'
).format(self._log_id_short))
self.logger.debug(('determining whether page object is interactive'
+ '; {}').format(self._log_id_long))
interactive = self.is_displayed... |
/*
* Catroid: An on-device visual programming system for Android devices
* Copyright (C) 2010-2021 The Catrobat Team
* (<http://developer.catrobat.org/credits>)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by... |
Informatics solutions for electricity consumption optimization
Electricity consumption optimization offers multiple advantages for both consumers and grid operators. At the electricity customer level, by optimizing electricity consumption savings are significant, valued at least 20% of invoice. For programmable equipm... |
<reponame>srh/nihdb<gh_stars>1-10
extern crate crc;
use encoding::*;
use error::*;
use util::*;
use fnv;
use std;
use std::collections::*;
use std::io::Read;
use std::io::Write;
/* toc file format:
[magic][entry][entry]...[entry]
[magic] format:
['N' 'I' 'H' '\0'] [u32 version]
The version identifying... |
from flask import Blueprint, render_template, url_for, flash, redirect, session, request
from flask_login import login_user, current_user, logout_user, login_required
from website.usersReviews.account_forms import RegistrationForm, LoginForm, ForgotPasswordForm, UpdateQuestionsForm, UpdatePasswordForm, UpdateNameForm, ... |
package entity
import (
"strings"
"time"
)
type (
// TweetItem represents tweet history
TweetItem struct {
ID string `datastore:"-" goon:"id" validate:"required"`
Title string `validate:"required"`
URL string `validate:"required,url"`
PublishedAt time.Time `validate:"requir... |
package com.ethteck.decodetect.core;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.charset.StandardChars... |
// Len returns the number of bytes of the unread portion of the slice. This method will panic
// unless the underlying reader is a bytes.Reader.
func (r *Reader) Len() int {
if br, ok := r.Reader.(*bytes.Reader); ok {
return br.Len()
}
panic(fmt.Errorf("unsupported operation on %T: Len", r.Reader))
} |
def split(f,e):
E = other(e)
if f.count(e) == 0:
e = E
fn = movesingle(f,e)
if fn.count(e) == 2:
i = fn[1:].index(e)+1
f1 = fn[:i]
f2 = fn[i:]
return[f1,f2]
E = other(e)
i = fn.index(E)
f1 = fn[:i]
f2 = E+opposite(fn[i+1:])
return [f1+f2] |
def a2q(self, a = np.zeros(3) ):
q = np.zeros( self.dof )
q[0] = self.q0_fwd_kinematic( a[0] )
q[1] = a[1]
q[2] = a[2]
return q |
<filename>extension/common/config.ts
import $ from 'jquery';
import _ from 'underscore';
import { browser } from 'webextension-polyfill-ts';
import defaultGeneral from 'conf/general';
import Steward from 'main/Steward';
import { getPlugins } from 'plugins';
import util from './util';
import { AppConfig, PartialPlugin... |
async def aws_billing_daily(opsdroid, config, message):
if message is None:
if not config.get("monthly-billing-alerts", True):
return
connector = opsdroid.default_connector
room = config.get("room", connector.default_room)
message = Message("", None, room, connector)
... |
<reponame>zhangyanwei/spring-cloud-template<gh_stars>1-10
package com.github.zhangyanwei.sct.oauth2.server.configuration;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.Respo... |
A young woman was attacked, punched and verbally abused as she tried to protect a runaway police horse blinded by fireworks during last night’s Million Mask March.
Daisy Greenaway, 20, from Harrow, today told of her horror as baying demonstrators spooked the horse into throwing its rider and bolting during violent cla... |
- Deputies say a Florida man called 911 for a ride to the local Hooters, but instead, they gave him a ride to the county jail.
The Brevard County Sheriff's Office says 28-year-old Jonathan Hinkle told the operator his grandmother suffered a stroke in the parking lot of the Hooters of Merritt Island, and that he would ... |
/**
* Takes the time series and calculates the total sum.
*/
public class SimpleClickCountFn extends DoFn<Pair<Text,VectorWritable>, Double> {
private static final long serialVersionUID = 1L;
private static Logger logger = Logger.getLogger(SimpleClickCountFn.class);
/**
* Process the incoming VectorWritables... |
<filename>Lab7/src/academy/pocu/comp2500/lab7/Program.java
package academy.pocu.comp2500.lab7;
public class Program {
public static void main(String[] args) {
Author author = new Author("James", "Bond");
Book book0 = new Book("How to be the best", author, 1990, Genre.BIOGRAPHY);
Bookshelf b... |
<reponame>millicentnetwork/yui-relayer
package helpers
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/hyperledger-labs/yui-relayer/core"
)
// QueryBalance is a helper function for query balance
func QueryBalance(chain *core.ProvableChain, address sdk.AccAddress, showDenoms bool) (sdk.Coins, error) {
... |
<filename>argouml/org/argouml/ui/StatusBar.java<gh_stars>10-100
// Copyright (c) 1996-99 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided... |
<reponame>qussarah/declare
//file
class C {
private void foo(String s){}
void bar() {
foo(null);
}
} |
<gh_stars>0
import numpy as np
import pytest
from jina import Document, Request, QueryLang, NdArray
from jina.types.score import NamedScore
from jina.types.arrays import ChunkArray
from jina.types.arrays.match import MatchArray
@pytest.mark.parametrize(
'obj',
[
Document(),
Request(),
... |
/*
(c) Copyright 2006-2007 directfb.org
All rights reserved.
Written by <NAME> <<EMAIL>>.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the Licens... |
<reponame>Mihailus2000/lab_02_cache
// Copyright 2018 <NAME> <your_email>
#include <iostream>
#include <random>
#include <vector>
#include <chrono>
#include <cmath>
#include <algorithm>
#include <memory>
//#include "gtest/gtest.h"
#include "Analysis.h"
int main() {
Analysis project;
project.start();
re... |
/**
* Instances of this class allow the user to navigate
* the file system and select or enter a file name.
* <dl>
* <dt><b>Styles:</b></dt>
* <dd>SAVE, OPEN, MULTI</dd>
* <dt><b>Events:</b></dt>
* <dd>(none)</dd>
* </dl>
* <p>
* Note: Only one of the styles SAVE and OPEN may be specified.
* </p><p>
* IMPOR... |
/**
* Base class for dev server task queue.
*
* <p>This class provides common methods and interface for both PUSH and PULL queues.
*
* <p>
*
*/
abstract class DevQueue {
protected static final Logger logger = Logger.getLogger(DevQueue.class.getName());
protected final Entry queueXmlEntry;
// Only for test... |
<reponame>nihei9/maleeni
package main
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"github.com/nihei9/maleeni/compiler"
"github.com/nihei9/maleeni/spec"
"github.com/spf13/cobra"
)
var compileFlags = struct {
debug *bool
compLv *int
output *string
}{}
func init() {
cmd := &cobra.Comma... |
// ==========================================
// Python UAST Context object
// ==========================================
class Context {
private:
Interface *iface;
uast::PtrInterface<Node*> *impl;
uast::Context<Node*> *ctx;
PyObject* toPy(Node* node) {
if (node == nullptr) Py_RETURN_NON... |
/*
Report results of global cross correlation analysis.
*/
static void ReportCrossCorr (StisInfo6 *sts, int norder, double gcc,
double sigma) {
int i, c;
printf ("\n Sporder Rej. Offset\n");
for (i = 0; i < norder; i++) {
if (sts->cc_rej[i])
c = '*';
else... |
<filename>src/graphics/geometry_renderer.hpp
/*
* TS Elements
* Copyright 2015-2018 <NAME>
* Released under the MIT license.
*/
#pragma once
#include "shader.hpp"
#include "sampler.hpp"
#include <glm/mat4x4.hpp>
namespace ts
{
namespace graphics
{
class Geometry;
class GeometryRenderer
{
public... |
import os
import sys
from collections import Counter
if os.getenv("LOCAL"):
sys.stdin = open("_in.txt", "r")
sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353
N = int(sys.stdin.buffer.readline())
S = [sys.stdin.buffer.readline().decode().rstrip() for _ in rang... |
#include"cstdio"
#include"iostream"
#include"cstring"
#include"algorithm"
#include"cmath"
using namespace std;
int main()
{
int n,m,q;
while(cin>>n>>m)
{
int maxn=m;
int sum=1;
q=0;
for(int i=2;i<=n;i++)
{
cin>>m;
if(maxn>m)
{
q=0;
maxn=m;
sum=i;
}
else if(maxn==m)
{
q=... |
MREs do NOT last for 25 years. They will spoil faster than canned goods even under perfect storage conditions. Some freeze dried food will last that long, but you are lucky to get 2 or 3 years storage from an mre. They were never designed for long term storage. They are designed to be a convenient way to feed operation... |
<gh_stars>0
package com.proj.trelloproj.web.controller;
import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;
import java.util.Scanner;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.Ht... |
Produced by David Starner and the Online Distributed
Proofreading Team at http://www.pgdp.net (This book was
produced from scanned images of public domain material
from the Google Print project.)
POEMS OF PHILIP FRENEAU
VOLUME III
THE
POEMS OF PHILIP FRENEAU
POET OF THE AMERICAN REVOLUTION
... |
An Indian airplane cleaning crew stumbled across 24 gold bars worth over $1 million stashed in an aircraft toilet compartment.
India, which rivals China as the world's biggest gold consumer, has witnessed a sharp rise in smuggling since import duties were hiked three times this year to dampen demand for the precious m... |
<reponame>ProjectSulphur/ProjectSulphur
#pragma once
namespace sulphur
{
namespace foundation
{
class BinaryReader;
class BinaryWriter;
/**
* @class sulphur::foundation::IBinarySerializable
* @brief Interface for custom serialization behaviours when using
* sulphur::foundation::Binar... |
def maybe_increase_market_token_allowance(w3, market_token, owner, spender, thresh):
rct = None
allowed = call(market_token.allowance(owner, spender))
if allowed < thresh:
delta = thresh - allowed
tx = transact(market_token.increase_allowance(spender, delta,
{'from': owner, 'gas'... |
def release_address(ec2, module, address, check_mode):
if not check_mode:
try:
result = ec2.release_address(AllocationId=address['AllocationId'], aws_retry=True)
except (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) as e:
module.fail_json_aws(e, msg="Cou... |
#include "text_block_user_data.h"
namespace Qutepart {
TextBlockUserData::TextBlockUserData(const QString& textTypeMap, const ContextStack& contexts):
_textTypeMap(textTypeMap),
_contexts(contexts)
{}
} // namespace Qutepart
|
<gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javamazeproject;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.Event... |
def rotate_signal(time, signal, degrees, origin='middle'):
time = np.array(time, dtype=float)
signal = np.array(signal, dtype=float)
if origin == 'middle':
origin = np.array([time.min() + time.ptp()/2, signal.min() + signal.ptp()/2])
else:
origin = np.array(origin)
angle = np.deg2rad(degrees)
rotation_matrix ... |
VATICAN CITY (Reuters) - Pope Francis baptized 32 babies in the Sistine Chapel on Sunday and told their mothers, including one who was married in a civil service rather than in church, to have no qualms about breast-feeding them there.
Pope Francis baptises one of 32 babies during a mass in the Sistine Chapel at the V... |
Gorgeous is the only way to describe Audi’s awesome R8 e-Tron electric supercar, and we don’t need much excuse to show it off. Especially when it’s wrapped in matte black aluminum and carbon fiber with subtle yellow highlights like this beauty Audi showed off at its tastefully Kubrickian booth at CES.
We got a tour of... |
// Package shiori wraps REST API request
// bindings to the shiori gateway.
package shiori
|
/**
* Writes a location line of the given type to the log file, unpacking the
* location object into E7 lat, lng, and accuracy.
*/
private void writeLocationLine(long absoluteTimeNanos, String key, Location loc) {
long latE7 = (long) (loc.getLatitude() * 1e7);
long lngE7 = (long) (loc.getLongitude() * ... |
def func_callback(txt):
print(txt)
return
def func_call(path, func):
f = open(path,'r')
length = len(f.read())
f.close()## 서현호
func(length)
return
if __name__ == '__main__':
path = './testfile.txt'
try:
func_call(path, func_callback)
except Exception as e:
p... |
/// Fills buffers with information about the available datasources
///
/// A 32 / 64 Bit Application will only return information about either 32 or 64 Bit
/// DataSources.
///
/// # Returns
///
/// (server_name_length, description_length)
///
/// See [SQLDataSources][1]
/// [1]: https://docs.microsoft.com/sql/odbc/ref... |
<filename>chrome/common/extensions/extension_process_policy.cc
// Copyright (c) 2011 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/common/extensions/extension_process_policy.h"
#include "chrome/common... |
import json
import click
import tqdm
from examples.utils.wiki_entity_linker.wiki_entity_linker import MentionCandidatesGenerator
def get_titles(data_path: str):
data = json.load(open(data_path))
for instance in data["data"]:
title = instance["title"]
title = title.replace("_", " ")
... |
/* the processor api lock is a recursive mutex with added capabilities
* to completely drop all lock levels before blocking and atomically
* unblock a waiting set. the lock is implemented using a variation
* of the "specific notification pattern" [cargill], which makes it
* easy to provide these features across pl... |
Adaptively time stepping the stochastic Landau-Lifshitz-Gilbert equation at nonzero temperature: implementation and validation in MuMax3
Thermal fluctuations play an increasingly important role in micromagnetic research relevant for various biomedical and other technological applications. Until now, it was deemed nece... |
// NewConnection handles new bluetooth connections
func (p *HidProfile) NewConnection(dev dbus.ObjectPath, fd dbus.UnixFD, fdProps map[string]dbus.Variant) *dbus.Error {
logrus.Debugln("NewConnection", dev, fd, fdProps)
sintr, err := p.connIntr.Accept()
if err != nil {
logrus.WithError(err).Errorln("Accept failed"... |
<reponame>not-matthias/memlib-rs<gh_stars>1-10
use crate::{MemoryRead, MemoryWrite};
/// Represents a type that can load and unload a kernel exploit
pub trait LoadDriver {
type DriverType: KernelMemoryRead + KernelMemoryWrite + MapPhysical + TranslatePhysical;
fn load(&self) -> Option<Self::DriverType>;
f... |
import React from 'react'
import { Box, Text, Theme } from '~/theme'
import { BackgroundColorProps } from '@shopify/restyle'
type Props = BackgroundColorProps<Theme> & {
number: number | string
}
export const DotNumber: React.FC<Props> = ({
backgroundColor = 'info',
number,
}) => (
<Box
height={23}
mi... |
import type { Pow2 } from "./api";
// http://graphics.stanford.edu/~seander/bithacks.html
export const isPow2 = (x: number): x is Pow2 => !!x && !(x & (x - 1));
export const ceilPow2 = (x: number) => {
x += <any>(x === 0);
--x;
x |= x >>> 1;
x |= x >>> 2;
x |= x >>> 4;
x |= x >>> 8;
x |= ... |
<filename>src/poker/card.ts<gh_stars>1-10
export enum CardValue {
One = 1,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Jack,
Queen,
King,
Ace,
}
export enum CardSuit {
Spades,
Hearts,
Diamonds,
Clubs,
}
/**
* A card with its value and suit.
*/
export class Card {
cons... |
<filename>frontend/src/services/user/userService.ts
import {Store} from 'vuex';
import {getDefaultService} from '@/utils/service';
const useUserService = (store: Store<RootStoreState>): Services<User> => {
const ns = 'user';
return {
...getDefaultService<User>(ns, store),
};
};
export default useUserServic... |
package controllers
import (
"encoding/json"
"github.com/gorilla/mux"
"log"
"net/http"
"tree/entities"
"tree/services"
)
func HandleRoutes(r *mux.Router) {
r.Handle("/car-booking/findAll", findAll(),
).Methods("GET", "OPTIONS").Name("findAllBookings")
}
func findAll() http.Handler{
return http.HandlerFunc(... |
/// Like read_u32_le, but from an io::Read implementation. If io::Read does
/// not yield at least 4 bytes, then this returns an unexpected EOF error.
pub fn io_read_u32_le<R: io::Read>(mut rdr: R) -> io::Result<u32> {
let mut buf = [0; 4];
rdr.read_exact(&mut buf)?;
Ok(u32::from_le_bytes(buf))
} |
t=int(input())
for tt in range(t):
n,k=map(int,input().split())
s=input().strip()
i=0
arr=[]
while i<n:
if s[i]=='0':
arr.append(0)
i+=1
else:
j=i+1
cc=1
while j<len(s) and s[i]==s[j]:
j+=1
cc+=1
arr.append(cc)
i=j
# print(arr)
steps=k
ans=""
ind=0
while ... |
def _translate_cloud_exception(http_error):
return ee_exception.EEException(http_error._get_reason()) |
Seinfeld Quotes Are Surprisingly Depressing In The Right Context Share:
…Mulva?
Seinfeld is often listed as one of, if not the funniest television comedies of all time. The show about “nothing” had countless memorable moments and a big impact on pop culture. There hasn’t been a new episode in almost 20 years, but eve... |
Antibacterial and bacteriostatic potential of coelomic fluid and body paste of Pheretima posthuma (Vaillant, 1868) (Clitellata, Megascolecidae) against ampicillin resistant clinical bacterial isolates.
Pheretima posthuma (Vaillant, 1868), a native earthworm of Pakistan and Southeast Asia, has wide utilization in vermi... |
use actix;
mod app;
fn main() {
let sys = actix::System::new("webservice");
app::start();
let _ = sys.run();
}
|
There’s a chance Bud Black could be managing an NL West team again in 2016.
According FOX Sports’ Ken Rosenthal, the Los Angeles Dodgers will interview Black after he and the Washington Nationals failed to agree on terms for him to manage in Washington, D.C.
Sources: #Dodgers plan to interview Bud Black for manageria... |
/** find whether point is in the interior, at the boundary or in the exterior of the region described by the
* intersection of nlrows[i] <= rhs if convexsides[i] = RHS or lhs <= nlrows[i] if convexsides[i] = LHS
* @note: point corresponds to a convex combination between the lp solution and the interior point
*/
stat... |
# Created by <NAME>
# <EMAIL>
#
# Copyright © 2019
#
# Библиотека Twisted
#
# https://twistedmatrix.com/
# https://pypi.org/project/Twisted/
#
# Работа с TCP протоколами Twisted, базовой сервер
#
# 1. pip install twisted - установка пакета
# 2. from twisted import ... - подключить в файле .py
#
|
<filename>core/module/tower.go<gh_stars>100-1000
// Copyright 2020 Clivern. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
package module
import (
"fmt"
"github.com/clivern/walrus/core/driver"
"github.com/clivern/walrus/core/util"
log "gi... |
Looking for news you can trust?
Subscribe to our free newsletters.
While Kevin Drum is focused on getting better, we’ve invited some of the remarkable writers and thinkers who have traded links and ideas with him from Blogosphere 1.0 to this day to contribute posts and keep the conversation going. Today we’re honored... |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import torch
from pytorch3d.implicitron.models.implicit_function.base import ImplicitronRayBun... |
// AllStages returns all possible stages
func AllStages() sets.String {
return sets.NewString(
audit.StageRequestReceived,
audit.StageResponseStarted,
audit.StageResponseComplete,
audit.StagePanic,
)
} |
/**
* This class implements the A*, landmark and triangulation (ALT) decorator.
*
* @author Peter Karich
*/
public class LMAlgoFactoryDecorator implements RoutingAlgorithmFactoryDecorator {
private Logger LOGGER = LoggerFactory.getLogger(LMAlgoFactoryDecorator.class);
private int landmarkCount = 16;
pri... |
Team Psychological Safety and Conflict Trajectories’ Effect on Individual’s Team Identification and Satisfaction
Using a multilevel field study with data collected over a 9-month period, we tested how team psychological safety interacts with levels of team relationship conflict to influence an individual’s team identi... |
Self-Interest Without Selfishness
Despite commonsense appeal, the link between self-interest and happiness remains elusive. One reason why individuals may not feel satisfied with self-interest is that they feel uneasy about sacrificing the needs of others for their own gain. We propose that externally imposing self-in... |
/**
* Custom iterator that fetches updated samples on demand. Improves performance
* by allowing processing of early results before all results are gathered.
*
* @author faulcon
*
*/
protected static class NCBIUpdateIterator implements Iterator<Integer> {
private LinkedList<Integ... |
/*******************************************************************\
Module: Unit tests of expression size/offset computation
Author: <NAME>
\*******************************************************************/
#include <testing-utils/use_catch.h>
#include <util/arith_tools.h>
#include <util/byte_operators.h>
#in... |
<gh_stars>0
#ifndef TRAIL_HPP
#define TRAIL_HPP
#include "Domain.hpp"
#include "Variable.hpp"
#include <stack>
#include <utility>
#include <iostream>
/**
* Represents the trail of changes made. This allows backtracking to occur.
*/
class Trail
{
public:
// Constructor
Trail ( void );
// Accessors
int size (... |
def line_intersection(lines, lines2, abs_tolerance = 1e-14, full_output = False):
s1 = lines[:, 0, :][:, None]
e1 = lines[:, 1, :][:, None]
d1 = e1 - s1
s2 = lines2[:, 0, :][None, :]
e2 = lines2[:, 1, :][None, :]
d2 = e2 - s2
d2_cross_d1 = cross_product_2d(d2, d1)
displacement_cross_d... |
import { Variants } from 'framer-motion'
export const Search = {
hidden: { opacity: 0, scale: 0 },
visible: {
opacity: 1,
scale: 1,
transition: {
delayChildren: 0.3,
staggerChildren: 0.2,
},
},
}
export const ScaleContainer: Variants = {
hidden: { opacity: 1, scale: 0 },
visible:... |
def addBulkReport(self, report):
logger = self.logger
reply = self.sendBulkReport(report)
reportId = None
if reply:
try:
reportId = reply["data"]["report_id"]
logger.info("TNS bulk submit: successful with ID %s" % (reportId))
except... |
<filename>src/prerender/prerender.ts
import * as puppeteer from 'puppeteer';
import * as path from 'path';
import * as fs from 'fs-extra';
import * as express from 'express';
import * as chalk from 'chalk';
// Settings:
export interface PrerenderSettings {
/**
* The root directory for your website (typically ... |
<reponame>GG-yuki/bugs
"""
/********************************************************************
*
* 文件名:mobilenetv3.py
*
* 文件描述:MobileNetV3 in PyTorch
*
* 创建人: qiwei_ji, 2020年10月6日
*
* 版本号:1.1_alpha
*
* 修改记录:1
*
********************************************************************/
"""
import torch
import torch.nn... |
// Re-export internal types that are used in the public API
pub use crate::internal::{
context::{Config, RegisterGroupConfig, RegisterGroupStatus, State, Status},
register::{
GroupId as RegisterGroupId, GroupIdValue as RegisterGroupIdValue, ObservedRegisterValues,
Record as RegisterRecord, Store... |
//bintree di ricerca (solo funzioni differenti)
node* findnode(int x,node* tree){ //logn o n (albero degenere) ATTENZIONE: in media logn
if (!tree)return nullptr;
if (tree->info==x)return tree;
if (x<tree->info)return findnode(x,tree->left);
return findnode(x,tree->right);
}
void insertnode(int x,node... |
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package ec2
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Resource Type definition for AWS::EC2::SubnetNetworkAclAssociation
func L... |
Prevalence and heterogeneity of serum DNA polymerase activity in patients with non-A, non-B hepatitis and HBsAg-negative blood donors with elevated SGPT.
Serum DNA polymerase activity (DNA-P) was detected in 27.6 per cent of non-A, non-B (NANB) hepatitis patients, 8.7 per cent of patients with alcoholic liver disease ... |
/*
PsychToolbox3/Source/Common/PsychKinect/PsychKinect.h
PROJECTS: PsychKinect only.
AUTHORS:
mario.kleiner@tuebingen.mpg.de mk
PLATFORMS: All.
HISTORY:
24.11.2010 mk Created.
DESCRIPTION:
A Psychtoolbox driver for Microsoft's Kinect 3D-camera, based
on the free software code of the http://openkinec... |
Cartilage Repair and Subchondral Bone Migration Using 3D Printing Osteochondral Composites: A One-Year-Period Study in Rabbit Trochlea
Increasing evidences show that subchondral bone may play a significant role in the repair or progression of cartilage damage in situ. However, the exact change of subchondral bone duri... |
/*
* numpy_conversions_shared.hpp
*
* Created on: Feb 5, 2019
* Author: <NAME>
* Copyright: 2019 <NAME>
*
* 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://w... |
Published April 24, 2012 in The Vindicator (Link)
Damion Thomas said he has been in trouble for most of his life.
Drinking. Drugs. Rehabilitation programs. Slip-ups. More drugs. More trouble. Heroin.
“I lost everything. I haven’t seen my child in two years. My house, my car, my job. I lost trust in my family, my wif... |
Ashley Williams has revealed how his good friend Seamus Coleman is “positive” and “focused on his recovery” from the broken leg he suffered in Ireland’s World Cup qualifier with Wales.
The centre-back spoke to his Everton teammate from his hospital bed hours after Coleman was taken off on a stretcher in a match which ... |
<filename>dist/amd/grid/htmlHeightWidth.d.ts
import { ColConfigInterface, ColumnBindingContext, Controller } from '../interfaces';
export declare class HtmlHeightWidth {
avgScrollBarWidth: number;
avgPanel_Height: number;
avgHeader_Height: number;
avgHeader_Top: number;
avgContent_Top: number;
a... |
On October 7, hacktivist website WikiLeaks released thousands of emails from Hillary Clinton’s campaign chair John Podesta. The emails reveal that the Clinton campaign violated campaign finance laws by coordinating with David Brock who heads Clinton’s Super PAC Correct The Record. According to FEC’s already limited fin... |
<filename>src/dbf/header.rs<gh_stars>0
use std::convert::TryFrom;
use std::io::Read;
use byteorder::{LittleEndian, ReadBytesExt};
use super::version::Version;
use crate::model::Date;
#[derive(Debug)]
pub struct Header {
pub version: Version,
pub last_update: Date,
pub record_count: u32,
pub header_le... |
/**
* This file is part of KingdomHallTimer which is released under "no licence".
*/
public class SpeakerViewPresenter extends ControlledScreenBase implements TimeInfoPresenter.Input, SpeakerLayoutCoordinator.Input {
@FXML
AnchorPane mainContainer;
@FXML
Label tvTime;
@FXML
VBox vbMultimedi... |
N=int(input())
List = list(map(int, input().split()))
sumS = 0
for i in range(N):
sumS +=List[i]
trial = sumS // N
mid = 0
res = 10000000
for i in range(N):
trial += i
mid = 0
for j in range(N):
mid += (trial - List[j])**2
res = min(res, mid)
print(res) |
import { PushChannelManager, PushNotification } from './push';
export interface KumulosConfig {
apiKey: string;
secretKey: string;
/**
* Turn crash reporting on for JS layer (defaults to false)
*/
enableCrashReporting?: boolean;
/**
* A version identifier for minified source maps you ... |
Curriculum and Online Course Development Framework
The online pivot necessitated by the COVID-19 pandemic of 2020 has placed online instruction in the spotlight. While schools and universities around the world quickly moved classes online and kept students learning, it became apparent that most institutions and instru... |
package architecture.community.codeset;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import architecture.community.model.ModelObjectTreeWalker;
public interface CodeSetService {
//public void batchUpdate(CodeSet codeSet, List<CodeItem> items);
public void saveOrUpdate(CodeSet... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.