text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
/* * Copyright (c) 2011, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this l...
{"hexsha": "94273add051cf18921c42c99d630bff9127d0b0e", "size": 8641, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/pybindings/tendril_spec.hpp", "max_stars_repo_name": "fujiehuang/ecto", "max_stars_repo_head_hexsha": "fea744337aa1fad1397c9a3ba5baa143993cb5eb", "max_stars_repo_licenses": ["BSD-3-Clause"], "ma...
from platform_inverse_kinematics.arduino_interface import arduino_interface from platform_inverse_kinematics.MotionPath import MotionPath from platform_inverse_kinematics.StewartPlatform import StewartPlatform import numpy as np if __name__=="__main__": #6DOF demonstration stu = StewartPlatform(base_radius=11...
{"hexsha": "7788b757d33edd9dd4028e893d4d8d30233cea5d", "size": 2202, "ext": "py", "lang": "Python", "max_stars_repo_path": "platform_inverse_kinematics/6dof.py", "max_stars_repo_name": "trevormccrt/OpenStew", "max_stars_repo_head_hexsha": "815f41208656bdcb871792d175088cda0a487d9d", "max_stars_repo_licenses": ["MIT"], "...
from pseas.new_instance_selection.new_instance_selection import NewInstanceSelection from pseas.model import Model import numpy as np from typing import Callable, List from scipy import optimize def __compute_distance_matrix__(features: np.ndarray, distance: Callable[[np.ndarray, np.ndarray], float]) -> np.ndarray: ...
{"hexsha": "e7a1af395a4af1c86eb69c4f6addcb62baeeb550", "size": 6353, "ext": "py", "lang": "Python", "max_stars_repo_path": "pseas/new_instance_selection/udd.py", "max_stars_repo_name": "Theomat/MPSEAS", "max_stars_repo_head_hexsha": "91f9c991e2061a7d230e491210d2c93005fd2236", "max_stars_repo_licenses": ["MIT"], "max_st...
\documentclass[twoside]{article} \usepackage{epsfig} \usepackage{amssymb} \usepackage{amsmath} \usepackage{subcaption} \setlength{\oddsidemargin}{0.25 in} \setlength{\evensidemargin}{-0.25 in} \setlength{\topmargin}{-0.6 in} \setlength{\textwidth}{6.5 in} \setlength{\textheight}{8.5 in} \setlength{\headsep}{0.75 in} ...
{"hexsha": "e980717f0c1399bd1d5ee6ce81c047166efa23cb", "size": 12528, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "assets/pgm/lecture3/lecture3.tex", "max_stars_repo_name": "GavinXing/blog", "max_stars_repo_head_hexsha": "59cf8ac227974a17178a28176469adbfc8bacbdf", "max_stars_repo_licenses": ["MIT"], "max_stars_...
#!/usr/bin/env python from __future__ import print_function from keras.models import Sequential from keras.layers import TimeDistributed from keras.layers.core import Dense, Activation, Dropout, RepeatVector, TimeDistributedDense from keras.layers.recurrent import LSTM from keras.utils.data_utils import get_file import...
{"hexsha": "792a5ea109d63f77a9cd12b1444b2b265f198b04", "size": 3975, "ext": "py", "lang": "Python", "max_stars_repo_path": "hard-gists/3fdd80a08808bd275142d46863e92d68/snippet.py", "max_stars_repo_name": "jjhenkel/dockerizeme", "max_stars_repo_head_hexsha": "eaa4fe5366f6b9adf74399eab01c712cacaeb279", "max_stars_repo_li...
import cv2 import numpy as np hsv_image = None pixel = (20,60,80) #Arbitary Value [H,S,V] H(Hue) = 0-179, S(Saturation) = 0-255, V(Brightness) = 0-255 def color_info(event,x,y,flag,param): if event == cv2.EVENT_LBUTTONDOWN: #When Left is clicked in the mouse pixel = hsv_image[y,x] upper_limit...
{"hexsha": "b58797d87304de0c2cce1fab616bd435e9f400b0", "size": 1546, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/robot_vision/src/HSV_Picker.py", "max_stars_repo_name": "vincent51689453/Gazebo_IC382_Simulation", "max_stars_repo_head_hexsha": "15e2e15463374d868e76d507f2b0de7d0a8069d2", "max_stars_repo_lic...
# bca4abm # See full license in LICENSE.txt. from builtins import range import logging import os.path import numpy as np import pandas as pd from activitysim.core import inject from activitysim.core import config from bca4abm import bca4abm as bca logger = logging.getLogger(__name__) @inject.table() def househo...
{"hexsha": "a799977ab9f1d5d1ae07ff930118b90b57fea53e", "size": 1417, "ext": "py", "lang": "Python", "max_stars_repo_path": "bca4abm/tables/households.py", "max_stars_repo_name": "steventrev/in_midstates_bca", "max_stars_repo_head_hexsha": "f762637a0b8976fa835320cb3b31a5eb5c423dfa", "max_stars_repo_licenses": ["BSD-3-Cl...
# This file is part of DagAmendment, the reference implementation of: # # Michel, Élie and Boubekeur, Tamy (2021). # DAG Amendment for Inverse Control of Parametric Shapes # ACM Transactions on Graphics (Proc. SIGGRAPH 2021), 173:1-173:14. # # Copyright (c) 2020-2021 -- Télécom Paris (Élie Michel <elie.michel@tel...
{"hexsha": "bc1377a9515c3520373a0b77efa291d6d243183e", "size": 4198, "ext": "py", "lang": "Python", "max_stars_repo_path": "addons/DagAmendment/Projector.py", "max_stars_repo_name": "V-Sekai/V-Sekai-Blender-tools", "max_stars_repo_head_hexsha": "3473ad4abb737756290a9007273519460742960d", "max_stars_repo_licenses": ["MI...
import serial import time import cv2 from picamera import PiCamera import numpy as np # from scipy import io import multiprocessing import math import threading # import matplotlib.pyplot as plt class MySerial: def __init__(self): self._ser = serial.Serial('/dev/ttyAMA0', 9600) # 初始化串口 # 命令初始化 ...
{"hexsha": "595922c6e3776352486b39103ce8f3979d2abc62", "size": 10975, "ext": "py", "lang": "Python", "max_stars_repo_path": "Raspberry pi Programes/scanner.py", "max_stars_repo_name": "ElvisKing/Design-and-Implementation-of-Three-dimensional-Scanning-System-for-Structured-Light-Based-on-Raspber", "max_stars_repo_head_h...
module Geometry using ..RecursiveApply import LinearAlgebra import StaticArrays: SVector export ⊗ include("coordinates.jl") include("axistensors.jl") include("localgeometry.jl") include("conversions.jl") include("globalgeometry.jl") end # module
{"hexsha": "a61f2bc23dd1f2e2b5e7dbc63b91e3b99ae53f81", "size": 251, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Geometry/Geometry.jl", "max_stars_repo_name": "CliMA/ClimaCore.jl", "max_stars_repo_head_hexsha": "e28309249a4c0dea0e8bb897b4dc9ebc376fa94e", "max_stars_repo_licenses": ["Apache-2.0"], "max_star...
import numpy as np import os import logging logger = logging.getLogger('telemanom') class Channel: def __init__(self, config, chan_id): """ Load and reshape channel values (predicted and actual). Args: config (obj): Config object containing parameters for processing ...
{"hexsha": "480633dc72b37fbc8ce3b84ff799140f6434f25a", "size": 2962, "ext": "py", "lang": "Python", "max_stars_repo_path": "telemanom/channel.py", "max_stars_repo_name": "cc-pine/telemanom", "max_stars_repo_head_hexsha": "67599ff8d34bf36bf5a4bef61693a598830e7363", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_c...
[STATEMENT] lemma joinable_components_eq: "connected t \<and> t \<subseteq> s \<and> c1 \<in> components s \<and> c2 \<in> components s \<and> c1 \<inter> t \<noteq> {} \<and> c2 \<inter> t \<noteq> {} \<Longrightarrow> c1 = c2" [PROOF STATE] proof (prove) goal (1 subgoal): 1. connected t \<and> t \<subseteq> s \<an...
{"llama_tokens": 203, "file": null, "length": 1}
(* * Copyright (C) 2014, National ICT Australia Limited. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, ...
{"author": "jcaesar", "repo": "fixed-topos-header-space-analysis", "sha": "2da808ab41e5924d616ad1af15e8f50cb986c803", "save_path": "github-repos/isabelle/jcaesar-fixed-topos-header-space-analysis", "path": "github-repos/isabelle/jcaesar-fixed-topos-header-space-analysis/fixed-topos-header-space-analysis-2da808ab41e5924...
import unittest import pyapprox as pya import numpy as np import matplotlib.pyplot as plt from pyapprox.configure_plots import * from pyapprox.control_variate_monte_carlo import * from scipy.stats import uniform,norm,lognorm from functools import partial skiptest = unittest.skipIf( not use_torch, reason="torch pac...
{"hexsha": "7c6ee7f51088b6ad3d5f51ad2d9168bfb9a3f25e", "size": 26911, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyapprox/tests/test_control_variate_monte_carlo.py", "max_stars_repo_name": "ConnectedSystems/pyapprox", "max_stars_repo_head_hexsha": "4f405654c707cba83d211f327c0f0fdbc95efa29", "max_stars_repo_...
import numpy as np import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt import math import pandas from StringIO import StringIO from collections import Counter from matplotlib.patches import Rectangle import seaborn as sns import pyBigWig def computeMatrix(bwfile,boundarylist,chrn,winsize,res,chrs_l)...
{"hexsha": "ae46d0bf624ae9a4597864417cd07da9ab742cac", "size": 11362, "ext": "py", "lang": "Python", "max_stars_repo_path": "MainFig_CTCFenrich.py", "max_stars_repo_name": "anlin00007/OnTAD_figure", "max_stars_repo_head_hexsha": "a4848c6a5a1cc755befe910a1b3eaec400f85fb2", "max_stars_repo_licenses": ["MIT"], "max_stars_...
import shap import numpy as np import torch from datasets import load_dataset from tqdm.contrib import tenumerate from project.binary_bert.utils import load_binary_bert train = load_dataset("civil_comments", split='train') test = load_dataset("civil_comments", split='test') model, tokenizer, class_names = load_binar...
{"hexsha": "aaacaadc54dc6d4e308488385e20847496c859a8", "size": 984, "ext": "py", "lang": "Python", "max_stars_repo_path": "project/binary_bert/explain.py", "max_stars_repo_name": "hancia/ToxicSpansDetection", "max_stars_repo_head_hexsha": "4a10600292af90a936767aee09559b39380e3d5e", "max_stars_repo_licenses": ["Apache-2...
\filetitle{dbmerge}{Merge two or more databases}{dbase/dbmerge} \paragraph{Syntax}\label{syntax} \begin{verbatim} D = dbmerge(D1,D2,...) \end{verbatim} \paragraph{Input arguments}\label{input-arguments} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item \texttt{D1}, \texttt{D2}, \ldots{} {[} struct {]}...
{"hexsha": "a9546022c32d70376130fe4a80f373797b8eea93", "size": 935, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "-help/dbase/dbmerge.tex", "max_stars_repo_name": "OGResearch/IRIS-Toolbox-For-Octave", "max_stars_repo_head_hexsha": "682ea1960229dc701e446137623b120688953cef", "max_stars_repo_licenses": ["BSD-3-Cla...
The http://en.wikipedia.org/wiki/Works_Progress_Administration Works Progress Administration, or WPA, was a one of the largest New Deal programs instituted by President Franklin D. Roosevelt during the Great Depression. It provided jobs to unemployed workers, usually through civic improvement projects. Davis still be...
{"hexsha": "15ad37f92b43c7a17818b572cdb3ab7a04893701", "size": 809, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/WPA.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "...
# This file is an example on how to use the BEL1D codes using a simple 2-layer DC experiment (with noise) if __name__=="__main__": # To prevent recomputation when in parallel from pyBEL1D import BEL1D import cProfile # For debugging and timings measurements import time # For simple timing measurements ...
{"hexsha": "b15829f72f30d153379ec13505310b8c4620b8a6", "size": 11493, "ext": "py", "lang": "Python", "max_stars_repo_path": "exampleDC.py", "max_stars_repo_name": "hadrienmichel/pyBEL1D", "max_stars_repo_head_hexsha": "36b7adf8a0ad2abaccfd546f153c449392fc922e", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_co...
%% manage paths path = strsplit(pwd,"sim_vehicle_dynamics"); path2module = strcat(path(1), "sim_vehicle_dynamics"); path2frictionmodel_folder = strcat(path2module, "\variable_friction\frictionmodel"); path2input = strcat(path2frictionmodel_folder, "\GUI\inputs"); path2output = strcat(path2frictionmodel_folder, "\GUI\o...
{"author": "TUMFTM", "repo": "sim_vehicle_dynamics", "sha": "df2ae95dbeb6f8e4591f31ee378acac8e812f358", "save_path": "github-repos/MATLAB/TUMFTM-sim_vehicle_dynamics", "path": "github-repos/MATLAB/TUMFTM-sim_vehicle_dynamics/sim_vehicle_dynamics-df2ae95dbeb6f8e4591f31ee378acac8e812f358/vehicle_environment/variable_fric...
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
{"hexsha": "e031c9bd8b7454c7a12078814052e5f27a903d72", "size": 7758, "ext": "py", "lang": "Python", "max_stars_repo_path": "skbio/io/format/_base.py", "max_stars_repo_name": "wdwvt1/scikit-bio", "max_stars_repo_head_hexsha": "12853ade2b85b00ee02170c8dd8c9037bb21cc7f", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_s...
\documentclass[10pt,letterpaper]{article} \usepackage[margin=1in]{geometry} \usepackage{setspace} \usepackage{fancyhdr} \usepackage{lastpage} \pagestyle{fancyplain} % Put watermark on % \usepackage{draftwatermark} % \SetWatermarkText{Draft} % \SetWatermarkScale{7} \lhead{} \chead{Central Massachusetts Amateur Radio A...
{"hexsha": "e855608b25b884f6e204067bb496e3449727f1bb", "size": 4071, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "minutes/2017-10-19-board-meeting.tex", "max_stars_repo_name": "cmara/meeting-minutes", "max_stars_repo_head_hexsha": "e1f7e3debca5145a668321f75d12ce3db418eb5c", "max_stars_repo_licenses": ["MIT"], "...
#include <fstream> #include <functional> #include <boost/test/unit_test.hpp> #include <turtle/mock.hpp> #include <common_defs.h> #include <Describer.h> BOOST_AUTO_TEST_SUITE(Describers) BOOST_AUTO_TEST_SUITE(Dummy) BOOST_AUTO_TEST_CASE(SimplyExtractsDoublesFromStream) { std::stringstream s; s << "1;2.3;6.66...
{"hexsha": "5512fa3ac7bf7031e8e0bdcd75ed72fd18ef07ae", "size": 4929, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "InstrumentRecognizerTester/src/DescriberTester.cpp", "max_stars_repo_name": "Lewerow/InstrumentRecognizer", "max_stars_repo_head_hexsha": "ca6ad1c674854aa1cbd0dc006d25ace321f2213c", "max_stars_repo_...
""" McsCMOSMEA ~~~~~~~~~~ Data classes to wrap and hide raw data handling of the CMOS-MEA HDF5 data files. It is based on the MCS-CMOS-MEA Rawdata and ProcessedData definitions for HDF5 of the given compatible versions. :copyright: (c) 2018 by Multi Channel Systems MCS GmbH :lice...
{"hexsha": "5d55a524489e3d19ef31315af54788bac01e1054", "size": 75192, "ext": "py", "lang": "Python", "max_stars_repo_path": "McsPyDataTools/McsPy/McsCMOSMEA.py", "max_stars_repo_name": "multichannelsystems/McsPyDataTools", "max_stars_repo_head_hexsha": "45777d5955043cc6849ea2f01ea442aa19141edd", "max_stars_repo_license...
# -*- coding: utf-8 -*- """ Created on Tue May 4 17:10:31 2021 Script to visualise the results in a dataset folder. @author: Rebecca Gedda """ ############################################################################## # VISUALISE PREDICTIONS ########################################...
{"hexsha": "9a264f0269b0e7b447c9dc9688c471f8891b829e", "size": 6227, "ext": "py", "lang": "Python", "max_stars_repo_path": "visualise_results.py", "max_stars_repo_name": "geddar/Interactive-change-point-detection", "max_stars_repo_head_hexsha": "6b7e86b847586542d96e84df1aba6bc5095f2539", "max_stars_repo_licenses": ["MI...
import argparse from typing import List from datetime import datetime, timedelta import numpy as np from sklearn import linear_model import pandas as pd from matplotlib import pyplot as plt import matplotlib.dates as mdates from gamestonk_terminal.stocks.government import quiverquant_model from gamestonk_terminal.helpe...
{"hexsha": "d4f5f2673184cde9cb38b6db3eba1582e164ce6f", "size": 31207, "ext": "py", "lang": "Python", "max_stars_repo_path": "gamestonk_terminal/stocks/government/quiverquant_view.py", "max_stars_repo_name": "clairvoyant/GamestonkTerminal", "max_stars_repo_head_hexsha": "7b40cfe61b32782e36f5de8a08d075532a08c294", "max_s...
! ############################################################### ! # # ! # THE VECTOR LIDORT MODEL # ! # # ! # (Vector LInearized Discrete Ordinate Radiative Tra...
{"hexsha": "3bf1647156b8dea305015ac46b903fa880cd0ee5", "size": 13784, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/Components/rtms/RTSI/VLIDORT2OS/vsup/vbrdf/vbrdf_sup_aux.f90", "max_stars_repo_name": "GEOS-ESM/AeroApps", "max_stars_repo_head_hexsha": "874dad6f34420c014d98eccbe81a061bdc0110cf", "max_sta...
# ------------------------------------------ This app is a cycle detector -------------------------------------------- # Simple API. JSON Request with following format: # { # 'year': "2020", # 'month': "12", # 'day': "24", import pandas as pd import numpy as np from flask import Flask,jsonify,js...
{"hexsha": "081fa95e735037b846fd50a1db28a0e1a35a983a", "size": 4927, "ext": "py", "lang": "Python", "max_stars_repo_path": "cycle_detector/train.py", "max_stars_repo_name": "sinakm/AnomalyDetector", "max_stars_repo_head_hexsha": "68a0a4d7de4fdc34181b79a8267ab24d8001580c", "max_stars_repo_licenses": ["MIT"], "max_stars_...
[STATEMENT] lemma tendsto_rabs_zero_iff: "((\<lambda>x. \<bar>f x\<bar>) \<longlongrightarrow> (0::real)) F \<longleftrightarrow> (f \<longlongrightarrow> 0) F" [PROOF STATE] proof (prove) goal (1 subgoal): 1. ((\<lambda>x. \<bar>f x\<bar>) \<longlongrightarrow> 0) F = (f \<longlongrightarrow> 0) F [PROOF STEP] by (fo...
{"llama_tokens": 144, "file": null, "length": 1}
# # This file is part of Orchid and related technologies. # # Copyright (c) 2017-2022 Reveal Energy Services. All Rights Reserved. # # LEGAL NOTICE: # Orchid contains trade secrets and otherwise confidential information # owned by Reveal Energy Services. Access to and use of this information is # strictly limited and...
{"hexsha": "77577ad312197c6f638c890d7a4b47f84691c5ab", "size": 3681, "ext": "py", "lang": "Python", "max_stars_repo_path": "orchid/base_time_series_adapter.py", "max_stars_repo_name": "Reveal-Energy-Services/orchid", "max_stars_repo_head_hexsha": "4c177ac5a511a80a3588ab8da873fc2d74358da8", "max_stars_repo_licenses": ["...
import numpy as np from matplotlib import pyplot as plt class Reader: def __init__(self): self.data = None self.codec = None self.width = None self.height = None def read_pgm(self, pgm_file_name): with open(pgm_file_name, 'rb') as f: codec = f.readline() ...
{"hexsha": "5675692cc47573a91159743ba5bf678598f2f8e1", "size": 2352, "ext": "py", "lang": "Python", "max_stars_repo_path": "pgm_reader/pgm_reader.py", "max_stars_repo_name": "mridulgain/pgm", "max_stars_repo_head_hexsha": "d89be8260f0d5650369ad61a985350dcd2b77bd7", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
MODULE DOT ! Module for dot product of two real arrays of rank 1. ! The caller needs to ensure that exceptions do not cause halting. ! Source https://j3-fortran.org/doc/year/18/18-007r1.pdf USE, INTRINSIC :: IEEE_EXCEPTIONS LOGICAL :: MATRIX_ERROR = .FALSE. INTERFACE OPERATOR(.dot.) MODULE PROCEDUR...
{"hexsha": "17ccfb9c90d0ffe9bb8e5262a5cf9a882663d347", "size": 868, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "tests/interface4.f90", "max_stars_repo_name": "Thirumalai-Shaktivel/lfortran", "max_stars_repo_head_hexsha": "bb39faf1094b028351d5aefe27d64ee69302300a", "max_stars_repo_licenses": ["BSD-3-Clause"...
from keras.engine.topology import Layer from keras_frcnn.vgg_occlusion_net import OcclusionNet from keras_frcnn import thresholding_helper import keras.backend as K import numpy as np if K.backend() == 'tensorflow': import tensorflow as tf class NewPoolingOutputProcessor(Layer): '''ROI pooling layer for 2D i...
{"hexsha": "0f18fa19826f011ee045daf6e6306282f2e6c9c6", "size": 2319, "ext": "py", "lang": "Python", "max_stars_repo_path": "keras_frcnn/NewPoolingOutputProcessor.py", "max_stars_repo_name": "finleylee2507/frcnn-from-scratch-with-keras", "max_stars_repo_head_hexsha": "402127efd440cb23849d70599cb3f0caec971697", "max_star...
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, division from eight import * from bw2analyzer.econ import ( concentration_ratio, gini_coefficient, herfindahl_index, theil_index, ) import numpy as np import unittest class EconometricsTestCase(unittest.TestCase): de...
{"hexsha": "d88ef927c7a7a7a4eec92f645c2bae6ee6a067c5", "size": 1827, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/econ.py", "max_stars_repo_name": "aleksandra-kim/brightway2-analyzer-copy", "max_stars_repo_head_hexsha": "c85961bd2b644458fbeef92e5471ec76d520ab38", "max_stars_repo_licenses": ["BSD-3-Claus...
### This file in in ./models/research/audioset/ from __future__ import print_function import numpy as np import tensorflow as tf import vggish_input import vggish_params import vggish_postprocess import vggish_slim import librosa import sys import pandas as pd import csv print('\nTesting your install of VGGish\n'...
{"hexsha": "b6eec46c66fc1b616328b5963bfc1cb450865ccf", "size": 2622, "ext": "py", "lang": "Python", "max_stars_repo_path": "audioset/calculate_embeddings.py", "max_stars_repo_name": "shayenne/VoiceDetection", "max_stars_repo_head_hexsha": "5b9ce0950da245fa9488301e3a024b06f363f4db", "max_stars_repo_licenses": ["MIT"], "...
#!/usr/bin/env python """ Author : Jaganadh Gopinadhan e-mail : jaganadhg@gmail.com Licence : MIT Third Eye V1.0 Udacity Self Driving Car Nano Degree Project 1 Finding Lane Lines on the Road """ import glob import matplotlib.image as mpimg import numpy as np import cv2 from lineutil import plot_img,LineDrawBase fr...
{"hexsha": "d77d5acd3364fd84a7fef2c6b426235a20fb1a15", "size": 1500, "ext": "py", "lang": "Python", "max_stars_repo_path": "thirdeye/testcase.py", "max_stars_repo_name": "jaganadhg/sdcnd_p1_lld", "max_stars_repo_head_hexsha": "74e6c9c4e7c5b03bbba0aab1e4eda31b53d7eb2d", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import warnings import packaging.version def future_warning(msg, error_version, error_category, warning_category=FutureWarning): """Raise a warning until a specific version, then raise an error.""" import openproblems current_version = packaging.version.parse(openproblems.__version__) if current_vers...
{"hexsha": "718f30a3f3bd83ad0c7141c05203a614ed5fb109", "size": 1003, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/utils/warnings.py", "max_stars_repo_name": "yingstat/SingleCellOpenProblems", "max_stars_repo_head_hexsha": "52de9c5a7aa922fc5c0e2940c949a05920196cbc", "max_stars_repo_licenses": ["MIT"], "ma...
!> !! !! @brief Module MO_SIMPLE_PLUMES: provides anthropogenic aerosol optical properties as a function of lat, lon !! height, time, and wavelength !! !! @remarks !! !! @author Bjorn Stevens, Stephanie Fiedler and Karsten Peters MPI-Met, Hamburg (v1 release 2016-11-10) !! !! @change-log: !! - 2016-12-05: be...
{"hexsha": "8e857c6cf47c06a1770c82c0d46f56e6f0a76017", "size": 20334, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "external/aerosols/mo_simple_plumes_v1.f90", "max_stars_repo_name": "taobrienlbl/RegCM", "max_stars_repo_head_hexsha": "bda1c78790f0a1501916d0979b843216a08b2cef", "max_stars_repo_licenses": ["AF...
/*****************************************************************************/ /* Copyright (c) 2015, Karl Pauwels */ /* All rights reserved. */ /* */ ...
{"hexsha": "141ee08dd4fb29683b2f9a363d0115625c80c729", "size": 14722, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "pose_estimation/src/translation_rotation_3d.cpp", "max_stars_repo_name": "carlo-/simtrack", "max_stars_repo_head_hexsha": "8209c5305c76c6e5d7783fbaea992959f7b44f71", "max_stars_repo_licenses": ["BS...
import torch import numpy as np def compare(cuda_out, pt_out, pt_out_control, rows): print( "Pytorch ops in fp16: ", pt_out ) print( "Kernel result: ", cuda_out ) print("Control (Pytorch ops, sticking to fp32): ", pt_out_control) # Make u...
{"hexsha": "72af1817cebc4c2e8435071cdc56fe9b55a574dc", "size": 1951, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/raw_ops/compare.py", "max_stars_repo_name": "FDecaYed/apex", "max_stars_repo_head_hexsha": "789afd89fe2c5a3e772f557055a9cf0f5e9d1241", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars...
from rl_games.common import a2c_common from rl_games.algos_torch import torch_ext from rl_games.algos_torch import central_value from rl_games.common import common_losses from rl_games.common import datasets from rl_games.algos_torch import ppg_aux from rl_games.common.ewma_model import EwmaModel from torch import op...
{"hexsha": "d2e009c2464e00917d87adcbf537dfbe4c81e60a", "size": 9148, "ext": "py", "lang": "Python", "max_stars_repo_path": "rl_games/algos_torch/a2c_continuous.py", "max_stars_repo_name": "yzqin/rl_games", "max_stars_repo_head_hexsha": "6e09fec1e60d70c1dc1934ec65ed3265950a8c34", "max_stars_repo_licenses": ["MIT"], "max...
import pickle import h5py import numpy as np import sklearn import sklearn.decomposition import sklearn.linear_model import sklearn.preprocessing from fastprogress.fastprogress import force_console_behavior import mabe import mabe.config import mabe.loss import mabe.model import mabe.ringbuffer # %% num_splits = 32 ...
{"hexsha": "080ecb21e1f88d2587e7e67fadcde5a43826fc76", "size": 3433, "ext": "py", "lang": "Python", "max_stars_repo_path": "hydrogen/create_splits.py", "max_stars_repo_name": "nebw/mabe", "max_stars_repo_head_hexsha": "2f8d4c4ad82202f614147791a9d1b5ab799fd86f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 4, ...
import functools import multiprocessing import random import matplotlib.pyplot as plt import numpy as np import tqdm import phyre tier = 'ball' eval_setup = 'ball_cross_template' fold_id = 0 random.seed(0) train, dev, test = phyre.get_fold(eval_setup, fold_id) cache = phyre.get_default_100k_cache(tier) print('c...
{"hexsha": "980da5084dcad5219fb0c6021404251540f52041", "size": 1575, "ext": "py", "lang": "Python", "max_stars_repo_path": "Datatest_cache.py", "max_stars_repo_name": "kaiyuanmifen/PhyreData", "max_stars_repo_head_hexsha": "231cf05af4e4c81786246ec0f3544b808b209483", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars...
# (C) ColorfulSoft corp., 2021. All Rights reserved # PyTorch to Torch.NET checkpoint converter import torch; import sys; import numpy; import struct; def main(argv: [str]) -> None: if(len(argv) != 2): print("Expected pytorch file name"); with open(argv[1] + ".thn", 'wb') as ckpt: header = str...
{"hexsha": "972fb254cf19345501569d82856e8017ef48a788", "size": 1797, "ext": "py", "lang": "Python", "max_stars_repo_path": "Utils/pytorch2torchnet.py", "max_stars_repo_name": "ColorfulSoft/System.AI", "max_stars_repo_head_hexsha": "5f65dbfc06337b202b618780a255396d13c41267", "max_stars_repo_licenses": ["Apache-2.0"], "m...
# -*-mode:python; mode:font-lock;-*- """ file IntegralUpperLimits.py @brief Function to calculate upper limits by integrating Likelihood function to given \"probability\" level. @author Stephen Fegan <sfegan@llr.in2p3.fr> $Id: IntegralUpperLimit.py,v 1.7 2016/10/14 17:41:40 echarles Exp $ See help for Integr...
{"hexsha": "763f722b6f9279d57d5342d19b9367e7050b7bc3", "size": 42752, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/IntegralUpperLimit.py", "max_stars_repo_name": "fermi-lat/pyLikelihood", "max_stars_repo_head_hexsha": "7dec59151e452c702b05b65498adb36c4831b86f", "max_stars_repo_licenses": ["BSD-3-Clause...
\documentclass{CUP-JNL-PPS} %%%% Packages \usepackage{latexsym} \usepackage{graphicx} \usepackage{multicol,multirow} \usepackage{amsmath,amssymb,amsfonts} \usepackage{mathrsfs} \usepackage{amsthm} \usepackage{rotating} \usepackage{appendix} \usepackage[authoryear]{natbib} \usepackage{ifpdf} \usepackage[T1]{fontenc} \u...
{"hexsha": "a1462922b08fd930a85d9e912d52e284aa9811b2", "size": 10541, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Project2/report.tex", "max_stars_repo_name": "killerfrost22/CMSC426_group", "max_stars_repo_head_hexsha": "e89e4d48480a08492b3343eff8716b3c19c7853f", "max_stars_repo_licenses": ["MIT"], "max_stars_...
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import annotations import logging import pprint import torch.nn.functional as F import numpy as np import torch from torch.dis...
{"hexsha": "06fb9badcd474c5b22a59eda2454d3b48612cfab", "size": 10336, "ext": "py", "lang": "Python", "max_stars_repo_path": "vissl/losses/dstl_issl_loss.py", "max_stars_repo_name": "YannDubs/vissl", "max_stars_repo_head_hexsha": "42bcd601339921833410b32db683c2001c1ad688", "max_stars_repo_licenses": ["MIT"], "max_stars_...
''' phase_uncert_thetar simulating Optical Neural Network using Neuroptica and linearly separable datasets Simply short fcns to test trained models with Loss/MZI and Phase Uncert. Author: Simon Geoffroy-Gagnon Edit: 2020.03.28 ''' import numpy as np import calculate_accuracy as calc_acc import ONN_Simulation_Class as ...
{"hexsha": "dcebd80ab76a47bc37a2145912353b2bd0c91f77", "size": 2174, "ext": "py", "lang": "Python", "max_stars_repo_path": "Simulations/test_trained_onns.py", "max_stars_repo_name": "Xoreus/neuroptica", "max_stars_repo_head_hexsha": "2ab6771ea3cfe94a62701078a83712d2a33409e3", "max_stars_repo_licenses": ["MIT"], "max_st...
using Interp1d using Random @testset "1 input and 1 output test" begin x = [-1.0, 0.0, 3.0/2.0] y = [2.0, 1.0, 3.0] f = interp(x, y, Nearest); @test f(1.0) == 3.0 @test f(-1.0) == 2.0 @test f(-2.0) == 2.0 @test f(-Inf) == 2.0 @test f(Inf) == 3.0 @test f(0) == 1.0 end @testset "1 in...
{"hexsha": "a8db7e8ed4f68a75bce49fb854bcef3a147cc773", "size": 1246, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/NearestTest.jl", "max_stars_repo_name": "AtsushiSakai/Interp1d.jl", "max_stars_repo_head_hexsha": "0253a2e5669a2b65af0456d8ff161644efae37eb", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import json import networkx as nx class Hunter: def __init__(self, name, start_node, max_stamina=3): """ Parameters ---------- name: str name of the hunter start_node: str name of start node max_stamina: int, default: 3 maximum stamina allowed """ self.name = name ...
{"hexsha": "d66527eda386102d268e98b9825da728bd6b719e", "size": 7759, "ext": "py", "lang": "Python", "max_stars_repo_path": "classes.py", "max_stars_repo_name": "SwTan98/supahands-coding-test", "max_stars_repo_head_hexsha": "3c59c3afaeb526a5248966393cdd54bd9923a021", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
""" Implementation of different indirect quantization algorithms """ import numpy as np import scipy.linalg as sla import quadprog import distributed_training.optimum_quantizer as opt_quantizer class DeterministicISGQuantizer: """ implementation of the indirect quantization, G=X' Y. naive: X ...
{"hexsha": "a9e2126760620448b606890b0643b7e5626ec03a", "size": 10108, "ext": "py", "lang": "Python", "max_stars_repo_path": "quantizers/isgq_quantizer.py", "max_stars_repo_name": "afshinabdi/DistributedTraining-ISGQ", "max_stars_repo_head_hexsha": "0ffbaae481798e4b71c98fc54b8fb8b1ec4be059", "max_stars_repo_licenses": [...
[STATEMENT] lemma index_upt[simp]: "m \<le> i \<Longrightarrow> i < n \<Longrightarrow> index [m..<n] i = i-m" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>m \<le> i; i < n\<rbrakk> \<Longrightarrow> index [m..<n] i = i - m [PROOF STEP] by (induction n) (auto simp add: index_append)
{"llama_tokens": 122, "file": "List-Index_List_Index", "length": 1}
from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.nn import init from torch.utils.data import Dataset, DataLoader import pickle import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt fr...
{"hexsha": "8334d16504f4385813a8f3044cd751f3b224ae5c", "size": 7392, "ext": "py", "lang": "Python", "max_stars_repo_path": "Codes/Utils_auto.py", "max_stars_repo_name": "esbgkannan/GT-CNN", "max_stars_repo_head_hexsha": "4f3828d7ed8f6c3ed796fa4e2e166ef5c16cb3d9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
import numpy as np from torchio.transforms import RandomDownsample from ...utils import TorchioTestCase class TestRandomDownsample(TorchioTestCase): """Tests for `RandomDownsample`.""" def test_downsample(self): transform = RandomDownsample( axes=1, downsampling=(2., 2.) ...
{"hexsha": "4003e04cb89cd5c1581f4aae4000ee7e50673fcd", "size": 1104, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/transforms/augmentation/test_random_downsample.py", "max_stars_repo_name": "OeslleLucena/torchio", "max_stars_repo_head_hexsha": "4c09bc78a15464f9bf0f0eec487828cf5fe566c1", "max_stars_repo_l...
import os import numpy as np import torch class MLP(torch.nn.Module): def __init__(self): super(MLP, self).__init__() self.layer1 = torch.nn.Linear(44 * 2, 128) self.layer2 = torch.nn.Linear(128, 128) self.layer3 = torch.nn.Linear(128, 64) self.out = torch.nn.Linear(64, 3)...
{"hexsha": "ac2ca2d521c2ed84a9834170b378f20f29be5c05", "size": 4111, "ext": "py", "lang": "Python", "max_stars_repo_path": "perception/mlp_module.py", "max_stars_repo_name": "SAMMiCA/Scenario3-AISoccer", "max_stars_repo_head_hexsha": "8c93d3feab07d4ee4b7f234dbc5aaf2a16d0b4c4", "max_stars_repo_licenses": ["MIT"], "max_s...
#HPUX program spsearch(ic1,ic2,ic3) # Ratfor #************************spprint************************************* #code words: #ccc name: #ccc version date: #ccc author(s): #ccc language: #ccc #ccc short description: #ccc #ccc algorithm description: #ccc system requirements: #ccc subroutines called: #ccc argu...
{"hexsha": "60c6bf60f2e489f4a27853e8a70c949ead96de48", "size": 4468, "ext": "r", "lang": "R", "max_stars_repo_path": "src.sspp/spsearch.r", "max_stars_repo_name": "YannChemin/specpr_linux", "max_stars_repo_head_hexsha": "72a422aa3b71ab36085fa6392daf7bcfbd3673a3", "max_stars_repo_licenses": ["Unlicense"], "max_stars_cou...
// Copyright 2011-2020 Wason Technology, 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...
{"hexsha": "3a7fe002d668148e37bf749915cb409155045023", "size": 4765, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "RobotRaconteurCore/src/Generator.cpp", "max_stars_repo_name": "robotraconteur/robotraconteur_pyodide", "max_stars_repo_head_hexsha": "e2a529c75b1603ae9471091095c9c6b10652dbbb", "max_stars_repo_licen...
export bpffunction, bpfasm # Compilation support Base.@kwdef struct BPFCompilerParams <: AbstractCompilerParams format::Symbol = :obj license::String = "" prog_section::String = "prog" btf::Bool = true end BPFCompilerJob = CompilerJob{BPFCompilerTarget,BPFCompilerParams} GPUCompiler.runtime_module(:...
{"hexsha": "381517da852d5d57d2c48d8232321707538841ce", "size": 6110, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/compiler.jl", "max_stars_repo_name": "lawless-m/BPFnative.jl", "max_stars_repo_head_hexsha": "b94c60059aae8cca90c396c463ca4e02741db2f4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
# -*- coding: utf-8 -*- """ML RPS Submission.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1G-Br7RpdpJ5ChNWsSxubZPEdyAcJBRen Nama : Wahyu Septiadi Email : wahyusptd@gmail.com """ # Commented out IPython magic to ensure Python compatibility. ...
{"hexsha": "0fd95738f308526b6e6b345ef762968f28e321b9", "size": 3852, "ext": "py", "lang": "Python", "max_stars_repo_path": "ml_rps_submission.py", "max_stars_repo_name": "WahyuSeptiadi/RockPaperScissors.ai", "max_stars_repo_head_hexsha": "7b281932be372869c876124cf576ada419a0b4dd", "max_stars_repo_licenses": ["MIT"], "m...
# Generate Gauss quadrature rules on cubes (0,0,...) - (1,1,...) by doing an outer product # over all dimensions import Base.Cartesian: @nloops, @nref, @ntuple, @nexprs for dim in (1,2,3) @eval begin function (::Type{QuadratureRule{HyperCube{$dim}}})(quad_type::GaussLegendre, order::Int) p,w =...
{"hexsha": "aea95ea4ac7f7096fb20b2a1cf3d05b9380c149d", "size": 966, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Quads/GaussQuadRect.jl", "max_stars_repo_name": "Paulms/jFEMToools", "max_stars_repo_head_hexsha": "fab2579db69c3c5a3610a7aabc06ae0cbd627b2d", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
# Algorithms Exercise 2 ## Imports ```python %matplotlib inline from matplotlib import pyplot as plt import seaborn as sns import numpy as np ``` ## Peak finding Write a function `find_peaks` that finds and returns the indices of the local maxima in a sequence. Your function should: * Properly handle local maxima...
{"hexsha": "af91c073e4eccedd40a3e04431a1d61192013dc3", "size": 21086, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "assignments/assignment07/AlgorithmsEx02.ipynb", "max_stars_repo_name": "jpilgram/phys202-2015-work", "max_stars_repo_head_hexsha": "22ba6764bcb16dfc4117089590bd25e2590aa746", "max_st...
from dwave.system.samplers import DWaveSampler # Library to interact with the QPU from dwave.system.composites import EmbeddingComposite # Library to embed our problem onto the QPU physical graph import itertools import scipy.optimize import TSP_utilities import numpy as np class DWaveTSPSolver(object): ...
{"hexsha": "7d5ac334e43f06eeb241758fb55efa7e24d83bb8", "size": 4466, "ext": "py", "lang": "Python", "max_stars_repo_path": "quantum_tsp/src/dwave_tsp_solver.py", "max_stars_repo_name": "tangarfff/job-shop-scheduling", "max_stars_repo_head_hexsha": "1e8347dcce5fdf9d4cdf8cc94e49d1bef1851551", "max_stars_repo_licenses": [...
# -*- coding: utf-8 -*- import os import unittest from unittest.mock import patch import json import uuid import numpy as np import pytest from pytest import raises from kb_RDP_Classifier.util.debug import dprint, where_am_i from kb_RDP_Classifier.impl.globals import Var from kb_RDP_Classifier.impl.params import Para...
{"hexsha": "7e9937f1af0230d47099832dae80ebd0414b14ab", "size": 3706, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/report_test.py", "max_stars_repo_name": "Tianhao-Gu/kb_RDP_Classifier", "max_stars_repo_head_hexsha": "d1d170275de8e4c62a6a54cf9a329a6cc41e3b56", "max_stars_repo_licenses": ["MIT"], "max_star...
// // irace_conf.cpp // grammar2code // // Created by Franco Mascia on 18/03/13. // Copyright (c) 2013 Franco Mascia. All rights reserved. // // This file is distributed under the BSD 2-Clause License. See LICENSE.TXT // for details. // #include "grammar.hpp" #include "error.hpp" #include <boost/algorithm/strin...
{"hexsha": "0b6763e38d109b0aa7a85f77dd1221d9cb9fa528", "size": 1661, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/irace_conf.cpp", "max_stars_repo_name": "federicoPagnozzi/grammar2code", "max_stars_repo_head_hexsha": "2c1d9e20549390655d0179c4030b7a3ecddc34da", "max_stars_repo_licenses": ["BSD-2-Clause"], "m...
from __future__ import division import logging from itertools import combinations from collections import namedtuple import numpy as NP import scipy.stats logger = logging.getLogger('pyrsss.stats.linregress') """Linear regression assessment metrics""", Assessment = namedtuple('Assessment', ...
{"hexsha": "5345f02227374146883799c105e891ea94c4b947", "size": 4196, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyrsss/stats/linregress.py", "max_stars_repo_name": "grawe/pyrsss", "max_stars_repo_head_hexsha": "31fd88734b00f814e7aaa5829c4ac49c7bf53563", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
''' Utilities for `optics_line_text_reducer` ---------------------------------------- This module provides utilities used to reduce the polygon-text extractions for :mod:`panoptes_aggregation.reducers.optics_line_text_reducer`. It assumes that all extracts are full lines of text in the document. ''' import numpy as np...
{"hexsha": "ad6d0ce65a1a5eec79685b60d10e84b7b1e05568", "size": 9851, "ext": "py", "lang": "Python", "max_stars_repo_path": "panoptes_aggregation/reducers/optics_text_utils.py", "max_stars_repo_name": "alnah005/aggregation-for-caesar", "max_stars_repo_head_hexsha": "b2422f4c007857531ac3ff2636b567adb667dd0c", "max_stars_...
import numpy as np import tensorflow as tf from keras.datasets import cifar10 def normalize(x): mean = 120.707 std = 64.15 return (x - mean) / (std + 1e-7) def dataset(class_id, image_id, normed=True): (x_train, y_train), (x_test, y_test) = cifar10.load_data() filter = y_train[:, 0] == class_id ...
{"hexsha": "72b29339be7d9068a284e4b14fdae2b00fbceeee", "size": 914, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/nninst/backend/tensorflow/dataset/cifar10.py", "max_stars_repo_name": "uchuhimo/Ptolemy", "max_stars_repo_head_hexsha": "5c8ae188af30ee49d38f27d54c67af2eab9489e7", "max_stars_repo_licenses": ["...
[STATEMENT] lemma strongly_consistentI: "sym_factor (r\<^sup>+) \<subseteq> sym_factor (r\<^sup>=) \<Longrightarrow> strongly_consistent r" [PROOF STATE] proof (prove) goal (1 subgoal): 1. sym_factor (r\<^sup>+) \<subseteq> sym_factor (r\<^sup>=) \<Longrightarrow> strongly_consistent r [PROOF STEP] unfolding strongly_...
{"llama_tokens": 195, "file": "Szpilrajn_Szpilrajn", "length": 2}
\chapter[Limits of Convolutional Neural Networks on FLS Images]{Limits of Convolutional \newline Neural Networks on FLS Images} \label{chapter:limits} This chapter deals with a less applied problem than the rest of this thesis. While the use of Deep Neural Networks for different tasks has exploded during the last 5 ye...
{"hexsha": "61b8d6fde17bf6cbcab645f29224b273e9ff8af4", "size": 80400, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "chapters/limits-neural-networks.tex", "max_stars_repo_name": "mvaldenegro/phd-thesis", "max_stars_repo_head_hexsha": "ebc92c443d2100ccd030a118e5a1c24f0c4b105d", "max_stars_repo_licenses": ["MIT"], ...
"""This lobe enables the integration of huggingface pretrained wav2vec2/hubert/wavlm models. Reference: https://arxiv.org/abs/2006.11477 Reference: https://arxiv.org/abs/1904.05862 Reference: https://arxiv.org/abs/2110.13900 Transformer from HuggingFace needs to be installed: https://huggingface.co/transformers/instal...
{"hexsha": "f70f1b00fd0ae86be320e4714bb9c7b34baf8028", "size": 15022, "ext": "py", "lang": "Python", "max_stars_repo_path": "speechbrain/lobes/models/huggingface_wav2vec.py", "max_stars_repo_name": "RaphaelOlivier/speechbrain", "max_stars_repo_head_hexsha": "142dc6caa4b46ca4c9341b0cd39627f489808749", "max_stars_repo_li...
import os import numpy as np import pandas as pd import seaborn as sns import glob SNP_frequency_cutoff = 0.01 min_coverage = 100 calcBottlenecks = False #Set Constants potentialmixed = ['18VR001531', '19VR004455', '19VR003675', '19VR003920', '19VR003675'] #Samples which, based off visual inspection of ...
{"hexsha": "102902ac0c94633b54458b9854fa663172088efe", "size": 16744, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/secondary_analysis/pre_processing_scripts/figure_constants.py", "max_stars_repo_name": "JosephLalli/ORCHARDS", "max_stars_repo_head_hexsha": "1fc4d27121683e77edd02303e9ecd3d8d4caeb1d", "m...
import os.path from multiprocessing.pool import ThreadPool from sklearn.mixture import GaussianMixture import librosa as l from pathlib import Path import numpy as np from tqdm import tqdm import collections import warnings # ignores librosa warnings warnings.filterwarnings("ignore", category=UserWarning) class Spee...
{"hexsha": "6c5ecf192cd75de422ce85f1f2c85d2cf2d509ba", "size": 4338, "ext": "py", "lang": "Python", "max_stars_repo_path": "speech/speech_gaussian.py", "max_stars_repo_name": "AntonFirc/SUR", "max_stars_repo_head_hexsha": "3173a80731e601cdcc590166a8ba2ef801e60325", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
# test hist @test sum(fit(Histogram,[1,2,3]).weights) == 3 @test fit(Histogram,[]).weights == [] @test fit(Histogram,[1]).weights == [1] @test fit(Histogram,[1,2,3],[0,2,4]) == Histogram([0,2,4],[2,1]) @test fit(Histogram,[1,2,3],[0,2,4]) != Histogram([0,2,4],[1,1]) @test fit(Histogram,[1,2,3],0:2:4) == Histogram(0:2:4...
{"hexsha": "8e026f7383e2e711edd23309a0b8434c246c7e04", "size": 1482, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/hist.jl", "max_stars_repo_name": "wildart/StatsBase.jl", "max_stars_repo_head_hexsha": "3885542a93d2de71a1102da030c798cd51749481", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ...
import pandas as pd import numpy as np import datetime from Workshop import * class HangarDatabase: def __init__(self, H, G, hangar_profile_df): self.Cities = {} # workshops in cities self.Workshops = {} # all workshops self.H = H self.G = G for b in G: self.Citi...
{"hexsha": "30ee78bb4567a9f84e87a406ea2d7d19231c6d79", "size": 1011, "ext": "py", "lang": "Python", "max_stars_repo_path": "HangarDatabase.py", "max_stars_repo_name": "ruthvelisia/Ruth-s-Progress", "max_stars_repo_head_hexsha": "670598c6b9285d09985587fb08d17f37fdd7b860", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
import numpy as np import pandas as pd from surprise import * from surprise import accuracy from surprise import Dataset from surprise import Reader from src.model.BaseModel import BaseModel class surprise_SVD(BaseModel): def __init__(self, params: dict): super().__init__(params) self.model = SVD(...
{"hexsha": "b96821c9ac5f39d9b0b8b78d560d6e4e82277c24", "size": 1148, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/model/surprise_SVD.py", "max_stars_repo_name": "HenryNebula/Personalization_Final_Project", "max_stars_repo_head_hexsha": "5d18a8628bed2dfd2894b9d2f33c1e9a5df27ecc", "max_stars_repo_licenses":...
[STATEMENT] lemma wt_app_eff_imp_wt_err: assumes app_eff: "wt_app_eff r app step ts" assumes bounded: "bounded (err_step (size ts) app step) (size ts)" shows "wt_err_step r (err_step (size ts) app step) (map OK ts)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. wt_err_step r (err_step (length ts) app step) (m...
{"llama_tokens": 3340, "file": null, "length": 31}
/- Second localization test. If e^2 = e then R[1/e] ≅ R[1/(1-e)]. -/ import to_mathlib.localization.localization_alt -- By Kenny. example {R : Type*} [comm_ring R] (e : R) (he : e * e = e) : localization_alt.is_localization (powers e) (ideal.quotient.mk (ideal.span {1-e})) := begin have H1 : ideal.quotient.mk (...
{"author": "ramonfmir", "repo": "lean-scheme", "sha": "6d3ec18fecfd174b79d0ce5c85a783f326dd50f6", "save_path": "github-repos/lean/ramonfmir-lean-scheme", "path": "github-repos/lean/ramonfmir-lean-scheme/lean-scheme-6d3ec18fecfd174b79d0ce5c85a783f326dd50f6/src/to_mathlib/localization/localization_tests/localisation_test...
import numpy as np import pytest from gradgpad.foundations.metrics.bpcer_fixing_apcer import bpcer_fixing_apcer @pytest.mark.unit @pytest.mark.parametrize( "scores, labels, expected_bpcer, apcer_working_point", [ ( np.array([0.1, 0.11, 0.6, 0.25, 0.0, 0.1, 0.2]), np.array([1, ...
{"hexsha": "32f0ae0cfac1909ade5cd14e0077de9933fbb098", "size": 839, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/unit/foundations/metrics/test_bpcer_fixing_apcer.py", "max_stars_repo_name": "acostapazo/gradgpad", "max_stars_repo_head_hexsha": "bbf75e11eed844a0014f7cb6627c8fa0c73cd3f1", "max_stars_repo_l...
import zarr import glob import numpy as np from tqdm import tqdm from skimage.io import imread import os import argparse import logging try: import gunpowder as gp import torch.nn as nn import torch from torch.utils.data import Dataset, DataLoader except ModuleNotFoundError: print('some stuff not a...
{"hexsha": "c671a8628c5c11754374cae435958e16091cb687", "size": 3073, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils.py", "max_stars_repo_name": "mattdloring/proliferation-and-track", "max_stars_repo_head_hexsha": "9381bd188e27ba7477951815534b4deaa419e31a", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
from attacks.attack import deg_estimate, edge_sim_estimate, gcn_norm, gia_update_features, init_feat, node_sim_estimate from attacks.injection import random_injection from utils import feat_normalize import random import numpy as np import scipy.sparse as sp import torch import torch.nn.functional as F import attacks...
{"hexsha": "66ab1255492f018ee70f166ab0fc04f065d005df", "size": 2795, "ext": "py", "lang": "Python", "max_stars_repo_path": "attacks/gia.py", "max_stars_repo_name": "LFhase/GIA-HAO", "max_stars_repo_head_hexsha": "d07e7dd76a86686faae4ebfc60b91128c170dbd4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 11, "max_...
/**************************************************************************** ** ** Copyright (C) 2017 TU Wien, ACIN, Vision 4 Robotics (V4R) group ** Contact: v4r.acin.tuwien.ac.at ** ** This file is part of V4R ** ** V4R is distributed under dual licenses - GPLv3 or closed source. ** ** GNU General Public License Usa...
{"hexsha": "a0b243f65f9d381bb6c4bbcc24b6c081a80158d4", "size": 7735, "ext": "hh", "lang": "C++", "max_stars_repo_path": "modules/camera_tracking_and_mapping/include/v4r/camera_tracking_and_mapping/TSFPoseTrackerKLT.hh", "max_stars_repo_name": "v4r-tuwien/v4r", "max_stars_repo_head_hexsha": "ff3fbd6d2b298b83268ba4737868...
import sys sys.path.insert(1, sys.path[0] + "/../") import eig from eig.battleship import BattleshipHypothesisSpace, Parser, Executor, EqualSizesDistribution import numpy as np import time PROG = "(any (map (lambda y0 (and (== (colL y0) 1) (== (color y0) Purple))) (set AllTiles)))" OBS = np.array([[-1, -1, 1, 1, -1, ...
{"hexsha": "b8f1031b56a905558821535a3389e74412daf27d", "size": 2390, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/eig_time.py", "max_stars_repo_name": "anselmrothe/EIG", "max_stars_repo_head_hexsha": "2e5da26bb0552bcaf6f9656519c8167808f0f6cb", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "ma...
% Test some operations involving chebfuns with delta functions. function pass = test_deltaOps(pref) if ( nargin < 1 ) pref = chebfunpref(); end tol = pref.deltaPrefs.deltaTol; % These tests used to live in the scripts in tests/deltafun, but since they % create chebfuns, they are better placed here. % Some test...
{"author": "chebfun", "repo": "chebfun", "sha": "8c49396a55e46ddd57a1d108c6a8f32e37536d54", "save_path": "github-repos/MATLAB/chebfun-chebfun", "path": "github-repos/MATLAB/chebfun-chebfun/chebfun-8c49396a55e46ddd57a1d108c6a8f32e37536d54/tests/chebfun/test_deltaOps.m"}
#pragma once #include <Eigen/Core> #include <array> namespace Discregrid { enum class NearestEntity { VN0, VN1, VN2, EN0, EN1, EN2, FN }; float point_triangle_sqdistance(Eigen::Vector3f const &point, ...
{"hexsha": "b5d24cb0eef68b82278a9f67028d55c34d4de898", "size": 542, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "discregrid/src/geometry/point_triangle_distance.hpp", "max_stars_repo_name": "FeatherAntennae/Discregrid", "max_stars_repo_head_hexsha": "54ced899445d902470efe6b3d8df73c0fd9c23d1", "max_stars_repo_li...
/- Copyright (c) 2022 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa ! This file was ported from Lean 3 source module ring_theory.polynomial.opposites ! leanprover-community/mathlib commit 932872382355f00112641d305ba0619305dc8642 ! Please ...
{"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/RingTheory/Polynomi...
# AUTOGENERATED! DO NOT EDIT! File to edit: perception.ipynb (unless otherwise specified). __all__ = ['RADIUS', 'ORIGIN', 'Perception'] # Cell # import import_ipynb from .utility import normalize, distance # Cell import numpy as np from numpy.random import default_rng from dataclasses import dataclass from dataclass...
{"hexsha": "f12a1dbe966aa4d119dc29e35e03631ad193a046", "size": 5007, "ext": "py", "lang": "Python", "max_stars_repo_path": "ecotwins/perception.py", "max_stars_repo_name": "LogicalInvestigations/ecotwins", "max_stars_repo_head_hexsha": "e86cc91df6cd45cefbf1e43399908cf2f003c9b7", "max_stars_repo_licenses": ["Apache-2.0"...
import os, torch, time, shutil, json, glob, argparse, shutil import numpy as np from easydict import EasyDict as edict from datasets.dataloader import get_dataloader, get_datasets from models.architectures import KPFCNN from lib.utils import setup_seed, load_config from lib.tester import get_trainer from lib.loss impo...
{"hexsha": "a775aacb2c8c4cbc069b846a12d982981ff58be4", "size": 3663, "ext": "py", "lang": "Python", "max_stars_repo_path": "main.py", "max_stars_repo_name": "StrikerCC/OverlapPredator", "max_stars_repo_head_hexsha": "cae15b0d3ac60729961b5983a8f740a1a822c96b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
from keras import backend from keras.utils import plot_model from keras.layers import Lambda, Dense, Input, Reshape, Embedding from keras.models import Model from keras.callbacks import TensorBoard from keras.losses import mse import keras.metrics as metrics import argparse import numpy as np from synthetic_data impo...
{"hexsha": "2ccc0a925e7fc9a677fe8be06dfbb57ee51ddf56", "size": 4284, "ext": "py", "lang": "Python", "max_stars_repo_path": "framework/causal_mediation_working_bak_20190114.py", "max_stars_repo_name": "mullachv/causal_notes", "max_stars_repo_head_hexsha": "509e1f5c9f793697949a3a6f6bfc53df85e7e9f6", "max_stars_repo_licen...
#!/usr/bin/env python from collections import deque import re import numpy assign = re.compile('([0-9]+) -> ([a-z]+)') operation = re.compile('([a-z0-9]*) *([A-Z]+) ([a-z0-9]+) -> ([a-z]+)') wires = {} operation_queue = deque() AND = 1 NOT = 2 OR = 3 LSHIFT = 4 RSHIFT = 5 class Operation: def __init...
{"hexsha": "c2d48bbd90b949e75abc5f1a8d1a6135223a5535", "size": 2198, "ext": "py", "lang": "Python", "max_stars_repo_path": "day7/part1.py", "max_stars_repo_name": "topjens/aoc2016", "max_stars_repo_head_hexsha": "3bf5f99d2c9320a7272e273ccd7447f7f7b5137e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma...
{ -- MF/TIN SRAM functions -- Original code by Jeff Massung, 2003 } \ shift masking :i /8 ( n1 -- n1 n2 ) dup 8 # n/ ; :n *8 ( n1 n2 -- n3 ) swap 8 # n* + ; \ save data to static ram :n savebyte ( b -- ) >a c!a a> ; :n saveword ( n -- ) >a /8 c!a c!a a> ; :n savelong ( x -- ) >a /8 /8 /8 c!a c!a c!a c!a a> ; \ loa...
{"hexsha": "89f67e6734714e4b271051e1b2df75a41fa22267", "size": 1101, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "optional/sram.f", "max_stars_repo_name": "uli/dragonbasic", "max_stars_repo_head_hexsha": "901c0e5e88963df44aff28d3124ca842234dad3c", "max_stars_repo_licenses": ["Zlib"], "max_stars_count": 28, "m...
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import os from figure3 import select, ket, exp from matrix import ops from measures import local_entropies_from_rhos, local_exp_vals_from_rhos from mpl_toolkits.axes_grid1 import ImageGrid from matplotlib import rc rc("text", usetex=True) fon...
{"hexsha": "22040e5fbc98320308f1868f94a43716c95f2a35", "size": 5044, "ext": "py", "lang": "Python", "max_stars_repo_path": "figure2.py", "max_stars_repo_name": "lhillber/qops", "max_stars_repo_head_hexsha": "2bdd9548222c720e877b1a1e4b6200d993abed5e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "max_stars_...
[STATEMENT] lemma mcont_bind_pmf [cont_intro]: assumes g: "\<And>y. mcont luba orda lub_spmf (ord_spmf (=)) (g y)" shows "mcont luba orda lub_spmf (ord_spmf (=)) (\<lambda>x. bind_pmf p (\<lambda>y. g y x))" [PROOF STATE] proof (prove) goal (1 subgoal): 1. mcont luba orda lub_spmf (ord_spmf (=)) (\<lambda>x. p \<b...
{"llama_tokens": 362, "file": "Probabilistic_While_While_SPMF", "length": 2}
"""Utilities""" # This file is part of geneparse. # # The MIT License (MIT) # # Copyright (c) 2017 Pharmacogenomics Centre # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restricti...
{"hexsha": "73a9d9aaae64331687fbf553f73c8fe9754b16a0", "size": 9341, "ext": "py", "lang": "Python", "max_stars_repo_path": "geneparse/utils.py", "max_stars_repo_name": "pgxcentre/geneparse", "max_stars_repo_head_hexsha": "ecb3a7fcbcb6a295828445ccbe6a3062ba20e701", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
"""Controller used to generate distribution over hierarchical, variable-length objects.""" import tensorflow as tf import numpy as np from dso.program import Program from dso.memory import Batch from dso.prior import LengthConstraint class LinearWrapper(tf.contrib.rnn.LayerRNNCell): """ RNNCell wrapper that...
{"hexsha": "1c54369e5252e68489fadb62f75b88fa1eb2a591", "size": 21498, "ext": "py", "lang": "Python", "max_stars_repo_path": "dso/dso/controller.py", "max_stars_repo_name": "brendenpetersen/deep-symbolic-optimization", "max_stars_repo_head_hexsha": "8724839dab910022e24d03debdf564236683474b", "max_stars_repo_licenses": [...
module TrafficAssignment # package code goes here using LightGraphs, Optim include("load_network.jl") include("frank_wolfe.jl") export load_ta_network, ta_frank_wolfe, TA_Data end # module
{"hexsha": "b007ed1c4b0190d3dd02696945fb73962560db33", "size": 221, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/TrafficAssignment.jl", "max_stars_repo_name": "JuliaPackageMirrors/TrafficAssignment.jl", "max_stars_repo_head_hexsha": "87b011e851bb005775ade803ef7ca56bdfe8633a", "max_stars_repo_licenses": ["M...
[STATEMENT] lemma set_plus_intro2 [intro]: "b \<in> C \<Longrightarrow> a + b \<in> a +o C" [PROOF STATE] proof (prove) goal (1 subgoal): 1. b \<in> C \<Longrightarrow> a + b \<in> a +o C [PROOF STEP] by (auto simp add: elt_set_plus_def)
{"llama_tokens": 101, "file": null, "length": 1}
### Google Ngram Data Tools ## Alex John Quijano ## Created: 9/13/2017 import os import re import sys import math import errno import numpy as np import pandas as pd import subprocess as sb # Read Google ngram data def read(n,l,ignore_case=True,restriction=True,annotation=False,specific_fileName='all'): try: # ra...
{"hexsha": "a1e0a8044128df824ef1146a76c24776307aaef5", "size": 3894, "ext": "py", "lang": "Python", "max_stars_repo_path": "googleNgram.py", "max_stars_repo_name": "stressosaurus/a-statistical-model-of-word-rank-evolution", "max_stars_repo_head_hexsha": "4a06a872b5c84b561510958aed18e76d931443f4", "max_stars_repo_licens...
import numpy as np from sklearn import cluster, manifold, metrics class Reservoir(object): """ Reservoir Class Parameters ---------- n_features: (default=1) number of input features, set in range (>=1) n_reservoir: (default=100) number of reservoir neurons, set in ra...
{"hexsha": "35fa313e690253a9da5fd85f51afce675dd9d610", "size": 21506, "ext": "py", "lang": "Python", "max_stars_repo_path": "ConceptorClustering.py", "max_stars_repo_name": "nhejequjq/Conceptor-TSCluster", "max_stars_repo_head_hexsha": "4bf7bc16a50742c812532152f606ee4dd95fef91", "max_stars_repo_licenses": ["MIT"], "max...
#!/usr/bin/env python # -*- coding=utf-8 -*- import re import os import json import heapq import math from collections import defaultdict import networkx as nx from networkx.readwrite import json_graph import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import igraph as ig import pandas as pd im...
{"hexsha": "6cbd83235f641dd5b0c6cc54df9123ea69b73dc3", "size": 9802, "ext": "py", "lang": "Python", "max_stars_repo_path": "SIGNLENS/functions.py", "max_stars_repo_name": "huangjunjie95/signlens", "max_stars_repo_head_hexsha": "005c0ad0d625c0efa14ba696b6e5db7d8ae81fbf", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
import time import numpy as np from matplotlib import pyplot as plt from progressbar import progressbar as pbar rng = np.random.default_rng() T = 0.5 def clock(func, mat, vec): t0 = time.perf_counter() N = 0 while time.perf_counter()-t0 < T: func(mat, vec) N += 1 t1 = time.perf_count...
{"hexsha": "fd8923bf959b2562ede772818ba88efed3cc1f4a", "size": 1236, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/complexity/linear_solve.py", "max_stars_repo_name": "jacione/phys513", "max_stars_repo_head_hexsha": "a8e1d1de800b0372d013d69543e1619b0fb8e4e9", "max_stars_repo_licenses": ["MIT"], "max_stars_...