text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
// Copyright (C) Dimitrios Michail 2019 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) #include <iostream> #include <fstream> #include <map> #include <list> #include <boost/config.hpp> ...
{"hexsha": "73db6d108bb58d92931cefd99207035ff712e6f9", "size": 6225, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/mcb-dimacs.cpp", "max_stars_repo_name": "d-michail/parmcb", "max_stars_repo_head_hexsha": "19d0b7eb01735600c851b969d9e5a87c78b8c711", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count": n...
# Import modules import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_breast_cancer # Import PySwarms import pyswarms as ps # loading breast cancer dataset data = load_breast_cancer() # Store the features as X and the labels as y X = data.data y = data.target print("Shape of X",X.shape...
{"hexsha": "09cd9d5a209a0b45fe5fc28aeff06b3c21c40b2f", "size": 3633, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyswarm_mark1.py", "max_stars_repo_name": "hack-e-d/pyswarms", "max_stars_repo_head_hexsha": "1029dfa0b868f125da74aee971ce925a7c460447", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count...
// Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE.txt // // (C) Copyright 2014 Pierre Talbot <ptalbot@hyc.io> #include <boost/test/minimal.hpp> int add( int i, int j ) { return i+j; } //____________________________________________________________________________// int...
{"hexsha": "25c3a0a593e1763267b1e45246b827b3bdc34ae1", "size": 887, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/neev_test.cpp", "max_stars_repo_name": "ptal/neev", "max_stars_repo_head_hexsha": "0e4005be34f5e1edc724ad860af8bd4c88a46bfe", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count": 3.0, "max...
type FileSpec name::AbstractString dlm::Char header::Bool function FileSpec(name::AbstractString, dlm::Char=',', header::Bool=false) new(name, dlm, header) end end function read_input(fspec::FileSpec) # read file and skip the header F = readdlm(fspec.name, fspec.dlm, header=fspec.h...
{"hexsha": "9407be2f1fb094d06abbb3266a6e0122c46173c5", "size": 4888, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/train.jl", "max_stars_repo_name": "abhijithch/RecSysChallenge.jl", "max_stars_repo_head_hexsha": "238efe465c2eea888bd521ac652d578fa43c27c8", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
import os import numpy as np import random import SimpleITK as sitk import torch from torch.utils.data import Dataset from scipy.ndimage import distance_transform_edt as distance def target2dist(target, loss='boundary', beta=0.5): target[target != 0] = 1 if loss == 'boundary': posmask = target.as...
{"hexsha": "ec7cdccb17765f900a2557462938f9b3cae8c68f", "size": 6176, "ext": "py", "lang": "Python", "max_stars_repo_path": "dataloaders/abus_dataset_3d.py", "max_stars_repo_name": "xuyangcao/AttD2UNet", "max_stars_repo_head_hexsha": "b76ed8104a4183140b3cbd7f9671ca99d36e3b3e", "max_stars_repo_licenses": ["MIT"], "max_st...
export PhasePartition # Thermodynamic states export ThermodynamicState, PhaseDry, PhaseDry_given_pT, PhaseEquil, PhaseNonEquil, TemperatureSHumEquil, LiquidIcePotTempSHumEquil, LiquidIcePotTempSHumEquil_given_pressure, LiquidIcePotTempSHumNonEquil, LiquidIcePotTempSHumNonEquil_given_...
{"hexsha": "eadd8c1761f8bd1576832ff8220a0d1983b21636", "size": 11117, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Common/MoistThermodynamics/states.jl", "max_stars_repo_name": "yairchn/CLIMA", "max_stars_repo_head_hexsha": "0315926f18f6e365b72060013a1a2acea9bc1a38", "max_stars_repo_licenses": ["Apache-2.0...
VERSION >= v"0.4.0-dev+6521" && __precompile__() module Knet using Compat const libknet8 = Libdl.find_library(["libknet8.so"], [dirname(@__FILE__)]) using AutoGrad; export grad, gradloss, gradcheck, getval include("gpu.jl"); export gpu include("kptr.jl"); # KnetPtr include("karray.jl"); ...
{"hexsha": "e1309f4348b88900af7d658718200fccc9366908", "size": 1355, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Knet.jl", "max_stars_repo_name": "enzotarta/Knet.jl", "max_stars_repo_head_hexsha": "4330f3fec812ccbbfeabbcf6aa63450ca743f9c2", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max...
using DataFrames, CSV, Plots, StatsPlots ProjDir = @__DIR__ include(joinpath(ProjDir, "fn.jl")) nts = [1, 2, 4, 8] nccs = [1, 2, 4, 8] ncjs = [1, 2, 4, 8] nss = [10000, 5000, 2500, 1250] N = 6 function timings(nts, nccs, ncjs, nss, N) df = DataFrame() res_t = Vector{Float64}(undef, N) for nt in nts ...
{"hexsha": "488cdc556461fa37ef2c3c3509400dbbe9f3546d", "size": 1531, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "examples/Fitzhugh-Nagumo/timing.jl", "max_stars_repo_name": "StanJulia/DiffEqBayesStan.jl", "max_stars_repo_head_hexsha": "6287f04fba4f7bf0b1c8d0e6c1dc39e614d7e24d", "max_stars_repo_licenses": ["MI...
import sys import warnings if sys.version_info >= (3, 8): from typing import Literal else: from typing_extensions import Literal from typing import Optional, Tuple, Union import igraph as ig import networkx as nx import numpy as np from edgeseraser.misc.backend import ig_erase, ig_extract, nx_erase, nx_extra...
{"hexsha": "bb9012f27fd6a992d6a86cb319c42e3adb987adc", "size": 7058, "ext": "py", "lang": "Python", "max_stars_repo_path": "edgeseraser/polya.py", "max_stars_repo_name": "devmessias/edgeseraser", "max_stars_repo_head_hexsha": "86b0517db6a13f90ceb7f4a6cca41d051fc80e09", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import numpy as np from scipy import sparse from numpy.testing import assert_allclose from alphacsc.utils.convolution import _sparse_convolve, _dense_convolve from alphacsc.utils.convolution import _choose_convolve from alphacsc.utils import check_random_state from alphacsc.utils import construct_X_multi from alphacsc...
{"hexsha": "8fa73bce16bbe7276444d8a8a2c815f68b89f81b", "size": 3027, "ext": "py", "lang": "Python", "max_stars_repo_path": "alphacsc/utils/tests/test_utils.py", "max_stars_repo_name": "sophiaas/alphacsc", "max_stars_repo_head_hexsha": "402b8f6c8ee4ba9c86e9da0e2073d900cf8da207", "max_stars_repo_licenses": ["BSD-3-Clause...
# Copyright 2017, Additive Regularization of Topic Models. from contextlib import contextmanager import shutil import glob import tempfile import os import numpy from scipy.sparse import csr_matrix import pytest from six.moves import range import artm def test_func(): data_path = os.environ.get('BIGARTM_UNITTE...
{"hexsha": "5cd01bc75baeb632f4430f631c3a67a07f23dc3d", "size": 8259, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/tests/artm/test_batches_utils.py", "max_stars_repo_name": "MelLain/bigartm", "max_stars_repo_head_hexsha": "79126b68500bd5b378d6d6168f1b68eb03971bcb", "max_stars_repo_licenses": ["BSD-3-Cla...
""" this is supposed to process the data files generated by livespec.py known bugs: - scaling of y values - set label in gnuplot to display fit equation other issues: -shitty gnuplot variables, not yet optimised - doesnt do error propagation from the measured tungsten spectrum ie errors are underestimated - quite clu...
{"hexsha": "bd305f7a21debd63fa6f3c75c311eefaade0e868", "size": 6341, "ext": "py", "lang": "Python", "max_stars_repo_path": "oceanoptics/get/process.py", "max_stars_repo_name": "zhengyang-c/photonLauncher", "max_stars_repo_head_hexsha": "76215f47ccd1178f1826834533f5702c4b8f2c35", "max_stars_repo_licenses": ["Apache-2.0"...
using OrdinaryDiffEq, Flux, Plots using Sundials using DiffEqSensitivity using ForwardDiff using ForwardDiff: jacobian, jacobian! using LinearAlgebra using BandedMatrices using Random using Statistics using ProgressBars, Printf using Flux.Optimise:update! using Flux.Losses:mae using BSON: @save, @load usin...
{"hexsha": "53d4d2df40ff1d4806002d6d62b278dc521cdbd3", "size": 1362, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/header.jl", "max_stars_repo_name": "DENG-MIT/DeepReduction", "max_stars_repo_head_hexsha": "f739f4cb6c306d8a8c459488af6209e9046e7ea7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul...
import matplotlib.pyplot as plt import cv2 import numpy as np import pandas as pd from tensorflow.keras.models import Model, Sequential from tensorflow.keras.layers import Conv2D, Conv2DTranspose, Reshape,LeakyReLU, Dropout import tensorflow as tf from tensorflow.keras.layers import AveragePooling2D,UpSampling2...
{"hexsha": "8b4f90c9eeddd1c387d9a02692e3e6e9acf9ab93", "size": 3559, "ext": "py", "lang": "Python", "max_stars_repo_path": "colorize_train.py", "max_stars_repo_name": "Csisz/colorize", "max_stars_repo_head_hexsha": "21c6b2f7c678957dee53734a315497b870eae1fc", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ...
# -*- coding: utf-8 -*- """ Arg validation for auto-arima calls. This allows us to test validation more directly without having to fit numerous combinations of models. """ import numpy as np import warnings from sklearn import metrics from pmdarima.warnings import ModelFitWarning # The valid information criteria VA...
{"hexsha": "044160591adb25bbffafa8f9efd8d16014b2a95e", "size": 5090, "ext": "py", "lang": "Python", "max_stars_repo_path": "pmdarima/arima/_validation.py", "max_stars_repo_name": "tuomijal/pmdarima", "max_stars_repo_head_hexsha": "5bf84a2a5c42b81b949bd252ad3d4c6c311343f8", "max_stars_repo_licenses": ["MIT"], "max_stars...
#include "StripWS.h" #include "PathDeleter.h" #include "main.h" #include "Utils.h" #include <boost/algorithm/string/replace.hpp> #include <boost/format.hpp> #include <fstream> namespace b = ::boost; using ::std::cout; using ::std::endl; using ::std::ifstream; using ::std::istream; using ::std::ios_base; using ::std...
{"hexsha": "f8576d633e5c9515f6fe46b077854f33a23581a4", "size": 4877, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "StripWS.cpp", "max_stars_repo_name": "IanEmmons/CmdLineUtil", "max_stars_repo_head_hexsha": "bd20d59d4d9fcc0d7d82a3031106d56ad10aad16", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count"...
# -*- coding: utf-8 -*-# ''' # Name: NN_Sin # Description: # Author: super # Date: 2020/5/24 ''' import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from HelperClass2.NeuralNet_2_0 import * from HelperClass2.DataReader_2_0 import * train_data_name = "../...
{"hexsha": "d7fed4c05ef0fc6b645cbc4a443aab62053d3cc1", "size": 1322, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/NonLinearRegression/NN_Sin.py", "max_stars_repo_name": "Knowledge-Precipitation-Tribe/Neural-network", "max_stars_repo_head_hexsha": "eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8", "max_stars_rep...
/- Copyright (c) 2018 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Reid Barton -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.category_theory.limits.shapes.images import Mathlib.category_theory.filtered i...
{"author": "AurelienSaue", "repo": "Mathlib4_auto", "sha": "590df64109b08190abe22358fabc3eae000943f2", "save_path": "github-repos/lean/AurelienSaue-Mathlib4_auto", "path": "github-repos/lean/AurelienSaue-Mathlib4_auto/Mathlib4_auto-590df64109b08190abe22358fabc3eae000943f2/Mathlib/category_theory/limits/types.lean"}
[STATEMENT] lemma handshake_in_syncD: "\<lbrakk> All (ghost_hs_in_sync (s sys)); handshake_phase_inv s \<rbrakk> \<Longrightarrow> \<forall>m'. mut_m.mut_ghost_hs_phase m' s = sys_ghost_hs_phase s" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>All (ghost_hs_in_sync (s sys)); handshake_phase_inv s\<r...
{"llama_tokens": 213, "file": "ConcurrentGC_Global_Invariants_Lemmas", "length": 1}
"""DFIG.py Created by Latha Sethuraman, Katherine Dykes. Copyright (c) NREL. All rights reserved.""" from openmdao.api import Group, Problem, ExplicitComponent,ExecComp,IndepVarComp,ScipyOptimizeDriver import numpy as np from math import pi, cos, sqrt, radians, sin, exp, log10, log, tan, atan class DFIG(ExplicitComp...
{"hexsha": "6df5588c67a52086f7e377df48bc539de0a10eeb", "size": 22530, "ext": "py", "lang": "Python", "max_stars_repo_path": "wisdem/drivetrainse/dfig.py", "max_stars_repo_name": "akey7/WISDEM", "max_stars_repo_head_hexsha": "29c5abbdfdc8800cfd18237e8e0edf0d10c7e02c", "max_stars_repo_licenses": ["Apache-2.0"], "max_star...
import numpy as np import numpy.matlib as npm import scipy as sc import random import sys DEBUG = False class DeepESN(): ''' Deep Echo State Network (DeepESN) class: this class implement the DeepESN model suitable for time-series prediction and sequence classification. Reference paper for D...
{"hexsha": "d0b3abc8e44ef1baa8e3559e0604170a10ffcc1a", "size": 16825, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/DeepESN/DeepESN.py", "max_stars_repo_name": "Wehzie/master-thesis", "max_stars_repo_head_hexsha": "40593b083c3b2ea9a547f4c925d66a50039f7340", "max_stars_repo_licenses": ["BSD-3-Clause"], "max...
from __future__ import absolute_import # Linear Model Wrapper Class # import numpy as np from sklearn.linear_model import LogisticRegression from web.data.en.datasets import SentimentLabelledWithTdIdfDataset import logging log = logging.getLogger() class LinearModelWrapper(): def __init__(self): self...
{"hexsha": "4ff881b025f611686ad9a123d36498824f2abcf6", "size": 1464, "ext": "py", "lang": "Python", "max_stars_repo_path": "web/modeling/linear_models.py", "max_stars_repo_name": "msolyakov/nlp-api-getting-started", "max_stars_repo_head_hexsha": "881830b73535ff89b8baa1b73349c12b4264b246", "max_stars_repo_licenses": ["A...
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- ''' @File : final_subpipe.py @Time : 2019/11/28 20:05:43 @Author : Yan Yang @Contact : yanyangbupt@gmail.com @Desc : None ''' # .::::. # .::::::::. # ::::::::::: # ..::::...
{"hexsha": "cc73021d697d97a297ddb564e1d10dcc6dad93ca", "size": 28943, "ext": "py", "lang": "Python", "max_stars_repo_path": "final_subpipe.py", "max_stars_repo_name": "YanYangB/disambiguation", "max_stars_repo_head_hexsha": "068332dfc794c5fac848763e7d3116431a50d861", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
\documentclass[color=usenames,dvipsnames]{beamer}\usepackage[]{graphicx}\usepackage[]{color} % maxwidth is the original width if it is less than linewidth % otherwise use linewidth (to make sure the graphics do not exceed the margin) \makeatletter \def\maxwidth{ % \ifdim\Gin@nat@width>\linewidth \linewidth \els...
{"hexsha": "a28df69df3820375ad0c6223c73b69bed1527e9c", "size": 22609, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "labs/ANCOVA/lab-ANCOVA.tex", "max_stars_repo_name": "rbchan/exp-design", "max_stars_repo_head_hexsha": "89bce9e600c6d4601b70eb5cd02531fc1dfa950e", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
# ps3000_overview_buffer_ps_status.jl export ps3000_overview_buffer_status function ps3000_overview_buffer_status(handle :: Int16) # returns true if buffer has overrun previous_buffer_overrun = Ref{Int16}() ps_status = ccall((:ps3000_overview_buffer_status, ps3000driver),Int16, (Int16, Ref{Int16}), handle, ...
{"hexsha": "5ada2f8f433bb2e979ae341d5a517ba1fd04334f", "size": 465, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ps3000_overview_buffer_status.jl", "max_stars_repo_name": "cstook/PicoScope.jl", "max_stars_repo_head_hexsha": "6341136964772295280264486be21692736c191d", "max_stars_repo_licenses": ["MIT"], "ma...
subroutine DSVALA ( K, N, T, NDERIV, BDIF, X, SVALUE) c Copyright (c) 1996 California Institute of Technology, Pasadena, CA. c ALL RIGHTS RESERVED. c Based on Government Sponsored Research NAS7-03001. c>> 1994-10-20 DSVALA Krogh Changes to use M77CON c>> 1993-01-12 DSVALA CLL Bringing basis computation inline. c...
{"hexsha": "b3f85d8d795aab23bc6c45388973e58a905e5f35", "size": 3767, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/MATH77/dsvala.f", "max_stars_repo_name": "jacobwilliams/math77", "max_stars_repo_head_hexsha": "b562d09e191e99eba8a5bedfec45acf7461203b1", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta...
module Exam using DataFrames using CSV using YAML using Plots using DataStructures export read_exam export read_grading export evaluate # for half points Float64 is exact! const MyFixedPointNumber = Float64 include("bonus.jl") include("plotting.jl") """ get_grades(exam) Get a list of all grades """ function ...
{"hexsha": "d4c84fc12c081a7a3333ee45b751021a5564c31c", "size": 2789, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Exam.jl", "max_stars_repo_name": "roflmaostc/Exam.jl", "max_stars_repo_head_hexsha": "837172b29541cbfcb89dc641dd6496b14c7f045e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "max_s...
You will fear the colossus, I know I do! I will get the nutritional values for it just because Im curious in a morbid way. This is an eating challenge, kinda like the Boss Hog from the Educated Eatery The Burger contains from top to bottom: Bun usually sourdough, but it was regular this time Santa Fe s...
{"hexsha": "9d2497c8e19dffaeb077682e0459e0c246af4788", "size": 1220, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/The_Colossus_Burger.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_star...
! written by jxzou at 20171108: transfer MOs from GAMESS .dat/.inp file to Gaussian .fch(k) file ! updated by jxzou at 20180222: support UHF type MOs ! updated by jxzou at 20190105: support ROGVB type MOs ! updated by jxzou at 20190226: change data to parameter when declare constant arrays ! updated by jxzou at 2020032...
{"hexsha": "4ba2d77da8b11be794d141a87a2eaf3e1032efcc", "size": 15164, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/dat2fch.f90", "max_stars_repo_name": "1234zou/MOKIT", "max_stars_repo_head_hexsha": "47171b0c168212ef27281882085fbb23055c3ea3", "max_stars_repo_licenses": ["FSFAP"], "max_stars_count": 9, "...
library(getip) ### should not work test = try(hostname2ip(1:10), silent=TRUE) stopifnot(inherits(test, "try-error")) test = try(hostname2ip("asdf"), silent=TRUE) stopifnot(inherits(test, "try-error")) ### should work hosts = "localhost" test = hostname2ip(hosts)[[1]][1] stopifnot(identical(test, "127.0.0.1"))
{"hexsha": "096d9c8ed2dadfb5a86261aa5c7012fc2084ae57", "size": 316, "ext": "r", "lang": "R", "max_stars_repo_path": "tests/hostname2ip.r", "max_stars_repo_name": "cran/getip", "max_stars_repo_head_hexsha": "c77978ca062d2e82c93cafe64148f0967073dbf7", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_count": null, ...
## Automatically adapted for numpy.oldnumeric May 17, 2011 by -c import os, sys, re, types from nltk.chktype import chktype as _chktype from nltk.chktype import classeq as _classeq from nltk.corpus import SimpleCorpusReader,set_basedir from nltk.token import Token from nltk.tokenizer import TokenizerI, RegexpTokenizer...
{"hexsha": "f040b0a150fbb32d987667b78e7a37d0120f43d8", "size": 13442, "ext": "py", "lang": "Python", "max_stars_repo_path": "neural-navigation-with-lstm/MARCO/DirectionCorpus.py", "max_stars_repo_name": "ronaldahmed/SLAM-for-ugv", "max_stars_repo_head_hexsha": "52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d", "max_stars_repo...
#! /bin/env python import glob import csv import pylab import matplotlib.pyplot as plt import numpy as np from lmfit.models import SkewedGaussianModel from scipy.optimize import curve_fit from scipy.misc import factorial from scipy.stats import skewnorm if __name__ == "__main__": files = glob.glob('2017*_cycles....
{"hexsha": "e2b649cccc83752544644fb82e362b7bbe970ba5", "size": 1474, "ext": "py", "lang": "Python", "max_stars_repo_path": "draw_errors.py", "max_stars_repo_name": "phil-lopreiato/tba-time-predictions", "max_stars_repo_head_hexsha": "49cbc525e94637ed4e4dd382009d58edb378e1e8", "max_stars_repo_licenses": ["MIT"], "max_st...
# -*- coding: utf-8 -*- import numpy as np from numba.core import types as nbtypes, cgutils from numba.extending import typeof_impl, models, make_attribute_wrapper, \ register_model, box, unbox, NativeValue, overload_method from scipy.sparse import issparse from scipy.sparse import csr_matrix as csr_scipy from .ut...
{"hexsha": "b52ad4ac5a118d4b9183475ddad0b721fdda1b94", "size": 6246, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/dewloosh/math/linalg/sparse/csr.py", "max_stars_repo_name": "dewloosh/dewloosh-math", "max_stars_repo_head_hexsha": "41e2e4a9a92b567a7ef93f7414a1e439bf7dd9f4", "max_stars_repo_licenses": ["MIT...
import numpy as np import time from ase import Atoms from ase.calculators.calculator import Calculator, all_changes from qml.kernels import (get_atomic_local_gradient_kernel, get_atomic_local_kernel) from qml.representations import generate_fchl_acsf from rdkit import Chem from rdkit.Chem im...
{"hexsha": "1b11d96ef71a7cc155fac0f939d76d2bb0a5331f", "size": 8534, "ext": "py", "lang": "Python", "max_stars_repo_path": "calculators.py", "max_stars_repo_name": "andersx/qml-ase", "max_stars_repo_head_hexsha": "147e06d701b79d7a2935eb3274904ad43eb68155", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "max_...
# Copyright (c) 2020 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 app...
{"hexsha": "3de96959eb4d6149f7a14fc1381f43e74f66f8d7", "size": 3155, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/paddle/fluid/tests/unittests/test_broadcast_to_op.py", "max_stars_repo_name": "L-Net-1992/Paddle", "max_stars_repo_head_hexsha": "4d0ca02ba56760b456f3d4b42a538555b9b6c307", "max_stars_repo_...
from tensorflow_text.python.ops.sentencepiece_tokenizer import SentencepieceTokenizer as TFSentencepieceTokenizer import tensorflow as tf from transformers import (T5Tokenizer, TFT5ForConditionalGeneration, generation_tf_utils as _tfu) import transformers from tensorf...
{"hexsha": "bfe40b55084c5530a868aa2e821bc70495757119", "size": 29526, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/t5s.py", "max_stars_repo_name": "adfre18/t5s", "max_stars_repo_head_hexsha": "7b35b14e55b829f0a4c749e321d174e9aad4e780", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 5, "max_...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from ray.rllib.models.tf.tf_modelv2 import TFModelV2 from ray.rllib.utils import try_import_tf tf = try_import_tf() class DDPGModel(TFModelV2): """Extension of standard TFModel for DD...
{"hexsha": "4c1ecba0e69b808dd5aa37ab96e918d3c8f13e51", "size": 9829, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/ray/rllib/agents/ddpg/ddpg_model.py", "max_stars_repo_name": "tonymackinnon/ray", "max_stars_repo_head_hexsha": "14a1419682bdba40d2c8bf226e1727cf44abcaa4", "max_stars_repo_licenses": ["Apac...
function grab_tag(string, tag) tag = match(Regex("\"$tag\":.*?(.*?),"), string) return tag.captures[1] end in_path = ARGS[1] out_path = ARGS[2] file_out = open(out_path, "w") #data_dir = "data/mqtt" data_dir = in_path data_files = readdir(data_dir) write(file_out, "latitude, longitude, distance, timestamp\n...
{"hexsha": "0c8cdcfbeb3eab6a8603a64acb57a2dc5b6eb477", "size": 721, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "scripts/hydroimport/misc_julia/mqtt_process.jl", "max_stars_repo_name": "smart-facility/smart-faware", "max_stars_repo_head_hexsha": "a4764c78e427a98eeee5d6f73e4da639c2a21d38", "max_stars_repo_licen...
import csv import numpy as np import scipy import matplotlib.pyplot as plt from collections import defaultdict from sklearn import preprocessing from sklearn.metrics import silhouette_score from scipy.cluster.hierarchy import fclusterdata from scipy.spatial.distance import pdist, squareform ratings_file = "ratings.cs...
{"hexsha": "ffe86131c3cfd137d1b49b83f02f1563580642c4", "size": 1830, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/cluster_movies.py", "max_stars_repo_name": "srirambaskaran/hybrid-movie-recommender-system", "max_stars_repo_head_hexsha": "b222abd3c2dd6c5b547126627316293c329be06f", "max_stars_repo_licenses"...
import random, math import numpy as np from gradnet import Model, Input, Loss from gradnet.layers import Dense, LSTM, Concatenate, Flatten from gradnet.optimizers import get_optimizer from gradnet.activations import get_activation from gradnet.losses import get_loss try: from numba import jit print("numba impo...
{"hexsha": "6238f24e197d56b75d986af2a77241267fea7931", "size": 30203, "ext": "py", "lang": "Python", "max_stars_repo_path": "rlpy/gradnet/samples/combined/ac_combined.py", "max_stars_repo_name": "imandr/RLpy", "max_stars_repo_head_hexsha": "f01cf7af47b6054e4e52d663ceafc463df6f6166", "max_stars_repo_licenses": ["BSD-3-C...
[STATEMENT] lemma sort_map_strict_mono: fixes f :: "nat \<Rightarrow> 'b :: linorder" shows "j < n \<Longrightarrow> i < j \<Longrightarrow> sort_map f n i \<le> sort_map f n j" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>j < n; i < j\<rbrakk> \<Longrightarrow> sort_map f n i \<le> sort_map f n j [PR...
{"llama_tokens": 7568, "file": "Median_Method_Median", "length": 45}
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/server/admincommands/CustomCounters.h" #include <algorithm> #inclu...
{"hexsha": "eef469688efe5f4cfa610d7291a960b79b2d2fbf", "size": 7157, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "logdevice/server/admincommands/CustomCounters.cpp", "max_stars_repo_name": "majra20/LogDevice", "max_stars_repo_head_hexsha": "dea0df7991120d567354d7a29d832b0e10be7477", "max_stars_repo_licenses": [...
""" Processing IRAC BCDs """ import glob import os import inspect import traceback from collections import OrderedDict import numpy as np import numpy.ma import astropy.io.fits as pyfits import astropy.wcs as pywcs import astropy.units as u from photutils import (HanningWindow, TukeyWindow, ...
{"hexsha": "315031855b41a678dbab6be0fd259354458d38bf", "size": 72412, "ext": "py", "lang": "Python", "max_stars_repo_path": "golfir/irac.py", "max_stars_repo_name": "gbrammer/golfir", "max_stars_repo_head_hexsha": "967d13c5476bcf80aec622c1bf09ecee7e7255f8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max...
# MINLP written by GAMS Convert at 08/20/20 01:30:47 # # Equation counts # Total E G L N X C B # 1504 542 337 625 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
{"hexsha": "e82e488b55de4c58c46424d83134f4a2cf2dbd11", "size": 151992, "ext": "py", "lang": "Python", "max_stars_repo_path": "models_nonconvex_simple2/crudeoil_lee1_06.py", "max_stars_repo_name": "grossmann-group/pyomo-MINLP-benchmarking", "max_stars_repo_head_hexsha": "714f0a0dffd61675649a805683c0627af6b4929e", "max_s...
import pandas as pd import quandl, math, datetime, pickle import numpy as np from sklearn import preprocessing, svm, model_selection from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt from matplotlib import style style.use('ggplot') df = quandl.get('WIKI/GOOGL', api_key = 'CY...
{"hexsha": "30d150a222310c2c7efd63db35c1f4f08fc9d945", "size": 1955, "ext": "py", "lang": "Python", "max_stars_repo_path": "Python/linearRegression.py", "max_stars_repo_name": "thefool76/hacktoberfest2021", "max_stars_repo_head_hexsha": "237751e17a4fc325ded29fca013fb9f5853cd27c", "max_stars_repo_licenses": ["CC0-1.0"],...
# -*- coding: utf-8 -*- import copy import json import time import cvxpy as cp import pyclipper from nfp_utls import almost_equal from nfp_utls import D_function from nfp_utls import edge_point_distance from nfp_utls import get_polygon_bounds from nfp_utls import is_convex from nfp_utls import polygon_area from nfp_u...
{"hexsha": "7385ce91097a919774e094ce41c1f9c76343edce", "size": 23062, "ext": "py", "lang": "Python", "max_stars_repo_path": "placement_worker.py", "max_stars_repo_name": "zhuyuanxiang/irregular_packing-1", "max_stars_repo_head_hexsha": "5de4bf7ca51b6263ef44c1c7a6495e8b215e900c", "max_stars_repo_licenses": ["MIT"], "max...
import cv2 import numpy as np import os LABEL = { "ca_2_tay_chap_vao_hong_phai": 1, "chap_tay": 2, "ngam_hoa": 3, "phai_thang_trai_dang_hoa": 4, "tay_phai_hong_tay_trai_hoa": 5, "xoay_nguoi": 6 } def cut_frame(path): img = cv2.imread(path, 0) ret, thresh = cv2.threshold(img, 127, 255,...
{"hexsha": "18ec0d7daa0bf6d202e1a761e458101c03bf8a31", "size": 1679, "ext": "py", "lang": "Python", "max_stars_repo_path": "classify.py", "max_stars_repo_name": "trungbanh/hand_dance", "max_stars_repo_head_hexsha": "b4e985eaf94fa3f27b61b3f9697e006a56e3604a", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count":...
using IRTools, Test using IRTools: Meta, TypedMeta, meta, typed_meta @generated f(x) = :(x+x) @test meta(Tuple{typeof(gcd),Int,Int}) isa Meta @test meta(Tuple{typeof(f),Int}) isa Meta @test typed_meta(Tuple{typeof(gcd),Int,Int}) isa TypedMeta @test typed_meta(Tuple{typeof(f),Int}) isa TypedMeta
{"hexsha": "459fafe27dd170e965d5a7c047a6cec6ff7b89b3", "size": 300, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/reflection.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/IRTools.jl-7869d1d1-7146-5819-86e3-90919afe41df", "max_stars_repo_head_hexsha": "65d677ceeb9aeed6aade3cd4fb3a03368fdaad13"...
[GOAL] C : Type u₁ inst✝¹ : Category.{v₁, u₁} C inst✝ : Preadditive C X✝ Y✝ : Mat_ C f : X✝ ⟶ Y✝ ⊢ 𝟙 X✝ ≫ f = f [PROOFSTEP] simp [dite_comp] [GOAL] C : Type u₁ inst✝¹ : Category.{v₁, u₁} C inst✝ : Preadditive C X✝ Y✝ : Mat_ C f : X✝ ⟶ Y✝ ⊢ f ≫ 𝟙 Y✝ = f [PROOFSTEP] simp [comp_dite] [GOAL] C : Type u₁ inst✝¹ : Category...
{"mathlib_filename": "Mathlib.CategoryTheory.Preadditive.Mat", "llama_tokens": 39746}
from __future__ import division import sys import numpy import os import math import urllib2 import cv2 import numpy as np from geopy.geocoders import Nominatim ZOOM = 18 HEIGHT = 512 DISTANCE_1M = 4 # Distance in pixels for 50 meters MANUAL_MODE = 0 AUTONOMOUS_MODE = 1 WINDOW_NAME = "Display Window" class Vertex: ...
{"hexsha": "2d3bdbf595ed29701a00331caae06c2176eb560b", "size": 9514, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/path_planning.py", "max_stars_repo_name": "Autonomappr/droneCode", "max_stars_repo_head_hexsha": "0f4ecd7868b1974ac4039c1a1016a019bac753ed", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
""" ## Uformer: A General U-Shaped Transformer for Image Restoration ## Zhendong Wang, Xiaodong Cun, Jianmin Bao, Jianzhuang Liu ## https://arxiv.org/abs/2106.03106 """ import torch import torch.nn as nn import torch.utils.checkpoint as checkpoint from timm.models.layers import DropPath, to_2tuple, trunc_normal_ impor...
{"hexsha": "1cc54956e8b24a460d2ee32c7d5cc24ed12b3f98", "size": 136644, "ext": "py", "lang": "Python", "max_stars_repo_path": "uformer1104/model.py", "max_stars_repo_name": "LeiGitHub1024/lowlight", "max_stars_repo_head_hexsha": "86649ae4275b8908d39561792a8068d391318f8d", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
#!/usr/bin/env python3 import argparse from pathlib import Path parser = argparse.ArgumentParser( description="Create data that can be used to train a random forest classifier implemented by ranger." ) parser.add_argument( "features", type=Path, help="the path to a file containing tsv files (for each image in ...
{"hexsha": "4eff7bb72afd8de21a278fc536f4c5db0b2213aa", "size": 4901, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/create_truth_data.py", "max_stars_repo_name": "aryarm/flower_map", "max_stars_repo_head_hexsha": "a4ad1a16abd7a8bf204d76b89e172d12ae1e1389", "max_stars_repo_licenses": ["MIT"], "max_stars_...
import numpy as np import random import datetime import math import sys from scipy import integrate from scipy.interpolate import interp1d from joblib import Parallel, delayed import healpy as hp sims=[sys.argv[1]] startID=int(sys.argv[2]) simulationType=int(sys.argv[3]) outRedshiftList=[0.5,1.0,1.5,2.0,2.5,3.0,4.0...
{"hexsha": "11932120e2a8047aaa6166550feed409f56c7005", "size": 5114, "ext": "py", "lang": "Python", "max_stars_repo_path": "ISW_map.py", "max_stars_repo_name": "beckrob/AvERA_ISW", "max_stars_repo_head_hexsha": "2eb3fe6d0346513e1b50bbfdbfa1714c6353a35d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max...
########################################################################################## ### Logging section ########################################################################################## def SentEmail(self,event = b'test', category = b'user'): from pulse_generator_LL import pulse_genera...
{"hexsha": "e38a246445f7003f456ef86f410cf26bf7fd9957", "size": 17232, "ext": "py", "lang": "Python", "max_stars_repo_path": "icarus_nmr/logging_logging.py", "max_stars_repo_name": "vstadnytskyi/icarus-nmr", "max_stars_repo_head_hexsha": "9f86ebb66256482023df4c15e552a5dd5573d3ba", "max_stars_repo_licenses": ["BSD-3-Clau...
! { dg-additional-options "-cpp" } ! TODO: Have to disable the acc_on_device builtin for we want to test the ! libgomp library function? The command line option ! '-fno-builtin-acc_on_device' is valid for C/C++/ObjC/ObjC++ but not for ! Fortran. use openacc implicit none ! Host. if (.not. acc_on_device (acc_device_...
{"hexsha": "1a10f32ab3a46156afaf987e56af799b3cf01a75", "size": 1180, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "gcc-gcc-7_3_0-release/libgomp/testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90", "max_stars_repo_name": "best08618/asylo", "max_stars_repo_head_hexsha": "5a520a9f5c461ede0f32acc284017b737a43...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. // This file was modified by...
{"hexsha": "070e8f56b050eda04fb827428a8cabc5ededa6e1", "size": 3958, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "boost/geometry/strategies/cartesian/area.hpp", "max_stars_repo_name": "cpp-pm/boost", "max_stars_repo_head_hexsha": "38c6c8c07f2fcc42d573b10807fef27ec14930f8", "max_stars_repo_licenses": ["BSL-1.0"]...
"""define base class model""" import abc import math import tensorflow as tf from sklearn import metrics import os from src import misc_utils as utils import numpy as np from tensorflow.contrib.layers.python.layers import batch_norm as batch_norm import time from tqdm import tqdm import pandas as pd from sklearn import...
{"hexsha": "b048ef2f34418bdc7bfe8f9f75ac12a08c8359b6", "size": 14226, "ext": "py", "lang": "Python", "max_stars_repo_path": "models/base_model.py", "max_stars_repo_name": "wr339988/TencentAlgo19", "max_stars_repo_head_hexsha": "6506bc47dbc301018064e96cd1e7528609b5cb6c", "max_stars_repo_licenses": ["Apache-2.0"], "max_s...
""" CorrectIlluminationApply ======================== **CorrectIlluminationApply** applies an illumination function, usually created by **CorrectIlluminationCalculate**, to an image in order to correct for uneven illumination/lighting/shading or to reduce uneven background in images. This module applies a previously ...
{"hexsha": "62a70aa449174765fa7a1868767089ba40735cd3", "size": 16247, "ext": "py", "lang": "Python", "max_stars_repo_path": "CellProfiler/cellprofiler/modules/correctilluminationapply.py", "max_stars_repo_name": "aidotse/Team-rahma.ai", "max_stars_repo_head_hexsha": "66857731e1ca2472e0783e37ba472b55a7ac9cd4", "max_star...
## # Splits the userinfo portion of an URI in the format user:password and # returns the components as tuple. # # Note: This is just a convenience method, and this form of usage is # deprecated as of rfc3986. # See: http://tools.ietf.org/html/rfc3986#section-3.2.1 function userinfo(uri::URI) Base.warn_once("Use of ...
{"hexsha": "046799e95bcfa3815a3c571cacdfb568c1603762", "size": 3081, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/utils.jl", "max_stars_repo_name": "vtjnash/URIParser.jl", "max_stars_repo_head_hexsha": "18947a0f079935fd58efd57970501a7411c06c36", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ...
import pickle import shutil from pathlib import Path import numpy as np import pytest from nanomesh.mesh3d import generate_3d_mesh, get_region_markers TETGEN_NOT_AVAILABLE = shutil.which('tetgen') is None @pytest.fixture def segmented_image(): """Generate segmented binary numpy array.""" image = np.ones((2...
{"hexsha": "1f09c82f1b0eec6e673c82ad51f58fb413b6f9ac", "size": 2161, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_mesh3d.py", "max_stars_repo_name": "hpgem/nanomesh", "max_stars_repo_head_hexsha": "f395640bb784da531677f193766dbd9f69b61a67", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_coun...
# coding=utf-8 # Copyright 2018 The HugginFace Inc. team. # # 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": "81878a788b86abfbaa2311a0cc8878ba97826c64", "size": 4832, "ext": "py", "lang": "Python", "max_stars_repo_path": "convert_tf_checkpoint_to_pytorch.py", "max_stars_repo_name": "ylhsieh/pytorch-pretrained-BERT", "max_stars_repo_head_hexsha": "be3d9afd331c7eb967df54155a0be97ffb0de798", "max_stars_repo_licenses":...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
{"hexsha": "1ca23a0a809996c0472bd955e7d68b0bed444ff5", "size": 5989, "ext": "py", "lang": "Python", "max_stars_repo_path": "object_detection_app/app.py", "max_stars_repo_name": "swapithorat/obj-det-using-ml", "max_stars_repo_head_hexsha": "9ac8ece4f67820076b794d577391ec77a92b4ca0", "max_stars_repo_licenses": ["Apache-2...
export MultiSpanProcessor, SimpleSpanProcessor, InMemorySpanExporter, ConsoleSpanExporter abstract type AbstractSpanProcessor end struct MultiSpanProcessor <: AbstractSpanProcessor span_processors::Vector is_spawn::Bool MultiSpanProcessor(ps...;is_spawn=true) = new([ps...], is_spawn) end for ...
{"hexsha": "a706e9ae4d94481fed94785a6c8569837ffec659", "size": 2859, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/sdk/src/trace/span_processor.jl", "max_stars_repo_name": "findmyway/OpenTelemetry.jl", "max_stars_repo_head_hexsha": "9459de9d3a80e2fc2aa98ff81e5c96a54d62f7da", "max_stars_repo_licenses": ["Apa...
library("readr") library("dplyr") library("here") library("lubridate") library("ggplot2") library("janitor") library("tidyr") scraped_files <- list.files("data", pattern = "COVID-") official_files <- list.files("data", pattern = "official-") scraped <- list() official <- list() for (file in scraped_files) { file_d...
{"hexsha": "eadd773a8bce4c5910907828a8d9289ecac81148", "size": 4328, "ext": "r", "lang": "R", "max_stars_repo_path": "code/auto_download/hospitalisations/check-sources/select_hosp_sources.r", "max_stars_repo_name": "KITmetricslab/covid19-forecast-hub-europe", "max_stars_repo_head_hexsha": "78d991d3ac63b32171a1dcbb60572...
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
{"hexsha": "73c62a922531f64f607b1fe87187596d0072c2c6", "size": 6796, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/datasets/image_files/mnist.py", "max_stars_repo_name": "FeynmanDNA/singa-auto", "max_stars_repo_head_hexsha": "e96982adc689335a323a5a32d03b23942e01d09f", "max_stars_repo_licenses": ["Apac...
from re import I import numpy as np import torch import matplotlib.pyplot as plt import os, glob import json from ossid.datasets.render_dataset import loadHdf5 from tqdm import tqdm from multiprocessing import Pool def main(): # input_root = "/home/qiaog/datasets/render/shapenetcc2/" input_root = "/home/qiaog...
{"hexsha": "e3d84843e645c30f69499ac00bb4d86eabb7864d", "size": 1758, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/ossid/scripts/index_render_dataset.py", "max_stars_repo_name": "r-pad/OSSID_code", "max_stars_repo_head_hexsha": "b80d429a3fa4464a69a78dc2112d52b4f05d0dfe", "max_stars_repo_licenses": ["MIT...
import numpy as np import tensorflow as tf # A general class for building networks class NetworkBuilder(object): """ A highly customizable Network Builder Class Help Dialogue ex: c2d+:16:3:1_c2d:16:3:2_h:4096:2048_p:512_v:512 Lets you write a string syntax for specifying different models arch. This builds a...
{"hexsha": "9eca766470681c3e4f6ab2cd95d8df159f7f080e", "size": 5703, "ext": "py", "lang": "Python", "max_stars_repo_path": "common/network.py", "max_stars_repo_name": "zamlz/dlcampjeju2018-I2A-cube", "max_stars_repo_head_hexsha": "85ae7a2084ca490ea685ff3d30e82720fb58c0ea", "max_stars_repo_licenses": ["MIT"], "max_stars...
#include <iostream> #include <sstream> #include <string> #include <boost/test/minimal.hpp> #include <RCF/RCF.hpp> #include <RCF/util/CommandLine.hpp> #include <RCF/util/PortNumbers.hpp> #include <SF/memory.hpp> RCF_BEGIN(I_X, "I_X") RCF_METHOD_V0(void, increment) RCF_METHOD_R0(int, getCount)...
{"hexsha": "ca4801d80bdc3030d00ee1af77576fdba81be84f", "size": 2970, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "master/core/third/RCF/test/Test_StubSerialization.cpp", "max_stars_repo_name": "importlib/klib", "max_stars_repo_head_hexsha": "a59837857689d0e60d3df6d2ebd12c3160efa794", "max_stars_repo_licenses": ...
using QContinuousMeasurement using Test @testset "Pretty printing" begin @testset "LocalDephasingModel" begin Nj = 2 modelparams = ModelParameters(Nj=Nj) model = LocalDephasingModel(modelparams) initial_state = blockdiag_css(Nj) println(model) println(initial_state...
{"hexsha": "483626e3d80cdbe2d79980e43ea5bdce9242eab2", "size": 333, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/test_show.jl", "max_stars_repo_name": "matteoacrossi/QContinuousMeasurement.jl", "max_stars_repo_head_hexsha": "5e619206c68cada749e2da66a2388d40edfdd753", "max_stars_repo_licenses": ["MIT"], "m...
#-*- coding: utf-8 -*- import math import numpy as np import paddle.fluid as fluid from paddle.fluid.param_attr import ParamAttr from tqdm import tqdm class DuelingDQNModel(object): def __init__(self, state_dim, action_dim, gamma, hist_len, use_cuda=False): self.img_height = state_dim[0] self.img...
{"hexsha": "4c6dbbfb79b4e4a069b32297c9a48b737ec7145f", "size": 7642, "ext": "py", "lang": "Python", "max_stars_repo_path": "PaddleRL/DeepQNetwork/DuelingDQN_agent.py", "max_stars_repo_name": "FrancisLiang/models-1", "max_stars_repo_head_hexsha": "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "max_stars_repo_licenses": ["A...
rm(list=ls()) library('radolc') #--- testing ADOLC's hessian fr <- function(x) { ## Rosenbrock Banana function x1 <- x[1] x2 <- x[2] y <- 100 * (x2 - x1 * x1)* (x2 - x1 * x1) + (1 - x1)*(1 - x1) y } trace_on(1) x <- adolc_createList(2,2.0) badouble_declareIndependent(x) y <- fr(x) badouble_declareDependen...
{"hexsha": "62b07a9842b7961d6ec63455c15931a696600ab7", "size": 692, "ext": "r", "lang": "R", "max_stars_repo_path": "tests/hessian.r", "max_stars_repo_name": "sriharikrishna/autodiffadolc", "max_stars_repo_head_hexsha": "67d6e9beb20395f2910ecb9d5ac9bc4a7bda9333", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_...
import numpy as np import matplotlib.pyplot as plt points = np.loadtxt('day13/input.txt',dtype=int,delimiter=',',max_rows=794) folds = np.loadtxt('day13/input.txt',dtype=str,delimiter='=',skiprows=795) folds[:,0] = [i[-1] for i in folds[:,0]] for axis,value in zip(folds[:,0],folds[:,1].astype(int)): for point in ran...
{"hexsha": "0082bb98d51c31e08a121d14796c139818b7fb70", "size": 786, "ext": "py", "lang": "Python", "max_stars_repo_path": "day13/day13.1.py", "max_stars_repo_name": "Dwaris/aoc-2021", "max_stars_repo_head_hexsha": "db8d4c736239a5ba97a41c0f1a7386333a89b0cf", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_count"...
# coding=utf-8 import numpy as np import cv2 import scipy.misc import os #import matplotlib.pyplot as plt import time import GLG L = 256 subsize_H = 30 subsize_W = 30 def aglg(img): #image = np.copy(img) Ori_height,Ori_width = np.shape(img) height,width = np.shape(img) if height % subsi...
{"hexsha": "7bc17e8e2f466ded98fad76a15f477b099cfd311", "size": 4657, "ext": "py", "lang": "Python", "max_stars_repo_path": "AGLG.py", "max_stars_repo_name": "linyacool/GLG", "max_stars_repo_head_hexsha": "fe1ad0466c6efb755f814452098b9ecf05a23145", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 8, "max_stars_rep...
[STATEMENT] lemma no_loop_in_tree: "(v,v) \<notin> (tree_edges s)\<^sup>+" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (v, v) \<notin> (tree_edges s)\<^sup>+ [PROOF STEP] using tree_path_disc [PROOF STATE] proof (prove) using this: (?v, ?w) \<in> (tree_edges s)\<^sup>+ \<Longrightarrow> \<delta> s ?v < \<delt...
{"llama_tokens": 194, "file": "DFS_Framework_Invars_DFS_Invars_Basic", "length": 2}
! SW4 LICENSE ! # ---------------------------------------------------------------------- ! # SW4 - Seismic Waves, 4th order ! # ---------------------------------------------------------------------- ! # Copyright (c) 2013, Lawrence Livermore National Security, LLC. ! # Produced at the Lawrence Livermore National Labo...
{"hexsha": "2919dfc87250fa0bb3a5f9ce2718035429f2757a", "size": 64236, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "sw4lite-cuda/tests/testil/curvilinear4sg.f", "max_stars_repo_name": "jchlanda/oneAPI-DirectProgramming", "max_stars_repo_head_hexsha": "82a1be635f89b4b2a83e36965a60b19fd71e46b2", "max_stars_repo_...
#!/usr/bin/env python from collections import OrderedDict from math import cos, radians, sin, sqrt import select import sys import termios import tty from geometry_msgs.msg import Quaternion, Transform, Vector3 from ihmc_msgs.msg import AbortWalkingRosMessage from ihmc_msgs.msg import ArmTrajectoryRosMessage from ih...
{"hexsha": "fb0bc092fab441e75a416b62c0ec2b065650a2c3", "size": 27663, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/keyboard_teleop.py", "max_stars_repo_name": "osrf/srcsim", "max_stars_repo_head_hexsha": "2225f6743ab993ef6f7f35d562109b04f60e350d", "max_stars_repo_licenses": ["ECL-2.0", "Apache-2.0"], ...
[STATEMENT] lemma SUP_LE_P_least: "(!! v . pair v i \<le> u \<Longrightarrow> P v i \<le> Q) \<Longrightarrow> SUP_LE_P P u i \<le> Q" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (\<And>v. pair v i \<sqsubseteq> u \<Longrightarrow> P v i \<sqsubseteq> Q) \<Longrightarrow> SUP_LE_P P u i \<sqsubseteq> Q [PROOF S...
{"llama_tokens": 155, "file": "DataRefinementIBP_Diagram", "length": 1}
# # Copyright 2020 Antoine Sanner # # ### MIT 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, copy, modify, me...
{"hexsha": "d74a782d07c0159fc8f05522fc435859777c27b6", "size": 1728, "ext": "py", "lang": "Python", "max_stars_repo_path": "RandomFields/Analysis/scalar_parameters.py", "max_stars_repo_name": "ComputationalMechanics/RandomFields", "max_stars_repo_head_hexsha": "1820012e942b6b098791d1398742b1f380adbc77", "max_stars_repo...
# This test suite is meant to test everything related to forging, i.e. making # numpy arrays out of BluePrints from hypothesis import given import hypothesis.strategies as hst import pytest import numpy as np import broadbean as bb from broadbean.blueprint import _subelementBuilder, SegmentDurationError from broadbea...
{"hexsha": "92ffad70fd9fb9a064b4f25b67a3daf29007e24c", "size": 4151, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_forging.py", "max_stars_repo_name": "basnijholt/broadbean", "max_stars_repo_head_hexsha": "6726d7fa2f269d993d86cf341d487f7a097495dd", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
''' The code is derived from https://github.com/yysijie/st-gcn BSD 2-Clause License Copyright (c) 2017, Multimedia Laboratary, The Chinese University of Hong Kong All rights reserved. Copyright (c) 2021 DATA Lab at Texas A&M University Redistribution and use in source and binary forms, with or without modification, ...
{"hexsha": "a9e0c785176b1293e0bbede7e9d97aee180a7e38", "size": 28853, "ext": "py", "lang": "Python", "max_stars_repo_path": "autovideo/recognition/stgcn_primitive.py", "max_stars_repo_name": "datamllab/autovideo", "max_stars_repo_head_hexsha": "34a702fe9d3114e7128dcff12cb43369e4932919", "max_stars_repo_licenses": ["MIT...
@testset "1.1.1.6 P(x) (a+b x)^m (c+d x)^n (e+f x)^p" begin (A, B, C, a, b, c, d, e, f, x, ) = @variables A B C a b c d e f x #= ::Package:: =# #= ::Title:: =# #=Integrands*of*the*form*P(x)*(a+b*x)^m*(c+d*x)^n*(e+f*x)^p=# #= ::Section::Closed:: =# #=Integrands*of*the*form*(a+b*x)^m*(c+d*x)^n...
{"hexsha": "d2d07d95df1c99fb2a93f8c204fa3bd46a17998f", "size": 64021, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/1 Algebraic functions/1.1 Binomial products/1.1.1 Linear/1.1.1.6 P(x) (a+b x)^m (c+d x)^n (e+f x)^p.jl", "max_stars_repo_name": "gronniger/RubiSymbolics.jl", "max_stars_repo_head_hexsha": "dd...
import unittest import functools import numpy as np from cubepy import Index, Axis, Cube, stack, concatenate from cubepy.exceptions import InvalidAxisLengthError, NonUniqueDimNamesError from cubepy.utils import is_axis, is_indexed def year_quarter_cube(): """Creates a sample 2D cube with axes "year" and "quarter...
{"hexsha": "747f476b4b9bb816f1a5af067e39501900685ed5", "size": 33381, "ext": "py", "lang": "Python", "max_stars_repo_path": "cubepy/test/test_cube.py", "max_stars_repo_name": "jorgedouglas71/pyplan-ide", "max_stars_repo_head_hexsha": "5ad0e4a2592b5f2716ff680018f717c65de140f5", "max_stars_repo_licenses": ["MIT"], "max_s...
\documentclass[10pt]{llncs} %\input{packages} \title{Cover Letter:\\ Spatiotemporal contingency analysis for the Lebanese power grid using Apache Spark} \author{ Fatima K. Abu Salem\inst{2} \and Mohamad Jaber\inst{2} \and Chadi Abdallah\inst{1} \and Omar Mehio\in...
{"hexsha": "79a288ab53d1c878a6634bd45085cf1851fe23a4", "size": 1432, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "tex/journal-tcss/cover-letter/cover-letter.tex", "max_stars_repo_name": "okm02/Power-grid-analysis", "max_stars_repo_head_hexsha": "1c24a2c8bcdedd04d3e63f2db7abfa6ab135a107", "max_stars_repo_license...
import cv2 from ..paths import interim_data_path, processed_data_path import glob import pandas as pd import numpy as np import os import logging from scipy.io import loadmat from .utils import read_space_delimited, normalize_labels from ..logging import logger __all__ = [ 'process_coil', 'process_frey_faces'...
{"hexsha": "bd3127d7e671bc8df8c6f55b5520dd5b776425da", "size": 8604, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/data/localdata.py", "max_stars_repo_name": "acwooding/dimension_reduction", "max_stars_repo_head_hexsha": "6ef1b4a0602a90c9292d657dca45dc37d420dbf3", "max_stars_repo_licenses": ["MIT"], "max_s...
include("run_cutest.jl") using Ipopt TIME_LIMIT = 60.0^2 problem_list = default_list() if false folder_name = "ipopt/very_low_tol" if_mkdir("../results/$folder_name") run_cutest_problems_on_solver(problem_list, folder_name, print_level=3, tol=1e-2, max_iter=3000, max_cpu_time=TIME_LIMIT, nlp_scaling_method="none...
{"hexsha": "c6297b91c02b9a7a4840c4b078760d5399987c5c", "size": 1416, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "benchmark/CUTEst/run_ipopt.jl", "max_stars_repo_name": "ohinder/OnePhase", "max_stars_repo_head_hexsha": "d93e289ba0a7474e46e429340a752838b2b64ac0", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
#!/usr/bin/env python import rospy from sensor_msgs.msg import Joy from drive.msg import drive_msg from numpy import interp #if turned on the direction is reversed pwm=[0,0,0,0] drivex=drive_msg() def find_pwmtest4(msg): factor = 0.7 if(msg.buttons[6]==0): if(msg.axes[2]<1): ...
{"hexsha": "d7420fd3bbf14976df9d7a58406289a941cc897d", "size": 4678, "ext": "py", "lang": "Python", "max_stars_repo_path": "drive/scripts/sub_joynode_pub_roverdrive.py", "max_stars_repo_name": "arkya-art/INFERNO-XLR8", "max_stars_repo_head_hexsha": "ef3c1ec73dbf554e236da600c7fcc24c39dc785f", "max_stars_repo_licenses": ...
import numpy as np import urllib.request import time import sys import cv2 import requests import re time_list = [] time_interval = 0.25 * 60 # a cada 15s def center(x, y, w, h): x1 = int(w / 2) y1 = int(h / 2) cx = x + x1 cy = y + y1 return cx,cy camera_ip = str(sys.argv[1]) camera_id = str(sys....
{"hexsha": "6a19b4cd5bcba7bbf05e53d4cacfb1fb01a0ec08", "size": 4095, "ext": "py", "lang": "Python", "max_stars_repo_path": "backend/test.py", "max_stars_repo_name": "goncalves-sarah/PeCont", "max_stars_repo_head_hexsha": "f7c403cdffd18dec38c7dce5aa929fcf05826647", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
#pragma once #include <sophiatx/protocol/authority.hpp> #include <sophiatx/protocol/sophiatx_operations.hpp> #include <sophiatx/protocol/misc_utilities.hpp> #include <sophiatx/chain/sophiatx_object_types.hpp> #include <boost/multi_index/composite_key.hpp> #include <boost/multiprecision/cpp_int.hpp> namespace sophi...
{"hexsha": "78d242a84f2dda5fe4b2972e7a3caeaab83f62c1", "size": 4398, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "libraries/chain/include/sophiatx/chain/sophiatx_objects.hpp", "max_stars_repo_name": "SophiaTX/SophiaTx-Blockchain", "max_stars_repo_head_hexsha": "c964691c020962ad1aba8263c0d8a78a9fa27e45", "max_st...
using RSUtils, Test using Distributions: Distributions @testset verbose = true "RSUtils.jl" begin include("fixedpoint.jl") include("statistics.jl") include("predicates.jl") end
{"hexsha": "cf6a073c49725276773a5e3b3da4befb342166bd", "size": 190, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "ruairidhs/RSUtils.jl", "max_stars_repo_head_hexsha": "485567ac2f9604249d5e121936733219438e251e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul...
# 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": "d5eb2c0558332696f17ade17ad4ded60b20807db", "size": 14140, "ext": "py", "lang": "Python", "max_stars_repo_path": "PaddleCV/video/models/bmn/bmn_net.py", "max_stars_repo_name": "suytingwan/models", "max_stars_repo_head_hexsha": "ccdbfe77d071cc19b55fb9f4b738912e35d982ef", "max_stars_repo_licenses": ["Apache-2....
# BioLink API # # API integration layer for linked biological objects. __Source:__ https://github.com/biolink/biolink-api/ # # OpenAPI spec version: 0.1.1 # # Generated by: https://github.com/swagger-api/swagger-codegen.git #' @title Cam operations #' @description swagger.Cam #' #' @field path Stores url path of th...
{"hexsha": "9010a86e19bf278ee038b53457f675df316384d4", "size": 12232, "ext": "r", "lang": "R", "max_stars_repo_path": "R/CamApi.r", "max_stars_repo_name": "charlieccarey/monarchr.biolink", "max_stars_repo_head_hexsha": "5b488a06cedcafc9df44368e2d665555bc5cd53d", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_cou...
This editor can edit this entry and tell us a bit about themselves by clicking the Edit icon. 20080621 13:58:31 nbsp Welcome to the Wiki Howdy, Mr. or Ms. Clay, and Welcome to the Wiki! My names Evan, pleased to meet you! The Hoffmann Automotive entry has 18 comments, only five of which are negative. I dont know...
{"hexsha": "1504ee4f6a7c146fbf4e97f4a85e657979f9770e", "size": 648, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/jclay.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
\chapter{Public goods}
{"hexsha": "7ad4f6e1a6726860d6d2a89aae38a19b8fa1cbb6", "size": 25, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "src/pug/theory/economics/publicGoods/00-00-Chapter_name.tex", "max_stars_repo_name": "adamdboult/nodeHomePage", "max_stars_repo_head_hexsha": "266bfc6865bb8f6b1530499dde3aa6206bb09b93", "max_stars_rep...
''' PCA.py Implementation of Principal Component Analysis and other related algorithms Author: Cem Karaoguz Date: 12.03.2015 Version: 1.0 ''' import sys import numpy as np import pylab as pl from scipy.optimize import minimize from common import DataInputOutput, DataNormalization, AuxFunctions, Visualization...
{"hexsha": "afb0fb3b7862f7c0c87709cb740885a66a50da27", "size": 14050, "ext": "py", "lang": "Python", "max_stars_repo_path": "PCA/PCA.py", "max_stars_repo_name": "cemkaraoguz/UFLDLTutorial", "max_stars_repo_head_hexsha": "4046b7d23642b3af3522af2ef1fce4b79fd9af7e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
[STATEMENT] lemma NS_staticSecret_parts_Spy_weak: "\<lbrakk>m \<in> parts (knows Spy evs); m \<in> staticSecret A; evs \<in> ns_public\<rbrakk> \<Longrightarrow> A \<in> bad \<or> (\<exists>C B X. Says C B X \<in> set evs \<and> m \<in> parts{X})" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>m \<in> pa...
{"llama_tokens": 266, "file": "Inductive_Confidentiality_DolevYao_ConfidentialityDY", "length": 2}
from skmultiflow.drift_detection.base_drift_detector import BaseDriftDetector class PageHinkley(BaseDriftDetector): """ Page-Hinkley method for concept drift detection. Notes ----- This change detection method works by computing the observed values and their mean up to the current moment. Page-Hi...
{"hexsha": "540768647359664217ad8951a580d8cce0713711", "size": 3520, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/skmultiflow/drift_detection/page_hinkley.py", "max_stars_repo_name": "denisesato/scikit-multiflow", "max_stars_repo_head_hexsha": "3eb4c7262bb60d7e3f65c0d3395e4572d9a8cb95", "max_stars_repo_li...
""" File: ScoreSentiment.py Author: Daniel Stancl Description: This file takes companies and reviews dataframe and generate columns with employee sentiment for companies in a given month/ over a given period etc. utf-8 """ import numpy as np import pandas as pd class ScoreSentiment(object): def __init__(self, co...
{"hexsha": "a4a5a204a6004b51413db2b7d98b23d5afc03eb5", "size": 6646, "ext": "py", "lang": "Python", "max_stars_repo_path": "Sentiment scoring/ScoreSentiment.py", "max_stars_repo_name": "stancld/MSc-Project", "max_stars_repo_head_hexsha": "31a57ed58a902fe998649b948c61e70ca78729a4", "max_stars_repo_licenses": ["MIT"], "m...
#include "TestSupport.h" #include <boost/thread.hpp> #include <boost/bind.hpp> #include "MessageServer.h" #include "ApplicationPool/Client.h" #include "Utils.h" #include <string> #include <cstring> #include <unistd.h> #include <errno.h> using namespace Passenger; using namespace Passenger::ApplicationPool; using nam...
{"hexsha": "240892adfafb1425631df8347195f601a7e40361", "size": 11944, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/cxx/MessageServerTest.cpp", "max_stars_repo_name": "engineyard/passenger", "max_stars_repo_head_hexsha": "bd036c08d28bea2dc29fe6c4cdeda278bb991319", "max_stars_repo_licenses": ["MIT"], "max_st...
#include <elle/math.hh> #include <string> #include <boost/range/irange.hpp> #include <elle/range.hh> #include <elle/test.hh> static void sum() { BOOST_TEST(elle::sum() == 0); BOOST_TEST(elle::sum(1) == 1); BOOST_TEST(elle::sum(1, 2) == 3); BOOST_TEST(elle::sum(1, 2, 3) == 6); } static void product() { BO...
{"hexsha": "6a509c26c230336347b4d5d4de139bb5a2a37c88", "size": 686, "ext": "cc", "lang": "C++", "max_stars_repo_path": "tests/elle/math.cc", "max_stars_repo_name": "infinit/elle", "max_stars_repo_head_hexsha": "a8154593c42743f45b9df09daf62b44630c24a02", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 521....
# -*- coding: utf-8 -*- # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
{"hexsha": "e424099ffcca785bf90e6415f24077d5771b182c", "size": 5927, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/dirty_period_finding/extensions/_permutation_simulator.py", "max_stars_repo_name": "Strilanc/PaperImpl-PeriodFindCutQubits", "max_stars_repo_head_hexsha": "402d216e5c1641f878153dc604792f529bcb...