content
stringlengths
10
4.9M
<gh_stars>1-10 package com.company.StackqueuE; public class StackUsingJavaClient { public static void main(String[] args) throws Exception { StackUsingArray S1 = new StackUsingArray(5); for (int i = 1; i <= 5; i++) { S1.push(i * 10); } S1.display(); S1...
/* this hook runs before hashes are updated */ static int s2n_conn_pre_handshake_hashes_update(struct s2n_connection *conn) { if (conn->actual_protocol_version < S2N_TLS13) { return 0; } if (s2n_conn_get_current_message_type(conn) != CLIENT_FINISHED) { return 0; } GUARD(s2n_tls13_han...
<gh_stars>0 import autocannon from 'autocannon'; import { writeFile } from 'fs/promises'; import mkdirp from 'mkdirp'; import { resolve } from 'path'; import { requireEnv } from 'require-env-variable'; const { TITLE, SUBTITLE, PORT } = requireEnv('TITLE', 'SUBTITLE', 'PORT'); const instance = autocannon( { url:...
All photos by Dylan Thuras / Michelle Enemark Western outsiders first traveled through what is now Las Vegas in 1829, when Mexican scout Rafael Rivera wandered away from the rest of his traveling party and stumbled upon a lush valley. Though today we think of the city’s surrounding landscape as dry, barren and prickli...
// // JPGiftShowView.h 礼物的展示view // JPGiftManager // // Created by Keep丶Dream on 2018/3/13. // Copyright © 2018年 dong. All rights reserved. // #import <UIKit/UIKit.h> #import "JPGiftCountLabel.h" @class JPGiftModel; typedef void(^completeShowViewBlock)(BOOL finished,NSString *giftKey); typedef void(^completeSho...
<filename>example/index.tsx import 'react-app-polyfill/ie11'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { Slot, Fill, SlotProvider } from '../.'; const App = () => { const [fillSlot1, setFillSlot1] = React.useState(true); const [fillSlot2, setFillSlot2] = React.useState(true); ...
/** * It deletes an image from the given path. */ private void removeImage(JSONArray args, CallbackContext callbackContext) throws JSONException { String filename = args.optString(0); if (filename.equals(EMPTY_STR)) { callbackContext.error("Missing filename string"); } ...
Oliver Porter created and implemented the public-private partnership (PPP) model for Sandy Springs, Ga.—a city of 100,000 people near Atlanta. He has served as the principal advisor for many other new cities and for cities considering the conversion to the PPP model, both in the United States and Japan. He has authored...
<gh_stars>1-10 #include "BossEmmiter.h" #include "j1EntityFactory.h" #include "j1Render.h" BossEmmiter::BossEmmiter(fPoint pos, uint radius, uint spawnRatio, const j1Entity* owner, uint timeLife) : Projectile(pos, { 0.F,0.F }, 0u, owner, "BossEmmiter", PROJECTILE_TYPE::BOSS_EMMITER) { SetPivot(450, 250); size.creat...
// zzcf, zzbl, zzdm public abstract class zzbt extends zzcf { public zzbt(zzbl zzbl1) { super(zzbl.zza(zzbl1)); // 0 0:aload_0 // 1 1:aload_1 // 2 2:invokestatic #16 <Method com.google.android.gms.common.api.GoogleApiClient zzbl.zza(zzbl)> // 3 5:invokespecial ...
/** * * * @author IDV Development Team * @version $Revision: 1.3 $ */ public class SlackOutputHandler extends OutputHandler { /** _more_ */ public static final String PROP_SLACK_API_TOKEN = "slack.api.token"; /** _more_ */ public static final OutputType OUTPUT_SLACK_PUBLISH = new OutputT...
<gh_stars>0 package nie.sr2.util; import java.sql.*; import java.util.*; import java.io.IOException; import java.io.LineNumberReader; import java.net.*; import com.sun.org.apache.bcel.internal.generic.FMUL; import nie.config_ui.ConfiguratorException; import nie.core.*; import nie.sn.SearchEngineConfig; import nie.sn...
Design of Fuzzy Kalman Filter for Air-Gap Disturbance Attenuation of Magnetic Levitation System In this paper, a feedback controller using the fuzzy Kalman filter that attenuates air-gap disturbance in a magnetic levitation system is proposed. One of the core technology of the magnetic levitation system is a levitatio...
// New will create and return a new YStore. A error will be returned if the // store already exists and contains invalid data. func New(path string) (*YStore, error) { if _, ok := currentStores[path]; !ok { currentStores[path] = &YStore{ path: filepath.Clean(path), data: make(map[string]map[string]string), }...
#include <stdio.h> int main() { long long a,b,n,x,i, c; scanf("%lld",&n);a=-1000000;b=1000000;c=0; for(i=0;i<n;i++){ scanf("%lld",&x); if(x<b){b=x;}; if(x>a){a=x;}; c=c+x; }; printf("%lld %lld %lld\n",b,a,c); return 0; }
Hundreds of people protested at the Tennessee state capitol today ahead of and during Gov. Bill Haslam's State of the State address. The protest was actually scheduled before President Donald Trump's executive order on refugees last Friday, but the response by the state's GOP leadership — or lack thereof — over the wee...
I hear you. We have plenty of news curation apps on Android and we don't need yet another one. But despite the countless options, there's still room for an app that does its job well, looks good at it, and doesn't try to reinvent the wheel with algorithms and predictions that inevitably fall short of their promise. So...
use std::fmt::{self, Formatter}; #[derive(Debug)] pub enum Error { Qr(qr_code::types::QrError), Address(bitcoin::util::address::Error), Secp256k1(bitcoin::secp256k1::Error), Miniscript(miniscript::Error), Bmp(qr_code::bmp_monochrome::BmpError), InvalidAddressType, MissingChecksum, Missi...
Can Australia Please Stop Being Washington’s Bitch And Help Assange Now? Caitlin Johnstone Blocked Unblock Follow Following May 22, 2017 The Wall Street Journal has published an editorial titled “The U.S. Can Get Julian Assange” and subtitled “Avoid extradition and use secret services to airlift him to stand trial in...
//------------------------------------------------------------------------------ // Vive.h // // Authors: <NAME> // //------------------------------------------------------------------------------ #pragma once #include "_MLHTCViveSystem.h" #include <mlModuleIncludes.h> #include <WEMBase/WEMModuleBase/WEMProcessor.h> ...
// SyncNodePools keeps the cluster node pools in state with the model func (cm *ClusterManager) SyncNodePools(clusterModel *model.Cluster) error { cm.oci.GetLogger().Infof("Syncing Node Pools states of Cluster[%s]", clusterModel.Name) nodePools := clusterModel.NodePools ce, err := cm.oci.NewContainerEngineClient() ...
// NewUserRepository is the constructor for UserRepository func NewUserRepository(mongoDB *db.MongoDB) *UserRepository { client := mongoDB.GetClient() userCollection := client.Database(os.Getenv("DB_MONGODB_NAME")).Collection("user") return &UserRepository{ mongoDB: mongoDB, userCollection: userCollection...
GI = lambda: int(input()); GIS = lambda: map(int, input().split()); LGIS = lambda: list(GIS()) def main(): t = GI() for i in range(t): n = GI() l = [] while n: n, m = divmod(n, 10) l.append(m) print(sum(bool(x) for x in l)) for i, d in enumerate(l...
package net.ravendb.client.documents.operations.replication; public class ReplicationHubAccessResult { private DetailedReplicationHubAccess[] results; public DetailedReplicationHubAccess[] getResults() { return results; } public void setResults(DetailedReplicationHubAccess[] results) { ...
package com.tencent.qcloud.suixinbo.presenters; import android.content.Context; import android.os.Handler; import android.os.HandlerThread; import android.os.Looper; import android.os.Message; import android.text.TextUtils; import com.tencent.cos.COSClient; import com.tencent.cos.COSClientConfig; import com.tencent.c...
#include "gc.h" #include <map> namespace ploy { std::unordered_set<const GC*> GC::all; }
<reponame>KristiyanGK/Cloudcooking import RecipeStore from "./recipeStore"; import UserStore from "./userStore"; import { createContext } from "react"; import { configure } from "mobx"; import CommonStore from "./commonStore"; import ModalStore from "./modalStore"; import CategoryStore from "./categoryStore"; import Ch...
Preliminary profiling of blood transcriptome in a rat model of hemorrhagic shock Hemorrhagic shock is a leading cause of morbidity and mortality worldwide. Significant blood loss may lead to decreased blood pressure and inadequate tissue perfusion with resultant organ failure and death, even after replacement of lost ...
#include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int f[1027][1027],g[11][11],n,m,t,c[1027],ans; int main() { cin>>n>>m>>t; for (int i=1;i<=m;i++) { int p,q; scanf("%d%d",&p,&q); g[p][q]=g[q][p]=1; f[(1<<(p-1))|(1<<(q-1))][(1<<(p-1))|(1<<(q-1))]=1; } for (int i=1;...
/** * Tests for openAPI info section mapping. */ public class OpenAPIInfoTests { private static final Path RES_DIR = Paths.get("src/test/resources/ballerina-to-openapi/openapi_info").toAbsolutePath(); private Path tempDir; @BeforeMethod public void setup() throws IOException { thi...
/** * TotalVariability class for i-vectors: M = m + T w This class is mostly based on Alize FactorAnalysisStat class. * * @author meignier */ public class TotalVariability { /** The Constant logger. */ private final static Logger logger = Logger.getLogger(TotalVariability.class.getName()); /** The ubm. */ pr...
/* access modifiers changed from: package-private */ public e.b d(w wVar) { e a2 = a(wVar.k()); e.b e2 = a2 != null ? a2.e() : null; e b2 = b(wVar.k()); return (b2 == null || !(e2 == null || e2 == e.b.NONE)) ? e2 : b2.e(); }
The proponent of a ballot measure to ban circumcision in a California city has dropped the effort following claims of anti-Semitic themes and imagery, including a comic book that featured a "Monster Mohel." Jena Troutman, the Santa Monica woman who submitted the proposal to the Santa Monica city clerk last month, said...
<reponame>foreverbell/BadAppleOS.rs<filename>src/ba/video.rs use alloc::vec::Vec; use ba::decompressor::decompress; use ba::stream::Stream; use krnl::console; extern "C" { static _binary_build_vdata_bin_start: u8; static _binary_build_vdata_bin_end: u8; } pub struct Video { n_frames: usize, cur_frame: usize, ...
Thieves stole a weekend’s worth of beer from a pop-up Sheffield city centre bar. Most of the stock at Bar Stewards in Gibraltar Street was stolen during a break-in on Thursday morning. Thieves also took musical instruments stored in the cellar, along with a laptop. The start-up business currently opens only at weeke...
def _prefix_login_path(self, remote_path): if not remote_path.startswith(os.path.sep): remote_path = os.path.join(os.path.sep, remote_path) return os.path.normpath(remote_path)
PPG Paints Arena in Pittsburgh, Pennsylvania was home to a fun night of fights, with a remarkable seven (T)KOs, one submission and two decisions, both of them split-decisions. Performances of the Night: Mike Perry and Uriah Hall Krzysztof Jotko dominated the first round of his fight against the mercurial Uriah Hall, ...
// collect collects all accepted runes and returns them as a token. After that, // it sets the start position to the current position. func (i *isolate) collect(t token.Type) token.Token { tk := token.New( t, string(i.input[i.start:i.pos]), i.start, i.pos-...
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { ActionSheetController } from '@ionic/angular'; @Component({ selector: 'app-tabs', templateUrl: 'tabs.page.html', styleUrls: ['tabs.page.scss'] }) export class TabsPage { constructor(public actionSheetController: Acti...
import itertools import math import numpy as np from bsoid_app.bsoid_utilities.likelihoodprocessing import boxcar_center def bsoid_extract(data, fps): """ Extracts features based on (x,y) positions :param data: list, csv data :param fps: scalar, input for camera frame-rate :return f_10fps: 2D ar...
export enum ERowStatus { Committed, New, Draft, Deleted }
/** * Resolve a value from a given enumeration into its name. * @param enumName * @param value * @return */ public String resolve(final String enumName, final int value) { HKXEnum enumContainer = contents.get(enumName); if(enumContainer != null) { return enumContainer.get(value); } return Integer.t...
// Copyright © 2018 | <NAME> | <EMAIL> //---------------------------------------------------------------------- // This work is free. You can redistribute it and/or modify it under the // terms of the Do What The Fuck You Want To Public License, Version 2, // as published by Sam Hocevar. See the LICENSE file for more d...
// RegisterDevice registers a device to the driver. The driver will // establish connections to the device. func (d *driverImpl) RegisterDevice(device cgra.Device) { d.device = device d.establishConnectionOneSide(d.device, cgra.North) d.establishConnectionOneSide(d.device, cgra.South) d.establishConnectionOneSide(d...
/** * Initializes the specified {@link Authenticator} and registers it to * this service. * * @param authenticator Authenticator to initialize and register by type * @param directoryService configuration info to supply to the Authenticator during initialization * @throws javax.naming.Excep...
def delete_temp_image(dataset, obj_id): if not obj_id and str(obj_id) != "0": return type = dataset.type file_path = "media/" + str(type).lower() + "_" + str(dataset.id) + "_" + str(obj_id) if type == "HIPE": file_path += ".pdf" elif type == "MNIST": ...
// Recover []byte to compact struct instance directly without copying // Time is money, yeah! // Memory is money, yeah! func deserialize(t, b, p []byte) *routingTable { tcnt, bcnt, pcnt := len(t), len(b), len(p) bsize, psize := int(unsafe.Sizeof(base_t{})), int(unsafe.Sizeof(pre_t{})) verifyLen(tcnt, 4) verifyLen(b...
/** * @author Guduru, Thirupathi Reddy * @modified 2/4/16 */ public class SingletonIndexWriter { private static SingletonIndexWriter ourInstance = null; private final IndexWriter indexWriter; public static SingletonIndexWriter getInstance(final LuceneIndexConfig luceneIndexConfig) { if (ourInsta...
/** * Generic functionality for PIX/PDQ auditing interceptors, * a kind of Template Method. * @author Dmytro Rud */ public class AuditInterceptorUtils { private static final transient Logger LOG = LoggerFactory.getLogger(AuditInterceptorUtils.class); private AuditInterceptorUtils() { thro...
package util import ( R "reflect" A "github.com/Foxcapades/Argonaut/v0/pkg/argo" ) var numericKinds = map[R.Kind]bool{ R.Int: true, R.Int8: true, R.Int16: true, R.Int32: true, R.Int64: true, R.Uint: true, R.Uint8: true, R.Uint16: true, R.Uint32: true, R.Uint64: true, R.Float32: true...
#!/usr/local/bin/python from pathlib import Path import functools import subprocess # import readline import time import sys import os import importlib import pegtree import pegtree.treeconv as treeconv from pegtree.terminal import DefaultConsole bold = DefaultConsole.bold color = DefaultConsole.color ''' istty = Tru...
/** * Parses {@param version} and checks whether it is greater or equal to * <{@param otherMajor}, {@param otherMinor}, {@param otherPatch}> * comparing the corresponding version components in lexicographical order. * * @param version * @param otherMajor * @param otherMinor * @pa...
/* * check if clicked scrollbar and action it */ bool ThumbManager::clickedScrollbar(const Point& p) { if(_imageCount<THUMBS_PER_PAGE || !_scrollbar.containsPoint(p)) return false; if(p.X<_thumbx) _first-=THUMBS_PER_PAGE; else if(p.X>_thumbx+SCROLLBAR_KNOB_WIDTH) _first+=THUMBS_PER_PAGE; if(_first...
/** * Data computed during drawing. */ static final class DrawingData { private int mRemainderHorizontal; private int mRemainderVertical; private float mHorizontalPatchesSum; private float mVerticalPatchesSum; }
I am deeply disappointed that Senate Republicans have once again refused to do their job and give well-qualified nominees to the federal bench the yes-or-no votes they deserve. The D.C. Circuit, considered the Nation’s second-highest court, has three vacancies. These are judgeships created by Congress. Chief Justice Jo...
/** * @author frekele - Leandro Kersting de Freitas */ @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class Payment implements ClearSaleEntity { private static final long serialVersionUID = 1L; @JsonDeserialize(using = OffsetDateTimeJsonDeserialize.class) @JsonSerialize(using = OffsetDateT...
import { Document, Model, Schema } from 'mongoose'; import { IUser } from "../../domain/entities/types"; import { User } from "../../domain/entities/User"; export interface IUserDocument extends Omit<IUser, '_id'>, Document { } export interface IUserModel extends IUser, Model<IUserDocument> { toUser(user: IUser):...
/** * * * <pre> * Indicates that a live agent should be brought in to handle the * interaction with the user. In most cases, when you set this flag to true, * you would also want to set end_interaction to true as well. Default is * false. * </pre> * * <code>bool live_ag...
<gh_stars>10-100 import { assert } from "chai" import { parse, parseReply } from "../../src/parser" import { FinalReply } from "../../src/reply" import { TokenIter } from "../../src/parser/lexer" import { S_Exp, RootExpr } from "../../src/s-exps" // Idris 2 only. describe("Parsing :generate-def reply", () => { it("c...
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} module Json.Error ( -- * Types Error(..) -- * Encoding , encode , builderUtf8 ) where import Data.Bytes.Builder (Builder) import Data.Text...
package kalman import ( "fmt" "testing" "github.com/konimarti/lti" "gonum.org/v1/gonum/mat" ) // Testing based on example on page 145 in book "Kalman Filter" by <NAME>, 2017 //newContext for Rose Filter func newRoseContext() *Context { // define current context ctx := Context{ X: mat.NewVecDense(1, []float6...
/// Gathers semantic information about vertex, face and edge elements and /// their respective properties. /// /// Vertices are required, the other elements are not. Furthermore, faces /// have to be stored after vertices and edges have to be stored after /// faces. An error is returned if any of those properties is vi...
/** * Show search results map screen - using ShowSearchResultsOnMapEvent event */ private void showSearchResultsMapScreen(final ShowSearchResultsOnMapEvent event) { final Trip trip = singletonComponents.getTripService().getTrip(event.getTrip().getKey()); final int day = event.getTripDay(); final Strin...
use crate::{ cairo::lang::{ compiler::program::Program, instances::CairoLayout, vm::{ builtin_runner::{BuiltinRunner, Error as BuiltinRunnerError}, memory_dict::{Error as MemoryDictError, MemoryDict}, memory_segments::{Error as MemorySegmentError, MemorySe...
def move(self, attacking_character, move: Move): assert len(self.participants) == 2, 'need to have only 2 players battling' attacker, defender = self.participants if attacking_character == defender: defender = attacker attacker = attacking_character self.participa...
def clean_dataframe(df, is_slugify=True, threshold=50, rename_cols=None): if is_slugify: df = df.rename(columns=slugify) df = df.dropna(axis=1, how='all') for column in get_category_cols(df, threshold=threshold): df[column] = df[column].astype('category') for column in get_int_cols(df): ...
Who’s the best team in the NFL? The answer is as muddled as at any point in the season. According to our Elo ratings, the answer is technically the New England Patriots, who overtook the Denver Broncos after beating them in Week 9. But the Broncos gained ground by beating the Oakland Raiders on Sunday while the Patrio...
package pe.gob.sunat.tecnologia3.arquitectura.framework.desktop.modulos; import java.util.logging.Logger; import org.openide.util.NbBundle; import org.openide.windows.TopComponent; import org.openide.windows.WindowManager; import org.netbeans.api.settings.ConvertAsProperties; import org.openide.awt.ActionID; import or...
def parse_translation(self, language, entry, translation): for ts in [ts for ts in map(str.strip, translation.split(';')) if len(ts) > 0]: area_regex = __class__._regex.match(ts) if area_regex is not None: area = self._word_areas[area_regex.group(0)] trans...
""" *String Whitespacing Protocol* The protocol describing treatment of whitespace character for strings. """ from .._protocol import StringProtocol __all__ = ["StringWhitespacingProtocol"] class StringWhitespacingProtocol( StringProtocol, ): pass
<gh_stars>1-10 from django_filters.rest_framework import DjangoFilterBackend from django.shortcuts import get_object_or_404 from django.utils.decorators import method_decorator from rest_framework import exceptions, filters, generics, status, views from rest_framework.response import Response from core import models f...
/* * dynamic_loader.h * * DSP-BIOS Bridge driver support functions for TI OMAP processors. * * Copyright (C) 2008 Texas Instruments, Inc. * * This package is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software...
def gen_true_states(self): assert len(self.x0) == self.nD, "Initial state has dimension %s != "\ "model dimension %s" % (len(self.x0), self.nD) self.true_states = odeint(self.df_data_generation, self.x0, self.Tt, args=(self.model.params[self.params_set], ))
// this thread announces the room service to the lobby: void ov_server_t::announce_service() { uint32_t cnt(0); char cpost[1024]; while(runsession) { if(!cnt) { if(get_num_clients() == 0) { long int r(random()); secret = r & 0xfffffff; socket.set_secret(secret); } CUR...
Another round of national negative headlines; another round of Paul LePage-generated headaches for the state of Maine. The most recent episode highlighted a six-year reign, in which LePage has been charged as divisive, uncivil, and objectively unpopular. Some might say that Mainers got what they voted for in their cu...
<gh_stars>1-10 #ifndef VISIONWIDGET_H #define VISIONWIDGET_H #include <QWidget> namespace Ui { class VisionWidget; } class VisionWidget : public QWidget { Q_OBJECT public: explicit VisionWidget(QWidget *parent = 0); ~VisionWidget(); private: Ui::VisionWidget *ui; }; #endif // VISIONWIDGET_H
/** * These functions have been ported from hamcrest, whereas the signature has been customized */ public class CustomHamcrestMatchers { /** * Creates a matcher for {@link List}s that matches when consecutive passes over the examined {@link List} * yield at least one item that is matched by the corresp...
<filename>cloud-security/src/main/java/com/lin/learn/cloud/security/model/User.java<gh_stars>0 package com.lin.learn.cloud.security.model; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.SpringSecurityCoreVersion; import org.springframework.security.core.userdetails....
package v1 import ( "github.com/hfeng101/niwo/storage/mysql" ) func GetListByKeywordFromPersonageRecord(key string) (*[]mysql.PersonageRecordList, error){ personageRecordList := &[]mysql.PersonageRecordList{} dbHandle := mysql.GetMysqlDbHandle() //关键字模糊查找 dbHandle.Where("theme like ?", "%"+key+"%").Find(person...
/** * */ package com.jems.cbd.atores; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import com.jems.cbd.anotations.Cabecalho; /** * Através da classe <code>Pessoa</code> serão instanciados os <i> objetos * Pessoa</i> que serão persistidos no banco de dado...
// Copyright (c) 2020-2021 C4 Project // // This file is part of c4t. // Licenced under the MIT licence; see `LICENSE`. package compiler import ( "strings" "github.com/c4-project/c4t/internal/id" ) // Named wraps an Instance with its ID. type Named struct { // ID is the ID of the compiler. ID id.ID `toml:"id" j...
def ntp_sync(): try: ntp_client = ntplib.NTPClient() ntp_response = ntp_client.request(PypePeer.NTP_SERVER_ADDR) time_obj = datetime.datetime.utcfromtimestamp( ntp_response.tx_time) win32api.SetSystemTime(time_obj.year, time_obj.month, ...
{-# LANGUAGE OverloadedLists, OverloadedStrings, TypeOperators #-} module Main where import Network.Wai.Handler.Warp (run) import Servant import Twirp import Prelude hiding ((!!)) import System.Random import Control.Monad.IO.Class import Data.List.NonEmpty (NonEmpty, (!!)) import Twirp.Example.Haberdasher.Haberdashe...
<filename>attach_sweep.py # !!!! # Call this script as, for example: # python3 attach_sweep.py --sweep_id chvie4r1 --config_args_path "configs/svhn.yml" import wandb import train import argparse from utils import load_args_from_yaml parser = argparse.ArgumentParser(description='Attaching to a sweep.') parser.add_ar...
#include <pddl/detail/normalization/Description.h> #include <pddl/AST.h> #include <pddl/NormalizedAST.h> #include <pddl/detail/normalization/Domain.h> #include <pddl/detail/normalization/Problem.h> namespace pddl { namespace detail { ///////////////////////////////////////////////////////////////////////////////////...
import pytest import pandas._testing as tm class TestDataFrameTake: def test_take(self, float_frame): # homogeneous order = [3, 1, 2, 0] for df in [float_frame]: result = df.take(order, axis=0) expected = df.reindex(df.index.take(order)) tm.assert_fram...
/** * Unit test for the Sheet class. * * @author Glen Stampoultzis (glens at apache.org) */ public class TestSheet extends TestCase { public void testCreateSheet() throws Exception { // Check we're adding row and cell aggregates List records = new ArrayList(); records.add( new BOFRec...
<reponame>SwarmUS/HiveMind #include "hal/hal_flash.h" bool Flash_eraseSector(uint8_t sector) { FLASH_EraseInitTypeDef eraseConfig = {.TypeErase = FLASH_TYPEERASE_SECTORS, .Sector = sector, .NbSectors = 1, ...
/** * Wraps a symbol and its corresponding latest price. */ public class TickerPrice { /** * Ticker symbol. */ private String symbol; /** * Latest price. */ private String price; public String getSymbol() { return symbol; } public void setSymbol(String symbol) { this.symbol = sym...
Berlin, Oct 22 (ANI): A new study on landscape around Chesapeake Bay, the largest estuary in the US, has determined that imbalance in nitrogen cycle due to the widespread use of fertilizers is damaging water quality and fish populations. According to a report in Helmholtz Centre for Environmental Research (UFZ), Profe...
// SPDX-License-Identifier: LGPL-2.1-or-later /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2013-2014 Intel Corporation. All rights reserved. * * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #define _GNU_SOURCE #include <stdint.h> #include <stdbool.h> #include <errno.h> #include ...
import { useLocalStorage } from "react-use"; import { ReservationUnitByPkType, ReservationUnitType, } from "../modules/gql-types"; import { ReservationUnit } from "../modules/types"; export type ReservationUnitList = { reservationUnits: | ReservationUnit[] | ReservationUnitType[] | ReservationUnitByP...
<gh_stars>1-10 import { RootState } from "../rootReducer"; import { Language } from "../../types/interface"; export const languei18nSelector = (state: RootState): string => state.langue.languei18nCode; export const allLanguesSelector = (state: RootState): Language[] => state.langue.langues; export const showLang...
<gh_stars>0 // // Perceptron.hpp // Moles // // Created by <NAME> on 10/08/16. // Copyright © 2016 wizzo. All rights reserved. // #ifndef Perceptron_hpp #define Perceptron_hpp #include <stdio.h> namespace molegame { namespace misc { template<int Pc> struct Params { int p[Pc]; }; tem...
/** * Converts a multi-dimensional object array descriptor, given by descriptor, whose dimensionality * is represented by $ characters into the same descriptor but one in which the dimensionality * is represented by [ characters. * * The purpose of this method is to return a descriptor whose fo...
// Ensure that all dictionary indices are valid and that all values // are in range. // // Note that since we don't have the attribute schema, this doesn't validate // that a given attribute is being treated as the right type. That is, an // attribute called 'source.ip' which is of type IP_ADDRESS could be listed as //...
/*++ Copyright (c) 2004 - 2006, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distrib...
A new numerical approach to Anderson (de)localization We develop a new approach for the Anderson localization problem. The implementation of this method yields strong numerical evidence leading to a (surprising to many) conjecture: The two dimensional discrete random Schroedinger operator with small disorder allows st...
#![crate_name = "tiny_http"] #![crate_type = "lib"] #![forbid(unsafe_code)] extern crate log; extern crate ascii; extern crate chrono; extern crate chunked_transfer; extern crate url; use std::io; use std::net; use std::net::{Shutdown, TcpStream, TcpListener}; use std::sync::atomic::AtomicBool; use std::sync::atomic:...
Isolation of Gemmata-Like and Isosphaera-Like Planctomycete Bacteria from Soil and Freshwater ABSTRACT New cultured strains of the planctomycete division (order Planctomycetales) of the domain Bacteria related to species in the genera Gemmata and Isosphaera were isolated from soil, freshwater, and a laboratory ampicil...