text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
%%% Local Variables: %%% mode: latex %%% TeX-master: "program-analysis" %%% End: \chapter{Pointer Analysis} \label{chap:pointer-analysis} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Introduction} \textit{Pointer analysis} or \textit{Points-to Analysis} is a ...
{"hexsha": "36e919e99a580c783a6465a3bc2c1e14eed21196", "size": 15194, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "theory/pta.tex", "max_stars_repo_name": "skicombinator/nirvana", "max_stars_repo_head_hexsha": "d120744c0179b4c69c0c7ddc8b461e62486510f6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, ...
% ========== Chapter on Artifact Rejection \chapter {Aim 1.2: Algorithms to process neural data in context of ongoing stimulation} \section{Introduction} The interpretation of neural activity during concurrent electrical stimulation is a challenge. The stimulus artifact induced by electrical stimulation is often...
{"hexsha": "65363cfbf82a8adf71e7eece78e3e05ff696f341", "size": 13088, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "artifactRejection.tex", "max_stars_repo_name": "davidjuliancaldwell/ThesisText", "max_stars_repo_head_hexsha": "23566bd16e572e059c6a1b9dc423ef2e3e8e2db9", "max_stars_repo_licenses": ["Apache-2.0"],...
import pandas as pd import numpy as np import matplotlib.pyplot as plt import glob import seaborn as sns color = np.asarray(sns.color_palette('tab20')) rf_vals = np.zeros((len(glob.glob('results/*csv')), 500)) drf_vals = np.zeros((len(glob.glob('results/*csv')), 500)) file_names = list(glob.glob('results/*csv')) fi...
{"hexsha": "40e621307984ec640827a5a00c1726e21a027096", "size": 2372, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/process_test_curves.py", "max_stars_repo_name": "joshloyal/drforest", "max_stars_repo_head_hexsha": "ab1e3f01cab36f15f1c37b82f71421cd025c901e", "max_stars_repo_licenses": ["MIT"], "max_st...
#!/usr/bin/env python '''Plotting helper functions ''' #Python standard import from itertools import combinations #Third party import import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.cm as cm from mpl_toolkits.mplot3d import Axes3D import pyorb #Local import from .. im...
{"hexsha": "dfa214ff19f2e8a4d8fbfea2d419779a5eeb2cce", "size": 7168, "ext": "py", "lang": "Python", "max_stars_repo_path": "sorts/plotting/general.py", "max_stars_repo_name": "danielk333/SORTS", "max_stars_repo_head_hexsha": "f8454901fda405c0e8ce6553366553c3f043da0b", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
[STATEMENT] theorem sup_loc_Cons [iff]: "(G \<turnstile> (Y#YT) <=l XT) = (\<exists>X XT'. XT=X#XT' \<and> (G \<turnstile> Y <=o X) \<and> (G \<turnstile> YT <=l XT'))" [PROOF STATE] proof (prove) goal (1 subgoal): 1. G \<turnstile> (Y # YT) <=l XT = (\<exists>X XT'. XT = X # XT' \<and> G \<turnstile> Y <=o X \<and>...
{"llama_tokens": 204, "file": null, "length": 1}
#= ------------------------------------------------------------------------- # @file test_soulution.jl # # @date 03/11/16 20:06:13 # @author Martin Noblia # @email martin.noblia@openmailbox.org # # @brief # # @detail # Licence: # This program is free software: you can redistribute it and/or modify # it under the term...
{"hexsha": "f74f75e2baa498509571ec336cd74600a84c8d14", "size": 1314, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "Problema_store_credit/Julia/test_soulution.jl", "max_stars_repo_name": "elsuizo/CodeJam", "max_stars_repo_head_hexsha": "6ad0adcae944dd636932d16eca698904f2ded75a", "max_stars_repo_licenses": ["MIT"...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Gamma-ray spectral cube: longitude, latitude and spectral axis. TODO: split `SkyCube` into a base class ``SkyCube`` and a few sub-classes: * ``SkyCube`` to represent functions evaluated at grid points (diffuse model format ... what is there now). * ``...
{"hexsha": "c8612ffea9a148aa6f414abf9e6010c08bb2f14f", "size": 20049, "ext": "py", "lang": "Python", "max_stars_repo_path": "gammapy/cube/core.py", "max_stars_repo_name": "grburgess/gammapy", "max_stars_repo_head_hexsha": "609e460698caca7223afeef5e71826c7b32728d1", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_star...
"A module defining container classes for belief propagation states." import functools from dataclasses import asdict, dataclass from typing import Any, Dict, Optional, Tuple, Union, cast import jax import jax.numpy as jnp import numpy as np from pgmax import fgraph, fgroup @jax.tree_util.register_pytree_node_class...
{"hexsha": "d0af377ea3505732652c419f7d9116e36dfb2e9d", "size": 12727, "ext": "py", "lang": "Python", "max_stars_repo_path": "pgmax/infer/bp_state.py", "max_stars_repo_name": "NishanthJKumar/PGMax", "max_stars_repo_head_hexsha": "7c71b1456cd84e40b4974649adbf6eecaf0276a7", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Dirk Eilander (contact: dirk.eilancer@vu.nl) # Created: June 2nd import os, sys, glob from os.path import basename, dirname, join import rasterio from rasterio import features from rasterio.transform import Affine import numpy as np import pandas as...
{"hexsha": "b3649bf11c7080433b40556bf70a6373a2d50eaa", "size": 13835, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/2-experiment/nc_extract.py", "max_stars_repo_name": "DirkEilander/compound_hotspots", "max_stars_repo_head_hexsha": "f9d7960633be80e8e24d2f2563df367cc3f060c6", "max_stars_repo_licenses": ["BS...
"""Hourly temperature frequencies.""" import datetime import calendar from collections import OrderedDict import numpy as np from pandas.io.sql import read_sql import matplotlib.colors as mpcolors from pyiem.plot.use_agg import plt from pyiem.util import get_autoplot_context, get_dbconn from pyiem.exceptions import No...
{"hexsha": "176a8dd0eb338eb738ce0283eab7ca88f66d1d61", "size": 4063, "ext": "py", "lang": "Python", "max_stars_repo_path": "htdocs/plotting/auto/scripts/p60.py", "max_stars_repo_name": "jamayfieldjr/iem", "max_stars_repo_head_hexsha": "275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a", "max_stars_repo_licenses": ["MIT"], "max_...
% MIT License % Copyright (c) 2019-2020 Simon Crase % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the "Software"), to deal % in the Software without restriction, including without limitation the rights % to use, copy, modify, merg...
{"hexsha": "a2c9ae957442adc9c8a31725f5a76551fb71ddce", "size": 113826, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "origins/origins6.tex", "max_stars_repo_name": "weka511/fractals", "max_stars_repo_head_hexsha": "fa4e39677ea3ed7713e40a55b9453b2826f11a6c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2...
""" Helpful stuff re beta distributions characterized by mode and variance """ from scipy import optimize def sd_fun(var, m): """ Gives a function f such that f(alpha) = 0 m = mode of beta function var = variance of beta function """ def fn(x): # express beta in terms of alpha (x) an...
{"hexsha": "2ef4b787b3c0b8df4293f4a92f6dd9686332876e", "size": 693, "ext": "py", "lang": "Python", "max_stars_repo_path": "model/beta_distr.py", "max_stars_repo_name": "theodi/data-sharing-abm-model", "max_stars_repo_head_hexsha": "23386f69d817dd1542c5d4464757f8aabadc6b8d", "max_stars_repo_licenses": ["MIT"], "max_star...
import ssgetpy import numpy as np # result = ssgetpy.search(rowbounds=(None,2000),colbounds=(None,2000),limit=10000) # # for mat in result: # mat.download(format='MAT',destpath='/home/jacobmiller1/Desktop/spherical-mds/matrices') import scipy.io as sio import os import pickle import copy path = 'matrices/' grap...
{"hexsha": "123057355725436fce6618c12ede5dcb9a64d67b", "size": 1213, "ext": "py", "lang": "Python", "max_stars_repo_path": "matrix_search.py", "max_stars_repo_name": "Mickey253/spherical-mds", "max_stars_repo_head_hexsha": "5c96f5ec0273233ac81adcd90a39ec35cfc83557", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
#!/usr/bin/env python # -*- coding: utf-8 -*- import duckdb import pandas as pd import numpy import datetime import sys def run_parallel_queries(main_table, left_join_table, expected_df, iteration_count = 5): for i in range(0, iteration_count): output_df = None sql = """ select ...
{"hexsha": "135a6e4c997bc90892ac835124a51f344c3a9343", "size": 4138, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools/pythonpkg/tests/pandas/test_parallel_pandas_scan.py", "max_stars_repo_name": "wesm/duckdb", "max_stars_repo_head_hexsha": "f2fa094abc59d70a8c981d6e9f9c9c3911f08362", "max_stars_repo_licenses...
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
{"hexsha": "b923a92843ac9ad7becc568354135b0434e8f5f5", "size": 11026, "ext": "py", "lang": "Python", "max_stars_repo_path": "tensorflow/python/ops/hash_table/hash_filter.py", "max_stars_repo_name": "aalbersk/DeepRec", "max_stars_repo_head_hexsha": "f673a950780959b44dcda99398880a1d883ab338", "max_stars_repo_licenses": [...
import argparse import time import numpy as np from pycompss.api.api import compss_barrier import dislib as ds from dislib.cluster import DBSCAN def main(): parser = argparse.ArgumentParser() parser.add_argument("--svmlight", help="read file in SVMlLight format", action="store_true")...
{"hexsha": "a1f802294bc2b915b9d3130e09bd4416b5f502e9", "size": 3751, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/dbscan-driver.py", "max_stars_repo_name": "alexbarcelo/dislib", "max_stars_repo_head_hexsha": "989f81f235ae30b17410a8d805df258c7d931b38", "max_stars_repo_licenses": ["Apache-2.0"], "max_s...
Require Import FP.CoreClasses. Require Import FP.CoreData. Require Import FP.Classes. Import CoreDataNotation. Import ClassesNotation. Import CoreClassesNotation. Section Deriving_Monad_Bijection. Context {T U} (to:forall {A}, T A -> U A) (from:forall {A}, U A -> T A) `{! F_Eqv T ,! F_PER_WF T ,! F_Eqv U ,...
{"author": "davdar", "repo": "coq-fp", "sha": "d0b752d9ea9592ba0bc7b067b46a63740fcff056", "save_path": "github-repos/coq/davdar-coq-fp", "path": "github-repos/coq/davdar-coq-fp/coq-fp-d0b752d9ea9592ba0bc7b067b46a63740fcff056/src/DerivingMonad/Core.v"}
subsection \<open>MulNode Phase\<close> theory MulPhase imports Common Proofs.StampEvalThms begin fun mul_size :: "IRExpr \<Rightarrow> nat" where "mul_size (UnaryExpr op e) = (mul_size e) + 2" | "mul_size (BinaryExpr BinMul x y) = ((mul_size x) + (mul_size y) + 2) * 2" | "mul_size (BinaryExpr op x y)...
{"author": "uqcyber", "repo": "veriopt-releases", "sha": "4ffab3c91bbd699772889dbf263bb6d2582256d7", "save_path": "github-repos/isabelle/uqcyber-veriopt-releases", "path": "github-repos/isabelle/uqcyber-veriopt-releases/veriopt-releases-4ffab3c91bbd699772889dbf263bb6d2582256d7/Optimizations/Canonicalizations/MulPhase.t...
""" Models for the model comparison part in the paper These models are otherwise not part of SCDCdm :authors: Johannes Ostner """ import numpy as np import pandas as pd import subprocess as sp import tensorflow as tf import tensorflow_probability as tfp from tensorflow_probability.python.experimental import edward2 ...
{"hexsha": "633f27c47ca010500044a0cabdd37ea568e0054d", "size": 12285, "ext": "py", "lang": "Python", "max_stars_repo_path": "scdcdm/model/other_models.py", "max_stars_repo_name": "bsierieb1/SCDCdm_public", "max_stars_repo_head_hexsha": "4cd3460a598fad01cb556dc1fb86f63d805ee052", "max_stars_repo_licenses": ["BSD-3-Claus...
#!/usr/bin/env python # vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 : # # Nudge the WCS zero-points in images and save for visual inspection. # # Rob Siverd # Created: 2021-08-12 # Last modified: 2021-08-12 #-------------------------------------------------------------------------- #*********************...
{"hexsha": "ef729a2b9021e62afa66e55ea1425e3758145fc4", "size": 20266, "ext": "py", "lang": "Python", "max_stars_repo_path": "analysis/202108--deviant_AORs_wise1828/gaia_nudge/11_nudge_image_wcs.py", "max_stars_repo_name": "rsiverd/ultracool", "max_stars_repo_head_hexsha": "cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1", "ma...
import os, sys, datetime, argparse import numpy as np from tensorflow.keras.callbacks import ModelCheckpoint,TensorBoard from tensorflow.keras import callbacks import tensorflow.keras.backend as K from data_gen import DataGen from cifar10_gen import DataGenCifar10 from model import autoencoder import tensorflow as tf ...
{"hexsha": "63decada7ef4fc1481736e9cfd49c2f2975e08ac", "size": 5487, "ext": "py", "lang": "Python", "max_stars_repo_path": "semantic/train.py", "max_stars_repo_name": "failyang/tensorflow-examples", "max_stars_repo_head_hexsha": "48da6cd25138d448a4ddf7710e8abab0392c453c", "max_stars_repo_licenses": ["MIT"], "max_stars_...
[STATEMENT] lemma fork_sfoldl: shows "sfoldl\<cdot>f1\<cdot>z1 && sfoldl\<cdot>f2\<cdot>z2 = sfoldl\<cdot>(\<Lambda> (a, b) z. (f1\<cdot>a\<cdot>z, f2\<cdot>b\<cdot>z))\<cdot>(z1, z2)" (is "?lhs = ?rhs") [PROOF STATE] proof (prove) goal (1 subgoal): 1. sfoldl\<cdot>f1\<cdot>z1 && sfoldl\<cdot>f2\<cdot>z2 = sfoldl\<c...
{"llama_tokens": 750, "file": "BirdKMP_KMP", "length": 5}
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
{"hexsha": "04797735887f859b008d2234be059295bc0bd1f1", "size": 7207, "ext": "py", "lang": "Python", "max_stars_repo_path": "better_storylines/src/evaluate_qualitative.py", "max_stars_repo_name": "egonrian/google-research", "max_stars_repo_head_hexsha": "8177adbe9ca0d7e5a9463b54581fe6dd27be0974", "max_stars_repo_license...
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
{"hexsha": "54eebb7e734fc1f22b2bcf900d1903dfba4f79e0", "size": 4308, "ext": "py", "lang": "Python", "max_stars_repo_path": "tf_agents/environments/utils_test.py", "max_stars_repo_name": "adammichaelwood/agents", "max_stars_repo_head_hexsha": "66ad01b9ae909bc6c344b8f0cb356758cae95236", "max_stars_repo_licenses": ["Apach...
[STATEMENT] lemma NOT_elementaryCompDD_sA3: "\<not> elementaryCompDD sA3" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<not> elementaryCompDD sA3 [PROOF STEP] proof - [PROOF STATE] proof (state) goal (1 subgoal): 1. \<not> elementaryCompDD sA3 [PROOF STEP] have "outSetCorelated data6 \<inter> outSetCorelated da...
{"llama_tokens": 406, "file": "ComponentDependencies_DataDependenciesCaseStudy", "length": 6}
(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2012 *) (* \VV/ **************************************************************) (* // * Th...
{"author": "clarus", "repo": "coq-hoq", "sha": "7943953569f1b32169c4da625cebb018030226dd", "save_path": "github-repos/coq/clarus-coq-hoq", "path": "github-repos/coq/clarus-coq-hoq/coq-hoq-7943953569f1b32169c4da625cebb018030226dd/Init/Datatypes.v"}
### A Pluto.jl notebook ### # v0.18.0 using Markdown using InteractiveUtils # ╔═╡ 22a37ff4-3ae0-4338-86a2-3310b7773c1d begin import Pkg # activate the shared project environment| Pkg.activate(Base.current_project()) using Omega using Distributions using UnicodePlots using Random: MersenneTwister en...
{"hexsha": "72e6002a0d33b79823d0e09a693ebec86426f938", "size": 3493, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "OmegaExamples/src/bayesianlinearregression.jl", "max_stars_repo_name": "zenna/expect", "max_stars_repo_head_hexsha": "48bd661df410777eeb8940876a5cc8817eed2ac5", "max_stars_repo_licenses": ["MIT"], ...
from __future__ import print_function, division from exceptions import Exception from astropy.table import Table from astropy.coordinates import SkyCoord from astropy.coordinates.name_resolve import NameResolveError from astropy import units as u from astropy import utils class CoordinateMismatchError(Exception): ...
{"hexsha": "b0ef7c37f7ebe346044c3083d60c0ba45a468350", "size": 2441, "ext": "py", "lang": "Python", "max_stars_repo_path": "test_valid_object_file.py", "max_stars_repo_name": "mwcraig/feder-object-list", "max_stars_repo_head_hexsha": "34ff11c2be3f22a1d8890ec7c4983f1fd766d358", "max_stars_repo_licenses": ["BSD-2-Clause"...
import manim as M import pandas as pd import numpy as np class Plot(M.MovingCameraScene): def __init__(self): M.config.frame_width = 16 # Path of the files signal_path = "data/signal.csv" features_path = "data/features.csv" # Loading all the required data ...
{"hexsha": "34dbcd45c944d3bcfe3f06113a23f633266ad9a7", "size": 19655, "ext": "py", "lang": "Python", "max_stars_repo_path": "plot.py", "max_stars_repo_name": "hbarua05/ECG-With-Scatter-Graph", "max_stars_repo_head_hexsha": "49238525b14fe3a76e5afc6fdd5d0d224fd4e725", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from sklearn.utils import shuffle from lenet5 import Lenet class TrafficSignClassifier: def __init__(self, X_train, y_train, X_valid, y_valid): self.EPOCHS = 20 self.BATCH_SIZE = 128 self.learning_rate = 0.001 ...
{"hexsha": "85296779fd1291d2cca25f3c9235aaa433577ecd", "size": 6072, "ext": "py", "lang": "Python", "max_stars_repo_path": "traffic_sign_classifier.py", "max_stars_repo_name": "dlitvak/sdcnd-term1-proj2-sign-classifier", "max_stars_repo_head_hexsha": "405e8ddf930999798cc875deb830bb284430ca38", "max_stars_repo_licenses"...
import os import unittest import numpy as np import deformetrica as dfca from . import unit_tests_data_dir class SurfaceMeshTests(unittest.TestCase): """ Methods with names starting by "test" will be run """ def setUp(self): # first 3 points of the hippocampus.vtk file self.points = ...
{"hexsha": "fc0715057d4b7a84c376a71d5ae05d27d651fd97", "size": 2893, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/unit_tests/test_surface_mesh.py", "max_stars_repo_name": "coolteemf/coolteemf-deformetrica", "max_stars_repo_head_hexsha": "f965d6ecc0d04f243e487468a9dafe9fe864eed2", "max_stars_repo_license...
import numpy as np import matplotlib from matplotlib import pyplot as plt from matplotlib.figure import figaspect from matplotlib.colors import LogNorm from ensembler.samplers import stochastic, newtonian, optimizers from ensembler.potentials.OneD import metadynamicsPotential from ensembler.util.ensemblerTypes impo...
{"hexsha": "922577f91023d4bb1fb44c36f6c519a66400f34f", "size": 16783, "ext": "py", "lang": "Python", "max_stars_repo_path": "ensembler/visualisation/plotSimulations.py", "max_stars_repo_name": "philthiel/Ensembler", "max_stars_repo_head_hexsha": "943efac3c673eb40165927e81336386788e3a19f", "max_stars_repo_licenses": ["M...
import os import sys import pandas as pd import numpy as np import logging import time DATA_PATH = os.getenv('DATA_PATH') if DATA_PATH is None: raise ValueError("DATA_PATH needs to be set") def consumption_emissions(F, P, ID): ''' Create linear system to calculate consumption emissions - Create impor...
{"hexsha": "e97a5913984a4a7552124fd399a0f8b1bf8a18ae", "size": 7489, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/SEED.py", "max_stars_repo_name": "jdechalendar/tracking_emissions", "max_stars_repo_head_hexsha": "6a9d0ddf49394b80df6b0d272f4b764261e10733", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import pyclowder import re import logging import tempfile import os import subprocess from pyclowder.extractors import Extractor import pyclowder.files from renishawWiRE import WDFReader import matplotlib.pyplot as plt import numpy as np def peak_in_range(spectra, wn, range, method="max", **params): """Find the ...
{"hexsha": "60bd900ce7e067bda287cbfe697227e9880ba30c", "size": 6732, "ext": "py", "lang": "Python", "max_stars_repo_path": "raman_wdf.py", "max_stars_repo_name": "UQ-RCC/wdf-extractor", "max_stars_repo_head_hexsha": "e243129687faa26f81c2fee552fbf1d70fef8c1d", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count"...
import time import os # vendors import MalmoPython import cv2 import numpy as np from BaseAgent import BaseAgent class FaceAgent(BaseAgent): imgCounter = 0 imgDir = 'imgs' def __init__(self, config): BaseAgent.__init__(self, config) def setupAgentHost(self): self.agent_host = MalmoPyt...
{"hexsha": "d3069aaf1451f219f4e5024c0521f81c59722c53", "size": 2345, "ext": "py", "lang": "Python", "max_stars_repo_path": "agents/FaceAgent.py", "max_stars_repo_name": "SirJakesalot/MinecraftObjectRecognition", "max_stars_repo_head_hexsha": "7b70c9d8cc3bfc729baa072d94b8fc861dc9e579", "max_stars_repo_licenses": ["MIT"]...
from numpy import loadtxt from xgboost import XGBClassifier from catboost import CatBoostClassifier from matplotlib import pyplot as plt import pandas as pd import numpy as np from sklearn.metrics import roc_auc_score, f1_score from sklearn import metrics from xgboost import plot_importance import smote_varia...
{"hexsha": "6662cbdd12746589ec851a4ca599273ec8b9bc0f", "size": 8425, "ext": "py", "lang": "Python", "max_stars_repo_path": "cross_validation.py", "max_stars_repo_name": "dddtqshmpmz/PDX", "max_stars_repo_head_hexsha": "60c52888419462b03d495fb3034372ec9a394f2b", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_coun...
# -*- coding: utf-8 -*- # @Date : 2020/9/15 # @Author : mingming.xu # @Email : xv44586@gmail.com # @File : classification_ifytek_with_similarity.py """ 利用label description 信息,来增加一个similarity 任务。 具体:对每个样本后面,新增一条由label description 为text, label id为target的新样本,希望每个样本除了学习对应的target外, 样本与 对应label description 样本的simila...
{"hexsha": "ed2a64700f965b0e0843a848c93accf0dc7febfc", "size": 6343, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/classification_ifytek_with_similarity.py", "max_stars_repo_name": "xv44586/toolkit4nlp", "max_stars_repo_head_hexsha": "0ca8c45efe4ad4c6dc20b47016a13326aadcd0bd", "max_stars_repo_licenses...
from abc import ABC, abstractmethod import numbers from typing import NamedTuple import numpy as np class BaseSparseRegulariser(ABC): """Base class for sparsity-based regularisers. """ def __init__(self, reg): """ Initialise regulariser. """ self.reg = reg @abstractme...
{"hexsha": "57f75c9b1e2de9089587be65737d55df0a5f607a", "size": 5177, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/sparselearn/regularisers.py", "max_stars_repo_name": "yngvem/sparselearn", "max_stars_repo_head_hexsha": "c712d945a825b7b122cadc6721ba97fc3f72746c", "max_stars_repo_licenses": ["MIT"], "max_st...
import torch import os import shutil import matplotlib.pyplot as plt import numpy as np from torch.utils.tensorboard import SummaryWriter from torch.utils.data import DataLoader from LYTNet import LYTNet from loss import reg_loss, cls_loss from metric import Cls_metric, Reg_metric from helpers import display_image, get...
{"hexsha": "05db9e9f5de7939bd21f686c2b2c4057e8750ef3", "size": 9766, "ext": "py", "lang": "Python", "max_stars_repo_path": "Model/test.py", "max_stars_repo_name": "shinebobo/ImVisible", "max_stars_repo_head_hexsha": "ac557ea21137d02ea1e53d0b1bcc9b337ca351c7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "m...
module Utils export mycoolfunction function mycoolfunction() println("this is my cool function") end function mysecretfunction() println("this is my secret function") end end
{"hexsha": "cf0064a30e7a0d3dbe640f088bcbf29171c9d941", "size": 205, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "Julia/Import/Utils.jl", "max_stars_repo_name": "looyclark/code_sandbox", "max_stars_repo_head_hexsha": "e7eaed520a3a0e717534a1f8e2f7cf7c371295b1", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
/*! * @file log.hpp * @brief * @details * @author Thomas Geymayer <tomgey@gmail.com> * @date Date of Creation: 02.03.2012 */ #ifndef _LOG_HPP_ #define _LOG_HPP_ #include <boost/current_function.hpp> #include <iostream> #include <sstream> #define LOG_MSG(strm, type, msg)\ strm << "[" << type << "] '" << msg <...
{"hexsha": "1eb28b29f2df2c3f01d7ae5497b34cba09e2962b", "size": 806, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/log.hpp", "max_stars_repo_name": "tomgey/hidden-content", "max_stars_repo_head_hexsha": "9a7a1d8af37bcc039c1f0674a98f4d3e613cb322", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
[STATEMENT] lemma fk_alg_correct': defines "M \<equiv> fold (\<lambda>a state. state \<bind> fk_update a) as (fk_init k \<delta> \<epsilon> n) \<bind> fk_result" shows "\<P>(\<omega> in measure_pmf M. \<bar>\<omega> - F k as\<bar> \<le> \<delta> * F k as) \<ge> 1 - of_rat \<epsilon>" [PROOF STATE] proof (prove) goa...
{"llama_tokens": 29802, "file": "Frequency_Moments_Frequency_Moment_k", "length": 176}
# -*- coding: utf-8 -*- """ Created on Thu Dec 8 17:54:25 2016 @author: amandine """ #%reset -f import pandas as pd from matplotlib import pyplot as plt import glob from datetime import date import numpy as np import matplotlib.dates as mdates YEARS = np.arange(1991,2019) # TO CHANGE!!! MHWPeriod = [1991,2019] ...
{"hexsha": "b8f3977426d02cc20b208913cd12ab0187a25068", "size": 19320, "ext": "py", "lang": "Python", "max_stars_repo_path": "observation_data/analysis_observation_data/amandine_get_BOMtemp.py", "max_stars_repo_name": "natachabourg/BluebottlesNatacha", "max_stars_repo_head_hexsha": "b5f3cf102cc2180eda339088ce7275afc55d0...
import numpy as np import tensorflow as tf from game import utils import pygame import sys # TODO(v2): upgrade with tensorflow # TODO(v3): upgrade with genetic algorithm(neuro evolution) if __name__ == '__main__': game = utils.GameState() game.Start() while True: game.Update() for evt in pygame.event...
{"hexsha": "7dedd4d37cb0cb4890e559f128652d9c5a5527a9", "size": 403, "ext": "py", "lang": "Python", "max_stars_repo_path": "main.py", "max_stars_repo_name": "sugia/flappybird", "max_stars_repo_head_hexsha": "b1cb43c1a0cae81b8b99b32c30160ee4b69b8611", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 1, "max_...
#!/usr/bin/env python import rospy import argparse import time from pathlib import Path from std_msgs.msg import Int16 import cv2 import torch import numpy as np from torch._C import Size import torch.backends.cudnn as cudnn from numpy import random from PIL import Image from sensor_msgs.msg import Image as TactileImag...
{"hexsha": "71f23c0a3bf178858a1da8595d99ec0e19425512", "size": 4491, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/timed_yolov5/src/detect.py", "max_stars_repo_name": "robertokcanale/ros-yolov5", "max_stars_repo_head_hexsha": "fb39975857c7020e198c15943b1259899743ea18", "max_stars_repo_licenses": ["MIT"], "...
#include <cpprest/filestream.h> #include <boost/program_options.hpp> #include <cpprest/http_listener.h> #include <cpprest/json.h> #include <cpprest/uri.h> #include <cpprest/ws_client.h> #include <cpprest/containerstream.h> #include <cpprest/interopstream.h> #include <cpprest/rawptrstream.h> #include <cpprest/producerco...
{"hexsha": "159419105e1772fdf5db970ac99ca71a85caba04", "size": 5521, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "routing/cpprestsdk/src/routing.cpp", "max_stars_repo_name": "bebora/LeafRoute", "max_stars_repo_head_hexsha": "c80ed77789c73f0173c986c5482de4f2503f7cc1", "max_stars_repo_licenses": ["BSD-2-Clause"],...
/*************************************************************************** Copyright 2015 Ufora Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licen...
{"hexsha": "f0d0486c6caa1c1e4bb465243fd5d77101466f02", "size": 3714, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "ufora/BackendGateway/ComputedGraph/Graph.py.cpp", "max_stars_repo_name": "ufora/ufora", "max_stars_repo_head_hexsha": "04db96ab049b8499d6d6526445f4f9857f1b6c7e", "max_stars_repo_licenses": ["Apache-...
from serialplot import SerialPlotUnpack import numpy as np import matplotlib.pyplot as plt import logging logging.basicConfig(level = logging.DEBUG) if __name__ == '__main__': data = SerialPlotUnpack('spdctltuning.csv') dt = 1.0e-3 ifbk = data[:,0] * 1.0e-3 spd = data[:,3] * 0.1 * np.pi / 180. ss_spd = np...
{"hexsha": "405374245b3f5055d61f4bbd4e9935595fc9ee69", "size": 833, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/calcspdgains.py", "max_stars_repo_name": "Pickman22/m-drive", "max_stars_repo_head_hexsha": "26ff684304d192e1d46901a9e649c82ab1cf9bad", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
# Ref: # https://en.wikipedia.org/wiki/Inside%E2%80%93outside%E2%80%93beginning_(tagging) # https://chameleonmetadata.com/Education/NLP-3/ref_nlp_encoding_schemes_list.php abstract type tag_scheme end struct BIO1 <: tag_scheme end # BIO struct BIO2 <: tag_scheme end struct BIOES <: tag_scheme end const available_sch...
{"hexsha": "983368ef8e4b1b27bad1f5abf1ccf3a8433c0480", "size": 4034, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/tagging_schemes.jl", "max_stars_repo_name": "ericphanson/TextAnalysis.jl", "max_stars_repo_head_hexsha": "f3ae81936666377afa8c76118b89caaa5329e65c", "max_stars_repo_licenses": ["MIT"], "max_sta...
import numpy as np import pybullet_envs.deep_mimic.learning.agent_builder as AgentBuilder import pybullet_envs.deep_mimic.learning.tf_util as TFUtil from pybullet_envs.deep_mimic.learning.rl_agent import RLAgent from pybullet_utils.logger import Logger import pybullet_data class RLWorld(object): def __init__(self,...
{"hexsha": "4842923e5c4fe5d4d9cf8b0470167d65aa8fed14", "size": 4754, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/pybullet/gym/pybullet_envs/deep_mimic/learning/rl_world.py", "max_stars_repo_name": "thscowns/bullet3", "max_stars_repo_head_hexsha": "b698224cadf726f4d50ffc52b297aa33e4226719", "max_star...
C C $Id: gprec.f,v 1.6 2008-07-27 00:20:58 haley Exp $ C C Copyright (C) 2000 C University Corporation for Atmospheric Research C All Rights Reserved C C The use of this Software is governed by a License Agreemen...
{"hexsha": "a86d1163c44b855ad140ff5e2dc928255c45d81e", "size": 7197, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ncarg2d/src/libncarg_gks/awi/gprec.f", "max_stars_repo_name": "tenomoto/ncl", "max_stars_repo_head_hexsha": "a87114a689a1566e9aa03d85bcf6dc7325b47633", "max_stars_repo_licenses": ["Apache-2.0"], "...
# -*- encoding='utf-8' import pandas as pd import numpy as np from flask import request, jsonify, g from flask import Blueprint from ...utils.esquery import EsqueryHelper from ...utils.query import QueryHelper from ...utils.auth import requires_auth, json_validate, requires_rule from ...utils.helper import uuid_gen fro...
{"hexsha": "73aeb0f7e35c903562972cdd7d83cc715c9ad364", "size": 1675, "ext": "py", "lang": "Python", "max_stars_repo_path": "application/main/clients/city.py", "max_stars_repo_name": "ace-gabriel/chrome-extension", "max_stars_repo_head_hexsha": "be0b7d7278f56f8218be7f734b3fb1e05a4f3eb9", "max_stars_repo_licenses": ["MIT...
/** * @file transpsemilagr_main.cc * @brief NPDE homework TranspSemiLagr Main file * @author Philippe Peter * @date November 2020 * @copyright Developed at SAM, ETH Zurich */ #include <lf/io/io.h> #include <lf/mesh/hybrid2d/hybrid2d.h> #include <lf/mesh/utils/utils.h> #include <lf/uscalfe/uscalfe.h> #include <E...
{"hexsha": "26dcbe86090eecf9959f48ef3ae083969b4fb16b", "size": 2567, "ext": "cc", "lang": "C++", "max_stars_repo_path": "homeworks/TranspSemiLagr/templates/transpsemilagr_main.cc", "max_stars_repo_name": "kryo4096/NPDECODES", "max_stars_repo_head_hexsha": "3498c0e4abec6ba21447849ba2ddc9286c068ea1", "max_stars_repo_lice...
# Copyright (c) 2011, Roger Lew [see LICENSE.txt] # This software is funded in part by NIH Grant P20 RR016454. # Python 2 to 3 workarounds import sys if sys.version_info[0] == 2: _strobj = str _xrange = xrange elif sys.version_info[0] == 3: _strobj = str _xrange = range import collections import csv...
{"hexsha": "ed95423a720dfcbde606416734c3a336b66da31d", "size": 97337, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyvttbl/base.py", "max_stars_repo_name": "yk/pyvttbl", "max_stars_repo_head_hexsha": "af66c1aba410ba5386249cd5b95f2ae0ed01d870", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count": nu...
import numpy as np from nhps.distance.naive.decoder import Decoder from nhps.distance.utils import DistanceMatrix class MapDecoder(Decoder): def __init__(self, del_cost, n_types, trans_cost=1.0): """ :param np.ndarray del_cost: A series of floats. :param float trans_cost: :param ...
{"hexsha": "1609bfcb35dfb9ea11f318c8c55b03670085fb83", "size": 1025, "ext": "py", "lang": "Python", "max_stars_repo_path": "nhps/distance/naive/map_decoder.py", "max_stars_repo_name": "Anirudh-Murali/neural-hawkes-particle-smoothing", "max_stars_repo_head_hexsha": "96b258838bdab33b781008daeedfa61dec0d553c", "max_stars_...
// Copyright Louis Dionne 2015 // Distributed under the Boost Software License, Version 1.0. #include <boost/hana.hpp> #include <cstddef> using namespace boost::hana; using namespace boost::hana::literals; // sample(indexed_sort-now-impl) auto indexed_sort = [](auto list, auto predicate) { auto indices = to<Tuple...
{"hexsha": "940bcc9c4207b7b5ae1b8e350f237e3c5803b781", "size": 1321, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "code/indexed_sort-now.cpp", "max_stars_repo_name": "ldionne/cppnow-2015-hana", "max_stars_repo_head_hexsha": "2f9e86996b61b11e19486741f59ef217ea9125a7", "max_stars_repo_licenses": ["MIT"], "max_star...
import numpy import nltk from nltk.stem.lancaster import LancasterStemmer import tflearn import tensorflow import random import json import pickle from utility import CommunicationInterface as ci import Amanda_PROCESSOR as ap import pyrebase from utility import FirebaseModule as fm stemmer = LancasterStemmer() with ...
{"hexsha": "57e65d7243783458f973a3bbebfe8eee392392bc", "size": 3915, "ext": "py", "lang": "Python", "max_stars_repo_path": "DesktopModule/Amanda_Neural_Net.py", "max_stars_repo_name": "adityaasthana1/Amanda", "max_stars_repo_head_hexsha": "103ec0e3110583044f0245dfdd96620f82686d87", "max_stars_repo_licenses": ["MIT"], "...
import os import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.optim import lr_scheduler from torch.autograd import Variable import torchvision from torchvision import datasets, transforms from torchsummary import summary import numpy as np from ba...
{"hexsha": "b30686e5b5f3bea1eb72710ddffe7ed6d5b13ac8", "size": 10454, "ext": "py", "lang": "Python", "max_stars_repo_path": "train_x3d_charades_loc.py", "max_stars_repo_name": "KiyoshiKAWASAKI/X3D-Multigrid", "max_stars_repo_head_hexsha": "3685e155268eb144fa51e1c6837d37555dc6347d", "max_stars_repo_licenses": ["MIT"], "...
\section{Oriented PCA} \begin{align*} \mb{u} = \mb{A x} \end{align*} with $\mb{A}^{-1}$ exists and %and $\mb{A}$ is a whitening matrix. \begin{align*} \mb{y} = \mb{w\TT x} \end{align*} is a dimensionality reducing tranformation. The Rayleigh quotient in the $\mb{x}$-space is given by \begin{align} R_{ab} = \frac{...
{"hexsha": "5e1f3f4b5d4fb8d0e650345cfc4cbed7e59ede25", "size": 4867, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "script/lecture13/lecture13.tex", "max_stars_repo_name": "mackelab/machine-learning-I", "max_stars_repo_head_hexsha": "fedd9ea0b9b257af5cd59036a3b49876aed5c77c", "max_stars_repo_licenses": ["BSD-2-Cl...
[STATEMENT] lemma inv\<^sub>1_stepB: assumes "inv\<^sub>1 P\<^sub>1 P\<^sub>2 B\<^sub>1 B\<^sub>2 V" "u \<in> V" "W B\<^sub>2 + w u \<le> c" shows "inv\<^sub>1 (P\<^sub>1 \<union> wrap B\<^sub>1) P\<^sub>2 {} (B\<^sub>2 \<union> {u}) (V - {u})" [PROOF STATE] proof (prove) goal (1 subgoal): 1. inv\<^sub>1 (P\<^sub>...
{"llama_tokens": 15599, "file": "Approximation_Algorithms_Approx_BP_Hoare", "length": 109}
/* ScaFES * Copyright (c) 2011-2015, ZIH, TU Dresden, Federal Republic of Germany. * For details, see the files COPYING and LICENSE in the base directory * of the package. */ /** * @file ScaFES_Grid.hpp * @brief Contains the class template Grid. */ #ifndef SCAFES_GRID_HPP_ #define SCAFES_GRID_HPP_ #include ...
{"hexsha": "7e5a18f46883b774602c845cb7b711df0457a7d7", "size": 42777, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/ScaFES_Grid.hpp", "max_stars_repo_name": "nih23/MRIDrivenHeatSimulation", "max_stars_repo_head_hexsha": "de6d16853df1faf44c700d1fc06584351bf6c816", "max_stars_repo_licenses": ["BSL-1.0", "BSD-3...
from typing import Sequence import numpy as np import pandas as pd import torch from torch import nn import torch.nn.functional as F import torchvision.models as models class PretrainedModel(nn.Module): def __init__(self, output_size: int, model_name: str = "resnet" ...
{"hexsha": "3ef63c95eafe99ff35ecdc24ca451ceaa562d86e", "size": 3793, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/models/models.py", "max_stars_repo_name": "TihonkovSergey/wood_coefficient", "max_stars_repo_head_hexsha": "853a2e5babda662f71697045875a2e24e17f9df6", "max_stars_repo_licenses": ["Apache-2.0"]...
"""Construct minibatches for Detectron networks.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import cv2 import os import logging import numpy as np import numpy.random as npr from detectron.core.config import ...
{"hexsha": "4725f38520000a832cfe7a24e84b3e5ff32ada89", "size": 6268, "ext": "py", "lang": "Python", "max_stars_repo_path": "detectron/roi_data/minibatch_wsl.py", "max_stars_repo_name": "zhiweichen95/DRNet", "max_stars_repo_head_hexsha": "996fe088a3615028359bd8cceb4037719f3dcd74", "max_stars_repo_licenses": ["Apache-2.0...
\documentclass{article} \usepackage[a4paper, total={7in, 10.5in}]{geometry} \usepackage[dvipsnames]{xcolor} \usepackage[compact]{titlesec} \usepackage{setspace} \usepackage{enumitem} \usepackage{hyperref} %% Custom font %\def\rmdefault{bch} \renewcommand{\familydefault}{\sfdefault} \usepackage{helvet} %% Custom colo...
{"hexsha": "a26a02af08084854e357039fc060f4b39326e292", "size": 6374, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "2020/Timur_Kuzhagaliyev_Resume.tex", "max_stars_repo_name": "TimboKZ/resume", "max_stars_repo_head_hexsha": "2c0524094403e84393dd8efb8ca7185ec8b4efb6", "max_stars_repo_licenses": ["MIT"], "max_stars...
#!/bin/python import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import numpy as np import Ngl,Nio from diag_functions import * def get_PI_year(case, year): data_dir="~/PROJ_WRF/%s/%s/" post_file="wrfpost_%s_%s_%s.nc" tstorms_file="wrf_tstorms_%s_%s.nc" temp_pfile=Nio.open_file(da...
{"hexsha": "b414e7e0bbfe363bbfa09a5ebd9184a4f2ae310f", "size": 14994, "ext": "py", "lang": "Python", "max_stars_repo_path": "diagnostics/plot_functions.py", "max_stars_repo_name": "bnb32/wrf_pipeline_tools", "max_stars_repo_head_hexsha": "ddc4b2a84c601780a9cc8fe21b34e9715c4372be", "max_stars_repo_licenses": ["MIT"], "m...
function out_backprop() global config mem; current_layer = config.misc.current_layer; mem.deltas{current_layer} = config.DERI_OUT_ACT(config.DERI_COST_FUN(mem.output, mem.GT_output)); config.EXPAND_DELTA_OUT(); config.misc.current_layer = config.misc.current_layer - 1; end
{"author": "jimmy-ren", "repo": "vcnn_double-bladed", "sha": "a4de90e845875f6e30632f2e879d3afb81c0ebc1", "save_path": "github-repos/MATLAB/jimmy-ren-vcnn_double-bladed", "path": "github-repos/MATLAB/jimmy-ren-vcnn_double-bladed/vcnn_double-bladed-a4de90e845875f6e30632f2e879d3afb81c0ebc1/layers/out_backprop.m"}
import argparse import sys import os import shutil import time import math import h5py import torch import torch.nn as nn import torch.optim import torchvision.transforms as transforms import torch.nn.functional as F import torch.nn.parallel import torch.distributed as dist from torch.nn.parallel import DistributedDa...
{"hexsha": "23a017cfa7b31c956fa7a2cb53fd9e2b356cf89b", "size": 48386, "ext": "py", "lang": "Python", "max_stars_repo_path": "Translocations_Detector/main.py", "max_stars_repo_name": "dariodematties/NANOPORE_TRANSLOCATIOS", "max_stars_repo_head_hexsha": "dc06e0550bf1ef70e0a1a3facf4562b392287535", "max_stars_repo_license...
from typing import List, Callable import numpy as np from py_headless_daw.project.value_provider_consumer import ValueProvider from py_headless_daw.schema.dto.time_interval import TimeInterval from py_headless_daw.schema.events.event import Event from py_headless_daw.schema.processing_strategy import ProcessingStrate...
{"hexsha": "25a406df548076b7243589c00cb9b3bd114931f9", "size": 1269, "ext": "py", "lang": "Python", "max_stars_repo_path": "py_headless_daw/processing/event/value_provider_based_event_emitter.py", "max_stars_repo_name": "hq9000/py-headless-daw", "max_stars_repo_head_hexsha": "33e08727c25d3f00b2556adf5f25c9f7ff4d4304", ...
# coding=utf-8 # Copyright 2019 The Trax Authors. # # 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 a...
{"hexsha": "bcef89fe032444d83f9d88545f5308b1869d94a5", "size": 2086, "ext": "py", "lang": "Python", "max_stars_repo_path": "trax/rl/envs/online_tune.py", "max_stars_repo_name": "modyharshit23/trax", "max_stars_repo_head_hexsha": "2e6783a4674209b57482ec41e1c533a420aa6fe6", "max_stars_repo_licenses": ["Apache-2.0"], "max...
""" isinsertable(dict::AbstractDictionary) Return `true` if `dict` supports the insertable interface, or `false` otherwise. The primary functions `dict` needs to implement for the insertable interface are: * `insert!(dict, i, value)` - add a new `value` at index `i` (will error if index exists) * `delete!(dict...
{"hexsha": "710560bf345ae7d25192411fab6cdcd230092f66", "size": 13706, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/insertion.jl", "max_stars_repo_name": "nickrobinson251/Dictionaries.jl", "max_stars_repo_head_hexsha": "e4d8e0297f3942dc06f5f57d3313dea23c0f6ff4", "max_stars_repo_licenses": ["MIT"], "max_star...
using FFTW struct Not{T} idx::T end import Base: to_indices, uncolon, tail, _maybetail import LinearAlgebra: norm, dot, mul! @inline to_indices(A, inds, I::Tuple{Not, Vararg{Any}}) = (setdiff(uncolon(inds, (:, tail(I)...)), I[1].idx), to_indices(A, _maybetail(inds), tail(I))...) @testset "Grid Routines" begin ...
{"hexsha": "7f2db2c60489f0c63358a7be53f9cb37577eea21", "size": 28244, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/fields.jl", "max_stars_repo_name": "JuliaIBPM/CartesianGrids.jl", "max_stars_repo_head_hexsha": "8dd7806e2350aabb5539da9a04128f4ad7e94f96", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
import tensorflow as tf import model3 as M import numpy as np import data_reader import network import config import cv2 class Detector(M.Model): def initialize(self): out_channel = len(config.anchor_shape) * len(config.anchor_scale) * ( 5 + config.categories + config.seg_size) self.backbone = network.ResNet(...
{"hexsha": "fab8da0073b931a162484d0ad0d6e1fc62c38991", "size": 4530, "ext": "py", "lang": "Python", "max_stars_repo_path": "example/InstanceSegmentation/train.py", "max_stars_repo_name": "ddddwee1/SULT", "max_stars_repo_head_hexsha": "0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784", "max_stars_repo_licenses": ["WTFPL"], "max...
module LibGit2 if isfile(joinpath(dirname(dirname(@__FILE__)),"deps","deps.jl")) include("../deps/deps.jl") else error("LibGit2 not properly installed. Please run Pkg.build(\"LibGit2\")") end # libgit threads must be initialized before any library calls, # these functions are a no-op if libgit is built withou...
{"hexsha": "2731d67a986ae631b359e2bc4e8accf6c401ac22", "size": 1698, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/LibGit2.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/LibGit2.jl-76f85450-5226-5b5a-8eaa-529ad045b433", "max_stars_repo_head_hexsha": "5e0adc9e9b9b1bb1963169f7a8e59fb72b79a73f", "...
load("Figure3.RData") pdf("Figure3.pdf", width=6, height=6) plot(x=as.numeric(xi), y=as.numeric(yi), main=ti, type="n", xlim=c(-1,1), ylim=c(7,13), xlab = "Intensity Contrast", ylab="Intensity Average") text(x=as.numeric(xi), y=as.numeric(yi), as.character(vi), cex=0.4, col=pal[as.character(vi)]) text(x=c...
{"hexsha": "94e043c7d1adb6986f1714054a74fa06fe8a23f3", "size": 460, "ext": "r", "lang": "R", "max_stars_repo_path": "code/Figure3.r", "max_stars_repo_name": "simecek/High-Resolution-Mapping-of-Reference-Populations", "max_stars_repo_head_hexsha": "9084043fc91c6cdb68c34190d10730b7a1c1426b", "max_stars_repo_licenses": ["...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #测试Onet import numpy as np import os import cv2 import sys sys.path.append('../') from path_and_config import path from assist.assist_train.forward import P_Net,R_Net,O_Net from assist.assist_hard.mtcnndetect import MtcnnDetector from assist.assist_hard.singledetector im...
{"hexsha": "0693f79313cdf45da8637f8641f344406cb00d3e", "size": 4404, "ext": "py", "lang": "Python", "max_stars_repo_path": "projects/MTCNN/mtcnn_brief/val_test/camera_test.py", "max_stars_repo_name": "yunshangyue71/mycodes", "max_stars_repo_head_hexsha": "54b876004c32d38d9c0363fd292d745fee8dff3c", "max_stars_repo_licen...
%% $Id$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[english]{article} \usepackage[latin1]{inputenc} \usepackage{babel} \usepackage{verbatim} %% do we have the `hyperref package? \IfFileExist...
{"hexsha": "7c744ff4f7522332a07ee5734c34bcb3e95d9f12", "size": 8260, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/man/hpclink.tex", "max_stars_repo_name": "byzhang/hpctoolkit", "max_stars_repo_head_hexsha": "b454d5966a5da64b9928925ba08481ebd4a120f2", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_c...
fanngo2gaf <- function(in_file,out_gaf){ print("Reading the input file") #in_file="FANNGO_linux_x64/scores.txt" #out_gaf="FANNGO_linux_x64/gaf/fanngo-0.0.gaf" gaf_date = format(Sys.time(),"%m%d%Y") fanngo_data = fread(in_file) tmp = gsub("_P[0-9]+","",fanngo_data$gene_id) tmp = gsub("FG...
{"hexsha": "3321fe06e7f1c8fdf5d2bfd0201bc83588296a64", "size": 1741, "ext": "r", "lang": "R", "max_stars_repo_path": "maize_v3/current_annotations/code/fanngo2gaf.r", "max_stars_repo_name": "Dill-PICL/maize-GAMER", "max_stars_repo_head_hexsha": "cccb9133a75999594604ef78e389760760098282", "max_stars_repo_licenses": ["MI...
import itertools import numpy as np import os import random as rnd import sys import time from arcsv.bamparser_streaming import parse_bam, BamGroup from arcsv.breakpoint_merge import merge_breakpoints from arcsv.conditional_mappable_model import (model_from_mapstats, load_aggregate_model, ...
{"hexsha": "93d9a770298f6305203da29b9dcd3cab316cff0e", "size": 12106, "ext": "py", "lang": "Python", "max_stars_repo_path": "arcsv/call_sv.py", "max_stars_repo_name": "AhmedArslan/arcsv", "max_stars_repo_head_hexsha": "4590d3a63d31720ef250685cc5ca7d397fdf06a9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 11,...
from transformers.data.processors.utils import DataProcessor, InputExample, InputFeatures import pandas as pd import numpy as np class SpanProcessor(DataProcessor): def __init__(self, dtype='cad'): super(SpanProcessor, self).__init__() self.dtype = dtype if dtype == 'cad': self...
{"hexsha": "d6bcbc821cef3555cc961447f6bcbb2ab6ba2d2b", "size": 8354, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils.py", "max_stars_repo_name": "joshinh/investigation-cad", "max_stars_repo_head_hexsha": "bc3e999b125e8cf921854459cb994bb16458ec3e", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count...
/* Copyright (C) 2017 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
{"hexsha": "a68b336ff3ab8de04141f7a29d6149c5086abfb8", "size": 2774, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "ORETest/oret/basedatapath.hpp", "max_stars_repo_name": "mrslezak/Engine", "max_stars_repo_head_hexsha": "c46ff278a2c5f4162db91a7ab500a0bb8cef7657", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_...
// ysoftman // boost tokenizer 사용하기 #include <iostream> #include <vector> #include <string> #include <boost/tokenizer.hpp> using namespace std; int main() { cout << "boost tokenizer test" << endl; string str = "Yoon,Byoung_Hoon Boost"; cout << "str = " << str << endl; typedef boost::tokenizer<boost:...
{"hexsha": "9e749824e95d949b4c419d3cf769c273ade4d020", "size": 983, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "boost/tokenizer.cpp", "max_stars_repo_name": "ysoftman/test_code", "max_stars_repo_head_hexsha": "4c71cc7c6a17d73cc84298e3a44051d3ab9d40f8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3.0...
from __future__ import division, print_function import os, sys, subprocess from time import sleep # Get the git root directory root=repo_dir = subprocess.Popen(['git' ,'rev-parse' , '--show-toplevel'] , std...
{"hexsha": "81ea80b36edbf08aabac80f296c9b833e0a7077a", "size": 1398, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/Models/dtlz2.py", "max_stars_repo_name": "rahlk/MOOSE", "max_stars_repo_head_hexsha": "e45b64cf625bb90aa8c1c24ab1c8f52ab485a316", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "...
[STATEMENT] lemma sig_step_rsteps_eq_dist: "funas_rel \<R> \<subseteq> \<F> \<Longrightarrow> sig_step \<F> ((rstep \<R>)\<^sup>+) \<union> Id = (srstep \<F> \<R>)\<^sup>*" [PROOF STATE] proof (prove) goal (1 subgoal): 1. funas_rel \<R> \<subseteq> \<F> \<Longrightarrow> (sig_step \<F> ((rstep \<R>)\<^sup>+))\<^sup>...
{"llama_tokens": 188, "file": "Rewrite_Properties_Reduction_Rewriting_Rewriting", "length": 1}
""" Sebuah program untuk membuat animasi simulasi gerak parabola yang ketinggian dan sudut elevasinya ditentukan oleh input user. https://www.facebook.com/maswiry https://www.instagram.com/maswiry/ github.com/maswiry""" import math from math import sin, cos, radians import matplotlib.pyplot as plt import num...
{"hexsha": "c8621b9d35c19f47b564ce82586f656663ec365c", "size": 1343, "ext": "py", "lang": "Python", "max_stars_repo_path": "Code Animasi parabola github.py", "max_stars_repo_name": "maswiry/Animasi-Permodelan-Gerak-Parabola-Tanpa-Hambatan", "max_stars_repo_head_hexsha": "e307accd2b33a9b5f96fb2ecc41e4fc2dcc67954", "max_...
#include "leashing.h" #include "ros/ros.h" #include <boost/thread.hpp> #include <iostream> #include "executil.h" extern ros::NodeHandle * global_nh; extern ros::Publisher * global_confirm_pub; extern ros::Publisher * global_cmd_pub; extern std::map<std::string, boost::thread *> threadmap; extern int16_t global_...
{"hexsha": "a6b3f942d7a9848e0c8cd6567e457c131d16bdb5", "size": 14979, "ext": "cc", "lang": "C++", "max_stars_repo_path": "wasp_exec/src/executors/leashing.cc", "max_stars_repo_name": "tuloski/wasp_exec", "max_stars_repo_head_hexsha": "00ac1e3d00e974c380a9d498a346b50996bee2e7", "max_stars_repo_licenses": ["MIT"], "max_s...
import numpy as np from pylab import find from random import choice from param_and_functions import* #ACÁ DEFINO LOS DATOS CON LOS QUE TRABAJO #TAMBIÉN EN param_and_functions #filename y redimensionar ########################################################## costos = np.loadtxt('costos.dat') capacidades = np.loadtx...
{"hexsha": "c28511d7f1ade3e2a158f63ba43a58f302c5707c", "size": 3771, "ext": "py", "lang": "Python", "max_stars_repo_path": "Python-GRASP-Metaheuristics/Code/func_greedy.py", "max_stars_repo_name": "MarceloPaciulli/Python-GRASP-Metaheuristics", "max_stars_repo_head_hexsha": "e1cc4b8fe6f686ed3e0093f4172639b7c3a06a87", "m...
"""Load and fit from datafile.""" import numpy as np import sys from .fraunhoferpat import AiryPat from ..common.datafile_cmtools import CMData_IcArr, CMData_H_I_Ic_Rn import matplotlib.pyplot as plt #import pandas as pd from ..common.plothyst import plothyst class FitAiryPat: """Load and fit from datafile to Airy...
{"hexsha": "21f5d762d566348217ce29f25ee6e95578f09f3e", "size": 2797, "ext": "py", "lang": "Python", "max_stars_repo_path": "cryomem/analysis/fit_airypat_datafile.py", "max_stars_repo_name": "bebaek/cryomem", "max_stars_repo_head_hexsha": "088fba2568d10451adda51a068c15c8c2a73d9ce", "max_stars_repo_licenses": ["MIT"], "m...
from numpy import * from scipy import stats def find(l, elem): for row, i in enumerate(l): try: column = i.index(elem) except ValueError: continue return row, column return -1 def get_f(lex, gs_corpus): gs = squeeze(asarray(gs_corpus.sents)) gs_num_map...
{"hexsha": "5f1873e1bee18606fb336b77504ead7b95476d25", "size": 1187, "ext": "py", "lang": "Python", "max_stars_repo_path": "corpus_helper.py", "max_stars_repo_name": "mcfrank/dmww", "max_stars_repo_head_hexsha": "cdacac49c4574f6d1cd48c4c8a4914432c26d9fb", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma...
from scipy import optimize,arange import numpy as np import matplotlib.pyplot as plt #matplotlib inline #basic cournot vectorised #vectorize... check? #add second period... def price(x,b): #x is an array [x1, x2] return 1-x[0]-b*x[1] def cost(x,c): if x == 0: cost = 0 else: cost = c*x ret...
{"hexsha": "03965a5022f1a9817a177f64b8f9fbaf2d519ce3", "size": 1400, "ext": "py", "lang": "Python", "max_stars_repo_path": "cournot_v2.py", "max_stars_repo_name": "Lkruitwagen/Cournot", "max_stars_repo_head_hexsha": "4a6defc19e18774dc61f1e2c3a6bd0baff2dc00e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "m...
import argparse import os.path as osp import cv2 import numpy as np import open3d import cameramodels from cameramodels.align import align_depth_to_rgb current_dir = osp.dirname(osp.abspath(__file__)) rotation_matrix = np.array( [[1, 0, 0, 0], [0, -1, 0, 0], [0, 0, -1, 0], [0, 0, 0, 1]], dty...
{"hexsha": "e6230ee186ed7da970d5c10bdb114b532b3fc548", "size": 2085, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/rectify_image.py", "max_stars_repo_name": "iory/cameramodels", "max_stars_repo_head_hexsha": "ce1435b9d3a1079ce43a4908bcdb6956f99e7747", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
""" Defines the objective function (loss function) for the model. """ import time import torch import logging import itertools import math import torch.nn as nn import torch.nn.functional as F import numpy as np from torch.autograd import Variable from utils import * def build_targets(pred_boxes, target, anchor...
{"hexsha": "9bd8f310f3a3ffeedcad9a77a0ce57c41cbb02fe", "size": 11984, "ext": "py", "lang": "Python", "max_stars_repo_path": "region_loss.py", "max_stars_repo_name": "satyenrajpal/Complex-YOLO", "max_stars_repo_head_hexsha": "7feec43cc20e7f6a1538d0c16571abdb75199676", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
function exesuff=getexeext() % % exesuff=getexeext() % % get meshing external tool extension names for the current platform % % author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) % % output: % exesuff: file extension for iso2mesh tool binaries % % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf....
{"author": "goodshawn12", "repo": "REST", "sha": "e34ce521fcb36e7813357a9720072dd111edf797", "save_path": "github-repos/MATLAB/goodshawn12-REST", "path": "github-repos/MATLAB/goodshawn12-REST/REST-e34ce521fcb36e7813357a9720072dd111edf797/dependencies/iso2mesh/getexeext.m"}
Require Import ArithRing. Require Import Compare_dec. Require Import Wf_nat. Require Import Arith. Require Import Lia. Theorem minus_minus : forall a b c : nat, a - b - c = a - (b + c). intros a; elim a; auto. intros n' Hrec b; case b; auto. Qed. Remark expand_mult2 : forall x : nat, 2 * x = x + x. intros x; ring. ...
{"author": "Davron2004", "repo": "provers-in-docker", "sha": "9fb9a2c02f63e828b1ebab6f8373936e03ec96e7", "save_path": "github-repos/coq/Davron2004-provers-in-docker", "path": "github-repos/coq/Davron2004-provers-in-docker/provers-in-docker-9fb9a2c02f63e828b1ebab6f8373936e03ec96e7/proofs_coq/sqrt2.v"}
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the udkm1Dsimpy module. # # udkm1Dsimpy 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; either version 3 of the License, or # (at your opti...
{"hexsha": "b00a40995b98c6ba31d86b7d4d4596b49a4b4591", "size": 6097, "ext": "py", "lang": "Python", "max_stars_repo_path": "udkm1Dsim/xray.py", "max_stars_repo_name": "AleksUDKM/udkm1Dsim-1", "max_stars_repo_head_hexsha": "ea6806a005f14cc34cea813cbfb3e3beaf01719e", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
import numpy as np import matplotlib.pyplot as plt def get_data(PATH): with open(PATH + '\data_result.txt')as f: content = f.readlines() content = [x.strip() for x in content] P_success = [] P_error= [] II = [] i = 0 for row in content: P_e, P_s =...
{"hexsha": "25129bd413fa98a479b33234b694f22f523136da", "size": 6440, "ext": "py", "lang": "Python", "max_stars_repo_path": "Plot_compare_old_new.py", "max_stars_repo_name": "oddspacefalcon/Toric_MCTS_decoder", "max_stars_repo_head_hexsha": "d03582a3ead002409acae1efe01767dfce6cc381", "max_stars_repo_licenses": ["MIT"], ...
[STATEMENT] lemma ws_interface_induct [consumes 2, case_names Step]: assumes is_if_I: "is_iface G I" and ws: "ws_prog G" and hyp_sub: "\<And>I i. \<lbrakk>iface G I = Some i; \<forall> J \<in> set (isuperIfs i). (I,J)\<in>subint1 ...
{"llama_tokens": 2157, "file": null, "length": 23}
subroutine pvswitch1(q1,F0,F1,F1a) C----from F0,F1 calculate F1a which has all denominators C----shifted by q1 implicit none include 'TRydef.f' integer n1,ep double complex F0(-2:0),F1(y1max,-2:0),F1a(y1max,-2:0) double precision q1(4) do ep=-2,0 do n1=1,4 F1a(n1,ep...
{"hexsha": "9f2eb5f80e21caf56768cb088f71ca94740ee16a", "size": 393, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "MCFM-JHUGen/TensorReduction/pv/pvswitch1.f", "max_stars_repo_name": "tmartini/JHUGen", "max_stars_repo_head_hexsha": "80da31668d7b7eb5b02bb4cac435562c45075d24", "max_stars_repo_licenses": ["Apache-...
import numpy as np import pandas as pd import seaborn as sns from matplotlib import pyplot as plt from itertools import product import math import re from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score as accuracy import graphvi...
{"hexsha": "cb35c6f4b4505b5a3a5d333770e62af0253bdb8f", "size": 32410, "ext": "py", "lang": "Python", "max_stars_repo_path": "Breakingtheloop ML Repository/breaking_the_loop_main.py", "max_stars_repo_name": "sghoseWI/Machine-Learning", "max_stars_repo_head_hexsha": "c1cbaef5b0dd0c875429dc6997a9316921e76af8", "max_stars_...
# coding: utf-8 import numpy as np import chainer import chainer.functions as F import testtools import numpy as np class A(chainer.Chain): def forward(self): y1 = np.zeros((3, 4), dtype=np.float32) return y1 # ====================================== def main(): testtools.generate_testcase(...
{"hexsha": "f7ab15f5197fe20c9ad84b9e7135b8fd07066feb", "size": 369, "ext": "py", "lang": "Python", "max_stars_repo_path": "elichika/tests/node/ndarray/NpZeros.py", "max_stars_repo_name": "disktnk/chainer-compiler", "max_stars_repo_head_hexsha": "5cfd027b40ea6e4abf73eb42be70b4fba74d1cde", "max_stars_repo_licenses": ["MI...
""" read_plate(X, Y, Z; XCVar, ZCVar, XCType, ZCType, isXDos, XconditionVar, XconcentrationVar, isYstd, spatDegree, rowVar, colVar) Convert the `X`, `Y`, and `Z` arrays corresponding to a plate to a RawData object. Optionally: - Specify contrasts for `X` and/or `Z...
{"hexsha": "71f11092c8830a7d7dceef09817ab268f1f761bb", "size": 9509, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/read_plate.jl", "max_stars_repo_name": "janewliang/GeneticScreen.jl", "max_stars_repo_head_hexsha": "dd626969c5f31f63c193feadfe2049b35f5cd2e2", "max_stars_repo_licenses": ["MIT"], "max_stars_co...