text stringlengths 3 1.05M |
|---|
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module list/documentlistproperties/documentlistpropertiesediting
*/
import { Plugin } from 'ckeditor5/src/core';
import DocumentLi... |
import React from 'react';
export default () => (
<div>
</div>
);
|
var WOW;jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,a){return jQuery.easing[jQuery.easing.def](t,e,i,n,a)},easeInQuad:function(t,e,i,n,a){return n*(e/=a)*e+i},easeOutQuad:function(t,e,i,n,a){return-n*(e/=a)*(e-2)+i},easeInOutQuad:function(t,e,i,n,a){ret... |
"""Plugin for younow.com by WeinerRinkler"""
import re
from livecli.plugin import Plugin
from livecli.plugin.api import http
from livecli.stream import RTMPStream
__livecli_docs__ = {
"domains": [
"younow.com",
],
"geo_blocked": [],
"notes": "",
"live": True,
"vod": False,
"last_u... |
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE for more info.
import json
from datetime import datetime, timedelta
import pandas as pd
import pytest
from click.testing import CliRunner
from wetterdienst.ui.cli import cli
# Individual ... |
# -*- coding: utf-8 -*-
from django import template
from ..conf import settings
from ..utils import create_srcset
register = template.Library()
@register.inclusion_tag("djangocms_responsive_image/snippets/image.html")
def responsive_image(image, style_name=None, widths=None, sizes=None, default_size=None, aspect_ra... |
# Run unittests with python -m unittest Unittest[.ClassName[.test_func]]
from collections import Counter, defaultdict
import json
import logging
import os
import random
import re
import unittest
from EntranceShuffle import EntranceShuffleError
from ItemList import item_table
from ItemPool import remove_junk_items, it... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 ICON Foundation
#
# 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... |
# coding=utf-8
"""An example of how to use your own dataset to train a classifier that recognizes people.
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to de... |
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <assert.h>
#include <errno.h>
#include <openenclave/bits/defs.h>
#include <openenclave/bits/sgx/sgxtypes.h>
#include <openenclave/host.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/load.h>
#include <... |
# -*- coding: utf-8 -*-
# Copyright 2015 Mirantis, 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 requi... |
/*
** ###################################################################
** Processors: MIMX8MM3CVTKZ
** MIMX8MM3DVTLZ
**
** Compilers: GNU C Compiler
** IAR ANSI C/C++ Compiler for ARM
** Keil ARM C/C++ Compiler
**
*... |
# coding=utf-8
# Copyright 2022 The Google Research 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 applicab... |
#!/usr/bin/env python
from random import *
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D
from keras.layers import LSTM
from keras.layers import Dense, Dropout, Activation, Flatten, Reshape
import tensorflow as tf
import librosa
im... |
from sympy import (Abs, C, Dummy, Rational, Float, S, Symbol, cos, oo, pi,
simplify, sqrt, symbols)
from sympy.geometry import (Circle, Curve, Ellipse, GeometryError, Line, Point,
Polygon, Ray, RegularPolygon, Segment, Triangle,
are_similar, con... |
import argparse
import glob
import json
import os.path as osp
import random
from tools.data.anno_txt2json import lines2dictlist
from tools.data.parse_file_list import (parse_directory, parse_hmdb51_split,
parse_jester_splits,
parse_kinetic... |
/**
* Skill Class File
* Author: Mohseen Mukaddam
*/
//Profile -> (Player, Guild, Skill, Task, SkillsetMatrix) Objects
//Player -> (health, exp, level)
/**
* Player class will only handle attributes realted to the player object
* i.e health, exp, level
*/
//Skillset Class definition
var Skillset = function(IQ, St... |
from vbench.api import Benchmark
from datetime import datetime
common_setup = """from pandas_vb_common import *
from datetime import timedelta
N = 100000
try:
rng = date_range('1/1/2000', periods=N, freq='min')
except NameError:
rng = DatetimeIndex('1/1/2000', periods=N, offset=datetools.Minute())
def dat... |
import sys
from pathlib import Path
import click
from flax.util.service_groups import all_groups, services_for_groups
async def async_stop(root_path: Path, group: str, stop_daemon: bool) -> int:
from flax.daemon.client import connect_to_daemon_and_validate
daemon = await connect_to_daemon_and_validate(root... |
import codecs
import pipfile
import setuptools
import setuptools.command.test
import sys
__version__ = 'UNKNOWN'
exec(open('version.py').read())
def long_description():
try:
return codecs.open('README.md', 'r', 'utf-8').read()
except IOError:
return 'Long description error: Missing README.md... |
#define __SYSCALL_LL_E(x) (x)
#define __SYSCALL_LL_O(x) (x)
#ifndef __OCCLUM
static __inline long __syscall0(long n)
{
unsigned long ret;
__asm__ __volatile__ ("syscall" : "=a"(ret) : "a"(n) : "rcx", "r11", "memory");
return ret;
}
static __inline long __syscall1(long n, long a1)
{
unsigned long ret;
__asm__ __... |
const video = document.getElementById('video')
Promise.all([
faceapi.nets.tinyFaceDetector.loadFromUri('/models'),
faceapi.nets.faceLandmark68Net.loadFromUri('/models'),
faceapi.nets.faceRecognitionNet.loadFromUri('/models'),
faceapi.nets.faceExpressionNet.loadFromUri('/models')
]).then(startVideo)
function s... |
$(document).ready(function() {
$('#chip_iFrame').text(window !== window.parent);
$('#chip_windowActive').text(!document.hidden);
var playerTop = Number(!getParameterByName('top') ? 125 : getParameterByName('top'));
var playerLeft = Number(!getParameterByName('left') ? 20 : getParameterByName('left'... |
# pylint: disable=line-too-long
from .list_game_records_handler_v1 import ListGameRecordsHandlerV1
from .get_game_record_handler_by_key_v1 import GetGameRecordHandlerByKeyV1
from .put_admin_game_record_handler_v1 import PutAdminGameRecordHandlerV1
from .post_admin_game_record_handler_v1 import PostAdminGameRecordHandl... |
//// [constructorReturnsInvalidType.ts]
class X {
constructor() {
return 1;
}
foo() { }
}
var x = new X();
//// [constructorReturnsInvalidType.js]
var X = (function () {
function X() {
return 1;
}
X.prototype.foo = function () { };
return X;
}());
var x = new X... |
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... |
import numpy as np
import cv2
import pickle
from os.path import join as opj
from utils import mask2rle, rle2mask
import rasterio
from rasterio.windows import Window
from torch.utils.data import Dataset
def generate_data(filename, i, img_patch, mask_patch, config):
img_save_path = opj(config['OUTPUT_PATH'],filenam... |
log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric=['PCK', 'AUC', 'EPE'], save_best='AUC')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=Non... |
/**
* @name templates
* @namespace Loads all the templates.
*/
define(["lib/require.text!../templates/account.html", "lib/require.text!../templates/changes.html", "lib/require.text!../templates/customizePlayer.html", "lib/require.text!../templates/dashboard.html", "lib/require.text!../templates/deleteLeague.html", "... |
var data;
function preload(){
data = loadJSON('../data/basicdata.json', gotData);
}
function setup(){
canvas = createCanvas(170, 700);
canvas.parent('canvas');
noStroke();
}
function draw() {
fill(random(40,200),random(40,200),random(40,200));
rect(0,0,width,110);
fill(random(40,200),ran... |
#!/usr/bin/env python3
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from test_framework.script import *
from test_framework.mininode import *
from test_framework.address import *
from test_framework.bcs import *
import sys
import random
import time
class BCSTransact... |
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright no... |
# Copyright 2020 Verily Life Sciences LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Functions to read and write data from different file systems."""
import tensorflow as tf
import xarray as x... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import os
import sys
sys.path.append("..")
from pyroxene_processor.module import *
from pyroxene_processor.global_variable import *
from pyroxene_processor.exception import *
def classify(pattern=1):
"""classify every pyroxene d... |
/** @file reg_mibspi.h
* @brief MIBSPI Register Layer Header File
* @date 20.May.2014
* @version 04.00.00
*
* This file contains:
* - Definitions
* - Types
* - Interface Prototypes
* .
* which are relevant for the MIBSPI driver.
*/
/* (c) Texas Instruments 2009-2014, All rights reserv... |
from os import chdir, getcwd
from os.path import abspath, basename, dirname, realpath
def test(verbose=True):
r"""Run tests to verify this package's integrity.
Parameters
----------
verbose : bool
``True`` to show diagnostic. Defaults to ``True``.
Returns
-------
int
Exit... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["uni_modules-uni-feedback-admin-pages-uni-feedback-admin-list"],{"0c8c":function(t,e,n){"use strict";(function(t){var i=n("4ea4");n("d81d"),n("4d63"),n("ac1f"),n("25f0"),n("498a"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("5530... |
import ctypes
import enum
import resource
import os
import mmap
import time
import io
import errno
import socket
import struct
import collections
import collections.abc
libc = ctypes.CDLL('libc.so.6', use_errno=True)
libc.syscall.restype = ctypes.c_long
u8 = ctypes.c_uint8
u16 = ctypes.c_uint16
s32 = ctypes.c_int32
... |
const React = require('react');
const name = require('../name');
function getNodeName(builder, comp) {
return name(builder(comp));
}
describe('getNodeName', () => {
[shallow, mount].forEach(builder => {
describe(builder.name, () => {
it('returns the node name for a single HTML node', () => {
exp... |
// SDK de Mercado Pago
import { configure, preferences } from '@/mercadopago';
// Agrega credenciales
configure({
access_token: 'PROD_ACCESS_TOKEN'
});
// Crea un objeto de preferencia
let preference = {
items: [
{
title: 'Mi producto',
unit_price: 100,
quantity: 1,
}
]
};
preferences... |
function carregar(){
var msg = window.document.getElementById("msg")
var foto = window.document.getElementById("img")
var data = new Date()
var hora = data.getHours()
msg.innerHTML = `Agora são ${hora} horas.`
if (hora >= 6 && hora < 12) {
//Bom dia
img.src = "fotododia.png"
document.body.style.background =... |
(function() {
'use strict';
angular
.module('app.judgelist')
.directive('fbImageUpload', fbImageUpload)
.directive('gzJudgeForm', gzJudgeForm);
function gzJudgeForm() {
return {
templateUrl: 'app/judgelist/directives/JudgeForm.html',
restrict: 'E',
controller: JudgeFormControll... |
//
// CentralManager.h
// CoreBluetoothDemo
//
// Created by IDSBG-00 on 2017/3/24.
// Copyright © 2017年 iRonCheng. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
@interface CentralManager : NSObject
//系统蓝牙设备管理对象,可以把他理解为主设备,通过他,可以去扫描和链接外设
@property (nonatomic, ... |
from datetime import time
import unittest
import os
import requests_mock
import tableauserverclient as TSC
from tableauserverclient.datetime_helpers import format_datetime
TEST_ASSET_DIR = os.path.join(os.path.dirname(__file__), "assets")
GET_XML = os.path.join(TEST_ASSET_DIR, "schedule_get.xml")
GET_EMPTY_XML = os.p... |
const setUpGlobalObject = require("../lib/sugar");
// Invoking this function adds the new methods to the Global Object
setUpGlobalObject();
describe("Object.size", () => {
test("returns the correct size when given an object", () => {
expect(
Object.size({
a: 1,
b: 2,
c: 3
})
... |
from argparse import ArgumentParser
from webmnist.train import train
parser = ArgumentParser()
parser.add_argument("-o", "--output", type=str, required = True)
parser.add_argument("-e","--epochs", type = int, default = 3)
args = parser.parse_args()
train(args.output, epochs=args.epochs) |
"use strict";var precacheConfig=[["/monitor/index.html","8ac1cd6a363c67b1eb8a642fc084157d"],["/monitor/static/css/main.65027555.css","41e5e45b9b5d9ecaa09b72c11eed3386"],["/monitor/static/js/main.ec94106f.js","9f63840837da02e7f4a474079c07ca88"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?s... |
#!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... |
../../../../.symlinks/plugins/device_info/ios/Classes/DeviceInfoPlugin.h |
# Copyright 2013 Cloudbase Solutions Srl
# 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 r... |
import numpy as np
import itertools as it
from mobject.mobject import Mobject1D, Mobject2D, Mobject
from geometry import Line
from constants import *
class Stars(Mobject1D):
CONFIG = {
"stroke_width" : 1,
"radius" : FRAME_X_RADIUS,
"num_points" : 1000,
}
def generate_... |
from flask_script import Manager, Server
from app import create_app
from app.models import User, Post
from werkzeug.security import generate_password_hash
app = create_app()
manager = Manager(app)
manager.add_command("runserver",
Server(host='0.0.0.0',
port=5000,
... |
""" Driver for determining and writing parameters that describe
energy transfer processes.
Main Loop of Driver:
(1) PES or SPC list
Main Workflow:
(1) OneDMin:
(1) Calculate Lennard-Jones sigma and epsilon parameters
(2) Transport File:
(1) Collate and proce... |
# -*- coding: utf-8 -*-
'''
Provide the service module for systemd
'''
# Import python libs
from __future__ import absolute_import
import logging
import os
import re
import salt.ext.six as six
log = logging.getLogger(__name__)
__func_alias__ = {
'reload_': 'reload'
}
LOCAL_CONFIG_PATH = '/etc/systemd/system'
VAL... |
import axios from "axios";
import {ticketBackendPathGraphql} from "../config";
export const graphqlApi = axios.create({
baseURL: ticketBackendPathGraphql,
method: 'post',
timeout: 10000
});
export function base64ascii(asciiStringToEncode) {
return btoa(asciiStringToEncode);
}
|
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
import codecs
import hashlib
import json
import lyrebird
from flask import request
from lyrebird_api_coverage.client.load_base import DEFAULT_BASE
from lyrebird_api_coverage.client.context import app_context
from lyrebird_api_coverage.client.merge_algorithm import mergeAlgorithm
from lyrebird_api_coverage.handlers.ba... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
"""
신규 아이디 추천
문제 링크 : https://programmers.co.kr/learn/courses/30/lessons/72410
정규표현식 지식이 필요함 : https://buyandpray.tistory.com/49
"""
import re
def solution(new_id):
# step 1 & 2
answer = re.sub('[^0-9a-z_.\-]+','',new_id.lower())
# step 3
answer = re.sub('\.*\.+','.', answer)
# ... |
from .rpc import ServerAPI, ClientAPI, RPCClient, RPCServer
from .rpc import RemoteAPIError, get_rpc_caller, find_rpc
from .rpc import extract_rpc_payload
from .api import ArgParameter, KeywordParameter
from .api import OneOf, ListOf, Exactly, JsonSchema, Type
__all__ = [
'ServerAPI',
'ClientAPI',
'RPCCli... |
/**
* @fileoverview Runner for the Raspberry Pi modification.
*
* @license Copyright 2017 The Coding with Chrome 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:/... |
var TableDatatablesManaged = function () {
var initTable1 = function () {
var table = $('#m_table_1');
// begin first table
table.dataTable({
// Internationalisation. For more info refer to http://datatables.net/manual/i18n
"language": {
"aria": {
... |
from scraper import Scraper
from functions import splitAt
import argparse
parser = argparse.ArgumentParser(description="Let's scrape some phone numbers :)")
parser.add_argument('url', type=str)
args = parser.parse_args()
scraper = Scraper(args.url)
with open('keywords.txt') as f:
keywords = f.read().splitlines()... |
import * as React from 'react';
import { useHistory } from 'react-router-dom';
import { onBreadcrumbClick, setBreadcrumbs } from '@navikt/nav-dekoratoren-moduler';
import { useTranslation } from "react-i18next";
import { routesConfig } from "../../../common/routesConfig";
import { useRouteMatch } from 'react-router-dom... |
from FreeTAKServer.controllers.SpecificCoTControllers.SendCoTAbstractController import SendCoTAbstractController
from FreeTAKServer.model.FTSModel.Event import Event
from FreeTAKServer.model.SpecificCoT.SendEmergency import SendEmergency
from FreeTAKServer.controllers.XMLCoTController import XMLCoTController
from FreeT... |
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: timeout=long
// https://w3c.github.io/screen-wake-lock/
'use strict';
idl_test(
['screen-wake-lock'],
['dom', 'html'],
async idl_... |
import os
from torch.utils.data import Dataset
import csv
from itertools import chain
from torch import tensor
import numpy as np
import random
PAD_IDX = 256
class ExecDataset(Dataset):
def __init__(self, labels_csv, malicious_dir, benign_dir, max_input_size=2*(10**6), binary=False, only_use=None):
if ... |
import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 7, transform = "Integration", sigma = 0.0, exog_count = 100, ar_order = 12); |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.GiGoblinCamp = function GiGoblinCamp (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M252.35 51.451c-18.22 16.765-31.721 30.803-40.696 48.492a573.792 573.792 0 0 1 30.797 14... |
'use strict';
const express = require('express');
const superagent = require('superagent');
require('dotenv').config();
const app = express();
const methodOverride = require('method-override');
app.use(express.urlencoded({ extended: true }));
app.use(express.static( "./public"));
app.use(methodOverride('_method'));... |
from __future__ import (absolute_import, division, print_function)
import sys
import warnings
try:
from setuptools import setup
except ImportError:
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
from distutils.core import setup, Extension
impor... |
expected_output = {
"vrf": {
"User": {
"iid": 4100,
"number_of_entries": 2186,
"eid": {
"0.0.0.0/0": {
"uptime": "1w6d",
"expire": "never",
"via": [
"static-send-map-reques... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var Page = require('../../../../../ba... |
(function() {
function config($locationProvider, $stateProvider) {
$locationProvider
.html5Mode({
enabled: true,
requireBase: false
});
$stateProvider
.state('home', {
url: '/',
controller... |
"""Metrics and loss functions for LightGBM."""
import logging
from functools import partial
from typing import Callable
from typing import Dict
from typing import Optional
from typing import Tuple
from typing import Union
import lightgbm as lgb
import numpy as np
from ..common_metric import _valid_str_multiclass_me... |
// docomo Developer supportで得られるAPIキーを設定します
const apiKey = 'OUR_API_KEY';
// 画像認識APIのURLを指定します
const URL = `https://api.apigw.smt.docomo.ne.jp/imageRecognition/v1/recognize?APIKEY=${apiKey}&recog=product-all&numOfCandidates=1`;
ons.ready(function() {
// 最初は結果を表示しないようにします
$('#productResult').hide();
// ファイルが選択... |
export { default as GithubIcon } from './GithubIcon'
export { default as UserMenu } from './UserMenu'
|
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... |
from django.contrib import admin
from .models import Direccion, Perfil
# Register your models here.
admin.site.register(Perfil)
admin.site.register(Direccion) |
(()=>{var t={4110:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (O... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
An auto-encoder for compress MNIST images.
"""
import logging, os
logging.basicConfig(level=logging.INFO)
from deepy.dataset import MnistDataset, MiniBatches
from deepy.networks import AutoEncoder
from deepy.layers import Dense
from deepy.trainers import SGDTrainer,... |
/***************************************************************************
* apps/graphics/nxglyphs/include/cursor-arrow1-30x30.h
*
* 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 r... |
import { notNumber } from '../../utils/is-number';
function applyFormat(formatter) {
return typeof formatter === 'undefined' ? t => t : t => formatter(t);
}
function clamp(val) {
return Math.max(0, Math.min(1, val));
}
function isObject(obj) {
return typeof obj === 'object';
}
function minorTicksGenerator(cou... |
#!/usr/bin/python
##
## Circuitscape (C) 2013, Brad McRae, Viral B. Shah. and Tanmay Mohapatra
import sys
from circuitscape.compute import Compute
if len(sys.argv) == 1:
print 'Error: Circuitscape configuration (.ini) file required.'
else:
configFile = sys.argv[1]
cs = Compute(configFile, 'Screen')
r... |
"""Function for processing multi-dependent tuning data."""
import itertools
import numpy as np
import scipy
import WrightTools as wt
from ._instrument import Instrument
from ._transition import Transition
from ._plot import plot_holistic
from ._common import save
__all__ = ["holistic"]
def _holistic(data, amplit... |
const email = "luizcowbtf@gmail.com";
const subject = "Innovvatio";
const message =
"Hello!%0D%0A%0D%0ASaw%20you%20web%20app%20Innovvatio%20Filmes,%20and%20wanted%20to%20talk%20to%20you.%0D%0A%0D%0AThanks.";
const emailLink = `mailto:${email}?subject=${subject}&body=${message}`;
const Contact = () => {
return (
... |
import React from "react";
import Axios from 'axios'
// components
import CardTable from "components/Cards/CardTable.js";
import CardTableDark from "components/Cards/CardTableDark.js";
// layout for page
import Admin from "layouts/Admin.js";
export default function TablesDash({posts},{color}) {
return (
<>... |
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2014 Daniele Panozzo <daniele.panozzo@gmail.com>
// 2015 Alec Jacobson
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed w... |
# MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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,... |
import React from 'react'
import { addParameters } from '@storybook/react'
import { DocsContainer } from '@storybook/addon-docs/blocks'
import { MDXProvider } from '@mdx-js/react'
import { ThemeProvider } from 'emotion-theming'
import * as ThemeUIComponents from 'theme-ui'
import { MdxEmbedProvider } from '../../@paul... |
const test = require('ava')
const interval = require('../src/index')
test.cb('The user "func" must return a Promise', t => {
t.plan(1)
interval(() => {}, 1, {iterations: 1}).catch((err) => {
t.is(err.message, 'Return value of "func" must be a Promise.')
t.end()
})
})
test.cb('If intervalL... |
/*************************************************
* Copyright (c) 2015 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
import authenticationService from './authentication.service';
import isAdmin from './isAdmin.factory';
import timer from './timer.factory';
import pendoSe... |
import React, { useRef, useState } from "react";
import { Form, Button, Card, Row, Col, Alert } from "react-bootstrap";
import API from "../utils/API";
import { useAuth } from "../contexts/AuthContext";
import { Link, useHistory } from "react-router-dom";
import "./styles/signup.css";
// can check current user by {curr... |
# -*- coding: utf-8 -*-
"""
pagarmecoreapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
import pagarmecoreapi.models.create_split_request
class CreateSubscriptionSplitRequest(object):
"""Implementation of the 'CreateSubscriptionSplitRequest' model.
... |
export default ()=>{
return(`
.MaxHeight {
max-height: 320px;
overflow-y: auto;
}
`)
}
|
# Lint as: python2, python3
# Copyright 2018 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
#
#... |
"""Planning (Chapters 10-11)
"""
import itertools
from search import Node
from utils import Expr, expr, first
from logic import FolKB
from collections import deque
class PDDL:
"""
Planning Domain Definition Language (PDDL) used to define a search problem.
It stores states in a knowledge base consisting o... |
#!/usr/bin/env python
"""
Classes to check that a set of ROOT files are OK and publish a report
"""
from __future__ import print_function
from __future__ import absolute_import
import datetime, fnmatch, json, os, shutil, sys, tempfile, time
import subprocess
from . import eostools as castortools
from .timeout import ... |
# Copyright 2022 Quantapix 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 applicable l... |