text
stringlengths
3
1.05M
from collections import defaultdict import logging as log from utils.AlertGenerator import emit_alert from db.Models import DataCollector, Issue, AlertType class ABPDetector(): def __init__(self): self.last_packet = defaultdict(lambda: {}) self.last_gc = None def __call__(self, packet, devi...
import sys import os from setuptools import setup from setuptools.command.develop import develop PYPY = hasattr(sys, 'pypy_version_info') requires = [ 'SQLAlchemy>=1.0', 'flask>=0.10, <1.0', 'alembic>=0.8.0', 'Flask-SQLAlchemy>=2.0', 'Flask-Script>=2.0', 'Flask-Migrate>=1.5.0', 'Flask-Logi...
// Copyright 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.txt" file a...
from django.contrib import admin from .models import Host,EndPoint,DataBase # Register your models here. class HostAdmin(admin.ModelAdmin): list_display = ('id', 'title', 'login_endpoint', 'is_delete', 'created') admin.site.register(Host, HostAdmin) admin.site.register(DataBase) admin.site.register...
visualize({ auth: { name: "joeuser", password: "joeuser", organization: "organization_1" } }, function (v) { var report = v.report({ resource: "/public/Samples/Reports/16g.InteractiveSalesReport", container: "#report" }); v.inputControls({ co...
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2020 Stefano Gottardo (original implementation module) Generate the data to build a directory of xbmcgui ListItem's SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ import...
/*! @file @brief インポート、エクスポートマネージャ @author Uchi @date 2010/4/22 新規作成 */ /* Copyright (C) 2010, Uchi, Moca This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to an...
const diaryRouter = require('express').Router(); const Diary = require('../data/helpers/diary-model'); diaryRouter.get('/', async (req, res) => { try { const diaries = await Diary.find(); res.status(200).json(diaries); } catch (error) { res.status(500).json({ message: `Diaries could not be found ${err...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #ifdef FB_SONARKIT_ENABLED #import <Foundation/Foundation.h> #import "FlipperPlugin.h" #import "FlipperStateUpdateListener.h" /**...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : fedhf\model\criterion\__init__.py # @Time : 2022-05-03 16:06:51 # @Author : Bingjie Yan # @Email : bj.yan.pa@qq.com # @License : Apache License 2.0 import torch import torch.nn as nn import torch.optim as optim criterion_factory = { 'l1': ...
import csv import os import nltk import math import model.dictionary as dictionary from itertools import islice punctuation = ['.', ',', '!', '?', '(', ')', '$', ':', ';', '{', '}', '[', ']', '•', '|'] def text_from_path(path): with open(path) as f: return f.read() def get_data(path, n=100000): with open(path) ...
from __future__ import absolute_import from rest_framework import permissions from sentry.api.exceptions import SuperuserRequired from sentry.api.exceptions import SsoRequired, TwoFactorRequired from sentry.auth import access from sentry.auth.superuser import is_active_superuser from sentry.utils import auth class ...
module.exports = "lib1 component";
from tkinter import * from enemycreator import * from itemcreator import * from copy import * from time import * class Battlescreen(Frame): def __init__(self, master, next, causedeath, level, player, x, y, floor, shopitems): super().__init__(master) self.resume = next self.die = causedeath...
// function to generate markdown for README function defaultContribute(answers) { if (answers.futureContributors === `# Contributor Covenant Code of Conduct`) { answers.futureContributors = `## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free ex...
px.import({ scene: 'px:scene.1.js', keys: 'px:tools.keys.js', }).then( function importsAreReady(imports) { var scene = imports.scene; var root = imports.scene.root; var keys = imports.keys; var base = px.getPackageBaseFilePath(); var hasShaders = true; var intervalTimer = nul...
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to build CKEdi...
var fs = require('fs'); var PluginInstMgr = function () { this.pluginList = {}; } /** * Get all plugin instance info * @name PluginInstMgr.prototype.getAllPluginInstInfo * @function * @return {array} a list of plugin instance info */ PluginInstMgr.prototype.getAllPluginInstInfo = function () { ret = []...
""" CursorWrapper (like django.db.backends.utils) """ import datetime import decimal import logging import pytz from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db import models, NotSupportedError from django.db.models.sql import subqueries, Query, RawQuery from six ...
const { ServiceBusClient } = require("@azure/service-bus"); module.exports = function (context, req) { let model = (typeof req.body != 'undefined' && typeof req.body == 'object') ? req.body : null; let err = !model ? "no data; or invalid payload in body" : null; context.log(model); if (!err) { ...
from django.conf import settings from .validators import DEFAULT_MIN_SCORE def zxcvbn_min_score(): zxcvbn_validator = None for validator in settings.AUTH_PASSWORD_VALIDATORS: if validator['NAME'] == 'zxcvbn_password.ZXCVBNValidator': zxcvbn_validator = validator break if ...
#pragma once #include "Tower.h" #include "ProjectileEffects.h" #include "FireEffects.h" #include "PoisonEffects.h" class ArcherTower : public Tower { public: ProjectileEffects projectileEffects; FireEffects fire; PoisonEffects poison; bool arrowOnFire = false; bool arrowPoisoned = false; int upgradeToFirePrice ...
# coding=utf-8 import cv2 from array import array import imagetools as tools from enum import Enum class ChannelType(Enum): RGB = 0, BGR = 1 def combine_bgrs_nchw(bgrs, means_b_g_r=(103.94, 116.78, 123.68), scale=0.017, channel_type=ChannelType.BGR): print("[INFO] ---- combine_bgrs_nchw ---- start") ...
import torch import torch.nn as nn import torchvision import torch.optim as optim import torch.nn.functional as F from tqdm import tqdm import torchvision.transforms as T from quickvision.models.classification import cnn import config from quickvision import utils def create_cifar10_dataset(train_transforms, valid_tr...
#include <stdio.h> #include "common.h" #include "pool.h" #define CAPACITY_LIMIT (4 * 1024 * 1024) int pool_init(pool_t* p) { size_t i; for (i = 0; i < ROOM_COUNT; ++i) { p->room[i].ptr = NULL; p->room[i].length = p->room[i].capacity = 0; p->room[i].used = 0; } p->total = p...
# -*- coding: utf-8 -*- # @Author: Theo Lemaire # @Email: theo.lemaire@epfl.ch # @Date: 2021-05-14 17:50:14 # @Last Modified by: Theo Lemaire # @Last Modified time: 2021-05-19 21:39:40 import os import pickle import logging import numpy as np from ..utils import logger, isWithin from ..core import Model, Neuronal...
import pygame import time pygame.font.init() # board = [ # [0, 0, 0, 0, 0, 0, 0, 0, 0, ], # [0, 0, 0, 0, 0, 0, 0, 0, 0, ], # [0, 0, 0, 0, 0, 0, 0, 0, 0, ], # [0, 0, 0, 0, 0, 0, 0, 0, 0, ], # [0, 0, 0, 0, 0, 0, 0, 0, 0, ], # [0, 0, 0, 0, 0, 0, 0, 0, 0, ], # [0, 0, 0, 0, 0, 0, ...
# -*- coding: utf-8 -*- # # Copyright 2017 Mycroft AI 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 ...
# ------------------------------ # 240. Search a 2D Matrix II # # Description: # Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: # Integers in each row are sorted in ascending from left to right. # Integers in each column are sorted in ascending from...
#include <ansi.h> inherit ROOM; //void kf_same(object who,object me); void create() { set("short", "衙門正廳"); set("long", @LONG 堂上東西有兩根楹住,掛着一幅對聯,但是你無心細看。正 牆上懸掛一個橫匾,上書四個金光閃閃的大字。知府正坐在文案後批 閲文書,師爺隨侍在後。大堂正中高懸一匾: 明 鏡 高 懸 LONG ); set("valid_startroom",1); ...
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
const triple = (x) => x * 3; async function myFunction(n) { return n |> Math.abs(@@) |> Promise.resolve(@@) |> await @@ |> triple(@@); } return myFunction(-7).then(result => { expect(result).toBe(21); });
'use strict'; /** * Logger configuration * * Configure the log level for your app, as well as the transport * (Underneath the covers, Sails uses Winston for logging, which * allows for some pretty neat custom transports/adapters for log messages) * * For more information on the Sails logger, check out: * http:...
import os from datetime import datetime from termcolor import colored from contextlib import redirect_stdout import tensorflow.compat.v1 as tf import tempfile import yaml import subprocess as sp import numpy as np from skimage.metrics import structural_similarity, peak_signal_noise_ratio import matplotlib matplotlib...
import React, {Component} from 'react'; import { Card, CardBody, CardHeader, CardFooter, Col, Row, Button, Form, FormGroup, Label, Input, ListGroup, ListGroupItem, Badge, Table } from "reactstrap"; import axios from "axios"; class DetailProject extends Component { ...
# Tools for working with GLM data. Mostly adapted from glmtools import xarray as xr import numpy as np import pyproj as proj4 from datetime import timedelta import warnings from glmtools.io.lightning_ellipse import lightning_ellipse_rev from lmatools.coordinateSystems import CoordinateSystem from lmatools.grid.fixed i...
from __future__ import division import itertools import numpy as np import chainer from chainer.backends import cuda import chainer.functions as F from chainer.links import Convolution2D from chainercv.links import Conv2DBNActiv from chainercv import utils from chainercv.links.model.yolo.yolo_base import YOLOBase ...
/**========================================================= * Module: CardsController.js =========================================================*/ (function() { 'use strict'; angular .module('filiumApp') .controller('CardsController', CardsController); CardsController.$inject = [...
# -*- coding: utf-8 -*- """ Created on Sat Feb 20 13:18:25 2021 @author: Dragneel """ #%% Graph Generation Function def createGraph(grp, cnt_nodes = 0, cnt_edges = 0): ''' print('Write From Node, To Node and Cost of the Path:') i = 0 while i < cnt_edges: print('Edge ', i+1) ...
# Copyright 2018-2019 The glTF-Blender-IO 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 law or ...
/* * zs.c: Serial port driver for IOASIC DECstations. * * Derived from drivers/sbus/char/sunserial.c by Paul Mackerras. * Derived from drivers/macintosh/macserial.c by Harald Koerfgen. * * DECstation changes * Copyright (C) 1998-2000 Harald Koerfgen * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 Maci...
/** * Copyright 2004-present Facebook. All Rights Reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import type {LngLatLike} from 'mapbox-gl/src/geo/lng_lat'; import type {MapType} from '@fbcnms/m...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2020/1/3 19:24 # @Author : 王洋 # @FileName: xueli.py # @Software: PyCharm import pymysql import pandas as pd from pandas.core.frame import DataFrame import re,time,random import config db = pymysql.connect( host="localhost", port=3306, user=config...
# Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
""" digital_NN_main.py Simple single layer fully connected neural network, used to test whether or not the unitary-ness of ONNs actually affect accuracy Author: Simon Geoffroy-Gagnon Edit: 29.01.2020 """ import sys sys.path.append('neural_network_digital') from sklearn.utils import shuffle import numpy as np import pa...
# -*- coding: utf-8 -*- # Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2008, Benjamin Kampmann <ben.kampmann@googlemail.com> """ This is a Media Backend that allows you to access the Trailers from Apple.com """ from coherence.backend import BackendItem, BackendStore fr...
var classv8_1_1_serialization_data = [ [ "SerializationData", "classv8_1_1_serialization_data.html#a1f3ec0cac62e39dc570fb73e1fd1fcc2", null ], [ "~SerializationData", "classv8_1_1_serialization_data.html#ad9c8bc0952961d643c3cdff497a6d841", null ], [ "Read", "classv8_1_1_serialization_data.html#afeaf3eebe869...
import * as React from "react"; import { useTheme } from "@material-ui/core/styles"; function AlertIcon() { const theme = useTheme(); const isLight = theme.palette.mode === 'light'; const color = theme.palette.common[isLight ? 'black' : 'white']; return ( <svg width="26" height="24" ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{RgaL:function(t,e,n){"use strict";n.r(e),n.d(e,"IonMenu",function(){return r}),n.d(e,"IonMenuButton",function(){return h}),n.d(e,"IonMenuToggle",function(){return p});var i=n("cBjU"),o=n("GGff"),a=function(t,e,n,i){return new(n||(n=Promise))(function(o,a){functi...
option_text = { 'for_one': { 'first': 'Вы можете установить приветствие для {}.\nОтправьте его.', 'delay': 'Вы можете установить задержку перед отправлением приветствия ботом {}.\nОтправьте число в секундах.' }, 'for_all': { 'first': 'Вы можете установить приветствие для всех Ваших б...
import os import disnake import re import platform import time from datetime import datetime, timedelta, timezone from disnake.ext import commands from dotenv import load_dotenv from googletrans import Translator from googletrans.constants import LANGUAGES from utils.arguments_parser import valid_datetime_type from uti...
# -------------- # Code starts here class_1 = ['Geoffrey Hinton','Andrew Ng','Sebastian Raschka','Yoshua Bengio'] class_2 = ['Hilary Mason','Carla Gentry','Corinna Cortes'] new_class = class_1 + class_2 print(new_class) new_class.append('Peter Warden') print(new_class) new_class.remove('Carla Gentry') print(new_class) ...
from unittest import TestCase import numpy as np import torch import torch.nn as nn from algorithms.appo.learner import build_rnn_inputs, build_core_out_from_seq # noinspection PyPep8Naming class TestPackedSequences(TestCase): def check_packed_version_matching_loopy_version(self, T, N, D, random_dones): ...
$(function () { // init: side menu for current page $('li#menu-companies').addClass('menu-open active'); $('li#menu-companiess').find('.treeview-menu').css('display', 'block'); $('li#menu-companies').find('.treeview-menu').find('.list-companies a').addClass('sub-menu-active'); // call tabulator fu...
(function() { function HomeCtrl(Task) { this.list = Task.currentList; this.addItem = function(messageDescription, taskPriority) { if (messageDescription) { var newItem = { description: messageDescription, priority: taskPriority, completed: false }; ...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import <DVTKit/DVTToolbarButtonImageFactory.h> @interface DVTToolbarButtonImageAnalyze : DVTToolbarButtonImageFactory { } - (id)templateImageForButton; - (struct CGSize)sizeWitho...
#!/usr/bin/env python ############################################################################################################### ## [Title]: reconscan.py -- a recon/enumeration script ## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift ##---------------------------------------------------------------------------...
/* * Copyright (C) 2020-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/offline_compiler/source/decoder/helper.h" #include "shared/source/helpers/hw_info.h" #include "hw_cmds.h" #include "platforms.h" #include <cctype> #include <fstream> #include <map> #include <memory> #include <s...
from __future__ import absolute_import import pkg_resources import pytest from shipwright._lib import source_control from .utils import commit_untracked, create_repo def test_default_tags_works_with_detached_head(tmpdir): tmp = tmpdir.join('shipwright-sample') path = str(tmp) source = pkg_resources.res...
def threeSum(nums): """ :type nums: List[int] :rtype: List[List[int]] """ nums = sorted(nums) result = [] for i in range(0,(len(nums)-3)): if i == 0 or nums[i] >= nums[i-1]: start = i + 1 end = len(nums) - 1 ...
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' //bootstrap import $ from 'jquery' import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/js/bootstrap.min.js'; Vue.config.productionTip = false new Vue({ router, store, render: h => h(A...
var keystone = require('keystone'); var Types = keystone.Field.Types; /** * Logged Work Model * ========== */ var Project = new keystone.List('Project', { map: { name: 'title' }, autokey: { path: 'slug', from: 'title', unique: true }, }); Project.add({ title: { type: String, required: true }, ...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /***************************************************************************...
var cleave = new Cleave('.wa-number', { delimiter: ' ', blocks: [2, 3, 3, 3, 3], uppercase: true }); const load_phone = () => { $.ajax({ url: "https://restcountries.eu/rest/v2/regionalbloc/ASEAN ", type: "get", dataType: 'json', success: function (response) { let city = response; $.each(city, functio...
function initLogo(){ // INSTANTIATE MIXITUP ON LOGO var $logo = $('#logo'); $logo.mixitup({ listClass: 'list', easing: 'ease-in-out', targetDisplayList: 'inline-block', filterSelector: 'none', sortSelector: 'none' }); var timer = setInterval(function(){...
from .cli import ender # pylint: disable = unexpected-keyword-arg ender(prog_name='ender')
/** * HYPERLOOP GENERATED - DO NOT MODIFY * * This source code is Copyright (c) 2018 by Appcelerator, Inc. * All Rights Reserved. This code contains patents and/or patents pending. */ var $dispatch = Hyperloop.dispatch, $init, $imports; /** * CoreFoundation//Applications/Xcode.app/Contents/Developer/Platforms...
#ARC060d def main(): import sys input=sys.stdin.readline sys.setrecursionlimit(10**6) if __name__ == '__main__': main()
import logging import sys from cert_core import Chain from cert_issuer.issuer import Issuer from cert_issuer.revoker import Revoker if sys.version_info.major < 3: sys.stderr.write('Sorry, Python 3.x required by this script.\n') sys.exit(1) def issue(app_config, certificate_batch_handler, transaction_handle...
import os import numpy as np from skmultiflow.data.led_generator_drift import LEDGeneratorDrift def test_led_generator_drift(test_path): stream = LEDGeneratorDrift(random_state=112, noise_percentage=0.28, has_noise=True, n_drift_features=4) stream.prepare_for_use() assert stream.n_remaining_samples() == ...
import React from 'react'; import { connect } from 'react-redux'; class Counter extends React.Component { increment = () => { this.props.dispatch({ type: 'INCREMENT' }); }; decrement = () => { this.props.dispatch({ type: 'DECREMENT' }); }; globalIncrement = () => { this.p...
""" A simple progress bar to monitor MCMC sampling progress. Modified from original code by Corey Goldberg (2010) """ from __future__ import print_function import sys import time import uuid try: from IPython.core.display import HTML, Javascript, display except ImportError: pass __all__ = ['progress_bar'] c...
# -*- coding: utf-8 -*- # # Copyright (c) 2018 Leland Stanford Junior University # Copyright (c) 2018 The Regents of the University of California # # This file is part of the SimCenter Backend Applications # # Redistribution and use in source and binary forms, with or without # modification, are permitted provi...
/* * Copyright 2019 Jactry Zeng for CodeWeavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * T...
import responses from binance.futures import Futures as Client from tests.util import mock_http_response from tests.util import random_id from tests.util import timestamp from binance.error import ParameterRequiredError mock_item = {"key_1": "value_1", "key_2": "value_2"} fromId = random_id() startTime = timestamp()...
/* @flow */ // 类型名 import { ASSET_TYPES } from 'shared/constants' import { isPlainObject, validateComponentName } from '../util/index' // 初始化asset寄存器 export function initAssetRegisters (Vue: GlobalAPI) { /** * Create asset registration methods. */ ASSET_TYPES.forEach(type => { Vue[type] = function ( ...
/* * Copyright (c) 2013-2014, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * n...
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
# Generated by Django 2.0.4 on 2018-04-10 16:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fractals', '0006_auto_20180410_1624'), ] operations = [ migrations.AddField( model_name='computation', name='task_id...
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import fu...
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/no-danger, react/forbid-prop-types, react/require-default-props */ import React from 'react' import PropTypes from 'prop-types' export default function HTML(props) { return ( <html lang="en" {...props.htmlAttribute...
import os import math from numpy import interp import cereal.messaging as messaging from selfdrive.swaglog import cloudlog from common.realtime import sec_since_boot from selfdrive.controls.lib.radar_helpers import _LEAD_ACCEL_TAU from selfdrive.controls.lib.longitudinal_mpc import libmpc_py from selfdrive.controls.li...
const origraph = require('../dist/origraph.cjs.js'); const mime = require('mime-types'); const fs = require('fs'); const utils = { loadRawText: async function (filename) { return new Promise((resolve, reject) => { fs.readFile(`test/data/${filename}`, 'utf8', async (err, text) => { if (err) { reject...
it("should hoist exports in a concatenated module", () => { return import("./root-ref").then(m => { m.test(); }); }); if (Math.random() < 0) import("./external-ref");
/* * Copyright 2010-2012 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 "lice...
# Copyright 2015-2017 IONOS # # 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, s...
''' Networks for audio classification As a goal, we want to train a network to classify sections from particular songs. Procedure: 1. Grab three songs; isolate 30 seconds; convert to WAV. 2. Arbitrarily select 5 seconds from each song to be out-of-sample data. 3. Select a network from one of the below ...
require("node-opcua-data-model"); const HistoryReadValueId_Schema = { name: "HistoryReadValueId", // baseType: "ExtensionObject" fields: [ { name: "nodeId", fieldType: "NodeId"}, { name: "indexRange", fieldType: "String"}, { name: "dataEncoding", fieldType: "QualifiedName"}, ...
// React import import React from "react" // Import components import ClassNames from "classnames"; import Container from "../container/container"; // Import styles import styles from "./section.module.scss" /** * Section layout. * * @param className * @param children * @returns {*} * @constructor */ export d...
/* * Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
//= require game/systems/game_system Entitite.HealthSystem = function(game, params) { Entitite.GameSystem.call(this, game, params); }; Entitite.HealthSystem.prototype = Object.create(Entitite.GameSystem.prototype); Entitite.HealthSystem.prototype.constructor = Entitite.HealthSystem; Entitite.HealthSystem.mixin({ ...
########################################################################## # # Copyright (c) 2018, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
(function(scope) { function AudioRecorder(bufferLength, media) { var recordingBufSize = 8192; var audioCtx = new AudioContext(); var sampleRate = audioCtx.sampleRate; var samples = new fQueue(sampleRate*bufferLength); var audioSource = audioCtx.createMediaSt...
from django.conf.urls.defaults import * urlpatterns = patterns('', url(r'^moderate/save/$', 'gatekeeper.views.moderate', name="gatekeeper_moderate"), url(r'^moderate/(?P<app_label>\w+)\.(?P<model>\w+)/$', 'gatekeeper.views.moderate_list'), url(r'^moderate/$', 'gatekeeper.views.moderate_list', name="gatekee...
module.exports = async () => { const mappings = { properties : { allMetadata : { type: 'text', analyzer: 'stopword_analyzer', fields: { folded: { type: 'text', analyzer: 'folded_analyzer', }, }, }, name: { ...
/* edwQaEvaluate - Consider available evidence and set edwValidFile.*QaStatus. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "dystring.h" #include "errabort.h" #include "encodeDataWarehouse.h" #include "edwLib.h" /* Globals */ int version = 5; /* Version history * 1 ...
#!/usr/bin/env node var fs = require('fs') var path = require('path') var gradus = require('../lib') if (process.argv.indexOf('--help') !== -1) { var help = fs.createReadStream(path.join(__dirname, 'help.txt')) help.on('end', process.exit.bind(process, 1)) help.pipe(process.stdout) } else if (process.argv.inde...
"""Switched Lighting Control devices (CATEGORY 0x02).""" from functools import partial from typing import Iterable from ..constants import ResponseStatus from ..events import OFF_EVENT, OFF_FAST_EVENT, ON_EVENT, ON_FAST_EVENT from ..extended_property import ( LED_DIMMING, X10_HOUSE, X10_UNIT, ON_MASK, ...
from __future__ import print_function import sys import os from pyimpute import load_training_vector, load_targets, impute from sklearn.ensemble import ExtraTreesClassifier from sklearn import cross_validation import json import numpy as np import logging logger = logging.getLogger('pyimpute') logger.setLevel(logging....
from ezflix import Ezflix