text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
Intervarsity Christian Fellowship is an interdenominational, multiethnic group of UC Davis students who, in response to Gods truth, grace, and love, wish to establish a witnessing community who follow Jesus as Savior and Lord. They are dedicated to grow in love for God, Gods Word, Gods people of every ethnicity and cu... | {"hexsha": "954942fb9c62c31fc8148505735e8bbb276e736e", "size": 3854, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/Intervarsity_Christian_Fellowship.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MI... |
"""
=========================
neuromatch Group Matching
=========================
Group matching script and its output. We read dataset from Cloud Firestore
and export as CSV, and JSON file.
TODO: make it as a script, add documentation on how it works
"""
import numpy as np
import pandas as pd
from fuzzywuzzy import... | {"hexsha": "f9d8fe9463e787a6ffc434259f8da419e9f0621e", "size": 2594, "ext": "py", "lang": "Python", "max_stars_repo_path": "group_matching.py", "max_stars_repo_name": "titipata/paper-reviewer-matcher", "max_stars_repo_head_hexsha": "d1003cd0b6210e26b941694fb8144b4ae2308add", "max_stars_repo_licenses": ["Apache-2.0"], "... |
(** * Logic: Logic in Coq *)
Require Export MoreCoq.
(** Coq's built-in logic is very small: the only primitives are
[Inductive] definitions, universal quantification ([forall]), and
implication ([->]), while all the other familiar logical
connectives -- conjunction, disjunction, negation, existential
... | {"author": "bennofs", "repo": "software-foundations", "sha": "4278136ca18c0909603cab17fbc0c190dedf69c7", "save_path": "github-repos/coq/bennofs-software-foundations", "path": "github-repos/coq/bennofs-software-foundations/software-foundations-4278136ca18c0909603cab17fbc0c190dedf69c7/Logic.v"} |
import numpy as np
import pandas as pd
from tqdm import tqdm
import datetime as dt
from collections import defaultdict
def format_events(events_df, event_str="OBITO",
init_cohort=dt.date(2021, 1, 21), final_cohort=dt.date(2021, 8, 31)):
'''
Format the complete event table to perfor... | {"hexsha": "ee11f1662a836b28eccc9fbfd1da3943e2367d10", "size": 20421, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/outcomes_utils.py", "max_stars_repo_name": "higorsmonteiro/vaccine-eff-fortaleza", "max_stars_repo_head_hexsha": "ee4465a4b767dab15773b973a19ff900f9f96a66", "max_stars_repo_licenses": ["MIT"]... |
import os
from math import sqrt, pi
import numpy as np
import matplotlib as mpl; mpl.use("Qt5Agg")
import matplotlib.pyplot as plt
def surfaceGravity(radius, melt_density):
G = 6.67408 * 10**(-11) # m3 kg-1 s-2
gSurface = (G * (4 / 3) * pi * radius**3 * melt_density) / radius**2
return gSurface
def gravit... | {"hexsha": "050f1c86a46bd29b6bdab49dff82d1101d869078", "size": 3089, "ext": "py", "lang": "Python", "max_stars_repo_path": "Thesis_Code_2/adiabatic_hydrostatic.py", "max_stars_repo_name": "ScottHull/Masters-Thesis-Code", "max_stars_repo_head_hexsha": "46d46eb26267feec4dcd280fa227897c12faee72", "max_stars_repo_licenses"... |
// ---------------------------------------------------------------------
// pion: a Boost C++ framework for building lightweight HTTP interfaces
// ---------------------------------------------------------------------
// Copyright (C) 2007-2014 Splunk Inc. (https://github.com/splunk/pion)
//
// Distributed under the ... | {"hexsha": "06f3b380f7dc1197d3836567bfce06552cad283d", "size": 11628, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/http_cookie_auth.cpp", "max_stars_repo_name": "mkm85/pion", "max_stars_repo_head_hexsha": "83d18542659cb0c782a495594d53644a79ffd6c6", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count": ... |
"""
libquantum example 0: 00_blast_amplitude_check.py
GT blast pulse for TFR amplitude comparisons
"""
import numpy as np
import matplotlib.pyplot as plt
from libquantum import atoms, entropy, scales, spectra, utils
from libquantum import blast_pulse as kaboom
import libquantum.plot_templates.plot_time_frequency_reps ... | {"hexsha": "877338a1013af93b4e99d06dfc7c28f51805c335", "size": 10964, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/00_blast_amplitude_check.py", "max_stars_repo_name": "RedVoxInc/libquantum", "max_stars_repo_head_hexsha": "5e0d741e69be0ac1b94c018a4a0de99f4630deae", "max_stars_repo_licenses": ["Apache... |
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 4 15:52:14 2019
@author: Administrator
"""
# 导入imdb数据集,imdb数据集有5万条来自网络电影数据库的评论,电影评论转换成了一系列数字,每个数字代表字典汇总的一个单词,下载后放到~/.keras/datasets/目录下,即可正常运行。)中找到下载,下载后放到~/.keras/datasets/目录下,即可正常运行。
from tensorflow.keras.datasets import imdb
# 加载数据集,num_words意味着只保留训练集中最常出现的10000的单词,不... | {"hexsha": "1974bbb94a2f42a10912c7b05a164c8989efee3d", "size": 5967, "ext": "py", "lang": "Python", "max_stars_repo_path": "tensorflow_version/3.5-classifying-movie-reviews.py", "max_stars_repo_name": "xdzkl/deep-learning-with-python-notebooks", "max_stars_repo_head_hexsha": "0b88759b9309c9ac5bae600af15b84072ac54156", ... |
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{float}
\graphicspath{ {img/} }
\title{CS2006-Python2-Diamond}
\author{130017964, 120014756, xxxxxxxxx}
\begin{document}
\maketitle
\section{Analysis}
The language is python 2.7. OJ VSE!
\section{Design}
Design is an important stag... | {"hexsha": "0acb949bd0c7667ca078817ce15dc8f66957639a", "size": 2526, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Report/report.tex", "max_stars_repo_name": "batousik/Python2-Diamond", "max_stars_repo_head_hexsha": "632da422c97a685dfc9a3dc955e544a51861b7f1", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
[STATEMENT]
lemma Example3_list: "m mod n=0 \<Longrightarrow> \<turnstile> (COBEGIN SCHEME [0\<le>i<n]
(WHILE (\<forall>j<n. \<acute>X!i < \<acute>Y!j) DO
IF P(B!(\<acute>X!i)) THEN \<acute>Y:=\<acute>Y[i:=\<acute>X!i] ELSE \<acute>X:= \<acute>X[i:=(\<acute>X!i)+ n] FI
OD,
\<lbrace>n<length \<acute>X \<and> n... | {"llama_tokens": 66124, "file": null, "length": 30} |
#!/usr/bin/env python
# System
import tempfile
import bz2
import os
import time
import random
from multiprocessing import Pool
# Third Party
import pandas as pd
import numpy as np
import randomstate as rnd
# First Party
from benchmark_base import Benchmark
from submission_criteria.concordance import get_competition_... | {"hexsha": "13b7033b3d68ad0caa04bf2501c2749cd5f409ac", "size": 5834, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/benchmark_concordance.py", "max_stars_repo_name": "CSP197/submission-criteria", "max_stars_repo_head_hexsha": "3a584ca4ac452b429651bff7266c52db560f6c7b", "max_stars_repo_licenses": ["Apache-... |
# coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | {"hexsha": "2190e2b46e5cc62827f47040d16aeeaa3e7cc229", "size": 5408, "ext": "py", "lang": "Python", "max_stars_repo_path": "quadruped_gym/gym/sensors/robot_sensors.py", "max_stars_repo_name": "dtch1997/quadruped-gym", "max_stars_repo_head_hexsha": "e3a3709b8bbcedd75ec6716187a2bd0a55599c5e", "max_stars_repo_licenses": [... |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
module Statistics.LinearRegression (
-- * Simple linear regression functions
linearRegression,
linearRegressionRSqr,
linearRegressionTLS,
-- * Related functions
correl,
covar,
-- * Estimated errors and distribution paramete... | {"hexsha": "d861f3465bca34186ec48440fb198faf75b0f356", "size": 17217, "ext": "hs", "lang": "Haskell", "max_stars_repo_path": "Statistics/LinearRegression.hs", "max_stars_repo_name": "alpmestan/statistics-linreg", "max_stars_repo_head_hexsha": "14c2f10088d1914b0303c191ec0d7243c8eb83ee", "max_stars_repo_licenses": ["MIT"... |
import unittest
import numpy as np
import tensorflow as tf
import tf_encrypted as tfe
from tf_encrypted.protocol.pond import PondPrivateTensor, PondPublicTensor
from tf_encrypted.protocol.securenn import _private_compare
class TestPrivateCompare(unittest.TestCase):
def test_private(self):
x = np.array(... | {"hexsha": "f474b3915c679e9655d314c3d15c9888dcf4bca7", "size": 2071, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_private_compare.py", "max_stars_repo_name": "bendecoste/tf-encrypted", "max_stars_repo_head_hexsha": "00c9b80435411299a518f777de644c61d64cceea", "max_stars_repo_licenses": ["Apache-2.0"... |
#!/usr/bin/env python
"""Tests for reduction methods of CRN class.
References
==========
[1] Cornish-Bowden, Athel. "Fundamentals of enzyme kinetics". Elsevier, 2014.
[2] Ingalls, Brian. "Mathematical Modelling in Systems Biology: An Introduction.", 2013.
[3] SBMLsqueezer documentation, http://www.cogsys.cs.uni-tuebin... | {"hexsha": "3719699dc0c78c16e3cdac37e68b0a2ae28cad40", "size": 12886, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_reduction.py", "max_stars_repo_name": "mehradans92/crnpy", "max_stars_repo_head_hexsha": "e145d63b5cf97eb3c91276000cc8fef92c35cde9", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_s... |
import numpy as np
import scipy as sp
#Given an nxk design matrix [n samples, k dimensional inputs],
#an nxt output matrix Y [for t the output dimension],
#a n x (t x t) array of output inverse-covariance matrices [one for each sample]
#, a prior mean [2D matrix with dims kxt],
#and a prior covariance \Sigma_0 of di... | {"hexsha": "1e7797641fc876e7302804c9960b64ebf2403b3b", "size": 2779, "ext": "py", "lang": "Python", "max_stars_repo_path": "regression.py", "max_stars_repo_name": "bubble-07/FETISH3", "max_stars_repo_head_hexsha": "243429acd16d55b30a0de4f1f5d72b0cd7dc84b7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "... |
[STATEMENT]
lemma Limit_VUnion_vdomain_in_VsetI:
assumes "Limit \<alpha>" and "Q \<in>\<^sub>\<circ> Vset \<alpha>"
shows "(\<Union>\<^sub>\<circ>r\<in>\<^sub>\<circ>Q. \<D>\<^sub>\<circ> r) \<in>\<^sub>\<circ> Vset \<alpha>"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<Union>\<^sub>\<circ> (VLambda Q \<D>\<... | {"llama_tokens": 3405, "file": "CZH_Foundations_czh_sets_CZH_Sets_VNHS", "length": 31} |
# SPDX-License-Identifier: MIT
module FSMs
export AbstractFSM
export states
export arcs
export semiring
export AbstractMutableFSM
export addstate!
export addarc!
export State
export isinit
export isfinal
export Arc
export VectorFSM
export HierarchicalFSM
export MatrixFSM
export UnionMatrixFSM
export gpu
export d... | {"hexsha": "a9d87005b428db2aaab8538516f4d9a7a0457184", "size": 623, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/fsms/FSMs.jl", "max_stars_repo_name": "MartinKocour/HiddenMarkovModel", "max_stars_repo_head_hexsha": "7ccb5248dcc73693f03c33c635b9d793ea49e88b", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
import numpy as np
import pandas as pd
from pandas import DataFrame, Series
import matplotlib.pyplot as plt
from matplotlib import rcParams
import matplotlib
matplotlib.use('agg')
import seaborn as sb
from tkinter import *
# source /home/yniu/sandbox/mis500_m1/build/venv/bin/activate
#(mis500_m1)[yniu@yniu-edr-dev6 mis... | {"hexsha": "5db2d44fa3bc3a10d8a0e4b19f173a8c94fcebe6", "size": 498, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/main/python/charts.py", "max_stars_repo_name": "newinone/mis500_m1", "max_stars_repo_head_hexsha": "7e01ee89d9a5febfa7308bc238a12b31a8436fff", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
"""
VariationalBayes for Vanilla LDA
@author: Ke Zhai (zhaike@cs.umd.edu)
code for update_alpha come from piskvorky's gensim models
https://github.com/piskvorky/gensim/blob/develop/gensim/models/ldamodel.py
"""
from collections import defaultdict
import time
from numpy import log, exp, ones
import numpy
import sci... | {"hexsha": "c8d2f68f2bcb357a6b90d78893f5c21b13f6a9a7", "size": 10691, "ext": "py", "lang": "Python", "max_stars_repo_path": "fall_2017/hw5/lda.py", "max_stars_repo_name": "bdmckean/MachineLearning", "max_stars_repo_head_hexsha": "b6cc30b1302e7228ef8fb74750414c9551fb9474", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
import argparse
import os
import sys
import time
import numpy as np
import random
import torch
from torch.optim import Adam
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvision import transforms
import utils
from Pastiche import PasticheModel
from vgg import vgg11
from PIL import I... | {"hexsha": "e6f69f36b2e187fad9bdcbe160863ab9a9c94cbc", "size": 9089, "ext": "py", "lang": "Python", "max_stars_repo_path": "nn_filters.py", "max_stars_repo_name": "Richard456/theme_rendering", "max_stars_repo_head_hexsha": "c1f15ac913daf7e03f2ea8c5e1d688f46f1bebdb", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta... |
# This file is just to test passing a bunch of different parameters into train to make sure that things work
# At first, it is not necessarily testing whether those things have the intended effect or not
import os
import sys
sys.path = [os.path.abspath(os.path.dirname(__file__))] + sys.path
sys.path = [os.path.abspath... | {"hexsha": "ed7b1a2f04d371fa367b08aeabda81dda3d1f222", "size": 3769, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/core_tests/api_coverage_tests_regressors.py", "max_stars_repo_name": "ahmedhas32/Brainless", "max_stars_repo_head_hexsha": "39e4d8dc86cc34f31d4adad0479e3a7a50891030", "max_stars_repo_license... |
function getprop(value, name)
getproperty(value, Symbol(name))
end
# "d$key" will result in a lookup instead of a access of fields
function getprop(d::AbstractDict{K, V}, key::K) where {K, V}
d[key]
end
function setprop!(value, name, x)
setproperty!(value, Symbol(name), x)
return nothing
end
function se... | {"hexsha": "3a06c433201ccf9e593a2cbd19e27f74b3678926", "size": 4733, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "inst/Julia/accessing_mutating.jl", "max_stars_repo_name": "bakaburg1/JuliaConnectoR", "max_stars_repo_head_hexsha": "d0b2d2ac974ddee52fb3bbe7fcc92c4eab7dc477", "max_stars_repo_licenses": ["MIT"], "... |
import tensorflow as tf
import numpy as np
import time
import cv2
import vis
from scipy import interpolate
import matplotlib.pyplot as plt
from tensorflow.python.client import timeline
from modules.depth import DepthNetwork
from tensorflow.python.framework import graph_util
from fcrn import fcrn
from geometry.intrinsic... | {"hexsha": "2c81948240df981761eec4cabe9944a98f07296b", "size": 6399, "ext": "py", "lang": "Python", "max_stars_repo_path": "deepv2d/deepv2d.py", "max_stars_repo_name": "wangpengcheng/DeepV2D", "max_stars_repo_head_hexsha": "3b2248a27263f7c9b188bf6511124cb7953a51ac", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta... |
# -*- coding: utf-8 -*-
r"""
OpenCL performance with wave propagation
----------------------------------------
| Script: ``\tests\speed\3_Softi_CXIw2D_speed.py``.
| The test is based on the example ``\examples\withRaycing\14_SoftiMAX\Softi_CXIw2D.py``.
This script calculates several consecutive wave propagation inte... | {"hexsha": "afa683eff084884063f82f1a66d4a2ad02ec8840", "size": 16838, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/speed/3_Softi_CXIw2D_speed.py", "max_stars_repo_name": "adinatan/xrt", "max_stars_repo_head_hexsha": "75b884c0cba7e1aac15b30f2d0d803597328a208", "max_stars_repo_licenses": ["MIT"], "max_sta... |
#%%
import numpy as np
import pandas as pd
import statsmodels.api as sm
import matplotlib.pyplot as plt
# %%
df = pd.read_excel('../../data/41707559_0_结直肠癌筛查偏好_1038_525(1).xls')
df
#%%
anes_data = sm.datasets.anes96.load(as_pandas=False)
anes_exog = anes_data.exog
anes_exog = sm.add_constant(anes_exog, prepend=False... | {"hexsha": "bbedb3d55d8625417d801b6f1a7f27c884788d5f", "size": 3276, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/py/data_preprocess.py", "max_stars_repo_name": "JinhuaSu/DCE", "max_stars_repo_head_hexsha": "3c00ba0c92850ea3d381f85b2d835fdb4b0489b1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
"""
for defining Lattice, Nondispersive, and Dispersive Domains
"""
module Domains
files = (
"1D/Domains1D.jl",
"2D/Domains2D.jl",
# "3D/Domains3D.jl"
)
export AbstractDomain
export LatticeDomain
export NondispersiveDomain
export DispersiveDomain
using ..Boundaries
using ..DielectricFunctions
using ..Pum... | {"hexsha": "25b1d72f5a66eb48d24c11316c7abf53d8d308f7", "size": 8004, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Common/Domains.jl", "max_stars_repo_name": "wrs28/Iros.jl", "max_stars_repo_head_hexsha": "83f02346552035c5610d204f6ccbd157d5010a60", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "... |
"""Utilities for loading raw data"""
import struct
import numpy as np
from PIL import Image, ImageEnhance, ImageOps
from util.util import RAW_HIRAGANA_TO_LABEL_KATAKANA_MAP, RAW_KATAKANA_TO_LABEL_KATAKANA_MAP
# Specify the path to the ETL character database files
ETL_PATH = 'KanaRecognizer/trainer/ETLC_data'
NOISE... | {"hexsha": "6ac4972dbd87833c5f040ea9542d10a077c30a83", "size": 9346, "ext": "py", "lang": "Python", "max_stars_repo_path": "KanaRecognizer/trainer/preprocessing/data_utils.py", "max_stars_repo_name": "yudun/kanalearner", "max_stars_repo_head_hexsha": "2013d95949be95c3254a172cc1da884f7bf6a6a0", "max_stars_repo_licenses"... |
"""
Vision pipeline related tests.
"""
import sys, os
parent_dir = os.path.dirname(os.path.abspath(__file__))
gparent_dir = os.path.dirname(parent_dir)
ggparent_dir = os.path.dirname(gparent_dir)
sys.path += [parent_dir, gparent_dir, ggparent_dir]
import unittest
from unittest.mock import patch, Mock
import numpy as n... | {"hexsha": "4719f4942e9636a2ecec5891ee6b89cc72b55833", "size": 2454, "ext": "py", "lang": "Python", "max_stars_repo_path": "vision/unit_tests/test_pipeline.py", "max_stars_repo_name": "pieperm/IARC-2020", "max_stars_repo_head_hexsha": "a90bfe830ea2ceced59e8f2e7b54862dda42f5a3", "max_stars_repo_licenses": ["MIT"], "max_... |
function value = i1mach ( i )
%*****************************************************************************80
%
%% I1MACH returns integer machine constants.
%
% Discussion:
%
% Input/output unit numbers.
%
% I1MACH(1) = the standard input unit.
% I1MACH(2) = the standard output unit.
% I1MACH(3) = ... | {"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/machine/i1mach.m"} |
import cv2
import numpy as np
from skimage import transform as trans
def parse_lst_line(line):
vec = line.strip().split("\t")
assert len(vec) >= 3
aligned = int(vec[0])
image_path = vec[1]
label = int(vec[2])
bbox = None
landmark = None
if len(vec) > 3:
bbox = np.zeros((4,), dt... | {"hexsha": "d4b54d438ec76021f526f3b57ac68d55c4823f00", "size": 3094, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/face_preprocess.py", "max_stars_repo_name": "yeyupiaoling/Age-Gender-MXNET", "max_stars_repo_head_hexsha": "a3565e75b716468905accf9264a80d6a6ae7572a", "max_stars_repo_licenses": ["MIT"], "ma... |
import global_vars
import numpy as np
import warnings
# mpe(prediction, actual)
# input
# prediction, nparray, prediction for interval data for day
# actual, nparray, actual interval data
# output
# returns the Mean Percentage Error between two Numpy Arrays. The two lists must be of the same size and greate... | {"hexsha": "7a687417d890a7ec716116cfbfe1184f31aa7abd", "size": 2322, "ext": "py", "lang": "Python", "max_stars_repo_path": "baseline/error_functions.py", "max_stars_repo_name": "slacgismo/pge-baseline-study", "max_stars_repo_head_hexsha": "a521b091a23d25742a4e29c43fbfc8d2492e2b43", "max_stars_repo_licenses": ["BSD-2-Cl... |
#Uses python3
import numpy as np
import cv2
img = cv2.imread('lena.jpg', 0)
cv2.imshow('image', img)
k = cv2.waitKey(0)
if k == 27:
cv2.destroyAllWindows()
elif k == ord('s'):
cv2.imwrite('lenaGray.jpg', img)
cv2.destroyAllWindows() | {"hexsha": "ca85127b0d001f86003c0e47b7e92ea7da9a6843", "size": 249, "ext": "py", "lang": "Python", "max_stars_repo_path": "saveGrayImage.py", "max_stars_repo_name": "gaurav3dua/OpenCV", "max_stars_repo_head_hexsha": "d816158c40c35b897ce9873c176ce72735220069", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "m... |
[GOAL]
J : Type w
inst✝⁴ : Category.{w', w} J
A : Type u₁
inst✝³ : Category.{v, u₁} A
B : Type u₂
inst✝² : Category.{v, u₂} B
T : Type u₃
inst✝¹ : Category.{v, u₃} T
L : A ⥤ T
R : B ⥤ T
F : J ⥤ Comma L R
inst✝ : PreservesLimit (F ⋙ snd L R) R
c₁ : Cone (F ⋙ fst L R)
c₂ : Cone (F ⋙ snd L R)
t₂ : IsLimit c₂
j₁ j₂ : J
t :... | {"mathlib_filename": "Mathlib.CategoryTheory.Limits.Comma", "llama_tokens": 9534} |
[STATEMENT]
lemma forget_subst_vv [simp]: "atom a \<sharp> tm \<Longrightarrow> tm[a::=x]\<^sub>v\<^sub>v = tm"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. atom a \<sharp> tm \<Longrightarrow> tm[a::=x]\<^sub>v\<^sub>v = tm
[PROOF STEP]
by (induct tm rule: v.induct) (simp_all add: fresh_at_base) | {"llama_tokens": 126, "file": "MiniSail_IVSubst", "length": 1} |
#define BOOST_TEST_MODULE TestPGMessage
#include <boost/test/unit_test.hpp>
#include <common.hxx>
#include <pgmessage.hxx>
#include <proto-buffer.hxx>
#include <pgsql-proto.hxx>
#include <exception>
using namespace pgbckctl;
BOOST_AUTO_TEST_CASE(TestPGMessageSetup)
{
std::shared_ptr<PGMessage> message = nullptr;
... | {"hexsha": "0a6c2d234a15662a62ae37edbb0662944984c169", "size": 1344, "ext": "cxx", "lang": "C++", "max_stars_repo_path": "test/src/test_pgmessage.cxx", "max_stars_repo_name": "credativ/pg_backup_ctl-plus", "max_stars_repo_head_hexsha": "d1655f9791be9227e17b60731829bbd8572e850b", "max_stars_repo_licenses": ["MIT"], "max... |
import numpy as np
from sklearn.base import clone
from sklearn.base import BaseEstimator, RegressorMixin
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.utils import check_random_state
from sklearn.externals.joblib import Parallel, delayed
import numpy as np
from scipy.stats import binom_test
from s... | {"hexsha": "ead3b95927f3a6dca9013cf715073ae098cc3bf4", "size": 3699, "ext": "py", "lang": "Python", "max_stars_repo_path": "ytopt/search/NeuralNetworksDropoutRegressor.py", "max_stars_repo_name": "LoopTilingBenchmark/benchmark", "max_stars_repo_head_hexsha": "52a3d2e70216552a498fd91de02a2fa9cb62122c", "max_stars_repo_l... |
! RUN: bbc %s -o "-" | FileCheck %s
! Test integer intrinsic operation lowering to fir.
! CHECK-LABEL:eq0_test
LOGICAL FUNCTION eq0_test(x0, x1)
INTEGER(4) :: x0
INTEGER(4) :: x1
! CHECK-DAG:[[reg1:%[0-9]+]] = fir.load %arg0
! CHECK-DAG:[[reg2:%[0-9]+]] = fir.load %arg1
! CHECK:[[reg3:%[0-9]+]] = arith.cmpi eq, [[reg... | {"hexsha": "76ec658695a71af3816b6f70eb6a680c8e1b4318", "size": 3189, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "flang/test/Lower/integer-operations.f90", "max_stars_repo_name": "lxbndr/llvm-project", "max_stars_repo_head_hexsha": "2b715b15f5f4c6dd60f05d1b62f9c404e8b56e34", "max_stars_repo_licenses": ["Apa... |
function z = polyval2(p,x,y)
% POLYVAL2
% ---------
%
% Evaluate a 2D polynomial
% By SS Rogers (2006)
%
% Usage
% ------
% Z = POLYVAL2(P,X,Y) returns the value of a 2D polynomial P evaluated at (X,Y). P
% is a vector of length (N+1)*(N+2)/2 containing the polynomial coefficients in
% ascending powers:
%
% P = [p00... | {"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/13719-2d-weighted-polynomial-fitting-and-eva... |
import numpy as np
import pandas as pd
from random import randint
from statistics import mode
from datetime import datetime
import backend.utils.finder as finder
from dateutil.relativedelta import relativedelta
def arrange_df(df, df_type, relevant_col_idx=None, items_to_delete=None, assembly_df=None, bom_trim=False):... | {"hexsha": "697afc530260308cb6787c0d29ff4b0b2b8c50e8", "size": 37482, "ext": "py", "lang": "Python", "max_stars_repo_path": "backend/utils/df_ops.py", "max_stars_repo_name": "nizarcan/CapacityPlanningDSS-SD", "max_stars_repo_head_hexsha": "e19bf56ae400ce4c21f17286873b6e24e3032b9c", "max_stars_repo_licenses": ["MIT"], "... |
function [mu sigma2] = estimateGaussian(X)
%ESTIMATEGAUSSIAN This function estimates the parameters of a
%Gaussian distribution using the data in X
% [mu sigma2] = estimateGaussian(X),
% The input X is the dataset with each n-dimensional data point in one row
% The output is an n-dimensional vector mu, the mean... | {"author": "merwan", "repo": "ml-class", "sha": "0b06b73d4aac0b8d7c726325200c3781b5c9d3b0", "save_path": "github-repos/MATLAB/merwan-ml-class", "path": "github-repos/MATLAB/merwan-ml-class/ml-class-0b06b73d4aac0b8d7c726325200c3781b5c9d3b0/mlclass-ex8/estimateGaussian.m"} |
import logging
import math
import numpy as np
import os.path
import scipy.linalg
import scipy.spatial.distance
from collections import defaultdict
from wmf_embed.core.utils import nearest_neighbors, NP_FLOAT
from wmf_embed.core.titler import Titler
from wmf_embed.core.lang_embedding import LangEmbedding
SAMPLE_SIZE... | {"hexsha": "ec0f0808d3376439095a74a109bba0c10596d84c", "size": 4218, "ext": "py", "lang": "Python", "max_stars_repo_path": "wmf_embed/train/align_vectors.py", "max_stars_repo_name": "shilad/wmf-embeddings", "max_stars_repo_head_hexsha": "353556dfbb36e1f70eec7e618cfd989d7ae08de5", "max_stars_repo_licenses": ["Apache-2.0... |
//
// emscr_async_bridge_index.hpp
// Copyright (c) 2014-2018, MyMonero.com
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the abo... | {"hexsha": "abf85622dd6ebce8877c32e7643c8f11409d370e", "size": 3550, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/emscr_async_send_bridge.hpp", "max_stars_repo_name": "scilicet64/beldex-core-js", "max_stars_repo_head_hexsha": "20006457032e835b6232b587395fb8e6c71b1fbf", "max_stars_repo_licenses": ["BSD-3-Cla... |
"""Describe AtomSiteSusceptibility, AtomSiteSusceptibilityL."""
from typing import NoReturn
import math
import numpy
from cryspy.A_functions_base.function_1_algebra import calc_m_sigma
from cryspy.A_functions_base.function_1_atomic_vibrations import \
vibration_constraints
from cryspy.B_parent_classes.cl_1_item imp... | {"hexsha": "96492eb11cca8305f775aec860f8e8812b6d4202", "size": 17307, "ext": "py", "lang": "Python", "max_stars_repo_path": "cryspy/C_item_loop_classes/cl_1_atom_site_susceptibility.py", "max_stars_repo_name": "eandklahn/cryspy", "max_stars_repo_head_hexsha": "a664cee1e1ffd5f23e54295a11e479d7d4cda7e5", "max_stars_repo_... |
import argparse
import os
import random
import subprocess
import numpy as np
parser = argparse.ArgumentParser(description='Run the ReferringRelationships model with varying parameters.')
parser.add_argument('--gpu', type=str, default='1')
parser.add_argument('--nruns', type=int, default=50)
parser.add_argument('--work... | {"hexsha": "6ae30987def2d5d0ee4cce3a3e0d988c209190a4", "size": 3156, "ext": "py", "lang": "Python", "max_stars_repo_path": "launch.py", "max_stars_repo_name": "astrocas09/ReferringRelationships", "max_stars_repo_head_hexsha": "6318c982980430acda217cc1f2334e7332a721af", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
#!/usr/bin/env python
#
# Script 'convert_im_distort'
#
# :History:
#
# 19 Feb 2013: Created
# 20 Feb 2013: Filename changed to convert_im_distort.py.
# 21 Feb 2013: Changed to make a copy of the data product (initialized
# with the inputfile) before modifying it.
# 16 Sep 2013: Removed the ORDER paramete... | {"hexsha": "4ff2778b8cba38ef26dbe800e07e02c1213433f1", "size": 4098, "ext": "py", "lang": "Python", "max_stars_repo_path": "datamodels/scripts/historical/convert_im_distort.py", "max_stars_repo_name": "mwregan2/MiriTE", "max_stars_repo_head_hexsha": "6b65939454db60bf10619d50fcb5769d23598b76", "max_stars_repo_licenses":... |
import numpy as np
import pylab as plt
def integrate(x, y, weight, xmin, xmax, vary=None):
"""
Return integrated flux of array y (already integrated in
each pixel) with respecto to x, with variance vary and
weight function weigth between limits xmin and xmax.
"""
# Keep only elements of x, y,... | {"hexsha": "463820b3f9080c00ad58ca057e312ded841364ff", "size": 2677, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools.py", "max_stars_repo_name": "exord/activist", "max_stars_repo_head_hexsha": "7aa7650e4f6161c797f92394ae8e3736f56409a1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_stars_r... |
# -*- coding: utf-8 -*-
#
# Project: Peak finder in a single 2D diffraction frame
# https://github.com/silx-kit/pyFAI
#
#
# Copyright (C) 2014-2020 European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu)
#
#
# Permission is here... | {"hexsha": "8aae2696921635507b5ba4d2c117f8dd5ac68ff0", "size": 45167, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyFAI/opencl/peak_finder.py", "max_stars_repo_name": "loichuder/pyFAI", "max_stars_repo_head_hexsha": "8b1d8dd522c4d2d9ac919b9869eb8c314b18e271", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
import numpy
import theano
from theano.tensor.utils import (hash_from_ndarray, hash_from_dict,
shape_of_variables)
def test_hash_from_ndarray():
hashs = []
rng = numpy.random.rand(5, 5)
for data in [-2, -1, 0, 1, 2, numpy.zeros((1, 5)), numpy.zeros((1, 6)),
# Data buffer empty ... | {"hexsha": "9c29367043d1f31b1ded0dc41c9ef6fd3089c1ea", "size": 2509, "ext": "py", "lang": "Python", "max_stars_repo_path": "theano/tensor/tests/test_utils.py", "max_stars_repo_name": "jsalvatier/Theano-1", "max_stars_repo_head_hexsha": "457bae18a0d3284841b9bcae5ce4ceee22f33132", "max_stars_repo_licenses": ["BSD-3-Claus... |
import torch
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import numpy as np
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--path', default='./outf')
args = parser.parse_args()
# Animate fixed noise
img_list = torch.load('{}/img_list.pth'.format(args.path))
fig = ... | {"hexsha": "4d47a85703c9245ea6e904746e67be10b710ff86", "size": 714, "ext": "py", "lang": "Python", "max_stars_repo_path": "im2mp4.py", "max_stars_repo_name": "ParallelStableGAN/stableGAN", "max_stars_repo_head_hexsha": "d6ba70a255bac54137a4b90d809b0a266479769a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1,... |
/**
* Copyright Claus Beckenbauer 2004 - 2022.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
*/
#include <array>
#include <boost/asio/deadline_timer.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/as... | {"hexsha": "9e6b2e5b0c769575807f79f2041c11711a21de99", "size": 5813, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/main.cpp", "max_stars_repo_name": "beckenc/cpc", "max_stars_repo_head_hexsha": "3c3cbbc54ce28ba200806abd6502da4704710634", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count": null, "max_s... |
import torch
from torch import nn, optim
from torchvision import transforms, datasets
import torch.nn.functional as F
from torch.autograd import Variable
from torch.utils.data import DataLoader, random_split
import numpy as np
import timeit
from collections import OrderedDict
from pprint import pformat
from tqdm import... | {"hexsha": "adf851a03401b4ffa6110ed6b985f97d84fe7544", "size": 5750, "ext": "py", "lang": "Python", "max_stars_repo_path": "3. logistic regression/skeleton_code/logistic_regression.py", "max_stars_repo_name": "khalilbalaree/Visual-Recognition", "max_stars_repo_head_hexsha": "895a65a828ccb4edf1a78fec4323ec5b593147d0", "... |
from qiskit import QuantumCircuit, execute, Aer
from numpy.random import randint
import numpy as np
class QKD:
"""
Generate an instance of the Quantum Key Distribution Protocol.
Attributes
----------
eave : boolean
Whether or not there is an eavesdropper (default is false)
init_len... | {"hexsha": "b1d5d1254ad4bef726ace5ecd3532eb50c831bc7", "size": 5108, "ext": "py", "lang": "Python", "max_stars_repo_path": "QKD/quantum_key_distribution.py", "max_stars_repo_name": "teaguetomesh/quantum-circuit-generator", "max_stars_repo_head_hexsha": "0225dc5dee7316d2d144e7b7722e8c7439b30c73", "max_stars_repo_license... |
[STATEMENT]
lemma secure_implies_refusal_consistency:
"secure P I D \<Longrightarrow> (xs, ys) \<in> rel_ipurge_aux P I D (D ` X) \<Longrightarrow>
X \<in> refusals P xs \<Longrightarrow> X \<in> refusals P ys"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>secure P I D; (xs, ys) \<in> rel_ipurge_aux P I... | {"llama_tokens": 210, "file": "Noninterference_Ipurge_Unwinding_IpurgeUnwinding", "length": 1} |
! written by jxzou at 20210111: moved from subroutine do_mrpt2 in automr.f90
! updated by jxzou at 20210224: add CASPT2 interface with ORCA
! do CASCI/CASPT2(npair<=7) or DMRG-CASCI/DMRG-NEVPT2 (npair>7) when scf=.False.
! do CASSCF/CASPT2(npair<=7) or DMRG-CASSCF/DMRG-NEVPT2 (npair>7) when scf=.True.
subroutine do_mr... | {"hexsha": "ce80839458c64b9cddf052b9323b95a79922d1a3", "size": 36425, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/do_mrpt2.f90", "max_stars_repo_name": "1234zou/MOKIT", "max_stars_repo_head_hexsha": "47171b0c168212ef27281882085fbb23055c3ea3", "max_stars_repo_licenses": ["FSFAP"], "max_stars_count": 9, ... |
import numpy as np
from sEDM.deepART import deepART
from sEDM.DRN import DRN
from sEDM.SDRN import sDRN
from sEDM.data_fasttext import new_ft_dict
class EM_DRN(object):
def __init__(self):
self.numLayer = 1
# self.sdrn = sDRN()
self.drn = DRN()
self.deepArt = deepART()
def tra... | {"hexsha": "fa00966c1abeed2076fccaf260ea942d64648854", "size": 4215, "ext": "py", "lang": "Python", "max_stars_repo_path": "sEDM/em_drn.py", "max_stars_repo_name": "SAMMiCA/robot_home_service", "max_stars_repo_head_hexsha": "fa1a49346b38e6f82e7cf0c7f9c09349d956c972", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
#define IGNORE_GTEST_INCL
#include <futurehead/core_test/testutil.hpp>
#include <futurehead/crypto_lib/random_pool.hpp>
#include <futurehead/lib/config.hpp>
#include <futurehead/lib/numbers.hpp>
#include <futurehead/secure/blockstore.hpp>
#include <futurehead/secure/common.hpp>
#include <crypto/cryptopp/words.h>
#inc... | {"hexsha": "d62bbd082bd91a3533cd6aac8945a085d7682850", "size": 28922, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "futurehead/secure/common.cpp", "max_stars_repo_name": "futureheadgroup/futurehead-node", "max_stars_repo_head_hexsha": "9995fb99462c77b07a880763cbb162a41279a5da", "max_stars_repo_licenses": ["BSD-3... |
# -*- coding: utf-8 -*-#
'''
# Name: TanhAsBinaryClassifier
# Description:
# Author: super
# Date: 2020/5/22
'''
import numpy as np
import matplotlib.pyplot as plt
import sys
from HelperClass.ClassifierFunction_1_0 import *
# modified cross entropy function for tanh
def target_function2(a,y):... | {"hexsha": "63a526861a45b2f95d03e6cd415252c6e6dc4892", "size": 1264, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/LinearBinaryClassification/TanhAsBinaryClassifier.py", "max_stars_repo_name": "Knowledge-Precipitation-Tribe/Neural-network", "max_stars_repo_head_hexsha": "eac2e66cdde85b34ddf9313ce4d2b123cc... |
[STATEMENT]
lemma norm_divide: "norm (a / b) = norm a / norm b"
for a b :: "'a::{real_normed_field,field}"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. norm (a / b) = norm a / norm b
[PROOF STEP]
by (simp add: divide_inverse norm_mult norm_inverse) | {"llama_tokens": 106, "file": null, "length": 1} |
import re as _re
import numpy as _np
import pandas as _pd
from ..gn_const import J2000_ORIGIN as _J2000_ORIGIN
from .common import path2bytes
_POD_ITRF_RMS = _re.compile(r"RMS-XYZ ITRF CMP[ ]*([A-Z\d]+)[ ]+([\d\.]+)[ ]+([\d\.]+)[ ]+([\d\.]+)")
def pod_get_IC_dt(pod_out:bytes)->int:
begin = pod_out.find(b"IC Epo... | {"hexsha": "4526e7befa091e540f8c1898a4463f2cb42a50f8", "size": 1003, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/gn_lib/gn_io/pod.py", "max_stars_repo_name": "HiTMonitor/ginan", "max_stars_repo_head_hexsha": "f348e2683507cfeca65bb58880b3abc2f9c36bcf", "max_stars_repo_licenses": ["Apache-2.0"], "max_s... |
(* Title: Nominal2_Base
Authors: Christian Urban, Brian Huffman, Cezary Kaliszyk
Basic definitions and lemma infrastructure for
Nominal Isabelle.
*)
theory Nominal2_Base
imports "~~/src/HOL/Library/Old_Datatype"
"~~/src/HOL/Library/Infinite_Set"
"~~/src/HOL/Library/Multiset"
... | {"author": "goodlyrottenapple", "repo": "Nominal2-Isabelle", "sha": "214274ed6db74c19b8694fc5c8dd9cafa13b056a", "save_path": "github-repos/isabelle/goodlyrottenapple-Nominal2-Isabelle", "path": "github-repos/isabelle/goodlyrottenapple-Nominal2-Isabelle/Nominal2-Isabelle-214274ed6db74c19b8694fc5c8dd9cafa13b056a/Nominal/... |
%compute length of inflhead vector
function [data,units]=compute_inflheadmag(trx,n)
larvae=trx.exp2flies{n};
numlarvae=numel(larvae);
inflheadmag=cell(1,numlarvae);
for i=1:numlarvae
larva=larvae(i);
inflheadmag{1,i}=bsxfun(@hypot,trx(larva).xhead_mm-trx(larva).xinflection_mm,trx(larva).yhead_mm-trx(larva).... | {"author": "kristinbranson", "repo": "JAABA", "sha": "5d778a23e3e7cf272df9a89a72b1b66d94f535d7", "save_path": "github-repos/MATLAB/kristinbranson-JAABA", "path": "github-repos/MATLAB/kristinbranson-JAABA/JAABA-5d778a23e3e7cf272df9a89a72b1b66d94f535d7/perframe/larva_compute_perframe_features/compute_inflheadmag.m"} |
From iris.algebra Require Export cmra.
From iris.base_logic Require Import base_logic.
From iris.algebra Require Import local_updates.
Set Default Proof Using "Type".
Local Arguments pcore _ _ !_ /.
Local Arguments cmra_pcore _ !_ /.
Local Arguments validN _ _ _ !_ /.
Local Arguments valid _ _ !_ /.
Local Arguments cm... | {"author": "izgzhen", "repo": "iris-coq", "sha": "4a1eb8a3d20789af6265b9011939be8274da042c", "save_path": "github-repos/coq/izgzhen-iris-coq", "path": "github-repos/coq/izgzhen-iris-coq/iris-coq-4a1eb8a3d20789af6265b9011939be8274da042c/theories/algebra/csum.v"} |
"""Helper for managing appointments.
- Returns members with gap in appointments
- Returns members supported on an outdated grant
- Returns members supported on a depleted grant
- Suggests appointments to make for these members
- Suggests new appointments
"""
from copy import copy
import numpy
from date... | {"hexsha": "47097e44d494ee6a259e7afa9875d0b9b08aa5d0", "size": 14502, "ext": "py", "lang": "Python", "max_stars_repo_path": "regolith/helpers/makeappointmentshelper.py", "max_stars_repo_name": "shogho0/regolith", "max_stars_repo_head_hexsha": "a65305fb9a66484e639461b8079de6a80116c2b4", "max_stars_repo_licenses": ["CC0-... |
"""
Created on Apr 17, 2014
@author: sstober
@deprecated: replaced by scripts in run/ that use more YAML
"""
import time
import logging
import os
import numpy as np
log = logging.getLogger(__name__)
from deepthought3.experiments.ismir2014.util import load_config
from deepthought3.util.yaml_util import load_yaml_f... | {"hexsha": "97ec283778e3111ae69a8f16e6a022bba82f8a7f", "size": 10656, "ext": "py", "lang": "Python", "max_stars_repo_path": "deepthought3/.experiments/ismir2014/train_sda_mlp.py", "max_stars_repo_name": "chanhakim/deepthought", "max_stars_repo_head_hexsha": "9f5dd5c7a21da51b65d6049e7a19e29fc3a072f9", "max_stars_repo_li... |
import community
import networkx as nx
import matplotlib.pyplot as plt
from collections import OrderedDict
from lxml import etree
class Cluster:
def __print_cluster(self, partition, math_map, desc_map):
n_cluster = max(partition.values())
clusters = OrderedDict.fromkeys(range(n_cluster+1))
... | {"hexsha": "eb43f9f49877f05e7240ebd8cf3a1099bf8f49a9", "size": 1813, "ext": "py", "lang": "Python", "max_stars_repo_path": "Cluster.py", "max_stars_repo_name": "frozstone/concept", "max_stars_repo_head_hexsha": "359a386941d0752fd9ecf97edaa4e69c52952513", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max... |
import torch.utils.data as data
from PIL import Image
import os
import os.path
import numpy as np
IMG_EXTENSIONS = [
'.jpg', '.JPG', '.jpeg', '.JPEG',
'.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP',
]
def is_image_file(filename):
return any(filename.endswith(extension) for extension in IMG_EXTENSIONS)
d... | {"hexsha": "aab735d6d6bb9de206bd38b2b4aa7c20da68278b", "size": 658, "ext": "py", "lang": "Python", "max_stars_repo_path": "dataloader/sensor_data_loader.py", "max_stars_repo_name": "wpfhtl/PSMNet", "max_stars_repo_head_hexsha": "337f8d9cd3ecfffe26395450e4363428179d6f30", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
#include <iostream>
#include <boost/numeric/mtl/mtl.hpp>
int main(int, char**)
{
using namespace mtl;
typedef std::complex<double> cdouble;
const unsigned n= 8;
dense2D<cdouble> A(n, n);
A= 3.0;
dense_vector<cdouble> v(n), w(n);
for (unsigned i= 0; i < size(v); ... | {"hexsha": "42b4b8bc17b6b1e18aebf10aff22d8e3940df40f", "size": 641, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "libs/numeric/mtl/examples/rank_two_update.cpp", "max_stars_repo_name": "lit-uriy/mtl4-mirror", "max_stars_repo_head_hexsha": "37cf7c2847165d3537cbc3400cb5fde6f80e3d8b", "max_stars_repo_licenses": ["M... |
[STATEMENT]
lemma outside_in_components:
"outside S \<in> components (- S) \<longleftrightarrow> connected(outside S) \<and> outside S \<noteq> {}" (is "?lhs = ?rhs")
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. (outside S \<in> components (- S)) = (connected (outside S) \<and> outside S \<noteq> {})
[PROOF S... | {"llama_tokens": 1125, "file": null, "length": 10} |
"""
Submodules of spaces of modular forms
EXAMPLES::
sage: M = ModularForms(Gamma1(13),2); M
Modular Forms space of dimension 13 for Congruence Subgroup Gamma1(13) of weight 2 over Rational Field
sage: M.eisenstein_subspace()
Eisenstein subspace of dimension 11 of Modular Forms space of dimension 13 f... | {"hexsha": "83b962d8905bdafc45613577b935308b1bfb0ed1", "size": 4210, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/sage/modular/modform/submodule.py", "max_stars_repo_name": "bopopescu/sage", "max_stars_repo_head_hexsha": "2d495be78e0bdc7a0a635454290b27bb4f5f70f0", "max_stars_repo_licenses": ["BSL-1.0"], "... |
import base64
import json
import logging as log
import os
import numpy as np
from openff.units import unit
from parmed import Structure
from parmed.amber import AmberParm
from paprika.restraints import DAT_restraint
# https://stackoverflow.com/questions/27909658/json-encoder-and-decoder-for-complex-numpy-arrays
# ht... | {"hexsha": "c9fdc0b5c0ebb0d83755068c17442fb685018334", "size": 6488, "ext": "py", "lang": "Python", "max_stars_repo_path": "paprika/io.py", "max_stars_repo_name": "jaketanderson/pAPRika", "max_stars_repo_head_hexsha": "5376f44ee1f7a0785f712b3b6c7bfa4c698ca65e", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_co... |
# Copyright (c) 2017-2021 William Emerison Six
#
# 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, pu... | {"hexsha": "df1f02f47a319b2655225d3e381656b6d3ca2f4d", "size": 13010, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/pyMatrixStack/pyMatrixStack.py", "max_stars_repo_name": "billsix/pyMatrixStack", "max_stars_repo_head_hexsha": "5127e6201f9944aed02772469d0377c54397a081", "max_stars_repo_licenses": ["MIT"], ... |
from .models import DesignModel
from crispy_forms.layout import Submit, Layout, Field, Div, HTML, Fieldset
from crispy_forms.bootstrap import PrependedAppendedText, FormActions
from crispy_forms.helper import FormHelper
from django.core import exceptions
from django import forms
from neurodesign import generate
import ... | {"hexsha": "f49aec8ca7578373fac630d6014c34797de0a3fd", "size": 34457, "ext": "py", "lang": "Python", "max_stars_repo_path": "neuropower/apps/designtoolbox/forms.py", "max_stars_repo_name": "rwblair/neuropower-web", "max_stars_repo_head_hexsha": "5077524c117dbf403fe6651e9fb34828dddbd94d", "max_stars_repo_licenses": ["MI... |
import mmcv
import numpy as np
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from argparse import ArgumentParser
import json
def split_JSON_file(JSON_file):
"""
split one JSON file to 5 JSON file with equally size
:param JSON_file: the JSON file to be splited
:return:
... | {"hexsha": "d0c84caf5b79de4468d18a0dbc92a6607c0b0555", "size": 1623, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools/split_JSON_file.py", "max_stars_repo_name": "ShegnkaiWu/IoU-aware-single-stage-object-detector-for-accurate-localization", "max_stars_repo_head_hexsha": "67b8955eb59137590dbadc6aac45529ae945... |
import numpy as np
import tensorflow as tf
import csv
# import queue
import os
from skimage import color
os.environ['CUDA_VISIBLE_DEVICES'] = '%d' % 0
from pathlib import Path
# import itertools
import SimpleITK as sitk
# from .util_args import args
# from .mylogger import eval_logger
# import glob
imp... | {"hexsha": "c9f9319c40f661c178875e4b40b7571680c18a7d", "size": 45890, "ext": "py", "lang": "Python", "max_stars_repo_path": "medimodule/Kidney/kidney_tumor_segmentation/models/cascade_1st/run_eval_cascaded.py", "max_stars_repo_name": "daeun02/MI2RLNet", "max_stars_repo_head_hexsha": "55f32e3908dc1d5fa6100f9d9fccd23a263... |
######################################################
# functions related to computation of reduced hessian
######################################################
# Q xx' skron yy' Qt
function skron(
x::AbstractVector,
y::AbstractVector,
indRow::AbstractVector,
indCol::AbstractVector)
nRow = length(in... | {"hexsha": "9774d47f6f90f636cb91cf304330395247d41c9f", "size": 4532, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/skron.jl", "max_stars_repo_name": "mlakolar/DiffPrecTest.jl", "max_stars_repo_head_hexsha": "239bbedd9ceb8257d505d96e55f72e0e13c12e3d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1,... |
from htcondor_executor import HTCondorExecutor
import dask
import dask.array as da
import numpy as np
def test_works_as_dask_executor():
with HTCondorExecutor() as pool:
with dask.config.set(pool=pool):
x = da.sum(da.ones(5)) ** 2
y = x.compute()
assert y == 25
| {"hexsha": "fbda76b34062e23f2034abba1637d6ec1c4e7bbe", "size": 306, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_dask.py", "max_stars_repo_name": "JoshKarpel/htcondor-executor", "max_stars_repo_head_hexsha": "a2a40f55772a4391b57bc1baeb5aa66d9ca0f17d", "max_stars_repo_licenses": ["Apache-2.0"], "max... |
-- Andreas, 2015-10-28 adapted from test case by
-- Ulf, 2014-02-06, shrunk from Wolfram Kahl's report
open import Common.Equality
open import Common.Unit
open import Common.Nat
postulate
prop : ∀ x → x ≡ unit
record StrictTotalOrder : Set where
field compare : Unit
open StrictTotalOrder
module M (Key : StrictT... | {"hexsha": "49803acff2c37ffdee59ed68ee9a3a2c6fa52461", "size": 689, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "test/Succeed/Issue1035.agda", "max_stars_repo_name": "cruhland/agda", "max_stars_repo_head_hexsha": "7f58030124fa99dfbf8db376659416f3ad8384de", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
import for_mathlib.category_theory.localization.opposite
import for_mathlib.category_theory.functor_misc
import for_mathlib.category_theory.localization.products
noncomputable theory
namespace category_theory
open category
variables {C : Type*} [category C] {W : morphism_property C}
structure left_calculus_of_frac... | {"author": "joelriou", "repo": "homotopical_algebra", "sha": "697f49d6744b09c5ef463cfd3e35932bdf2c78a3", "save_path": "github-repos/lean/joelriou-homotopical_algebra", "path": "github-repos/lean/joelriou-homotopical_algebra/homotopical_algebra-697f49d6744b09c5ef463cfd3e35932bdf2c78a3/src/for_mathlib/category_theory/loc... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 4 20:31:07 2018
@author: tarasgoriachko
"""
import numpy as np
class OrthotropicMaterial:
def __init__(self, C11, C12, C13, C22, C23, C33, C44, C55, C66, rho):
self.C = self.__create_matrix_C(C11, C12, C13, C22, C23, C33, C44, C55, C6... | {"hexsha": "067a47e60a53f9cc1c2d5a41699b1fb11f96b8bd", "size": 2842, "ext": "py", "lang": "Python", "max_stars_repo_path": "py/fem/material.py", "max_stars_repo_name": "tarashor/vibrations", "max_stars_repo_head_hexsha": "fcbadd545e2a8f1ef4b4bff399b396ee5f16924b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
/*
* debug.hpp
*
* Created on: 2012-7-25
* Author: YH
*/
#ifndef DEBUG_HPP_
#define DEBUG_HPP_
#include <boost/assert.hpp>
#define ASSERT(expr) BOOST_ASSERT(expr)
#define ASSERT_MSG(expr, msg) ASSERT(expr && msg)
namespace matrix {
namespace base {
template<class F>
void debugInvoke(F& f) {... | {"hexsha": "04c1cc0e42f9b47323b469c1e81b9ce191da0fd5", "size": 431, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/matrix/base/debug.hpp", "max_stars_repo_name": "sy-yanghuan/Matrix", "max_stars_repo_head_hexsha": "d6a08bc68687fd76242fdcb8c6a186f63451e145", "max_stars_repo_licenses": ["Apache-2.0"], "max_star... |
"""
@author: Yuhao Cheng
@contact: yuhao.cheng[at]outlook.com
"""
#!!!!! ignore the warning messages
import warnings
warnings.filterwarnings('ignore')
import os
import pickle
import math
import torch
import time
import numpy as np
from PIL import Image
from collections import OrderedDict
import torchvis... | {"hexsha": "2935a7e2d3eb685fb88a69552cc82b8ff14462bd", "size": 8319, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyanomaly/core/engine/functions/ma.py", "max_stars_repo_name": "sourcery-ai-bot/PyAnomaly", "max_stars_repo_head_hexsha": "c92cec86e4d31daabe8b336fa7067e3b0bb7ca89", "max_stars_repo_licenses": ["A... |
#!/usr/bin/python3
import numpy as np
import scipy.constants as consts
from scipy.constants import physical_constants as pc
from scipy.constants import pi
import sys
e_mc2 = pc["electron mass energy equivalent in MeV"][0] * 1e3 # keV now
print('electron rest mass energy %.4f keV' % e_mc2)
re = pc["classical electron ... | {"hexsha": "f0a0e78c44ec9811dff5871e3c8a948cc3f061bb", "size": 6153, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/compton.py", "max_stars_repo_name": "ryancoffee/2dtimetool_simulation", "max_stars_repo_head_hexsha": "4ca4b585f35a04e81111a67c5bf6aaef931ee03c", "max_stars_repo_licenses": ["BSD-3-Clause"], "... |
from imutils.perspective import four_point_transform
from skimage.filters import threshold_local
import numpy as np
import argparse as ap
import cv2 as cv
import imutils
ag = ap.ArgumentParser()
ag.add_argument("-i", "--image", required = True,
help = "Path to the image to be scanned")
args = vars(ag.parse_args())
i... | {"hexsha": "7098af44235a113004c82e0cd1fc94dc40849131", "size": 1455, "ext": "py", "lang": "Python", "max_stars_repo_path": "scan.py", "max_stars_repo_name": "aprilove/OpenCV-Practice", "max_stars_repo_head_hexsha": "d9253c79a089f036743c3cbeee617343c29fbe19", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ... |
import time
import random
from scipy.spatial import distance
def portions(x, y):
return x, float(x)/(x+y), y, float(y)/(x+y)
def get_window_size(data_size, percentage=0.10):
""" To get size of window based on required percentage. """
result = None
part = data_size * percentage
if part < 1:
... | {"hexsha": "e212f97c3781f50c94313ccd2ee7239f522b5689", "size": 6496, "ext": "py", "lang": "Python", "max_stars_repo_path": "trader/libs/utils.py", "max_stars_repo_name": "ptro-development/trader", "max_stars_repo_head_hexsha": "084a5c58351e8d7fb55d772ac030a91af940e4c6", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
subsection \<open>The Bellman-Ford Algorithm\<close>
theory Bellman_Ford
imports
"HOL-Library.Extended"
"HOL-Library.IArray"
"HOL-Library.Code_Target_Numeral"
"HOL-Library.Product_Lexorder"
"HOL-Library.RBT_Mapping"
"../state_monad/State_Main"
"../heap_monad/Heap_Main"
Example_Misc
... | {"author": "data61", "repo": "PSL", "sha": "2a71eac0db39ad490fe4921a5ce1e4344dc43b12", "save_path": "github-repos/isabelle/data61-PSL", "path": "github-repos/isabelle/data61-PSL/PSL-2a71eac0db39ad490fe4921a5ce1e4344dc43b12/SeLFiE/Example/afp-2020-05-16/thys/Monad_Memo_DP/example/Bellman_Ford.thy"} |
# -*- coding: utf-8 -*-
""" Create a stack plot displaying the abundances of each cell type in the
population over time.
"""
__author__ = "Brian Connelly <bdc@bconnelly.net>"
__credits__ = "Brian Connelly"
import csv
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy
import random
from seeds.Acti... | {"hexsha": "65d4ec30f7a24b877d5ada86f2f0bcb66b89d71b", "size": 3421, "ext": "py", "lang": "Python", "max_stars_repo_path": "contrib/actions/PlotCellTypeStack.py", "max_stars_repo_name": "briandconnelly/seeds", "max_stars_repo_head_hexsha": "a114ac66e62a960e18127faf52cff9e48831e212", "max_stars_repo_licenses": ["Apache-... |
%!TEX program = xelatex
\documentclass[12pt,a4paper]{article}
\usepackage{xeCJK}
\usepackage{amsmath}
\setCJKmainfont{STSongti-SC-Regular}
\usepackage{setspace}
\usepackage{caption}
\usepackage{graphicx, subfig}
\usepackage{float}
\usepackage{listings}
\usepackage{booktabs}
\begin{document}
\title{homework3}
\aut... | {"hexsha": "37301a4b04c0927299a1667f90971f24b049fb36", "size": 6590, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Latex/HW3/HW3.tex", "max_stars_repo_name": "c235gsy/Sustech_Mathematical-Modeling", "max_stars_repo_head_hexsha": "e2187b3d181185af4927255c50b4c08ba2a5fb3e", "max_stars_repo_licenses": ["MIT"], "max... |
# -*- coding: utf-8 -*-
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as p
import numpy as n
import pylab
import scipy.stats as stats
import networkx as nwx
import glob
import builtins
from matplotlib.pyplot import margins
import os.path
import json
font = {'family' : 'normal',
'weight' : '... | {"hexsha": "830c71a5382e3d1bd282b234fe8e859dd09d5d4b", "size": 4745, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/main/resources/scripts/plot.py", "max_stars_repo_name": "pbloem/motive", "max_stars_repo_head_hexsha": "5423f12c3fca8e72d2e558710da3223dc75ab8ef", "max_stars_repo_licenses": ["MIT"], "max_star... |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C C
C Copyright (C) 1995 C
C University Corporation for Atmospheric Research C
C ... | {"hexsha": "aa4e757fcff95d726404f0a6bb8ca08bda881754", "size": 7512, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ni/src/examples/mapplot/mp04f.f", "max_stars_repo_name": "tenomoto/ncl", "max_stars_repo_head_hexsha": "a87114a689a1566e9aa03d85bcf6dc7325b47633", "max_stars_repo_licenses": ["Apache-2.0"], "max_s... |
#include <iostream>
#include <boost/asio/io_service.hpp>
int main()
{
std::cout << "Program started" << std::endl;
boost::asio::io_service service;
service.post([]{std::cout << "Hello World!" << std::endl;});
service.post([]{std::cout << "1" << std::endl;});
service.post([]{std::cout << "2" << std... | {"hexsha": "4428c2a5dc160ff893564c26e6881c800b464b05", "size": 472, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "Boost/AsioPostTask/main.cpp", "max_stars_repo_name": "ilyayunkin/CppSandbox", "max_stars_repo_head_hexsha": "b03fd84462faa16b6c3ca03c1639fcbe0be361cf", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
Subroutine newcre(i, k)
Implicit Double Precision (A-H, O-Z)
Parameter (maxptn=400001)
Common /ilist1/iscat, jscat, next(maxptn), last(maxptn), ictype, icsta(maxptn), nic(maxptn), icels(maxptn)
Save
If (k==0) Then
k = i
nic(i) = 0
Else If (nic(k)==0) Then
nic(k) = i
nic(i) = k
Else
... | {"hexsha": "dcf2fb0127adf177f52a50e9c65ee471822ae507", "size": 457, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/newcre.f90", "max_stars_repo_name": "xiaohaijin/AMPT", "max_stars_repo_head_hexsha": "90c7a1ab4dc04a092e64af759d53e22f6fea5b02", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "max... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
An implementation of critic,
"""
import tensorflow as tf
import copy as cp
import numpy as np
from stable_baselines.common import tf_util
LAYER1 = 64
LAYER2 = 64
EVAL_SCOPE = 'eval_lower_critic'
TARGET_SCOPE = 'target_lower_critic'
INIT_WEIGHT = tf.random_uniform_init... | {"hexsha": "e3e3f109cb74d8b131c04268ec6e8aa76be4fcfd", "size": 17306, "ext": "py", "lang": "Python", "max_stars_repo_path": "stable_baselines/oc/LCritic.py", "max_stars_repo_name": "hzm2016/stable-baselines-option-critic", "max_stars_repo_head_hexsha": "02935592d7bceb77b49bd6deef836c67a23e408b", "max_stars_repo_license... |
[STATEMENT]
lemma Suc_ile_eq: "eint (m +1) \<le> n \<longleftrightarrow> eint m < n"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. (eint (m + 1) \<le> n) = (eint m < n)
[PROOF STEP]
by (cases n) auto | {"llama_tokens": 97, "file": "Padic_Ints_Extended_Int", "length": 1} |
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import time
import numpy as np
import tensorflow as tf
from tqdm import tqdm
from keras.preprocessing.sequence import pad_sequences
# In[2]:
with open("test.conll.txt") as fopen:
corpus = fopen.read().split("\n")
with open("dev.conll.txt") as fopen:
corpus... | {"hexsha": "ca78d6cf0768e5f05d97dc56bb2fc7efc99151dd", "size": 10987, "ext": "py", "lang": "Python", "max_stars_repo_path": "mlmodels/model_tf/misc/tf_nlp/dependency-parser/2.birnn-luong.py", "max_stars_repo_name": "gitter-badger/mlmodels", "max_stars_repo_head_hexsha": "f08cc9b6ec202d4ad25ecdda2f44487da387569d", "max_... |
[STATEMENT]
lemma len_empty_on_subview2:
"\<parallel>len v ts c\<parallel> = 0 \<and> (v=v1\<parallel>v2) \<longrightarrow> \<parallel>len v2 ts c\<parallel> = 0"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<parallel>len v ts c\<parallel> = 0 \<and> v=v1\<parallel>v2 \<longrightarrow> \<parallel>len v2 ts c\<p... | {"llama_tokens": 9019, "file": "Hybrid_Multi_Lane_Spatial_Logic_Length", "length": 65} |
# -*- coding:utf-8 -*-
# @Author zpf
"""
Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the average gray scale (rounding down) of all the 8 surrounding cells and itself. If a cell has less than 8 surrounding cells, then use... | {"hexsha": "8398a4b4e1bf03ce4ab7ac6920d1c781e866d83e", "size": 2729, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/ImageSmoother.py", "max_stars_repo_name": "Vonzpf/LeetCode", "max_stars_repo_head_hexsha": "aef77124918880b55e704c209dbf852bd19e3379", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
#!/usr/bin/env python3
from collections import defaultdict
import json
import logging
import numpy as np
import os
import pandas as pd
import dash_core_components as dcc
import plotly.express as px
import plotly.graph_objs as go
import plotly.figure_factory as ff
from plotly.subplots import make_subplots
from scipy.cl... | {"hexsha": "59dba67764b5a1cd88fd5102b97ac59059a4a695", "size": 136416, "ext": "py", "lang": "Python", "max_stars_repo_path": "helpers/plotting.py", "max_stars_repo_name": "FredHutch/glam-browser-v2", "max_stars_repo_head_hexsha": "2a307b3b1367e9eaf3fc32bdea9d83ad15dbd13d", "max_stars_repo_licenses": ["BSD-3-Clause"], "... |
import numpy as np
class Vector:
def __str__(self) -> str:
if self.z == 0:
return f"({self.x}, {self.y})"
else:
return f"({self.x}, {self.y}, {self.z})"
def __init__(self, x, y, z=0) -> None:
self.x = x
self.y = y
self.z = z
def vector2(se... | {"hexsha": "36b6ab8732806b659f5d091a142b718732ebbec8", "size": 572, "ext": "py", "lang": "Python", "max_stars_repo_path": "vectors.py", "max_stars_repo_name": "osama1998H/python-labs-part2", "max_stars_repo_head_hexsha": "9687a5cc81fbbacaaa51923a803cae5409304014", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
import itertools
import multiprocessing
import os
import typing
import matplotlib.gridspec
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scipy.stats
from pyextremes import EVA
from pyextremes.extremes import ExtremesTransformer, get_extremes
from pyextremes.plotting import pyextremes_r... | {"hexsha": "a8aaec6b9ab495755f89633b61ab4670de340d02", "size": 20907, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/pyextremes/tuning/threshold_selection.py", "max_stars_repo_name": "elicharlese/pyextremes", "max_stars_repo_head_hexsha": "efcf342df0116e68b88cd1ad0c0f0dd07f9e30ae", "max_stars_repo_licenses"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.