content stringlengths 10 4.9M |
|---|
/**
* Represents a pattern for matching a {@link Node}.
*/
@Deprecated
public class PatternNode extends AbstractPatternObject<Node>
{
/**
* The default {@link PatternGroup}.
*/
// Should this really EVER be used? - mutable global state!!!!
public static final PatternGroup DEFAULT_PATTERN_GROUP =... |
/**
* In-place combine the right side of the FD's that have the same left side
*
* @param fds a set of FD's
*/
public static void combineRight(Set<Abhaengigkeit> fds) {
Map<Set<Attribut>, Set<Attribut>> map = new HashMap<>();
for (Abhaengigkeit fd : fds) {
if (map.containsKey(fd.left)) {
... |
#include <bits/stdc++.h>
using namespace std;
typedef long long INT;
typedef double DO;
typedef pair<int, int> pii;
typedef vector<int> VI;
const int M = 26;
const int NN = 100100;
int cnt[NN<<2][M], ans[M], flag[NN<<2], tans[M];
char s[NN];
#define ls (u<<1)
#define rs (ls|1)
#define mid (L+R>>1)
... |
<reponame>chinabrant/BRTableView<filename>BRTableView/Classes/CommonCells/BRGapCell.h
//
// YTGapCell.h
// TableViewDemo
//
// Created by brant on 2017/12/7.
// Copyright © 2017年 Brant. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BRCellProtocol.h"
/**
用来做分隔的cell
*/
@interface BRGapCell : UITableVi... |
The Mathematical Model and an Genetic Algorithm for the Two-Echelon Electric Vehicle Routing Problem
In order to cope with the challenges of high cargo load and high timeliness distribution in logistics industry, as well as to alleviate the current situation of oil resource depletion and air pollution, this study esta... |
<reponame>naustagic/L2JNetwork_Interlude
package net.sf.l2j.gameserver.network.serverpackets;
import net.sf.l2j.gameserver.model.pledge.ClanMember;
/**
* Format : (ch) dSd
* @author -Wooden-
*/
public class PledgeReceivePowerInfo extends L2GameServerPacket
{
private final ClanMember _member;
public PledgeRecei... |
More than 17,600 pets found new homes with loving families nationwide on Saturday for #ClearTheShelters. (Published Sunday, Aug. 16, 2015)
North Texans helped Clear the Shelters on Saturday, finding more than 2,900 pets new homes. Since the promotion of Clear the Shelters started on July 27, more than 3,100 animals we... |
package com.gioov.behavioral.visitor;
import java.util.ArrayList;
import java.util.List;
/**
* @author godcheese [<EMAIL>]
* @date 2020-02-12
*/
public class Test {
public static void main(String[] args) {
Visitor visitor = new ConcreteVisitor();
StringElement stringElement = new StringElement... |
package com.afei.texturedemo;
import android.content.Context;
import android.content.res.AssetManager;
import android.opengl.GLSurfaceView;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
public class NativeRenderer implements GLSurfaceView.Renderer {
private Co... |
'use strict';
import { IListOption } from 'chord/music/api/listOption';
export const ARTIST_LIST_OPTIONS: Array<IListOption> = [
{
type: 'category',
name: '歌手',
items: [
{ id: null, name: '热门歌手' },
{ id: '5001', name: '入驻歌手' },
{ id: '1001', name: '华语男歌... |
//*****************************************************************************
//
//! Enables CPU timer interrupt.
//!
//! \param base is the base address of the timer module.
//!
//! This function enables the CPU timer interrupt.
//!
//! \return None.
//
//*************************************************************... |
// Put implements kv.CompositeMapUpdater.Put
func (m *compositeMap) Put(key composite.Key, value []byte) error {
if len(key) == 0 {
return fmt.Errorf("key cannot be empty or nil")
}
if value == nil {
return fmt.Errorf("value cannot be nil")
}
nodes, err := m.nodes(key, true, false)
if err != nil {
return er... |
import Mobigen.Common.Log as Log; Log.Init()
import pika
import ssl
import bson
import time
class DirectQueueClient:
def __init__( self ):
self.connection = None
self.channel = None
def disConnect( self ):
if self.channel != None:
self.channel.close()
if self.connection != None:
self.c... |
<reponame>wolfdev45/solana-pay
import { PendingPage } from '../client/components/pages/PendingPage';
export default PendingPage;
|
<reponame>anonl/nvlist
package nl.weeaboo.vn.impl.render;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.base.Joiner;
import nl.weeaboo.common... |
def is_utc_today(utc):
current_time = datetime.datetime.utcnow()
day_start = current_time - datetime.timedelta(hours=current_time.hour, minutes=current_time.minute,
seconds=current_time.second)
day_start_utc = unix_time(day_start)
return (utc - day_start... |
/**
* Creates a new department
* @param departmentName The department name to be persisted
* @return Response payload based on operation success/failure.
*/
@RequestMapping(value = "/systemadmin/createdepartment/{departmentName}", method = { RequestMethod.GET, RequestMethod.POST })
public Respon... |
package seppe.alpaerts.eindproject_seppe_jochem.model.winkelmandje;
import seppe.alpaerts.eindproject_seppe_jochem.model.product.DierenProduct;
/**
* Autor: Seppe
* klasse om een bepaalde rij te maken in het winkelmandje
*/
public class Rij {
private DierenProduct dierenProduct;
private int aantal;
p... |
<gh_stars>100-1000
import { ModelCard } from '@allenai/tugboat/lib/ModelCard';
import { ModelInfo, ModelId } from './ModelInfo';
class NoModelCardIdError extends Error {
constructor(info: ModelInfo) {
super(`Unable to determine id to use for fetching a model card for model ${info.id}.`);
}
}
/**
* R... |
#pragma once
#include "AsyncSemaphore.h"
#include "IAsyncProducerConsumerCollection.h"
#include "../Collections/ThreadSafeMinimalisticQueue.h"
#include "../Tasks/TaskCombinators.h"
#include <stdexcept>
namespace RStein::AsyncCpp::AsyncPrimitives
{
template <typename TItem>
class SimpleAsyncProducerConsumerColle... |
<filename>utils/utils/__tests__/handle-err.test.ts
/** @jest-environment node */
import { handleErr } from '../handle-err';
describe('Nodejs error handler', () => {
it('throws error when it exists', () => {
expect.assertions(1);
function wrapper(): void {
handleErr(new Error('err'));
}
expect(... |
#include <iostream>
using namespace std;
int main()
{
int n,arr[1000],temp=0,current;
cin>>n;
for(int i=1;i<=n;i++)
cin>>arr[i];
temp=arr[3]-arr[1];
current=MAX_READ_LOCKS;
for(int i=1;i<=n-2;i++){
temp=max(temp,arr[i+2]-arr[i]);
//cout<<temp<<endl;
... |
import React, { useState, useEffect } from 'react';
import { Chart, SmartBoardDashboardProps } from '../interfaces';
import { SmartBoardChartView as ChartView } from './defaultChartView';
export const SmartBoardDashboard = (props: SmartBoardDashboardProps) => {
const { chartList, chartGraph, chartOrder, chartCluster... |
Role of the Five RNA Helicases in the Adaptive Response of Bacillus cereus ATCC 14579 Cells to Temperature, pH, and Oxidative Stresses
ABSTRACT In this study, growth rates and lag times of the five RNA helicase-deleted mutants of Bacillus cereus ATCC 14579 were compared to those of the wild-type strain under thermal, ... |
<reponame>KevCJones/kaop-ts
import { META_KEY } from "./constants"
export const defineMetadata = function (target, key, prop) {
if (!target[META_KEY]) target[META_KEY] = {}
target[META_KEY][key] = prop
}
export const getMetadata = function (target, key) {
return target[META_KEY] && target[META_KEY][key]
}
|
import { inject, injectable } from 'inversify';
import { pick } from 'lodash';
import { Arg, Args, Ctx, Mutation, Query, Resolver, UseMiddleware } from 'type-graphql';
import { ltAdmin } from '../../domain';
import * as errors from '../../errors';
import { TYPES } from '../../inversify.constants';
import { AuthRequirem... |
/**
* trasform the json returned by the API call to the FLickr API to a json to return as a response
* of our API
* TODO .. isolate in his own class
* TODO: finire implementazione
*/
private JsonObject transformFlickrApiResponseToResult(JsonObject jsIn) {
JsonObject jsOut = null;
final String ... |
package ru.job4j.tracker;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
import static org.hamcrest.core.Is.is;
im... |
Evidence that the response to applied forces of continuously erupting rat incisors contains more than one component.
Forces (2.5-15 mN) applied in a direction that opposed the eruption of rat maxillary incisors made these teeth sink into their sockets at a decreasing rate. Sometimes eruption subsequently restarted fro... |
Effect of Synthesis Conditions on Capacitive Properties of Porous Carbon Derived from Hemp Bast Fiber
A systematic study of the influence of synthesis conditions on the structural, morphological, and electrical properties, as well as the electrochemical performance of hemp fiber-derived carbon materials was performed.... |
MOGADISHU, Somalia — Nearly 100 members of the Shabab, the Qaeda-linked insurgent group in Somalia, were killed in separate strikes this week, according to Somali and American officials.
More than a dozen militants were killed in a United States airstrike 20 miles north of the capital of Mogadishu, according to Samant... |
/* Code decompiled incorrectly, please refer to instructions dump. */
static /* synthetic */ void b(com.yandex.metrica.impl.ob.bq r13) {
/*
java.lang.String r0 = "type"
java.lang.String r1 = "value"
java.lang.String r2 = "key"
r3 = 0
com.yandex.metrica... |
<gh_stars>1-10
export default ((code: number) => {
switch (code) {
case 400: return "400 Bad Request, make sure you made the request right, because something was malformed.";
case 401: return "401 Unauthorized, if authorization was required, make sure you provided it.";
case 403: return "403 Forbidden, you do n... |
Spatially extended PAHs in circumstellar disks around T Tauri and Herbig Ae stars
T O determine the presence and location of the emission from Polycyclic Aromatic Hydrocarbons (PAHs) towards low and intermediate mass young stars with disks using large aperture telescopes. VLT-VISIR N-band spectra and VLT-ISAAC and VLT... |
<gh_stars>0
package net.rushashki.social.shashki64.client.config;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.gwt.place.shared.PlaceController;
import com.google.inject.Provider;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;... |
Cooper McKim is a rising junior at Tufts University fascinated by the dynamics of environmental work with policy, entrepreneurship and activism. McKim studies environmental policy and helps write a monthly newsletter for the environmental studies program. He has interned with Massachusetts Rivers Alliance, a New Jersey... |
#include <stdlib.h>
typedef struct {
int re,im;
} icplx_t;
int main(int argc, char *argv[]) {
icplx_t i ;
i = (icplx_t){0,1};
int one = ((icplx_t){0,1}).im;
return 0;
}
|
<reponame>911992/WAsys_easy_http_data<filename>src/main/java/wasys/lib/pojo_http_data/api/annotations/package-info.java
/**
* This package contains annotations needed to specify meta/completed POJO definitions.
*/
package wasys.lib.pojo_http_data.api.annotations;
|
def require_upload(self):
formStash = self.formStash
getcreate_args = {}
if formStash.results["private_key_file_pem"] is not None:
self.upload_type = "pem"
self.private_key_pem = getcreate_args[
"key_pem"
] = formhandling.slurp_file_field(formS... |
/// Returns new particles after a collision.
/// Assumes that the particles are tangent to each other.
/// The first particle returned corresponds to self.
///
/// # Panics
/// - if the two particles are not tangent (or within 1e-5 units)
pub fn bounce(&self, other: &Particle) -> (Particle, Particle) {
let r_t = se... |
Over the last few weeks we've seen DDoS attacks hitting our systems that show that attackers have switched to new, large methods of bringing down web applications. They appear to come from an IoT botnet (like Mirai and relations) which were responsible for the large attacks against Brian Krebs.
Our automatic DDoS miti... |
import gc
def queryset_iterator(queryset, chunksize=1000):
'''''
Iterate over a Django Queryset ordered by the primary key
This method loads a maximum of chunksize (default: 1000) rows in it's
memory at the same time while django normally would load all rows in it's
memory. Using the iterator() me... |
package main
import "log"
type Cvs interface {
Checkout() error
Pull() (string, error)
Push() error
Revision() (string, error)
Status() error
}
func NewCvs(url string, info *RepoInfo) Cvs {
var workdir string
for src, dsts := range info.Targets {
if src == "./" {
workdir = dsts[0]
}
}
if info.Cvs ==... |
// deal the execute snapshot change
func (c *PinkCollector) dealExecuteSnapshotHisChange(kc *etcd.KeyChange) {
if strings.TrimSpace(kc.Value) == "" {
_ = c.cli.Delete(context.Background(), kc.Key)
return
}
es := new(protocol.ExecuteSnapshot).Decode(kc.Value)
if es.State == protocol.ExecuteSnapshotFail || es.Sta... |
// SHOW CREATE TABLE statement.
public class ShowCreateTableStmt extends ShowStmt {
public enum CreateTableType {
TABLE("TABLE"),
VIEW("VIEW"),
MATERIALIZED_VIEW("MATERIALIZED VIEW");
private final String value;
CreateTableType(String value) {
this.value = value;... |
<reponame>pietroluongo/opengl-2d-shooter
#include "../include/glutCallbacks.h"
#include "../include/camera.h"
#include "../include/constants.h"
#include "../include/debug.h"
#include "../libs/imgui/glut/imgui_impl_glut.h"
#include "../libs/imgui/imgui.h"
#include "../libs/imgui/imgui_impl_opengl2.h"
#include <GL/gl.h... |
/// <reference path="./xss.d.ts" />
import xss from "xss";
console.log(xss("<script>alert('xss');</script>"));
|
/**
* Provides information about an event provided by the apple file events api. All of the public
* methods are simple methods that check if the particular event flag is set in the flags variable
* returned by the apple file event.
*
* @see <a
* href="https://developer.apple.com/documentation/coreservices/14... |
/**
* Unregisters <code>mMessageReceiver</code> when this activity is paused.
*/
@Override
public void onResume() {
LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver,
new IntentFilter(ServiceMotionSense.INTENT_DATA));
super.onResume();
} |
package adventofcode2017
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
"testing"
)
// Nested anonymous structs cannot be initialized in a nice way
type DistanceTestdata struct {
pos1 [2]int
pos2 [2]int
dist int
}
func ExampleDay03() {
fmt.Println(Day03(361527))
// Output: 326
}
func TestDay03(t... |
<gh_stars>1-10
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.informationview.ffdc.exceptions;
public class PublishEventException extends InformationViewCheckedExceptionBase {
public PublishEventException(String repo... |
<gh_stars>1-10
package yaml
import (
"encoding/json"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"strings"
"testing"
)
func compareToJSON(t *testing.T, yamlPath string) {
yaml, err := ioutil.ReadFile(yamlPath)
if err != nil {
t.Fatal(err)
}
vy, err := Load(yaml)
if err != nil {
t.Fatal(err)
}
jsonP... |
<reponame>bpbpublications/Python-Quick-Interview-Guide<filename>Chapter 07/word_search.py
from typing import List
class Solution:
def solution(self, board, word, x, y, cur):
if(x < 0 or x >= len(board)
or y < 0
or y >= len(board[x])
or board[x][y] == ' '):
... |
class ManagedMcrun:
"""
A class for performing a mcstas simulation and organizing the data
into python objects
ManagedMcrun is usually called by the instrument class of
McStasScript but can be used independently. It runs the mcrun
command using the system command, and if this is not in the pat... |
Retrospective cohort study of the South Tyneside Exercise Referral Scheme 2009‐14: predictors of dropout and barriers to adherence
Background Exercise Referral Schemes (ERS) are a prevalent method of increasing physical activity levels. However, they suffer from participant dropout and research predicting dropout or b... |
import asyncio
from codewatchman.Watchman import Watchman
from codewatchman.WatchmanLog import WatchmanLog
import logging
logging.basicConfig(level=logging.DEBUG)
tokenData = { "tokenId": "<KEY>", "accessToken": "<KEY>" }
instance = Watchman(tokenData["tokenId"], tokenData["accessToken"])
first_log = WatchmanLog(log... |
<filename>sugoi-api-ldap-config-provider/src/test/java/fr/insee/sugoi/config/LdapRealmProviderWriteTest.java
/*
* 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/license... |
<gh_stars>1-10
package com.drumonii.loltrollbuild.model.builder;
import com.drumonii.loltrollbuild.model.Champion;
import com.drumonii.loltrollbuild.model.ChampionInfo;
import com.drumonii.loltrollbuild.model.ChampionPassive;
import com.drumonii.loltrollbuild.model.ChampionSpell;
import com.drumonii.loltrollbuild.mode... |
Role of apoptosis, bcl-2 and bax protein expression in premature rupture of fetal membranes.
OBJECTIVE
To examine the degree of apoptosis in human fetal membranes associated with premature rupture of membranes (PROM) as compared with normal pregnancies and to evaluate the expression of proapoptotic bax and antiapoptot... |
<reponame>e11en/ReactUiCompare
import Code from "components/CodeComponent";
import ElementCard from "components/ElementCardComponent";
import FlexWrapper from "components/FlexWrapperComponent";
const NormalButtons = () => {
return (
<ElementCard title="Normal buttons">
<div></div>
<Code>
{`
... |
Some footballers just don't want to give the game up.
It's become common place that stars of yesteryear may see out their careers in warmer climates like America and India, and sometimes they want to cash in on their name and enjoy a last payday too (ahem, China).
At 36-years-old, Dimitar Berbatov still has plenty to... |
/**
* Decrypts a certain encrypted String with the Columnar Transposition
* Cipher Rule
*
* @return a String decrypted with the word encrypted by the Columnar
* Transposition Cipher Rule
*/
public static String decrypter() {
StringBuilder wordDecrypted = new StringBuilder();
... |
package orc
import (
"bytes"
"fmt"
"strings"
"unicode"
"unicode/utf8"
"github.com/crphang/orc/proto"
)
type Category struct {
name string
isPrimitive bool
typeKind *proto.Type_Kind
}
func (c Category) String() string {
return c.name
}
var (
CategoryBoolean = Category{"boolean", true, proto.T... |
package com.dynamicpdf.api;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
/**
* Represents AES 128 bit PDF document security.
* AES 128 bit PDF security is compatible with PDF version 1.5 and hi... |
<gh_stars>0
{-# LANGUAGE ScopedTypeVariables #-}
-- | Helpers for testing
module Tests.Helpers (
-- * helpers
T(..)
, typeName
, Double01(..)
-- * IEEE 754
, isDenorm
-- * Generic QC tests
, monotonicallyIncreases
, monotonicallyIncreasesIEEE
-- * HUnit helpers
, testAssertion
, testEq... |
<reponame>Narflex/sagetv
/*
FAAC - codec plugin for Cooledit
Copyright (C) 2002-2004 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation.
This program is distributed in the hope that it will be u... |
/**
* add a DynamoDB request. accumulate the requests until batchSize, then promote to the queue
* @param dynamoDBWriteRequest a single write request to DynamoDB
*/
public ListenableFuture<BatchResponse> add(final DynamoDBWriteRequest dynamoDBWriteRequest) {
if (keySelector != null) {
... |
/**
* An exception class which signals nonfatal errors.
*
* <p>A nonfatal error terminates a process for the original source concerned
* but does not ruin the whole process of {@link Chionographis} task.</p>
*
* <p>An instances of this exception class has a flag of whether the cause exception of
* the exception ... |
#include <ATen/core/interned_strings.h>
namespace torch {
namespace jit {
namespace prim {
using namespace ::c10::prim;
}
namespace attr {
using namespace ::c10::attr;
}
namespace aten {
using namespace ::c10::aten;
}
namespace onnx {
using namespace ::c10::onnx;
}
using ::c10::Symbol;
} // namespace jit
} // namespa... |
/*
* Copyright 2014 <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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
<reponame>jyotisingh/gocd
/*
* Copyright 2018 ThoughtWorks, 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-2.0
*
* Unless require... |
def _allocate_from_s_variant(group_y: np.ndarray,
group_vaccines: np.ndarray,
new_e_from_s_variant: float,
v_total: float, n_unvaccinated: float,
vaccines_out: np.ndarray) -> np.ndarray:
expected_tota... |
package arcmop.blog.springbootest.configuracion.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Suma {
@Id
@GeneratedValue
private Integer id;
private Integer sum01;
private Integer sum02;
private Integer resultado;
public Int... |
package cn.ztuo.bitrade.entity;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.core.types.dsl.PathInits;
/**
* QTransferRecor... |
// Parse returns the access ID and signature present in the
// given string, presumably taken from a request's Authorization
// header. If the header does not match the expected `APIAuth access_id:signature`
// format, an error is returned.
func Parse(header string) (id, sig string, err error) {
var tokens []string
i... |
package buffer
import (
"bytes"
"github.com/kisielk/vigo/utils"
)
type ActionType int
const (
ActionInsert ActionType = 1
ActionDelete ActionType = -1
)
// An action is a single entity of undo/redo history. All changes to contents of a buffer
// must be initiated by an action.
type Action struct {
What Acti... |
With everyone in crypto captivated by the Monero excitement, you might have thought nothing else was taking place. But as we all know in crypto land nothing ever sleeps. Today, we look at Litecoin, GameCredits & Bitcrystals.
1. Litecoin
Big news today, Litecoin has been finally added to GDAX (Coinbase). Rumors of the... |
package xml
import (
"net/http"
"strings"
"github.com/gorilla/rpc/v2"
)
const (
// gorilla error strings
methodNotFound = "rpc: can't find method"
serviceNotFound = "rpc: can't find service"
)
// ServerCodec codec compatible with gorilla/rpc to process each request.
type ServerCodec struct {
aliases map[str... |
BRUSSELS (AP) – European leaders agreed Thursday morning on a crucial plan to reduce Greece's debts and provide it with more rescue loans so that the faltering country can eventually dig out from under its debt burden.
After a marathon summit, EU President Herman Van Rompuy said that the deal will reduce Greece's debt... |
/**
* The postal address name suffix.
**/
public AccountPostalAddress suffix( String suffix )
{
this.suffix = suffix;
return this;
} |
<reponame>MrManiak/Squad-SDK
// Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------... |
Download the Pattern and Assembly Guide of Lofty Paper Model from Bob the Builder
Pictures of Bob yhe Builder's Lofty Papercraft
Lofty the crane from Bob the Builder paper model/papercraft pattern and build instruction.“Can we build it? Yes we can!” That’s right. After quite a long time since the release of my, new w... |
Deep sampling and pooled amplicon sequencing reveals hidden genic variation in heterogeneous rye accessions
Background Loss of genetic variation negatively impacts breeding efforts and food security. Genebanks house over 7 million accessions representing vast allelic diversity that is a resource for sustainable breedi... |
package com.example.group_21_project.maps;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.TextView;
import com.example.group_21_project.R;
import com.example.group_21_project.UI.restaurant_detail;
import com.example.group_21_project.model.RestaurantManag... |
<filename>voyager/model_wrappers.py
import json
import os
import shutil
import time
import keras.backend as K
import numpy as np
import tensorflow as tf
from voyager.callbacks import NBatchLogger, ReduceLROnPlateauWithConfig, ResumeCheckpoint
from voyager.data_loader import read_benchmark_trace
from voyager.losses im... |
def project_info(self, project_name):
project = None
url = "%sprojects" % (self.server_url)
response, content = self._get(url)
if response.status != 200:
raise RecordStoreAccessError("Error in accessing %s\n%s: %s" % (url, response.status, content))
else:
... |
package utility
import (
"errors"
"fmt"
"io"
"strings"
)
const inputLimit = 50
type Interaction struct {
Reader io.Reader
}
func (i *Interaction) AskUserInput(query string) (string, error) {
fmt.Println(query + ": ")
buf := make([]byte, inputLimit)
l, err := i.Reader.Read(buf)
if err != nil {
fmt.Println... |
def segmentate_grayscale(
image: Union[np.ndarray, str], threshold: float, explain: bool = False
) -> np.ndarray:
if isinstance(image, str):
image = cv2.imread(image)
image = cast(np.ndarray, image)
_hue, _sat, _value = cv2.split(cv2.cvtColor(image, cv2.COLOR_BGR2HSV))
_value[:] = 200
hs... |
<gh_stars>0
#include <cstdio>
#include <limits>
#include <sstream>
#include <iomanip>
#include <boost/lexical_cast.hpp>
#include "asserts.hpp"
#include "as_function_params.hpp"
#include "as_object.hpp"
#include "as_value.hpp"
#include "swf_environment.hpp"
#include "swf_player.hpp"
namespace swf
{
as_value_ptr as_... |
package main
import (
"artlovecode/travel/apiclients"
"artlovecode/travel/formatters"
"encoding/json"
"fmt"
"io/ioutil"
"math/rand"
"os"
"strings"
"time"
)
type Country struct {
ISOShortCode string `json:"iso"`
Name string `json:"name"`
}
/*
Select a country at random, and display some fun travel... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Split a tractogram into multiple files, 2 options available :
Split into X files, or split into files of Y streamlines.
By default, streamlines to add to each chunk will be chosen randomly.
Optionally, you can split streamlines...
- sequentially (the first n/nb_c... |
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
/**
* Created by yuu on 12/4/17.
*/
public class Problem546C {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Set<String... |
// Has returns true if the version string is in the set.
//
// vs.Has("apps/v1")
func (v VersionSet) Has(apiVersion string) bool {
for _, x := range v {
if x == apiVersion {
return true
}
}
return false
} |
<reponame>chili-chiu/napari-hub<filename>frontend/src/components/Footer/Footer.test.tsx
import { render } from '@testing-library/react';
import { Footer } from './Footer';
describe('<Footer />', () => {
it('should match snapshot', () => {
const component = render(<Footer />);
expect(component.asFragment()).... |
/**
* Director to build StampTree XML data.
*
* @author Kazushi Minagawa, Digital Globe, Inc.
*/
public class StampTreeXmlDirector {
private DefaultStampTreeXmlBuilder builder;
/**
* Creates new StampTreeXmlDirector
* @param builder
*/
public StampTreeXmlDirector(Default... |
The Adapted Fresno Test of competence in evidence‐based practice
Introduction: Health educators who teach professionals about evidence‐based practice (EBP) need instruments to measure change in skills and knowledge. This study aimed to develop and evaluate the interrater reliability, internal consistency, and responsi... |
<reponame>brikr/advent-of-code-2020<filename>src/day08/day08.ts
import {cloneDeep} from 'lodash';
import {fileMapSync} from '../utils';
interface Visited {
// key: pc address we've been to; value: true
[address: string]: boolean;
}
type FuncName = 'nop' | 'acc' | 'jmp';
interface Instruction {
func: FuncName;
... |
package details
// Auto-generated code. Do not edit.
////////////////////////////////////////////////////////////////////////
// Authority
var authorityLdrRecordStatus = map[string]string{
"a": "Increase in encoding level",
"c": "Corrected or revised",
"d": "Deleted",
"n": "New",
"o": "Obsolete",
"s": "Deleted;... |
There are new questions about just what a grand jury is investigating after prosecutors were thrown out of the grand jury room.
In an incredibly rare move this week, the foreperson of a Harris County Grand Jury asked a bailiff to remove prosecutors so jurors could hear from a witness on their own about potentially fau... |
/**
* Created by Administrator on 2017/3/30.
*/
public final class GankDay {
/**
* category : ["休息视频","iOS","福利","前端","Android"]
* error : false
* results : {"Android":[{"_id":"58dc6b6e421aa969fd8a3ded","createdAt":"2017-03-30T10:20:30.597Z","desc":"Android 按钮进度条效果","images":["http://img.gank.io/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.