content
stringlengths
10
4.9M
<filename>tests/test_kmeans_clustering.py from unittest import mock from pathlib import Path import os import numpy as np import pytest from geojson import FeatureCollection, Feature import rasterio as rio from fake_geo_images.fakegeoimages import FakeGeoImage from blockutils.common import ensure_data_directories_ex...
// Close stops the worker. Must be called once. func (r *reacher) Close() error { close(r.quit) r.wg.Wait() return nil }
Cosmological SUSY Breaking and the Pyramid Schemes I review the ideas of holographic space-time (HST), Cosmological SUSY breaking (CSB), and the Pyramid Schemes, which are the only known models of Tera-scale physics consistent with CSB, current particle data, and gauge coupling unification. There is considerable uncer...
'use strict' import { Vec2 } from '../../node_modules/natlib/Vec2.js' import { FAILURE_MOVED_PICTURE } from '../Background.js' import { Level, LevelState } from '../Level.js' import { MovingWebsite } from '../MovingWebsite.js' export class Moving extends Level { constructor(startingPoint: Vec2, curtain = 0) { ...
def send_new_user_email(request, user): new_user_form = PasswordResetForm({"email": user.email}) try: if new_user_form.is_valid(): new_user_form.save(**{ "use_https": True, "email_template_name": "joplin_UI/email/new_user.txt", "html_email_te...
days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] ds = ['saturday', 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday',] f = raw_input() s = raw_input() fday = ds.index(f) sday = ds.index(s) found = False for month in xrange(1, 12): pos = fday for d in xrange(days[month]): pos += 1 ...
/** * Checks online for updates. Blocking method. * * @param plugin * Plugin to check for. * @return The update result. * @throws IOException * If an IO error occurs. */ public UpdateCheckResult checkForUpdatesSync(Plugin plugin) throws IOException { ...
<reponame>tgrogers/accel-sim-framework<filename>gpu-simulator/gpgpu-sim/src/stream_manager.cc<gh_stars>0 // Copyright (c) 2009-2011, <NAME>, <NAME> // The University of British Columbia // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provid...
/** * Contains all the debugging flags. * * @author Maxime PIA */ public class DebuggingFlags implements ValueClass { // _global private static final String LINE_LIST_HEX_INPUT_CHAR = "g"; // input after _hexadecimal replacements private static final String LINE_LIST_HEX_AFTER_HEX_REPL_CHAR = "h"; // _transit...
// Logging is only available on storage accounts func TestSetLogging(t *testing.T) { service, delete := initServiceTest(t, "storage") defer delete() getResp, err := service.GetProperties(ctx, nil) require.NoError(t, err) getResp.Logging = &Logging{ Read: to.Ptr(true), Write: to.Ptr(true), Delete: to.Pt...
/** * Transform a List of {@link PostEntity} into a Collection of {@link User}. * * @param postEntityCollection Object Collection to be transformed. * @return {@link User} if valid {@link PostEntity} otherwise null. */ public List<Post> transform(Collection<PostEntity> postEntityCollection) { ...
Hiding in plain sight Caption (bioherms_BlighReef.jpg): North-westerly view of the Bligh Reef area off Cape York. Depths are coloured red (shallow) to blue (deep), over a depth range of about 50 metres. Bathymetry data from Australian Hydrographic Service. James Cook University, University of Sydney and Queensland Un...
Effects of estrogen and tibolone on bladder histology and estrogen receptors in rats. BACKGROUND Estrogen deficiency causes atrophic changes within the urogenital tract, and is associated with urinary symptoms. The purpose of this study was to investigate the effects of estrogen and tibolone on bladder histology, and ...
def _simple_po_to_dict(tokens): dsl = FUNC_TO_DSL.get(tokens[FUNCTION]) if dsl is None: raise ValueError('invalid tokens: {}'.format(tokens)) return dsl( namespace=tokens[NAMESPACE], name=tokens[NAME], )
package properties; import java.util.List; import bookings.User; public class Property { private PropertyKind type; private Address address; private List<Service> services; private Integer capacity; private User owner; public Property(PropertyKind type, Address address, List<Service> services,...
def profile_ap_sku(x): if bool(re.search("C91..AX", x)): type_1 = "Access Point" type_2 = 'AX' if bool(re.search("(.*DNA)|(.*ADJ)", x)): type_1 = "N/A" type_2 = 'N/A' class_type = 'N/A' elif bool(re.search("C91[01].AX[IEW]", x)): class_...
<filename>app/src/main/java/GeneralCode/AdvanceFragment.java package GeneralCode; import android.app.Fragment; import android.app.FragmentManager; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import...
<reponame>usenixatc2021/SoftRefresh_Scheduling #ifndef _ASM_ARM_MEMBLOCK_H #define _ASM_ARM_MEMBLOCK_H struct meminfo; struct machine_desc; extern void arm_memblock_init(struct meminfo *, struct machine_desc *); phys_addr_t arm_memblock_steal(phys_addr_t size, phys_addr_t align); #endif
In a move that has me scratching my head, the California legislators have seen fit to pass a law that requires smartphones to have a remote kill switch built into them. Don’t worry for the time being as this only affects smartphones sold after July 1, 2015. Still, it leaves one wondering, what are they thinking? Whil...
<reponame>maybe-dragon/arma3-texture-swap #include "dialog_parent_configs.hpp" // Grid Macros #define GUI_GRID_X (0) #define GUI_GRID_Y (0) #define GUI_GRID_W (0.025) #define GUI_GRID_H (0.04) #define GUI_GRID_WAbs (1) #define GUI_GRID_HAbs (1) // Control ids #define IDC_F85_TEXTURESWAP_RSCLISTBOX_TEXTURES 1500 #defi...
Bob Barker says the price is too high for CBS’ Zoo. The former The Price Is Right host and longtime animal activist sent CBS Television Studios a letter Thursday asking that the production cease using live animals in its animals-run-amuck thriller, and instead create the creatures with CGI. “As former host of the lon...
Noise Performance of Niobium Nano-SQUIDs in Applied Magnetic Fields We have fabricated two different designs of niobium dc nano-SQUIDs using focussed ion beam (FIB) lithography with loops and track widths down to 70 nm. We report on the voltage-flux and noise performance of the devices in zero field and with magnetic ...
#ifndef UTIL_H #define UTIL_H #define DTYPE float #define ITYPE size_t // if chnage to unsigned int change the grid.x and gID in cuda kernel computation to long #include <vector> #include <algorithm> #include <boost/sort/sort.hpp> #include <iterator> #include <unordered_map> #include <map> #include <boost/functional/...
Visa of 25-year-old has been cancelled after conviction on three charges of attempting to enter a foreign state to engage in hostile activities in 2013 Melbourne man Amin Mohamed found guilty of seeking to fight in Syria A Melbourne man who claimed he was travelling to Turkey to meet his fiancee has been found guilty...
#ifndef UNITTEST_COMMON_HPP #define UNITTEST_COMMON_HPP #include <gtest/gtest.h> #include "sbovector.hpp" #include <memory> #include <mutex> #include <vector> constexpr size_t SMALL_SIZE = 5; constexpr size_t LARGE_SIZE = 100; constexpr size_t SBO_SIZE = 16; static_assert(SMALL_SIZE < SBO_SIZE); static_assert(SBO_...
Somewhat recently Google came out with a cool new search feature that lets you start a timer via a search. I really liked this workflow since it let me really quickly set up a timer from the browser by using the chrome “tab to search” functionality. I’d just open a new tab, type in “google.com”, hit tab, type “x minute...
<gh_stars>1-10 #pragma once #include <Arduino.h> class AuthProvider { public: // Returns true if authentication is currently enabled virtual bool isAuthenticationEnabled() const { return false; } virtual const String& getUsername() const; virtual const String& getPassword() const; }; class SimpleAuthProvide...
<reponame>appleskiller/neuron<filename>src/components/color/pallete.ts<gh_stars>0 import { IEmitter } from 'neurons-emitter'; import { Property, Binding, Emitter, Element } from '../../binding/factory/decorator'; import { SvgIcon } from '../icon/svgicon'; import { checkbox_uncheck, checkbox_check } from '../icon/icons...
def do_conversion(list_of_commands, max_concurrent_jobs): pool = mp.Pool(processes=max_concurrent_jobs) try: l_pids = pool.imap(do_execute_conversion_call, list_of_commands, chunksize=1) except KeyboardInterrupt: sys.stdout.write('\033[0m') sys.stdout.write('user interrupt\n') po...
The Tapajós River – in the heart of the Amazon – is home to thousands of people and incomparable biodiversity. But all that could change if a proposed mega-dam project moves forward. At the moment you’re reading this, the Tapajós River is flowing unimpeded through rainforest deep in the Brazilian Amazon. Its waters te...
// tests/main.cpp: create an executable file to run unit tests of everything in // PETT. This uses Catch2 (NOT the old pre-C++11 Catch!) to provide a main() // function but all the actual tests are in other files. #define CATCH_CONFIG_MAIN #include "Catch2/catch.hpp"
/** * Adds am attribute to set (first creating empty set if not already present) * @param ac */ public void addAttributeClass(OWLClass ac) { if (attributeClassSet == null) attributeClassSet = new HashSet<OWLClass>(); this.attributeClassSet.add(ac); }
/** * A client of the system providing Scroll Capture capability on behalf of a Window. * <p> * An instance is created to wrap the selected {@link ScrollCaptureCallback}. * * @hide */ public class ScrollCaptureClient extends IScrollCaptureClient.Stub { private static final String TAG = "ScrollCaptureClient";...
// newConn make a conn to logstash(monitor data receiver) func (fm *FlowMonitor) newConn() error { conn, err := net.DialTimeout("tcp", fm.conf.Addr, time.Duration(time.Second*5)) if err == nil && conn != nil { fm.conn = conn fm.flowMonitorThrottle = false log.Info("init flow monitor conn to: %s", fm.conf.Addr) ...
def do_inc(self, val): self.set_half_carry_flag((val & 0x0F) == 0x0F) val += 1 self.set_zero_flag(val == 0) self.set_subtract_flag(False) return val
/** * Read the file content * from the {@link LevelReader#CONTENT_FILES} file * relying the declared tiles */ static @NotNull LevelReaderResult readContent( @NotNull Path levelDirectory, @NotNull Map<Character, Integer> tiles ) throws IOException { Path elementsFile = getFile(levelDirector...
A NOVEL DECODING ALGORITHM FOR REVERSIBLE VARIABLE LENGTH CODES BASED ON THE MASSEY METRIC The use of Variable Length Codes (VLC) to increase the coding efficiency based on the statistical characteristics of the data has long been employed in digital communication systems. However the catastrophic degradation of VLC e...
/* tslint:disable */ /* eslint-disable */ /** * Rosetta * Build Once. Integrate Your Blockchain Everywhere. * * The version of the OpenAPI document: 1.4.10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class ma...
ZORKMID TYPES OF KNOWN CURRENCY TYPE YEAR PORTRAIT DESCRIPTION IMAGE 1zm copper coin 699 Belwit the Flat The coin bears the likeness of Belwit the Flat, along with the inscriptions, "One Zorkmid," and "699 GUE." On the other side, the coin depicts Egreth Castle, and says "In Frobs We Trust" inseveral languages. front ...
package session import ( "bytes" "context" "crypto/rand" "encoding/binary" "errors" "github.com/walkline/ToCloud9/apps/authserver/service" "io" "io/ioutil" "net" "os" "time" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/walkline/ToCloud9/apps/authserver/crypto/srp6" "github.com/walkl...
‘One Person Company’ Under the Companies Act, 2013 — Journey From ‘Minimum Two Person’to’only One Person’: A Critical Reappraisal The One Person Company (hereinafter referred to as ‘OPC’) is of recent origin in the Indian legal system which is quite similar to the sole proprietary form of business. The notion of OPC i...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Path Planning Sample Code with RRT* author: AtsushiSakai(@Atsushi_twi) with edits of <NAME>(@MaxMagazin) """ import random import math import copy import numpy as np import matplotlib.pyplot as plt import time import sys, select, termios, tty class RRT(): def ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
<reponame>ankuralld5999/LeetCode-Problems // Problem: https://leetcode.com/problems/flatten-binary-tree-to-linked-list // Author: github.com/ankuralld5999 // Time: O(N) // Space: O(logN) class Solution { private: TreeNode* helper(TreeNode *root) { if (!root) return NULL; auto leftEnd = helper(root->left), rig...
Prevention of perinatal transmission of hepatitis B Virus (HB V): A comparison of two prophylactic schedules Perinatal transmission of hepatitis B virus (HBV) from HBsAg carrier mothers who were HBeAg+, antiHBe+, or negative for both HBe markers, was interrupted using either 4 doses of vaccine, or one dose of hepatiti...
// ValidChecksum checks whether the given checksum corresponds to the given address. func ValidChecksum(address Hash, checksum Trytes) error { actualChecksum, err := Checksum(address) if err != nil { return err } if checksum != actualChecksum { return ErrInvalidChecksum } return nil }
def _ignore_line(match_obj): nonlocal ignored ignored.append(match_obj.group(0)) nonlocal count old_count = count count += 1 return LABEL_PREFIX + str(old_count) + LABEL_SUFFIX
<gh_stars>100-1000 // // SDLOnSystemCapabilityUpdated.h // SmartDeviceLink // // Created by Nicole on 2/6/19. // Copyright © 2019 smartdevicelink. All rights reserved. // #import "SDLRPCNotification.h" @class SDLSystemCapability; NS_ASSUME_NONNULL_BEGIN /** * A notification to inform the connected device that...
/** * An isolated V8Runtime. All JavaScript execution must exist * on a single runtime, and data is not shared between runtimes. * A runtime must be created and released when finished. * * All access to a runtime must come from the same thread, unless * the thread explicitly gives up control using the V8Locker. ...
package org.usfirst.frc190.CurrentRobotProject; //This is an "enum-type" class that allows you specify how the robot should move in order to collect the ball. //Values 0-9 are resevered for passing control commands to the Arduino. //Values 10-40 are reserved for pressure sensing. (Value is 10 = No lights, Value is 4...
Op-Ed by Michael Snyder A shocking new survey has found that support for capitalism is dying in America. In fact, more than half of all adults in the United States under the age of 30 say that they do not support capitalism at this point. You might be tempted to dismiss them as “foolish young people”, but the truth is...
def test_tokens(): from easypy.tokens import AUTO, if_auto, MAX def foo(p=AUTO): return if_auto(p, 100) assert foo() == 100 assert foo(5) == 5 assert foo(MAX) == MAX assert MAX == "MAX" assert MAX == "<MAX>" assert MAX == "max" assert MAX == "<max>" d = {AUTO: AUTO, M...
// Init registers the prometheus metrics for the measurement of the exporter itsself. func Init() { prometheus.MustRegister(FunctionDurations) prometheus.MustRegister(FunctionCountTotal) }
// GetLocalAddrList returns a list of local IP addresses func GetLocalAddrList() ([]string, error) { var addrList []string intfList, err := net.Interfaces() if err != nil { return addrList, err } log.Debugf("Got address list(%d): %+v", len(intfList), intfList) for _, intf := range intfList { if strings.HasPre...
// Copyright 2018. All rights reserved. // This file is part of go2cache project // Created by duguying on 2018/5/17. package go2cache import ( "testing" "time" ) func TestBroadcast(t *testing.T) { go dial([]string{"127.0.0.1:9981", "192.168.2.227:60000"}) go listen("127.0.0.1:9981") time.Sleep(time.Second *...
// children returns all child nodes of this node, which are string|*jNode. Optionally it either starts at offset 1 or 2 func children(n *jNode) []interface{} { res := make([]interface{}, 0) for i := 1; i < len(*n); i++ { if _, isAttr := ((*n)[i]).(map[string]interface{}); isAttr { continue } child := cast((*...
package me.mervin.project.asRank.extract; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.RandomAccessFile; import java.util.HashSet; import java.util.Set; import me.mervin.ut...
def list_to_zip_range(data: List[Any]) -> List[Tuple[Any, Any]]: zip_res = zip(data[:-1], data[1:]) result = [rearrange_pair(pair) for pair in zip_res if pair[0] != pair[1]] return result
Image copyright Unicef/Romenzi Image caption This child was one of many who fled fighting near Mosul, Iraq, in 2017 The UN children's fund says the scale of attacks on children in the world's conflict zones reached "shocking" levels in 2017. In a new report, Unicef said there was widespread and blatant disregard for ...
<gh_stars>100-1000 static char sccsid[] = "@(#)docomm.c 4.2 08/17/82"; #include <signal.h> #include "head.h" #include <a.out.h> #include <stab.h> struct user u; L_INT cntval; INT signo; INT adrflg; INT pid; ADDR userpc; char *s; enum {NOCOM, PRCOM, DSCOM, DSICOM} lastcom; /* last command: nothing noteworthy, print ...
def is_string_nan(x, specific_nan_strings=[]): if isinstance(x, str): if (('other' in x.lower() and len(x) < 9) or ('null' in x.lower() and len(x) < 7) or (x.lower() == 'nan') or ('discrepancy' in x.lower() and len(x) < 14) or all([char == ' ' for char in x]) ...
package starportcmd import ( "fmt" "io" "os" "github.com/spf13/cobra" "github.com/tendermint/starport/starport/pkg/entrywriter" "github.com/tendermint/starport/starport/services/network/networktypes" ) var LaunchSummaryHeader = []string{"launch ID", "chain ID", "source", "campaign ID", "network", "reward"} /...
// Bool returns a pointer to a bool holding the value of ts. If ts is None then // Bool returns nil. func (ts *TriState) Bool() *bool { var b bool switch *ts { case None: return nil case False: b = false case True: b = true } return &b }
Environmental and biological controls on Na∕Ca ratios in scleractinian cold-water corals Abstract. Here we present a comprehensive attempt to correlate aragonitic Na∕Ca ratios from Desmophyllum pertusum (formerly known as Lophelia pertusa), Madrepora oculata and a caryophylliid cold-water coral (CWC) species with diff...
/** * \cond * Returns the name of the header in prefixed upper case form at the index * provided, or NULL if the index is not valid. * @param dataSet pointer to an initialised dataset * @param httpHeaderIndex index of the HTTP header name required * @returns name of the header, or NULL if index not valid * \endc...
package main import ( "log" //"syscall/js" "github.com/vugu/vugu" "github.com/vugu/vugu/js" ) func (c *Root) ExecFromGo(e vugu.DOMEvent) { log.Printf("In ExecFromGo...\n") //j := js.Global().Call("jQuery", "#jquery-test-label") j := js.Global().Get("jQuery").New("#jquery-test-label") grey := "#cccccc" //j...
#!/usr/bin/env python3 ''' Model for Riemannian feature calculation and classification for EEG data ''' import numpy as np import time, sys from sklearn.svm import LinearSVC, SVC from sklearn.model_selection import KFold from sklearn.model_selection import train_test_split from sklearn import metrics import sklear...
def find_constriction_template(self, similarity_table, constriction_in_reference): gn = self.gn parse = GPCRDBParsingPDB() for structure, value in similarity_table.items(): this_anomaly = ProteinAnomaly.objects.filter(generic_number__label=gn) anomaly_list = structure.pro...
def data_gen(voc_size, batch, nbatches, seq_len = 15): for i in range(nbatches): data = torch.from_numpy( np.random.randint(1, voc_size, size=(batch, seq_len))) data[:, 0] = 1 src = Variable(data, requires_grad=False) tgt = Variable(data, requires_grad=False) yi...
<gh_stars>10-100 /* * SPDX-License-Identifier: BSD-3-Clause * * Copyright 2019-2021, <NAME> <<EMAIL>> */ #include <getopt.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "parse.h" #include "utils.h" static const struct option opts[] = { {"lines", required_argument, NU...
package com.revolsys.gis.parallel; import org.springframework.core.convert.converter.Converter; import com.revolsys.parallel.channel.Channel; import com.revolsys.parallel.process.BaseInOutProcess; import com.revolsys.record.Record; public class ConverterProcess extends BaseInOutProcess<Record, Record> { private C...
/** * Class ConsoleClientMonitor * * @author Paul Hammant * @version * $Revision: 1.2 $ */ public class ConsoleClientMonitor implements ClientMonitor { private final ClientMonitor delegate; public ConsoleClientMonitor(ClientMonitor delegate) { this.delegate = delegate; } public ConsoleCl...
// Access tltodollar endpoint in ConverOperation module @GetMapping("/Endpoint") public String convertOperation() { String result = restTemplate.getForObject(convertEndPoint,String.class); return result; }
package graphor import ( "github.com/nosukeru/graphor/auth" "github.com/nosukeru/graphor/database" ) var __graphor graphorInterface func InitializeGraphor() error { var err error __graphor, err = newGraphor() return err } func Auth() auth.Auth { return __graphor.Auth() } func db() database.Database { return...
/** * Our main representable analog. Instances of this class deliver the set of identity morphisms, or * deliver sets of compositions of morphisms representing new group homomorphisms as functors. More plainly, an array of iterators is returned representing the * N return tuple '?' elements of the query. If its an i...
for _ in range (int(input())): n,m=map(int,input().split()) arr=[] for i in range(n): a,b=map(int,input().split()) c,d=map(int,input().split()) arr.append((a,b,c,d)) if(m%2==1):print("NO") else: b,x=0,1 for i in range(n): if(arr[i][1]==a...
// Get gets execStat for a executor. func (e *RuntimeStatsColl) Get(planID string) *RuntimeStats { e.mu.Lock() defer e.mu.Unlock() runtimeStats, exists := e.stats[planID] if !exists { runtimeStats = &RuntimeStats{} e.stats[planID] = runtimeStats } return runtimeStats }
package com.cambrian.common.constant; /** * @author kuma 2021-01-03 */ public class AuthServerConstants { public static final String SERVICE_CODE = "auth"; public static final class CacheKey { private CacheKey() { throw new UnsupportedOperationException("Until class"); } ...
/** * A local SOCKS5 server which runs as a singleton on the local machine on port 1080 (default SOCKS port). * * @author Christian Schudt */ final class LocalSocks5Server { private static final Logger logger = Logger.getLogger(LocalSocks5Server.class.getName()); final Collection<String> allowedAd...
/** * Sample for given number of iterations * @param numIters Number of iterations * @throws IOException IOException */ public void sample(int numIters) throws IOException { for (int iteration=1; iteration<=numIters; iteration++) { for (int lang=0; lang<param.numLangs; lang++) { for (int doc=0; d...
<gh_stars>0 import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import legacy from '@vitejs/plugin-legacy' import { resolve } from 'path' // https://vitejs.dev/config/ export default defineConfig({ // 要用到的插件数组 plugins: [ vue(), legacy({ targets: ['defaults', 'not IE 11'] }) ...
def save(self): settings_before = get_all_data() settings.update() settings.hide() settings_after = get_all_data() if ( settings_before[Settings.PC] != settings_after[Settings.PC] or settings_before[Settings.ENCRYPTION] != settings_after[Settings.E...
def create_hcp_positions(l): r = 0.5 row_height_shift = r * np.sqrt(3) plane_height_shift = np.sqrt(6) * r * 2.0 / 3.0 n_row = int(np.floor(l)) row0 = np.array([np.arange(n_row), np.zeros(n_row), np.zeros(n_row)]).T plane0 = np.array([row0 + np.array([r if i%2==1 else 0, i*row_height_shift, 0]) ...
/// Commit all created properties. /// /// This will also clear the property buffer. pub fn commit_all(&mut self) -> Result<(), StateErr> { for (key, space) in self.properties.drain() { Self::commit_pair(self.store_fn, self.handle, key, space)?; } Ok(()) }
def match(self, charge): for expr in self.exprs: if expr.match(charge): return True return False
/****************************************************************************** * Function name : InitialiseLCD * Description : Initializes the LCD display. * Arguments : none * Return Value : none ******************************************************************************/ void InitialiseLCD(void) { ...
/* * ProcWaitForSignal - wait for a signal from another backend. * * As this uses the generic process latch the caller has to be robust against * unrelated wakeups: Always check that the desired state has occurred, and * wait again if not. */ void ProcWaitForSignal(void) { WaitLatch(MyLatch, WL_LATCH_SET, 0); R...
<reponame>mytimes/magic-api<filename>magic-api-spring-boot-starter/src/main/java/org/ssssssss/magicapi/spring/boot/starter/ResponseCodeConfig.java package org.ssssssss.magicapi.spring.boot.starter; /** * json结果code配置 * @since 1.1.2 */ public class ResponseCodeConfig { /** * 执行成功的code值 */ private int success ...
t=int(input()) for i in range(t): a=int(input()) b=input() if "8" not in b: print("NO") else: c=b.index("8") d=len(b)-c if d>=11: print("YES") d=0 else: print("NO") d=0
We all know San Diego Comic-Con is more than just comics. Yet despite all the great panels and events that happen throughout the convention, nothing gets quite the attention than a big Hollywood reveal on the stage of the Convention Center’s Hall H. Tom Hiddleston as Loki? Warner Bros. taking the wraps off of Godzilla ...
April 5, 2015; Sacramento, CA, USA; Utah Jazz forward Gordon Hayward (20) looks on during the first quarter against the Sacramento Kings at Sleep Train Arena. Mandatory Credit: Kyle Terada-USA TODAY Sports I need to make a confession–I’m a hardcore gamer. As much as I love the Utah Jazz and NBA basketball, I derive an...
/////////////////////////////////////////////////////////////////////////////// // Interface ITcPostCyclic: Cyclic execution (post output update) /////////////////////////////////////////////////////////////////////////////// HRESULT CWaveSimulatorNew::PostCyclicUpdate(ITcTask* ipTask, ITcUnknown* ipCaller, ULONG_PTR c...
// Copyright 2019 ETH Zurich, Anapaya Systems // // 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...
// FileServerHandler implements the actual fileserver logic. zipfs can be set to nil if no pre-zipped file have been prepared. func FileServerHandler(fs fs.FS, zipfs fs.FS, fallbackFilepath string, config *Config) http.Handler { fallbackFetcher := fallbackFetch(fallbackFilepath, fetchWrapperZipOrNot(config.GzipFileE...
/** * Network utility class. */ public abstract class NetworkUtils { /** * Decides if low-resolution ("sample") images should be fetched by default instead of full-size images, based on: * - Screen density * - Network link speed and quality * - Is the network metered? ($$$ per MB) * * @return tru...
<gh_stars>1-10 from AthenaPython import PyAthena from AthenaCommon.Logging import logging from AthenaCommon.AlgSequence import AlgSequence class A4DumperAlg( A4Dumper__A4DumperAlg ): def __init__( self, name, seq = topSequence, **kwargs ): self.__log...
<filename>kamu-core/src/infra/verification_service_impl.rs // Copyright <NAME>, Inc. and contributors. All rights reserved. // // Use of this software is governed by the Business Source License // included in the LICENSE file. // // As of the Change Date specified in that file, in accordance with // the Business Source...
“We’re not sure of who we are yet and we’re still trying to figure it out, so this was a really big point for us on the road.” (4-3-3, 15 points) vs.(3-3-3, 12 points)Saturday, June 6, 20151 p.m. ET, Highmark StadiumIn the first ever USL match in St. Louis on April 12 at World Wide Technology Park, the Riverhounds bat...
/* * Copyright (c) 2016 Inria and University Pierre and <NAME> * All rights reserved. */ #include <cstdlib> #include <cstdio> #include <iostream> #include <mm_malloc.h> #ifdef EXBLAS_MPI #include <mpi.h> #endif // exblas #include "blas1.hpp" #include "common.hpp" #ifdef EXBLAS_VS_MPFR #include <cstddef> #...
import '@logseq/libs' import * as AnkiConnect from './anki-connect/AnkiConnect'; import { LazyAnkiNoteManager } from './anki-connect/LazyAnkiNoteManager'; import { template_front, template_back, template_files } from './templates/AnkiCardTemplates'; import { Note } from './notes/Note'; import { ClozeNote } from './note...