content
stringlengths
10
4.9M
On his last night, Daxon Stankey went to bed happy and content, just like any other night. At 10 months old, he was busy all day, crawling and happily tucking into any food he was offered. The mere sight of a snack was enough to make the baby grin. It wouldn’t be long before he started to walk—he was already trying. B...
function delay(ms: number) { return new Promise(resolve => setTimeout(resolve, ms)); } async function type(element: HTMLElement, text: string) { for (var i = 0; i < text.length; i++) { await key(text[i], element); } } async function key(charactor: string, element: HTMLElement) { switch (charac...
// Test code an incorrect state func TestHandleHomeCodeErrorState(t *testing.T) { token := initToken() token.state = "abn2xy" err := loadCredentials(token) if err != nil { t.Fatalf("could not add client credentials %s", err) } server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Req...
<gh_stars>0 import { gql, useQuery } from "@apollo/client"; import { useRouter } from "next/router"; import React, { useContext, useState } from "react"; import { useMediaQuery } from "react-responsive"; import PageWithNavAndPanel from "../components/PageWithNavAndPanel"; import SearchBar from "../components/SearchBar"...
// Close will close all loops in this object and any // subListeners. This method will also cause an error to be // raised on both the Accept() and AcceptFailures() methods // for any listening loops that are above this transport // object. This method is safe to be called multiple times // from different goroutines. f...
<filename>node_modules/carbon-icons-svelte/lib/CrowdReport32/index.d.ts export { CrowdReport32 as default } from "../";
John Boehner (left) and Daniel Inouye still have a way to go to reach a deal on appropriations. Senate Dems push for spending deal Senate defeat of House Republican spending cuts puts the burden back on Speaker John Boehner to show more flexibility even as Democrats and President Barack Obama must summon more unity if...
def gpu_scheduler( commands: Sequence[str], wait_time_in_secs: int = 180, log=True, maxMemory=1e-4, maxLoad=1e-4, excludeID=(), excludeUUID=() ): print(f'Scheduling {len(commands)} jobs...') import GPUtil import subprocess procs = [] for job_id, command in enumerate(comma...
// Buffered Channels // By default, channels are unbuffered. Which implies that the channel // would only accept data into the channel if there is a corresponding receive. // Buffered Channels are just like internal data stores, they allow a limited // number of values without a reciver for thos values. Buffered Channe...
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requ...
Dermal fibroblasts tumor suppression of ras-transformed keratinocytes is associated with induction of squamous cell differentiation. We have previously reported that tumor formation of ras-transformed keratinocytes can be suppressed by dermal fibroblasts through production of a diffusible growth inhibitory factor of t...
def cancel(self): logger.info(f'Loader: Canceling {len(self.queues)} batches') self.loop.call_soon_threadsafe(self.stop_progress) asyncio.run_coroutine_threadsafe(self.stop(), self.loop)
/** * Create the table showing the labels list */ private Table createTable(Composite parent, boolean multiSelect) { int flags = SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION; if (multiSelect) { flags |= SWT.MULTI; } final Table table...
PORT ST. LUCIE, Fla. — Jon Niese has a new arm angle this spring. The reason is obvious, if complicated. "Because my shoulder is healthy," he said. "Last year I was just trying to find an angle where it didn't hurt. This year, I'm 100 percent healthy so I'm able to actually work on my mechanics and have proper mechani...
<reponame>yuto-moriizumi/UkrainianPeoplesRepublic import DeclareWar from "./DeclareWar"; import SetOwner from "./SetOwner"; import Annex from "./Annex"; import Peace from "./Peace"; import ChangeName from "./ChangeName"; import GainAccess from "./GainAccess"; import Effect from "./Effect"; import DispatchEvent from "./...
<reponame>GDGToulouse/devfest-embedded-devices-monorepo export interface SocketEmitsUpdateConfig { deploymentUuid: string; }
def predictive(self, Xnew, output_function_ind=None, kern_list=None): f_ind = self.Y_metadata['function_index'].flatten() if output_function_ind is None: output_function_ind = 0 d = output_function_ind if kern_list is None: kern_list = self.kern_list Xmult...
<filename>e3nn/nn/__init__.py from ._extract import Extract, ExtractIr from ._activation import Activation from ._batchnorm import BatchNorm from ._fc import FullyConnectedNet from ._gate import Gate from ._identity import Identity from ._s2act import S2Activation from ._so3act import SO3Activation from ._normact impor...
<filename>argus/design/transformations.py import numpy as np from argus.utils import to_array def to_classes(x, n_classes=2, min_value=None, max_value=None, agg_function=None, verbose=False): x = to_array(x) n_classes = int(n_classes) if not min_value: min_value = np.min(x) if not max_value: ...
def _parse_latency_line(data): _min, _avg, _max = data.split("/") return { "latency_min": int(_min), "latency_avg": int(_avg), "latency_max": int(_max), } def _parse_mode_line(data): value = data.strip() return {"mode": value, "is_leader": 1 if (value == "leader") else 0} ...
On making holes in liquids Abstract Just as a solid object would, a liquid jet or a stream of droplets impacting a free surface deforms and perforates it. This generic flow interaction, met in everyday life but also in cutting edge industrial processes, has puzzled scientists for centuries. Lee et al. (J. Fluid Mech.,...
/** * Helper class for building discrete distributions. * * @author Daniel * */ public abstract class AFiniteDistribution<T> extends ADistributionBase<T> implements IFiniteDistribution<T> //, Collection<T> causes problems with serialisers :( Use asList() instead { /** * If >0, the total weight (i.e. the ...
<gh_stars>0 import Data.Char (isAlpha) import Data.List (sortBy) type Cup = (Int, String) main :: IO () main = do n <- readLn cups <- foldr (\_ acc_ -> do acc <- acc_ line <- getLine let cup = if isAlpha $ line !! 0 then do -- <color> <radius> ...
You know that mutual parting of ways that occurred between the San Francisco 49ers and head coach Jim Harbaugh? The one that we all suspected wasn't actually mutual in any way, especially after Jed York and Trent Baalke played the fools (does that term work plural?) at Harbaugh's post-divorce press conference? Big shoc...
class EnzymaticReactionTokenizer: """Constructs a EnzymaticReactionTokenizer using AA sequence.""" def __init__( self, aa_sequence_tokenizer_filepath: Optional[str] = None, smiles_aa_sequence_separator: str = "|", reaction_separator: str = ">>", ) -> None: """Constru...
/* * Public API Surface of edit-in-place */ export * from './lib/editable.module'; export * from './lib/editable.config'; export * from './lib/directives/editable-group-edit.directive'; export * from './lib/directives/editable-group-save.directive'; export * from './lib/directives/editable-group-cancel.directive'; ...
Methods of Pedagogical Psychology in Education In the conditions of modern reality, when the acquired knowledge can become outdated before the learning process ends, the methods in which the students have the opportunity to develop as individuals, improving their competencies become especially important. The article d...
/** * Gathers all composite types for a given root element in the schema. * <p> * Composite types are complex types, choice types, arrays. * * */ public static class RootCompositeType { public final Map < String, Object > complexTypes; public final Map < String, Object ...
# Demonstrate failure of MLE for GMMs in high-D case, whereas MAP works # Based on: https://github.com/probml/pmtk3/blob/master/demos/mixGaussMLvsMAP.m # Author: <NAME> import superimport import numpy as np import matplotlib.pyplot as plt from numpy.random import randn, seed from numpy.linalg import cholesky, LinAlg...
/********************************************************************* ** Copyright (C) 2003 Terabit Pty Ltd. All rights reserved. ** ** This file is part of the POSIX-Proactor module. ** ** ** ** ** ** ** @author <NAME> <<EMAIL>> ** **********************************************************************/ #ifndef...
def in_words(): week_days = ['ПОНЕДЕЛЬНИК', 'ВТОРНИК', 'СРЕДА', 'ЧЕТВЕРГ', 'ПЯТНИЦА', 'СУББОТА', 'ВОСКРЕСЕНЬЕ'] current_day = datetime.datetime.today().weekday() week_days[current_day] = 'СЕГОДНЯ' if current_day > 0: week_days[current_day - 1] = 'ВЧЕРА' if current_day < 6: week_days[...
<reponame>bcgov/time-machine<gh_stars>1-10 export * from './client.entity'; export * from './contact.entity'; // export * from './document.entity'; export * from './ministry.entity'; export * from './project.entity'; export * from './projectContacts.entity'; // export * from './projectDocuments.entity'; export * from '...
A support system for brain tumor's therapeutic planning Multidisciplinary approach to treatment planning of brain tumors is a worldwide increasingly practice, this approach is achieved using multidisciplinary team meetings (MDTM) to discuss cases. Studies have shown two main barriers to maximizing the efficiency of th...
def _on_removetext(self, event): num_text = len(self.textList) if num_text < 1: if self.parent is not None: msg = "Remove Text: Nothing to remove. " wx.PostEvent(self.parent, StatusEvent(status=msg)) else: raise return ...
/** * A driver class in which launchers are created for all known products. */ public final class OpenSphereLauncherCreator { /** * The {@link Logger} instance used to capture output. */ private static final Logger LOG = Logger.getLogger(OpenSphereLauncherCreator.class); /** * The writer u...
<reponame>ayseirmak/Front_React export * from './ContentForm'
<filename>src/Routes/Predict/index.ts import PredictContainer from "./PredictContainer"; export default PredictContainer
<filename>modules/mod_explosm.py from modules.module_base import ModuleBase from tools.imageSender import ImageSender class ModuleExplosm(ModuleBase): URL = "https://explosm.net/comics/" XPATH = '//img[@id="main-comic"]/@src' def __init__(self, bot): ModuleBase.__init__(self, bot) self.nam...
class StcStats: """Represents statistics view. The statistics dictionary represents a table: Statistics Name | Object 1 Value | Object 2 Value | ... object | | | parents | | | topLevelName | | ...
/* Keep consistent with python version ! */ string PatchKPIDToStr( int kpID ) { switch( kpID ){ case -2: return "LogoArea"; case -1: return "vface"; case 0: return "WinGlassLT"; case 1: return "WinGlassRT"; case 2: return "WinGlassLB"; case 3: return "WinGlassRB...
<reponame>maxWN/angular-electron-utility import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { AppSettingsComponent } from './app-settings.component'; import { AppSettingsRoutingModule } from './app-settings-routing.module'; // REMEMBER: If you import a module that contains...
/** * Created by alex.mihai on 6/9/2017. */ public class CartValidationTest extends BaseTest { @Test public void validateCart() throws InterruptedException { //open homepage HomepageObject homepage = new HomepageObject(driver); homepage.openHomePage(); homepage.acceptPrompt(); ...
import sys input = sys.stdin.readline def solve(): n,k = map(int, input().split()) dp = [None]*(n+1) p = [None]*(n+1) dp[0] = 0 q = [0] qi = 0 while qi < len(q): x = q[qi] #print(x) qi += 1 for j in range(min(k, x)+1): if x + k - j <= n: y = x + k - 2*j if y >= 0 and y <= n...
/* Code for problem by cookiedoth Generated 28 Jun 2020 at 03.06 PM ,##. ,==. ,# #. \ o ', # # _ _ \ \ # # (_) (_) / ; `# #' / .' `##' "==" z_z =_= ¯\_(ツ)_/¯ */ #include <iostream> #incl...
<filename>pkg/apis/tf/v1alpha1/templates/common_config.go package templates import ( "text/template" ) // CommonRunConfig is the template of the common run service actions var CommonRunConfig = template.Must(template.New("").Parse(`#!/bin/bash [[ "$LOG_LEVEL" != "SYS_DEBUG" ]] || set -x cmd_file="/tmp/command.sh" ...
<filename>engine/netutil/WebSocketConnection.go package netutil // //type WebSocketConnection struct { // wsconn *websocket.Conn //} // //func NewWebSocketConnection(conn *websocket.Conn) WebSocketConnection { // return WebSocketConnection(conn) //} // //func (wsc WebSocketConnection) Write(p []byte) (int, error) { //...
#include <iostream> using namespace std; #define FOR(i, m, n) for (int i = m; i <= n; ++i) int main() { int A, B; cin >> A >> B; int cnt; FOR(i,A,B) { int s = i % 10, t = i / 10000; int u = i / 10 % 10, v = i / 1000 % 10; if ( s == t && u == v ) ++cnt; } cout << cnt << endl; }
<filename>chapter_002/src/main/java/products/storage/decorator/LimitedStorage.java package products.storage.decorator; import products.items.decorator.IFood; /** * @autor aoliferov * @since 14.02.2019 */ public class LimitedStorage<E extends IFood> extends DecoratorStorage<E> { private int size; public ...
import { assertEquals, assertThrows } from "./deps.ts"; import { Ningen } from "./mod.ts"; const ng = new Ningen("/root/dir"); const testRule = ng.rule({ name: "ttt", command: "ttt -o $out $in", srcs: [], }); function generate(): string { return ng.generateToString({ enableGeneratorRule: false }).trim(); } ...
/** * Factory for creating EasyMock objects as beans. * * @author Eric Dalquist * @version $Revision$ */ public class EasyMockFactoryBean<T> extends AbstractFactoryBean<T> { private final Class<? extends T> type; private boolean nice = true; /** * @param nice If a nice mock should be created, de...
Civil rights historian and author Frank Sikora, who worked as a reporter for The Birmingham News for more than three decades, has died. He was 80. The tall, gray-bearded reporter known for his kind, soft-spoken mild manner and elegant writing style died on Monday, according to his family. Sikora was the author of hig...
<reponame>groupby/sayt-client-javascript import { test, theon } from 'groupby-client-core'; import { Api } from '../src'; export function middleware(rootApi: { sayt: Api } & theon.Request, action: string) { afterEach(() => rootApi.getStore().map = {}); it('should set url from customerId', (done) => { rootApi....
<reponame>xpsurgery/customer-base<gh_stars>1-10 class CustomerBase: def __init__(self): self.customers = [] def add(self, customer): self.customers.append(customer) def findByLastName(self, lastName): result = [] for customer in self.customers: if customer.last...
<filename>src/main/java/org/github/gwttemplate/templates/widgets/InlinePanel.java<gh_stars>0 /** * */ package org.github.gwttemplate.templates.widgets; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.ComplexPanel; import com.google.gwt.user.client.ui.Widget; /** * */ public class Inl...
def popularity_of_expressions(path_to_db: str) -> dict: trace_id = str(random.randint(1000000, 9999999)) logger.info("[trace start " + trace_id + "]") dat = clib.read_db(path_to_db) expression_popularity_dict = {} deriv_uses_expr_global_id = {} for deriv_id in dat["derivations"].keys(): ...
/** * Dialog for adding constants to subsystems. * * @author Sam Carlberg */ public class ConstantsAdderDialog extends CenteredDialog { /** * The constants property being edited. */ private final ConstantsProperty constantsProperty; /** * Convenience list for changing constants. */...
<commit_msg>wa: Add ApkWorkload to default imports <commit_before>from wa.framework import pluginloader, signal from wa.framework.command import Command, ComplexCommand, SubCommand from wa.framework.configuration import settings from wa.framework.configuration.core import Status from wa.framework.exception import HostE...
// RenderValue properly render a value func (r *Renderer) RenderValue(value *Value) { if r.Autoescape && value.IsString() && !value.Safe { r.WriteString(value.Escaped()) } else { r.WriteString(value.String()) } }
def reg_check(self, index, filepath, limit): item_registered = False if 'days' not in limit and 'regex' not in limit: index[filepath] = {} item_registered = True elif 'days' in limit and 'regex' not in limit: timestamp = functions.modification_date(filepath=fi...
#ifndef _VIDEO_DCT_P6_H_ #define _VIDEO_DCT_P6_H_ // #include <VP_Os/vp_os_types.h> #include <VLIB/video_dct.h> //////////////////////////////////////////////////// // Parrot proprietary DCT registers //////////////////////////////////////////////////// // Parrot DCT address: 0xD00B0000 #define DCT_STATUS ...
/** * Adds a new <code>MenuItem</code> using the given menu item ID and menu item flow class. * * @param id The ID for the new menu item. * @param clazz The flow class to initiate when flow is about to be initialized. * @return The added menu item. * @since 2.0 */ public MenuItem addMenuItem(Strin...
/** * A simple {@link Fragment} subclass. */ public class EstablistmentListFragment extends BaseFragment<EstablismentsViewModel, FragmentEstablistmentListBinding> implements EstablismentCallback.RestaurantCallback { private static final String ESTABLISHMENT_ID_KEY = "establishment_id"; private Estab...
// // Created by <NAME> on 31/10/14. // Copyright (c) 2014 ___FULLUSERNAME___. All rights reserved. // #include "Plane.h" #include "NormalToNoise.h" #include <iostream> using namespace kick; using namespace glm; using namespace std; ThePlane::ThePlane(kick::GameObject *gameObject) : Component(gameObject) { MeshR...
/** * A {@link io.reactivex.Observer} which has a stable tag. Must be used with {@link AutoResubscribe} * annotation to set the tag before observer is used. */ public abstract class AutoResubscribingObserver<T> implements TaggedObserver<T> { private String tag; public final String getTag() { return tag; ...
by | If ‘sex, drugs, and rock and roll’ are the main ingredients of a great rock story, then Mötley Crüe’s oral history The Dirt: Confessions of the World’s Most Notorious Rock Band has it all. My favorite story in the book is recounted here. This jaw-dropping, debaucherous Ozzy Osbourne tale is one of the many reason...
<reponame>LegitMagic/HomeEditLoader #pragma once #include <3ds/types.h> #include <string.h> void progIdToStr(char *strEnd, u64 progId);
/** * Checks if the database needs to be synced with the file system * * @return True if the database needs to be synced */ private boolean needDatabaseSync() { long folderTimestamp = WordsWithCrossesApplication.CROSSWORDS_DIR.lastModified(); long lastDBSync = prefs.getLong(PREF_LAST...
// Parse an interval. Can be expressed in hours, days, weeks, months or years. // Return the time interval in seconds. func ParseInterval(intv string) (int, error) { alias, ok := intervalAliases[intv] if ok { intv = alias } if len(intv) == 0 { return 0, fmt.Errorf("empty interval") } var result int var suffi...
import { Command } from "commander"; import * as fs from "fs"; import * as os from "os"; import ow from "ow"; import * as rimraf from "rimraf"; import { MockReadable, MockWritable, stdio as stdioMock } from "stdio-mock--fork-by-wiseteam"; import { App } from "../app"; import { Context } from "../Context"; import { d }...
def range(self): return self.data.index[0], self.data.index[-1]
// MultivariateFunction.java // // (c) 2006- JEBL development team // // based on LGPL code from the Phylogenetic Analysis Library (PAL), // http://www.cebl.auckland.ac.nz/pal-project/ // which is (c) 1999-2001 PAL Development Core Team // // This package may be distributed under the // terms of the Lesser GNU Gene...
def main(unused_argv): del unused_argv gin.parse_config_files_and_bindings([FLAGS.gin_file], FLAGS.gin_param) seed = gin.query_parameter('%seed') results_dir = gin.query_parameter('%results_dir') results_dir = os.path.normpath(results_dir) num_samps = gin.query_parameter('%num_samps') num_st...
Expert answer Dear Gina, Lots of psychiatric diagnoses generate controversy in the general public (e.g. attention deficit hyperactivity disorder, juvenile bipolar disorder), although they are noncontroversial in the mental health world. On the other hand, if you want to see mental health professionals spat with each o...
<filename>pandapower/control/__init__.py import pandapower.control.basic_controller import pandapower.control.controller # --- Controller --- from pandapower.control.controller.const_control import ConstControl from pandapower.control.controller.characteristic_control import CharacteristicControl from pandapower.contro...
The Missouri Lottery Optimizes Its Scheduling and Routing to Improve Efficiency and Balance The Missouri lottery, a profit-driven nonprofit organization, generates annual revenues of over $800 million by selling lottery tickets; 27.5 percent of the revenue goes to Missouri's public education programs. The lottery sale...
<reponame>arteneo/forge import React from "react"; import Button, { ButtonProps } from "@arteneo/forge/components/Common/Button"; import axios, { AxiosRequestConfig } from "axios"; import { useHandleCatch } from "@arteneo/forge/contexts/HandleCatch"; import { useLoader } from "@arteneo/forge/contexts/Loader"; interfac...
<filename>pkg/types/error.go<gh_stars>0 package types import "fmt" type OrderError struct { error error order Order } func (e *OrderError) Error() string { return fmt.Sprintf("%s exchange: %s orderID:%d", e.error.Error(), e.order.Exchange, e.order.OrderID) } func (e *OrderError) Order() Order { return e.order }...
// Associate folders with the right parent folders // For each new folder, strip off the last component of the folder name. // Look through new and existing folders for names that match. void SyncFolderListCommand::MatchParents() { const vector<ImapFolderPtr>& folders = m_folderListDiff.GetFolders(); map<string, MojO...
<filename>src/modules/comentary/repository/i-commentary.repository.ts import { Commentary } from '../schemas/commentary.schema'; export interface ICommentaryRepository { create(dto: Commentary); getAll(); getById(id: string); update(id: string, dto: Commentary); delete(id: string); }
// WaitForHealthy polls a URL repeatedly until the server responds with a // non-server-error status, the context is canceled, or the context's deadline // is met. WaitForHealthy returns an error in the latter two cases. func WaitForHealthy(ctx context.Context, u *url.URL) error { req := &http.Request{ Method: http....
Competitive Inhibitors of Mycobacterium tuberculosis Ribose-5-phosphate Isomerase B Reveal New Information about the Reaction Mechanism* Ribose-5-phosphate isomerase (Rpi), an important enzyme in the pentose phosphate pathway, catalyzes the interconversion of ribulose 5-phosphate and ribose 5-phosphate. Two unrelated ...
<reponame>unfoldingWord-dev/tools<filename>md/tw_txt2md-rc.py # -*- coding: utf-8 -*- # This script converts a repository of tW text files from tStudio to .md format, # to create a valid resource container. The old folder structure has only a single # folder for all 1000+ files. This script is intended to do the follow...
/// Fill a row in the network map array. fn fill_row(line: &str, row: usize, network_map: &mut Array2<u8>) { for (idx, bit) in line.as_bytes().iter().enumerate() { network_map[[row, idx]] = *bit; } }
def slurp_nights(self, make_frameqa=False, remove=True, restrict_nights=None, write_nights=False, **kwargs): log = get_logger() if make_frameqa: self.make_frameqa(**kwargs) log.info("Resetting QA_Night objects") self.qa_nights = [] for night in se...
def draw(self, dstrect, hollow=False, color=None): target = pg.Rect(dstrect) target.width = max(target.width, self.min_width) target.height = max(target.height, self.min_height) bounds = self.area texture = self.texture if color: texture.color, color = color, texture.color texture.draw( srcrect=(bou...
/** * Print information about this gene as a row of tab-delimited text * @return A text line (like a table entry) representing this gene... */ public String printInfo() { String line = ""; line += getID() + "\t"; line += getName() + "\t"; if (this.is_ncRNA()) line += "ncRNA\t"; else line += "mRNA\t"; ...
package main import ( "crypto/rand" "encoding/hex" "fmt" "io/ioutil" "os" "strings" "github.com/spf13/pflag" flag "github.com/spf13/pflag" "github.com/stutonk/boxutil" ) const ( errFmt = "%v: fatal; %v\n" saltLen = 128 usageFmt = `usage: %v [-h, -v] [-s salt] [passphrase] If no passphrase given, read ...
<reponame>jgramoll/terraform-provider-jenkins package main import ( "fmt" "os" "github.com/jgramoll/terraform-provider-jenkins/client" ) type GenerateTerraformCodeService struct { jobService *client.JobService } func NewGenerateTerraformCodeService(jobService *client.JobService) *GenerateTerraformCodeService { ...
// implicitMetaAnyPolicy defines an implicit meta policy whose sub_policy and key is policyname with rule ANY. func implicitMetaAnyPolicy(policyName string) (*standardConfigPolicy, error) { implicitMetaPolicy, err := implicitMetaPolicy(policyName, cb.ImplicitMetaPolicy_ANY) if err != nil { return nil, fmt.Errorf("f...
/** * Assumes this json object is an array holding elements that will be converted to the requested element type, returning * a {@link List} of them. */ @Override public <T> List<T> unmarshallList(final JsonNode node, final Class<T> elementType) { return ...
const withTooManyValues = `Name Email Birthday Bunk <EMAIL> 3/12/48 Uh Oh.`; export default withTooManyValues;
/** * Formats and return selected fields. * * @param entity Java object to update. * @param selectFields Selected fields. * @return Formatted selected fields. */ private static Map<String, Object> EntityToNameValueList(Object entity, List<String> selectFields) { if (entity == null)...
package env import ( "github.com/gobuffalo/envy" ) // LogLevel returns the system's // exposure to internal logs. Defaults // to debug. func LogLevel() string { return envy.Get("ATHENS_LOG_LEVEL", "debug") }
package cinema.shows.rest; import cinema.shows.dtos.InputShowDTO; import cinema.shows.dtos.ShowDTOFull; import cinema.shows.dtos.ShowDTOMin; import cinema.shows.services.ShowServices; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotat...
import { Component, OnInit, ViewChild } from '@angular/core'; import { ClarityIcons } from '@clr/icons'; import { JwtHelperService } from '@auth0/angular-jwt'; import { ClrModal } from '@clr/angular'; import { Router } from '@angular/router'; import { version } from 'src/environments/version'; import { UserService } fr...
The crude explosive devices used against runners and spectators at the Boston Marathon were similar to the kitchen pot bombs aimed at U.S. troops on foot patrol in Afghanistan, law enforcement and Congressional officials said Tuesday. For nearly 10 years, presidential directives, Homeland Security Department reports a...
use super::*; #[test] fn normal() { let bag = gen_bag(); const VAL: &str = r#" { "data": { "id": "6720877a-e27e-4e9e-9ac0-3fff4deb55f2", "type": "comments", "attributes": { "body": "world" } }, "links": { "self": "comments/6720877a-e27e-4e9e-9ac0-3fff4deb55f2" } } "#; l...
// VerifiableDecryptWithDomain the ciphertext. This performs verifiable decryption // such that the decrypted data is checked against El-Gamal C2 value. // If the plaintext does not match, an error is returned // The Domain component is meant for scenarios where `msg` is used in more // than just one setting and should...
# @-*- coding: utf-8 -*- # @Time: 2018-10-21T21:21:26+08:00 # @Email: ykaiwan@163.com import sys import math import bisect MOD = int(1e9+7) # n = map(int, raw_input().split()) x1, y1 = map(int, raw_input().split()) x2, y2 = map(int, raw_input().split()) n = int(raw_input()) step = raw_input() ...
<gh_stars>0 package linkedlists; public class SumLists { public static Node sumLists(Node l1, Node l2, int carry){ if(l1 == null && l2 == null && carry ==0) return null; int value = carry; if(l1 != null) value += l1.data; if(l2 != null) value += ...