text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
# This source code is part of the Hydride package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. import pytest import numpy as np import biotite.structure.info as info import hydride @pytest.mark.parametrize( "heavy_atom_name, ref_hydrogen_names", [ ...
{"hexsha": "127f8673c42c9cf572072e139d0360497e3b92b1", "size": 2026, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_names.py", "max_stars_repo_name": "biotite-dev/hydride", "max_stars_repo_head_hexsha": "4b5a1c4348cf8f9b0878c1480a09ffcf101cba48", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_star...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /** * Copyright (c) 2011-2015 Regents of the University of California. * * This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and * contributors. * * ndnSIM is free software: you can redistribute it and/or modify it under...
{"hexsha": "f784534b89bc09e4bb8e5deee9bbaffff08b11ec", "size": 7017, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "extensions/tracers/ndn-l3-packet-tracer.cpp", "max_stars_repo_name": "phylib/pips-scenario", "max_stars_repo_head_hexsha": "d152ae492a2bdf63be1340c1c9da91069a0460d9", "max_stars_repo_licenses": ["MI...
""" Functions for Initializing and Reading data from IMU ----------------------------------------------------- MIT LICENSE """ import smbus import logging import math import numpy as np bus = smbus.SMBus(1) # LSM9DS0 Locations MAG_ADDRESS = 0x1E ACC_ADDRESS = 0x1E GYR_ADDRESS = 0x6A # LSM9DS0 Gyro Registers WHO_AM_I...
{"hexsha": "45b1057d4cccefe042fdd944bde124df88906e50", "size": 7051, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/IMU.py", "max_stars_repo_name": "djcopley/Tiltometer", "max_stars_repo_head_hexsha": "501b0df01ed53854b736a974d6265546cba3175b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "max_...
import torch import torch.distributions as D import torch.nn as nn from torch.distributions.utils import logits_to_probs, probs_to_logits import math import numpy as np from sklearn.mixture import GaussianMixture import abc from utils import softplus_inverse_numpy # build_fc_network, build_cnn_network, softplus_inv...
{"hexsha": "71276e63e7ddc6334b369a76cf106087439d5a5b", "size": 35821, "ext": "py", "lang": "Python", "max_stars_repo_path": "mfcvae.py", "max_stars_repo_name": "NingMiao/mfcvae", "max_stars_repo_head_hexsha": "6c6b83bd05fdc618db3976da5faf54838af7e334", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 20, "max_sta...
import cv2 import numpy as np import glob import matplotlib.pyplot as plt yellow_HSV_th_min = np.array([0, 70, 70]) yellow_HSV_th_max = np.array([50, 255, 255]) def thresh_frame_in_HSV(frame, min_values, max_values, verbose=False): HSV = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) min_th_ok = np.all(HSV > min_v...
{"hexsha": "fec5b54d66eaa211d3402e45152f0e534eeb04f6", "size": 1770, "ext": "py", "lang": "Python", "max_stars_repo_path": "Simulators/Microsoft Airsim Simulator/LineDetection/binarization_process.py", "max_stars_repo_name": "enesdoruk/Autonom-Vehicles-Projects", "max_stars_repo_head_hexsha": "0cf4de4fe10eb0f5c886eca8f...
/*! \class FMDaryHeap \brief Wrap for the Boost Fibonacci Heap class to be used in the FM algorithms. Ready to be used with FMCell and derived types. Copyright (C) 2014 Javier V. Gomez and Jose Pardeiro www.javiervgomez.com This program is free software: you can redistribute it and/or modify ...
{"hexsha": "d6c0bef5d730a47bf03702a4d66404605c902648", "size": 3594, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "Btraj/third_party/fast_methods/fm/fmdata/fmfibheap.hpp", "max_stars_repo_name": "JCrime/Park_Inspection", "max_stars_repo_head_hexsha": "524d8286424e363a4bd3d77cf10df8f7eb3c3c6f", "max_stars_repo_li...
/** * Copyright (c) 2018 Melown Technologies SE * * 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 list of conditions and the f...
{"hexsha": "9cf5f6106a79bc082e2d76c70a284ae4a362a956", "size": 4521, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "pysupport/package.hpp", "max_stars_repo_name": "Melown/libpysupport", "max_stars_repo_head_hexsha": "f72cfb6724ae34b2d8873d2f354d7a14f46e09cb", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_star...
# -*- coding: utf-8 -*- import json import logging import math import time from collections import OrderedDict import pandas as pd from django.core.files.base import ContentFile from django.core.files.storage import default_storage from django.db.models import Avg, FloatField, Func, Max, Min, Sum from django.db.models...
{"hexsha": "6e62f3e5b0c4258b85f66799d1b90f73709d49e1", "size": 50090, "ext": "py", "lang": "Python", "max_stars_repo_path": "analyzer/views/analyzer_views.py", "max_stars_repo_name": "yangjourney/JMeter-Control-Center", "max_stars_repo_head_hexsha": "2269f8bd25d76e1fe041bb9d511e97b0741975b1", "max_stars_repo_licenses":...
@testset "gaussian" begin seed!(42) @testset "Likelihood" begin σ² = 1e-3 l = GaussianLikelihood(σ²) f = 0.5 y = 0.2 @test AGP.noise(l) == σ² @test l(y, f) == pdf(Normal(f, sqrt(σ²)), y) @test loglikelihood(l, y, f) == logpdf(Normal(f, sqrt(σ²)), y) ...
{"hexsha": "2bed36b3783d61b07349ea86a13192d728f73d56", "size": 3967, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/likelihood/gaussian.jl", "max_stars_repo_name": "pitmonticone/AugmentedGaussianProcesses.jl", "max_stars_repo_head_hexsha": "8f45d3b607d7777e77b3392fed7f950261f6f715", "max_stars_repo_licenses...
# ---------------------------------------------------------------------------- # This code supplements the following paper: # # "Design of enzymatic cascade reactors through multi-objective # dynamic optimization" # # Authors: Leandros Paschalidis, Barbara Beer, Samuel Sutiono, Volker Sieber, ...
{"hexsha": "93118132b8b39f8fece00e84768a55233bf1387f", "size": 6547, "ext": "py", "lang": "Python", "max_stars_repo_path": "Simulation_CascadeMOO.py", "max_stars_repo_name": "TUM-CS-CTV/CascadeMOO", "max_stars_repo_head_hexsha": "27f6158f14ae8d19d5324ccaffca26df954f466b", "max_stars_repo_licenses": ["MIT"], "max_stars_...
import cv2 # for capturing videos import math # for mathematical operations import matplotlib.pyplot as plt # for plotting the images import pandas as pd from keras.preprocessing import image # for preprocessing the images import numpy as np # for mathematical operations from keras.utils import np_utils f...
{"hexsha": "b195e66299031492152945685644d9ac6596a64e", "size": 1865, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/util/VideoLoader.py", "max_stars_repo_name": "OlavH96/Master", "max_stars_repo_head_hexsha": "f98476063e579b7b2a80b81a2c0ca4005f5fce80", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
""" Add some common methods for Machine Learning """ from numpy import power, sqrt, log from numpy import sum as np_sum from pandas import concat, DataFrame from sklearn.decomposition import PCA from sklearn.preprocessing import OneHotEncoder, LabelEncoder ALMOST_ZERO = 0.000001 def euclidean_distance(a, b):...
{"hexsha": "8bfc6907a9d083a9769847610988912297aa17b5", "size": 5070, "ext": "py", "lang": "Python", "max_stars_repo_path": "minecraft_learns/common.py", "max_stars_repo_name": "Nathan-Nesbitt/Minecraft_Learns", "max_stars_repo_head_hexsha": "089dd51c9514fa94b24630a034c257306722f64b", "max_stars_repo_licenses": ["MIT"],...
\chapter{Phylogenetic and functional dissimilarity does not increase during temporal heathland succession} \chaptermark{Phylogenetic and functional dissimilarity during succession} \graphicspath{{Chapter4/Figs}} \begin{center} {\large Andrew D. Letten, David A. Keith and Mark G. Tozer} \small{\textit{\textbf{Pro...
{"hexsha": "4389e1575e020ed5d138daeef98fbf44b9ba1cbd", "size": 42440, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Chapter4/chapter4.tex", "max_stars_repo_name": "andrewletten/LettenPhdThesis2015", "max_stars_repo_head_hexsha": "9d13275747f193f3d73ff18dc79113d3fd968af1", "max_stars_repo_licenses": ["MIT"], "max...
\documentclass[main.tex]{subfiles} \begin{document} \section*{Tue Dec 10 2019} We continue with the evolution of a \(15 M_{\odot}\) star. Due to the mechanism of neutrino production described last lecture, after a few tens of thousands of years after the start of carbon burning we have an iron core, since the burnin...
{"hexsha": "2f76387e850e630f04f3595d6dd31f50ed4b1a59", "size": 19718, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "ap_first_semester/advanced_astrophysics/10dec.tex", "max_stars_repo_name": "jacopok/notes", "max_stars_repo_head_hexsha": "805ebe1be49bbd14c6b46b24055f9fc7d1cd2586", "max_stars_repo_licenses": ["Ap...
[STATEMENT] lemma arr_eqI: assumes "par f g" and "t \<in> f" and "u \<in> g" and "\<^bold>\<lfloor>t\<^bold>\<rfloor> = \<^bold>\<lfloor>u\<^bold>\<rfloor>" shows "f = g" [PROOF STATE] proof (prove) goal (1 subgoal): 1. f = g [PROOF STEP] proof - [PROOF STATE] proof (state) goal (1 subgoal): 1. f = g [PROOF S...
{"llama_tokens": 1316, "file": "MonoidalCategory_FreeMonoidalCategory", "length": 15}
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- import os.path as osp import numpy as np import scipy.sparse import json from glo...
{"hexsha": "ba34c5d8522b65b7bb622fb3733526c4404e6d4d", "size": 5899, "ext": "py", "lang": "Python", "max_stars_repo_path": "faster-rcnn.pytorch/lib/build/lib.linux-x86_64-3.6/datasets/carla.py", "max_stars_repo_name": "zhangyanyu0722/EC523_Project", "max_stars_repo_head_hexsha": "72673713bb798023e82ccc257e8c05459c34a4b...
module TestExamples1DStructured using Test using Trixi include("test_trixi.jl") # pathof(Trixi) returns /path/to/Trixi/src/Trixi.jl, dirname gives the parent directory EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples", "structured_1d_dgsem") @testset "Structured Mesh" begin @trixi_testset "e...
{"hexsha": "5dd7341080f8bb627b8879df9cf9e377683eac01", "size": 1387, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/test_examples_1d_structured.jl", "max_stars_repo_name": "atiebing/Trixi.jl", "max_stars_repo_head_hexsha": "63ba0f9799a7cf6712af3f8e9731d54eeb7a3c3e", "max_stars_repo_licenses": ["MIT"], "max_...
""" ================ Confusion matrix ================ Example of confusion matrix usage to evaluate the quality of the output of a classifier on the iris data set. The diagonal elements represent the number of points for which the predicted label is equal to the true label, while off-diagonal elements are those that ...
{"hexsha": "24c7515697afaaad9546c1df1e8aebc984ce3a9d", "size": 3806, "ext": "py", "lang": "Python", "max_stars_repo_path": "plot_confusion_matrix.py", "max_stars_repo_name": "zhaoaite/SSRM", "max_stars_repo_head_hexsha": "95aaf263132c5babd264b3aec1ef928b3dbf7c0c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
section {*two\_elements*} theory two_elements imports miscellaneous begin declare [[ hypsubst_thin = false ]] datatype ('a, 'b) DT_two_elements = teA "'a" | teB "'b" declare [[ hypsubst_thin = true ]] primrec setA :: "(('a, 'b) DT_two_elements) list \<Rightarrow> 'a set" where "setA [] = {}" | "setA ...
{"author": "ControllerSynthesis", "repo": "Isabelle", "sha": "fc776edec292363e49785e5d3a752d9f9cfcf1c9", "save_path": "github-repos/isabelle/ControllerSynthesis-Isabelle", "path": "github-repos/isabelle/ControllerSynthesis-Isabelle/Isabelle-fc776edec292363e49785e5d3a752d9f9cfcf1c9/PRJ_01_02/two_elements.thy"}
\input preamble.tex \begin{document} \preprint{APS/123-QED} \title{Fixed storage mechanizm for dynamic gratings in photorefractive crystals} \author{Elena Mokrushina} \altaffiliation{Ioffe Physicotechnical Institute, Russian Academy of Sciences, Politekhnicheskaya ul. 26, St. Petersburg, 194021, Russia} \...
{"hexsha": "c2cae0f5b71a45000f242f9983142ef509857543", "size": 1252, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "old/dpcm/physrev/main.tex", "max_stars_repo_name": "ivanmurashko/articles", "max_stars_repo_head_hexsha": "522db3ad21e96084490acd39a146a335763e5beb", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
using SOtoZulip using SOtoZulip: prune_questions using Underscores using LoggingFacilities, Logging include("../configuration.jl") logger = TimestampTransformerLogger(current_logger(), BeginningMessageLocation(); format = "yyyy-mm-dd HH:MM:SS") global_logger(logger) glob...
{"hexsha": "e88cb95601332ee8d59fd60c38fc052de3ca5d3e", "size": 502, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "scripts/cleanup.jl", "max_stars_repo_name": "Arkoniak/SOtoZulip.jl", "max_stars_repo_head_hexsha": "ad4ff375f97d85255a7c3c38182edf4ef5aefc95", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import imgaug as ia import imgaug.augmenters as iaa import torch import os import time import glob import numpy as np import matplotlib.pyplot as plt import cv2 import matplotlib from PIL import Image from progressbar import ProgressBar is_HAL = len(glob.glob('/home/shared/imagenet/raw/val_nodir/')) if not is_HAL: ...
{"hexsha": "5b215b2bf5c66468d6591a2e40d1c8e3973c5bfb", "size": 8313, "ext": "py", "lang": "Python", "max_stars_repo_path": "img_utils.py", "max_stars_repo_name": "D0048/RMSynthesis", "max_stars_repo_head_hexsha": "951969f72f2e9d8177690d5b15d42d889d694d66", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
C C $Id: gsstm.f,v 1.4 2008-07-27 00:21:02 haley Exp $ C C Copyright (C) 2000 C University Corporation for Atmospheric Research C All Rights Reserved C C The use of this Software is governed by a License Agreemen...
{"hexsha": "63a0463b9c0b3992582f7fa393ae8690394a9c48", "size": 1165, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ncarg2d/src/libncarg_gks/awi/gsstm.f", "max_stars_repo_name": "tenomoto/ncl", "max_stars_repo_head_hexsha": "a87114a689a1566e9aa03d85bcf6dc7325b47633", "max_stars_repo_licenses": ["Apache-2.0"], "...
from copy import copy from warnings import warn import numpy as np from ..utils import check_required_aesthetics, groupby_apply from ..utils import is_string, Registry from ..exceptions import PlotnineError, PlotnineWarning class position(metaclass=Registry): """Base class for all positions""" __base__ = Tr...
{"hexsha": "53aac9395a48fa2487dfb55343880583bfbcebcd", "size": 7563, "ext": "py", "lang": "Python", "max_stars_repo_path": "venv/Lib/site-packages/plotnine/positions/position.py", "max_stars_repo_name": "EkremBayar/bayar", "max_stars_repo_head_hexsha": "aad1a32044da671d0b4f11908416044753360b39", "max_stars_repo_license...
"""Classes to parse attributes from frac schedules with uncertain shape and formatting.""" from __future__ import annotations # self return type annotations from typing import Any import inspect import logging import os import re from datetime import datetime from functools import partial from typing import Callable ...
{"hexsha": "abbc3b43f33ed1f6eddd255006bfb12e1df375d6", "size": 30751, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/fsec/parser.py", "max_stars_repo_name": "HiggsHydra/permian-frac-exchange", "max_stars_repo_head_hexsha": "1dd1e409e5389373590c7d3780a54cd9f12d1166", "max_stars_repo_licenses": ["MIT"], "max_...
function m = uplus(k) % kronMatrix/uplus % % +k = k % m = k;
{"author": "jnagy1", "repo": "IRtools", "sha": "040ef13d27873b6391aedd4ec06c453e1add9066", "save_path": "github-repos/MATLAB/jnagy1-IRtools", "path": "github-repos/MATLAB/jnagy1-IRtools/IRtools-040ef13d27873b6391aedd4ec06c453e1add9066/Extra/prblur_tools/@kronMatrix/uplus.m"}
module Adwin include("./Adwin2.jl") include("./AdwinNaive.jl") end
{"hexsha": "67a4c2219e4f4b9d73a22d097a3966871188b004", "size": 70, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/detectors/Adwin3/Adwin.jl", "max_stars_repo_name": "av-maslov/Recurrency", "max_stars_repo_head_hexsha": "620a34badc66247e348a47b76828ed5a562246c4", "max_stars_repo_licenses": ["MIT"], "max_stars...
""" OPF in DC distribution using SOC Alejandro Garces 18/08/2021 Version 1.0 """ import numpy as np import pandas as pd import cvxpy as cvx " Parametros de la red " # Envio Recibo rkm d pmax grid = [[1, 2, 0.0053, 0.70,0.0], [2, 3, 0.0054, 0.00,0.0], [3, 4, 0.0054, 0.36,0.0], ...
{"hexsha": "a48ee50bb2c3ebfad1dd1f79f76ed5da7e35d3da", "size": 3886, "ext": "py", "lang": "Python", "max_stars_repo_path": "opf_dcdistribution.py", "max_stars_repo_name": "alejandrogarces/SOC_DCDistribution", "max_stars_repo_head_hexsha": "1cbd6de6a67b67bf8bb3a0642fbec74cd7b4c625", "max_stars_repo_licenses": ["MIT"], "...
C @(#)nxt_bufln.f 20.3 2/13/96 c**************************************************************** c File: nxt_bufln c Purpose: Routine to get the next line from a buffer of data c lines separated by linefeed and terminated with null c Author: Jay Coleman Date: 16 Feb 1994 c***********...
{"hexsha": "5932b0521305c8d3bdf77c0cd7999edb05ffe6fe", "size": 2055, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ipf/nxt_bufln.f", "max_stars_repo_name": "mbheinen/bpa-ipf-tsp", "max_stars_repo_head_hexsha": "bf07dd456bb7d40046c37f06bcd36b7207fa6d90", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 14...
from __future__ import print_function, absolute_import import pandas as pd import numpy as np ''' Regression Finder ''' def find_optimal_regressor(X, y): scores = map(get_regressor_score_, regressors) optimal = max(scores, key=lambda s: s.score) print('\n\n\n\nOptimal Regressior: %s Score: {0:.3f} ...
{"hexsha": "850fcd5097a08b422b7b9d9db70dbc3706f3a7cb", "size": 1750, "ext": "py", "lang": "Python", "max_stars_repo_path": "pml/auto/regressor_finder.py", "max_stars_repo_name": "gatapia/py_ml_utils", "max_stars_repo_head_hexsha": "844d8b62a7c5cc0a80f4f62c0bfda092aac57ade", "max_stars_repo_licenses": ["MIT"], "max_star...
import os,datetime import torch import torch.nn as nn import numpy as np from ..model.zoo import * from ..model.norm import patch_replication_callback from ..model.utils import Monitor, Criterion def get_model(args, exact=True, size_match=True): MODEL_MAP = {'unet_residual_3d': unet_residual_3d, ...
{"hexsha": "12ade997dd623c7f54e96cfe68d8103bcf661376", "size": 3390, "ext": "py", "lang": "Python", "max_stars_repo_path": "connectomics/io/io_model.py", "max_stars_repo_name": "donglaiw/pytorch_connectomics", "max_stars_repo_head_hexsha": "c79a3cc82f853a86e98930475f6355d0022916dd", "max_stars_repo_licenses": ["MIT"], ...
import random import io import urllib, base64 import pandas as pd import numpy as np import matplotlib.pyplot as plt import base64 numPts = 50 x = [random.random() for n in range(numPts)] y = [random.random() for n in range(numPts)] sz = 2 ** (10 * np.random.rand(numPts)) # plt.figure(figsize=(32, 18)) plt.scatter(x...
{"hexsha": "71cbc2fd0b8e85e4e3418682824f791cf89c3579", "size": 535, "ext": "py", "lang": "Python", "max_stars_repo_path": "app/hello_world/scripts/pot.py", "max_stars_repo_name": "sappachok/django-anaconda", "max_stars_repo_head_hexsha": "1ffd33ded759f622b6db23a3550a898b62350403", "max_stars_repo_licenses": ["MIT"], "m...
from __future__ import absolute_import import numpy.random as npr from .numpy_wrapper import wrap_namespace wrap_namespace(npr.__dict__, globals())
{"hexsha": "de045b58011fffc6cc5f3a26ae7d773046b17479", "size": 149, "ext": "py", "lang": "Python", "max_stars_repo_path": "autograd/numpy/random.py", "max_stars_repo_name": "gautam1858/autograd", "max_stars_repo_head_hexsha": "8d7acaf79e33139b4ebfedf7da0602a965b47c63", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
(**************************************************************************) (* *) (* CoqParam *) (* Copyright (C) 2012 *) (* ...
{"author": "larsr", "repo": "coqparam", "sha": "0426a6ffc3eacaf8f2261b89ccf1f0b1241b3909", "save_path": "github-repos/coq/larsr-coqparam", "path": "github-repos/coq/larsr-coqparam/coqparam-0426a6ffc3eacaf8f2261b89ccf1f0b1241b3909/Examples/Example.v"}
import unittest import os import numpy as np from pathlib import Path from collections import Counter from unittest.mock import patch from sosed.data_processing import * class ProcessedDataTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.actual_index = [0, 1] cls.actual_docwor...
{"hexsha": "f7e9bfe94e2a41cdc3ad3f95d5f473bb51e99505", "size": 6418, "ext": "py", "lang": "Python", "max_stars_repo_path": "sosed_test/test_data_processing.py", "max_stars_repo_name": "salkaevruslan/sosed", "max_stars_repo_head_hexsha": "fa948fd339ff3ff08eea1ca3afb5884e63c6e5f3", "max_stars_repo_licenses": ["Apache-2.0...
[STATEMENT] lemma ivp_unique_solution: assumes "s \<in> S" and ivl: "is_interval (U s)" and "U s \<subseteq> T" and "t \<in> U s" and ivp1: "Y\<^sub>1 \<in> Sols f U S t\<^sub>0 s" and ivp2: "Y\<^sub>2 \<in> Sols f U S t\<^sub>0 s" shows "Y\<^sub>1 t = Y\<^sub>2 t" [PROOF STATE] proof (prove) goal (1 subgoal):...
{"llama_tokens": 5154, "file": "Hybrid_Systems_VCs_HS_ODEs", "length": 30}
#pragma once #include <boost/signals2.hpp> #include <tuple> #include <utility> // Convenience wrapper for boost::signals2::signal. template<typename Signature> class Observer { public: Observer(const Observer&) = delete; Observer& operator=(const Observer&) = delete; Observer() = default; private: template<typen...
{"hexsha": "cef2be27ef37af1030f995d5415bb5ae099613f3", "size": 1204, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "AVWClient/Observer.hpp", "max_stars_repo_name": "Sr173/AVWClient", "max_stars_repo_head_hexsha": "478e1c29b7b0c059d2171c01ad96fffd035c7c9d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
PROGRAM xanneal C driver for routine anneal INTEGER NCITY PARAMETER (NCITY=10) INTEGER i,idum,ii,iorder(NCITY) REAL ran3,x(NCITY),y(NCITY) C create points of sale idum=-111 do 11 i=1,NCITY x(i)=ran3(idum) y(i)=ran3(idum) iorder(i)=i 1...
{"hexsha": "c92ce7006b748ccfefc6c293faf741b74e39ee08", "size": 623, "ext": "for", "lang": "FORTRAN", "max_stars_repo_path": "NR-Functions/Numerical Recipes- Example & Functions/Examples/xanneal.for", "max_stars_repo_name": "DingdingLuan/nrfunctions_fortran", "max_stars_repo_head_hexsha": "37e376dab8d6b99e63f6f1398d0c33...
program rixs_main use m_control, only: myid, nprocs use mpi implicit none integer :: ierror call MPI_INIT(ierror) call MPI_COMM_RANK(MPI_COMM_WORLD, myid, ierror) call MPI_COMM_SIZE(MPI_COMM_WORLD, nprocs, ierror) call MPI_BARRIER(MPI_COMM_WORLD, ierror) call config() c...
{"hexsha": "ead45031780134bc7e7013210c4ab1cc10f353cd", "size": 437, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/rixs_main.f90", "max_stars_repo_name": "danielballan/edrixs", "max_stars_repo_head_hexsha": "57fbd11ba9aaeaa393c3e2f06af41e4e386749e4", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars...
from skimage import transform, color, io import scipy.io as sio import skvideo.io import os import numpy as np import imageio import matplotlib.pyplot as plt import re from skimage import transform, color, io import warnings from tqdm import tqdm import h5py import pickle ########### ### LOADING VIDEOS ### video_dir =...
{"hexsha": "9fca6ae3164c1f405e0388d68761e489189b38e7", "size": 2648, "ext": "py", "lang": "Python", "max_stars_repo_path": "extract_image_features/old_code/audio_extractionUnitTest.py", "max_stars_repo_name": "schen496/auditory-hallucinations", "max_stars_repo_head_hexsha": "31b89df838a9f3c4558c7c3b69dbcd43c7f9de19", "...
!========================================================================== elemental subroutine gsw_entropy_first_derivatives (sa, ct, eta_sa, eta_ct) ! ========================================================================= ! ! Calculates the following two partial derivatives of specific entropy ! (eta) ! (1) ...
{"hexsha": "be54b3a15c6fa59e7e9dd672c5481d1519e45e53", "size": 1806, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "MOM6-interface/MOM6/pkg/GSW-Fortran/toolbox/gsw_entropy_first_derivatives.f90", "max_stars_repo_name": "minsukji/ci-debug", "max_stars_repo_head_hexsha": "3e8bbbe6652b702b61d2896612f6aa8e4aa6c80...
# Define and register smooth functions # These are "smooth" aka differentiable and avoid Gibbs effect # These follow: `offset` + `smooth_wave` * `smooth_step` with zero output for `t < start_time` function smooth_cos(x, δ, f, amplitude, ϕ, offset, start_time) offset + amplitude * cos(2*π*f*(x - start_time) + ϕ) * s...
{"hexsha": "315cb0ff59cd10ed78c5fcc7afb9c1a6a770637e", "size": 9899, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Blocks/sources.jl", "max_stars_repo_name": "ven-k/ModelingToolkitStandardLibrary.jl", "max_stars_repo_head_hexsha": "b99929589ab0341684cb847db643bb3e200cd69d", "max_stars_repo_licenses": ["MIT"...
import argparse import base64 from datetime import datetime import os import shutil import numpy as np import socketio import eventlet import eventlet.wsgi from PIL import Image from flask import Flask from io import BytesIO from keras.models import load_model import h5py from keras import __version__ as keras_versio...
{"hexsha": "510b157d6561488e5f622a02bf53e26342828915", "size": 7263, "ext": "py", "lang": "Python", "max_stars_repo_path": "drive.py", "max_stars_repo_name": "marcin-sielski/CarND-Behavioral-Cloning-P3", "max_stars_repo_head_hexsha": "0b928fa6a7f69b1968f03bee770deba6090ec824", "max_stars_repo_licenses": ["MIT"], "max_s...
[STATEMENT] lemma eucl_of_list3[simp]: "eucl_of_list [a, b, c] = (a, b, c)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. eucl_of_list [a, b, c] = (a, b, c) [PROOF STEP] by (auto simp: eucl_of_list_inner Basis_list_vec_def zero_prod_def Basis_prod_def Basis_list_vec3 Basis_list_R3 intro!: euclidean_eqI[...
{"llama_tokens": 158, "file": "Affine_Arithmetic_Executable_Euclidean_Space", "length": 1}
/* * Copyright (c) 2013, 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": "a62ba2f0cf1b019bd017c71eb52ee6ff8ae97ebc", "size": 29646, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/armadillo/armadillo2_utils/urg_node/src/urg_c_wrapper.cpp", "max_stars_repo_name": "aosbgu/ROSPlan-ExperimentPDDL", "max_stars_repo_head_hexsha": "09de0ba980362606dd1269c6689cb59d6f8776c6", "ma...
ft_build_from_source = get(ENV, "FT_BUILD_FROM_SOURCE", "false") if ft_build_from_source == "true" using Libdl const libfasttransforms = find_library("libfasttransforms", [joinpath(dirname(@__DIR__), "deps")]) if libfasttransforms ≡ nothing || length(libfasttransforms) == 0 error("FastTransforms is ...
{"hexsha": "c2cb8e654d50a8921a98f2a8187ade9e1457c44b", "size": 47015, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/libfasttransforms.jl", "max_stars_repo_name": "stevengj/FastTransforms.jl", "max_stars_repo_head_hexsha": "cfae853efa3a6bb4d2fea75f9700bcc62b2d60ca", "max_stars_repo_licenses": ["MIT"], "max_s...
// Copyright (c) 2018-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/test/unit_test.hpp> #include <chain.h> #include <chainparams.h> #include <config.h> #include <consensus/merk...
{"hexsha": "4fb3c6b71930196414300b11f37d257028eb80a6", "size": 15243, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/test/validation_block_tests.cpp", "max_stars_repo_name": "edhoguntur/bitcoin-abc", "max_stars_repo_head_hexsha": "4b68caf7e30649af505e041a619b1f85ba507b80", "max_stars_repo_licenses": ["MIT"], ...
[STATEMENT] lemma os_ts__sams: assumes "B P TS A C" and "A B OS P C" shows "SAMS A B P P B C" [PROOF STATE] proof (prove) goal (1 subgoal): 1. SAMS A B P P B C [PROOF STEP] proof - [PROOF STATE] proof (state) goal (1 subgoal): 1. SAMS A B P P B C [PROOF STEP] have "B Out P C \<or> \<not> Bet A B P" [PROOF STA...
{"llama_tokens": 1241, "file": "IsaGeoCoq_Tarski_Neutral", "length": 12}
# -*- coding: utf-8 -*- ########################################################################## # pySAP - Copyright (C) CEA, 2017 - 2018 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-e...
{"hexsha": "12997fc578c7a6ec93de29fcb82173dbf0be7c3a", "size": 20608, "ext": "py", "lang": "Python", "max_stars_repo_path": "pysap/test/test_binding.py", "max_stars_repo_name": "LElgueddari/pisap", "max_stars_repo_head_hexsha": "ddd9f9f02dcd629b5615fa571ac7795c2d5e9727", "max_stars_repo_licenses": ["CECILL-B"], "max_st...
import numpy as np from pytest import approx, raises from tune.priors import create_priors, make_invgamma_prior, roundflat def test_roundflat(): assert roundflat(0.3) == approx(0.0, abs=1e-6) assert roundflat(0.0) == -np.inf assert roundflat(-1.0) == -np.inf def test_make_invgamma_prior(): prior = ...
{"hexsha": "3d0efc243b209989cc672a774abaf1fa7e9912c5", "size": 1257, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_priors.py", "max_stars_repo_name": "fsmosca/chess-tuning-tools", "max_stars_repo_head_hexsha": "2f489241e029b0d07ca6b645448643b4c57b4b83", "max_stars_repo_licenses": ["Apache-2.0"], "ma...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include ...
{"hexsha": "d4d42819d139a5669729c55d709098421e25e2de", "size": 1947, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/prod/src/Common/ExpiringSet.Test.cpp", "max_stars_repo_name": "AnthonyM/service-fabric", "max_stars_repo_head_hexsha": "c396ea918714ea52eab9c94fd62e018cc2e09a68", "max_stars_repo_licenses": ["MI...
#include <boost/test/unit_test.hpp> #include <kaleidoscope/syntax/ast.hpp> #include <kaleidoscope/syntax/lexer.hpp> #include <kaleidoscope/syntax/parser.hpp> namespace { using namespace kaleidoscope::syntax; BOOST_AUTO_TEST_SUITE(parser_test) BOOST_AUTO_TEST_CASE(primary) { { ...
{"hexsha": "3235d395251ccbedad968df0846476fdd18a690e", "size": 3333, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/kaleidoscope/syntax/parser_test.cpp", "max_stars_repo_name": "agatan/kaleidoscope-cpp", "max_stars_repo_head_hexsha": "439710d25aa9586866353f301453a3ce91a04d65", "max_stars_repo_licenses": ["MI...
# Importing modules import numpy as np import pandas as pd # Reading in the data tesla = pd.read_csv('TSLA.csv') # Isolating the date and close price tesla = tesla[['Date', 'Close']] # Selecting the stationary part of the dataset """ Start date: 1/1/14 -> index = 884 End date: 12/31/16 -> index = 1639 """ new_tesla...
{"hexsha": "102ef7aba8aeb93f0303be2dd081741a676c642d", "size": 4433, "ext": "py", "lang": "Python", "max_stars_repo_path": "predicting-tesla-stock-price/predict-tesla-stock-price-LSTM.py", "max_stars_repo_name": "dapopov-st/python-youtube-code", "max_stars_repo_head_hexsha": "770c9291988898f259ad28bbab5989acee8fb830", ...
from collections import namedtuple, deque import numpy as np import random class ReplayBuffer: """Fixed-size buffer to store experience tuples.""" def __init__(self, action_size, buffer_size, batch_size, device): """Initialize a ReplayBuffer object. :param action_size: dimension of each actio...
{"hexsha": "d1ab0a995d36b3590cdb07b4d7727b13c3bcc210", "size": 1913, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/replaybuffer.py", "max_stars_repo_name": "glab2019/MADDPG-Based-MCS", "max_stars_repo_head_hexsha": "e48ee3a74c66d7fa8acaa4e3796874c4ca09519f", "max_stars_repo_licenses": ["MIT"], "max_stars...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
{"hexsha": "432148bbc154e7ed7ddd7f27a49e4ddf4cbcac08", "size": 3522, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "modules/boost/simd/sdk/include/boost/simd/memory/functions/pack/load.hpp", "max_stars_repo_name": "psiha/nt2", "max_stars_repo_head_hexsha": "5e829807f6b57b339ca1be918a6b60a2507c54d0", "max_stars_re...
import sys import os import pandas as pd import numpy as np import nltk import re from nltk.tokenize import word_tokenize import time nltk.download('punkt') # data_path = "C:\\Users\\darwi\\OneDrive - " \ # "The University of Texas at Dallas\\Acads\\Machine Learning\\Assignments\\MachineLearning\\Data" cw...
{"hexsha": "5924044400bd4b81ebf6a1afd7ccc9391725fbb9", "size": 6528, "ext": "py", "lang": "Python", "max_stars_repo_path": "NaiveBayes/naiveBayes.py", "max_stars_repo_name": "darwin-b/MachineLearning", "max_stars_repo_head_hexsha": "834a07fcb5052053d7a7d6d9fe4fc5abbe3117d3", "max_stars_repo_licenses": ["MIT"], "max_sta...
import os from pathlib import Path import pandas as pd import numpy as np from pdpart import Partitioned import tempfile def make_test_data(n): chars = [chr(i) for i in range(ord('a'), ord('z') + 1)] return pd.DataFrame({ "key": np.random.choice(chars, size=n), "value": np.arange(n) }) d...
{"hexsha": "527e1fd5a7de2c251e1f4e28e507d309cb64e7bd", "size": 1964, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_partitioned.py", "max_stars_repo_name": "bklppr/pdpart", "max_stars_repo_head_hexsha": "35a9efaa4b7387eed821640a26a7233839709e3d", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
# GAN import os import math import numpy as np from PIL import Image from keras.models import Sequential from keras.layers import Dense, Activation, Reshape from keras.layers.normalization import BatchNormalization from keras.layers.convolutional import UpSampling2D, Conv2D from keras.layers.advanced_activations impo...
{"hexsha": "02ccfc84c508b9cc5d60c2764dd70210303cc1b9", "size": 4427, "ext": "py", "lang": "Python", "max_stars_repo_path": "keras_sample/gan/gan_simple.py", "max_stars_repo_name": "yukirin/MachineLearning", "max_stars_repo_head_hexsha": "f3882ae25a5a7d6858dacef2364e41944f10b18f", "max_stars_repo_licenses": ["MIT"], "ma...
# function generate_random_pose{T<:Number}(n::Number, range::UnitRange{T}) # vec = [Pose2D(rand(range),rand(range),deg2rad(rand(0:360))) for p in 1:n] # return vec # end # function is_rotation(m::AbstractMatrix{T}) end
{"hexsha": "dd3c8662e25dd323e12deb5d58d90a5fb049258e", "size": 226, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/utility.jl", "max_stars_repo_name": "elsuizo/Robot", "max_stars_repo_head_hexsha": "10db916f646b50f66ce6f827c5cf8248b825308c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_star...
from __future__ import print_function, division, absolute_import import errno import multiprocessing import os import shutil import subprocess import sys import threading import warnings import numpy as np from numba import unittest_support as unittest from numba import utils, jit, generated_jit, types, typeof from ...
{"hexsha": "7c9325bc33a9f476dc73ecf2fb2e2dbaec004e45", "size": 38968, "ext": "py", "lang": "Python", "max_stars_repo_path": "dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/numba/tests/test_dispatcher.py", "max_stars_repo_name": "jeikabu/lumberyard", "max_stars_repo_head_hexsha": "07228c605ce16cbf5aaa209a94a3cb9d6c1a411...
subroutine pderhs(t) ************************************************************************ * * Inner products for gasdynamics. * * u1(.,1) == mass density, * u2(.,2) == momentum density, * u3(.,3) == total energy density (internal plus kinetic) * * Each equation is in conservation law form * * ...
{"hexsha": "ee76b97d57737b489740e1c0d4d569669703394f", "size": 3649, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "gwmfe1ds/navier-stokes/pde.f", "max_stars_repo_name": "mfeproject/legacy-gwmfe", "max_stars_repo_head_hexsha": "ef7c1139661067165b287877f012d5664aeab85d", "max_stars_repo_licenses": ["MIT"], "max_...
# ------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # ----------------------------------------------------------------------...
{"hexsha": "f344fb94986db991b15c812492117efc584abee3", "size": 3387, "ext": "py", "lang": "Python", "max_stars_repo_path": "PyStationB/libraries/GlobalPenalisation/gp/benchmarking/utils.py", "max_stars_repo_name": "BrunoKM/station-b-libraries", "max_stars_repo_head_hexsha": "ea3591837e4a33f0bef789d905467754c27913b3", "...
import torch import torchvision import fcn # pip install fcn import numpy as np import os import os.path as osp # https://github.com/shelhamer/fcn.berkeleyvision.org/blob/master/surgery.py def get_upsampling_weight(in_channels, out_channels, kernel_size): """Make a 2D bilinear kernel suitable for upsampling""" ...
{"hexsha": "7b1e81cef0454b72e048dadbf197c859e0785349", "size": 2744, "ext": "py", "lang": "Python", "max_stars_repo_path": "models/vgg/helpers.py", "max_stars_repo_name": "affromero/pytorch-fcn", "max_stars_repo_head_hexsha": "43dabd281d5b530a8932d88cacf814dfe6a966af", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
#!/usr/bin/env python # coding: utf-8 import keras import sys,os import h5py from keras.models import load_model import pickle import numpy as np import networkx as nx from graphviz import Graph as DOTGraph from collections import Counter model=load_model('database/dense_model_balanced8314.h5') alphabet='CHDENSTKGQ...
{"hexsha": "482cce0f01711512273d52604792e2581900acda", "size": 5783, "ext": "py", "lang": "Python", "max_stars_repo_path": "predict.py", "max_stars_repo_name": "oaygnehcc/MetalNet", "max_stars_repo_head_hexsha": "da98b8f3169b9e3037f28c5e4ec65f74016e1550", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_s...
# COPIED FROM: # https://github.com/markdregan/K-Nearest-Neighbors-with-Dynamic-Time-Warping/blob/master/K_Nearest_Neighbor_Dynamic_Time_Warping.ipynb import sys import collections import itertools import numpy as np import matplotlib.pyplot as plt from scipy.stats import mode from scipy.spatial.distance import squar...
{"hexsha": "6efd82e331f7ed2f6ba278731123af3880739703", "size": 6071, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/dtwnn.py", "max_stars_repo_name": "AkashPushkar/dsitributed-time-series", "max_stars_repo_head_hexsha": "5f8a24b90af100b6a9e12837236bed788ee0fb17", "max_stars_repo_licenses": ["MIT"], "max_sta...
from numpy import zeros from os.path import splitext from ...Functions.FEMM.update_FEMM_simulation import update_FEMM_simulation from ...Functions.FEMM.comp_FEMM_Phi_wind import comp_FEMM_Phi_wind def solve_FEMM(obj, femm, output, sym, FEMM_dict): L1 = output.simu.machine.stator.comp_length() L2 = output.sim...
{"hexsha": "81e1d19360c95eeec34b085c2890935e836f03e3", "size": 2327, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyleecan/Functions/Electrical/solve_FEMM.py", "max_stars_repo_name": "EmileDvs/pyleecan", "max_stars_repo_head_hexsha": "ad2f5f25c089a981f373557a198da51c62407928", "max_stars_repo_licenses": ["Apa...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Dec 16 20:18:29 2018 @author: Ryan """ from bs4 import BeautifulSoup from requests import get import pandas as pd import re import numpy as np from UDFs import createreplacecsv, printtitle from datetime import timedelta printtitle('Running AP poll sc...
{"hexsha": "7b7de5d49ce6adef257e95b02cc434b1e4c911dd", "size": 7101, "ext": "py", "lang": "Python", "max_stars_repo_path": "archive/NCAAAPPoll.py", "max_stars_repo_name": "ryanofarrell/ncaa-basketball", "max_stars_repo_head_hexsha": "628bda58cb1320431edf38ab407ba70ca5f80008", "max_stars_repo_licenses": ["MIT"], "max_st...
from sympy import simplify, srepr, Add, Mul, Pow from latex2sympy.latex2sympy import process_sympy import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) # shorthand definitions def _Add(a, b): return Add(a, b, evaluate=False) def _Mul(a, b): return Mul(a, b...
{"hexsha": "6f4bf69d3f0053119d8eb54e4b301d7b141e8b62", "size": 1310, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/context.py", "max_stars_repo_name": "ConsoleBit/latex2sympy", "max_stars_repo_head_hexsha": "88eb1e0a42beb62c41601c9d5154253c3e712a8d", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
library(data.table) library(sf) library(ggrepel) library(ggplot2) library(rnaturalearth) library(rnaturalearthdata) rm(list=ls()) gc() world <- ne_countries(scale="large",returnclass="sf") horn <- subset(map_data("world"),region %in% c("Kenya","Tanzania","Sudan","Ethiopia","Eritrea","Djibouti")) somalia <- subset(map...
{"hexsha": "f906d8da3e625d2e21364b88309247c3e27d1bbe", "size": 3302, "ext": "r", "lang": "R", "max_stars_repo_path": "conflict_map.r", "max_stars_repo_name": "dubilava/somalia", "max_stars_repo_head_hexsha": "44bd1c8c0482a600a839a388f673040404345ef8", "max_stars_repo_licenses": ["CC-BY-4.0"], "max_stars_count": null, "...
import os import unittest import numpy as np from mcstasscript.interface.functions import name_search from mcstasscript.interface.functions import name_plot_options from mcstasscript.interface.functions import load_data from mcstasscript.interface.functions import load_metadata from mcstasscript.interface.functions ...
{"hexsha": "f13e4b3478d54430569dc477b8d8043ebd27d3f7", "size": 12020, "ext": "py", "lang": "Python", "max_stars_repo_path": "mcstasscript/tests/test_functions.py", "max_stars_repo_name": "PaNOSC-ViNYL/McStasScript", "max_stars_repo_head_hexsha": "bd94ebc6cac290c3c9662871df40d76edbe4a44e", "max_stars_repo_licenses": ["B...
# Software License Agreement (Apache 2.0 License) # # Copyright (c) 2021, The Ohio State University # Center for Design and Manufacturing Excellence (CDME) # The Artificially Intelligent Manufacturing Systems Lab (AIMS) # All rights reserved. # # Author: Adam Exley import pyrealsense2 as rs import numpy as np class ...
{"hexsha": "60044dc02cac57c0b22521b3f965ead2c475e6f2", "size": 3429, "ext": "py", "lang": "Python", "max_stars_repo_path": "robotpose/prediction/feed.py", "max_stars_repo_name": "OSU-AIMS/RoPE-S3D", "max_stars_repo_head_hexsha": "0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5", "max_stars_repo_licenses": ["Apache-2.0"], "max...
// // Copyright (c) 2019-2020 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com) // // Distributed under the MIT Software License // /* The current example in some extent mimics curl usage example in CAF ( https://github.com/actor-framework/actor-framework/blob/master/examples/curl/curl_fuse.cpp ), but in...
{"hexsha": "d90873102c475677fbb74dfded614d7a7466a99e", "size": 34722, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "examples/boost-asio/beast-scrapper.cpp", "max_stars_repo_name": "LtdJorge/cpp-rotor", "max_stars_repo_head_hexsha": "1e85fed1111d893f3ada05c78fa69d4920a2e9fc", "max_stars_repo_licenses": ["MIT"], "...
import numpy as np def report_points_range(points): points_center = points.mean(axis=0) points_radii_wrt_center = np.linalg.norm(points - points_center, axis=1) points_radii_wrt_origin = np.linalg.norm(points, axis=1) print(f"center : {points_center}") print(f"radius w.r.t center: {po...
{"hexsha": "b845283df955497a2e31da21264cbd1a004f69eb", "size": 498, "ext": "py", "lang": "Python", "max_stars_repo_path": "stat.py", "max_stars_repo_name": "yxlao/camtools", "max_stars_repo_head_hexsha": "4c7b41cd5a5232a2e8e3e26bca72d372f46099fb", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "max_stars_rep...
# Copyright (c) 2021 PaddlePaddle 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 appli...
{"hexsha": "c4657479f854f43b03a753ae8f8e3903eff9364c", "size": 15638, "ext": "py", "lang": "Python", "max_stars_repo_path": "paddlex/ppdet/modeling/mot/matching/deepsort_matching.py", "max_stars_repo_name": "cheneyveron/PaddleX", "max_stars_repo_head_hexsha": "86f73fc6a66b12c638f642524bfd1cf730e26c4b", "max_stars_repo_...
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # #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...
{"hexsha": "4727e0892b316dde4bab7a3dca92d5a9bffa82f4", "size": 9389, "ext": "py", "lang": "Python", "max_stars_repo_path": "AutoDL/LRC/train_mixup.py", "max_stars_repo_name": "ziyuli/models", "max_stars_repo_head_hexsha": "6aaf01922f8b5c4be1f89a961ade92e2d7c11e3c", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
import unittest import numpy as np from op_test import OpTest class TestSGDOp(OpTest): def setUp(self): self.op_type = "sgd" w = np.random.random((102, 105)).astype("float32") g = np.random.random((102, 105)).astype("float32") lr = 0.1 self.inputs = {'param': w, 'grad': g}...
{"hexsha": "64e54d1500c1bc134cc1efe33d41a16dbc08f2d4", "size": 524, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/paddle/v2/framework/tests/test_sgd_op.py", "max_stars_repo_name": "AI-books/Paddle", "max_stars_repo_head_hexsha": "5b5f4f514047975ac09ec42b31e46dabf235e7dd", "max_stars_repo_licenses": ["Ap...
""" ItoDiffusionProcess Type for storing an Itô diffusion process. It consists of a function μ(x) for the drift term, and a function σ(x) for the diffusion term. See also https://en.wikipedia.org/wiki/It%C3%B4_diffusion """ struct ItoDiffusionProcess μ::Function σ::Function # interval::Tuple{T, T} where T<:Real ...
{"hexsha": "6a47ef9c54fbaa5c0379c1dfb5b56e7529dfed0f", "size": 629, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/diffusionProcesses.jl", "max_stars_repo_name": "mfornino/MarkovChains.jl", "max_stars_repo_head_hexsha": "59bee5f79a128c1418f6b8f2b76da93f2f6d45e0", "max_stars_repo_licenses": ["MIT"], "max_star...
__description__ = \ """ michaelis_menten.py Model describing initial rates for a simple enzyme. """ __author__ = "Martin L. Rennie" __date__ = "10th Oct 2018" import numpy as np from .base import Model class CompetitiveInhibition(Model): """ Initial rates of a simple enzyme in the presence of...
{"hexsha": "d8a1782e8be4f4bec46cae11edf52548181082ee", "size": 3140, "ext": "py", "lang": "Python", "max_stars_repo_path": "pytrate/indiv_models/competitive_inhibition.py", "max_stars_repo_name": "mlrennie/pytrate", "max_stars_repo_head_hexsha": "791d000561506653ad5e0762180266a1a647c0d3", "max_stars_repo_licenses": ["U...
# -*- coding: utf-8 -*- import pandas as pd import numpy as np abnb = pd.read_csv('AbnbSF_clean.csv') abnb.shape # abnb.info() # abnb['Neighbourhood Cleansed'].value_counts().sort_index() # combine.nunique().sort_values() # abnb.select_dtypes(exclude='number').nunique().sort_values() # abnb.select_dtypes(include...
{"hexsha": "de5ca835498a3d788b7dcf65da617a9aee4a2d17", "size": 13078, "ext": "py", "lang": "Python", "max_stars_repo_path": "TempFile/airbnbsf.py", "max_stars_repo_name": "henryspg/Unit3", "max_stars_repo_head_hexsha": "eb626de137e4a63762352a21de054db9bde925bc", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
{"hexsha": "b768427da7ef5525c418f0fe977c0e6f12db3dda", "size": 3184, "ext": "py", "lang": "Python", "max_stars_repo_path": "vega/algorithms/hpo/sha_base/hebo_adaptor.py", "max_stars_repo_name": "zjzh/vega", "max_stars_repo_head_hexsha": "aa6e7b8c69024262fc483ee06113b4d1bd5156d8", "max_stars_repo_licenses": ["Apache-2.0...
/* * 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) * * Copyright (c) 2017 Andrey Semashev */ /*! * \file atomic/detail/hwcaps_gcc_ppc.hpp * * This header defines hardware capabilities macros for PowerPC ...
{"hexsha": "2ec1e327a7f0006fdc331d2b382eaf580a22798a", "size": 1180, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "thirdparty/boost_1_67_0/boost/atomic/detail/hwcaps_gcc_ppc.hpp", "max_stars_repo_name": "cfsengineering/tigl", "max_stars_repo_head_hexsha": "abfbb57b82dc6beac7cde212a4cd5e0aed866db8", "max_stars_re...
\subsection{Power series} of the form: \(\sum_{n=0}a_n(x-c)^n\) \subsubsection{Smoothness of power series} Power series are all smooth. That is, they are infinitely differentiable.
{"hexsha": "a34399da38cc32ae12e61ffcdb8b4587f863798f", "size": 187, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "src/pug/theory/analysis/transformations/01-01-powerSeries.tex", "max_stars_repo_name": "adamdboult/nodeHomePage", "max_stars_repo_head_hexsha": "266bfc6865bb8f6b1530499dde3aa6206bb09b93", "max_stars_...
abstract type AbstractFreestream end """ Freestream(α, β, Ω) Freestream(α, β, Ω_x, Ω_y, Ω_z) Freestream(U, Ω) Freestream(; alpha = 0., beta = 0., omega = [0,0,0] ) Define freestream conditions with angle of attack ``α`` (degrees), s...
{"hexsha": "3ed315a922ef4f962975b0ebc2bfda4101b20e02", "size": 1662, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Aerodynamics/VortexLattice/freestream.jl", "max_stars_repo_name": "HKUST-OCTAD-LAB/AeroMDAO.jl", "max_stars_repo_head_hexsha": "0ca9aa924f088cac59d04958eb5c6704b50feb18", "max_stars_repo_licens...
import jax import jax.numpy as np import matplotlib.pyplot as plt def halton_sequence(n, rng): return randradinv(np.arange(n), 2, rng) def randradinv(ind, b, rng): br = 1 / b ans = ind * 0 res = ind while(1 - br < 1): digit = np.fmod(res, b).astype(int) rng, key = jax.random.split(...
{"hexsha": "dc03c7abb71a331a48393d95ab091beda9699f00", "size": 767, "ext": "py", "lang": "Python", "max_stars_repo_path": "halton.py", "max_stars_repo_name": "DPBayes/DP-HMC-Neurips2021", "max_stars_repo_head_hexsha": "ff8b828e8fc150ee59a3a271ef33dd75dd17bfe5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, ...
#include <boost/python.hpp> using namespace boost::python; #include <iostream> struct World { World(std::string msg_): msg(msg_) {} std::string greet() { return msg; } std::string msg; }; /// /// BOOST_PYTHON_MODULE(mfw) { class_<World>("World", init<std::string>()) .def("gre...
{"hexsha": "0b61151aff915cef16fdecdf5b0a98ffab350f21", "size": 347, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "buffer/scripts-emb-ext/projects/python_cc_ext/test-boost-linux/bw.cpp", "max_stars_repo_name": "zaqwes8811/coordinator-tasks", "max_stars_repo_head_hexsha": "7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a"...
import os import glob import shutil from pathlib import Path import numpy as np import mmcv import torch __seed = 3248723 def _create_random_subsets(elems, split): if not isinstance(split, list) or sum(split) != 1.0 or not all(val > 0.0 for val in split): raise ValueError(f'{split} must be a list whose va...
{"hexsha": "6b6c2d5e6a58ca3a145c0309f4704be3873d189e", "size": 2222, "ext": "py", "lang": "Python", "max_stars_repo_path": "preprocess/partition.py", "max_stars_repo_name": "MAPS-Lab/mmdetection3d", "max_stars_repo_head_hexsha": "773c2f29495863c73c72c187c08aae8ac23a848e", "max_stars_repo_licenses": ["Apache-2.0"], "max...
""" Auxiliar functions @author: Marco Benjumeda """ import math from decimal import Decimal import cPickle import csv import random import numpy import copy from sklearn.model_selection import KFold, StratifiedKFold import rpy2.robjects as ro import rpy2 from export import get_adjacency_matrix_from_et import data_typ...
{"hexsha": "080a28ecdad1cf2538c63c8cd0373ee77fedca26", "size": 8818, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils.py", "max_stars_repo_name": "marcobb8/tr_bn", "max_stars_repo_head_hexsha": "f6600d046a34266ec815384790659b4e33db325c", "max_stars_repo_licenses": ["BSD-1-Clause", "BSD-3-Clause", "0BSD"], "...
import numpy as np import os import csv import physics as phys import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt from matplotlib.pyplot import figure import matplotlib.pylab as pylab import DataAnalysis as Data import utils import GenerationRate.BandToBandTunneling as BTB from scipy.optimize imp...
{"hexsha": "0d0773cf2657fed645aeb51b293886ae19670550", "size": 87802, "ext": "py", "lang": "Python", "max_stars_repo_path": "plugin/Experiments/TrapAnalysis.py", "max_stars_repo_name": "Sunethan/APD-analyser", "max_stars_repo_head_hexsha": "30a190c763017017ce16e171b5bf641fda62a4b0", "max_stars_repo_licenses": ["MIT"], ...
import numpy as np import pandas as pd import pytest import piso import piso.intervalarray as piso_intervalarray from piso import register_accessors register_accessors() def get_accessor_method(self, function): return { piso_intervalarray.union: self.piso.union, piso_intervalarray.intersection: ...
{"hexsha": "786e57f11f8e9a39d97208205dbe55a45eb11457", "size": 26864, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_single_interval_array.py", "max_stars_repo_name": "venaturum/piso", "max_stars_repo_head_hexsha": "54fd20443efb84d7a9982c92caf492b12206eaef", "max_stars_repo_licenses": ["MIT"], "max_s...
from qcartpole_agent import QCartPoleAgent from logging import getLogger, INFO, DEBUG, info, debug, error from numpy import load as npload from tqdm_logger import TqdmLoggingHandler from argparse import ArgumentParser def load_trained_artefacts(filename='cartpole_artefacts.npy'): saved_artefacts = npload(filen...
{"hexsha": "e886f8552dc361c81884d3b4640366866be71832", "size": 1451, "ext": "py", "lang": "Python", "max_stars_repo_path": "cartpole-v0/run_agent.py", "max_stars_repo_name": "ashishraste/openai-gyms", "max_stars_repo_head_hexsha": "f71af9989d386d0b7d15faa2ee9c7b135f32ad4e", "max_stars_repo_licenses": ["MIT"], "max_star...
# -*- coding: utf-8 -*- from __future__ import absolute_import from .data_utils import get_file import random import sys, os import numpy as np import six.moves.cPickle from six.moves import range def load_data(test_split=0.1, seed=113): dirname = "cifar-10-batches-py" origin = "http://www.cs.toronto.edu/~kriz...
{"hexsha": "d6dc1d02ffe50ee84eba8daae1314a84519f573e", "size": 1503, "ext": "py", "lang": "Python", "max_stars_repo_path": "keras/keras/datasets/cifar10.py", "max_stars_repo_name": "molingbo/crcn", "max_stars_repo_head_hexsha": "a01f084cc3a2b4a0533eb7d8709b9a6dcfb8a2db", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
#' Airborne LiDAR point cloud #' #' A dataset containing a small point cloud aquiered with airborne LiDAR. #' #' @format A data frame with 28668 rows and 3 variables: #' \describe{ #' \item{X}{x coordinates} #' \item{Y}{y coordinates} #' \item{Z}{z coordinates} #' } "rcsf_cloud"
{"hexsha": "5cb86ac52f9ef3a3f9f3c7227a37e554fc14c347", "size": 285, "ext": "r", "lang": "R", "max_stars_repo_path": "R/data.r", "max_stars_repo_name": "r-lidar/RCSF", "max_stars_repo_head_hexsha": "14ed40951273918807d685e9ed680c8a0624f473", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 12, "max_stars_re...
import pandas as pd import numpy as np from pylab import show,plot,scatter,hist,boxplot,figure import matplotlib.pylab as plt from sklearn.linear_model import LinearRegression from sklearn.svm import SVC from sklearn import svm def make_meshgrid(x, y, h=.02): """Create a mesh of points to plot in Parameters ...
{"hexsha": "9b7a506442a177ca8d0b3291ccd9f5e425770f5e", "size": 2137, "ext": "py", "lang": "Python", "max_stars_repo_path": "python_machine_learning.py", "max_stars_repo_name": "divayjindal95/DataScience", "max_stars_repo_head_hexsha": "d976a5e3ac9bd36e84149642a5b93f7bfc3540cf", "max_stars_repo_licenses": ["MIT"], "max_...
function [X,Y,Z]=oblate0(eta,theta,psi) % [X,Y,Z]=oblate0(eta,theta,psi) defines % oblate spheroidal coordinates X=cosh(eta).*sin(theta).*cos(psi); Y=cosh(eta).*sin(theta).*sin(psi); Z=sinh(eta).*cos(theta);
{"author": "Sable", "repo": "mcbench-benchmarks", "sha": "ba13b2f0296ef49491b95e3f984c7c41fccdb6d8", "save_path": "github-repos/MATLAB/Sable-mcbench-benchmarks", "path": "github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/15903-curvilinear-coordinates/cc/oblate0.m"}
"""Utilities for initial values.""" import numpy as np # import torch from sklearn.metrics.pairwise import euclidean_distances from sklearn.cluster import MiniBatchKMeans def calc_median_of_pairwise_distance( dataloader, key=None, num_minibatches=None): """Calculate median of pairwise Eucilidian distanc...
{"hexsha": "252f43e5552b950042b25dede81e1d229426142c", "size": 1872, "ext": "py", "lang": "Python", "max_stars_repo_path": "dsvidgp/initial_value.py", "max_stars_repo_name": "hyama5/deepgp_pretraining", "max_stars_repo_head_hexsha": "e0492d844fffc9a1375cb062f8e9ce3b41dd0638", "max_stars_repo_licenses": ["Apache-2.0"], ...
# Copyright (c) Facebook, Inc. and its affiliates. # # 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": "f54e6ab5b6db1f3318732a3f7c961138d4849b7f", "size": 16164, "ext": "py", "lang": "Python", "max_stars_repo_path": "agents/phyre_simulator.py", "max_stars_repo_name": "ishaanchandratreya/phyre-fwd", "max_stars_repo_head_hexsha": "1b651f9584175fb4aca76f2de95bf9ceb9fe18ef", "max_stars_repo_licenses": ["Apache-2....
import numpy as np import pandas as pd import matplotlib.pylab as plt import tensorflow as tf from tensorflow.keras.preprocessing.image import ImageDataGenerator import math as mt #Train Datagen train_datagen = ImageDataGenerator( rescale=1./255, rotation_range=15, width_shift_range=0.2, height_shift_r...
{"hexsha": "962f17bb24e3b48dc36ff11dcf795b64638fa263", "size": 5473, "ext": "py", "lang": "Python", "max_stars_repo_path": "Intel_Scene_Classification_Challenge/Intel_Scene_Class.py", "max_stars_repo_name": "itsmeeayan/ML_and_DL", "max_stars_repo_head_hexsha": "6beb3224cbd59a305c1916a94064d2fa41376532", "max_stars_repo...
!----------------------------------------------------------------------- ! MODULE: el_eos_modlue ! Author: S. W. Bruenn ! Date: 10/26/02 !----------------------------------------------------------------------- MODULE el_eos_module USE wlKindModule, ONLY: double => dp !-------------------...
{"hexsha": "40bdb2c447021f78a19fb8ef2536251ca78d7677", "size": 1805, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "TableCreator/Old/LS/EL_EOS_MODULE.f90", "max_stars_repo_name": "srichers/weaklib", "max_stars_repo_head_hexsha": "4a26ff17d3224d8fe90b922cb55ea9d865200154", "max_stars_repo_licenses": ["BSD-3-Cl...
\documentclass{article} %\documentclass[journal=esthag,manuscript=article]{achemso} \usepackage{authblk} \usepackage{url} \usepackage{afterpage} \usepackage{hyperref} \usepackage{graphicx} %\usepackage{amsfonts} %\usepackage[version=3]{mhchem} %\usepackage{textgreek} %\usepackage{pdflscape} % landscape pages %\usepa...
{"hexsha": "5da2bdfd0dbc4a32a26192325757a50a1cbebe73", "size": 57845, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "report/dist_job_sched.tex", "max_stars_repo_name": "ps/dist_job_sched_simulation", "max_stars_repo_head_hexsha": "7fb30bb70c012dc23a96aa45ed8ad02d9c667e8b", "max_stars_repo_licenses": ["MIT"], "max...
import numpy as np from keras.layers import Dense, Flatten, Conv2D, MaxPooling2D, Dropout from keras.utils import np_utils, print_summary from keras.models import Sequential from keras.callbacks import ModelCheckpoint import pandas as pd import keras.backend as k data = pd.read_csv("train_foo.csv") dataset = ...
{"hexsha": "295988d3bbb59fa6945d841720c93615e5ddb24d", "size": 2655, "ext": "py", "lang": "Python", "max_stars_repo_path": "trainEmoji.py", "max_stars_repo_name": "manavpradhan/Emojinator", "max_stars_repo_head_hexsha": "f0cd20cf3c8a0cd654110412f52beb105acd342c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2...