text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
import torch
import torch.nn as nn
from torch.autograd import Variable
import sys
sys.path.append('../../../..')
from im2mesh.dmc.ops.tests.loss_autograd import LossAutoGrad
from im2mesh.dmc.ops.curvature_constraint import CurvatureConstraint
import torch.nn.functional as F
import numpy as np
import time
# check the... | {"hexsha": "9fa24778abb5587ca3a8d2cbb608b6f7d718f2ee", "size": 2983, "ext": "py", "lang": "Python", "max_stars_repo_path": "im2mesh/dmc/ops/tests/test_curvature.py", "max_stars_repo_name": "FooVizDevs/occupancy_networks", "max_stars_repo_head_hexsha": "8668618123449cbd77ddb539e1902682b738086d", "max_stars_repo_licenses... |
import numpy as np
def load_users_items_file(path):
file = open(path, 'r')
users, items, rates = list(), list(), list()
for line in file:
split = line.strip().split(',')
uid, iid, rate = split[0], split[1], split[2]
users.append(uid)
items.append(iid)
rates.append(r... | {"hexsha": "149f13474adbc1c0c8f5eec8a56cec991a429bd7", "size": 792, "ext": "py", "lang": "Python", "max_stars_repo_path": "james_code/utilities.py", "max_stars_repo_name": "Ajal88/crossact", "max_stars_repo_head_hexsha": "da74eae9f21b4f74c2fdde3564844ac3e5d02b85", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars... |
"""
Metrics
-------
Some metrics to compare time series.
"""
import numpy as np
from ..timeseries import TimeSeries
from ..utils import _parallel_apply, _build_tqdm_iterator
from ..utils.statistics import check_seasonality
from ..logging import raise_if_not, get_logger, raise_log
from warnings import warn
from typing... | {"hexsha": "f7a09e13b5d9fac828ce8b2ad454e096a7076555", "size": 41226, "ext": "py", "lang": "Python", "max_stars_repo_path": "darts/metrics/metrics.py", "max_stars_repo_name": "BiancaMT25/darts", "max_stars_repo_head_hexsha": "bb550dede6d8927a45aea0d9f3df53de32a6eee2", "max_stars_repo_licenses": ["Apache-2.0"], "max_sta... |
import pandas as pd
import numpy as np
import csv
#HMM based learning for cell association
# The forward algorithm
def forward(V, a, b, initial_distribution):
alpha = np.zeros((V.shape[0], a.shape[0]))
alpha[0, :] = initial_distribution * b[:, V[0]]
for t in range(1, V.shape[0]):
fo... | {"hexsha": "80a89e7166f5ef07149987439c6c3961cfc09236", "size": 7430, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/master.py", "max_stars_repo_name": "Siddhant-Ray/Machine-Learning-Based-Cell-Association", "max_stars_repo_head_hexsha": "0960ef5321b49582b4f1c4422d57046167f5d2a4", "max_stars_repo_licenses":... |
"""
Wrappers to LAPACK library
==========================
NOTE: this module is deprecated -- use scipy.linalg.lapack instead!
flapack -- wrappers for Fortran [*] LAPACK routines
clapack -- wrappers for ATLAS LAPACK routines
calc_lwork -- calculate optimal lwork parameters
get_lapack_funcs -- query for wrapper... | {"hexsha": "ed380e7df5a58d27548f52388545f9989b0e8dbe", "size": 7868, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools/intogen/runtime/pyenv/lib/python2.7/site-packages/scipy/lib/lapack/__init__.py", "max_stars_repo_name": "globusgenomics/galaxy", "max_stars_repo_head_hexsha": "7caf74d9700057587b3e3434c64e82... |
###############################################################################
#
# Big leaf canopy model partition
#
###############################################################################
"""
big_leaf_partition!(
node::SPACSimple{FT},
zenith::FT,
r_all::FT
... | {"hexsha": "903cae92a46743950b8425ecbe729e89e65070d3", "size": 1346, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/SoilPlantAirContinuum/bigleaf/partition.jl", "max_stars_repo_name": "bbuman/Land", "max_stars_repo_head_hexsha": "b0f3a390eb17330abbfe1a6ddffefdad2c7353ff", "max_stars_repo_licenses": ["Apache-... |
[STATEMENT]
lemma asymp_equiv_imp_diff_smallo:
assumes "f \<sim>[F] g"
shows "(\<lambda>x. f x - g x) \<in> o[F](g)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. (\<lambda>x. f x - g x) \<in> o[F](g)
[PROOF STEP]
proof (rule landau_o.smallI)
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. \<And>c. 0 < c \<... | {"llama_tokens": 2778, "file": null, "length": 25} |
"""Module for the Risk-Exploiting Comm Relay Scenario
- Network of agents are to send messages between origin and destination terminals of known positions.
- Messages are in the form of bit strings.
- The aggregate reward depends on the message quality received by the destination terminal,
i.e. how much it differs f... | {"hexsha": "745bc6fe4635368ec666f96d3ee38f2ec7947701", "size": 1267, "ext": "py", "lang": "Python", "max_stars_repo_path": "particle_environments/mager/scenarios/ergo_comm.py", "max_stars_repo_name": "rallen10/ergo_particle_gym", "max_stars_repo_head_hexsha": "5bb8073d880ab1da60ee333d892ea8a4720f3396", "max_stars_repo_... |
#!/usr/bin/env python
# coding: utf-8
# # This notebook will give a first baseline estimation for the matching of entities via a random forest algorithm as multi-class classification
# In[1]:
import os
import pandas as pd
import gzip
import json
import numpy as np
import nltk
from nltk.corpus import s... | {"hexsha": "6f908f089033728c5db27ac7fe5de1d83e354fed", "size": 10138, "ext": "py", "lang": "Python", "max_stars_repo_path": "notebooks/Entity/LocalBusiness/Baseline/Baseline Random Forest- LocalBusiness.py", "max_stars_repo_name": "JenniferHahn/data_integration_using_deep_learning", "max_stars_repo_head_hexsha": "d12a4... |
/**
* $Id$
*
* Copyright (C)
* 2013
* Martin Wolf <martin.wolf@icecube.wisc.edu>
* and the IceCube Collaboration <http://www.icecube.wisc.edu>
*
* \file boost/numpy/mpl/as_std_vector.hpp
* \version $Revision$
* \date $Date$
* \author Martin Wolf <martin.wolf@icecube.wisc.edu>
*
* \brief This... | {"hexsha": "641460bdb408426608bef26ac6523fc2cdb9de93", "size": 3692, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/boost/numpy/mpl/as_std_vector.hpp", "max_stars_repo_name": "IceCube-SPNO/BoostNumpy", "max_stars_repo_head_hexsha": "66538c0b6e38e2f985e0b44d8191c878cea0332d", "max_stars_repo_licenses": ["B... |
# encoding: utf-8
"""
@author: liaoxingyu
@contact: sherlockliao01@gmail.com
"""
import torch
import numpy as np
import random
from torch import nn
from .backbones import build_backbone
from lib.layers.pooling import GeM
from lib.layers.metric_learning import Arcface, Cosface, AMSoftmax, CircleLoss
def weights_ini... | {"hexsha": "d9be36cfdcc0c99a5e5b2bef677a236edd97cc70", "size": 10221, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/modeling/head.py", "max_stars_repo_name": "hanleiyu/prcv", "max_stars_repo_head_hexsha": "df5ad9469b38b8176121357fe5de2b1cf30aae1c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, ... |
# -*- coding: utf-8 -*-
import copy
import random
from Life import Life
import numpy as np
class GA(object):
"""遗传算法类"""
def __init__(self, aCrossRate, aMutationRage, aLifeCount, aGeneLenght, aMatchFun=lambda life: 1):
self.croessRate = aCrossRate # 交叉概率 #
self.mutationRate = aMu... | {"hexsha": "2599f9c74a78e7fd990fd6cb13bacc45a4a4cb85", "size": 4159, "ext": "py", "lang": "Python", "max_stars_repo_path": "Genetic_algorithm.py", "max_stars_repo_name": "RunHang-Ge/feature_selection_GAAlgorithm", "max_stars_repo_head_hexsha": "0ef01612b9bc66591237a6362e6ca31edb074327", "max_stars_repo_licenses": ["MIT... |
# ---
# title: 1437. Check If All 1's Are at Least Length K Places Away
# id: problem1437
# author: Tian Jun
# date: 2020-10-31
# difficulty: Medium
# categories: Array
# link: <https://leetcode.com/problems/check-if-all-1s-are-at-least-length-k-places-away/description/>
# hidden: true
# ---
#
# Given an array `nums` ... | {"hexsha": "512148e72f0d27c1b28a6bed5d889e4c119ba014", "size": 1385, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/unresolved/1437.check-if-all-1s-are-at-least-length-k-places-away.jl", "max_stars_repo_name": "jmmshn/LeetCode.jl", "max_stars_repo_head_hexsha": "dd2f34af8d253b071e8a36823d390e52ad07ab2e", "ma... |
[STATEMENT]
lemma sgn_inf_sym:
fixes p::"real poly"
shows "sgn_pos_inf (pcompose p [:0,-1:]) = sgn_neg_inf p" (is "?L=?R")
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. sgn_pos_inf (p \<circ>\<^sub>p [:0, - 1:]) = sgn_neg_inf p
[PROOF STEP]
proof -
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. sgn_pos_inf (... | {"llama_tokens": 852, "file": "Sturm_Tarski_Sturm_Tarski", "length": 8} |
#include "GamePhase_LoadMenu.h"
#include <boost/filesystem/convenience.hpp>
#include "imgui/imgui.h"
#include "gui\imgui_impl_glfw_gl3.h"
#include "Render\TextureManager.h"
GamePhase_LoadMenu::GamePhase_LoadMenu()
{
boost::filesystem::path targetDir("Save");
boost::filesystem::recursive_directory_iterator iter(targe... | {"hexsha": "1ee74f242cedf8b4c6952cc5c20f6a02466bf474", "size": 1816, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "World/GamePhase_LoadMenu.cpp", "max_stars_repo_name": "ishellstrike/MinecraftLike", "max_stars_repo_head_hexsha": "95e060d3f0b2070d603053801f8fd26a2cffc1f7", "max_stars_repo_licenses": ["MIT"], "max... |
from libs.effects.effect import Effect # pylint: disable=E0611, E0401
import numpy as np
class EffectFade(Effect):
def run(self):
# Get the config of the current effect.
effect_config = self._device.device_config["effects"]["effect_fade"]
# Prepare the required config inside local varia... | {"hexsha": "9b4c26089defba1f213fb7918481c29684a494ab", "size": 1947, "ext": "py", "lang": "Python", "max_stars_repo_path": "server/libs/effects/effect_fade.py", "max_stars_repo_name": "weiserhei/music_led_strip_control", "max_stars_repo_head_hexsha": "33d6e9ca3c5cc699f1f700e6bf00727fa2f65f3c", "max_stars_repo_licenses"... |
import numpy as np
import revrbm
import os, sys, optparse
if __name__ == '__main__':
parser = optparse.OptionParser(usage="usage %prog [options]")
parser.add_option("-f", "--name", type = "str", dest = "name", help = "name for RBM")
parser.add_option("-t", "--niters", type = "int", dest = "iterations", de... | {"hexsha": "6eb31c34b3577ed688be210a629861c11ac96147", "size": 3230, "ext": "py", "lang": "Python", "max_stars_repo_path": "Marcus/train_revrbm_L1.py", "max_stars_repo_name": "garibaldu/multicauseRBM", "max_stars_repo_head_hexsha": "f64f54435f23d04682ac7c15f895a1cf470c51e8", "max_stars_repo_licenses": ["MIT"], "max_sta... |
#!/home/ec2-user/anaconda3/bin/python
import sys
import networkx
from netdata.defaults import database
from netdata.fetch import ProtocolGraph, DateTime, start_end_epoch
def main():
db = ProtocolGraph(database.host, database.user, database.dbname)
params = 'parameters: all | frame date time interval_seconds... | {"hexsha": "04851547732db0bd5b029292cd0ad3474f091e50", "size": 1903, "ext": "py", "lang": "Python", "max_stars_repo_path": "netdata/protocol_graph/fetch_graph.py", "max_stars_repo_name": "mincode/netdata", "max_stars_repo_head_hexsha": "4369a3bfb473509eff92083e03f214d5b75f6074", "max_stars_repo_licenses": ["ECL-2.0", "... |
from mpi4py import MPI
import matplotlib
matplotlib.use("TkAgg")
import numpy as np
import pfft
import time
import matplotlib.pyplot as plt
from numpy.fft import rfft2, irfft2
from pmesh.pm import ParticleMesh, RealField, ComplexField
def doublesine(i, v):
r = [ii * (Li / ni) for ii, ni, Li in zip(i, v.Nmesh, v.... | {"hexsha": "207562d2be2b41e22316b2d044d9640ba663aeec", "size": 1905, "ext": "py", "lang": "Python", "max_stars_repo_path": "pySDC/playgrounds/deprecated/pmesh/playground_pmesh_comm.py", "max_stars_repo_name": "brownbaerchen/pySDC", "max_stars_repo_head_hexsha": "31293859d731646aa09cef4345669eac65501550", "max_stars_rep... |
# A prime number generator
# by Kai Staats, MSc
# 2018 03/27
import os
import sys
import csv
import numpy as np
np.set_printoptions(linewidth = 320) # set the terminal to print 320 characters before line-wrapping in order to view Trees
cwd = os.getcwd()
if len(sys.argv) == 1: print '\n\t\033[31mERROR!\033[0;0m You ... | {"hexsha": "e8afe187701037ab3df53045afa6d3ec30f11389", "size": 1388, "ext": "py", "lang": "Python", "max_stars_repo_path": "prime_num_gen.py", "max_stars_repo_name": "kstaats/primes", "max_stars_repo_head_hexsha": "ce1cd1615e02f040df1469dfa6a13329c6e43162", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "... |
# Importing various packages
from math import exp, sqrt
from random import random, seed
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
#Trial wave function for quantum dots in two dims... | {"hexsha": "97b7c7df5e45736f75a193d99b1da0f1b192ae40", "size": 4815, "ext": "py", "lang": "Python", "max_stars_repo_path": "doc/Projects/2018/Project4/QuantumMonteCarlo/CodeExample/vmc.py", "max_stars_repo_name": "kimrojas/ComputationalPhysicsMSU", "max_stars_repo_head_hexsha": "a47cfc18b3ad6adb23045b3f49fab18c0333f556... |
from sympy import *
import matplotlib.pyplot as plt
import numpy as np
# For a certain automobile, Upper M(x), represents the miles per gallon obtained at a speed of x miles per hour.
x = symbols( 'x' )
M = -.015 * x**2 + 1.36*x - 7.2 # 30 <= x <= 60
#M = -0.015 * x**2 + 1.44*x - 7.1 # 30 <= x <= 60
dM = diff( M, x )... | {"hexsha": "76762087a32d1fd91ab1cbb9577b52e7590a3a59", "size": 1007, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/Classes/MSDS400/Quiz/III/15.py", "max_stars_repo_name": "bmoretz/Python-Playground", "max_stars_repo_head_hexsha": "a367ec7659b85c24363c21b5c0ac25db08ffa1f6", "max_stars_repo_licenses": ["MIT"... |
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 31 13:57:09 2020
@author: Yoel Cortes-Pena
"""
# Run this cell first
from warnings import filterwarnings
filterwarnings('ignore')
import copy
from biosteam.utils import colors
import numpy as np
import biosteam as bst
from matplotlib.ticker import AutoMinorLocator as AML
... | {"hexsha": "5dc1fd605d627f920d9f9f0f12cd5d6f69fccd64", "size": 4977, "ext": "py", "lang": "Python", "max_stars_repo_path": "BioSTEAM 2.x.x/biorefineries/HP/_regime_slice.py", "max_stars_repo_name": "blsymens/Bioindustrial-Park", "max_stars_repo_head_hexsha": "c1173646185d52f4b8d595ad088ade8e5216614d", "max_stars_repo_l... |
import pyaudio
import wave
import binascii
from bitstring import BitArray
import bitarray
import numpy as np
from image_rcv import binary_to_image
bits_per_sec = 5
bit_frame_size = 1000//bits_per_sec
bit_frame_size = bit_frame_size * 1.2
chunk = 1 # Record in chunks of 1 sample
sample_format = pyaudio.paInt16 # 16... | {"hexsha": "7ab96fffa1e4bd5ad208f9125860fb4b3e049c72", "size": 2740, "ext": "py", "lang": "Python", "max_stars_repo_path": "client/receiver.py", "max_stars_repo_name": "kleanlins/wireless-paint", "max_stars_repo_head_hexsha": "d45e7a50dbe9a093610ae74c236321f6cfad2f24", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
from builtins import range
import unittest
import numpy as np
from ROOT import TFile
class TestCutFlowAnalyser(unittest.TestCase):
def setUp(self):
self.test_input_file_name = "CutflowTestInput.root"
f = TFile(self.test_input_file_name, "READ")
self.cutflow_raw_hist = f.Get("cutflow_raw")
... | {"hexsha": "e209232ba6437d0440c008ffe8aaa5f5421fd40a", "size": 1668, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/unit/TestCutFlowAnalyser.py", "max_stars_repo_name": "morgenst/PyAnalysisTools", "max_stars_repo_head_hexsha": "f3b1f89870e7bbae1549c228a56d2c36bbba7af3", "max_stars_repo_licenses": ["MIT"],... |
"""H0: ep is random
H1: ep is not random
sig_level = 0.01
odds of passing all tests when not random are low
"""
from scipy import integrate,fftpack
from numpy import exp, inf, pi
from math import log, ceil, floor
import gc
import numpy as np
class tests:
def __init__(self,ep,p):
self.ep = ep
... | {"hexsha": "18ca55afa4560f1adc3544deb3ef67c96bf5fa9d", "size": 38930, "ext": "py", "lang": "Python", "max_stars_repo_path": "Tests.py", "max_stars_repo_name": "P-Holland/pSponge-Timpix-PRNG", "max_stars_repo_head_hexsha": "c7494a87ddda4722184a43a4602307be7c79ad5e", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
# coding=utf-8
import numpy as np
chars = [" ", "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
class BarHack(str):
def __str__(self):
return self.internal
def __len__(self):
return 1
#bh = BarHack()
def plot(arr, max_arr=None):
if max_arr == None:
max_arr = arr
max_val = max(abs(... | {"hexsha": "f9c39efde6db22b15cafc481ff1edbe436fe6792", "size": 1039, "ext": "py", "lang": "Python", "max_stars_repo_path": "train_code_v2/theano_toolkit/hinton.py", "max_stars_repo_name": "darongliu/Cross_Modal_Projection", "max_stars_repo_head_hexsha": "b71c5031ce02edfd5cca7ba53b2c4e3bf5d0cd5c", "max_stars_repo_licens... |
import os
import argparse
import numpy as np
import pytorch_lightning as pl
from data import MovieLens_DataModule
from models import MultiVAE
from models import MultiDAE
from metric import Recall_at_k_batch, NDCG_binary_at_k_batch
from trainer import Trainer
def cli_main(args):
pl.seed_everything(args.seed)
... | {"hexsha": "5a6be19621c19e44d3607c825c1124d4a52f7806", "size": 3514, "ext": "py", "lang": "Python", "max_stars_repo_path": "main.py", "max_stars_repo_name": "pyy0715/vae-cf-pyorch", "max_stars_repo_head_hexsha": "819a1bea29b4ff61f259d94ecbc50c5a29fbca7e", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 5,... |
# NBA Game Predictor
# File: predictor.py
# Authors: Tarmily Wen & Andrew Petrosky
#
# The main predictor function, which calls the
# the requested model to make the prediction
import numpy as np
import src.predictors.baseline as baseline
import src.predictors.svm as svm
import src.predictors.naive_bayes as nb
import ... | {"hexsha": "e9485105ccc2f6435c603b475e28ff4847a862c6", "size": 12013, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/predictor.py", "max_stars_repo_name": "ChickenTarm/NBA_Fantasy_Winner", "max_stars_repo_head_hexsha": "a9f31653e773f9a77e4f9e73a34ade1f64560cd9", "max_stars_repo_licenses": ["MIT"], "max_star... |
using MomentClosure, ModelingToolkit
using Documenter
makedocs(;
modules=[MomentClosure, ModelingToolkit, Symbolics],
authors="Augustinas Sukys",
repo="https://github.com/augustinas1/MomentClosure.jl/blob/{commit}{path}#L{line}",
sitename="MomentClosure.jl",
doctest=false,
format=Documenter.HTM... | {"hexsha": "32d48b226816ff3789502f8c976eb6c19b8f5acd", "size": 1183, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "docs/make.jl", "max_stars_repo_name": "palmtree2013/MomentClosure.jl", "max_stars_repo_head_hexsha": "171d18818657bf1e93240e4b24d393fac3eea72d", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
Require Import List.
Require Coquelicot.Coquelicot.
Require Import mdp qvalues pmf_monad FiniteType FiniteTypeVector EquivDec Permutation Morphisms.
Require Import Reals RealAdd CoquelicotAdd.
Require Import utils.Utils.
Require Import Lra Lia PushNeg.
Require Import IndefiniteDescription ClassicalDescription.
Require ... | {"author": "IBM", "repo": "FormalML", "sha": "e399d096f1ad572420dbd1c638d593eee2129cbe", "save_path": "github-repos/coq/IBM-FormalML", "path": "github-repos/coq/IBM-FormalML/FormalML-e399d096f1ad572420dbd1c638d593eee2129cbe/coq/QLearn/qlearn_redux.v"} |
import os
import numpy as np
def to_sparse(F):
'''
convert dense F to sparse representation
:param F:
:return:
'''
F = np.array(F).astype(int)
F_ind = np.arange(1, len(F) + 1)
keep = np.where(F > 0)
F_ind = F_ind[keep]
F_val = F[keep]
return np.array([F_ind, F_val]).T
de... | {"hexsha": "dcc7c62c14be6be12eeaee0b2ecbccc56a4aabed", "size": 4891, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/estndv/estimate.py", "max_stars_repo_name": "wurenzhi/-learned_ndv_estimator", "max_stars_repo_head_hexsha": "9a687d8f0c625b30367051e690c4161424d2f902", "max_stars_repo_licenses": ["MIT"], "ma... |
#ifndef GAME_SCRIPT_INTERPRETERCONTEXT_H
#define GAME_SCRIPT_INTERPRETERCONTEXT_H
#include <boost/shared_ptr.hpp>
#include <components/interpreter/context.hpp>
#include "../mwbase/world.hpp"
#include "../mwworld/ptr.hpp"
#include "../mwworld/action.hpp"
namespace MWSound
{
class SoundManager;
}
namespace MWIn... | {"hexsha": "b543399656a8cd5e2ba3124af5c83db489e6ba9c", "size": 6213, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "apps/openmw/mwscript/interpretercontext.hpp", "max_stars_repo_name": "Bodillium/openmw", "max_stars_repo_head_hexsha": "5fdd264d0704e33b44b1ccf17ab4fb721f362e34", "max_stars_repo_licenses": ["Unlice... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 2 13:16:51 2019
@author: gregz
"""
import matplotlib
matplotlib.use('agg')
import glob
import matplotlib.pyplot as plt
from astropy.io import fits
import numpy as np
import datetime
from math_utils import biweight
import tarfile
import matplotlib.d... | {"hexsha": "c7e5f5cfce5bc5e61631a89542b5a1fe92c6a84a", "size": 6331, "ext": "py", "lang": "Python", "max_stars_repo_path": "lrs2_date_throughput.py", "max_stars_repo_name": "grzeimann/Panacea", "max_stars_repo_head_hexsha": "e0e9b5c64fa612659572343a47d518d8db63f2b8", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st... |
import numpy as np
import pandas as pd
from py_wake.examples.data.iea34_130rwt._iea34_130rwt import IEA34_130_1WT_Surrogate, IEA34_130_2WT_Surrogate
from py_wake.tests import npt
from py_wake.deficit_models.noj import NOJ
from py_wake.site.xrsite import UniformSite
from py_wake.turbulence_models.stf import STF2017Turb... | {"hexsha": "e04c28c27ab5dca3a4eede8da1104c6f689c1044", "size": 8118, "ext": "py", "lang": "Python", "max_stars_repo_path": "py_wake/tests/test_load_surrogates/test_iea34_surrogates.py", "max_stars_repo_name": "aemoser/PyWake", "max_stars_repo_head_hexsha": "889a2c10882195af21339e9bcf2ede0db9b58319", "max_stars_repo_lic... |
import numpy as np
import matplotlib.pyplot as plt
from copy import deepcopy
from datetime import datetime
from dateutil import parser
from monlan.agents.RiskManager import RiskManager
import time
class BuyerEnv():
class BuyerActionSpace():
def __init__(self):
self.actionsDict = { 0: "hold", 1... | {"hexsha": "ac7077afa0b0aca5f415ea31222dc00ee745eafe", "size": 17159, "ext": "py", "lang": "Python", "max_stars_repo_path": "monlan/envs/modular/BuyerEnv.py", "max_stars_repo_name": "CameleoGrey/Monlan", "max_stars_repo_head_hexsha": "998baa99d375ac28de317c431a724bdbc36ba0ff", "max_stars_repo_licenses": ["Apache-2.0"],... |
import pandas as pd
from pandas.tseries.offsets import *
import numpy as np
import matplotlib.pyplot as plt
import statsmodels.api as sm
import datetime
from pandas.tools.plotting import lag_plot
from pandas.tools.plotting import autocorrelation_plot
df = pd.read_csv ("outDataSingle.csv", header=0)
print df.head()
gr... | {"hexsha": "2452f9d719c7abe5fd663bf3c673ca2a73a5fdba", "size": 1649, "ext": "py", "lang": "Python", "max_stars_repo_path": "new Data/staticData/new_test.py", "max_stars_repo_name": "sudikrt/costproML", "max_stars_repo_head_hexsha": "b502ba8fcbd7962c85c76015723cdaf9bd77b2c8", "max_stars_repo_licenses": ["Apache-2.0"], "... |
[STATEMENT]
lemma atom_set_perm_eq:
assumes a: "as \<sharp>* p"
shows "p \<bullet> as = as"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. p \<bullet> as = as
[PROOF STEP]
proof -
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. p \<bullet> as = as
[PROOF STEP]
from a
[PROOF STATE]
proof (chain)
picking this:
a... | {"llama_tokens": 2061, "file": "Nominal2_Nominal2_Base", "length": 21} |
! { dg-do compile }
! PR fortran/67805
! Original code contributed by Gerhard Steinmetz
! gerhard dot steinmetz dot fortran at t-online dot de
!
subroutine p
integer, parameter :: n = 1
integer, parameter :: m(3) = [1, 2, 3]
character(len=1) s(2)
s = [character((m(1))) :: 'x', 'y'] ! OK.
s = [characte... | {"hexsha": "7371991717d820c32e638788dd2f349d684adeef", "size": 2039, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "validation_tests/llvm/f18/gfortran.dg/pr67805.f90", "max_stars_repo_name": "brugger1/testsuite", "max_stars_repo_head_hexsha": "9b504db668cdeaf7c561f15b76c95d05bfdd1517", "max_stars_repo_license... |
# Value iteration agent
# Model-based learning which requires mdp.
#
# ---
# @author Yiren Lu
# @email luyiren [at] seas [dot] upenn [dot] edu
#
# MIT License
import math
import numpy as np
import sys
import time
import mdptoolbox
import numpy as np
def val_iteration(P, R, gamma):
P = P.reshape((3,100,100))
R = ... | {"hexsha": "1b5555983accfacf46be364c6925fec12acdcf5e", "size": 8163, "ext": "py", "lang": "Python", "max_stars_repo_path": "mdp/value_iteration.py", "max_stars_repo_name": "sccrthlt/irl-imitation", "max_stars_repo_head_hexsha": "2f7cf0ccfe17ba7b1e1dbe39b2e513ee8d6b3f85", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
"""
PatternFold{T, P}
An abstract stype used as an interface for folded patterns such as `VectorFold`.
To implement the interface and inherit from it, a new structure must define three fields:
- `pattern::P`. Note that both `length(::P)` and `rand(:P)` methods must be available
- `gap::T`
- `folds::int`
"""
abstrac... | {"hexsha": "13fa2adaa6d615894eb3c92b1e445eb26b447ee1", "size": 1268, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/common.jl", "max_stars_repo_name": "Ved-Mahajan/PatternFolds.jl", "max_stars_repo_head_hexsha": "033d9c0394b611e4812a6ff35ff51a9388f2b262", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
\chapter{Conclusion}
%Digital identities und ihre Umsetzungen sind ein Jahrzente altes Problem, was bisher nur unzureichend gelöst werden konnte. Aktuelle Ansätze führen zu noch nie da gewesenen Leaks persönlicher Daten und dem Verlust von Kontrolle über von Millionen von Menschen weltweit.
Self-sovereign Identity is... | {"hexsha": "d6446c100131b149dad7e030f7d0e89183506c79", "size": 3189, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "thesis/src/07_diskussion.tex", "max_stars_repo_name": "strumswell/ssi-master-thesis", "max_stars_repo_head_hexsha": "3776abdbfa2b5e753447deee713b597d79a5bc2c", "max_stars_repo_licenses": ["MIT"], "m... |
import numpy as np
HEADER_DTYPE = np.dtype(
[
("nx", "i4"), # Number of columns
("ny", "i4"), # Number of rows
("nz", "i4"), # Number of sections
("pixel_type", "i4"), # Mode; indicates type of values stored in data block
("nxstart", "i4"), # Starting point of sub-image... | {"hexsha": "1a82520d939240e2bb8de414f9d9baff2f27c8ca", "size": 1826, "ext": "py", "lang": "Python", "max_stars_repo_path": "mrc/dtypes.py", "max_stars_repo_name": "tlambert03/mrcy", "max_stars_repo_head_hexsha": "f3e91c78e2f6607ce7cb5fc1e8ea65e76685ed0c", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count": ... |
from __future__ import print_function
import numpy as np
import pandas as pd
import os
import sys
#sys.path.insert(0,'GoF_input')
# choose between 'alphaSvalue', 'alphaSvalue_monash_noCPV', 'pTmin' and 'pTmin_monash_noCPV'
# alphaSvalue: 0.133, pTmin: 0.9
#For block 1: 0 is 1-Thrust, 1 is C_Param
dimensions = range(2... | {"hexsha": "d940d8a9c332dd8392e527c3c78eace3d1eddfa0", "size": 2335, "ext": "py", "lang": "Python", "max_stars_repo_path": "learningml/GoF/data/accept_reject/sin_reduced_dim.py", "max_stars_repo_name": "weissercn/learningml", "max_stars_repo_head_hexsha": "bd784798b846f76e00a3bbb0fb1acf6a1317be12", "max_stars_repo_lice... |
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.
#
#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... | {"hexsha": "37efef857f3e4ef0943e8d5acb39bc3881e88c43", "size": 5197, "ext": "py", "lang": "Python", "max_stars_repo_path": "PaddleCV/yolov3/utility.py", "max_stars_repo_name": "FrancisLiang/models-1", "max_stars_repo_head_hexsha": "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "max_stars_repo_licenses": ["Apache-2.0"], "m... |
#include "application.hpp"
#include <boost/log/trivial.hpp>
#include <nlohmann/json.hpp>
#include <wx/cmdline.h>
#include <wx/ipc.h>
#include <wx/persist.h>
#include <wx/snglinst.h>
#include <wx/taskbarbutton.h>
#include "api/libpico_impl.hpp"
#include "crashpadinitializer.hpp"
#include "persistencemanage... | {"hexsha": "6b8aeb1dda21383c8ad9af2bb31a38e8bd593401", "size": 5464, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/picotorrent/application.cpp", "max_stars_repo_name": "theRealBaccata/picotorrent", "max_stars_repo_head_hexsha": "5baad13e44d15cc5e79da9e947b0e91781cd9e76", "max_stars_repo_licenses": ["MIT"], "... |
[STATEMENT]
lemma strengthen_pre: "\<lbrakk> \<forall>s. P' s \<longrightarrow> P s; \<turnstile> {P}c{Q} \<rbrakk> \<Longrightarrow> \<turnstile> {P'}c{Q}"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>\<forall>s. P' s \<longrightarrow> P s; \<turnstile> {P} c {Q}\<rbrakk> \<Longrightarrow> \<turnstile> ... | {"llama_tokens": 161, "file": "Abstract-Hoare-Logics_While_Hoare", "length": 1} |
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import models
import numpy as np
import pandas as pd
def get_upsampling_weight(in_channels, out_channels, kernel_size):
"""Make a 2D bilinear kernel suitable for upsampling"""
factor = (kernel_size + 1) // 2
if kernel_size ... | {"hexsha": "789a0c1c6c1f88290dccc38dbd1a0b89fc65b200", "size": 16090, "ext": "py", "lang": "Python", "max_stars_repo_path": "models.py", "max_stars_repo_name": "yannadani/dlgm", "max_stars_repo_head_hexsha": "7e4f3dcffd8b23b14977aedc17ef9cc891a59f43", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 60, "max_star... |
using CovarianceMatrices
using Dierckx
using JLD2
basepath = @__DIR__
x = 0.1:.01:32
itr = Iterators.product(x, 1:175000)
out = map(i -> CovarianceMatrices.kernel(QuadraticSpectralKernel(1), i[2]/i[1]), itr)
r7 = vec(convert(Array{Float64}, mapslices(u -> findfirst(abs.(u) .< 1e-07), out, dims = 2)))
r8 = vec(convert... | {"hexsha": "245fb97dca7dd6f155bf8f258f4c52650bc4e6d6", "size": 926, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "ext/create_splines.jl", "max_stars_repo_name": "UnofficialJuliaMirror/CovarianceMatrices.jl-60f91f6f-d783-54cb-84f9-544141854719", "max_stars_repo_head_hexsha": "71521b4a4d046f491263ada2da2a1dd6f1fc... |
# OCR requires parameter tuning based on its image pattern.
# This project demonstrates how to use image pre-processing and then
# utilize tesseract package to recognize captcha.
# The accuracy of the proposed method can achieve up to 80%, which is acceptable for many web applications.
# Feel free to give ... | {"hexsha": "2d7082a0c809ea416df6e20d00b5a4c79c1b28ca", "size": 27466, "ext": "py", "lang": "Python", "max_stars_repo_path": "Main.py", "max_stars_repo_name": "allan920693/Captcha-Solver-using-Pytesseract", "max_stars_repo_head_hexsha": "a139ac39e4557ee54566a4424c24a90cd63b8d56", "max_stars_repo_licenses": ["MIT"], "max... |
# train_networks.py
# For training CNNs and SDNs via IC-only and SDN-training strategies
# It trains and save the resulting models to an output directory specified in the main function
import os
# os.environ['CUDA_VISIBLE_DEVICES'] = '0'
import copy
import torch
import time
import os
import random
import numpy as np
f... | {"hexsha": "3d1c7e3b86ce7ca32a902e14b1f8caf82651b16a", "size": 6703, "ext": "py", "lang": "Python", "max_stars_repo_path": "deeplearning/train_networks.py", "max_stars_repo_name": "yuuu14/multi-exit-network", "max_stars_repo_head_hexsha": "eabf7b23fe93e261a5350ed03075dcb49fdeb0f8", "max_stars_repo_licenses": ["MIT"], "... |
from FISstructure import FIS
from fuzzy import Membership, Rulebase, Defuzz, MembershipArray
import numpy as np
import matplotlib.pyplot as plt
in1 = 0.3
in2 = 0.7
mf1 = [(0, 0.1, 0.4167), (0.0833, 0.5, 0.9167), (0.625, 0.9583, 1)]
mf2 = [(0, 0.1, 0.4167), (0.0833, 0.5, 0.9167), (0.625, 0.9583, 1)]
out = [(0, 0.1, 0... | {"hexsha": "7c8b599bdd2d0524803a3b19bd368f5e58d452e8", "size": 561, "ext": "py", "lang": "Python", "max_stars_repo_path": "test.py", "max_stars_repo_name": "samking7185/UCFuzzyChallenge", "max_stars_repo_head_hexsha": "c3f32878fc0728e21a2e5d9ddf06c467e19b8cfe", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul... |
# DiscontinuousGalerkinScheme
# Based on:
# Hesthaven, Warburton, Nodal Discontinuous Galerkin Methods Algorithms, Analysis and applications
mutable struct DiscontinuousGalerkinScheme{T,vType} <: AbstractFEAlgorithm
basis::PolynomialBasis
riemann_solver::Function
max_w_speed :: Function
D::AbstractArray{T,2}
... | {"hexsha": "235885e4814d9e9d22dbb3bbf30d48498bb56dab", "size": 5314, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/solve.jl", "max_stars_repo_name": "Paulms/DiscontinuousGalerkin", "max_stars_repo_head_hexsha": "6399bc038ba83933fdd29d7a417d6c025fcfa0fb", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
"""
Diagnostics
Accumulate mean fields and covariance statistics on the computational grid.
"""
module Diagnostics
export DiagnosticsGroup,
setup_atmos_default_diagnostics,
setup_atmos_core_diagnostics,
setup_dump_state_and_aux_diagnostics
using CuArrays
using Dates
using FileIO
using JLD2
using Kern... | {"hexsha": "ba124415c3574460ea7b28cd25bd24c998b9fd49", "size": 1967, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Diagnostics/Diagnostics.jl", "max_stars_repo_name": "leios/CLIMA", "max_stars_repo_head_hexsha": "44c45eb762b8dc4c5af091079f2d65c024cb8d27", "max_stars_repo_licenses": ["Apache-2.0"], "max_star... |
#include "hoCuNDArray_utils.h"
#include "radial_utilities.h"
#include "hoNDArray_fileio.h"
#include "cuNDArray.h"
#include "imageOperator.h"
#include "identityOperator.h"
#include "hoPartialDerivativeOperator.h"
#include "cuConebeamProjectionOperator.h"
#include "hoCuConebeamProjectionOperator.h"
#include "cuConvolutio... | {"hexsha": "3d8f691b6ad16ab5d77e4121084a3ecbe4ca3228", "size": 11095, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "xray/cuCB_reconstruct.cpp", "max_stars_repo_name": "ahsanjav/gt-tomography", "max_stars_repo_head_hexsha": "1f53d72672ccda417bc8966d8497af6d786e8935", "max_stars_repo_licenses": ["MIT"], "max_stars... |
import numpy as np
from nglui import annotation
import pandas as pd
from collections.abc import Collection
from itertools import chain
def _multipoint_transform(row, pt_columns, squeeze_cols):
"""Reshape dataframe to accomodate multiple points in a single row"""
pts = {pcol: np.atleast_2d(row[pcol]) for pcol ... | {"hexsha": "d4c272b39c761b6a5472132cdbdea9751de2fd0e", "size": 23002, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/nglui/statebuilder/mappers.py", "max_stars_repo_name": "seung-lab/NeuroglancerAnnotationUI", "max_stars_repo_head_hexsha": "0429b93330b7aa83f4c591564978b3ceb9229374", "max_stars_repo_licenses... |
"""
Parallelization class to handle processing threads and logging.
"""
import numpy as np
import multiprocessing
import logging
import logging.handlers
import os
import glob
logger = logging.getLogger(__name__)
class MultiprocessingJob:
"""
This object initiates the pool for multiprocessing jobs.
P... | {"hexsha": "04d650ba9dada004e0da89efd3dd7f07f6798f7d", "size": 7524, "ext": "py", "lang": "Python", "max_stars_repo_path": "despasito/utils/parallelization.py", "max_stars_repo_name": "nikita-bykov/despasito", "max_stars_repo_head_hexsha": "484ccd8d013bf83de79a28c605d0bdced90ca391", "max_stars_repo_licenses": ["BSD-3-C... |
#
# MIT License
#
# Copyright (c) 2020 Keisuke Sehara
#
# 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, me... | {"hexsha": "88a320fd3e4a8520683e37844fd290f114f5006b", "size": 3467, "ext": "py", "lang": "Python", "max_stars_repo_path": "posetrigger/expression.py", "max_stars_repo_name": "gwappa/python-posetrigger", "max_stars_repo_head_hexsha": "3d9619160b5ed97e52ba2aae99d5eec663834a06", "max_stars_repo_licenses": ["MIT"], "max_s... |
from neuron import h, gui
# science/math libraries
import numpy as np
import pandas as pd
import scipy.stats as st # for probabilistic distributions
import matplotlib.pyplot as plt
# general libraries
import platform
# local imports
from modelUtils import findOrigin, rotate, findSpikes
plat = platform.system()
if pla... | {"hexsha": "b0fc81cc6f7ebc93f0c6d7a4e994bb60cb92c4b7", "size": 60797, "ext": "py", "lang": "Python", "max_stars_repo_path": "offsetDSGC.py", "max_stars_repo_name": "geoffder/Spatial-Offset-DSGC-NEURON-Model", "max_stars_repo_head_hexsha": "f7688f84adc01b14e554e11f3308f3a004ff29d2", "max_stars_repo_licenses": ["MIT"], "... |
from __future__ import absolute_import
import pytest
pytest.importorskip('numpy')
pytest.importorskip('scipy')
import numpy as np
import scipy.linalg
import dask.array as da
from dask.array.linalg import tsqr, svd_compressed, qr, svd
from dask.array.utils import assert_eq
def same_keys(a, b):
def key(k):
... | {"hexsha": "e00fd92aa6436a7e1afbd68f6f890fce68fa4c6e", "size": 13697, "ext": "py", "lang": "Python", "max_stars_repo_path": "dask/array/tests/test_linalg.py", "max_stars_repo_name": "cruzdanilo/dask", "max_stars_repo_head_hexsha": "965c9e401801689a6a68cec5c0529f912a459960", "max_stars_repo_licenses": ["BSD-3-Clause"], ... |
from PIL import Image
import numpy as np
import sys
import json
import os
def spring():
ivory = (255, 255, 240) #FFFFF0
buff = (240, 220, 130) #F0DC82
clear_gold = (246, 212, 100) #F6D464
apricot = (251, 206, 177) # FBCEB1
light_orange = (251, 191, 119) #FBBF77
coral_peach = (255, 179, 142) ... | {"hexsha": "8add93d0302d2273a1bb51c57d49b909ffbb2289", "size": 11330, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/scripts/color_extraction.py", "max_stars_repo_name": "kinghyeongu/Backend", "max_stars_repo_head_hexsha": "bab24cff859b43c2e4a891f4b904e74e25eeac40", "max_stars_repo_licenses": ["Apache-2.0"]... |
import argparse
import logging
import sys
import time
from tf_pose import common
import cv2
import numpy as np
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
# # Yitao-TLS-Begin
# import tensorflow as tf
# import os
# import sys
# from tensorflow.python.saved_model... | {"hexsha": "c1e949e29e4c1f4edb768524176818b6e7da3f23", "size": 5753, "ext": "py", "lang": "Python", "max_stars_repo_path": "run_test.py", "max_stars_repo_name": "sugartom/tf-pose-estimation", "max_stars_repo_head_hexsha": "84d3d87bd6c5a757e3106245440f1582b9ae0d69", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_... |
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 22 13:46:04 2017
@author: B
Architecture from Jadeberg et al. 2016
Contrastive loss from Hadsell et al. 2006
train on vml
test on vml
equal pairs
train until max map
mAP with query itself
mAP without query itself
"""
from __future__ import absolute_import
f... | {"hexsha": "93e601729350406223326b315888199a76e8029d", "size": 12988, "ext": "py", "lang": "Python", "max_stars_repo_path": "vmlclmaxmap.py", "max_stars_repo_name": "beratkurar/WordSpottingUsingConvolutionalSiamese", "max_stars_repo_head_hexsha": "e32a1da87c1d433594c96fa08ada46b08e121259", "max_stars_repo_licenses": ["... |
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | {"hexsha": "df636adadf459cc0f0ae6ee08558692d9fc15d58", "size": 6448, "ext": "py", "lang": "Python", "max_stars_repo_path": "lit_nlp/components/lime_explainer.py", "max_stars_repo_name": "johnson7788/lit", "max_stars_repo_head_hexsha": "3eb824b01e0f72a5486124b16056bf912465debc", "max_stars_repo_licenses": ["Apache-2.0"]... |
import numpy as np
from keras.models import load_model
import numpy as np
from sys import argv
from keras.preprocessing import image
from keras.preprocessing.image import ImageDataGenerator
class Classifier:
def __init__(self):
self.model = load_model('model.h5')
self.image_size = self.model.input... | {"hexsha": "247e00a9434aa0c6589790b7e5de0d35b010b576", "size": 1175, "ext": "py", "lang": "Python", "max_stars_repo_path": "classifier.py", "max_stars_repo_name": "io53/keras-object-recognition", "max_stars_repo_head_hexsha": "ffe29b617440a9fba5e30a55b0b7466fa2e3684d", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Creating GUI with tkinter
import json
import tkinter
from tkinter import *
from tensorflow.keras.models import load_model, model_from_json
import io
import os
import pandas as pd
import numpy as np
symptoms_url = "https://raw.githubusercontent.com/KellieChong/MacHacks2... | {"hexsha": "200fd548a80e8c513ebf893a25430493ae1a4fab", "size": 5211, "ext": "py", "lang": "Python", "max_stars_repo_path": "new.py", "max_stars_repo_name": "MihirKakkar/SymptomBuddy", "max_stars_repo_head_hexsha": "59e6b68791bf3ab9ec4e05f8538632cadda243e8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "... |
"""
.. module:: get_data_galex
:synopsis: Returns extracted GALEX spectral data as a JSON string.
.. moduleauthor:: Scott W. Fleming <fleming@stsci.edu>
"""
import collections
from astropy.io import fits
from data_series import DataSeries
from parse_obsid_galex import parse_obsid_galex
#--------------------
def ... | {"hexsha": "d5a1302a8ed3b3918a682e200b8a712e86d6fb4d", "size": 3589, "ext": "py", "lang": "Python", "max_stars_repo_path": "get_data_galex.py", "max_stars_repo_name": "openSAIL/MASTDataDelivery", "max_stars_repo_head_hexsha": "60aa8468e55d0d76e1245c3a956a8429e42f4107", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 2 17:18:05 2016
@author: stephaniekwan
Quick zero-point magnitude calculations for JHK bands, using 2MASS sources near
IC 10 X-2. See associated .fits files and 160802 H band 2MASS sources.reg. +
Not very quick photometry on WIRC images in the JHK bands, calculating app... | {"hexsha": "e6c08f8927c0e93114447c6de61da7b6eeae8a04", "size": 11428, "ext": "py", "lang": "Python", "max_stars_repo_path": "palomar/WIRC_reductions/160802 WIRC zero point calibration.py", "max_stars_repo_name": "skkwan/IC10X2", "max_stars_repo_head_hexsha": "76e3383beb0ba930c006d4f202201b43036e69cd", "max_stars_repo_l... |
import os
import time
from tqdm import tqdm
import numpy as np
import torch
from torch.autograd import Variable
import torch.nn as nn
from torch.utils.data import DataLoader
from Network import EdgeGuidedNetwork
from DataLoader import CityscapesDataset
from Criterions import MultiModalityDiscriminatorLoss as crit
fr... | {"hexsha": "2e834c8dbca80f36f13b0c1e13228ae190bee173", "size": 9884, "ext": "py", "lang": "Python", "max_stars_repo_path": "Trainer.py", "max_stars_repo_name": "Morpheus3000/EdgeGANReimplementation", "max_stars_repo_head_hexsha": "80345bfad8a3bb3472cde033d868d7b63376e1dd", "max_stars_repo_licenses": ["MIT"], "max_stars... |
# Copyright 2021 Holbox Corporation
# Use under MIT license
#PPM PWM Library
import sys
import smbus2 as smbus #,smbus2
import time
import numpy as np
class OutputDrive:
def __init__(self, slave_address, output_mode, board_type): # output_mode can be either "led" or "servo"
self.slave_address = slave_add... | {"hexsha": "3dda4b63025b3fb6ec4f6f8c3e8cd67efd6f5de4", "size": 8325, "ext": "py", "lang": "Python", "max_stars_repo_path": "sample_code/holbox_ppm_pwm_lib.py", "max_stars_repo_name": "holbox-corp/ppm_pwm_009", "max_stars_repo_head_hexsha": "8bde26d78fc54d17068a4a67297351b4a4234a27", "max_stars_repo_licenses": ["MIT"], ... |
# -*- coding: utf_8 -*-
import os
import cv2
import pickle
import tensorflow as tf
import math
import numpy as np
import keras
from keras.callbacks import ReduceLROnPlateau
from keras import backend as K
from keras.engine.input_layer import Input
from keras.models import Model
# from keras import regularizers
from ker... | {"hexsha": "3cda762da89c487d2653b87ead8e527207db17f5", "size": 8204, "ext": "py", "lang": "Python", "max_stars_repo_path": "model.py", "max_stars_repo_name": "minus31/Fashion_items_recommendation_demo", "max_stars_repo_head_hexsha": "65e8abd330b07d4b980bf7d351102618df69be6b", "max_stars_repo_licenses": ["MIT"], "max_st... |
[STATEMENT]
lemma esssup_AE_cong:
"f \<in> borel_measurable M \<Longrightarrow> g \<in> borel_measurable M \<Longrightarrow> AE x in M. f x = g x \<Longrightarrow> esssup M f = esssup M g"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>f \<in> borel_measurable M; g \<in> borel_measurable M; AE x in M. f x... | {"llama_tokens": 175, "file": null, "length": 1} |
# Copyright 2020 Fagner Cunha
#
# 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,... | {"hexsha": "d78a7e8dbbe58c9406d7c02924eff64729516f05", "size": 4790, "ext": "py", "lang": "Python", "max_stars_repo_path": "eval_classifier_latency_tflite.py", "max_stars_repo_name": "alcunha/filtering-empty-camera-trap-images", "max_stars_repo_head_hexsha": "0aa96801a4a0d7e26140895cdd7c926553a508e5", "max_stars_repo_l... |
@testset "$C" for C in (Lab, Luv)
@testset "$C over $C: $T" for T in (Float64, Float32)
@test BlendNormal(C{T}(90, 80, 70), C{T}(60, 50, -40)) ≈ C{T}(60, 50, -40)
@test BlendNormal(C{T}(10, -20, -30), C{T}(40, -50, 60)) ≈ C{T}(40, -50, 60)
@test BlendMultiply(C{T}(90, 80, 70), C{T}(60... | {"hexsha": "50b4a9e167e1ad7ef074169723a64aebd4ebb8c3", "size": 2731, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/blend_lab.jl", "max_stars_repo_name": "kimikage/ColorBlendModes.jl", "max_stars_repo_head_hexsha": "b3ddacc92b94136ce8cdbcddcd4ba0d70947ae13", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
import sys, os
import time
import numpy as np
import logging as log
from .config import FTFREQ, FT, IFT
from .solver import IFM_RK4IP, SiSSM, SySSM, LEM, CQE
from .models import FMAS_S, FMAS_S_Raman
from .data_io import read_h5, save_h5
from .grid import Grid
from .analytic_signal import AnalyticSignal
def run(file_n... | {"hexsha": "d8b870325d90cf8100bb4aedbca9029db1c08c52", "size": 1847, "ext": "py", "lang": "Python", "max_stars_repo_path": "fmas/app.py", "max_stars_repo_name": "nunoedgarhubsoftphotoflow/py-fmas", "max_stars_repo_head_hexsha": "241d942fe0cd6a49001b1bf110dd32bccc86bb16", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
# pylint: disable=missing-function-docstring, missing-module-docstring/
import numpy as np
from pyccel.decorators import types
from pyccel.decorators import template
#$ header function gen_2(real, int)
#$ header function gen_2(int, real)
#$ header function gen_4(T, T)
#$ header function tmplt_head_1(int, real)
#$ head... | {"hexsha": "6b99f7ce93f57f2deb3d9eb21f9a8a19e713d938", "size": 3618, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/pyccel/scripts/generic_functions.py", "max_stars_repo_name": "nandiniraja348/pyccel", "max_stars_repo_head_hexsha": "d857efcb8ff327f72473daeb86903c7e9ef93a36", "max_stars_repo_licenses": ["M... |
#!/usr/bin/env python
import os
import numpy as np
from scipy.interpolate import interp1d
from pyPanair.preprocess import wgs_creator
from pyPanair.utilities import bspline
def main(x1, x2, y1, y2, y3, aoas=(7.42), target_dir=""):
""" create a LaWGS file for twisted rectangular wing
reference case 3... | {"hexsha": "672aefef249b4838be82b656fbc65fc792347f3e", "size": 2200, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/batch_analysis/make_wgs_aux.py", "max_stars_repo_name": "QiLinXue/pyPanair", "max_stars_repo_head_hexsha": "fb736916449cbeb787d4a762cbfa3e7a1f408535", "max_stars_repo_licenses": ["MIT"], ... |
"""A modified image folder class
We modify the official PyTorch image folder (https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py)
so that this class can load images from both current directory and its subdirectories.
"""
import torch.utils.data as data
import os
import os.path
import numpy... | {"hexsha": "a93a23f5c18021b72bc59942535f01ab8370dbc9", "size": 2447, "ext": "py", "lang": "Python", "max_stars_repo_path": "data/hdf5_folder.py", "max_stars_repo_name": "albert-yue/pix2pix", "max_stars_repo_head_hexsha": "bf7c83b4a14ff84dc60c2f60ea6da3add8ff4d21", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars... |
import numpy as np
from gfunc2d.utilities import is_color, find_nearest
def get_isopath(alpha, feh=None, age=None):
'''
Function to get the grid path corresponding to the isochrone with the given
values of alpha, feh, and age.
Parameters
----------
alpha : float
Value of [alpha/Fe].
... | {"hexsha": "ece5b1bf2d41188a041a24d335180761bd73cb19", "size": 11525, "ext": "py", "lang": "Python", "max_stars_repo_path": "gfunc2d/gridtools.py", "max_stars_repo_name": "csahlholdt/2dG", "max_stars_repo_head_hexsha": "fd071b218c5c649b3e726a42e7040c35e4f5948f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu... |
% !Tex root = checkedc.tex
\chapter{Bounds for expressions and bounds declaration checking}
\label{chapter:checking-bounds}
The prior chapter described how to declare bounds for variables.
This chapter describes how to infer a bounds expression for
an expression, starting from the declared bounds for variables.
An i... | {"hexsha": "ed14290eb6cf40a75d19523050b51f12b7556132", "size": 113654, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "spec/bounds_safety/checking-variable-bounds.tex", "max_stars_repo_name": "mwhicks1/checkedc", "max_stars_repo_head_hexsha": "36a89b3722caa381405d939c70708e610cabf0de", "max_stars_repo_licenses": [... |
__author__ = 'sibirrer'
#this file contains a class to compute the Navaro-Frank-White function in mass/kappa space
#the potential therefore is its integral
import numpy as np
from lenstronomy.LensModel.Profiles.nfw import NFW
import lenstronomy.Util.param_util as param_util
from lenstronomy.LensModel.Profiles.base_pr... | {"hexsha": "df6e216fc4a5b9956b13b31eddc59f6a7284adb0", "size": 3682, "ext": "py", "lang": "Python", "max_stars_repo_path": "lenstronomy/LensModel/Profiles/nfw_ellipse.py", "max_stars_repo_name": "franyancr/lenstronomy", "max_stars_repo_head_hexsha": "3a7b33512a474bf1796d23276d9028b580580cf1", "max_stars_repo_licenses":... |
import numpy as np
def translate(point, vector, length=None):
vector = np.array(vector)
if length is not None:
vector = length * vector / np.linalg.norm(vector)
return (np.array(point) + vector).tolist()
def circle(center, perp_vect, radius, element_number=10):
"""
Function computed the ... | {"hexsha": "4cfbe4dfc5921c530dc7d91ddf5ded0245c612e3", "size": 2484, "ext": "py", "lang": "Python", "max_stars_repo_path": "lisa/geometry3d.py", "max_stars_repo_name": "mjirik/lisa", "max_stars_repo_head_hexsha": "06c5cb8f375f51302341e768512f02236774c8a3", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count":... |
import numpy as np
import vg
def quads_to_tris(quads, ret_mapping=False):
"""
Convert quad faces to triangular faces.
quads: An nx4 array.
ret_mapping: A bool.
When `ret_mapping` is `True`, return a 2nx3 array of new triangles and a 2nx3
array mapping old quad indices to new trangle indices.... | {"hexsha": "48822991fb92c065c8766051b72364bc6e53053f", "size": 713, "ext": "py", "lang": "Python", "max_stars_repo_path": "polliwog/tri/arity.py", "max_stars_repo_name": "algrs/polliwog", "max_stars_repo_head_hexsha": "faa6531e8e2f7d0b52e928d64a4c1914199c4023", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_co... |
import re
import sys
from typing import Tuple, Dict, List
import itertools
import sympy as sp
BUDGET = 100
CALORIE_BUDGET = 500
IngredientValues = Dict[str, int]
def parse(line: str) -> Tuple[str, IngredientValues]:
pattern = re.compile(r'(\w+) (-?\d+)')
name, raw_components = line.split(':')
return na... | {"hexsha": "270cf66af1c0cbb46784b746e7c3fd62962c2d4f", "size": 3477, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/y_2015/day15.py", "max_stars_repo_name": "AJSKirk/aoc", "max_stars_repo_head_hexsha": "68a66f0f37b532db6d0752bf04ed7698b7cd8a5a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 4, "... |
#ifndef SELECTOR_H
#define SELECTOR_H
#include "generated_config.hpp"
#include "solver_headers.hpp"
#include "solvers.hpp"
#include "../baselines/earlyscheduler.hpp"
#include "../util/randomizer.hpp"
#include "../util/solverconfig.hpp"
#include "runner.hpp"
#include <boost/hana.hpp>
#include <boost/hana/assert.hpp>... | {"hexsha": "9a4fa71a8fec669ec3134a0806cd4e4f33dfdc96", "size": 799, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/manager/selector.hpp", "max_stars_repo_name": "kit-algo/TCPSPSuite", "max_stars_repo_head_hexsha": "01499b4fb0f28bda72115a699cd762c70d7fff63", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
using QuantLib.Time
type FixedRateCoupon{DC <: DayCount} <: Coupon
couponMixin::CouponMixin{DC}
paymentDate::Date
nominal::Float64
rate::InterestRate
end
FixedRateCoupon{DC <: DayCount}(paymentDate::Date, faceAmount::Float64, rate::InterestRate, accrual_start::Date, accrual_end::Date, ref_start::Date, ref_end... | {"hexsha": "d39eaaa3e523cc966a098c5d3551df4f16a24092", "size": 4783, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/cash_flows/fixed_rate_coupon.jl", "max_stars_repo_name": "JuliaQuant/QuantLib.jl", "max_stars_repo_head_hexsha": "b1a806daa3b15b1f3705e36f716e66cc24c1dd5f", "max_stars_repo_licenses": ["MIT"], ... |
#!/usr/bin/env python3
import numpy as np
from pyevtk.hl import gridToVTK
def gen_image(x, y, t):
xm, ym = np.meshgrid(x, y)
d = np.power(xm, 2) + np.power(ym, 2)
return np.cos( np.sqrt(d) * 2.0 - t) / (1.0 + d)
nx = 101
ny = 101
nt = 30
x = np.linspace(-10.0, 10.0, nx, dtype=np.float32)
y = np.linspace(-10... | {"hexsha": "96b54f3c1cd1f8f86c60cf8274a012db118e28db", "size": 683, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/vtk/pyevtk_anim_grids.py", "max_stars_repo_name": "lanahuong/dubrayn.github.io", "max_stars_repo_head_hexsha": "fd78edb38442966395161cfcf9dfd9b464703ddd", "max_stars_repo_licenses": ["MIT"... |
import os
import argparse
import multiprocessing
from multiprocessing import Pool
from contextlib import contextmanager
import numpy as np
from utils import config
from utils.util import genSamples
@contextmanager
def poolcontext(*args, **kwargs):
pool = multiprocessing.Pool(*args, **kwargs)
yield pool
... | {"hexsha": "b9e893f93064d85b40d97f748a29532246bda657", "size": 3551, "ext": "py", "lang": "Python", "max_stars_repo_path": "preprocess/sample_tool.py", "max_stars_repo_name": "IGLICT/OctField", "max_stars_repo_head_hexsha": "3038686d77873c3bd2340953c8936448d2aaa09e", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
/*
* Bayes++ the Bayesian Filtering Library
* Copyright (c) 2002 Michael Stevens
* See accompanying Bayes++.htm for terms and conditions of use.
*
* $Id$
*/
/*
* Example of using Bayesian Filter Class to solve a simple problem.
*
* The example implements a simple quadratic observer.
* This tries to estimate... | {"hexsha": "dc5ea5c39a78f420fcfc609fddb20e5a412210c2", "size": 4910, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "QuadCalib/QuadCalib.cpp", "max_stars_repo_name": "Exadios/Bayes-", "max_stars_repo_head_hexsha": "a1cd9efe2e840506d887bec9b246fd936f2b71e5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2.... |
# !/usr/bin/env python
import numpy as np
import cv2
import os
import sys
class ImageEffects:
@staticmethod
def ConcatImages(img1, img2):
"""Writes a list of images to folder
Parameters
----------
img1 : OpenCV image type
First image to be concatenated
img2 : OpenCV image type
... | {"hexsha": "50b08f4714248f227b7864fe714794a41b23fb3a", "size": 2114, "ext": "py", "lang": "Python", "max_stars_repo_path": "DataProcessing/ImageEffects.py", "max_stars_repo_name": "FullMetalNicky/FrontNetPorting", "max_stars_repo_head_hexsha": "8dc12f1c83ae770936101cfe815523dd7e95188b", "max_stars_repo_licenses": ["MIT... |
theory Interpretation_in_nested_targets
imports MainRLT
begin
locale injection =
fixes f :: \<open>'a \<Rightarrow> 'b\<close>
assumes eqI: \<open>f x = f y \<Longrightarrow> x = y\<close>
begin
lemma eq_iff:
\<open>x = y \<longleftrightarrow> f x = f y\<close>
by (auto intro: eqI)
lemma inv_apply:
\<ope... | {"author": "dtraytel", "repo": "HOLRLT", "sha": "e9029da59bb3af0c835604a65308498f9696a364", "save_path": "github-repos/isabelle/dtraytel-HOLRLT", "path": "github-repos/isabelle/dtraytel-HOLRLT/HOLRLT-e9029da59bb3af0c835604a65308498f9696a364/HOLRLT/ex/Interpretation_in_nested_targets.thy"} |
import os
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams.update({'font.size': 24,
'axes.linewidth': 3,
'xtick.major.size': 5,
'xtick.major.width': 2,
'ytick.major.size': 5,
... | {"hexsha": "c688505931a8489944c7a62bb70d5779f602bc2c", "size": 2245, "ext": "py", "lang": "Python", "max_stars_repo_path": "myutils.py", "max_stars_repo_name": "davidgwyrick/PyTorch-VAE", "max_stars_repo_head_hexsha": "840fcdfd7596864fc9ce9661720deedf0a45b804", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_coun... |
# The Quality of Finite-Size Data Collapse
# Finite-size scaling
The finite-size scaling ansatz
$$
A_L(\varrho) = L^{\zeta/\nu} \tilde{f}\left(L^{1/\nu} (\varrho - \varrho_c)
\right)
$$
postulates how a physical quantity $A_L(\varrho)$ observed in a system of
finite size scales with system size $L$ and paramater $... | {"hexsha": "010ef27dc80a8d93a34c291e98f511d72ee4560c", "size": 7182, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "notebooks/quality-of-data-collapse.ipynb", "max_stars_repo_name": "andsor/notebooks", "max_stars_repo_head_hexsha": "7c4c6695cd48655b4cf6f158cbafd27649c78df8", "max_stars_repo_license... |
#include <boost/compute/image3d.hpp>
| {"hexsha": "37f704e06f9f75a7d09be211cb37cfa434da76a1", "size": 37, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_compute_image3d.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["BSL-1.0"], "m... |
from __future__ import print_function
import unittest
import discretize
from scipy.constants import mu_0
from SimPEG.electromagnetics import frequency_domain as fdem
from geoana.em.static import MagneticDipoleWholeSpace
# from SimPEG.electromagnetics.analytics.FDEM import MagneticDipoleWholeSpace
import numpy as np
... | {"hexsha": "4283d6deeada091ad774d6b0a5bebe44f7028a8b", "size": 14184, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/em/fdem/forward/test_FDEM_sources.py", "max_stars_repo_name": "Prithwijit-Chak/simpeg", "max_stars_repo_head_hexsha": "d93145d768b5512621cdd75566b4a8175fee9ed3", "max_stars_repo_licenses": ... |
LOGICAL FUNCTION STRCON (STRID, STRG)
C Strcon is used to check the contents of a single structure.
C
C Strid is the identifier of the structure to be examined.
C Strg is a string representing a list of integers, which are
C interpreted as type-content pairs. Only the first integer
C in an element's conten... | {"hexsha": "59ce7ef987e95ee92edabdf0a3430c78a8eaac18", "size": 3189, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "third_party/Phigs/PVT/PVT_fort/V2LIB/strcon.f", "max_stars_repo_name": "n1ckfg/Telidon", "max_stars_repo_head_hexsha": "f4e2c693ec7d67245974b73a602d5d40df6a6d69", "max_stars_repo_licenses": ["MIT"... |
#!/usr/bin/env python
"""Provides scikit interface."""
import numpy as np
import networkx as nx
import random
import logging
logger = logging.getLogger(__name__)
class NeighborhoodNodeSmooth(object):
def __init__(self, n_nodes=1, n_neighbors=10, part_importance_estimator=None):
self.part_importance_esti... | {"hexsha": "e00cf4d2d30162e0e660f2afdd16b84efdda659f", "size": 1765, "ext": "py", "lang": "Python", "max_stars_repo_path": "ego/optimization/neighborhood_node_smooth.py", "max_stars_repo_name": "fabriziocosta/EGO", "max_stars_repo_head_hexsha": "d89e88183cce1ff24dca9333c09fa11597a45c7a", "max_stars_repo_licenses": ["MI... |
import numpy as np
import albumentations as alb
from tensorflow.keras.applications.resnet50 import preprocess_input
from tensorflow.keras.layers import *
from tensorflow.keras.applications import ResNet50
from tensorflow.keras.models import load_model, Sequential
class Image:
def __init__(self, image, ... | {"hexsha": "b3a21ff7cdae422e6fbf8afde31cb819d677836b", "size": 1460, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/process.py", "max_stars_repo_name": "JONNY-ME/Mask-Detection", "max_stars_repo_head_hexsha": "3e94cd468d95343bd8a2e4ab576bc5e7df949cff", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Tue 12 Nov 09:25:56 2013
"""Runs quality tests on video codecs supported
"""
import os
import numpy
import nose
import nose.tools
from . import test_utils
from .utils import color_distortion, frameskip_detection, quality_degr... | {"hexsha": "f6e691139b5014bfa368007c51417c3c0d21a7d8", "size": 7693, "ext": "py", "lang": "Python", "max_stars_repo_path": "bob/io/video/test_codec.py", "max_stars_repo_name": "bioidiap/bob.io.video", "max_stars_repo_head_hexsha": "4aaf0b2197200d7e31ef1d5d2be341ea52f37c5e", "max_stars_repo_licenses": ["BSD-3-Clause"], ... |
[STATEMENT]
lemma (in category) cat_cf_id_is_functor: "cf_id \<CC> : \<CC> \<mapsto>\<mapsto>\<^sub>C\<^bsub>\<alpha>\<^esub> \<CC>"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. dghm_id \<CC> : \<CC> \<mapsto>\<mapsto>\<^sub>C\<^bsub>\<alpha>\<^esub> \<CC>
[PROOF STEP]
proof(rule is_functorI, unfold dghm_id_compon... | {"llama_tokens": 1804, "file": "CZH_Elementary_Categories_czh_ecategories_CZH_ECAT_Functor", "length": 8} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.