text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
MODULE module_data_soa_vbs IMPLICIT NONE INTEGER NP PARAMETER (NP = 8) INTEGER MAXITS PARAMETER (MAXITS = 100) REAL TOLF PARAMETER (TOLF = 1.E-09) REAL TOLMIN PARAMETER (TOLMIN = 1.E-12) REAL TOLX PARAMETER (TOLX = 1.E-10) REAL STPMX ...
{"hexsha": "a38b905e21b0f65b61debaf132ec9688715a8107", "size": 14325, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "WRF-CHEM/chem/module_data_soa_vbs.f90", "max_stars_repo_name": "ksetigui/paper_gmd-2020-50", "max_stars_repo_head_hexsha": "1c4bf2b0946bc31cfb443686c8aa1e33755d5fd2", "max_stars_repo_licenses":...
# -*- coding: utf-8 -*- # Copyright (C) 2013 Lindley Graham """ This module contains a set of methods and a class for interacting with NCSU Subdomain Modeling Python code and associated files. The focus of this module is the :class:`fulldomain`. """ import subprocess, glob, sys, os import numpy as np import scipy.io ...
{"hexsha": "0e9b61fc00a4a433f84ebcb5860d5e4530983ea1", "size": 9243, "ext": "py", "lang": "Python", "max_stars_repo_path": "polyadcirc/run_framework/fulldomain.py", "max_stars_repo_name": "tmiesse/PolyADCIRC", "max_stars_repo_head_hexsha": "a4a31dda2c2dac4cd696c0f3827dbbcea7feab33", "max_stars_repo_licenses": ["BSD-3-C...
using Gadfly using ProgressMeter # Creates an array of length N where each entry is an independent realization # of a complex Gaussian with Ez = Ezz = 0 and Ezz^* = 1. function zGaussian(N=1) x, y = rand(N), rand(N) sqrt(-log(x)) .* exp(2im * pi * y) end function getRHS(nwells, T, KdJ) # Diagonal entries (0...
{"hexsha": "58f6832d4d4bdf9a642b9fc463aabcf6b472a5f4", "size": 2159, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "julia/semiclassics.jl", "max_stars_repo_name": "dseuss/stuff", "max_stars_repo_head_hexsha": "2d6d54863ad01f3b465b4464a6c1023b2f8f4f5f", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count":...
// Copyright 2018 The Simons Foundation, Inc. - 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 requi...
{"hexsha": "0b890a8e805afe140a9e2ff342ed2cd7c8e63c1b", "size": 2228, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "Sources/Operator/graph_operator.hpp", "max_stars_repo_name": "vigsterkr/netket", "max_stars_repo_head_hexsha": "1e187ae2b9d2aa3f2e53b09fe743e50763d04c9a", "max_stars_repo_licenses": ["Apache-2.0"], ...
import numpy import pylab import math from orbit import * # circular orbit o = Orbit(1.0, 0.0) # eccentricity = 0 # orbital period P = o.kepler_period() tstep = [] err_Euler = [] err_EC = [] err_RK2 = [] err_RK4 = [] dt = 0.05 for i in range(5): hist_Euler = o.int_Euler(dt, P) hist_Euler_Cromer = o.int_E...
{"hexsha": "f6db5f6bf1e21c7cb1025a8ffeac1a7d9a17a1be", "size": 1948, "ext": "py", "lang": "Python", "max_stars_repo_path": "basic_numerics/ODEs/orbit-converge.py", "max_stars_repo_name": "python-hydro/hydro_examples", "max_stars_repo_head_hexsha": "55b7750a7644f3e2187f7fe338b6bc1d6fb9c139", "max_stars_repo_licenses": [...
'''Partial Regression plot and residual plots to find misspecification Author: Josef Perktold License: BSD-3 Created: 2011-01-23 update 2011-06-05 : start to convert example to usable functions 2011-10-27 : docstrings ''' import numpy as np from statsmodels.regression.linear_model import OLS from statsmodels.sand...
{"hexsha": "36c7e924304c7be16b1c9165e515580b674153ae", "size": 14614, "ext": "py", "lang": "Python", "max_stars_repo_path": "statsmodels/graphics/regressionplots.py", "max_stars_repo_name": "escheffel/statsmodels", "max_stars_repo_head_hexsha": "bc70147c4c7ea00b6ac7256bbaf107902983c189", "max_stars_repo_licenses": ["BS...
\chapter{Conclusion} \label{ch:conclusion} % %Using power colours, black hole and neutron star \acp{LMXB} have been shown to follow a similar power spectral evolution, providing fresh evidence for a common variability origin from an accretion disk. While significant variability in power spectra can occur over short tim...
{"hexsha": "934e9cae19a75c931fda68f9596202836bac57f3", "size": 2441, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "chapters/conclusion.tex", "max_stars_repo_name": "FloorBroekgaarden/MasterThesis", "max_stars_repo_head_hexsha": "c533e3c6671bf703609fb071653e77d847cfbae0", "max_stars_repo_licenses": ["MIT"], "max_...
import numpy as np import matplotlib.pyplot as plt import torch from torch.autograd import Variable import torch.nn as nn from torch import optim import time import albumentations as A from albumentations.pytorch import ToTensor from torch.utils.data import random_split from torch.optim import lr_scheduler i...
{"hexsha": "579993bec2861c5f6dc159e81906935bc4aa448e", "size": 7370, "ext": "py", "lang": "Python", "max_stars_repo_path": "train.py", "max_stars_repo_name": "xq141839/DCSAU-Net", "max_stars_repo_head_hexsha": "dd2fa996a325cbebff6f05dd34965483a568d999", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 10, "max_st...
(* ------------------------------------------------------- *) (** #<hr> <center> <h1># The double time redundancy (DTR) transformation #</h1># - Exporting the main lemmas of control block Dmitry Burlyaev - Pascal Fradet - 2015 #</center> <hr># *) (* ------...
{"author": "dburl", "repo": "Coq_LDDL", "sha": "691023b88314c1ad531a1177954a1c6596fe4483", "save_path": "github-repos/coq/dburl-Coq_LDDL", "path": "github-repos/coq/dburl-Coq_LDDL/Coq_LDDL-691023b88314c1ad531a1177954a1c6596fe4483/DTRProof/controlBlock/controlLib.v"}
export GenericRef, EmptyRef, UniversalRef, NativeRef, UnionRef, SubtractionRef, DynRef, DynRefs, void_ref, ensure_ref, map_ref, collect_ref, unite_ref, intersect_ref, subtract_ref export Shape, Shapes, Backen...
{"hexsha": "60d42d329fcf0fb8a5e7e021c7fdffe232795d78", "size": 49198, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Shapes.jl", "max_stars_repo_name": "aptmcl/KhepriBase.jl", "max_stars_repo_head_hexsha": "3e914cd53999919ac05288f7bd8a7333a3a8253a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
# most of code from https://github.com/priya-dwivedi/Deep-Learning import gensim from gensim.utils import simple_preprocess from gensim.parsing.preprocessing import STOPWORDS from nltk.stem import WordNetLemmatizer, SnowballStemmer from nltk.stem.porter import * import pandas as pd import numpy as np import nltk cl...
{"hexsha": "6584386f0741808f906393d7920de9fb93b2390a", "size": 2172, "ext": "py", "lang": "Python", "max_stars_repo_path": "LDA_text_model.py", "max_stars_repo_name": "riakotti/LDA-Modelling-Example", "max_stars_repo_head_hexsha": "2fda3d2cf751edc18bcb913c401c78cf7e1078e5", "max_stars_repo_licenses": ["MIT"], "max_star...
from tkinter import Tk from typing import List, Optional, Union import numpy as np from IPython import display from PIL import ImageGrab from puzzle.heuristics import analyze from puzzle.puzzlepedia import prod_config, puzzle, puzzle_widget _INITIALIZED = False def parse( source: Optional[puzzle.PuzzleSources]...
{"hexsha": "509cb3a14d60b8715f87b95b67d295ed7a5d3137", "size": 1249, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/puzzle/puzzlepedia/puzzlepedia.py", "max_stars_repo_name": "PhilHarnish/forge", "max_stars_repo_head_hexsha": "663f19d759b94d84935c14915922070635a4af65", "max_stars_repo_licenses": ["MIT"], "m...
/- Copyright (c) 2021 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies ! This file was ported from Lean 3 source module order.succ_pred.basic ! leanprover-community/mathlib commit 0111834459f5d7400215223ea95ae38a1265a907 ! Please do not edit t...
{"author": "leanprover-community", "repo": "mathlib3port", "sha": "62505aa236c58c8559783b16d33e30df3daa54f4", "save_path": "github-repos/lean/leanprover-community-mathlib3port", "path": "github-repos/lean/leanprover-community-mathlib3port/mathlib3port-62505aa236c58c8559783b16d33e30df3daa54f4/Mathbin/Order/SuccPred/Basi...
""" SCRIPT TO CONVERT WRITE CHARMM RTF AND PRM FILES FROM BOSS ZMATRIX Created on Mon Feb 15 15:40:05 2016 @author: Matthew Robinson matthew.robinson@yale.edu @author: William L. Jorgensen Lab Usage: python OPM_Routines.py -z phenol.z -r PHN REQUIREMENTS: BOSS (need to set BOSSdir in bashrc and cshrc) Preferably Ana...
{"hexsha": "e627fffc805b86f5455ff0afc9e20d8ccf98fc5b", "size": 14411, "ext": "py", "lang": "Python", "max_stars_repo_path": "build/lib/LigParGen/BOSS2TINKER.py", "max_stars_repo_name": "mikemhenry/LigParGen_2.3", "max_stars_repo_head_hexsha": "538985aba95e8a49aebe0f118e3dd919de95d736", "max_stars_repo_licenses": ["Apac...
from typing import Dict import json import logging from allennlp.data import Token from overrides import overrides from pytorch_pretrained_bert import BertTokenizer from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.fields import...
{"hexsha": "4bec12361e7a464a91637bee15acddcae0d5abdf", "size": 5016, "ext": "py", "lang": "Python", "max_stars_repo_path": "ctxteval/dataset_readers/mteval.py", "max_stars_repo_name": "nitikam/mteval-in-context", "max_stars_repo_head_hexsha": "518fd156503e0dc4ef98b2f46311e10a342e04d7", "max_stars_repo_licenses": ["MIT"...
[STATEMENT] lemma dim_vec_last[simp]: "dim_vec (vec_last v n) = n" [PROOF STATE] proof (prove) goal (1 subgoal): 1. dim_vec (vec_last v n) = n [PROOF STEP] unfolding vec_last_def [PROOF STATE] proof (prove) goal (1 subgoal): 1. dim_vec (vec n (\<lambda>i. v $ (dim_vec v - n + i))) = n [PROOF STEP] by auto
{"llama_tokens": 141, "file": "Jordan_Normal_Form_Matrix", "length": 2}
module ParticleCoordinateModule use ParticleLocationModule,only : ParticleLocationType implicit none ! Set default access status to private private !-------------------------------------- ! type: !-------------------------------------- type,public,extends(ParticleLocationType) :: ParticleCoordinateType ...
{"hexsha": "b1edc36a321e0636f72918f88fff240816affd1e", "size": 2887, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "source/MODPATH7/source/ParticleCoordinate.f90", "max_stars_repo_name": "usgs/neversink_workflow", "max_stars_repo_head_hexsha": "acd61435b8553e38d4a903c8cd7a3afc612446f9", "max_stars_repo_licens...
import numpy as np from .io_gdal import GeoDataset def open(input_data): ds = GeoDataset(input_data) return ds def getspectra(x, y, ds): nbands = ds.RasterCount reflectance = np.empty(nbands) for b in range(1, nbands + 1): reflectance[b - 1] = ds.GetRasterBand(b).ReadAsArray(y, x, 1, 1) ...
{"hexsha": "4401adbb237f464a2d0be2a70de77646810e3f4c", "size": 506, "ext": "py", "lang": "Python", "max_stars_repo_path": "plio/io/io_multibandimager.py", "max_stars_repo_name": "kaitlyndlee/plio", "max_stars_repo_head_hexsha": "99f0852d8eb92efeba72f366077bd023a7da7cdd", "max_stars_repo_licenses": ["Unlicense"], "max_s...
from abc import ABC, abstractmethod import numpy as np class FeatureTransformerBase(ABC): @abstractmethod def get_transformed_features(self, x_array_2d: np.ndarray) -> np.ndarray: """ Trains the model. This can be called multiple times. Parameters ---------- x_array_2d...
{"hexsha": "a34287b8ddd480f5ef49f99f37848e29ee594218", "size": 457, "ext": "py", "lang": "Python", "max_stars_repo_path": "optmlstat/ml/features/feature_transformer_base.py", "max_stars_repo_name": "sungheeyun/optmlstat", "max_stars_repo_head_hexsha": "11d529c915bf27976da9157471a6dbf7df34d205", "max_stars_repo_licenses...
import numpy as np import math from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer,Dense, Activation import tensorflow.keras as keras# as k import tensorflow as t from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam,SGD from tensorflow.linalg impor...
{"hexsha": "dc147dab8367f9d96e943a69a91e03195120e11f", "size": 5000, "ext": "py", "lang": "Python", "max_stars_repo_path": "grapaold/layerfiles/gl.py", "max_stars_repo_name": "psorus/grapa", "max_stars_repo_head_hexsha": "6af343bb35c466c971ded1876e7a9d00e77cef00", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import numpy as np import operator import sys import tensorflow as tf import tensorflow.contrib.slim as slim import util IS_TRAINING = tf.placeholder(tf.bool, name="is_training") FLIP_HORIZONTALLY = tf.placeholder(tf.bool, name="flip_horizontally") class Network(object): """Common class for handling ops for making ...
{"hexsha": "da17c891da0d5520f0ca3018ce36b164af95b1ed", "size": 6773, "ext": "py", "lang": "Python", "max_stars_repo_path": "base_network.py", "max_stars_repo_name": "matpalm/malmomo", "max_stars_repo_head_hexsha": "35861223dc65b7f10c780ec7cd7cdcaf50a46ead", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 54, "ma...
""" *Horizontal Split* """ from dataclasses import dataclass import jax.numpy as jnp from ._operator import SplitOperator __all__ = ["HorizontalSplit"] @dataclass class HorizontalSplit( SplitOperator, ): operator = jnp.hsplit
{"hexsha": "2cefd9587ffd22ebec3b9792153d66ed1d302e3c", "size": 246, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/tensor/op/geometric/split/horizontal.py", "max_stars_repo_name": "jedhsu/tensor", "max_stars_repo_head_hexsha": "3b2fe21029fa7c50b034190e77d79d1a94ea5e8f", "max_stars_repo_licenses": ["Apache-2...
import bayesnewton import numpy as np from bayesnewton.utils import solve from jax.config import config config.update("jax_enable_x64", True) import pytest def wiggly_time_series(x_): noise_var = 0.15 # true observation noise return (np.cos(0.04*x_+0.33*np.pi) * np.sin(0.2*x_) + np.math.sqrt(nois...
{"hexsha": "10b1e5eb5cb2b4069b8c85f1af4b9bfd859f852a", "size": 2115, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_vs_exact_marg_lik.py", "max_stars_repo_name": "AaltoML/Newt-test", "max_stars_repo_head_hexsha": "e3a725124eb63e9994653ed756be7ae8632f52b2", "max_stars_repo_licenses": ["Apache-2.0"], "...
import csv, cv2 import numpy as np from sklearn.model_selection import train_test_split from EmoPy.src.dataset import Dataset class _DataLoader(object): """ Abstract class to load image and label data from a directory or csv file. Methods load_data and _validate_arguments must be implemented by subclass...
{"hexsha": "b7046a48c4ce5b832ce411ff616f3091405fae6f", "size": 2965, "ext": "py", "lang": "Python", "max_stars_repo_path": "EmoPy/EmoPy/src/data_loader.py", "max_stars_repo_name": "Rahmatullina/FinalYearProject", "max_stars_repo_head_hexsha": "326f521b9f600dbbc7ace2223bd5aafc79b2267c", "max_stars_repo_licenses": ["Apac...
# -*- coding: utf-8 -*- # ===============LICENSE_START======================================================= # Acumos Apache-2.0 # =================================================================================== # Copyright (C) 2017-2018 AT&T Intellectual Property & Tech Mahindra. All rights reserved. # ===========...
{"hexsha": "5d4db6a51813eec84094b5893f116fb4990559d4", "size": 13795, "ext": "py", "lang": "Python", "max_stars_repo_path": "acumos-package/acumos/tests/test_wrapped.py", "max_stars_repo_name": "acumos/acumos-python-client", "max_stars_repo_head_hexsha": "d4faad0ed3fe6da0c8b0bfb23b548fa9ace546e5", "max_stars_repo_licen...
module dummy character(len=65) :: message = "This is a random message" end module dummy program test use dummy print *, "message ", message end program test
{"hexsha": "53f512c7c094c631091f894920c3762b31495e7f", "size": 165, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "test/output_tests/global_string.f90", "max_stars_repo_name": "clementval/fc", "max_stars_repo_head_hexsha": "a5b444963c1b46e4eb34d938d992836d718010f7", "max_stars_repo_licenses": ["BSD-2-Clause"]...
import random import numpy as np from tresearcher.tabular.glob import * class KfoldIndexer(): def __init__(self, folds, base_df): self.folds = folds self.base_df = base_df self.splits = np.array_split(range(len(base_df)), folds) def get_indices(self, fold): return [idx f...
{"hexsha": "0357789fd4b68eb1221574d96eb325cba89ac675", "size": 1322, "ext": "py", "lang": "Python", "max_stars_repo_path": "tresearcher/tabular/split.py", "max_stars_repo_name": "Lewington-pitsos/tabularresearcher", "max_stars_repo_head_hexsha": "bb69d15e24a1734e6c7293e00867a25fd5fb99a3", "max_stars_repo_licenses": ["M...
(** * Validity of Annotations In this file, we prove all the tools we need to show that a welltyped judgment of PTS can be annotated in a valid judgement of PTS_{atr}. With this, we give a validity to the annotation system we chose.*) Require Import Peano_dec. Require Import Compare_dec. Require Import Lt Le Gt Plus M...
{"author": "coq-contribs", "repo": "ptsatr", "sha": "e57ad4552055340ea97bc6a2c61b837c56c11a7d", "save_path": "github-repos/coq/coq-contribs-ptsatr", "path": "github-repos/coq/coq-contribs-ptsatr/ptsatr-e57ad4552055340ea97bc6a2c61b837c56c11a7d/glue.v"}
Theorem ex1: forall p q r : Prop, (p -> q) -> (((p -> r) -> q) -> q). Proof. Require Import Classical. intros. apply NNPP. intro. apply H1. apply H0. intro. apply NNPP. intro. apply H1. apply (H H2). Qed. Theorem ex2: forall p q r s : Prop, ((p -> q) -> r) -> ((r -> p) -> (s -> p))....
{"author": "limitedeternity", "repo": "PrPr-Labs", "sha": "0c83eb2dbf0c8b15e558ed7586d5e39e18a51c62", "save_path": "github-repos/coq/limitedeternity-PrPr-Labs", "path": "github-repos/coq/limitedeternity-PrPr-Labs/PrPr-Labs-0c83eb2dbf0c8b15e558ed7586d5e39e18a51c62/PrPr-01/Ex2_Church.v"}
\chapter{Platform-Level Interrupt Controller (PLIC)} \label{plic} This chapter describes the general architecture for the RISC-V platform-level interrupt controller (PLIC), which prioritizes and distributes global interrupts in a RISC-V system. \section{PLIC Overview} Figure~\ref{fig:plic} provides a quick overview ...
{"hexsha": "f976e496d952c16fefc6da3ee3eb25fd958fcaa2", "size": 20933, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "src/plic.tex", "max_stars_repo_name": "kdockser/riscv-isa-manual", "max_stars_repo_head_hexsha": "015b13e021d3a0604435a0e81ef98ac2e0e4fb21", "max_stars_repo_licenses": ["CC-BY-4.0"], "max_stars_cou...
The sophomore walk is a nickname for Scripps Drive and the Anderson plaza The term stems from the fact that the Davis High School sophomores lack a drivers license and have to walk or bike somewhere to obtain grubs if they dont want to have the on site food. DHS is an open campus at lunch time, although there is talk ...
{"hexsha": "2a9321563585d918c741c8828cfe75b7d13def93", "size": 2774, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/Sophomore_Walk.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import argparse from multiprocessing import Pool, cpu_count, Manager import os from collections import defaultdict import numpy as np import bpy from utils.io import write_serialized, read_serialized from utils.misc import get_host_id from utils.shape_net import SIM_SHAPE_NET_FOLDER, RENDER_SHAPE_NET_FOLDER, SHAPE_NE...
{"hexsha": "0e42cc4947460bf48d46f78d7c11ba8a88adc915", "size": 3993, "ext": "py", "lang": "Python", "max_stars_repo_path": "render/data/builder/collect_blend.py", "max_stars_repo_name": "JerryLingjieMei/ADEPT-Dataset-Release", "max_stars_repo_head_hexsha": "900d9d5c7e780a5daa06f0484d91539a4ca92ff8", "max_stars_repo_lic...
import random import torch import numpy as np from scipy.linalg import sqrtm import sklearn.datasets from sklearn.mixture import GaussianMixture class Sampler: def __init__( self, device='cuda', dtype=torch.float, requires_grad=False ): self.device = device self.dtype = ...
{"hexsha": "403c78d5befc0b1414fb652c97f8173b45f639c6", "size": 10876, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/distributions.py", "max_stars_repo_name": "iamalexkorotin/Wasserstein2GenerativeNetworks", "max_stars_repo_head_hexsha": "8b0b10a90456893da07805a5d8e910b275223658", "max_stars_repo_licenses":...
import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab def energy(string_name): """ Genaración de los gráficos de energía en función del tiempo. """ data = np.loadtxt(string_name, dtype=float) time = data[:,0] energy_K = 0.01*data[:,1] energy_U = 0.01*data[:,2] ...
{"hexsha": "3526c58b8e294d28cf08f67fda708a9701cbe338", "size": 1667, "ext": "py", "lang": "Python", "max_stars_repo_path": "exercise_1/graphics.py", "max_stars_repo_name": "williamGOC/Molecular-Dynamic", "max_stars_repo_head_hexsha": "9f06b0466ddba03c76b6507e1616b08e1ff20de3", "max_stars_repo_licenses": ["MIT"], "max_s...
\documentclass[11pt]{beamer} \usepackage{url} \usepackage[utf8]{inputenc} \parindent0pt \parskip3pt \newcommand{\Rahmen}[2]{ \setlength{\fboxsep}{12pt}\begin{center} \shadowbox{\parbox{#1\textwidth}{\em #2}}\end{center}} % Designelemente \usetheme{Hannover} \beamertemplatenavigationsymbolsempty \title[The Inventor ...
{"hexsha": "45fffb4ad1a12bffac90e2927ff9bc3e4a0807c0", "size": 12091, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Sources/Graebe_HG/Minsk-2019-Slides.tex", "max_stars_repo_name": "wumm-project/OpenDiscovery", "max_stars_repo_head_hexsha": "445b25b8a6f5d03e41a98c28a60c38003e9b84a4", "max_stars_repo_licenses": [...
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import matplotlib matplotlib.use("Agg") from matplotlib import pyplot as plt from scipy.io import wavfile from vocoder.hifigan_generator import Generator import hparams as hp import os import text import json from pyd...
{"hexsha": "1099757529074c27617a95b2f88093c1359e695b", "size": 12372, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils.py", "max_stars_repo_name": "hwRG/FastSpeech2-Pytorch-old-man_city", "max_stars_repo_head_hexsha": "c32ee3a09bf2a53fcd17a2d0b74e8d1c93586573", "max_stars_repo_licenses": ["MIT"], "max_stars...
#ifndef LEAF_87F274C4D4BA11E89928D55AC82C3C47 #define LEAF_87F274C4D4BA11E89928D55AC82C3C47 // Copyright (c) 2018-2019 Emil Dotchevski and Reverge Studios, Inc. // 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) #in...
{"hexsha": "cd08b63e5fd17d67e50555d082ed7d58e698d753", "size": 13580, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/boost/leaf/handle_exception.hpp", "max_stars_repo_name": "vector-of-bool/leaf", "max_stars_repo_head_hexsha": "329d1c27a53b8b4e22e18ed6cf164bfc4cb2d8c2", "max_stars_repo_licenses": ["BSL-1....
# Copyright 2019 The Johns Hopkins University Applied Physics Laboratory # # 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...
{"hexsha": "1b9b94e77e9c238638997c1ce23e02941203e31b", "size": 2638, "ext": "py", "lang": "Python", "max_stars_repo_path": "ingestclient/test/test_plugin_cloudvolume.py", "max_stars_repo_name": "jhuapl-boss/ingest-client", "max_stars_repo_head_hexsha": "62d7f39a8d8ab1f0b12226bbeab7f2ab429da08a", "max_stars_repo_license...
#!/usr/bin/env python3 import sys sys.path.append("../") import io import numpy as np from struct import * from edfreader import EDFreader from edfreader import EDFexception from edfwriter import EDFwriter if sys.version_info[0] != 3 or sys.version_info[1] < 5: print("Must be using Python version >= 3.5.0") sys.e...
{"hexsha": "87e887a02ce03e118739ab6ef6d0728f2d095cc3", "size": 41252, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/ext_libs/edflibpy/test/edf_unit_test.py", "max_stars_repo_name": "greydongilmore/merPrep", "max_stars_repo_head_hexsha": "d84fd5617667180ae88805a7b73d5865b79026bd", "max_stars_repo_licenses":...
""" Created on Fri 15 May 2020 @author: Yoann Pradat Functions for simulation different matrices for the factorization V = WH + E """ using Combinatorics using LinearAlgebra function scale_col(X; p=1) norms_X = mapslices(x -> norm(x, p), X, dims=1) X .* repeat(norms_X .^ -1, size(X, 1), 1) end function ra...
{"hexsha": "b32eff05bcbeeb3740332cec668893aff50fe873", "size": 5020, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "demo/src/simulation/simulate.jl", "max_stars_repo_name": "Durzot/MT_NMF", "max_stars_repo_head_hexsha": "a3e3c2fb4a23cc09e78e1ad1e324787c6017a4fc", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
(* Title: Kleene Algebra Author: Alasdair Armstrong, Georg Struth, Tjark Weber Maintainer: Georg Struth <g.struth at sheffield.ac.uk> Tjark Weber <tjark.weber at it.uu.se> *) header {* Dioids *} theory Dioid imports Signatures begin subsection {* Join Semilattices *} text {* Join semil...
{"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/Kleene_Algebra/Dioid.thy"}
function x = RofCurve(X,Y) % X=[10 0 -8]; % Y=[0 10 0]; % Defining the three nonlinear equations to be solved (equation of circle % passing through the 3 points) defn1=['[ ( x(1)-' num2str(X(1)) ' )^2+( x(2)-' num2str(Y(1)) ')^2-x(3)^2 ;' ]; defn2=[ '( x(1)-' num2str(X(2)) ' )^2+( x(2)-' num2str(Y(2)) ')^2-x(3)^2 ;'...
{"author": "Sable", "repo": "mcbench-benchmarks", "sha": "ba13b2f0296ef49491b95e3f984c7c41fccdb6d8", "save_path": "github-repos/MATLAB/Sable-mcbench-benchmarks", "path": "github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/12889-airfoil-analyzer/Airfoil_Analyzer/FitC...
program async_test use :: mpi_f08 implicit none integer :: my_rank call MPI_Init() call MPI_Comm_rank(MPI_COMM_WORLD, my_rank) if (MPI_ASYNC_PROTECTS_NONBLOCKING) then print '("rank ", I0, " protects async")', my_rank else print '("rank ", I0, " does not protect async")', my...
{"hexsha": "24b52913aa21b790c78fe960b8b6de1802ec2082", "size": 384, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "Debugging/Mpi/PointToPointFortran/async_test.f90", "max_stars_repo_name": "Gjacquenot/training-material", "max_stars_repo_head_hexsha": "16b29962bf5683f97a1072d961dd9f31e7468b8d", "max_stars_repo...
__precompile__() module SimpleWebsockets using HTTP, Base64, Sockets, MbedTLS import Sockets: listen export WebsocketServer, WebsocketClient, WebsocketConnection, RequestDetails, WebsocketError, ConnectError, CallbackError, FrameError export serve, send...
{"hexsha": "2c437e6e7a0dd34ec6ca8a7f0a9bfceb8c876611", "size": 525, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/SimpleWebsockets.jl", "max_stars_repo_name": "citkane/SimpleWebsockets", "max_stars_repo_head_hexsha": "2ba66e4716de7ba4589b26a41338c84cdbcaf044", "max_stars_repo_licenses": ["MIT"], "max_stars_...
[STATEMENT] lemma [code]: \<open>Literal' b0 b1 b2 b3 b4 b5 b6 s = String.literal_of_asciis [foldr (\<lambda>b k. of_bool b + k * 2) [b0, b1, b2, b3, b4, b5, b6] 0] + s\<close> [PROOF STATE] proof (prove) goal (1 subgoal): 1. Literal' b0 b1 b2 b3 b4 b5 b6 s = String.literal_of_asciis [foldr (\<lambda>b k. of_boo...
{"llama_tokens": 1718, "file": null, "length": 10}
import copy import typing import math import numpy as np import revlib import torch import torch.utils.data from deepspeed.runtime import lr_schedules from torch.nn import functional as F from src.dataclass import Context from src.optimizers.build import build_optimizer QUAD_TENSOR = typing.Tuple[torch.Tensor, torch...
{"hexsha": "b4335d40809a8abad2d221ae481ce1b3dec59539", "size": 25647, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/model.py", "max_stars_repo_name": "ClashLuke/HomebrewNLP", "max_stars_repo_head_hexsha": "18d9a9a32af4e5e5672a9261ef6ac613dc9194c0", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_co...
macro checktoplevel(ctx, expr) quote if !istoplevel($(esc(ctx)).current) msg($(esc(ctx)), :E100, "$($(esc(expr))) expression must be at top level") return end end end macro checkisa(ctx, var, typ) quote if !isa($(esc(var)), $(esc(typ))) msg($(esc(...
{"hexsha": "c1564b16a72209664cd6a9ab59f02eb5fa72db71", "size": 5035, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ast.jl", "max_stars_repo_name": "FelipeLema/Lint.jl", "max_stars_repo_head_hexsha": "37153b427c6666a2abbfc4bfcd538fb458ad2d31", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 159, "max_...
from fabric import Connection import pandas as pd import numpy as np import time import os import subprocess import signal import server_config asynch_rl_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) remote_relaunch = True net_version = str(1002) difficulty = str(2) print('preparing to connect...
{"hexsha": "7d1dca639ad7a2dac7bc5eacb0f71289d28c30b4", "size": 3707, "ext": "py", "lang": "Python", "max_stars_repo_path": "autoload_CrowdNav.py", "max_stars_repo_name": "EnricoReg/asynch-rl", "max_stars_repo_head_hexsha": "acd01a49a7a4b8ff4ff0694d1e24274ba87691ee", "max_stars_repo_licenses": ["CC0-1.0"], "max_stars_co...
""" PatientTrajectory.py Examples -------- # Patient that goes through all stages but eventually recovers >>> K = 5 >>> p = PatientTrajectory() >>> p.state_ids = [0, 1, 2, 3, 4] >>> p.durations = [5, 4, 3, 2, 2] >>> p.health_state_ids = [0, 0, 0, 0, 1] >>> p.is_terminal_0 = False >>> T = np.sum(p.durations) + 1 >>> ...
{"hexsha": "ea2f0161a0fa13d267e6f7d303de3c370eec1911", "size": 10077, "ext": "py", "lang": "Python", "max_stars_repo_path": "semimarkov_forecaster/PatientTrajectory.py", "max_stars_repo_name": "tufts-ml/covid19-forecasting", "max_stars_repo_head_hexsha": "b0e3eed6cc03a981598d8f0b7c6fe882310c710d", "max_stars_repo_licen...
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Description # ============================================================================== # # Two Body orbit propagator. # # This algorithm considers a perfect Keplerian orbit. In other words, no # perturbation is considered du...
{"hexsha": "c1a8d9f3ae31005fbd44e3e7c1a64ccfec1a429b", "size": 4027, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/orbit/propagators/twobody.jl", "max_stars_repo_name": "yashi/SatelliteToolbox.jl", "max_stars_repo_head_hexsha": "3a2bea103083f7fcf5729bcd1446cb23c7f23cd8", "max_stars_repo_licenses": ["MIT"], ...
!*********************************************************************** SUBROUTINE setisompi (isofile) ! An MPI container for setiso which opens, checks, and loads isofile ! to get isotope data. Data loaded are: ! EMN,Z,/NPAR/,/NSMDAT/ ! where /.../ means whole common block. ! ! Xinghong He 98-08-06 ! !****...
{"hexsha": "db25b7d71cf9ad774c44769a4f2745e6a07d6cb2", "size": 2076, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/lib/mpi90/setisompi.f90", "max_stars_repo_name": "sylas/grasp-continuum", "max_stars_repo_head_hexsha": "f5e2fb18bb2bca4f715072190bf455fba889320f", "max_stars_repo_licenses": ["MIT"], "max_s...
abstract type Constraint end # expected fields (mutable) # - score # reduce Base.show() to Base.string() Base.show(io::IO, cnstr::Constraint) = print(io, string(cnstr)) Base.show(io::IO, ::MIME"application/prs.juno.inline", cnstr::Constraint) = print(io, string(cnstr)) Base.string(cnstr::Constraint) = @sprintf "ToDo:...
{"hexsha": "0c128987844541520ebab61f9d8d9210fdf9a652", "size": 1703, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/constraints.jl", "max_stars_repo_name": "JuliaTagBot/bad.jl", "max_stars_repo_head_hexsha": "7cccc038b65e4d6e923221064c20b361466e21cf", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
from __future__ import print_function import os import flask import json import time import mxnet as mx import cv2 import base64 from face import Face import numpy as np import insightface from insightface.utils import face_align model_root_dir = '/opt/ml/model' # 'retinaface_mnet025_v2+LResNet100E-IR' # 'retinaface...
{"hexsha": "baf6eb95e1959e947212bd9c55e11d4f5b967794", "size": 10357, "ext": "py", "lang": "Python", "max_stars_repo_path": "source/containers/face-comparison/recognizer/predictor.py", "max_stars_repo_name": "aws-samples/amazon-ipc-ai-saas", "max_stars_repo_head_hexsha": "f412634ab407e54990ec8913146cff53f417453f", "max...
#!/usr/bin/env python # Copyright 2017 Calico 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 ...
{"hexsha": "6a72143453b4a4f05af36e102753733feb9bb9ee", "size": 16510, "ext": "py", "lang": "Python", "max_stars_repo_path": "bin/basenji_hdf5_genes.py", "max_stars_repo_name": "lisabang/basenji", "max_stars_repo_head_hexsha": "f91bb195b4062c55e487a4091e13a0e813ef07d6", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
""" 3D Neuroimaging cartesian reconstruction ======================================== Author: LElgueddari In this tutorial we will reconstruct an MRI image from the sparse 3D kspace measurements. Import neuroimaging data ------------------------ We use the toy datasets available in pysap, more specifically the 3D o...
{"hexsha": "ecfcfb4e931e4ac537de6b8f6ea72576be1fb9d2", "size": 2941, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/cartesian_reconstruction_3d.py", "max_stars_repo_name": "Zaineb18/pysap-mri", "max_stars_repo_head_hexsha": "cf4391049b2fe264e8eb96dff07b44fce3b8e8d4", "max_stars_repo_licenses": ["CECILL...
program p type t end type t type(t) :: tvar end program p
{"hexsha": "38e999c13443d3ea5c253850c24b3b39836c5d7a", "size": 65, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "test/type-no-components.f90", "max_stars_repo_name": "kurtsansom/ftnchek", "max_stars_repo_head_hexsha": "cb5b24689fec20e0dac4d158ae57a5b7387e9723", "max_stars_repo_licenses": ["MIT"], "max_stars_...
import keras import cv2 import numpy as np import pandas as pd import sklearn from sklearn.model_selection import train_test_split df = pd.read_csv('data/driving_log.csv') data = [] imageData = [] images = [ df['center'].values,df['left'].values,df['right'].values ] for i in range(len(df['center'].values)): for j...
{"hexsha": "da19047babc1a5aaf1507a19a6c8dcda8283843c", "size": 2706, "ext": "py", "lang": "Python", "max_stars_repo_path": "model.py", "max_stars_repo_name": "CAdarsh/behavioural_cloning", "max_stars_repo_head_hexsha": "8783083254056456d1c9e6bb395e6fd85b964ff6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1,...
# coding=utf-8 # Copyright Studio-Ouisa and The HuggingFace Inc. team. 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 ...
{"hexsha": "13b65365741bcbcbef0d465affcfa4ecbfd86408", "size": 79104, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/transformers/models/luke/tokenization_luke.py", "max_stars_repo_name": "HimashiRathnayake/adapter-transformers", "max_stars_repo_head_hexsha": "d9c06ecbf4aaa33756e848b8fc5b3ec65f5ff4f4", "max...
using DelayDiffEq, DiffEqProblemLibrary.DDEProblemLibrary using Test DDEProblemLibrary.importddeproblems() @testset "init" begin prob = DDEProblemLibrary.prob_dde_constant_1delay_ip prob_scalar = DDEProblemLibrary.prob_dde_constant_1delay_scalar inferred = [BS3(), Tsit5(), RK4(), Vern6()] for alg in ...
{"hexsha": "7c2505452c61e9784b196c9216833ee622bfd64b", "size": 715, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/regression/inference.jl", "max_stars_repo_name": "UnofficialJuliaMirror/DelayDiffEq.jl-bcd4f6db-9728-5f36-b5f7-82caef46ccdb", "max_stars_repo_head_hexsha": "041844864da58e78882ce212ebda52e66b02...
import numpy as np import os import cv2 import matplotlib.pyplot as plt import csv import json from collections import Counter from matplotlib.patches import Rectangle import math from skimage.measure import block_reduce # import tensorflow as tf # keras = tf.keras # DOCUMENTATION ############ CLOUD USAGE ...
{"hexsha": "3e5f086a183ddf457f259f65ddd01fd4fd9028eb", "size": 17391, "ext": "py", "lang": "Python", "max_stars_repo_path": "util.py", "max_stars_repo_name": "surya-narayanan/Meta-Learning-Deep-Leision", "max_stars_repo_head_hexsha": "088d279ac72529a70bca27f399d2dd8f64e3f3bb", "max_stars_repo_licenses": ["MIT"], "max_s...
#include <boost/test/unit_test.hpp> #include "expression/Parser.hpp" #include "expression/Ast.hpp" #include "expression/AstOp.hpp" #include "expression/Lexer.hpp" #include "Function.hpp" #include "Error.hpp" using namespace slim; using namespace slim::expr; BOOST_AUTO_TEST_SUITE(TestExprParser) ExpressionNodePtr pars...
{"hexsha": "9136ccb76ffaa591c9ab665f713dacbdb84af7b2", "size": 15236, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/expression/Parser.cpp", "max_stars_repo_name": "wnewbery/cpp-slim", "max_stars_repo_head_hexsha": "c7087294b55db5d7ca846438ebddfaec395d1a12", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
################################################################################ # # Copyright (c) 2019, the Perspective Authors. # # This file is part of the Perspective library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # import six import numpy impo...
{"hexsha": "4a4b1ef1cea97f60e6ea8f5056495eb9684f98d3", "size": 17266, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/perspective/perspective/widget/widget.py", "max_stars_repo_name": "mehtabhavin10/perspective", "max_stars_repo_head_hexsha": "faa9f721d0518a620508a78298a96cb005c07275", "max_stars_repo_lic...
import matplotlib.pyplot as plt import matplotlib.image as mpimg from matplotlib.patches import FancyArrowPatch from PIL import Image import networkx as nx #pos = {0:[10,10], 1:[300,300], 2:[800.800]} #coor = {0:'(585,230)'} #def pfinder(start,end): '''start== start room eg. 100 or 'enter', end == end room ...
{"hexsha": "ae37250662f466fb15fac0fb858a5d125108ef19", "size": 3671, "ext": "py", "lang": "Python", "max_stars_repo_path": "PRESENTATIONDAY/path_finder_prototype.py", "max_stars_repo_name": "rlin2k1/ANGBot", "max_stars_repo_head_hexsha": "f78216be8d918b1e5596f6d36faf57ad8c5c9a17", "max_stars_repo_licenses": ["Apache-2....
myTestRule { # Input parameters are: # File descriptor # Optional length to read # Output Parameter is: # Buffer holding the data read # Output from running the example is: for (*I = 0 ; *I < 4 ; *I = *I + 1) { acRunWorkFlow("/raja8/home/rods/msso/mssop1/mssop1.run",*R_BUF); msiBytesBufToStr(*R_B...
{"hexsha": "1f70f3a3eb295abea9803741390dd0ff4caeb000", "size": 520, "ext": "r", "lang": "R", "max_stars_repo_path": "clients/icommands/test/rules3.0/ruleTestWSO3.r", "max_stars_repo_name": "DICE-UNC/iRODS-FUSE-Mod", "max_stars_repo_head_hexsha": "8f8e965493a03bcb085df0b6467e7dfcce308d0f", "max_stars_repo_licenses": ["B...
''' This includes my test runs to understand the data structure when attempting the problem. Feel free to go through and try it yourself. ''' import gym import numpy as np from lake_envs import * # uncomment to check out stochastic/deterministic environments #env = gym.make("Deterministic-4x4-FrozenLake-v0") env = g...
{"hexsha": "4a1624a5b9d2bd1c474a184efa97d17f9ac50df8", "size": 1284, "ext": "py", "lang": "Python", "max_stars_repo_path": "Reinforcement-Learning/assignment1/draft.py", "max_stars_repo_name": "gajeraj/MLSA-workshops-2020-student", "max_stars_repo_head_hexsha": "cafbf5ac8750dd2b962174ad71dabf35ac90e2f4", "max_stars_rep...
#!/usr/bin/env python # coding: utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. 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/LI...
{"hexsha": "95e40fb879d2625ccef645ebb6a55bf6c1a59307", "size": 91445, "ext": "py", "lang": "Python", "max_stars_repo_path": "DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/preproc/preproc3.py", "max_stars_repo_name": "puririshi98/benchmark", "max_stars_repo_head_hexsha": "79f554f1e1cf36f62994c78e0e6e5b360f5...
# -*- coding: utf-8 -*- # @Author: Marte # @Date: 2017-12-18 10:08:04 # @Last Modified by: Marte # @Last Modified time: 2017-12-18 10:08:12 ''' Created on 21 nov. 2011 @author: Antoine Vacavant, ISIT lab, antoine.vacavant@iut.u-clermont1.fr, http://isit.u-clermont1.fr/~anvacava Modified by Christopher Godfrey, on 1...
{"hexsha": "c441ca43eddfe0d0abca5615e413d356b7e4210e", "size": 2775, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyssim.py", "max_stars_repo_name": "lby314xx/MLP-coursework", "max_stars_repo_head_hexsha": "1e3daa9ebe40b247e051fc03a6624c5bac081607", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
(* Copyright (C) 2017 M.A.L. Marques 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 http://mozilla.org/MPL/2.0/. *) (* type: gga_exc *) (* prefix: gga_x_ft97_params *params; assert(p->params !...
{"hexsha": "88362e1bdc41d92b80992b956c1d70c2e11bfaad", "size": 717, "ext": "mpl", "lang": "Maple", "max_stars_repo_path": "libxc-5.1.6/maple/gga_exc/gga_x_ft97.mpl", "max_stars_repo_name": "pwang234/lsms", "max_stars_repo_head_hexsha": "6044153b6138512093e457bdc0c15c699c831778", "max_stars_repo_licenses": ["BSD-3-Claus...
[STATEMENT] lemma product_run_embed_limit_finiteness: fixes \<iota>\<^sub>m \<delta>\<^sub>m w q\<^sub>0 k defines "\<rho> \<equiv> run\<^sub>t (\<Delta>\<^sub>\<times> \<delta>\<^sub>m) \<iota>\<^sub>m w" defines "\<rho>' \<equiv> run\<^sub>t (\<delta>\<^sub>m k) q\<^sub>0 w" assumes "\<iota>\<^sub>m k = Some ...
{"llama_tokens": 4826, "file": "LTL_to_DRA_DTS", "length": 35}
from sklearn.metrics import precision_recall_curve, roc_curve from sklearn.metrics import roc_auc_score from sklearn.metrics import average_precision_score from sklearn.calibration import calibration_curve import matplotlib.pyplot as plt import matplotlib.ticker as tck from io import BytesIO from sklearn.metrics import...
{"hexsha": "5b4ed1f3900cbe7f9902cb2a36371bf7e37bba5f", "size": 3648, "ext": "py", "lang": "Python", "max_stars_repo_path": "build/lib/nestedcvtraining/utils/plotting.py", "max_stars_repo_name": "JaimeArboleda/nestedcvtraining", "max_stars_repo_head_hexsha": "6bcf2fc2fdcb655c36f08d9634df2449f1151907", "max_stars_repo_li...
#!/usr/bin/env python r""" Visualize UMAP embeddings """ import argparse import pathlib import anndata import numpy as np import pandas as pd import scanpy as sc from matplotlib import rcParams import scglue scglue.plot.set_publication_params() def parse_args() -> argparse.Namespace: r""" Parse command l...
{"hexsha": "5b1639cf5edf3ce7defa6de383cddf1cba1a7adc", "size": 2663, "ext": "py", "lang": "Python", "max_stars_repo_path": "evaluation/workflow/scripts/visualize_umap.py", "max_stars_repo_name": "gao-lab/GLUE", "max_stars_repo_head_hexsha": "e84cb6483971dcb1e2485080f812899baaf31b5b", "max_stars_repo_licenses": ["MIT"],...
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad, Andrew Zipperer Using classical logic, defines an inverse function. -/ import .function .map open eq.ops classical namespace set variables {X Y : Type} noncomputable d...
{"author": "Bolt64", "repo": "lean2-aur", "sha": "1d7148e58a17b2d326b032ed1ebf8c5217320242", "save_path": "github-repos/lean/Bolt64-lean2-aur", "path": "github-repos/lean/Bolt64-lean2-aur/lean2-aur-1d7148e58a17b2d326b032ed1ebf8c5217320242/library/data/set/classical_inverse.lean"}
# -*- coding: utf-8 -*- ## # \file init_fdtd_ground.py # \title Definition of the numerical parameters for the FDTD method. # The updated scheme that gives the pressure # at each time iteration is defined in the upd_fdtd.py files. # It is applied for the grid convergence studies. # ...
{"hexsha": "01294ae84f518311090155506add511ab810bf2b", "size": 12566, "ext": "py", "lang": "Python", "max_stars_repo_path": "num_methods/fdtd/init_fdtd_ground.py", "max_stars_repo_name": "qgoestch/sinecity_testcases", "max_stars_repo_head_hexsha": "ec04ba707ff69b5c1b4b42e56e522855a2f34a65", "max_stars_repo_licenses": [...
module GRIN.Name import Control.Monad.State import Data.SortedMap ||| A name and resolved index. public export record Resolved a where constructor MkResolved res : Int orig : a export Eq (Resolved a) where (==) = (==) `on` res export Ord (Resolved a) where compare = compare `on` res export Show...
{"hexsha": "332e1daad7b8ae8a171450cd7b0f2aa8d5a6791d", "size": 1552, "ext": "idr", "lang": "Idris", "max_stars_repo_path": "grin/src/GRIN/Name.idr", "max_stars_repo_name": "danielkroeni/Idris2-Grin", "max_stars_repo_head_hexsha": "8fc28628300e5c9a97d83c62999290d809b50838", "max_stars_repo_licenses": ["BSD-3-Clause"], "...
### SUMMIX Script ### Main feature: SUMMIX, an efficient estimation of ancestry proportions from allele frequency data ### Authors: Jordan R. Hall, Kaichao Chang; Supervised by Dr. Audrey Hendricks ### Mixtures Research Group, Dr. Audrey E. Hendricks, Univ. of Colorado Denver, 2020. ### Import needed packages import n...
{"hexsha": "804811eabbb711d9c00e1e245c1b8bf9f23f4315", "size": 8236, "ext": "py", "lang": "Python", "max_stars_repo_path": "summix/summix.py", "max_stars_repo_name": "jordanrhall/summix_py", "max_stars_repo_head_hexsha": "244d621838def52c88b7334c0d876fcd4fee1a8f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
/** * Facebook Internet Explorer Toolbar Software License * Copyright (c) 2009 Facebook, Inc. * * Permission is hereby granted, free of charge, to any person or organization * obtaining a copy of the software and accompanying documentation covered by * this license (which, together with any graphical images included ...
{"hexsha": "60be474d14a708c0a3dd982ccd3319452e91e7ee", "size": 6953, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "Sources/FBIEToolbar/system/ClientServiceConnection.cpp", "max_stars_repo_name": "facebookarchive/ie-toolbar", "max_stars_repo_head_hexsha": "cfcc1a8ffd6d6c7d8b1e12c8317ff728d2173cac", "max_stars_rep...
import collections import json import random import tensorflow as tf import numpy as np import energypy as ep class BaseEnv(object): """ time series environment """ def __init__( self, seed=None, dataset='example', ): if seed: self.seed(seed) ...
{"hexsha": "138163d75b8661efe6c0431938e3e486eb506172", "size": 2224, "ext": "py", "lang": "Python", "max_stars_repo_path": "energypy/envs/env.py", "max_stars_repo_name": "winonecheng/energy-py", "max_stars_repo_head_hexsha": "1ac00446cfd6baf335f3772c679488758f9bfded", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
# The IPython Notebook * Facilitates interactive computing using a web-browser * Developing, * Documenting, * Executing code and * Communicating the results ## Starting the Notebook Server ** `ipython notebook`** A new notebook document is created with following features * Notebook name, * Menu bar, * Toolba...
{"hexsha": "b715b5b1d894e2aec6d3bcec3acdcb85d794b01a", "size": 19083, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "bvbcet/Working_with_IPython_Notebooks.ipynb", "max_stars_repo_name": "satish-annigeri/Notebooks", "max_stars_repo_head_hexsha": "92a7dc1d4cf4aebf73bba159d735a2e912fc88bb", "max_stars...
from backend.gcloud_app.style_transfer.style_transfer_interface import StyleTransferInterface import backend.gcloud_app.image_transformation as img_transform import numpy as np class MonetStyleTransfer(StyleTransferInterface): neural_network = {} size = 256 def apply(self, image): shape, image_s...
{"hexsha": "a84b7104ca988d6a55cc5c66f1e6c2dcd21c7d59", "size": 1086, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/backend/gcloud_app/style_transfer/monet_style_transfer.py", "max_stars_repo_name": "sergiuiacob1/monet-photos", "max_stars_repo_head_hexsha": "4c11048cfba2f3a9f1df370b075b2abb8de0ab75", "ma...
myTestRule { #Workflow operator to iterate through variable #Input parameters are: # Loop initiation # Loop termination # Loop increment # Workflow in brackets #Output from running the example is: # abcd *A = list("a","b","c","d"); *B = ""; for(*I=0;*I<4;*I=*I+1) { *B = *B ++ elem(*A, *I); ...
{"hexsha": "e6df334a9f1310545c2f3532b001258365679e97", "size": 384, "ext": "r", "lang": "R", "max_stars_repo_path": "iRODS/clients/icommands/test/rules3.0/ruleworkflowfor.r", "max_stars_repo_name": "PlantandFoodResearch/irods", "max_stars_repo_head_hexsha": "9dfe7ffe5aa0760b7493bd9392ea1270df9335d4", "max_stars_repo_li...
import numpy as np from sklearn.datasets import make_classification import mlsurvey as mls from .dataset import DataSet from .dataset_factory import DataSetFactory class NClassRandomClassificationWithNoise(DataSet): def generate(self): """ Generate data of make_classification from parameters ...
{"hexsha": "c82d2206faa158bca388936719a8850c9e357f90", "size": 1656, "ext": "py", "lang": "Python", "max_stars_repo_path": "mlsurvey/sl/datasets/nclassrandomclassificationwithnoise.py", "max_stars_repo_name": "jlaumonier/mlsurvey", "max_stars_repo_head_hexsha": "373598d067c7f0930ba13fe8da9756ce26eecbaf", "max_stars_rep...
\documentclass[../main]{subfiles} \begin{document} \thispagestyle{fancy} \setlength{\parindent}{18pt} \begin{onehalfspacing} \vspace*{75pt} \section*{\huge Abstract} The first part of this thesis is an analysis of the \textit{virtual large cardinals}, being critical points of set-sized generic element...
{"hexsha": "4c999c43d6ffa575b708c4b06f16483f6a5bb13a", "size": 2602, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "frontbackmatter/abstract.tex", "max_stars_repo_name": "saattrupdan/phd", "max_stars_repo_head_hexsha": "21481596be517c874e311797f5a70829e0cba7d3", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
import NumericalIntegration """ trapz(x, y) Compute the area under the curve of 2-dimensional points (x, y) using the trapezoidal method. """ function trapz end trapz(x, y) = trapz(promote(x, y)...) function trapz( x::AbstractVector{T}, y::AbstractVector{T}, )::T where T if length(x)...
{"hexsha": "5e9ee4f5decde3b3429cec6f1a4b92151e32b1ef", "size": 863, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/toplevel/always-loaded/utils/trapz.jl", "max_stars_repo_name": "UnofficialJuliaMirror/PredictMD.jl-3e7d7328-36f8-4388-bd01-4613c92c7370", "max_stars_repo_head_hexsha": "7987993b5900e658c3aa9c568...
from enum import Enum import numpy as np class InvalidMapError(Exception): """ Custom Exception for when an invalid map was created """ pass class Directions(Enum): EAST = 0 E = 0 NORTH = 1 N = 1 WEST = 2 W = 2 SOUTH = 3 S = 3 class MapTiles(Enum): U = -1 ...
{"hexsha": "6f180bc3ce6d03de1b475fa309c9bd800317ff21", "size": 2044, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils.py", "max_stars_repo_name": "erfannoury/cmsc671-fall2018-project", "max_stars_repo_head_hexsha": "7ba3867f0b512785fc1686c3b79e3c9c8c802deb", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
from pathlib import Path from PIL import Image import numpy as np import xml.etree.ElementTree as ET import random import pickle import torch import sys from utils.config import cfg anno_path = cfg.VOC2011.KPT_ANNO_DIR img_path = cfg.VOC2011.ROOT_DIR + 'JPEGImages' ori_anno_path = cfg.VOC2011.ROOT_DIR + 'Annotations_...
{"hexsha": "700b7344accf6e6906e67a605da5c83f9ab37a4c", "size": 11521, "ext": "py", "lang": "Python", "max_stars_repo_path": "data/pascal_voc.py", "max_stars_repo_name": "daniil-777/graph-matching", "max_stars_repo_head_hexsha": "3ae2522d42ea287edc2d5458bccb6b86ed05664e", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
[STATEMENT] lemma transfer_imp [transfer_intro]: "p \<equiv> eventually P \<U> \<Longrightarrow> q \<equiv> eventually Q \<U> \<Longrightarrow> p \<longrightarrow> q \<equiv> eventually (\<lambda>n. P n \<longrightarrow> Q n) \<U>" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>p \<equiv> eventually P \<U...
{"llama_tokens": 176, "file": null, "length": 1}
function [p,q] = detectAndMatchFeatures(image1,image1ROI,image2,image2ROI,featureOpts) %detectAndMatchFeatures: A wrapper for detecting and matching features %between two images using various feature detection methods. %Inputs % %image1: The first image (2D unit8, grayscale or rgb). % %image1ROI: A region-of-interest...
{"author": "tobycollins", "repo": "IPPE", "sha": "3304dfa40c7cbd046ba0d540b8b1143283c83f4e", "save_path": "github-repos/MATLAB/tobycollins-IPPE", "path": "github-repos/MATLAB/tobycollins-IPPE/IPPE-3304dfa40c7cbd046ba0d540b8b1143283c83f4e/matlab/IPPE_utils/detectAndMatchFeatures.m"}
# -*- coding: utf-8 -*- """ Created on Fri Jan 1 18:17:51 2021 @author: maple """ import numpy as np import scipy.linalg import h5py from numpy.polynomial import Polynomial import scipy.optimize import sys, os sys.path.append(os.path.abspath('qg_dns/analysis/eigenvectors')) from chm_utils import EigenvalueSolverFD...
{"hexsha": "b8078f0f52c84b40c321e0d79bac2dfb70fa6573", "size": 7814, "ext": "py", "lang": "Python", "max_stars_repo_path": "config_generator_multisort.py", "max_stars_repo_name": "Maplenormandy/qg-edgeofchaos", "max_stars_repo_head_hexsha": "a01bba48ef765c2ca3df6dc3d4fbcb66a51dcd1b", "max_stars_repo_licenses": ["MIT"],...
""" Random dummy dataset specification. """ # System import math from functools import partial # Externals import numpy as np import tensorflow.compat.v1 as tf from .cosmo import _augment_data def _parse_data(x, y, shape, apply_log=False, seed=None, do_augmentation=False, dist=None): if do_augmentation: ...
{"hexsha": "05d0bd75897a1f2d895cf366568468ab12743336", "size": 3050, "ext": "py", "lang": "Python", "max_stars_repo_path": "RIKEN/benchmarks/cosmoflow/implementations/implementation_fugaku_closed/cosmoflow-benchmark/data/dummy.py", "max_stars_repo_name": "bgerofi/hpc_results_v0.7", "max_stars_repo_head_hexsha": "9cd9fa...
[STATEMENT] lemma parts_init_2: "used s\<^sub>0 \<union> range (Hash \<circ> Agent) \<union> range (Hash \<circ> Auth_PubKey) \<union> range (\<lambda>n. \<lbrace>Hash (Agent n), Hash (Auth_PubKey n)\<rbrace>) \<subseteq> parts (used s\<^sub>0)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. used s\<^sub>0 \<un...
{"llama_tokens": 209, "file": "Relational_Method_Authentication", "length": 1}
import numpy as np from scipy.sparse import coo_matrix import pickle if __name__ == '__main__': ids = np.array([ 3052, 460, 3060, 3012, 5459, 5537, 5386, 5440, 5218, 5126, 5304, 6406, 4084, 6429, 595 , 2966, 605 , 2999, 1749, 1659, 1926, 1938, 2000, 2050, 307...
{"hexsha": "1ffdf606378a58d0485e36bbbae4d34a704ff03e", "size": 1154, "ext": "py", "lang": "Python", "max_stars_repo_path": "create_joint_regressor.py", "max_stars_repo_name": "Lotayou/SMPL", "max_stars_repo_head_hexsha": "6c00487b846ddf635bc782df19461c42bc1150e0", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
module BitBlit2D include("geometry/Geometry.jl") include("graphics/Graphics.jl") end
{"hexsha": "125484067e80dde6b9807a57801a953d11d2b3d6", "size": 87, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/BitBlit2D.jl", "max_stars_repo_name": "ordovician/BitBlit2D.jl", "max_stars_repo_head_hexsha": "cb2402a5a7fd9110331507cbf72855c9a7cf6a4b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Created: 07-2020 - Carmelo Mordini <carmelo> <carmelo.mordini@unitn.it> """Module docstring """ import numpy as np from scipy.ndimage.interpolation import shift from skimage.transform import rotate def lsq_match(a, b, mask): """ beta is best lstsq coeffici...
{"hexsha": "00dbeca78ae1390bfbd9ad8990b29211c282603a", "size": 2048, "ext": "py", "lang": "Python", "max_stars_repo_path": "becpy/imaging/correction.py", "max_stars_repo_name": "BEC-Trento/becpy", "max_stars_repo_head_hexsha": "9094052cc856fe1b533d933a42a86398fc77591c", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import xmlrpclib import socket import fcntl import struct import multiprocessing import numpy as np import sys import json import time #import mkl import os #mkl.set_num_threads(1) configs = json.load(open('/hom...
{"hexsha": "63482a999bb988096ed7ffd84a2bbda8ade4ec24", "size": 9029, "ext": "py", "lang": "Python", "max_stars_repo_path": "coded_computation_docker/apps/static/SlaveServer.py", "max_stars_repo_name": "krishnagirinarra/S2C2", "max_stars_repo_head_hexsha": "e844e01afff423643830e992dbc8578434c299e2", "max_stars_repo_lice...
%RT2TR Convert rotation and translation to homogeneous transform % % TR = RT2TR(R, t) is a homogeneous transformation matrix (MxM) formed from an % orthonormal rotation matrix R (NxN) and a translation vector t (Nx1) where % M=N+1. % % For a sequence R (NxNxK) and t (NxK) results in a transform sequence (MxMxK). % % N...
{"author": "Allopart", "repo": "rbpf-gmapping", "sha": "affe0adc25fa446fc7af4902d699d92864bdba1b", "save_path": "github-repos/MATLAB/Allopart-rbpf-gmapping", "path": "github-repos/MATLAB/Allopart-rbpf-gmapping/rbpf-gmapping-affe0adc25fa446fc7af4902d699d92864bdba1b/rvctools/robot/rt2tr.m"}
#!/usr/bin/env python """ uncertainty_sampler.py """ import sys import h5py from datetime import datetime import numpy as np from libact.base.dataset import Dataset from libact.models import LinearSVC from libact.query_strategies import UncertaintySampling class UncertaintySampler(object): def __init__...
{"hexsha": "fe0e7b1bc9455c38d72696abed3d34c4e074348b", "size": 1798, "ext": "py", "lang": "Python", "max_stars_repo_path": "tagless/uncertainty_sampler.py", "max_stars_repo_name": "jgawrilo/tagless", "max_stars_repo_head_hexsha": "0efacb10ad51eb0c54876cd60405aeee27ad98e5", "max_stars_repo_licenses": ["MIT"], "max_stars...
using Test, Random, LinearAlgebra, SparseArrays using Yao using QuAlgorithmZoo @testset "RotBasis" begin rt = RotBasis(0.5, 0.4) crt = chain(rt) dispatch!(crt, [2., 3.]) @test nparameters(crt) == 2 for (t1, t2, t3) in zip(parameters(rt), (2, 3), parameters(crt)) @test t1 == t2 == t3 ...
{"hexsha": "6ad3ed6ea847864dd9c7ed8cbc5a65bc80916dd3", "size": 942, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/RotBasis.jl", "max_stars_repo_name": "dgan181/QuAlgorithmZoo.jl", "max_stars_repo_head_hexsha": "071b02aaee0e1a035e9166a048a0273338788477", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars...
/******************************************************************** * * Software License Agreement (BSD License) * * Copyright (c) 2012, Max-Planck-Gesellschaft * Copyright (c) 2012-2015, Inria * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
{"hexsha": "4ac5a3a53b07470d3e12810a24f46b09442d9cc3", "size": 4061, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "matlab_ros_bridge/include/matlab_ros_bridge/GenericSubscriber.hpp", "max_stars_repo_name": "fabrizioschiano/matlab_ros_bridge", "max_stars_repo_head_hexsha": "e1def15741ba23942aaa8f7ad953baaa204b226...
import json import os from collections import defaultdict import networkx as nx import pandas as pd import stanza from networkx.algorithms.isomorphism import DiGraphMatcher from sklearn.metrics import precision_recall_fscore_support from tqdm import tqdm from tuw_nlp.grammar.text_to_4lang import TextTo4lang from tuw_n...
{"hexsha": "79de1435eace6729b4a564df96ae3210d23f0387", "size": 12624, "ext": "py", "lang": "Python", "max_stars_repo_path": "xpotato/graph_extractor/extract.py", "max_stars_repo_name": "adaamko/exp-relation-extraction", "max_stars_repo_head_hexsha": "0af5d95260809d3d130367f856e65e2e53e53c01", "max_stars_repo_licenses":...
# Developed since: Feb 2010 import numpy import upy.core __all__ = ['add', 'subtract', 'multiply', 'divide', 'power', \ 'less', 'less_equal', 'greater', 'greater_equal', 'equal', \ 'not_equal'] """Overloads the numpy operators in such a way, that in expressions undarrays have the highest precedence."...
{"hexsha": "94b462dc69cd0d3806c874ac8edec1ad4fb01c47", "size": 5425, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/upy2/pending/operators.py", "max_stars_repo_name": "friedrichromstedt/upy", "max_stars_repo_head_hexsha": "4b6b890259fb34bc69265fc400881587157b03a3", "max_stars_repo_licenses": ["MIT"], "max_s...