content stringlengths 10 4.9M |
|---|
// New returns a new request id middleware.
// It optionally accepts an ID Generator.
// The Generator can stop the handlers chain with an error or
// return a valid ID (string).
// If it's nil then the `DefaultGenerator` will be used instead.
func New(generator ...Generator) context.Handler {
gen := DefaultGenerator
... |
<reponame>seniortesting/sparrow-jvfast<filename>jvfast/jvfast-api/jvfast-service/src/main/java/com/jvfast/module/monitor/model/param/ScheduleJobParam.java
package com.jvfast.module.monitor.model.param;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
@Data
public class ScheduleJobParam {
@NotEm... |
Durability of antegrade synthetic aortomesenteric bypass for chronic mesenteric ischemia.
OBJECTIVE
The optimal treatment (endovascular/open repair, conduit, configuration) for chronic mesenteric ischemia (CMI) remains unresolved. This study was designed to review the outcome of patients with CMI treated with antegrad... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
//
package api
import (
"github.com/mattermost/mattermost-cloud/k8s"
"github.com/mattermost/mattermost-cloud/model"
"github.com/sirupsen/logrus"
)
// Supervisor describes the interface to notify the bac... |
/**
* Add a new edge to the graph. If one or both of the vertices are not in the graph
* this will throw an exception
* @param v1 vertex on one side of the edge
* @param v2 vertex on other side of the edge
* @return the graph
*/
public Graph<K, V> addEdge(Vertex<K, V> v1, Vertex<K, V> v2) ... |
def generate_datum(self, key, timestamp):
uid = super().generate_datum(key, timestamp)
i = next(self._point_counter)
self._datum_kwargs_map[uid] = {'point_number': i}
return uid |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE TemplateHaskell #-}
module Main
where
-- Where a declaration starts with "prop_smoketest_" and has no type sig, it is
-- a Bool that needs to be checked; otherwise we just care that things in here
-- typecheck... |
/**
* Created by Administrator on 2016/12/4.
*/
public class BaseApplication extends Application {
private String navigation_state,navi_delete,navi_all;
private static BaseApplication instance;
@Override
public void onCreate() {
super.onCreate();
instance=this;
}
public Strin... |
/**
* @param action
* @param contentId
* @param collectionId The Id of the collection.
* @param userToken The token of the logged in user.
* @param parameters
* @param handler Response handler
* @throws MalformedURLException
*/
public static void featureMessage(String act... |
Ouverture
Since Week 2 of the Preseason, the 2016 Raiders defense has been struggling with giving up big plays. Over the first 4 weeks, the high-flying offense has been able to keep barely a step ahead and lead the team to 3 victories. In week 5, the Big Plays once again haunted the defense, prompting the clearly conc... |
def redraw_cross_section_regions(self):
figcanvas = self.cross_section
figcanvas.l_lbkg.set_xdata(self._low_bkg)
figcanvas.l_hbkg.set_xdata(self._high_bkg)
figcanvas.l_bc.set_xdata(self._true_centre)
figcanvas.l_lfore.set_xdata(self._low_px)
figcanvas.l_hfore.set_xdata(se... |
<filename>src/status/interfaces/types/statusCheck.type.ts
export type TStatusCheck = {
currentStatus: string;
newStatus: string;
};
|
import Routes from 'src/constants/api/routes';
export const loginApiCaller = async (credentials: {[key: string]: string}): Promise<Response> => {
/** ************ Request configuration ************ */
const reqUrl = Routes.login.url;
const body = {
...credentials,
};
const reqSettings = {
method: '... |
Republican leaders are adding a $75 billion magic asterisk to their Obamacare repeal plan It will help older people in some totally unspecified way. Allegedly.
In an effort to blunt the American Health Care Act’s disastrous effect on older Americans, House Republican leaders are adding a provision that would set aside... |
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <set>
#include <map>
#include <vector>
#include <string>
#include <cmath>
#include <cstring>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <numeric>
#include <unordered_map>
using ... |
/**
* Move this ScriptFamily component to end of body and returns <code>true</code> if done so. This method
* needs to be called from {@link #processEvent(ComponentSystemEvent)} during {@link PostAddToViewEvent} or
* {@link PostRestoreStateEvent}. This has basically the same effect as setting <code>target="body"<... |
/**
* Chat session
*
* @author jexa7410
*/
public abstract class ChatSession extends ImsServiceSession implements MsrpEventListener {
/**
* Subject
*/
private String subject = null;
/**
* First message
*/
private InstantMessage firstMessage = null;
/**
* List of participants
*/
private ListOfP... |
class WorkerSettings:
"""
WorkerSettings class is used to configure worker.
If you are using yatq-worker command line utility, you should
implement custom config by inheriting this class and implementing
`redis_client` method, along with setting `factory_kwargs` and/or
custom `factory_cls`.
... |
/**
* Apply the default csv schema to the provided builder.
*
* @param builder the builder to use for schema configuration
* @return the configured csv schema
*/
public CsvSchema defaultSchemaForBuilder(CsvSchema.Builder builder) {
return builder.
build().
... |
As expected the IEEE has ratified a new Ethernet specification -- IEEE P802.3bz – that defines 2.5GBASE-T and 5GBASE-T, boosting the current top speed of traditional Ethernet five-times without requiring the tearing out of current cabling.
The Ethernet Alliance wrote that the IEEE 802.3bz Standard for Ethernet Amendme... |
// GetWord translation from url.
func GetWord(word string) (*Result, error) {
w := strings.Replace(word, " ", "+", -1)
url := strings.Replace(UrlRequestTemplate, ":w", w, -1)
res := &Result{List: make([]Res, 0), Url: url, Word: word}
doc, err := goquery.NewDocument(url)
if err != nil {
return nil, nil
}
sub, s... |
def _GetFullTableSQL(table, name, delete_where):
if delete_where:
yield 'DELETE FROM %s WHERE %s;' % (name, delete_where)
for sql in table.GetInsertSQLList(name, max_size=2**20,
on_duplicate_key_update=True):
yield sql |
#include "clar_libgit2.h"
void test_repo_getters__is_empty_correctly_deals_with_pristine_looking_repos(void)
{
git_repository *repo;
repo = cl_git_sandbox_init("empty_bare.git");
cl_git_remove_placeholders(git_repository_path(repo), "dummy-marker.txt");
cl_assert_equal_i(true, git_repository_is_empty(repo));
c... |
<filename>pkg/tensorflow/contrib/boosted_trees/proto/learner.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/contrib/boosted_trees/proto/learner.proto
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
tensorflow/contrib/boosted_trees/proto/learner... |
def process_color(self, color):
self.controller.game.receive_color(color)
self.parent.parent.update_stat_frame()
self.parent.parent.update_table_frame()
self.parent.parent.end_turn() |
import { CreatePurchaseDto } from '../../dto/create-purchase.dto';
export class PurchaseCommand {
constructor(public readonly createPurchaseDTO: CreatePurchaseDto) {}
}
|
import pickle
import pandas as pd
from instances.config import MODEL_PATH
class PredictionTools():
def __init__(self):
self.categorization_model = pickle.load(open(MODEL_PATH, 'rb'))
def categorize_product(self, product):
predicted_category = self.categorization_model.predict(pd.Series(p... |
import * as mongoose from 'mongoose';
const Schema = mongoose.Schema;
export const LocalizationSchema = new Schema({
_id: Schema.Types.ObjectId,
city: String,
type: {
type: String,
enum: ['Point'],
required: true
},
geometry: {
coordinates: {type: [Number], index: '2... |
<gh_stars>1-10
import { BaseSeeder, Seeder } from '../../../../src';
import { SecondSeederCircularMock } from './SecondSeederCircularMock';
@Seeder({ runsBefore: [SecondSeederCircularMock] })
export class FirstSeederCircularMock implements BaseSeeder {
public seed(): void {
// pass
}
}
|
IN-VITRO ANTIOXIDANT, LIPID PEROXIDATION INHIBITION AND LIPID PROFILE MODULATORY ACTIVITIES OF HB CLEANSER®BITTERS IN WISTAR RATS
Background: HB cleanser® bitters is a polyherbal formulation with six medicinal plants as phytoconstituents which is being sold to the public for the treatment of various diseases. Hence, i... |
<gh_stars>1-10
use cdbc::io::Encode;
#[derive(Debug)]
pub struct Sync;
impl Encode<'_> for Sync {
fn encode_with(&self, buf: &mut Vec<u8>, _: ()) {
buf.push(b'S');
buf.extend(&4_i32.to_be_bytes());
}
}
|
Steamforged Games launched its Resident Evil 2: The Board Game Kickstarter on September 26, 2017.
Within one hour, the project was funded and had even manged to crash Kickstarter. Thankfully, the crowdfunding platform is fully functional again and the project page is still live.
Founded in 2014, Steamforged Games is ... |
<gh_stars>0
#include "Memory.h"
/* Constructor e*/
Memory::Memory(int size) : size(size) {
memory = new int[size];
programSize = 0;
for(int i = 0; i < size; i++)
{
memory[i] = 0;
}
}
/* Destructor */
Memory::~Memory() {
delete memory;
}
/* Loads a program into memory */
void Memory::loadProgram (std::... |
def linked_downstream_reports_by_domain(master_domain, report_id):
from corehq.apps.linked_domain.dbaccessors import get_linked_domains
linked_domains = {}
for domain_link in get_linked_domains(master_domain):
linked_domains[domain_link.linked_domain] = any(
r for r in get_linked_report_... |
Vic Beasley
Clemson, RLB/SLB
Height: 6.3
Weight: 235
Age: 23
Check out all of The War Room content
Athleticism: A
Excellent athlete who has the potential to play with his hand in the ground, as a standup rusher, and as a strong side linebacker. Great first step off the line at the snap and accelerates into his r... |
<reponame>U007D/k210_pac
#[doc = "Reader of register status"]
pub type R = crate::R<u32, super::STATUS>;
#[doc = "Reader of field `activity`"]
pub type ACTIVITY_R = crate::R<bool, bool>;
#[doc = "Reader of field `tfnf`"]
pub type TFNF_R = crate::R<bool, bool>;
#[doc = "Reader of field `tfe`"]
pub type TFE_R = crate::R<... |
<filename>cmd/smallpoint/api.go<gh_stars>1-10
package main
import (
"encoding/json"
"fmt"
"github.com/Symantec/ldap-group-management/lib/userinfo"
"log"
"net/http"
"sort"
"strings"
)
//All handlers and API endpoints starts from here.
var permissionMapping = map[string]int{
"create": permCreate,
"update": per... |
<reponame>rgupta3349/FHIR
/*
* (C) Copyright IBM Corp. 2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.bulkimport;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.batch.api.partition.PartitionAnalyzer;
import javax.batch.runtime.BatchStatus;
impor... |
Story highlights FBI Director James Comey says there are more terrorist organizations desiring to attack U.S. than there were at 9/11
Terrorists' ability to have a safe haven increases their ability to mount a sophisticated attack against the U.S., he added
Washington (CNN) FBI Director James Comey said Wednesday tha... |
Police in Boston are searching for a suspect in a shooting that witnesses said occurred due to a parking space saver.
Witnesses told necn the incident occurred when a man moved a space saver and parked his car.
When the man who originally parked in the spot returned, he opened fire, they said.
The victim, a 34-year-... |
import { promisify } from "util";
import low from "lowdb";
import FileSync from "lowdb/adapters/FileSync";
import { chain, template } from "lodash";
import { join } from "path";
import differenceInWeeks from "date-fns/difference_in_weeks";
import format from "date-fns/format";
import { writeFile, readFile, createWriteS... |
/*!
* \file alphabets.hpp
* \brief Exports utilities for creating alphabets as std::arrays from
* ranges of ASCII values.
**/
#ifndef INCG_ITSP3_ALPHABETS_HPP
#define INCG_ITSP3_ALPHABETS_HPP
#include <array> // std::array
#include <pl/cont/make_array.hpp> // pl::cont::makeArray
#include <ty... |
Britain's Prince Harry (C) attends Armistice Day commemorations at the National Memorial Arboretum in Alrewas, Britain, November 11, 2016. REUTERS/Darren Staples
LONDON (Reuters) - French President Francois Hollande and Britain’s Prince Harry led commemorations as the two nations marked Armistice Day on Friday to reme... |
<reponame>bato1015/CIT_brains_2021_linetrace<gh_stars>0
#include <stdio.h>
#include <pigpio.h>
#define MOTOR_R1 13 //GPIO13 PIN33
#define MOTOR_R2 19 //GPIO19 PIN35
#define MOTOR_L1 12 //GPIO12 PIN32
#define MOTOR_L2 18 //GPIO18 PIN12
#define SENSOR_R 9 //GPIO9 PIN21
#define SENSOR_L 11 //GPIO11 PIN23
void move_motor... |
#include<stdio.h>
int wb[110],n,i,shoot;
int main() {
scanf("%d",&n);
for(i=1; i<=n; i++)
scanf("%d",&wb[i]);
scanf("%d",&shoot);
int th,num;
while(shoot--) {
scanf("%d%d",&th,&num);
if(th-1>=1) wb[th-1]+=num-1;
if(th+1<=n) wb[th+1]+=wb[th]-num;
wb[th]=0;
... |
/**
* Release the lock for the path after writing.
*
* Note: the caller should resolve the path to make sure we are locking the correct absolute
* path.
*/
private static void releasePathLock(Path resolvedPath) {
final Object lock = pathLock.remove(resolvedPath);
synchronized(lo... |
n=int(input())
s=input()
freq=[0]*26
for i in s:
freq[ord(i)-ord('a')]+=1
change=0
for i in range(26):
if freq[i]:
change+=freq[i]-1
distinct=0
for i in range(26):
if freq[i]:
distinct+=1
if distinct+change>26:
print(-1)
else:
print(change)
|
import { ButtonState } from "../helpers/types";
import { isDomElement } from "../helpers/utils";
import { buttonStyles } from "../styles/styles";
import { loader, logo } from "../styles/templates";
import { orbaOneLoaderId } from "../helpers/defaultConfig";
function getButtonTemplate() {
return `
<div styl... |
The Tiny Desk Contest Is Back!
YouTube
Sometimes small ideas can have a big impact, and our Tiny Desk Contest has had a major impact on unknown artists. The first year we ran the contest, we thought we'd watch a few fun videos of bands playing original songs and call it a day. That small idea turned into thousands of... |
def fingerprint(self) -> Text:
return rasa.shared.utils.io.deep_container_fingerprint(
[self.data, self.features]
) |
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
func inorderTraversal(root *TreeNode) []int {
ret := make([]int, 0)
if root == nil {
return ret
}
stack := make([]*TreeNode, 0)
for p := root; p != nil; p = p.Left {
stack = ... |
def load():
ddir = utils.datadir()
files = glob(ddir+'parsec_*fits.gz')
nfiles = len(files)
if nfiles==0:
raise Exception("No default isochrone files found in "+ddir)
iso = []
for f in files:
iso.append(Table.read(f))
if len(iso)==1: iso=iso[0]
iso['AGE'] = 10**iso['LOGAG... |
/**
* Helper method for generating the minimal catalog object. toMinimalTCatalogObject()
* may be overrided by subclasses so we put the general implementation here.
*/
private TCatalogObject toMinimalTCatalogObjectHelper() {
TCatalogObject catalogObject =
new TCatalogObject(getCatalogObjectType(), ... |
shoulder-to-shoulder support for clinical staff members during the golive phase of electronic health record implementation
N ursing informatics is an exciting nursing specialtydit affects learning environments, meaningful use, interprofessional collaboration, patient care settings, strategic planning, patient satisfac... |
Having earlier given Brew an autograph, Clarke was unimpressed when, after refusing to lend his bat for a photo shoot, the teenager quipped: ''Why not? You never use it in the middle.'' Yesterday's incident was the latest in a summer to forget for Clarke. While captaining his country in a Test for the first time was a ... |
<gh_stars>0
package Exercicios_java;
import java.util.Scanner;
public class CalcDespesas {
public CalcDespesas() {
double qtd,valor,media=0;
String despesa;
System.out.println("Bem Vindo a calculadora de gastos");
System.out.println("Quantas despesas mensais deseja inserir: ");
qtd = n... |
<reponame>StrahinjaJacimovic/mikrosdk_click_v2
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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 Soft... |
<reponame>yeonjju21/HelloWorld
package org.yjj.chapter.s099;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import org.yjj.chapter.s098.Sovere... |
-- Informatics 1 Functional Programming
-- December 2012
-- SITTING 1 (09:30 - 11:30)
import Test.QuickCheck( quickCheck,
Arbitrary( arbitrary ),
oneof, elements, sized )
import Control.Monad -- defines liftM, liftM2, used below
-- Question 1
-- 1a
f :: Int -> [Int]... |
package main
import (
"fmt"
"log"
"regexp"
"strconv"
"strings"
"github.com/knq/snaker"
)
// In case we need to do something version specific
var dbVersion int
// Field describes a single column of a table, and is also abused to store
// query parameters
type Field struct {
Name string
Position int
... |
import java.util.Scanner;
public class even_odds318A {
public static long n , k , odd , even , lastOddPosition;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
n = scan.nextLong();
k= scan.nextLong();
// odd = Math.round(n/2);
odd = n/2;
even = n/2;
... |
By Daniel Cabrera, M.D.
Author: David Nestler, MD (@DrDavidNestler)
Heard about the “MACRA” bill in the news lately? Here’s why, and some brief updates about it.
In April 2015 Congress passed HR-2, aka “MACRA” (the Medicare Access and CHIP Reauthorization Act). On 4/27/16, CMS released a Notice of Proposed Rulemakin... |
<reponame>k4leung4/fulcio
//
// Copyright 2022 The Sigstore Authors.
//
// 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... |
/**
* Copyright (c) 2015-2016 YCSB contributors. All rights reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* U... |
<gh_stars>10-100
package com.opencredo.concursus.domain.events.indexing;
import com.opencredo.concursus.domain.common.AggregateId;
import java.util.Set;
/**
* Finds aggregate ids by parameter name/value pairs.
*/
@FunctionalInterface
public interface EventIndex {
/**
* Find all the aggregates for which t... |
#ifndef OPENPOSE_WRAPPER_WRAPPER_STRUCT_HAND_HPP
#define OPENPOSE_WRAPPER_WRAPPER_STRUCT_HAND_HPP
#include <openpose/core/common.hpp>
#include <openpose/core/enumClasses.hpp>
#include <openpose/hand/handParameters.hpp>
#include <openpose/wrapper/enumClasses.hpp>
namespace op
{
/**
* WrapperStructHand: Hand e... |
/**
* A class field.
*/
public class JvmField extends Field {
private String type;
private boolean isStatic;
private String declaringClassId;
/** No-arg constructor, use setters or fromMap() to populate the object. */
public JvmField() {}
/**
* Single-arg constructor, use setters or fromMap()... |
Ad blockers are often painted as the enemy of online publishers, but sometimes things are more complicated.
AdBlock Plus, for example, just announced that they’re working with startup Flattr on a new product that allows readers to pay the publishers who produce the content they read, listen to and watch.
As a result ... |
/**
* Provides actions needed by the 'Script -> Run...' menu item. It uses a
* file open dialog to request a script from the user and then executes the
* script.
*/
private void loadAndRunScript() {
FileDialog fd = new FileDialog(shell, SWT.OPEN);
fd.setText("Select script to run");
... |
// TableStatsFromJSON loads statistic from JSONTable and return the Block of statistic.
func TableStatsFromJSON(blockInfo *perceptron.TableInfo, physicalID int64, jsonTbl *JSONTable) (*statistics.Block, error) {
newHistDefCausl := statistics.HistDefCausl{
PhysicalID: physicalID,
HavePhysicalID: true,
Count: ... |
<commit_msg>Move data directory in package
<commit_before>import os.path as osp
def get_data_dir():
this_dir = osp.dirname(osp.abspath(__file__))
return osp.realpath(osp.join(this_dir, '../data'))
def get_logs_dir():
this_dir = osp.dirname(osp.abspath(__file__))
return osp.realpath(osp.join(this_dir... |
#include "Question198C.h"
#include "../../Utility/AtCoderInOut.h"
#include "../../Utility/Utility.h"
#include <math.h>
namespace Question198C {
namespace {
const char* INPUT_CASE[] = {
R"(100000 100000 100000)",
R"(5 11 0)",
R"(3 4 4)",
};
const char* OUTPUT_CASE[] = {
R"(2)",
R"(3)",
R"(2)",
};
static_asser... |
/* records transmitted from extern CDU to MX 4200 */
#define PMVXG_S_INITMODEA 0 /* initialization/mode part A */
#define PMVXG_S_INITMODEB 1 /* initialization/mode part B*/
#define PMVXG_S_SATHEALTH 2 /* satellite health control */
#define PMVXG_S_DIFFNAV 3 /* differential navigation control */
#define PMVXG_S_PORTC... |
/**
* Created by thy humble Lovnag on 26.04.2017.
* ( Just a small vector lib)
*/
public class Vector3 {
private double x;
private double y;
private double z;
public Vector3(double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
}
public do... |
# -*- coding: utf-8 -*-
"""CICID1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1q-T0VLplhSabpHZXApgXDZsoW7aG3Hnw
"""
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import matplotlib.... |
<filename>packages/ipfs-w3auth/auth-handler/src/index.ts
import {Request} from 'express';
import {AuthError} from './types';
import authRegistry from './authRegistry';
const _ = require('lodash');
const chainTypeDelimiter = '-';
const pkSigDelimiter = ':';
async function auth(req: Request, res: any, next: any) {
// ... |
This was the second(?) pic I've done where I've experimented with painting clouds and a background. I think they turned out well! And of course Derpy is happy as always :3 This was actually done before the Fluttershy portrait, so I was still figuring things out. Hope you like itIf anyone remembers my old sketch of Derp... |
def add_tags(self):
c, setting = self.c, self.tags_setting
aList = c.config.getData(setting) or []
aList = [z.lower() for z in aList]
return aList |
/** Class for TypeInstance for all nodes of type TRY_WITH_RESOURCE_TYPE. */
private static class TryWithResourceTypeInstance extends TypeInstance {
private final Node<?, ? extends AutoCloseable> resourceNode;
private TryWithResourceTypeInstance(Node<?, ? extends AutoCloseable> resourceNode) {
... |
Not to be confused with "Give Hope Now" campaign by the American Red Cross
The Hope Now Alliance is a cooperative effort between the US government, counselors, investors, and lenders to help homeowners who may not be able to pay their mortgages. Created in 2007[1] in response to the subprime mortgage crisis, the allia... |
/*
After having computed ideal weights for the case where a weight exists for
every texel, we want to compute the ideal weights for the case where weights
exist only for some texels.
We do this with a steepest-descent grid solver; this works as follows:
* First, for each actual weight, perform a weight... |
/**
* Responsible for verifying the signature, returns true if the verification passed, false
* otherwise.
*
*
* @param key The public key used to verify the signature
* @param signable Contains the data (seed) and signature
* @return True if signature valid, false otherwise
* @throws Annotat... |
Call me a tightwad, but when I heard that Montreal had rental bikes you can pick up and drop off all over town for a mere $5 Canadian a day (about $4.85 U.S.), it was like angels singing. See the city, sample the local cuisine and work it off without paying usurious day rates at the gym. This I had to try.
The bike sy... |
def display():
for good in goods:
print(good.get("number"), good.get("stock")) |
Inverse initial problem for fractional reaction-diffusion equation with nonlinearities
The initial inverse problem of finding solutions and their initial values ($t = 0$) appearing in a general class of fractional reaction-diffusion equations from the knowledge of solutions at the final time ($t = T$). Our work focuse... |
<filename>src/Parser.hs
module Parser (tokenize, parse) where
import Parser.Tokens
import Parser.Grammer
|
<filename>src/rxjsNoStaticObservableMethodsRule.ts
import * as Lint from 'tslint';
import * as tsutils from 'tsutils';
import * as ts from 'typescript';
import { subtractSets, concatSets, isObservable, returnsObservable, computeInsertionIndexForImports } from './utils';
/**
* A typed TSLint rule that inspects observa... |
<reponame>pbernasconi/kanel
// @generated
// Automatically generated. Don't change this file manually.
// Name: category
export type CategoryId = number & { " __flavor"?: 'category' };
export default interface Category {
/** Primary key. Index: category_pkey */
category_id: CategoryId;
name: string;
last_up... |
/**
* Execute the procedure up to "lastStep" and then the ProcedureExecutor
* is restarted and an abort() is injected.
* If the procedure implement abort() this should result in rollback being triggered.
* Each rollback step is called twice, by restarting the executor after every step.
* At the end of th... |
/**
* Controller for managing scheduled task history.
*
* @author Lateef Ojulari
* @since 1.0
*/
@Component("/system/scheduledtaskhist")
@UplBinding("web/system/upl/managescheduledtaskhist.upl")
public class ScheduledTaskHistController extends AbstractSystemFormController<ScheduledTaskHistPageBean, Schedul... |
AMD Processors
APU OR CPU: WHAT’S THE DIFFERENCE?
AMD pioneered APUs (Advanced Processing Unit), which combines the Radeon graphics chips found in their discrete graphics cards, with the CPU processing technologies onto a single chip. While the the graphics technologies found within the APU isn’t as fast as a dedicat... |
import { AxiosInstance } from 'axios';
import { EndpointClass } from './types';
declare const EndpointFactory: (axiosInstance: AxiosInstance) => typeof EndpointClass;
export default EndpointFactory;
|
<filename>src/app/auth/auth.service.ts
import {Injectable} from '@angular/core';
import {Store} from "@ngrx/store";
import * as authUser from './actions';
import * as fromRoot from '../core/store.reducers';
import {Headers, Http} from "@angular/http";
import {Observable} from "rxjs";
import {handleHttpError} from "../u... |
<reponame>agmcc/slate-lang<filename>src/main/java/com/github/agmcc/slate/cli/SourceExtensionValidator.java
package com.github.agmcc.slate.cli;
import com.beust.jcommander.IParameterValidator;
import com.beust.jcommander.ParameterException;
public class SourceExtensionValidator implements IParameterValidator {
priv... |
<filename>Source/V8/Private/MallocArrayBufferAllocator.h
#pragma once
class FMallocArrayBufferAllocator : public v8::ArrayBuffer::Allocator
{
public:
/**
* Allocate |length| bytes. Return NULL if allocation is not successful.
* Memory should be initialized to zeroes.
*/
virtual void* Allocate(size_t length)
{
... |
<reponame>KKcorps/incubator-pinot<filename>pinot-core/src/main/java/org/apache/pinot/core/operator/docvaliterators/DictionaryBasedSingleValueIterator.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for a... |
import threading
import time
import simpleaudio as sa
import rclpy
from rclpy.node import Node
from angel_msgs.msg import HeadsetAudioData
class AudioPlayer(Node):
def __init__(self):
super().__init__(self.__class__.__name__)
self.declare_parameter("audio_topic", "HeadsetAudioData")
se... |
export interface OEmbedInfo {
version: '1.0';
url: string;
type: 'video' | 'photo' | 'rich' | 'link';
// generic properties
title?: string;
description?: string;
screenshot_url?: string;
thumbnail_url?: string;
thumbnail_width?: number;
thumbnail_height?: number;
author_name... |
<gh_stars>0
import { useWallet as useEthereumWallet } from './ethereum';
import { useWallet as useSolanaWallet } from './solana';
const useStatus = () => {
const {
connected: ethereumConnected,
loading: ethereumLoading,
wallet: ethereumWallet,
} = useEthereumWallet();
const {
connecting: solanaC... |
/**
* @author Marco Ruiz
* @since Dec 13, 2008
*/
public class OrderInfoServlet extends GWEClusterSelectedServlet {
private static final String P2EL_STATEMENT = "p2elStatement";
public OrderInfoServlet() { super("order"); }
protected void specificPageModelPopulation(PageModel pageModel, Session4ClientAPIEnhanc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.