text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
# Author: Tomas Hodan (hodantom@cmp.felk.cvut.cz) # Center for Machine Perception, Czech Technical University in Prague """Calculates error of 6D object pose estimates.""" import os import time import argparse import copy import numpy as np from bop_toolkit_lib import config from bop_toolkit_lib import dataset_param...
{"hexsha": "864868ce8869d27ef89b11a127f623448a27582f", "size": 15555, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/eval_calc_errors.py", "max_stars_repo_name": "tinylife/bop_toolkit", "max_stars_repo_head_hexsha": "fb726efcf504be2fa1c381e2484601c47b32e79c", "max_stars_repo_licenses": ["MIT"], "max_sta...
dyn.load('/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/server/libjvm.dylib') library(rJava) setwd("/Users/mengmengjiang/all datas/chap4") library(xlsx) #读取数据 q2 <- read.xlsx("f_eject_2.xls", sheetName = "eject_q15", header = TRUE) q3 <- read.xlsx("f_eject_2.xls", sheetName = "eject_q27", he...
{"hexsha": "08561f4c742fdcbc19fdcb2539a11fe6b368870c", "size": 5178, "ext": "r", "lang": "R", "max_stars_repo_path": "thesis/chap4/fig4-12.r", "max_stars_repo_name": "shuaimeng/r", "max_stars_repo_head_hexsha": "94fa0cce89c89a847b95000f07e64a0feac1eabe", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max...
#!/usr/bin/env python import argparse from eva import EvaProgram, Input, Output from eva.ckks import CKKSCompiler from eva.seal import generate_keys import numpy as np import time from eva.std.numeric import horizontal_sum def dot(x, y): return np.dot(x, y) def generate_inputs_naive(size, label="x"): inputs...
{"hexsha": "82789f2ad5480b27da525091f877dbbf7fb5f30c", "size": 3923, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/vector_dot.py", "max_stars_repo_name": "Wheest/EVA", "max_stars_repo_head_hexsha": "6d19da1d454f398f0ade297d3a76a4ee9e773929", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
/** * @file llviewermedia.cpp * @brief Client interface to the media engine * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU L...
{"hexsha": "997e64a131950c901863dda4e292ab818e781818", "size": 121675, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "indra/newview/llviewermedia.cpp", "max_stars_repo_name": "bloomsirenix/Firestorm-manikineko", "max_stars_repo_head_hexsha": "67e1bb03b2d05ab16ab98097870094a8cc9de2e7", "max_stars_repo_licenses": [...
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt from tensorflow.keras.utils import to_categorical import seaborn as sns from sklearn.metrics import roc_curve, confusion_matrix, accuracy_score, average_precision_score from sklearn.metrics import plot_precision_recall_curve from pathlib i...
{"hexsha": "e03c215008bd20f2918fea0e43e7842f8f57e401", "size": 11128, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/utils.py", "max_stars_repo_name": "acoletti-33100/GoGet", "max_stars_repo_head_hexsha": "fc2e9a2e3f97035dcf54ed6513b580de826bfe49", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
# Copyright 2022 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": "4d1ad71924284394968527bdd772c7a8409a94b4", "size": 5839, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/st/ops/cpu/test_nllloss_op.py", "max_stars_repo_name": "httpsgithu/mindspore", "max_stars_repo_head_hexsha": "c29d6bb764e233b427319cb89ba79e420f1e2c64", "max_stars_repo_licenses": ["Apache-2...
# 计算wav的短时能量特征,仅支持PCM编码的wav # 接受一个参数,指定wav文件路径 import matplotlib.pyplot as plt import numpy as np import sys import wave ''' 计算公式x(i,j)=wav(i+j)*window(j) (j=0:fl-1) E(i)=sum(x(i,j)**2) (j=0:fl-1,i=0:fs:wavLen) ''' def st_energy(wav:'单通道PCM编码波形序列', window:'窗函数序列', fs:'帧移'): fl = len(w...
{"hexsha": "3e692c6dd939dab33799a83a9f42753ba219b674", "size": 1565, "ext": "py", "lang": "Python", "max_stars_repo_path": "StEnergy.py", "max_stars_repo_name": "Starangle/scripts", "max_stars_repo_head_hexsha": "55290b798d98c04119df96acb2bf6d660ac644fe", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": nu...
# -*- coding:utf-8 -*- """ """ import dask.dataframe as dd import numpy as np import pandas as pd def prepare_dataframe(): from hypernets.tabular.datasets import dsutils pdf = dsutils.load_bank() ddf = dd.from_pandas(pdf, npartitions=2) return pdf, ddf def test_max_abs_scale(): from sklearn im...
{"hexsha": "7d5cdb771912cf7ccd5f7b2958d571417ac74eb6", "size": 2191, "ext": "py", "lang": "Python", "max_stars_repo_path": "hypernets/tests/tabular/dask_ex_test.py", "max_stars_repo_name": "Enpen/Hypernets", "max_stars_repo_head_hexsha": "5fbf01412ffaef310855d98f52f8cc169e96246b", "max_stars_repo_licenses": ["Apache-2....
import unittest import numpy as np import gym import random from environment import AtariGymEnvironment class BaseEnvironmentTest(unittest.TestCase): def test_BaseEnvironment(self): # Create the environment env = AtariGymEnvironment(display=False, game="Breakout-v0") # Start a new game ...
{"hexsha": "8eff248506e5e4eac572456800a278002676b577", "size": 2455, "ext": "py", "lang": "Python", "max_stars_repo_path": "q_learning/backup_output_net1_discount_0_batch_400_best/test_environments.py", "max_stars_repo_name": "jakejhansen/minesweeper_solver", "max_stars_repo_head_hexsha": "5eaba3f3242f08cbbb69db56e7fde...
import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from flags import CONST from sklearn.model_selection import train_test_split from keras import backend as K from tensorflow.keras.models import Sequential, model_from_json from tensorflow.keras.layers import SimpleRNN, Embedding, Dense, Dropout ...
{"hexsha": "e15dc07f731688f035a61802d0ccf6ed304d088c", "size": 7411, "ext": "py", "lang": "Python", "max_stars_repo_path": "classifier.py", "max_stars_repo_name": "nero-angela/DevblogClassifier", "max_stars_repo_head_hexsha": "9c64462e813fc1d501c62600ed9c6eaba10c3083", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
""" vimg contains the vImg class, which is the main class in vtools that allows you to represent """ #################################################################################################### ########################################### vtools.vimg ############################################ ################...
{"hexsha": "2cf080c9928cda8300624712ad6b87d1fa4bdf04", "size": 58229, "ext": "py", "lang": "Python", "max_stars_repo_path": "vtools/vimg.py", "max_stars_repo_name": "etherwar/vtools", "max_stars_repo_head_hexsha": "15503f9fe029fef8866dd05ef63409fbc7840366", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "...
[STATEMENT] lemma Max_wrt_among_subset: "Max_wrt_among le A \<subseteq> carrier" "Max_wrt_among le A \<subseteq> A" [PROOF STATE] proof (prove) goal (1 subgoal): 1. Max_wrt_among le A \<subseteq> carrier &&& Max_wrt_among le A \<subseteq> A [PROOF STEP] unfolding Max_wrt_among_preorder [PROOF STATE] proof (prove) go...
{"llama_tokens": 242, "file": "Randomised_Social_Choice_Order_Predicates", "length": 2}
[STATEMENT] lemma (in Ring) zero_ideal:"ideal R {\<zero>}" [PROOF STATE] proof (prove) goal (1 subgoal): 1. ideal R {\<zero>} [PROOF STEP] apply (cut_tac ring_is_ag) [PROOF STATE] proof (prove) goal (1 subgoal): 1. aGroup R \<Longrightarrow> ideal R {\<zero>} [PROOF STEP] apply (rule ideal_condition1) [PROOF STATE] p...
{"llama_tokens": 900, "file": "Group-Ring-Module_Algebra4", "length": 9}
#!/usr/bin/env python3 import numpy as np Exponential = __import__('exponential').Exponential np.random.seed(0) data = np.random.exponential(0.5, 100).tolist() e1 = Exponential(data) print('f(1):', e1.pdf(1)) e2 = Exponential(lambtha=2) print('f(1):', e2.pdf(1))
{"hexsha": "62366f39428086729272a4cdf4c5d65efe9e2e27", "size": 266, "ext": "py", "lang": "Python", "max_stars_repo_path": "math/0x03-probability/4-main.py", "max_stars_repo_name": "sebaslherrera/holbertonschool-machine_learning", "max_stars_repo_head_hexsha": "a4c09230688700aee199f4099de32261104918be", "max_stars_repo_...
""" Adapted from: https: // github.com / StanfordVL / behavioral_navigation_nlp """ from __future__ import print_function from collections import Counter, defaultdict import string import re import argparse import numpy as np from matplotlib import pyplot as plt import pandas as pd # Interface for summarizing all me...
{"hexsha": "b7df0dba44af0da6344290666edecb1a9e72b09d", "size": 3807, "ext": "py", "lang": "Python", "max_stars_repo_path": "compute_metrics.py", "max_stars_repo_name": "amarsdd/R-NET-Behavioral-Navigation", "max_stars_repo_head_hexsha": "362f344a627ded34ff2257dfbff500e983b6b09e", "max_stars_repo_licenses": ["MIT"], "ma...
#!/usr/bin/env python # ****************************************************************************** # Copyright 2014-2018 Intel Corporation # # 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 ...
{"hexsha": "656c88b4abe6b9f3e3fd6bbb20a3b484daa289d7", "size": 7265, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/convnet-benchmarks/googlenet_v1.py", "max_stars_repo_name": "MUTTERSCHIFF/ngraph-neon", "max_stars_repo_head_hexsha": "762e8ea639cdc671311ee4929bd1ee8cdf83e8bb", "max_stars_repo_licenses"...
""" =============================================================================== Created on Feb 25, 2020 @author: Ramin Mehdizad Tekiyeh This code is written in Python 3.7.4 , Spyder 3.3.6 =============================================================================== """ #=======================...
{"hexsha": "851f28bca2b8a9f13b58a0067624d9e4f78e651e", "size": 2983, "ext": "py", "lang": "Python", "max_stars_repo_path": "Main.py", "max_stars_repo_name": "raminmehdizad/P4_ID3", "max_stars_repo_head_hexsha": "59110824100c797f733c41255ed0d886d3705b2c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max...
/- Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
{"author": "google", "repo": "formal-ml", "sha": "630011d19fdd9539c8d6493a69fe70af5d193590", "save_path": "github-repos/lean/google-formal-ml", "path": "github-repos/lean/google-formal-ml/formal-ml-630011d19fdd9539c8d6493a69fe70af5d193590/src/formal_ml/prod_measure.lean"}
import numpy as np ''' Class that generates potential field given obstacle map. ''' class PotentialField: ''' map: Numpy array, 2d or 3d map of obstacles. 1 means obstacle, otherwise, free space. limits: Dictionary of tuples {xlim: (min, max), ylim: (c, d), zlim: (e, f)} params: Dictionary of potential...
{"hexsha": "3f67d97dabb33746ec3b4039b887cd89129e302d", "size": 9604, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/Planning/PotentialField/PotentialField.py", "max_stars_repo_name": "baixiaobest/Probabilitic-Robotic-Algorithm", "max_stars_repo_head_hexsha": "7e7e5c37edd4c14615541922d17f840dd10dd5c1", "max_...
import numpy as np from gym import spaces from gym_pybullet_drones.envs.BaseAviary import DroneModel, Physics, BaseAviary ###################################################################################################################################################### #### Single drone environment class for rein...
{"hexsha": "76f0464cf1e9c7a6aa3d724c90e04d2f93e8f226", "size": 14357, "ext": "py", "lang": "Python", "max_stars_repo_path": "gym_pybullet_drones/envs/single_agent_rl/TakeoffAviary.py", "max_stars_repo_name": "LukeSchmitt96/gym-pybullet-drones", "max_stars_repo_head_hexsha": "33531e3b3a63c8441f9c50456e42517fab00deb5", "...
import pandas as pd import numpy as np from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot import matplotlib.pyplot as plt from matplotlib import pyplot import plotly.graph_objs as go import streamlit as st import warnings from sklearn.preprocessing import StandardScaler from sklearn.decomposi...
{"hexsha": "c8705ecb63c546fb3c983bf2cf37fd820e5c5ac2", "size": 26123, "ext": "py", "lang": "Python", "max_stars_repo_path": "streamlit/oilSpill.py", "max_stars_repo_name": "keshavsethi/ASEAN-India", "max_stars_repo_head_hexsha": "d85a327b727b0645bd1e17b61771caa3d519eea7", "max_stars_repo_licenses": ["MIT"], "max_stars_...
//-***************************************************************************** // // Copyright (c) 2009-2011, // Sony Pictures Imageworks Inc. and // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. // // All rights reserved. // // Redistribution and use in source and binary forms, with ...
{"hexsha": "5374b9571db90c91a3acbec2fd0716f35727bd62", "size": 6834, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "prman/Procedural/ProcArgs.cpp", "max_stars_repo_name": "nebkor/ardent-embic", "max_stars_repo_head_hexsha": "4eab1c4f089438bd26636f4be3be3efa83bc8338", "max_stars_repo_licenses": ["MIT"], "max_stars...
import sys import os import cv2 import numpy as np from extract_face.data import * """ Load cascade xml file and save to FACE_CASCADE """ FACE_CASCADE = cv2.CascadeClassifier(haarcascade_frontalface_default) def extract_face(image_path, scale_factor=1.1, min_neighbors=5, ...
{"hexsha": "9aa9a63774860d53a17d748afad871a13b21c014", "size": 2421, "ext": "py", "lang": "Python", "max_stars_repo_path": "build/lib/extract_face/__init__.py", "max_stars_repo_name": "v2stech-solutions/extract-face", "max_stars_repo_head_hexsha": "68f602b6fac5c9fd896aa20e0ea2910962d94322", "max_stars_repo_licenses": [...
import numpy as np import csv import sys import pickle from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap import matplotlib data_file = sys.argv[1] output_image = sys.argv[2] data_dict = pickle.load(open(data_file,'rb')) codes = [] names = [] landmark_names = ['tr_reg_00...
{"hexsha": "0afc01441bd4111392f72f4e8d18740a37a00f42", "size": 1653, "ext": "py", "lang": "Python", "max_stars_repo_path": "Src/latent_tsne_working.py", "max_stars_repo_name": "sanjeevmk/GLASS", "max_stars_repo_head_hexsha": "91c0954eab87d25d4866fea5c338f79fbca4f79e", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
import numpy as np import os import time import tensorflow as tf import pathlib import shutil from PIL import Image # Object detection module from object_detection.utils import config_util from object_detection.utils import label_map_util from object_detection.utils import visualization_utils as vis_utils from object...
{"hexsha": "94d4f936f5c754ac577403bd32bea1fedfe5cc1d", "size": 7801, "ext": "py", "lang": "Python", "max_stars_repo_path": "TFObjectDetectionAPIExtractor.py", "max_stars_repo_name": "cattypkung/TFObjectDetectionAPIExtractor", "max_stars_repo_head_hexsha": "d2515572cc0c4f507b6efd04f6d07c87c00173e8", "max_stars_repo_lice...
from reconnect_2d import get_path from reconnect_2d import loadpickle from reconnect_2d import stream_max from reconnect_2d import plot_Jy import reconnect_2d import matplotlib import matplotlib.pyplot as plt import numpy as np import os.path import os,sys if __name__=='__main__': """ use this script to generate se...
{"hexsha": "b6bd506a44c6bc0a555fef553c5209a9ca9e3d4c", "size": 1556, "ext": "py", "lang": "Python", "max_stars_repo_path": "plot_2dcs.py", "max_stars_repo_name": "jmshi/reconnection", "max_stars_repo_head_hexsha": "f1f0c21d119dd2aff3ef2a61fc3d915cbd0916a6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef KAGOME_STROBE_HPP #define KAGOME_STROBE_HPP #include <array> #include <cstdint> #include <cstring> #include <gsl/span> #include <tuple> #include <type_traits> #include <boost/assert.hpp> #include "crypto/kec...
{"hexsha": "741728b3858eabd530d10cb321f31ce6b40683e6", "size": 7637, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "core/primitives/strobe.hpp", "max_stars_repo_name": "igor-egorov/kagome", "max_stars_repo_head_hexsha": "b2a77061791aa7c1eea174246ddc02ef5be1b605", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
// // Created by phoenixflower on 11/14/20. // #ifndef LANDESSDEVCORE_WEBSERVER_HPP #define LANDESSDEVCORE_WEBSERVER_HPP #include <boost/beast/core.hpp> #include <boost/beast/http.hpp> #include <boost/beast/version.hpp> #include <boost/asio.hpp> #include <boost/filesystem.hpp> #include <chrono> #include <cstring> #in...
{"hexsha": "ec0fde64165e6b4ff4e6fe7cf2033e2c73ddb538", "size": 15554, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "REST/WebServer.hpp", "max_stars_repo_name": "jlandess/LandessDevCore", "max_stars_repo_head_hexsha": "3319c36c3232415d6bdba7da8b4896c0638badf2", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st...
Require Export ZArith. Inductive Z_btree : Set := Z_leaf : Z_btree | Z_bnode : Z->Z_btree->Z_btree->Z_btree. Inductive btree (A:Type) :Type := bleaf : btree A | bnode : A ->btree A->btree A->btree A. Fixpoint Z_btree_to_btree (t:Z_btree) : btree Z := match t with Z_leaf => bleaf Z | Z_bnode x t1 t2 => bn...
{"author": "raduom", "repo": "coq-art", "sha": "092a8df8e74d7d7a90a2405e4eacf902e528d83a", "save_path": "github-repos/coq/raduom-coq-art", "path": "github-repos/coq/raduom-coq-art/coq-art-092a8df8e74d7d7a90a2405e4eacf902e528d83a/ch6_inductive_data/SRC/poly_tree.v"}
""".""" from copy import deepcopy as _dcopy from collections import namedtuple as _namedtuple import numpy as np import pyaccel from ..orbcorr import OrbRespmat class CouplingCorr(): """.""" CORR_STATUS = _namedtuple('CorrStatus', ['Fail', 'Sucess'])(0, 1) CORR_METHODS = _namedtuple('CorrMethods', ['O...
{"hexsha": "fe33d5f4f8c8e7480666a98e04155a8b5ca1f55c", "size": 6624, "ext": "py", "lang": "Python", "max_stars_repo_path": "apsuite/optics_analysis/coupling_correction.py", "max_stars_repo_name": "lnls-fac/apsuite", "max_stars_repo_head_hexsha": "f96b0c6ce2314d6cd6e0b2d14d33e4b5a588e9a1", "max_stars_repo_licenses": ["M...
import cv2 import numpy as np #Harris filename = 'ts4.jpg' img1 = cv2.imread(filename) #img1 is input iage after reading gray = cv2.cvtColor(img1,cv2.COLOR_BGR2GRAY)#gray is rgb2gray conversion of img1 gray = np.float32(gray) print(gray.shape) dst = cv2.cornerHarris(gray, 2, 3, 0.04)#2 is Neighborhood size 3 is 3...
{"hexsha": "9a03d381c5b1c7d97d9a93a84632d0824104558b", "size": 9335, "ext": "py", "lang": "Python", "max_stars_repo_path": "road-marker-labelling-tool.py", "max_stars_repo_name": "shivamsardana/Road-Marker-Labelling-Tool", "max_stars_repo_head_hexsha": "0f8f285d49518e2a10c066d5e7dd87148217ec23", "max_stars_repo_license...
//================================================================== // Author : Pointner Sebastian // Company : Johannes Kepler University // Name : SMT Macro Placer // Workfile : bookshelf.hpp // // Date : 13. January 2019 // Compiler : gcc version 10.0.1 (GCC) // Copyright : Jo...
{"hexsha": "6751b0dbcbba2b16c4a3e078a88db401132d01d3", "size": 3000, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "01_src/macrocircuit/bookshelf.hpp", "max_stars_repo_name": "gledr/SMT_MacroPlacer", "max_stars_repo_head_hexsha": "b5b25f0ce9094553167ffd4985721f86414ceddc", "max_stars_repo_licenses": ["MIT"], "max...
""" Copyright 2017-2018 Fizyr (https://fizyr.com) 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 in w...
{"hexsha": "6f0873eb254c99636b99736d7f09d7cd516b1c7b", "size": 12618, "ext": "py", "lang": "Python", "max_stars_repo_path": "core/utils/eval.py", "max_stars_repo_name": "FMsunyh/keras-yolo2", "max_stars_repo_head_hexsha": "3439e2cffecbb47349fca8adb727c1c298d9c2d9", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
#!/usr/bin/env python """ Run the path-based stochastic policy iteration algorithm """ import argparse from control4.algs.trpo_single_path import single_path_spi, configure_test_mode from control4.algs.alg_params import * from control4.config import setup_logging,print_theano_config from control4.misc.console_utils ...
{"hexsha": "ae0c0298d536ea2ae4b166b42883f76cea932ef6", "size": 1365, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/algs/run_spi.py", "max_stars_repo_name": "sfpd/rlreloaded", "max_stars_repo_head_hexsha": "650c64ec22ad45996c8c577d85b1a4f20aa1c692", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
! -- Module to manage unit numbers. Allows for multiple unit numbers ! -- assigned to a single package type, as shown below. ! -- row(i) cunit(i) iunit(i)%nval iunit(i)%iunit iunit(i)%ipos ! -- 1 BCF6 1 (1000) (1) ! -- 2 WEL 3 (1001,1003...
{"hexsha": "41f968a13113505b0624334cac6bbf739528fa8f", "size": 5912, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/Utilities/Iunit.f90", "max_stars_repo_name": "scharlton2/modflow6", "max_stars_repo_head_hexsha": "83ac72ee3b6f580aaffef6352cf15c1697d3ce66", "max_stars_repo_licenses": ["CC0-1.0"], "max_sta...
#!/usr/bin/env python import sys import rospy import std_msgs import yaml from std_msgs.msg import String import math import numpy as np from tf.transformations import quaternion_from_euler, euler_from_quaternion class SendMove(object): def __init__(self): self.pub = rospy.Publisher('/ur_driver/URScript', ...
{"hexsha": "177b7ddea9154fa03ad1be0ec95661723e4a43d5", "size": 3885, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/SendMove.py", "max_stars_repo_name": "RoboHubEindhoven/suii_manipulation", "max_stars_repo_head_hexsha": "87503138803af8193619fee411f1fa21299e02df", "max_stars_repo_licenses": ["BSD-3-Clause"]...
/******************************************************************************* * Copyright (c) 2018 UT-Battelle, LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompanies...
{"hexsha": "3a212aad1e6fc3313b46a7fe1c1d0966f9376d3f", "size": 5284, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "artifacts/old_dataset_versions/minimal_commits_v02/xacc/xacc#154/after/AssignmentErrorKernelDecorator.hpp", "max_stars_repo_name": "MattePalte/Bugs-Quantum-Computing-Platforms", "max_stars_repo_head...
import pygame from OpenGL.GL import * import OpenGL.GL.shaders as shaders import glm import pyassimp import numpy import math # pygame pygame.init() pygame.display.set_mode((800, 600), pygame.HWSURFACE | pygame.OPENGLBLIT | pygame.DOUBLEBUF) clock = pygame.time.Clock() pygame.key.set_repeat(1, 10) glClearColor(0.18...
{"hexsha": "a19db245db5705fcfcda4874d3e94b2cc1d55d08", "size": 6451, "ext": "py", "lang": "Python", "max_stars_repo_path": "Proyecto2/camera.py", "max_stars_repo_name": "ciborg245/bmp_render", "max_stars_repo_head_hexsha": "e4a14995136da55fe74ded9789739b20a5d08072", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
import numpy as np import tensorflow as tf try: from tensorflow.keras import utils except: from tensorflow.contrib.keras import utils from .model_base import BaseModel from ..utils.data_utils import BatchGenerator from ..metrics import mae from ..metrics import rmse class SVD(BaseModel): """Collaborativ...
{"hexsha": "812cb68b60d8c760ddd7ea30d24755d35cc8e918", "size": 7657, "ext": "py", "lang": "Python", "max_stars_repo_path": "tfcf/models/svd.py", "max_stars_repo_name": "sabyasm/tf-recsys", "max_stars_repo_head_hexsha": "8f84f2cfb21e94c0874195f16acd63e6f5bbac9b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
# Build the dependencies Mod = @eval module Anon end Mod.include("build_ZMQ.v4.3.1.jl") Mod.include("build_libhelicsSharedLib.v2.3.0.jl")
{"hexsha": "9ec405ac5d7fe72efa5da1a82bd3b960f1b735ab", "size": 139, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "deps/build.jl", "max_stars_repo_name": "UnofficialJuliaMirror/HELICS.jl-81524022-8764-5038-b61c-08cb1f58760f", "max_stars_repo_head_hexsha": "555137c9cc84cb1abfe5c6a39b139c808ce31e12", "max_stars_re...
# Copyright Google Inc. 2021 # 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 in writing, software #...
{"hexsha": "654afef29c62105be2d4e011f8aaf97165c705db", "size": 2500, "ext": "py", "lang": "Python", "max_stars_repo_path": "app/dashboard/modules/population.py", "max_stars_repo_name": "GoogleCloudPlatform/bigquery-bokeh-dashboard", "max_stars_repo_head_hexsha": "c33c4c84250c9262d33fc7af459a5a6fdf27dcf8", "max_stars_re...
""" PMD module. """ from __future__ import print_function import os import sys import copy import nappy import numpy as np try: import nappy.pmd.pmd_wrapper as pw except: pass __all__ = ['inpmd','pmd2phonopy','pairlist'] from . import * __author__ = "RYO KOBAYASHI" __version__ = "210302" def str2char(stri...
{"hexsha": "4f755fe80b306d709ccef435097bc49a84a47438", "size": 8315, "ext": "py", "lang": "Python", "max_stars_repo_path": "nappy/pmd/__init__.py", "max_stars_repo_name": "ryokbys/nap", "max_stars_repo_head_hexsha": "ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 27, "...
import numpy as np import itertools as it from mobject import Mobject, Mobject1D, Mobject2D, Mobject from topics.geometry import Line from helpers import * class Stars(Mobject1D): CONFIG = { "stroke_width" : 1, "radius" : SPACE_WIDTH, "num_points" : 1000, } def genera...
{"hexsha": "dbf726192042242f86963e2fd29b35b535e38f5b", "size": 3576, "ext": "py", "lang": "Python", "max_stars_repo_path": "old_projects/three_dimensions.py", "max_stars_repo_name": "S3L1M/Image-RGB-Ratio", "max_stars_repo_head_hexsha": "bd0d631166211d89e12acff0345a7754eb4e53a2", "max_stars_repo_licenses": ["MIT"], "ma...
from abstract import AbstractRobotInterface import gym; from gym import spaces import numpy as np import os import pybullet as pb import rospkg import subprocess class Ur5RobotiqInterface(AbstractRobotInterface): ''' Defines action space for the ur5 with a robotiq 85 gripper. This is the standard "cost...
{"hexsha": "38c6c03c5a916407f2da6c1de63381e61bc4b718", "size": 5858, "ext": "py", "lang": "Python", "max_stars_repo_path": "costar_task_plan/python/costar_task_plan/simulation/robots/ur5_robotiq.py", "max_stars_repo_name": "cpaxton/costar_plan", "max_stars_repo_head_hexsha": "be5c12f9d0e9d7078e6a5c283d3be059e7f3d040", ...
import numpy as np from collections import defaultdict, OrderedDict from . import uff_pb2 as uff_pb from .data import FieldType, create_data from .exceptions import UffException from .node import Node from .utils import extend_with_original_traceback, int_types def _create_fields(default_fields, fields=None): de...
{"hexsha": "157347aa1fd9a17b8a1455d210a58c0e4e6ae5ff", "size": 15178, "ext": "py", "lang": "Python", "max_stars_repo_path": "sloth/uff/model/graph.py", "max_stars_repo_name": "frank26080115/jetbot", "max_stars_repo_head_hexsha": "19354e5f8b2e3e4853f7b197b5e2714502822c3d", "max_stars_repo_licenses": ["MIT"], "max_stars_...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 28 22:34:16 2019 @author: jinyi """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 28 19:09:29 2019 @author: jinyi """ import numpy as np # machine limits epsilon eps = np.finfo(float).eps N = 1000 sum1 = 0 for j in range(1...
{"hexsha": "96739d3fb78dfbf0ad3ea6718ded0fc6a9449738", "size": 1460, "ext": "py", "lang": "Python", "max_stars_repo_path": "homework2-4.py", "max_stars_repo_name": "jinyiabc/machine_learning", "max_stars_repo_head_hexsha": "f6f4cc678d6e10fbf463bc9d400fb57c10a5291a", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
import cv2 import numpy as np img = cv2.imread('luotuo.jpg', 0) ret2, th2 = cv2.threshold(img, 0, 255, cv2.THRESH_BINARY+cv2.THRESH_OTSU) for i in range(2000): _x = np.random.randint(0, th2.shape[0]) _y = np.random.randint(0, th2.shape[1]) th2[_x][_y] = 0 kernel = np.ones((5, 5), np.uint8) erosion = cv2.mo...
{"hexsha": "9dbcd1ab550d29bb4115756b7ecac5721f908501", "size": 453, "ext": "py", "lang": "Python", "max_stars_repo_path": "mathmorphology/morph_close.py", "max_stars_repo_name": "stelmistery/practice_diploma", "max_stars_repo_head_hexsha": "0daefd5943eaf52218d1cff90549389267891bdc", "max_stars_repo_licenses": ["MIT"], ...
[STATEMENT] lemma lucas_lehmer_mult_assoc: assumes m: "m > 0" shows "lucas_lehmer_mult m x (lucas_lehmer_mult m y z) = lucas_lehmer_mult m (lucas_lehmer_mult m x y) z" [PROOF STATE] proof (prove) goal (1 subgoal): 1. lucas_lehmer_mult m x (lucas_lehmer_mult m y z) = lucas_lehmer_mult m (lucas_lehmer_m...
{"llama_tokens": 4802, "file": "Mersenne_Primes_Lucas_Lehmer", "length": 25}
# --- built in --- from typing import ( Optional, Union ) # --- 3rd party --- import gym import numpy as np import torch from torch import nn # --- my module --- from rlchemy.lib import prob as rl_prob from rlchemy.lib import registry as rl_registry from rlchemy.lib.nets.base import DelayedModule __all__ = [ 'Ca...
{"hexsha": "f84196bb157533758cc1e5c5649d60a42dea9a5c", "size": 6410, "ext": "py", "lang": "Python", "max_stars_repo_path": "rlchemy/lib/nets/policies.py", "max_stars_repo_name": "Ending2015a/rlchemy", "max_stars_repo_head_hexsha": "42b1ed3d5654dd28cffd99de0db62584356228d4", "max_stars_repo_licenses": ["MIT"], "max_star...
"""Bokeh Autocorrplot.""" import bokeh.plotting as bkp import numpy as np from bokeh.layouts import gridplot from bokeh.models import DataRange1d from bokeh.models.annotations import Title from . import backend_kwarg_defaults, backend_show from ...plot_utils import _create_axes_grid, make_label from ....stats import a...
{"hexsha": "6f80447c43d69aabfad34449abe7fb40d1abc8ff", "size": 2362, "ext": "py", "lang": "Python", "max_stars_repo_path": "arviz/plots/backends/bokeh/autocorrplot.py", "max_stars_repo_name": "amukh18/arviz", "max_stars_repo_head_hexsha": "162e833b4918b4a4d43fc102cd61a653f39e8a25", "max_stars_repo_licenses": ["Apache-2...
import numpy as np import pandas as pd from matplotlib import pyplot as plt from pathlib import Path from collections import Counter from sklearn.model_selection import train_test_split import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers print("Tensorflow Version:", tf.__version_...
{"hexsha": "f5426de85dacb822d2cd230279e9387de82866e2", "size": 10569, "ext": "py", "lang": "Python", "max_stars_repo_path": "train.py", "max_stars_repo_name": "codePerfectPlus/OCR-Captcha", "max_stars_repo_head_hexsha": "d38a848cabc302fc444c464f09bfe40b0c81b294", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2...
# This file has been generated automatically by 'generate.jl' __precompile__() module Traits export VertexTrait, EdgeTrait, refines @enum VertexTrait begin CustomScheduler InstrumentedCommunicationInterconnect Goal TimeDivisionMultiplexer AbstractOrdering FixedPriorityScheduler BufferSignal ExtraFun...
{"hexsha": "3a544ed316314e23b6847599bb6ccf6f714a63d2", "size": 9498, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "julia/src/ForSyDeIO/Models/Traits.jl", "max_stars_repo_name": "forsyde/forsyde-io", "max_stars_repo_head_hexsha": "d93b2b1839d30590371acfc588d081c0f8cacfc6", "max_stars_repo_licenses": ["MIT"], "ma...
SUBROUTINE GQGPRJ ( proj, angle1, angle2, angle3, kx, ky, + dlatll, dlonll, dlatur, dlonur, iret ) C************************************************************************ C* GQGPRJ * C* * C* This subroutine returns the current coordinate system definition * C* for a grid which is even...
{"hexsha": "58c1530bb2c074581106e0a58330144f2b596463", "size": 2480, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "gempak/source/appl/grid/gqgprj.f", "max_stars_repo_name": "oxelson/gempak", "max_stars_repo_head_hexsha": "e7c477814d7084c87d3313c94e192d13d8341fa1", "max_stars_repo_licenses": ["BSD-3-Clause"], "...
import os import sys import matplotlib.pyplot as plt from matplotlib.ticker import FixedLocator, FixedFormatter import numpy as np from scipy.integrate import odeint from scipy.interpolate import make_interp_spline, BSpline def ode_solver(t, initial_conditions, params, ode_model): initT1, initT2, initE1, initE2, i...
{"hexsha": "d77c40b15e7b80f0aef21e6a2de64c14b7129291", "size": 8178, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/ode-tcl-model.py", "max_stars_repo_name": "Jmccullough12/simcov-antibodies", "max_stars_repo_head_hexsha": "6a70553a720917149439851f548f8b697675436c", "max_stars_repo_licenses": ["BSD-3-Cl...
from . import DATA_DIR import sys import glob from .background_systems import BackgroundSystemModel from .export import ExportInventory from inspect import currentframe, getframeinfo from pathlib import Path from scipy import sparse import csv import itertools import numexpr as ne import numpy as np import xarray as xr...
{"hexsha": "7d5cf31371d57d1d5e01bffec3ad52101c96988a", "size": 134221, "ext": "py", "lang": "Python", "max_stars_repo_path": "carculator/inventory.py", "max_stars_repo_name": "SimonVoelker/carculator", "max_stars_repo_head_hexsha": "e40d664c9b5612250cf9ad2c6fa2a199b0bf88c5", "max_stars_repo_licenses": ["BSD-3-Clause"],...
import torch import numpy as np import copy from collections import OrderedDict from tqdm import tqdm def cam2pixel(cam_coord, f, c): x = cam_coord[..., 0] / cam_coord[..., 2] * f[0] + c[0] y = cam_coord[..., 1] / cam_coord[..., 2] * f[1] + c[1] z = cam_coord[..., 2] return x, y, z def pixel2cam(pixel_coord, f...
{"hexsha": "8c55b6e2ca28f656ad61c4c89c93c2970c244401", "size": 8293, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/utils_pose.py", "max_stars_repo_name": "ostadabbas/AdaptedHumanPose", "max_stars_repo_head_hexsha": "d129c049ebfe4231a2c0d0ad0644f76a9cfe92cf", "max_stars_repo_licenses": ["MIT"], "max_stars...
/** * Copyright (c) 2017 Melown Technologies SE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the f...
{"hexsha": "1f6678d69689420d7172d5b4488647740ae1e818", "size": 6313, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "vts-libs/registry/dualdict.hpp", "max_stars_repo_name": "melowntech/vts-libs", "max_stars_repo_head_hexsha": "ffbf889b6603a8f95d3c12a2602232ff9c5d2236", "max_stars_repo_licenses": ["BSD-2-Clause"], ...
[STATEMENT] lemma cancel_separate_3: assumes "x * y \<le> 1" shows "(w \<sqinter> x)\<^sup>\<star> * (z \<sqinter> y)\<^sup>\<star> = (w \<sqinter> x)\<^sup>\<star> \<squnion> (z \<sqinter> y)\<^sup>\<star>" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (w \<sqinter> x)\<^sup>\<star> * (z \<sqinter> y)\<^sup>...
{"llama_tokens": 741, "file": "Stone_Kleene_Relation_Algebras_Kleene_Relation_Algebras", "length": 6}
from copy import deepcopy from os import error import qutip as qt from qutip.tensor import tensor from qutip.states import coherent, fock from numpy.core.records import array from qutip.expect import expect import numpy as np from qutip.solver import Options from qutip import basis from qutip.qip.circuit import Measur...
{"hexsha": "4c0b8869cc2f32f0f929706e6a583f43e0a7ef79", "size": 28096, "ext": "py", "lang": "Python", "max_stars_repo_path": "HyQu_system_define/hbar_simulation_class.py", "max_stars_repo_name": "ldabas/qutip", "max_stars_repo_head_hexsha": "2bd445c0625b89a8b5bfe636182e2c44c961da5e", "max_stars_repo_licenses": ["BSD-3-C...
import matplotlib matplotlib.rcParams['pdf.fonttype'] = 42 import matplotlib.pyplot as plt plt.rc('font', family='serif') plt.rc('font', serif='Arial') from mpl_toolkits.axes_grid1 import make_axes_locatable import numpy as np import scipy import os from . import _dpi,_single_col_width,_double_col_width,_single_row_h...
{"hexsha": "a0a1c1f9b241cea478ce1b0abab4038b1bf4194d", "size": 387, "ext": "py", "lang": "Python", "max_stars_repo_path": "figure_tools/correlation.py", "max_stars_repo_name": "shiwei23/ImageAnalysis3", "max_stars_repo_head_hexsha": "1d2aa1721d188c96feb55b22fc6c9929d7073f49", "max_stars_repo_licenses": ["MIT"], "max_st...
/* Program to translate text to DNA and vice versa */ #include <iostream> #include <fstream> #include <vector> #include <boost/random/mersenne_twister.hpp> //#include <boost/random/uniform_int_distribution.hpp> #include <boost/random/uniform_int.hpp> #include <boost/random/bernoulli_distribution.hpp> #include <boost/p...
{"hexsha": "c599d2d6974ed7f06f77d3daf196d2cde4944083", "size": 6584, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "simulate/texttodna.cpp", "max_stars_repo_name": "zhaofeng-shu33/dna_data_storage", "max_stars_repo_head_hexsha": "87ae439c6a5d90701a9c26060776fa364dac5582", "max_stars_repo_licenses": ["Apache-2.0"]...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode-payments.h" #include "BlockDiskAccessor.h" #include <chain.h...
{"hexsha": "ec0e71791a174e07060e58231e35e6e2261dd218", "size": 22207, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "divi/src/masternode-payments.cpp", "max_stars_repo_name": "DiviProject/Divi", "max_stars_repo_head_hexsha": "4d4e34a134c2497a3f272f48beacaf292f4b6d14", "max_stars_repo_licenses": ["MIT"], "max_star...
# Benchmarking cudnn activation functions; ours are faster so not included in Knet.jl # typedef enum # { # CUDNN_ACTIVATION_SIGMOID = 0, # CUDNN_ACTIVATION_RELU = 1, # CUDNN_ACTIVATION_TANH = 2, # CUDNN_ACTIVATION_CLIPPED_RELU = 3, # CUDNN_ACTIVATION_ELU = 4, # CUD...
{"hexsha": "4b2895fbdc6553270ee973230dc6b0198f9a8812", "size": 2480, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "prof/cudnn.jl", "max_stars_repo_name": "AndrewSerra/Knet.jl", "max_stars_repo_head_hexsha": "cbbcb670667b1707ad1b1d7c637784e36a98b81e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1492, ...
import shutil import time from pathlib import Path import numpy as np import torch from .utils import CumulativeMovingAverageMeter def get_torch_device(): return torch.device('cuda' if torch.cuda.is_available() else 'cpu') def model_on_device(model, device): return torch.nn.DataParallel(model.to(device)) d...
{"hexsha": "18616e3a3b44ed1a9faadb6c212c7d187177ec1c", "size": 4781, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/yews/train/functional.py", "max_stars_repo_name": "miguelj-neves/yews", "max_stars_repo_head_hexsha": "82fff8e5f4145751682e4d0ffba2dddeab0a2219", "max_stars_repo_licenses": ["Apache-2.0"], "ma...
import numpy import matplotlib.pyplot as plt import json class LineModel: def __init__(self, file_name_prefix): json_file = open(file_name_prefix + ".json") json_data = json.load(json_file) json_file.close() self.points = numpy.array(list(json_data["points"])) ...
{"hexsha": "1665cdd909fd8415220034ffb05e39ec3704934b", "size": 1394, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/gym-line_follower/gym_line_follower/envs/LineModel.py", "max_stars_repo_name": "michalnand/motoko_uprising_new", "max_stars_repo_head_hexsha": "601118f01c6b4c2861fc50ab9980fe17a13ef24b", "max_...
"""Attenuation in the Longley-Rice Irregular Terrain Model""" import numba as nb import numpy as np from numpy import exp, log, log10, sqrt from .constants import f0, Ds, Hs, z1, N1, Z0, γa, THIRD, INF from .diffraction import diffraction_attenuation from .los import los_coefficients from .scatter import scatter_atte...
{"hexsha": "bcf4177e839be1f403d8954d0dc08089316fd9ab", "size": 4915, "ext": "py", "lang": "Python", "max_stars_repo_path": "itm/itm.py", "max_stars_repo_name": "tristanmenard/rasp", "max_stars_repo_head_hexsha": "3decfb300512834bc284b1942bb88f1e7aabc72a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma...
# This file is part of DEAP. # # DEAP is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # DEAP is distributed ...
{"hexsha": "f97a32ae98e96d7bcd778ec308329a1e0fe6c86c", "size": 3470, "ext": "py", "lang": "Python", "max_stars_repo_path": "helps/deap/deap-master/examples/ga/knn.py", "max_stars_repo_name": "GrimRanger/GeneticAlgorithm", "max_stars_repo_head_hexsha": "93fa476e82d610f8622276526baa269303a058e0", "max_stars_repo_licenses...
import attr import numpy as np import sys import torch import tqdm from vel.api import EpochInfo, BatchInfo from vel.api.base import Model, ModelFactory from vel.openai.baselines.common.vec_env import VecEnv from vel.rl.api.base import ReinforcerBase, ReinforcerFactory, VecEnvFactory, ReplayEnvRollerBase, AlgoBase fro...
{"hexsha": "156ced11f8b230624b0cd33864d1da0879c34963", "size": 6977, "ext": "py", "lang": "Python", "max_stars_repo_path": "vel/rl/reinforcers/buffered_mixed_policy_iteration_reinforcer.py", "max_stars_repo_name": "tigerwlin/vel", "max_stars_repo_head_hexsha": "00e4fbb7b612e888e2cbb5d8455146664638cd0b", "max_stars_repo...
! ! miscmpiset.f90 ! ! Alex 06/21/2012 ! ! Miscellaneous setup for MPI execution of the UWVFbgk code. ! constains setting variables to fork the processes and such . !!!!!!!!!!!!!!!!!!!!!!1 module miscmpiset use nrtype ! contains kind parameters (DP), (DP), (I4B) etc. implicit none contains ...
{"hexsha": "de9f07f25adb6b0ed25d524206d8ca1ff1dd729b", "size": 65054, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "miscmpiset.f90", "max_stars_repo_name": "alexmalekseenko/DGV0D3V_direct_collision", "max_stars_repo_head_hexsha": "38547223b12b54af3984ff2f96cf4d369777de1f", "max_stars_repo_licenses": ["BSD-3-...
#include <boost/context/continuation_winfib.hpp>
{"hexsha": "b4cebc88678c92429c5d5f1c795a0b967531220e", "size": 49, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_context_continuation_winfib.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["B...
# -*- coding:utf-8 -*- ''' @Author: LiamTTT @Project: TCTPreprocess.py @File: slide_reader.py @Date: 2021/9/10 @Time: 10:22 @Desc: read slides ''' import os import openslide import numpy as np from loguru import logger from collections import Iterable from openslide import OpenSlide from thirdparty.slide...
{"hexsha": "442c2f4031035fbecb7202463a5d5f649e5e66bb", "size": 6425, "ext": "py", "lang": "Python", "max_stars_repo_path": "core/slide_reader.py", "max_stars_repo_name": "LiamTTT/TCTPreprocess", "max_stars_repo_head_hexsha": "b38fc622e5d185a6a676b3efe656512c9cacc465", "max_stars_repo_licenses": ["Apache-2.0"], "max_sta...
// Copyright (C) 2005, 2006 The Trustees of Indiana University. // Use, modification and distribution is subject to 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) // Authors: Douglas Gregor // Andrew Lumsdaine #...
{"hexsha": "44d35814f660c76eaf81f4dd9282693a5488b207", "size": 3037, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "libs/graph_parallel/test/distributed_graph_coloring_test.cpp", "max_stars_repo_name": "Abce/boost", "max_stars_repo_head_hexsha": "2d7491a27211aa5defab113f8e2d657c3d85ca93", "max_stars_repo_licenses...
Require Import List. (** A type for triangular arrays *) Inductive triangular (A B : Type) := | base : B -> triangular A B | line : B -> triangular A (A * B) -> triangular A B. Definition triangle (A: Type) := triangular A A. Arguments base {A B} _. Arguments line {A B} _ _. Example t1 : triangle nat := base 6....
{"author": "raduom", "repo": "coq-art", "sha": "092a8df8e74d7d7a90a2405e4eacf902e528d83a", "save_path": "github-repos/coq/raduom-coq-art", "path": "github-repos/coq/raduom-coq-art/coq-art-092a8df8e74d7d7a90a2405e4eacf902e528d83a/ch14_fundations_of_inductive_types/SRC/triangular.v"}
************************************************************************ !>alternative version to read a vector from file !! !!Reads a vector from file starting at irecst !!If lenvec is not a multiple of the record length !!only lenvec%reclen entries of the last record a read. !!\param[in] ffvec Filhandler !!\param[in]...
{"hexsha": "09b030e0a08ab99638c55593e9e817bd8686a57f", "size": 1470, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "fileutil/get_vec_a.f", "max_stars_repo_name": "ak-ustutt/GeCCo-public", "max_stars_repo_head_hexsha": "8d43a6c9323aeba7eb54625b95553bfd4b2418c6", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import warnings from abc import ABCMeta from typing import Any, Dict, List, Optional, Tuple, Union, cast import numpy as np from scipy.sparse import issparse from sklearn.utils.multiclass import type_of_target from torch.utils.data import Dataset, Subset import torchvision from autoPyTorch.constants import STRING...
{"hexsha": "ca5db033a6415da1b0b14b58804414c0edcba5ea", "size": 10919, "ext": "py", "lang": "Python", "max_stars_repo_path": "autoPyTorch/datasets/base_dataset.py", "max_stars_repo_name": "LMZimmer/Auto-PyTorch_refactor", "max_stars_repo_head_hexsha": "ac7a9ce35e87a428caca2ac108b362a54d3b8f3a", "max_stars_repo_licenses"...
import numpy as np def moving_average(x, w): """ https://stackoverflow.com/questions/14313510/how-to-calculate-rolling-moving-average-using-numpy-scipy """ return np.convolve(x, np.ones(w), 'valid') / w def moving_iqr_filter_symmetric(x, k): """ FILL. input ---------- day: FILL ...
{"hexsha": "07fa6c8382a945f112b120b94c97338e71c12538", "size": 539, "ext": "py", "lang": "Python", "max_stars_repo_path": "jitterbug/filters.py", "max_stars_repo_name": "estcarisimo/jitterbug", "max_stars_repo_head_hexsha": "ebc02fe6f9a7c75d023996332bbedecf58c6d2bc", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
<a href="https://colab.research.google.com/github/deep-learning-indaba/indaba-pracs-2019/blob/master/2b_optimization.ipynb" target="_parent"></a> # Practical 2b: Optimisation for Deep Learning © Deep Learning Indaba. Apache License 2.0. ## Introduction In this practical, we will take a *deep* dive into an essentia...
{"hexsha": "a6eda5a1451ba73011a07d015b9e9385319d7530", "size": 126883, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "2b_optimization.ipynb", "max_stars_repo_name": "ElanVB/indaba-pracs-2019", "max_stars_repo_head_hexsha": "25f1dac8494a423ada86f7531ad5e96035efa76e", "max_stars_repo_licenses": ["Apa...
""" Low level ra, dec, and W calculations for bodies. REFERENCES: The values for all bodies except the Moon have been taken from: Archinal, B., \ Acton, C., A’Hearn, M., Conrad, A., Consolmagno, G., & Duxbury, T. et al. \ (2018). Report of the IAU Working Group on Cartographic Coordinates and \ Rotational Elements: 20...
{"hexsha": "fe3adc3ecbd624b0d526e52ce9fdc59df7ff30b8", "size": 9106, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/poliastro/core/fixed.py", "max_stars_repo_name": "abdulmoiz37/poliastro", "max_stars_repo_head_hexsha": "be1d4b61403103c087464585b56f694d3ecd8735", "max_stars_repo_licenses": ["MIT"], "max_sta...
export HamiltonianSplittingSpin """ HamiltonianSplittingSpin( maxwell_solver, kernel_smoother_0, kernel_smoother_1, particle_group, e_dofs, a_dofs ) Hamiltonian splitting type for Vlasov-Maxwell - Integral over the spline function on each interval (ord...
{"hexsha": "d5329f0ae21a5efc8e37a96b8e119deab89c0577", "size": 12200, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/hamiltonian_splitting_spin.jl", "max_stars_repo_name": "JuliaVlasov/GEMPIC.jl", "max_stars_repo_head_hexsha": "bc7f0a5524ef6f7c4fa50a1450e24865c2a0abad", "max_stars_repo_licenses": ["MIT"], "m...
""" PadFirstAxis(d, N1) Zero-padding first axis of N-dimensional array `d`. # Arguments * `d::Array{Real, N}`: N-dimensional data. * `N1::Int`: total number of samples for the first axis of the zero-padded data. # Examples ```julia julia> w = Ricker(); wpad = PadFirstAxis(w, 128); plot(w); plot(wpad+1.0) julia>...
{"hexsha": "e9fe90b2e5cea5476b3c93715223980d216c638a", "size": 642, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Tools/PadFirstAxis.jl", "max_stars_repo_name": "fercarozzi/myseismicjulia", "max_stars_repo_head_hexsha": "a8b184af2dca29f36176e78128503d27411f2c28", "max_stars_repo_licenses": ["MIT"], "max_sta...
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/data.statistics.ipynb (unless otherwise specified). __all__ = ['word_frequencies', 'create_wordcloud', 'count_frequency', 'pace_character', 'pace_phoneme', 'get_sample_format', 'AbsoluteMetrics'] # Cell from typing import List, Any, Dict, Union, Optional fro...
{"hexsha": "699f1f8ae396cb55cc9384cca5c2107526263475", "size": 4040, "ext": "py", "lang": "Python", "max_stars_repo_path": "uberduck_ml_dev/data/statistics.py", "max_stars_repo_name": "justinjohn0306/uberduck-ml-dev", "max_stars_repo_head_hexsha": "439ec326eb7680c4fdd5ee97a09def8e355e0f7c", "max_stars_repo_licenses": [...
import logging from datetime import datetime import netCDF4 import numpy as np from konrad import (constants, __version__) from konrad.component import Component __all__ = [ 'NetcdfHandler', ] logger = logging.getLogger(__name__) def _move_item_to_index(list, item, index): list.insert(index, list.pop(lis...
{"hexsha": "114131eafe83eab085300115b64dccbc4da258d7", "size": 5488, "ext": "py", "lang": "Python", "max_stars_repo_path": "konrad/netcdf.py", "max_stars_repo_name": "SallyDa/konrad", "max_stars_repo_head_hexsha": "046effabe6679aa951f3053a66edb4ef19e2c34f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "...
Require Export Stlc.Classes. Require Import Stlc.DefinitionsSyntax. Require Import Stlc.Lemmas. (***********************************************************************) (** * Class instances *) (***********************************************************************) #[global] Instance Syntax_exp : Syntax exp := { ...
{"author": "sweirich", "repo": "equations-ln", "sha": "b10a2c0de7403a84eeedb3f089449b59194838e9", "save_path": "github-repos/coq/sweirich-equations-ln", "path": "github-repos/coq/sweirich-equations-ln/equations-ln-b10a2c0de7403a84eeedb3f089449b59194838e9/Stlc/ClassInstances.v"}
import pygad import numpy from fis import fuzzification last_fitness = 0 def Run2(testset_size,test_weight): print("GA run\n") def Run(testset_size,test_weight): desired_output = 100 def fitness_func(solution, solution_idx): output = fuzzification.Run(so...
{"hexsha": "50e41fde265ef24d0d4b67344d65c242cb26a176", "size": 2995, "ext": "py", "lang": "Python", "max_stars_repo_path": "detection/ga/geneticalgorithm.py", "max_stars_repo_name": "MasumBhuiyan/Object-Detection-Using-Principle-Component-Analysis-and-Fuzzy-Inference-System", "max_stars_repo_head_hexsha": "e9a3584f99de...
// Copyright Yamaha 2021 // MIT License // https://github.com/yamaha-bps/cbr_ros/blob/master/LICENSE #ifndef CBR_ROS__PARAMETERS_HPP_ #define CBR_ROS__PARAMETERS_HPP_ #include <cbr_utils/type_traits.hpp> #include <boost/hana/at_key.hpp> #include <boost/hana/for_each.hpp> #include <boost/hana/keys.hpp> #include <boos...
{"hexsha": "c435af34f00d5c2cae249085a75dfe0a23244e58", "size": 12652, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/cbr_ros/parameters.hpp", "max_stars_repo_name": "yamaha-bps/cbr_ros", "max_stars_repo_head_hexsha": "0eedc528ca0a17e4eb6b13b6b856f47104284c79", "max_stars_repo_licenses": ["MIT"], "max_star...
import time # time.sleep(60*60*3) import os # --- Uncomment to use only CPU (e.g. GPU memory is too small) # os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152 # os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # import sys # sys.path.append("/usr/local/cuda-10.1/bin") # os.environ["LD_LIBRARY_PATH"] = "/usr/...
{"hexsha": "6c8f1afc5a721fd41f60077f78cf794357902236", "size": 6339, "ext": "py", "lang": "Python", "max_stars_repo_path": "process_generated_data.py", "max_stars_repo_name": "p4vv37/ueflow", "max_stars_repo_head_hexsha": "10c214a8f5de9ea08997cb2b25e1cdcd3c6b130e", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
import os import errno import numpy as np def make_noise(S, max_iter, lb, ub, path): """ Make the noise matrices ahead of time for the particle swarm; This way we can keep all the instances of particle swarm on the same page, i.e., performing the same operations on each set of parameters. :pa...
{"hexsha": "c3985b15bd361236d371b714c48f4b5bcd943333", "size": 1640, "ext": "py", "lang": "Python", "max_stars_repo_path": "Modeling/CMR2/fitting/noise_maker_pso.py", "max_stars_repo_name": "jpazdera/PazdKaha22", "max_stars_repo_head_hexsha": "9b3157cbcc68aafc829dbd38f3271f884caf541d", "max_stars_repo_licenses": ["CC-B...
function chemical_equilibrium(A, B, C, ::Val{:JuMP}) model = JuMP.Model(CBLS.Optimizer) n = length(C) m = length(B) # Add the number of moles per compound (continuous interval) @variable(model, 0 ≤ X[1:n] ≤ maximum(B)) # mass_conservation function conserve = i -> (x -> begin ...
{"hexsha": "6f2f293fc103e981bd1da71d4634870f9f3e65fb", "size": 1841, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/chemical_equilibrium.jl", "max_stars_repo_name": "JuliaConstraints/ConstraintModels.jl", "max_stars_repo_head_hexsha": "90ec2346e256c4044d5dfb2c55546eb288e80290", "max_stars_repo_licenses": ["M...
# replicate neuroSketch data classification to make sure the model is trained in the # right way. We can transform AB AC AD BC BD CD classifiers to 4-way classifier by # computing the evidence (for an input X) for A B C D and output the item with the # largest evidence. And then calculate the testing accuracy. # Th...
{"hexsha": "30b462eb0067efe0f92189616dab3451fcccc361", "size": 10243, "ext": "py", "lang": "Python", "max_stars_repo_path": "FilterTesting/testMiniclass/test_4WayClassifiers.py", "max_stars_repo_name": "KailongPeng/rtSynth", "max_stars_repo_head_hexsha": "e0d45dc68cba259a1308842a584435e04b77858a", "max_stars_repo_licen...
#To run this code please run `mpirun -n 4 python dist_pyrescalk_dnations.py` in command line. import sys import pyDRESCALk.config as config config.init(0) from pyDRESCALk.pyDRESCALk import * from pyDRESCALk.utils import * from pyDRESCALk.dist_comm import * from scipy.io import loadmat def dist_rescalk_2d_dnation...
{"hexsha": "dd6bbda50acc9f7e88f834cec4bedfc3618e113d", "size": 1346, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/dist_pyrescalk_dnations.py", "max_stars_repo_name": "lanl/pyDRESCALk", "max_stars_repo_head_hexsha": "25af3796442e5ec87fb54caa4344e8871a2abd15", "max_stars_repo_licenses": ["BSD-3-Clause"...
import cv2 import numpy as np # cap = cv2.VideoCapture(0) #for automatic USBCam (0-web cam default) def getbirds(img): img = np.array(img) img1 = np.concatenate([img[np.newaxis, 2:, 2:], img[np.newaxis, :-2, :-2], # img[np.newaxis, 1:-1, 1:-1], ...
{"hexsha": "e4960194d612208bc8c4f1392f754c97450284a2", "size": 3068, "ext": "py", "lang": "Python", "max_stars_repo_path": "live.py", "max_stars_repo_name": "zaky-fetoh/Bird_detection", "max_stars_repo_head_hexsha": "3be60af557303b388e979a7eb942aea5a7ccbcc4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
################################################################################################# # AIM 4: uniform distribution of null p-values ################################################################################################# ## Deps using Distributed @everywhere using Pkg @everywhere Pkg.activate("./"...
{"hexsha": "cf300c6540901052ff3ac318d4544bc26d10771a", "size": 2070, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "calls/PaperSimulations/Aim-4/Aim-4-Null-Pvals.jl", "max_stars_repo_name": "jordiabante/CpelNano.jl", "max_stars_repo_head_hexsha": "a5cd558b30113f05f93305a515ab24db8633e9a5", "max_stars_repo_licens...
from alpha_vantage.foreignexchange import ForeignExchange from alpha_vantage.techindicators import TechIndicators from alpha_vantage.timeseries import TimeSeries from decouple import config import pandas as pd import numpy as np import quandl #pylint: disable=invalid-sequence-index #pylint: disable=no-member #pylint: ...
{"hexsha": "09adedf6eb98dcf9c055e722a8e6f31d11d7fee1", "size": 11538, "ext": "py", "lang": "Python", "max_stars_repo_path": "fin_data.py", "max_stars_repo_name": "investment-risk-analysis/API_development", "max_stars_repo_head_hexsha": "b4a409cfa98a33bf3a410d3326a7503eecded8eb", "max_stars_repo_licenses": ["MIT"], "max...
from __future__ import division import os import random import numpy as np import cv2 from torch.utils import data from .utils import * class SevenScenes(data.Dataset): def __init__(self, root, dataset='7S', scene='heads', split='train', model='hscnet', aug='True'): self.intrinsics_...
{"hexsha": "1dcece8f456e7aeac5487c509d4e669053b4fd91", "size": 5173, "ext": "py", "lang": "Python", "max_stars_repo_path": "datasets/seven_scenes.py", "max_stars_repo_name": "AaltoVision/hscnet", "max_stars_repo_head_hexsha": "543ff9f363d78ab61b7c0e88e1909c6f6b856a5a", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
using FeedbackParticleFilters println("Testing WeightedParticleRepresentation.jl:") @testset "BPF.jl" begin struct TestRep{Float} <: WeightedParticleRepresentation{Vector{Float}} positions::Matrix{Float} weights::Vector{Float} end function FeedbackParticleFilters.get_weight(ens::...
{"hexsha": "429536e33e0e544a66e97e05545037e1e228889e", "size": 1378, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/Basics/test_WeightedParticleRepresentation.jl", "max_stars_repo_name": "simsurace/FeedbackParticleFilters.jl", "max_stars_repo_head_hexsha": "78245478d59cb24887dddbead9e494f17df9cbdd", "max_st...
import cv2 import numpy as np def make_points(image, line): slope, intercept = line y1 = int(image.shape[0]) y2 = int(y1*3/5) x1 = int((y1 - intercept)/slope) x2 = int((y2 - intercept)/slope) return [[x1, y1, x2, y2]] def average_slope_intercept(image, lines): left_fit = [] right_fit ...
{"hexsha": "e068a84ce94c0aa6a278028021560b39ef6675d0", "size": 2166, "ext": "py", "lang": "Python", "max_stars_repo_path": "Computer_Vision_Finding_Lane_Lines.py", "max_stars_repo_name": "zbs881314/Self-Driving-Car-", "max_stars_repo_head_hexsha": "4e18a410b1ad6c542c72c7ee68f0a4042f45f9d3", "max_stars_repo_licenses": [...
<a href="https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/master/tutorials/W3D4_DeepLearning1/student/W3D4_Tutorial3.ipynb" target="_parent"></a> # Neuromatch Academy: Week 3, Day 4, Tutorial 3 (Bonus) # Deep Learning: Building and Evaluating Normative Encoding Models **Content creators*...
{"hexsha": "a0036edb4effeac2f8541df67d3da9290141b14c", "size": 543854, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "tutorials/W3D4_DeepLearning1/student/W3D4_Tutorial3.ipynb", "max_stars_repo_name": "txperl/course-content", "max_stars_repo_head_hexsha": "e7d3f94466c2a14560a30cdad182dbee79bc76c5",...
# 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 u...
{"hexsha": "be20b4ee233f663aaeb5d858cdb21fa83a379788", "size": 55426, "ext": "py", "lang": "Python", "max_stars_repo_path": "integration/integration_test.py", "max_stars_repo_name": "yongbozhang/arrow", "max_stars_repo_head_hexsha": "b8ebc9d41b1b9ec60b46986874b4835010a5343e", "max_stars_repo_licenses": ["Apache-2.0"], ...
\documentclass[a4paper]{report} \usepackage{graphicx} \usepackage{url} \usepackage{subcaption} \usepackage[section]{placeins} % Ensure floats do not go into the next section \usepackage{rotating} % For rotating figures, tables, etc. Including their captions \usepackage{booktabs} \begin{document} \title{Analysis of ...
{"hexsha": "0ad8391167df745dca683a0498fce94b73bd3d8f", "size": 2183, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "report/report.tex", "max_stars_repo_name": "fzanollo/nii-internship", "max_stars_repo_head_hexsha": "8b622081122f90506dbb86815197a5ece3cce743", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
import os import torch.utils.data import numpy as np from PIL import Image from scipy.io import loadmat import utils.misc as misc class FaceImageLoader_w_aug(torch.utils.data.Dataset): def __init__(self, face_img_root, face_parsing_root, face_landmark_path, face_list, scale_factor, img_size, h...
{"hexsha": "d738a3eeb40157a191001e8b34e81776c9fe7a50", "size": 9829, "ext": "py", "lang": "Python", "max_stars_repo_path": "data/my_data_loader.py", "max_stars_repo_name": "salvatoretrimarchi/FCSR-GAN", "max_stars_repo_head_hexsha": "ce78be39f0e690a4389dbcb69d244b2f00fb2803", "max_stars_repo_licenses": ["Apache-2.0"], ...