text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
#include <Eigen/Core> #include "problem.h" #include "random.h" #include "so3.h" #include <math.h> void compute_error( const Eigen::Matrix3d &R, const Eigen::Vector3d &t, const Eigen::Matrix3d &Rsoln, const Eigen::Vector3d &tsoln, double &rot_angle_err, double &trans_angle_err, do...
{"hexsha": "b65f1c8d84e9dceb3c7964a41c272911cf050f96", "size": 2742, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/problem.cpp", "max_stars_repo_name": "MikhailTerekhov/multi-camera-motion", "max_stars_repo_head_hexsha": "acefa9e9b659b46dfee48b5091a8acb0ff5a0ecf", "max_stars_repo_licenses": ["BSD-2-Clause"]...
// // ssl_stream.hpp // ~~~~~~~~~~~~~~ // // Copyright (c) 2013 Jack (jack dot wgm at gmail dot com) // Copyright (c) 2003, Arvid Norberg // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef AVHTTP_SSL_STR...
{"hexsha": "11c9a4e1fe3d600b4f5f60598b06c57fb9f034b5", "size": 7527, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/avhttp/detail/ssl_stream.hpp", "max_stars_repo_name": "NPS-TECH/avhttp", "max_stars_repo_head_hexsha": "a109bf5b633d375d62b5179045c2f9862e61d2c4", "max_stars_repo_licenses": ["BSL-1.0"], "ma...
[STATEMENT] lemma HS_B_eval[rule_format]: "(G, b, t) \<in> HS_B \<Longrightarrow> \<forall> r s pp . EQ G pp r s \<longrightarrow> LEQ t pp \<longrightarrow> evalB b r = evalB b s" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (G, b, t) \<in> HS_B \<Longrightarrow> \<forall>r s pp. EQ G pp r s \<longrightarrow> L...
{"llama_tokens": 6639, "file": "SIFPL_HuntSands", "length": 25}
using Printf prog = Base.basename(Base.source_path()) println(prog, "'s command-line arguments are:") for s in ARGS println(" ", s) end
{"hexsha": "4c3234cdbf45095a7fb841d9b06f80ee8414349b", "size": 145, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "lang/Julia/command-line-arguments.jl", "max_stars_repo_name": "ethansaxenian/RosettaDecode", "max_stars_repo_head_hexsha": "8ea1a42a5f792280b50193ad47545d14ee371fb7", "max_stars_repo_licenses": ["MI...
//---------------------------------------------------------------------------// // Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation> // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), t...
{"hexsha": "e455c08014ef3d671b6879caa29bad8b7df84758", "size": 5895, "ext": "hh", "lang": "C++", "max_stars_repo_path": "include/nil/actor/core/detail/io_intent.hh", "max_stars_repo_name": "NilFoundation/actor-core", "max_stars_repo_head_hexsha": "b8dcff07cfa126998f096d077cc9b42190d2d742", "max_stars_repo_licenses": ["...
[STATEMENT] lemma "\<CC> \<C> \<Longrightarrow> \<forall>A. Fr(\<F> A)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. Cl_1 \<C> \<and> Cl_2 \<C> \<and> Fr_3 \<C> \<and> Br_6 \<C> \<Longrightarrow> \<forall>A w. \<F> (\<F> A) w = \<F> A w [PROOF STEP] nitpick [PROOF STATE] proof (prove) goal (1 subgoal): 1. Cl_1 \<...
{"llama_tokens": 211, "file": "Topological_Semantics_topo_closure_algebra", "length": 2}
! ! The Laboratory of Algorithms ! ! The MIT License ! ! Copyright 2011-2015 Andrey Pudov. ! ! 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 ...
{"hexsha": "f2cc856697f31f178cb88dec02b5c719e34ecb1f", "size": 10840, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "Examples/RubiksCube/Rotator.f", "max_stars_repo_name": "jlokimlin/Algorithms", "max_stars_repo_head_hexsha": "d981990394d940fd999334b0b65b118567670d1a", "max_stars_repo_licenses": ["MIT"], "max_s...
# # Computational homogenization # # ![](rve_homogenization.png) # # *Figure 1*: von Mises stress in an RVE with 5 stiff inclusions embedded in a softer matrix # material that is loaded in shear. The problem is solved by using homogeneous Dirichlet # boundary conditions (left) and (strong) periodic boundary conditions ...
{"hexsha": "baa486f09c6abedf91e3e4d099ac3b7767642b36", "size": 25411, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "docs/src/literate/computational_homogenization.jl", "max_stars_repo_name": "cfgarciar/Ferrite.jl", "max_stars_repo_head_hexsha": "e36a48f253c67201e51d1dc82e3a6b83ddbf9429", "max_stars_repo_license...
#include <networklib/detail/read_socket.hpp> #include <istream> #include <string> #include <boost/asio.hpp> #include <boost/asio/completion_condition.hpp> #include <boost/asio/ssl.hpp> #include <networklib/detail/read_buffer.hpp> #include <networklib/detail/socket_stream.hpp> #include <networklib/socket.hpp> namesp...
{"hexsha": "78be8466790adaf4091204a58d4bd3fe9dc45854", "size": 1584, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "networklib/src/read_socket.cpp", "max_stars_repo_name": "zina1995/Twitter-API-C-Library", "max_stars_repo_head_hexsha": "87b29c63b89be6feb05adbe05ebed0213aa67f9b", "max_stars_repo_licenses": ["MIT"]...
from numpy import * import pdb import matplotlib.pyplot as plt def mean_centroid(image, center, boxsize=60.): ''' Determines the weighted mean centroid for multiple stars Parameters: ----------- image : ndarray Image for aperture photometry to be performed on. center : 2darray A ...
{"hexsha": "08719226bb53a51187a675ba4ac90130ffe488fc", "size": 1840, "ext": "py", "lang": "Python", "max_stars_repo_path": "henrietta/photometry/centroid.py", "max_stars_repo_name": "zkbt/henrietta", "max_stars_repo_head_hexsha": "653d798b241ad5591b704967a0413a2457a4e734", "max_stars_repo_licenses": ["MIT"], "max_stars...
function structout = setstructfields(structin, newfields) %SETSTRUCTFIELDS Set fields of a structure using another structure % SETSTRUCTFIELDS(STRUCTIN, NEWFIELDS) Set fields of STRUCTIN using % another structure NEWFIELDS fields. If fields exist in STRUCTIN % but not in NEWFIELDS, they will not be changed. % ...
{"author": "ngageoint", "repo": "MATLAB_SAR", "sha": "6291feff8e200d387e271f49ec09b1acd5514c4e", "save_path": "github-repos/MATLAB/ngageoint-MATLAB_SAR", "path": "github-repos/MATLAB/ngageoint-MATLAB_SAR/MATLAB_SAR-6291feff8e200d387e271f49ec09b1acd5514c4e/IO/complex/generic/setstructfields.m"}
import numpy as np import torch import argparse from torch import Tensor from torch import autograd from torch.autograd import Variable import sys print(sys.executable) print(torch.cuda.is_available()) # import airsim # client = airsim.MultirotorClient() # client.confirmConnection() # client.enableApiControl(True, "Dr...
{"hexsha": "7c25f480a7e4db2b9fea4c8ef910e2b139377c72", "size": 1360, "ext": "py", "lang": "Python", "max_stars_repo_path": "beta.py", "max_stars_repo_name": "joenghl/SwarmSim", "max_stars_repo_head_hexsha": "b06f27e91f7a6cba886aa06734f38f0ac006d6c0", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_sta...
# -*- coding: future_fstrings -*- import os import time import joblib import numpy as np import os.path as osp from utils import logger import pickle import tensorflow as tf from collections import deque from MRPO.examples.baselines.common import explained_variance from MRPO.examples.ppo2_baselines.ppo2_episodes impor...
{"hexsha": "461c4587984789da38213a4e75415e7b48c151d6", "size": 21784, "ext": "py", "lang": "Python", "max_stars_repo_path": "MRPO/examples/MRPO/MRPO_ppo2.py", "max_stars_repo_name": "hai-h-nguyen/pomdp-baselines", "max_stars_repo_head_hexsha": "629180d56641810d99653a116cca41ede65172eb", "max_stars_repo_licenses": ["MIT...
import logging from pathlib import Path import numpy as np import pandas as pd import xarray as xr from pharedox import constants from pharedox import data_analysis as da from pharedox import experiment from pharedox import image_processing as ip from pharedox import pio as pio from pharedox import plots from pharedo...
{"hexsha": "a21d4156ea34c1ba29ab6b8bc7885ad57d8192f5", "size": 1766, "ext": "py", "lang": "Python", "max_stars_repo_path": "pharedox/synthetic_mvmt_testing.py", "max_stars_repo_name": "omarvaneer/pharynx_redox", "max_stars_repo_head_hexsha": "ffcd5733fd0823244f50590951e9af0bc9ae2518", "max_stars_repo_licenses": ["MIT"]...
# *- coding: utf-8 -* from PIL import Image import os import os.path import numpy as np import cv2 # # 指明被遍历的文件夹 # rootdir = './camvid352' # for parent, dirnames, filenames in os.walk(rootdir): # 遍历每一张图片 # for filename in filenames: # _, postfix = filename.split('.') # if postfix != 'png': # ...
{"hexsha": "6fb2ff260342b388b3fad9c382d9db99c13ad483", "size": 5257, "ext": "py", "lang": "Python", "max_stars_repo_path": "dataset/crop352.py", "max_stars_repo_name": "Ethan-ye/Efficient-Segmentation-Networks", "max_stars_repo_head_hexsha": "27272e43126a507a6d93b21cd2372f5432f61237", "max_stars_repo_licenses": ["MIT"]...
import unittest import os import numpy as np import gdal from osgeo import osr import parflow.subset.utils.io as file_io_tools import tests.test_files as test_files class FileIOToolBasicTestCase(unittest.TestCase): def test_read_sa(self): results = file_io_tools.read_file(test_files.forcings_sa) ...
{"hexsha": "91b388be61544b831f670be9536ce6606a0c64b4", "size": 7747, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/file_io_tools_tests.py", "max_stars_repo_name": "arezaii/subsetter", "max_stars_repo_head_hexsha": "482e90fdaeaa8fa5de7e325bdbe2f41206744524", "max_stars_repo_licenses": ["MIT"], "max_stars_...
module ft2d using SpecialFunctions export rectft,circft,ellipft,recip2real,recipvec2real,real2recip function rectft(frax,fray,dnx,dny) #rectangle transforms to sinc return frax*fray*sinc.(frax*dnx).*sinc.(fray*dny) end function ellipft(frax,fray,dnx,dny) #argument of the bessel function radix=.5*sqrt....
{"hexsha": "e5c2385e59bc373d7347d7253dc73446981f1217", "size": 1281, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ft2d.jl", "max_stars_repo_name": "UnofficialJuliaMirror/SRCWA.jl-ff5ff224-83ac-11e9-2c32-7d811a837d73", "max_stars_repo_head_hexsha": "d2b14ca8f67f5ee30e804958a60c0e603a2016d2", "max_stars_repo...
import pandas as pd import numpy as np import os.path as path from p_tqdm import p_imap from sklearn.preprocessing import MultiLabelBinarizer import src.utils.io as io import src.utils.dirs as dirs import src.utils.config as cfg from src.base.data_loader import BaseDataLoader, BaseMeta, BaseGenerator import src.feature...
{"hexsha": "bde65b2d27e791f8a853d67f0769ce73de97e3b5", "size": 13420, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/data_loader/dcase.py", "max_stars_repo_name": "Vanova/mfom_dcase16_task4", "max_stars_repo_head_hexsha": "a9858c4c8c43765aa16a7785f08877f9c3eabf1a", "max_stars_repo_licenses": ["MIT"], "max_s...
import matplotlib.pyplot as plt import numpy as np from numpy import pi, sqrt import os import scipy.constants as cs import datproc.print as dpr from cooling_unit import c_W, rho_W ## General output = __name__ == '__main__' ## Data l = 25.0 * cs.centi I = np.array([2.610, 2.600, 2.580, 2.560]) d_I = np.array([0.01...
{"hexsha": "d246a507235ac8313a735ff69fdbd8b25e9c256a", "size": 2273, "ext": "py", "lang": "Python", "max_stars_repo_path": "experiments/stirling_engine/heat_engine_torque.py", "max_stars_repo_name": "jackerschott/AP21", "max_stars_repo_head_hexsha": "8f49b3c4901e50770b1df05fa6470d45e469258a", "max_stars_repo_licenses":...
from distutils.core import setup, Extension import numpy module = Extension("_shinythings", sources=["_shinythings/_shinythings.c", "_shinythings/_shinythings_Scene.c", "_shinythings/_shinythings_Matrix.c", "_shinyth...
{"hexsha": "08b69caa938a0d8d1fffe951d71c00591fee10da", "size": 1025, "ext": "py", "lang": "Python", "max_stars_repo_path": "setup.py", "max_stars_repo_name": "abau171/shiny-things", "max_stars_repo_head_hexsha": "3cf9cd710c4402c9e64496220b7e28d8133b8107", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_s...
[STATEMENT] lemma fst_eq1: "(sla ! (0), y) = attack x1 \<Longrightarrow> sla ! (0) = fst (attack x1)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (sla ! 0, y) = attack x1 \<Longrightarrow> sla ! 0 = fst (attack x1) [PROOF STEP] by (rule_tac c = y and d = "snd(attack x1)" in fst_lem1, simp)
{"llama_tokens": 136, "file": "Attack_Trees_AT", "length": 1}
from __future__ import annotations from collections import namedtuple import numpy as np from typing import Union __all__ = ["GaussianBeam"] class GaussianBeam: _SUPPORTED_KWARGS = ["w0", "zr", "div"] #waist radius, rayleigh range, divergence @property def divergence(self): if "div" == self._...
{"hexsha": "532ea4862f1ea2551a45595e1d056899a0666e00", "size": 3974, "ext": "py", "lang": "Python", "max_stars_repo_path": "optix/beams/beams.py", "max_stars_repo_name": "cavic19/matrix_optics-python", "max_stars_repo_head_hexsha": "f1de82a8095c8858584458dfed87878f57d84bc8", "max_stars_repo_licenses": ["MIT"], "max_sta...
Require Import General. Require Export Relations. Unset Standard Proposition Elimination Names. Section SortsOfV6. (* Definition des composantes du calcul *) Inductive calc : Set := | Pos : calc | Neg : calc. Inductive srt_v6 : Set := | Sprop : calc -> srt_v6 | Stype : nat -> srt_v6. Indu...
{"author": "coq-contribs", "repo": "pts", "sha": "10a0c39b7e62f8a7ec2afbbe516a21289d065be5", "save_path": "github-repos/coq/coq-contribs-pts", "path": "github-repos/coq/coq-contribs-pts/pts-10a0c39b7e62f8a7ec2afbbe516a21289d065be5/SortV6.v"}
''' Filename: encoder_rnn.py Project: component File Created: Friday, 14th December 2018 5:36:20 pm Author: xiaofeng (sxf1052566766@163.com) -------------------------- Last Modified: Friday, 14th December 2018 5:37:07 pm Modified By: xiaofeng (sxf1052566766@163.com) --------------------------- : 2018.06 - 2018 . ''' ...
{"hexsha": "d89219b745f378a21437ac119f90f60efb73779a", "size": 4309, "ext": "py", "lang": "Python", "max_stars_repo_path": "models/component/encoder_rnn.py", "max_stars_repo_name": "wengithz/t-wji", "max_stars_repo_head_hexsha": "482c5a435a72dbf88fdfab385f74d4f42f4afec1", "max_stars_repo_licenses": ["MIT"], "max_stars_...
#include <boost/preprocessor/list/size.hpp>
{"hexsha": "fa9b27f9336dedf3d03bf1d97246e7178916910d", "size": 44, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_preprocessor_list_size.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["BSL-1....
import matplotlib.pyplot as plt import numpy import prettytable import os, sys import utils_dispersion_aligned_point_2d # # Amanzi Input File: # input_filename = "amanzi_dispersion_aligned_point_2d-u.xml" # # Overwrite: True|False # # If Amanzi or AT123D-AT results exist, force them to be recomputed, and hence,...
{"hexsha": "38b53de8af41e2d8b926aa22f3a3c0e4e9e8bc03", "size": 1821, "ext": "py", "lang": "Python", "max_stars_repo_path": "test_suites/verification/transport/saturated/steady-state/dispersion_aligned_point_2d/amanzi_dispersion_aligned_point_2d-a.py", "max_stars_repo_name": "fmyuan/amanzi", "max_stars_repo_head_hexsha"...
import yash_bls import numpy as np import matplotlib.pyplot as plt def doSearch(time, flux, minPeriod, maxPeriod, ): SNR, period, epoch, duration, depth, transitModel, period_guesses, \ convolved_bls = yash_bls.do_bls_and_fit(time, flux, minPeriod, maxPeriod) phase, phasedFlux = yash_bls.getPhase...
{"hexsha": "06353c8ffbe68183d99d1b46130255ee77c9d5d6", "size": 4768, "ext": "py", "lang": "Python", "max_stars_repo_path": "blssearch.py", "max_stars_repo_name": "mrtommyb/trappist-lc", "max_stars_repo_head_hexsha": "2173f62c43cf67b38924d1d51b5d9e528b700711", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "m...
""" This module contains new classes for obtaining Diffusion and Activation Barrier calculations from MD calculations. """ __author__ = 'Muratahan Aykol <maykol@lbl.gov>' import matplotlib.pyplot as plt import numpy as np import scipy.integrate as integrate from pymatgen import Element from pymatgen.io.vasp import Xd...
{"hexsha": "be3a7bcb6027006dabf0141c938986b264bc6db9", "size": 10226, "ext": "py", "lang": "Python", "max_stars_repo_path": "mpmorph/analysis/diffusion.py", "max_stars_repo_name": "jic198/mpmorph", "max_stars_repo_head_hexsha": "43369d7d6beaf590fb9819821919f9ed43d0ca2e", "max_stars_repo_licenses": ["BSD-3-Clause-LBNL"]...
# import libraries import argparse import os, glob import subprocess import numpy as np # Command line args def parse_args(): parser = argparse.ArgumentParser(description="create class maps") parser.add_argument('-m', '--model', type=str, required=True, help='Path to your pretrained model') parser.add_ar...
{"hexsha": "1ad956ca9be00338b634cf654f76a1eb0c64fd25", "size": 6593, "ext": "py", "lang": "Python", "max_stars_repo_path": "Code/class_maps_automation.py", "max_stars_repo_name": "sachinsharma9780/Collaborativ_Intelligence", "max_stars_repo_head_hexsha": "8fad4874c6b2759cc83a002effb87b446f431a1f", "max_stars_repo_licen...
[STATEMENT] lemma exists_var': "\<lbrakk>distinct (map (\<lambda>(cl, var, ty). var) cl_var_ty_list); map (\<lambda>(y, cl, var, var', v). var) y_cl_var_var'_v_list = map (\<lambda>(cl, var, ty). var) cl_var_ty_list; map_of (map (\<lambda>(cl, var, ty). (x_var var, ty)) cl_var_ty_list) var_k = Some ty_k\<rbra...
{"llama_tokens": 4558, "file": "LightweightJava_Lightweight_Java_Proof", "length": 12}
from google.protobuf.descriptor import Error import argparse import numpy as np import pandas as pd import tensorflow as tf import segmentation_models as sm from augmentation import setup_datahandler from metric.dist_metrics import AccuracyDistance, F1_ScoreDistance def options(): parser = argparse.ArgumentPar...
{"hexsha": "ae9c7b20e97f87b84b28b7998715707b66f14fff", "size": 4731, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/python/nn/training.py", "max_stars_repo_name": "PeterJackNaylor/NucSeg", "max_stars_repo_head_hexsha": "9eaa72d536e61e1ea2e396a47bb5d0a224134790", "max_stars_repo_licenses": ["MIT"], "max_star...
from molsysmt._private.exceptions import * from molsysmt.api_forms.common_gets import * import numpy as np from molsysmt.native.molecular_system import molecular_system_components from molsysmt._private.files_and_directories import temp_filename form_name='file:dcd' from_type='file' is_form = { 'file:dcd':for...
{"hexsha": "253f13a5ac61c6bae7c4115cccba07cc3a6a8911", "size": 2122, "ext": "py", "lang": "Python", "max_stars_repo_path": "molsysmt/api_forms/freezer/api_file_dcd.py", "max_stars_repo_name": "uibcdf/MolModMTs", "max_stars_repo_head_hexsha": "4f6b6f671a9fa3e73008d1e9c48686d5f20a6573", "max_stars_repo_licenses": ["MIT"]...
#!/usr/bin/env python3 import argparse import csv import itertools import json import math import os import random import numpy import pandas import rows.database_connector import rows.model.visit import rows.plot import rows.settings class DatabaseAnonymizer: def __init__(self, settings): self.__sett...
{"hexsha": "eebdee2d67b10ad35e68400f1ee498b765a1007c", "size": 8606, "ext": "py", "lang": "Python", "max_stars_repo_path": "anonymize.py", "max_stars_repo_name": "pmateusz/cordia", "max_stars_repo_head_hexsha": "f911f4b140e416097342a7261b73e8e39dbe7589", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max...
import ipywidgets import numpy as np import pandas as pd import pathlib from scipy.stats import linregress from bokeh.io import push_notebook, show, output_notebook from bokeh.plotting import figure from bokeh.models import ColumnDataSource, RangeTool, Circle, Slope, Label, Legend, LegendItem, LinearColorMapper from bo...
{"hexsha": "3398a39589c44cb218330153bc2c034273d76a03", "size": 18460, "ext": "py", "lang": "Python", "max_stars_repo_path": "bokeh/view_files_bokeh_jupyter.py", "max_stars_repo_name": "alexnaoki/EC-LHC", "max_stars_repo_head_hexsha": "5efb4647ae88156c94eaa59ab8304a9433155977", "max_stars_repo_licenses": ["MIT"], "max_s...
''' Created on 18-Sep-2017 @author: DX ''' import numpy as np; from Chapter_05 import Adaboost as ad dataset = [[0.25000, 1.75000, 1.00000], [1.25000, 1.75000, -1.00000], [0.50000, 1.50000, 1.00000], [1.00000, 0.50000, -1.00000], [1.25000, 3.50000, 1....
{"hexsha": "a0d3e67a309922029c7079e26ccaa68a08a45cfd", "size": 1078, "ext": "py", "lang": "Python", "max_stars_repo_path": "Chapter05/AdaboostAlgorithmExample.py", "max_stars_repo_name": "ashishpatel26/Ensemble-Machine-Learning", "max_stars_repo_head_hexsha": "9eb8c2290e1f126def159729c0f37bd6674d8858", "max_stars_repo_...
import tensorflow as tf import tensorflow_hub as hub import numpy as np from PIL import Image import random import string content_url_input = input("Image Url of Content?") style_url_input = input("Image Url of Sytle?") def randomFileName(stringLength=10): letters = string.ascii_lowercase return (''.join(random.c...
{"hexsha": "508617f13114a221e8d42efd5fa3b1e4faaf3163", "size": 2274, "ext": "py", "lang": "Python", "max_stars_repo_path": "archive/image_stylizer.py", "max_stars_repo_name": "vinesmsuic/Stylize-Image", "max_stars_repo_head_hexsha": "4dcae8df73770cca15091f2b265c10cf6829f0cb", "max_stars_repo_licenses": ["MIT"], "max_st...
#!/usr/bin/env python3 # <Copyright 2019, Argo AI, LLC. Released under the MIT license.> """ Utility to load the Argoverse vector map from disk, where it is stored in an XML format. We release our Argoverse vector map in a modified OpenStreetMap (OSM) form. We also provide the map data loader. OpenStreetMap (OSM) pro...
{"hexsha": "fbe4ada620a82622b3bcf50c7071448aa1a94918", "size": 10413, "ext": "py", "lang": "Python", "max_stars_repo_path": "argoverse/data_loading/vector_map_loader.py", "max_stars_repo_name": "johnwlambert/argoverse-api", "max_stars_repo_head_hexsha": "ae7d7ad392695b2b9ad52cb7b5ad9145c13a0955", "max_stars_repo_licens...
#pragma once #include <NTL.hpp> struct Rangef { cl_int isRange; cl_float rangeMin; cl_float rangeMax; Rangef(bool pIsRange, float pMin, float pMax) : isRange(pIsRange), rangeMin(pMin), rangeMax(pMax) {} Rangef() : isRange(false), rangeMin(0.0f), ...
{"hexsha": "1fc4a40a71bfc9ab3a26b7bdd89161de7ff1d2f8", "size": 754, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/Range.hpp", "max_stars_repo_name": "Jino42/stf", "max_stars_repo_head_hexsha": "f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count": null, "...
MODULE Markov USE Params, ONLY : db, do, wflag, timing_start, timing_end, & restart, step, Rkm, stepMax, & scratch,lnPmin,scratch2, withMPI, Love,lnPmin,MomI, & NusrX,step0,lnPall0,lnPmin USE Solver USE Parallel USE Chain USE Analysis USE User, ONLY : updateUSR,saveUSR,loadUSR IMPLICIT NONE ...
{"hexsha": "e81e7622e09b314923ededf24b66d1ad76e7943e", "size": 8514, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/markov.f90", "max_stars_repo_name": "spostnik/TOOL", "max_stars_repo_head_hexsha": "67fa80b836badab4228f2e004005fb1613475d32", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_...
/** * @Copyright 2020, Wuhan University of Technology * @Author: Pengwei Zhou * @Date: 2020/12/28 下午4:40 * @FileName: kitti_reader.hpp * @Description: read kitti odometry benchmark dataset include velodyne image * @License: See LICENSE for the license information */ #ifndef TLOAM_KITTI_READER_HPP #define TLOAM_...
{"hexsha": "afcea387470f4bd3132d7dbda4e4c03b6ed7663b", "size": 5373, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "tloam/include/tloam/models/io/kitti_reader.hpp", "max_stars_repo_name": "cuge1995/SC-TLOAM", "max_stars_repo_head_hexsha": "facb7335f3a8ddfdeed3f87ac7a04362032e5a5b", "max_stars_repo_licenses": ["MI...
#!/usr/bin/env python # encoding: utf-8 """ Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ # Numpy functions __all__ = ['array', 'amax','amin', 'max', 'min', 'maximum','minimum','nanmax','nanmin', 'sum', 'exp', 'log', 'mean','std', 'var', 'sin', 'cos', 'tan...
{"hexsha": "16040b9e457bd7049d7508767a60cdf27c1a0b1c", "size": 24706, "ext": "py", "lang": "Python", "max_stars_repo_path": "chumpy/ch_ops.py", "max_stars_repo_name": "JulesDoe/hmr", "max_stars_repo_head_hexsha": "9394526c6b997b4614be83327ebde43fccf5d8dc", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
function val=soft_threshodr(groups,nc,w,mu) %soft_threshodr % val=w/(1+mu); end
{"author": "xiubooth", "repo": "ML_Codes", "sha": "927c93ca7e4e452525a989f5a8cc22b73bb1b3d4", "save_path": "github-repos/MATLAB/xiubooth-ML_Codes", "path": "github-repos/MATLAB/xiubooth-ML_Codes/ML_Codes-927c93ca7e4e452525a989f5a8cc22b73bb1b3d4/Simu_Matlab/soft_threshodr.m"}
[STATEMENT] lemma wf_mheadI: "\<lbrakk>length (parTs sig) = length (pars m); \<forall>T\<in>set (parTs sig). is_acc_type G P T; is_acc_type G P (resTy m); distinct (pars m)\<rbrakk> \<Longrightarrow> wf_mhead G P sig m" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>length (parTs sig) = length (pars ...
{"llama_tokens": 423, "file": null, "length": 3}
from pymesh import Assembler, form_mesh, Material from pymesh.TestCase import TestCase import numpy as np import scipy.sparse.linalg class AssemblerTest(TestCase): def single_triangle_2D_setup(self): vertices = np.array([ [0.0, 0.0], [1.0, 0.0], [0.0, 1.0], ...
{"hexsha": "1fa9b822b0d9596a924212a871d6a2128250e249", "size": 2425, "ext": "py", "lang": "Python", "max_stars_repo_path": "dependencies/PyMesh/python/pymesh/tests/test_assembler.py", "max_stars_repo_name": "aprieels/3D-watermarking-spectral-decomposition", "max_stars_repo_head_hexsha": "dcab78857d0bb201563014e58900917...
import numpy as np import os #import pandas as pd import random import scipy.ndimage.interpolation as inter from scipy.signal import medfilt ################################################################################### #Rescale to be 64 frames def zoom(p,target_l=64,joints_num=25,joints_dim=3): l ...
{"hexsha": "4a4c20249e0ef857e4822cf2c19eda8487ce5c10", "size": 1538, "ext": "py", "lang": "Python", "max_stars_repo_path": "JHMDB/utils.py", "max_stars_repo_name": "hsclyy/LDT-NET", "max_stars_repo_head_hexsha": "96296e34886f47b2926ee3817dabb321e3ca5673", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_s...
import numpy as np import tribox_wrapper import time def parse_off(filename): with open(filename) as fp: header = fp.readline().strip() if header != 'OFF' and header != 'off': raise Exception('Not a valid OFF header') n_verts, n_faces, _ = tuple( [int(s) for s in fp...
{"hexsha": "2ea8db07570bf7cba42c52eca19840c58978b971", "size": 3702, "ext": "py", "lang": "Python", "max_stars_repo_path": "voxelizer.py", "max_stars_repo_name": "rabipelais/voxelizer", "max_stars_repo_head_hexsha": "afa40d039f8f353cb39b95b3d706a8930cfc9876", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
#!/usr/bin/env python from numpy import * from scipy import * from matplotlib.pyplot import * from utils import * from libsquiggly.util import * from libsquiggly.tfr import * # Generic test harness for our instantaneous-frequency estimation code def do_tfr_test(x, f, sig_name): # Setup spectrogram parameters. ...
{"hexsha": "078ab841368dd6be75a790e741acb10eabefc788", "size": 1605, "ext": "py", "lang": "Python", "max_stars_repo_path": "libsquiggly/tests/test_tfr.py", "max_stars_repo_name": "staticfloat/libsquiggly", "max_stars_repo_head_hexsha": "79c63c119a60e2e9c558aefcda6b1c1ac413a47a", "max_stars_repo_licenses": ["MIT"], "max...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Simple image annotator. This module contains the Annotator class. Annotator is a widget that allows the user to place annotations on top of an image. All interaction is using mouse clicks, draws, and keyboard input. Help is accessed by pressing 'H'. Use: Run...
{"hexsha": "64d55ad0bf65bd44febd533500116355a8bf9f7a", "size": 19679, "ext": "py", "lang": "Python", "max_stars_repo_path": "pycode/annotator.py", "max_stars_repo_name": "Skielex/InSegt", "max_stars_repo_head_hexsha": "42a6c597f15f0a48112a7f11e7307ff9796b0ebf", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 6, ...
from __future__ import division, print_function # coding=utf-8 import sys import os import glob #import re import numpy as np import tensorflow as tf from tensorflow import keras from keras.models import Sequential from tensorflow import keras from tensorflow.keras.preprocessing.text import Tokenizer from...
{"hexsha": "e4f60c13e8c9877d58caf378ee470658af326765", "size": 13417, "ext": "py", "lang": "Python", "max_stars_repo_path": "app.py", "max_stars_repo_name": "AdarshKandwal/DeepLearningWebsite", "max_stars_repo_head_hexsha": "875cf0bae2f89c30292a87028f76d2900a95d6c1", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
//============================================================================// //-------------------- pnt_integrity/AquisitionCheck.hpp -------*- C++ -*-----// //============================================================================// // BSD 3-Clause License // // Copyright (C) 2019 Integrated Solutions for Sys...
{"hexsha": "42a6765f0cd3f1a8e33a0056ebfdc13c4c667b97", "size": 19314, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "pnt_integrity/pnt_integrity/include/pnt_integrity/AcquisitionCheck.hpp", "max_stars_repo_name": "mfkiwl/PNT-Integrity", "max_stars_repo_head_hexsha": "3d79cf4eb6b78a7234bbdcef0577ea847f141039", "ma...
import os import argparse import numpy as np from gensim.models import KeyedVectors from sklearn.cluster import KMeans from sklearn.metrics import adjusted_mutual_info_score, normalized_mutual_info_score from utils import load_data def main(args): emb_file = args.embedding num_clusters = args.num_clusters ...
{"hexsha": "124e03f96716aaaf0e35b58620bf4c8b476cb394", "size": 1871, "ext": "py", "lang": "Python", "max_stars_repo_path": "run_clustering.py", "max_stars_repo_name": "abidikhairi/embedding_with_lrw", "max_stars_repo_head_hexsha": "8152b3e4b61b197857d1293d5a50bff118804109", "max_stars_repo_licenses": ["MIT"], "max_star...
import numpy as np import math def sigmoid(z): return 1.0/(1.0+np.exp(-z)) def tanh(z, c): return (math.exp(c*z) - math.exp(-c*z))/(math.exp(c*z) + math.exp(-c*z)) def modified_tanh(z, c=1.0): if z <= 0: return 0 else: return tanh(z, c) def relu(z): if z <= 0: return ...
{"hexsha": "ca7dbb01ba616c3ebbc6e17d76194cd0383477e6", "size": 489, "ext": "py", "lang": "Python", "max_stars_repo_path": "activation_functions.py", "max_stars_repo_name": "rafiqumsieh0/supervised-hebbian", "max_stars_repo_head_hexsha": "a0b4f3a2f5683176427e937122719ba7920a99b1", "max_stars_repo_licenses": ["MIT"], "ma...
export AbstractShape export level, ndir, project, center, bounds abstract type AbstractShape{K} end Base.in(x::AbsVecReal, s::AbstractShape{K}) where {K} = level(x,s) ≤ 0 # Return the value of the level set function of the shape. level(x::AbsVecReal, s::AbstractShape{K}) where {K} = level(SVec{K}(x), s) # Return th...
{"hexsha": "2a7365d31595030ab19302cb921cfe543d02b813", "size": 902, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/shape/shape.jl", "max_stars_repo_name": "wsshin/LevelSetShapes", "max_stars_repo_head_hexsha": "f75cb9d27b5e7721e6d942b9e023fb6b76a11930", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
from enum import Enum from math import inf from operator import __eq__, __ne__, itemgetter from typing import Any, Iterable, List, Tuple from numpy import argmax, ndarray from sklearn.metrics import accuracy_score from sklearn.preprocessing import OneHotEncoder def iter_together(l1: list, l2: list): assert len(l...
{"hexsha": "5e124d5983bfcf744234df199f6de297e02f9b46", "size": 6528, "ext": "py", "lang": "Python", "max_stars_repo_path": "BMA/BMA.py", "max_stars_repo_name": "AlbezJelt/reddit-sarcasm-DA", "max_stars_repo_head_hexsha": "d4fc5d06568176a3d36b0b3b9441301f591096e8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import sys import logging import json import numpy as np import tensorflow as tf # Internal import dataset from model import Model logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) SEED = 0x37255c25 import_path = sys.argv[1] if import_path.endswith('.index'): import_path = import_path[:-6] export_path ...
{"hexsha": "e122db35030772d71902e00aa8ee4026a85388c2", "size": 1563, "ext": "py", "lang": "Python", "max_stars_repo_path": "tf/transform-save.py", "max_stars_repo_name": "indutny/gradtype", "max_stars_repo_head_hexsha": "0e7e1290e6b4e669126e42339a739ec58dc1154e", "max_stars_repo_licenses": ["Unlicense"], "max_stars_cou...
import torch import numpy as np from torch.utils.data import Dataset, DataLoader import config as cfg # save np.load np_load_old = np.load # modify the default parameters of np.load np.load = lambda *a, **k: np_load_old(*a, allow_pickle=True, **k) def create_dataloader(mode): if mode == 'train': return ...
{"hexsha": "3af02f67bb0625524194eefd10b900629365a3b7", "size": 2454, "ext": "py", "lang": "Python", "max_stars_repo_path": "dataloader.py", "max_stars_repo_name": "seorim0/DCCRN-with-various-loss-functions", "max_stars_repo_head_hexsha": "5ccf797de3366b71378081d16fb1d3ca5eccc937", "max_stars_repo_licenses": ["MIT"], "m...
# -*- coding:utf-8 -*- """ This is the whole score functionality that could be used for metrics. author: Guangqiang.lu """ from abc import ABCMeta import numpy as np from sklearn import metrics from sklearn.utils.multiclass import type_of_target class Scorer(object, metaclass=ABCMeta): """ This class is us...
{"hexsha": "8ac4d0bbb935855fc2af42010a56cb597696c560", "size": 8565, "ext": "py", "lang": "Python", "max_stars_repo_path": "automl/scorer.py", "max_stars_repo_name": "lugq1990/automl-engine", "max_stars_repo_head_hexsha": "709318e9ef11a4ff07efd1ff908d7c74baced6ed", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
import cv2 import tkinter as tk from tkinter import * from tkinter import ttk from PIL import Image, ImageTk from moviepy.editor import * from tqdm import tqdm import threading import time import datetime from tkinter import filedialog import os from datetime import datetime #####Added to solve %1 from mo...
{"hexsha": "034818b0139a0f0e7600575ae75a94c799c87e02", "size": 9236, "ext": "py", "lang": "Python", "max_stars_repo_path": "videoeditorDemo.py", "max_stars_repo_name": "NotAyushXD/Video-Editor-", "max_stars_repo_head_hexsha": "57e2a197c9522e8f063a8d7fe76013c798445f40", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import sys import pandas as pd import numpy as np barcode_file = sys.argv[1] summary_file = sys.argv[2] file_in = sys.argv[3] file_out = sys.argv[4] barcodes = [l.rstrip() for l in open(barcode_file).readlines()] gene_ids = [] with open(summary_file) as fi: fi.readline() fi.readline() for line in fi: ...
{"hexsha": "dd936fd2ac93d2ac13cdd3feb6a3056b8001b0d8", "size": 931, "ext": "py", "lang": "Python", "max_stars_repo_path": "scrna_pipeline/nebula/smart-seq2/scripts/counts2mtx.py", "max_stars_repo_name": "JarningGau/NGS_pipeline", "max_stars_repo_head_hexsha": "0e9012f4e68bbc8ce2b1c2f1df5af012e68e0ba2", "max_stars_repo_...
# Copyright 2021 Huawei Technologies Co., Ltd # # 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 agreed to...
{"hexsha": "c79e3e4d66936230957f4843c40a6c8e3ebd2886", "size": 3653, "ext": "py", "lang": "Python", "max_stars_repo_path": "official/cv/ctpn/src/text_connector/get_successions.py", "max_stars_repo_name": "leelige/mindspore", "max_stars_repo_head_hexsha": "5199e05ba3888963473f2b07da3f7bca5b9ef6dc", "max_stars_repo_licen...
!********************************************************************************************************************************** ! LICENSING ! Copyright (C) 2015-2016 National Renewable Energy Laboratory ! Copyright (C) 2017 Envision Energy USA, LTD ! ! This file is part of AeroDyn. ! ! Licensed under the Apach...
{"hexsha": "efb504c58e3b7090663c4979b91a26205c466c94", "size": 22922, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "modules-local/aerodyn/src/DBEMT.f90", "max_stars_repo_name": "masataka-motoyama/Openfast", "max_stars_repo_head_hexsha": "0769598a17e19b3ccd00a85cde389995f55024a8", "max_stars_repo_licenses": [...
REAL*8 FUNCTION ERTROT(TSEC50,KPRECES) IMPLICIT REAL*8 (A-H,O-Z) C C THIS ROUTINE GIVES THE EARTH ROTATION RATE. C C THE ROTATION RATE IS DEFINED AS TWOPI DIVIDED BY THE NUMBER OF C SECONDS BETWEEN SUCCESSIVE CROSSINGS OF THE X-AXIS BY A GIVEN C MERIDIAN ON THE ROTATING EARTH. C C C VARIABLE DIM TYP...
{"hexsha": "92fdf9fab526e87416b3a12d128da260d7c97bb7", "size": 3078, "ext": "for", "lang": "FORTRAN", "max_stars_repo_path": "gsc-13083/ertrot.for", "max_stars_repo_name": "SteveDoyle2/nasa-cosmic", "max_stars_repo_head_hexsha": "c8015a9851a04f0483b978d92c2cbaee31c81fe3", "max_stars_repo_licenses": ["BSD-Source-Code"],...
import logging from collections import defaultdict from typing import Dict, Any, List from overrides import overrides import numpy as np import torch from torch import Tensor from allennlp.common import Lazy from allennlp.data import Vocabulary from allennlp.models import Model from allennlp.modules import TextFiel...
{"hexsha": "652b6f2417286eed10e3f1e0c1ae6b553dea31cb", "size": 11787, "ext": "py", "lang": "Python", "max_stars_repo_path": "zsee/models/sentence_level.py", "max_stars_repo_name": "YerevaNN/zsee", "max_stars_repo_head_hexsha": "92ee908265c2d1971d55bc2b076093d975a904a7", "max_stars_repo_licenses": ["Apache-2.0"], "max_s...
"""Subclass QGraph for fast networkx graph creation -- similar to the `from_dict_of_lists` constructor, but with fewer commas and brackets, example: class MyGraph(QGraph, directed=False): a: [b, c] b: [d, e, f] g: [] g = MyGraph() """ import networkx as nx class Nodes(dict): def __init__(self, dir...
{"hexsha": "03e849425741f5664be6d052d519d488666a6492", "size": 921, "ext": "py", "lang": "Python", "max_stars_repo_path": "quick_graph.py", "max_stars_repo_name": "salt-die/Snippets", "max_stars_repo_head_hexsha": "982daf3d40cc47f8d3bbb34b6ac5380aac3b00c0", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count": 3...
module MultiScaleTreeGraph using AbstractTrees using Printf using DataFrames import MutableNamedTuples: MutableNamedTuple using DelimitedFiles using OrderedCollections import XLSX: readxlsx, sheetnames import SHA: sha1 # for naming the cache variable import Base.setindex! import DataFrames: transform!, transform # We d...
{"hexsha": "646f0cfb63a618b8b12acc55ab7e901d247a6b9f", "size": 2941, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/MultiScaleTreeGraph.jl", "max_stars_repo_name": "VEZY/MTG.jl", "max_stars_repo_head_hexsha": "5334a06afd1e54817a1c0fe4f32a557d0bdeed72", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
[STATEMENT] lemma K2_isometry_exp_2dist: assumes "a \<in> hyp2" and "b \<in> hyp2" and "is_K2_isometry J" shows "exp_2dist (apply_cltn2 a J) (apply_cltn2 b J) = exp_2dist a b" (is "exp_2dist ?aJ ?bJ = _") [PROOF STATE] proof (prove) goal (1 subgoal): 1. exp_2dist (apply_cltn2 a J) (apply_cltn2 b J) = exp_2dist a...
{"llama_tokens": 2872, "file": "Tarskis_Geometry_Hyperbolic_Tarski", "length": 22}
# These are the libraries we are going to use in the lab. import numpy as np import matplotlib.pyplot as plt from mpl_toolkits import mplot3d # The class for plot the diagram class plot_error_surfaces(object): # Constructor def __init__(self, w_range, b_range, X, Y, n_samples=30, go=True): W = np.l...
{"hexsha": "e88fcfd4e1f624ff91723ee3290ea7fbce5706fa", "size": 4847, "ext": "py", "lang": "Python", "max_stars_repo_path": "linear_regression_training_two_param.py", "max_stars_repo_name": "indervirbanipal/deep-neural-networks-with-pytorch", "max_stars_repo_head_hexsha": "40b99a431a49d41238ad5c89bb4b0888c48d74bc", "max...
import argparse import numpy as np import time from officeScheduler.ortools_utils import (build_scheduling_ilp, solve_ilp, extract_solution, ORTOOLS_SOLVER_STATUS_TO_OURS_MAP) import officeScheduler.Parser from officeScheduler.Solver import Solver, SolverStatus from officeScheduler.Schedule import Schedul...
{"hexsha": "74f60ae53c2ff1d960c758c4fe4f68bedbacc1f3", "size": 3366, "ext": "py", "lang": "Python", "max_stars_repo_path": "officeScheduler/direct_ilp_solver.py", "max_stars_repo_name": "ian-ludden/office-scheduler", "max_stars_repo_head_hexsha": "f71ccc1d091b3f68d37b8e45d3c4417508b77d09", "max_stars_repo_licenses": ["...
export interpolate,solution,mass,momentum,energy,massdiff,momentumdiff,energydiff """ interpolate(mesh,vector;n=2^3) Interpolate a vector `vector` of values on a uniform collocation grid defined by `mesh`. Return `(new_mesh,new_vector)` a new uniform mesh with `n` times as many values, and the vector of values a...
{"hexsha": "c83ba3cb54c76f5ee546d1dfc3071b4f45a6c761", "size": 7872, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/tools.jl", "max_stars_repo_name": "DeepWaterModels/FModels.jl", "max_stars_repo_head_hexsha": "66f58bbee576abcc47c73d64b2a66f1f80b824f2", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import numpy as np def _calculate_consistency(row, df, Y): """Helper function to calculate the consistency score Parameters ---------- row : pd.Series df : p.DataFrame Y : str Target Variable Returns ------- pd.Series Consistency Score of each sample in the given ...
{"hexsha": "cbc5efe7952dac0cee32270e55c05ce6d73eea1c", "size": 1764, "ext": "py", "lang": "Python", "max_stars_repo_path": "fairml/metrics/consistency.py", "max_stars_repo_name": "SchernHe/FairML", "max_stars_repo_head_hexsha": "ebd32df6dec1d5232e05e18c88e89179a420659e", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
\documentclass[a4paper,12pt]{report} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{amsmath} \usepackage{multirow} \usepackage{tikz} \setcounter{secnumdepth}{3} \usepackage{pdfpages} \usepackage{tabto} \usepackage[nottoc,notlof,notlot]{tocbibind} \renewcommand\bibname{References} \usepackage{cite} \usep...
{"hexsha": "8919b2949c9c82e75e48920cf0661b1669a161d6", "size": 18814, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "reports/main.tex", "max_stars_repo_name": "mgautam98/bda-face-recognition", "max_stars_repo_head_hexsha": "ff8e0e54b2adeadc75ba9a0a873c5bd302083031", "max_stars_repo_licenses": ["MIT"], "max_stars_...
#include <gazebo/gazebo.hh> #include <gazebo/physics/physics.hh> #include <gazebo/common/common.hh> #include <boost/bind.hpp> #include <ros/ros.h> #include <sensor_msgs/JointState.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/Point.h> #include <geometry_msgs/Quaternion.h> #include <Eigen/Dense> #include ...
{"hexsha": "ba15867d74d3d119da1cc0a7e8da9790872fcf89", "size": 7738, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/scorpio_plugin.cpp", "max_stars_repo_name": "shbang91/Scorpio", "max_stars_repo_head_hexsha": "c398402548f5f0b617aca8a515dd5c2192f66fe9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
import matplotlib as mplt mplt.use('Agg') import matplotlib.pyplot as plt from matplotlib import cm from netCDF4 import Dataset import sys, argparse import numpy as np def ext(data): s = data.shape ndata = np.zeros((s[0], s[1]+1)) ndata[:, 0:-1] = data ndata[:, -1] = data[:, 0] return ndata d...
{"hexsha": "351ffaed025a52a573e50a3096a629742161f770", "size": 5762, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/old/diagnose_scripts/plot/plot_diffcase_atm_meridional_mean_std.py", "max_stars_repo_name": "meteorologytoday/CESM-diagnostic", "max_stars_repo_head_hexsha": "ed9cbc3ffeb2ebebe7d7a2453a52111a5...
#! /usr/bin/env python #outer modules import os import sys import glob import numpy import argparse import re #personal modules import utilities """ This class contains logic for various utilities used thoughout the scripts. It has a collection of data parsed from the wos text files. """ class Utility: __articl...
{"hexsha": "316fb328e454ae9d952c48c66110babb00dce735", "size": 2239, "ext": "py", "lang": "Python", "max_stars_repo_path": "bibliotools3/scripts/utility.py", "max_stars_repo_name": "wonjoonSeol/ScienceScape", "max_stars_repo_head_hexsha": "8d8a3cb76193b6f85b7a2a6c7219e249237d64c8", "max_stars_repo_licenses": ["BSD-3-Cl...
# A DataFreeTree wraps a descendant of NNTree # which does not contain a copy of the data struct DataFreeTree{N <: NNTree} size::Tuple{Int,Int} hash::UInt64 tree::N end function get_points_dim(data) if eltype(data) <: AbstractVector ndim = eltype(eltype(data)) npoints = length(data) ...
{"hexsha": "e00efcd743a2456c7d21c15a1cc85eeb0457c330", "size": 2562, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/datafreetree.jl", "max_stars_repo_name": "dinarior/NearestNeighbors.jl", "max_stars_repo_head_hexsha": "5e159ed4b99abad8ae1c155730a6af07cf6bcf4d", "max_stars_repo_licenses": ["MIT"], "max_stars...
[STATEMENT] lemma read_action_action_locE: assumes "r \<in> read_actions E" obtains ad al where "(ad, al) \<in> action_loc P E r" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (\<And>ad al. (ad, al) \<in> action_loc P E r \<Longrightarrow> thesis) \<Longrightarrow> thesis [PROOF STEP] using assms [PROOF STATE] ...
{"llama_tokens": 198, "file": "JinjaThreads_MM_JMM_Spec", "length": 2}
import random import tensorflow as tf import math import os import cv2 import numpy as np import uuid import sys from tensorflow.python.framework import dtypes sys.path.insert(0, './') import libs.utils as utils """ 使用 Dataset api 并行读取图片数据 参考: - 关于 TF Dataset api 的改进讨论:https://github.com/tensorflow/...
{"hexsha": "4c9d8f68fa8e8e31b252cefd806d8a24f3f626f1", "size": 7283, "ext": "py", "lang": "Python", "max_stars_repo_path": "tf_crnn/libs/img_dataset.py", "max_stars_repo_name": "sunmengnan/city_brain", "max_stars_repo_head_hexsha": "478f0b974f4491b4201956f37b83ce6860712bc8", "max_stars_repo_licenses": ["MIT"], "max_sta...
from ctypes import POINTER, c_int, c_longlong, byref from ctypes import cdll from numpy import ctypeslib import sys platform = sys.platform libname = {'linux':'libmkl_rt.so', 'darwin':'libmkl_rt.dylib', 'win32':'mkl_rt.dll'} MKLlib = cdll.LoadLibrary(libname[platform]) c_int_p = POINTER(c_int) c_long...
{"hexsha": "639b8a63d22094bf64e93022e8529ab2a085a91a", "size": 3260, "ext": "py", "lang": "Python", "max_stars_repo_path": "torchwi/solver/pardiso_interface.py", "max_stars_repo_name": "pkgpl/TorchWI", "max_stars_repo_head_hexsha": "772f2f26b2faf7487a1eec6b1c4821ebaf6dd44f", "max_stars_repo_licenses": ["MIT"], "max_sta...
import numpy as np from auto_editor.audiotsm2.base import AnalysisSynthesisTSM from auto_editor.audiotsm2.utils.windows import hanning def find_peaks(amplitude): """ A value is considered to be a peak if it is higher than its four closest neighbours. """ # Pad the array with -1 at the beginning ...
{"hexsha": "c30aa48637dd37143154a8a4c33dc39707a19931", "size": 5741, "ext": "py", "lang": "Python", "max_stars_repo_path": "auto_editor/audiotsm2/phasevocoder.py", "max_stars_repo_name": "chancat87/auto-editor", "max_stars_repo_head_hexsha": "2dbf230ed172602e958e3b727cf5183eb48e50b3", "max_stars_repo_licenses": ["Unlic...
# -*- coding: utf-8 -*- """Tests checking kernel functions py implementation based on R package computations.""" import logging import unittest import networkx as nx import numpy as np from diffupy.kernels import ( compute_time_kernel, p_step_kernel, inverse_cosine_kernel, diffusion_kernel, regul...
{"hexsha": "4c84c7c69ddf584e789b0d8510d90d5d3f788797", "size": 1404, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_kernel.py", "max_stars_repo_name": "multipaths/diffuPy", "max_stars_repo_head_hexsha": "3cc170255af1f092ed9a3ebd14186d2435cabed0", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
! Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. ! See https://llvm.org/LICENSE.txt for license information. ! SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ! ! repeat intrinsic, nested ! bug exposed in tonto ! common/yyy/ yyy common/zzz/ zzz parameter(N=101+5) integer ex...
{"hexsha": "1e252d18e941fc62ed820c7fa6a58fbc6f0ccdfa", "size": 854, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "test/f90_correct/src/ch24.f", "max_stars_repo_name": "abrahamtovarmob/flang", "max_stars_repo_head_hexsha": "bcd84b29df046b6d6574f0bfa34ea5059092615a", "max_stars_repo_licenses": ["Apache-2.0"], "m...
import pickle from typing import Union, Callable import matplotlib.pyplot as plt import numpy as np from sklearn.model_selection import train_test_split import engine.utils.projections as projections from engine.estimators.logistic_regression import LogisticRegression from engine.optimizers.sgd_logistic import Logis...
{"hexsha": "27784d0ae818f231859cb7ebdb554895442f2e58", "size": 13575, "ext": "py", "lang": "Python", "max_stars_repo_path": "hyper_parameters_choice.py", "max_stars_repo_name": "GuillaumeDesforges/enpc-malap-project", "max_stars_repo_head_hexsha": "6c3092073ab3d6dc56b32c480910335c50eba7b3", "max_stars_repo_licenses": [...
""" The MIT License (MIT) Copyright (c) 2016 Jacek Dabrowski 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, merg...
{"hexsha": "baa47553dbb205cb90db80e8464f79e59a348877", "size": 13236, "ext": "py", "lang": "Python", "max_stars_repo_path": "trpovil/code/TRPOVIL.py", "max_stars_repo_name": "ponythewhite/trpovil", "max_stars_repo_head_hexsha": "ce16bb4728d9605833ea19ae0a97c7eca8098974", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
%!TEX root = ../main.tex \section{Transformation} \label{sec:transformer} In order to make code generation easier, the parser-generated AST is partially rewritten. Mostly, that is done because some constructs in SetlX and Python differ quite largely. This maybe could also be done in the parser, but the main reason ...
{"hexsha": "ce3b9c16c686cf0b1329279f42939f8756036339", "size": 4825, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "paper/chapters/transformer.tex", "max_stars_repo_name": "jcklie/setlx2py", "max_stars_repo_head_hexsha": "4a6166ad52cf7ae973faa6bcaf22ac830fab738d", "max_stars_repo_licenses": ["Apache-2.0"], "max_s...
import random from random import shuffle import numpy as np from datetime import datetime import time import queue import threading import logging from PIL import Image import itertools import re import os import glob import shutil import sys import copy import h5py from netCDF4 import Dataset import torch import torch...
{"hexsha": "0c7aef4bdff00eaf49bdd4c261ae07ae746129d2", "size": 5912, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/combine5.py", "max_stars_repo_name": "SungbinChoi/w4c_st1", "max_stars_repo_head_hexsha": "5acdedf3c6278cd7239a6beb605c3e16821f7c86", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_cou...
import esi from esi.biastrim import make_bias,biastrim from esi.flat import * from esi.straighten import startrace,straighten,fullSolution,getOrders from esi.wavesolve import solve from spectra import spectools,offset,measure_width from spectra.extract import extract import special_functions as sf from pickle import...
{"hexsha": "749a73bfb8f1d251a2006897dd10ba7b2ca8dfc0", "size": 13770, "ext": "py", "lang": "Python", "max_stars_repo_path": "keckcode/esiredux/pipe.py", "max_stars_repo_name": "cdfassnacht/keck_code", "max_stars_repo_head_hexsha": "a952b3806b3e64eef70deec2b2d1352e6ef6dfa0", "max_stars_repo_licenses": ["MIT"], "max_star...
#include "joint_tracker/RevoluteJointFilter.h" #include "omip_common/OMIPUtils.h" #include <Eigen/Geometry> #include <boost/math/distributions/chi_squared.hpp> #include "geometry_msgs/PoseWithCovarianceStamped.h" #include "std_msgs/Float64MultiArray.h" using namespace omip; using namespace MatrixWrapper; using na...
{"hexsha": "f33fca63a4f1a3ff1b0e9d96122cfe6b1cff4d72", "size": 44021, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "joint_tracker/src/RevoluteJointFilter.cpp", "max_stars_repo_name": "tu-rbo/omip", "max_stars_repo_head_hexsha": "825442774d1a9712937b535e5ced4e4c1aa32fcc", "max_stars_repo_licenses": ["MIT"], "max_...
import unittest import numpy as np from sklearn.datasets import load_breast_cancer from mlscratch.models.logistic_regression import LogisticRegression class TestLogisticRegression(unittest.TestCase): def setUp(self): self.X, self.y = load_breast_cancer(return_X_y=True) model = LogisticRegress...
{"hexsha": "43bf9a64196bfb7eb49ce665323c5316c1ce1ea1", "size": 1472, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_logistic_regression.py", "max_stars_repo_name": "yutayamazaki/Machine-Learning-Scratch", "max_stars_repo_head_hexsha": "aa8f8479b14dfff3451f4b2a77d721062f2e6780", "max_stars_repo_licens...
import numpy as np import pandas as pd import torch import torchaudio import sounddevice from scipy.io.wavfile import write from sklearn.metrics import confusion_matrix import seaborn as sn from model_definition_gender import ConvNet_roi_orya SAMPLE_RATE = 16000 device = torch.device("cpu") bundle = torchaudio.pipe...
{"hexsha": "57a0bf8d70ae857af28ec8397f0d3c4d62782ad1", "size": 4356, "ext": "py", "lang": "Python", "max_stars_repo_path": "gender/inference_gender.py", "max_stars_repo_name": "Orya-s/DeepLearningSound", "max_stars_repo_head_hexsha": "2599d6215809894b801d9f0922627fc5a3458e82", "max_stars_repo_licenses": ["Apache-2.0"],...
program stdIntVectorTest use NumberKindsModule use STDIntVectorModule use UtilitiesModule implicit none type(STDIntVector) :: intVec1, intVec2, intVec3, intVec4 integer(kint) :: i, j integer(kint), dimension(:) :: intArray(10), tooBigIntArray(30) print *, "STDIntVectorTest: 1. test all constructors." print *, "S...
{"hexsha": "a94b57491d900817f295119cbb3c428353458e38", "size": 2534, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "tests/STDIntVectorTest.f90", "max_stars_repo_name": "pbosler/lpm-v2", "max_stars_repo_head_hexsha": "b562c5c942b5e29cef4cfc4f85c0b1341cae690b", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Mean filtering as used for simultaneous EEG/fMRI""" from random import shuffle import os import time from progressbar import ProgressBar import eegpy from eegpy.misc import FATALERROR from eegpy.misc import debug from eegpy.misc import show_progressbar from eegpy.filte...
{"hexsha": "54e41e79eef94251f96dacf8d6f14e88a7107c0d", "size": 27430, "ext": "py", "lang": "Python", "max_stars_repo_path": "eegpy/filter/fmrifilt.py", "max_stars_repo_name": "thorstenkranz/eegpy", "max_stars_repo_head_hexsha": "0f9461456999874abbb774896ca832eb27740a9d", "max_stars_repo_licenses": ["BSD-2-Clause-FreeBS...
#____Assignment4_____# #building logistic regression classifier #importing necessary packages import os import sys import argparse sys.path.append(os.path.join("..")) # Import teaching utils import numpy as np import utils.classifier_utils as clf_util # Import sklearn metrics from sklearn import metrics from skle...
{"hexsha": "794bbbc8832857f6ce2a94dcd41cacc777edef6a", "size": 2219, "ext": "py", "lang": "Python", "max_stars_repo_path": "Assignment4/src/lr-mnist.py", "max_stars_repo_name": "haniamatera/cds-visual_new", "max_stars_repo_head_hexsha": "91c52cb607c839e6b23881aca047bda7c9888b29", "max_stars_repo_licenses": ["MIT"], "ma...
""" These functions convert files in the original BIOM format into a Neo4J format, and stores this in a local database. To reduce the size of the database, it is important to perform prevalence filtering + rarefaction first. Helpful: find taxonomy + associations of taxa MATCH p=(:Association)-->(n:Taxon) MATCH r=(n:Tax...
{"hexsha": "02fae4836512cf4d83ee1a4b63b7930010e67ee6", "size": 43967, "ext": "py", "lang": "Python", "max_stars_repo_path": "massoc/scripts/netbase.py", "max_stars_repo_name": "ramellose/massoc", "max_stars_repo_head_hexsha": "c55922db5c05f7eed68949491767771485a71bcd", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
from collections import namedtuple import numpy as np from numpy.random import normal from app.models.influx import insert_candles from app.ta.constructors import Point from config import BaseConfig Sample = namedtuple("Sample", ["close", "points"]) def make_sample(points: list) -> np.ndarray: assert len(point...
{"hexsha": "8132d06139f7e3435cd677b4f86dd20cc5f0b5eb", "size": 4960, "ext": "py", "lang": "Python", "max_stars_repo_path": "core/app/utils/sample_prices.py", "max_stars_repo_name": "bitreport-org/Bitreport", "max_stars_repo_head_hexsha": "f480c410d340e57645a9a23d12fe2a2d3d2add39", "max_stars_repo_licenses": ["MIT"], "m...
[STATEMENT] lemma ufa_compress_correct: assumes I: "ufa_invar l" assumes L[simp]: "x<length l" shows "ufa_\<alpha> (l[x := rep_of l x]) = ufa_\<alpha> l" [PROOF STATE] proof (prove) goal (1 subgoal): 1. ufa_\<alpha> (l[x := rep_of l x]) = ufa_\<alpha> l [PROOF STEP] by (auto simp: ufa_\<alpha>_def ufa_compress_a...
{"llama_tokens": 152, "file": "Separation_Logic_Imperative_HOL_Examples_Union_Find", "length": 1}
function detectCollision( dlnParams::DislocationParameters, network::DislocationNetwork, skipSegs = Vector{Tuple{Int, Int}}(), ) collisionDistSq = dlnParams.collisionDistSq label = network.label numNode = network.numNode[1] numSeg = network.numSeg[1] coord = network.coord nodeVel = n...
{"hexsha": "e783e99e6bc551c5cc5d09f15e49ce00c6f40208", "size": 15200, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Processing/DislocationTopologyCollision.jl", "max_stars_repo_name": "dcelisgarza/DDD", "max_stars_repo_head_hexsha": "9257c619240a2b3bbdddd813d5e08ab71a07f7be", "max_stars_repo_licenses": ["MI...
""" i-RevNet, implemented in Chainer. Original paper: 'i-RevNet: Deep Invertible Networks,' https://arxiv.org/abs/1802.07088. """ __all__ = ['IRevNet', 'irevnet301'] import os import chainer.functions as F import chainer.links as L from chainer import Chain from functools import partial from chainer.serialize...
{"hexsha": "0a86f6a43e3e4bd058b0b08765e3a0d0aaa6b1b9", "size": 15483, "ext": "py", "lang": "Python", "max_stars_repo_path": "chainer_/chainercv2/models/irevnet.py", "max_stars_repo_name": "raijinspecial/imgclsmob", "max_stars_repo_head_hexsha": "c5d3ab207a6304f1343e4394f0467bdc7403a72a", "max_stars_repo_licenses": ["MI...
import numpy as np from spikeinterface import download_dataset, get_global_dataset_folder from spikeinterface.extractors.neoextractors.neobaseextractor import NeoBaseRecordingExtractor gin_repo = 'https://gin.g-node.org/NeuralEnsemble/ephy_testing_data' local_folder = get_global_dataset_folder() / 'ephy_testing_data'...
{"hexsha": "c4f120c569b5e7dc65f72a168d69813a435254c3", "size": 4423, "ext": "py", "lang": "Python", "max_stars_repo_path": "spikeinterface/extractors/tests/common_tests.py", "max_stars_repo_name": "vncntprvst/spikeinterface", "max_stars_repo_head_hexsha": "dd5ae94f85fe5d9082b45321d2c96ba316eb4b77", "max_stars_repo_lice...
! { dg-do compile } ! { dg-options "-std=f2008" } ! ! PR fortran/48820 ! intrinsic :: rank ! { dg-error "new in TS 29113" } end
{"hexsha": "c8f8fa775084775b48539181fcea253ca0c2ea6b", "size": 129, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "validation_tests/llvm/f18/gfortran.dg/rank_3.f90", "max_stars_repo_name": "brugger1/testsuite", "max_stars_repo_head_hexsha": "9b504db668cdeaf7c561f15b76c95d05bfdd1517", "max_stars_repo_licenses"...
! @@name: workshare.1f ! @@type: F-fixed ! @@compilable: yes ! @@linkable: no ! @@expect: success SUBROUTINE WSHARE1(AA, BB, CC, DD, EE, FF, N) INTEGER N REAL AA(N,N), BB(N,N), CC(N,N), DD(N,N), EE(N,N), FF(N,N) !$OMP PARALLEL !$OMP WORKSHARE AA = BB CC = DD ...
{"hexsha": "c77c4decc1fd8c4254f8fabeea8c1b9e19ed9269", "size": 404, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "test/openmp_examples/sources/Example_workshare.1f.f", "max_stars_repo_name": "kammerdienerb/flang", "max_stars_repo_head_hexsha": "8cc4a02b94713750f09fe6b756d33daced0b4a74", "max_stars_repo_license...