text stringlengths 3 1.05M |
|---|
import torch
from torch.autograd import gradcheck
import kornia.geometry.epipolar as epi
import kornia.testing as utils
from kornia.testing import assert_close
class TestSymmetricalEpipolarDistance:
def test_smoke(self, device, dtype):
pts1 = torch.rand(1, 4, 3, device=device, dtype=dtype)
pts2 =... |
import os
import sys
import random
import subprocess
from omegaconf import OmegaConf
from torchfly.flyconfig import GlobalFlyConfig
from typing import Callable
import logging
logger = logging.getLogger(__name__)
# TODO: We only support single machine multi gpu distributed training
# Also, MASTER_PORT and MASTER... |
# Exercise
# Exercise
# Interpreting coefficients
# Remember that origin airport, org, has eight possible values (ORD, SFO, JFK, LGA, SMF, SJC, TUS and OGG) which have been one-hot encoded to seven dummy variables in org_dummy.
# The values for km and org_dummy have been assembled into features, which has eight column... |
# -*- coding: utf-8 -*-
#
# h5py documentation build configuration file, created by
# sphinx-quickstart on Fri Jan 31 11:23:59 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... |
export default function removeRelatedModel(options = {}) {
let { model, relation, relatedModel } = options;
if (relation.isHasMany) {
let collection = model[relation.propertyName];
collection.splice(collection.indexOf(relatedModel), 1);
} else if (relation.isHasOne) {
model[relation.propertyName] = r... |
/*
* (C) Copyright 2012-2012 Henrik Nordstrom <henrik@henriknordstrom.net>
*
* (C) Copyright 2007-2011
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* Tom Cubie <tangliang@allwinnertech.com>
*
* Configuration settings for the Allwinner sunxi series of boards.
*
* SPDX-License-Identifier: GPL-2.0+
*... |
/*
* Copyright 2018- The Pixie 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 ag... |
import os
import time
import random
import numpy as np
import networkx as nx
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
from utils_link_prediction import *
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, roc_auc... |
import {parseAndGetPattern} from '../../../utils';
import {expect} from 'chai';
describe('ObjectPattern', () => {
it('should return correct type', () => {
expect(parseAndGetPattern('{x}').type).to.equal('ObjectPattern');
});
it('should accept single key', () => {
let pattern = parseAndGetP... |
'''
https://textminingonline.com/getting-started-with-word2vec-and-glove-in-python
https://textminingonline.com/getting-started-with-word2vec-and-glove
''' |
#!/usr/bin/python
#
# Copyright 2018 Kaggle 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 ag... |
/**
* Copyright (C) 2019,2022 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
import plotly.graph_objs as go
from _plotly_utils.basevalidators import ColorscaleValidator
from ._core import apply_default_cascade
import numpy as np
try:
import xarray
xarray_imported = True
except ImportError:
xarray_imported = False
_float_types = []
# Adapted from skimage.util.dtype
_integer_types... |
var Promise = require( 'bluebird' );
var Vultr = require( '../vultr' );
describe('I:Vultr:plans', function() {
'use strict';
describe( 'list', function() {
var vultrInstance;
beforeEach(function() {
vultrInstance = new Vultr();
});
it( 'should return plans list', function(done) {
thi... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the LastShutdown value plugin."""
from __future__ import unicode_literals
import unittest
from plaso.lib import definitions
from plaso.parsers.winreg_plugins import shutdown
from tests.parsers.winreg_plugins import test_lib
class ShutdownWindowsRegistryP... |
"""
Copyright 2017 MLiy Contributors
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, soft... |
var Db = require('mongodb').Db;
var MongoServer = require('mongodb').Server;
var async = require('async');
var config = require('./config');
var localhost = '127.0.0.1'; //Can access mongo as localhost from a sidecar
var getDb = function(host, done) {
//If they called without host like getDb(function(err, db) { ...... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
(global.... |
/*
Name: Pages / Session Timeout - Examples
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 2.2.0
*/
(function($) {
'use strict';
var SessionTimeout = {
options: {
keepAliveUrl: '',
alertOn: 15000, // ms
timeoutOn: 20000 // ms
},
alertTimer: null,
timeout... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{411:function(t,n,e){"use strict";e.r(n);var i=e(10),s=Object(i.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("div",[this.$pagination?n("BaseListLayout"):n("Content")],1)}),[],!1,null,null,null);n.default=s.exports}}]); |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/synthetics/Synthetics_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/synthetics/model/CanaryCodeOutput.h>
#include <aws/synthetics/model/CanarySch... |
(function (app) {
"use strict";
app.controller("ContactsController", ContactsController);
ContactsController.$inject = [];
function ContactsController() {
var vm = this;
vm.contacts = [
{id: 1, firstName: "Bob", lastName: "Billings", phone: "555-123-4567"},
{id... |
import { Comment } from '../comment/comment';
import { NewCommentForm } from '../newCommentForm/newCommentForm';
import { ApiRequest } from '../../utils/apiRequest';
import { Footer} from "../footer/footer";
import './commentBox.scss';
export class CommentBox {
constructor(target = document.querySelector('body'))... |
"""Support for HomematicIP Cloud alarm control panel."""
import logging
from homematicip.aio.group import AsyncSecurityZoneGroup
from homematicip.base.enums import WindowState
from homeassistant.components.alarm_control_panel import AlarmControlPanel
from homeassistant.config_entries import ConfigEntry
from homeassis... |
'use strict';
var sinon = require('sinon');
var should = require('should');
var AddressController = require('../lib/addresses');
var _ = require('lodash');
var bitcore = require('amigo-bitcore-lib');
var txinfos = {
totalCount: 2,
items: [
{
'address': 'mkPvAKZ2rar6qeG3KjBtJHHMSP1wFZH7Er',
'satoshi... |
const types = {
sqs: {
Type: 'AWS::SQS::Queue',
required: [],
props: [
'ContentBasedDeduplication',
'DelaySeconds',
'FifoQueue',
'KmsDataKeyReusePeriodSeconds',
'KmsMasterKeyId',
'MaximumMessageSize',
'Messag... |
from django.contrib import admin
from churches.models import Church
admin.site.register(Church)
|
var CustomLayerLibrary =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[mo... |
from vicero.algorithms.reinforce import Reinforce
import matplotlib.pyplot as plt
import numpy as np
import gym
import torch
import torch.nn as nn
import torch.nn.functional as F
def plot(history):
plt.figure(2)
plt.clf()
durations_t = torch.FloatTensor(history)
plt.title('Training...')... |
/*
* $PIP_license: <Simplified BSD License>
* 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 notice,
* this list of conditions and the follo... |
function Ribbon(x, y, color, seed) {
this.x = x;
this.y = y;
this.color = color;
this.seed = seed;
this.points = [];
this.numPoints = 0;
this.speed = new Vector(-100, 0);
}
Ribbon.prototype.addPoint = function(x, y) {
var point = new Vector(x, y);
this.points.push(point);
};
Ribbon.... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-#
# vim: sw=2 ts=2 sts=2
#
# Copyright 2007 The Python-Twitter Developers
#
# 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.apach... |
import random
def SetFireworkBallMaterial():
C = bpy.context
D = bpy.data
# マテリアルを新たに設定
material_glass = D.materials.new('Firework')
# ノードを使えるようにする
material_glass.use_nodes = True
material_tree = material_glass.node_tree
# ノードの全削除
for n in material_tree.nodes:
material_tre... |
#!/usr/bin/env python
'''Internal multithreading for Freebayes, GenoMEL-PDC'''
import os
import sys
import argparse
import subprocess
import string
from functools import partial
from multiprocessing.dummy import Pool, Lock
import fnmatch
def search_files(file_search_str, root_dir=os.getcwd(), abs_path=True, recurse=T... |
'use strict';
/**
* @ngdoc function
* @name mytodoApp.controller:myCtrl
* @description
* # myCtrl
* Controller of the mytodoApp
*/
var app = angular.module('mytodoApp')
app.controller('userCtrl',['$scope', '$rootScope', '$location', '$http', '$ngConfirm','$filter', '$timeout', function ($scope, $rootScope, $loc... |
// The MIT License (MIT)
//
// Copyright (c) 2018-2020 Camptocamp SA
//
// 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
// u... |
'''
15.3Sum
15.三数之和
https://leetcode-cn.com/problems/
3sum
给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有和为 0 且不重复的三元组。
注意:答案中不可以包含重复的三元组。
示例 1:
输入:nums = [-1,0,1,2,-1,-4]
输出:[[-1,-1,2],[-1,0,1]]
示例 2:
输入:nums = []
输出:[]
示例 3:
输入:nums = [0]
输出:[]
提示:
0 <= nums.length <= 3000
-105 <=... |
'use babel';
$ = jQuery = require('jquery')
const {shell} = require('electron')
import ReacthelpView from './reacthelp-view';
import HistoryCodeView from './history-code-view'
//require('./popper.js');
//import Panel from './Sample_JSX.jsx'
//import 'bootstrap';
//import jQuery from './jquery'
//$ = jQuery
//var ur... |
/**
* Convert timestamp to date.
*
* @param {string} timestamp - Timestamp to convert.
*
* @returns {string} Converted date.
*/
export default function(timestamp) {
return new Date(timestamp * 1000).toLocaleDateString();
}
|
/**
* Copyright 2015 Jan Svager
*
* 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 w... |
import numpy as np
class Technical(object):
# 三维数组格式计算技术指标
def __init__(self):
pass
def _rolling_window(self, array, window):
# array: 2dims
shape = array.shape[:1] + (array.shape[-1] - window + 1, window)
strides = array.strides + (array.strides[-1],)
return np.lib.stride_tricks.as_strided(a... |
const { UserService } = require("m3o/user");
const userService = new UserService(process.env.M3O_API_TOKEN);
// Read an account by id, username or email. Only one need to be specified.
async function readAnAccountById() {
const rsp = await userService.read({
id: "user-1",
});
console.log(rsp);
}
readAnAcco... |
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-array"),require("d3-path")):"function"==typeof define&&define.amd?define(["exports","d3-array","d3-path"],t):t(n.d3=n.d3||{},n.d3,n.d3)}(this,function(n,t,r){"use strict";function e(n){return function(t,r){return n(t.source.value+... |
#!/usr/bin/env python
# coding: utf-8
# In[7]:
#Objects are of immutable data type.
a=5
id(a)
# In[4]:
a=10
id(a)
# In[8]:
#Strings are of immutable data type.
h="Arsh"
id(h)
# In[6]:
h="Arsh Saxena"
id(h)
# In[2]:
l=["Arsh"]
id(l)
# In[3]:
l.append("Saxena")
print(l)
id(l)
# In[4]:
a="Arsh"
... |
# coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... |
import { get_tree } from '../trees/util';
import { clean } from '../expression/simplify';
function add(expr_or_tree1, expr_or_tree2) {
var result = ['+', get_tree(expr_or_tree1), get_tree(expr_or_tree2)];
return clean(result);
}
function subtract(expr_or_tree1, expr_or_tree2) {
var result = ['+', get_tree... |
#ifndef LEVEL_H
#define LEVEL_H
#include "common.h"
extern bool checkWall(Coord c);
extern bool checkPlat(Coord c);
void drawLevel();
void loadLevel();
#endif
|
"""Command Line module."""
import argparse
import os
from .releases import PDS
from ..wget import wget
def cli(argv=None):
"""PDS command line interface entry point."""
parser = argparse.ArgumentParser(description='Search data location on the PDS.')
parser.add_argument('fname', nargs='+', help='Input f... |
import logging
import uasyncio
import ubinascii
import utime
class MHZ19Exception(Exception):
pass
class MHZ19ChecksumException(MHZ19Exception):
pass
class MHZ19InvalidResponseException(MHZ19Exception):
pass
def calc_checksum(data):
csum = 0
for b in data:
csum = (csum + b) % 256
... |
import json
import math
import os
import re
import subprocess
from enum import IntEnum
from functools import cached_property
from pathlib import Path
from cereal import log
from selfdrive.hardware.base import HardwareBase, ThermalConfig
from selfdrive.hardware.tici import iwlist
from selfdrive.hardware.tici.amplifier ... |
'''
a = input('First number')
b = input('Second number')
# приведем их к типу int, т.к. тип переменной, которую возвращает input - это всегда строка!!!
a = int(a)
b = int(b)
# произведем математические операции
print(a+b)
print(a-b)
print(a*b)
result = a/b
print(type(result)) # выведем тип result
print(result)
print(... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import Image from "../components/image"
import SEO from "../components/seo"
const IndexPage = () => (
<Layout>
<SEO title="Home" />
<h1>Hi people</h1>
<p>Welcome to your new Gatsby site created by H3llm4n.<... |
import socket
HEADERSIZE = 10
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((socket.gethostname(), 1243))
while True:
full_msg = ''
new_msg = True
while True:
msg = s.recv(16)
if new_msg:
print("new msg len:",msg[:HEADERSIZE])
msglen... |
#include <inttypes.h>
int New(
int *src_buf,
int *dst_buf,
int *ptr_weight,
int initial_weight,
int bufidx,
int b,
long long k
);
|
/* global require module */
'use strict';
const fs = require('fs');
const path = require('path');
const liveEditor = require('@gfxfundamentals/live-editor');
const liveEditorPath = path.dirname(require.resolve('@gfxfundamentals/live-editor'));
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
... |
var timeline = [];
/* init connection with pavlovia.org */
var pavlovia_init = {
type: "pavlovia",
command: "init"
};
timeline.push(pavlovia_init);
/* define welcome message trial */
var welcome = {
type: "html-keyboard-response",
stimulus: "Welcome to the experiment. Press any key to begin."
};
var i... |
import React from 'react'
import styles from './about.module.css'
export default () => (
<>
<span className={styles.sayhi}>Hi <span role="img" aria-label="hi">👋</span> I am</span>
<h1 className={styles.headline}>Hamed Esmaili</h1>
<p className={styles.underline}>
I'm a <strong>Software</strong> En... |
from django.urls import path
from .views import ClientListView, ClientCreateView, ClientUpdateView, ClientDeleteView
app_name = 'client'
urlpatterns = [
path('list/', ClientListView.as_view(), name='list'),
path('create/', ClientCreateView.as_view(), name='create'),
path('update/<int:pk>/', ClientUpdateVi... |
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 3 17:27:46 2018
@author: Thanh Tung Khuat
Implementation of information representation based multi-layer classifier using GFMM
This implementation is integrated with missing value handling
Note: Currently, all samples in the dataset must be normalized to the range of [... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/auth/ResetPassword/Index.vue?vue&type=script&lang=js&":
/*!*************************************************************************... |
# 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 ... |
import os
import random
from .. import Problem, ProblemInstance, instance_path
from ...util import mkdir, mkfile, curr_dir_relative
from ...system import *
NUM_TRAIN_EXAMPLES=10
NUM_TEST_EXAMPLES=1000
DEFAULT_NUM_EXAMPLES = [NUM_TRAIN_EXAMPLES, NUM_TRAIN_EXAMPLES, NUM_TEST_EXAMPLES, NUM_TEST_EXAMPLES]
MAX_LIST_SIZE... |
const faker = require('faker');
const bcrypt = require('bcryptjs')
const hash = bcrypt.hashSync('pass123', 12)
exports.seed = function(knex, Promise) {
// Deletes ALL existing entries
return knex('organizations').truncate()
.then(function () {
// Inserts seed entries
return knex('organizations').i... |
from celery import Celery
def make_celery(app):
celery = Celery(__name__, broker=app.config['CELERY_BROKER_URL'])
celery.conf.update(app.config)
TaskBase = celery.Task
class ContextTask(TaskBase):
abstract = True
def __call__(self, *args, **kwargs):
with app.app_context():
return TaskBase.__call__(se... |
import tensorflow as tf
import numpy as np
from src.models.layers import BCHConv2D, BCHConv2DComplex
x = tf.random.uniform((32, 128, 128, 4))
degrees = 4
layer = BCHConv2D(
1,
3,
degrees=degrees,
initializer=tf.keras.initializers.Constant(value=1),
)
y = layer(x)
angles = [np.mean(np.abs(y[..., k])... |
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class UserStorageInfo(models.Model):
totalStorageSpace = models.IntegerField(default=5000)
usedSpace = models.IntegerField(default=0)
folderName = models.CharField(max_length=256)
user = models.ForeignKey(User)
d... |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Archer(CMakePackage):
"""ARCHER, a data race detection tool for large OpenMP applications... |
angular.module('codeProject.controllers')
.controller('ProjectTaskEditController',
['$scope', '$location', '$routeParams', 'ProjectTask', 'codeProjectConfig',
function($scope, $location, $routeParams, ProjectTask, codeProjectConfig){
$scope.task = ProjectTask.get({
id: $route... |
/*
* Copyright 2020 Chromium
*
* 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
* on the rights to use, copy, modify, merge, publish, di... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'plug-circle-exclamation';
var width = 576;
var height = 512;
var aliases = [];
var unicode = 'e55d';
var svgPathData = 'M96 0C113.7 0 128 14.33 128 32V128H64V32C64 14.33 78.33 0 96 0zM288 0C305.7 0 320 14.33... |
/**
* https://github.com/mrdoob/eventdispatcher.js/
*/
function EventDispatcher () {
this.isEventDispatcher = true;};
Object.assign( EventDispatcher.prototype, {
addEventListener: function ( type, listener ) {
if ( this._listeners === undefined ) this._listeners = {};
var listeners = this._listeners;
if... |
# -*- coding: utf-8 -*-
#
# Copyright 2015 Simone Campagna
#
# 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... |
/**
* # JSUS: JavaScript UtilS.
* Copyright(c) 2017 Stefano Balietti <ste@nodegame.org>
* MIT Licensed
*
* Collection of general purpose javascript functions. JSUS helps!
*
* See README.md for extra help.
* ---
*/
(function(exports) {
var JSUS = exports.JSUS = {};
// ## JSUS._classes
// Reference... |
function Pinch(el, fn) {
this.el = el;
this.parent = el.parentNode;
this.fn = fn || function() {};
this.scale = 1;
this.lastScale = 1;
this.pinching = false;
var self = this;
el.addEventListener('touchstart', function(e) {
var touches = e.touches;
if (!touches || 2 != tou... |
#!/usr/bin/python
"""BACnet Python Package"""
#
# Platform Check
#
import sys as _sys
import warnings as _warnings
_supported_platforms = ('linux', 'win32', 'darwin')
if _sys.platform not in _supported_platforms:
_warnings.warn("unsupported platform", RuntimeWarning)
#
# Project Metadata
#
__version__ = ... |
# Generated by Django 3.1.2 on 2020-10-14 06:03
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='lineitem',
... |
import numpy as np
from h5py import RegionReference
import copy as _copy
import itertools as _itertools
import posixpath as _posixpath
from abc import ABCMeta
import warnings
try:
from collections.abc import Iterable # Python 3
except ImportError:
from collections import Iterable # Python 2.7
from datetime im... |
import sys
from setlist.user import SpotifyUser
from setlist.utils import features_to_track_ids, playlist_to_track_ids
TEST_USER = "djhopper"
TEST_PLAYLIST = "spotify:playlist:5W4m55XzK6XeayO4jBWUU4"
SORT_KEYS = ["tempo", "danceability", "energy", "key"]
if __name__ == "__main__":
if len(sys.argv) > 1:
... |
import {
addons
} from '@storybook/addons';
import hooTheme from './hootheme.js';
addons.setConfig({
theme: hooTheme,
}); |
__name__ = 'Vogel Sorter'
__version__ = '0.1.0'
__description__ = "Visualize sorting algorithms with Vogel's Fibonacci model."
|
import logging
import numpy as np
__author__ = "Marius Lindauer"
__copyright__ = "Copyright 2016, ML4AAD"
__license__ = "3-clause BSD"
__maintainer__ = "Marius Lindauer"
__email__ = "lindauer@cs.uni-freiburg.de"
__version__ = "0.0.1"
class AbstractEPM(object):
'''Abstract implementation of the EPM API '''
d... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate... |
var SauceConnect = require('./lib/sauce_connect')
var SauceLauncher = require('./lib/sauce_launcher')
var SauceReporter = require('./lib/sauce_reporter')
// PUBLISH DI MODULE
module.exports = {
'sauceConnect': ['type', SauceConnect],
'launcher:SauceLabs': ['type', SauceLauncher],
'reporter:saucelabs': ['type', S... |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "NGAP-IEs"
* found in "asn.1/Information Element Definitions.asn1"
* `asn1c -pdu=all -fcompound-names -fno-include-deps -findirect-choice
* -gen-PER -D src`
*/
#ifndef _Ngap_PDUSessionResourceReleasedListNot_H_
#define _Ngap_PDUSessi... |
# -*- coding:utf-8 -*-
#
# Copyright (C) 2008 - Olivier Lauzanne <olauzanne@gmail.com>
#
# Distributed under the BSD license, see LICENSE.txt
from setuptools import setup, find_packages
import os
install_requires = [
'lxml>=2.1',
'cssselect>0.7.9',
]
def read(*names):
values = dict()
for name in na... |
/* @flow */
import * as React from 'react';
import type { LocalesState } from 'modules/otherlocales';
type Props = {|
otherlocales: LocalesState,
|};
export default function Count(props: Props) {
const { otherlocales } = props;
if (otherlocales.fetching || !otherlocales.translations) {
return... |
# Copyright (C) 2018 Cancer Care Associates
# 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 ... |
HTTP_TIMEOUT = 30
|
#! /usr/bin/env node
const states = require('../util/states');
const districts = require('../util/districts');
const slots = require('../util/slots');
const program = require('commander');
const schedule = require('node-schedule');
program
.command('slot <pincode> <date>')
.description(
'get list of all available... |
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, 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 ... |
#ifndef _ADDRESS_INDEX_H_
#define _ADDRESS_INDEX_H_
#include "amount.h"
#include <algorithm>
#include <exception>
#include <map>
#include <set>
#include <stdint.h>
#include <string>
#include <utility>
#include <vector>
#include <boost/unordered_map.hpp>
struct CAddressIndexKey {
unsigned int type;
uint160 h... |
"""Support for monitoring a GreenEye Monitor energy monitor."""
from __future__ import annotations
import logging
from typing import Any
from greeneye import Monitors
import voluptuous as vol
from homeassistant.const import (
CONF_NAME,
CONF_PORT,
CONF_SENSOR_TYPE,
CONF_SENSORS,
CONF_TEMPERATURE_... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, print_function, absolute_import
import importlib
def get_class(full_python_class_path):
"""
take something like some.full.module.Path and return the actual Path class object
Note -- this will fail when the object isn't accessible ... |
Date.CultureInfo = {
/* Culture Name */
name: "lv-LV",
englishName: "Latvian (Latvia)",
nativeName: "latviešu (Latvija)",
/* Day Name Strings */
dayNames: ["svētdiena", "pirmdiena", "otrdiena", "trešdiena", "ceturtdiena", "piektdiena", "sestdiena"],
abbreviatedDayNames: ["Sv", "Pr", "Ot", ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@nestjs/core");
const swagger_1 = require("@nestjs/swagger");
const app_module_1 = require("./app.module");
async function bootstrap() {
const app = await core_1.NestFactory.create(app_module_1.AppModule);
const... |
"""
Copyright 2020 The OneFlow 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 law or agr... |
export default "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M15.9 6.9C15.9 6.9 15.2 6.6 14.9 6.6C14.3 6.5 13.9 6.7 13.7 7.7L12 16.8C11.8 17.6 11.5 18.2 11 18.6C10.6 18.9 10.2 19 9.7 19C8.9 19 7.7 18.5 7.7 18.5L8.2 17.1C8.2 17.1 9 17.4 9.2 17.4C9.5 17.5 9.7 17.4 9.9 17.3C10... |
var searchData=
[
['driving_2ecc',['driving.cc',['../driving_8cc.html',1,'']]]
];
|
import React, { PureComponent } from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
// import Header from 'components/Header'
// import Footer from 'components/Footer'
const AppWrapper = styled.div`
margin: 0 auto;
display: flex;
padding: 0 16px;
flex-direction: column;
`
e... |
# Futu Algo: Algorithmic High-Frequency Trading Framework
# Copyright (c) billpwchan - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
# Written by Bill Chan <billpwchan@hotmail.com>, 2021
import csv
import glob
import json
import os
im... |