text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
// Copyright (C) 2009 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #include <dlib/matrix.h> #include <sstream> #include <string> #include <cstdlib> #include <ctime> #include <vector> #include "../stl_checked.h" #include "../array.h" #include "../rand.h" #i...
{"hexsha": "b46c4866d1f8981c4b4a214f9d7ad0affe322d3c", "size": 5730, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "dlib/test/matrix_chol.cpp", "max_stars_repo_name": "yatonon/dlib-face", "max_stars_repo_head_hexsha": "0230c1034ee65d0846d007e6145bfe73ca0d6321", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_c...
// // Copyright 2007-2008 Christian Henning, Andreas Pokorny, Lubomir Bourdev // // 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 BOOST_GIL_IO_BIT_OPERATIONS_HPP #define BOOST_GIL_IO_BIT_OPERATIONS_HPP #i...
{"hexsha": "81b63bad20df3e3db4c75ada0225f4a4c2dce60d", "size": 3764, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "ReactNativeFrontend/ios/Pods/boost/boost/gil/io/bit_operations.hpp", "max_stars_repo_name": "Harshitha91/Tmdb-react-native-node", "max_stars_repo_head_hexsha": "e06e3f25a7ee6946ef07a1f524fdf62e48424...
#!/usr/bin/env python3 import argparse import yaml import glob import numpy as np import matplotlib.pyplot as plt from astropy import constants from matplotlib.colors import LogNorm from os import mkdir from matplotlib import ticker import athena_read from math import floor,ceil # import athenaplotlib as ath class St...
{"hexsha": "4101dbaf2f569c2e79a390a90700fa6ab1d5dd66", "size": 23542, "ext": "py", "lang": "Python", "max_stars_repo_path": "athena_plot.py", "max_stars_repo_name": "atomsite/ath-dust-plot", "max_stars_repo_head_hexsha": "b63dc548dc859f33e0b096703a9b98c1f1cdc832", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
section \<open>Explore and Enumerate Nodes of Deterministic Rabin Automata\<close> theory DRA_Translate imports DRA_Explicit begin subsection \<open>Syntax\<close> (* TODO: this syntax has unnecessarily high inner binding strength, requiring extra parentheses the regular let syntax correctly uses inner bindi...
{"author": "data61", "repo": "PSL", "sha": "2a71eac0db39ad490fe4921a5ce1e4344dc43b12", "save_path": "github-repos/isabelle/data61-PSL", "path": "github-repos/isabelle/data61-PSL/PSL-2a71eac0db39ad490fe4921a5ce1e4344dc43b12/SeLFiE/Example/afp-2020-05-16/thys/Transition_Systems_and_Automata/Automata/DRA/DRA_Translate.thy...
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE compile_instruction #include <boost/test/unit_test.hpp> #include "../src/compile_instruction.hpp" #include "context.hpp" using llvm::Value; using llvm::IRBuilder; BOOST_AUTO_TEST_CASE(compiles_test) { if(false) { auto define_variable = [&](const ...
{"hexsha": "0b8663e13d62196a579cc2cdc15c4b412a8a7b12", "size": 895, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/compile_instruction.cpp", "max_stars_repo_name": "mbmaier/asm-lisp", "max_stars_repo_head_hexsha": "a09a1d53d324c6a2b177a02a6233cb71124fb768", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
{"hexsha": "d3ca579cdc097e5588a74ffb6613470b2a6aad60", "size": 46039, "ext": "py", "lang": "Python", "max_stars_repo_path": "tensorflow/python/ops/numpy_ops/np_array_ops_test.py", "max_stars_repo_name": "EricRemmerswaal/tensorflow", "max_stars_repo_head_hexsha": "141ff27877579c81a213fa113bd1b474c1749aca", "max_stars_re...
# This must be done BEFORE importing numpy or anything else. # Therefore it must be in your main script. import os os.environ["MKL_NUM_THREADS"] = "1" os.environ["NUMEXPR_NUM_THREADS"] = "1" os.environ["OMP_NUM_THREADS"] = "1" import sys import numpy as np import pyqmc.testwf as testwf import pytest from pyqmc import ...
{"hexsha": "dc57241e23fc3ee6fba4f820ce8f8c4b2b5cb65e", "size": 2279, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/integration/test_dmc.py", "max_stars_repo_name": "gcassella/pyqmc", "max_stars_repo_head_hexsha": "f7a6e1f656c8eab7ebd72132ee980f77275e3876", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
import torch from abc import ABC, abstractmethod import numpy as np from .util import comm_table, rank2node class AmpModel(ABC): def __init__(self, model_config): self.model_config = model_config self._num_layer = -1 return @abstractmethod def estimate(self, parallelism, bs, alpha,...
{"hexsha": "b4be6f38d44338deaccfe2b710b957782966ee1e", "size": 12250, "ext": "py", "lang": "Python", "max_stars_repo_path": "deepspeed/amp/AmpModel.py", "max_stars_repo_name": "YLJALDC/DeepSpeed", "max_stars_repo_head_hexsha": "3362dac38e6c6bff369d3562b1549dc86fa1c633", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Nick Waters's super awesome template for biorXiv submissions % In memory of Henry, Hermione, and Angus. % May there be many tasty snails in pufferfish heaven %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \docu...
{"hexsha": "ddb582b92499742035188a82269ce54cfd8831ae", "size": 10221, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Waters_et_al_2017/ms/riboSeed_biorxiv.tex", "max_stars_repo_name": "nickp60/riboSeed", "max_stars_repo_head_hexsha": "636eaf78a1bbe4517c43ddb120e5ca5bb2b97212", "max_stars_repo_licenses": ["MIT"], ...
from __future__ import annotations from typing import List, Generator import asyncio from dataclasses import dataclass from contextlib import contextmanager import numpy as np from numpy.typing import NDArray import zmq import zmq.asyncio as azmq from ferrite.utils.epics.ioc import Ioc from tornado.ipp import AppM...
{"hexsha": "07bb407ea79f69067bbbb64a849a20597d371ce3", "size": 3718, "ext": "py", "lang": "Python", "max_stars_repo_path": "tornado/ioc/fakedev/base.py", "max_stars_repo_name": "binp-automation/tornado", "max_stars_repo_head_hexsha": "54fbe46aa1bd916528e1b852c87438d19f67a17f", "max_stars_repo_licenses": ["MIT"], "max_s...
/* PICCANTE The hottest HDR imaging library! http://vcg.isti.cnr.it/piccante Copyright (C) 2014 Visual Computing Laboratory - ISTI CNR http://vcg.isti.cnr.it First author: Francesco Banterle This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed ...
{"hexsha": "66726b5d5046fed6ad81e45c5992a0f61dc76755", "size": 5097, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/computer_vision/nelder_mead_opt_gordon_lowe.hpp", "max_stars_repo_name": "ecarpita93/HPC_projet_1", "max_stars_repo_head_hexsha": "a2c00e056c03227711c43cf2ad23d75c6afbe698", "max_stars_repo_...
function squareseigenvalues(n,m,k) if m < 0 throw(DomainError(m,"order must be non-negative")); end if n < 1 throw(DomainError(n,"dimension must be positive")); end if k > m throw(DomainError(k,"degree must be lesser than or equal to m")); end # for i=0, the eigenval...
{"hexsha": "455c29afc0aebedd8d3ab004b2ebfd3d0057dbda", "size": 1750, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/SquaresOperator.jl", "max_stars_repo_name": "SergioCS147/HarmonicPolya", "max_stars_repo_head_hexsha": "83f51bfae88529924c814c15ca3f5050d205e84a", "max_stars_repo_licenses": ["MIT"], "max_stars...
[STATEMENT] lemma reachFrom_Step_Left: "reachFrom s' s'' \<Longrightarrow> validTrans trn \<Longrightarrow> srcOf trn = s \<Longrightarrow> tgtOf trn = s' \<Longrightarrow> reachFrom s s''" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>reachFrom s' s''; validTrans trn; srcOf trn = s; tgtOf trn = s'\<rbrakk...
{"llama_tokens": 160, "file": "Bounded_Deducibility_Security_Transition_System", "length": 1}
# -*- coding: utf-8 -*- from aiida import orm from aiida.engine import calcfunction import numpy as np # @calcfunction def get_unique_cation_sites(structure, cation): ''' Returns the indices of unique cationic positions in the structure ''' from pymatgen.symmetry.analyzer import SpacegroupAnalyzer ...
{"hexsha": "66326876a7b8f24f7dee322b257f3eb14c1f9356", "size": 8580, "ext": "py", "lang": "Python", "max_stars_repo_path": "aiida_open_circuit_voltage/calculations/functions/functions.py", "max_stars_repo_name": "tsthakur/aiida-open_circuit_voltage", "max_stars_repo_head_hexsha": "de4bd555872b69ab9c23c675400290d96a49bc...
import numpy as np import os import tqdm import sys dataset = open("/home/sdevgupta/mine/Text2Style/open_seq2seq/dataset/combined_dataset_for_text2style_training.csv").read().split("\n") mel_dir = sys.argv[1] outdir = sys.argv[2] for data in tqdm.tqdm( dataset ): tokens = data.split("|") filepath = tokens[0]...
{"hexsha": "4655a2b7af0375201cec2bc4ebb0aa396ca26e3f", "size": 788, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/fix_gta_mels.py", "max_stars_repo_name": "Shikherneo2/OpenSeq2Seq", "max_stars_repo_head_hexsha": "28e5fde54ac4de4de3fce09c68d4f0fb5743f4de", "max_stars_repo_licenses": ["Apache-2.0"], "max...
\documentclass[11pt,a4paper]{article} \usepackage{amsthm,amsmath,amsfonts,exscale,latexsym,graphicx,dsfont} \usepackage{times} %\usepackage[mtpcal,mtphrb,subscriptcorrection]{mtpro2} \usepackage{natbib} \usepackage[usenames]{color} \usepackage[pagebackref,colorlinks=true,breaklinks,linkcolor=Gray,citecolor=Gray,urlcolo...
{"hexsha": "84b23fec8e4a50d733007e785975dea987e2e1f7", "size": 14140, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "paper/lauro.tex", "max_stars_repo_name": "s-broda/nmt", "max_stars_repo_head_hexsha": "06f5a94b6c9e33243ff453063d03b6ee13fd8721", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": null,...
#!/usr/bin/env python # coding: utf-8 # In[ ]: # This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python # For example, here's several helpful packages to load in import numpy as np # linear algebra i...
{"hexsha": "198565db7fd48196103002b1896cab6e31226ea3", "size": 12996, "ext": "py", "lang": "Python", "max_stars_repo_path": "relancer-exp/original_notebooks/chirin_africa-economic-banking-and-systemic-crisis-data/african-crisis-eda-and-modelling.py", "max_stars_repo_name": "Chenguang-Zhu/relancer", "max_stars_repo_head...
import math import numpy as np ##### Activation functions def zero(x): return 0 def sigmoid(x): return 1 / (1 + math.exp(-x)) def gaussian(x): return math.exp(-(x**2 / 2)) def identity(x): return x def binary(x): if x < 0: return -1 else: return 1 def relu(x): if x < 0:...
{"hexsha": "2849e60c0a36321d436e68069b877e366b7ee474", "size": 2899, "ext": "py", "lang": "Python", "max_stars_repo_path": "ANN.py", "max_stars_repo_name": "cece95/F21BC-Coursework", "max_stars_repo_head_hexsha": "dd3586891b6eda03b208e25b00392db042a4ec5b", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 1...
/** * Copyright (c) 2018-2019, Laouen M. L. Belloli, Damian Vicino * Carleton University, Universidad de Buenos Aires * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of...
{"hexsha": "e56f658b4d817a3bc16c8f6109f60f3afea5a745", "size": 7181, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/pdevs_dynamic_coordinator_test.cpp", "max_stars_repo_name": "juanlanuzag/cadmium", "max_stars_repo_head_hexsha": "2e37041b10d659b434caf6ff2876ebea3a313357", "max_stars_repo_licenses": ["BSD-2-C...
#include <boost/bind.hpp> #include <boost/config/warning_disable.hpp> #include <boost/fusion/algorithm.hpp> #include <boost/fusion/container.hpp> #include <boost/fusion/include/adapt_struct.hpp> #include <boost/fusion/include/at_c.hpp> #include <boost/fusion/include/io.hpp> #include <boost/fusion/sequence.hpp> #include...
{"hexsha": "d39dd9f775b995df205acf29ad9e20c4107f31eb", "size": 2970, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/OpenDB/src/lefin/lefTechLayerCutClassParser.cpp", "max_stars_repo_name": "ibrahimkhairy/OpenROAD", "max_stars_repo_head_hexsha": "399a51332ce32e816b914f38cd38b9d0fe77785f", "max_stars_repo_licen...
subroutine ComputeDMap(Dij, dh_mask, n_dh, sampling, lmax) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! This subroutine will compute the matrix D(lm,l'm') for the spatiospectral concentration ! problem using the input grid DH_MASK to define the concentration ...
{"hexsha": "5509baec66ad37bc2991775bfe947353f0dd77af", "size": 6780, "ext": "f95", "lang": "FORTRAN", "max_stars_repo_path": "spherical_splines/SHTOOLS/src/ComputeDMap.f95", "max_stars_repo_name": "JackWalpole/seismo-fortran-fork", "max_stars_repo_head_hexsha": "18ba57302ba2dbd39028e6ff55deb448d02bd919", "max_stars_rep...
# adapted from https://github.com/ftramer/Handcrafted-DP # MIT License # Copyright (c) 2020 ftramer # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without li...
{"hexsha": "72d85ff0d03fa6545db9fdb5e5781b20dfe61cca", "size": 7859, "ext": "py", "lang": "Python", "max_stars_repo_path": "transfer/extract_simclr.py", "max_stars_repo_name": "privacytrustlab/dp_dynamics", "max_stars_repo_head_hexsha": "0566b7c1b1f1a48b96713193b6e37f646690fb97", "max_stars_repo_licenses": ["MIT"], "ma...
# ############################################################################# # ############################################################################# #PSS clustering methods #This file contains functions to quantify and analyze the degree of clustering of points on a Poincare Surface of Section, which would ...
{"hexsha": "577e567a91880412f3f68f543797ad9f870e699d", "size": 6835, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/clustering.jl", "max_stars_repo_name": "amyascwk/CavChaos.jl", "max_stars_repo_head_hexsha": "f4a2f9801af5e67a5648d37901a4e5cd377c064d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
from pybullet_envs.scene_abstract import SingleRobotEmptyScene from pybullet_envs.env_bases import MJCFBaseBulletEnv import numpy as np import pybullet import real_robots from .robot import Kuka import os from gym import spaces def DefaultRewardFunc(observation): return 0 class Goal: def __init__(self, init...
{"hexsha": "0c00d3ef684e5ce03c1f5b970915f44bed722abf", "size": 20888, "ext": "py", "lang": "Python", "max_stars_repo_path": "real_robots/envs/env.py", "max_stars_repo_name": "GOAL-Robots/real_robots", "max_stars_repo_head_hexsha": "6dd5b70bad14426483e2d3ee29b3d8708d34e1ba", "max_stars_repo_licenses": ["MIT"], "max_star...
[STATEMENT] lemma cantor1: "\<not> (\<exists>f:: 'a \<Rightarrow> 'a set. \<forall>S. \<exists>x. f x = S)" \<comment> \<open>Requires best-first search because it is undirectional.\<close> [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<nexists>f. \<forall>S. \<exists>x. f x = S [PROOF STEP] by best
{"llama_tokens": 122, "file": null, "length": 1}
""" Neuroimaging cartesian reconstruction ===================================== Author: Chaithya G R In this tutorial we will reconstruct an MRI image from the sparse kspace measurements. Import neuroimaging data ------------------------ We use the toy datasets available in pysap, more specifically a 2D brain slice...
{"hexsha": "6113f978f81e055894006a7f35f46c2b8ab55755", "size": 2650, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/cartesian_reconstruction.py", "max_stars_repo_name": "Zaineb18/pysap-mri", "max_stars_repo_head_hexsha": "cf4391049b2fe264e8eb96dff07b44fce3b8e8d4", "max_stars_repo_licenses": ["CECILL-B"...
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. # See https://nomad-lab.eu for further info. # # 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/lic...
{"hexsha": "c5aa05f5ae491d548a0c8c2813e92ee7a49103e1", "size": 17542, "ext": "py", "lang": "Python", "max_stars_repo_path": "workflowparsers/fhivibes/metainfo/fhi_vibes.py", "max_stars_repo_name": "nomad-coe/workflow-parsers", "max_stars_repo_head_hexsha": "29a47d873ae921c23b58b95f8496fa0a2d503f15", "max_stars_repo_lic...
#Import required directories: numpy and math required import sys import csv import numpy import math #Take in required arguments if len(sys.argv)!=7: print("Usage: "+sys.argv[0]+"python dosage.py <file_name> <number_died> <total_number> <time_period> <dosage_conc> <dosage_points>") sys.exit() s...
{"hexsha": "b969dcda020c7245bf39a9941469c852b09cfbb2", "size": 3766, "ext": "py", "lang": "Python", "max_stars_repo_path": "dosage.py", "max_stars_repo_name": "preetham-v/TOX_HL", "max_stars_repo_head_hexsha": "6462d644d223a31bd973281969ac8f4695324b40", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count": null,...
import pickle import os import cv2 import numpy as np import Settings import Globals import sys import numpy as np from datetime import datetime lightgbm_model_path = 'models/model.bin' lightgbm_arrowmodel_path = 'models/arrowmodel.bin' # lenet_model_path = 'models/leNet.h5' lenet_model_path = 'models/leNet_v2.h5' ...
{"hexsha": "e9dab186bed900ad23359f0704c5b687ff512e0d", "size": 4523, "ext": "py", "lang": "Python", "max_stars_repo_path": "auto_drive/rule_drive/TrafficSignClassify.py", "max_stars_repo_name": "YingshuLu/self-driving-formula-racing", "max_stars_repo_head_hexsha": "0c45030c9f761a1e38abf7fc3957244389bb1165", "max_stars_...
from __future__ import print_function from sklearn.decomposition import PCA import pandas as pd import pickle as pk import re import json import seaborn as sns import numpy as np import matplotlib.pyplot as plt plt.style.use('seaborn-dark') def show_examples(idxs, printStd=True): # prints example dataset from supp...
{"hexsha": "f4437aa7cdf151c6bee7147647342d52e0ce3797", "size": 9454, "ext": "py", "lang": "Python", "max_stars_repo_path": "process_ims/analyze_haralick_n_color_hists.py", "max_stars_repo_name": "nateGeorge/IDmyDog-udacity-submission", "max_stars_repo_head_hexsha": "d247f03455ea4e72898fe80a6bf577e9c1cedc6d", "max_stars...
[GOAL] ⊢ {0} ∪ range succ = univ [PROOFSTEP] ext n [GOAL] case h n : ℕ ⊢ n ∈ {0} ∪ range succ ↔ n ∈ univ [PROOFSTEP] cases n [GOAL] case h.zero ⊢ zero ∈ {0} ∪ range succ ↔ zero ∈ univ [PROOFSTEP] simp [GOAL] case h.succ n✝ : ℕ ⊢ succ n✝ ∈ {0} ∪ range succ ↔ succ n✝ ∈ univ [PROOFSTEP] simp [GOAL] ⊢ range succ = {i | 0 <...
{"mathlib_filename": "Mathlib.Data.Nat.Set", "llama_tokens": 1204}
import helper from tensorflow.keras.applications import ResNet50 from tensorflow.keras.applications.resnet import preprocess_input from tensorflow.keras.preprocessing.image import img_to_array from tensorflow.keras.applications import imagenet_utils from imutils.object_detection import non_max_suppression from helper i...
{"hexsha": "5e018ee6cd01cd27ccc03020e58df5f8ca2742db", "size": 3016, "ext": "py", "lang": "Python", "max_stars_repo_path": "folders/Object_detection/object_detect.py", "max_stars_repo_name": "angelopassaro/Hacktoberfest-1", "max_stars_repo_head_hexsha": "21f90f5d49efba9b1a27f4d9b923f5017ab43f0e", "max_stars_repo_licens...
cdis cdis Forecast Systems Laboratory cdis NOAA/OAR/ERL/FSL cdis 325 Broadway cdis Boulder, CO 80303 cdis cdis Forecast Research Division cdis Local Analysis and Prediction Branch cdis LAPS cdis cdis This software and its documentation are in the public domain and cdis are furnished "as i...
{"hexsha": "4d3cfe3a3265ac3224451df4e5ae0025e6cf0fac", "size": 29930, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/lib/prof_cdf.f", "max_stars_repo_name": "maxinye/laps-mirror", "max_stars_repo_head_hexsha": "b3f7c08273299a9e19b2187f96bd3eee6e0aa01b", "max_stars_repo_licenses": ["Intel", "Unlicense", "OLD...
""" python version of SurfStatViewData """ # Author: RRC # License: BSD 3 clause import numpy as np @deprecated("BrainSpace dependency") def py_SurfStatViewData(data, surf, title, background): """Basic viewer for surface data. Usage: [ a, cb ] = SurfStatViewData( data, surf [,title [,background]] ) Par...
{"hexsha": "1ebedeea77f02826c5e8493eb676f5607bad8b77", "size": 1036, "ext": "py", "lang": "Python", "max_stars_repo_path": "surfstat/python/need_not_convert/SurfStatViewData.py", "max_stars_repo_name": "rudimeier/BrainStat", "max_stars_repo_head_hexsha": "a5ef474ffd70300ecf5fa464fff4a41e71f4b7a1", "max_stars_repo_licen...
function [ x, seed ] = circular_normal_sample ( a, b, seed ) %*****************************************************************************80 % %% CIRCULAR_NORMAL_SAMPLE samples the Circular Normal PDF. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 03 January 2011 % ...
{"author": "johannesgerer", "repo": "jburkardt-m", "sha": "1726deb4a34dd08a49c26359d44ef47253f006c1", "save_path": "github-repos/MATLAB/johannesgerer-jburkardt-m", "path": "github-repos/MATLAB/johannesgerer-jburkardt-m/jburkardt-m-1726deb4a34dd08a49c26359d44ef47253f006c1/prob/circular_normal_sample.m"}
# Copyright 2018 DeepMind Technologies Limited. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
{"hexsha": "65fb45c4fcd9f335cb9e081a834666730da3b096", "size": 3479, "ext": "py", "lang": "Python", "max_stars_repo_path": "acme/wrappers/delayed_reward.py", "max_stars_repo_name": "contropist/deepmind-acme", "max_stars_repo_head_hexsha": "237d9c91531f184104a3f146d289ce8e0d41c807", "max_stars_repo_licenses": ["Apache-2...
[STATEMENT] lemma inner_mult_le_mult_inner: fixes a b :: "'a :: {real_inner,real_normed_algebra}" shows "((a * b) \<bullet> (a * b)) \<le> (a \<bullet> a) * (b \<bullet> b)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (a * b) \<bullet> (a * b) \<le> a \<bullet> a * (b \<bullet> b) [PROOF STEP] by (metis real_...
{"llama_tokens": 164, "file": "Hyperdual_Hyperdual", "length": 1}
# Karolina Szafran-Belzowska, 2019/04/27 # Iris Flower Data Analysis # second column histogram (sepal width) import numpy as np import matplotlib.pyplot as pl data = np.genfromtxt('irisdata.txt', delimiter=',') secondcol = data[:,1] meansecondcol = np.mean(data[:,1]) print(meansecondcol) pl.hist(secondcol) pl.sho...
{"hexsha": "6fc4be8692167ee0c5e9486bb08e70888612a287", "size": 325, "ext": "py", "lang": "Python", "max_stars_repo_path": "secondcol_histagram.py", "max_stars_repo_name": "karolinaszafranbelzowska/Fisher-s-Iris-Data-Set-2019", "max_stars_repo_head_hexsha": "5ad7fb98ab65d268dd7a9ebebd13eb00970ddc4b", "max_stars_repo_lic...
# -*- coding: utf-8 -*- """ Created on Tue Jul 14 04:43:57 2020 @author: Marcin """ import cv2 as cv import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.use('Agg') # dpi of the track png f = 500 # png width and height w: int = 1024 h: int = 768 plt.rcParams['figure.figsize'] = w / float(...
{"hexsha": "598e1083f270f006757b6cfb1f42bb282545f6c4", "size": 1198, "ext": "py", "lang": "Python", "max_stars_repo_path": "Track_Preparation/empty_track.py", "max_stars_repo_name": "aftersomemath/l2race", "max_stars_repo_head_hexsha": "d8ea8e7cef98020ad7e8d9cc37b504558d2c2d8f", "max_stars_repo_licenses": ["MIT"], "max...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jan 23 16:16:58 2019 this program generates rhythmic coupled oscillator output where samples of a woodblock are triggered upon each zero crossing. This was used to generate stimuli for a psychoacoustics experiment. @author: nolanlem """ import nump...
{"hexsha": "40af4f5d3f3428cb77623670a6d637aa7fde82de", "size": 34761, "ext": "py", "lang": "Python", "max_stars_repo_path": "generators/kura-gen-adaptive-r-all-no-timbre.py", "max_stars_repo_name": "nolanlem/swarmgen", "max_stars_repo_head_hexsha": "1c20b42f07c0c2b39096df8d58547c9657588caf", "max_stars_repo_licenses": ...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Jan 14 17:34:28 2018 @author: hanxy """ import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy as np tf.set_random_seed(1) np.random.seed(1) # Hyper Parameters BATCH_SIZE = 64 TIME_STEP = 28 # rnn time step /...
{"hexsha": "036032137be5922ad894629efdc912b4e28ebf7e", "size": 2175, "ext": "py", "lang": "Python", "max_stars_repo_path": "Tutorial/RNN.py", "max_stars_repo_name": "Robin970822/tensorflow-learning", "max_stars_repo_head_hexsha": "3c4be417c7a4ae7756045b54ca3a0b6c1d5c1f2e", "max_stars_repo_licenses": ["Apache-2.0"], "ma...
import numpy as np import collections import math import json from argparse import Namespace from dataclasses import dataclass, field import torch import sacrebleu from fairseq import metrics, utils from fairseq.criterions import FairseqCriterion, register_criterion from fairseq.dataclass import FairseqDataclass from...
{"hexsha": "84c86e6f92da235c4e35e5a12714e917aef1b66e", "size": 5266, "ext": "py", "lang": "Python", "max_stars_repo_path": "fairseq/criterions/policy_gradient.py", "max_stars_repo_name": "ku-dmlab/fairseq", "max_stars_repo_head_hexsha": "ff9be8dc032f5be114f3bbd66f5ba2356dcd157f", "max_stars_repo_licenses": ["MIT"], "ma...
[STATEMENT] lemma std_simplex: "convex hull (insert 0 Basis) = {x::'a::euclidean_space. (\<forall>i\<in>Basis. 0 \<le> x\<bullet>i) \<and> sum (\<lambda>i. x\<bullet>i) Basis \<le> 1}" [PROOF STATE] proof (prove) goal (1 subgoal): 1. convex hull insert (0::'a) Basis = {x. (\<forall>i\<in>Basis. 0 \<le> x \<bulle...
{"llama_tokens": 377, "file": null, "length": 2}
# Markets / Branches / Decisions # Paul Sztorc # Written in R (v 3.1.1) using Rstudio (v 0.98.1028) #Load Use <- function(package) { if(suppressWarnings(!require(package,character.only=TRUE))) install.packages(package,repos="http://cran.case.edu/") ; require(package,character.only=TRUE) } options(stringsAsFactors = FA...
{"hexsha": "ff0370c551eae7c53b05f44b90ee5ff5fa169c88", "size": 18960, "ext": "r", "lang": "R", "max_stars_repo_path": "lib/market/Markets.r", "max_stars_repo_name": "endolith/Truthcoin", "max_stars_repo_head_hexsha": "448b35fb94f27e61f5989ead7ef87e03da2e9237", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 161,...
import os import numpy as np import torch import time from matplotlib import pyplot as plt import matplotlib.cm as cm from matplotlib.collections import PatchCollection from matplotlib.patches import Rectangle from matplotlib.lines import Line2D from utils import load_model from problems.tsp.tsp_gurobi import * # P...
{"hexsha": "904ac5e5bde93bd3806f9db4930240e8a8b3faf2", "size": 9384, "ext": "py", "lang": "Python", "max_stars_repo_path": "test.py", "max_stars_repo_name": "udeshmg/GTA-RL", "max_stars_repo_head_hexsha": "3e4d159116d2f11eb66bd6f242a720dae7de74e8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 7, "max_stars_re...
import numpy as np import time import h5py as h5 import sys import os import gc Type = sys.argv[1] Id = sys.argv[2] RES = int(sys.argv[3]) Fluid = sys.argv[4] Forced = sys.argv[5] #yt.enable_parallelism() start=time.time() if Type[:6] == "Athena": DirId = Id Fields = ["density","velocity_x","velocity_y","ve...
{"hexsha": "f5fb5f1f6d8c2fd2dafc2ba9371a26abcc52fae5", "size": 2202, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/FtoC.py", "max_stars_repo_name": "Carlson-J/energy-transfer-analysis", "max_stars_repo_head_hexsha": "98b9da348cba09125d697fa189df76baf1693bea", "max_stars_repo_licenses": ["BSD-3-Clause"]...
import numpy as np from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, Activation from tensorflow.python.keras.layers import Conv2D, MaxPooling2D, Conv3D, MaxPooling3D from tensorflow.python.keras.layers import concatenate, UpSampling2D, BatchNormalization, Reshape from tensorflow.kera...
{"hexsha": "e4cbd4df625c13062dafc476e4e6c25685338d0d", "size": 5409, "ext": "py", "lang": "Python", "max_stars_repo_path": "mitosplit-net/.ipynb_checkpoints/training-checkpoint.py", "max_stars_repo_name": "LEB-EPFL/Mito_DL", "max_stars_repo_head_hexsha": "7426b736efce693194b7c91481e1d02bf6bfa5de", "max_stars_repo_licen...
import numpy as np import unittest import discretize from pymatsolver import Solver MESHTYPES = ["uniformTensorMesh"] def getxBCyBC_CC(mesh, alpha, beta, gamma): """ This is a subfunction generating mixed-boundary condition: .. math:: \nabla \cdot \vec{j} = -\nabla \cdot \vec{j}_s = q ...
{"hexsha": "0366d89a07436f5010f174533f71c27f8644f28b", "size": 17461, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/base/test_tensor_boundary.py", "max_stars_repo_name": "ckohnke/discretize", "max_stars_repo_head_hexsha": "f414dd7ee7c5ba9a141cb2c37d4b71fdc531eae8", "max_stars_repo_licenses": ["MIT"], "ma...
using Distributed using SharedArrays addprocs(8) nprocs() @everywhere using FRGRealTime, DelimitedFiles,Dierckx,Plots @everywhere kdata=readdlm("/home/tyy/Documents/CTP-fRG-Test/Real-Time-data/realtime_zero_k.dat")[:,1]|>reverse @everywhere lamdata=readdlm("/home/tyy/Documents/CTP-fRG-Test/Real-Time-data/realtime...
{"hexsha": "0f457f80f11d18d8c56c228768f0c682a941a022", "size": 3198, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "O(N)/Dynamical.jl", "max_stars_repo_name": "Yangyang-Tan/FRGRealTime.jl", "max_stars_repo_head_hexsha": "6581b783432a5d5d08d00c887b483f9596d12fe3", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
\documentclass[12pt, letterpaper]{memoir} %Imports \usepackage[top=.5in, left=.5in, right=.5in, bottom=.5in]{geometry} \usepackage{titlesec} \usepackage{titling} \usepackage{fontspec} \usepackage{parcolumns} \usepackage{wrapfig} \usepackage{fontawesome5} \usepackage{lipsum} \usepackage{enumitem} %Setting up fonts of ...
{"hexsha": "b254840efa7b221ffc35676b81d0d664eea91a64", "size": 4054, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "ResumeTemplate.tex", "max_stars_repo_name": "pkingstonxyz/LatexTemplates", "max_stars_repo_head_hexsha": "910c86a8d598be072208c481016d8d3b1a471a20", "max_stars_repo_licenses": ["Unlicense"], "max_st...
#!/usr/bin/env python #Code to generate the input segmentions for a full shell of diffusion-weighted, eddy distorted images using FSL's possum. from __future__ import absolute_import from __future__ import division from __future__ import print_function # Handle arguments (before slow imports so --help can be fast) imp...
{"hexsha": "768ddcd32f9446fc8336f47497ebcaf466775ac9", "size": 5414, "ext": "py", "lang": "Python", "max_stars_repo_path": "HelperScripts/generateWeightedSegs.py", "max_stars_repo_name": "rmukh/DW-POSSUM", "max_stars_repo_head_hexsha": "f7b897b8ef9009b33573dfffb1c43af8e4cc95fb", "max_stars_repo_licenses": ["MIT"], "max...
# -*- coding: utf-8 -*- import multiprocessing import numpy as np from itertools import cycle, islice import torch from torch import nn, optim, Tensor from kbcr.kernels import GaussianKernel from kbcr.clutrr.models.smart import NeuralKB, Hoppy from kbcr.reformulators import AttentiveReformulator from...
{"hexsha": "b967980487389e8fa3c8daffac05d7cfcb0bf09d", "size": 34000, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/kbcr/clutrr/smart/test_smart_clutrr.py", "max_stars_repo_name": "nagendra20001414/ctp", "max_stars_repo_head_hexsha": "ee237653939f4b743b10ae9954169aa7076d4ce1", "max_stars_repo_licenses": ...
/* MIT License Copyright @ 2017 Igor Hersht Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
{"hexsha": "5c7e8b3b3a60573213880289a24fa4979cc7a0a9", "size": 6549, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "proxygen_ih/web_server/impl/ServerManager.cpp", "max_stars_repo_name": "IgorHersht/proxygen_ih", "max_stars_repo_head_hexsha": "616a8eb899196d2a130e14c0fabcae1944e34b7d", "max_stars_repo_licenses": ...
[STATEMENT] lemma (in cring) canonical_proj_ext_is_surj: assumes "\<And>i. i \<le> n \<Longrightarrow> ideal (I i) R" and "\<And>i j. \<lbrakk> i \<le> n; j \<le> n \<rbrakk> \<Longrightarrow> i \<noteq> j \<Longrightarrow> I i <+> I j = carrier R" shows "(canonical_proj_ext I n) ` carrier R = carrier (RDirProd_lis...
{"llama_tokens": 20294, "file": null, "length": 100}
/- Copyright (c) 2020 Fox Thomson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Fox Thomson -/ import algebra.hom.ring import algebra.order.kleene import data.list.join import data.set.lattice /-! # Languages > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes...
{"author": "leanprover-community", "repo": "mathlib", "sha": "5e526d18cea33550268dcbbddcb822d5cde40654", "save_path": "github-repos/lean/leanprover-community-mathlib", "path": "github-repos/lean/leanprover-community-mathlib/mathlib-5e526d18cea33550268dcbbddcb822d5cde40654/src/computability/language.lean"}
"""Copyright (c) 2020 AIT Lab, ETH Zurich Students and holders of copies of this code, accompanying datasets, and documentation, are not allowed to copy, distribute or modify any of the mentioned materials beyond the scope and duration of the Machine Perception course projects. That is, no partial/full copy nor modif...
{"hexsha": "97990e77e98998cb67d76aefa7bafafed600f4d7", "size": 3792, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/core/checkpoint_manager.py", "max_stars_repo_name": "mwang625/Eye_Gaze_Estimation", "max_stars_repo_head_hexsha": "ca28c9bda9fa05db502dbc7c131a5ad6d99b615c", "max_stars_repo_licenses": ["MIT"]...
import numpy as np import torch from torch.utils.data import Dataset, DataLoader from torchvision.transforms import Compose, Resize, ToTensor import torchmeta from torchmeta.utils.data import BatchMetaDataLoader from torchmeta.transforms import Categorical, ClassSplitter, Rotation from torchmeta.datasets import Omnig...
{"hexsha": "860aa33c616b31712ddacee62f022991c61462f1", "size": 5693, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/data_loaders.py", "max_stars_repo_name": "nsaunshi/meta_tr_val_split", "max_stars_repo_head_hexsha": "71afe0d2d1044d7346769473dc9db865e6f874e6", "max_stars_repo_licenses": ["MIT"], "max_stars_...
import os import numpy as np # import scipy from scipy.io import savemat from dataTest import elem,time,lat,lon,bed,slat,slon,freq,dir,variables,spcgroup,stations,nodes from netcdfswan import NetCDFSWAN from datetime import datetime,timedelta tmpFolder="../s3/swandata" def create_bot(filePath,array): np.savetxt(fi...
{"hexsha": "1a7110c50fc6b7485afcd271c254e5fd3f7801e2", "size": 7987, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/createData.py", "max_stars_repo_name": "meracan/netcdf-swan", "max_stars_repo_head_hexsha": "f7548129331d34323ac960f315ca592d9511086a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
[STATEMENT] lemma spectrum_smult: fixes A::"complex Matrix.mat" assumes "hermitian A" and "A\<in> carrier_mat n n" and "0 < n" shows "spectrum (x \<cdot>\<^sub>m A) = {x * a|a. a\<in> spectrum A}" [PROOF STATE] proof (prove) goal (1 subgoal): 1. spectrum (x \<cdot>\<^sub>m A) = {x * a |a. a \<in> spectrum A} ...
{"llama_tokens": 2239, "file": "Commuting_Hermitian_Spectral_Theory_Complements", "length": 19}
#!/bin/python3 """ peak.py Given a folder of background counts and spectrum measurements, process, for each wavelength, the mean and standard deviation. (Assumes each data point is gaussian) Plots and then fits a given section of the spectrum to a gaussian. ~yd 2016-01-04 """ import argparse import numpy as np impo...
{"hexsha": "c08bc77e2c5d8c650709c196d79c4cc15bc3ec64", "size": 7404, "ext": "py", "lang": "Python", "max_stars_repo_path": "oceanoptics/process/peak.py", "max_stars_repo_name": "zhengyang-c/photonLauncher", "max_stars_repo_head_hexsha": "76215f47ccd1178f1826834533f5702c4b8f2c35", "max_stars_repo_licenses": ["Apache-2.0...
% Default to the notebook output style % Inherit from the specified cell style. \documentclass[11pt]{article} \usepackage[T1]{fontenc} % Nicer default font (+ math font) than Computer Modern for most use cases \usepackage{mathpazo} % Basic figure setup, for now with no capt...
{"hexsha": "3d4299a7ad9892c519da1ed4e33d8da4143c235e", "size": 158600, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "notebook.tex", "max_stars_repo_name": "rafaelszp/dog-project", "max_stars_repo_head_hexsha": "803c842665a82d8956a98c482765d7e2921965a9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
abstract type AbstractProbabilityVector{T <: Real} <: AbstractVector{T} end Base.@propagate_inbounds getindex(pvec::AbstractProbabilityVector, i) = getweight(pvec, i) Base.@propagate_inbounds setindex!(pvec::AbstractProbabilityVector, w, i) = setweight!(pvec, w, i) Base.@propagate_inbounds setprobability!(pvec::Abstrac...
{"hexsha": "e7b98ccfc80af12729d9bb23ac3ae46dda5e0dca", "size": 5620, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/probabilityvector.jl", "max_stars_repo_name": "MelkoCollective/QMC_TFIM.jl", "max_stars_repo_head_hexsha": "e9271460fff710fd87c1a40d0b4cf4d06f972466", "max_stars_repo_licenses": ["Apache-2.0"],...
// Qt model for all running nodes, exposing log level settings // Author: Max Schwarz <max.schwarz@uni-bonn.de> #include "node_model.h" #include <ros/master.h> #include <ros/service.h> #include <roscpp/GetLoggers.h> #include <roscpp/SetLoggerLevel.h> #include <ros/console.h> #include <boost/foreach.hpp> #include ...
{"hexsha": "08bc53677d1c8ff35888e8f716c66636667ddeb5", "size": 8499, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/nimbro_vis/rqt_log_viewer/src/node_model.cpp", "max_stars_repo_name": "hfarazi/humanoid_op_ros_kinetic", "max_stars_repo_head_hexsha": "84712bd541d0130b840ad1935d5bfe301814dbe6", "max_stars_repo...
import cv2 import numpy as np import matplotlib.pyplot as plt class Sobelizer: sobelx = None sobely = None abs_sobelx = None abs_sobely = None scaled_sobelx = None scaled_sobely = None gradmag = None absgraddir = None def __init__(self, gray_image, sobel_kernel = 3): self.s...
{"hexsha": "404d1931cd3dcfd8dd572ce8b0d41008437ad2b8", "size": 2955, "ext": "py", "lang": "Python", "max_stars_repo_path": "Sobelizer.py", "max_stars_repo_name": "uniquetrij/CarND-P4-Advanced-Lane-Lines", "max_stars_repo_head_hexsha": "6efff80839b2dd6d4460ce58b20fcf656fb68d7e", "max_stars_repo_licenses": ["MIT"], "max_...
import os import sys import cv2 EX_USAGE = 64 # command line usage error EX_DATAERR = 65 # data format error EX_NOINPUT = 66 # cannot open input EX_NOUSER = 67 # addressee unknown EX_NOHOST = 68 # host name unknown EX_UNAVAILABLE = 69 # service unavailable EX_SOFTWARE = 70 # internal software error EX_OSERR =...
{"hexsha": "ac5632146bbcf7532de1797047e0c80488a873ac", "size": 4974, "ext": "py", "lang": "Python", "max_stars_repo_path": "imfinder.py", "max_stars_repo_name": "iacopy/imfinder", "max_stars_repo_head_hexsha": "bf8ddebf6db69fda203354e24cb53b96c2557215", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": null...
import torch import numpy as np import networkx as nx import random import pickle from copy import deepcopy from tqdm import tqdm class MLENodeStruct(object): def __init__(self, dimension, userID): self.userID = userID self.dim = dimension self.theta = np.random.random(size=self.dim) ...
{"hexsha": "335f178190405e9aefe20c4a498a490c04aa876d", "size": 7139, "ext": "py", "lang": "Python", "max_stars_repo_path": "BanditAlg/IMFB_MLE.py", "max_stars_repo_name": "xiawenwen49/IMGUCB", "max_stars_repo_head_hexsha": "18350ca24bbaf23834794dc188885517ded607ea", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars...
MODULE mymod IMPLICIT NONE TYPE :: t REAL :: x REAL :: y CONTAINS PROCEDURE :: sum END TYPE REAL FUNCTION sum(val) TYPE(t) :: val sum = val%x + val%y END FUNCTION sum END MODULE mymod PROGRAM test USE mymod IMPLICIT NONE TYPE(t) :: v v%x = 1 v%y = 2 WRITE (*,*) t%sum END PROGRAM t...
{"hexsha": "e3f4608559dd606a6c20416bc9bfb97ebffdba87", "size": 325, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "Fortran952003ForScientistsandEngineers3rdStephenJChapman/chap14/test.f90", "max_stars_repo_name": "yangyang14641/FortranLearning", "max_stars_repo_head_hexsha": "3d4a91aacd957361aff5873054edf35c5...
C LAST UPDATE 06/10/98 C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ C SUBROUTINE BCKSMOOTH(BUF,CBACK,B,SMBUF,VALS,OPTIONS, & XB,YB,YS,YSP,SIG,WRK,IFLAG,MAXFUNC) IMPLICIT NONE C C Purpose: Background subtraction by smoothing C++++++++++++++++++++++++++...
{"hexsha": "c0749419b5dfdebdb55b143eb58a3dd9487950c9", "size": 10608, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "software/guifix/BCKSMOOTH.f", "max_stars_repo_name": "scattering-central/CCP13", "max_stars_repo_head_hexsha": "e78440d34d0ac80d2294b131ca17dddcf7505b01", "max_stars_repo_licenses": ["BSD-3-Claus...
# Play frames immediately after reading the csv # use loading file as "real-time" processing and render each frame to see performance import open3d as o3d import numpy as np import time import csv import os vis = o3d.visualization.Visualizer() vis.create_window() # o3d.utility.set_verbosity_level(o3d.utility.Verbosit...
{"hexsha": "9cfda4ad9d9b78bc39cff7b1235c977a8c460b42", "size": 1464, "ext": "py", "lang": "Python", "max_stars_repo_path": "visualization/anim_pc.py", "max_stars_repo_name": "KeyueZhu/XenomatiX", "max_stars_repo_head_hexsha": "4299eaf23fc7ffb3c9231f2ed68b17dbf05aa9dc", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #path of the data file- path data=pd.read_csv(path) data['Gender'].replace('-','Agender',inplace=True) print(data) gender_count=data['Gender'].value_counts() print(gender_count) plt.bar(gender_count...
{"hexsha": "7fe84c227142632c46f2da25ec5d48f8393db952", "size": 1829, "ext": "py", "lang": "Python", "max_stars_repo_path": "Superhero/code.py", "max_stars_repo_name": "omkarmali/dsmp-pre-work", "max_stars_repo_head_hexsha": "7032b0af8a8571a638915ac88a9b9760814aa25c", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
Im currently a college student attending school outside of Dtown. I was born and raised in Davis. I have traveled a fair amount. I like animals, swimming/exercise, video games, seeing new places, and meeting new people. 20110309 08:19:26 nbsp Welcome to the Wiki! Users/TomGarberson
{"hexsha": "bc07c14b3e7b1e8e9a54b7ef55d36da2dfd3074b", "size": 290, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/IanBurau.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
""" This module contains the functions that are defined throughout the episodes so that they can be imported as needed (especially between days of the workshop). """ import numpy as np from matplotlib import pyplot as plt import astropy.units as u from astropy.coordinates import SkyCoord from gala.coordinates import G...
{"hexsha": "18f4679cc3aae8fa43ced99d2f4b4a1d94c405c6", "size": 3572, "ext": "py", "lang": "Python", "max_stars_repo_path": "student_download/episode_functions.py", "max_stars_repo_name": "carpentries-incubator/astronomy-python", "max_stars_repo_head_hexsha": "121a2dcebe2608b41e892930573cbf5ac97b4163", "max_stars_repo_l...
cc ------------ dpmjet3.4 - authors: S.Roesler, R.Engel, J.Ranft ------- cc -------- phojet1.12-40 - authors: S.Roesler, R.Engel, J.Ranft ------- cc - oct'13 ------- cc ----------- pythia-6.4 - authors: Torbjorn Sjostrand, Lund'10 ------- cc -------------------------...
{"hexsha": "0902fdab3f6f12cec834e88ca5d08094116f5a63", "size": 12052, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/pythia/pyct5l.f", "max_stars_repo_name": "pzhristov/DPMJET", "max_stars_repo_head_hexsha": "946e001290ca5ece608d7e5d1bfc7311cda7ebaa", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_...
__copyright__ = "Copyright (C) 2019 Zachary J Weiner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
{"hexsha": "2ad647a5d072e2c455d563488384203eee76f206", "size": 7257, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/test_step.py", "max_stars_repo_name": "zachjweiner/pystella", "max_stars_repo_head_hexsha": "2d994d1b9f3d2a39a41bbb821fa37fafec699e0c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
module Config Tv = Float64 end
{"hexsha": "132d679372f833c10c30bde1868a31164d894271", "size": 33, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/config.jl", "max_stars_repo_name": "ooreilly/sbpjl", "max_stars_repo_head_hexsha": "739883b9f4a752a63e6363a084e8db87251852b1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_stars...
import numpy as np try: import mc except Exception: pass import cv2 import os from PIL import Image import torch from torch.utils.data import Dataset import torchvision.transforms as transforms import utils from . import reader import inference as infer class SupCompDataset(Dataset): def __init__(self, ...
{"hexsha": "56ec2de47dcd400735a9406b7886893b18101d3a", "size": 9943, "ext": "py", "lang": "Python", "max_stars_repo_path": "datasets/supervised_dataset.py", "max_stars_repo_name": "briana-jin-zhang/spatial-segmentation", "max_stars_repo_head_hexsha": "1e9716d71692eebd5794f9129b833315625661fc", "max_stars_repo_licenses"...
# Training tuples generation for Mulran dataset. import numpy as np import argparse import tqdm import pickle import os from datasets.mulran.mulran_raw import MulranSequences from datasets.base_datasets import TrainingTuple from datasets.mulran.utils import relative_pose from misc.point_clouds import icp DEBUG = Fal...
{"hexsha": "e98a0b2164e7edd5a6f354dbac2264f6533bab67", "size": 5833, "ext": "py", "lang": "Python", "max_stars_repo_path": "datasets/mulran/generate_training_tuples.py", "max_stars_repo_name": "jac99/Egonn", "max_stars_repo_head_hexsha": "075e00368a1676df741a35f42f6f38497da9d58f", "max_stars_repo_licenses": ["MIT"], "m...
[STATEMENT] lemma fun_or_eq_refl [intro]: "reflp (\<lambda>x y. f x y \<or> x = y)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. reflp (\<lambda>x y. f x y \<or> x = y) [PROOF STEP] by (simp add: reflpI)
{"llama_tokens": 100, "file": "Safe_OCL_OCL_Types", "length": 1}
// Copyright (c) 2006, Giovanni P. Deretta // // This code may be used under either of the following two licences: // // 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 restric...
{"hexsha": "e08323af3a221a48d408560b1925c706f35a660a", "size": 12663, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "boost/coroutine/detail/context_base.hpp", "max_stars_repo_name": "erikfrey/coroutine", "max_stars_repo_head_hexsha": "fe1b9e12f96e320446da1ef49015955162edb17f", "max_stars_repo_licenses": ["BSL-1.0...
* SB08ED EXAMPLE PROGRAM TEXT * Copyright (c) 2002-2020 NICONET e.V. * * .. Parameters .. INTEGER NIN, NOUT PARAMETER ( NIN = 5, NOUT = 6 ) INTEGER NMAX, MMAX, PMAX PARAMETER ( NMAX = 20, MMAX = 20, PMAX = 20 ) INTEGER MPMAX PARAME...
{"hexsha": "d55bdc3839219a0b2c0ccbe5ec8adfcf01db46d2", "size": 4765, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "examples/TSB08ED.f", "max_stars_repo_name": "bnavigator/SLICOT-Reference", "max_stars_repo_head_hexsha": "7b96b6470ee0eaf75519a612d15d5e3e2857407d", "max_stars_repo_licenses": ["BSD-3-Clause"], "m...
import pickle import numpy as np import os import scipy.sparse as sp import torch from scipy.sparse import linalg from Utils import graphTools from Utils import dataTools from Utils.CRASH_loader import * import ipdb from tqdm import tqdm class DataLoader(object): def __init__(self, xs, ys, batch_size, pad_with_la...
{"hexsha": "d32d18182d10787bb9c2d47e3c10def6c73c2c29", "size": 21859, "ext": "py", "lang": "Python", "max_stars_repo_path": "Utils/util.py", "max_stars_repo_name": "sklin93/Graph-WaveNet", "max_stars_repo_head_hexsha": "8c60daf78b6e5bc8ad77c12197dddfc78c486482", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
import sys, argparse, logging, time, json, random, multiprocessing from timeit import default_timer as timer from datetime import datetime import numpy as np import pandas as pd from models import Job from utils.distributions import heavy_tail_jobs_distribution from utils.weights import weights_for from utils.helpers...
{"hexsha": "4e5baf5a8974af5330eefcdea5dce8b340338538", "size": 5906, "ext": "py", "lang": "Python", "max_stars_repo_path": "simulations/simulate.py", "max_stars_repo_name": "danibachar/Kube-Load-Balancing", "max_stars_repo_head_hexsha": "8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491", "max_stars_repo_licenses": ["MIT"], "ma...
@doc raw""" PiecewisePolynomialKernel(; degree::Int=0, dim::Int) PiecewisePolynomialKernel{degree}(dim::Int) Piecewise polynomial kernel of degree `degree` for inputs of dimension `dim` with support in the unit ball. # Definition For inputs ``x, x' \in \mathbb{R}^d`` of dimension ``d``, the piecewise polynom...
{"hexsha": "8969f8267545691544611f9983aca68fa40892dc", "size": 3086, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/basekernels/piecewisepolynomial.jl", "max_stars_repo_name": "simonschoelly/KernelFunctions.jl", "max_stars_repo_head_hexsha": "600df21de4465c50a0bb73be344a9bf95e6212f6", "max_stars_repo_license...
from typing import List import numpy as np import pandas as pd class CategoryLabels: def __init__(self, cols: List[str]): self.cols = cols def fit_transform(self, X: pd.DataFrame, y:pd.Series = None): for col in self.cols: X[col] = X[col].astype("str") X[col] = X[col]...
{"hexsha": "3b682ceb9ecabbca84020236fe4af27b9843a927", "size": 1430, "ext": "py", "lang": "Python", "max_stars_repo_path": "autoseries/code_submission/encoders.py", "max_stars_repo_name": "PetricaR/AutoSeries", "max_stars_repo_head_hexsha": "d60b583ad7fa5227e36e0c5cbfca40156f478e25", "max_stars_repo_licenses": ["MIT"],...
c $Id: inputs.f,v 1.1 2012/11/29 21:00:08 jwebb Exp $ c include file for data from the input subroutine integer nevents,spityp(2),prspflg integer trspflg,spiso3(2),outsteps,bflag,srtflag,efuncflag integer nsrt,npb,firstev real*8 srtmin,srtmax,pbeam,betann,betatar,betapro real*8 pbmin...
{"hexsha": "5f3bc17bdb3564a271fcb695741ad4cd5d7be2cd", "size": 1350, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "UrQMD3_3_1/unedited_src/inputs.f", "max_stars_repo_name": "klendathu2k/StarGenerator", "max_stars_repo_head_hexsha": "7dd407c41d4eea059ca96ded80d30bda0bc014a4", "max_stars_repo_licenses": ["MIT"],...
import cv2 as cv import numpy as np from time import sleep import keyboard class CapstoneDetector: def __init__(self, filename) -> None: self.image = cv.imread(filename) self.hls = None def image_prep(self): resized = cv.resize(self.image, (800,400)) self.image = resized ...
{"hexsha": "cd74167eac5029e4a61cf3833f4d42960c322f6d", "size": 2603, "ext": "py", "lang": "Python", "max_stars_repo_path": "freight_frenzy/captsone_detector.py", "max_stars_repo_name": "ftc-team-8813/robot-client", "max_stars_repo_head_hexsha": "21e925c4bfc80af7af78e8d40cd66e5008cc6824", "max_stars_repo_licenses": ["MI...
struct Console end function print(msg::Console) print(msg) end
{"hexsha": "b9003ee81b4313c123b1941b9643885b0469184a", "size": 68, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "tcod/console.jl", "max_stars_repo_name": "aole/RogueJ", "max_stars_repo_head_hexsha": "668b1b9b92b170f497a491705417185eb73d6ed8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_sta...
/** * @date Thu July 19 12:27:15 2012 +0200 * @author Laurent El Shafey <Laurent.El-Shafey@idiap.ch> * * @brief This file provides a class to process images with a weighted * Gaussian kernel (Used by the Self Quotient Image) * * Copyright (C) Idiap Research Institute, Martigny, Switzerland */ #include <...
{"hexsha": "1d547cd952eec672f186b3fdf073ec4de194f7ca", "size": 6026, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "bob/ip/base/cpp/WeightedGaussian.cpp", "max_stars_repo_name": "bioidiap/bob.ip.base", "max_stars_repo_head_hexsha": "d0b4bff89390fa4ac22f4e16bf1e3aaf1d00d926", "max_stars_repo_licenses": ["BSD-3-Cla...
import os; os.environ['OMP_NUM_THREADS'] = '3' from sklearn.ensemble import ExtraTreesRegressor import nltk nltk.data.path.append("/media/sayantan/Personal/nltk_data") from nltk.stem.snowball import RussianStemmer from nltk.corpus import stopwords from sklearn.feature_extraction.text import TfidfVectorizer as Tfidf fro...
{"hexsha": "211ec5b7b349cddce1c0d4134fc71fbbda2ee156", "size": 10148, "ext": "py", "lang": "Python", "max_stars_repo_path": "kaggle-avito-text/lgb_tfidf_bestFtrs(best+addFtr).py", "max_stars_repo_name": "rahasayantan/Work-For-Reference", "max_stars_repo_head_hexsha": "e052da538df84034ec5a0fe3b19c4287de307286", "max_sta...
(* Copyright (C) 2017 M.A.L. Marques This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. *) (* Equation (7) from the paper *) tpss_p := x -> X2S^2*x^2: tpss_z := (x, t) -> ...
{"hexsha": "60aed4eab21aa5166f3b9c8f199cbc37c4393346", "size": 1078, "ext": "mpl", "lang": "Maple", "max_stars_repo_path": "libxc-5.1.6/maple/tpss_x.mpl", "max_stars_repo_name": "pwang234/lsms", "max_stars_repo_head_hexsha": "6044153b6138512093e457bdc0c15c699c831778", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_s...
# Load packages using Dojo using Plots using Random using MeshCat # Open visualizer vis= Visualizer() open(vis) # Include new files include( "../utils.jl") mech = get_mechanism(:box, timestep=0.05, g=-9.81, friction_coefficient=0.2, radius=0.00, side=0.50, mode=:box); initialize!(mech, :box, x=[0,-1,1.], v=[0,2,1.],...
{"hexsha": "e80f05625a6c7a8859ebeb15440731aa99415dac", "size": 7027, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "examples/system_identification/synthetic_examples/box.jl", "max_stars_repo_name": "mcx/Dojo.jl", "max_stars_repo_head_hexsha": "0d54f76c3458f2eb979af0feb368c9c7b270100e", "max_stars_repo_licenses":...
open import Relation.Binary.Core using (Rel) module GGT.Definitions {a b ℓ₁ ℓ₂} {G : Set a} -- The underlying group carrier {Ω : Set b} -- The underlying space (_≈_ : Rel G ℓ₁) -- The underlying group equality (_≋_ : Rel Ω ℓ₂) -- The underlying space equality where open import Level open import ...
{"hexsha": "7243b15d1e3c55e77a0f3a8c3d3e6d7d4c61e5ca", "size": 888, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "src/ggt/Definitions.agda", "max_stars_repo_name": "zampino/ggt", "max_stars_repo_head_hexsha": "e2d6b5f9bea15dd67817bf67e273f6b9a14335af", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, ...
import numpy as np #Kalman filtering code def gaussian_linear_transform(mean,cov,A,b): """Given a prior x~N(mean,cov), returns the mean and covariance of the variate y=A*x+b. """ ymean = np.dot(A,mean)+b ycov = np.dot(A,np.dot(cov,A.T)) return (ymean,ycov) def kalman_filter_predict(prior_mean...
{"hexsha": "da0042fd4b8bfc8373846121ff4f15b61336a5c3", "size": 2311, "ext": "py", "lang": "Python", "max_stars_repo_path": "figures/perception/kalman.py", "max_stars_repo_name": "patricknaughton01/RoboticSystemsBook", "max_stars_repo_head_hexsha": "0fc67cbccee0832b5f9b00d848c55697fa69bedf", "max_stars_repo_licenses": [...
module Extended.FunRetRec where open import Function open import Data.Nat open import Data.Nat.Properties.Simple open import Relation.Binary.PropositionalEquality hiding ([_]) open import Data.String open import Data.Product open import Data.Bool renaming (not to bnot) hiding (if_then_else_) open import Relation.Nul...
{"hexsha": "d724e9ea5b791ed74ea1d879d7605cf9eb3b1694", "size": 18361, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "Extended/FunRetRec.agda", "max_stars_repo_name": "AndrasKovacs/SemanticsWithApplications", "max_stars_repo_head_hexsha": "05200d60b4a4b2c6fa37806ced9247055d24db94", "max_stars_repo_licenses": ["M...
/* * Copyright 2020, Sebastian Pütz * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the foll...
{"hexsha": "b72ee5a78c8076346c5d8cf2b8ddcd7b6f73470b", "size": 42254, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "mesh_map/src/mesh_map.cpp", "max_stars_repo_name": "nickvaras/mesh_navigation", "max_stars_repo_head_hexsha": "2d231ce781ab7a8aec73c0c1129ad67c5ebcc005", "max_stars_repo_licenses": ["BSD-3-Clause"]...
import pandas as pd from sklearn.tree import DecisionTreeRegressor import os import numpy as np data_folder = "../Data/" familys = [ 'spear', 'sac', 'x264', 'storm-obj1', 'storm-obj2', 'sqlite',] perc = 0.01 threshold = 4 collector = {} for family in familys: collector[family] = {} files = [data_folder + f...
{"hexsha": "32e41ec704ce296917e97217a50232f65956de90", "size": 1480, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/Explanation/why.py", "max_stars_repo_name": "ai-se/bellwether-configuration", "max_stars_repo_head_hexsha": "921ec881b17f29ed73bdb5b4510c2a30a6d23ef4", "max_stars_repo_licenses": ["Unlicense"]...
import tensorflow as tf import numpy as np from .layers import vlad_legacy from .base_model import BaseModel class NetvladOriginal(BaseModel): """Model implementation from https://github.com/uzh-rpg/netvlad_tf_open """ input_spec = { 'image': {'shape': [None, None, None, 3], 'type': tf.float3...
{"hexsha": "366b974dfcee37d979c76e42e4ae2bc88aae7d84", "size": 2870, "ext": "py", "lang": "Python", "max_stars_repo_path": "retrievalnet/retrievalnet/models/netvlad_original.py", "max_stars_repo_name": "xuzhuang1996/hierarchical_loc", "max_stars_repo_head_hexsha": "807c32d9ed823f01a3fe5523df85201fe7e573f1", "max_stars_...
"Load data from file." function loaddata(file::String) return readlines(file) end "Check password according to sled rental policy." function checksled(low::Int, up::Int, char::Char, password::AbstractString) return count(string(char), password) ∈ low:up end "Check password according to toboggan rental policy....
{"hexsha": "59e676f9bf4425908270d183a356008bc39fccd5", "size": 1104, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "2020/julia/day_02.jl", "max_stars_repo_name": "jsappl/advent-of-code-2020", "max_stars_repo_head_hexsha": "6403d0d05e554d974bec8d29b36690ebc09c26c7", "max_stars_repo_licenses": ["MIT"], "max_stars_...
module AddressEvent """ Event timestamp in us. """ function event_time end """ Raw event coordinates (x,y). """ function event_coord end """ Event location (i,j) in standard image coordinates """ function event_location end """ Event polarity. """ function event_pol end export event_time, event_coord, event_pol, ...
{"hexsha": "905d816fa8d532ea1a266b6767892f6a9fe1d4f7", "size": 2851, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/AddressEvent.jl", "max_stars_repo_name": "damiendr/AddressEvent.jl", "max_stars_repo_head_hexsha": "eb4718a8e7232c71c836a66b3ae14ff22271f94c", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
from pdb import set_trace as T import numpy as np import functools import gym from pettingzoo import ParallelEnv import nmmo from nmmo import entity, core from nmmo.lib import log from nmmo.infrastructure import DataType class Env(ParallelEnv): '''Environment wrapper for Neural MMO using the Parallel PettingZoo...
{"hexsha": "609ae2a2d22de67c9e6f08390d641f7dca37295d", "size": 16802, "ext": "py", "lang": "Python", "max_stars_repo_path": "nmmo/core/env.py", "max_stars_repo_name": "jsuarez5341/neural-mmo", "max_stars_repo_head_hexsha": "0828982e8a30641986fdd947ab82f34c008fafde", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...