text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
[STATEMENT] lemma poly_rel_coeffs[transfer_rule]: "(poly_rel ===> list_all2 R) (\<lambda> x. x) coeffs" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (poly_rel ===> list_all2 R) (\<lambda>x. x) coeffs [PROOF STEP] unfolding rel_fun_def poly_rel_def [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<forall>x y. lis...
{"llama_tokens": 178, "file": "Berlekamp_Zassenhaus_Polynomial_Record_Based", "length": 2}
"""Test FEI SEM image plugin functionality. FEI TIFFs contain metadata as ASCII plaintext at the end of the file. """ from __future__ import unicode_literals import pytest import numpy as np import imageio def test_fei_file_reading(test_images): fei_filename = test_images / "fei-sem-rbc.tif" reader = image...
{"hexsha": "28f83420461f2c001a21515ea367cea8baac80b0", "size": 1199, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_fei_tiff.py", "max_stars_repo_name": "richardsheridan/imageio", "max_stars_repo_head_hexsha": "f80f068329123fc3c164c522391969ac8eeb0dd4", "max_stars_repo_licenses": ["BSD-2-Clause"], "m...
import torch import numpy as np from torch.autograd import Variable from torch.utils.data import DataLoader, Dataset, Sampler, dataset import logging import json import shutil import models.deepar as net from preprocess.hierarchical import TreeNodes import matplotlib.pyplot as plt from matplotlib.colors import LogNor...
{"hexsha": "75c33af8f27f613a5e1d71d6038f5a075439bedf", "size": 22409, "ext": "py", "lang": "Python", "max_stars_repo_path": "DYCHEM/preprocess/utils.py", "max_stars_repo_name": "aaronhan223/htsf", "max_stars_repo_head_hexsha": "cfda92e63bcf9743e25d1784c32363ab50d573bb", "max_stars_repo_licenses": ["BSD-3-Clause"], "max...
[STATEMENT] lemma length_lesss_le': assumes "i < length xs" "linorder_on A R" "set xs \<subseteq> A" shows "length (lesss R (insort_wrt R xs ! i) xs) \<le> i" [PROOF STATE] proof (prove) goal (1 subgoal): 1. length (lesss R (insort_wrt R xs ! i) xs) \<le> i [PROOF STEP] proof - [PROOF STATE] proof (state) goal (...
{"llama_tokens": 1725, "file": "Quick_Sort_Cost_Randomised_Quick_Sort", "length": 20}
\documentclass[a4paper,11pt, oneside]{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{float} \usepackage{wrapfig} \usepackage{setspace} \usepackage{geometry} \usepackage[hidelinks]{hyperref} \usepackage{multicol} \usepackage{etoolbox} \usepackage{...
{"hexsha": "7eac06fa11c8e68667b25f2492c22be4541b55bc", "size": 7890, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/report.tex", "max_stars_repo_name": "quentin-tardivon/hackoeur-android", "max_stars_repo_head_hexsha": "eb71cfece8dd9144a669f9b4cb84ab60752e3970", "max_stars_repo_licenses": ["MIT"], "max_stars_...
#!/usr/bin/env python2 #encoding: UTF-8 import numpy # To change this license header, choose License Headers in Project Properties. # To change this template file, choose Tools | Templates # and open the template in the editor. # The Jensen–Shannon divergence (JSD) M + 1 ( A ) × M + 1 ( A ) → [ 0 , ∞ ) {\displaysty...
{"hexsha": "edb63d46c8a0022ce5a4ee802625f10cb0f5ae12", "size": 2626, "ext": "py", "lang": "Python", "max_stars_repo_path": "measures.py", "max_stars_repo_name": "svetlanama/snowball", "max_stars_repo_head_hexsha": "a41865a866dae124b4a22134f091a7d09bd0896e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "...
import streamlit as st import pandas as pd import numpy as np from mlxtend.preprocessing import TransactionEncoder from mlxtend.frequent_patterns import apriori, association_rules import joblib #return original dataset def dataset(): groceries_data = pd.read_csv(r"https://raw.githubusercontent.com/Evan-Le...
{"hexsha": "3d672c4739a13d165dc672a67f41933843f96ab2", "size": 4093, "ext": "py", "lang": "Python", "max_stars_repo_path": "app_pages/model.py", "max_stars_repo_name": "Evan-Lehmann/ml-association-rule", "max_stars_repo_head_hexsha": "769507b20639e667b3f81c9ac10ce5a57955bbb7", "max_stars_repo_licenses": ["MIT"], "max_s...
import numpy as np def AND1(x1, x2): w1, w2, theta = 0.5, 0.5, 0.7 temp = x1 * w1 + x2 * w2 if temp <= theta: return 0 elif temp > theta: return 1 # AND function that implements bias and weight def AND2(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.7 ...
{"hexsha": "c06b8a8050b896cbdcbdb4ba2cdb6a615d006fb1", "size": 407, "ext": "py", "lang": "Python", "max_stars_repo_path": "prac/ch1/and_gate.py", "max_stars_repo_name": "soyeonjangg/deep-learning-from-scratch", "max_stars_repo_head_hexsha": "47abad79d13c28ffb8560f9c2fdb82b643816445", "max_stars_repo_licenses": ["MIT"],...
# This file is a part of Julia. License is MIT: http://julialang.org/license using Base.Test # Check that the fallback test set throws immediately @test 1 == 2
{"hexsha": "0e53cf236c61db248154f785c8e814ec599d4965", "size": 161, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/test_exec.jl", "max_stars_repo_name": "spencerlyon2/julia", "max_stars_repo_head_hexsha": "ac318e6364a927f49d407283a5efcb664a4b4fd3", "max_stars_repo_licenses": ["Zlib"], "max_stars_count": nul...
import astropy.io.fits as fits from astropy.nddata import VarianceUncertainty from astropy.units import Unit from astropy.wcs import WCS from specutils.io.registers import data_loader from specutils import Spectrum1D, SpectrumList def identify_2dfgrs(origin, *args, **kwargs): """ Identify if the current file ...
{"hexsha": "459ead860cdac07d05a5a0af860cb3f3dca410b4", "size": 2936, "ext": "py", "lang": "Python", "max_stars_repo_path": "specutils/io/default_loaders/twodfgrs_reader.py", "max_stars_repo_name": "chris-simpson/specutils", "max_stars_repo_head_hexsha": "9ce88d6be700a06e888d9d0cdd04c0afc2ae85f8", "max_stars_repo_licens...
library(data.table) library(ggplot2) library(here) library(boot) # alternate to verify long-hand calcs data.dir <- paste0(here::here(), "/datasets/") # gamma example my.sample <- rgamma(16, 1, 1/2) N <- 10e5 my.boot <- numeric(N) for(i in 1:N) { x <- sample(x = my.sample, size = length(my.sample), replace = T) ...
{"hexsha": "75c5dcd517f7a9b283bdd1309b63b2ec4e9b8ed5", "size": 7299, "ext": "r", "lang": "R", "max_stars_repo_path": "Mathematical Statistics/05_conf_int_bootstrap.r", "max_stars_repo_name": "bmoretz/Statistical-Computing", "max_stars_repo_head_hexsha": "606e6bb222013c38867c1aee7e79fae762e7a445", "max_stars_repo_licens...
import os import torch import numpy as np from torchvision import transforms from PIL import Image from evaluate import vis_parsing_maps if __name__ == "__main__": in_dir_path = '/home/jihyun/workspace/face_parsing/dataset/CelebAMask-HQ/eval-img' gt_dir_path = '/home/jihyun/workspace/face_parsing/dataset...
{"hexsha": "6b4095cde07fb20e94d8e234c3d3af67da217428", "size": 1040, "ext": "py", "lang": "Python", "max_stars_repo_path": "visualise_ground_truth.py", "max_stars_repo_name": "jyunlee/face-parsing.PyTorch", "max_stars_repo_head_hexsha": "cafed8199228763464bc5fb075e64b17597c2bd0", "max_stars_repo_licenses": ["MIT"], "ma...
From mathcomp Require Import ssreflect. Require Import set_notations. Set Implicit Arguments. Unset Strict Implicit. Import Prenex Implicits. Require Import Coq.Sets.Image. (* R1 斎藤毅 集合と位相 ISBN 978-4-13-062958-4 *) (* R2 島内剛一 数学の基礎 *) (* R3 斎藤正彦 数学の基礎 ISBN 4-13-062909-3 *) Import SetNotations. (* R3 1.2.4 defin...
{"author": "seisyuu-hantatsushi", "repo": "coq_ssreflect_practice", "sha": "96e1d440c8c69673209ae0d86046b6b9305f8bab", "save_path": "github-repos/coq/seisyuu-hantatsushi-coq_ssreflect_practice", "path": "github-repos/coq/seisyuu-hantatsushi-coq_ssreflect_practice/coq_ssreflect_practice-96e1d440c8c69673209ae0d86046b6b93...
"""Import""" from flask import Flask, request, jsonify,json from flask_cors import CORS import numpy as np import json import os app = Flask(__name__) CORS(app) """Constants""" FRAMES = 16 BODY_PARTS = 17 N_SAMPLES = 100 GESTURES = {'loop', 'branch'} DIMS = 2 samples_dict = {} MODE = "DEV" # "DEV" or "PROD" DUMMY_DA...
{"hexsha": "d25d886278a4ec1e685501e0a40be88e114411b0", "size": 3235, "ext": "py", "lang": "Python", "max_stars_repo_path": "app.py", "max_stars_repo_name": "wai-ad-astra/dance-convolution-backend", "max_stars_repo_head_hexsha": "635943085bb49a157a8a0f0150b858db9d47c1c5", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...
{"hexsha": "8d1ccad8939a603e324703f9529f015dcccfd490", "size": 15717, "ext": "cc", "lang": "C++", "max_stars_repo_path": "src/vw/tools/colormap.cc", "max_stars_repo_name": "maxsu/visionworkbench", "max_stars_repo_head_hexsha": "34eb3009152d3696471056e65b313d964e658ee8", "max_stars_repo_licenses": ["Apache-2.0"], "max_s...
{-# OPTIONS --without-K --rewriting #-} {- favonia: On 2017/03/23, after I added back Mayer-Vietoris, it seems difficult to type check everything in one round on travis, so parts of index.agda are moved here. favonia: On 2017/05/08, I further partition the results into multiple independent index[n].agda...
{"hexsha": "812141184306c70ee391021ce876391f6a6f9943", "size": 536, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "theorems/index2stage2.agda", "max_stars_repo_name": "timjb/HoTT-Agda", "max_stars_repo_head_hexsha": "66f800adef943afdf08c17b8ecfba67340fead5e", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ # Written by Bastian Schnell <bastian.schnell@idiap.ch> # """Module description: Create world lf0 and vuv feature labels for .wav files. """ # System imports. import argparse import glob import logg...
{"hexsha": "6f2c649e245868cfa4e25a904c241e1c1262ae52", "size": 17271, "ext": "py", "lang": "Python", "max_stars_repo_path": "idiaptts/src/data_preparation/world/LF0LabelGen.py", "max_stars_repo_name": "idiap/IdiapTTS", "max_stars_repo_head_hexsha": "60413d6847508e269d44aa41885e668db7dfd440", "max_stars_repo_licenses": ...
% RES = reconWpyr(PYR, INDICES, FILT, EDGES, LEVS, BANDS) % % Reconstruct image from its separable orthonormal QMF/wavelet pyramid % representation, as created by buildWpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each sub...
{"author": "jbhuang0604", "repo": "SelfExSR", "sha": "8f6dd8c1d20cb7e8792a7177b4f6fd677633f598", "save_path": "github-repos/MATLAB/jbhuang0604-SelfExSR", "path": "github-repos/MATLAB/jbhuang0604-SelfExSR/SelfExSR-8f6dd8c1d20cb7e8792a7177b4f6fd677633f598/quant_eval/ifcvec_release/matlabPyrTools/reconWpyr.m"}
// Copyright (C) 2017-2019 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #include <iostream> #include <unistd.h> #include <cxxopts.hpp> #include <xpcf/xpcf.h> #include "xpcf/threading/BaseTask...
{"hexsha": "bcca9741d3e95eecdaa68f8e898007c26f062280", "size": 6935, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "Mapping/SolARService_Mapping_Multi/tests/SolARServiceTest_Mapping_Multi_Viewer/SolARServiceTest_Mapping_Multi_Viewer.cpp", "max_stars_repo_name": "SolarFramework/Sample-Mapping", "max_stars_repo_hea...
#include <boost/metaparse/get_remaining.hpp>
{"hexsha": "b223906e7e0ad5f3a90d4c1c6967bcc458c7a7ad", "size": 45, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_metaparse_get_remaining.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["BSL-1...
using Test using RoundingIntegers @test isempty(detect_ambiguities(RoundingIntegers)) @testset "Basics" begin r16 = RInt16(3) @test isa(r16, RInt16) r = RInt(5) @test isa(r, RInt) x = Integer(r) @test x === 5 @test isa(convert(RUInt8, 2), RUInt8) @test -7 % RUInt8 === RUInt8(0xf9) @...
{"hexsha": "8e3fac13bf9a0530fdc4af5aebeee4d71a773e39", "size": 1849, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "JuliaMath/RoundingIntegers.jl", "max_stars_repo_head_hexsha": "f03336378aa91bde60079c86b44743dae703ea0e", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
from autode.smiles.smiles_parser import parse_smiles, divide_smiles from autode.smiles.smiles_parser import SmilesParser from autode.exceptions import InvalidSmilesString from autode.geom import calc_rmsd import pytest import numpy as np def test_parse_smiles(): parser = parse_smiles('CC') assert len(parser....
{"hexsha": "f338ac7090992c50be583b9713df15c2618e37ad", "size": 5794, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_smiles_parser.py", "max_stars_repo_name": "Crossfoot/autodE", "max_stars_repo_head_hexsha": "2c452c954a5268e6c9a80cd4efbbfe855e61f6bb", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
# Copyright 2021 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, ...
{"hexsha": "a7170fec99cd02c243029abc4c268f7d462620e3", "size": 14116, "ext": "py", "lang": "Python", "max_stars_repo_path": "vit_jax/input_pipeline.py", "max_stars_repo_name": "thudzj/vision_transformer", "max_stars_repo_head_hexsha": "14a5abd0040fa4080a9ddae824a0627ad6c9f45d", "max_stars_repo_licenses": ["Apache-2.0"]...
#!/bin/bash #= exec julia --color=yes --startup-file=no "${BASH_SOURCE[0]}" "$@" =# using Pkg #Pkg.activate(".") #include("srg/MockFBA.jl") import MockFBA using YAML function main(ARGS) #load the config file config=YAML.load_file(ARGS[1]) tracer=ARGS[2] group =ARGS[3] #how many partition we wa...
{"hexsha": "5241fd4d80ba553e154832f53df90283c4e034cc", "size": 626, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "MockFBA_PostProcess.jl", "max_stars_repo_name": "shadaba/MockFBA", "max_stars_repo_head_hexsha": "e1dc4bd5bca2dbc3bc2ad04694c5c11f3d1c8e0f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
""" Train convolutional network for sentiment analysis. Based on "Convolutional Neural Networks for Sentence Classification" by Yoon Kim http://arxiv.org/pdf/1408.5882v2.pdf For 'CNN-non-static' gets to 82.1% after 61 epochs with following settings: embedding_dim = 20 filter_sizes = (3, 4) num_filters = 3 dropout_prob...
{"hexsha": "038e7aac81157786236bccb9352813fd13c43a84", "size": 4707, "ext": "py", "lang": "Python", "max_stars_repo_path": "train2.py", "max_stars_repo_name": "tanmayb123/DeepSPADE", "max_stars_repo_head_hexsha": "3c62a0b588850b142b77dca6bb3f1d93f6c1e6b1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 21, "max...
[STATEMENT] lemma not_UNIV_le_Iic[simp]: "\<not> UNIV \<subseteq> {..\<le>\<^sub>ah}" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<not> UNIV \<subseteq> {..\<le>\<^sub>ah} [PROOF STEP] using gt_ex[of h] [PROOF STATE] proof (prove) using this: \<exists>y. h <\<^sub>a y goal (1 subgoal): 1. \<not> UNIV \<subsete...
{"llama_tokens": 175, "file": "Types_To_Sets_Extension_Examples_TTS_Foundations_Orders_Type_Simple_Orders", "length": 2}
from keras.models import load_model import pandas as pd import numpy as np def predict(path, X_to_predict): model = load_model(path) predictions = model.predict(X_to_predict, batch_size=1) Id = np.arange(10000,dtype = np.int32) Category = np.array([prediction.argmax() for prediction in predictions]) ...
{"hexsha": "1914dbfc15626e666247854d15fb81d76d3df808", "size": 584, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/models/predict_model.py", "max_stars_repo_name": "VictorCanLima/BakHugDatSciHack", "max_stars_repo_head_hexsha": "9dd14adf70ac843c152f9012a69a3c300895210f", "max_stars_repo_licenses": ["MIT"], ...
# script to call for easy end-use actuation import serial import CommunicationSerialBinary import numpy as np import tictoc import glob import time import SignalGeneration # global parameters ------------------------------------------------------------ # scan rate in Hz scan_rate = 500. # mean position, ie 2**(12-1) ...
{"hexsha": "8c1eaa50c76bb3d9f7d0d9b352507e61a9c490c2", "size": 4509, "ext": "py", "lang": "Python", "max_stars_repo_path": "ArduinoDueControl/ComputerSide/ScriptActuation.py", "max_stars_repo_name": "jerabaul29/ArduinoPaddleControl", "max_stars_repo_head_hexsha": "3ea8c7345591a0d08ab3bfbf090d74eb845e39e6", "max_stars_r...
*> \brief \b SLAQZ2 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download SLAQZ2 + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/slaqz2.f...
{"hexsha": "48b74432f50557b0c9f04730359584de5e78a0ea", "size": 9513, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "SRC/slaqz2.f", "max_stars_repo_name": "msk/lapack", "max_stars_repo_head_hexsha": "2dafa3d2756a7825c23a8c8456781561e36668ae", "max_stars_repo_licenses": ["BSD-3-Clause-Open-MPI"], "max_stars_count...
import caffe from test_runner import * import os import shutil import numpy as np # from typing import Dict, List, Tuple, Union class CaffeTestRunner(TestRunner): def __init__(self, case_name, targets=None, overwrite_configs: dict = None): super().__init__(case_name, targets, overwrite_configs) se...
{"hexsha": "43a502464bd23e6f1a53823442d9181c12ae9c27", "size": 2451, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/caffe_test_runner.py", "max_stars_repo_name": "kendryte/nncase", "max_stars_repo_head_hexsha": "42e77dc275d80a45ed0ae494f3cef819e8c701a3", "max_stars_repo_licenses": ["Apache-2.0"], "max_sta...
""" Dans_Diffraction Examples Calculate list of reflections """ import sys,os import numpy as np import matplotlib.pyplot as plt # Plotting cf = os.path.dirname(__file__) sys.path.insert(0,os.path.join(cf,'..')) import Dans_Diffraction as dif #f = cf+'/../Dans_Diffraction/Structures/Ca2RuO4.cif' f = di...
{"hexsha": "824965d040bf64a25c379206fb8dfce0ce88e4d0", "size": 926, "ext": "py", "lang": "Python", "max_stars_repo_path": "Examples/example_magnetic_structure.py", "max_stars_repo_name": "DanPorter/Dans_Diffaction", "max_stars_repo_head_hexsha": "74aea3d2b54d841271f22841f405a9a7c6fa1c81", "max_stars_repo_licenses": ["A...
using JuliaTutorial using Test @testset "JuliaTutorial.jl" begin # @test myaddition(1, 1) == 2 end
{"hexsha": "ecb2000d642079f6e2b70af6fb7d0f7b6bf27742", "size": 104, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "olivierlabayle/JuliaTutorial.jl", "max_stars_repo_head_hexsha": "21f56ad6d97555e891bc65db7c4f0363ca64d3bb", "max_stars_repo_licenses": ["MIT"], "max_stars_...
/* Internal header file for cminpack, by Frederic Devernay. */ #ifndef __CMINPACKP_H__ #define __CMINPACKP_H__ #ifndef __CMINPACK_H__ #error "cminpackP.h in an internal cminpack header, and must be included after all other headers (including cminpack.h)" #endif #if (defined (USE_CBLAS) || defined (USE_LAPACK)) && !de...
{"hexsha": "1b460ec8a245da1d3cb5b0f15bc82a234e8a4025", "size": 1816, "ext": "h", "lang": "C", "max_stars_repo_path": "SciPy/cminpack-master/cminpackP.h", "max_stars_repo_name": "ianormy/Pyto", "max_stars_repo_head_hexsha": "e69a9ab57d5ef86675041f9e1f4427e9b79bb8e7", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
import sympy from ueca.latex import translate_space_latex def test_translate_space_latex(): delta_lambda = sympy.Symbol("Delta lambda") assert sympy.latex(delta_lambda) == "Delta lambda" with translate_space_latex(): assert sympy.latex(delta_lambda) == r"\Delta \lambda"
{"hexsha": "b5adafde83b81b1b67720b6860d6540c14833b03", "size": 296, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_latex.py", "max_stars_repo_name": "A03ki/ueca", "max_stars_repo_head_hexsha": "19ddd65c50bba8152c11774e0a976712e53b2ed7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_s...
[STATEMENT] lemma \<omega>consistentStd1_implies_consistent: assumes "\<omega>consistentStd1" shows "consistent" [PROOF STATE] proof (prove) goal (1 subgoal): 1. consistent [PROOF STEP] unfolding consistent_def [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<not> prv fls [PROOF STEP] proof safe [PROOF STATE] p...
{"llama_tokens": 1635, "file": "Syntax_Independent_Logic_Deduction", "length": 19}
#from GAN_ACC.CGAN import initialize_weights import os import sys import time import glob import numpy as np import torch import utils import logging import argparse import torch.nn as nn import torch.utils import torch.nn.functional as F import torchvision.datasets as dset import torch.backends.cudnn as cudnn import C...
{"hexsha": "0b187375b2f9e728dbd4e969862e3e61051c2083", "size": 16271, "ext": "py", "lang": "Python", "max_stars_repo_path": "full_train.py", "max_stars_repo_name": "AyufhSri/GANAccImprover", "max_stars_repo_head_hexsha": "eff3a944bd6e5d9761ec815f28c0d32c87096308", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl Extends the theory on functors, applicatives and monads. -/ universes u v w variables {α β γ : Type u} notation a ` $< `:1 f:1 := f a section functor variables {f : ...
{"author": "digama0", "repo": "mathlib-ITP2019", "sha": "5cbd0362e04e671ef5db1284870592af6950197c", "save_path": "github-repos/lean/digama0-mathlib-ITP2019", "path": "github-repos/lean/digama0-mathlib-ITP2019/mathlib-ITP2019-5cbd0362e04e671ef5db1284870592af6950197c/src/category/basic.lean"}
# Copyright 2022 NVIDIA Corporation # # 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 wr...
{"hexsha": "9e9c015c4c0c0c8bf4a981c616f6b5d5d459d95c", "size": 4391, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/integration/test_take.py", "max_stars_repo_name": "fduguet-nv/cunumeric", "max_stars_repo_head_hexsha": "dd701af4e7061ff30975dd97fe6a61810389bc6c", "max_stars_repo_licenses": ["Apache-2.0"],...
# Quantum Ciruits with qiskit from qiskit import QuantumCircuit, Aer, execute # Visualization tools from qiskit.visualization import plot_histogram from matplotlib import pyplot as plt # Graph tools with networkX import networkx as nx # Math from numpy import pi from random import random from scipy.optimize import m...
{"hexsha": "e9249533f57e42305b4803a10efdc40b5a6e9d28", "size": 3916, "ext": "py", "lang": "Python", "max_stars_repo_path": "VQE_QAOA/vqe_qaoa.py", "max_stars_repo_name": "LeoDK/Quantum-Computing-Lab", "max_stars_repo_head_hexsha": "82ee41888c41af0e335a6a29e8ea7f8cbe249fdc", "max_stars_repo_licenses": ["MIT"], "max_star...
module Main import TypeTrans.AST main : IO () main = print "todo"
{"hexsha": "9b48c077f3ad72c66f23d147d0cd0345b76a9b91", "size": 67, "ext": "idr", "lang": "Idris", "max_stars_repo_path": "src/Main.idr", "max_stars_repo_name": "RossMeikleham/MSci-Project", "max_stars_repo_head_hexsha": "4e1e3e08bf8440add18b4a87b96ca42920336e14", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
import numpy as np import glob import cv2 import pandas as pd import tensorflow as tf from sklearn.model_selection import train_test_split imgaes_namonia_effected=[] images_namonialabels_effected=[] images_namonia_noteffected=[] images_namonialabel_notefffected=[] IMG_DIMS=(125,125) files_namonia_ef...
{"hexsha": "c3b4a1438de48efe33811493b7c43e39d8e213f7", "size": 3301, "ext": "py", "lang": "Python", "max_stars_repo_path": "Namonia Model.py", "max_stars_repo_name": "AbdullahKhan47/Detection-of-Pneumonia-Through-Chest-X-Ray-Image-Using-Deep-Learning", "max_stars_repo_head_hexsha": "075a644b612b3af97b24eb373364de9fe6bd...
# Copyright (c) 2021: Zhiyuan Nan (namjw@hanyang.ac.kr). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import torch as T import numpy as np from torch.utils.tensorboard import SummaryWriter import sys import os sys.path.append(os.path.dirname(os....
{"hexsha": "7a7d33f8230886781329aa1cacd88a11543d074e", "size": 826, "ext": "py", "lang": "Python", "max_stars_repo_path": "tutorials/TQC/main.py", "max_stars_repo_name": "namjiwon1023/Code_With_RL", "max_stars_repo_head_hexsha": "37beec975b1685e9f6cf991abed491b854b78173", "max_stars_repo_licenses": ["MIT"], "max_stars_...
SUBROUTINE MTXFLIP33(AMAT,BMAT) IMPLICIT REAL*8(A-H,O-Z) C C TRANSPOSE THE 3x3 MATRIX AMAT TO PRODUCE THE 3x3 MATRIX BMAT. C C BMAT(I,J) = AMAT(J,I) C C EXAMPLES OF VALID CALLS: C CALL MTXFLIP33(A,B) C CALL MTXFLIP33(A,A) C C VAR DIM TYPE I/O DE...
{"hexsha": "511415fd84564717479c6f859af2d43ca7d6b2b0", "size": 831, "ext": "for", "lang": "FORTRAN", "max_stars_repo_path": "gsc-13083/mtxflip33.for", "max_stars_repo_name": "SteveDoyle2/nasa-cosmic", "max_stars_repo_head_hexsha": "c8015a9851a04f0483b978d92c2cbaee31c81fe3", "max_stars_repo_licenses": ["BSD-Source-Code"...
import pandas as pd from shapely.geometry import Point import geopandas as gpd from geopandas import GeoDataFrame import matplotlib.pyplot as plt import numpy as np def findAirportIndex(airportName, airportNameReader): for row in zip(airportNameReader['Airport'], airportNameReader['Name']): if row[1] == ...
{"hexsha": "45c4ccaf132aec8a314fb53466de51790d09ca57", "size": 4979, "ext": "py", "lang": "Python", "max_stars_repo_path": "heatmap_demo/main.py", "max_stars_repo_name": "ArashAhmadian/AirTrafficSTGCN", "max_stars_repo_head_hexsha": "ae705d14f6aace31633bd26cfd69b227c6596fe0", "max_stars_repo_licenses": ["MIT"], "max_st...
#autor: Joao Sollari Lopes #local: INE, Lisboa #Rversion: 3.2.3 #criado: 10.07.2017 #modificado: 06.12.2019 set.seed(12345) n <- 15 x <- runif(n) k0 <- 1.5 k1 <- 2 y <- k0 + k1*x + rnorm(n,sd=0.1) mod1 <- lm(y~1) mod2 <- lm(y~x) mod3 <- lm(y~poly(x,5)) fnam <- "../images/concept_2.tiff" tiff(file=fna...
{"hexsha": "1b89eedf1be012f601ffdd87998448107e2d0037", "size": 802, "ext": "r", "lang": "R", "max_stars_repo_path": "bin/pic_overfit.r", "max_stars_repo_name": "jsollari/DAA2019", "max_stars_repo_head_hexsha": "6b4e0764f6570bef4652a73a773f3b9ee8af92da", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_...
import pupil_recording_interface as pri import cv2 import numpy as np import random from pupil_detectors import Detector2D, Detector3D import os import pandas as pd from tqdm import tqdm from pupil_recording_interface.externals.circle_detector import find_pupil_circle_marker import matplotlib.pyplot as plt from pathlib...
{"hexsha": "8c32d7dfa353990f16d55dcb43f6c42b89f4981a", "size": 27165, "ext": "py", "lang": "Python", "max_stars_repo_path": "demos/test_data_quality.py", "max_stars_repo_name": "vedb/data_analysis", "max_stars_repo_head_hexsha": "b46f58ba424680353d3abd0014a7d0a339bf6e6c", "max_stars_repo_licenses": ["MIT"], "max_stars_...
!>------------------------------------------------------------ !! Test to confirm the geographic interpolation routines work !! Hasn't been updated in a while but should still work !! Requires two input files with XLAT,XLONG 2D variables !! !! Writes 5 output files !! !! @author !! Ethan Gutmann (gutmann@ucar.edu) !...
{"hexsha": "b316e4d6fc08575c9cb68e3a4509f5653ef78866", "size": 2297, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/tests/test_geo.f90", "max_stars_repo_name": "d-reynolds/HICAR", "max_stars_repo_head_hexsha": "72af4e49ffd75268f63f30d7a441c628511a661f", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
#ifndef UTILITIES_H #define UTILITIES_H #include <algorithm> #include <boost/endian/conversion.hpp> #include <charconv> #include <chrono> #include <cstring> #include <ctime> #include <iomanip> #include <iostream> #include <random> #include <string> #include <string_view> #include <type_traits> #include <vector> names...
{"hexsha": "b99d68614e26faf6dc3b2e667eaf1c729fcad74b", "size": 4175, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "OpenTorrent/details/utils/utility.hpp", "max_stars_repo_name": "s3ponia/CockTorrent", "max_stars_repo_head_hexsha": "a6352483e4137852f6812215d91267b9f072809f", "max_stars_repo_licenses": ["MIT"], "m...
import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F from torch.utils.data import DataLoader from torch import optim import torchvision from torchvision.datasets import MNIST, CIFAR10, CIFAR100, SVHN from torchvision.transforms import (Compose, RandomCrop, RandomHorizo...
{"hexsha": "312f99c0147e882ce28d1120a9ca339f3674dc0e", "size": 3984, "ext": "py", "lang": "Python", "max_stars_repo_path": "datasets/load_dataset.py", "max_stars_repo_name": "yyht/ClusTR-Clustering-Training-For-Robustness", "max_stars_repo_head_hexsha": "805fa6b4e3d7c38874cf6eb0cc7e7f7e193e0610", "max_stars_repo_licens...
function p = prime_ge ( n ) %*****************************************************************************80 % %% PRIME_GE returns the smallest prime greater than or equal to N. % % Discussion: % % The MATLAB version of this program is made much simpler % because of the availability of the IS_PRIME logical func...
{"author": "johannesgerer", "repo": "jburkardt-m", "sha": "1726deb4a34dd08a49c26359d44ef47253f006c1", "save_path": "github-repos/MATLAB/johannesgerer-jburkardt-m", "path": "github-repos/MATLAB/johannesgerer-jburkardt-m/jburkardt-m-1726deb4a34dd08a49c26359d44ef47253f006c1/subpak/prime_ge.m"}
[STATEMENT] lemma map_of_Cons1 [simp]: "map_of ((aa,bb)#ps) aa = Some bb" [PROOF STATE] proof (prove) goal (1 subgoal): 1. map_of ((aa, bb) # ps) aa = Some bb [PROOF STEP] apply (simp (no_asm)) [PROOF STATE] proof (prove) goal: No subgoals! [PROOF STEP] done
{"llama_tokens": 123, "file": null, "length": 2}
[STATEMENT] lemma mon_e_simps [simp]: "mon_e fg (LBase a) = {}" "mon_e fg (LCall p) = mon fg p" "mon_e fg (LRet) = {}" "mon_e fg (LSpawn p) = {}" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (mon_e fg (LBase a) = {} &&& mon_e fg (LCall p) = mon fg p) &&& mon_e fg LRet = {} &&& mon_e fg (LSpawn p) = {} [PRO...
{"llama_tokens": 215, "file": "Program-Conflict-Analysis_Semantics", "length": 1}
# import os import os import tempfile import numpy as np import tensorflow as tf from tvm.contrib.download import download import arachne.runtime def test_tflite_runtime(): with tempfile.TemporaryDirectory() as tmp_dir: os.chdir(tmp_dir) url = "https://arachne-public-pkgs.s3.ap-northeast-1.amazo...
{"hexsha": "be66f4e3e40a1af127cc803acd1e4c3306ad0432", "size": 1460, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/runtime/test_tflite.py", "max_stars_repo_name": "fixstars/arachne", "max_stars_repo_head_hexsha": "03c00fc5105991d0d706b935d77e6f9255bae9e7", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 11 14:32:17 2019 @author: adna.dumitrescu Script opens abf file with current clamp data aquired during inhibitory opsin stimulation. How the script works: 1. Asks user to provide a file path for the abf file to be analysed 2. Asks user for meta-...
{"hexsha": "365e6e8de86099b5565c1af2e6e278d20d4f300c", "size": 24518, "ext": "py", "lang": "Python", "max_stars_repo_path": "Inhibitory_Opsin_Current_Clamp.py", "max_stars_repo_name": "elifesciences-publications/Antinucci_Dumitrescu_et_al_2020", "max_stars_repo_head_hexsha": "b2cf5596536aa423058abeda6f58096b5c58180d", ...
# This is the code we will run on the Raspberry Pi # import helper classes for acquiring data from the Micro:bit import sys sys.path.append('..') import serialio import os import argparse import numpy as np import pickle from dask.distributed import Client, Queue import tensorflow as tf import tensorflow.keras as k...
{"hexsha": "2c8e59f152e15c9ce2a8c41cb50f3d4ae49d9c6e", "size": 6324, "ext": "py", "lang": "Python", "max_stars_repo_path": "day4/rpi/incremental_train.py", "max_stars_repo_name": "liang-faan/SmartIOT-Diec", "max_stars_repo_head_hexsha": "8336a4b558295295f10a82cf350d8b7ff3fb9f5c", "max_stars_repo_licenses": ["MIT"], "ma...
# a simple parser for python. use get_number() and get_word() to read def parser(): while 1: data = list(input().split(' ')) for number in data: if len(number) > 0: yield(number) input_parser = parser() def get_word(): global input_parser return next(input_pa...
{"hexsha": "3de8c09faeccbb1c99bacba423f3d88348176250", "size": 1475, "ext": "py", "lang": "Python", "max_stars_repo_path": "magical-stones/magical-stones-i.py", "max_stars_repo_name": "GambuzX/IEEEXtreme2020", "max_stars_repo_head_hexsha": "a7b224f8129aa97a0f1e696279d7d6b84ca44600", "max_stars_repo_licenses": ["MIT"], ...
# MPAS dataset from __future__ import absolute_import, division, print_function import os import numpy as np import torch from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils class MPASDataset(Dataset): def __init__(self, root, train=True, num_run=0, data_len=0,...
{"hexsha": "dd8b85eedddf31927d3d4c5df578e07757b69691", "size": 3011, "ext": "py", "lang": "Python", "max_stars_repo_path": "model/mpas.py", "max_stars_repo_name": "trainsn/GNN-Surrogate", "max_stars_repo_head_hexsha": "9e953884d888edb13d0981639206f69398ae0a8c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, ...
#%% # Import Packages: import numpy as np import pandas as pd import yfinance as yf from hmmlearn import hmm from matplotlib import pyplot as plt from sklearn.svm import OneClassSVM from sklearn.preprocessing import PolynomialFeatures #%% # SPY also captures volatility well. BBUS too, but there is not enough data. M...
{"hexsha": "07febf5c2680d4277c5ce0798baf283009ed75c2", "size": 4957, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/assignment01_code_td.py", "max_stars_repo_name": "seanahmad/Regime-Detection-ML", "max_stars_repo_head_hexsha": "b273d0c308316ce71e79c2d08beaf030fe0a556b", "max_stars_repo_licenses": ["MIT"], ...
<a href="https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/master/tutorials/W1D5_DimensionalityReduction/student/W1D5_Tutorial2.ipynb" target="_parent"></a> # Neuromatch Academy: Week 1, Day 5, Tutorial 2 # Dimensionality Reduction: Principal component analysis __Content creators:__ Alex ...
{"hexsha": "a614f0adcf8b4be1906e09469870f7af35619e02", "size": 234453, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "tutorials/W1D5_DimensionalityReduction/student/W1D5_Tutorial2.ipynb", "max_stars_repo_name": "simpleParadox/course-content", "max_stars_repo_head_hexsha": "84672ceae4b7674416df4b1c1...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Ed Mountjoy # # Requires scipy and pandas ''' # Set SPARK_HOME and PYTHONPATH to use 2.4.0 export PYSPARK_SUBMIT_ARGS="--driver-memory 8g pyspark-shell" export SPARK_HOME=/Users/em21/software/spark-2.4.0-bin-hadoop2.7 export PYTHONPATH=$SPARK_HOME/python:$SPARK_HOME/py...
{"hexsha": "cc97aa6d17ef4aa462556816db1338c744d1784f", "size": 7801, "ext": "py", "lang": "Python", "max_stars_repo_path": "ingest/finngen/scripts/process.py", "max_stars_repo_name": "thehyve/genetics-sumstat-data", "max_stars_repo_head_hexsha": "06cc4d47e3033f0cf2a703791e0a888c45cfdf4d", "max_stars_repo_licenses": ["A...
import math import os import sys import networkx as nx import numpy as np import pandas as pd import scanpy as sc import scanpy.external as sce import anndata from scipy import stats def read_file(filename, transpose=False): adata = None if os.path.exists(filename): if os.path.isdir(filename): ...
{"hexsha": "e5360fc9b2900333fb2d01e05eac9f6ff042096e", "size": 11892, "ext": "py", "lang": "Python", "max_stars_repo_path": "capital/tl/_preprocess.py", "max_stars_repo_name": "ykat0/capital", "max_stars_repo_head_hexsha": "7e202045057633e5e57029967881db37f907a220", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta...
""" generate_population(icn, pop_size Generate a pôpulation of weigths (individuals) for the genetic algorithm weigthing `icn`. """ function generate_population(icn, pop_size) population = Vector{BitVector}() foreach(_ -> push!(population, falses(nbits(icn))), 1:pop_size) return population end """ ...
{"hexsha": "2fab3d1a902b9c3a6bf8dc5a272e8581cba7fe59", "size": 2878, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/genetic.jl", "max_stars_repo_name": "JuliaConstraints/CompositionalNetworks.jl", "max_stars_repo_head_hexsha": "e33aadd81d51f842368e8271262ce189ee634f96", "max_stars_repo_licenses": ["MIT"], "m...
#include <iostream> #include <vector> #include <thread> #include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/search/search.h> #include <pcl/search/kdtree.h> #include <pcl/features/normal_3d.h> #include <pcl/visualization/cloud_viewer.h> #include <pcl/filters/passthrough.h> #include <pcl/segmentation/re...
{"hexsha": "3c031a3c0a5d876bdc2ff55a476f83986a85e7d0", "size": 12526, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/plane_seg_clickpoint.cpp", "max_stars_repo_name": "hjxwhy/tools-for-pointcloud", "max_stars_repo_head_hexsha": "5cdc6d5b7a01fd9652fe2ec115744bf63b141769", "max_stars_repo_licenses": ["MIT"], "m...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Tests of SPICE Kernel module. """ import pytest import numpy as np from scipy.interpolate import interp1d import astropy.coordinates as coord import astropy.units as u from astropy.time import Time from astropy.io import fits import h5py from tempfile import TemporaryD...
{"hexsha": "3e7508e94f9a73005a3690e0b712cfd5309834ba", "size": 8551, "ext": "py", "lang": "Python", "max_stars_repo_path": "photometry/tests/test_spice.py", "max_stars_repo_name": "aditya-sengupta/tesscomp-prototyping", "max_stars_repo_head_hexsha": "93da86cd139c240ba5f59f187bcbc47e899c3519", "max_stars_repo_licenses":...
""" Script that evaluates the events.csv and the admissions.csv files: Basically performs the data cleaning steps proposed by: https://github.com/YerevaNN/mimic3-benchmarks """ import os import pandas as pd import numpy as np from shutil import copyfile MIMIC_DIR = '/nfs/research1/birney/projects/ehr/mimic/mimic_ra...
{"hexsha": "ff97cb1fa2072137f0846eb8ceb84527c6e7b988", "size": 10489, "ext": "py", "lang": "Python", "max_stars_repo_path": "preprocessing/data_sanity.py", "max_stars_repo_name": "thbuerg/simplimic", "max_stars_repo_head_hexsha": "5d4bcff89966c19a03b33cf1921c571e60ad4fcf", "max_stars_repo_licenses": ["MIT"], "max_stars...
expert = haskey(ENV, "QUEST_EXPERT") && ENV["QUEST_EXPERT"] == "1" ? true : false # Execute commands to build QuEST function _auxBuild(makePrecision::Int,precision::String,isWindows::Bool)::Nothing mkdir("build"*precision) cd("build"*precision) isWindows ? wait(run(`cmake -DPRECISION=$makePrecision .. -G...
{"hexsha": "b1ee887321fc7fae5b9b47b6a83426746f37da53", "size": 902, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "deps/build.jl", "max_stars_repo_name": "alejandrovgonzalez/QuEST.jl", "max_stars_repo_head_hexsha": "4832ebfc353620e59e84158734a2fa1fd700ac78", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
import os import numpy as np import camb from matplotlib import pyplot as plt if not os.path.exists("COM_PowerSpect_CMB-base-plikHM-TTTEEE-lowl-lowE-lensing-minimum-theory_R3.01.txt"): import urllib.request as request request.urlretrieve( "http://pla.esac.esa.int/pla/aio/product-action?COSMOLOGY.FILE_I...
{"hexsha": "a6c7d9ad1350c3972a62b18a86c147fe1bf63162", "size": 2144, "ext": "py", "lang": "Python", "max_stars_repo_path": "cosmos_hw/camb_power_spec.py", "max_stars_repo_name": "jibanCat/phys214_obsastro", "max_stars_repo_head_hexsha": "049c35b089b35108b65ec106e05e599fa529dfb0", "max_stars_repo_licenses": ["MIT"], "ma...
""" Copyright (C) 2019-2021, Monash University, Geoscience Australia Copyright (C) 2018, Stuart Walsh Bluecap is released under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licen...
{"hexsha": "e891e653dbc60feda9602c76074db8458398b91f", "size": 6576, "ext": "py", "lang": "Python", "max_stars_repo_path": "Functions/Royalties.py", "max_stars_repo_name": "RichardScottOZ/bluecap", "max_stars_repo_head_hexsha": "9d06de2fbdb60080d448287099d8b5621fb642d2", "max_stars_repo_licenses": ["Apache-2.0"], "max_...
""" vamos a ver """ import dash from dash.dependencies import Input, Output, State, Event import dash_core_components as dcc import dash_html_components as html import dash_table_experiments as dt import plotly from plotly import graph_objs as go from plotly.graph_objs import * from flask import Flask import pandas as ...
{"hexsha": "2e61c33e893c9754b3931014c35f6997f1c15758", "size": 12201, "ext": "py", "lang": "Python", "max_stars_repo_path": "fp2.py", "max_stars_repo_name": "apolmig/education_labour", "max_stars_repo_head_hexsha": "b07fb73754fa36f23a7a4d2a50be77255a382091", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ...
[STATEMENT] theorem T5: "\<lfloor>(\<^bold>\<diamond>(\<^bold>\<exists>y. \<G> y)) \<^bold>\<rightarrow> \<^bold>\<box>(\<^bold>\<exists>y. \<G> y)\<rfloor>" \<comment>\<open>Obvious: If we can prove Theorem8, then we also have T5.\<close> [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lfloor>\<^bold>\<diamond>\<G...
{"llama_tokens": 2640, "file": "SimplifiedOntologicalArgument_KanckosLethenNo2Possibilist", "length": 20}
import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mdates from matplotlib.offsetbox import AnchoredText import cartopy.crs as ccrs import cartopy.feature as cfeature import seaborn as sns sns.set(style='ticks', context='paper', palette='colorblind') import cartopy.crs as ccrs import carto...
{"hexsha": "1b567a8398ecc1f521a5bbe2193b49315cf777d8", "size": 13555, "ext": "py", "lang": "Python", "max_stars_repo_path": "bgcArgoDMQC/plot/plot.py", "max_stars_repo_name": "ArgoCanada/BGC-QC", "max_stars_repo_head_hexsha": "c058f3e1a1992fc961ce2c4d5862d426725c1e43", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import numpy as np def image_to_tf_batch(img, num=1, normalize=True): normalizer = 255.0 if normalize else 1.0 return np.tile(np.expand_dims(np.transpose(img, [2, 0, 1]), 0), [num, 1, 1, 1]).astype(np.float32)/normalizer def tf_to_image(tensor, unnormalize=True): unnormalizer = 255.0 if unnormalize else...
{"hexsha": "54f3f3d4853f541bf85f2b5eb857c64c401eaf84", "size": 628, "ext": "py", "lang": "Python", "max_stars_repo_path": "external/netdef_models/netdef_slim/tensorflow/tools/__init__.py", "max_stars_repo_name": "zhuhu00/MOTSFusion_modify", "max_stars_repo_head_hexsha": "190224a7c3fbded69fedf9645a0ebbf08227fb6d", "max_...
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import plotly.express as px import plotly.graph_objects as go import pandas as pd import numpy as np from glitch_fit import asy_fit, he_amplitude, he_glitch external_stylesheets = ['https://...
{"hexsha": "831df74a04b174182098fddb10bb233f4f10b379", "size": 9660, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/glitch_verma_dashboard.py", "max_stars_repo_name": "alexlyttle/helium-glitch-fitter", "max_stars_repo_head_hexsha": "22575f0126e3c7c4e124a0acc740b8e71ce5294e", "max_stars_repo_licenses": ...
# -*- coding: utf-8 -*- """ Created on Fri Dec 30 10:36:12 2016 @author: HZJ """ __all__=[] import numpy as np import scipy.sparse as spr from scipy.sparse import linalg as sl import logger from .node import Node from .element import Beam,Membrane3,Membrane4 class Model: def __init__(self): self.__node...
{"hexsha": "db75ce5883b9da9da8ab9e3882d9fc0ab845ff5d", "size": 19145, "ext": "py", "lang": "Python", "max_stars_repo_path": "fe_model/__init__.py", "max_stars_repo_name": "zhuoju36/StructEngPy", "max_stars_repo_head_hexsha": "ec279271e3468a4a8418bf722b5ceee003abb37c", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
"""Wrapper for introducing irrelevant state variables.""" import gym import numpy as np from gym.spaces import Box from .mixins import IrrelevantRedundantMixin, RNGMixin from .utils import assert_flat_box_space class GaussianRandomWalks(IrrelevantRedundantMixin, RNGMixin, gym.ObservationWrapper): """Add gaussian...
{"hexsha": "de4b1759d39cea5da272eef72219ac9c0611264a", "size": 1726, "ext": "py", "lang": "Python", "max_stars_repo_path": "raylab/envs/wrappers/gaussian_random_walks.py", "max_stars_repo_name": "angelolovatto/raylab", "max_stars_repo_head_hexsha": "ebaea8df1a391fb844e75df62ccf1e2e07311d88", "max_stars_repo_licenses": ...
import numpy class Size: def __init__(self, value): self.value = numpy.int64(value) def to_b(self) -> int: raise NotImplementedError def __lt__(self, other): return self.to_b().__lt__(other.to_b()) def __le__(self, other): return self.to_b().__le__(other.to_b()) ...
{"hexsha": "6b578ea892020ffb627d212580a0c4acb4342496", "size": 1210, "ext": "py", "lang": "Python", "max_stars_repo_path": "chiplet/muse-v3/nnbaton/size.py", "max_stars_repo_name": "Glacier-program/pytorch", "max_stars_repo_head_hexsha": "208b3d1029b465da89e04a95a6c02d1c7fee559b", "max_stars_repo_licenses": ["Intel"], ...
"""Performance tests for janky 'database'""" import json import glob import time import faiss import numpy as np parse = [ "remove the roof on the house", "build a floor", "build a huge wall around the house", "build a huge roof on top of the house" ] db_size = 10000 n_dim = 768 for i in range(db_size...
{"hexsha": "c50f1842a780eaf5b69b5e49acb6f3205df26ea7", "size": 1592, "ext": "py", "lang": "Python", "max_stars_repo_path": "db/benchmark_db_perf.py", "max_stars_repo_name": "kayburns/craftassist", "max_stars_repo_head_hexsha": "07909493d320afc2c9ff428d0891bc3acd4dc68f", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
[STATEMENT] lemma success_freezeI [success_intros]: "success (freeze a) h" [PROOF STATE] proof (prove) goal (1 subgoal): 1. success (freeze a) h [PROOF STEP] by (auto intro: success_intros simp add: freeze_def)
{"llama_tokens": 85, "file": "Van_Emde_Boas_Trees_Imperative_HOL_Time_Array_Time", "length": 1}
import numba spec = [ ('x', numba.float64), ('y', numba.float64) ] @numba.jitclass(spec) class Point(object): def __init__(self, x, y): self.x = x self.y = y
{"hexsha": "edb28da7e59f1d1e1256565a7b4d9c87fdd0ba3f", "size": 189, "ext": "py", "lang": "Python", "max_stars_repo_path": "holey/point.py", "max_stars_repo_name": "pelson/holey", "max_stars_repo_head_hexsha": "a0d1441281651454a5fc0b6a7e19c636c495a3ef", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count": 1, ...
from copy import deepcopy from dataclasses import dataclass, field from random import shuffle from typing import Generator, List from paiargparse import pai_dataclass, pai_meta from tfaip.data.pipeline.definitions import PipelineMode import numpy as np import h5py from calamari_ocr.ocr.dataset.datareader.base import...
{"hexsha": "68da02afc7981b914f22e34f618be9a8d6b47df2", "size": 5031, "ext": "py", "lang": "Python", "max_stars_repo_path": "calamari_ocr/ocr/dataset/datareader/hdf5/reader.py", "max_stars_repo_name": "timothydereuse/calamari", "max_stars_repo_head_hexsha": "eba8e9c35d2c301319cc9cb15d25124460aee2db", "max_stars_repo_lic...
#ifndef GRAVITY_HPP # define GRAVITY_HPP #include <Eigen/Dense> #include <cmath> /** @brief Parameters for gravity model */ class GravBody { protected: double mu; /* (m3/s2) gravitational constant of planet */ double eq_radius; /* (m) mean equatorial radius of planet */ public: GravBody(const doub...
{"hexsha": "053148267a5ac44befadb679ee556a6d1b9152b2", "size": 1417, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/gravity.hpp", "max_stars_repo_name": "openlunar/nav", "max_stars_repo_head_hexsha": "37240000c542f4d42979a83ac5bebb3ab2c01fe4", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count": n...
SUBROUTINE FMAT(FMATRX, NREAL, TSCF, TDER, DELDIP, HEAT) IMPLICIT DOUBLE PRECISION (A-H,O-Z) INCLUDE 'SIZES' DIMENSION FMATRX(*), DELDIP(3,*) *********************************************************************** * * VALUE CALCULATES THE SECOND-ORDER OF THE ENERGY WITH * RESPECT TO THE ...
{"hexsha": "56f235cf730c80246ff6a4d0ddb9818244caf56d", "size": 13119, "ext": "for", "lang": "FORTRAN", "max_stars_repo_path": "1987_MOPAC4/fmat.for", "max_stars_repo_name": "openmopac/MOPAC-archive", "max_stars_repo_head_hexsha": "01510e44246de34a991529297a10bcf831336038", "max_stars_repo_licenses": ["BSD-3-Clause"], "...
from brightics.common.repr import BrtcReprBuilder from brightics.common.repr import strip_margin from brightics.common.repr import dict2MD, plt2MD, pandasDF2MD from brightics.common.utils import check_required_parameters from brightics.common.groupby import _function_by_group from brightics.function.utils import _model...
{"hexsha": "954325cb4aa8df1c279d631cc8e0a869f621d4af", "size": 4694, "ext": "py", "lang": "Python", "max_stars_repo_path": "function/python/brightics/function/timeseries/arima.py", "max_stars_repo_name": "GSByeon/studio", "max_stars_repo_head_hexsha": "782cf484541c6d68e1451ff6a0d3b5dc80172664", "max_stars_repo_licenses...
#! /usr/bin/env python import copy from copy import deepcopy import rospy import threading import quaternion import numpy as np from geometry_msgs.msg import Point from visualization_msgs.msg import * from franka_interface import ArmInterface from panda_robot import PandaArm import matplotlib.pyplot as plt from scipy.s...
{"hexsha": "e040935de0242c06762722b24bc7867813fd4683", "size": 12266, "ext": "py", "lang": "Python", "max_stars_repo_path": "Compliant_control/Force Tracking/archive/Admittance_2016_plot_for_09.03.py", "max_stars_repo_name": "martihmy/Compliant_control", "max_stars_repo_head_hexsha": "485f627fa83d59f414f41bd57c5d37528e...
""" Filter image module Sobel_Filter: (X & Y) | (DIR & MAG) Saturation_Filter: Based on the mean value of the bottom of the image (S channel) Combined Filter = Sobel_Filter | Saturation_Filter """ import os import cv2 import numpy as np import matplotlib.pyplot as plt import logging class Transform(object): ...
{"hexsha": "a62676ee25b83375b7d5112c33cb90ee3f94ebb2", "size": 4628, "ext": "py", "lang": "Python", "max_stars_repo_path": "filter.py", "max_stars_repo_name": "flsilves/CarND-Advanced-Lane-Lines", "max_stars_repo_head_hexsha": "5f4c3bf29d52df56371740d576e7a8c6d9db21ae", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
import argparse import numpy as np import os import random import horovod.torch as hvd import torch import sys; sys.path.append("/workspace/once-for-all") from ofa.imagenet_codebase.run_manager import DistributedImageNetRunConfig from ofa.imagenet_codebase.run_manager.distributed_run_manager import DistributedRunMana...
{"hexsha": "dc986963066c23d9f00928927a02e4e03e10bd33", "size": 3222, "ext": "py", "lang": "Python", "max_stars_repo_path": "jiangrong/finetune-searched-model.py", "max_stars_repo_name": "ronjian/once-for-all", "max_stars_repo_head_hexsha": "6d0a76be5007fda31c8b366a51f23b626bb8f24c", "max_stars_repo_licenses": ["Apache-...
import os from abc import ABCMeta import numpy as np import pytest import tensorflow as tf from keras.layers import Input from keras.models import Model from keras.optimizers import SGD from keras.regularizers import l2 from csrank import ( FETANetwork, RankNet, CmpNet, ExpectedRankRegression, RankSVM, ListNet ) ...
{"hexsha": "aafb4577cdfe8a9b50333140aac299074e7db3c4", "size": 4052, "ext": "py", "lang": "Python", "max_stars_repo_path": "csrank/tests/test_ranking.py", "max_stars_repo_name": "hytsang/cs-ranking", "max_stars_repo_head_hexsha": "241626a6a100a27b96990b4f199087a6dc50dcc0", "max_stars_repo_licenses": ["Apache-2.0"], "ma...
from __future__ import division import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt import pandas as pd import argparse import math import csv pd.set_option("display.precision", 40) parser = argparse.ArgumentParser() parser.add_argument('--path', type=str, default="./", help='') ...
{"hexsha": "a20131c5042d90283a5b87e610688df6f6bde931", "size": 1605, "ext": "py", "lang": "Python", "max_stars_repo_path": "horovod/tensorflow/double_exponential_plot.py", "max_stars_repo_name": "DelphianCalamity/horovod", "max_stars_repo_head_hexsha": "16c79766b7d6f86a1e64b373f9cd81d3680c06c8", "max_stars_repo_license...
%!TEX root = ../chapter2.tex %****************************** % Results %***************************** \section{Extending the BASiCS model} Unlike bulk RNA sequencing, scRNA-Seq provides information about cell-to-cell expression heterogeneity within a population of cells. Past works have used a variety of measures...
{"hexsha": "b7aa8ed0aa3b01153eb297b8fb8b1b479ea9d81b", "size": 84458, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Chapter3/Chapt3_files/results.tex", "max_stars_repo_name": "nilseling/Thesis", "max_stars_repo_head_hexsha": "20bf4e22748cd4649bedcf91a6fb39caf07d1053", "max_stars_repo_licenses": ["MIT"], "max_sta...
! { dg-do compile } ! { dg-require-effective-target tls } INTEGER FUNCTION INCREMENT_COUNTER() COMMON/A22_COMMON/COUNTER !$OMP THREADPRIVATE(/A22_COMMON/) COUNTER = COUNTER +1 INCREMENT_COUNTER = COUNTER RETURN END FUNCTION INCREMENT_COUNTER
{"hexsha": "cc94b140384c55e9fdfd20f1ae1d0ab2f6f5e4ae", "size": 287, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "validation_tests/llvm/f18/gfortran.dg/gomp/appendix-a/a.22.1.f90", "max_stars_repo_name": "brugger1/testsuite", "max_stars_repo_head_hexsha": "9b504db668cdeaf7c561f15b76c95d05bfdd1517", "max_star...
module mod_parallel ! A module to provide parallel facilities ! to the shallow water solver. use iso_fortran_env, only: int32, real32 implicit none private public :: num_tiles, tile_indices, & tile_neighbors_1d, tile_neighbors_2d interface tile_indices module procedure :: tile_indices...
{"hexsha": "36af6df4bec21680c6133173425222d1e4087756", "size": 6680, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/ch10/mod_parallel.f90", "max_stars_repo_name": "AAGAN/tsunami", "max_stars_repo_head_hexsha": "82635516dcb7f85eb6434ffdb98a9ddc4c1403ad", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
Require Export ct08. Conjecture HdRel_merge_snd_cons : forall (a a0 : nat) (l1 l2 : list nat), sorted (a :: l1) -> sorted (a0 :: l2) -> a <= a0 -> HdRel le a (merge l1 (a0 :: l2)). Conjecture sorted_merge_cons : forall (a a0 : nat) (l1 l2 : list nat), (sorted (a :: l1) -> sorted l2 -> sorted (merge (a :: l1) l2...
{"author": "jinxinglim", "repo": "coq-chain", "sha": "e237c6b5f797f2af43237b68ff599d6cc0a8d60e", "save_path": "github-repos/coq/jinxinglim-coq-chain", "path": "github-repos/coq/jinxinglim-coq-chain/coq-chain-e237c6b5f797f2af43237b68ff599d6cc0a8d60e/contributions/ct12.v"}
#Author: Kyle Marais #Script that takes in video from webcam, and then applies basic frame differencing to the frames acquired from the video. import sys import numpy as np import cv2 as cv def main(filename): # Open webcam capture vidcap = cv.VideoCapture(0) thr = 20; # capture frame at T(i-1) success, prevBac...
{"hexsha": "7ccd5016cd42b9113dc778d5e912668770a300b4", "size": 1072, "ext": "py", "lang": "Python", "max_stars_repo_path": "basics/FrameDifference.py", "max_stars_repo_name": "SlightyTilted/Image-Processing", "max_stars_repo_head_hexsha": "86126547bad667637e02fb0c1e7c810273cbe106", "max_stars_repo_licenses": ["Unlicens...
import matplotlib.pyplot as plt from matplotlib import animation import numpy as np from numba import jit from timeit import default_timer as timer import random start = timer() ''' FRACTAL Functions and parameters to change the appearance and behavior of the fractals generated ''' # PARAMETERS TO CH...
{"hexsha": "2a618ab4257d9d486f9e49869023248040373392", "size": 5547, "ext": "py", "lang": "Python", "max_stars_repo_path": "Fractals/SuPeR Fractals/ANIMATED_probabilistic_alternating_time_scale.py", "max_stars_repo_name": "michellely98/FractalExploration", "max_stars_repo_head_hexsha": "43e83d6e7da43eabd7b261e940eaacc8...
\section{Basics} % (fold) \label{sec:basics} \begin{questions} \titledquestion{The interpreter} Open the Python interpeter. What happens when you input the following statements: \begin{parts} \part \texttt{3 + 1} \part \texttt{3 * 3} \part \texttt{2 ** 3} \part \texttt{"Hello, world...
{"hexsha": "8c787a0a5f906333e12694ca7da862b84a46da4f", "size": 3036, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "exercises/tex/basics.tex", "max_stars_repo_name": "naskoch/python_course", "max_stars_repo_head_hexsha": "84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
""" NAME data_preparation DESCRIPTION This module provides access to functions that prepare data and generate features as needed. FUNCTIONS get_input(url) Return the dataframe as downloaded from the url. prepare_data(raw, round_ratings) Return the joined and cleaned dataset. ...
{"hexsha": "0effead0574309fd8efab63cc7c6765d1511eb74", "size": 5170, "ext": "py", "lang": "Python", "max_stars_repo_path": "yelpify/data_preparation.py", "max_stars_repo_name": "RH5648/yelpify", "max_stars_repo_head_hexsha": "440a9bd72c488eedcac1585f5331b5a24c6b6b12", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
import unittest import numpy as np import atomic_neu.atomic as atomic class TestFractionalAbundance(unittest.TestCase): def setUp(self): self.ad = atomic.element('Li') def test_mean_charge_zero(self): y = np.array([[1,0,0,0]]).T Te = np.array([1]) ne = np.array([1]) fab...
{"hexsha": "4d2761293ab0708912c9fa9a04cd363d76aff0ef", "size": 1148, "ext": "py", "lang": "Python", "max_stars_repo_path": "atomic/tests/test_abundance.py", "max_stars_repo_name": "ezekial4/atomic_neu", "max_stars_repo_head_hexsha": "2d7c8b9e587dd0e6076b37cb1f07560a488bca50", "max_stars_repo_licenses": ["MIT"], "max_st...
# # Copyright (c) 2021 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # """Ensembles of forecasters.""" import copy import logging from typing import List, Optional, Tuple,...
{"hexsha": "8a98bd1f0c5f83e9af31726e0b6739b62c5049a9", "size": 9175, "ext": "py", "lang": "Python", "max_stars_repo_path": "merlion/models/ensemble/forecast.py", "max_stars_repo_name": "jimgoo/Merlion", "max_stars_repo_head_hexsha": "2239f4ba6fc4fc08b3f88be842908851ee17ddbf", "max_stars_repo_licenses": ["BSD-3-Clause"]...
[STATEMENT] lemma CFG_SSA_Transformed_ign: "CFG_SSA_Transformed (ign gen_wf_\<alpha>e gen_cfg_wf) (ign gen_wf_\<alpha>n gen_cfg_wf) gen_wf_invar (const (gen_wf_inEdges' gen_cfg_wf)) (ign gen_wf_Entry gen_cfg_wf) (ign gen_wf_defs gen_cfg_wf) (ign gen_wf_uses gen_cfg_wf) (ign gen_wf_defs' gen_cfg_wf) (i...
{"llama_tokens": 34284, "file": "Formal_SSA_Generic_Interpretation", "length": 27}
#include <controller_interface/controller.h> #include <hardware_interface/joint_command_interface.h> #include <control_toolbox/pid.h> #include <realtime_tools/realtime_buffer.h> #include <pluginlib/class_list_macros.h> #include <std_msgs/Float64MultiArray.h> #include <angles/angles.h> #include <urdf/model.h> #includ...
{"hexsha": "60c6cf446c25d9b4686b9b1b1fb2a5bf2ebd27b1", "size": 10036, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "arm_controllers/src/test.cpp", "max_stars_repo_name": "trannguyenle95/arm-tutorial", "max_stars_repo_head_hexsha": "2526694a992026e69dc0a7585fff85d4407194cf", "max_stars_repo_licenses": ["MIT"], "m...