content stringlengths 10 4.9M |
|---|
Eli Manning was unaware the Giants had cut butter-fingered receiver Preston Parker on Tuesday until Manning showed up at practice — and Parker didn’t.
“No one told me,” Manning admitted to reporters, arching his eyebrows as he spoke.
No one told the rest of Manning’s teammates, either, but that didn’t keep the messag... |
/**
* @deprecated Use {@link OperatorTestBuilder} instead.
*/
@Deprecated
public class LegacyOperatorTestBuilder {
private PhysicalOpUnitTestBase physicalOpUnitTestBase;
private PhysicalOperator popConfig;
private String[] baselineColumns;
private List<Map<String, Object>> baselineRecords;
private List<Li... |
<reponame>20Koen02/adventofcode
import { Challenge } from '../Challenge';
import { SolverBase } from '../SolverBase';
interface Range {
min: number;
max: number;
}
interface Ticket {
fields: Map<string, Range[]>;
myTicket: number[];
nearbyTickets: number[][];
}
interface Field {
index: number;
value: num... |
import {DEFAULT_TOLERANCE, Point} from "@utils";
import {CadArc, CadLine, CadLineLike, CadMtext, DEFAULT_LENGTH_TEXT_SIZE} from "..";
import {getVectorFromArray} from "../cad-utils";
import {CadData} from "./cad-data";
import {CadEntities} from "./cad-entities";
export type PointsMap = {
point: Point;
lines: C... |
When I travel via plane, I try and pack as many things into my carry-on as possible. Why pay that $50 check-in baggage fee if I can avoid it, right? Well, that may soon be ending. Some airlines like United, are planning to charge fees for using the overhead compartment.
Is it just me or does the air travel experience ... |
import argparse
import json
import joblib
from pathlib import Path
import rlkit.torch.pytorch_util as ptu
from rlkit.core.eval_util import get_generic_path_information
from rlkit.torch.tdm.sampling import multitask_rollout
from rlkit.core import logger
if __name__ == "__main__":
parser = argparse.ArgumentParser(... |
<filename>mtsj/core/target/generated-sources/java/com/devonfw/application/mtsj/dishmanagement/dataaccess/api/QDishEntity.java
package com.devonfw.application.mtsj.dishmanagement.dataaccess.api;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core... |
<reponame>rxap-mirror/packages
import {
ActivatedRouteSnapshot,
CanActivate,
CanActivateChild,
RouterStateSnapshot,
UrlTree
} from '@angular/router';
import {
Injectable,
Inject
} from '@angular/core';
import { OAuthService } from './o-auth.service';
@Injectable({ providedIn: 'root' })
export class OAuth... |
For the Record
I very much enjoyed the humorous, informative discussion on whether we should use polychotomous or polytomous as the adjective to describe a many-category variable (Weiss, 1994). As a typical non-American speaker of English, however, I was not immediately ready to accept the dictum of Webster’s New Inte... |
<filename>src/models/member.model.ts<gh_stars>1-10
import { Document, Model, model, Types, Schema, Query } from 'mongoose'
// Typescript Interface
export interface IMember extends Document {
id: Number
}
// Mongoose Schema
export const MemberSchema = new Schema({
id: {
type: Number,
required: true,
},
}... |
import math
def get_roots(a, b, c):
if a == 0:
if b == 0:
return []
return [-c / b]
r = b * b - 4 * a * c
if r < 0:
return []
elif r == 0:
x0 = -b / (2 * a)
return [x0]
x1, x2 = (-b - math.sqrt(r)) / (2 * a), (-b + math.sqrt(r)) / (2 * a)
re... |
def make_mysql_url(username: str, password: str, dbname: str,
driver: str = "mysqldb", host: str = "localhost",
port: int = 3306, charset: str = "utf8") -> str:
return "mysql+{driver}://{u}:{p}@{host}:{port}/{db}?charset={cs}".format(
driver=driver,
host=host,
... |
import { ApplicationScope } from "./application.scope";
import { CoreScope } from "./core.scope";
import { PlatformScope } from "./platform.scope";
const CommonScope = {
APPLICATION: new ApplicationScope(),
PLATFORM: new PlatformScope(),
CORE: new CoreScope(),
}
export { CommonScope, ApplicationScope, PlatformS... |
/**
* This test creates a table with all supported datatypes aqnd ensures
* that bound embedded and network server return the identical datatypes
* for those datatypes. DERBY-5407
* @throws SQLException
*/
public void testColumnDatatypesOfAllDataTypesInSystemCatalogs() throws SQLException {
int totalNumOfC... |
//
// Track functions downstream in the call-chain from a wrapon_fn
//
forv_Vec(CallExpr, call, gCallExprs) {
if (FnSymbol* fn = call->resolvedFunction()) {
if (fn->hasFlag(FLAG_ON_BLOCK) && !fn->hasFlag(FLAG_LOCAL_ON)) {
std::set<FnSymbol*> downstream;
collectUsedFnSymbols(call, downstream);... |
Wahlburgers is not just a fast food outlet - it doubles as a sports bar, and despite its celebrity pedigree, the chain founded by the Wahlberg brothers (chef Paul, actor Mark and former New Kid Donnie ) it has a family-restaurant kind of backstory.
Located at the base of the SoHo Hotel Metropolitan , it's positioned t... |
"Lassie" in the boys locker room Production Go behind the scenes on the 1988 Family movie starring Bob Hoskins, Christopher Lloyd, Charles Fleischer More Cast
We believe the following info is all legit. If it's bogus or you have additional info, please update us.
Rewind Archive Joel Silver's cameo as the director of ... |
#include<stdio.h>
int main(void){
char str[100001];
scanf("%100000s",str);
int array[]={-1,-1};
int i,j;
//文字列の長さ
for(j=0;str[j]!='\0';j++){
}
for(i=0;i<j;i++){
if(str[i]==str[i+1]){
array[0]=i+1,array[1]=i+2;
// printf("%d %d\n",array[0],array[1]);
break;
}else if(str[i]==s... |
// Note: It is possible to orphan a key if it is removed before deleting
// Update this once keymaster APIs change, and we have a proper commit.
static void commit_key(const std::string& dir) {
while (!android::base::WaitForProperty("vold.checkpoint_committed", "1")) {
LOG(ERROR) << "Wait for boot timed out... |
// Set the min and max for the segments
func (d *digLevels) InitLevels(min, max, th int) {
d.min = min
d.max = max
for _, sl := range d.segLevels {
sl.min.Init(min)
sl.max.Init(max)
sl.threshold = thresholdPercent(min, max, th)
}
} |
import { Calculator } from './Calculator'
export class Fractal {
private readonly canvas: HTMLCanvasElement
private readonly calculator: Calculator
private x: number = 0.5
private y: number = 0
constructor(canvas: HTMLCanvasElement, calculator: Calculator) {
this.canvas = canvas
this.calculator = ca... |
/* Delete all "trash" nodes and values */
void hashtab_real_delete(struct hashtab_t *tab)
{
struct hashtab_node *old_node;
struct hashtab_node *node;
struct hashtab_node *del_node;
int del_flg;
for (size_t i = 0; i < tab->tab_size; i++) {
old_node = NULL;
node = tab->nodes[i];
... |
<reponame>wusshuang/vue-ts
export interface TestState {
testMessage: string
} |
import sys
class CatchOutErr:
def __init__(self):
self.value = ''
def write(self, txt):
self.value += txt
catchOutErr = CatchOutErr()
sys.stderr = catchOutErr
from tensorflow.keras.preprocessing import image as kerasimg
from tensorflow.keras.models import load_model
import os
import numpy as np... |
Phenomenological Reduction and Emergent Design: Complementary Methods for Leadership Narrative Interpretation and Metanarrative Development
The author's intent in this paper is to discuss new methods for conducting research on and connecting the works of chaos and complexity theorists with interpretive, hermeneutical,... |
<reponame>tungyingwaltz/components<filename>src/material/schematics/ng-update/data/input-names.ts
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {InputNameUp... |
/// Run this server and a signal to initiate graceful shutdown.
pub async fn run_with_graceful_shutdown(
self,
ep: impl IntoEndpoint,
signal: impl Future<Output = ()>,
) -> IoResult<()> {
let ep = Arc::new(ep.into_endpoint().map_to_response());
let mut acceptor = self.accepto... |
def single_point_crossover(parent_1: Chromosome, parent_2: Chromosome):
index = random.randrange(1, len(parent_1.genes))
child_1_genes = parent_1.genes[:index] + parent_2.genes[index:]
child_2_genes = parent_2.genes[:index] + parent_1.genes[index:]
child_1 = Chromosome(genes=child_1_gene... |
// Ensure will start/stop/continue the server loops defined in the
// configuration.
func (f *Frontend) Ensure(ctx context.Context, cfg *config.Config) error {
f.mu.Lock()
defer f.mu.Unlock()
if f.mu.loops == nil {
f.mu.loops = make(map[string]*balanceLoop)
}
if f.mu.latch == nil {
f.mu.latch = latch.New()
}
... |
<reponame>bmocanu/comic-hero
package serve
import (
"comic-hero/config"
"comic-hero/model"
"comic-hero/store"
"fmt"
"github.com/gorilla/feeds"
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"
"html"
"io"
"net/http"
"strconv"
"time"
)
func getRss20Feed(response ... |
def gui():
with open('clips.json', 'r') as clips:
clipboardContent = json.load(clips)
app = QApplication([])
window = QWidget()
layout = QVBoxLayout()
for i in clipboardContent:
clipboardEntry = QPushButton(i)
clipboardEntry.clicked.connect(lambda:set_current_entry(clipboardE... |
package com.auto.quartz;
import com.auto.common.job.ScanWorkJob;
import com.auto.common.struct.IStartUpClass;
import lombok.extern.slf4j.Slf4j;
import org.quartz.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework... |
<gh_stars>0
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode() {}
* ListNode(int val) { this.val = val; }
* ListNode(int val, ListNode next) { this.val = val; this.next = next; }
* }
*/
class Solution {
public ListNode addTwoNumb... |
def auth_post(username: str, password: str = None):
from ..app import bcrypt
session = Session()
account = (
session
.query(User)
.filter(User.username == username)
.filter(User.deleted != True)
.one_or_none()
)
if account and not account.passw... |
// SplitPathParts splits path string at . while ignoring string literals enclosed in quotes (".") and returns an array //
func SplitPathParts(path string) (pathParts []string, err error) {
csv := csv.NewReader(strings.NewReader(path))
csv.Comma = '.'
csv.LazyQuotes = true
csv.FieldsPerRecord = -1
parts, err := csv... |
<gh_stars>0
#!/usr/bin/python3
def iterate(board, rows, cols):
for r in range(0, rows):
for c in range(0, cols):
if board[r][c] == ".":
continue
numAdjacent = numSurrounding(board, rows, cols, r, c)
if board[r][c] == "L" and numAdjacent == 0:
... |
package notify
import (
"encoding/json"
"fmt"
"github.com/drone/drone/shared/model"
)
const (
gitterEndpoint = "https://api.gitter.im/v1/rooms/%s/chatMessages"
gitterStartedMessage = "*Building* %s, commit [%s](%s), author %s"
gitterSuccessMessage = "*Success* %s, commit [%s](%s), author %s"
gitterFailu... |
/**
* Show the given tooltip on the component with the given anchorKey with the specified offsets
* from the given position. If there are multiple components with this key, the tooltip will be
* shown on the first one that is found in a breath-first order.
*
* @deprecated @see {@link #showTooltip(Compone... |
import { Component } from "./Component.ts";
type Constructor<T = {}> = new (...args: any[]) => T;
export enum EntityStatus {
None = 0,
IsFromPool = 1,
IsRegister = 1 << 1,
IsComponent = 1 << 2,
IsCreate = 1 << 3,
}
export class Entity {
public instanceId: number = 0;
public id!: number;
protected _... |
On the set representation fop, variances of fuzzy random vectors
In this paper, the author proposes the concept of variances of fuzzy random vectors(FRVCs) and investigates some of their properties, where FRVCs are considered as vague perceptions of random vectors and hence they have intrinsically both properties of v... |
#include "shaderapi/ishaderutil.h"
#include "shadermanagervk.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
// VK_TODO:
// a lot of the VkBlendOps and VkBlendFactors in this file are probably incorrect,
// or not equivalent to their dx counterparts.
//----------... |
def recognize(models: dict, test_set: SinglesData):
warnings.filterwarnings("ignore", category=DeprecationWarning)
probabilities = []
guesses = []
raise NotImplementedError |
A Case Report of Home-Based Cognitive-Behavioural Treatment for Late-Onset Post-Traumatic Stress Disorder, Triggered by Mask-Wearing in the Context of the COVID-19 Pandemic
A small but clinically significant number of people experience delayed-onset Post-traumatic stress disorder (PTSD); symptoms of trauma years after... |
<reponame>nearprotocol/near-explorer
export * from "../../common/src/index";
|
<filename>src/com/jspiders/studentsapp/servlets/FirstServlet.java
package com.jspiders.studentsapp.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet... |
.
Magnetic resonance imaging has proved to be the best technique to visualise the sella and juxtasellar area and it is used successfully to evaluate children with hypopituitarism or other endocraniological disorders in this area. The Authors present two cases of "empty sella syndrome", both characterized by growth hor... |
/**
* Implementation of interface config behaviour for server devices.
*/
public class ServerInterfaceConfig
extends BasicServerDriver
implements InterfaceConfig {
private final Logger log = getLogger(getClass());
private static final boolean RATE_LIMIT_STATUS = false;
private static fin... |
<filename>src/lib/lttng-providers/wifi_telemetry_trace.hpp<gh_stars>1-10
#ifndef __WIFI_TELEMETRY_TRACE_HPP__
#define __WIFI_TELEMETRY_TRACE_HPP__
struct WifiTelemetryTraceProvider
{
/**
* @brief Registers all Tracelogging-based providers with LLTNG. This must
* be called prior to generating any tracelo... |
import {
TableDataHorizontalBorder,
TableDataHorizontalBorderStyle,
TableDataVerticalBorder,
TableDataVerticalBorderStyle,
} from "../style"
export const decorateVerticalBorder = (
borders: TableDataVerticalBorder[]
): Decorator<TableDataVerticalBorderStyle> => (style) => {
const vertical = { .... |
/*-------------------------------------------------------------------------
* Function: dump_dims
*
* Purpose: Dump the dimensions handed to it in a comma separated list
*
* Return: void
*-------------------------------------------------------------------------
*/
void
h5tools_print_dims(h5tools_str_... |
/**
* Exception thrown from {@link ImmutableMediaType#fromString(String, MediaRangeSyntax)} in case of
* encountering an invalid media type specification String.
*/
public class InvalidMediaTypeException extends IllegalArgumentException {
private static final long serialVersionUID = -2107062439428302429L;
privat... |
#include<stdio.h>
int main()
{
int scores[6], wrong[6], hack, unhack,points[6];
double temp1,temp,final_scores;
int i,j,k;
for(i=0;i<5;i++){
scanf("%d",&scores[i]);
}
for(i=0;i<5;i++){
scanf("%d",&wrong[i]);
}
scanf("%d %d",&hack,&unhack);
... |
Control theory meets software engineering: the holonic perspective
One of the main challenges towards a software-based theory of control consists in finding an effective method for decomposing monolithic event-based interactive applications into modules. The task is challenging since this requires in turn to decompose... |
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
#define ll unsigned long long
#define cosp(a) cout<<a<<" "
#define conl(a) cout<<a<<'\n'
#define rep(i,s,e) for(i=s;i<e;i++)
#define nrep(i,s,e) for(i=s;i>=e;i--)
#define pb push_back
#define pf push_front
#define pob pop_b... |
<reponame>gdsglgf/tutorials<filename>python/pillow/try_image.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
path = 'lena.jpg'
if len(sys.argv) >= 2:
path = sys.argv[1]
print sys.argv
img = Image.open(path) #打开图像
gray = img.conv... |
import { registerDecorator, ValidationArguments, ValidationOptions } from '@jovotech/output';
import { Directive } from '../../models';
function directiveCallback(desiredType: string): (directive: Directive) => boolean {
return (directive) => directive.type === desiredType;
}
export function IsValidDirectivesArray(... |
The blood–brain barrier in health and disease: Important unanswered questions
The blood vessels of the central nervous system tightly control the movement of ions, molecules, and cells between the blood and tissue. This “blood–brain barrier” is vital for neural homeostasis and protection. This review discusses current... |
/**
* Paint the current tile zoom level and offset ... very ugly
*
* @param canvas canvas to draw on
*/
private void paintZoomAndOffset(final Canvas canvas) {
int pos = ThemeUtils.getActionBarHeight(context) + 5 + (int)de.blau.android.grid.MapOverlay.LONGTICKS*3;
Offset o = getOpenStreetMapTilesOverlay()... |
/**
* This controller enables the widget to send the save action.
*
* @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a>
*/
public class ConfluenceExternalObjectsApiController extends BaseRestApiController {
private static final String BLOG = "blog";
private s... |
<reponame>rage/quizzes
import * as React from "react"
import styled from "styled-components"
import { Stepper, StepLabel, Step } from "@material-ui/core"
import { useTypedSelector } from "../../state/store"
import ThemeProviderContext from "../../contexes/themeProviderContext"
interface StyledStepperProps {
provided... |
if __name__ == "__main__":
x, y, z = map(int, input().split())
ab = max(0, (x+y-z)//2)
bc = max(0, (y+z-x)//2)
ac = max(0, (x+z-y)//2)
if ab + ac != x or ab + bc != y or ac + bc != z:
print('Impossible')
else:
print(ab, bc, ac) |
/*
* Copyright (C) 2012-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... |
/* Horizontal boxes also have visible size.
* Visible size are bigger than real size.
* For example 0 width boxes may contain text.
* At creation time, the visible size is set to the values of the real size.
*/
synctex_status_t _synctex_setup_visible_box(synctex_node_t box) {
if (box) {
switch(box->class->ty... |
/// <summary>
/// Get the new nearest power of two based on the given value.
/// </summary>
/// <param name="value">Number value.</param>
/// <returns>Returns the nearest power of two.</returns>
inline Size NP2(Size value) {
value--;
for (Size bit = 1; bit < Metadata::Device::Bit; bit *= 2) {
value |= val... |
/**
* Return the fractional total weight of a subgraph relative to its supergraph
* <p>Note: The subgraph <b>must be fully contained</b> within the supergraph!</p>
*
* @param subgraph A subgraph
* @param supergraph Supergraph of graph
* @return relative overlap
*/
@Override
public double comput... |
// initBlockChain initializes BlockChain with preselected DB.
func initBlockChain(cfg config.Config, log *zap.Logger) (*core.Blockchain, error) {
store, err := storage.NewStore(cfg.ApplicationConfiguration.DBConfiguration)
if err != nil {
return nil, cli.NewExitError(fmt.Errorf("could not initialize storage: %w", e... |
def _sum_solids_div(fros, surf, n_jobs):
parallel, p_fun, _ = parallel_func(_get_solids, n_jobs)
tot_angles = parallel(p_fun(surf['rr'][tris], fros)
for tris in np.array_split(surf['tris'], n_jobs))
return np.sum(tot_angles, axis=0) / (2 * np.pi) |
def write_wkb_raster(bands, width, height, affine, srid=4326):
wkb = b''
+---------------+-------------+------------------------------+
| endiannes | byte | 1:ndr/little endian |
| | | 0:xdr/big endian |
+---------------+-------------+---... |
// SetCurrentTournament - Sets the current active tournament in the database
func (s *TournamentService) SetCurrentTournament(name string) error {
s.log.Infof("setting current tournament to '%s'", name)
if err := s.db.Model(models.Tournament{}).Where("1=1").UpdateColumn("current", false).Error; err != nil {
s.log.E... |
def rotateLeft(self, node: Node) -> Node:
tempRight = node.rightChild
t = tempRight.leftChild
tempRight.leftChild = node
node.rightChild = t
node.height = max(self.calcHeight(node.leftChild),self.calcHeight(node.rightChild)) + 1
tempRight.height = max(self.calcHeight(temp... |
// String contains
// Will first convert to string, so may get unexpected results
//
func ContainsFunc(s *vm.State, lv, rv vm.Value) (vm.BoolValue, bool) {
left, leftOk := vm.ToString(lv.Rv())
right, rightOk := vm.ToString(rv.Rv())
if !leftOk || !rightOk {
return vm.BoolValueFalse, false
}
if left == "" || rig... |
// 47496 - Explode, Ghoul spell for Corpse Explosion
class spell_dk_ghoul_explode : public SpellScriptLoader
{
public:
spell_dk_ghoul_explode() : SpellScriptLoader("spell_dk_ghoul_explode") { }
class spell_dk_ghoul_explode_SpellScript : public SpellScript
{
PrepareSpellScript(spe... |
def distance_m(coords, lat, lon):
if coords is None:
return None
else:
d = distance.distance((lat, lon), (coords.y, coords.x)).m
return d |
/**
*
* @author Larissa Bouwknegt
*/
@Component
@PropertySource("classpath:application.properties")
public class IndicationFetcher implements AbstractWebScraper{
private DrugDao drugDao;
private String url;
private IndicationFetcher(@Value("${farmaco.indication.site}") String url){this.url=url;}
@A... |
.
OBJECTIVE
To compare the contents of iridoid in the different processed products from Gardenia jasminoides.
METHOD
Contents of geniposide and genipin gentiobioside in products were determined simultaneously by HPLC. A kromasil C18 column at 35 degrees C was used with the acetonitrile-0.3% formic acid anhydrous (12... |
package holtz.cedric.gitrepo.view.repository;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro... |
<reponame>wooshifu/Blog<filename>backend/src/app/__init__.py<gh_stars>0
from .app import app
from .config import config
app.config.from_mapping(config)
from .db import db # noqa: E402
# noinspection PyUnresolvedReferences
import models # noqa: E402,F401
# noinspection PyUnresolvedReferences
import middlewares # ... |
<filename>src/bridge/card/card-actions.ts
import { bindable,
bindingMode,
customElement,
containerless,
TaskQueue,
autoinject } from 'aurelia-framework';
import * as util from '../util';
@customElement('mdc-card-actions')
@containerless()
@autoinject()
export class MdcCardA... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int sure = 0;
int solutions = 0;
Scanner scanner = new Scanner(System.in);
int problems = Integer.parseInt(scanner.nextLine());
String[] opinions = new String[problems];
for (int ... |
use std::fmt;
use std::ops;
use std::time::Duration;
use super::clock;
#[derive(Clone, Copy, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct Instant {
std: std::time::Instant,
}
impl Instant {
pub fn now() -> Instant {
clock::now()
}
pub fn from_std(std: std::time::Instant) -> Instant {
... |
/**
* Check if email already exists or not.
*
* @param isEmailAlreadyExist is email already exists?
*/
public void checkEmail(boolean isEmailAlreadyExist){
List<String> errors = new ArrayList<>();
if(isEmailAlreadyExist) errors.add(emailValue + getString(R.string.error_email_already_... |
// (C) 2021-2022 GoodData Corporation
import { IDashboardLayout, IDashboardLayoutSection, IDashboardLayoutItem } from "@gooddata/sdk-model";
import { IFluidLayoutCustomizer } from "../customizer";
import { ExtendedDashboardWidget, ICustomWidget } from "../../model";
import { DashboardLayoutBuilder } from "../../_stagin... |
/**
* Monitors the available bandwidth and the sending bitrate to the owning
* endpoint, and if it detects that we are oversending, disables the highest
* simulcast layer.
*
* @author Boris Grozev
*/
public class AdaptiveSimulcastBitrateController
extends BitrateController
implements BandwidthEstimator.Li... |
// Execute runs the given pipeline on Google Cloud Dataflow. It uses the
// default application credentials to submit the job.
func Execute(ctx context.Context, p *beam.Pipeline) error {
project := *gcpopts.Project
if project == "" {
return errors.New("no Google Cloud project specified. Use --project=<project>")
}... |
## wee need to find the even length sub array such that the
##val sum(even_indexes) - sum(odd_indexes) is maximized
def kadane_alg(a):
max_so_far=float("-inf")
max_ending_here=0
for i in range(len(a)):
max_ending_here=max_ending_here+a[i]
if max_so_far < max_ending_here:
... |
// Copyright 2021 Gnosis Ltd.
// SPDX-License-Identifier: Apache-2.0
mod account;
mod block;
pub mod transaction;
// large integers
pub use ethereum_types::{U256, U64};
// special purpose hashes
pub use ethereum_types::{Address, Bloom, H160, H256};
pub type Keccak = H256;
pub type Bytes = Vec<u8>;
pub type BlockN... |
use mox::mox;
use moxie_dom::{
elements::{
forms::button,
text_content::{div, Div},
},
prelude::*,
};
use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)]
pub fn begin() {
console_log::init_with_level(tracing::log::Level::Debug).unwrap();
std::panic::set_hook(Box::new(|info| {
... |
<reponame>mikesbrown/zq
package driver
import (
"errors"
"sync"
"time"
"github.com/brimsec/zq/proc"
"github.com/brimsec/zq/scanner"
"github.com/brimsec/zq/zbuf"
"github.com/brimsec/zq/zqd/api"
"github.com/brimsec/zq/zqe"
)
type MuxResult struct {
proc.Result
ID int
Warning string
}
type MuxOutput st... |
// Copyright (c) 2014 The SurgeMQ Authors. All rights reserved.
//
// 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 ... |
/**
* Check if the node should be ignored, depending on the given flags and the context.
*/
private boolean ignoreNode(Node node, ASTStatement loopBody, IgnoreFlags... ignoreFlags) {
if (ignoreFlags.length == 0) {
return false;
}
final List<IgnoreFlags> ignoreFlagsList = Ar... |
def register_class(self, cls):
if not _is_mappable_class(cls):
raise ValueError("Class {} does not have an associated mapper.".format(cls.__name__))
self.class_path_cache[cls.__module__ + ':' + cls.__name__] = cls
return cls |
/**
* 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... |
/**
* An end-to-end test for {@link DatastoreV1.Read}.
*
* Write some test entities to datastore and then run a dataflow pipeline that
* reads and counts the total number of entities. Verify that the count matches the
* number of entities written.
*/
@Test
public void testE2EV1Read() throws Exceptio... |
<gh_stars>0
import UserModel from "@domain/app/user/user.model";
import Tokens from "../interface/tokens.interface";
import TokenModel from "@domain/app/token/token.model";
export interface TokenService {
/**
*
* Validate token
*
* @param token
* @return Promise<UserModel>
*
*/
... |
import {Component, OnDestroy, OnInit, Renderer2} from '@angular/core';
import {SessionService} from "../shared/service/session.service";
import {CookieService} from "ngx-cookie-service";
import {environment} from "../../environments/environment";
import {Permissions} from "../auth/model/permissions.model";
@Component(... |
Regulation of human retroviral latency by the NF-kappa B/I kappa B family: inhibition of human immunodeficiency virus replication by I kappa B through a Rev-dependent mechanism.
The cellular transcription factor NF-kappa B stimulates human immunodeficiency virus type 1 (HIV-1) transcriptional initiation, but its role ... |
/**
* The base class for an ID generator. ID generators are selected on a per-table
* basis by the {@link Database} based on an ID generation strategy. The strategy
* selects the first IdGenerator in the strategy that supports the ID property's
* type. The strategy can be overridden by a custom {@link org.xflatd... |
Ottawa Fury FC reported for training Monday, six weeks before the start of the NASL season. There was an abundance of confidence and smiles at Lansdowne as players and coaching staff met on the first day of Ottawa Fury training camp. Fury players will report for medicals on Tuesday, and head to Complexe Branchaud-Brier... |
A Modular Framework for the Life Cycle Based Evaluation of Aircraft Technologies, Maintenance Strategies, and Operational Decision Making Using Discrete Event Simulation
: Current practices for investment and technology decision making in aeronautics largely rely on regression-based cost estimation methods. Although q... |
//
// Object.hpp
//
// Container for objects.
//
#ifndef OBJECT_HPP
#define OBJECT_HPP
#include <vector>
#include "../BasicDatatypes.hpp"
#include "Point2D.hpp"
#include "Polygon2D.hpp"
#include "Box2D.hpp"
#include "../tools/Time.hpp"
namespace datatypes
{
// Represents a tracked object in our environmental mode... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.