text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
[STATEMENT] lemma "in_language palindromes.lang [True, True]" [PROOF STATE] proof (prove) goal (1 subgoal): 1. in_language (subst \<lparr>init = (), prod = \<lambda>_. {|[], [\<aa>], [\<bb>], [\<aa>, S, \<aa>], [\<bb>, S, \<bb>]|}\<rparr> {|[Inr (init \<lparr>init = (), prod = \<lambda>_. {|[], [\<aa>], [\<bb>], [\<aa...
{"llama_tokens": 189, "file": "Coinductive_Languages_Context_Free_Grammar", "length": 1}
import numpy as np import cv2 import matplotlib.pyplot as plt import os import sys # Import PenguinPiC os.chdir("../") sys.path.insert(0, "{}".format(os.getcwd())) import PenguinPiC from cv2 import aruco def camera_calibration(dataDir): # This file can be used to generate camera calibration paramet...
{"hexsha": "22cd7e17bfc3e9393ccbf185fb8078646d7b0bfd", "size": 4086, "ext": "py", "lang": "Python", "max_stars_repo_path": "Week03-05/calibration/camera_calibration.py", "max_stars_repo_name": "evantancy/ece4078-team2-05", "max_stars_repo_head_hexsha": "cbf38b7e5f15708eff6394ab8ac68ce701a0c848", "max_stars_repo_license...
''' Plot the TFR and the bTFR in a single figure window ''' ################################################################################ # Import modules #------------------------------------------------------------------------------- from astropy.table import Table import numpy as np from dark_matter_mass_v1 i...
{"hexsha": "35f667d4a21159b73aeb4c0fe3f998549127bcac", "size": 8478, "ext": "py", "lang": "Python", "max_stars_repo_path": "spirals/plot_TFR_bTFR.py", "max_stars_repo_name": "kadglass/RotationCurves", "max_stars_repo_head_hexsha": "7f52dac022ca4df666e671eeb7f0aaf65c8515c3", "max_stars_repo_licenses": ["BSD-3-Clause"], ...
from sentence_transformers import SentenceTransformer, InputExample from sentence_transformers import evaluation, losses from torch.utils.data import DataLoader from sentence_transformers.evaluation import EmbeddingSimilarityEvaluator import os from sentence_transformers import SentenceTransformer, LoggingHandler, los...
{"hexsha": "1e1b3c91409c975568e698a0c5458078390eea24", "size": 4200, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/train.py", "max_stars_repo_name": "marco-digio/Twitter4SSE", "max_stars_repo_head_hexsha": "724b3f5d638b17a0e46353a1ea1a409da17ab8bd", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_co...
from PIL import Image import numpy as np import pickle from state.multitask_one.model import StateModel import os if __name__ == "__main__": model = StateModel() image_class_path = os.path.join(os.getcwd(), "images", "training") image_classes = [x for x in os.listdir(image_class_path)] image_classes_pa...
{"hexsha": "b67eb7d96afbdd3791af830733936cdb8c4c1656", "size": 1030, "ext": "py", "lang": "Python", "max_stars_repo_path": "FlashRL/lib/util/preprocess.py", "max_stars_repo_name": "UIA-CAIR/Multitask", "max_stars_repo_head_hexsha": "b0d9ac348a56c97ca7826de358bd0428c7a90992", "max_stars_repo_licenses": ["Unlicense"], "m...
# Lint as: python3 # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
{"hexsha": "ef9a6f0c646635da594ce3a68e6acb770bb2e2d2", "size": 3611, "ext": "py", "lang": "Python", "max_stars_repo_path": "integrations/tensorflow/e2e/keras/keyword_spotting_streaming_test.py", "max_stars_repo_name": "bjacob/iree", "max_stars_repo_head_hexsha": "9648a481d4ee5048e87592e035f8c2880a9aa8e7", "max_stars_re...
[STATEMENT] lemma to_tree_order_ok: assumes wellformed: "heap_is_wellformed h" and "ptr |\<in>| object_ptr_kinds h" and "known_ptrs h" and type_wf: "type_wf h" shows "h \<turnstile> ok (to_tree_order ptr)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. h \<turnstile> ok to_tree_order ptr [PROOF STEP]...
{"llama_tokens": 5289, "file": "Core_DOM_standard_Core_DOM_Heap_WF", "length": 11}
/*////////////////////////////////////////////////////////////////////////////// Copyright (c) 2011 Jamboree Copyright (c) 2014 Lee Clagett 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) ////////////////...
{"hexsha": "2986a55e9142e39dff3be4acea84491a1ad9c0df", "size": 2558, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "3rdParty/boost/1.71.0/libs/spirit/test/x3/seek.cpp", "max_stars_repo_name": "rajeev02101987/arangodb", "max_stars_repo_head_hexsha": "817e6c04cb82777d266f3b444494140676da98e2", "max_stars_repo_licen...
#%% import os from operator import itemgetter from pathlib import Path import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from graspy.plot import gridplot, heatmap from src.data import load_metagraph from src.io import savefig from src.visualization import gridmap, remove_spi...
{"hexsha": "5dd8ca1113423cc9e849ea3e0a172dc1a4dc83bd", "size": 3194, "ext": "py", "lang": "Python", "max_stars_repo_path": "notebooks/69.0-BDP-simply-summary.py", "max_stars_repo_name": "zeou1/maggot_models", "max_stars_repo_head_hexsha": "4e1b518c2981ab1ca9607099c3813e8429d94ca4", "max_stars_repo_licenses": ["BSD-3-Cl...
function atri(at1,at2,at3,at4i) !! ~ ~ ~ PURPOSE ~ ~ ~ !! this function generates a random number from a triangular distribution !! given X axis points at start, end, and peak Y value !! ~ ~ ~ INCOMING VARIABLES ~ ~ ~ !! name |units |definition !! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~...
{"hexsha": "e0ff7a582fed1de2006eacace512f8e6ec69aa88", "size": 2632, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "modified_source_code/atri.f", "max_stars_repo_name": "gpignotti/swat_soil_moisture_sensitivity", "max_stars_repo_head_hexsha": "d2c3f6185acabf31440d613651192cdaabfe6b6c", "max_stars_repo_licenses"...
import numpy as np from tqdm import tqdm # import scipy.misc as scm from PIL import Image from matplotlib.pyplot import imread import os from utils import crop_center import h5py import pdb from utils import read_data_file class DataLoader: def __init__(self): return def load_images_and_labels(self,...
{"hexsha": "52850343674ae5b534d79a0e432a4c9bbe6a4a2a", "size": 5192, "ext": "py", "lang": "Python", "max_stars_repo_path": "data_loader/data_loader.py", "max_stars_repo_name": "asmadotgh/dissect", "max_stars_repo_head_hexsha": "3a7a9ff5a8ff8ebf9a6183fcea9a43f8e53106a8", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
#!/usr/bin/env python3 from fuzzconfig import * import numpy as np import os os.system("rm -rf work_gbio") os.mkdir("work_gbio") for p in gpins: if p in pins: pins.remove(p) for idx in range(num): with open("work_gbio/gbio_%02d.v" % idx, "w") as f: glbs = np.random.permutation(list(range(8))) ...
{"hexsha": "a6cbf0a6e655f028cae008d713a80415b20f5c05", "size": 3537, "ext": "py", "lang": "Python", "max_stars_repo_path": "icefuzz/make_gbio.py", "max_stars_repo_name": "Jesus89/icestorm-debian", "max_stars_repo_head_hexsha": "bbae9b3e90e4ea17b95226a9948f8dfe82403237", "max_stars_repo_licenses": ["ISC"], "max_stars_co...
# Licensed to Modin Development Team under one or more contributor license # agreements. See the NOTICE file distributed with this work for additional # information regarding copyright ownership. The Modin Development Team # licenses this file to you under the Apache License, Version 2.0 (the # "License"); you may not...
{"hexsha": "98265f04b0c13513e3d27f1e71b998c654abaa67", "size": 13922, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/ray/tests/modin/test_modin.py", "max_stars_repo_name": "mgelbart/ray", "max_stars_repo_head_hexsha": "4cec2286572e368a4bd64aae467751a384eff62d", "max_stars_repo_licenses": ["Apache-2.0"], ...
[STATEMENT] lemma Nil_in_Prefixes_iff [simp]: "[] \<in> Prefixes A \<longleftrightarrow> A \<noteq> {}" [PROOF STATE] proof (prove) goal (1 subgoal): 1. ([] \<in> Prefixes A) = (A \<noteq> {}) [PROOF STEP] by (auto simp: Prefixes_def)
{"llama_tokens": 101, "file": "Regular-Sets_Regexp_Constructions", "length": 1}
Require Import Arith. Fixpoint sum_odd_n (n:nat) : nat := match n with O => O | S p => 1 + 2*p + sum_odd_n p end. Search (Nat.mul). Lemma sum_odd_n_p : forall (n:nat), sum_odd_n (n:nat) = n*n. induction n. simpl. reflexivity. simpl. rewrite IHn. ring. Qed. Fixpoint sum_n (n:nat) : nat := match n wi...
{"author": "ihasson", "repo": "coq", "sha": "0da545a4966f48b1874183812f61f54eac7b1976", "save_path": "github-repos/coq/ihasson-coq", "path": "github-repos/coq/ihasson-coq/coq-0da545a4966f48b1874183812f61f54eac7b1976/sum_of_odd_numbers.v"}
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2014 Daniele Panozzo <daniele.panozzo@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at ht...
{"hexsha": "4f3a61157555e67c33cb52148adf78628cb1d910", "size": 14974, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "igl/opengl/glfw/Viewer.cpp", "max_stars_repo_name": "TacticalMeow/IKSolverLibigl", "max_stars_repo_head_hexsha": "27f008594cf31716ded70549a9a92546a1544c7f", "max_stars_repo_licenses": ["Apache-2.0"...
# --- # title: Discrete scales # cover: assets/discrete_scales.png # description: Sorting and renaming categorical variables # author: "[Pietro Vertechi](https://github.com/piever)" # --- using AlgebraOfGraphics, CairoMakie set_aog_theme!() #src # By default categorical ticks, as well as names from legend entries, ar...
{"hexsha": "838662221a19b43d042e0fd5cc3f8ef5ca3e39ae", "size": 1057, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "docs/gallery/gallery/scales/discrete_scales.jl", "max_stars_repo_name": "onetonfoot/AlgebraOfGraphics.jl", "max_stars_repo_head_hexsha": "576bdc31281a53dce0002d393c8d77d486018ec4", "max_stars_repo_...
import os from glob import glob import numpy as np import tensorflow as tf from keras.preprocessing.image import ImageDataGenerator from keras.models import Model from keras import backend as K from keras.callbacks import ModelCheckpoint from keras.optimizers import Adam from utils import build_vae_encoder, build_de...
{"hexsha": "7a294107f93271b7de895353cd376815f81bfcdb", "size": 3913, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/train_vae_model.py", "max_stars_repo_name": "tcuvilliers/vae_celeba", "max_stars_repo_head_hexsha": "283afdd4f11c4bc11571d8dccf07ad2d39024611", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
"""handlers/hillshade.py Handle /hillshade API endpoint. """ from typing import Sequence, Mapping, Union, Tuple, TypeVar from numpy.lib.shape_base import tile from typing.io import BinaryIO from io import BytesIO from PIL import Image from skimage.util import img_as_ubyte import matplotlib.pyplot as plt from ma...
{"hexsha": "cd4c1e759018b35fa3bb3d430ee7649b52385e17", "size": 2290, "ext": "py", "lang": "Python", "max_stars_repo_path": "terracotta/handlers/discrete.py", "max_stars_repo_name": "caiostringari/terracotta", "max_stars_repo_head_hexsha": "1777a4ec40321f15b509a07deab333e967fd2024", "max_stars_repo_licenses": ["MIT"], "...
import os import shutil from functools import partial import neptune import numpy as np import pandas as pd from attrdict import AttrDict from steppy.adapter import Adapter, E from steppy.base import IdentityOperation, Step from common_blocks import augmentation as aug from common_blocks import metrics from common_bl...
{"hexsha": "ff2ea5a10ed8d814e08903815587e55c85542f30", "size": 35486, "ext": "py", "lang": "Python", "max_stars_repo_path": "main.py", "max_stars_repo_name": "minerva-ml/open-solution-ship-detection", "max_stars_repo_head_hexsha": "d799638819cbb5fbd773d7fc93f9a5e9569fc338", "max_stars_repo_licenses": ["MIT"], "max_star...
theory TreeSimp imports "$HIPSTER_HOME/IsaHipster" begin datatype 'a Tree = Leaf 'a | Node "'a Tree""'a Tree" fun mirror :: "'a Tree => 'a Tree" where "mirror (Leaf x) = Leaf x" | "mirror (Node l r) = Node (mirror r) (mirror l)" fun tmap :: "('a => 'b) => 'a Tree => 'b Tree" where "tmap f (Leaf x) = Leaf ...
{"author": "moajohansson", "repo": "IsaHipster", "sha": "91f6ea3f1166a9de547722ece6445fe843ad89b4", "save_path": "github-repos/isabelle/moajohansson-IsaHipster", "path": "github-repos/isabelle/moajohansson-IsaHipster/IsaHipster-91f6ea3f1166a9de547722ece6445fe843ad89b4/Examples/TreeSimp.thy"}
import numpy as np from creature import * import numpy.linalg as LA class Food(): def __init__(self,pos): self.pos = pos self.value = 100 self.size = 5 self.color = (0,255,0) self.eaten = False def getPos(self): return self.pos class World(): def __init__(self): self.x_range = 600 ...
{"hexsha": "bfca90c4c4c6ecb969f9503b9dd3d6c26bc81052", "size": 3723, "ext": "py", "lang": "Python", "max_stars_repo_path": "Zoo/Virus/world.py", "max_stars_repo_name": "Tanmay-Kumar-Sinha/Evolution-Simulation", "max_stars_repo_head_hexsha": "1740c32320de7f8eab2780075f1161781eb520d1", "max_stars_repo_licenses": ["MIT"],...
[GOAL] n : ℕ ⊢ fib (n + 2) = fib n + fib (n + 1) [PROOFSTEP] simp [fib, Function.iterate_succ_apply'] [GOAL] n : ℕ ⊢ fib n ≤ fib (n + 1) [PROOFSTEP] cases n [GOAL] case zero ⊢ fib zero ≤ fib (zero + 1) [PROOFSTEP] simp [fib_add_two] [GOAL] case succ n✝ : ℕ ⊢ fib (succ n✝) ≤ fib (succ n✝ + 1) [PROOFSTEP] simp [fib_add_t...
{"mathlib_filename": "Mathlib.Data.Nat.Fib", "llama_tokens": 11183}
from PIL import Image import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap import pynbody def get_colorbar(z=0): im = Image.open('/Users/lls/Desktop/PastedGraphic-1.png') pix = im.load() if z == 0: rgb = np.array([(pix[i, 0][0], pix[i, 0][1], pix...
{"hexsha": "c6ad4cee1bac53896c9a3672c5f37ed006460a14", "size": 1709, "ext": "py", "lang": "Python", "max_stars_repo_path": "paper_plots/fig_halos.py", "max_stars_repo_name": "finn-dodgson/DeepHalos", "max_stars_repo_head_hexsha": "86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c", "max_stars_repo_licenses": ["MIT"], "max_stars...
import numpy as np import torch from torch.nn import functional as F from torch import nn import os from ..utils import concat_box_prediction_layers from paa_core.layers import smooth_l1_loss from paa_core.layers import SigmoidFocalLoss from paa_core.modeling.matcher import Matcher from paa_core.structures.boxlist_ops ...
{"hexsha": "684c88a57fbb80b90371f69522818fe42da956d5", "size": 17317, "ext": "py", "lang": "Python", "max_stars_repo_path": "paa_core/modeling/rpn/paa/loss.py", "max_stars_repo_name": "JunhoPark0314/PAA", "max_stars_repo_head_hexsha": "13d5721786a6aa3d3701d44a6d1216377c007a74", "max_stars_repo_licenses": ["BSD-2-Clause...
################################################################### ## Used to determine lambda values of interest for each scenario ## ################################################################### include("../../src/discrete_event_simulation_project.jl") function test_lambda_range(scenario_num, lambda_range, ma...
{"hexsha": "1ba078ed810505ce9847bf1199a9630cefa86fd5", "size": 895, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/testing_plots/exploratory_plots.jl", "max_stars_repo_name": "tcleugh/Thomas-Cleugh-and-Jason-Jones-2504-2021-PROJECT2", "max_stars_repo_head_hexsha": "243aa078a3f582c94d154100c0e143d910c264d4",...
import numpy as np import cv2 as cv from scipy import ndimage, signal import matplotlib.pyplot as plt def diff_x(img): return signal.convolve2d(img, np.array([[-1, 0, 1], [-1, 0, 1], [-1, 0, 1]]) * 1 / 3, mode='same') def diff_y(img): return signal.convolve2d(img, np.array([[1, 1, 1], [0, 0, 0], ...
{"hexsha": "7e3c98e1edc9217f36cec5b0f1c010b243309da6", "size": 8021, "ext": "py", "lang": "Python", "max_stars_repo_path": "a2/a2.py", "max_stars_repo_name": "jensren/image-understanding", "max_stars_repo_head_hexsha": "084ff142f6540c2595384255cd585c3bf654df06", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_c...
# encoding = UTF-8 import numpy as np import scipy as sp SEED = 12345 def negative_binomial(): np.random.seed(SEED) NB = np.round(sp.random.negative_binomial(n=1, p=0.1, size=100000)) NB_model = [1 if x == 0 else x for x in NB] return NB_model def Uniform_dist(low, high=None, size=None)...
{"hexsha": "e1392aa79516ae6f95f975a3406d6007467f8f7a", "size": 760, "ext": "py", "lang": "Python", "max_stars_repo_path": "rsds/distributions.py", "max_stars_repo_name": "darrenzimire/RNASeqDesigner", "max_stars_repo_head_hexsha": "1fc5323b13bed0cb62a7ba522cb7e89b23eb3515", "max_stars_repo_licenses": ["MIT"], "max_star...
import csv import glob2 import h5py as h5 import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as np import os import pandas as pd import pickle as pkl import pylab as pl import random as rd import re import scipy.stats as sps import scipy.cluster.hierarchy as sch import seaborn as sns im...
{"hexsha": "4bbfd9515bcb0b774726caad00f6ce9a4a615aae", "size": 146261, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/matrixlengthandisoformanalysis.py", "max_stars_repo_name": "serenolopezdarwin/apanalysis", "max_stars_repo_head_hexsha": "1cb6569ed1643569e558db0a7dfe70b018c6242f", "max_stars_repo_licen...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Information about last revision of $RCSfile: m_mtdp.f90,v $: ! $Revision: 1.3 $ ! $Author: hebhop $ ! $Date: 2010/02/23 23:52:06 $ ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module Mtdp ! Muffin-Tin density and potential use m_Kinds type ...
{"hexsha": "74ddee7408873668d206ea9035680cb92e7937ec", "size": 4956, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/OPCONSAT/oca_mtdp.f90", "max_stars_repo_name": "xraypy/feff85exafs", "max_stars_repo_head_hexsha": "ec8dcb07ca8ee034d0fa7431782074f0f65357a5", "max_stars_repo_licenses": ["BSD-2-Clause"], "m...
Require Import VST.progs.conclib. Require Import VST.progs.ghosts. Require Import RelationClasses. Section ListMaps. Context {A B : Type} {A_eq : EqDec A} {d : Inhabitant B}. Definition map_Znth i (L : A -> option (list B)) k := option_map (fun v => Znth i v) (L k). Lemma map_Znth_single : forall i (k : A) (v : lis...
{"author": "anshumanmohan", "repo": "RamifyCoq_VST", "sha": "0517a39b069f79f50a45321db6ca81c48397b73d", "save_path": "github-repos/coq/anshumanmohan-RamifyCoq_VST", "path": "github-repos/coq/anshumanmohan-RamifyCoq_VST/RamifyCoq_VST-0517a39b069f79f50a45321db6ca81c48397b73d/VST/atomics/maps.v"}
! /*************************************** ! asc2bin ! 30 Jan. 2018 written by D.Kawata ! ****************************************/ program asc2bin use gcdp_const use gcdp_system use gcdp_baryon use gcdp_dm implicit none integer i,is,nval integer npt,ngt,nst,ndmt,ndm1...
{"hexsha": "4cd77f378a0bd5fb3261f4864c17900f0adbbeda", "size": 4591, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "asc2bin/src/main.f90", "max_stars_repo_name": "kawatadaisuke/gcdp-ana", "max_stars_repo_head_hexsha": "f2049742ae8f45c9a4564f0d57f31015e2bee54e", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
import numpy as np import os import glob import nrrd def normalize(image, method='zscore'): image = np.asanyarray(image) image = image.astype('float64') if method == 'zscore': mns = image.mean() sstd = image.std() res = (image - mns)/sstd elif method == '0-1': m = imag...
{"hexsha": "20fa9da5e1ce9dbe81cd35ccd4501b71416a3344", "size": 4229, "ext": "py", "lang": "Python", "max_stars_repo_path": "radiants/utils/dataloader.py", "max_stars_repo_name": "TransRadOnc-HIT/RADIANTS", "max_stars_repo_head_hexsha": "988ddb915e0c45ad58d92ed1403ad097b155cd47", "max_stars_repo_licenses": ["Apache-2.0"...
import sys from subprocess import Popen, PIPE from threading import Thread from Queue import Queue, Empty from subprocess import call import binascii # import csv # from scipy.cluster.vq import kmeans2, whiten # from mpl_toolkits.mplot3d import Axes3D # from numpy import genfromtxt # import argparse # from scipy....
{"hexsha": "b83b9147ce8d70d4550af25b079704a077b20d7b", "size": 11197, "ext": "py", "lang": "Python", "max_stars_repo_path": "sinToneDemo.py", "max_stars_repo_name": "zeta-technologies/demo-python", "max_stars_repo_head_hexsha": "0e6e236f3e35c067dc9470b396d434dbfb62db65", "max_stars_repo_licenses": ["Apache-2.0"], "max_...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import random import time import os import collections import matplotlib.pyplot as plt import pylab as pl import numpy as np def leer_arboles(f): arboles = {} for arbol in f: arbol = arbol.replace('\n','') representatividad = c...
{"hexsha": "28d0ff2154a532711fc4bd665aeb704c8b2b9adc", "size": 4836, "ext": "py", "lang": "Python", "max_stars_repo_path": "generador/generador_nombres.py", "max_stars_repo_name": "RamirezAmayaS/GNOM", "max_stars_repo_head_hexsha": "99fa13a8bd998cd95ea293647573cf1ccc91aef5", "max_stars_repo_licenses": ["MIT"], "max_sta...
""" load .mat file generated by genSample.m """ from scipy.io import loadmat mat = loadmat('octave_a.mat') a = mat['a'] print(a.shape)
{"hexsha": "f0b9b4155457a6f47b70b06b8b21b776e29a644b", "size": 137, "ext": "py", "lang": "Python", "max_stars_repo_path": "scipyExercise/matlabfile/matrixExample/load_sample.py", "max_stars_repo_name": "terasakisatoshi/pythonCodes", "max_stars_repo_head_hexsha": "baee095ecee96f6b5ec6431267cdc6c40512a542", "max_stars_re...
"""Module for integration of polynomials over 3D volumes and surfaces""" function M(alpha, beta) a = 0 for l=1:(alpha + 2) a += binomial(alpha+1,l) * (-1)^l/(l+beta+1) end return a/(alpha + 1) end """ The main integration routine """ function TT(tau::Array{Float64,2}, alpha, beta, gamma, signe...
{"hexsha": "b4e55b36b9e4dea74239592f670b9f966738e1c2", "size": 5742, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/integr.jl", "max_stars_repo_name": "JuliaTagBot/LAR.jl", "max_stars_repo_head_hexsha": "ab094ae0b679e530ced81ad9a5060886dedf207f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "max...
# -*- coding: utf-8 -*- """ Created on Wed Oct 19 15:03:15 2016 @author: yxl """ from __future__ import absolute_import import numpy as np from ..draw import polygonfill from ..manager import ColorManager def match_color(img, color): if hasattr(color, '__iter__') and len(img.shape)==2: return np.mean(color...
{"hexsha": "b6832a55aa003b1396c633ce8619298d84189323", "size": 2319, "ext": "py", "lang": "Python", "max_stars_repo_path": "imagepy/core/draw/paint.py", "max_stars_repo_name": "adines/imagepy", "max_stars_repo_head_hexsha": "d7cdf3273d25e06046626ef2ef9200b1846ea49a", "max_stars_repo_licenses": ["BSD-4-Clause"], "max_st...
\section{Investigation/Research} In this section we describe our investigation and research over the proposal readings. Investigation throughout the examination of the reading facts, novel possibilities and results. Also, addressing the research reasoned conclusions of those readings. \subsection{HRS Perspectives} D...
{"hexsha": "f4b73e24d351c85ba97403b15eeaadb5a8d0cd64", "size": 6051, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "state-of-the-art/report_3/sections/investigation_research.tex", "max_stars_repo_name": "mida-project/reading-reports", "max_stars_repo_head_hexsha": "f65c20947ba85df1f75aa86eab2b622230d8eda7", "max_...
import os import argparse import matplotlib.pyplot as plt import pathlib as path import numpy as np import json import datetime import math import pprint pp = pprint.PrettyPrinter() # Get the paths of all elements from a directory def get_file_paths(directory): return [f for f in path.Path(directory).iterdir() if...
{"hexsha": "6193361211eeb4524da288492bd64fa4c71d1ff5", "size": 5140, "ext": "py", "lang": "Python", "max_stars_repo_path": "experiments/2021-03-LB-DTW/analysis.py", "max_stars_repo_name": "MonashTS/tempo", "max_stars_repo_head_hexsha": "ca9981bc616a59e2a7c583ccb95e999c91af0906", "max_stars_repo_licenses": ["BSD-3-Claus...
# Note that this script can accept some limited command-line arguments, run # `julia build_tarballs.jl --help` to see a usage message. using BinaryBuilder, Pkg name = "eudev" version = v"3.2.9" # Collection of sources required to complete build sources = [ ArchiveSource("https://dev.gentoo.org/~blueness/eudev/eud...
{"hexsha": "21ff48d40aafbe0bd9619b42cae0f543e4b40353", "size": 1308, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "E/eudev/build_tarballs.jl", "max_stars_repo_name": "sharanry/Yggdrasil", "max_stars_repo_head_hexsha": "d89cb4ffdc8e96ad39b6242b3574c59561c1b546", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
! ! ------------------------------------------------------------- ! W W P L S 1 ! ------------------------------------------------------------- ! ! * ! THIS PACKAGE DETERMINES THE VALUES OF FOLLOWING MATRIX * ! ...
{"hexsha": "f14e3dd82e805a08dea9425f974e0157931e9b34", "size": 3639, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src90/lib/libang90/wwpls1.f90", "max_stars_repo_name": "mansour2014/ATSP2K_plus", "max_stars_repo_head_hexsha": "30842b9f086d1e497aeb778e2a352d1e8e520ec3", "max_stars_repo_licenses": ["BSD-4-Cla...
[STATEMENT] lemma positional_strategy_induction_step: assumes "v \<in> V" and no_deadends: "\<And>v. v \<in> V \<Longrightarrow> \<not>deadend v" and IH: "\<And>(G :: ('a, 'b) ParityGame_scheme) v. \<lbrakk> card (\<omega>\<^bsub>G\<^esub> ` V\<^bsub>G\<^esub>) < card (\<omega> ` V); v \<in> V\<^bsub>G\...
{"llama_tokens": 63235, "file": "Parity_Game_PositionalDeterminacy", "length": 666}
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf from keras import layers, models, keras_parameterized, testing_utils from tensorflow.python.util import object_identity from tensorflow.python.training.tracking import...
{"hexsha": "05b921266220244da16778e91ffb32834c571017", "size": 5306, "ext": "py", "lang": "Python", "max_stars_repo_path": "tfmiss/keras/layers/wrappers_test.py", "max_stars_repo_name": "shkarupa-alex/tfmiss", "max_stars_repo_head_hexsha": "4fe1bb3a47327c07711f910ee53319167032b6af", "max_stars_repo_licenses": ["MIT"], ...
tryCatch(detach("package:do", unload=TRUE), error=function(e) NULL) library(ggplot2) library(RCurl) library(reshape2) library(data.table) library(gsheet) library(tidyverse) library(lubridate) library(scales) library(rvest) library(sf) library(mapview) library(raster) library(ggmap) library(dplyr) equipment_losses <- ...
{"hexsha": "6a75b71bb43cbf406c2de01ca03ed186684c1be1", "size": 47606, "ext": "r", "lang": "R", "max_stars_repo_path": "R/Automation/losses.r", "max_stars_repo_name": "leedrake5/Russia-Ukraine", "max_stars_repo_head_hexsha": "662a363c0fd215330ecc6e3cc3600f40599a83c8", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
""" Provides ESMF representations of grids/UGRID meshes and a modified regridder. """ import ESMF import numpy as np from numpy import ma import scipy.sparse import cartopy.crs as ccrs class GridInfo: """ This class holds information about lat-lon type grids. That is, grids defined by lists of latitude and...
{"hexsha": "d2a765c622fe0cb5f3aa1fe53a0142e7c83d6612", "size": 11517, "ext": "py", "lang": "Python", "max_stars_repo_path": "esmf_regrid/esmf_regridder.py", "max_stars_repo_name": "zklaus/iris-esmf-regrid", "max_stars_repo_head_hexsha": "3425feb1501e2cf60b8822a826a76106a73ca7b9", "max_stars_repo_licenses": ["BSD-3-Clau...
header {* Coercion Operator *} theory Coerce imports HOLCF begin subsection {* Coerce *} text {* The @{text domain} type class, which is the default type class in HOLCF, fixes two overloaded functions: @{text "emb::'a \<rightarrow> udom"} and @{text "prj::udom \<rightarrow> 'a"}. By composing the @{text prj} and @{t...
{"author": "Josh-Tilles", "repo": "AFP", "sha": "f4bf1d502bde2a3469d482b62c531f1c3af3e881", "save_path": "github-repos/isabelle/Josh-Tilles-AFP", "path": "github-repos/isabelle/Josh-Tilles-AFP/AFP-f4bf1d502bde2a3469d482b62c531f1c3af3e881/thys/Tycon/Coerce.thy"}
#include <fstream> #include <iostream> #include <string> #include <locale> #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #include "process_template.h" namespace BF = boost::filesystem; int main(int argc, char**argv) { std::locale::global(std::locale("en_CA.UTF-8")); if (argc != 2) { ...
{"hexsha": "b93e93f9168ec0d4f3e54aab709adfc5c9077fd5", "size": 723, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/main.cpp", "max_stars_repo_name": "madebyjeffrey/CTE", "max_stars_repo_head_hexsha": "3906b7d3346d07dfe70b453a28c37dc904aa1e06", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": null...
import numpy as np import cv2 #import matplotlib.pyplot as plt from collections import deque import imutils from KCF_tracker import tracker import argparse import sys class find_person: def __init__ (self,a): self.direction = [] for track in a : self.direction.append(a[track...
{"hexsha": "5bba7f9974f0fe67b7960d20023c9e2ccc835478", "size": 338, "ext": "py", "lang": "Python", "max_stars_repo_path": "Different_person.py", "max_stars_repo_name": "yahyanik/phd_research", "max_stars_repo_head_hexsha": "ac77562a094ce17eef303af882c709452efafc7c", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
import scipy.io import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy as sp import scipy.interpolate as spi # scipy.interpolate.UnivariateSpline from io import StringIO from datetime import date, time, datetime, timedelta from math import exp, log, sqrt, e def extrema(in_data): f...
{"hexsha": "aa2aefc1896252c2ebf1f5340d7737d4ccdd3351", "size": 5656, "ext": "py", "lang": "Python", "max_stars_repo_path": "ecg_analysis/EEMD.py", "max_stars_repo_name": "BeyondLongLab/ecg_analysis", "max_stars_repo_head_hexsha": "df2b004e84039ae126244d0719cc7a3c7c253382", "max_stars_repo_licenses": ["MIT"], "max_stars...
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import defaultdict, OrderedDict from io import StringIO import io import os import sys import datetime import argparse import nump...
{"hexsha": "0ebaee076cb3bd27baa0cf162ce93cbe091f7663", "size": 45121, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/gen_onnx_mlir.py", "max_stars_repo_name": "onnx/onnx-mlir", "max_stars_repo_head_hexsha": "3d7afedd60b5818ce65c984ff85716816dbb5611", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_c...
#' lost_productivity #' #' Calculate the percentage in worker's lost productivity due to heat conditions. #' #' @param wbgt numeric Wetbulb globe temperature index in degC #' @param tresh numeric treshshold for loss in degC #' #' @return percentage of productivity lost #' #' @author Istituto per la Bioeconomia C...
{"hexsha": "44aaa4ec0257cad68c797db0e49031bdbde2f6ed", "size": 719, "ext": "r", "lang": "R", "max_stars_repo_path": "R/lost_productivity.r", "max_stars_repo_name": "alfcrisci/rBiometeo", "max_stars_repo_head_hexsha": "1fe0113d017372393de2ced18b884f356c76049b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "...
# A Gabriel's Horn, brought to you by PharaohCola13 import mpl_toolkits.mplot3d.axes3d as p3 import matplotlib.pyplot as plt from matplotlib import * from numpy import * from mpl_toolkits.mplot3d.art3d import * from matplotlib.animation import * name = "Gabriel's-Horn" def shape(fig, alpha, color, edge_c, edge_w, gr...
{"hexsha": "de2ae224494e286a9cb4b5b168092ca2722896c6", "size": 1350, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/GUI/compile_space/gabriel_horn.py", "max_stars_repo_name": "gitter-badger/GeoMetrics", "max_stars_repo_head_hexsha": "8f33a7da1db88ea49f10772c4bf63b357e9f066c", "max_stars_repo_licenses": ["MI...
#include <boost/mpl/aux_/largest_int.hpp>
{"hexsha": "2bce08e8d52cb612f833d57131b8be2f4a94c105", "size": 42, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_mpl_aux__largest_int.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["BSL-1.0"...
[STATEMENT] lemma backward_terminating_path_root_2: assumes "backward_terminating_path_root r x" shows "backward_terminating x" [PROOF STATE] proof (prove) goal (1 subgoal): 1. backward_terminating x [PROOF STEP] using assms backward_terminating_iff2 path_def backward_terminating_path_root_aux backward_fin...
{"llama_tokens": 372, "file": "Relational_Paths_Rooted_Paths", "length": 2}
#ifndef BOOST_SYSTEM_NO_DEPRECATED #define BOOST_SYSTEM_NO_DEPRECATED 1 #endif #include "Python.h" #include <boost/intrusive/options.hpp> #include <boost/python.hpp> #include <boost/python/object.hpp> #include <boost/python/object/function_object.hpp> #include <boost/python/object/py_function.hpp> #include <boost/pyth...
{"hexsha": "16ded19c3944c11334d2096ba6772b48ad43edca", "size": 4567, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/boost_python_wrapper.cpp", "max_stars_repo_name": "Jamieryan/carma_pack", "max_stars_repo_head_hexsha": "347ea78818cc808e53e4a46d341829f787198df5", "max_stars_repo_licenses": ["MIT"], "max_stars...
""" Classification of spoken digit recordings ========================================= In this example we use the 1D scattering transform to represent spoken digits, which we then classify using a simple classifier. This shows that 1D scattering representations are useful for this type of problem. This dataset is au...
{"hexsha": "f4094d3c659b4b7d2053db0bfd3b487d8f9234a8", "size": 7434, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/1d/classif_keras.py", "max_stars_repo_name": "GReguig/kymatio", "max_stars_repo_head_hexsha": "e0fc10057f5f8bb947068bc40afff8d3d3729052", "max_stars_repo_licenses": ["BSD-3-Clause"], "max...
# -*- coding: utf-8 -*- from os.path import join import pytest from numpy import pi from pyleecan.Classes.VentilationTrap import VentilationTrap from pyleecan.Methods.Slot.VentilationTrap import TrapezeBuildGeometryError """unittest for VentilationTrap""" @pytest.mark.METHODS class Test_VentilationTrap(object): ...
{"hexsha": "161badf310aa06083ca6269be40dafcf2e61b842", "size": 1195, "ext": "py", "lang": "Python", "max_stars_repo_path": "Tests/Methods/Slot/test_ventilationTrap.py", "max_stars_repo_name": "IrakozeFD/pyleecan", "max_stars_repo_head_hexsha": "5a93bd98755d880176c1ce8ac90f36ca1b907055", "max_stars_repo_licenses": ["Apa...
import os.path from math import cos, sin, sqrt from random import random import numpy as np def Rx(theta): return np.asarray([[1, 0, 0], [0, cos(theta), -sin(theta)], [0, sin(theta), cos(theta)]], dtype=np.float64) def Ry(theta): return np.asarr...
{"hexsha": "058458a73c08d003a87729edf4f999724493ee6b", "size": 3956, "ext": "py", "lang": "Python", "max_stars_repo_path": "disvis/rotations.py", "max_stars_repo_name": "haddocking/disvis", "max_stars_repo_head_hexsha": "a922bd079b41ad5ef3ac33f4e68968f8978626d2", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_co...
""" drive_test.py Tests concerning the game mechanics. """ import os import unittest from random import random import numpy as np from config import Config from environment.game import Game from environment.spawn_functions.simple import SpawnSimple from utils.vec2d import Vec2d EPSILON = 0.05 # 5 centimeter offset...
{"hexsha": "ead2fc6e0d94359271cef563e04b1772897929f1", "size": 4427, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/drive_test.py", "max_stars_repo_name": "RubenPants/EvolvableRNN", "max_stars_repo_head_hexsha": "818a4ce941536611c0f1780f7c4a6238f0e1884e", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
function runExperimentAndWriteResults(kappaSquared::Array{Float64},h::Array{Float64,1},src::Array{Int64,1},n::Array{Int64,1},T_exact::Array{Float64},WU::Float64 ) Omega = zeros(2*length(n)); Omega[2:2:end] = (n.-1).*h; Mesh = getRegularMesh(Omega,n.-1); ########################################################## ...
{"hexsha": "bfe22ccf0a1ea33add629caaedc4095c7634bec0", "size": 2843, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "examples/runAccuracyExperiment.jl", "max_stars_repo_name": "JuliaInv/FactoredEikonalFastMarching.jl", "max_stars_repo_head_hexsha": "421e451c206cd11ff95806ac675baa7e705a0e95", "max_stars_repo_licen...
""" """ import numpy as np import nashpy as nash from random import * # can we model the 1 - 100 game with 100 players chosen_number = {} players = range(1, 100) number = randint(1, 100) # print(numbers) for player in players: chosen_number.append({player, number}) print(number) pyBNEq # player_1 = np.array(...
{"hexsha": "4e829194d7c3a424afe350da61ac752e09fb4cd2", "size": 715, "ext": "py", "lang": "Python", "max_stars_repo_path": "1-100 game.py", "max_stars_repo_name": "mkingopng/game_theory", "max_stars_repo_head_hexsha": "a7027e490d745d9e793155205666a85cd0e5dde4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
import random import torch, os, glob from operator import itemgetter import argparse, datetime import numpy as np import matplotlib.pyplot as plt from torch.autograd import Variable from torchinfo import summary import torch.optim as optim import torch.nn.functional as F from model.dda import * from utils.dataload imp...
{"hexsha": "28bb46b921e296202b558fc3a422575cf98eea7e", "size": 7201, "ext": "py", "lang": "Python", "max_stars_repo_path": "misc/competitors/ensemble.py", "max_stars_repo_name": "uchidalab/DynamicDataAugmentation-with-GatingNetworks", "max_stars_repo_head_hexsha": "b5e7e2e9cc7ddfb0b2f4503340608308ff0e3276", "max_stars_...
seed=75 import numpy as np np.random.seed(seed) from tensorflow import set_random_seed set_random_seed(seed) from sklearn import model_selection from keras.layers import Input, Dense, Lambda from keras.models import Model, load_model from keras import backend as K from keras import metrics from keras import callbacks i...
{"hexsha": "c42480eb52b3022ad5a4bf0bc63b45fa7c579c02", "size": 1868, "ext": "py", "lang": "Python", "max_stars_repo_path": "deep_denoising_autoencoder.py", "max_stars_repo_name": "Nano-Neuro-Research-Lab/latent-space-discovery", "max_stars_repo_head_hexsha": "2633ab859537bc4b2b6c69d4dfa033c38769e9cd", "max_stars_repo_l...
#!/usr/bin/env python import json import os import pathlib import pickle import random import sys import time from typing import Dict from absl import app from absl import flags from absl import logging import numpy as np from alphafold.common import protein, residue_constants from alphafold.data import pipeline fro...
{"hexsha": "8aaa39b6a06d1b1db5fa5974f8d883ad9fa8dd10", "size": 10937, "ext": "py", "lang": "Python", "max_stars_repo_path": "run_tbm.py", "max_stars_repo_name": "huhlim/alphafold", "max_stars_repo_head_hexsha": "f8971a5ab000f61e938e9de97d1ad499e7f06df8", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 1, ...
import torch import numpy as np class SignDataset(torch.utils.data.Dataset): # https://alexanderkurakin.blogspot.com/2019/01/pytorch-data-loading-preprocessing.html def __init__(self, imgs, labels,n_classes, transform = None): """ transform (callable, optional): optional transform. ...
{"hexsha": "af85f157bf1b79f873640b2fe2b3965520e5106e", "size": 1086, "ext": "py", "lang": "Python", "max_stars_repo_path": "Dataset.py", "max_stars_repo_name": "warenick/CarND-Traffic-Sign-Classifier-Project", "max_stars_repo_head_hexsha": "c9a6d9a876e7be6be6315874f41be236552e9432", "max_stars_repo_licenses": ["MIT"], ...
import math import numpy as np from ... import utils def cross_correlation(reference_spike_train, target_spike_train, tau, window_length, sampling_time): reference_length = np.size(reference_spike_train, 0) target_length = np.size(target_spike_train, 0) if reference_length > target_length: ...
{"hexsha": "b245a6b4db86f7957753f7a13f5da0a4f507a1db", "size": 1448, "ext": "py", "lang": "Python", "max_stars_repo_path": "neurospyke/spikes/analysis/crosscorr.py", "max_stars_repo_name": "FrancescoNegri/neurospyke", "max_stars_repo_head_hexsha": "1f7836d262d841f4a31d7d0d5e3fadc5fc313b6e", "max_stars_repo_licenses": [...
""" some tools in order to plot the images, save the matrix and evaluate the decomposition. """ import time import numpy as np import matplotlib.pyplot as plt from lrs import data from lrs import algo def plot(matrix, vmin, vmax, output_file): plt.imshow(matrix, cmap='Spectral', vmin=vmin, vmax=vmax) plt.axi...
{"hexsha": "71cfd82c1c7a80d84f15e39b0f9faeabf3c19d9c", "size": 1638, "ext": "py", "lang": "Python", "max_stars_repo_path": "lrs/tools.py", "max_stars_repo_name": "CalypsoHerrera/lrs-cov-nn", "max_stars_repo_head_hexsha": "ad5e38126c022a233f634944c15a565ffde85e5e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
""" Copyright 2015 Georgia Institute of Technology 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 i...
{"hexsha": "72f153a3ae49314ef248e51be717bdb7644877ad", "size": 8077, "ext": "py", "lang": "Python", "max_stars_repo_path": "topic_modeling/generate_outputs.py", "max_stars_repo_name": "smallk/postproc", "max_stars_repo_head_hexsha": "04db04d3a018b6bc88a42eab2bdfed4528cb05bb", "max_stars_repo_licenses": ["Apache-2.0"], ...
// graph-tool -- a general graph modification and manipulation thingy // // Copyright (C) 2006-2015 Tiago de Paula Peixoto <tiago@skewed.de> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation;...
{"hexsha": "a61b41e95f00895d172d276f720fca367f54338e", "size": 2580, "ext": "cc", "lang": "C++", "max_stars_repo_path": "graph-tool/src/graph/centrality/graph_katz.cc", "max_stars_repo_name": "johankaito/fufuka", "max_stars_repo_head_hexsha": "32a96ecf98ce305c2206c38443e58fdec88c788d", "max_stars_repo_licenses": ["Apac...
# -*- coding: utf-8 -*- """ Created on Mon Jan 18 17:53:45 2021 @author: 알파제로를 분석하며 배우는 인공지능 """ #%% # 3-4-3 패키지 임포트 from tensorflow.keras.datasets import cifar10 from tensorflow.keras.callbacks import LearningRateScheduler from tensorflow.keras.layers import Activation, Add, BatchNormalization, Conv2D, Dense, Dro...
{"hexsha": "0c2a1fea9ea548bc98dd47c001203aa7237274da", "size": 4623, "ext": "py", "lang": "Python", "max_stars_repo_path": "AlphaZero_book/chap3/3-4.py", "max_stars_repo_name": "jisuk500/ML_learning", "max_stars_repo_head_hexsha": "4f77eb34bd652753e63fb75fa2be5bd252232f80", "max_stars_repo_licenses": ["Apache-2.0"], "m...
/*********************************************************************/ /* Copyright (c) 2017, EPFL/Blue Brain Project */ /* Pawel Podhajski <pawel.podhajski@epfl.ch> */ /* All rights reserved. */ /* ...
{"hexsha": "48ea5a52ddff80a8472e4344cc51fdefa6e68228", "size": 6584, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/cpp/core/ScreenLockTests.cpp", "max_stars_repo_name": "BlueBrain/Tide", "max_stars_repo_head_hexsha": "01e0518117509eaa0ccd9d79f067f385b641247c", "max_stars_repo_licenses": ["BSD-2-Clause"], "...
function varargout = ellipsoidMesh(elli, varargin) %ELLIPSOIDMESH Convert a 3D ellipsoid to face-vertex mesh representation. % % [V, F] = ellipsoidMesh(ELLI) % ELLI is given by: % [XC YC ZC A B C PHI THETA PSI], % where (XC, YC, ZC) is the ellipsoid center, A, B and C are the half % lengths of the ellipsoid...
{"author": "Arrowstar", "repo": "ksptot", "sha": "2b414440d3b167ba2294f56dafce0f465c07f982", "save_path": "github-repos/MATLAB/Arrowstar-ksptot", "path": "github-repos/MATLAB/Arrowstar-ksptot/ksptot-2b414440d3b167ba2294f56dafce0f465c07f982/helper_methods/z_geom3d/meshes3d/ellipsoidMesh.m"}
from http import server from threading import Condition import base64 import io import logging import os import socketserver import numpy as np import picamera import argparse import time import edgetpu.classification.engine # Parameters AUTH_USERNAME = os.environ.get('AUTH_USERNAME', 'pi') AUTH_PASSWORD = os.envir...
{"hexsha": "b2e504a8a16d09bb186f7432be0cef50f0109623", "size": 6083, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/web_streaming_classify.py", "max_stars_repo_name": "masa-ita/raspbian-EdgeTPU", "max_stars_repo_head_hexsha": "4b6c2c7c49a09c6197a2db351f4f1cbf88efa37b", "max_stars_repo_licenses": ["Apac...
#include <boost/asio.hpp> #include <boost/asio/system_timer.hpp> #include <iostream> #include <tm_kit/basic/real_time_clock/ClockComponent.hpp> namespace dev { namespace cd606 { namespace tm { namespace basic { namespace real_time_clock { class ClockComponentImpl { private: std::shared_ptr<boost::asio...
{"hexsha": "453594d83d9cdb47e10fe51872e55013a257a5e4", "size": 7476, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/real_time_clock/ClockComponent.cpp", "max_stars_repo_name": "cd606/tm_basic", "max_stars_repo_head_hexsha": "ea2d13b561dd640161823a5e377f35fcb7fe5d48", "max_stars_repo_licenses": ["Apache-2.0"],...
from __future__ import absolute_import, division, print_function from itertools import count, product from functools import partial from toolz import curry import numpy as np from .core import Array, normalize_chunks from .numpy_compat import full names = ('wrapped_%d' % i for i in count(1)) def dims_from_size(si...
{"hexsha": "5f43cbbcf4d0d0c89d428aa40a124de8e3592653", "size": 2996, "ext": "py", "lang": "Python", "max_stars_repo_path": "dask/array/wrap.py", "max_stars_repo_name": "gabrielelanaro/dask", "max_stars_repo_head_hexsha": "b5827ec358adfe5ec5b72be732aecc10e4b08da6", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars...
convert(::Type{T}, r::RObject{S}) where {T, S<:Sxp} = rcopy(T, r.p) convert(::Type{Any}, r::RObject{S}) where S<:Sxp = r convert(::Type{RObject}, r::RObject{S}) where S<:Sxp = r convert(::Type{RObject{S}}, r::RObject{S}) where S<:Sxp = r # conversion between numbers which understands different NAs function rcopy(::Typ...
{"hexsha": "5c7a9f2c3572e29e963b5af9c6477f602d71bb1c", "size": 9051, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/convert/base.jl", "max_stars_repo_name": "UnofficialJuliaMirror/RCall.jl-6f49c342-dc21-5d91-9882-a32aef131414", "max_stars_repo_head_hexsha": "8947dbc3c9e8568b9e9abfb10124a865f3b5b92f", "max_st...
#For ICDM review only, please do not distribute #ALL RIGHTS RESERVED import numpy as np import matplotlib.pyplot as plt from solverADMMmodel7 import myADMMSolver as ADMM7 from solverADMMmodel6 import myADMMSolver as ADMM6 from helper import computeF1Score,extractSlidingWindow,computeF1ScoreWithoutBestMatch,reassignY, u...
{"hexsha": "c8b941174c0611354a63981e37e20e4d1c46fab8", "size": 12357, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/solverFramework.py", "max_stars_repo_name": "qingzheli/partial-correlation-based-contrast-pattern-mining", "max_stars_repo_head_hexsha": "44026ba840581a68ff2249e88e99c0c1d05d4209", "max_star...
Require Import Bool. (*Load Arith.*) Require Import Arith. Require Import Mult. Require Import List. Require Import Logic. Set Implicit Arguments. Definition Alphabet := nat. Inductive Fin : nat -> Type := | f0 : forall n, Fin (S n) | fs : forall n, Fin n -> Fin (S n). Lemma fin_isnotzero : forall (n:nat), Fin n ->...
{"author": "radu07", "repo": "automat", "sha": "5d8c4ec7414025cb83ec094e45e09a7cd1d607da", "save_path": "github-repos/coq/radu07-automat", "path": "github-repos/coq/radu07-automat/automat-5d8c4ec7414025cb83ec094e45e09a7cd1d607da/autofin_new/Finitesets.v"}
''' Written by Fabian Kabus. https://github.com/thefabus ''' import bioformats import deepdish as dd import h5py import javabridge import numpy as np import os.path from pyprind import prog_percent import SimpleITK as sitk import tables import time from xml.etree import ElementTree as ETree def lif_get_metas(fn): ...
{"hexsha": "7e69a63886804e5ceb41f9dcd49c1ce0bb03cccf", "size": 3705, "ext": "py", "lang": "Python", "max_stars_repo_path": "zebrafish_io.py", "max_stars_repo_name": "mariakesa/ZebraFishRegistrationPipeline", "max_stars_repo_head_hexsha": "4955044eb69dc04c579f59ccb24e02e4451aebcc", "max_stars_repo_licenses": ["MIT"], "m...
import unittest import os from flowdec import psf, data from skimage import io from numpy.testing import assert_almost_equal, assert_array_equal class TestPSF(unittest.TestCase): def test_psf_comparison(self): """Validate a generated kernel against the same thing from PSFGenerator""" k_actual = ...
{"hexsha": "317fd3b034f08aaec9dff46a84ee80d7ea48c233", "size": 1951, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/flowdec/psf_test.py", "max_stars_repo_name": "rensutheart/flowdec", "max_stars_repo_head_hexsha": "bc817c71e00090061070f0cdeb4c80524f122950", "max_stars_repo_licenses": ["Apache-2.0"], "max...
#include <iostream> #include <armadillo> #ifndef MLMATH #define MLMATH #include "MLMath.h" #endif #ifndef PLOTTER #define PLOTTER #include "plot.h" #endif using namespace std; using namespace arma; int main(int argc, char *argv[]) { // for(int i=0; i<argc; i++){ // cout << argv[i] << endl; // } if(...
{"hexsha": "f8380bdb7e6966c8e3cb0b1acb937e65c60277de", "size": 1333, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "ML.cpp", "max_stars_repo_name": "Jovonni/RealTimeMLLib", "max_stars_repo_head_hexsha": "2155c80cafbee273c04a3e6c30d6ac4b425b7968", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2.0, "max_st...
import graph_tool.all as gt import numpy as np from ._helpers import * def get_cell_loglikelihood( state, level: int = 0, rescale: bool = False, as_prob: bool = False ): """ Returns the matrix of log-likelihood differences when moving a cell into a different block Parameters...
{"hexsha": "e8dcfc07e007b63deab7d0644e19474dd7c48804", "size": 2164, "ext": "py", "lang": "Python", "max_stars_repo_path": "schist/inference/_utils.py", "max_stars_repo_name": "stuarteberg/schist", "max_stars_repo_head_hexsha": "330476567cf061478aff5ce862c741095b8795a3", "max_stars_repo_licenses": ["BSD-3-Clause"], "ma...
#! /usr/bin/env python # # GOAL # - builds pipeline arguments needed for real events, ONLY INCLUDING THOSE RELATED TO DATAFIND # - finds and/or builds PSDs # - provides configparser i/o if needed (e.g., to standardize PSD settings) # - does gracedb event lookup, knows about standard channel names / stores hi...
{"hexsha": "22d32e0748e913e48b85926d74d8bfa341ac37c0", "size": 66155, "ext": "py", "lang": "Python", "max_stars_repo_path": "MonteCarloMarginalizeCode/Code/bin/helper_LDG_Events.py", "max_stars_repo_name": "spfanning/research-projects-RIT", "max_stars_repo_head_hexsha": "34afc69ccb502825c81285733dac8ff993f79503", "max_...
import StructTypes: StructType, CustomStruct, DictType, ArrayType, StringType, NumberType, BoolType, NullType, NoStructType, Struct, OrderedStruct, Mutable, construct, AbstractType, subtypes, subtypekey struct RawType <: StructType end struct RawValue{S} bytes::S pos::Int len::Int end function rawbytes e...
{"hexsha": "0a4ec0f5d231bef8b9693d6a0c6d8e387e66e5dc", "size": 21098, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/structs.jl", "max_stars_repo_name": "marcom/JSON3.jl", "max_stars_repo_head_hexsha": "28a3a8b0f15ffa2821d0f208a3ceec2bd6638bbb", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
#!/usr/bin/python # -*- coding: utf-8 -*- # """ This module run the electromagnetic simulation with an old version of the Ray Tracing tool Deprecated Utility Functions ================= .. autosummary:: :toctree: generated/ rename spafile Palch class =========== .. autosummary:: :to...
{"hexsha": "838ba11c5747aa6938e143a92ee301a98546c1bc", "size": 86950, "ext": "py", "lang": "Python", "max_stars_repo_path": "pylayers/simul/simulem.py", "max_stars_repo_name": "ArtashesH/PylayersWith3D", "max_stars_repo_head_hexsha": "e4c35279a7da121d9a68282a6a0c3decfba696b4", "max_stars_repo_licenses": ["MIT"], "max_s...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example of running PyMultiNest to fit the parameters of a straight line. """ from __future__ import print_function, division import os import sys from scipy.special import ndtri import numpy as np try: import matplotlib as mpl mpl.use('Agg') except ImportErr...
{"hexsha": "66f74bb1bcdd0c658fe7f7bf4565071965b2839a", "size": 4186, "ext": "py", "lang": "Python", "max_stars_repo_path": "content/downloads/code/test_PyMultiNest.py", "max_stars_repo_name": "mattpitkin/samplers-demo", "max_stars_repo_head_hexsha": "127c869b870ce3e6b96e59bda0999bf2cc7d3849", "max_stars_repo_licenses":...
from model import Model from util import * import numpy as np ACCEPT_PCT = 0.2 global MAX MAX = ACCEPT_PCT class Agent: def __init__(self, data_source, alpha): self.dataset = data_source self.model = Model(self.dataset.batch_count) self.alpha = alpha # self.accept_diff = max(np...
{"hexsha": "82a35afa4843cc19e3cf83c6b56295398b26e42c", "size": 2409, "ext": "py", "lang": "Python", "max_stars_repo_path": "agent.py", "max_stars_repo_name": "rosaj/peer-sgd", "max_stars_repo_head_hexsha": "fd9bf02afeadd34adef5d50d92beabde35a1833b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_star...
import unittest from scipy import sparse import dgl from photonai_graph.GraphConversions import dgl_to_sparse class DglToSparseTest(unittest.TestCase): def setUp(self): # create dgl graph and nonsense input dgl_graph = dgl.DGLGraph() dgl_graph.add_nodes(3) dgl_graph.add_edges([0, ...
{"hexsha": "0fae634570e8924effd7fd77cfd097883d1b4b2a", "size": 964, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/conversion_tests/test_dgl_to_sparse.py", "max_stars_repo_name": "wwu-mmll/photonai_graph", "max_stars_repo_head_hexsha": "b758c7efa878ef4533ed4f66d6579019167bfa9e", "max_stars_repo_licenses": ...
%\documentclass[authoryear,5p]{elsarticle} \documentclass[authoryear,review,12pt]{elsarticle} \bibliographystyle{elsarticle-harv} \usepackage{graphicx} \usepackage{amsmath,amsfonts} \usepackage{lineno} \linenumbers \usepackage{subfigure} \textwidth 6.75in \oddsidemargin -0.15in \evensidemargin -0.15in \textheight 9in \...
{"hexsha": "1ce2395a38bb33e60bb9368593285b3073325ef7", "size": 33423, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/prosecutor/fallacy.tex", "max_stars_repo_name": "cboettig/prosecutors-fallacy", "max_stars_repo_head_hexsha": "a6260f1afa4ae948123a5673a88e9c6b7a11d68a", "max_stars_repo_licenses": ["CC0-1.0"],...
"""Demo code shows how to estimate human head pose. Currently, human face is detected by a detector from an OpenCV DNN module. Then the face box is modified a little to suits the need of landmark detection. The facial landmark detection is done by a custom Convolutional Neural Network trained with TensorFlow. After tha...
{"hexsha": "27f27bb6a8ef6c958efed07693d13f3fa3165e1e", "size": 8483, "ext": "py", "lang": "Python", "max_stars_repo_path": "Merged.py", "max_stars_repo_name": "Znerf/head-pose-estimation", "max_stars_repo_head_hexsha": "e14d71cfef49d29ae918c8749092e3b5a263225c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
# Import modules import functions from google_images_download import google_images_download import tkinter as tk import os, sys import cv2 from PIL import Image, ImageTk Image.MAX_IMAGE_PIXELS = None import numpy as np import shutil #Directory where files are located os.chdir('E:/ISU_FINAL') #Edit based on where file...
{"hexsha": "0887028f26cd6ba7f541a13d5515b4a17c76adc1", "size": 6818, "ext": "py", "lang": "Python", "max_stars_repo_path": "images_downloader.py", "max_stars_repo_name": "Gelardinio/Mosaic-Maker", "max_stars_repo_head_hexsha": "2216fe0f064ffea46d223eceef2540b495e6841a", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
""" Unit tests for vector geometry predicate methods """ from __future__ import division import unittest import numpy as np from karta.vector.geometry import (Point, Line, Polygon, Multipoint, Multiline, Multipolygon) from karta.crs import (Cartesian, SphericalEarth, LonLatWGS84) fr...
{"hexsha": "14db5428043f63df8f8708c83549144ccae09825", "size": 11300, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/vector_predicate_tests.py", "max_stars_repo_name": "fortyninemaps/karta", "max_stars_repo_head_hexsha": "b35d8cbcfb62e9f1d826a5c73605d34a0c0990b6", "max_stars_repo_licenses": ["MIT"], "max_...
from Basic_structure import * from keras.datasets import mnist import time from utils import * from scipy.misc import imsave as ims from ops import * from utils import * from Utlis2 import * import random as random from glob import glob import os, gzip import keras as keras from glob import glob from keras...
{"hexsha": "0b9697c6045a7fdcb575d38756fef8f0683ce015", "size": 33581, "ext": "py", "lang": "Python", "max_stars_repo_path": "TeacherStudent_CelebaToCACD.py", "max_stars_repo_name": "dtuzi123/Lifelong-Teacher-Student-Network-Learning", "max_stars_repo_head_hexsha": "6fd8bd7512a6887ac1238a2010f7abd7bf43e0c4", "max_stars_...
""" Solution for task 2 """ import numpy as np import matplotlib import matplotlib.pyplot as plt matplotlib.use("TkAgg") from qiskit import Aer, execute from qiskit.circuit import QuantumCircuit from qiskit.circuit import Parameter from qiskit.aqua.components.optimizers import SPSA from qiskit.providers.aer.noise im...
{"hexsha": "99277d3150d670085f8a687165e8edb7975666e3", "size": 5594, "ext": "py", "lang": "Python", "max_stars_repo_path": "task2.py", "max_stars_repo_name": "roytu/qosf_task2", "max_stars_repo_head_hexsha": "4ef63a45f5e98f5d7e051d99dd667f41056a28be", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_st...
""" This script takes in parsed data, and writes one or more TFRecord files. """ import tensorflow as tf import numpy as np import sys def make_example(seq, labels): """ make a tf.SequenceExample from an x, y sequence pair """ ex = tf.train.SequenceExample() # pack in length information seq_len =...
{"hexsha": "e10d2edb7459a1c88a29a5503c754380bd9b63ed", "size": 1152, "ext": "py", "lang": "Python", "max_stars_repo_path": "phase_2_language_data_wrangling/tf_sequence_example/make_TFRecord.py", "max_stars_repo_name": "rpryzant/nmt", "max_stars_repo_head_hexsha": "fd4aee254aef4a61ca9ed4bc6926f163a94f26e3", "max_stars_r...
[STATEMENT] lemma (in vectorspace) lin_subspace [intro]: assumes x: "x \<in> V" shows "lin x \<unlhd> V" [PROOF STATE] proof (prove) goal (1 subgoal): 1. Subspace.subspace (lin x) V [PROOF STEP] proof [PROOF STATE] proof (state) goal (4 subgoals): 1. lin x \<noteq> {} 2. lin x \<subseteq> V 3. \<And>xa y. \<lbr...
{"llama_tokens": 3781, "file": null, "length": 56}
subroutine sourmu(soumud ,excbed ,entr ,wssus ,j , & & nmmaxj ,nmmax ,nmax ,mmax ,kmax , & & icx ,icy ,kfs ,kfu ,kfv , & & kcs ,s0 ,dps ,u0 ,v0 , & ...
{"hexsha": "6024cf6dab94084640d5a15d00c8f381850a7f23", "size": 22342, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "docker/water/delft3d/tags/v6686/src/engines_gpl/flow2d3d/packages/kernel/src/compute/sourmu.f90", "max_stars_repo_name": "liujiamingustc/phd", "max_stars_repo_head_hexsha": "4f815a738abad43531d...
/* * Copyright 2017, Andrea Del Prete, LAAS-CNRS * * This file is part of sot-torque-control. * sot-torque-control 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 Licens...
{"hexsha": "69836a251f7cfe0ee3295015a3b5cb81401d666c", "size": 52415, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/inverse-dynamics-balance-controller.cpp", "max_stars_repo_name": "jviereck/sot-torque-control", "max_stars_repo_head_hexsha": "90409a656e5b5be4dd4ff937724154579861c20f", "max_stars_repo_license...
[STATEMENT] lemma set_integral_complex_of_real: "LINT x:A|M. complex_of_real (f x) = of_real (LINT x:A|M. f x)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. LINT x:A|M. complex_of_real (f x) = complex_of_real (set_lebesgue_integral M A f) [PROOF STEP] unfolding set_lebesgue_integral_def [PROOF STATE] proof (prov...
{"llama_tokens": 260, "file": null, "length": 2}