content
stringlengths
10
4.9M
/* * Copyright 2006 <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 writ...
def _reference_elems_in_nodes(self): model = self.model for ni, elems in self._node_elems.items(): model.nodes[ni].in_elements = elems
<filename>weather/services/weather.py from typing import Dict, Any import aiohttp _KEY: str = "" def global_init(api_key: str) -> None: """Initializes a service.""" global _KEY _KEY = api_key if not _KEY: print("Warning: No weather API key.") print( "If you want the weath...
def ignore(self): if self._ignore is None: self._ignore = self._sync_client._get_ingore( self.gid, self.nid, self.path) return self._ignore
import { NucleoPrimitiveType } from './../_types/NucleoPrimitiveType'; type UserFormatValidation<T> = (arg: T) => boolean; export class NucleoCustomPrimitive<T> { Type: string; userFormatValidation: UserFormatValidation<T>; nativeType: string; serialize(value: T):boolean { if (typeof value !== 'boolean' ...
He's cute, fun, smart and you can't stop thinking about him. You're already three steps ahead of the game, mentally planning weddings, children and that giant house with the white picket fence. Finally, after all these years, the perfect relationship has finally been found. Happily ever after sure feels good, huh? Not...
// KnownPackages returns a list of all known packages // in the package graph that could potentially be imported // by the given file. func KnownPackages(ctx context.Context, snapshot Snapshot, fh VersionedFileHandle) ([]string, error) { pkg, pgf, err := GetParsedFile(ctx, snapshot, fh, NarrowestPackage) if err != ni...
<filename>rest/webhooks/edit_message.go package webhooks import ( "fmt" "github.com/gompus/gompus/models/channel" "github.com/gompus/gompus/models/channel/embed" "github.com/gompus/gompus/models/channel/mentions" "github.com/gompus/gompus/models/channel/message" "github.com/gompus/gompus/rest/client" "github.co...
def default_setup(output_dir, project_name, args): if comm.is_main_process() and output_dir: PathManager.mkdirs(output_dir) rank = comm.get_rank() setup_logger(output_dir, distributed_rank=rank, name=project_name) setup_logger(output_dir, distributed_rank=rank, name="dlengine") logger = logg...
/** * Deletes a set of remote repositories. The service returns a collection of exception, so that a non * <code>null</code> entry indicates a issue during the deletion of the corresponding repository in the * input * * @param remoteRepositories * @return */ @STServiceOperation(method = RequestMet...
We have discussed several different ways in which bitcoin creates an intrinsic value for itself. We also have discussed the absolute value that cryptography offers, and how States conjure up fiat money through legal violence via valor impositus, rather than creating money with real bonitas intrinseca value of metals th...
/** * Created by luba on 10/3/17. */ public class LoginActivity extends OAuthLoginActionBarActivity<TwitterClient> { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); } // Inflate the menu; th...
<filename>modules/web/src/com/haulmont/charts/web/gui/ChartLocaleHelper.java<gh_stars>1-10 /* * Copyright (c) 2008-2019 Haulmont. * * 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 * * ...
Yes, it has long been established that foreign-born players can thrive here, in an N.B.A. of opulence and opportunity. But what about European-trained coaches? We checked in with Maurizio Gherardini, a longtime Italian league general manager who worked in the Toronto Raptors’ front office as an assistant general manage...
Share Want to know why we can’t have nice things? Because apparently, the public — or at least parts of New York — is not to be trusted. Eight months after the appearance of the first LinkNYC hubs, which are — or were — internet kiosks meant to help bring the Big Apple into the 21st century, the city has taken a step...
ECMA Harmony and the Future of JavaScript Posted in: javascript New stuff I liked about the language Object . defineProperty ( obj , "length" , { get : function () { return this . computeLength (); }, set : function ( value ) { this . changeLength ( value ); } }); Object . defineProperty ( Array . prototype , "inje...
def scores_for_groups(self, group_ids, channels, flatten=True): waveforms = [self.waveforms_for_group(g, channels) for g in group_ids] lengths = np.hstack([np.ones(w.shape[0])*g for g, w in zip(group_ids, waveforms)]) return self...
<reponame>chrisjob1021/GoCodingChallenges // Longest Palindromic Subsequence // Dynamic Programming // // Time complexity: O(n2) // Space complexity: O(n2) // // References: // https://leetcode.com/problems/longest-palindromic-subsequence/description/ // https://github.com/mission-peace/interview/blob/master/src/com/in...
/** * Returns the sum of all rates leaving to successor states. * * @return sum of all rates leaving to successor states */ double sumRates() { if (null == succRates) { return 0.0; } double sumRates = 0.0; for (int rateNr = 0; rateNr < succRates.length; rateNr++) { sumRates += succRat...
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod<filename>tools-src/gnu/gcc/libjava/java/security/interfaces/DSAKeyPairGenerator.java /* DSAKeyPairGenerator.java -- Initialize a DSA key generator Copyright (C) 1998 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; y...
<reponame>VRToxin-AOSP/android_external_v8 // Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_EXPRESSION_TYPE_COLLECTOR_H_ #define V8_EXPRESSION_TYPE_COLLECTOR_H_ #include "src/ast/ast-expres...
/** * Transfer events from the primary event storage to the working area */ private void fill() { double current = this.highmark; if (!primary.isEmpty()) { if (this.working.size() > Simulator.MAX_BUFFER) { ...
def send_check_success(self, msg_dct): self.log.debug('_send_check_success') response = self.send_json(msg_dct) if response.get('status', '') == 'success': return True return False
/** * Vigenere Cipher is a method of encrypting alphabetic text. It uses a simple form of polyalphabetic * substitution. A polyalphabetic cipher is any cipher based on substitution, using multiple * substitution alphabets .The encryption of the original text is done using the Vigenère square or * Vigenère table. ...
/** * Tests checking a connector's name for usage by another. */ @Test @DisplayName("Tests checking a connector's name for usage by another.") @SneakyThrows(Exception.class) void testCheckConnectorName() { mockMvc.perform(get("/api/connector/check/" + Base64.getEncoder().encodeToString("co...
j=raw_input() j=list(j.split()) j=map(int,j) count=0 n,m,a,b=j[0],j[1],j[2],j[3] if ((n/m)*b)<=((n/m)*m)*a: count+=(n/m)*b p=((n%m)*a) if b<=p: count+=b else:count+=p print count else: print n*a
<reponame>RogerioY/starshatter-open /* Starshatter OpenSource Distribution Copyright (c) 1997-2004, Destroyer Studios LLC. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistri...
Waste treatment plant. Image: Flickr user h080 Never really known as a friendly group, the Italian mafia has been brutally murdering people for hundreds of years. Most of the time, these killings are quick—some henchmen waylay the target, squeeze a trigger a few times and make their getaway. Yet according to a new rep...
WASHINGTON, D.C. -- Green Party leaders and candidates said today that Greens are firmly on the side of sanctuary cities that are defying President Trump's immigration crackdown. The Green Party has called for a halt to raids by Immigration and Customs Enforcement (ICE) targeting undocumented immigrants. Green Party ...
if __name__ == '__main__': a = [int(e) for e in input().split(' ')] s = 17 for e in a: if e in [5, 7]: s = s - e r = 'YES' if s == 0 else 'NO' print(r)
Apple may begin encrypting data backed up to its iCloud storage service sooner than anticipated. In a beta version of iOS 9.3, the iPhone maker has modified the restore process. Now, some users are prompted to enter the passcode for the iPhone or other Apple device that created the iCloud backup, according to a setup s...
<reponame>PabloDelgadoC/DAW_Proyect<gh_stars>0 from django.db import models ##USE ABOUT MD5 TO ENCRYPT PASSOWRD EXAMPLE #from django.db.models.functions import MD5 #Author.objects.create(name='<NAME>') #author = Author.objects.annotate(name_md5=MD5('name')).get() #print(author.name_md5) #NOTA: SI SE USA ESTO, SE DEBE ...
def _examples_to_batch(self, data: Dict[ColumnName, OneorMore[ArrayLike]]) -> ProcessedBatch: in_data = {} tgt_data = {} for k, batch in data.items(): fld = self.dataset.fields[k] if isinstance(fld, (tuple, list)): for f, v in zip(fld, batch): ...
/* Copyright 2002, Red Hat Inc. */ #include <mqueue.h> #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/ipc.h> #include <sys/sem.h> #include <string.h> #include <stdlib.h> #include <machine/weakalias.h> #define _LIBC 1 #include <sys/lock.h> #undef _LIBC #include "mqlocal...
<filename>components/treegrid/src/treegrid/aggregates-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AggregateRowModel } from '@syncfusion/ej2-treegrid'; /** * `AggregateDirective` represent a aggregate row of the react TreeGrid. * It must be contained in a TreeGrid component(`Tre...
Let’s face it; any job is stressful. Money makes the world go 'round, and working to earn enough money to survive, or maintain a lifestyle, however luxurious or not, is a source of daily struggle for everyone. While money concerns are not the sole source of stress in one’s profession, they are a large one, but there ar...
// Index pushes a list of documents to the respective partitions. It first breaks the list into // sub-lists based on the partitions, and then pushes them in parallel to all sub-indexes func (i *DistributedIndex) Index(docs []index.Document, options interface{}) error { splitDocs := make([][]index.Document, len(i.part...
// NewAdmonitionParagraph returns a new Paragraph with an extra admonition attribute func NewAdmonitionParagraph(lines []interface{}, admonitionKind AdmonitionKind, attributes interface{}) (Paragraph, error) { log.Debugf("new admonition paragraph") attrs, err := NewAttributes(attributes) if err != nil { return Par...
// NewConfig create a Cfg from config file func NewConfig(p string) (*Cfg, error) { rawConfig, err := ioutil.ReadFile(p) if err != nil { return nil, err } var config Config err = json.Unmarshal(rawConfig, &config) if err != nil { return nil, err } return &Cfg{Path: p, RawConfig: rawConfig, Config: &config},...
<reponame>Xan0C/curbl-ecs<filename>benchmark/web.ts import { ECS, System } from '@curbl/ecs'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore window.ECS = new ECS(); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore window.System = System;
def minimal_subregion(self) -> Tuple[int, int, 'ArrayMetadata']: subregion_origin = self._full_min_offset subregion_size = self._full_max_offset - self._full_min_offset new_metadata = ArrayMetadata( self.shape, self.dtype, strides=self.strides, first_element_o...
<gh_stars>10-100 import { Module } from '@nestjs/common'; import { BijusController } from './bijus.controller'; import { BijusService } from './bijus.service'; @Module({ controllers: [BijusController], providers: [BijusService], }) export class BijusModule {}
def startServer( self, persistFilename: str = "networktables.ini", listenAddress: str = "", port: int = constants.NT_DEFAULT_PORT, ): return self._api.startServer(persistFilename, listenAddress, port)
Inbound Recruiting: 6 Ways the Internet Will Impact Talent Acquisition in 2016 Mike Roberts The internet has completely transformed the way job seekers discover and apply to jobs. Research shows that more than seven in ten candidates now start their search on Google, rather than going directly to a job board. Additio...
The Canadian government is warning Washington it may retaliate if the U.S. brings in a new, more restrictive trade rule on how beef and pork product exports are labelled. The U.S. Department of Agriculture proposal announced Friday calls for foreign producers to list on the package of meat products where the animal wa...
<gh_stars>0 package rs.math.oop1.z090204.interfejsi.z02.ljudi; class Nastavnik extends Covek implements Deskripcija, Kvalitet { private String predmet; private int godinaStaza; public Nastavnik(String ime, String prezime, String predmet, int godinaStaza) { super(ime, prezime); this.predmet = pre...
<filename>src/main/java/fusion/oapt/general/graphToOnto/Test.java package fusion.oapt.general.graphToOnto; import java.io.File; import java.io.FileWriter; import agg.xt_basis.GraGra; import org.apache.jena.rdf.model.*; import org.apache.jena.ontology.*; public class Test { public static void main(String[] args) t...
× Expand Photo by Caitlin Abrams Gavin Kaysen at Spoon and Stable Semiotics is the study of how images and words—a phrase like “hottest restaurant ever”—derive meaning from their context. For instance, if I were to write, “Old Fashioneds are hot,” it would have a very different meaning than “the surface of the sun is ...
/** * This is only needed for arduino nodes. The Serial connection works on a * different thread than the JavaFX Main thread. */ @Override public void stop() throws Exception { super.stop(); System.exit(0); }
import sys inp = sys.stdin.readline mod = 10 ** 9 + 7 def solve(): N = int(inp()) d = [set() for _ in range(N + 1)] for i in range(N - 1): u, v = map(int, inp().split()) d[u].add((v, i)) d[v].add((u, i)) G = [set() for _ in range(N + 1)] st = [2] vis = set([2]) tp_sort = [] while st: ...
Natural Pathogens of Laboratory Mice, Rats, and Rabbits and Their Effects on Research SUMMARY Laboratory mice, rats, and rabbits may harbor a variety of viral, bacterial, parasitic, and fungal agents. Frequently, these organisms cause no overt signs of disease. However, many of the natural pathogens of these laborator...
/** * @param topLevel true if this is a top-level type where primitive types * like 'int' are forbidden. Recursive calls pass 'false' to support * arrays like {@code int[]}. */ private static void typeToString(Type type, StringBuilder result, boolean topLevel) { if (type instanceof Class) { ...
//Guarda las rotaciones en un archivo void GuardarArchivoRotaciones(String s, int Cod1, String Nom1, int Cod2, String Nom2){ int numero; try{ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br= new BufferedReader(isr); FileWriter fw = new FileWr...
def make_model(self): self.model = m = make_model_with_hh(self.time_step) hh = m.get_reaction("hh") self.soma = m.Segment(None, [0,0,0], self.soma_diameter) self.axon = m.Segment.make_section(self.soma, [0,0,self.axon_length], self.axon_diameter, ma...
def subarray_dimensions(self, keys): if len(keys) != len(self.dims): raise ValueError("Number of keys must be equal to the number of" + " dimensions. (Got " + str(len(keys)) + "/" + str(len(self.dims)) + ")") newDims = DimensionHelpe...
def add_searcher_variables(md, g, start: list, vertices_t: dict, deadline: int): [X, Y] = ext.init_dict_variables(2) S, m = ext.get_set_searchers(start) var_for_test = {} list_x_name = [] list_y_name = [] T_ext = ext.get_set_time_u_0(deadline) for s in S: for t in T_ext: ...
Thou Shall Not Harm All Living Beings: Feminism, Jainism, and Animals In this paper, I critically develop the Jain concept of nonharm as a feminist philosophical concept that calls for a change in our relation to living beings, specifically to animals. I build on the work of Josephine Donovan, Carol J. Adams, Jacques ...
def load_dataset(pickle_path,only_one=False): clips = {} if(only_one): pkl = sorted(os.listdir(pickle_path))[0] clips["1"] = pickle.load(open(pickle_path+"/"+pkl,"rb")) print("loaded clips from ",pkl) else: fold = 1 for pkl in sorted(os.listdir(pickle_path)): ...
// TestWatcher verifies that database server properly detects and applies // changes to database resources. func TestWatcher(t *testing.T) { ctx := context.Background() testCtx := setupTestContext(ctx, t) db0, err := makeStaticDatabase("db0", nil) require.NoError(t, err) reconcileCh := make(chan types.Databases) ...
/** * @return Whether the calling package is the current package. */ protected boolean isSelfPackage() { final boolean isSelfPackage; if (BuildConfig.DEBUG && ContextUtil.isTestContext(getContext())) { isSelfPackage = true; } else { isSelfPackage = getContext()....
def dstnct(n): st=set() ct=0 while(n!=0): st.add(n%10) n=n//10 ct+=1 if ct==len(st): return True else: return False n=int(input()) c=n while(True): c+=1 if dstnct(c): print(c) break
Genetic inhibition of interleukin-6 receptor signaling and Covid-19 There are few effective therapeutic options for the treatment of severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) infection. Early evidence has suggested that IL-6R blockers may confer benefit, particularly in severe coronavirus disease 20...
// Solution 2: DFS class Solution { vector<vector<int>> vis, res; vector<int> dir = {0, 1, 0, -1, 0}; void dfs(vector<vector<int>>& mat, int x, int y, int pre, int type) { if (x < 0 || x >= mat.size() || y < 0 || y >= mat[0].size() || mat[x][y] < pre || vis[x][y] == 3 || vis[x][y] == type) ...
<gh_stars>0 /** * 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 "Licens...
Orthogonal Hyphenation of Planar and Liquid Chromatography for Mass Spectrometry of Biomarkers Out of the Bioassay Matrix (NP-HPTLC-UV/Vis/FLD-Bioassay-RP/IEX-HPLC-UV/Vis-ESI-MS). Bioprofiling on the planar chromatogram with in situ biological/enzymatic assays is a powerful bioanalytical screening tool for the non-tar...
def make_distributions(sample,nums): distdict = {} sample = list(sample) for n in nums: rnsamp = np.random.choice(list(sample),(n,200000)) prosamp = np.sum(rnsamp,axis=0) distdict[str(n)]=prosamp return distdict
import Vue from 'vue'; import VueRouter from 'vue-router'; Vue.use(VueRouter); // 解决路由重复控制台报错问题 const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function (location: string): any { return (originalPush.call(this, location) as any).catch((err: any) => err); }; export default new VueRouter(...
/** * Get a set of empty configured {@link BatchPoints} * @return A set of {@link BatchPoints} */ private BatchPoints batchPoints() { return BatchPoints .database(this.database) .tag("async","true") .consistency(InfluxDB.ConsistencyLevel.ALL) ...
# **PSEUDO RSA** # LIBRARIES from Crypto.PublicKey import RSA import os import math import sympy #------------------------------------------------------------------------------- # Filepaths my_info_path = "./My_info/" # Folder where my public key and encrypted files are stored. my_private_path = "./My_private_info/" #...
/** * Methods for working with deployments. Much of the actual work of {@link EventDefinitionDeployer} is done by orchestrating the different pieces of work this class does; by having them here, we allow * other deployers to make use of them. */ public class EventDefinitionDeploymentHelper { /** * Verifies...
import React from 'react'; import TooltipReadme from '!!raw-loader!../../../../vx-tooltip/Readme.md'; import Tooltip from '../../../../vx-tooltip/src/tooltips/Tooltip'; import TooltipWithBounds from '../../../../vx-tooltip/src/tooltips/TooltipWithBounds'; import useTooltip from '../../../../vx-tooltip/src/hooks/useTool...
module Instances where import Test.QuickCheck (Arbitrary, arbitrary, elements) import Test.QuickCheck.Checkers (quickBatch, EqProp, (=-=), eq) import Test.QuickCheck.Classes (applicative, functor) -- | Pair instances data Pair a = Pair a a deriving (Eq, Show) instance Functor Pair where fmap f (Pair x y) = Pair...
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at htt...
Derivatives and the financialisation of the Italian state ABSTRACT The existing literature on financialisation has devoted insufficient attention to how governments wield the market-based practices and technologies of financial innovation to pursue statecraft objectives. Because of this inattention, scholars have miss...
SAN JOSE, Calif. – San Jose Earthquakes defender Kip Colvey, midfielders Anibal Godoy and Vako, and forwards Marco Ureña and Chris Wondolowski have been called up to their respective national teams for the upcoming 2018 FIFA World Cup Qualifiers and international friendlies. Wondolowski, 34, returns to the U.S. Men’s ...
<gh_stars>0 import asyncio import traceback import websockets import logging from jsonrpc import JsonRpcRequest, JsonRpcResponse, error from .response_stream import ResponseStream from .app import app from controllers import * class WebsocketServer: """ Websocket server core class. It will handle receiving...
import * as React from "react" import Seo from "../../../components/seo" import Layout from "../../../components/layout" import Control from "../../../components/useForm/Control" export default ({ location }: { location: any }) => { return ( <Layout location={location} defaultLang="en"> <Seo title="useForm...
/** * Put new keys into use. * This method will initialize the ciphers, digests, macs and compression * according to the negotiated server and client proposals. * * @throws Exception if an error occurs */ @SuppressWarnings("checkstyle:VariableDeclarationUsageDistance") protected void r...
package renderer import ( "fmt" "io/ioutil" "net/http" "path/filepath" "github.com/julienschmidt/httprouter" ) // RenderConfig stores variables pulled from the environment type RenderConfig struct { StaticDir string ConfigDir string } // RenderServer is the heart of this package. It routes requests to functi...
/** * Holds the source triplesMap and Subject-, Object- or PredicateMap for a specific (provenanced) term. */ public class Metadata { private Term triplesMap; private Term sourceMap; public Metadata() { } public Metadata(Term triplesMap) { this(triplesMap, null); } public Metad...
class Output_Subtable: """Specific subtable that deals with extrapolator output""" def store_output(self, all_ases, attack, number_of_attackers, adopt_policy, percent, percent_iter, ...
package main import ( "testing" ) func Test_redisStore(t *testing.T) { s := &redisStore{url: "redis://localhost:6379"} s.open() s.ping() k := s.put("", "bar") if got := s.get(k); got != "bar" { t.Errorf("expected %q, got %q", "bar", got) } } func Test_mapStore(t *testing.T) { s := &mapStore{} s.open() k ...
/** * @author bartosz walacik */ public class CustomToNativeAppenderAdapter<T, C extends PropertyChange> implements PropertyChangeAppender<C> { private final CustomPropertyComparator<T, C> delegate; private final Class<T> propertyJavaClass; public CustomToNativeAppenderAdapter(CustomPropertyComparator<T,...
#include<stdio.h> #include<stdlib.h> // utility function to print elements of array of inputted numbers void arrayprinter ( int A[], int n) { int i; for(i=0;i<n;i++) { printf("%d ",A[i]); } printf("\n"); } // utility function to swap to numbers with their respective pointers void swap ( int *t1, int *t2) { in...
<filename>98test/httptest/src/tests/hello_test.go package tests import ( "net/http" "net/http/httptest" "testing" . "github.com/smartystreets/goconvey/convey" ) func TestHelloController(t *testing.T) { w := httptest.NewRecorder() Convey("Test GetHello", t, func() { r, _ := http.NewReq...
<reponame>yonch/wireless # Copyright (c) 2012 <NAME> # This code is released under the MIT license (see LICENSE file). ## # \ingroup simulator # \brief Aggregates multiple factories to be queried jointly for components class FactoryCollection(object): """ This class is intended to make adding new functionalit...
<filename>services/fetcher-go/grpc/server.go package grpc import ( "context" pb "github.com/wafuwafu13/Hatena-Intern-2020/services/fetcher-go/pb/fetcher" "github.com/wafuwafu13/Hatena-Intern-2020/services/fetcher-go/fetcher" healthpb "google.golang.org/grpc/health/grpc_health_v1" ) // Server は pb.RendererServer ...
package com.packtpub.reactive.common.checked; public interface CheckedFunc0<R> { R call() throws Exception; }
/** * Get access to general information about LensKit. * * @since 2.1 * @author <a href="http://www.grouplens.org">GroupLens Research</a> */ public final class LenskitInfo { private static final Logger logger = LoggerFactory.getLogger(LenskitInfo.class); private static SoftReference<Set<String>> revisionSe...
As Ukraine's antigovernment revolt spreads like wildfire around the country, a senior official has for the first time threatened to call a state of emergency – which could bring the army onto the streets of Kiev and other strife-plagued cities. Ukrainian Justice Minister Olena Lukash, who woke up Monday morning to fin...
z=[list(map(int,input().split(':')))for i in range(2)] a=24-z[1][0] b=a+z[0][0] if z[0][1]<z[1][1]: b-=1 d=60-(z[1][1]-z[0][1]) else: d=z[0][1]-z[1][1] if b>23: b=abs(b-24) b='%d'%b d='%d'%d if len(b)<2: b='0'+b if len(d)<2: d='0'+d print(b+':'+d)
/** * CSV reader implementation based on Camel implementation (see BindyCsvDataFormat) where some issues have been fixed. * * @param <T> Bean type. */ public class CsvJpaReader<T> extends AbstractCsvReader<T> { /** * optional entity manager */ private final EntityManager em; /** * Cache of fe...
Think about it—an inexpensive Linux PC crammed inside a wall-wart plug. Something like this SheevaPlug could open up a whole new framework of managing and sharing data that could be accessible to the masses. Inside the SheevaPlug you will find a 1.2GHz, ARM-based Sheeva embedded processor, 512Mbytes of FLASH, 512Mbyte...
/// Simple config file value deserialization from a string to a `PrefValue`. /// Treats the first character of the string read in from the config file /// as the type, which it then discards and parses the rest of the string /// to return the correct variant of `PrefValue`. /// fn simple_deser(s: &str) -> PrefValue { ...
EUGENE -- The Devon Allen Express charged on at full speed Monday inside Autzen Stadium, a four-day run by Oregon's young receiver that began on the track at Hayward Field and has yet to be derailed by hurdles or defenders with bad intentions alike. After winning the 100 meters and 110- and 400-meter hurdles Friday an...
Michael Walter Mitchell, shot neighbor due to voices in his head. (Photo: Maricopa County Sheriff's Office) Michael Walter Mitchell, 27, of Glendale, Arizona says he shot his neighbor because the voices in his head told him to do it. Mitchell even called the police himself to report that he shot the man downstairs. W...
NUMERICAL SIMULATION OF THE EFFECTS OF BUOYANCY FORCES AND FLOW CONTROL DEVICES ON FLUID FLOW AND HEAT TRANSFER PHENOMENA OF LIQUID STEEL IN A TUNDISH Fluid flow and heat transfer of liquid steel in a tundish of a continuous slab caster was numerically simulated. The importance of natural flow convection was establish...
#ifndef SMART_INPUT_FILTER_DEBOUNCE_INPUT #define SMART_INPUT_FILTER_DEBOUNCE_INPUT #include "filter.h" // Debounces an input such as a switch. Responds immediately if the input // hasn't changed in a while (so that it catches the initial switch with no // latency). class DebounceInput : public Filter<bool, bool> { ...
/* * 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 ...
<reponame>calebmarchent/fizz /* * Copyright (c) 2018-present, Facebook, Inc. * 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. */ #pragma once #include <functional> #include <map> #include <string> #incl...