content
stringlengths
10
4.9M
Intravenous lacosamide and phenytoin for the treatment of acute exacerbations of trigeminal neuralgia: A retrospective analysis of 144 cases Abstract Background Scant evidence is available on the use of intravenous pain treatment in acute exacerbations of trigeminal neuralgia. The aim of this descriptive study was to ...
<gh_stars>1-10 import { FormModal } from "components/ui/form"; import { myContext } from "context"; import React from "react"; import tw from "twin.macro"; import styled from "@emotion/styled"; const Title = styled.h2` ${tw`flex-auto font-sans text-2xl font-semibold text-yellow-100 capitalize`} color: #fcf8c9; `;...
<gh_stars>1-10 """ Modified Newsgroups dataset where hold out certain classes for validation and testing """ from dataclasses import dataclass from datasets import load_from_disk, DatasetDict from .base import NewsgroupsDataArgs, NewsgroupsDataModule @dataclass class NewsgroupsHeldoutArgs(NewsgroupsDataArgs): ""...
<reponame>tw-jr-auto-test/exam-examination-service<filename>src/main/java/com/thoughtworks/exam/examination/domain/model/examination/ExaminationId.java package com.thoughtworks.exam.examination.domain.model.examination; import com.thoughtworks.exam.examination.common.ddd.annotation.ValueObject; import com.thoughtworks...
def solve(): n=int(input()) prev=input() n-=1 count=1 while n: string=input() if(string[0]==prev[1]): count+=1 prev=string n-=1 print(count) solve()
<gh_stars>0 /* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * ob...
s = input() s_list=list(s) C_num=-1 if (s_list[0]!="A"): print("WA") else: nagasa=len(s_list) num=0 for i in range(2,nagasa-1): if s_list[i]=="C": num += 1 C_num=i if num!=1: print("WA") else: del s_list[0] del s_list[C_num-1] mojiretu = ''.join(s_list) if(mojiretu.i...
/** * @author Daniel Siviter * @since v1.0 [13 Nov 2019] */ @EnableWeld @Timeout(60_0) public abstract class AbstractTest extends TestContainer { protected final AtomicInteger msgSeqNum = new AtomicInteger(); protected Server server; @BeforeEach void before() throws DeploymentException, IOException { try (var...
<gh_stars>10-100 package pythonresource import ( "bytes" "encoding/binary" "errors" "fmt" "strings" spooky "github.com/dgryski/go-spooky" "github.com/kiteco/kiteco/kite-go/lang/python/pythonimports" "github.com/kiteco/kiteco/kite-go/lang/python/pythonresource/internal/resources/symgraph" "github.com/kiteco/k...
<reponame>templateK/beam-migrate {-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE CPP #-} -- | Instances that allow us to use Haskell as a backend syntax. This allows us -- to use migrations defined a la 'Database.Beam.Migrate.SQL' to generate a beam -- schema. -- -- Mainl...
<filename>app/src/lib/constants.ts export const DEFAULT_SELECTED_COIN = "btc";
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation. * Any use, reproduction, disclosure, or distribution of this software * and related documentation with...
/** * Return the html version used in document. * @return version code */ public short apparentVersion() { switch (this.doctype) { case Dict.VERS_UNKNOWN : return htmlVersion(); case Dict.VERS_HTML20 : if (TidyUtils.toBoolean(thi...
class Box: """The wrapper of all layers in the model.""" def __init__(self, flow, models: list, n_epochs=10, batch_sz=1, loss_fn=tf.losses.mean_squared_error): self.flow = flow self.models = models self.n_epochs = n_epochs self.batch_sz = batch_...
<gh_stars>1-10 from modules import zerosevenscraper from modules import twelvescraper from termcolor import colored if __name__ == "__main__": year = int(input('Enter handbook year: ')) if(year < 2012 and year > 2007): scraper = oldscraper.Scraper(year) scraper.setup() scraper.export_a...
<filename>src/electron/models/prime/regions/magmoorCaverns.ts<gh_stars>1-10 import { RegionObject } from '../../region'; import { PrimeItem } from '../../../enums/primeItem'; import { PrimeLocation } from '../../../enums/primeLocation'; import { PointOfNoReturnItems } from '../../../enums/pointOfNoReturnItems'; import ...
/** * A list of {@link Transform}s. */ public class ListOfTransforms implements Transform { private static final long serialVersionUID = -1899549289571792276L; private List<Transform> list = new ArrayList<Transform>(); public ListOfTransforms(List<Transform> transforms) { list.addAll(transforms)...
// Copyright (c) 2013-2017 <NAME>, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that // the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of condition...
class SamInfo: ''' Information of a SAM line ''' pos = 0 chrom = '' flag = 0 mapq = 0 score = 0 offset = 0 seq = '' cigar = '' tag_md = '' def __init__(self, line, erg=False, md=False, cigar=False, score=True): self.flag = int(line[1]) self.pos = int(...
<gh_stars>10-100 package org.springframework.data.orient.commons.repository.config; import org.springframework.data.orient.commons.repository.support.OrientRepositoryFactoryBean; import org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport; /** * {@link org.springframework.data.repositor...
<gh_stars>1-10 #pragma once #include <SdFat.h> // Enumerates files in the root of the SD card, returning those suitable to show on the EPaper display. // In order to return files in order without sorting, scans all files in the root directory on every pass. class SdEnumerator final { public: SdEnumerator(const ch...
/// Generate a reference graph of methods. fn generate_reference_graph(&mut self) { let mut refgraph = ReferenceGraph::new(); // FIXME: Reflect `replace` rule in yaml file for each interface to // the reference (bug NNNNNN). // 1. Typesums let sums_of_interfaces = self.syn...
Is this the end of side-boob? Wonderbra launches Holly Willoughby-inspired lingerie that promises to make embarrassing nipple slips a thing of the past New bra is Wonderbra's lowest ever and dips to solar plexus Thick-strapped style comes in a choice of nude or black Inspired by celebrities such as Holly Willoughby ...
#include<bits/stdc++.h> using namespace std; vector <string> vec; int main() { int n,m; cin>>n>>m; string s; cin>>s; for(int i=0;i<n;i++) { string s2=s.substr(0,i+1); string s3=""; while(s3.size()<m) s3+=s2; vec.push_back(s3.substr(0,m)); } string ans=vec[0]; for(int i=0;i<vec.size();i...
#include <iostream> #include <fstream> #include <vector> using namespace std; ofstream g("problemabelefant.out"); vector <int> divizori; int main() { bool are[15], bun; int x, i, copie, j, sol = 0, incr; cin>>x; copie = x; sol = 0; for(i=0; i<=9; i++) are[i] = false; while(copie > 0) ...
<filename>tests/color/constantes-foreground_test.go<gh_stars>1-10 package color import ( "github.com/DrSmithFr/go-console/pkg/color" "github.com/stretchr/testify/assert" "testing" ) func TestForeground(t *testing.T) { assert.Equal(t, color.NewColor(30, 39), color.GetForegroundColor(color.BLACK)) assert.Equal(t, ...
0 With Marvel’s Captain America: The Winter Solider set to invade theaters on April 4th, earlier today Disney started doing press on the film here in Los Angeles. While reviews are embargoed for another week or so, Disney allowed us to tweet after last night’s screening and as I said on twitter, the movie is phenomena...
import { Direction } from '../models/direction'; import { Side } from '../models/side'; export class SwipeDragEndCounter { public leftCount: number; public rightCount: number; constructor() { this.reset(); } public reset(): void { this.leftCount = 0; this.rightCount = 0; } /** * @param d...
def _get_maybe_abstract_instance(self, data): if isinstance(data, abstract.AbstractOrConcreteValue): data_type = type(data.pyval) if data_type in self.primitive_class_instances: return self.primitive_class_instances[data_type] return data
Renal tubular site of action of felodipine. The renal tubular site of action of felodipine was localized using renal clearance and recollection micropuncture techniques in the anesthetized rat. In initial renal clearance experiments, felodipine (2.75 nM/kg/min i.v. X 60 min) had no effect on mean arterial pressure or ...
/// Return the colliding bodies involved for this arbiter. /// The order of the cpSpace.collision_type the bodies are associated with values will match /// the order set when the collision handler was registered. static inline void cpArbiterGetBodies(const cpArbiter *arb, cpBody **a, cpBody **b) { CP_ARBITER_GET_SHAPE...
package run; public class Start { private static volatile boolean running = true; public static void main(String[] args) { Runtime.getRuntime().addShutdownHook(new Thread(){ @Override public void run() { System.out.println("app stoped"); } }); synchronized (Start.class) { ...
/** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void createPackageContents() { if (isCreated) return; isCr...
// Treat this as a destructor function. Delete any dynamically allocated memory here void deleteBuffers() { glDeleteVertexArrays(numobjects + ncolors, VAOs); glDeleteVertexArrays(1, &teapotVAO); glDeleteBuffers(numperobj*numobjects + ncolors, buffers); glDeleteBuffers(3, teapotbuffers); }
import { Controller, Get, Header, Res } from '@nestjs/common'; import * as puppeteer from 'puppeteer'; import * as fs from 'fs'; import { Response } from 'express'; @Controller('chrome') export class ChromeController { @Get() async getHello(@Res() res: Response) { const browser = await puppeteer.lau...
def detach(ctx, iface, resource_config, **_): params = dict() if not resource_config else resource_config.copy() try: vpc_id = utils.find_ids_of_rels_by_node_type( ctx.instance, VPC_TYPE)[0] except IndexError: vpc_id = None acl_associations = iface.get_network_acls() for ...
#include <bits/stdc++.h> using namespace std; struct n{ long long a; long long b; }k[500000]; long long vis[500000]; long long cmp(n n1,n n2){ return n1.a<n2.a; } long long ans; void dfs(long long x,long long need){ if(vis[x]==1){ return ; } else{ vis[x]=1; ...
/* * vpif_release: This function deletes buffer queue, frees the buffers and * the vpif file handle */ static int vpif_release(struct file *filep) { struct vpif_fh *fh = filep->private_data; struct channel_obj *ch = fh->channel; struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX]; if (mutex_lock_interrupti...
Golf can make you deaf, according to an article in the British Medical Journal. My first thought when I heard this, courtesy of a hilarious article in Scientific American by Steve Mirsky, was that it must be the screams of frustration. Actually no, it’s the 112 decibel BANG! produced by a certain titanium driver 1.7 me...
def apply(self, input_data): return self.signal_function(input_data, *self.function_parameters_tuple, **self.sig_kwargs_dict)
Technical Feasibility of Glucose Oxidase as a Prefermentation Treatment for Lowering the Alcoholic Degree of Red Wine In the present work, the use of the glucose oxidase/catalase enzymatic system was evaluated as an alternative to decrease glucose concentration and eventually produce a reduced-alcohol wine. The effect...
def solve_part1(puzzle_input): rules, _, nearby_tickets = parse_puzzle_input(puzzle_input) error_rate = 0 for ticket in nearby_tickets: invalid_values = (value for value in ticket if not any(rule.is_valid(value) for rule in rules)) error_rate += sum(invalid_values) ...
package cn.jmicro.test; import org.junit.runners.BlockJUnit4ClassRunner; import org.junit.runners.model.InitializationError; import org.junit.runners.model.TestClass; import cn.jmicro.api.classloader.RpcClassLoader; public class JMicroJUnitTestRunner extends BlockJUnit4ClassRunner{ public JMicroJUnitTestRunner(Cla...
President Trump spoke about religious freedom at the Celebrate Freedom Concert in Washington D.C. on July 1. (The Washington Post) The war on Christmas came early this year. That is, according to President Trump, who devoted a large portion of his speech at a Celebrate Freedom event at the Kennedy Center on Saturday ...
package com.netflix.discovery.shared.transport; import com.netflix.config.DynamicPropertyFactory; /** * @author <NAME> */ public class DefaultEurekaTransportConfig implements EurekaTransportConfig { private static final String SUB_NAMESPACE = "transport."; private final String namespace; private final ...
Ultrasound-guided vs. palpation-guided techniques for radial arterial catheterisation in infants: A randomised controlled trial BACKGROUND The usefulness of ultrasound-guided techniques for radial arterial catheterisation has been well identified; however, its usefulness has not been completely evaluated in infants un...
import java.util.Scanner; public class Solution { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); long s1 = in.nextLong(); long s2 = in.nextLong(); long k = in.nextLong(); long m = in.nextLong(); long[] ar1 = new long[(int)s1]; long[] a...
def delegate(self, policy: ABCPolicy):
#include "GlowActionLabel.hh" #include <algorithm> #include <iostream> #include <cassert> #include <glow/common/thread_local.hh> #include <glow/objects/Timestamp.hh> #include <mutex> #include <queue> #include <stack> #include <vector> using namespace glow; namespace { struct QueryEntry { int index; Shared...
/** * View shelveset action for a queued build. */ public class ViewShelvesetAction extends QueuedBuildAction { @Override public void doRun(final IAction action) { final IQueuedBuild queuedBuild = getSelectedQueuedBuild(); if (queuedBuild != null) { final TFSRepository repository ...
<reponame>AndreHermanto/sgc-1<gh_stars>1-10 import { Auth, expiredAtKey } from './auth-service'; import { MockRouter } from '../mocks/router.mock'; describe('Auth Service', () => { let authService: Auth; let mockRouter: any; beforeEach(() => { mockRouter = new MockRouter(); authService = n...
BioWare I wasn’t going to write anything about Mass Effect 3 and the Not-So-Great Ending backlash. I really wasn’t. You’re probably as sick of reading about it as I am. What’s more, I’ve been less-than-enthralled with the Mass Effect games. Saying crass things about BioWare’s beloved sci-fi opera and defending the way...
Autumn Pasquale's estate is claiming local police failed to follow the correct procedures in the search for Autumn, therefore "failing" the 12-year-old murder victim and her family. The estate, which is comprised of Anthony Pasquale, Autumn's father, and her two siblings, filed suit against six municipalities, three C...
`Standard' Cosmological model&beyond with CMB Observational Cosmology has indeed made very rapid progress in the past decade. The ability to quantify the universe has largely improved due to observational constraints coming from structure formation Measurements of CMB anisotropy and, more recently, polarization have p...
<gh_stars>1000+ // run-pass // This is what the signature to spawn should look like with bare functions fn spawn<T:Send>(val: T, f: fn(T)) { f(val); } fn f(i: isize) { assert_eq!(i, 100); } pub fn main() { spawn(100, f); }
// Copyright 2013 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" #include "Generic/actors/AWAKEDB.h" #include "Generic/actors/ActorTokenSubsetTrees.h" #include "Generic/xdoc/TokenSubsetTrees.h" #include "Generic/theories/Mention.h" #include "Generic/theories/SynN...
An inductive analytic criterion for flatness We present a constructive criterion for flatness of a morphism of analytic spaces X ->Y or, more generally, for flatness over Y of a coherent sheaf of modules on X. The criterion is a combination of a simple linear-algebra condition"in codimension zero"and a condition"in co...
/* Client side implementation of UDP client-server model https://www.geeksforgeeks.org/udp-server-client-implementation-c/ */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> ...
<reponame>brcolow/candlefx package com.brcolow.candlefx; /** * @author <NAME> */ public enum CurrencyPosition { BEFORE_AMOUNT, AFTER_AMOUNT }
Crystal Palace manager Alan Pardew felt Liverpool would have finished in the top four under Brendan Rodgers this season Alan Pardew feels Liverpool would have finished in the Premier League top four under Brendan Rodgers this season. But Pardew, who is fully aware of the number of 'match winners' in the current Liver...
package config import ( "log" "github.com/caarlos0/env" ) // Config of environment type Config struct { Port string `env:"PORT" envDefault:"3000"` } // Get returns the environment configs func Get() (cfg Config) { err := env.Parse(&cfg) if err != nil { log.Fatal(err) } return }
Recently at Arkency I was working on a task, on which it was very important to ensure that the right cookies are saved with the specific expiration time. Obiovusly I wanted to test this code to prevent regressions in the future. Controller tests? Firstly I thought about controller tests, but you can use only one cont...
<reponame>zaptim/django-asana<gh_stars>1-10 import requests import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @o...
<reponame>nibbleninja/minecraft-discord-bot export class RealmSettings { maximumPlayerPlots:number = 1; defaultPlotShape:string = "square"; defaultPlotSizeMeters:number = 64; // These entries should only ever exist once per discord server, // more than that will break other logic (enforced in...
def make_random_text(): words_list = [ MakeWord(file_path.value).random_word() for file_path in Thesaurus ] return str(' '.join(words_list))
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from unittest import mock import torch from botorch.posteriors.torch import TorchPosterior from botorch.sampling.sto...
BEIJING (Reuters) - Three years ago, the mayor of China’s sprawling southwestern city of Chongqing was asked to describe how well he got along with his then boss, the ambitious Communist Party leader Bo Xilai. Chongqing mayor Huang Qifan speaks during a news conference in Beijing in this March 4, 2011 file photograph....
<gh_stars>0 # -*- coding: utf-8 -*- from mamonsu.plugins.pgsql.plugin import PgsqlPlugin as Plugin from .pool import Pooler class PgWaitSampling(Plugin): AgentPluginType = 'pg' # queries for zabbix agent query_agent_discovery_all_lock = "SELECT json_build_object ('data',json_agg(json_build_object('{#ALL_...
package mysorts // BucketSort implement bucket sort by aux array, // please be aware that it expect input array with Uniform distribution to get liner O(n) func BucketSort(in []int) { if len(in) <= 1 { return } bucketsCount := len(in) // find max value from in k := findMaxElement(in) piece := k / bucketsCou...
/** * Provides facilities to create and re-use {@link VirtualColumn} definitions for dimensions, filters, and filtered * aggregators while constructing a {@link DruidQuery}. */ public class VirtualColumnRegistry { private final ExprMacroTable macroTable; private final RowSignature baseRowSignature; private fin...
n = int(input()) d = {} e = 10**4 for i in range(max(1, n-e), n+1): cnt = i + sum([int(x) for x in str(i)]) try: d[cnt].append(i) except KeyError: d[cnt] = [i] ans = len(d.setdefault(n, [])) print(ans) if ans: print(*sorted(d[n]), sep='\n')
def write_data(self, data): ofs = 0 size = len(data) try: while ofs < size: wr_size = self.wrbuf_chunksize if wr_size > size - ofs: wr_size = size - ofs n = self._write(data[ofs : ofs + wr_size]) if n <= 0: raise usbdev_error("USB bulk write error") ...
from datetime import date import pandas def transform_coinbase_data(historical_df: pandas.DataFrame): """ Given a pandas.DataFrame containing timeseries data, convert the timestamps to dates of ISO format and sort by date :param historical_df: Timeseries data retrieved from Coinbase API """ hist...
Quantitation of plasma testosterone by improved competitive protein-binding technique. A method is described for quantitation of testosterone in plasma from females and males. The principal operations of extraction, chromatographic fractionation, and competitive protein-binding assay can be completed for eight duplica...
Analysis of Stage-Specific Protein Expression during Babesia Bovis Development within Female Rhipicephalus Microplus. Arthropod-borne protozoan pathogens have a complex life cycle that includes asexual reproduction of haploid stages in mammalian hosts and the development of diploid stages in invertebrate hosts. The ab...
<gh_stars>1-10 package policy import "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" //Contains Check if strint is contained in a list of string func containString(list []string, element string) bool { for _, e := range list { if e == element { return true } } return false } func isRunningPod(obj unstr...
def fix_dev_edge_labels(self) -> "AMSentence": labels = self.get_edge_labels() return AMSentence([Entry(word.token, word.replacement, word.lemma, word.pos_tag, word.ner_tag, word.fragment, word.lexlabel, word.typ, word.head, labels[i], word.aligned,word.range) ...
// NewSecretManager returns a new SecretManager. func NewSecretManager(log logr.Logger, cacheClient client.Client, apiReader client.Reader) *SecretManager { return &SecretManager{ log: log.WithName("secret_manager"), client: cacheClient, apiReader: apiReader, } }
w = input() G = [] q = 0 for x in w: if not ([x, True] in G or [x, False] in G): G.append([x, True]) else: if [x, True] in G: G[G.index([x, True])][1] = False else: G[G.index([x, False])][1] = True for h in range(len(G)): q += G[h][1] #print(G) if q == 0: ...
// BBox() returns the smallest box which encloses all the points of the PolyLine func (pl PolyLine) BBox() BBox { var rv BBox if Paranoid && len(pl) <= 0 { log.Fatalf("asked to create an empty bounds box\n") } rv.MinX = pl[0][0].X rv.MinY = pl[0][0].Y rv.MaxX = pl[0][0].X rv.MaxY = pl[0][0].Y for i := 0; i < ...
/* * Copyright (c) 2015 Kaprica Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
package seeder import ( "math/rand" "time" "github.com/go-goyave/goyave-blog-example/database/model" "goyave.dev/goyave/v3/database" ) const ( // ArticleCount the number of articles generated by the User seeder ArticleCount = 40 ) // Article seeder for articles. Generate and save articles with a random // aut...
#include <bits/stdc++.h> using namespace std; const int MAXN = 55; int t, n, m; char s[MAXN][MAXN]; bool ans, flg[MAXN][MAXN]; int dir[] = {0, -1, 0, 1, 0}; void dfs(int i, int j) { flg[i][j] = true; for(int k = 0; k < 4; ++k) { int ii = i + dir[k]; int jj = j + dir[k + 1]; if(1 <= ii and ii <= n and 1 <= jj...
import * as THREE from 'three' import SpriteText from 'three-spritetext'; import OrbitControls from 'three-orbitcontrols'; import {ViewComponent} from './view.component'; import {CsvParser, AstrometryRecord} from './csv-parser'; import {linspace} from './utils' export class ThreeDView implements ViewComponent{ /*...
<reponame>nickgros/SynapseWebClient<filename>src/main/java/org/sagebionetworks/web/client/widget/accessrequirements/createaccessrequirement/CreateAccessRequirementStep1ViewImpl.java<gh_stars>10-100 package org.sagebionetworks.web.client.widget.accessrequirements.createaccessrequirement; import org.gwtbootstrap3.client...
def _get_enable_toolkit(self): from warnings import warn warn("Use of the enable_toolkit attribute is deprecated.") return self.toolkit
#pragma once class ShaderResource { public: ShaderResource(); ~ShaderResource(); HRESULT Init( const std::wstring & name, const UINT & width = 0, const UINT & height = 0, const UINT& arraySize = 1, const DXGI_FORMAT& format = DXGI_FORMAT_R8G8B8A8_UNORM); void Bind(const UINT & rootParameterIndex, ID3D1...
main = getLine >>= putStr . solve solve [x, y, z, w] | x == y && y == z = "Yes" | y == z && z == w = "Yes" | otherwise = "No"
<filename>core/elements/src/Loading/index.tsx import React, {useContext} from 'react'; import {ActivityIndicator} from 'react-native'; import {useTheme} from '@sbf-providers/theme'; const Loading = () => { const theme = useTheme(); return <ActivityIndicator size="large" color={theme.colors.primary} />; }; export...
// Copyright 2015 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 buildutil // This logic was copied from stringsFlag from $GOROOT/src/cmd/go/build.go. import "fmt" const TagsFlagDoc = "a list of `build tags` to con...
// File 4 : Autoboxing and Unboxing class AutoBoxingUnboxing { public static void main(String[] args) { /* // Autoboxing Integer i = 454; // Integer i = new Integer(454); System.out.println("i -> " + i); Double d = 454.545; // Do...
/** * resume the actual playback * * @return a boolean. true if the command was executed, else if the command failed */ public boolean resume() { if (this.suppressed) { this.postSuppressionAction = PostSuppressionAction.NONE; return true; } return this.spotifyAPICalls.resume(); }
WASHINGTON — The security firm formerly known as Blackwater has agreed to pay a fine of $7.5 million to avoid US prosecution for smuggling arms, the Justice Department said in a statement Tuesday. The company, now known as Academi, will pay the fine in addition to a previously agreed $42 million settlement with the St...
/* * Post-process DBCS state in the buffer. * This has two purposes: * * - Required post-processing validation, per the data stream spec, which can * cause the write operation to be rejected. * - Setting up the value of the all the db fields in ea_buf. * * This function is called at the end of every 3270 writ...
package com.damon.cqrs.sample.red_packet; import com.alibaba.fastjson.JSONObject; import com.damon.cqrs.event.EventCommittingService; import com.damon.cqrs.sample.red_packet.command.RedPacketCreateCommand; import com.damon.cqrs.sample.red_packet.command.RedPacketGetCommand; import com.damon.cqrs.sample.red_packet.comm...
/** * Determine if this event is one that starts a feed flow * @param event the event * @param checkRemoteSourceFlowFileId flag to check additional attributes on the flow to verify its not linked to another flow file * @return */ public static boolean isStartingFeedFlow(ProvenanceEventRecord e...
// appendTags fills the colBufs for the tag columns with the tag value. func (t *table) appendTags() { for j := range t.cols { v := t.tags[j] if v != nil { if t.colBufs[j] == nil { t.colBufs[j] = make([]string, t.l) } colBuf := t.colBufs[j].([]string) if cap(colBuf) < t.l { colBuf = make([]stri...
def isRecordInPDS(self, record, subject): er_rh = ServiceClient.get_rh_for( record_type=ServiceClient.EXTERNAL_RECORD) pds_records = er_rh.get( external_system_url=self.data_source.url, path=self.path, subject_id=subject.id) if record and pds_recor...
Roger Federer has dropped to number five in the men's world rankings, his lowest position in a decade. The 31-year-old Swiss fell two places after being knocked out of Wimbledon in the second round by Sergiy Stakhovsky. Briton Andy Murray, 26, won Wimbledon but stays second, behind number one Novak Djokovic, who was ...
package arpcnet import ( "code.cloudfoundry.org/bytefmt" "github.com/rektorphi/arpcnet/rpc" ) // A Node is the runtime data structure for a node in the Arpc network. type Node struct { group *rpc.Address core *rpc.Core gin *GRPCServer closeables []func() } // NewNode creates a Node from the p...