content stringlengths 10 4.9M |
|---|
Representatives from the eight nations with territory in the great white north and the indigenous peoples who make their homes there had come to Alaska looking for reassurance.
Trump campaigned for office warning that he may pull the United States out of the 2015 Paris accord and he has already launched a review of Wa... |
#include<bits/stdc++.h>
using namespace std;
const int N=1001;
queue<pair<int,int> >q[20];
int ans[20];
char mat[N][N];
int lvl[N][N];
int dx[]={0,0,-1,1};
int dy[]={-1,1,0,0};
int main()
{
int n,m,p;
cin>>n>>m>>p;
int s[p+1],mx[p+1];
for(int i=1;i<=p;i++)
cin>>s[i],mx[i]=s[i];
for(int i=0;i<n;i++... |
import { useContext } from 'react';
import { ChallengesContext } from '../../contexcts/ChallengeContext';
import Styles from '../../styles/completedChalenges'
function CompletedChallenges() {
const { challengesCompleted } = useContext(ChallengesContext)
return(
<Styles>
<span>Desafios completos</span>
... |
/**
* Helper class with static generate methods to generate atom for old or new
* data model as appropriate.
*
*
*/
public class GenerateUtil {
/**
* Generates the atom output for an entry using the given xml writer and
* extension profile.
*/
public static void generateAtom(XmlWriter writer,
... |
Game Analysis of Industry Chain Cluster Reconfiguration Mechanism
Based on the behavioral choice conditions of enterprises and governments in the transferring and taking over places of industries to achieve industry chain cluster reconfiguration in two economic environments of freedom and intervention, this paper cont... |
def intersect(f, df, g, dg):
def fg(f, g):
def unite(x):
return f(x) - g(x)
return unite
return find_zero(fg(f, g), fg(df, dg)) |
def create_caldict(results):
caldict={}
for r in results:
clist=r[2:]
for k in caldict:
if compare_configs(clist, caldict[k]): clist=[]
if clist: caldict[r[1]]=clist
return caldict |
<gh_stars>0
import openpyxl
import os
import ryan
class Book :
obj = None
def __init__(self, path=None, must_exist=0, fast=False):
self.path = path
# self.base = os.path.splitext(os.path.basename(path))[0]
# self.name = os.path.basename(path)
if path and os.path.isfile(path) :... |
George Soros told CNN’s Fareed Zakaria over the weekend he is responsible for establishing a foundation in Ukraine that ultimately contributed to the overthrow of the country’s elected leader and the installation of a junta handpicked by the State Department.
“First on Ukraine, one of the things that many people recog... |
<filename>lib/src/main/java/com/glitchtechscience/ui/behavior/FloatingActionMenuBehavior.java
package com.glitchtechscience.ui.behavior;
import android.content.Context;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.google.android.material.snackbar.Snackbar;
import android.util.AttributeSet;
im... |
package org.apache.dubbo.spi.wheel;
import com.alibaba.dubbo.common.URL;
public interface WheelMaker {
Wheel makeWheel(URL url);
} |
#ifndef CARYLL_TABLE_HHEA_H
#define CARYLL_TABLE_HHEA_H
#include "otfcc/table/hhea.h"
table_hhea *otfcc_newHhea();
table_hhea *otfcc_readHhea(const otfcc_Packet packet, const otfcc_Options *options);
void otfcc_dumpHhea(const table_hhea *table, json_value *root, const otfcc_Options *options);
table_hhea *otfcc_parseH... |
package com.company.sample.web.order;
import com.company.sample.entity.Order;
import com.haulmont.cuba.gui.AttributeAccessSupport;
import com.haulmont.cuba.gui.components.AbstractEditor;
import com.haulmont.cuba.gui.data.Datasource;
import javax.inject.Inject;
import java.util.Map;
public class OrderEdit extends Abs... |
package excecoes;
public class FornecedorNaoEncontradoException extends Exception {
public FornecedorNaoEncontradoException() {
super("Fornecedor não encontrado.");
}
}
|
<reponame>DanielBok/muarch
import os
from concurrent.futures import ProcessPoolExecutor
from functools import partial
from typing import Collection, Optional, Union
import numpy as np
import pandas as pd
from .exceptions import EndogInputError, InvalidModelError
from .summary import SummaryList
from .typings import E... |
N = int(input())
lottery = []
while len(lottery) < N:
lottery.append(input())
print(len(set(lottery))) |
<filename>chromium/gpu/khronos_glcts_support/native/egl_native_windowless.cc
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Using egl_native from gles2_conform_support
// TODO: We may want to phase ... |
Find An Event Create Your Event Help Rip Current Meet-the-Brewer Private Dinner Urge Gastropub
San Diego, CA Share this event: Get Tickets There are no active dates for this event. Not Available
Event Rip Current Meet-the-Brewer Private Dinner Created by our own Jay Drose (bartender and certified cicerone) comes a re... |
/*
* Copyright © 2021 <NAME>, MIT License.
*/
export interface IGenerator {
generate(): string;
generate( options: IDriverOptions ): string;
}
export interface IDriver {
getFilename(): string;
}
export interface IDriverConstructor { new( ...args: unknown[] ): IDriver; driverName: string; }
export interface IGener... |
I’m a big fan of keeping it simple when it comes to color schemes. Orange for a Laverda, black for a Vincent, yellow for a Yamaha. But this funky Ducati 900 SS from Walt Siegl is an absolute treat.
Siegl is quite rightly getting noticed by some big names, and this machine was commissioned by the German multinational P... |
/**
* Create ERROR pbuf with formatted error message.
*/
static struct pbuf *
tftp_verror(u16_t error, const char *fmt, va_list ap)
{
struct tftp_error {
u16_t opcode;
u16_t errcode;
char errmsg[512];
};
struct pbuf *p;
struct tftp_error *errpkt;
int msgsz;
p... |
import { ApolloProvider } from "@apollo/client";
import "@fortawesome/fontawesome-free/css/all.css";
import "bulma/css/bulma.css";
import React from "react";
import ReactDOM from "react-dom";
import { RecoilRoot } from "recoil";
import "slick-carousel/slick/slick-theme.css";
import "slick-carousel/slick/slick.css";
imp... |
def has_valid_naming_file(self):
return self._naming_file and os.path.isfile(self._naming_file) |
/**
* Adds two connected {@link Spinner} to the supplied mainView.
*
* @param context the context.
* @param mainView the main view to which to add the new widget to.
* @param label the label of the widget.
* @param value the valu... |
//sendPayload sends a payload downstream to FCM
func (client *FirebaseClient) sendPayload(payload DownstreamPayload) error {
downstreamMessage, err := constructDownstreamMessage(payload)
if err != nil {
return err
}
_, err = client.xmppClient.SendOrg(string(downstreamMessage))
return err
} |
#include <bits/stdc++.h>
using namespace std;
typedef long long int LL;
LL a[2][2], mul[2], f2[2], f3[2];
LL G;
int get(LL x, LL q){
int cnt = 0;
while(x % q == 0)
x /= q, cnt++;
return cnt;
}
bool has(LL x){
while(x % 2 == 0)
x /= 2;
while(x % 3 == 0)
x /= 3;
if(x == 1)
return false;
return true;
}... |
// verifies that the create operation is considered failed if the initial API
// call fails.
func TestAzureGitRepo_Create_DoesNotSwallowErrorFromFailedCreateCall(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
resourceData := schema.TestResourceDataRaw(t, resourceGitRepository().Schema, nil)
res... |
class MetricOrganizer:
"""A class that keeps track of metrics for a given device or node."""
def __init__(self):
self._metric_class = Payload.Metric
self._template_class = Payload.Template
# The current table of the last value for each metric. This
# includes commands.
... |
Did Flexner's Report condemn black medical schools? Not so, in my opinion.
I invited Kathryn L. Moseley, MD to write the editorial appearing on the pages before this one as to whether she thought that the original Flexner Report was unduly harsh on the existing black medical schools. I invited her to choose whether sh... |
/**
* Compute the MCC based on a confusion matrix. This function returns the
* un-normalized MCC, i.e., -1 means worst possible classification, 1 is
* best. This is thus different from the result of
* {@link #evaluate(IClassifier, ConfusionMatrix, ClassifiedSample[])},
* which returns a shifted and norma... |
def CBIG_FCcorrelation_single_simulation(emp_fc, bold_d, n_dup):
fc_timestart = time.time()
n_set = bold_d.shape[1]
n_nodes = emp_fc.shape[0]
fc_mask = torch.triu(torch.ones(n_nodes, n_nodes), 1) == 1
vect_len = int(n_nodes * (n_nodes - 1) / 2)
sim_fc_vector = torch.zeros(n_set, vect_len)
fo... |
Morphological Analysis of Dermatoporosis by in vivo Reflectance Confocal Microscopy and Ultrasonography
Background Dermatoporosis is defined as a chronic cutaneous fragility and insufficiency syndrome. It results from chronological aging, long-term and unprotected sun exposure, genetic factors, or the chronic use of t... |
.
BACKGROUND
To report the epidemiologic, clinical, biological features and course of Fanconi's anemia in southern Tunisia.
PATIENTS AND METHODS
During a period of 12 years we observed 43 cases. For each patient, careful clinical, biological (hemogram, myelogram, bone marrow biopsy, hemoglobin electrophoresis, karyo... |
<gh_stars>0
pub use drag::{DragPlugin, Draggable, DropStrategy, SnapPoint};
pub use interaction::{Interactable, InteractionPlugin, InteractionSource};
mod drag;
mod interaction;
|
Carbon and oxygen isotope ratios in starburst galaxies: New data from NGC 253 and Mrk 231 and their implications
Carbon and oxygen isotope ratios are excellent measures of nuclear processing, but few such data have been taken toward extragalactic targets so far. Therefore, using the IRAM 30-m telescope, CN and CO isot... |
<reponame>282951387/KFrame
#include "KFTcpClientPlugin.hpp"
#include "KFTcpClientModule.hpp"
//////////////////////////////////////////////////////////////////////////
namespace KFrame
{
void KFTcpClientPlugin::Install()
{
__REGISTER_MODULE__( KFTcpClient );
}
void KFTcpClientPlugin::UnInstal... |
<filename>src/LazyComponent/LazyComponent.test.tsx
import { fireEvent, render } from "@testing-library/react";
import LazyComponent from "./LazyComponent";
test("renders the one prop", () => {
const { getByText } = render(<LazyComponent />);
const prop = getByText("one");
expect(prop).toBeTruthy();
});
test("ch... |
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE Safe #-}
module UnsafeInfered05 where
import safe UnsafeInfered05_A
g :: Int
g = f
|
<gh_stars>0
package us.vicentini.domainutil;
import java.util.List;
/**
*
* @author Shulander
*/
public interface IDomainRequest {
public List<String> getListDomainNames();
}
|
#include <stdio.h>
int main ()
{
int a,n,b,s,shit[101];
long int d;
s=0;
scanf("%d%ld",&n,&d);
for(a=0;a<=n-1;a++)
{
scanf("%d", &shit[a]);
}
for(b=0;b<=n-1;b++)
{
s=s+ shit[b];
}
if (d<s+(n-1)*10)
{
printf("-1");
}
... |
On July 23, Turkish air force F-16s attacked Islamic State (IS) targets in northern Syria in response to a July 20 suicide bombing in Suruc and an IS attack on an army border patrol that killed one soldier. These events were followed on July 24 by the first Turkish aerial bombing since 2011 of Kurdistan Workers Party (... |
#if defined __clang__
# pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
#endif
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include "opencv2/core/core.hpp"
#include "opencv2/video/video.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "ope... |
package com.chunma.amdm.TurnOnPackage;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.os.Build;
impor... |
Department of Justice officials are considering a proposal aimed at regularising the status of up to 20,000 undocumented migrants living and working in the Republic.
The proposal, drawn up by the Migrant Rights Centre of Ireland (MRCI) in consultation with Department of Justice officials, is described as a “once-off, ... |
/**
* The Yarn ApplicationMaster class for Gobblin.
*
* <p>
* This class runs the {@link GobblinHelixJobScheduler} for scheduling and running Gobblin jobs,
* and the {@link YarnService} for all Yarn-related stuffs like ApplicationMaster registration
* and un-registration and Yarn container provisioning. Thi... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... |
// NewStaticWorkerPool creates and initializes a static worker pool.
func NewStaticWorkerPool(name string) (*StaticWorkerPool, error) {
if isEmpty(name) {
return nil, createRequiredParameterIsEmptyOrNilError(ParameterName)
}
return &StaticWorkerPool{
WorkerPoolType: WorkerPoolTypeStatic,
WorkerPool: *newWo... |
// GetErrorCategory gets the errorCategory property value. Categorizes the error code. Possible values are failure, nonServiceFailure, success, unknownFutureValue
func (m *ProvisioningErrorInfo) GetErrorCategory()(*ProvisioningStatusErrorCategory) {
if m == nil {
return nil
} else {
return m.err... |
Observations on Microhabitat Utilization by Three Widely Distributed Neotropical Gobies of the Genus Elacatinus
Abstract The family Gobiidae is the largest family of marine fishes, yet microhabitats of most gobies are poorly known. We sampled different coral reef macrohabitats from Jamaica and Grand Cayman to identify... |
def print_page_ranks(page_ranks):
print("Page ranks:")
for i in range(len(page_ranks)):
print("\t" + str(i) + ": " + str(float(page_ranks[i])))
print() |
#include "catch.hpp"
#include "internal/catch_xmlwriter.h"
#include <sstream>
inline std::string encode( std::string const& str, Catch::XmlEncode::ForWhat forWhat = Catch::XmlEncode::ForTextNodes ) {
std::ostringstream oss;
oss << Catch::XmlEncode( str, forWhat );
return oss.str();
}
TEST_CASE( "XmlEncod... |
/**
* An object that describes the PartnerLink bean and supports DWR serialization. Providing
* this class means DWR will not need to do reflection.
* @author Alex Kalderimis
*
*/
public class PartnerLinkBeanInfo implements BeanInfo
{
@Override
public BeanDescriptor getBeanDescriptor() {
return ne... |
def negSharpeRatio(weights, meanReturns, covMatrix, riskFreeRate):
p_ret, p_var = calcPortfolioPerf(weights, meanReturns, covMatrix)
return -(p_ret - riskFreeRate) / p_var |
/**
* creates labels to display the expression type
*
* @param type expression type
* @return expression name
*/
private String createLabel(int type) {
String expression = "";
switch (type) {
case 0:
expression = "Blink";
break;
... |
a,b=input().split()
a,b=int(a),int(b)
n=0
k=a
while k%10!=b:
if k%10==0:
break
n+=1
k+=a
print(n+1) |
def _Delete(self):
cmd = util.GcloudCommand(self, 'compute', 'addresses', 'delete', self.name)
cmd.flags['region'] = self.region
cmd.Issue(raise_on_failure=False) |
#pragma once
#include <string>
#include <opencv2/opencv.hpp>
#include <boost/multi_array.hpp>
#include <boost/shared_ptr.hpp>
#include "kinect_calibration.h"
namespace kinect_merge {
using kinect_capture::CKinectCalibration;
static const int IMAGE_WIDTH = 640;
static const int IMAGE_HEIGHT = 480;
static const int ... |
def start_avd(avd_name, console_port):
command = 'emulator -avd ' + avd_name + ' -port ' + console_port + ' -wipe-data -no-boot-anim -no-window'
subprocess.Popen([command], shell=True) |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution... |
d, st = map(int, raw_input().split())
ls = [map(int, raw_input().split()) for i in xrange(d)]
mx = sum(map(lambda x:x[1], ls))
if mx < st:
print "NO"
else:
diff = mx-st
for i in xrange(len(ls)):
if diff > ls[i][1] - ls[i][0]:
diff -= ls[i][1] - ls[i][0]
ls[i][1] = l... |
/**
* @Description: Animated webp Decoder
* @Author: pengfei.zhou
* @CreateDate: 2019/3/27
*/
public class WebPDecoder extends FrameSeqDecoder<WebPReader, WebPWriter> {
private static final String TAG = WebPDecoder.class.getSimpleName();
private final Paint mTransparentFillPaint;
private Paint paint;
... |
package com.ssm.cluster.entity;
import java.io.Serializable;
/**
* @author 13
* @date 2018-02-11 13:39:08
*/
public class Article implements Serializable {
//主键
private Integer id;
//文章标题
private String articleTitle;
//创建时间
private String articleCreateDate;
//文章内容
private String art... |
use system::memory::reference;
use super::inventory::Inventory;
#[repr(C, packed)]
pub struct Equips {
pub x_index: u8,
pub y_index: u8,
pub z_index: u8,
}
impl Equips {
pub fn get() -> &'static mut Equips {
reference(0x803B8111)
}
pub fn x_item_id(&self) -> u8 {
Inventory::ge... |
** **
THE HOUSE OF THE DEAD
FYODOR MIKHAILOVICH DOSTOYEVSKY was born in Moscow in 1821, the second of a physician's seven children. When he left his private boarding school in Moscow he studied from 1838 to 1843 at the Military Engineering College in St Petersburg, graduating with officer's rank. His first story to ... |
<gh_stars>0
/*
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
<reponame>jamplate/processor
/*
* Copyright 2021 Cufy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
<filename>tests/shared_test_helpers.rs
use std::path::Path;
use ray_tracer::canvas;
pub fn write_image_to_file(
canvas: &canvas::Canvas,
output_file_path: &str,
) -> Result<(), image::error::ImageError> {
let image = canvas.canvas_to_image();
let path = Path::new(output_file_path);
image.save(path... |
/**
* Copyright 2012 meltmedia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
<filename>doc/conf.py
import sys, os
from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer
sys.path.append(os.path.abspath('_exts'))
extensions = []
master_doc = 'index'
highlight_language = 'php'
project = u'PrestoPHP'
copyright = u'2010-2021 <NAME>, <NAME>'
html_theme = "bizstyle"
versio... |
import { logIn } from '../../pages/login.po';
import { projectList } from '../../pages/project/list.po';
import { ProjectHelper } from '../../helpers/project.helper';
import { Issue } from '../../../../src/app/shared/models/issue';
import { projectView } from '../../pages/project/view.po';
import { issuesList } from '.... |
async def async_entity_changed(entity, old_state, new_state):
if self.queue_busy:
return
if entity not in self._condition_entities and not self._wait_for_available:
return
_LOGGER.debug(
"[{}]: State of {} has changed, re-evaluating act... |
//! Provides functions to build the kernel and the bootloader.
use cargo_metadata::Metadata;
use error::{BootloaderError, BuildKernelError, BuilderError, CreateBootimageError};
use std::{
path::{Path, PathBuf},
process,
};
/// Provides the build command for the bootloader.
mod bootloader;
/// Provides a funct... |
#include "MessageCollector.hpp"
#include "LanguagesSource.hpp"
#include "TagWarehouse.hpp"
const std::wstring TagWarehouse::SECTION_COMMON_NAME(L"COMMON");
const std::wstring TagWarehouse::SECTION_TAG_NAME(L"TAG");
const std::wstring TagWarehouse::SECTION_TAG_HEADER_PAIR_NAME(L"HEADER_PAIR");
const std::wstring... |
def write(self, filename, overwrite=False, meta={}):
self._check_all_set()
hdulist = fits.HDUList()
hdu0 = fits.PrimaryHDU(data=self.valid.astype(int))
hdu0.header['distance'] = (self.distance.to(u.cm).value, 'Distance assumed for the values, in cm')
hdu0.header['NWAV'] = (self.n... |
1. Your God Abandoned You
Wow, that must have been pretty incredible to MEET a god - well, C3PO isn't an actual god (more of an effeminate robot butler), but the Ewoks THOUGHT he was a god. Some kind of benevolent savior that had been delivered to them for reasons unknown. However, after Return of the Jedi, odds are C... |
/**
* RecordBuilder for Read instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Read>
implements org.apache.avro.data.RecordBuilder<Read> {
private java.lang.CharSequence id;
private java.lang.CharSequence seque... |
def to_traffic_array(
config: Config,
traffic_array: TrafficArray,
response_type: ResponseType,
points: List[Point],
):
ulm = load_ulm(config, response_type, points)
assert ulm.shape[1] == len(points)
assert traffic_array.shape[1] == ulm.shape[0]
print(traffic_array.shape, ulm.shape)
... |
When summer rolls around, we face a sticky dilemma when it comes to footwear: Sneakers, all-purpose and eternally cool, tend to quickly turn swampy; and sandals, light and breathable, expose the toes, the ugliest part of the body. (You know it's true.) For centuries, inhabitants of modern-day Spain, southern France, an... |
/* fb_move_cursor:
* Moves the cursor of the framebuffer to the CURSOR_POS global variable
*/
void fb_move_cursor() {
outb(FB_COMMAND_PORT, FB_HIGH_BYTE_COMMAND);
outb(FB_DATA_PORT, ((CURSOR_POS >> 8) & 0x00FF));
outb(FB_COMMAND_PORT, FB_LOW_BYTE_COMMAND);
outb(FB_DATA_PORT, CURSOR_POS & 0x00FF);
} |
/** paintView draws a cross in the centre of the View
and a small cross in the upper left quadrant */
public void paintView() {
logger.error (this.getClass().getName() +
" needs to implement method for paintView()");
graphics.setColor(Color.white);
if (!transparent) {
graphic... |
<filename>pkg/postprocess/luhn.go
/*
* Copyright 2021 American Express
*
* 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 requi... |
Luke from Kotaku was right: I wanted so badly to, yes, love this game that perhaps its weaknesses-a cripplingly low frame rate and, yes, the onset of some serious tiltage needed to keep moving after the first few minutes-didn't fully sink in until I just couldn't play past the fourth level while sitting on the can (wee... |
<gh_stars>0
package controllers;
import controllers.dao.ChamgosuDatabase;
import models.DeviceInfo;
import models.Response;
import play.Logger;
import play.i18n.Messages;
import play.data.Form;
import play.data.validation.Constraints;
import play.mvc.*;
import views.html.*;
import javax.inject.Inject;
import static ... |
package me.sargunvohra.mcmods.chunkactivator.block;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Random;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*;
import net.minecraft.server.MinecraftServer;
import net.minec... |
module CBlockRamTest where
import Clash.Explicit.Prelude
type DomA10 = Dom "A" 10
topEntity :: Clock DomA10 Source
-> Signal DomA10 (Unsigned 7)
-> Signal DomA10 (Maybe (Unsigned 7,Vec 4 Bit))
-> Signal DomA10 (Vec 4 Bit)
topEntity clk = blockRam clk (replicate d128 (repeat high))
|
type itemTuple = [number, number]
function getNumberOfBacklogOrders (orders: number[][]): number {
// 最小堆
const sellHeap:itemTuple[] = [];
// 最大堆
const buyHeap:itemTuple[] = [];
for (let i = 0; i < orders.length; i++) {
let [pricei, amounti, orderTypei, ] = orders[i];
if (orderTypei... |
<filename>app/src/main/java/com/github/st1hy/countthemcalories/core/tokensearch/SearchResult.java
package com.github.st1hy.countthemcalories.core.tokensearch;
import android.support.annotation.NonNull;
import java.util.Collections;
import java.util.List;
public class SearchResult {
public static final SearchResu... |
// return 1 or 0 if namespace is fresh
// a fresh namespace is a completly empty namespace
// without any data/keys, not only an empty namespace
// but even an namespace without any deleted keys
//
// it's important to know if a namespace is 'fresh' in order
// to change it's mode after it's creation, the mode cannot
/... |
<gh_stars>1-10
package com.infoclinika.mssharing.model.internal.features;
import com.infoclinika.mssharing.model.features.ApplicationFeature;
import com.infoclinika.mssharing.model.internal.entity.ApplicationSettings;
import com.infoclinika.mssharing.model.internal.entity.Feature;
import com.infoclinika.mssharing.mode... |
<filename>source/matrix/jit.findbounds/jit.findbounds.c
/*
Copyright 2001-2005 - Cycling '74
<NAME> <EMAIL>
*/
#include "jit.common.h"
typedef struct _jit_findbounds_vecdata_char
{
long boundmin[JIT_MATRIX_MAX_DIMCOUNT];
long boundmax[JIT_MATRIX_MAX_DIMCOUNT];
long min[JIT_MATRIX_MAX_PLANECOUNT];
long... |
/**
* Created on 2016/08/31.
*/
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int A = sc.nextInt();
int[] nums = new int[N];
long X = -1;
for(int i=0; i<N; i++){
... |
// checkValues will check the variables for the URLCommand.
func (c *URLCommand) checkValues(monitorID string, serviceID string) {
switch c.Type {
case "split", "replace", "regex", "regex_submatch":
default:
msg := fmt.Sprintf("%s (%s), %s is an unknown type for url_commands", serviceID, monitorID, c.Type)
jLog.... |
/**
* Create a graph topology communicator whose group is a subset
* of the group of this communicator.
* <p>
* <table>
* <tr><td><tt> index </tt></td><td> node degrees </tr>
* <tr><td><tt> edges </tt></td><td> graph edges </tr>
* <tr><td><tt> reorder </tt></td><td> <tt>true</tt> if ranking ... |
//
// addressModel.h
// NLKJ_App
//
// Created by 王刚锋 on 2018/8/16.
// Copyright © 2018年 王刚锋. All rights reserved.
//
#import <Foundation/Foundation.h>
@class cityModel;
@interface citieModel : NSObject
@property(nonatomic, copy)NSString *name;
@property(nonatomic, copy)NSArray <cityModel *> *city;... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/core/SkClipStackDevice.h"
#include "src/core/SkDraw.h"
#include "src/core/SkRasterClip.h"
SkIRect SkClipStackDevice::onDevClipBounds() const {
SkIRect r = f... |
/**
* fromStatus method. Translate decline code number to {@link DeclinedCode}
* @param status integer
* @return {@link DeclinedCode}
*/
public static DeclinedCode fromStatus(int status) {
for (DeclinedCode declinedCode : DeclinedCode.values()) {
if (statu... |
def add_subparser(parser):
db_parser = parser.add_parser('db', help='test_db help')
subparsers = db_parser.add_subparsers(help='sub-command help')
load_modules_parser(subparsers)
return db_parser |
/**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
Serotonin and Its Inhibitors
This letter concerns the paper by Uzan et al on the effects of the selective serotonin uptake inhibitor, LM 5008, on reserpine induced changes in platelet serotonin content and plasma serotonin level in the rat.1 The authors suggest that the drug may be of value in the treatment of migrain... |
News Release •
Reddit +1 Share 1 Shares
Contact: Paul Preuss, (510) 486-6249
Deep-diving Carbon Explorer floats continuously collected data for over a year, straight through the Antarctic winter, following the SOFeX iron-fertilization experiment in the Southern Ocean. Analysis reveals that most of the carbon from lu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.