text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
[STATEMENT] lemma in_ap_setE [elim!]: "\<lbrakk> x \<in> f \<diamondop> y; \<And>f' y'. \<lbrakk> x = f' y'; f' \<in> f; y' \<in> y \<rbrakk> \<Longrightarrow> thesis \<rbrakk> \<Longrightarrow> thesis" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>x \<in> f \<diamondop> y; \<And>f' y'. \<lbrakk>x = f' y...
{"llama_tokens": 203, "file": "CryptHOL_Set_Applicative", "length": 1}
import matplotlib.pyplot as plt import numpy as np from plotter import Plotter, PlotterType from .results import CartoResult def remove_0_values(data, labels): """Remove all the values to 0 from a data list and the corresponding index in a labels list. :param list data: the data list to remove the 0 from. ...
{"hexsha": "1964c7dcfd175af98e536ce1c1045dc179888d5a", "size": 13413, "ext": "py", "lang": "Python", "max_stars_repo_path": "modules/plot_manager.py", "max_stars_repo_name": "ANSSI-FR/Faults_analyzer", "max_stars_repo_head_hexsha": "08ed35f2f9f906a06798d21138decfc30772ce45", "max_stars_repo_licenses": ["X11"], "max_sta...
Require Import Crypto.Arithmetic.PrimeFieldTheorems. Require Import Crypto.Specific.solinas64_2e213m3_5limbs.Synthesis. (* TODO : change this to field once field isomorphism happens *) Definition square : { square : feBW_loose -> feBW_tight | forall a, phiBW_tight (square a) = F.mul (phiBW_loose a) (phiBW_loose a)...
{"author": "anonymous-code-submission-01", "repo": "sp2019-54-code", "sha": "8867f5bed0821415ec99f593b1d61f715ed4f789", "save_path": "github-repos/coq/anonymous-code-submission-01-sp2019-54-code", "path": "github-repos/coq/anonymous-code-submission-01-sp2019-54-code/sp2019-54-code-8867f5bed0821415ec99f593b1d61f715ed4f7...
#!/usr/bin/env python import unittest import numpy as np from arte.types.scalar_bidimensional_function import \ ScalarBidimensionalFunction from arte.types.domainxy import DomainXY class ScalarBidimensionalFunctionTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass ...
{"hexsha": "ef3d631841d0f87a564ab2a00165a72f4e489e0d", "size": 2634, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/types/scalar_bidimensional_function_test.py", "max_stars_repo_name": "ArcetriAdaptiveOptics/arte", "max_stars_repo_head_hexsha": "3d21ae59ba6490be3f52c7957f259097bb42f511", "max_stars_repo_li...
# -*- coding: utf-8 -*- """ Created on Thu Aug 9 11:10:30 2018 @author: badat """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import pandas as pd import os.path import os import numpy as np import time from net...
{"hexsha": "7ac333b29c1b719d89b02053e1887f2d94574812", "size": 17181, "ext": "py", "lang": "Python", "max_stars_repo_path": "CUB_experiments/e2e_baseline_logistic_CUB.py", "max_stars_repo_name": "hbdat/cvpr20_IMCL", "max_stars_repo_head_hexsha": "a71b592e006778f5fff05976acd64b3b412c7f4a", "max_stars_repo_licenses": ["M...
# Copyright (c) 2019 Guido Kraemer # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. include("Header.jl") """ Block Data Structure representing a Block in the Bitcoin blockchain. Consists of a `block.header::Header` and `bloc...
{"hexsha": "1a2ad18442916ba29d6b1f5abd1b09c8d18192d5", "size": 1224, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/block/Block.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/BitcoinPrimitives.jl-9d766032-97e2-11e9-15bd-efb533ad7bdc", "max_stars_repo_head_hexsha": "af8085aad76b7120a8673e37c067ca...
import definitions import wellformedness import tactic namespace TT variables p q r φ ψ : term variable {Γ : context} lemma from_imp {Γ : context} : entails Γ ⊤ (q ⟹ r) → entails Γ q r := begin intro h₁, apply entails.cut _ (⊤ ⋀ q) _, apply_rules [entails.and_intro, entails.vac, entails.axm]; { apply @WF.i...
{"author": "blinkybool", "repo": "TL", "sha": "3c92994c1ed7e41080119fdb23340f5f68dea882", "save_path": "github-repos/lean/blinkybool-TL", "path": "github-repos/lean/blinkybool-TL/TL-3c92994c1ed7e41080119fdb23340f5f68dea882/src/lemmas.lean"}
#pragma once #include "macros.h" #include <gsl/span> #include <array> #include <optional> #include <string> namespace linkollector::win { enum class activity { url, text }; constexpr std::string_view activity_delimiter = "\uedfd"; constexpr std::array<std::byte, activity_delimiter.size()> activity_delimiter_...
{"hexsha": "53a1886c6904543f86f7c97e01a7451d81f2d18c", "size": 969, "ext": "h", "lang": "C", "max_stars_repo_path": "src/activity.h", "max_stars_repo_name": "Longhanks/linkollector-win", "max_stars_repo_head_hexsha": "a76b08fa4f20a3612988a0d84e5b14f7822638ee", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
# -------------------------------------------------------- # Pytorch Multi-GPU Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import ...
{"hexsha": "a191c9aa98331ca63fad6b4142e30feb25dfe159", "size": 10583, "ext": "py", "lang": "Python", "max_stars_repo_path": "PseudoLabel.py", "max_stars_repo_name": "PhoneSix/Domain-Contrast", "max_stars_repo_head_hexsha": "5c674b581bce9beacf5bc0dd13113f33c4050495", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
# Question 1 function findset(x::DisjointSetNode) if (x !=x.p ) x.p = findset(x.p) end x.p end # Question 2 function link!(x,y) if (x.rank > y.rank) y.p=x else (x.p =y) if (x.rank == y.rank) y.rank = y.rank + 1 end end end function union!(x::DisjointSe...
{"hexsha": "a29aabe85b3b6405d02ce40751c2b8e77ef1519c", "size": 569, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "O9/O9-praksis.jl", "max_stars_repo_name": "SjoenH/TDT4120-2018", "max_stars_repo_head_hexsha": "fcee77a921cc3437e226d42910848892e3d481a5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
""" Unified interfaces to root finding algorithms for real or complex scalar functions. Functions --------- - root : find a root of a scalar function. """ from __future__ import division, print_function, absolute_import import numpy as np from scipy._lib.six import callable from . import zeros as optzeros __all__ =...
{"hexsha": "86bbc5c9e7122a044248400afe250258bd9789bb", "size": 14908, "ext": "py", "lang": "Python", "max_stars_repo_path": "scipy/optimize/_root_scalar.py", "max_stars_repo_name": "jeremiedbb/scipy", "max_stars_repo_head_hexsha": "2bea64c334b18fd445a7945b350d7ace2dc22913", "max_stars_repo_licenses": ["BSD-3-Clause"], ...
# -*- coding: utf-8 -*- import os import sys import numpy as np from keras.models import model_from_json from keras.preprocessing import image result_dir = './result' # 画像を分類するクラスの定義 classes = ['buri', 'katsuo', 'kuromaguro', 'maaji', 'NG'] def predict(img_path): # モデルのロード model_json = open(os.path.join(res...
{"hexsha": "24913d9d989ed6ed3bd145e4a99d0ab403b51235", "size": 887, "ext": "py", "lang": "Python", "max_stars_repo_path": "pred.py", "max_stars_repo_name": "to0mi1/image-categorization-based-cifar10", "max_stars_repo_head_hexsha": "96218f2f60faf424b26112559a170a05463113bb", "max_stars_repo_licenses": ["MIT"], "max_star...
subroutine errmsg(rtn,msg,ercode,erlvl) use macttyp use macfile use macmisc implicit none integer*4 ercode,erlvl character*(*) rtn,msg c integer*4 lene,lst,ln character*(MAXLLEN) cwork character*(5) ,parameter ::astr=' *** ' c c print *,"errmsg",rtn(...
{"hexsha": "34f1bf416d645f1f00b39ccf20ee5c697c36fcca", "size": 891, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/errmsg.f", "max_stars_repo_name": "noboruatkek/SAD", "max_stars_repo_head_hexsha": "3881a190af8903537774c57b56963ffc94cfc039", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count": 11...
import numpy as np import jhML from jhML.core import Function, Variable, as_variable, as_array from jhML.compute import get_array_module # ============================================================================= # Basic functions: sin / cos / tanh / exp / log # forward # [args xs] xp.ndarray data # backward # ...
{"hexsha": "7629b47b71667214c369859d302072a8f459eadf", "size": 13908, "ext": "py", "lang": "Python", "max_stars_repo_path": "jhML/functions.py", "max_stars_repo_name": "jhson989/jhML", "max_stars_repo_head_hexsha": "eb8b76d3b47df858e82cd971bb32794e12de4747", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count":...
import random from abc import ABC, abstractmethod from typing import Dict, Tuple import numpy as np from ray.rllib.utils.typing import MultiAgentDict class BaseEnv(ABC): def __init__(self, config): """ Super class for environments that implements some basic functionality. Args: ...
{"hexsha": "a50877ca1f493eac4f5c27baa6cab01957a61812", "size": 4792, "ext": "py", "lang": "Python", "max_stars_repo_path": "human_friction/environment/base_env.py", "max_stars_repo_name": "mesjou/human-frictions", "max_stars_repo_head_hexsha": "2a5c919039bb29643a3e8dd36c0fa13ce7d93e0e", "max_stars_repo_licenses": ["MIT...
[STATEMENT] lemma generic_poly_eval_at_point: assumes "a \<in> carrier (R\<^bsup>n+3\<^esup>)" shows "eval_at_point R a (generic_poly R (Suc n)) = (eval_at_point R a (generic_poly R n)) \<oplus> (a!(n + 2)) \<otimes> (a!0)[^](Suc n)" [PROOF STATE] proof (prove) go...
{"llama_tokens": 1499, "file": "Padic_Field_Ring_Powers", "length": 9}
This editor can edit this entry and tell us a bit about themselves by clicking the Edit icon. 20110320 10:15:27 nbsp Welcome to the Wiki Erin. You can just use the edit button to go back and change your comment. Comments arent cast in stone once left. Users/JasonAller
{"hexsha": "771f9d45556a191f85727b5460b141749091dd37", "size": 271, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/ErinAL.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
[STATEMENT] lemma mpoly_to_mpoly_poly_Var: "mpoly_to_mpoly_poly x (Var y) = (if x = y then [:0, 1:] else [:Var y:])" [PROOF STATE] proof (prove) goal (1 subgoal): 1. mpoly_to_mpoly_poly x (Var y) = (if x = y then [:0, 1:] else [:Var y:]) [PROOF STEP] proof - [PROOF STATE] proof (state) goal (1 subgoal): 1. mpoly_to...
{"llama_tokens": 1288, "file": "Factor_Algebraic_Polynomial_Poly_Connection", "length": 11}
function [model] = integrate_cVector_into_model(model) % sintegrate_cVector_into_model incorporates the c vector directly into the % model as the reaction 'obj_fun_rxn'. % USAGE: % % [model] = integrate_cVector_into_model(model) % % INPUTS: % model: COBRA model structure with minimal fields: % OUTPUT: % model...
{"author": "opencobra", "repo": "cobratoolbox", "sha": "e60274d127f65d518535fd0814d20c53dc530f73", "save_path": "github-repos/MATLAB/opencobra-cobratoolbox", "path": "github-repos/MATLAB/opencobra-cobratoolbox/cobratoolbox-e60274d127f65d518535fd0814d20c53dc530f73/src/analysis/nutritionAlgorithm/integrate_cVector_into_m...
#!/usr/bin/env python # -*- coding: utf8 -*- from numpy import * import json import sys GM = 5.165545706e12 #km^3 hour^-2 for Earth. R_earth_equator = 6371.0 # km W_earth = 0.2617993877991494 # hour^-1 R_go = (GM/W_earth**2)**(1/3.0) N = 100 low_end_height = R_earth_equator top_end_height = 100e3 L0 = (top_end_height...
{"hexsha": "602a1d01908bc3c1ca5406d1ee61056be3b9a6ab", "size": 1990, "ext": "py", "lang": "Python", "max_stars_repo_path": "Week10/python/lattice.py", "max_stars_repo_name": "Milias/ModellingSimulation", "max_stars_repo_head_hexsha": "005ea39ae16f171a2b5587794d1c05be526eeb57", "max_stars_repo_licenses": ["MIT"], "max_s...
""" Generalized Gaussian Distribution package. """ module GGD using Distributions, SpecialFunctions, Statistics, Random using SpecialFunctions: gamma using Distributions: Bernoulli, Gamma, sampler, rand import Base: rand import Random: GLOBAL_RNG ### source files include("generalizedgaussian.jl") ### methods export ...
{"hexsha": "8824488011d067386530214a7d0ec133c37b7ddd", "size": 1942, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/GGD.jl", "max_stars_repo_name": "jsmithnh09/GGD.jl", "max_stars_repo_head_hexsha": "405d2dc01035a921f88288f9267aeacc5e771bd7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_...
#pragma once #include <iostream> #include <sstream> #include <boost/property_tree/ptree.hpp> #include <boost/throw_exception.hpp> #if defined(__clang__) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wshadow" # include <boost/property_tree/json_parser.hpp> # pragma clang diagnostic pop #else # in...
{"hexsha": "2317f127cca1a1428b2a9da64a8eff2beeab104c", "size": 1747, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/Valijson/valijson/include/valijson/utils/property_tree_utils.hpp", "max_stars_repo_name": "Tyler887/winget-cli", "max_stars_repo_head_hexsha": "0a6cb30ecfa15f9fe81b50496f5b1f13f0644af1", "max_st...
import logging import pyproj import astropy.units as u from astropy.table import Table import simtools.config as cfg import simtools.io_handler as io import simtools.util.general as gen from simtools.util import names from simtools.layout.telescope_data import TelescopeData class InvalidTelescopeListFile(Exception)...
{"hexsha": "d52933dbf9461362940ff2f1aa91dd13508f74c9", "size": 19816, "ext": "py", "lang": "Python", "max_stars_repo_path": "simtools/layout/layout_array.py", "max_stars_repo_name": "gammasim/gammasim-tools", "max_stars_repo_head_hexsha": "0b746254916f4c2e2a3fbd1854c565c3bc90d493", "max_stars_repo_licenses": ["BSD-3-Cl...
subroutine restor1 (gsmObj, numBaryons, numProtons, recoilEnergy, restMass, v, results) ! ====================================================================== ! ! Storing the properties of the residual nucleus in the spt and parz ! arrays for nuclei which do not evaporate (low E*) ! ! Calls: ATAN2, SIGN...
{"hexsha": "fdc35ab481b312233009531f3f103988139ed7a7", "size": 4236, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/GeneralizedSpallation/restor1.f90", "max_stars_repo_name": "lanl/generalized-spallation-model", "max_stars_repo_head_hexsha": "4a2f01a873d2e8f2304b8fd1474d43d1ce8d744d", "max_stars_repo_lice...
import numpy as np import matplotlib matplotlib.use('Agg') # avoid Error 'Tcl_AsyncDelete: async handler deleted by the wrong thread' from matplotlib import pyplot as plt import sklearn import pandas as pd import seaborn as sns from scipy import stats import lightgbm as lgb from functions.sub_surrender_profiles im...
{"hexsha": "ee84fe7c3eeacbc53c33bffc8f3c81eb0c5bedef", "size": 33254, "ext": "py", "lang": "Python", "max_stars_repo_path": "functions/sub_statistical_evaluation.py", "max_stars_repo_name": "mtkier94/Surrender_Analysis", "max_stars_repo_head_hexsha": "a346099b39f2063e3ceb88c125d754a94cfdd5fa", "max_stars_repo_licenses"...
# _ _ _ # _____| |__ ___ _ __ _ __(_| |___ _ _ # (_-/ _` / _/ _ | ' \| '_ | | / -_| '_| # /__\__,_\__\___|_|_|_| .__|_|_\___|_| # |_| # Copyright (c) 2013-2020 transentis management & consulting. All rights reserved. # import numpy as np from scipy.interpolate import...
{"hexsha": "815c6c7c978655971e8cbe39d0b1f1b846623189", "size": 39653, "ext": "py", "lang": "Python", "max_stars_repo_path": "xmile/how-to/how_to_xmile_arrays/simulation_models/sd_arrayed_variables.py", "max_stars_repo_name": "vishalbelsare/bptk_py_tutorial", "max_stars_repo_head_hexsha": "c1e581e9442ed02e55194529e9d75b...
from sympy.assumptions.ask import (Q, ask) from sympy.core.numbers import (I, Rational) from sympy.core.singleton import S from sympy.functions.elementary.complexes import Abs from sympy.functions.elementary.exponential import exp from sympy.functions.elementary.miscellaneous import sqrt from sympy.simplify.simplify im...
{"hexsha": "0230c8a0957ed28fb0a5cc1e9ee77ecae797265b", "size": 1638, "ext": "py", "lang": "Python", "max_stars_repo_path": "sympy/matrices/expressions/tests/test_fourier.py", "max_stars_repo_name": "utkarshdeorah/sympy", "max_stars_repo_head_hexsha": "dcdf59bbc6b13ddbc329431adf72fcee294b6389", "max_stars_repo_licenses"...
[STATEMENT] lemma divide_out_code [code]: "divide_out p x = divide_out_aux p (x, 0)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. divide_out p x = divide_out_aux p (x, 0) [PROOF STEP] by (simp add: divide_out_aux_correct divide_out_def)
{"llama_tokens": 103, "file": "Probabilistic_Prime_Tests_Fermat_Witness", "length": 1}
import re import nibabel import argparse import numpy as np from tqdm import tqdm from pathlib import Path from shutil import rmtree from slowMRI.utils import utils from slowMRI.utils.h5_io import write_ds def read_nii_as_npy(filepath: Path) -> np.ndarray: """ Converts a .nii or .nii.gz file and returns it as nu...
{"hexsha": "0e9da41a3263459a25f557ee6b8e39eb1ee8b620", "size": 3550, "ext": "py", "lang": "Python", "max_stars_repo_path": "data/convert_hcp.py", "max_stars_repo_name": "bryanlimy/mri-super-resolution", "max_stars_repo_head_hexsha": "9aa846dc3ee817b0188518b1fd0effe1fd33e043", "max_stars_repo_licenses": ["MIT"], "max_st...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2020.1.3), on 六月 15, 2020, at 08:54 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Li...
{"hexsha": "699e723b9e3516d242983cf9cca53c81b2e5f60b", "size": 51109, "ext": "py", "lang": "Python", "max_stars_repo_path": "3_Go_Nogo/Go_Nogo_Practice.py", "max_stars_repo_name": "Brinks0211/cognitive_paradigms_patients", "max_stars_repo_head_hexsha": "30e3f8268e5c2b5ebfffcc4ebbcb46d8e60d039e", "max_stars_repo_license...
import numpy as np from scipy import ndimage as ndi import argparse import glob import cv2 import matplotlib.pyplot as plt import time def image_preprocess(in_path): """ Takes a directory path, returns three base versions of image. """ image = cv2.imread(in_path) gray = cv2.cvtColor(image, cv2.COLOR_BGR2G...
{"hexsha": "33e4613400dd6a8c049813046504750852cd4b75", "size": 3734, "ext": "py", "lang": "Python", "max_stars_repo_path": "Snippets/edge_detectors.py", "max_stars_repo_name": "probably-not-porter/CEML", "max_stars_repo_head_hexsha": "4aa1477a097c770facae201aaaa7989b081496e1", "max_stars_repo_licenses": ["MIT"], "max_s...
# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import onnx from ..base import Base from . import expect class EyeLike(Base): @staticmethod def expo...
{"hexsha": "468a4d03bd70302fd4a8c1ba9e96d9e3be33f00f", "size": 1751, "ext": "py", "lang": "Python", "max_stars_repo_path": "onnx/backend/test/case/node/eyelike.py", "max_stars_repo_name": "stillmatic/onnx", "max_stars_repo_head_hexsha": "8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7", "max_stars_repo_licenses": ["Apache-2.0...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from timeit import default_timer as timer from datetime import timedelta from vec4ir.datasets import NTCIR, QuadflorLike from argparse import ArgumentParser, FileType from vec4ir.core import Retrieval, all_but_the_top from vec4ir.base import TfidfRetrieval from vec4ir.base...
{"hexsha": "9de4a51b1b6edbe1803d85d186dfee92de8bbfe5", "size": 25585, "ext": "py", "lang": "Python", "max_stars_repo_path": "ir_eval.py", "max_stars_repo_name": "JiachenRen/wcd-idf-app-prediction", "max_stars_repo_head_hexsha": "b19713a115b4a4300c8ee63e276f1d95c5beb0c8", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
from qsturng import * from numpy.testing import Tester test = Tester().test
{"hexsha": "22aa37f2cd1246552c5e283edc2608805e0eeccf", "size": 83, "ext": "py", "lang": "Python", "max_stars_repo_path": "__init__.py", "max_stars_repo_name": "rogerlew/qsturng-py", "max_stars_repo_head_hexsha": "411f3c52ee90c5310f31b7fdd6db2e5996d7b332", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count": ...
import argparse import numpy as np import os import torch import offline_agent import online_agent from utils.constants import env_list if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--env", default="HalfCheetah-v2") # OpenAI gym environment name parser.add_argument("-...
{"hexsha": "f780f957ceaa2add069e302d14dabe1b88244b30", "size": 2484, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/train_policy.py", "max_stars_repo_name": "SOPR-T/SOPR-T", "max_stars_repo_head_hexsha": "3242461fa8b3e917cde70be497beb1158a7b27e6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "m...
[STATEMENT] lemma map_poly_hom_smult[hom_distribs]: "map_poly hom (smult c p) = smult (hom c) (map_poly hom p)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. map_poly hom (smult c p) = smult (hom c) (map_poly hom p) [PROOF STEP] by (induct p, auto simp: hom_distribs)
{"llama_tokens": 120, "file": "Polynomial_Interpolation_Ring_Hom_Poly", "length": 1}
\subsection{Input/Output} Input/output in Iso Prolog is based on streams. A {\em stream} is a communication channel of Prolog with the outside world. When a file is opened, it is associated with a stream. All subsequent operations are performed on the stream. The basic input/output operations are defined in the Ciao ...
{"hexsha": "81a0d39d23a0850beae6a83597b3581b6ae3971c", "size": 9282, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "www/CiaoDE/ciao/doc/tutorial/SRC/pure_extend.tex", "max_stars_repo_name": "leuschel/ecce", "max_stars_repo_head_hexsha": "f7f834bd219759cd7e8b3709801ffe26082c766d", "max_stars_repo_licenses": ["Apac...
@enum AuctionStrategy UNSET MATCH IMPROVEMENT TRANSPARENT @enum FaDataType GROUPS=1 PROFILE=2 ALIASES=3 @enum LegOpenClose SAME OPEN CLOSE UNKNOWN_POS @enum MarketDataType REALTIME=1 FROZEN=2 DELAYED=3 DELAYED_FROZEN=4 @enum Origin CUSTOMER FIRM UNKNOWN @enum ConditionType PRICE=1 TIME=3 MARGIN=4 EXECUTION=5 VOLUM...
{"hexsha": "59b60609248a40631bdb8371cd0ae136b78dd95d", "size": 341, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/enums.jl", "max_stars_repo_name": "cmey/Jib.jl", "max_stars_repo_head_hexsha": "9f8c7385f85a039f555c2c779601eb31f7c76807", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_stars...
#!/usr/bin/env python3 -u import numpy as np import sklearn.datasets as skdata from sklearn.linear_model import LogisticRegression from sklearn.linear_model import LinearRegression import argparse import logging # Parse command line options parser = argparse.ArgumentParser(description='Do stuff.') parser.add_argume...
{"hexsha": "334956af2ac30e6ed2108afee18ca1c71b66a4e8", "size": 19821, "ext": "py", "lang": "Python", "max_stars_repo_path": "Assignment2/example.py", "max_stars_repo_name": "Icetalon21/Data-Science", "max_stars_repo_head_hexsha": "05eea4a027b194b3cfb5ddae5f0640ddcd44c5c7", "max_stars_repo_licenses": ["MIT"], "max_stars...
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
{"hexsha": "91a5f1bca4441d80489a02eb9283928e38321826", "size": 2823, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/paddle/fluid/tests/unittests/benchmark_sum_op.py", "max_stars_repo_name": "jerrywgz/Paddle", "max_stars_repo_head_hexsha": "85c4912755b783dd7554a9d6b9dae4a7e40371bc", "max_stars_repo_licens...
// Copyright (c) 2018 Jared H. Hudson // Licensed under the MIT License // #include <iostream> #include <iomanip> #include <cstdio> #include <sys/time.h> #include <vector> #include <unistd.h> #include <boost/log/core.hpp> #include <boost/log/trivial.hpp> #include <boost/log/expressions.hpp> #include <boost/log/sinks/t...
{"hexsha": "7ac0c2ca47ecc8291372eebcc105f7597fe299aa", "size": 2705, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "hvacmgr.cpp", "max_stars_repo_name": "jhhudso/hvacmgr", "max_stars_repo_head_hexsha": "dff10f30900c476de4976c47a9c753cf37358949", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_st...
module Network.TLS import public Network.TLS.Core import public Network.TLS.Certificate import public Network.TLS.Handle import public Network.TLS.Parse.DER import public Network.TLS.Parse.PEM import public Network.TLS.Verify import public Network.TLS.Magic
{"hexsha": "ba9e232207d91b0814d3a1969574a03988867fb2", "size": 259, "ext": "idr", "lang": "Idris", "max_stars_repo_path": "src/Network/TLS.idr", "max_stars_repo_name": "octeep/idris2-tls", "max_stars_repo_head_hexsha": "951bef674c41f059d5ccddf568b45588b5dbceee", "max_stars_repo_licenses": ["ISC"], "max_stars_count": 28...
# -*- coding: utf-8 -*- """ Created on Tue Nov 14 10:05:50 2017 @author: tkc """ import numpy as np import glob import os import pandas as pd from scipy import optimize ''' TESTING EDXdf=EDXdataset('C:\\Temp\\SiC\\MD2d_11Jun10') MyEDX=EDXfile(EDXdf,0) ''' class EDXfile(): ''' Single spectral file loaded from ro...
{"hexsha": "246aa8621f6a87aef9acda8cd89d3808a2a1eee9", "size": 36496, "ext": "py", "lang": "Python", "max_stars_repo_path": "EDX_data_classes.py", "max_stars_repo_name": "tkcroat/EDX", "max_stars_repo_head_hexsha": "f447dfbc0b7cde248b70b43772eb177185232960", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ...
// Copyright (C) 2010 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #include <dlib/any.h> #include <sstream> #include <string> #include <cstdlib> #include <ctime> #include <vector> #include "../rand.h" #include "tester.h" namespace { ...
{"hexsha": "9f3aa36019f90f0fb786505c2016ebc7cbbb794a", "size": 2986, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "dlib/test/any.cpp", "max_stars_repo_name": "ckproc/dlib-19.7", "max_stars_repo_head_hexsha": "0ca40f5e85de2436e557bee9a805d3987d2d9507", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count": 1....
#include <trajopt_utils/macros.h> TRAJOPT_IGNORE_WARNINGS_PUSH #include <constants.h> #include <cmath> #include <Eigen/SparseCore> #include <fstream> #include <signal.h> TRAJOPT_IGNORE_WARNINGS_POP #include <trajopt_sco/osqp_interface.hpp> #include <trajopt_sco/solver_utils.hpp> #include <trajopt_utils/logging.hpp> #i...
{"hexsha": "a3dffa4c7bf7771885ab288f48845248e38384eb", "size": 6920, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "moveit_planners/trajopt/trajopt_sco/src/osqp_interface.cpp", "max_stars_repo_name": "adam-vonderviszt/moveit", "max_stars_repo_head_hexsha": "b18b8c66963907aa6d03cbee4450fc3d6e740162", "max_stars_re...
import os from osim.env import Arm2DEnv import pprint import numpy as np env = Arm2DEnv() if __name__ == '__main__': observation = env.reset() env.osim_model.list_elements() for i in range(3000): action = env.action_space.sample() observation, reward, done, info = env.step(action) p...
{"hexsha": "0d0879f7add3f4574ca1e87aea333a5363d77d48", "size": 379, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/under-construction/arm2d.py", "max_stars_repo_name": "XCaellaX/osim-rl", "max_stars_repo_head_hexsha": "6ec6f2c7e98ab510f8b37db4fb573ade69d13c0b", "max_stars_repo_licenses": ["MIT"], "max_...
/* Copyright 2016-2018 Joaquin M Lopez Munoz. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * See http://www.boost.org/libs/poly_collection for library home page. */ #ifndef BOOST_POLY_COLLECTION_ALGORITH...
{"hexsha": "4de9a93601859048274d2205c3d8dfe08b49f598", "size": 38861, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "libs/boost_1_72_0/boost/poly_collection/algorithm.hpp", "max_stars_repo_name": "henrywarhurst/matrix", "max_stars_repo_head_hexsha": "317a2a7c35c1c7e3730986668ad2270dc19809ef", "max_stars_repo_lice...
using Test using TensorNetworkTensors using TensorOperations: @tensor, tensorcopy using LinearAlgebra: diag @testset "TensorNetworkTensors" begin include("tensors.jl") end
{"hexsha": "3bc15433140c00bdb9bd67f1aef9a0c4edbf2e97", "size": 176, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "under-Peter/TensorNetworkTensors.jl", "max_stars_repo_head_hexsha": "476124381e9d0a4295b6ef5596f7d50b45648d2a", "max_stars_repo_licenses": ["MIT"], "max_st...
#!/usr/bin/env python # # Analysis script # # Basic flow: # - Load data # - Check validity # - Check 2D properties # - Generate conformers # - Check 3D similarity # Imports import numpy as np import re from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import MolStandardize from rdkit.Chem impor...
{"hexsha": "3694c279ea1dcbcf8fa5ec04b6b649e7b73b0272", "size": 16308, "ext": "py", "lang": "Python", "max_stars_repo_path": "analysis/evaluate_generated_mols.py", "max_stars_repo_name": "lilleswing/DeLinker", "max_stars_repo_head_hexsha": "fc93270089ba16505d06acfbd8f10d1bdcdc4f9e", "max_stars_repo_licenses": ["BSD-3-Cl...
# -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2018 ZhicongYan # # 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...
{"hexsha": "14870fe373bf66a125b7d29f65bbb62cd2b1d2fb", "size": 8567, "ext": "py", "lang": "Python", "max_stars_repo_path": "model/aae.py", "max_stars_repo_name": "yanzhicong/VAE-GAN", "max_stars_repo_head_hexsha": "37fe060cd993d89c983bc8cfcc59c6edc3c5920f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 33, "ma...
#!/usr/bin/env python import numpy as np import mixem from mixem.distribution import GeometricDistribution def generate_data(): dist_params = [0.1, 0.3] weights = [0.4, 0.6] n_data = 10000 data = np.zeros((n_data)) for i in range(n_data): dpi = np.random.choice(range(len(dist_params)), p...
{"hexsha": "5974d993eb4c76fa3733067671a290d47d081e75", "size": 683, "ext": "py", "lang": "Python", "max_stars_repo_path": "mixEM/examples/demo_geometric.py", "max_stars_repo_name": "mjafin/LongQC", "max_stars_repo_head_hexsha": "c1b1b040018b532a3c4acb2d94550a10e0d7f1f0", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
# -*- coding: utf-8 -*- """LDA.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1NqaR37beAJisogi9k0ro2GCnu1_Ihjf8 # Apply LDA to OSHA """ #Install packages #!pip install pyldavis data_path = "your_own_path" data_file_lst = os.listdir(data_path)...
{"hexsha": "6a61c7fc85a65139ab3c831e1280943e76619442", "size": 10517, "ext": "py", "lang": "Python", "max_stars_repo_path": "LDA.py", "max_stars_repo_name": "OwenHoffend/eecs545_project", "max_stars_repo_head_hexsha": "b6a2863ad55b0bfdda8e51b84b46dad3b39fbabb", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul...
import numpy as np from game import Player, GameState class TicTacToe: """initalizes an empty board""" def __init__(self): self.__current_player = Player.X self.__x_matrix = np.zeros((3,3)) self.__o_matrix = np.zeros((3,3)) self.__winner = None self.__current_state = Game...
{"hexsha": "0e3ce951889e3df479925db188bf75411b4d97f2", "size": 3278, "ext": "py", "lang": "Python", "max_stars_repo_path": "tictactoe.py", "max_stars_repo_name": "hastinarimanzadeh/tictactoezero", "max_stars_repo_head_hexsha": "4da9c53aadd57552f3f49d35e5a7e3165767c2f5", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
// Boost.Geometry // Copyright (c) 2020-2021, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_STRATEGIES_SPHERICAL_HPP #define BOOST_GEOMET...
{"hexsha": "07495e8576ad11494e6cdb66cdb684f430f854fe", "size": 1950, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "ReactNativeFrontend/ios/Pods/boost/boost/geometry/strategies/spherical.hpp", "max_stars_repo_name": "Harshitha91/Tmdb-react-native-node", "max_stars_repo_head_hexsha": "e06e3f25a7ee6946ef07a1f524fdf...
[STATEMENT] lemma next_sibling_pure [simp]: "pure (a_next_sibling new_child) h" [PROOF STATE] proof (prove) goal (1 subgoal): 1. pure (a_next_sibling new_child) h [PROOF STEP] by(auto simp add: a_next_sibling_def get_parent_pure intro!: bind_pure_I split: option.splits list.splits)
{"llama_tokens": 124, "file": "Core_DOM_common_Core_DOM_Functions", "length": 1}
import pandas as pd from collections import Counter import os import numpy as np import socket np.random.seed(2017) RAW_DATA = '../raw_data' RATINGS_FILE = os.path.join(RAW_DATA, 'ml-100k/u.data') RATINGS = pd.read_csv(RATINGS_FILE, sep='\t', header=None) USERS_FILE = os.path.join(RAW_DATA, 'ml-100k/u.user') USERS = p...
{"hexsha": "b4f082edb8c95bde88eb03b26786d49f6be040df", "size": 14343, "ext": "py", "lang": "Python", "max_stars_repo_path": "Recommend System/source code/ACCM-master/ACCM-master/src/ml-100k.py", "max_stars_repo_name": "secretppcdc/secretppcdc.github.com", "max_stars_repo_head_hexsha": "0e00d7a02b177bfe1932bab1ff68096e2...
# Symbolic mathematics with Sympy [Sympy](http://www.sympy.org/en/index.html) is described as a: > "... Python library for symbolic mathematics." This means it can be used to: - Manipulate symbolic expressions; - Solve symbolic equations; - Carry out symbolic Calculus; - Plot symbolic function. It has other capabi...
{"hexsha": "727ee86219297137131767a233d6483865705b16", "size": 57518, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "nbs/01-Symbolic-mathematics-with-Sympy.ipynb", "max_stars_repo_name": "dianetam523/Python-Mathematics-Handbook", "max_stars_repo_head_hexsha": "04036b58dc82943c9ac577abe74c1a2b387e40...
import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable import torch.utils.data as thd import os, json from collections import defaultdict import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from dataset import AllStateDset from model im...
{"hexsha": "a7907a96dcf6fa22226fbbcdcf47d256922db3e4", "size": 5219, "ext": "py", "lang": "Python", "max_stars_repo_path": "train.py", "max_stars_repo_name": "danielhavir/claims-severity-model", "max_stars_repo_head_hexsha": "759aae914479799654e048f1af1cdbb7c13d3736", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
from configparser import ConfigParser, SectionProxy from keras import Sequential from general_utils.config import config_util as cfg_util from general_utils.logging import logger from data_providing_module import configurable_registry from data_providing_module.data_provider_registry import DataConsumerBase, r...
{"hexsha": "3bfcebcaf33d8a8cbc9333c459c350100d4ad882", "size": 8612, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/training_managers/rl_manager.py", "max_stars_repo_name": "Freitacr/ML-StockAnalysisProject", "max_stars_repo_head_hexsha": "37411c1204ecf69040ba2a1658013e4bf71eef9d", "max_stars_repo_licenses"...
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
{"hexsha": "3d3ae57a8f1758fe8db3310efcbdbb47b1c36ace", "size": 11395, "ext": "py", "lang": "Python", "max_stars_repo_path": "balloon_learning_environment/env/balloon/pressure_range_builder.py", "max_stars_repo_name": "taodav/balloon-learning-environment", "max_stars_repo_head_hexsha": "4beb45f52ab7127a4c051df2589473842...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 6 07:55:23 2020 Script that performs Newton's method @author: zettergm """ import numpy as np from nonlinear_fns import fun1 as f from nonlinear_fns import fun1_derivative as fprime from newton_methods import newton_exact import matplotlib.pyplot...
{"hexsha": "2cd591cf5d1fe6fd02c338ab79158e5b005b0b72", "size": 972, "ext": "py", "lang": "Python", "max_stars_repo_path": "nonlinear_eqns/Newton_Rhapson.py", "max_stars_repo_name": "Zettergren-Courses/EP501_python", "max_stars_repo_head_hexsha": "dabaa584e5158eb35197a43f38920a9ed7cc02b8", "max_stars_repo_licenses": ["M...
% clc - clear command window. % % USAGE % c % % INPUTS % % OUTPUTS % % EXAMPLE % % See also CLC, CC, CCC % % Piotr's Image&Video Toolbox Version 1.5 % Copyright 2012 Piotr Dollar. [pdollar-at-caltech.edu] % Please email me if you find bugs, or have suggestions or questions! % Licensed under the Simplified BSD Li...
{"author": "zouchuhang", "repo": "LayoutNet", "sha": "95293bfb8ff787dd3b02c8a52a147a703024980f", "save_path": "github-repos/MATLAB/zouchuhang-LayoutNet", "path": "github-repos/MATLAB/zouchuhang-LayoutNet/LayoutNet-95293bfb8ff787dd3b02c8a52a147a703024980f/matlab/panoContext_code/Toolbox/SketchTokens-master/toolbox/matla...
# # Copyright (c) 2018 Institute for Basic Science # # 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, merge...
{"hexsha": "8106ac617f05178e36be39ded25de49b47917c8e", "size": 8887, "ext": "py", "lang": "Python", "max_stars_repo_path": "poreplex/signal_analyzer.py", "max_stars_repo_name": "ChangLabSNU/poreplex", "max_stars_repo_head_hexsha": "eaa767b00cee77b93b06517f8d85781cfa4d5c0c", "max_stars_repo_licenses": ["MIT"], "max_star...
function r = plus(p,q) % MEAS/PLUS Implement p + q for meas. % make a meas called r r = meas(); % give it the right entries r.value = p.value + q.value; r.error = sqrt(p.error^2 + q.error^2);
{"author": "Sable", "repo": "mcbench-benchmarks", "sha": "ba13b2f0296ef49491b95e3f984c7c41fccdb6d8", "save_path": "github-repos/MATLAB/Sable-mcbench-benchmarks", "path": "github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/16606-error-propagation-class/@meas/plus.m"}
[STATEMENT] lemma finite_valid_length: "finite {l. length l = n \<and> valid l}" (is "finite ?S") [PROOF STATE] proof (prove) goal (1 subgoal): 1. finite {l. length l = n \<and> valid l} [PROOF STEP] proof - [PROOF STATE] proof (state) goal (1 subgoal): 1. finite {l. length l = n \<and> valid l} [PROOF STEP] have...
{"llama_tokens": 793, "file": "VerifyThis2018_Challenge2", "length": 10}
# %% import pymaid import contools from contools import generate_adjs import numpy as np from pymaid_creds import url, name, password, token from data_settings import data_date, pairs_path data_date = '2022-03-17' rm = pymaid.CatmaidInstance(url, token, name, password) # %% # select neurons to include in adjacency m...
{"hexsha": "8055c080acf55ef467d7c3c0189881080c19e541", "size": 2854, "ext": "py", "lang": "Python", "max_stars_repo_path": "generate_data/generate_adjs_edge-lists.py", "max_stars_repo_name": "mwinding/connectome_analysis", "max_stars_repo_head_hexsha": "dbc747290891805863c9481921d8080dc2043d21", "max_stars_repo_license...
import numpy as np import matplotlib.pyplot as ply price=np.array([0,10,21,39,10,60,51,7,8]) area=np.array([0,1,2,3,4,5,6,7,8]) # Try Removing Hash in Below two lines to Create more Random Data from sklearn.linear_model import LinearRegression as lmd p2=price.reshape(-1,1) a2=area.reshap...
{"hexsha": "86da2d55989190714560546f020b64a49c70d323", "size": 1426, "ext": "py", "lang": "Python", "max_stars_repo_path": "Python/NUERAL_NETWORK.py", "max_stars_repo_name": "janvi16/-HACKTOBERFEST2K20", "max_stars_repo_head_hexsha": "aa9c8b6f7feb245793c0a003ba6fbea3fca9ca22", "max_stars_repo_licenses": ["Apache-2.0"],...
import random import torch import torch.nn.functional as F import torch.optim as optim import numpy as np from networks.ddpg_actor import DDPGActor from networks.ddpg_critic import DDPGCritic from agents.base_agent import BaseAgent # from agents.ounoise import OUNoise from agents.ounoise_multivariate import OUNoiseMu...
{"hexsha": "729fa3e77e091eed6bd6f9b995a2d536f279e785", "size": 7627, "ext": "py", "lang": "Python", "max_stars_repo_path": "p2_continuous-control/DDPG/agents/ddpg_agent_version_4.py", "max_stars_repo_name": "Brandon-HY-Lin/deep-reinforcement-learning", "max_stars_repo_head_hexsha": "d809851b6f98d1089379392d4687e2acaf1c...
from __future__ import division import sys import math #from pprint import pprint import pylab as P import numpy as np from matplotlib.transforms import Bbox from matplotlib.font_manager import FontProperties from collections import defaultdict from ci import calc_sample_mean labels = {} labels["nodes"] = "Number of n...
{"hexsha": "c06802f592042db4683df2285e32d5e25104f70e", "size": 6063, "ext": "py", "lang": "Python", "max_stars_repo_path": "FlexCAPF/evaluation_plot_sim_compare2.py", "max_stars_repo_name": "CN-UPB/fcapp", "max_stars_repo_head_hexsha": "ca8708b74b84dcf29e966635e7ba91b31d358a52", "max_stars_repo_licenses": ["MIT"], "max...
# -*- coding: utf-8 -*- # Authors: Eric Larson <larson.eric.d@gmail.com> # License: BSD (3-clause) import numpy as np from ..utils import check_fname, _check_fname def read_fine_calibration(fname): """Read fine calibration information from a .dat file. The fine calibration typically includes improved sens...
{"hexsha": "76349a2ef4eab255a9512044edd0616714ba50a0", "size": 2936, "ext": "py", "lang": "Python", "max_stars_repo_path": "mne/preprocessing/_fine_cal.py", "max_stars_repo_name": "mvdoc/mne-python", "max_stars_repo_head_hexsha": "bac50dd08361b10d0a65c614ea2de06308750411", "max_stars_repo_licenses": ["BSD-3-Clause"], "...
from bokeh.charts import Bar, output_file, show from bokeh.plotting import figure, show, output_file, hplot, vplot from bokeh.models.widgets import CheckboxButtonGroup from bokeh.models import Callback,ColumnDataSource,Slider,Range1d from bokeh.io import output_file, show, vform import numpy as np N = 1000 x = np.linsp...
{"hexsha": "0fd020b0bfb80811bae5759365edb767618197db", "size": 2351, "ext": "py", "lang": "Python", "max_stars_repo_path": "water_sustainability/noahs_helpers.py", "max_stars_repo_name": "anthonycarlos92/seedLA_HTB_2015", "max_stars_repo_head_hexsha": "a3e5bb03ee00760413d49a1074289f51149222ca", "max_stars_repo_licenses...
[STATEMENT] lemma [iff]: "finals (Val v # es) = finals es" [PROOF STATE] proof (prove) goal (1 subgoal): 1. finals (Val v # es) = finals es [PROOF STEP] apply(clarsimp simp add:finals_def) [PROOF STATE] proof (prove) goal (1 subgoal): 1. ((\<exists>zs. es = map Val zs) \<or> (\<exists>vs a b es'. Val v # es = map Val...
{"llama_tokens": 2576, "file": "CoreC++_BigStep", "length": 17}
[STATEMENT] lemma dgrad_p_set_le_args_to_set_ab: assumes "dickson_grading d" and "ap_spec ap" and "ab_spec ab" and "compl_struct compl" assumes "sps \<noteq> []" and "set sps \<subseteq> set ps" and "hs = fst (add_indices (compl gs bs (ps -- sps) sps data) data)" shows "dgrad_p_set_le d (args_to_set (gs, ab gs bs...
{"llama_tokens": 3919, "file": "Groebner_Bases_Algorithm_Schema", "length": 28}
# -*- coding: utf-8 -*- """ Created on Sun Mar 15 06:46:45 2020 @author: azmanrafee """ import numpy as np X=[2] NX=[100] x0=1 xn=1 azim_div=64 energy_group=6 cores=4 def sigma_scatter(x): a=np.array([[0.024,0 ,0,0,0 ,0 ], [0.171,0.6 ,0,0,0 ,0 ], ...
{"hexsha": "d9d4c0e9157163fca50982d12fc74ab628b35abe", "size": 823, "ext": "py", "lang": "Python", "max_stars_repo_path": "MOC/benchmark_examples/2_multi_group_one_dimension/URR-6-0-IN/input.py", "max_stars_repo_name": "azmans-kitchen/Neutron-transport", "max_stars_repo_head_hexsha": "b203c0ef8b5e0e3e29c87aeaf7d3108320...
import numbers from typing import Optional, Type, TYPE_CHECKING, Union import wandb from wandb import util from wandb.util import has_num from ..base_types.json_metadata import JSONMetadata if TYPE_CHECKING: # pragma: no cover from wandb.apis.public import Artifact as PublicArtifact from ...wandb_artifacts...
{"hexsha": "2ca470393cdfcc32fa28aa1e12868384921ffed7", "size": 14298, "ext": "py", "lang": "Python", "max_stars_repo_path": "wandb/sdk/data_types/helper_types/bounding_boxes_2d.py", "max_stars_repo_name": "soumik12345/client", "max_stars_repo_head_hexsha": "31e4c2b143e6c219ea005fe4477e294f383f6888", "max_stars_repo_lic...
/- Copyright (c) 2020 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joseph Myers, Manuel Candales -/ import analysis.inner_product_space.projection import algebra.quadratic_discriminant /-! # Euclidean spaces This file makes some definitions and proves...
{"author": "leanprover-community", "repo": "mathlib", "sha": "5e526d18cea33550268dcbbddcb822d5cde40654", "save_path": "github-repos/lean/leanprover-community-mathlib", "path": "github-repos/lean/leanprover-community-mathlib/mathlib-5e526d18cea33550268dcbbddcb822d5cde40654/src/geometry/euclidean/basic.lean"}
import torch import torchvision.transforms as transforms from PIL import Image import matplotlib.pyplot as plt import numpy as np from pytorch_nst.config import device, imsize loader = transforms.Compose([ transforms.Resize(imsize), transforms.ToTensor() ]) unloader = transforms.ToPILImage() plt.ion() def ...
{"hexsha": "2848606dabe2e7f14e6b67718dfc2e6a97b7a8df", "size": 1589, "ext": "py", "lang": "Python", "max_stars_repo_path": "pytorch_nst/util.py", "max_stars_repo_name": "tomsitter/pytorch-neural-style-transfer", "max_stars_repo_head_hexsha": "43c880a0f82b0b088a778bbe1905ce0b4632bb80", "max_stars_repo_licenses": ["BSD-3...
/* * vision_server_test_dummy.cpp * * Author(s): Tamas D. Nagy * Created on: 2017-08-30 * * Example for the usage of the generic class * VisionServer. The vision server is specified * by the command: * VisionServer<geometry_msgs::Pose, DummyImageProcessor> td(nh, rate); * */ #include <iostream> ...
{"hexsha": "6cc9795baca69160abfa6a047637321e4ae32710", "size": 1410, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "irob_vision_support/src/vision_server_test_dummy.cpp", "max_stars_repo_name": "ABC-iRobotics/irob-saf", "max_stars_repo_head_hexsha": "27832e1657912f7ad7e9812bb5020d6254137454", "max_stars_repo_lice...
function POMDPs.solve(solver::DeepCorrectionSolver, problem::MDP) env = MDPEnvironment(problem, rng=solver.dqn.rng) return solve(solver, env) end function POMDPs.solve(solver::DeepCorrectionSolver, problem::POMDP) env = POMDPEnvironment(problem, rng=solver.dqn.rng) return solve(solver, env) end...
{"hexsha": "d3f1f0d23a4434a1a196043f70edc681c98a7f64", "size": 4566, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/solver.jl", "max_stars_repo_name": "sisl/DeepCorrections.jl", "max_stars_repo_head_hexsha": "fba4fa898f23c894de20535bbc69f378b59a9c6e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 4,...
import numpy as np import tensorflow as tf from tqdm import trange import argparse import skimage.io import skimage.transform from vgg import pretrainedVGG19 from default_config import * class NeuralStyleTransfer(object): """Neural Style Transfer with VGG-19. Args: content_img: str, path to content image style_...
{"hexsha": "58ee33c52ae6eeb28c4e70c1520201d0a45a7859", "size": 11226, "ext": "py", "lang": "Python", "max_stars_repo_path": "nst.py", "max_stars_repo_name": "nifannn/NeuralStyleTransfer-tensorflow", "max_stars_repo_head_hexsha": "3213229b4f35c998a6b452cb094dee72ad39e438", "max_stars_repo_licenses": ["MIT"], "max_stars_...
function build_globalmin{T <: Union(ASCIIString, UTF8String)}(list::Array{T}) stocks = stock_returns(list) params = modelparams(stocks) weights = rowsums(DataArray(inv(params[5]))) / sum(inv(params[5])) port = Portfolio(params[1], params[2], params[3], ...
{"hexsha": "a71ae610690f3a7efde78319aad7bc8cc7030734", "size": 493, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/build.jl", "max_stars_repo_name": "JuliaQuant/PortfolioModels.jl", "max_stars_repo_head_hexsha": "67813adceebff8368c5cd19d4748d63527ca4226", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
% ####################################### % ########### FILL THESE IN ############# % ####################################### \def\mytitle{Analysis and evaluation of techniques of parallelising a blockchain simulation} \def\mykeywords{concurrent, parallel, blockchain} \def\myauthor{Svetlozar Georgiev} \def\contact{4020...
{"hexsha": "de80da25fe96c3cac89d17973362b54cf63e93d0", "size": 22061, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "coursework 1/Report/report.tex", "max_stars_repo_name": "Ligh7bringer/SET10108-practicals", "max_stars_repo_head_hexsha": "b0120978181f0bb7ae7d7395e57ea4b1d452d978", "max_stars_repo_licenses": ["MI...
# A collection of bootstrapped code which should be generated # dynamically in future. abstract type TNamed <: ROOTStreamedObject end struct TNamed_1 <: TNamed end function readfields!(io, fields, ::Type{TNamed_1}) parsefields!(io, fields, TObject) fields[:fName] = readtype(io, String) fields[:fTitle] = re...
{"hexsha": "92ef2ea85de258844a89f4b4eec6bd6779ffb785", "size": 23885, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/bootstrap.jl", "max_stars_repo_name": "aminnj/UnROOT.jl", "max_stars_repo_head_hexsha": "6dc0838a939ff21413c0cf61e7208829dfa8f8a4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 46, "...
#!/usr/bin/pypy3 import os, sys from rich import print as pprint import numpy as np stuff = open('input.txt', 'r').read().split('\n') nav = {} count = 0 def subnav(past, loc): global count fwd = nav[loc] pre = '+'*(len(past)-1) # print('fwd:', fwd) # print('past:', past) for d in fwd: ...
{"hexsha": "23e2e268efa00e573607365f80d1ada47f6e4cb1", "size": 1991, "ext": "py", "lang": "Python", "max_stars_repo_path": "day12/day12.py", "max_stars_repo_name": "nobodywasishere/AdventOfCode_2021", "max_stars_repo_head_hexsha": "8221d7aae980c90755ce197a00fd066fb46c2a60", "max_stars_repo_licenses": ["MIT"], "max_star...
# -*- coding: utf-8 -*- import Revise import GLRenderer as GL import ThreeDP3 as T import Images as I import MiniGSG as S import NearestNeighbors as NN import LinearAlgebra import PoseComposition: Pose, IDENTITY_POSE, IDENTITY_ORN using Gen import Rotations as R import DataStructures as DS import MeshCatViz import Me...
{"hexsha": "ad47f10b651f2b61ddffc1ea03b59ae2a8b18b51", "size": 17144, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "notebooks/object_symmetries_reflection.jl", "max_stars_repo_name": "probcomp/ThreeDP3", "max_stars_repo_head_hexsha": "1701b7f6ee3f65c60aa962f9829d5bb09bf7aa96", "max_stars_repo_licenses": ["MIT"]...
import os,sys import numpy as np import torch import torch.nn.functional as F from PIL import Image from modules import model from modules.fast_context_model import Context4 from utils import torch_msssim # Load model image_comp = model.Image_Coder_Context(M=192,N2=192) pretrained_model = torch.load('ae...
{"hexsha": "4c72bba5201ead75420aa617ace1d124cb5807de", "size": 2990, "ext": "py", "lang": "Python", "max_stars_repo_path": "test.py", "max_stars_repo_name": "tongxyh/ImageCompression_VariableRate", "max_stars_repo_head_hexsha": "43b5901c10a2d6cd0b3df46fc2f40fa3242ecb44", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
import numpy as np from copy import deepcopy import abc from sklearn.utils import shuffle import torch from torch.utils.data import Dataset, DataLoader from torchvision import datasets import torchvision.transforms as transforms def mnist_transforms(): return transforms.Compose([ transforms.ToTensor(), ...
{"hexsha": "78f5a283da4575666d23000e6376b6a703f256ed", "size": 8281, "ext": "py", "lang": "Python", "max_stars_repo_path": "cl_streaming/datagen.py", "max_stars_repo_name": "x-zho14/bilevel_coresets", "max_stars_repo_head_hexsha": "9ceb91af966a9a0a53d4f322ec747fa7ce853af9", "max_stars_repo_licenses": ["MIT"], "max_star...
% --------------------------------------------------- % Date: 15.05.2019 % Version: v1.1.0 % Autor: Felix Faltin <ffaltin91[at]gmail.com> % Repository: https://github.com/faltfe/iodhbwm % --------------------------------------------------- % --- --- --- --- -- Class options -- --- --- --- --- % ----------...
{"hexsha": "5788a6dc25576af22aa32cbefe0cd1a38ac53685", "size": 3266, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/examples/how-to-use-iodhbwm/iodhbwm-advanced-starter.tex", "max_stars_repo_name": "mickmack1213/iodhbwm", "max_stars_repo_head_hexsha": "7ec29b5c8609afbebbe997056f98de6475cd0441", "max_stars_rep...
import numpy as np import pytest from astropy import units as u from astropy.coordinates import SkyCoord from astropy.tests.helper import assert_quantity_allclose from astropy.wcs.wcsapi import HighLevelWCSWrapper from numpy.testing import assert_allclose, assert_equal from ndcube.wcs.wrappers import ResampledLowLevel...
{"hexsha": "59a4e18b1ecfd16b387bebb2b524fbd0f36c4d5a", "size": 4208, "ext": "py", "lang": "Python", "max_stars_repo_path": "ndcube/wcs/wrappers/tests/test_resampled_wcs.py", "max_stars_repo_name": "kc611/ndcube", "max_stars_repo_head_hexsha": "947799ea213728d6215cb791508ef186ca53b24f", "max_stars_repo_licenses": ["BSD-...
from copy import copy from itertools import cycle, islice import numpy as np import pandas as pd import pytest from vispy.color import get_colormap from napari._tests.utils import check_layer_world_data_extent from napari.layers import Points from napari.layers.points._points_utils import points_to_squares from napar...
{"hexsha": "db85c6f803b89e9f9dc30ed8fd3e86159b335fb7", "size": 68814, "ext": "py", "lang": "Python", "max_stars_repo_path": "napari/layers/points/_tests/test_points.py", "max_stars_repo_name": "MontpellierRessourcesImagerie/napari", "max_stars_repo_head_hexsha": "8d5ffd29f3c9d460600e65e58c64c7294fb2164e", "max_stars_re...
function a = borderband ( n ) %*****************************************************************************80 % %% BORDERBAND returns the BORDERBAND matrix. % % Formula: % % If ( I = J ) % A(I,I) = 1 % else if ( I = N ) % A(N,J) = 2^(1-J) % else if ( J = N ) % A(I,N) = 2^(1-I) % else % ...
{"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/test_mat/borderband.m"}
[STATEMENT] lemma topoS4_trans: \<open>\<turnstile>\<^sub>T\<^sub>o\<^sub>p ((p \<^bold>\<longrightarrow> q) \<^bold>\<longrightarrow> (q \<^bold>\<longrightarrow> r) \<^bold>\<longrightarrow> p \<^bold>\<longrightarrow> r)\<close> [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<turnstile>\<^sub>T\<^sub>o\<^sub>p (...
{"llama_tokens": 172, "file": "Stalnaker_Logic_Stalnaker_Logic", "length": 1}
import torch from torch.utils.data import Dataset, DataLoader from torch.utils.data import IterableDataset import pandas as pd import numpy as np import random from random import randint from torch.nn.utils.rnn import pad_sequence import math np.random.seed(1) random.seed(1) chars = ['[PAD]', '[MASK]', 'a', 'b', 'c', ...
{"hexsha": "d56a2d016db1e735fcb4457652a9bcda33b39680", "size": 17673, "ext": "py", "lang": "Python", "max_stars_repo_path": "data.py", "max_stars_repo_name": "sahngmin/IMK_Keyboard", "max_stars_repo_head_hexsha": "22375ed5798ec43c9734c8b9d4fe374b8db58f48", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
import warnings from typing import Any import numpy as np from ..utils import message_to_binary, binary_to_message, rgb_to_gray, conv2d __all__ = ["SobelLSB"] def _to_grayscale(image): if image.ndim > 2: if image.shape[2] == 3: img = rgb_to_gray(image) warnings.warn("Image is R...
{"hexsha": "3bebdba244e574fd0522b81ced463b1608b0c1df", "size": 2408, "ext": "py", "lang": "Python", "max_stars_repo_path": "imstegan/algo/edge.py", "max_stars_repo_name": "trantuan4132/imstegan", "max_stars_repo_head_hexsha": "b70fd9b8fbcdaebeb630f42033b992fdccb5006d", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import numpy as np DEG_TO_RAD=(2.*np.pi)/360. DEFAULT_WIRE_THICKNESS=7 # base colors RED = "#FF0000" GREEN = "#00FF00" BLUE = "#0000FF" WHITE = "#FFFFFF" BLACK = "#000000" ORANGE = "#FFA500" # phasor animation settings AXIS_COLOR = WHITE LINE_COLOR = ORANGE Z0_LABEL_OFFSET = 0.4 Z0_DOT_COLOR = WHITE Z_LABEL...
{"hexsha": "0a2d3098ca62e37267542efac331b138133bb76d", "size": 1242, "ext": "py", "lang": "Python", "max_stars_repo_path": "accalib/constants.py", "max_stars_repo_name": "pj0620/acca-video-series", "max_stars_repo_head_hexsha": "1b09548014cc899ded5a8fdd1293f7fc121a98bc", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
!========================================================================== ! Module for tracking straight line through AMR grid ! and for other formal radiative transfer stuff !========================================================================== ! ! Before using this AMRRay module you must...
{"hexsha": "a5a2c428fca1b2061ea92d95f7e9ae2ce499531b", "size": 214339, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "radmc-3d/version_0.41/srcnoprint/amrray_module.f90", "max_stars_repo_name": "dlmatra/miao", "max_stars_repo_head_hexsha": "71799811b21a4249754390a8ec00972723edab99", "max_stars_repo_licenses":...
#!/usr/bin/env python # -*- coding: utf-8 -*- # 3rd party imports import numpy as np import matplotlib.pyplot as plt __author__ = "Louis Richard" __email__ = "louisr@irfu.se" __copyright__ = "Copyright 2020-2021" __license__ = "MIT" __version__ = "2.3.7" __status__ = "Prototype" def plot_projection(axis, v_x, v_y, ...
{"hexsha": "56c3a89d76bbed7a5b7488060ab92bbdb44f392f", "size": 2127, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyrfu/plot/plot_projection.py", "max_stars_repo_name": "ablotekar/irfu-python", "max_stars_repo_head_hexsha": "740cb51ca9ce2ab0d62cb6fef3a7a722d430d79e", "max_stars_repo_licenses": ["MIT"], "max_s...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
{"hexsha": "ed671e0c48102dbc1cef174017895e15f0a2a5e7", "size": 2959, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/python/contrib/test_miopen.py", "max_stars_repo_name": "jiangzoi/incubator-tvm", "max_stars_repo_head_hexsha": "144c6f45f7217b9df2f5605e06f0903e470ac11c", "max_stars_repo_licenses": ["Apache...
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <map> #include <set> #include <tuple> #include <stdbool.h> #include <bitset> #include <string> #include <boost/multiprecision/cpp_int.hpp> namespace mp = boost::multiprecision; using namespace std; int main(void) { mp::cpp_int n...
{"hexsha": "dff7814f4722c5a16624a3be2106651258c9604e", "size": 1000, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "abc123/c/main.cpp", "max_stars_repo_name": "kamiyaowl/atcoder", "max_stars_repo_head_hexsha": "30521be1684e72e75c7ba21312c5f96ae81bf25a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
// Copyright (c) 2011-2013 Thomas Heller // Copyright (c) 2011-2013 Hartmut Kaiser // Copyright (c) 2013 Agustin Berge // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !BOOST_PP_IS_ITERATING #ifndef HPX...
{"hexsha": "48c89bda86b496c11368c2d12d07f9ada84c2783", "size": 28884, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "hpx/util/tuple.hpp", "max_stars_repo_name": "andreasbuhr/hpx", "max_stars_repo_head_hexsha": "4366a90aacbd3e95428a94ab24a1646a67459cc2", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count": n...