content
stringlengths
10
4.9M
<filename>tests/test_reader.py import mmap from pathlib import Path from par2.packets import Packet from par2.reader import Par2FileReader, DDPacketPointer from .conftest import in_sample_dir, SAMPLES_PATH, factory_packet_header def test_reader_empty_bytes(): """ Make sure it at least works with bytes """ r...
PARIS — French voters face a stark choice on May 7 between retreating into isolationism or taking the lead in shaping a European defense policy to respond to Islamic terrorism, an unstable neighborhood, a resurgent Russia, an uncertain America and a rising China. France prizes its strategic autonomy but can no longer ...
package prompt import ( "errors" "fmt" "io/ioutil" ) func PromptName() string { return TrimmedLine("Vault name") } func GivenOrPromptName(namePrefix string) string { if namePrefix == "" { return PromptName() } return namePrefix } func GivenOrPromptPassword(passwordFile string) (string, error) { if passwor...
/* Accel framework public API for discovering current engine capabilities. */ uint64_t spdk_accel_get_capabilities(struct spdk_io_channel *ch) { struct accel_io_channel *accel_ch = spdk_io_channel_get_ctx(ch); return accel_ch->engine->capabilities; }
// Get the optionally base64 encoded values @JsonIgnore public byte[] parseSignature() { if (this.getSignature().equals("")) { return Base64.decode(this.getSignature64()); } return this.getSignature().getBytes(RAW_BYTE_CHARSET); }
<reponame>toshism/AmIThere<gh_stars>1-10 package main import ( "fmt" "time" "gocv.io/x/gocv" ) func capture_image(img *gocv.Mat) { webcam, err := gocv.VideoCaptureDevice(0) if err != nil { fmt.Println(err) panic(err) } defer webcam.Close() webcam.Read(img) } func am_i_there(img *gocv.Mat) bool { classi...
package main import ( "flag" "fmt" "os" "strings" "github.com/fatih/color" "github.com/syllabix/versioner/commit" "github.com/syllabix/versioner/tag" ) func fail(err error) { color.Red("%+v", err) os.Exit(1) } func scopePrinter(latest, path string) { args := flag.Args() v := "HEAD" n := len(args) if n ...
package models; import db.DatabaseRule; import org.junit.Rule; import org.junit.Test; import static org.junit.Assert.*; public class AnimalTest { @Rule public DatabaseRule databaseRule = new DatabaseRule(); private Animal newAnimal() { return new Animal("Lion","Good", "Young"); } private...
// Restores previously saved cursor position, character attribute (graphic rendition), // character set, and origin mode selection. // If none were saved, the cursor moves to home position. void CEscapeHandler:: escapeDECRC() { restoreCursor(); }
<gh_stars>1-10 /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerate...
#include<stdio.h> int main() { short int a,b,c,no1=0; scanf("%hd%hd%hd",&a,&b,&c); if(a==1) no1++; if(b==1) no1++; if(c==1) no1++; if(no1==3) printf("3\n"); else if(no1==2) { if(b!=1) printf("%d\n",b+2); else prin...
// 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 model import ( "github.com/clivern/walrus/core/driver" ) // Backup type type Backup struct { db driver.Database } // NewBackupStore creates a new instance fun...
<filename>src/main/java/trainer/NullStopWatch.java package trainer; /** * A null object pattern implementation for <tt>SimpleTimerInterface</tt>. * * @author <NAME> * */ public class NullStopWatch implements SimpleTimerInterface { /** * Does nothing. */ @Override public void start() {} /** * Does n...
Comparison of the Application of Different Fluoride Supplements on Enamel Demineralization Adjacent to Orthodontic Brackets: An In Vitro Study Background: White spot lesion is considered as one of the main problems in the orthodontic treatment. Brackets used in fixed orthodontic treatment create an environment that prov...
/* * Creates a new gang by logging on a session to each segDB involved. * * elog ERROR or return a non-NULL gang. */ Gang * AllocateGang(PxDispatcherState *ds, GangType type, List *segments) { MemoryContext oldContext; SegmentType segmentType; Gang *newGang = NULL; int i; ELOG_DISPATCHER_DEBUG("AllocateGa...
<filename>src/com/github/pedron98/bean/LoginUsuarioBean.java package com.github.pedron98.bean; import java.io.Serializable; import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; import com.githu...
<filename>src/AnimeTable.tsx import React from "react"; import {addDays, compareAsc, compareDesc, endOfDay, format, startOfDay} from "date-fns"; import LocalizationProvider from "@mui/lab/LocalizationProvider"; import DateAdapter from "@mui/lab/AdapterDateFns"; import jaLocale from "date-fns/locale/ja"; import EditIcon...
It seems almost heretical to say it, but could it be that Liverpool's captain Steven Gerrard is not the solution but the problem? When Steven Gerrard came off the bench against Newcastle United on 30 December and transformed a 1-1 draw into a 3-1 win, the assumption was that, with their talisman back after an ankle in...
def _validate_workflow(self, stage): if stage == 'add_source': if self.validation['add_widget']: raise WorkflowOrderError('New sources cannot be added after `add_widget` has been called.') if self.validation['prepare_plot']: raise WorkflowOrderError('New s...
// Copyright 2016 Esption // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to tho...
//---------------------------------------------------------------------------// // Check that the threshold energy can be returned FRENSIE_UNIT_TEST( MomentPreservingElasticPositronatomicReaction, getThresholdEnergy ) { FRENSIE_CHECK_EQUAL( mp_elastic_reaction->getThresholdEnergy(), 1.000000000...
A Monitoring System for the Safety of Building Structure Based on Semantic Technology The development of the internet of things provides the basis for monitoring systems used in the building structure monitoring area, and this makes it possible to collect data for the safety of different kinds of building structure. A...
def run_data_forecast(self, **kwargs): request = { "processinginstructioninfo": {}, "taskInfo": { "task": { "taskType": 1, "initiatedFrom": 2, "taskFlags": { ...
//////////////////////////////////////////////////////////////////// // Function: EggNameUniquifier::generate_name // Access: Public, Virtual // Description: Generates a new name for the given node when its // existing name clashes with some other node. This // function will be c...
package api import ( "encoding/json" "log" "net/http" ) // Response implements the standard JSON response payload structure. type Response struct { Status string `json:"status"` Error *ResponseError `json:"error,omitempty"` Result json.RawMessage `json:"result,omitempty"` } // ResponseError implemen...
/** * Crea una imagen mediante un vector de estado y la guarda en el directorio * raiz de nuestro proyecto. * * @param EstadoVector //Double[] * @param name //String */ public static void graficarEstado(Double[] EstadoVector, String name) { try { DefaultCategoryDataset ...
/** * Release references held by this object to allow objects to be * garbage-collected. */ private void clear() { setValues(null, null, null, null, null, null, null, null, ...
import React from 'react' import styled from 'styled-components' import Link from 'gatsby-link' import { flexbox, space, layout, compose, variant, position, SpaceProps, LayoutProps, FlexboxProps, } from 'styled-system' import Image from 'gatsby-image' import { colors } from '../../theme/colors' import...
<reponame>seidlr/ipyvuetify from traitlets import Unicode, List, Dict from ipywidgets import DOMWidget from ipywidgets.widgets.widget import widget_serialization class Events(object): def __init__(self, **kwargs): self.on_msg(self._handle_event) self.events = [item[4:] for item in dir(self) if ite...
<reponame>digideskio/kbfs // Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs import ( "fmt" "testing" "github.com/keybase/client/go/libkb" keybase1 "github.com/keybase/client/go/protocol" "github.c...
<filename>safe-indexer-ts/src/ethers/parser/transfers.ts import { ethers } from "ethers"; import { EventDecoder } from "."; import { Event, TransferTx, EtherDetails, TransferDetails } from "../../types"; import { erc20Interface, erc20OldInterface, erc721Interface, etherReceivedTopic, safeInterface, transferTopic, } fro...
// commandUsage display the usage for a specific command. func commandUsage(method interface{}) { usage, err := dcrjson.MethodUsageText(method) if err != nil { fmt.Fprintln(os.Stderr, "Failed to obtain command usage:", err) return } fmt.Fprintln(os.Stderr, "Usage:") fmt.Fprintf(os.Stderr, " %s\n", usage) }
<filename>cmd/syncthing/gui.go package main import ( "bytes" "encoding/base64" "encoding/json" "io/ioutil" "log" "math/rand" "net" "net/http" "runtime" "sync" "time" "code.google.com/p/go.crypto/bcrypt" "github.com/codegangsta/martini" ) type guiError struct { Time time.Time Error string } var ( co...
def calc_cosine_similarity(word): return similarity
The next ‘Adventures in infrastructure design’ webinar is currently being planned and I am very honoured to have had such as good response. We had over 40 live attendees on the last webinar and received a lot of requests for the recording and future topics. The next webinar will cover some of these requests in more d...
WATER QUALITY EVALUATION OF SMALL SCALE DESALINATION PLANTS IN THE GAZA STRIP, PALESTINE The Gaza Strip is a highly populated, small area in which the groundwater is the main water source. During the last few decades, groundwater quality has deteriorated to a limit that the municipal tap water became brackish and unsu...
/** * Validates: a {@link GtfsStop} is within a distance threshold for a trip shape. * * <p>Generated notice: {@link StartAndEndDateOutOfOrderNotice}. */ @GtfsValidator public class StopTooFarFromTripShapeValidator extends FileValidator { @Inject GtfsStopTimeTableContainer stopTimeTable; @Inject GtfsTripTableCo...
/* * API function to set the number to be partitioned */ void partition_function_iterator__init( const int _entire_size) { if (set_array != NULL) { free(set_array); } if (sum_array != NULL) { free(sum_array); } if (_entire_size < 1) { has_next = false; return; } has_next = true; entire_size = _en...
<gh_stars>1-10 #![doc = include_str!("../Readme.md")] use std::borrow::Borrow; use std::cmp::Ordering; use std::fmt::{self, Debug, Display, Formatter}; use std::hash::{Hash, Hasher}; use std::ops::{Deref, DerefMut}; // XXX: REMOVEME: Get rid of these defs in the next breaking revision of abibool. // They're too winap...
def save_token(self, access_token): access_token_id = self.execute(self.create_access_token_query, access_token.client_id, access_token.grant_type, access_token.token, ...
<gh_stars>0 package com.macroyau.thingspeakandroid.demo; import android.content.DialogInterface; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.content.Intent; import android.view.View; import android.widget.Button; import android.wi...
// +build wasm package jspubsub import ( "context" "fmt" "github.com/quorumcontrol/tupelo-go-sdk/gossip/client/pubsubinterfaces" "syscall/js" "github.com/quorumcontrol/tupelo-go-sdk/wasm/helpers" pb "github.com/libp2p/go-libp2p-pubsub/pb" ) type BridgedSubscription struct { pubsubinterfaces.Subscription p...
// this import should be first in order to load some required settings (like globals and reflect-metadata) import { platformNativeScriptDynamic } from "nativescript-angular/platform"; import { AppModule } from "./app/app.module"; import * as app from "tns-core-modules/application"; import * as appSettings from "tns-c...
<gh_stars>0 /* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2019 Google Inc. http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission ...
<reponame>fochoao/cpython<filename>Lib/site-packages/hackedit/app/main_window.py """ This module contains the main window implementation. The main window is a windows with a set of preset objects (tab widget, file system tree view) that is extended by plugins. """ import json import traceback import logging import os ...
Facilitatory role of serotonin (5-HT) in the control of thyrotropin releasing hormone/thyrotropin (TRH/TSH) secretion in rats. In order to investigate the role of serotonin in the regulation of thyrotropin (TSH) secretion, control and propylthiouracil (PTU)-treated male Wistar rats weighing approximately 250 g were su...
def Center(self): if not self.comPort: self.G.printf("EDTracker: can't Center(); " + "no comPort defined") return try: from System.IO.Ports import SerialPort serial = SerialPort(self.comPort, 57600) serial.Open() ser...
def run_val_loop(self, visuals, rnd_seed, all_metrics=False): print("epoch {}: validation loop".format(self.epoch)) torch.manual_seed(rnd_seed) np.random.seed(rnd_seed) torch.cuda.manual_seed(rnd_seed) device = self.device self.model = self.model.eval() disp_frac_...
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse # Create your models here. class PublicadosManager(models.Manager): def get_queryset(self): return super(PublicadosManager, self).\ get_queryset().fil...
def _parseMessage(self, content): if 'ms' not in content: return for m in content['ms']: try: if m['type'] in ['m_messaging', 'messaging']: if m['event'] in ['deliver']: mid = m['message']['mid'] ...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:52:32 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/CarPlaySupport.framework/CarPlaySupport * classdump-dyld is licensed under GPLv3, Copyright © 2013-20...
/** * @author gregperlinli * @Description get times */ public class GetTime { private static final int MIDNIGHT = 0 , NOON = 12, SUNSET = 18, TONIGHT = 20; public static String getMorAftEveNig() { Date date = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("HH"); String str =...
NBC News launched the latest in a series of failed attempts to link Dr. Sebastian Gorka — the philosemitic, pro-Israel deputy foreign policy adviser to President Donald Trump — to the neo-Nazi far-right on Saturday. As with all such previous attempts, NBC found nothing to prove any extremist ideas or views on the part...
def process_contact_mtx(contact_mtx, gappy_idxs_a, constant_idxs_a, gappy_idxs_b, constant_idxs_b): contact_mtx = np.delete(contact_mtx, gappy_idxs_a, axis=0) contact_mtx = np.delete(contact_mtx, constant_idxs_a, axis=0) contact_mtx = np.delete(contact_mtx, gappy_idxs_b, axis=1) ...
<gh_stars>0 package com.liumapp.blog.thread.threadpool.service; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; /** * @author liumapp * @file RejectedExecutionHandlerImpl.java * @email <EMAIL> * @homepage http://www.liumapp.com * @date 4/27/18 */ public clas...
/** * format(packet 0xFE) ch dd [ddddcdcdddc] c - id h - sub id * * d - manor id d - size * [ d - Object id d - crop id d - seed level c d - reward 1 id c d - reward 2 * id d - manor d - buy residual d - buy price d - reward ] * * @author l3x */ public class ExShowSellCropList extends L2GameServerPacket { p...
Like Dracula or Jason Voorhees or any other monster too profitable to stay dead forever, the horror anthology film always rises from the grave. It was probably 1945’s Dead Of Night that first popularized these loose assemblages of campfire tales. In the decades since, the genre has repeatedly come back into vogue: in t...
s=input() n=len(s) flag=0 for i in range(0,n) : x=s[i] j=i while j<=n-1 and x==s[j] : j=j+1 length=j-i if length>=7 : flag=1 break if flag==0 : print("NO") elif flag==1 : print("YES")
<reponame>spacycoder/cosmosdb-go-sdk package cosmos // Coordinate = [lon, lat] type Coordinate [2]float64 type Coordinates []Coordinate type Geometry interface { GeoType() string } // LineString struct defines a line string type LineString struct { Type string `json:"type"` Coordinates Coordinates `j...
// DbInit returns a connection to bhlindex database. func DbInit() (*sql.DB, error) { var db *sql.DB var err error env := EnvVars() params := fmt.Sprintf("postgres://%s@%s/%s?sslmode=disable", env.DbUser, env.DbHost, env.Db) db, err = sql.Open("postgres", params) return db, err }
<gh_stars>0 package main func deleteDuplicates(head *ListNode) *ListNode { if head == nil { return head } var preHead = &ListNode{Next: head} var p, q = preHead, head var toRemove = -101 for q != nil { if q.Val == toRemove { p.Next = q.Next q = p.Next continue } if q.Next == nil { break } ...
/** * Collectors (terminal operations). */ private static void collectorsDemo(Stream<String> s) { }
The chronic wound pain experience: a conceptual model. Chronic wound pain is experienced to a greater or lesser degree with most types of chronic wounds, yet research to date on this subject has been extremely limited. This article presents an empirically and inductively derived model, including a theoretical definiti...
Are these emergency department performance data real? We have recently demonstrated that the distribution of total time spent by patients in emergency departments (EDs) in England shows a peak immediately prior to the current Department of Health target of 4 hours. We aimed to investigate whether this suggested that p...
<gh_stars>0 package com.github.ivan909020.freelancehunt.sdk.objects.entities; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; import com.github.ivan909020.freelancehunt.sdk.objects.models.*; import java.time.LocalDate; import java.time.ZonedDateTime; import ja...
import java.util.*; public class Sol { public static void main (String[] args) { Scanner sc=new Scanner(System.in); int n,m,a,b; double z; n=sc.nextInt(); m=sc.nextInt(); if(n>m || n==m) { z=Math.sqrt(n); a=(int)z; b=n-(a*a); } else { z=Math.s...
/* * * * * * * * * * * * * * * * * * * * * ** ** Copyright 2012 <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 ** ...
//Classe per effettuare il download delle opere public void Download() { Stage secondStage = new Stage(); btdownload.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { for (int i=0;i <list.size();i++) ...
/** * this method checks if the given Url matches the Url of the given Website Entity specified by * username and websiteName */ void checkExpectedDB(String username, String websiteName, String webAddress) { Url expected = getWebsite(username, websiteName, webAddress); assertNotNull(expected); asse...
Lumbar Spinal Stenosis in a Patient With Diffuse Idiopathic Skeletal Hypertrophy Syndrome Lumbar spinal stenosis is associated with a variety of conditions, including dysplastic narrowing of the spine, lumbar spondylosis, Paget's disease, and achondroplastic dwarfism. No case of lumbar stenosis associated with diffuse...
/** * Removes action from this.untrainedActions if present. * @param action (HashSet<Action>) */ public void removeUntrainedAction(Action action){ if(this.untrainedActions.contains(action)){ this.untrainedActions.remove(action); } }
For six months starting in late 2014, web series Whatever, Linda creators Hannah Cheesman and Mackenzie Donaldson chronicled their careers as young, female producers in the ever-shifting film/TV/digital landscape for The Globe and Mail. With their first feature film, The Definites, having premiered at the Cucalorus Fes...
def std(self, p): return self.var(p)**(1/2)
<reponame>nicford/databases-group8 import { Injectable } from '@nestjs/common'; import { Message } from '@group8/api-interfaces'; @Injectable() export class AppService { getData(): Message { return { message: 'Welcome to api!' }; } }
const HTTP_REGEX = "^https?:"; const WS_REGEX = "^wss?:"; function getUrlProtocol(url: string): string | undefined { const matches = url.match(new RegExp(/^\w+:/, "gi")); if (!matches || !matches.length) return; return matches[0]; } function matchRegexProtocol(url: string, regex: string): boolean { const pro...
<reponame>SSSDNSY/go // Copyright 2012 The Go 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 reflect import ( "internal/goarch" "sync" "unsafe" ) // MakeRO returns a copy of v with the read-only flag set. func MakeRO(v ...
TransLink says a one-hour breakdown in service during the Friday afternoon rush hour was caused by commuters leaving the train and walking on the guideway. A TransLink official told CBC News that a car stalled and stopped between the Scott Road and Gateway stations in Surrey shortly after 5 p.m. PT Friday. But within...
<gh_stars>1000+ /* * Copyright 2008-present MongoDB, 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 required by appl...
import { useQuery, useResult } from '@vue/apollo-composable'; import { struct } from 'superstruct'; import * as T from './typings'; export const useReadOne = <C extends T.Cfg, Vo = C['ObC']['Po'], Dto = C['ObC']['Po']>(p: T.UseReadOneP<C, Vo, Dto>): T.UseReadOneR<Vo> => { const { fallback = null, fields, id, rp } =...
<gh_stars>1-10 /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { sortBy } from 'lodash'; type SortField = | 'name' ...
/* * Copyright <NAME> <EMAIL> * * 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...
/// If edns is_none, this will create a new default Edns. pub fn edns_mut(&mut self) -> &mut Edns { if self.edns.is_none() { self.edns = Some(Edns::new()); } self.edns.as_mut().unwrap() }
/** * @author Matthew Stevenson <www.mechio.org> */ public class Activator implements BundleActivator { private static final Logger theLogger = LoggerFactory.getLogger(Activator.class); @Override public void start(BundleContext context) throws Exception { theLogger.info("AnimationControl Activation Begin."); ...
/* * Copyright 2012 JBoss 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 required by applicable law or agreed to ...
/** * Set memory mapping to the default value based on OS properties * * @return this instance */ @NotNull public FileStoreBuilder withDefaultMemoryMapping() { this.memoryMapping = MEMORY_MAPPING_DEFAULT; return this; }
Outside the National Anticorruption Directorate in downtown Bucharest, more than a dozen reporters and cameramen stand around chatting. It’s a weekday afternoon, and they know it’s only a matter of time before the next high-profile Romanian shows up to face charges of corruption. Even a few years ago, Romania's powerf...
import sys import time import struct import statistics from task.helper import get_data from util.util import TcpClient, timestamp def main(): model_name = sys.argv[1] batch_size = int(sys.argv[2]) model_name_list = model_name.split(';') print('List: ' + str(model_name_list)) latenc...
Saturday Night Live has been home to over a hundred cast members throughout the past 38 years. In our column Saturday Night’s Children, we present the history, talent, and best sketches of one SNL cast member every other week for your viewing, learning, and laughing pleasure. Now that Jimmy Fallon has taken over The T...
<reponame>nullcodeexecutor/rural package org.rural.render; import org.rural.ui.Model; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * Created by yuantao on 2014/8/10. */ public interface View { ...
/** * Creates Imagekit CDN URL * @param url - URL which need to be CDNified * @param height - Height of the image * @param width - Width of the image * @returns cdn url of the passed URL */ export function imagekitURL( url: string | undefined | null, height: string | number = '', width: string | number = ''...
American breed of domestic chicken Barred hen Plymouth Rock egg The Plymouth Rock is an American breed of domestic chicken. It was first seen in Massachusetts in the nineteenth century, and for much of the early twentieth century was the most popular chicken breed in the United States. It is a dual-purpose breed, ra...
def process_process_image(img_info): from datetime import datetime import time from image import b64_to_image from image import image_to_b64 logging.info("Starting process for processing {} to user {}" .format(img_info["filename"], img_info["username"])) keys = ["username", "fil...
/* * Copyright © 2018 <NAME>, 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 required by applicable law or agreed to i...
/* ---------- empty prototype function for copy and expand ---------- */ static wchar_t ocr0_XXX(ocr0_shared_t *sdata){ struct box *box1=sdata->box1; pix *bp=sdata->bp; int i,j,d,x,y,i0,i1,i2,i3,hchar=sdata->hchar,gchar=sdata->gchar, x0=box1->x0,x1=box1->x1,y0=box1->y0,y1=box1->y1,cs=sdata->cs; int ...
def _save_plus_one_hub_module_v1(path): def plus_one(): x = tf.compat.v1.placeholder(dtype=tf.float32, name="x") y = x + 1 hub.add_signature(inputs=x, outputs=y) spec = hub.create_module_spec(plus_one) _export_module_spec_with_init_weights(spec, path)
<gh_stars>1-10 import React from 'react' import { useTranslation } from 'react-i18next' import { SceneData, SceneMetadata } from '@xrengine/common/src/interfaces/SceneInterface' import { useAuthState } from '../../../user/services/AuthService' import ConfirmModel from '../../common/ConfirmModel' import TableComponent...
n=int(input()) l=list(input()) z=[] for i in range(n): x,y=map(str,input().split("->")) z.append(x) z.append(y) z1=list(set(z)) z2=[] for i in range(len(z1)): z2.append(z.count(z1[i])) for i in range(len(z2)): if z2[i]%2==1: print("contest") break else: print("hom...
<reponame>rokjoana/kiya<filename>generate.go package kiya import ( "bytes" "crypto/rand" "math/big" ) // default set contains characters that do not required URL encoding // the kiya configuration can override this set per profile. const defaultSecreteCharSet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ...
// New creates a new Client instance func New(httpClient http.Client, baseUrl string) Client { return &client{ httpClient: httpClient, baseUrl: baseUrl, } }
Removing long-term errors from the AVHRR observation based on Normalized Difference Vegetation Index (NDVI) This paper investigates Normalized Difference Vegetation Index (NDVI) stability in the NOAA/NESDIS Global Vegetation Index (GVI) data during 1982-2003. Advanced Very High Resolution Radiometer (AVHRR) weekly dat...