text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
[STATEMENT] lemma SA_one_not_zero: shows "\<one>\<^bsub>SA n\<^esub> \<noteq> \<zero>\<^bsub> SA n\<^esub>" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<one>\<^bsub>SA n\<^esub> \<noteq> \<zero>\<^bsub>SA n\<^esub> [PROOF STEP] proof- [PROOF STATE] proof (state) goal (1 subgoal): 1. \<one>\<^bsub>SA n\<^esub>...
{"llama_tokens": 1261, "file": "Padic_Field_Padic_Semialgebraic_Function_Ring", "length": 11}
import numpy as np import statsmodels.api as sm import pywt from pykalman import KalmanFilter class DPODenoising: def __init__(self, method='wavelet'): self.method = method def denoise(self, X, *args): if self.method == 'wavelet': if len(args): return DPO_wavelet(...
{"hexsha": "95af65f8d7a8172b94e244e056042465c43e82ec", "size": 3925, "ext": "py", "lang": "Python", "max_stars_repo_path": "DPO/DataProcess/DataDenosing/Denoising.py", "max_stars_repo_name": "xuyuanjian/Dynamic-Portfolio-Optimization", "max_stars_repo_head_hexsha": "83c744d7914fa0965595e75797760c9eb4e87772", "max_stars...
#include "fileformats/vcf/Entry.hpp" #include "fileformats/vcf/Header.hpp" #include "fileformats/vcf/VariantAdaptor.hpp" #include "io/InputStream.hpp" #include <boost/assign/list_of.hpp> #include <functional> #include <sstream> #include <stdexcept> #include <string> #include <vector> #include <gtest/gtest.h> using b...
{"hexsha": "dc7a5a0e4891c53081f4cb77706008a4310f3b7d", "size": 16208, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "adjusted_files/TestVcfEntry.cpp", "max_stars_repo_name": "steepale/Docker_MuSiC2", "max_stars_repo_head_hexsha": "d8684ba08e3da7ebc8702699c5286c35b1a9aec2", "max_stars_repo_licenses": ["MIT"], "max...
""" This contains the unit tests for the build_training module. """ from __future__ import print_function import unittest from Parser import build_training as bt from copy import deepcopy import numpy as np try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict """...
{"hexsha": "9f150f480dac43f6b166615ead29b9320bd332f3", "size": 8051, "ext": "py", "lang": "Python", "max_stars_repo_path": "bcml/Parser/tests/build_training_tests.py", "max_stars_repo_name": "sandialabs/BioCompoundDB", "max_stars_repo_head_hexsha": "8220e90544f43159843fa26758dc5a1333562fa7", "max_stars_repo_licenses": ...
from __future__ import division from OSMPythonTools.nominatim import Nominatim from OSMPythonTools.overpass import overpassQueryBuilder, Overpass from pprint import pprint import shapely.geometry as sgeom import matplotlib.pyplot as plt import cartopy.crs as ccrs from cartopy.io.shapereader import Reader import carto...
{"hexsha": "b7ed4511b1fe169c5c1f245b06d7617ce047f39b", "size": 23165, "ext": "py", "lang": "Python", "max_stars_repo_path": "openstreetmap-scraper/osm_256.py", "max_stars_repo_name": "espoo-urban-planning/urbanplanningGAN", "max_stars_repo_head_hexsha": "e921211b7a9f9f02d16e8f14ea29bf81139886c2", "max_stars_repo_licens...
using MittagLefflerFunctions using PyPlot using Polynomials x = range(0, 10, length=201) α_vals = [0.2, 0.4, 0.6, 0.8, 1.0] figure(1) r = 5 m = r+1 n = r style = ("-", "--", ":", "-.", "-") for row = 1:length(α_vals) α = α_vals[row] Eα_approx = MLPade(α, 1.0, m, n, :svd) Eα_ref = MLQuad(α, 1.0, 14, :hyper...
{"hexsha": "2ee125fa910ffbe56eeb58d698fba7398f3f6dbb", "size": 749, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "examples/figure_10.jl", "max_stars_repo_name": "billmclean/MittagLefflerFunctions.jl", "max_stars_repo_head_hexsha": "5244e7fce7efeee160edfc76eb7cab5e7624ae8e", "max_stars_repo_licenses": ["MIT"], "...
import pytest import zarr import numpy as np @pytest.fixture(scope="session") def ds_args(): shape = (32, 32, 32) chunks = (16, 16, 16) size = np.product(shape) repeats = size // 256 data = np.concatenate((np.arange(256, dtype="uint8"),) * repeats).reshape(shape) return {"data": data, "chunks"...
{"hexsha": "4a5b501da3834a99ae5b1b560b75ab0c90218636", "size": 916, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/conftest.py", "max_stars_repo_name": "clbarnes/scale_pyramid", "max_stars_repo_head_hexsha": "4af7ca7f77672365d1308c525c0b8d75a379749a", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
/* * Copyright 2016-2021 Internet Corporation for Assigned Names and Numbers. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at https://mozilla.org/MPL/2.0/. */ /* * Developed by Sinodun IT ...
{"hexsha": "fcecc3c7c11d9c14960b9d3fa7aa8392d67ad658", "size": 33706, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/capturedns.hpp", "max_stars_repo_name": "dns-stats/dns-stats-compactor", "max_stars_repo_head_hexsha": "8f4c9b8614e5da40f51f028de40f113ec4bcb27f", "max_stars_repo_licenses": ["BSD-3-Clause"], "...
# 順列計算に使用 import itertools import time import wave as wave import librosa import numpy as np import pyroomacoustics as pa import scipy as scipy import scipy.signal as sp def resample_signals(conv_data, sro): print(f"sample rate: {sample_rate}") print(f"resample rate: {sample_rate * (1+sro)}") ...
{"hexsha": "5ea289762c374a8568cb71b71e0f1c39c072d9a6", "size": 17323, "ext": "py", "lang": "Python", "max_stars_repo_path": "section8/sample_code_c8_2.py", "max_stars_repo_name": "i14kwmr/python_source_separation", "max_stars_repo_head_hexsha": "572cb9401e2f1a8324bf04cb402613e141c00709", "max_stars_repo_licenses": ["MI...
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import math import numpy as np from nets import SCNN, DENSECNN class SiameseNetwork(nn.Module): def __init__(self, keep_prob=0.2, num_channels=1, learning_rate=1e-3, tom_size=32, network_type='scnn'): su...
{"hexsha": "a85c96e88d7156b16ce440c00e1cb763484aeb10", "size": 1776, "ext": "py", "lang": "Python", "max_stars_repo_path": "models.py", "max_stars_repo_name": "bbbbbbzhou/COS-Net", "max_stars_repo_head_hexsha": "5929ccb712de1fc48c496b02d32f3289506fc444", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_st...
from napari.layers import Labels import numpy as np from .skeleton_utils import make_points_data class SkeletonPruner(): def __init__(self, viewer): self._viewer = viewer self._skeleton_layer = '' self._points_layer = None self._curating = False self._selected_branches = ...
{"hexsha": "4d94a7d591a6d4de602540f338e6c06685abe39f", "size": 6863, "ext": "py", "lang": "Python", "max_stars_repo_path": "splineslicer/skeleton/skeleton_pruner.py", "max_stars_repo_name": "haesleinhuepf/splineslicer", "max_stars_repo_head_hexsha": "3f27b5b1040ef5c9b8c30c5fb923a7753afe1233", "max_stars_repo_licenses":...
import sys import json import numpy from matplotlib import pyplot if len(sys.argv) != 2: print "Useage: ", sys.argv[0], " data_file" with open(sys.argv[1]) as f: data = json.load(f) energies = data["energy"]
{"hexsha": "97f6c2d3e3a3021e8c7934caddf4f3b9c52dd552", "size": 220, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/statistics.py", "max_stars_repo_name": "yangqi137/mcprocess", "max_stars_repo_head_hexsha": "52f9864902b22cf07e384e0568cf4c60c6f348e7", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
c--------------------------------------------------------------------- c--------------------------------------------------------------------- subroutine setup_btio c--------------------------------------------------------------------- c--------------------------------------------------------------------- ...
{"hexsha": "1fb730b1f6517c021fd6bd9c2f34fd48be15c7dc", "size": 2158, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "validation_tests/NPB3.1/BT/btio.f", "max_stars_repo_name": "brugger1/testsuite", "max_stars_repo_head_hexsha": "9b504db668cdeaf7c561f15b76c95d05bfdd1517", "max_stars_repo_licenses": ["MIT"], "max_...
from __future__ import annotations import sympy def jump_search(array: list[float], target: float) -> int: length = len(array) index = 0 _index = sympy.floor(sympy.sqrt(length)) while array[min(_index, length) - 1] < target: index = _index _index += sympy.floor(sympy.sqrt(length)) ...
{"hexsha": "05e10002088bfd53a7abb59793a66a4423f0f6d0", "size": 553, "ext": "py", "lang": "Python", "max_stars_repo_path": "algorithms/search/jump_search.py", "max_stars_repo_name": "Pysics/Algorithm", "max_stars_repo_head_hexsha": "223f618e3e6d96e15091783b81b90ee00c771e8f", "max_stars_repo_licenses": ["MIT"], "max_star...
[STATEMENT] lemma mult_rat_1: fixes x assumes y: "invariant_1 y" defines z: "z \<equiv> mult_rat_1 x y" shows "invariant_2 z \<and> (real_of_2 z = of_rat x * real_of_1 y)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. invariant_2 z \<and> real_of_2 z = real_of_rat x * real_of_1 y [PROOF STEP] proof (cases y) ...
{"llama_tokens": 4359, "file": "Algebraic_Numbers_Real_Algebraic_Numbers", "length": 36}
[GOAL] Fq F : Type inst✝⁹ : Field Fq inst✝⁸ : Field F Fqt : Type u_1 inst✝⁷ : Field Fqt inst✝⁶ : Algebra Fq[X] Fqt inst✝⁵ : IsFractionRing Fq[X] Fqt inst✝⁴ : Algebra (RatFunc Fq) F inst✝³ : Algebra Fqt F inst✝² : Algebra Fq[X] F inst✝¹ : IsScalarTower Fq[X] Fqt F inst✝ : IsScalarTower Fq[X] (RatFunc Fq) F ⊢ FunctionFie...
{"mathlib_filename": "Mathlib.NumberTheory.FunctionField", "llama_tokens": 15303}
#!/usr/bin/env python import numpy as np import xarray as xr import pandas as pd import sqlite3 as sql from datetime import datetime, timedelta from dateutil.parser import parse from scipy import io, interpolate import sys def mtime_to_datetime(mtime): """Convert from Matlab time to datetime.datetime """ ...
{"hexsha": "3b6bc6a4052606ffe59807aa80fa4b792d1bd7e4", "size": 9227, "ext": "py", "lang": "Python", "max_stars_repo_path": "notebooks/graham/process_NEMO_drifters.py", "max_stars_repo_name": "SalishSeaCast/analysis-ben", "max_stars_repo_head_hexsha": "5302317378a938e1712933b69844348cb3f2a3d9", "max_stars_repo_licenses"...
import numpy as np def binary_cross_entropy(y_predict, y_actual): loss = -(y_actual*np.log(y_predict) + (1-y_actual)*np.log(1-y_predict)) return loss def categorical_cross_entropy(x, theta_array): sigmoid = 1/(1+np.exp(-np.dot(x.transpose(), theta_array))) return sigmoid def rmse(x, theta_array, y): ...
{"hexsha": "94a9344b921ea244a14ab3de1bd196d6bb5bb083", "size": 556, "ext": "py", "lang": "Python", "max_stars_repo_path": "mlscratch/loss_functions.py", "max_stars_repo_name": "BoPengGit/Machine-Learning-from-Scratch", "max_stars_repo_head_hexsha": "339c74f4e5e0dfb49cf355e9ca013fca1fd5b024", "max_stars_repo_licenses": ...
""" evaluate finite difference derivatives to arbitrary order """ import numpy import scipy.misc def central_difference(fun, arg, step=0.01, nder=1, npts=None): """differentiate a function using central differences :param fun: the function :type fun: typing.Callable :param arg: the point at which to e...
{"hexsha": "b8c23ba3926ff268f2b93263afe16ad26dd3d4a9", "size": 1344, "ext": "py", "lang": "Python", "max_stars_repo_path": "automol/embed/_findif.py", "max_stars_repo_name": "snelliott/automol", "max_stars_repo_head_hexsha": "d1f7d51c1bbe06ba7569ea7c75304618cebee198", "max_stars_repo_licenses": ["Apache-2.0"], "max_sta...
# Copyright (c) 2016-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
{"hexsha": "f7a40770b923b5f2d18483b42e5c26652a0d8422", "size": 2236, "ext": "py", "lang": "Python", "max_stars_repo_path": "caffe2/python/operator_test/mod_op_test.py", "max_stars_repo_name": "freedomtan/caffe2", "max_stars_repo_head_hexsha": "e1f614a5f8ae92f4ecb828e1d5f84d2cd1fe12bd", "max_stars_repo_licenses": ["Apac...
@testset "Fit2B" begin include("test_fit2b.jl") end @testset "Fit3B" begin include("test_fit3b.jl") end
{"hexsha": "cb190ae28c49a53ab9ee416e41b31d00233e48a9", "size": 105, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/test_fit.jl", "max_stars_repo_name": "andresrossb/IPFitting.jl", "max_stars_repo_head_hexsha": "87dbe63fe8688b821a21aaf452dd50eda905632d", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
const δθ = π / 18 const π_third = π / 3 const π_fourth = π / 4 const π_sixth = π / 6 """ η_B(θ_B::Real, θ_crit::Real) Calculate B angle dependent efficiency component following Pais et. al. 2018, eq. 7, https://arxiv.org/pdf/1805.00128.pdf """ @inline function η_B(θ_B::Real, θ_crit::Real) (tanh((θ_crit - θ_B)...
{"hexsha": "c044b9efaf0ea659f3ac9ff83a377fe0c83b5fa6", "size": 1033, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/B_models/pais.jl", "max_stars_repo_name": "LudwigBoess/DSAModels.jl", "max_stars_repo_head_hexsha": "54193cea86fd7353b5357347d9cbc5ef98e239a2", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
#=========================================================================== # # Command line processing # #=========================================================================== import argparse import numpy as np from .. import broker from . import config from . import start #===================================...
{"hexsha": "23596ff33ecaf2d2dc6fd18cacb4022c00c7e263", "size": 1745, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/tHome/weatherUnderground/cmdLine.py", "max_stars_repo_name": "ZigmundRat/T-Home", "max_stars_repo_head_hexsha": "5dc8689f52d87dac890051e540b338b009293ced", "max_stars_repo_licenses": ["BSD-...
import os import cv2 import torch from torch.utils.data.dataset import Dataset from pycocotools.coco import COCO import numpy as np class CocoDataset(Dataset): """ train mode: :return: image: (H, W, C) numpy array multi_mask: a map records masks. e.g. [[0, 1, 1, 0], ...
{"hexsha": "afa102f5e9672c7bd971554ac249bd33c97ec616", "size": 5942, "ext": "py", "lang": "Python", "max_stars_repo_path": "loader/coco/dataset.py", "max_stars_repo_name": "shawnau/mask_rcnn_pytorch", "max_stars_repo_head_hexsha": "0890fc276612ea4d78c7d5fa62f1f45edbf15289", "max_stars_repo_licenses": ["MIT"], "max_star...
% eegplugin_iirfilt() - EEGLAB plugin for importing data using IIRFILT Matlab toolbox % % Usage: % >> eegplugin_iirfilt(fig, trystrs, catchstrs); % % Inputs: % fig - [integer] EEGLAB figure % trystrs - [struct] "try" strings for menu callbacks. % catchstrs - [struct] "catch" strings for menu callbac...
{"author": "PatternRecognition", "repo": "OpenBMI", "sha": "3c42e609d5b867a8e15c780df3f8b0a8b86edcb8", "save_path": "github-repos/MATLAB/PatternRecognition-OpenBMI", "path": "github-repos/MATLAB/PatternRecognition-OpenBMI/OpenBMI-3c42e609d5b867a8e15c780df3f8b0a8b86edcb8/PR_BCI_team/Team_EarEEG/ear-EEG connecting/extern...
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np # import pac # import pac_simplified as pac from icecream import ic class PPM(nn.Module): def __init__(self, in_dim, reduction_dim, bins): super(PPM, self).__init__() self.feat...
{"hexsha": "23517223142b4dacf966bd82a2b427d738781322", "size": 12945, "ext": "py", "lang": "Python", "max_stars_repo_path": "train/models_def/models_brdf.py", "max_stars_repo_name": "ntaagarwal/indoorInverse", "max_stars_repo_head_hexsha": "b26e2ec0a772c3bf99a695daaa3c1bff5b353708", "max_stars_repo_licenses": ["MIT"], ...
import matplotlib.pyplot as plt import numpy as np plt.rcParams["figure.figsize"] = (20, 8) POWER_L = int(input("POWER: ") or "0") RATE_P = int(input("RATE: ") or "50") PACKETS = int(input("PACKETS: ") or "2500") MIN_RSSI = -100 MAX_RSSI = -10 BIN_PORTION = PACKETS / 10 BINS = [i * BIN_PORTION for i in range(11)] S...
{"hexsha": "8a1af6b5053dc3fb2f076c4118121419c1bd8309", "size": 4500, "ext": "py", "lang": "Python", "max_stars_repo_path": "padmal/_Log/plot.py", "max_stars_repo_name": "CloudyPadmal/Phantom-Contiki", "max_stars_repo_head_hexsha": "c1f0e53cb1aaaa946c36f2d1dc72499875c35f5b", "max_stars_repo_licenses": ["BSD-3-Clause"], ...
""" Chirp CWT with Ricker ======================= In this example, we analyze a chirp signal with a Ricker (a.k.a. Mexican Hat wavelet) """ # Configure JAX to work with 64-bit floating point precision. from jax.config import config config.update("jax_enable_x64", True) # %% # Let's import necessary libraries impo...
{"hexsha": "aae0e362a38f56ce2cc7a1385f0822cd2db7ed86", "size": 2823, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/wavelets/chirp_cwt_mexh.py", "max_stars_repo_name": "carnot-shailesh/cr-sparse", "max_stars_repo_head_hexsha": "989ebead8a8ac37ade643093e1caa31ae2a3eda1", "max_stars_repo_licenses": ["Apa...
#ifndef HISTORY_H #define HISTORY_H #include"objects.hpp" #define BOOST_CB_DISABLE_DEBUG #include <boost/circular_buffer.hpp> #include <vector> class Process; class ProcessStack; class GenericTraverser; /* * Wrapper around Process, converts history information */ class History { private: ProcessStack& stack; ...
{"hexsha": "5dc9c679af9e412a53eff87cf6080fcf22db148a", "size": 962, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "inc/history.hpp", "max_stars_repo_name": "AmkG/hl", "max_stars_repo_head_hexsha": "8695e75389254fe881a6067ecebc70219d7dc7ff", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2.0, "max_stars_re...
import itertools import queue import numpy as np import pandas as pd from scipy.spatial import distance from psychopy import visual, event from psychopy.tools.monitorunittools import pix2deg try: import pylink from pylink import EyeLinkCustomDisplay have_pylink = True except ImportError: have_pylink = ...
{"hexsha": "4aaa018814d39c76d919d201dc9aded804553541", "size": 13167, "ext": "py", "lang": "Python", "max_stars_repo_path": "visigoth/eyetracker.py", "max_stars_repo_name": "mwaskom/visigoth", "max_stars_repo_head_hexsha": "29e59f7b0a0cc7d9ae2ad52e492d1786ee563a34", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta...
#!/usr/bin/env python3 # note: there most likely exist unused imports which haven't been removed as they have no effects on the collected data from __future__ import print_function import argparse import os import subprocess import traceback import tempfile import shutil import json from glob import glob from collect...
{"hexsha": "5034e7d4aa54f175e6712787f19e428590b11d18", "size": 3163, "ext": "py", "lang": "Python", "max_stars_repo_path": "attacking_anti_tamper/evaluation/time_execution.py", "max_stars_repo_name": "tum-i4/dta-vs-osc", "max_stars_repo_head_hexsha": "b39f4d4eb6ffea501025fc3e07622251c2118fe0", "max_stars_repo_licenses"...
# from numba import jit, prange from random import randint import pygame from pygame.locals import QUIT, Rect from yaml import safe_load import launcher class GameOfLife: def __init__(self, width=500, height=500, cell_size=10, speed=10, cell_color='black'): self.width = width ...
{"hexsha": "d1f73512a083c6a62d8c03e5b98a89f287ac6a3e", "size": 4945, "ext": "py", "lang": "Python", "max_stars_repo_path": "game.py", "max_stars_repo_name": "renmans/celldiv", "max_stars_repo_head_hexsha": "2582d1dcc82c1d147811254bde4e3d336295e1a1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_star...
# -*- coding: utf-8 -*- import xml.etree.cElementTree as ET from libs.label_name_dict.label_dict import * import numpy as np from libs.box_utils.cython_utils.cython_bbox import bbox_overlaps import os import cv2 def read_xml_gtbox_and_label(xml_path): """ :param xml_path: the path of voc xml :return: a li...
{"hexsha": "0a1d247b1c0efce35fad33ff8b89366448ab4e52", "size": 5107, "ext": "py", "lang": "Python", "max_stars_repo_path": "FPN_Tensorflow_Rotation/help_utils/box_cluster.py", "max_stars_repo_name": "zytx121/DOTA-DOAI", "max_stars_repo_head_hexsha": "39857182f686d8ccf3ea2f1204b473118fd3ecf5", "max_stars_repo_licenses":...
#!/usr/bin/python # -*- coding: utf-8 -*- ##################################### ### CIS SLOT FILLING SYSTEM #### ### 2014-2015 #### ### Author: Heike Adel #### ##################################### from __future__ import unicode_literals import codecs, sys reload(sys) sys.setdefaulte...
{"hexsha": "778fce71a07d49b3580a4769948361f158133525", "size": 23406, "ext": "py", "lang": "Python", "max_stars_repo_path": "eval_CS2015.py", "max_stars_repo_name": "heikeadel/slot_filling_system", "max_stars_repo_head_hexsha": "2ba9cd6d72dbaaf6d86ee2b0caa76eb9e64619e7", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
context("Data frames") test_that("results ordered in order of split variables", { d <- data.frame(x = c("a","b"), y = c("d","c"), stringsAsFactors = FALSE) plyed <- ddply(d, c("x" ,"y")) expect_that(plyed$x, equals(c("a", "b"))) expect_that(plyed$y, equals(c("d", "c"))) plyed <- ddply(d, c("y" ,"x")) ex...
{"hexsha": "89efa40e16450fb6f8b278ad3997f71e0e8e52eb", "size": 2850, "ext": "r", "lang": "R", "max_stars_repo_path": "source/gdaexperience6/plyr/tests/testthat/test-data-frame.r", "max_stars_repo_name": "lalaithan/developer-immersion-data", "max_stars_repo_head_hexsha": "b48d291ad5a03d56c0228d00e0b290b638d50194", "max_...
""" This class uses matrix least squares analysis for circular weighing measurement sequences For more information, see 'A General Approach to Comparisons in the Presence of Drift' Some outputs available within this class: - The design matrices, expected values, and variance-covariance matrix - Estimates of ite...
{"hexsha": "f970e6bdc1f392aeb2dc0fb2e7af83f8d1820fb7", "size": 9571, "ext": "py", "lang": "Python", "max_stars_repo_path": "mass_circular_weighing/routine_classes/circ_weigh_class.py", "max_stars_repo_name": "MSLNZ/Mass-Circular-Weighing", "max_stars_repo_head_hexsha": "f144158b9e2337d7e9446326d6927e1dd606ed38", "max_s...
# Copyright 2022 The jax3d Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
{"hexsha": "87452495edd7960074003fced4eb3f3cc8a9cdcc", "size": 16200, "ext": "py", "lang": "Python", "max_stars_repo_path": "jax3d/projects/nesf/nerfstatic/train_semantic_lib.py", "max_stars_repo_name": "google-research/jax3d", "max_stars_repo_head_hexsha": "f08ae174c80cd6c597f8fe5417168c82857eb236", "max_stars_repo_li...
import os import numpy as np import matplotlib as mpl mpl.use("pgf") general_fontsize = 16 custon_pgf_rcparams = { "font.family": 'serif', "font.serif": 'cm', 'font.size': general_fontsize, 'xtick.labelsize': general_fontsize, 'ytick.labelsize': general_fontsize, 'axes.labelsize': general_fonts...
{"hexsha": "f06f404262e51c27f03a5bc0601a957194d9b430", "size": 5196, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/figure_scripts/figure_3_3_lv_explain.py", "max_stars_repo_name": "awakenting/master-thesis", "max_stars_repo_head_hexsha": "d612c3b240b2d7325cac6fbf9c85c3d81250b558", "max_stars_repo_licenses...
""" The board class manages the position of pieces, and conversion to and from Forsyth-Edwards Notation (FEN). This class is only used internally by the `Game` class. """ import numpy as np class Board(object): """ This class manages the position of all pieces in a chess game. The position is stored as a ...
{"hexsha": "1d5f7a9243fc006c2cbe1e65b02c35173a455f3c", "size": 3497, "ext": "py", "lang": "Python", "max_stars_repo_path": "Chessnut/board.py", "max_stars_repo_name": "redfox-gx/Chessnut", "max_stars_repo_head_hexsha": "a9e2cf97193713dfeb36be799e44461abfb8600d", "max_stars_repo_licenses": ["Unlicense"], "max_stars_coun...
SUBROUTINE SB10MD( NC, MP, LENDAT, F, ORD, MNB, NBLOCK, ITYPE, $ QUTOL, A, LDA, B, LDB, C, LDC, D, LDD, OMEGA, $ TOTORD, AD, LDAD, BD, LDBD, CD, LDCD, DD, LDDD, $ MJU, IWORK, LIWORK, DWORK, LDWORK, ZWORK, $ LZWORK, INFO ) ...
{"hexsha": "91ef8ad4d44a0d4c2b0b130343a8bf908b4d175b", "size": 23649, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/SB10MD.f", "max_stars_repo_name": "bnavigator/SLICOT-Reference", "max_stars_repo_head_hexsha": "7b96b6470ee0eaf75519a612d15d5e3e2857407d", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st...
import itertools import re import string import subprocess import sys import unicodedata from os import listdir from os.path import isfile, join from keras.callbacks import ModelCheckpoint from keras.layers import Dense, Dropout, LSTM from keras.models import Sequential def install(package): subprocess.check_cal...
{"hexsha": "2d219fc4eb7cf6173fff9b32a312ce4e2205183c", "size": 10360, "ext": "py", "lang": "Python", "max_stars_repo_path": "Text/__init__.py", "max_stars_repo_name": "albisbub/JATA-TOOLS", "max_stars_repo_head_hexsha": "1665e587d8899e8d0278dde77baf69aa9aa3af75", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
[STATEMENT] lemma css:"s O s \<subseteq> s" [PROOF STATE] proof (prove) goal (1 subgoal): 1. s O s \<subseteq> s [PROOF STEP] proof [PROOF STATE] proof (state) goal (1 subgoal): 1. \<And>x. x \<in> s O s \<Longrightarrow> x \<in> s [PROOF STEP] fix x::"'a\<times>'a" [PROOF STATE] proof (state) goal (1 subgoal): 1. \...
{"llama_tokens": 2959, "file": "Allen_Calculus_allen", "length": 33}
""" A module that provides core algorithm for optimal matching of backgrounds of N-dimensional images using (multi-variate) polynomials. :Author: Mihai Cara (contact: help@stsci.edu) :License: :doc:`../LICENSE` """ import numpy as np from .utils import create_coordinate_arrays __all__ = ['build_lsq_eqs', 'pinv_so...
{"hexsha": "9b79871c8bb20f68822b57ee9d4fe1c6f6aa2ad5", "size": 18265, "ext": "py", "lang": "Python", "max_stars_repo_path": "wiimatch/lsq_optimizer.py", "max_stars_repo_name": "mcara/wiimatch", "max_stars_repo_head_hexsha": "c6126a6148588d60dbed68c46a7da14f71410f7f", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st...
#include <boost/property_map/parallel/simple_trigger.hpp>
{"hexsha": "89879489f4cbdcb24dc9fe1a4111c12de2ceebd2", "size": 58, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_property_map_parallel_simple_trigger.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licen...
from torch.utils.data import Dataset as BaseDataset import os import cv2 import glob import numpy as np import json class Dataset(BaseDataset): def __init__( self, images_dir, masks_dir, classes=None, augmentation=None, preprocessing=None, ...
{"hexsha": "f7eb04431f8e76ff91afb6d5fd2021016d4f2d0e", "size": 2152, "ext": "py", "lang": "Python", "max_stars_repo_path": "unet/dataset/isic_dataset.py", "max_stars_repo_name": "sarthakpati/Red-GAN", "max_stars_repo_head_hexsha": "45cee4ca73fb2c0665b76e3df049184511d18bc6", "max_stars_repo_licenses": ["MIT"], "max_star...
__Author__ = "Peter Herman" __Project__ = "Gravity Code" __Created__ = "08/15/2018" __all__ = ['OneSectorGE', 'CostCoeffs', 'Country', 'Economy', 'ResultsLabels'] __Description__ = """A single sector or aggregate full GE model based on Larch and Yotov, 'General Equilibrium Trade Policy Analysis with S...
{"hexsha": "eecb65e1f8fc2654035ff348ad308ec55e685bd3", "size": 133514, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/gegravity/OneSectorGE.py", "max_stars_repo_name": "peter-herman/gegravity", "max_stars_repo_head_hexsha": "f3ccd2df4af3f6d26c1b9814ab0790aa7a61fbbc", "max_stars_repo_licenses": ["MIT"], "max...
import os import sys import numpy as np import pandas as pd sys.path.append( os.path.dirname( os.path.dirname( os.path.abspath( __file__ ) ) ) ) from dynamo.entities import Visit # pylint: disable=wrong-import-position def processVisits( visits ): '''Formats a list of visits to have the proper attributes. Param...
{"hexsha": "183117776ae55dd15aeb67c6cff1b663e3c25c0e", "size": 1761, "ext": "py", "lang": "Python", "max_stars_repo_path": "dynamo/processing/processVisits.py", "max_stars_repo_name": "bblommers/aws-analytics", "max_stars_repo_head_hexsha": "be243bab6ded96a3d0563593ca57b4af536ea0a1", "max_stars_repo_licenses": ["MIT"],...
''' Contains functions used to generate images for various detectors. Much taken from bluesky tutorial materials ''' import numpy as np # General functions def gaussian(x, c=0, sig=1, amp=None): if amp is None: return ( 1.0 / (np.sqrt(2.0 * np.pi) * sig) * np.exp(-np....
{"hexsha": "92a564c1a8046675ab42c085848e9e5bd37712ab", "size": 1594, "ext": "py", "lang": "Python", "max_stars_repo_path": "ssrlsim/images.py", "max_stars_repo_name": "tangkong/ssrlsim", "max_stars_repo_head_hexsha": "62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_cou...
""" Displaying coloured disparity map Description : ============= This code is a simple example of how to get started with the depthai API. It shows how to : 1. Initialise the device. 2. Read and display the disparity map from the device in color format. This code can be helpful to get started with experiments invo...
{"hexsha": "921bc80a9a5afc2cdd8d3419762d20fe61ce3092", "size": 2293, "ext": "py", "lang": "Python", "max_stars_repo_path": "exp/code3.py", "max_stars_repo_name": "bigmb/OAK-D_Experiments", "max_stars_repo_head_hexsha": "1b12297dd27fbf40bd8951f68ca356cdfa587bfc", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2,...
# Note that this will erase your nvidia cache, ~/.nv/ComputeCache This may or may not be an undesirable side-effect for you. For example, cutorch will take 1-2 minutes or so to start after this cache has been emptied. from __future__ import print_function, division import time import string import random import argp...
{"hexsha": "3a472e0fd96808ebed4ba0902db13cbb5b5abf9a", "size": 5890, "ext": "py", "lang": "Python", "max_stars_repo_path": "gpuexperiments/optimization2.py", "max_stars_repo_name": "hughperkins/gpu-experiments", "max_stars_repo_head_hexsha": "3e5064e45682494be97190558807672b602f1c76", "max_stars_repo_licenses": ["BSD-2...
type SocketTCP ptr::Ptr{Void} function SocketTCP(ptr::Ptr{Void}) t = new(ptr) finalizer(t, destroy) t end end function SocketTCP() SocketTCP(ccall((:sfTcpSocket_create, libcsfml_network), Ptr{Void}, ())) end function destroy(socket::SocketTCP) ccall((:sfTcpSocket_destroy, ...
{"hexsha": "c8dd437a234a91d7a5e88ede636f63642431971f", "size": 2005, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/julia/Network/tcpSocket.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/SFML.jl-d50d9232-525f-5d35-8703-6ae49672cafe", "max_stars_repo_head_hexsha": "368097db31544432de82b92c40e1008...
import submodels_module as modelbank import numpy as np from itertools import combinations import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import pandas as pd import load_format_data #test the linear versus nonlinear test performance for different assay combinations def get_loss_list(model_li...
{"hexsha": "02d281d51c1f9d118330d749ff7cb15c92d1a9a4", "size": 3440, "ext": "py", "lang": "Python", "max_stars_repo_path": "main_paper_one/lin_vs_nonlin_model.py", "max_stars_repo_name": "HackelLab-UMN/DevRep", "max_stars_repo_head_hexsha": "e05023a8abe7be6c2e22f42d523b20bd76cd8da5", "max_stars_repo_licenses": ["MIT"],...
from unet_model import * from gen_patches import * import cv2 import glob import os.path import numpy as np import tifffile as tiff from keras.callbacks import CSVLogger from keras.callbacks import TensorBoard from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau def normalize(img): min = ...
{"hexsha": "c7786e0d5c73b181c85ed3d015c56cf513743a6c", "size": 3843, "ext": "py", "lang": "Python", "max_stars_repo_path": "train_and_predict_with_unet/train_unet.py", "max_stars_repo_name": "ComputationalAndPhysicalSystems/physarum_ecology", "max_stars_repo_head_hexsha": "21772bc020168a7ddbf7ea9750aec4d95425c949", "ma...
""" This module formulate the FlowOCT problem in gurobipy. """ from gurobipy import Model, GRB, quicksum, LinExpr import numpy as np import pandas as pd class FlowOCT: def __init__( self, X, y, tree, X_col_labels, labels, _lambda, time_limit, num_threads ): """ :param X: numpy matrix o...
{"hexsha": "8e851b799fbd7a49216f76d3fb483f8b7f554c90", "size": 6378, "ext": "py", "lang": "Python", "max_stars_repo_path": "trees/utils/StrongTreeFlowOCT.py", "max_stars_repo_name": "pashew94/decision_tree_estimators", "max_stars_repo_head_hexsha": "6efea241778ee32c98c6924fa412dc0dfc17f2f5", "max_stars_repo_licenses": ...
[STATEMENT] lemma cond_a_conv [simp]: "cond_a (ls, nts, js, wws) = js" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrace>(ls, nts, js, wws)\<rbrace>\<^bsub>c\<^esub> = js [PROOF STEP] by(simp add: cond_a_def)
{"llama_tokens": 104, "file": "JinjaThreads_Framework_FWState", "length": 1}
from flask import * import os from werkzeug.utils import secure_filename import tensorflow as tf from tensorflow.keras.models import load_model import numpy as np from PIL import Image app = Flask(__name__) # Classes of trafic signs classes = { 0:'Speed limit (20km/h)', 1:'Speed limit (30km/h)', ...
{"hexsha": "22ddb08b41cd6a6bbc40e86be32661edea02a7fa", "size": 2679, "ext": "py", "lang": "Python", "max_stars_repo_path": "Traffic_app.py", "max_stars_repo_name": "vanshikamehtaa/Traffic-Sign", "max_stars_repo_head_hexsha": "9ff31ecbdef4d5b9b966a3294545373ee79c4c67", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
# 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": "6b94af1787446c2b1a5ab8ae0e4e23b534552a94", "size": 7138, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/autotest/interface_test.py", "max_stars_repo_name": "T-head-Semi/csi-nn2", "max_stars_repo_head_hexsha": "bca6d703fa9d87d6f47c1182f0c3834f5d75b935", "max_stars_repo_licenses": ["Apache-2.0"]...
import pandas as pd import sklearn.metrics import numpy as np def write_submission_csv(prediction_df, filename): """Take a dataframe of predictions in the same form as data.labels_df and write a submission csv""" clipnames = sorted(prediction_df.index.values) submission = "ID,Probability\...
{"hexsha": "83e686e2b6f027d4cca21ce528148c59eb6ea826", "size": 1161, "ext": "py", "lang": "Python", "max_stars_repo_path": "data/external/repositories_2to3/62924/bird-recognition-master/submission_utils.py", "max_stars_repo_name": "Keesiu/meta-kaggle", "max_stars_repo_head_hexsha": "87de739aba2399fd31072ee81b391f9b7a63...
# watch key info in metaserver # get metadata # fetch the real data # record the time from mpi4py import MPI import numpy as np import dataspaces.dataspaceClient as dataspaces import ctypes import os import time import math import timeit import sys from threading import Thread sys.path.append('../../../src/publis...
{"hexsha": "d807afbab276b2a26af3584dcc8ec5e19c380d2c", "size": 2401, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/exp_numberofpattern/PatternMetaChecking/ana.py", "max_stars_repo_name": "wangzhezhe/observerchain", "max_stars_repo_head_hexsha": "faa8fb9d845a2720704538f01e1e7597083d4510", "max_stars_repo_...
#!/usr/bin/env python import json import sys from astropy import units as u from astropy.coordinates import Angle lib = [] with open(sys.argv[1], 'r') as f: lib = json.loads(f.read()) entries = [] for star in lib: ra = float(Angle(star['RA']).to_string(decimal=True)) dec = float(Angle(star['Dec']).to_st...
{"hexsha": "9c52e346fabb9a52361e14ac5b4dc5cd6557887c", "size": 527, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/data/process_bsc.py", "max_stars_repo_name": "trevnorris/spacekit", "max_stars_repo_head_hexsha": "72463eecf85d6a786e2a78c87e0fd79fd443ef5e", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
""" @author: Vincent Bonnet @description : Shape description """ import numpy as np import core.jit.math_2d as math2D class Shape: ''' Shape contains a flat list of vertices and connectivities (edge,face) ''' def __init__(self, num_vertices, num_edges=0, num_faces=0): self.vertex = np.zeros((n...
{"hexsha": "f2d720c67e1f38553ff34438fb7df0f182b4177e", "size": 2675, "ext": "py", "lang": "Python", "max_stars_repo_path": "implicit_solver/core/shape.py", "max_stars_repo_name": "vincentbonnetcg/Numerical-Bric-a-Brac", "max_stars_repo_head_hexsha": "e71f2305d7452de985e5e9fa8935da611b6d9992", "max_stars_repo_licenses":...
from botocore.exceptions import IncompleteReadError from dash_website.app import APP import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import pandas as pd import numpy as np from dash_website.utils.aws_loader impo...
{"hexsha": "bb8bb78a2c5eb7f98d4bc92e9c7b80b7406cd5a0", "size": 11356, "ext": "py", "lang": "Python", "max_stars_repo_path": "dash_website/age_prediction_performances/age_prediction_performances.py", "max_stars_repo_name": "SamuelDiai/Dash-Website", "max_stars_repo_head_hexsha": "e064e432f14a86de1b54cf31ab311997c5643129...
export FourierNeuralOperator, MarkovNeuralOperator """ FourierNeuralOperator(; ch=(2, 64, 64, 64, 64, 64, 128, 1), modes=(16, ), σ=gelu ) Fourier neural operator learns a neural operator with Dirichlet kernel to form a Fourier transformation. It performs Fourier transformation ...
{"hexsha": "dbcc1c4e98051d8f12d079cba56648fab79df07f", "size": 1694, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/model.jl", "max_stars_repo_name": "MilkshakeForReal/NeuralOperators.jl", "max_stars_repo_head_hexsha": "5497a9d5d8922cd4014d5e46e626e4f5bd8e8b5d", "max_stars_repo_licenses": ["MIT"], "max_stars...
import numpy as np from typing import Tuple from IMLearn.metalearners.adaboost import AdaBoost from IMLearn.learners.classifiers import DecisionStump from IMLearn.metrics.loss_functions import accuracy from utils import * import plotly.graph_objects as go from plotly.subplots import make_subplots def generate_data(n:...
{"hexsha": "9acc7c0c08be026d5643b2b95890b31527d67ed4", "size": 5145, "ext": "py", "lang": "Python", "max_stars_repo_path": "exercises/adaboost_scenario.py", "max_stars_repo_name": "noamblum/IML.HUJI", "max_stars_repo_head_hexsha": "72e848d6d2549be3b5401eac93023c601f880cc4", "max_stars_repo_licenses": ["MIT"], "max_star...
import sys import pdb import pyreadr import numpy as np import pandas as pd sys.path.append("/home/dloewe/projects/aecg_survival_lbbb/lib/deepknockoffs/DeepKnockoffs/") from DeepKnockoffs import KnockoffMachine from DeepKnockoffs import GaussianKnockoffs r_data = pyreadr.read_r("../data/derived_data/train_data.rds")...
{"hexsha": "6d9c4ef1433ca77262be6a6eb731ac7e8f3b9b3c", "size": 2399, "ext": "py", "lang": "Python", "max_stars_repo_path": "analysis/script/knockoffs.py", "max_stars_repo_name": "dloewenstein/aecg_surv_lbbb", "max_stars_repo_head_hexsha": "fa657c5061082e6a8b213fd078ff838073f3b0b0", "max_stars_repo_licenses": ["MIT"], "...
# -*- coding: utf-8 -*- """Face_Analytic_(Expression) Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1eYQptLpKc-EQNWetfCIiPlLpis08sdZ6 Face Analytic (Expression) with TensorFlow Copyright 2020 I Made Agus Dwi Suarjaya, I Putu Adi Putra Setiawan,...
{"hexsha": "436675a175597054bbe11478c2b050e57caccb05", "size": 7856, "ext": "py", "lang": "Python", "max_stars_repo_path": "Face_Analytic_(Expression).py", "max_stars_repo_name": "agussuarjaya/Face_Analytic_-Expression-", "max_stars_repo_head_hexsha": "e741d1aa45f2d3e8246025422ac29f432f112e92", "max_stars_repo_licenses...
#' Get details on a GBIF dataset. #' #' @export #' @param uuid (character) One or more dataset UUIDs. See examples. #' @template occ #' @references <http://www.gbif.org/developer/registry#datasetMetrics> #' @note Dataset metrics are only available for checklist type datasets. #' @examples \dontrun{ #' dataset_metrics(u...
{"hexsha": "7d3f281893e22f72114caef74811b5df838e32f2", "size": 976, "ext": "r", "lang": "R", "max_stars_repo_path": "R/dataset_metrics.r", "max_stars_repo_name": "damianooldoni/rgbif", "max_stars_repo_head_hexsha": "5e75aa70ca4195780dc5b01ddff4be14d389fc44", "max_stars_repo_licenses": ["Xnet", "X11"], "max_stars_count"...
import numpy as np def main(): from fuzzi.evaluation import pate_train from fuzzi.generated import pate_label predictions = pate_label.outputs truth = [x[-1] for x in pate_label.db_test] print(predictions) print(truth) print('PATE accuracy = %f' % (np.mean(predictions == truth)))
{"hexsha": "14848a43d3f090cdc183de7af48de1c3e490059a", "size": 311, "ext": "py", "lang": "Python", "max_stars_repo_path": "fuzzi-gen/fuzzi/evaluation/pate.py", "max_stars_repo_name": "hengchu/fuzzi-impl", "max_stars_repo_head_hexsha": "bcf49c42d2dd4e1e3c1fe8b85fa7f845ea8fd016", "max_stars_repo_licenses": ["BSD-3-Clause...
"""Calculate the actual CHIME repeater fraction.""" import pandas as pd from frbcat import ChimeRepeaters def calc_rep_frac(): df = ChimeRepeaters().df df.timestamp = pd.to_datetime(df.timestamp) df.sort_values('timestamp', inplace=True) starting_time = df['timestamp'].iloc[0] srcs_seen_once = [...
{"hexsha": "29c8007814b57002f5e8c692bcfba8a496971324", "size": 1849, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/chime/obs_rep_frac.py", "max_stars_repo_name": "macrocosme/frbpoppy", "max_stars_repo_head_hexsha": "b23a0c1dbf4e6559f26e79994147ed2a9352ffc7", "max_stars_repo_licenses": ["MIT"], "max_stars...
module KelvinletsImage include("triangleInterpolator.jl") using Images, ProgressMeter, ImageView, LinearAlgebra export KelvinletsObject, grab, scale, pinch, grabRectangle, makeVideo, __applyAreaVariation__, __applyCloserAreaVariation__, __applyPerimeterBasedAreaVariation__, __applyEdgeBasedAreaVariation__,...
{"hexsha": "1aeed480f32b3430afd2b0710192f83a635e73ab", "size": 22927, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/KelvinletsImage.jl", "max_stars_repo_name": "UnofficialJuliaMirror/KelvinletsImage.jl-c268e415-724e-5440-8745-890f0ae6d2bf", "max_stars_repo_head_hexsha": "ecb222f5df2e6c4d5730a34319e8e5922525...
function testsatisfiability(formula, issatisfiable; maxsearchdepth=5) if issatisfiable == false @customtest is_satisfiable(formula, maxsearchdepth=maxsearchdepth) == false else @customtest_throws OverMaxSearchDepthError is_satisfiable(formula, maxsearchdepth=maxsearchdepth) end end @testset...
{"hexsha": "6515356eea81d7858af9a875f8aefbf91a834481", "size": 2575, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/test_resolution.jl", "max_stars_repo_name": "UnofficialJuliaMirror/FirstOrderLogic.jl-24eb86ea-9a1d-5509-b853-16293a282e04", "max_stars_repo_head_hexsha": "918dc96e81f71369fb3055e746bf50f2e1b0...
#include <boost/proto/traits.hpp>
{"hexsha": "a1ef342513ceecfafa2137f5ca77f4eaf7b3351d", "size": 34, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_proto_traits.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["BSL-1.0"], "max_...
# Copyright 2021 Adam Byerly. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
{"hexsha": "c760eed24d20414cd8a126e843862718afd5506f", "size": 2912, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/etc/extract_scalars_from_logs.py", "max_stars_repo_name": "AdamByerly/MMLCNNwHFCs", "max_stars_repo_head_hexsha": "499c275522656e4537c58c330476683e0a0f4bef", "max_stars_repo_licenses": ["Ap...
import pandas as pd import numpy as np import math import joblib import pickle import datetime import random import sklearn from sklearn import * from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import StandardScaler from sklearn.model_selection import GridSearchCV from sklearn.metrics import ...
{"hexsha": "935eaa70750db3ead2465b0c561e9fc936743c04", "size": 1491, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/main.py", "max_stars_repo_name": "abhisekswain/mollie_fraud_case_study", "max_stars_repo_head_hexsha": "ed59fcd955ddb1eda4470526bccddb1fdad917fa", "max_stars_repo_licenses": ["MIT"], "max_star...
# -*- coding: utf-8 -*- """ Created on 2021/05/11 11:43:32 @File -> mlp_walk_forward.py @Author: luolei @Email: dreisteine262@163.com @Describe: MLP Walk-forward模型验证 """ import warnings warnings.filterwarnings('ignore') from sklearn.metrics import mean_squared_error as error from sklearn.neural_network import ML...
{"hexsha": "724fe731000bed2684062d2cdd800c0e2ba1594b", "size": 3884, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/air_passengers/mlp_walk_forward.py", "max_stars_repo_name": "Ulti-Dreisteine/time-series-walk-forward-modeling", "max_stars_repo_head_hexsha": "5d707d1a01cdcd0bf5cbc15ef9473ef490564c1e", "max_...
import cv2 import numpy as np import matplotlib.pyplot as plt from keras import backend as K from keras.applications.vgg16 import VGG16 from keras.preprocessing import image from keras.applications.vgg16 import preprocess_input, decode_predictions # 使用的图片 !wget https://pixabay.com/get/54e1d24b4f55a414f1dc846082566820...
{"hexsha": "53616897d1cb0d34fead07ff7f38c409cf471e40", "size": 1937, "ext": "py", "lang": "Python", "max_stars_repo_path": "1.py", "max_stars_repo_name": "Deeachain/LakeSegmentation-keras", "max_stars_repo_head_hexsha": "58901893b5ba324112bb43211a068f8a6946c5ef", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
from numba import * import numba as nb from numba.testing.test_support import autojit_py3doc @autojit def index(type): """ >>> index(int_) ['[0, 1, 2]', '0', '1', '2'] >>> assert index(int_) == index.py_func(int_) >>> index(float_) ['[0.0, 1.0, 2.0]', '0.0', '1.0', '2.0'] >>> assert index(f...
{"hexsha": "9c66648e97d3df5225499b9a818a12d97886b413", "size": 5077, "ext": "py", "lang": "Python", "max_stars_repo_path": "oldnumba/containers/tests/test_typed_list.py", "max_stars_repo_name": "meawoppl/numba", "max_stars_repo_head_hexsha": "bb8df0aee99133c6d52465ae9f9df2a7996339f3", "max_stars_repo_licenses": ["BSD-2...
[STATEMENT] lemma row_of_dagger [simp]: assumes "i < dim_col M" shows "row (M\<^sup>\<dagger>) i = vec (dim_row M) (\<lambda>j. cnj (M $$ (j,i)))" [PROOF STATE] proof (prove) goal (1 subgoal): 1. row M\<^sup>\<dagger> i = vec (dim_row M) (\<lambda>j. cnj (M $$ (j, i))) [PROOF STEP] using assms row_def dagger_def [...
{"llama_tokens": 289, "file": "Isabelle_Marries_Dirac_Quantum", "length": 2}
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import cv2 # Read in the image image = mpimg.imread('images/car_green_screen.jpg') # Print out the image dimensions (height, width, and depth (color)) print('Image dimensions:', image.shape) # Display the image # plt.imshow(image) ...
{"hexsha": "17decf5c311e3d3c318942c39bfe4d59cf7427fb", "size": 1674, "ext": "py", "lang": "Python", "max_stars_repo_path": "self-driving/ComputerVision/masking.py", "max_stars_repo_name": "xta0/Python-Playground", "max_stars_repo_head_hexsha": "513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc", "max_stars_repo_licenses": ["MIT...
# Copyright (c) 2020-2021, Bank of Canada # All rights reserved. using MacroTools """ @rec [index=]range expression Computes recursive operations on time series. The first argument is the range and the second argument is an expression to be evaluated over that range. The expression is meant to be an assignment,...
{"hexsha": "dae5a3441c9c8944d0a2e056299565f6baa68649", "size": 1338, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/recursive.jl", "max_stars_repo_name": "bbejanov/TimeSeriesEcon.jl", "max_stars_repo_head_hexsha": "9cff80b556f46587822d89a42d9d3bb65d1dae1c", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_s...
#= Test Resynthesizer by comparing out images to reference good result image. Using testing framework. =# # See "Code Loading" # Either include, or import package include("../src/apps/inpaint.jl") # using Resynthesizer # the Julia testing framework using ReferenceTests using Test # profiling framework using Profi...
{"hexsha": "c342e6015ae5c92d31bc34fe31bcf135788bc2fd", "size": 2030, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/inpaint.jl", "max_stars_repo_name": "bootchk/resynthesizerJulia", "max_stars_repo_head_hexsha": "af3c457115eb864b98289313479b977649a451c9", "max_stars_repo_licenses": ["AAL"], "max_stars_count...
import os import random import argparse import numpy as np import shutil from PIL import Image import cv2 def resize_depth(im, scale = 4, GT = True): im = np.asarray(im).astype(np.float32) h,w = im.shape hb, wb = int(np.ceil(h / scale)), int(np.ceil(w / scale)) newim = np.zeros((hb, wb)) fo...
{"hexsha": "fc8ce59493b3eb50a66697bfb85e622095554900", "size": 8847, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/reduce_size_kitti.py", "max_stars_repo_name": "FrederikWarburg/NLSPN_ECCV20", "max_stars_repo_head_hexsha": "2db2d4eb269c7d27e16c8ff4f4fb3331778ef6b6", "max_stars_repo_licenses": ["MIT"], "m...
import numpy as np from bokeh.models import ColorBar, HoverTool, PointDrawTool, LassoSelectTool from bokeh.models.widgets import TableColumn, NumberFormatter from bokeh.models.mappers import LinearColorMapper from bokeh.plotting import figure import help_functions.help_functions as hf formatter = NumberFormatter(form...
{"hexsha": "6e120a0588a72a5c031055075443a9ddc6203ea5", "size": 5651, "ext": "py", "lang": "Python", "max_stars_repo_path": "help_functions/create_figure.py", "max_stars_repo_name": "Pomichal/flowexplore_bokeh", "max_stars_repo_head_hexsha": "bbf70730afc255374eac93216f74ca9df267b59b", "max_stars_repo_licenses": ["MIT"],...
"""Ravens main training script.""" import os import pickle import json import numpy as np import hydra from cliport import agents from cliport import dataset from cliport import tasks from cliport.utils import utils from cliport.environments.environment import Environment @hydra.main(config_path='./cfg', config_nam...
{"hexsha": "7d0e903a86dd0ea2781b15d0a43eae2d4627c8ba", "size": 7835, "ext": "py", "lang": "Python", "max_stars_repo_path": "cliport/eval.py", "max_stars_repo_name": "wx-b/cliport", "max_stars_repo_head_hexsha": "c29b0c4b6b1c4e4da5bda6c7f8c718e36f28a6e8", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 110...
import numpy import os import sys import PyFrensie.Geometry as Geometry import PyFrensie.Geometry.DagMC as DagMC import PyFrensie.Utility as Utility import PyFrensie.Utility.MPI as MPI import PyFrensie.Utility.Prng as Prng import PyFrensie.Utility.Coordinate as Coordinate import PyFrensie.Utility.Distribution as Distri...
{"hexsha": "c04afe1df75d3268baae61d0496f2dc3234c0e56", "size": 7073, "ext": "py", "lang": "Python", "max_stars_repo_path": "demo_simulation.py", "max_stars_repo_name": "lewisgross1296/frensie_demo", "max_stars_repo_head_hexsha": "6f853877a72c30d145221d6537f90469966586c5", "max_stars_repo_licenses": ["BSD-3-Clause"], "m...
import os import sys import argparse from PIL import Image import numpy as np import cv2 import torch from torch.backends import cudnn import torchvision.transforms as transforms import network from optimizer import restore_snapshot from datasets import cityscapes from config import assert_and_infer_cfg parser = arg...
{"hexsha": "4a058e054523026ec602695ebc8977af45a26797", "size": 2091, "ext": "py", "lang": "Python", "max_stars_repo_path": "semantic-segmentation/demo.py", "max_stars_repo_name": "LyMarco/Semantic-Mono-Depth", "max_stars_repo_head_hexsha": "a4002e47e0749cb565720c3fb1c25d6ac2af547e", "max_stars_repo_licenses": ["MIT"], ...
using Vulkan using BenchmarkTools # Benchmarks: # - Creation of minimalist create info structs: # - directly # - from the high-level struct passed as a literal # - via a conversion from an existing high-level struct # - Creation of high-level structs println("InstanceCreateInfo") @btime _InstanceCreateInfo([], ...
{"hexsha": "a39a312ff2cbed317ae9e13cfe6a80be4b5b09ce", "size": 2118, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "benchmarks/structs.jl", "max_stars_repo_name": "Mechachleopteryx/Vulkan.jl", "max_stars_repo_head_hexsha": "024a17237387473c822a3ad2fdae4ec88b8a4a97", "max_stars_repo_licenses": ["MIT"], "max_stars...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
{"hexsha": "84e23da875c9e63dbcac1edb114ea083c52a6ff4", "size": 2351, "ext": "py", "lang": "Python", "max_stars_repo_path": "train/visualize_metric.py", "max_stars_repo_name": "wichersn/visualize-nn-imagination", "max_stars_repo_head_hexsha": "33303a18b2e09edacf6dc28a664950235647d854", "max_stars_repo_licenses": ["Apach...
#ifndef MYPLANARFACETRAVERSAL_HPP #define MYPLANARFACETRAVERSAL_HPP #include <GraphLayoutLibrary_global.h> #include <iostream> #include <vector> #include <set> #include <map> #include <boost/next_prior.hpp> #include <boost/graph/graph_traits.hpp> #include <boost/graph/properties.hpp> #include <boost/graph/adjacency_...
{"hexsha": "3a442f4507f73adb428771ae05c4625082e8569c", "size": 6570, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "GraphLayoutLibrary/GridBasedLayout/MyPlanarFaceTraversal.hpp", "max_stars_repo_name": "persistentsystems/LayoutLibrary", "max_stars_repo_head_hexsha": "e299ac0073225c88f488dd9c2615ec786f8e2897", "ma...
#include <iostream> #include <fstream> #include <sstream> #include <ctime> #include <thread> #include <iterator> #include <map> #include <string> #include <omp.h> #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> #include <boost/container/flat_set.hpp> #include <boost/container/flat_map.hpp> #incl...
{"hexsha": "5eb25b419fe55ca77e9e6fff299556a0fe25ef09", "size": 92057, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "hackathon/MK/tester/main.cpp", "max_stars_repo_name": "zzhmark/vaa3d_tools", "max_stars_repo_head_hexsha": "3ca418add85a59ac7e805d55a600b78330d7e53d", "max_stars_repo_licenses": ["MIT"], "max_stars...
import sys import functools import numpy as np import torch import torch.nn as nn from torch.nn import init import torch.optim as optim import torch.nn.functional as F try: import models.pytorch_biggan.layers as layers from models.pytorch_biggan.BigGAN import G_arch from models.pytorch_biggan.sync_batchno...
{"hexsha": "5c65d11dc5c375ccb21a6a369926a7b646d39bdb", "size": 10509, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/models/trimmed_biggan.py", "max_stars_repo_name": "whs2k/vasegen", "max_stars_repo_head_hexsha": "d049e58941281b34d080254423a6b8b5b5771933", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
""" mdf2020writer.py: Writes out the MDF in the 2020 format. """ # Pavel Zhuravlev # 6/4/19 import logging from typing import Union, Callable, List import xml.etree.ElementTree as ET from pyspark.sql import DataFrame, Row, SparkSession from pyspark.sql.types import StructType, StructField, StringType, LongType from...
{"hexsha": "62ea4bb9b47b04a5bcdd6e48c5cf041bae96b10f", "size": 17013, "ext": "py", "lang": "Python", "max_stars_repo_path": "das_decennial/programs/writer/mdf2020writer.py", "max_stars_repo_name": "p-b-j/uscb-das-container-public", "max_stars_repo_head_hexsha": "7f7ba44055da15d13b191180249e656e1bd398c6", "max_stars_rep...
import numpy as np from vigra.analysis import relabelConsecutive from affogato.segmentation import (compute_mws_clustering, compute_mws_segmentation, compute_semantic_mws_clustering, MWSGridGraph) try: from .bl...
{"hexsha": "0ddde55a282cd47754f5f4ca8fe4b25b52bcdbfa", "size": 11075, "ext": "py", "lang": "Python", "max_stars_repo_path": "elf/segmentation/mutex_watershed.py", "max_stars_repo_name": "constantinpape/elf", "max_stars_repo_head_hexsha": "7d397c0ba9b3c9b14305b8ab6fd8c83fe33ca5d2", "max_stars_repo_licenses": ["MIT"], "m...
/* * Copyright 2011, 2012 Esrille Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
{"hexsha": "5eb94e8d8584af2733168c0f54ebf0552f854ef6", "size": 20805, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "escort/src/http/HTTPConnection.cpp", "max_stars_repo_name": "rvedam/es-operating-system", "max_stars_repo_head_hexsha": "32d3e4791c28a5623744800f108d029c40c745fc", "max_stars_repo_licenses": ["Apac...
import numpy as np import os from os import listdir from os.path import isfile, join, exists import utils.io as io from soccer3d import calibration import utils.misc as misc_utils import utils.camera as cam_utils import utils.draw as draw_utils import utils.files as file_utils import pickle import glog import cv2 from ...
{"hexsha": "dbf28d4632e3a881b8cd70192b8fa5be0b5d3924", "size": 23873, "ext": "py", "lang": "Python", "max_stars_repo_path": "soccer3d/core.py", "max_stars_repo_name": "ausport/soccerontable", "max_stars_repo_head_hexsha": "0e6ab334bd4b0cd2ee6a6aa88a468f4da75ce659", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_star...
function y = centroid(M, x) % Attempts the computation of a centroid of a set of points on a manifold. % % function y = centroid(M, x) % % M is a structure representing a manifold. % x is a cell of points on that manifold. % This file is part of Manopt: www.manopt.org. % Original author: Nicolas Boumal, Dec. 30, 2012...
{"author": "NicolasBoumal", "repo": "manopt", "sha": "b8b54a6af8b965f7ae572972ba0d15787427744b", "save_path": "github-repos/MATLAB/NicolasBoumal-manopt", "path": "github-repos/MATLAB/NicolasBoumal-manopt/manopt-b8b54a6af8b965f7ae572972ba0d15787427744b/manopt/solvers/neldermead/centroid.m"}
import pickle import numpy as np from collections import defaultdict from sklearn.neighbors import KernelDensity class Prior(object): def __init__(self): pass def score(self, *args, **kwargs): raise NotImplementedError def serialize(self, out_path): raise NotImplementedError ...
{"hexsha": "944bd5c50604c6d874c831da493a99fed8fb32c3", "size": 1724, "ext": "py", "lang": "Python", "max_stars_repo_path": "loa/prior/priors.py", "max_stars_repo_name": "jonathanzhang99/loa", "max_stars_repo_head_hexsha": "73240c74c5df8f40fa7156231a2166f1d74f9408", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
import numpy as np import sys from scipy import signal from numba import jit class Functional(): def __init__(self, fluid, system): self.fluid = fluid self.system = system self._density = np.zeros((self.fluid["component"], self.system["grid"])) self.gridWidth = self.system["si...
{"hexsha": "1604c9138fbb030fb93983e89fa88f8dbfbd78c0", "size": 4518, "ext": "py", "lang": "Python", "max_stars_repo_path": "Functional.py", "max_stars_repo_name": "qiaochongzhi/cDFT-for-beginner", "max_stars_repo_head_hexsha": "c3c67358866ee65d7721fdc2a6e1cf5d3642f33e", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
module Aref_Lagrangian_Descriptor export Aref_Lagrangian_Descriptor_Function export final_T using Roots using DifferentialEquations using Printf include("leap_frog_definitions.jl") barrier=5 condition_escape(u, t, integrator) = maximum([abs(u[1]),abs(u[2]),abs(u[3]),abs(u[4])]) > barrier affect_stop!(integrator) = ...
{"hexsha": "c674f90e628e7735acda452cf00167446badc6d1", "size": 3361, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "Aref_Lagrangian_Descriptor.jl", "max_stars_repo_name": "bmb29/Leap_Frog_Code", "max_stars_repo_head_hexsha": "6617b763f7311e6465f9c37901e010cedceb3242", "max_stars_repo_licenses": ["BSD-3-Clause"],...
! { dg-do compile } ! { dg-options "-fall-intrinsics -std=f95" } ! PR15966, PR18781 & PR16531 implicit none complex(kind=8) x(2) complex a(2,2) character*4 z character z1(4) character*4 z2(2,2) character*80 line integer i logical l real r character*8 c data x /16Habcdefghijklmnop, 16Hqrstuvwxyz012345/ data a /8H(i3),...
{"hexsha": "1ba74036c26d36d586bd53d420cb591d0645b833", "size": 2586, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "llvm-gcc-4.2-2.9/gcc/testsuite/gfortran.dg/hollerith_f95.f90", "max_stars_repo_name": "vidkidz/crossbridge", "max_stars_repo_head_hexsha": "ba0bf94aee0ce6cf7eb5be882382e52bc57ba396", "max_stars_...