text
stringlengths
3
1.05M
#!/usr/bin/env python """A collection of records stored sequentially. """ import collections import random import threading import time from grr.lib import access_control from grr.lib import aff4 from grr.lib import data_store from grr.lib import rdfvalue from grr.lib import registry from grr.lib import utils from g...
var express = require('express'), request = require('request'), cors = require('cors'), querystring = require('querystring'), cookieParser = require('cookie-parser'), // secrets = require('./secrets'), SpotifyWebApi = require('spotify-web-api-node'), bodyParser = require('body-parser'); co...
import React from "react"; import { HashRouter, Route, Switch, Redirect } from "react-router-dom"; // components import Layout from "./Layout"; // pages import Error from "../pages/error"; import Login from "../pages/login"; // context import { useUserState } from "../context/UserContext"; export default function A...
import discord import random from jager_function.global_variable import * from jager_function import jager_maps as r6_maps import jager_function.data as data from classes.classes import PlayerR6 def get_random_item(array): index_arr = random.randint(0, len(array) - 1) return array[index_arr] async def clear_...
'use strict'; require('child_process'); var net = require('net'); let promise; function weird() { if (!promise) { promise = get_weird(9000); } return promise; } function get_weird(port) { return new Promise(fulfil => { const server = net.createServer(); server.unref(); server.on('error', () => { fu...
exports.dir = 'pierce'; exports.waitSeconds = 5;
'use strict'; const { Double } = require('bson'); const stream = require('stream'); const crypto = require('crypto'); const { EJSON } = require('bson'); const fs = require('fs'); const { assert: test } = require('./shared'); const { setupDatabase, withClient } = require('./shared'); const { expect } = require('chai');...
/* * This file runs in a Node context (it's NOT transpiled by Babel), so use only * the ES6 features that are supported by your Node version. https://node.green/ */ // Configuration for your app // https://quasar.dev/quasar-cli/quasar-conf-js /* eslint-env node */ const ESLintPlugin = require('eslint-webpack-plugi...
from .core import * from .codec import * def ToASCII(label): return encode(label) def ToUnicode(label): return decode(label) def nameprep(s): raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")
import asyncio import logging from typing import Optional from torrent_client.algorithms.peer_manager import PeerManager from torrent_client.models import TorrentInfo from torrent_client.network import BaseTrackerClient, EventType, create_tracker_client class Announcer: def __init__(self, torrent_info: TorrentIn...
//Business Logic (Back-End) var romans = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"]; var numbers = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]; var romanConverter = function(input) { var romanNumbers = ""; for (var index = 0; index < romans.length; index += 1) { if (input...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 5.5l6 4.5v9H6v-9l6-4.5M12 3L4 9v12h16V9l-8-6zm3 9h-3.5v3.5H8V11H7v7h1v-1.5h8V18h1v-4c0-1.1-.9-2-2-2zm-5.25.5c-.69 0-1.25...
/** * @license Copyright 2017 The Lighthouse 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 by applica...
const path = require('path'); const DEFAULTS = { port: 8080, host: '0.0.0.0', output: './dist', build_port: 9091 }; const requiredProperties = 'root,input,appFiles'; function required (options) { requiredProperties.split(',').forEach((key) => { if (options[key] === undefined) { throw new Error(`The config p...
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
from django.apps import apps from django.conf import settings from django.db.models import Q from api_basebone.core.admin import BSMAdmin from api_basebone.core.admin import BSMAdminModule from api_basebone.utils import meta, module from api_basebone.utils.meta import get_export_apps from bsm_config.models import Admi...
from sys import version_info MIN_SUPPORTED_PYTHON_VERSION = (3, 6, 0) python_version = version_info[0:3] print("Python version: {}".format(python_version)) if python_version < MIN_SUPPORTED_PYTHON_VERSION: raise Exception( "Python version {} is not supported. " "Please use Python version {} or hig...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.Auto = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentCol...
// Copyright (c) 2012 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. #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ #include <string> #include "base/callb...
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_Enum4135868527.h" #include "EasyAR_Unity_EasyAR_VideoPlayerBaseBehaviour_Video2729381874.h" #ifdef __clang__ #pragma clang diagnostic p...
/* @license dhtmlxScheduler v.4.4.4 Professional Evaluation This software is covered by DHTMLX Evaluation License. Contact sales@dhtmlx.com to get Commercial or Enterprise license. Usage without proper license is prohibited. (c) Dinamenta, UAB. */ Scheduler.plugin(function(e){e._get_url_nav=function(){for(var e={},t=...
var Lab = require('lab'); var lab = exports.lab = Lab.script(); var expect = require('chai').expect; var before = lab.before; var after = lab.after; var describe = lab.experiment; var it = lab.test; var logger = require('../lib/logger'); describe('logger', function () { it('should be able to log with info()', func...
# Copyright 2017 The TensorFlow 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 by applica...
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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 required by applicable...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import pickle import os import logging from multiprocessing import Process,Manager,cpu_count from nltk.corpus import stopwords from transformers import BertTokenizer from .refinement import content_refinement from .utils import setuplogging setup...
/* Copyright (C) 2012 by Ivan Safrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
def download(): print("Download specific file.") def etl(): print("Run full ETL pipeline on file.")
const CACHE_NAME = "static-cache-v2"; const DATA_CACHE_NAME = "data-cache-v1"; const iconSizes = [ "192", "512"]; const iconFiles = iconSizes.map( (size) => `/icons/icon-${size}x${size}.png` ); const staticFilesToPreCache = [ "/", "/indexdb.js", "/index.js", "/manifest.json", "/index.html", "/style.css...
import { createScale } from '../../utils/scale'; import { HORIZONTAL, TOP, LEFT, MIDDLE, END, START } from '../../constants'; const getTicks = scale => (scale.ticks ? scale.ticks() : scale.domain()); const getOffset = scale => (scale.bandwidth ? scale.bandwidth() / 2 : 0); const getDominantBaseline = (orientation, pos...
/** * @file ColorBlock component */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; // Vendors import classNames from 'classnames'; class ColorBlock extends Component { constructor(props, ...restArgs) { super(props, ...restArgs); } isHex = (value = this.props.value...
'use strict'; class CandleLight extends Object3D { constructor(x, z) { super(); this.light = new THREE.PointLight(0xffffff, 1, 260, 2); this.light.position.set(0, 25, 0); this.add(this.light); this.position.set(x, 10, z); } }
import io import json import logging import os import pickle import numpy as np import torch import torchvision.transforms as transforms from PIL import Image # Training container doesn't have this package logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # To use new EIA inference API, custo...
def get_lines(): with open("input.txt") as f: return [line.strip() for line in f.readlines()] def works(last, number): half = number/2 for item in last: if (item != half) and (number-item) in last: return True print(last) return False def findWrong(lines, size): las...
module.exports = { getSelectedProductTypeFromSession: (session, productId) => { return ( (session && session.products && session.products[productId] && session.products[productId].productType && session.products[productId].productType.value) || 0 ); }, };
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
import math import collections import torch from torchtext.data.utils import ngrams_iterator def _compute_ngram_counter(tokens, max_n): """ Create a Counter with a count of unique n-grams in the tokens list Args: tokens: a list of tokens (typically a string split on whitespaces) max_n: the ma...
//Calculate Macros /*Potein/Carbs = 4.1 kcal/g Fats = 8.8 kcal/g src: http://en.wikipedia.org/wiki/Food_energy /u/sknick_ : Assuming you are not obese, your macros would be: Protein = .8g per lb of bodyweight (Total protein calories = result * 4.1) * Protein = 1.763696g per kg Fat = .35g per lb of...
import logging import os import time import asyncio from dotenv import load_dotenv from aiogram import Bot#, Dispatcher, executor #from aiogram.contrib.fsm_storage.memory import MemoryStorage from lxml import html import requests import json load_dotenv() logging.basicConfig(level=logging.INFO) user...
/* ------------------------------------------------------------------ * Copyright (C) 2009 Martin Storsjo * * 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...
#!/usr/bin/python # Copyright (C) 2012 Ion Torrent Systems, Inc. All Rights Reserved import os import json import traceback from matplotlib import use use("Agg", warn=False) import matplotlib.pyplot as plt from ion.utils.blockprocessing import printtime def generate_base_error_plot(alignStats, plotPng, graph_max_x)...
#inputCore.py #A part of NonVisual Desktop Access (NVDA) #This file is covered by the GNU General Public License. #See the file COPYING for more details. #Copyright (C) 2010 James Teh <jamie@jantrid.net> """Core framework for handling input from the user. Every piece of input from the user (e.g. a key press) is...
import pygame import sys def load(): # path of player with different states PLAYER_PATH = ( 'ENVS/assets/sprites/redbird-upflap.png', 'ENVS/assets/sprites/redbird-midflap.png', 'ENVS/assets/sprites/redbird-downflap.png' ) # path of background BACKG...
/** * js/page/admin/file-types/forms/index.js */ let $ = require('jquery'); import Sortable from 'sortablejs'; let meta = require('Services/meta'); let notify = require('Services/notify'); let fileType = require('App/file-type'); $(function() { let fileTypeId = meta.get('fileTypeId'); let sortable = S...
#if 0 #elif defined(__x86_64__) && __x86_64__ // Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) # define __has_include(x) 0 #endif #if !defined(__has_attribute) # define __has_at...
import configparser config = configparser.ConfigParser() config.read('config.ini') secret_key = config['DEFAULT']['SECRET_KEY'] # 'secret-key-of-myapp' ci_hook_url = config['CI']['HOOK_URL'] # 'web-hooking-url-from-ci-service'
const queryLocators = require("../../../../locators/QueryEditor.json"); const queryEditor = require("../../../../locators/QueryEditor.json"); const dsl = require("../../../../fixtures/inputdsl.json"); const pages = require("../../../../locators/Pages.json"); const widgetsPage = require("../../../../locators/Widgets.jso...
import json from app.model import User from tests.base_test import BaseTest class TestUserListAPI(BaseTest): def test_get_returns_200_with_all_users_list(self): # Given user_1 = User(username='user1', email='user1@test.com', password_hash='hash') user_2 = User(username='user2', email='use...
# -*- coding: utf-8 -*- """ Last update: Sep. 2, 2020 @author: Asieh Abolpour Mofrad This code is used for simulation results reported in an article entitled: ''Enhanced Equivalence Projective Simulation: a Framework for Modeling Formation of Stimulus Equivalence Classes" in Neural Comput...
import json import logging from pathlib import Path from flask import Blueprint, jsonify, make_response from structlog import wrap_logger from frontstage import app, talisman logger = wrap_logger(logging.getLogger(__name__)) info_bp = Blueprint('info_bp', __name__, static_folder='static', template_folder='template...
import pytest import imageio as iio def test_format_on_v3_plugin(): with pytest.raises(RuntimeError): iio.config.known_plugins["pillow"].format
""" This module lets you practice DEBUGGING when RUN-TIME EXCEPTIONS occur, focusing here on AttributeError exceptions: 'BLAHType' object has no attribute 'FOO' and on TypeError exceptions, in particular those of the form: 'BLAHType' object is not callable. Authors: David Mutchler, Vibha Alangar, Matt Boutell, ...
# Copyright 2014 MongoDB, Inc. # # 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 or agreed to in writing, so...
/* globals AFRAME THREE */ AFRAME.registerBrush('single-sphere', { init: function (color, width) { this.material = new THREE.MeshStandardMaterial({ color: this.data.color, roughness: 0.6, metalness: 0.2, side: THREE.FrontSide, shading: THREE.SmoothShading }); ...
/* ========================================================================= */ /* Preloader /* ========================================================================= */ jQuery(window).load(function(){ $("#preloader").fadeOut("slow"); }); /* ============================================================...
/* * Regular Expression Engine * * Copyright (c) 2017-2018 Fabrice Bellard * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
# Copyright (c) Shopkick 2017 # See LICENSE for details. """Tests for seashore.shell""" import sys import tempfile import unittest import traceback from seashore import shell class ShellTest(unittest.TestCase): """Tests for Shell()""" def setUp(self): """create a new shell object""" self.sh...
const io = require('socket.io-client'); const socket = io('http://localhost:3000'); var x = 0; setInterval(() => { var data = {} data.x = x; data.y = Math.floor((Math.random() * 30) + 1); data.gateIndex = 2; data.id = 0; x++; console.log("pushed data.x: " + data.x + " data.y: " + data.y); ...
!function(){"use strict";function t(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function e(t){return t.name||typeof t}function n(t){return null!=t}function r(t){return null==t}function o(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.n...
#ifndef _LINUX_VMSTAT_H #define _LINUX_VMSTAT_H #include <linux/types.h> #include <linux/percpu.h> #include <linux/mm.h> #include <linux/mmzone.h> #include <linux/vm_event_item.h> #include <linux/atomic.h> extern int sysctl_stat_interval; #ifdef CONFIG_VM_EVENT_COUNTERS /* * Light weight per cpu counter implementat...
# Generated by Django 3.1.7 on 2021-03-04 12:33 import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_recipe'), ] operations = [ migrations.AddField( model_name='recipe', name='image', ...
from flask_wtf import FlaskForm from wtforms import SelectField, TextAreaField,StringField, PasswordField, BooleanField, SubmitField from wtforms.validators import ValidationError, DataRequired, Email, EqualTo,Length from app.models import User class SearchForm(FlaskForm): choices = [('gender','gender'),('name','name...
define("ace/snippets/julia",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText =undefined; exports.scope = "julia"; });
import React from 'react'; import {View, Image, Vibration, Button, Text, TouchableOpacity} from 'react-native' import {tabStyles} from '../../Styles/tabbarStyle' import {clockMainStyle} from '../../Styles/clockMainStyle' export default class ClockMain extends React.Component { static navigationOptions = { ...
# Copyright 2018 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 or agreed to in writing, ...
import uuid from django.db import models class Card(models.Model): """ Cards in desk """ card_id = models.UUIDField(primary_key=True, unique=True, default=uuid.uuid4) desk_id = models.UUIDField(blank=False, null=False) question = models.TextField(blank=False, null=False) answer = models.T...
/*jslint node: true */ "use strict"; var conf = require('byteballcore/conf.js'); var db = require('byteballcore/db.js'); var storage = require('byteballcore/storage.js'); var eventBus = require('byteballcore/event_bus.js'); var mail = require('byteballcore/mail.js'); var headlessWallet = require('headless-byteball'); v...
import { loadFixture, testVM, setData, nextTick, sleep } from '../../../tests/utils' describe('table', () => { beforeEach(loadFixture(__dirname, 'table')) testVM() it('all example tables should contain class names', async () => { const { app: { $refs } } = window expect($refs.table_basic).toH...
// 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. /** * @fileoverview Unit test for the Braille IME. */ /** * Mock Chrome event supporting one listener. */ class MockEvent { constructor() { /**...
/* * sgen-cardtable.c: Card table implementation for sgen * * Author: * Rodrigo Kumpera (rkumpera@novell.com) * * SGen is licensed under the terms of the MIT X11 license * * Copyright 2001-2003 Ximian, Inc * Copyright 2003-2010 Novell, Inc. * Copyright 2011 Xamarin Inc (http://www.xamarin.com) * * Permiss...
# -*- coding: UTF-8 -*- """Facebook Chat (Messenger) for Python :copyright: (c) 2015 - 2019 by Taehoon Kim :license: BSD 3-Clause, see LICENSE for more details. """ from __future__ import unicode_literals # These imports are far too general, but they're needed for backwards compatbility. from .models import * from ....
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import _ from 'lodash'; export function initState(name) { return (initialState) => { return _.mapValues(initialState, (val, key) => { var item = localStorage.getItem(`${name}/${key}`); if (item) return JSON.parse(item); return val; }); }; } export function saveState(name) { return (sta...
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.23.6 Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except Im...
# __AUTHOR__ : SAKSHAM SINGHAL # __EMAIL__ : SAKSINGH@MICROSOFT.COM import torch import os from torch.utils.data import DataLoader, Dataset from enum import IntEnum from random import choice import random import collections import time from turing.utils import namedtorchbatch from turing.text import mask, ...
import pytest from presidio_anonymizer.operators import Mask from presidio_anonymizer.entities import InvalidParamException @pytest.mark.parametrize( # fmt: off "text, masking_char, chars_to_mask, from_end, anonymized_text", [ ("text", "*", 4, False, "****"), # Fully mask ("text", "*", 4...
from setuptools import setup from setuptools import find_packages # load the README file. with open(file="README.md", mode="r") as fh: long_description = fh.read() setup( # this will be my Library name. name='td-ameritrade-python-api', # Want to make sure people know who made it. author='Alex Ree...
k, s = [int(x) for x in input().split()] count = 0 for x in range(k + 1): if x <= s: for y in range(k + 1): if x + y <= s: z = s - (x + y) if z <= k: count += 1 print(count)
import React from 'react'; import articleTeaser from './article-teaser.twig'; import articleTeaserData from './article-teaser.yml'; import articleTeaserHighlightedData from './article-teaser-highlighted.yml'; /** * Storybook Definition. */ export default { title: 'Molecules/Article Teaser' }; export const article...
#!/usr/bin/env python3 import re import ast import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('wfpm/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.rea...
from django import forms from django.contrib import admin from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField # Register your models here. from apps.secretqa.models import QA # Security Questions and Answers cla...
const { RESTDataSource } = require("apollo-datasource-rest"); class HadithApi extends RESTDataSource { constructor() { super(); this.baseURL = "https://api.sunnah.com/v1/"; } willSendRequest(request) { request.headers.set("x-api-key", process.env.X_API_KEY); } async getCollections() { retur...
// This file has been autogenerated. var profile = require('../../../lib/util/profile'); exports.getMockedProfile = function () { var newProfile = new profile.Profile(); newProfile.addSubscription(new profile.Subscription({ id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6', name: 'Node CLI Test', user: { ...
import React from 'react'; import { shallow } from 'enzyme'; import HeaderView from './HeaderView'; describe('(Component) <Header />', () => { it('should render the correct title', () => { const wrapper = shallow( <HeaderView authService={{}} history={{ push: () => null }} auth={{ ...
import time import os import csv import sys import re import string import dateutil.parser from collections import OrderedDict import qumulo.rest_client from qumulo.rest_client import RestClient class ApiToCsv: api_cli = None data_dir = None timestamp = None datestamp = None username = None p...
function extract(obj) { var a; let b; ({ a: a, b: b } = obj); console.log(b); } extract({ a: 1, b: 2 }); extract({ b: 4 });
/* Copyright 2017 Marcel Greter https://www.github.com/mgreter */ // since we have to work with very raw data here // the tasker is very sensitive to invalid data // not sure how to harden this without giving up // too much performance. Works for me for now ... // private scope (function (THREE, THREEAPP...
define('ember-bootstrap/components/bs-form/element/help-text', ['exports', 'ember-bootstrap/components/base/bs-form/element/help-text'], function (exports, _emberBootstrapComponentsBaseBsFormElementHelpText) { 'use strict'; exports['default'] = _emberBootstrapComponentsBaseBsFormElementHelpText['default'].extend({...
# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 EPAM Systems """ This module takes processed YAML config tree (with variables expanded and parameters applied) and produces Ninja build file """ import os.path import sys from typing import Optional, List from importlib import import_module from moulin import nin...
from multi_tracker_analysis import data_slicing import numpy as np import sys sys.path.append('../nodes') from multi_tracker_analysis import Kalman import matplotlib.pyplot as plt import imp def find_covariance_R_given_static_object_data(x): ''' x - list or np.array - time series of measured x position of a s...
from collections import deque import numpy as np from skmultiflow.core.base import StreamModel from skmultiflow.utils import get_dimensions from skmultiflow.trees.numeric_attribute_class_observer_gaussian import NumericAttributeClassObserverGaussian from skmultiflow.trees.nominal_attribute_class_observer import Nominal...
var helper = require(__dirname + "/../test-helper"); var pg = require(__dirname + "/../../../lib"); helper.pg = pg; //first make pool hold 2 clients helper.pg.defaults.poolSize = 2; var killIdleQuery = 'SELECT procpid, (SELECT pg_terminate_backend(procpid)) AS killed FROM pg_stat_activity WHERE current_query LIKE \'<...
import unittest import zserio from testutils import getZserioApi class IndexOperatorTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "expressions.zs").index_operator def testZeroLength(self): elementList = self._createElementList(0) self....
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2019 Intel Corporation <www.intel.com> * */ #include <common.h> #include <dm.h> #include <errno.h> #include <div64.h> #include <fdtdec.h> #include <hang.h> #include <log.h> #include <ram.h> #include <reset.h> #include <asm/global_data.h> #include "sdram_soc64.h...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, (global.FullCalendarLocales = global.FullCalendarLocales || {}, global.FullCalendarLocales.id = f...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef ANALOGBAR_H #define ANALOGBAR_H #ifdef _WIN32 #pragma once #endif #include <vgui/VGUI.h> #include <vgui_controls/...
class Model_Map: def __init__(self, icoord_data): self.icoord_data = icoord_data self.abs_coordinates = [] # # dummy data # self.abs_coordinates = [(0, 10), (20, 30), (25, 15), (0, 10), (25, 10), (-10, -10)] def store_map_coord(self, x, y): """ Append given coo...
var thumbUp = document.getElementsByClassName("fa-thumbs-up"); var trash = document.getElementsByClassName("fa-trash"); var sensational = document.getElementsByClassName("fa-window-restore"); var disturbed = document.getElementsByClassName("fa-wind"); Array.from(thumbUp).forEach(function(element) { element.addEv...
# Generated by Django 3.1.7 on 2021-06-17 22:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('dnd5e', '0027_feature_level_table'), ] operations = [ migrations.RemoveField( model_name='chara...
"""Utilities for reading real time clocks and keeping soft real time constraints.""" import os import time import platform import subprocess import multiprocessing from cffi import FFI # Build and load cython module import pyximport installer = pyximport.install(inplace=True, build_dir='/tmp') from common.clock import...