text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
######### StanVariational Bernoulli example ###########
using StanVariational
bernoulli_model = "
data {
int<lower=1> N;
int<lower=0,upper=1> y[N];
}
parameters {
real<lower=0,upper=1> theta;
}
model {
theta ~ beta(1,1);
y ~ bernoulli(theta);
}
";
bernoulli_data = Dict("N" => 10, "y" => [0, 1, 0, 1, 0... | {"hexsha": "effe8e684bc0f2a0b04528e371f220f8d8f18b61", "size": 848, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "examples/Bernoulli/bernoulli.jl", "max_stars_repo_name": "UnofficialJuliaMirror/StanVariational.jl-6ede68ce-8466-5085-8a79-4c4de3d9cf4a", "max_stars_repo_head_hexsha": "1e2c36b0186468a18b86908298d6e... |
"""Tests with pytest"""
import os
import numpy as np
if os.environ.get('LOG_DEBUG'):
np.set_printoptions(linewidth=300, threshold=np.nan, suppress=True, precision=17)
| {"hexsha": "4b274bdcfc8de01be8250d8db5f0b6ace4c9c50f", "size": 174, "ext": "py", "lang": "Python", "max_stars_repo_path": "buzzard/test/__init__.py", "max_stars_repo_name": "ashnair1/buzzard", "max_stars_repo_head_hexsha": "f9a9c2ac2929d997b1643f4730c67e3db45e181e", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars... |
using DiffEqBayes, OrdinaryDiffEq, ParameterizedFunctions, RecursiveArrayTools
using Stan, Mamba, Test
ProjDir = dirname(@__FILE__)
#=
Experimental link to DiffEqBayes examples
Possible issues to investigate:
1. Sampling results vary too much. chains often get stuck
2. @ode_def_nohes needs to be kept outside local ... | {"hexsha": "55e604f6bf8cbd23aaa95b927567bcc6daac0d44", "size": 1514, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "Examples/OtherExamples/DiffEqBayes/LotkaVolterra1/LotkaVolterra1.jl", "max_stars_repo_name": "fpmenninger/Stan.jl", "max_stars_repo_head_hexsha": "671e03a6e40748b070db206b0d8e907dbf90b86b", "max_st... |
// -------------------------------------------------------------------
// $ProjectName : DiagramDistanceRunner_D64
// $FileName : DiagramDistanceRunner_D64.cpp$
// $Programmer : Tran Quoc Hoan$
// -------------------------------------------------------------------
#include "stdafx.h"
#include "fstream"... | {"hexsha": "f6676a5a46aad1072538a68120f2ea67aaee50cc", "size": 20658, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "ph-compute/ScaleVariantTopo/DiagramDistanceRunner_D64/DiagramDistanceRunner_D64.cpp", "max_stars_repo_name": "OminiaVincit/scale-variant-topo", "max_stars_repo_head_hexsha": "6945bc42aacd0d71a6fb47... |
@testset "Basic Tests" begin
bob = Developer("Bob", 10000)
alice = SpecializedDeveloper("Alice", 15000, "Julia")
shortjob = ConcreteJob(10,bob)
@test_throws MethodError (longjob = ConcreteJob(100,alice))
longjob = Job(100,alice)
@test bob.name == "Bob"
@test bob.salary == 10000
... | {"hexsha": "757b2ccc8a7963ad04c93144c6cd1a25cc0fb878", "size": 1010, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/basic.jl", "max_stars_repo_name": "UnofficialJuliaMirror/HighLevelTypes.jl-66835562-f1c4-5586-a145-e564a3963a4b", "max_stars_repo_head_hexsha": "690ad6c9297ee0c220b4b5300a875cb613b3dda5", "max... |
import keras
from keras import models
from keras.models import load_model
import numpy as np
import tensorflow as tf
class Predictor:
def __init__(self,model_path='./models/model3.h5'):
self.model_path = model_path
self.model = keras.models.load_model(self.model_path)
#self.classe... | {"hexsha": "597cb12cce9249eedc20ac943fa33ebca491ffbd", "size": 898, "ext": "py", "lang": "Python", "max_stars_repo_path": "prediction_function.py", "max_stars_repo_name": "gall1frey/signals_decoder", "max_stars_repo_head_hexsha": "ab459624d12a7d7075aa4f1e53ef9aaa5c096642", "max_stars_repo_licenses": ["MIT"], "max_stars... |
import torchvision
from cortex.built_ins.datasets.torchvision_datasets import TorchvisionDatasetPlugin
from cortex.plugins import DatasetPlugin, register_plugin
from cortex._lib.data import _PLUGINS, DATA_HANDLER, DATASETS, DataHandler
from cortex._lib import exp
import logging
from src.data.transforms import Transform... | {"hexsha": "5e654a686e30c3f6ad82f9b4edc48a4ab980f3be", "size": 11838, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/data/dataset_plugins.py", "max_stars_repo_name": "Valentyn1997/oct-diagn-semi-supervised", "max_stars_repo_head_hexsha": "6fb5803fba23a8ad875235c90361be1a37eeeb72", "max_stars_repo_licenses":... |
from learner import Face_learner
import argparse
import torch
import numpy as np
import random
import os
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Inter-Prototype (BMVC 2021)')
# training
parser.add_argument("--epochs", help="training epochs", default=50, type=int)
parse... | {"hexsha": "c10491c7844b3c2eb2ff80c8d80677ff338316e9", "size": 3108, "ext": "py", "lang": "Python", "max_stars_repo_path": "train.py", "max_stars_repo_name": "parthagar/Inter-Prototype", "max_stars_repo_head_hexsha": "9434bbf1fb64700ae87269c48e87ca0b2705d936", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_cou... |
/-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.arctan
import analysis.special_functions.trigonometric.... | {"author": "jjaassoonn", "repo": "projective_space", "sha": "11fe19fe9d7991a272e7a40be4b6ad9b0c10c7ce", "save_path": "github-repos/lean/jjaassoonn-projective_space", "path": "github-repos/lean/jjaassoonn-projective_space/projective_space-11fe19fe9d7991a272e7a40be4b6ad9b0c10c7ce/src/analysis/special_functions/trigonomet... |
module Main
import System
countdown : (secs : Nat) -> IO ()
countdown Z = putStrLn "Kaboom"
countdown secs@(S k) = do putStrLn $ show secs
usleep 1000000
countdown k
| {"hexsha": "2e70b5ba8fbd018c5e6f6a31e4f3a6fb6d9b4367", "size": 221, "ext": "idr", "lang": "Idris", "max_stars_repo_path": "Chapter5/Loops.idr", "max_stars_repo_name": "robkorn/idris-type-driven-development-exercises", "max_stars_repo_head_hexsha": "d3dcf7e0e0707c991a20c020e671e6e0aa21cf84", "max_stars_repo_licenses": [... |
"""
This module contains the `PostProcessor` class.
It contains all advanced postprocessing functionalities that require Python 3.x packages like NumPy and Matplotlib.
"""
from __future__ import absolute_import
import math
import os
import time
import warnings
import csv
from pyaedt.generic.general_methods import ae... | {"hexsha": "3fd343c7d7fcbe3a99181ceb576a8c8007c8a865", "size": 66755, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyaedt/modules/AdvancedPostProcessing.py", "max_stars_repo_name": "pyansys/PyAEDT", "max_stars_repo_head_hexsha": "312d2d2a6c091dbae4272b6ce3ff489cdd21aa21", "max_stars_repo_licenses": ["MIT"], "... |
#!/usr/bin/env python
"""Functions for processing the data at stages 1 and 2"""
import csv
import os
import pandas as pd
import numpy as np
from collections import Counter
from bert_pt.bert.text_preprocessing import tokenizer_word, clean_text_for_language_model
__author__ = "Peter J Usherwood and Steve Smit"
__pyt... | {"hexsha": "07841c78277b944c4f26b798494e8700fb147192", "size": 6452, "ext": "py", "lang": "Python", "max_stars_repo_path": "bert/language_model_processing.py", "max_stars_repo_name": "Usherwood/bert_pt", "max_stars_repo_head_hexsha": "db6bd2ce9888335d72e1a483212e0ff16f96e503", "max_stars_repo_licenses": ["BSD-2-Clause"... |
import argparse
import os
import h5py
from SumMeVideo import SumMeVideo
from TVSumVideo import TVSumVideo
from VSUMMVideo import VSUMMVideo
from utils import *
import numpy as np
from PIL import Image
SUMME_MAPPED_VIDEO_NAMES = '../data/SumMe/mapped_video_names.json'
TVSUM_MAPPED_VIDEO_NAMES = '../data/TVSUM/mapped_vi... | {"hexsha": "f643da3d58a1cbebfcadc6a527fc4f6390e6fbcd", "size": 4017, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/video_images.py", "max_stars_repo_name": "TIBHannover/UnsupervisedVideoSummarization", "max_stars_repo_head_hexsha": "23ee079f7d0e71402a921aad6233a114f3b0bac9", "max_stars_repo_licenses": ["Ap... |
"""
image utils function
"""
import os, math
import os.path as osp
import numpy as np
import cv2
import scipy.ndimage as nd
import random
import torch
import krahenbuhl2013
from multiprocessing import Pool
# random scale
def random_scale_with_ratio(data, label, high_ratio, low_ratio, order=1):
assert data.ndim ==... | {"hexsha": "15e4aa6c5e00531edb8100bb7ee1851af324c290", "size": 12208, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/dataset/imutils.py", "max_stars_repo_name": "yaoqi-zd/SGAN", "max_stars_repo_head_hexsha": "43d8a859b03967e2423a73ef1ba332ee71714ba4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 4... |
#!/usr/bin/env python
"Come basic tests for the interface."
import numpy as np
import ricecomp
print "Testing rcomp/rdecomp with int8"
input = np.random.randint(-127,127,(20,5)).astype(np.int8)
buf = ricecomp.rcomp(input, 32)
output = ricecomp.rdecomp(buf, np.int8, input.size, 32).reshape(input.shape)
if (input!=out... | {"hexsha": "f8e591b68bbf898a4c2a7d86ea847bd7883dfe8c", "size": 2879, "ext": "py", "lang": "Python", "max_stars_repo_path": "test.py", "max_stars_repo_name": "tclarke/ricecomp-cfitsio-python", "max_stars_repo_head_hexsha": "aa9768c7d075ffda9dbd9bf2385fadd5d1ef110d", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_star... |
"""
In this script, I write useful method for Skill Set Challenge Hudson & Thames
"""
import numpy as np
def compute_log_returns(prices):
"""
Compute log returns for each ticker.
Parameters
----------
prices : DataFrame
Prices for each ticker and date
Returns
-------
log_ret... | {"hexsha": "9f57698a54568b7c6322468dd2870d81171efc06", "size": 1752, "ext": "py", "lang": "Python", "max_stars_repo_path": "Open-Source-Soldier-of-Fortune/jihobak-submission/utils.py", "max_stars_repo_name": "MPT-Quant/research", "max_stars_repo_head_hexsha": "b24e70a84fecaff4bc44a5c0bd8769ff00af7e6a", "max_stars_repo_... |
#include "dbinterface_SiteCache.h"
#include <boost/thread/mutex.hpp>
#include <boost/thread/lock_guard.hpp>
#include "dbtypes/dbtype_Id.h"
#include "dbinterface_CachedEntity.h"
#include "dbinterface_DbBackend.h"
#include "dbinterface_DbResultCode.h"
#include "text/text_StringConversion.h"
#include "logging/log_Log... | {"hexsha": "33774c17989bce8d5d8b3fe83ef0c48e86fbe402", "size": 5806, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/dbinterface/dbinterface_SiteCache.cpp", "max_stars_repo_name": "hyena/mutgos_server", "max_stars_repo_head_hexsha": "855c154be840f70c3b878fabde23d2148ad028b3", "max_stars_repo_licenses": ["MIT"]... |
import numpy as np
import argparse
import matplotlib.pyplot as plt
import pickle
import gzip
import time
import tkinter as tk
class Visual:
def __init__(
self,
):
window = tk.Tk()
window.title('my window')
window.geometry('1000x1000')
self.canvas = tk.Canvas(window, ... | {"hexsha": "3df47ef970ab7059bca244c76967914e2f49f78a", "size": 6340, "ext": "py", "lang": "Python", "max_stars_repo_path": "4.multithread_for_grid/visual.py", "max_stars_repo_name": "quantumiracle/DQN_traffic_light_-control", "max_stars_repo_head_hexsha": "464c17ba25ebcb49f78d6cdcc96d7fe3764d7508", "max_stars_repo_lice... |
\documentclass[]{article}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\else % if luatex or xelatex
\ifxetex
\usepackage{mat... | {"hexsha": "a1814935b98f245c840a1356fe15a299153760b6", "size": 12176, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "WIKI/tex2pdf.6768/input.tex", "max_stars_repo_name": "lorgiu/ChatScript", "max_stars_repo_head_hexsha": "619c7c956c8d5c3426acb8874cf235717e6ad9db", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
import pandas as pd
import numpy as np
import breaks
import break_node as BN
import math
from functools import partial
def zeroed_trip_triplets(num):
return np.zeros(num,dtype=[('x', int), ('y', int),('t',float)])
class Demand():
"""
A class to handle demand.
Primary job is to convert demand at a m... | {"hexsha": "97dfb3a0d2755ec6d3a0466a03532e7a6283b0b5", "size": 19553, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/demand.py", "max_stars_repo_name": "jmarca/initial-solution", "max_stars_repo_head_hexsha": "61766ef4dff6f1405fbaf9d13e271d13fda33ad7", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_c... |
"""Camera threads for continuous acquisition."""
from __future__ import print_function
import time
from Queue import Queue
import numpy as np
from camera import Camera
from log import logger
from PyQt4 import QtCore
class CameraThread(QtCore.QThread):
"""Thread class for producing live feed images from a camera... | {"hexsha": "e9c1f862f3cac708f34298cd1d36a798c82a4712", "size": 3162, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyandor/andor/camthread.py", "max_stars_repo_name": "SivyerLab/pyandor", "max_stars_repo_head_hexsha": "3023261b8c956f10050da1542f3e85b450f604d9", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
#from matplotlib2tikz import save as tikz_save
import pickle
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
from scipy.linalg import eigvals
from pyvib.helper.plotting import (phase, periodic, stability, configuration,
nfrc)
filename = 'data/nnm'
nnm1 = pickle... | {"hexsha": "c338e9b199679edfcf7a78992195de6cedef5d21", "size": 1192, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/2dof/nnm_plot.py", "max_stars_repo_name": "pawsen/pyvib", "max_stars_repo_head_hexsha": "4215ced8921cf45cb903377a460f0d494b7a271e", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars... |
import cv2
import os
from contextlib import contextmanager
from .geometry import Box, Point
import numpy as np
class Style:
def __init__(self, lineColor=0, fillColor=None):
self.lineColor = lineColor
self.fillColor = fillColor
pass
def copy(self):
s = Style()
s.lineColor... | {"hexsha": "1bcac989a755b90d9b3c368f1c1193f08eac53bf", "size": 8993, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools/renderer/canvas.py", "max_stars_repo_name": "shucheng-ai/WDA-tools", "max_stars_repo_head_hexsha": "d8e1ea6bd1286e57ed58f68b6ae29c83f490534b", "max_stars_repo_licenses": ["Apache-2.0"], "max... |
"""
$(DocStringExtensions.README)
"""
module DiffEqBayesStan
using DocStringExtensions
using DiffEqBase, Distributions, MacroTools
using RecursiveArrayTools, ModelingToolkit
using Parameters, Distributions, Optim, Requires
using Distances, DocStringExtensions, Random, StanSample
STANDARD_PROB_GENERATOR(prob,p) = rema... | {"hexsha": "45537f2c78f8b6e7dde360efd5dae40fd294c7a6", "size": 567, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/DiffEqBayesStan.jl", "max_stars_repo_name": "Vaibhavdixit02/DiffEqBayesStan.jl", "max_stars_repo_head_hexsha": "ff7a8f65cf64daec24de4fa492a1a1a9453abe5d", "max_stars_repo_licenses": ["MIT"], "ma... |
"""Start running Innanzi"""
from __future__ import annotations
from datetime import datetime
from logging import INFO as INFO_LOG_LEVEL
import numpy as np
import pandas as pd
import toml
from innanzi.util.logging import get_logger
RUN_LOG = get_logger(__name__, fmt="%(message)s")
RUN_LOG.setLevel(INFO_LOG_LEVEL)
... | {"hexsha": "dfd2bcb5a600c5a52f21dd3dd8e489b88dfc28eb", "size": 2653, "ext": "py", "lang": "Python", "max_stars_repo_path": "innanzi/start.py", "max_stars_repo_name": "nth10sd/innanzi", "max_stars_repo_head_hexsha": "95194ece9fb2ec70e1b5571a40d788978b0a8ab5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ... |
import numpy as np
import torch
from mmdet.core import AssignResult, BaseAssigner
from mmdet.core.bbox.builder import BBOX_ASSIGNERS
from mmdet.core.bbox.match_costs.builder import MATCH_COST, build_match_cost
try:
from scipy.optimize import linear_sum_assignment
except ImportError:
linear_sum_assignment = No... | {"hexsha": "1ceaa4d32e2ae20674676f3db33bc6b02ef41087", "size": 10836, "ext": "py", "lang": "Python", "max_stars_repo_path": "knet/det/mask_hungarian_assigner.py", "max_stars_repo_name": "yinchimaoliang/K-Net", "max_stars_repo_head_hexsha": "6aa30b870902d8904af41a14f68d8e9ace4ffb58", "max_stars_repo_licenses": ["Apache-... |
#!/usr/bin/env python3
####################################################################################################
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
#############################################... | {"hexsha": "7c43383ac35a4815934aa9216f6751906c36f8b6", "size": 100852, "ext": "py", "lang": "Python", "max_stars_repo_path": "accera/python/accera/test/mfma_tests.py", "max_stars_repo_name": "microsoft/Accera", "max_stars_repo_head_hexsha": "4ec583857853cfb318634aef9e671f73cedba662", "max_stars_repo_licenses": ["MIT"],... |
import numpy as np
from sklearn.metrics import average_precision_score, accuracy_score, f1_score
def check_inputs(targs, preds):
'''
Helper function for input validation.
'''
assert (np.shape(preds) == np.shape(targs))
assert type(preds) is np.ndarray
assert type(targs) is np.ndarray
... | {"hexsha": "dd4b8735b422fddfba9e38330498bd05d955660d", "size": 1986, "ext": "py", "lang": "Python", "max_stars_repo_path": "metrics.py", "max_stars_repo_name": "socar-tigger/single-positive-multi-label", "max_stars_repo_head_hexsha": "7d9a4969914bcdd2c9473c982b1aca1467e71170", "max_stars_repo_licenses": ["MIT"], "max_s... |
import math
import numpy as NP
LC1=eval(input("Enter DRs of Line 1 : "))
LP1=eval(input("Enter Coordinate through which Line 1 passes : "))
LC2=eval(input("Enter DRs of Line 2 : "))
LP2=eval(input("Enter Coordinate through which Line 2 passes : "))
a1,b1,c1,a2,b2,c2=LC1[0],LC1[1],LC1[2],LC2[0],LC2[1],LC2[2]
x=NP.array... | {"hexsha": "67f3fd34e66f3cd30382e718c663ae8000d36a8b", "size": 472, "ext": "py", "lang": "Python", "max_stars_repo_path": "Shortest Distance between Two Lines.py", "max_stars_repo_name": "wisarut-si/Python", "max_stars_repo_head_hexsha": "2d86bf072f3e7276074f2fd2d3d9881be1248a18", "max_stars_repo_licenses": ["MIT"], "m... |
import topology.subset_properties
variables (X Y : Type) [topological_space X] [topological_space Y] (f : X → Y)
open filter set
open_locale filter -- for 𝓟
open_locale topological_space -- for 𝓝
/-
## Neighbourhood filters
If `α` is a topological space and `a : α` then `𝓝 a` is the following
filter on `α`: `... | {"author": "ImperialCollegeLondon", "repo": "formalising-mathematics", "sha": "7cf1d51c27e2038d2804561d63c74711924044a1", "save_path": "github-repos/lean/ImperialCollegeLondon-formalising-mathematics", "path": "github-repos/lean/ImperialCollegeLondon-formalising-mathematics/formalising-mathematics-7cf1d51c27e2038d28045... |
C @(#)ldptiare.f 20.10 3/29/99
C****************************************************************
C
C File: ldptiare.f
C
C Purpose: Routine to load PTI LTC Area Interchange data from
C raw data file
C
c Return code: n = 0 : Success
c n = 1 : Error
c
C Author... | {"hexsha": "442eb2de3fcedcf5dd2ea33a6baaa48f71decd9c", "size": 4185, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ipf/ldptiare.f", "max_stars_repo_name": "mbheinen/bpa-ipf-tsp", "max_stars_repo_head_hexsha": "bf07dd456bb7d40046c37f06bcd36b7207fa6d90", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 14,... |
import os
import math
import random
from time import time, sleep
from collections import OrderedDict
import numpy as np
from scipy.stats import describe
from tqdm import tqdm
from chunkflow.chunk import Chunk
from chunkflow.lib.bounding_boxes import Cartesian
from chunkflow.lib.synapses import Synapses
from cloudvol... | {"hexsha": "062738c01ba6a3388af39238d6a48c489e8a25c7", "size": 7887, "ext": "py", "lang": "Python", "max_stars_repo_path": "neutorch/dataset/post_synapses.py", "max_stars_repo_name": "brain-map/neutorch", "max_stars_repo_head_hexsha": "0fc0c2845e8d513b0a130b6d001a26833c89a63a", "max_stars_repo_licenses": ["Apache-2.0"]... |
from __future__ import division
import math
import os
import numpy as np
from collections import defaultdict
from nltk.stem.lancaster import LancasterStemmer
st = LancasterStemmer()
from unidecode import unidecode
# Global class labels.
POS_LABEL = 'pos'
NEG_LABEL = 'neg'
# Stopwords from http://www.ranks.nl/sto... | {"hexsha": "d34662748a089381666558bca037f7e4bac0e25b", "size": 14473, "ext": "py", "lang": "Python", "max_stars_repo_path": "nb_sentiment_classify.py", "max_stars_repo_name": "morsecodist/CS_585_Naive_Bayes_Sentiment_Classifier", "max_stars_repo_head_hexsha": "8e9e47303ab2aabb87f32fe38a3b4a8c80b67821", "max_stars_repo_... |
import os
from shutil import copyfile
import numpy as np
from networkml.utils.model import Model
def test_augment_data():
model = Model(10, labels=['Unknown'])
a = [[1, 2, 3], [4, 5, 6]]
x = np.array(a)
a = ['label1', 'label2', 'label3']
y = np.array(a)
model._augment_data(x, y)
| {"hexsha": "acb1d4e616a95c1bfd136a8a251ea2ec42deeb31", "size": 308, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_utils_model.py", "max_stars_repo_name": "jspeed-meyers/NetworkML", "max_stars_repo_head_hexsha": "cb7ce4469d5f71a6fc110646d9f477ccf871f549", "max_stars_repo_licenses": ["Apache-2.0"], "m... |
# Copyright (c) 2019 CNES
#
# All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""
RTree spatial index
-------------------
"""
from typing import Optional, Tuple
import sys
import numpy as np
from . import core
from . import geodetic
class RTree:... | {"hexsha": "f696a4f2ab4bb63cede01bd972221431ede47448", "size": 7165, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/pyinterp/rtree.py", "max_stars_repo_name": "apatlpo/pangeo-pyinterp", "max_stars_repo_head_hexsha": "b5242c6869d7e601a5695b304c81992deb63367d", "max_stars_repo_licenses": ["BSD-3-Clause"], "ma... |
"""
@ Filename: TreeRegression.py
@ Author: Danc1elion
@ Create Date: 2019-05-11
@ Update Date: 2019-05-13
@ Description: Implement TreeRegression
"""
import numpy as np
import operator as op
import preProcess
import math
import pickle
class treeNode():
def __init__(self, index=-1, value=No... | {"hexsha": "b70afbdc3b1081492c985f1f6add28f4adadcc63", "size": 8906, "ext": "py", "lang": "Python", "max_stars_repo_path": "TreeRegression.py", "max_stars_repo_name": "ProblemTryer/MachineLearning", "max_stars_repo_head_hexsha": "e3a75d787078da2a03ca1b824a0c319e3020a4cd", "max_stars_repo_licenses": ["Apache-2.0"], "max... |
import os
from pathlib import Path
import numpy as np
import torch
import torch as T
import torch.nn as nn
from bagoftools.logger import Logger
from bagoftools.namespace import Namespace
from torch.utils.data import DataLoader
import models
from src.models.utils import make_model
from src.utils.data_loader import Ima... | {"hexsha": "d7c5674fe055a599aeb14bac616d109fdb61eb6d", "size": 2237, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/scripts/test.py", "max_stars_repo_name": "panpiort8/CatAutoEncoderCompressor", "max_stars_repo_head_hexsha": "880de9e354de13e87f81714a50115c9d7e23453f", "max_stars_repo_licenses": ["MIT"], "ma... |
import numpy as np
"""
creating the designmatrix
def create_X(x, y, n):
if len(x.shape) > 1:
x = np.ravel(x)
y = np.ravel(y)
N = len(x)
l = int((n+1)*(n+2)/2) # Number of elements in beta, number of feutures (degree of polynomial)
X = np.ones((N,l))
for i in range(1,n+1):
q = int((i)*(i+1)/2)
for k in... | {"hexsha": "bc76f4e6949be48857e970cf2d5ae689da92e88f", "size": 3364, "ext": "py", "lang": "Python", "max_stars_repo_path": "projects/2project/arkive/FFNN_trial.py", "max_stars_repo_name": "fridtjrg/FYS-STK4155", "max_stars_repo_head_hexsha": "071a039c9c9994c0d125b9432c05ddb08991bca9", "max_stars_repo_licenses": ["MIT"]... |
\documentclass[../ewet_cwc_report.tex]{subfiles}
\begin{document}
\section{Design Objectives and Components}
\noindent
The objective of our turbine design team was to create a
turbine that performed well in the CWC test environment. The
turbine had to fit within the bounding box shown in
Figure \ref{img:constraints}.... | {"hexsha": "acf8257b6ca9aacf9a9a21deffaa34770ca25151", "size": 1561, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "CWC_Report/design_objectives/design_objectives.tex", "max_stars_repo_name": "troberson/artemis-project", "max_stars_repo_head_hexsha": "2c3f1b29aad28770e80d104a4ee553411ac27056", "max_stars_repo_lic... |
subroutine ilo2ho(n, Hnnz, colptr, rowind, newptr, newind, ip)
implicit none
c
c Purpose:
c
c This routine converts the lower triangluar representation
c of symmetric sparse matrix pattern to its full representation
c (i.e. both upper and lower triangular indices are stored.
c ... | {"hexsha": "9b8b66359ae533563390de8e6a6d317ee6a3fec5", "size": 3194, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "LIB/ilo2ho.f", "max_stars_repo_name": "Pangqiyuangh/SeIInv", "max_stars_repo_head_hexsha": "2a6713dc19f0f816ecbc5d20c77b5c0a1974b852", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count": ... |
import tensorflow as tf
import keras
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
model = keras.models.load_model('model.h5')
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data(path="mnist.npz")
xs_test = []
ys_test = []
for image in tqdm(x_test):
x = []
y = ... | {"hexsha": "c9ecd1d2dcb8be3ab0dbaed9a2cc9311b58af1af", "size": 940, "ext": "py", "lang": "Python", "max_stars_repo_path": "test_model.py", "max_stars_repo_name": "Maicon-Moreira/complete-my-number", "max_stars_repo_head_hexsha": "518fb798ad360ae116a6cebf5d620c3e82e2b9a9", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
import numpy as np
from sklearn import metrics
def get_confusion_matrix(true_labels, pred_labels):
#print (true_labels, pred_labels)
print ('true_labels', true_labels, 'pred_labels', pred_labels)
new_labels_true, true_labels, pred_labels = np.array(true_labels[:]), np.array(true_labels), np.array(pred_labels)
nu... | {"hexsha": "dd4ca2ebc9c546d0ded807cc809e058a279624b4", "size": 3496, "ext": "py", "lang": "Python", "max_stars_repo_path": "confusion_matrix.py", "max_stars_repo_name": "isukrit/get_confusion_matrix", "max_stars_repo_head_hexsha": "7e594e042ce7f766ddf36e1104cef99dff4b594b", "max_stars_repo_licenses": ["MIT"], "max_star... |
/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | {"hexsha": "4e4baacabc966c59090864681742ed797ccc0ddf", "size": 6340, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "external/include/mapnik/expression_node.hpp", "max_stars_repo_name": "Wujingli/OpenWebGlobeDataProcessing", "max_stars_repo_head_hexsha": "932eaa00c81fc0571122bc618ade010fa255735e", "max_stars_repo_... |
from __future__ import absolute_import
import numpy as np
from autograd.core import (Node, VSpace,
SparseObject, primitive, vspace,
register_node, register_vspace, getval)
from . import numpy_wrapper as anp
@primitive
def take(A, idx):
return A[idx]
def grad_t... | {"hexsha": "ca57d5b804362ce77ce40d40cbb4335ee19159fd", "size": 5482, "ext": "py", "lang": "Python", "max_stars_repo_path": "auto_gradient/autograd/numpy/numpy_extra.py", "max_stars_repo_name": "juliaprocess/ml_libs", "max_stars_repo_head_hexsha": "52cac5d64b55a12dfbdad1c768cdd8d79d5789f5", "max_stars_repo_licenses": ["... |
import os.path
from data.base_dataset import BaseDataset, get_transform
from data.image_folder import make_dataset
from PIL import Image
import random
import os.path
import os
from PIL import ImageMath
from data.base_dataset import BaseDataset, get_params, get_transform
from data.image_folder import make_datas... | {"hexsha": "64b1799ec743f603611620a3a620eb2ebf3c5979", "size": 13922, "ext": "py", "lang": "Python", "max_stars_repo_path": "data/midas_dataset.py", "max_stars_repo_name": "sepideh-srj/flashNoflash", "max_stars_repo_head_hexsha": "8233e8bb03e5e696e5101584fa854476c33a7e60", "max_stars_repo_licenses": ["BSD-3-Clause"], "... |
# This file is a part of Julia. License is MIT: https://julialang.org/license
using Test
using SuiteSparse
if Base.USE_GPL_LIBS
include("umfpack.jl")
include("cholmod.jl")
include("spqr.jl")
end
| {"hexsha": "f27f76068991a7c177eca06b806414088158de71", "size": 206, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "stdlib/SuiteSparse/test/runtests.jl", "max_stars_repo_name": "YingboMa/julia", "max_stars_repo_head_hexsha": "3bcc952d9642a87d0a113644d01d2d426e1f8f84", "max_stars_repo_licenses": ["Zlib"], "max_sta... |
"""
select_top
This file is a part of BdPy.
"""
__all__ = ['select_top']
import numpy as np
from .util import print_start_msg, print_finish_msg
def select_top(data, value, num, axis=0, verbose=True):
"""
Select top `num` features of `value` from `data`
Parameters
----------
data : array
... | {"hexsha": "0ebc7f38437b16779b4b2ecb2f7ee6bd85bfbe24", "size": 1294, "ext": "py", "lang": "Python", "max_stars_repo_path": "bdpy/preproc/select_top.py", "max_stars_repo_name": "hirano1412/bdpy", "max_stars_repo_head_hexsha": "cee6f36dcdf4f4d29fc3a6980777e1c3d7c66cbb", "max_stars_repo_licenses": ["MIT"], "max_stars_coun... |
import pygame # Tested with pygame v1.9.6
import numpy as np
from Constants import *
from UIControls import *
import threading
import random
import time
###############################################
# Globals
###############################################
# pygame screen
screen = pygame.display.set_mode((WINDOW_WI... | {"hexsha": "ffb3b063f381092df416d8bef1eedd639141fedd", "size": 10158, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/GeniusSquare/GeniusSquare/GeniusSquare.py", "max_stars_repo_name": "James-P-D/GeniusSquare", "max_stars_repo_head_hexsha": "f136b0b2118dffff8c9688a1822d04cccfe196f6", "max_stars_repo_licenses... |
# deployment: https://dataviz.shef.ac.uk/blog/03/07/2020/Deploy-Your-Dash-App
#
#%% Importing libraries
# from tkinter import OFF
import dash
from dash import dcc
from dash import html
from dash.dependencies import Output, Input
# from matplotlib.pyplot import figure
import plotly.express as px
import plotly.graph_ob... | {"hexsha": "a54289a634e8441d4fe1cdcb1649f01a67bb64d6", "size": 12007, "ext": "py", "lang": "Python", "max_stars_repo_path": "app/app.py", "max_stars_repo_name": "vikramnayyar/Dineout-Restaurant-Analysis", "max_stars_repo_head_hexsha": "c11b07f20178ab88eb3401ded6e7754ffa72f560", "max_stars_repo_licenses": ["Apache-2.0"]... |
[STATEMENT]
lemma ta_union_rta:
fixes TA TA'
assumes TA: "ranked_tree_automaton TA A"
assumes TA': "ranked_tree_automaton TA' A"
shows "ranked_tree_automaton (ta_union TA TA') A"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. ranked_tree_automaton (ta_union TA TA') A
[PROOF STEP]
proof -
[PROOF STATE]
proof... | {"llama_tokens": 1008, "file": "Tree-Automata_Ta", "length": 13} |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import femagtools
import femagtools.machine
import numpy as np
import matplotlib.pylab as pl
bch = femagtools.read_bchfile('../bch-erg/TEST_001.BCH')
beta = bch.ldq['beta']
i1 = bch.ldq['i1']
torque = bch.ldq['torque']
r10 = 0.1
p = 4
pm = femagtools.machine.create(bch,... | {"hexsha": "cf9532260709f56ecb2c2f6e470ff8c447591f7f", "size": 2114, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/analytical-model/fieldweakening.py", "max_stars_repo_name": "dapu/femagtools", "max_stars_repo_head_hexsha": "95eaf750adc2013232cdf482e523b3900ac6eb08", "max_stars_repo_licenses": ["BSD-2... |
[STATEMENT]
lemma sameFw_behave_sets:
"\<forall>w\<in>set A. \<forall>a1 \<in> w. \<forall>a2 \<in> w. same_fw_behaviour_one a1 a2 c rs \<Longrightarrow>
\<forall>w1\<in>set A. \<forall>w2\<in>set A. \<exists>a1\<in>w1. \<exists>a2\<in>w2. same_fw_behaviour_one a1 a2 c rs \<Longrightarrow>
\<forall>w1\<in>set A... | {"llama_tokens": 2772, "file": "Simple_Firewall_Service_Matrix", "length": 11} |
#include <boost/ratio/mpl/lcm.hpp>
| {"hexsha": "ae772d9f6991197b66e910016482ef443089a1b4", "size": 35, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_ratio_mpl_lcm.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["BSL-1.0"], "max... |
#!/usr/bin/env python
from __future__ import print_function
import sys,string,os
sys.path.insert(1, os.path.join(sys.path[0], '..')) ### import parent dir dependencies
import numpy as np
import pylab as pl
import sys,string
import os
import os.path
import scipy
import operator
from collections import OrderedDict
from ... | {"hexsha": "6fe453509ccc04467f9fa4a6fa60dbbd22c8be7b", "size": 4321, "ext": "py", "lang": "Python", "max_stars_repo_path": "visualization_scripts/Orderedheatmap.py", "max_stars_repo_name": "michalkouril/altanalyze", "max_stars_repo_head_hexsha": "e721c79c56f7b0022516ff5456ebaa14104c933b", "max_stars_repo_licenses": ["A... |
# Lint as: python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | {"hexsha": "d1e57268d9d0fb6439b88a3779e73cd4141956f6", "size": 13207, "ext": "py", "lang": "Python", "max_stars_repo_path": "integrations/tensorflow/bindings/python/pyiree/tf/support/tf_utils.py", "max_stars_repo_name": "rise-lang/iree", "max_stars_repo_head_hexsha": "46ad3fe392d38ce3df6eff7826cc1ab331a40b72", "max_sta... |
import data.real.basic
import data.real.nnreal
import analysis.special_functions.pow
theorem CAMOProblemsProblem1_2020 (f : nnreal -> nnreal) :
(∀ x y : nnreal, f(x)*f(y)*f(x+y) = f(x)+f(y) - f(x+y)) →
(∃ a : nnreal, (a > 1 ∧ ∀ x : nnreal, f(x) = (a.rpow x -1) / (a.rpow x +1))):= sorry | {"author": "ahayat16", "repo": "lean_exos", "sha": "682f2552d5b04a8c8eb9e4ab15f875a91b03845c", "save_path": "github-repos/lean/ahayat16-lean_exos", "path": "github-repos/lean/ahayat16-lean_exos/lean_exos-682f2552d5b04a8c8eb9e4ab15f875a91b03845c/src_icannos_totilas/aops/2020_CAMO_Problem_1.lean"} |
/* Test program to test find functions of triagular matrices
*
* author: Gunter Winkler ( guwi17 at gmx dot de )
*/
// ublas headers
#include <boost/numeric/ublas/experimental/sparse_view.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ubla... | {"hexsha": "ce4602c6d37b92315ee5333954179deab60f2a97", "size": 2930, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "boost/libs/numeric/ublas/test/sparse_view_test.cpp", "max_stars_repo_name": "randolphwong/mcsema", "max_stars_repo_head_hexsha": "eb5b376736e7f57ff0a61f7e4e5a436bbb874720", "max_stars_repo_licenses"... |
"""
Retrain the YOLO model for your own dataset.
>> python train_bottleneck.py \
--path_dataset ./model_data/VOC_2007_train.txt \
--path_weights ./model_data/tiny-yolo.h5 \
--path_anchors ./model_data/tiny-yolo_anchors.csv \
--path_classes ./model_data/coco_classes.txt \
--path_outpu... | {"hexsha": "6366759d6f95317d33fec28578022bb8f38a06d9", "size": 8031, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/train_bottleneck.py", "max_stars_repo_name": "jatinmandav/keras-yolo3", "max_stars_repo_head_hexsha": "67739e6ec92cc5213addc9309c6d3261279f54ec", "max_stars_repo_licenses": ["MIT"], "max_s... |
import math
import numpy as np
import pytest
import vg
around_axis = np.array([0.0, 2.0, -1.0])
def test_rotate():
# Example verified using
# http://www.nh.cas.cz/people/lazar/celler/online_tools.php?start_vec=1,1,1&rot_ax=0,2,-1&rot_ang=180
v = np.array([1.0, 1.0, 1.0])
np.testing.assert_array_alm... | {"hexsha": "4d661698dc8e48bc696c2705fb1bf0dd1bb3070e", "size": 1417, "ext": "py", "lang": "Python", "max_stars_repo_path": "vg/test_rotate.py", "max_stars_repo_name": "lace/vx", "max_stars_repo_head_hexsha": "33134cae43d7729b6128b198119e1593035066ae", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_count": 100,... |
\documentclass{article}
\usepackage[margin=2.5cm]{geometry}
\usepackage{amsmath, amssymb, stmaryrd}
\usepackage{mathpazo, times}
\usepackage{float}
\usepackage{listings}
\newcommand{\sLam}[2]{\lambda {#1} \cdot {#2}}
\newcommand{\sApp}[2]{{#1} {#2}}
\newcommand{\sBind}[2]{{#1} \mathrel{\texttt{>}\!\!\texttt{>}\!\textt... | {"hexsha": "5a223e5b114ad1f9ae735fc06c2cdcf9ab1758bb", "size": 23769, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/semantics/CloudHaskellSemantics.tex", "max_stars_repo_name": "turtlecoder/distributed-process", "max_stars_repo_head_hexsha": "660d554f6acd2dba8b605c84e8fa69e45708bc14", "max_stars_repo_license... |
[STATEMENT]
lemma inc_i: "1 \<le> i \<Longrightarrow> i < m \<Longrightarrow> 1 \<le> i + 1 \<and> i + 1 \<le> m"
for i m :: "'a::len word"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>1 \<le> i; i < m\<rbrakk> \<Longrightarrow> 1 \<le> i + 1 \<and> i + 1 \<le> m
[PROOF STEP]
by uint_arith | {"llama_tokens": 137, "file": null, "length": 1} |
#!/usr/bin/env python
#
# Copyright 2019 DFKI GmbH.
#
# 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": "dfd6f691ef815c92f0feb2bba03501560990e9e1", "size": 11851, "ext": "py", "lang": "Python", "max_stars_repo_path": "vis_utils/scene/components/plotting.py", "max_stars_repo_name": "eherr/vis_utils", "max_stars_repo_head_hexsha": "b757b01f42e6da02ad62130c3b0e61e9eaa3886f", "max_stars_repo_licenses": ["MIT"], "m... |
#!/usr/bin/env pnpython3
#
# A simple class to read SEG-Y rev 1 files
#
# Steve Azevedo, April 2013
#
import sys
import logging
import os
import exceptions
import construct
import numpy as np
from ph5.core import segy_h, ebcdic
PROG_VERSION = '2018.268'
LOGGER = logging.getLogger(__name__)
SAMPLE_LENGTH = {1: 4, 2: ... | {"hexsha": "be227c1c816481fe3824e0fd7875fbd01d771772", "size": 14611, "ext": "py", "lang": "Python", "max_stars_repo_path": "ph5/core/segyreader.py", "max_stars_repo_name": "mbriggs134/PH5", "max_stars_repo_head_hexsha": "691790269c4f80c892bacb84fdcaba905b9e0d6b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
function string_code_unit(s::String, i::Integer)
if i <= length(s)
return codeunit(s,i)
else
return 0x00
end
end
function stringsort!(vs::AbstractVector{T}, maxj::Integer = maximum(length.(vs)), j::Integer = 1) where T<:String
l = length(vs)
bin = zeros(UInt32, 256)
# compute ... | {"hexsha": "c1c3a1ad5da059d03ebf580658717b1e8c75d85a", "size": 1664, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/experiments/too_slow/string_msd.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/FastGroupBy.jl-e6aeac8e-85c6-520e-8612-effc59bc0f33", "max_stars_repo_head_hexsha": "6ff821172ef37ba4... |
(* Title: perfect/Safety_Perfect.thy
Author: Sven Linker
Distance and Lane change controller for cars with perfect sensors.
Safety theorem and invariance with respect to switching views.
*)
section\<open>Safety for Cars with Perfect Sensors\<close>
text\<open>
This section contains the definition of req... | {"author": "data61", "repo": "PSL", "sha": "2a71eac0db39ad490fe4921a5ce1e4344dc43b12", "save_path": "github-repos/isabelle/data61-PSL", "path": "github-repos/isabelle/data61-PSL/PSL-2a71eac0db39ad490fe4921a5ce1e4344dc43b12/SeLFiE/Example/afp-2020-05-16/thys/Hybrid_Multi_Lane_Spatial_Logic/perfect/Safety_Perfect.thy"} |
using ThreeBodyDecay
using Plots
H1(two_τ,two_j,two_L) = CG_doublearg(two_L,0,two_j,two_τ,1,two_τ)
H2(two_μ,two_λ,two_j,two_s,two_l) = CG_doublearg(2,two_μ,1, -two_λ,two_s,two_μ-two_λ)*
CG_doublearg(two_l,0,two_s,two_μ-two_λ,two_j,two_μ-two_λ)
#
I(cosθ,two_j,two_s,two_l,two_L) = ... | {"hexsha": "6e3d755dc52fc185aff8b2363c03478778f44080", "size": 2342, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "example/Lb2JpsipK.jl", "max_stars_repo_name": "mmikhasenko/ThreeBodyDecay", "max_stars_repo_head_hexsha": "490ce3168a4a88a30ff5cb99c347fb8b0fc30922", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
! --------------------------------------------------------------------
!
! Copyright (C) 2015 Rocco Meli
!
! This program is free software: you can redistribute it and/or modify
! it under the terms of the GNU General Public License as published by
! the Free Software Foundation, either version 3 of the License, or
! (... | {"hexsha": "50276e7a57fb519c0d21d1839696cfbbdc1b3445", "size": 1766, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "Fortran90/tests/boys_test.f90", "max_stars_repo_name": "RMeli/Hartree-Fock", "max_stars_repo_head_hexsha": "dda0102ab2a88f3f2f666c2479a858140505ea60", "max_stars_repo_licenses": ["MIT"], "max_st... |
#! /usr/bin/python
from BaseFeatures import BaseFeatures
import cv2
import numpy as np
class VeinFeatures(BaseFeatures):
"""basic geometric features"""
_base_image = 'g'
def __init__(self, sample_path, species_name):
BaseFeatures.__init__(self, sample_path, species_name)
def process(self):
... | {"hexsha": "7b733112d74ad883e7b4b77a02856ad4d05a7161", "size": 495, "ext": "py", "lang": "Python", "max_stars_repo_path": "leaf_recognition/features/VeinFeatures.py", "max_stars_repo_name": "xudshen/leaf_recognition", "max_stars_repo_head_hexsha": "6a47b02b247ff2c686dbd8df10770a207a7d5bf5", "max_stars_repo_licenses": [... |
import numpy
import os
from skfuzzy import gaussmf
from anfis1 import ANFIS
from membership.membership_functions import MemFuncs
from utils.utils import plotMFs
from datetime import datetime
ts = numpy.loadtxt(os.path.realpath("../anfis/data/iris/irisTrain.dat"), usecols=[0, 1, 2, 3, 4])
X = ts[:, 0:4]
Y = ts[:, 4... | {"hexsha": "ce6a391e176c683f1bcfed10b5312d69b0514445", "size": 2506, "ext": "py", "lang": "Python", "max_stars_repo_path": "anfis/test_gauss.py", "max_stars_repo_name": "redcyb/anfis_experiments", "max_stars_repo_head_hexsha": "2446b3a47ebe98d18b3655d8dcb0f00426bc3e84", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
from scipy.optimize import linear_sum_assignment
#import dlib # DLIB is faster than scipy.
import numpy as np
def min_cost_matching(cost_array, cost_infeasible=1e10, solver='scipy'):#dlib'):
if solver == 'scipy':
return linear_sum_assignment(cost_array)
elif solver == 'dlib':
n_rows, n_cols =... | {"hexsha": "50b173704b2c176851226d50227dbc614b816b34", "size": 1273, "ext": "py", "lang": "Python", "max_stars_repo_path": "min_cost_matching.py", "max_stars_repo_name": "ekQ/flan", "max_stars_repo_head_hexsha": "03eb6207ddbd71649ac103a0fa84676701d737c4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_s... |
import random
import numpy
from collections import defaultdict
import itertools
from pace.definitions import *
from pace.data import load_dataset
from typing import NamedTuple, Optional, Set
def score_by_ppv(truth, predictions, top_n=None):
"""
Score a set of predictions by ranking them and determining what f... | {"hexsha": "589ddc6a7cc3a9b1f9abd337c8399adbba127848", "size": 12824, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/pace/evaluation.py", "max_stars_repo_name": "tmadden/pace", "max_stars_repo_head_hexsha": "0be5d92579efc4e6219f5c58bb4e4ac6754e865e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu... |
import enum, pickle, typing
import numpy as np
import pandas as pd
from contextual_robustness.utils import set_df_dtypes, _create_output_path, _set_tf_log_level, Timer, _ms_to_human
from abc import ABCMeta, abstractmethod
_set_tf_log_level()
# Default values
DEFAULTS = dict(
eps_lower=0.0,
eps_upper=1.0,
... | {"hexsha": "cf29f277f3100e06d0d1a48dd38fcfb9685eab12", "size": 13430, "ext": "py", "lang": "Python", "max_stars_repo_path": "contextual_robustness/base.py", "max_stars_repo_name": "grese/contextual-robustness", "max_stars_repo_head_hexsha": "65aeb66e4c8f87cc77b8d1034afae4513f20a446", "max_stars_repo_licenses": ["MIT"],... |
"""
Processing example using a Mahr file format (txt).
The code loads a file, builds the q-spectrum and displays the image.
Note that invalids are replaced with NAN.
"""
import sys
import time
import getopt
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.axes_grid1 import mak... | {"hexsha": "73e8449aefc3d51f9f8a57d904b1638f69af6c10", "size": 5758, "ext": "py", "lang": "Python", "max_stars_repo_path": "example/qspectrum.py", "max_stars_repo_name": "zhaolei24/Scikit-qfit", "max_stars_repo_head_hexsha": "0fe797d198f4762f5162638921f71ec8234d455a", "max_stars_repo_licenses": ["MIT"], "max_stars_coun... |
module Models
using Bridge, StaticArrays, Distributions
export Lorenz, ℝ, foci, Tilde, Pendulum
const ℝ{N} = SVector{N, Float64}
using Bridge: outer
struct FitzHughNagumo <: ContinuousTimeProcess{ℝ{2}}
ϵ::Float64
s::Float64
γ::Float64
β::Float64
σ1::Float64
σ2::Float64
end
Bridge.b(t, x, P:... | {"hexsha": "c88bf716df0823b1939173d564db6c9d79f0a0fd", "size": 2580, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Models.jl", "max_stars_repo_name": "mschauer/Bridge.jl", "max_stars_repo_head_hexsha": "b09488fe6b0ebc6d4015b74b6cb3036cc4eaabb9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 98, "ma... |
[STATEMENT]
lemma sum_ssub_nth_digit_commute:
shows "nth_digit (\<Sum>S- p j (\<lambda>k. s k && z (l k))) t b
= \<Sum>S- p j (\<lambda>k. nth_digit (s k && z (l k)) t b)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. nth_digit \<Sum>S- p j (\<lambda>k. s k && z (l k)) t b = \<Sum>S- p j (\<lambda>k. nt... | {"llama_tokens": 2336, "file": "DPRM_Theorem_Register_Machine_MultipleToSingleSteps", "length": 13} |
# -*- coding: utf-8 -*-
import numpy as np
from pysilcam.acquisition import Acquire
from pysilcam.background import backgrounder
def test_background_aquire():
'''Testing background-corrected frame acquisition'''
aq = Acquire()
aqgen = aq.get_generator()
# Check that we can generate background-corred... | {"hexsha": "921bcc3db381a3472ce14cf5098f87fb817cd457", "size": 805, "ext": "py", "lang": "Python", "max_stars_repo_path": "pysilcam/tests/test_background.py", "max_stars_repo_name": "emlynjdavies/PySilCam", "max_stars_repo_head_hexsha": "071ec5f61f1fbb26e459fca8a4c29dc4bf47227c", "max_stars_repo_licenses": ["BSD-3-Clau... |
subroutine snowd(irtype,denh2o,iplane,driftf,driftg,snodep,
1 densgy,densgt,smelt,hour)
c
c +++ PURPOSE +++
c This subroutine handles snowdrift and snow depth calculations.
c It was originally incorporated into WINTER, but was split out
c by Charles R. Meyer 6/4/96 to re... | {"hexsha": "cf0a601cc53094572dfc0f0c2f071c0ddc077c3b", "size": 9616, "ext": "for", "lang": "FORTRAN", "max_stars_repo_path": "src/wepp2010.1/snowd.for", "max_stars_repo_name": "jarad/dep", "max_stars_repo_head_hexsha": "fe73982f4c70039e1a31b9e8e2d9aac31502f803", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1,... |
#!/usr/bin/env python
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import numpy as np
import tensorflow as tf
from t... | {"hexsha": "4fcec4d78fd640ba6772408deeca11dd929f2982", "size": 2023, "ext": "py", "lang": "Python", "max_stars_repo_path": "test_net.py", "max_stars_repo_name": "yuqiyue/Faster_R-CNN", "max_stars_repo_head_hexsha": "66668aa77645eb3a604f0e0e161b7831d7933744", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "ma... |
[STATEMENT]
lemma hj_r_nonzero_t_0:
assumes "r > 0"
shows "hj r 0"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. hj r 0
[PROOF STEP]
proof-
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. hj r 0
[PROOF STEP]
have "(\<exists>L c. c < r \<and> is_line L N' 0 \<and> (\<forall>y \<in> L ` {..<0::nat}. \<chi> y ... | {"llama_tokens": 1159, "file": "Hales_Jewett_Hales_Jewett", "length": 9} |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import numpy as np
import pytest
try:
from recommenders.models.rbm.rbm import RBM
except ImportError:
pass # skip this import if we are in cpu environment
@pytest.fixture(scope="module")
def init_rbm():
return... | {"hexsha": "4a28f68077f3d91e1e2d3bd5d8c8b2a16cf72e8d", "size": 4244, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/unit/recommenders/models/test_rbm.py", "max_stars_repo_name": "aeroabir/recommenders", "max_stars_repo_head_hexsha": "f99f7719e2b9ae5c9fd5a81a319ad1f29ebb3748", "max_stars_repo_licenses": ["... |
# PyEPD
# Gordon Inggs (gordon.e.inggs@ieee.org)
# November 2017
# These are the unit tests, is this wasn't clear from the filename
from unittest import TestCase
# Various libraries being used
import numpy
from PIL import Image
import io
import tempfile
from contextlib import contextmanager
# Classes under test
impo... | {"hexsha": "a70de9c4178fc690225bb7c31d2762f273af6431", "size": 6106, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyepd/tests/test_epd.py", "max_stars_repo_name": "Gordonei/pyepd", "max_stars_repo_head_hexsha": "232d08a95cff491f5dd3b4872c657f4e32be9824", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
import numpy as np
from shapely.affinity import translate
from shapely.geometry import Point
from shapely.ops import unary_union
import vsketch
class ShapelySketch(vsketch.Vsketch):
def draw(self) -> None:
self.size("a4", landscape=False)
self.scale("4mm")
for i in range(5):
... | {"hexsha": "5b5ea684fc7883af50ad98d7312b2c21c2841fb8", "size": 827, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/shapely/sketch_shapely.py", "max_stars_repo_name": "ademuri/vsketch", "max_stars_repo_head_hexsha": "1e84a25841186d629c1ace5edcd7807f0c1ba7d7", "max_stars_repo_licenses": ["MIT"], "max_sta... |
/*
* MIT License
*
* Copyright (c) 2018 Tech Solutions Malta LTD
*
* 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 us... | {"hexsha": "1136ba9c4616a1a4fbdb66412820c82daad31833", "size": 3949, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "libraries/chain/include/graphene/chain/issued_asset_record_object.hpp", "max_stars_repo_name": "powerchain-ltd/greenpower-blockchain", "max_stars_repo_head_hexsha": "ff04c37f2de11677c3a34889fdede125... |
\lab{Trust-Region Methods}{Trust-Region Methods}
\label{lab:trust_region}
\objective{Explore Trust-Region methods for optimization.}
When it comes to optimizing high-dimensional functions, a common strategy is to break
the problem up into a series of smaller, easier tasks, leading to a sequence of
successive approxim... | {"hexsha": "411f4c5c1b184463ace1a174a237e7a793fcbe16", "size": 3710, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Labs/TrustRegion/TrustRegion.tex", "max_stars_repo_name": "m4webb/numerical_computing", "max_stars_repo_head_hexsha": "d26e5ace9dbb91cd87440d84f0bd05d4a46e6781", "max_stars_repo_licenses": ["CC-BY-3... |
# coding:utf-8
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
def add_layer(inputs, in_size, out_size, activation_function=None):
with tf.name_scope('layer'):
with tf.name_scope('weights'):
Weights = tf.Variable(tf.random_normal([in_size, out_size]))
... | {"hexsha": "ec04c8175c7bbad7e4c09e1b1f50a8d6adf233cd", "size": 2150, "ext": "py", "lang": "Python", "max_stars_repo_path": "tensorflow/neuralNet/mofan/addLayer.py", "max_stars_repo_name": "zzw0929/deeplearning", "max_stars_repo_head_hexsha": "d96aadd71838fa60a4c031b13fe475d4839e8a33", "max_stars_repo_licenses": ["Apach... |
/-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
! This file was ported from Lean 3 source module measure_theory.tactic
! leanprover-community/mathlib commit d003c55042c3cd08aefd1ae9a42ef89441cdaaf3
! 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/MeasureTheory/Tacti... |
import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler
from DMS.ipredictor.models import HoltWintersI, HybridI, LSTMI, HoltI, HoltWinters, HybridIPoints, ANN, ANNI
from DMS.ipredictor import tools
if __name__ == "__main__":
# Seed switch
np.random.seed(36)
file =... | {"hexsha": "897e7a291f9a4dbdba45840322ca915aacf1d5ce", "size": 1519, "ext": "py", "lang": "Python", "max_stars_repo_path": "DMS-QL/LSTM_train.py", "max_stars_repo_name": "FFFjx/DMS-QL", "max_stars_repo_head_hexsha": "3ca350ba7a5835ffc57db55431f80edf18f034ad", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count"... |
abstract type Perturbation end
struct ThreePhaseFault
time::Float64
Ybus::SparseMatrixCSC{Complex{Float64}, Int64}
end
| {"hexsha": "f4d3b510d12a8ebdf94a1cd08dd43bdad79ff4e8", "size": 129, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/structs/perturbations.jl", "max_stars_repo_name": "UnofficialJuliaMirror/LITS.jl-86b0dc02-7903-11e9-325f-f195ca7e6c1a", "max_stars_repo_head_hexsha": "e27e29e21487737d5faac4180beb269dcc385c79", ... |
import unittest
import numpy as np
import pumapy as puma
class TestPermeability(unittest.TestCase):
def test_analytical_direct(self):
ws = puma.generate_2d_square_array(100, 1. - 2. * np.pi * (0.1 ** 2.))
ws.binarize_range((128, 255))
ws.voxel_length = 1. / ws.matrix.shape[0]
keff... | {"hexsha": "567a5946bbdd532ae661c87aefcd1ec1d87719a8", "size": 1978, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/test/test_permeability.py", "max_stars_repo_name": "dalexa10/puma", "max_stars_repo_head_hexsha": "ca02309c9f5c71e2e80ad8d64155dd6ca936c667", "max_stars_repo_licenses": ["NASA-1.3"], "max_s... |
# Copyright (c) 2022 Manuel Olguín Muñoz <molguin@kth.se>
#
# 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 appli... | {"hexsha": "ba4691362f0fc345dacdedfeeed031b6368784cc", "size": 9772, "ext": "py", "lang": "Python", "max_stars_repo_path": "edgedroid/models/frames.py", "max_stars_repo_name": "molguin92/EdgeDroid2", "max_stars_repo_head_hexsha": "9ad35e5f7ab6ff7188f52feb9be2963989e7424d", "max_stars_repo_licenses": ["Apache-2.0"], "ma... |
import matplotlib
matplotlib.use('Agg')
import pylab
import sys
import numpy
from utils import diversity_utils, gene_diversity_utils, stats_utils
from parsers import parse_midas_data
import matplotlib.colors as colors
import matplotlib.cm as cmx
from math import log10,ceil
import matplotlib as mpl
import matplotlib... | {"hexsha": "59a80b339d72cf20097d601177648c63015b0480", "size": 8808, "ext": "py", "lang": "Python", "max_stars_repo_path": "old_code/plot_twospecies_substitutions.py", "max_stars_repo_name": "zhiru-liu/microbiome_evolution", "max_stars_repo_head_hexsha": "5a08fbf41357d845236e3ff46c31315929d2b649", "max_stars_repo_licen... |
import torch
import numpy as np
from colloidoscope.trainer import train
from colloidoscope.deepcolloid import DeepColloid
import matplotlib.pyplot as plt
import neptune.new as neptune
import os
from ray import tune
import random
from ray.tune.schedulers import ASHAScheduler
from functools import partial
print(os.cpu_c... | {"hexsha": "cd50321023f3d783ddc982294d8799c0e97b94d4", "size": 2381, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/Training/b01_HP.py", "max_stars_repo_name": "wahabk/colloidoscope", "max_stars_repo_head_hexsha": "508918703405e07c336c0ad97cf6b3e87db311bb", "max_stars_repo_licenses": ["MIT"], "max_stars... |
[STATEMENT]
lemma factor_mset_divides:
assumes "a \<in> carrier G" "b \<in> carrier G"
shows "a divides b \<longleftrightarrow> factor_mset G a \<subseteq># factor_mset G b"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. a divides b = (factor_mset G a \<subseteq># factor_mset G b)
[PROOF STEP]
proof -
[PROOF STA... | {"llama_tokens": 1940, "file": "Finite_Fields_Finite_Fields_Factorization_Ext", "length": 18} |
"""
bilateral filter in 3d
"""
from __future__ import print_function, unicode_literals, absolute_import, division
import logging
logger = logging.getLogger(__name__)
import numpy as np
from gputools import OCLArray,OCLImage, OCLProgram, get_device
from ._abspath import abspath
def bilateral3(data, size_filter, s... | {"hexsha": "1298e30b3d39c6e7796ebd0c0758c6c66dc031f3", "size": 1321, "ext": "py", "lang": "Python", "max_stars_repo_path": "gputools/denoise/bilateral3.py", "max_stars_repo_name": "gmazzamuto/gputools", "max_stars_repo_head_hexsha": "73a4dee76a119f94d8163781a85b691fd080d506", "max_stars_repo_licenses": ["BSD-3-Clause"]... |
from scipy.ndimage import filters
from pylab import *
import re
def levenshtein(a,b):
"""Calculates the Levenshtein distance between a and b.
(Clever compact Pythonic implementation from hetland.org)"""
n, m = len(a), len(b)
if n > m: a,b = b,a; n,m = m,n
current = range(n+1)
for i in r... | {"hexsha": "f40b69bfd1a889e257dd1b53b38b147b60a62164", "size": 2673, "ext": "py", "lang": "Python", "max_stars_repo_path": "ocrolib/edist.py", "max_stars_repo_name": "liuqingjie/Ocropy", "max_stars_repo_head_hexsha": "e7f1a2d5c5a0c5d5e897225d4465062ebb11b6e1", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count... |
#' Return information about Splash interaction with a website in HAR format.
#'
#' It includes information about requests made, responses received, timings, headers, etc and
#' is incredibly detailed, full of information on every component loaded.
#'
#' @md
#' @param response_body When `TRUE`, response content is inclu... | {"hexsha": "98d03c1591c67725006da18e5f73464e9cdd339f", "size": 4265, "ext": "r", "lang": "R", "max_stars_repo_path": "R/render-har.r", "max_stars_repo_name": "hrbrmstr/splashr", "max_stars_repo_head_hexsha": "7263e6830c8e741ca6e021995ef00e70fd7ad747", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 91, "max_star... |
# step0. pre-defined parameters and functions
args <- commandArgs(T)
lambda <- as.numeric(args[1])
dataFN <- args[2]
outFN <- args[3]
# step1. read data and limit the maximum
data <- read.table(dataFN, sep = '\t', header = F, skip = 2)
firstRow <- read.table(dataFN, sep = '\t', header = F, nrows = 2)
# step2. balan... | {"hexsha": "84b67e6e12d73805eea57e62bfe01655d486e765", "size": 764, "ext": "r", "lang": "R", "max_stars_repo_path": "MHB_identification/balanceForEachChromosomeAccordingToLambda.r", "max_stars_repo_name": "TongjiZhanglab/MHB", "max_stars_repo_head_hexsha": "d14d7ce45399ce56daba194d91f7b83cd6c8e99b", "max_stars_repo_lic... |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
###############################################################################
"""SVM test for low shot image classificat... | {"hexsha": "6f35b4e49c866311122ec7ba4890755d2b15b49b", "size": 7274, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools/benchmarks/classification/svm_voc07/tools/test_svm_low_shot.py", "max_stars_repo_name": "mitming/mmselfsup", "max_stars_repo_head_hexsha": "5b5cb474776291cfcb9a1140afd11b696e11fcab", "max_st... |
import os
import sys
import re
from argparse import ArgumentParser
from argparse import RawDescriptionHelpFormatter
import tensorflow as tf
import numpy as np
import json
from cnn_model import CNN_Model
from load_data import *
from tensorflow.python.tools import inspect_checkpoint as chkp
from tensorflow.python impo... | {"hexsha": "54e0d960527451ee9c02415a031bda5ac3347cac", "size": 9342, "ext": "py", "lang": "Python", "max_stars_repo_path": "nn_data_gen/convert_ckpt.py", "max_stars_repo_name": "lUllLabs/nn-visualizer", "max_stars_repo_head_hexsha": "42f73fdf7471885b3bf685d7f03595c09c763b4f", "max_stars_repo_licenses": ["Apache-1.1"], ... |
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import matplotlib as mpl
import seaborn as sb
import sys
import time
def main( argv ):
try:
program_name = argv[ 0 ]
csv_filename = argv[ 1 ]
output_filename = argv[ 2 ]
except:
print( "Usage: 'python3... | {"hexsha": "8721ba991f6aad650c2e416797f1f9326ca7b881", "size": 1133, "ext": "py", "lang": "Python", "max_stars_repo_path": "DataMining/Maps/Generators/cases_per_weeks.py", "max_stars_repo_name": "CKPalk/SeattleCrime_DM", "max_stars_repo_head_hexsha": "0bfbf597ef7c4e87a4030e1c03f62b2f4c9f3c5b", "max_stars_repo_licenses"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.