text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
using ReachabilityAnalysis Dict([ "opts" => Dict(:T=>20.0, :alg=>GLGM06(δ=0.1)), "X0" => Hyperrectangle(low=fill(0.9, 15), high=fill(1.1, 15)), "info" => Dict( "name" => "vehicle_platoon_5", "dim" => 15, "linear" => true, "hybrid" => false ) ])
{"hexsha": "127745dd3cce2f71b07fe1153c40a53c5ec7dac6", "size": 295, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/models/vehicle_platoon_5/vehicle_platoon_5_meta.jl", "max_stars_repo_name": "mforets/ReachabilityLibrary", "max_stars_repo_head_hexsha": "4beac279a071debb0765e415e583d4ab906db762", "max_stars_re...
""" This part of code is the Q learning brain, which is a brain of the agent. All decisions are made in here. View more on my tutorial page: https://morvanzhou.github.io/tutorials/ """ import numpy as np import pandas as pd from calattr import * class QLearningTable: def __init__(self, n_states, each_services_n...
{"hexsha": "2f100c85e16af06a97b15897c3105427d9981c06", "size": 3305, "ext": "py", "lang": "Python", "max_stars_repo_path": "Q-Learning/RL_brain.py", "max_stars_repo_name": "xdbdilab/ppdrl", "max_stars_repo_head_hexsha": "64eab7c4d9bcbd3cc74e2b6e096575e5cf306c9c", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_co...
[STATEMENT] theorem (in character) sum_character: "(\<Sum>x\<in>carrier G. \<chi> x) = (if \<chi> = principal_char G then of_nat (order G) else 0)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. sum \<chi> (carrier G) = (if \<chi> = principal_char G then of_nat (order G) else 0) [PROOF STEP] proof (cases "\<chi> =...
{"llama_tokens": 3718, "file": "Dirichlet_L_Multiplicative_Characters", "length": 37}
#! /usr/bin/env python3 # Copyright(c) 2017-2018 Intel Corporation. # License: MIT See LICENSE file in root directory. from mvnc import mvncapi as mvnc from video_processor import VideoProcessor from ssd_mobilenet_processor import SsdMobileNetProcessor import cv2 import numpy import time import os import sys from sy...
{"hexsha": "d2aabbda15737faca2a384ca7f8534bd5ae2810f", "size": 29249, "ext": "py", "lang": "Python", "max_stars_repo_path": "apps/video_objects_scalable/video_objects_scalable.py", "max_stars_repo_name": "nananini22/ncappforraspi", "max_stars_repo_head_hexsha": "551bc7541896fe554ab6fe887fdb6cf97609ba6e", "max_stars_rep...
"""Inky e-Ink Display Driver.""" import time from PIL import Image from . import eeprom, ssd1608 try: import numpy except ImportError: raise ImportError('This library requires the numpy module\nInstall with: sudo apt install python-numpy') WHITE = 0 BLACK = 1 RED = YELLOW = 2 RESET_PIN = 27 BUSY_PIN = 17 DC...
{"hexsha": "db5535416c40901caa66daf5977396e003f88f64", "size": 10418, "ext": "py", "lang": "Python", "max_stars_repo_path": "library/inky/inky_ssd1608.py", "max_stars_repo_name": "fsargent/inky", "max_stars_repo_head_hexsha": "54684464b2f35bfd52208cdfb922c09685644181", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
% Options: [twoside, leqno, 11pt], etc.. leqno is "number equations on the left hand side" \RequirePackage{tikz} \documentclass[12pt]{thesis} \usepackage{setspace} \usepackage{amsmath} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{longtable} \usepackage{subcaption} \usepackage{setspace} \usepackage{float} \use...
{"hexsha": "b6ce9c55acf076d618458104a941fb63db52896b", "size": 32470, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "ThesisClass/just the tables.tex", "max_stars_repo_name": "marissa-graham/network-similarity", "max_stars_repo_head_hexsha": "a6e23a593e17f9c90c292d4b4742a19da81e61d0", "max_stars_repo_licenses": ["...
import numpy as np import shapely.geometry from shapely import affinity from scipy.integrate import quad import matplotlib.pyplot as plt def simulate_line_measurements( angs, strain, ytrans, ztrans, sample_corners, show_geom=False ): '''Simulate parallel ray integrals over a strain field in a 3D sample by looping ...
{"hexsha": "0176804e61f97a769636be2a30e0d3a3115ed762", "size": 8686, "ext": "py", "lang": "Python", "max_stars_repo_path": "s3dxrd/utils/random_measurements.py", "max_stars_repo_name": "PhilVest/scanning-xray-diffraction", "max_stars_repo_head_hexsha": "a904a4df0c69e9fd21aadaafe1a7640bb87952e3", "max_stars_repo_license...
# -*- coding: utf-8 -*- """ Created on Wed Jan 24 22:53:59 2018 @author: a.pakbin """ from sklearn.model_selection import StratifiedKFold from auxiliary import grid_search,ICD9_categorizer, save_fold_data, convert_numbers_to_names, min_max_mean_auc_for_labels, train_test_one_hot_encoder, possible_values_finder,train_t...
{"hexsha": "0e2fb15b35089351f9d19f41a848b9b415239eef", "size": 7230, "ext": "py", "lang": "Python", "max_stars_repo_path": "models1/fold_saver.py", "max_stars_repo_name": "Erakhsha/ICU72hReadmissionMIMICIII", "max_stars_repo_head_hexsha": "cadd496910dc78e4a0e46ea5ab849e1290bacaad", "max_stars_repo_licenses": ["MIT"], "...
using Documenter, Rocket makedocs( modules = [ Rocket ], clean = true, sitename = "Rocket.jl", pages = [ "Home" => "index.md", "Getting started" => "getting-started.md", "Manual" => [ "Observable" => "observables/about.md", "Actor"...
{"hexsha": "adf3925a92dad4e66ed53f70b663b70cd6ebb673", "size": 9788, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "docs/make.jl", "max_stars_repo_name": "biaslab/Rocket.jl", "max_stars_repo_head_hexsha": "af4ad326c2b20fa4324ae54f48fe0f7b8804ffc9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 109, "max...
export CompleteHypergraph import Combinatorics.combinations """ `CompleteHypergraph(n,k)` creates a complete hypergraph with vertex set `{1,2,...,n}`. The edges are all `k`-element subsets of the vertices. """ function CompleteHypergraph(n::Int, k::Int)::SimpleHypergraph{Int} @assert n >= 0 && k >= 0 "both argume...
{"hexsha": "161cd778a0d0fb7b90cb652674cf88e45e8ee643", "size": 512, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/hyper/complete.jl", "max_stars_repo_name": "willtebbutt/SimpleGraphs.jl", "max_stars_repo_head_hexsha": "c0aaf98c56ef64b75b24e7ff24347c348ce5246c", "max_stars_repo_licenses": ["MIT"], "max_stars...
import os import subprocess import galsim import copy import esutil as eu import json import fitsio import yaml import pytest import numpy as np import meds from ..data import ( generate_sim, write_sim, SIM_BMASK_SPLINE_INTERP, SIM_BMASK_NOISE_INTERP, SIM_CONFIG, SIM_CONFIG_ROTLIST, SIM_CONFIG...
{"hexsha": "64a91556316a2552967acd5bd7f5faea43e7b778", "size": 25423, "ext": "py", "lang": "Python", "max_stars_repo_path": "pizza_cutter/des_pizza_cutter/integration_test/tests/test_coadding_end2end.py", "max_stars_repo_name": "beckermr/pizza-cutter", "max_stars_repo_head_hexsha": "04eefd2d4b2a63975fe809c60b5c8e7e3fcf...
Question 8. of the November 2007 Election/School Board/Questions to candidates 2007 School Board Questions to Candidates > < What do you believe is the best use for the district building on B Street (current DJUSD headquarters and DSIS site)? Joe Spector: Susan Lovenburg: Richard Harris: Bob Schelen: At thi...
{"hexsha": "82c95cb4781f7143d1193768a067875456a98572", "size": 615, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/Q8.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
import os import re import sys import numpy as np def read_data(data_file): """ Reads all conversations ids in the given subset from the subset_list file""" """ Arguments: data_file: original TSV file released by facebook. Returns: annotated_data: list of annotated utterances "...
{"hexsha": "246858b3eaa284f46b77bfdae11e5bc6c1727dec", "size": 3849, "ext": "py", "lang": "Python", "max_stars_repo_path": "data_utils/process_top.py", "max_stars_repo_name": "wise-east/dialoglue", "max_stars_repo_head_hexsha": "6836630dd6b0f40f755ce974f1628b1db5f0c50f", "max_stars_repo_licenses": ["Apache-2.0"], "max_...
#!/bin/env python """ Module for approximating sqrt """ def sqrt(x,debug=False): """ Module implementing newton's method for approximating sqrt """ from numpy import nan if x == 0.: return 0. elif x<0: print "***Error, x must be positive" return nan assert x>0, "Should not ...
{"hexsha": "48954812a3341edd82ea2390f940b2c076f68ca5", "size": 686, "ext": "py", "lang": "Python", "max_stars_repo_path": "ScientificComputing/mysqrt.py", "max_stars_repo_name": "mr-ice/pipython", "max_stars_repo_head_hexsha": "ea27af520946cb710cb717815be625489fc8a1a3", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
export DemoAgent, action using ReinforcementLearning import Functors: functor using Setfield: @set #This is an extended version of JuliaReinforcementLearning's Agent type. This one can take two trajectories in order to handle expert demonstrations. Base.@kwdef struct DemoAgent{P<:AbstractPolicy, T<:AbstractT...
{"hexsha": "f504ced70f7c2e6ab6702f26af8fd592f6f2c2b7", "size": 7560, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/DemoAgent.jl", "max_stars_repo_name": "polhager/FurutaRL", "max_stars_repo_head_hexsha": "ca736422a61ff8d0b64f5286de94e15e3e93a934", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
using PackageCompilerConvenienceTools using Test import Pkg @testset "PackageCompilerConvenienceTools.jl" begin @testset "utils.jl" begin PackageCompilerConvenienceTools._with_different_project(PackageCompilerConvenienceTools.default_project()) do activated_project end end @testset "public...
{"hexsha": "88791b106c3e56c65ebb3b9455aeaa6de7690480", "size": 3766, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "JuliaTagBot/PackageCompilerConvenienceTools.jl", "max_stars_repo_head_hexsha": "03743569e4988a367dc168e965fe0eb356e55768", "max_stars_repo_licenses": ["MI...
module StringUtils use MiscUtils use MpiUtils implicit none character(26), parameter, private :: AlphUpper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' character(26), parameter, private :: AlphLower = 'abcdefghijklmnopqrstuvwxyz' INTERFACE RealToStr module procedure SingleToStr, DoubleToStr END...
{"hexsha": "25efc014d62c2fb1174fd9a3a6e8fb95389e6e68", "size": 11732, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "StringUtils.f90", "max_stars_repo_name": "LBJ-Wade/forutils", "max_stars_repo_head_hexsha": "43bc25b0a4e1f804cf2173e59afa0f76949db9e8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 16...
from __future__ import print_function import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D #import matplotlib.image as mpimg import mpl_toolkits.mplot3d.art3d as art3d import astropy.units as u import astropy.coordinates as coord from astropy.coordinates im...
{"hexsha": "d0e3dd3d765e19c5d0e6a84a784890c1d8c3603e", "size": 7490, "ext": "py", "lang": "Python", "max_stars_repo_path": "MWstarplotter.py", "max_stars_repo_name": "mrawls/APO-1m-phot", "max_stars_repo_head_hexsha": "a323995b4efb15d489ea1f20336e077d9e4724de", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, ...
theory T23 imports Main begin lemma "( (\<forall> x::nat. \<forall> y::nat. meet(x, y) = meet(y, x)) & (\<forall> x::nat. \<forall> y::nat. join(x, y) = join(y, x)) & (\<forall> x::nat. \<forall> y::nat. \<forall> z::nat. meet(x, meet(y, z)) = meet(meet(x, y), z)) & (\<forall> x::nat. \<forall> y::nat. \<forall> z::nat...
{"author": "inpefess", "repo": "residuated-binars", "sha": "330aaa51b6dbcaa06f8a6d15fe17c1ce58ae2a59", "save_path": "github-repos/isabelle/inpefess-residuated-binars", "path": "github-repos/isabelle/inpefess-residuated-binars/residuated-binars-330aaa51b6dbcaa06f8a6d15fe17c1ce58ae2a59/involution/task4/T23.thy"}
// Copyright Christian Manning 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef JBSON_JSON_READER_HPP #define JBSON_JSON_READER_HPP #include <type_traits> #include <iterator> #...
{"hexsha": "a7102b5a682a76920112cc4ec0b39990f81194b8", "size": 43076, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/jbson/json_reader.hpp", "max_stars_repo_name": "chrismanning/jbson", "max_stars_repo_head_hexsha": "2e5ca71f3300d9d5d7e59e64f2d9ece32d96716f", "max_stars_repo_licenses": ["BSL-1.0"], "max_s...
import h5py import numpy as np import keras from yad2k.models.keras_yolo import preprocess_true_boxes import scipy.ndimage as ndi from skimage import transform import PIL from spine_preprocessing.spine_preprocessing import process_data import cv2 def random_rotation_with_boxes(x, boxes, rg, row_axis=0, col_axis=1, cha...
{"hexsha": "eab96241b40f9f5e8c2be252ae79c4fe4b244735", "size": 7187, "ext": "py", "lang": "Python", "max_stars_repo_path": "data_generator.py", "max_stars_repo_name": "mikeusru/yolo_spines", "max_stars_repo_head_hexsha": "bbe9f0b620db2c8860ef84e2490531e363549fe3", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import os import pandas as pd import numpy as np import shutil import stat import inspect import subprocess from functools import partial from pathlib import Path from pkg_resources import resource_filename as resource from pysumma import Simulation from string import Template from typing import List, Dict def read_te...
{"hexsha": "54b50e480d423146ddec16c94b62e022c71ffde6", "size": 13271, "ext": "py", "lang": "Python", "max_stars_repo_path": "pysumma/calibration/ostrich.py", "max_stars_repo_name": "synapticarbors/pysumma", "max_stars_repo_head_hexsha": "7480a12d40742d58629f2742ae7abc92131f831e", "max_stars_repo_licenses": ["BSD-3-Clau...
import cv2 import numpy as np from pyzbar.pyzbar import decode import tracker as tracker class Codigos: knownObjects = [[], []] def __init__(self): """ Constructor. """ self.tracker = tracker.Tracker() def getContours(self, frame, minArea=1000, returnMask=False): """ Detecta los contornos de los obj...
{"hexsha": "92c2a40e675065f18eafa884c4494503f448e76b", "size": 1123, "ext": "py", "lang": "Python", "max_stars_repo_path": "classifiers/codigos.py", "max_stars_repo_name": "gribera/rpi-sorting-machine", "max_stars_repo_head_hexsha": "a073195dcc18e76b902eaa0cd07dc090dc3f1652", "max_stars_repo_licenses": ["MIT"], "max_st...
#coding=utf-8 # Copyright 2017 - 2018 Baidu 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 a...
{"hexsha": "3ad3446f9c72ca8eec2b4edda6a03a86e9f385c0", "size": 3109, "ext": "py", "lang": "Python", "max_stars_repo_path": "tutorials/mnist_tutorial_fgsm_tf.py", "max_stars_repo_name": "wayangGit/AdvBox", "max_stars_repo_head_hexsha": "2be7afc3fea0013a7d59bab97d1325dd688eaa5f", "max_stars_repo_licenses": ["Apache-2.0"]...
\section{Built-in Module \sectcode{select}} \bimodindex{select} This module provides access to the function \code{select} available in most \UNIX{} versions. It defines the following: \renewcommand{\indexsubitem}{(in module select)} \begin{excdesc}{error} The exception raised when an error occurs. The accompanying ...
{"hexsha": "0b5010139513b574cd44e067a4552c00b5729356", "size": 1989, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Doc/libselect.tex", "max_stars_repo_name": "AtjonTV/Python-1.4", "max_stars_repo_head_hexsha": "2a80562c5a163490f444181cb75ca1b3089759ec", "max_stars_repo_licenses": ["Unlicense", "TCL", "DOC", "AAL...
import copy import logging import torch import numpy as np from torch.utils.data import DataLoader from torchvision import datasets, transforms log = logging.getLogger(__name__) def balanced_batches(dataset, batch_size): unlabled_idx = dataset.unlabeled_idx labeled_idx = list(filter(lambda _: _ not in unlab...
{"hexsha": "a51ad508c3e4605aa5d56cdd71a1936a4330f38d", "size": 6698, "ext": "py", "lang": "Python", "max_stars_repo_path": "fashion_mnsit.py", "max_stars_repo_name": "samarthbhargav/symstat", "max_stars_repo_head_hexsha": "e4de589388f64c90a0bd4d32a353cd86f83ff9ac", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
[STATEMENT] theorem wlsFSb_recAll_reflFreshAll: "wlsFSb MOD \<Longrightarrow> gFreshClsRev MOD \<Longrightarrow> reflFreshAll (rec MOD) (recAbs MOD) MOD" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>wlsFSb MOD; gFreshClsRev MOD\<rbrakk> \<Longrightarrow> reflFreshAll (rec MOD) (recAbs MOD) MOD [PROOF STEP...
{"llama_tokens": 308, "file": "Binding_Syntax_Theory_Recursion", "length": 2}
C Copyright(C) 1999-2020 National Technology & Engineering Solutions C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with C NTESS, the U.S. Government retains certain rights in this software. C C See packages/seacas/LICENSE for details SUBROUTINE SEW2 (MXND, MLN, NUID, LXK, KXL, N...
{"hexsha": "1f768fda2cf13185ed1acb3a14ec05d69b85384a", "size": 7935, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "packages/seacas/applications/fastq/sew2.f", "max_stars_repo_name": "utkarshayachit/seacas", "max_stars_repo_head_hexsha": "15444b2477f9fd9bb0d0c4a8c7be3160fa011758", "max_stars_repo_licenses": ["P...
/* * This is part of the fl library, a C++ Bayesian filtering library * (https://github.com/filtering-library) * * Copyright (c) 2015 Max Planck Society, * Autonomous Motion Department, * Institute for Intelligent Systems * * This Source Code Form is subject to the terms of the MIT License (MIT). ...
{"hexsha": "3a4c5ec1cd9183d90f192c7d2f8f188c455167c5", "size": 3219, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/fl/filter/gaussian/update_policy/sigma_point_additive_update_policy.hpp", "max_stars_repo_name": "aeolusbot-tommyliu/fl", "max_stars_repo_head_hexsha": "a50d0c9620a8f86e0cd14a5e22ee0f022d00b...
# Example expected syntax of the R client. (Not expected to be functional yet) library(devtools) options(unzip = 'internal'); install_github("Open-EO/openeo-r-backend", ref="develop") # Currently takes a while install_github("Open-EO/openeo-r-client", ref="develop") library(openeo) # Potentially there should be an ab...
{"hexsha": "564e38d6eb72f48faceb962c365aea1d01396de9", "size": 5289, "ext": "r", "lang": "R", "max_stars_repo_path": "examples/syntax-example.r", "max_stars_repo_name": "przell/openeo-r-client", "max_stars_repo_head_hexsha": "802e937d63529008e3e0113dc4fc747b8f854052", "max_stars_repo_licenses": ["Apache-2.0"], "max_sta...
import picamera import picamera.array import numpy as np import RPi.GPIO as GPIO def SetGPIO(): GPIO.setmode(GPIO.BOARD) # or GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(15, GPIO.IN) GPIO.setup(16, GPIO.OUT) LED = 0 # LED = GPIO.PWM(8,5000) #GPIO19 as PWM output...
{"hexsha": "1ab8cd551910b0f3b30bd3c8ce9f353566776b1b", "size": 1944, "ext": "py", "lang": "Python", "max_stars_repo_path": "kalibrace_web.py", "max_stars_repo_name": "Lindros9203/chlr", "max_stars_repo_head_hexsha": "cfc369c50466d74340ff593250d05fd037813090", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
# # Copyright (c) 2019. JetBrains s.r.o. # Use of this source code is governed by the MIT license that can be found in the LICENSE file. # from .core import FeatureSpec __all__ = ['guide_legend', 'guide_colorbar', 'guides'] def guide_legend(nrow=None, ncol=None, byrow=None): """ Legend guide. Parameters...
{"hexsha": "dafd411fb4bef45751a1e0734c8b13f17adfacb5", "size": 3478, "ext": "py", "lang": "Python", "max_stars_repo_path": "python-package/lets_plot/plot/guide.py", "max_stars_repo_name": "randomnetcat/lets-plot", "max_stars_repo_head_hexsha": "e7092424bb0c62183328552faec16ed062e42e7b", "max_stars_repo_licenses": ["MIT...
[STATEMENT] lemma ValD_copy_eta_theta_strict [intro, simp]: "ValD_copy_eta n\<cdot>\<bottom> = \<bottom>" "ValD_copy_theta n\<cdot>\<bottom> = \<bottom>" [PROOF STATE] proof (prove) goal (1 subgoal): 1. ValD_copy_eta n\<cdot>\<bottom> = \<bottom> &&& ValD_copy_theta n\<cdot>\<bottom> = \<bottom> [PROOF STEP] by (i...
{"llama_tokens": 146, "file": "PCF_Continuations", "length": 1}
from vplot import GetOutput import subprocess import numpy as np import os cwd = os.path.dirname(os.path.realpath(__file__)) def test_SS_SpiNBody(): """Test NBody Evolution.""" # Remove old log file subprocess.run(['rm', 'SpiNBody.log'], cwd=cwd) # Run vplanet subprocess.run(['vplanet', 'vpl.in', ...
{"hexsha": "1cabd88754ee9ff0f4406dadcd174b3bb8fccbd0", "size": 1268, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/SS_SpiNBody/test_SS_SpiNBody.py", "max_stars_repo_name": "alex-w/vplanet", "max_stars_repo_head_hexsha": "e901ac08208f7fd5edb30677f32f36619eb8ca8c", "max_stars_repo_licenses": ["MIT"], "max_...
/* * ----------------------------------------------------------------- * Ellipsoid Library --- ell_lib.h * Version: 1.6180 * Date: Feb 19, 2010 * ----------------------------------------------------------------- * Programmer: Americo Barbosa da Cunha Junior * americo.cunhajr@gmail.com * -------------...
{"hexsha": "e433221ef52d732c106b8ecb9b4ddf9fdcedc914", "size": 2254, "ext": "h", "lang": "C", "max_stars_repo_path": "CRFlowLib-1.0/include/ell_lib.h", "max_stars_repo_name": "americocunhajr/CRFlowLib", "max_stars_repo_head_hexsha": "35b67f798c1c33118c028691f42b98ba06220eeb", "max_stars_repo_licenses": ["MIT"], "max_st...
from trainer import * import time import os import sys import csv import argparse import numpy as np import tensorflow as tf parser = argparse.ArgumentParser() parser.add_argument('--dataset', default="bace_cla", help="Dataset type") parser.add_argument('--pooling', default='avg', help="Pooling type") parser.add_arg...
{"hexsha": "0f94d111f4000581197307ef30a1e7fba26a4d40", "size": 2929, "ext": "py", "lang": "Python", "max_stars_repo_path": "model/run_script.py", "max_stars_repo_name": "CIS-group/MolNet", "max_stars_repo_head_hexsha": "a8e07bf3598b2d48f3f025722ba60e76a53cf54b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1,...
[STATEMENT] lemma Call_\<tau>red1r_obj: "\<tau>red1gr uf P t h (e, xs) (e', xs') \<Longrightarrow> \<tau>red1gr uf P t h (e\<bullet>M(ps), xs) (e'\<bullet>M(ps), xs')" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<tau>red1gr uf P t h (e, xs) (e', xs') \<Longrightarrow> \<tau>red1gr uf P t h (e\<bullet>M(ps), xs...
{"llama_tokens": 216, "file": "JinjaThreads_Compiler_J1", "length": 1}
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
{"hexsha": "3cfe5a4e26e37780d3d3a6fe5adbb9529f0f1cdb", "size": 2654, "ext": "cc", "lang": "C++", "max_stars_repo_path": "src/Core/Math/Tests/FloatingPointAssertionTests.cc", "max_stars_repo_name": "mhansen1/SCIRun", "max_stars_repo_head_hexsha": "9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba", "max_stars_repo_licenses": ["U...
import numpy as np import cv2 as cv import argparse parser = argparse.ArgumentParser(description='This sample demonstrates the camshift algorithm. \ The example file can be downloaded from: \ https://www.bogotobogo.com/py...
{"hexsha": "8681c112c71d14f5d2e1d94ceb4a0b1c02edca1c", "size": 1747, "ext": "py", "lang": "Python", "max_stars_repo_path": "opencv/sources/samples/python/tutorial_code/video/meanshift/camshift.py", "max_stars_repo_name": "vrushank-agrawal/opencv-x64-cmake", "max_stars_repo_head_hexsha": "3f9486510d706c8ac579ac82f5d58f6...
# -*- coding: utf-8 -*- from __future__ import division, print_function import collections import numpy as np import pygame import random import os class MyWrappedGame(object): def __init__(self): # run pygame in headless mode # os.environ["SDL_VIDEODRIVER"] = "dummy" pygame.in...
{"hexsha": "5cc31cffe4006ba756deca4c580c6c475d1c1563", "size": 4850, "ext": "py", "lang": "Python", "max_stars_repo_path": "Chapter08/wrapped_game.py", "max_stars_repo_name": "Diponly/Deep-Learning-with-Keras", "max_stars_repo_head_hexsha": "b9a4f612c524518f054db2c2665f62f55d063019", "max_stars_repo_licenses": ["MIT"],...
# Run this after making the training data from capturing the screen data import os import torch import pickle import cv2 import numpy as np import random from tqdm import tqdm print('Imports complete') # path to where the screen grab images are stored path = f'F:\\Srujan\\MyProjects\\Data_Sets\\self_driving_car' file...
{"hexsha": "3462813bb13bfd86609bc65f3767505b11ab9f95", "size": 1834, "ext": "py", "lang": "Python", "max_stars_repo_path": "p2_balance_and_store_dataset.py", "max_stars_repo_name": "Srujan35007/Self-Driving-Car", "max_stars_repo_head_hexsha": "4a8cbb8301a5a3e896219ef3acf7ef40c094f9d2", "max_stars_repo_licenses": ["MIT"...
[STATEMENT] lemma Word_eq_word_of_int [code_post, simp]: \<open>Word.Word = of_int\<close> [PROOF STATE] proof (prove) goal (1 subgoal): 1. Word.Word = of_int [PROOF STEP] by (rule; transfer) simp
{"llama_tokens": 84, "file": null, "length": 1}
### A Pluto.jl notebook ### # v0.14.7 using Markdown using InteractiveUtils # This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). macro bind(def, element) quote loc...
{"hexsha": "ff3343a93794867af6a3fe1b819ebcf36ef369a9", "size": 2326, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "learn/learn_Pluto.jl", "max_stars_repo_name": "ykyang/org.allnix.julia", "max_stars_repo_head_hexsha": "58933a5848dec81c53d591b4163e9a70df62ddd8", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
# MINLP written by GAMS Convert at 04/21/18 13:52:21 # # Equation counts # Total E G L N X C B # 93 17 0 76 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
{"hexsha": "7cd9b6edf0cb21aff67cc58f715401ee83102e44", "size": 12817, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/examples/minlplib/genpooling_lee2.py", "max_stars_repo_name": "ouyang-w-19/decogo", "max_stars_repo_head_hexsha": "52546480e49776251d4d27856e18a46f40c824a1", "max_stars_repo_licenses": ["MI...
import torch import numpy as np from torch.nn import Sequential, Linear, ReLU, Module, Tanh from torch.nn.functional import mse_loss class SimpleAutoEncoder(torch.nn.Module): def __init__(self, num_inputs, val_lambda=666): super(SimpleAutoEncoder, self).__init__() self.val_lambda = val_lambda ...
{"hexsha": "9481f974c38b54338bfafde91343e44236f24cff", "size": 1705, "ext": "py", "lang": "Python", "max_stars_repo_path": "03_Experimente/models/SimpleAutoEncoder.py", "max_stars_repo_name": "yellingmonkees/MetaLearningForAD", "max_stars_repo_head_hexsha": "04579ddf707421a016f5ca3a0a2e4ba80efe2890", "max_stars_repo_li...
import cv2 import numpy as np import matplotlib.pyplot as plt img = cv2.imread('../DATA/sammy_face.jpg') img2 = cv2.cvtColor(img,cv2.COLOR_BGR2RGB) med_val = np.median(img) #LOWER THRESHOLD TO EITHER 0 OR 70% OF THE MEDIAN BALUE WHICHEVER IS GREATER lower = int(max(0,0.7*med_val)) # UPPER THRESHOLD TO EITHER 130% OF ...
{"hexsha": "70e0d8291ad2ae689490f7ced4d24e98aa1eeac0", "size": 518, "ext": "py", "lang": "Python", "max_stars_repo_path": "Section6_Object_Detection/class3_edge_detection.py", "max_stars_repo_name": "MSathler/Computer_Vision_plus_DeepLearning_Course", "max_stars_repo_head_hexsha": "b91472599722b781fb9f6554172872c482fcc...
""" This function takes in compounds calibration data files to generate interpolated data made from randomized combinations of calibration peak data, and, using spectrafit, identifies peaks found in the fed-in known calibration peak spectra. It returns DataFrames with peak fitting descriptors to be used in either molar...
{"hexsha": "af186d319460989adb1b1dad090ff994b45460c2", "size": 15325, "ext": "py", "lang": "Python", "max_stars_repo_path": "ramandecompy/interpolatespectra.py", "max_stars_repo_name": "kernb2/raman-spectra-decomp-analysis", "max_stars_repo_head_hexsha": "9ee09021e8e57735209812b062607de7e123beea", "max_stars_repo_licen...
import os import numpy as np import argparse import tensorflow as tf c = tf.ConfigProto() c.gpu_options.allow_growth = True sess = tf.Session(config = c) from scipy.io import loadmat from utils import * from src import * parser = argparse.ArgumentParser(description = 'CLI args for training') parser.add_argument('--c...
{"hexsha": "dae4b25eb1e2904106aa18cebe0e1496986e1c38", "size": 2078, "ext": "py", "lang": "Python", "max_stars_repo_path": "train.py", "max_stars_repo_name": "sarthaxxxxx/AAI-ALS", "max_stars_repo_head_hexsha": "48703525eb3490e2ba5cb555dc69fd9d10bf859a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_st...
import itertools import apteco_api as aa import numpy as np import pandas as pd from apteco.common import VariableType class Cube: def __init__( self, dimensions, measures=None, selection=None, table=None, *, session=None ): self.dimensions = dimensions self.measures = measures ...
{"hexsha": "ce7bd926905f3af4cabd1646a9f405c57b2deb7e", "size": 11561, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/apteco/cube.py", "max_stars_repo_name": "Apteco/py-apteco", "max_stars_repo_head_hexsha": "41bb23aceeb1cf4bbadede0d1cf7806ca1c3b8bb", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_cou...
# Import packages import os import gc import sys import time import pysam import scipy import psutil import random import logging import resource import traceback import numpy as np import pandas as pd from tqdm import tqdm import multiprocessing import concurrent.futures from subprocess import call from concurrent imp...
{"hexsha": "ab6d6e2cc94f41529f8f6feeae50dc29f7798c15", "size": 32550, "ext": "py", "lang": "Python", "max_stars_repo_path": "inStrain/profile/profile_utilities.py", "max_stars_repo_name": "apcamargo/inStrain", "max_stars_repo_head_hexsha": "4a65184556211c3872c7a485345e21a58858e86a", "max_stars_repo_licenses": ["MIT"], ...
import argparse import matplotlib.pyplot as plt import torch import numpy as np from torch import nn from torch import optim import torch.nn.functional as F from torchvision import datasets, transforms, models from PIL import Image from matplotlib.pyplot import imshow import utility as util import helper parser = argp...
{"hexsha": "f6f7ec8fd38646ec3ebbefba22c63e0d4ed90313", "size": 2524, "ext": "py", "lang": "Python", "max_stars_repo_path": "deep_learning_project/part2/predict.py", "max_stars_repo_name": "raafatzahran/master-machine-learning", "max_stars_repo_head_hexsha": "41e7a2ea658390aa4788c841ac99107f71d644b4", "max_stars_repo_li...
"""Solve problems that have manufactured solutions.""" import unittest import numpy as np from skfem.models.poisson import laplace, mass from skfem.mesh import MeshHex, MeshLine, MeshQuad, MeshTet, MeshTri from skfem.element import (ElementHex1, ElementHexS2, ElementLineP1, ElementLineP2, ...
{"hexsha": "b6f79631d12fef31ff6d65687bae1f9a0690c325", "size": 4841, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_manufactured.py", "max_stars_repo_name": "ahhuhtal/scikit-fem", "max_stars_repo_head_hexsha": "84ad97bfd2a92d28694f54f6897d97966bda31df", "max_stars_repo_licenses": ["BSD-3-Clause"], "m...
[STATEMENT] lemma rel_FGco_pos_distr_imp: fixes Co1 :: "'co1 \<Rightarrow> 'co1' \<Rightarrow> bool" and Co1' :: "'co1' \<Rightarrow> 'co1'' \<Rightarrow> bool" and Co2 :: "'co2 \<Rightarrow> 'co2' \<Rightarrow> bool" and Co2' :: "'co2' \<Rightarrow> 'co2'' \<Rightarrow> bool" and Co5 :: "'co5 \<Rightarrow> '...
{"llama_tokens": 3446, "file": "BNF_CC_Composition", "length": 11}
(* This Isabelle theory is produced using the TIP tool offered at the following website: https://github.com/tip-org/tools This file was originally provided as part of TIP benchmark at the following website: https://github.com/tip-org/benchmarks Yutaka Nagashima at CIIRC, CTU changed the TIP output th...
{"author": "data61", "repo": "PSL", "sha": "2a71eac0db39ad490fe4921a5ce1e4344dc43b12", "save_path": "github-repos/isabelle/data61-PSL", "path": "github-repos/isabelle/data61-PSL/PSL-2a71eac0db39ad490fe4921a5ce1e4344dc43b12/UR/TIP_with_Proof/TIP15/TIP15/TIP_list_nat_count_nub.thy"}
[STATEMENT] lemma iFROM_iprev_if: " iprev t [n\<dots>] = (if n < t then t - Suc 0 else t)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. iprev t [n\<dots>] = (if n < t then t - Suc 0 else t) [PROOF STEP] by (simp add: iFROM_iprev iT_Min iprev_le_iMin)
{"llama_tokens": 122, "file": "Nat-Interval-Logic_IL_Interval", "length": 1}
from scipy.sparse import csc_matrix from scipy.sparse import linalg from tqdm import tqdm from utils import * EPSILON = 10**-5 def colorize(in_img, src_img, filter_colors=False, method="diff"): """ Colorize in_img with colors from a marked src_img :param in_img: greyscale image to colorize :param sr...
{"hexsha": "1e4397ecde99884044ed920e52fdf0f33be53158", "size": 6102, "ext": "py", "lang": "Python", "max_stars_repo_path": "colorize.py", "max_stars_repo_name": "jsonkung/image-colorization", "max_stars_repo_head_hexsha": "a0323177c4d536ed9bcf2b67aa38a3b28da6749c", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
# -*- coding: utf-8 -*- # ========================== # RT_experiment.py # ========================== """ Present an image randomly, press a key asap, measure response time. (press 'q' to quit) """ import numpy as np import os import codecs from psychopy import visual, sound, event, core, data, logging import random, ...
{"hexsha": "ce1ea40b32fa8a4b5bf5bad5a30e9e1811bda6a9", "size": 14062, "ext": "py", "lang": "Python", "max_stars_repo_path": "bcam_script/RTTask/RT_experiment.py", "max_stars_repo_name": "appliedrd/CogSciProject-master", "max_stars_repo_head_hexsha": "6ff2eff27cdf7335c41fedfc1e67f4a13cc5ca99", "max_stars_repo_licenses":...
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies ! This file was ported from Lean 3 source module topology.bornology.hom ! leanprover-community/mathlib commit fac369018417f980cec5fcdafc766a69f88d8cfe ! Please do not edit ...
{"author": "leanprover-community", "repo": "mathlib3port", "sha": "62505aa236c58c8559783b16d33e30df3daa54f4", "save_path": "github-repos/lean/leanprover-community-mathlib3port", "path": "github-repos/lean/leanprover-community-mathlib3port/mathlib3port-62505aa236c58c8559783b16d33e30df3daa54f4/Mathbin/Topology/Bornology/...
#!/usr/bin/env python import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import time import os def running_mean(l, k): """ Function to plot the running k-mean of a list l of values :param l: list of numbers :param k: integer :return """ cumulative_sum = np.cumsum(np.i...
{"hexsha": "ba6a2371a22dc3aa65d3a0d97d7c3cf7052aafb2", "size": 10532, "ext": "py", "lang": "Python", "max_stars_repo_path": "FrechetHoeffding/Figure1.py", "max_stars_repo_name": "stephaneckstein/transport-and-related", "max_stars_repo_head_hexsha": "e30e1f44e0171237e2187596a69bcac596def642", "max_stars_repo_licenses": ...
from jaxnet.core import parametrized, Parameter, save, load from jaxnet.modules import *
{"hexsha": "a7a62e53482a7d8a21c2beb82bd2a87d12850057", "size": 89, "ext": "py", "lang": "Python", "max_stars_repo_path": "jaxnet/__init__.py", "max_stars_repo_name": "tom-bird/jaxnet", "max_stars_repo_head_hexsha": "076ea3e0ce1c02164bad9082305e43bf77714e10", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count":...
""" abstract type Quadrature{D,T} <: GridapType end -[`get_coordinates(q::Quadrature)`](@ref) -[`get_weights(q::Quadrature)`](@ref) -[`test_quadrature`](@ref) """ abstract type Quadrature{D,T} <: GridapType end # Abstract API """ get_coordinates(q::Quadrature) """ function get_coordinates(q::Quadrature) @...
{"hexsha": "71dc4fd857b1399950edd2364785317cb82fbc36", "size": 3290, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ReferenceFEs/Quadratures.jl", "max_stars_repo_name": "aerappa/Gridap.jl", "max_stars_repo_head_hexsha": "1fb3dc9abf8c47685637901bd14a74e4355a9492", "max_stars_repo_licenses": ["MIT"], "max_star...
mutable struct MultigridSolver{T} p :: Vector{LinearProblem{T}} # linear problems r :: Vector{AffineMap{T}} # restrictors i :: Vector{AffineMap{T}} # interpolators n :: Int64 end function MultigridSolver{T}(L::LinearProblem{T}, max_layers::Int64) where {T} p = Vector{LinearProblem{T}}(undef,...
{"hexsha": "7db2e6db3cdf54c9b9634a0e030b61e6484ffc66", "size": 1182, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/MultigridBase/solver.jl", "max_stars_repo_name": "JakeWillard/GDB.jl", "max_stars_repo_head_hexsha": "9d025feeb47995ac4a880919d801fd2256b826d0", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
import numpy as np import os import time import sys import pickle import matplotlib.pyplot as plt from keras_robsanpam.image import ImageDataGeneratorMod from keras_robsanpam.resnet152 import ResNet152 from keras.applications.resnet50 import ResNet50 from keras import backend as K from keras.models import Model, Sequen...
{"hexsha": "8bccc98d907668d5dd568a02e5ba20530c1f3067", "size": 16407, "ext": "py", "lang": "Python", "max_stars_repo_path": "simple_rgb.py", "max_stars_repo_name": "robsanpam/FERA17Challenge-Keras", "max_stars_repo_head_hexsha": "9bf7979abc27ce612cd2d65d634152d18212df91", "max_stars_repo_licenses": ["MIT"], "max_stars_...
import re import numpy as np import random from config import * from load_model import load_model from utils import * from keras.preprocessing.sequence import pad_sequences # from keras.models import Model # from keras.layers import Input, LSTM, Dense, Bidirectional, TimeDistributed, Embedding, Average # fro...
{"hexsha": "2b1d9c9783f4bd8234f309ad94d3027cdf126cac", "size": 4043, "ext": "py", "lang": "Python", "max_stars_repo_path": "LoadAndRun/run.py", "max_stars_repo_name": "shreyanshchordia/Chatbot", "max_stars_repo_head_hexsha": "abdbda328d25b6c0deecc840fff625451f92d871", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
#include "CodegenManager.h" #include "TempDirectory.h" #include "Utility.h" #include <boost/process.hpp> namespace process = boost::process; CodegenManager::CodegenManager(const string& templateDir) { this->redirectHeader = Utility::readFile(templateDir + "/redirect.h"); this->redirectCode = Utility::readFile(templ...
{"hexsha": "082f10948e4ea7c3ff2cfe8a118a4017a325e170", "size": 1839, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "server/languages/cxx/source/CodegenManager.cpp", "max_stars_repo_name": "adamrehn/language-toolbox", "max_stars_repo_head_hexsha": "f86c39784b2a6952719afdd7c3769a6a6b5f2630", "max_stars_repo_license...
""" Dataloaders for CUB200-2011, CARS196 and Stanford Online Products. """ """===================================================================================================""" ################### LIBRARIES ################### import warnings warnings.filterwarnings("ignore") import numpy as np, os, sys, pandas a...
{"hexsha": "df3fe68be163020984034052e02e484b733f35e0", "size": 16018, "ext": "py", "lang": "Python", "max_stars_repo_path": "datasets.py", "max_stars_repo_name": "Confusezius/CVPR2020_PADS", "max_stars_repo_head_hexsha": "5725887c89d8711efaf004a1c17e32ab5117e0f9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import matplotlib import numpy as np import os from scipy import ndimage from collections import abc,namedtuple from controllers.fit_function_factory import * from controllers.utility import fit_data_to import matplotlib.pyplot as plt from matplotlib.widgets import Slider import weakref import gc class Fit: r"""...
{"hexsha": "bec29af594b734e6979def427cebb21f4c80dcf0", "size": 10062, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/controllers/fitter.py", "max_stars_repo_name": "super-resolution/lineprofiler", "max_stars_repo_head_hexsha": "8ca3d63b9b209ba0b1a4da9258fb1111ed2125c2", "max_stars_repo_licenses": ["MIT"], "...
import numpy as np import pywt import torch from torch.utils.data import DataLoader from torchvision import datasets, transforms import torch.nn.functional as F import torch.nn as nn import itertools import pickle class MyNet_class(nn.Module): def __init__(self, input_size, output_size, hidden): super(MyNe...
{"hexsha": "bf57a0d5039f4973faaeccc11f28cce55d4aae07", "size": 4219, "ext": "py", "lang": "Python", "max_stars_repo_path": "hri_hand_control/script/predict_pattern.py", "max_stars_repo_name": "mechAneko12/icra2022", "max_stars_repo_head_hexsha": "a87d7c9c0477cb210005747915bfa71db6a51b5e", "max_stars_repo_licenses": ["M...
"""Calculate test set' accuracy by: First generate (embeddings,labels) of training set Then perform k-means for each class and get centroids_per_class, save as npy file When predicting, generate embedding of test set and perform knn to predict labels """ import argparse import os import pathlib import shutil ...
{"hexsha": "5d7ea89f50babaff17bd5aef126d04e862df8d9e", "size": 6678, "ext": "py", "lang": "Python", "max_stars_repo_path": "predict.py", "max_stars_repo_name": "MapleLeafKiller/tensorflow-triplet-loss", "max_stars_repo_head_hexsha": "ac349e344a647c5aeed7248926a76a0fe64f4cb7", "max_stars_repo_licenses": ["MIT"], "max_st...
""" Crco fileformat See EUROCONTROL NEST Manual for Crco fileformat description Example CRCO fileformat ED N182QS B737 1523 3217.8167 599.3000 3018.8009 726.39836 396.03131430 090500 020322 0.000 095918 020322 270.000 LK N182QS B737 1523 3018.8009 726.3983 3019.0000 726.9864 0.78728520 095918 020322 270.000 095922 020...
{"hexsha": "02b3c5eb906bff55db4fe4320a8295aa39f13399", "size": 1989, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Crco.jl", "max_stars_repo_name": "rjdverbeek-tud/DDR2import.jl", "max_stars_repo_head_hexsha": "ac81fe1a65c4f7522b953df410b8bcca102e72de", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
REAL FUNCTION SBESJ0 (X) c Copyright (c) 1996 California Institute of Technology, Pasadena, CA. c ALL RIGHTS RESERVED. c Based on Government Sponsored Research NAS7-03001. c>> 1996-03-30 SBESJ0 Krogh Added external statement. C>> 1995-11-10 SBESJ0 Krogh Changed data statment for C converstion. C>> 1...
{"hexsha": "ddb0077fe9be39e50a679cfda963bc7538eb2ddf", "size": 2814, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/MATH77/sbesj0.f", "max_stars_repo_name": "jacobwilliams/math77", "max_stars_repo_head_hexsha": "b562d09e191e99eba8a5bedfec45acf7461203b1", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta...
from HellowWorld import Bar import zeno.HellowWorld from zeno import HellowWorld import random import numpy a = random.randint(1, 2) print(a) help(random.randint) # bar = Bar() # bar.foo()
{"hexsha": "213b88b3e02e0191891176cc8191a832969297d7", "size": 194, "ext": "py", "lang": "Python", "max_stars_repo_path": "zeno/HelloWorld2.py", "max_stars_repo_name": "ZenoBoumerkhoufa/python-for-java-devs", "max_stars_repo_head_hexsha": "45f5f52c580ea300cc94cd408804ea3f7c3680a7", "max_stars_repo_licenses": ["Apache-2...
#include "matrix.h" #include "mex.h" #include <iostream> #include <math.h> #include <chrono> #include <random> #include <vector> #include <Eigen\Dense> #include <Eigen\SVD> #include "estimator.h" #include "prosac.h" #include "mlesac.h" #include "ransac.h" using namespace std; using namespace theia; using namespace...
{"hexsha": "c98077c0766c237bb8ffac5179cf2d0d11867eb7", "size": 6388, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "homography_estimator.cpp", "max_stars_repo_name": "erfannoury/sac", "max_stars_repo_head_hexsha": "7e4c183a91bf16803bc78536476bba594bfba109", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 7...
function gX = rbfardKernDiagGradX(kern, X) % RBFARDKERNDIAGGRADX Gradient of RBFARD kernel's diagonal with respect to X. % FORMAT % DESC computes the gradient of the diagonal of the automatic relevance determination radial basis function kernel matrix with % respect to the elements of the design matrix given in X. % ...
{"author": "SheffieldML", "repo": "GPmat", "sha": "4b5914a38ecbad9fb7a13a3392970bfc28c9d911", "save_path": "github-repos/MATLAB/SheffieldML-GPmat", "path": "github-repos/MATLAB/SheffieldML-GPmat/GPmat-4b5914a38ecbad9fb7a13a3392970bfc28c9d911/kern/rbfardKernDiagGradX.m"}
# -*- coding: utf-8 -*- """ASL_CNN.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1M5JA5_OV0N_biYsciMnmlUvrAor8Yx_u **Set up colab for ASL data from kaggel** """ ! pip install kaggle ! mkdir ~/.kaggle ! cp kaggle.json ~/.kaggle/ ! chmod 600 ...
{"hexsha": "b8080becde645e1f55df063274f29e322bf89979", "size": 7141, "ext": "py", "lang": "Python", "max_stars_repo_path": "ASL_CNN.py", "max_stars_repo_name": "TarekIdrees/ASL-using-CNN", "max_stars_repo_head_hexsha": "8da50dedb0e637e61936763a246fd548a924f8f9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
/** * Copyright (c) 2013 * Claudio Kopper <claudio.kopper@icecube.wisc.edu> * and the IceCube Collaboration <http://www.icecube.wisc.edu> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and th...
{"hexsha": "e87ed2b7d12ce27b52b6a88b0a7d04e5a71095be", "size": 3122, "ext": "cxx", "lang": "C++", "max_stars_repo_path": "simclasses/private/simclasses/I3CompressedPhoton.cxx", "max_stars_repo_name": "hschwane/offline_production", "max_stars_repo_head_hexsha": "e14a6493782f613b8bbe64217559765d5213dc1e", "max_stars_repo...
import os import numpy as np from keras.models import load_model from sklearn.metrics import precision_score, recall_score, f1_score, cohen_kappa_score, classification_report, \ accuracy_score from utils.confusionmatrix import Confusionmatrix from utils.create_test_sets import TestSetCreator class Evaluator: ...
{"hexsha": "b5c322af0ac39e5dd0939cd7054de4e5b489d917", "size": 6330, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/evaluate_model.py", "max_stars_repo_name": "ufukhurriyetoglu/DocumentImageClassification", "max_stars_repo_head_hexsha": "61ea09374a909dc96b2722cc5e35a5142b90d45f", "max_stars_repo_licenses"...
# zadanie 2 # Utwórz macierz 3x3 oraz 4x4 i znajdź # najniższe wartości dla każdej kolumny i każdego rzędu. import numpy as np import random from datetime import datetime A = np.empty((3,3), dtype=int) B = np.empty((4,4), dtype=int) random.seed(datetime.now()) for i in range(0, 3, 1): for j in range...
{"hexsha": "60f74ad315cdf32fc1e507606b1702659a1b2ce3", "size": 1341, "ext": "py", "lang": "Python", "max_stars_repo_path": "wd_cw07/wd_cw07_zadanie_2.py", "max_stars_repo_name": "pawel2706111/wizualizacja-danych", "max_stars_repo_head_hexsha": "05792ebb5eab235be69b0d218dbacc9f62d7cc3e", "max_stars_repo_licenses": ["MIT...
# -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 2017 Bitcraze AB # # Cr...
{"hexsha": "5a6cabdef86c4893b0fd950d8c54af5187350fa7", "size": 16537, "ext": "py", "lang": "Python", "max_stars_repo_path": "scanTest.py", "max_stars_repo_name": "StuartLiam/DroneNavigationOnboard", "max_stars_repo_head_hexsha": "11ac6a301dfc72b15e337ddf09f5ddc79265a03f", "max_stars_repo_licenses": ["MIT"], "max_stars_...
def h(x): if x >= 0: import numpy as np return 2 * np.sqrt(x) if __name__ =='__main__': from matplotlib import pyplot as plt import pandas as pd df = pd.DataFrame({'x': range(-20, 21)}) df['y'] = [h(a) for a in df['x']] print(df) plt.title('h(x) = 2 • sqrt(x), x >= 0') plt.xlabel('x') plt....
{"hexsha": "2579a224ec9dbd1abc32bd9d2581e808e2b0c85d", "size": 539, "ext": "py", "lang": "Python", "max_stars_repo_path": "modules/math-codes/modules/differential-calculus/limits/src/test_hfunction.py", "max_stars_repo_name": "drigols/Studies", "max_stars_repo_head_hexsha": "9c293156935b491ded24be6b511daac67fd43538", "...
import numpy as np import pandas as pd def assign_prob_to_word(word, seg_length, syl_length, df_syl_count, language_model_all_syl, n_phones = 4, n_vowels = 2): """ assign log2prob to words based on language model params: @df_syl_count: df with log2prob for each syl_length @language_model_all_syl: {...
{"hexsha": "63046155ba0c03ff7a39ac6425907f12ef2c579b", "size": 1890, "ext": "py", "lang": "Python", "max_stars_repo_path": "04_Sampling_with_randomization/assign_probs_to_words.py", "max_stars_repo_name": "syyangv/CrossLingPhonotacticProbs44", "max_stars_repo_head_hexsha": "e44b119287e556dcbcd742458beb7a52de1cfcd3", "m...
import random import itertools import networkx as nx def stochastic_block_on_cut(cut, within, between): """ Returns a graph drawn from the Stochastic Block Model, on the vertices in CUT. Every edge between pairs of vertices in CUT.LEFT and CUT.RIGHT is present independently with probability WITHIN; ed...
{"hexsha": "2eb72ef537568f7e07d216425444b75c7e5f639a", "size": 1475, "ext": "py", "lang": "Python", "max_stars_repo_path": "cvxgraphalgs/generators/stochastic_block.py", "max_stars_repo_name": "hermish/cvx-graph-algorithms", "max_stars_repo_head_hexsha": "733e137a906bd6c2965d5853d2798a8a01db945c", "max_stars_repo_licen...
\documentclass[12pt]{article} \usepackage{amsmath, amsfonts, amssymb, amstext, amscd, amsthm, graphicx, mathtools,mathrsfs} % I use these packages so frequently that I include them in nearly all my files \usepackage[framed,numbered]{matlab-prettifier} \usepackage[T1]{fontenc} \usepackage[notextcomp]{kpfonts} \usepackag...
{"hexsha": "b5ba6430bb471f510f7e15730eb7f931d520abbc", "size": 30666, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "finalPaper/paper.tex", "max_stars_repo_name": "dannys4/hosvd_pde_exploration", "max_stars_repo_head_hexsha": "d1eac929f7e40cdcf2789f69bde61a5298f6e6e2", "max_stars_repo_licenses": ["MIT"], "max_sta...
''' Test basis, which represents the basis of the Legendre Polynomials ''' import numpy as np import unittest from gsplines.basis0010 import cBasis0010 from gsplines.basis1010 import cBasis1010 from gsplines.gspline import cSplineCalc from gsplines import piecewise2json, json2piecewise class cMyTest(unittest.TestC...
{"hexsha": "c766068ccc244a3194b84807ee114148b98aef59", "size": 1420, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/gsplinesjson.py", "max_stars_repo_name": "rafaelrojasmiliani/gsplines", "max_stars_repo_head_hexsha": "663b10f6d53b498a1e892d9eb32a345153de36d2", "max_stars_repo_licenses": ["MIT"], "max_sta...
import os.path import numpy as np import matplotlib.pyplot as plt import imageio from scipy import ndimage from collections import deque from image_viewer import SimpleImageViewer from ctypes import CDLL, POINTER, c_int, c_byte, c_void_p, cast from z80wrapper import Z80Wrapper ########################################...
{"hexsha": "fe5ec1e4e062ed885945a3561492c2d821925786", "size": 3113, "ext": "py", "lang": "Python", "max_stars_repo_path": "speccyfilt.py", "max_stars_repo_name": "ascvorcov/z80-ddqn", "max_stars_repo_head_hexsha": "407de1a4231dd298eb1e749aaa65f498dcdf6958", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "ma...
/- Copyright (c) 2018 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ import algebra.group_with_zero.power import algebra.ring.equiv import tactic.linarith /-! # Integer power operation on fields and division rings This file collect...
{"author": "saisurbehera", "repo": "mathProof", "sha": "57c6bfe75652e9d3312d8904441a32aff7d6a75e", "save_path": "github-repos/lean/saisurbehera-mathProof", "path": "github-repos/lean/saisurbehera-mathProof/mathProof-57c6bfe75652e9d3312d8904441a32aff7d6a75e/src/tertiary_packages/mathlib/src/algebra/field_power.lean"}
from typing import Callable, Sequence, Optional, Tuple import math import attr import cv2 as cv import numpy as np import numpy.typing as npt from vkit.label.type import VPoint, VPointList from .grid_rendering.type import VImageGrid from .grid_rendering.grid_creator import create_src_image_grid from .grid_rendering.i...
{"hexsha": "fa59b40fb5837bdd93f34f646beca1980974cb47", "size": 18904, "ext": "py", "lang": "Python", "max_stars_repo_path": "vkit/augmentation/geometric_distortion/camera.py", "max_stars_repo_name": "Yuri-x/vkit", "max_stars_repo_head_hexsha": "c583149b860064549694517b67f3b71c50044332", "max_stars_repo_licenses": ["Apa...
# coding: utf-8 from collections import defaultdict import pandas as pd import networkx as nx import numpy as np import itertools as it import pickle from collections import * from operator import itemgetter import statistics import math # SECTION 1: GRAPH CREATION ---------- # This class creates a graph from a fil...
{"hexsha": "2152537be9b5bed4a66fd1fed31aa28bb5f760ae", "size": 7200, "ext": "py", "lang": "Python", "max_stars_repo_path": "hw5_lib.py", "max_stars_repo_name": "clabat9/ADM-Group13-HW5", "max_stars_repo_head_hexsha": "692811b9cc49c858e4916afa5a81cd74f79cc670", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
""" pydrad--a Python package for configuring, parsing and visualizing HYDRAD simulations. """ import logging from astropy.logger import AstropyLogger def _init_log(): """ Initializes the SunPy log. In most circumstances this is called automatically when importing SunPy. This code is based on that prov...
{"hexsha": "6540630de6bb30072ab37128643b441893b892d5", "size": 666, "ext": "py", "lang": "Python", "max_stars_repo_path": "pydrad/__init__.py", "max_stars_repo_name": "wtbarnes/hydrad_tools", "max_stars_repo_head_hexsha": "7cd67c12fb8bc55a1b610eb0f4696fe1acffc16a", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
import numpy as np from ..signal.analysis import calculate_alternance def calculate_alternance_map(data: np.ndarray, t_start: int, t_end: int, percentage: float = 80., apd_min: float = 10.) -> np.ndarray: """Calculate alternance of Action Potential map for...
{"hexsha": "fca99ec27f2daba1d0bf4b428a9c7e80b2675fec", "size": 973, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyCardiac/rhythm/calculate_alternance_map.py", "max_stars_repo_name": "humanphysiologylab/pyCardiac", "max_stars_repo_head_hexsha": "f0ad0868af233830eb2c4c6cba6136e4c80265c1", "max_stars_repo_licen...
""" Utilities module. """ import os import numpy as np import itertools import zlib # import logging # # from pprint import pprint, pformat # # logger = logging.getLogger("k3d") # fh = logging.FileHandler('k3d.log') # logger.addHandler(fh) # logger.setLevel(logging.DEBUG) # pylint: disable=unused-argument # noinspe...
{"hexsha": "d84e4e6b48125bf2fca0acc0ae8cb88b15082ee5", "size": 4959, "ext": "py", "lang": "Python", "max_stars_repo_path": "k3d/helpers.py", "max_stars_repo_name": "fontclos/K3D-jupyter", "max_stars_repo_head_hexsha": "ee1387381dba818444489188e0ad5faf33778e9c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul...
// Generated Files ${PROJ_DIR}/lpif/rtl/lpif_txrx_asym/lpif_txrx_x4_asym2_half_master_top.sv ${PROJ_DIR}/lpif/rtl/lpif_txrx_asym/lpif_txrx_x4_asym2_half_master_concat.sv ${PROJ_DIR}/lpif/rtl/lpif_txrx_asym/lpif_txrx_x4_asym2_half_master_name.sv // Logic Link files -f ${PROJ_DIR}/llink/rtl/llink.f // Common Files...
{"hexsha": "f6739ffeccdba195a00ca1992b9c1a050da0e38a", "size": 356, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lpif/rtl/lpif_txrx_asym/lpif_txrx_x4_asym2_half_master.f", "max_stars_repo_name": "chipsalliance/aib-protocols", "max_stars_repo_head_hexsha": "98858e6707f30ed6ea714598e3e324d754d82be0", "max_stars...
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.recovery.jakob2019` module. """ import numpy as np import os import shutil import tempfile import unittest from colour.characterisation import SDS_COLOURCHECKERS from colour.colorimetry import (MSDS_CMFS_STANDARD_OBSERVER, CCS_ILLUMINANTS, ...
{"hexsha": "7c3049c3549c293dec3dca932fda0b8c846c54f1", "size": 9548, "ext": "py", "lang": "Python", "max_stars_repo_path": "colour/recovery/tests/test_otsu2018.py", "max_stars_repo_name": "villirion/colour", "max_stars_repo_head_hexsha": "27a3e6ad2900988dd91505f0b18c318301f0a6c6", "max_stars_repo_licenses": ["BSD-3-Cla...
# -*- coding: utf-8 -*- """ Source= [MachineHack](https://www.machinehack.com/course/predicting-house-prices-in-bengaluru/) @Features - Area_type– describes the area - Availability – when it can be possessed or when it is ready(categorical and time-series) - Location – where it is located in Bengaluru -...
{"hexsha": "c667785d9e78697ddc9852f40bc2178821838b99", "size": 7187, "ext": "py", "lang": "Python", "max_stars_repo_path": "bengaluruhousepriceregression.py", "max_stars_repo_name": "codePerfectPlus/Predicting-House-Prices-In-Bengaluru", "max_stars_repo_head_hexsha": "642aedbb7cff5270cb7e5fce7ccfc6ced48d88e2", "max_sta...
# Volumetric curvature from Inline and Crossline dip # as per Weinkauf and Theisel(2003) "Curvature measures of 3D vector fields and their applications" # import sys,os import numpy as np from numba import autojit # # Import the module with the I/O scaffolding of the External Attribute # sys.path.insert(0, os.path.joi...
{"hexsha": "43abbfa83d8d3d9d6e40086f14a01401d7180509", "size": 2661, "ext": "py", "lang": "Python", "max_stars_repo_path": "Python_3/Curvature/ex_curvature_from_dip.py", "max_stars_repo_name": "waynegm/OpendTect-External-Attributes", "max_stars_repo_head_hexsha": "7caaf69ee71cc3375fcd9e4d656c669ca01dc469", "max_stars_r...
"""Player class.""" import numpy as np from .engine import init_pieces from .pieces import King class Player: def __init__(self, color, pieces=None): if color not in ["white", "black"]: raise ValueError('`color` must be either "white" or "black".') self.color = color self.in_...
{"hexsha": "cece52a8328d3c330b8012b32af1a6ee2fcbe390", "size": 2161, "ext": "py", "lang": "Python", "max_stars_repo_path": "chess/players.py", "max_stars_repo_name": "paulroujansky/chess", "max_stars_repo_head_hexsha": "8c19539d85a6d7f64a025af94fa5fe71fe0d0420", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
import sys, os import datetime import pytz import numpy as np from scipy import stats import statsmodels.api as sm import statsmodels.tsa.stattools as ts holidays = set() def load_holidays(fpath): global holidays file = open(fpath) for line in file: date = line.strip() if len(date) > 0: ...
{"hexsha": "777f91c136ddc8e7fd6589037a33d32f433f8ce0", "size": 2295, "ext": "py", "lang": "Python", "max_stars_repo_path": "py/myutil.py", "max_stars_repo_name": "qksoup/example", "max_stars_repo_head_hexsha": "d2e0cb7662c592ede5037883e071678e6bd26c0b", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": null...
#!/usr/bin/env python3 # import relevant libraries from flask import Flask, request, render_template import numpy as np from joblib import load import pickle # Load model and scaler loaded_model = pickle.load(open('./model_dir/xgb_model.pkl', 'rb')) scaler = load('scaler.joblib') print('@@ Model Loaded!'...
{"hexsha": "bcd63742c2fbc77fabfd6282e53902a34cb65632", "size": 3733, "ext": "py", "lang": "Python", "max_stars_repo_path": "api.py", "max_stars_repo_name": "Akawi85/credit_defaulters", "max_stars_repo_head_hexsha": "f26971be8309b2879adc497ad39f5621ab3f26b6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ...
import numpy as np from sklearn import decomposition from sklearn.linear_model import MultiTaskLassoCV, OrthogonalMatchingPursuit, RidgeCV, Ridge, ElasticNetCV, Lasso import spams from scipy.spatial import distance from scipy.stats import spearmanr, entropy import sys from sklearn import mixture THREADS = 10 def ran...
{"hexsha": "0725815e79f208a8f04417f9cd8b85f62e0413ff", "size": 3029, "ext": "py", "lang": "Python", "max_stars_repo_path": "dl_simulation.py", "max_stars_repo_name": "Alexzsx/DECS", "max_stars_repo_head_hexsha": "cd8b09757c274202eaa9ed9f2b804d865b30b32b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma...
module MultivariateTest using OnlineStats, Base.Test @testset "Multivariate" begin @testset "KMeans" begin x = vcat(randn(1000, 5), 10 + randn(1000, 5)) o = KMeans(x, 2) o = KMeans(x, 2, 10) @test nobs(o) == 2000 @test size(o.value) == (5, 2) end end end#module
{"hexsha": "8bf1be5d79fb361005ae53176b25029acbf2e8e1", "size": 290, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/testfiles/multivariate_test.jl", "max_stars_repo_name": "JuliaPackageMirrors/OnlineStats.jl", "max_stars_repo_head_hexsha": "eeaec6913cd7d15f973a28dac2448b0dacd9ec8c", "max_stars_repo_licenses"...