text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
import numpy as np
from metagraph import translator
from metagraph.plugins import has_scipy, has_grblas
from .types import NumpyMatrixType, NumpyVectorType, NumpyNodeSet, NumpyNodeMap
from ..python.types import PythonNodeMapType, PythonNodeSetType
@translator
def nodemap_to_nodeset(x: NumpyNodeMap, **props) -> NumpyN... | {"hexsha": "5fa0658e190bbc815ac29163b38d78336813e812", "size": 1839, "ext": "py", "lang": "Python", "max_stars_repo_path": "metagraph/plugins/numpy/translators.py", "max_stars_repo_name": "paul-tqh-nguyen/metagraph", "max_stars_repo_head_hexsha": "362f97059f8344042d376edc5b470e27bd69b46e", "max_stars_repo_licenses": ["... |
# coding=utf-8
# Author: Diego González Chávez
# email : diegogch@cbpf.br / diego.gonzalez.chavez@gmail.com
#
# LockIn controller for magnetometers
#
# TODO:
# Make documentation
import time
import numpy
__all__ = ['LockIn_Mag_Controller']
class LockIn_Mag_Controller(object):
'''
LockIn c... | {"hexsha": "389de4bd7d7bc89f79cc4d2cd043d9dd3ef76a12", "size": 2576, "ext": "py", "lang": "Python", "max_stars_repo_path": "controllers/lockin_mag_controller.py", "max_stars_repo_name": "Vrekrer/magdynlab", "max_stars_repo_head_hexsha": "f5149d3213a37c7c18f39876c3e2367fc7deb9e8", "max_stars_repo_licenses": ["MIT"], "ma... |
import os
import sys
import cv2
import dlib
import numpy as np
import faceBlendCommon as fbc
# 读取指定的文件夹下的所有的jpg图片
def readImagesPath(path):
"""
从指定的文件夹下面读取所有的jpg图片
参数:
============
path:文件夹路径
"""
pass
imagePaths=[]
for filePath in sorted(os.listdir(path)):
fileExt = os.path... | {"hexsha": "be705c909f967c9683dec97d975099c191dd401a", "size": 2809, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/faceAveraging.py", "max_stars_repo_name": "ShawnZhang31/face-averaging", "max_stars_repo_head_hexsha": "7b76723f808311e22c264de63ecfda3c4a47c43f", "max_stars_repo_licenses": ["MIT"], "max_s... |
from __future__ import print_function
import struct
import numpy as nx
class SMDFile:
def __init__(self, filename):
self.filename = filename
self.fd = open(filename, mode="r")
self.fmt = "<dII"
self.row_sz = struct.calcsize(self.fmt)
ts = []
print("loading SMD file"... | {"hexsha": "b189e7af845fe328cd60027e78039a4a2f6fad39", "size": 1444, "ext": "py", "lang": "Python", "max_stars_repo_path": "flydra_analysis/flydra_analysis/analysis/smdfile.py", "max_stars_repo_name": "elhananby/flydra", "max_stars_repo_head_hexsha": "09b86859b1863700cdea0bbcdd4758da6c83930b", "max_stars_repo_licenses"... |
#!/opt/anaconda/bin/python
import sys
import os
import string
import numpy as np
from osgeo import gdal, ogr, osr
def matrix_sum(mat1, mat2, no_data_value=None):
if no_data_value is not None:
if not isinstance(mat1, int):
mat1[(mat1 == no_data_value)] = 0
if not isinstance(mat2, int):
... | {"hexsha": "de8a7c51aa3104370a6d1546130e2a25885b6db2", "size": 1968, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/main/app-resources/notebook/libexec/aux_functions.py", "max_stars_repo_name": "ec-better/ewf-wfp-01-03-04", "max_stars_repo_head_hexsha": "606947354dfe375f9770ed669e8706ffd24c7a54", "max_stars... |
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
def RK4(t, x, f, h):
k1 = f(t, x)
k2 = f(t+0.5*h, x+0.5*h*k1)
k3 = f(t+0.5*h, x+0.5*h*k2)
k4 = f(t+h, x+h*k3)
return x + h * (k1 + 2 * k2 + 2 * k3 + k4) / 6
def func(t,x):
return x
a, b = 0.0, 1.0
N = 10
h = (b... | {"hexsha": "a174045748b92d9b914ff35640c803a4c3b1dee8", "size": 580, "ext": "py", "lang": "Python", "max_stars_repo_path": "files/rk4.py", "max_stars_repo_name": "tmiyaji/sgc164", "max_stars_repo_head_hexsha": "660f61b72a3898f8e287feb464134f5c48f9383e", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count": 3, ... |
library(boot)
library(ggplot2)
PSDS_PATH <- file.path('~', 'statistics-for-data-scientists')
loans_income <- read.csv(file.path(PSDS_PATH, 'data', 'loans_income.csv'))[,1]
sp500_px <- read.csv(file.path(PSDS_PATH, 'data', 'sp500_px.csv'))
x <- seq(from=-3, to=3, length=300)
gauss <- dnorm(x)
png(filename=file.path(... | {"hexsha": "920726c07fc55a136440a078db7d581162b4d716", "size": 2565, "ext": "r", "lang": "R", "max_stars_repo_path": "references/statistics-for-data-scientists/src/chapter2.r", "max_stars_repo_name": "ronsims2/data_science_tutorials", "max_stars_repo_head_hexsha": "ce245eb875330f2d64e30a2340afb8ea2eb25c20", "max_stars_... |
import logging
import networkx as nx
logger = logging.getLogger(__name__)
def annotate_graph(graph, fields=[]):
'''Annotate a :mod:`networkx` graph with network information.
:param graph: :class:`networkx.graph.Graph` or subclass
:param fields: list of fields to be added to the nodes in the graph;
... | {"hexsha": "c3407166dd3141a5ae74e4c1b03cfb156b655567", "size": 3255, "ext": "py", "lang": "Python", "max_stars_repo_path": "belfast/network/util.py", "max_stars_repo_name": "ecds/belfast-group-site", "max_stars_repo_head_hexsha": "d3856110e6864768732a0b4f504767585c24d4b0", "max_stars_repo_licenses": ["Apache-2.0"], "ma... |
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 26 12:10:57 2018
@author: gsl8
"""
###############################################################################
def columns(df,d,i,out):
import numpy as np
if df[i].dtype is np.dtype('O'):
c = {x: {d: {} for d in sorted(d.keys())} for ... | {"hexsha": "d10338d632aceb2de7dbaee52cde0c6850ffda76", "size": 4243, "ext": "py", "lang": "Python", "max_stars_repo_path": "outcomeTools/tableOne.py", "max_stars_repo_name": "zm00094/vs_eventListTools", "max_stars_repo_head_hexsha": "c08ae211147aa9018d2bb463083537e620dea948", "max_stars_repo_licenses": ["MIT"], "max_st... |
using Test, Random, Distances
using RandomisationModels
macro include_testset(filename)
@assert filename isa AbstractString
quote
@testset $(filename) begin
include($(filename))
end
end
end
@include_testset "models/complete-randomisation.jl"
@include_testset "models/permuted-bl... | {"hexsha": "07db68c56d9f7573a74b2433a38f469588390973", "size": 328, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "jatotterdell/RandomisationModels.jl", "max_stars_repo_head_hexsha": "a2f37632084e881ac29991ae601f7f930b26e673", "max_stars_repo_licenses": ["MIT"], "max_st... |
import json
import nltk
import numpy as np
from keras_preprocessing.sequence import pad_sequences
from tqdm import tqdm
from ner.config import config_parameters
from ner.preprocess.preprocess import create_features
from ner.treebank_span import TreebankSpanTokenizer
def predict_test(label2idx, model, word2index, mod... | {"hexsha": "ff0f67a55fd102766cab0f81f823ed5a5cc3a692", "size": 4594, "ext": "py", "lang": "Python", "max_stars_repo_path": "ner/test.py", "max_stars_repo_name": "Zuchens/ner_poleval", "max_stars_repo_head_hexsha": "1988b3d814303ce5551a5ebc30104f5b6cc76e01", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": ... |
import cv2
import numpy as np
def abs_sobel_thresh(img, orient='x', sobel_kernel=3, thresh=(0, 255)):
# Calculate directional gradient
# Apply threshold
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
orientation = orient == 'x'
sobel = cv2.Sobel(gray, cv2.CV_64F, orientation, not orientation, ksize=... | {"hexsha": "233001f61f7ba28e714370786048f9a19befb3fc", "size": 2528, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/combined_gradient_filter.py", "max_stars_repo_name": "Marius-Juston/CarND-Advanced-Lane-Lines", "max_stars_repo_head_hexsha": "552f2fa2678b2d5be748aedb97923fbd16d18b39", "max_stars_repo_li... |
[STATEMENT]
lemma bool_or_not_bool:
"x \<triangleleft>\<triangleright> y \<Longrightarrow> (x = B\<cdot>b) \<longleftrightarrow> (y = CB\<cdot>b)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. x \<triangleleft>\<triangleright> y \<Longrightarrow> (x = B\<cdot>b) = (y = CB\<cdot>b)
[PROOF STEP]
by (cases x y rule:... | {"llama_tokens": 137, "file": "Launchbury_ValueSimilarity", "length": 1} |
s = "I am a string"
s = replace(s, r" (a|an) ", " another ")
| {"hexsha": "8e4395eede316211f862f6788440b3745f28d710", "size": 61, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "lang/Julia/regular-expressions-2.jl", "max_stars_repo_name": "ethansaxenian/RosettaDecode", "max_stars_repo_head_hexsha": "8ea1a42a5f792280b50193ad47545d14ee371fb7", "max_stars_repo_licenses": ["MIT"... |
"""
This script investigates how calculating phasic currents from voltage clamp
recordings may benefit from subtracting-out the "noise" determined from a
subset of the quietest pieces of the recording, rather than using smoothing
or curve fitting to guess a guassian-like RMS noise function.
"""
import os
import swhla... | {"hexsha": "266f5f6deac9e9723971af5f0852dbf9297569aa", "size": 5497, "ext": "py", "lang": "Python", "max_stars_repo_path": "doc/uses/EPSCs-and-IPSCs/variance method/2016-12-15 noise sample.py", "max_stars_repo_name": "swharden/SWHLab", "max_stars_repo_head_hexsha": "a86c3c65323cec809a4bd4f81919644927094bf5", "max_stars... |
""" Figure 1
1. Load data and compute performance
2. Run statistical tests
3. Prepare figure
4. Plot task trial schematic
5. Plot task structure schematic
6. Plot block example
7. Plot performance
8. Add subplot labels and save figure
"""
import numpy as np
import pandas as pd
import m... | {"hexsha": "5d9dcbab968ac54382d1654dce7a5ca894d2a193", "size": 15234, "ext": "py", "lang": "Python", "max_stars_repo_path": "gb_figure_1.py", "max_stars_repo_name": "rasmusbruckner/gaborbandit_analysis", "max_stars_repo_head_hexsha": "c208be61d44b9e99d9fdc9c1469be1103198ea9a", "max_stars_repo_licenses": ["MIT"], "max_s... |
from PyQt5.QtWidgets import QWizard, QWidget, QHBoxLayout, QFormLayout, QSpinBox, QComboBox
from matplotlib.backends.backend_qt5 import NavigationToolbar2QT as NavigationToolbar
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from pyntpg.analysis.di... | {"hexsha": "b0d766a17390e1a7b4a43e16fd2b09f0c76b9b2a", "size": 5111, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyntpg/analysis/spectrogram/spectrogram.py", "max_stars_repo_name": "5tefan/py-netcdf-timeseries-gui", "max_stars_repo_head_hexsha": "47a46c576eef51e7b840b1cd48f58fc508b6beda", "max_stars_repo_lic... |
Inductive t :=
| C0 : t
| C1 : bool -> t
| C2 : t -> nat -> t
.
| {"author": "eponier", "repo": "compare-eq", "sha": "cc2da184e747d0ad6ada8597e1ebf03377e413e2", "save_path": "github-repos/coq/eponier-compare-eq", "path": "github-repos/coq/eponier-compare-eq/compare-eq-cc2da184e747d0ad6ada8597e1ebf03377e413e2/features/recursive/type.v"} |
[STATEMENT]
lemma inf_neqE:
"\<lbrakk> x \<in> A\<^sup>\<omega>; y \<in> A\<^sup>\<omega>; x \<noteq> y;
\<And>s. \<lbrakk> s\<in>A\<^sup>\<star>; s \<le> x; \<not> s \<le> y\<rbrakk> \<Longrightarrow> R \<rbrakk> \<Longrightarrow> R"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>x \<in> A\<^sup>\<omega... | {"llama_tokens": 228, "file": "Lazy-Lists-II_LList2", "length": 1} |
import numpy as np
from PIL import Image
import sys
path_to_img = sys.argv[1] if len(sys.argv) != 1 else input('Path to image: ')
width = int(input('Width: '))
print('Processing...')
img = Image.open(path_to_img)
img = img.resize(( width, int(img.size[1]/img.size[0]*width / (18/8)) ))
pix = np.asarray(img.convert('L... | {"hexsha": "78c654cb169d8017c2fe2061a1c23931569438bc", "size": 658, "ext": "py", "lang": "Python", "max_stars_repo_path": "bygrad.py", "max_stars_repo_name": "Mihahanya/Img-to-txt", "max_stars_repo_head_hexsha": "273fd5afe18eeae7f1ef4f2b5764a6771edbb153", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_s... |
#include <unordered_map>
#include <type_traits>
#include "base/base.h"
#include "modules/io/msgpack_transfer.h"
#include "modules/io/make_unique.h"
#include "modules/io/log.h"
#include "modules/bio_format/fasta.h"
#include "modules/bio_base/flat_ref.h"
#include <endian.h>
#include <sys/mman.h>
#include <iostream>
#inc... | {"hexsha": "0ee110ab7a322b23f889923acdef1db34f9187b8", "size": 10643, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "modules/bio_base/flat_ref.cpp", "max_stars_repo_name": "spiralgenetics/biograph", "max_stars_repo_head_hexsha": "33c78278ce673e885f38435384f9578bfbf9cdb8", "max_stars_repo_licenses": ["BSD-2-Clause... |
#!/usr/bin/python3
import matplotlib.pyplot as plt
import numpy as np
"""
N;MultiP;TDS.1;MultiP;TDS.2;T1;T2;Sol;Comm
1;1555;1.284.180;1587;1.210.937;27.2;27.0;1413;medida de calibración
"""
SEP = ';'
# `data`: N, MultiP.1, TDS.1, MultiP.2, TDS.2, T1, T2, Sol, Comm
TYPE = [ int, float, float, float, ... | {"hexsha": "ed9588c3b774a94847c9f3d1d3d4718bdfee08ac", "size": 8780, "ext": "py", "lang": "Python", "max_stars_repo_path": "homologation/all_ec/data3/compare_ec3.py", "max_stars_repo_name": "niclabs/water-monitoring", "max_stars_repo_head_hexsha": "d18405e7536c985a400816263e80f73318e304b6", "max_stars_repo_licenses": [... |
#define BOOST_TEST_MAIN TestGraphStore
//#define DEBUG
#include <boost/test/unit_test.hpp>
#include <stdexcept>
#include <string>
#include <vector>
#include <zmq.hpp>
#include <sam/GraphStore.hpp>
#include <sam/VastNetflowGenerators.hpp>
#include <sam/FeatureMap.hpp>
using namespace sam;
using namespace std::chrono... | {"hexsha": "4c92027a7ac2b5dcab5442bf3da9a8090af18121", "size": 14441, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "TestSrc/TestGraphStoreDouble.cpp", "max_stars_repo_name": "dirkcgrunwald/SAM", "max_stars_repo_head_hexsha": "0478925c506ad38fd405954cc4415a3e96e77d90", "max_stars_repo_licenses": ["MIT"], "max_sta... |
#######################################################################################################
#
# DETECCIÓN DE INSULTOS USANDO UN CLASIFICADOR DE MÁXIMA ENTROPÍA
#
# Este código se divide en dos partes:
#
# [1]: Predicción de un comentario
# - Se entrena el modelo usando toda la dat... | {"hexsha": "0834559797456077a83936a01d00bdf8d67e9343", "size": 2762, "ext": "r", "lang": "R", "max_stars_repo_path": "models/maxent_model.r", "max_stars_repo_name": "wilmeragsgh/Flame_Detector_Chat", "max_stars_repo_head_hexsha": "cedff2dcf4d7e821166ccce0d58da9aedd5282b6", "max_stars_repo_licenses": ["MIT"], "max_stars... |
\documentclass[journal=jpcisd8,manuscript=article]{achemso}
% \linespread{1.5}
\setkeys{acs}{etalmode=truncate,maxauthors=0}
\usepackage{amssymb,amsmath,graphics,epsfig}
% \usepackage{amsmath}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{multirow}
\usepackage{xcolor}
\usepackage{siunitx}
\usepackage{float}... | {"hexsha": "e54b0c6965d8c84d264d16aa599ee31139a00251", "size": 43378, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "paper/virtual_cytoplasm_v2.tex", "max_stars_repo_name": "dspoel/soup", "max_stars_repo_head_hexsha": "8d114f18774c71e8119744336c3fbffa15b03b98", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
# PLS-PM genetic algorithm clustering
# Author: Laio Oriel Seman
# RINGLE, C. M. et al. PLS path modeling and evolutionary segmentation.
# Journal of Business Research, v. 66, n. 9, p. 1318–1324, set. 2013.
# Based on https://github.com/liviaalmeida/clustering
from random import randint, uniform
from copy i... | {"hexsha": "15a3e7d0b35bf3daeb037d03f476f21f5eb29cb6", "size": 5976, "ext": "py", "lang": "Python", "max_stars_repo_path": "pylspm/gac.py", "max_stars_repo_name": "lseman/pyplspm", "max_stars_repo_head_hexsha": "136e1ac3ac88655442ef66a5914efe10c0797561", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 12, "max_s... |
import numpy as np
import pickle
import matplotlib.pyplot as plt
import matplotlib
import tensorflow as tf
import keras
from keras.models import Sequential, Model
from keras.layers import Dense, Convolution2D, Activation, Flatten, MaxPooling2D,Input,Dropout,GlobalAveragePooling2D
from keras import backend as K
from ke... | {"hexsha": "3327e1e4b56f8c17769ea0bbc3f3263813bb2f5d", "size": 43249, "ext": "py", "lang": "Python", "max_stars_repo_path": "unrolled-lutnet/training-software/binarization_utils.py", "max_stars_repo_name": "awai54st/LUTNet", "max_stars_repo_head_hexsha": "81b044f31d1131bee1a7fae41fc4d2fb102ea73a", "max_stars_repo_licen... |
#! /usr/bin/env python
from robot_framework.utils.state_utils import copy_all_states
from copy import deepcopy
import json
from datetime import datetime
import numpy as np
from pyquaternion import Quaternion
class StateLog:
def __init__(self, params, path=None):
self.states_log = []
self.knowled... | {"hexsha": "f5eb4598bf7967916b392092dc4c431eca5cec92", "size": 1521, "ext": "py", "lang": "Python", "max_stars_repo_path": "robot_framework/logger/state_log.py", "max_stars_repo_name": "abarcis/robot-framework", "max_stars_repo_head_hexsha": "a2cef7850784ae4c12b47fc7fb297f3772c2e2fe", "max_stars_repo_licenses": ["MIT"]... |
# --- Do not remove these libs ---
from freqtrade.strategy.interface import IStrategy
from pandas import DataFrame
# Add your lib to import here
import talib.abstract as ta
import freqtrade.vendor.qtpylib.indicators as qtpylib
import pandas_ta as pta
import numpy as np # noqa
import pandas as pd # noqa
# These libs... | {"hexsha": "227ff621679cf742f0b65983d644e552f09523dc", "size": 2522, "ext": "py", "lang": "Python", "max_stars_repo_path": "hyperopt/keltnerhopt.py", "max_stars_repo_name": "meesvw/redpie-trading", "max_stars_repo_head_hexsha": "d11bca7a6fea020b4f09a91b74a300f810b06ee8", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
import xarray as xr
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
from matplotlib import cm
import xclim as xc
def xr_collapse_to_global_time_series(da):
"""
Collapses an array across days of a year and then across space.
Parameters
-... | {"hexsha": "42158d40bc4b6c48ad36cd8e0e38c12047bcadc0", "size": 5980, "ext": "py", "lang": "Python", "max_stars_repo_path": "urbanspoon/core.py", "max_stars_repo_name": "emileten/urban-spoon", "max_stars_repo_head_hexsha": "6b5a781eb44f7da195369290c49343ab0ee78d36", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_... |
import numpy as np
import utils
import sys
'''
Baseline models
Usage:
python baselines.py random_forest
or
python baselines.py predict_mean
etc
'''
method = sys.argv[1]
def predict_mean():
print('Loading data...')
_, _, y_train, y_test, _ = utils.load_hand_data_cv()
y_predict = np.mean(y_train)
util... | {"hexsha": "78bd2a908e79e0d4f0da918a841e282e4f5e38de", "size": 1713, "ext": "py", "lang": "Python", "max_stars_repo_path": "baselines.py", "max_stars_repo_name": "wenweixu/tropicalcyclone_MLP", "max_stars_repo_head_hexsha": "73800596fc824c6d3f150fc41af0bdb7b9c3a7dc", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_st... |
import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from math import floor
from torch.utils.tensorboard import SummaryWriter
from yaml import safe_load
import os
from src.data.data_utils import ImbalancedDatasetSampler
from src.data.data_loaders import HDF5TorchDataset, load_data_iter
... | {"hexsha": "f8058b9db61047d30366ae09e52a183a4b040132", "size": 9515, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/models/cnn_gaze.py", "max_stars_repo_name": "amsterg/ahead", "max_stars_repo_head_hexsha": "9a5e916dd12ba32800b90851562bca5c462b497e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1,... |
import numpy as np
from gradgpad.foundations.metrics.bpcer import bpcer
from gradgpad.foundations.metrics.eer import eer
from gradgpad.reproducible_research import Callable, Dict, Scores
class MetricsDemographics:
@staticmethod
def from_subset_scores(subset_scores: Dict[str, Scores]):
return MetricsD... | {"hexsha": "360e8a0fa10aa4f53d979aeda278dd2ef6cf9674", "size": 1654, "ext": "py", "lang": "Python", "max_stars_repo_path": "gradgpad/foundations/metrics/metrics_demographics.py", "max_stars_repo_name": "acostapazo/gradgpad", "max_stars_repo_head_hexsha": "bbf75e11eed844a0014f7cb6627c8fa0c73cd3f1", "max_stars_repo_licen... |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from astropy.table import Table
import numpy as np
from ...utils.testing import requires_dependency, requires_data
from ...data import ObservationTable, DataStore
from ..models import EnergyOffsetBackgroundModel
from ..off_data_background_maker import OffD... | {"hexsha": "763af71c458b1c16cf56bd8c880dcd8610ba8414", "size": 2007, "ext": "py", "lang": "Python", "max_stars_repo_path": "gammapy/background/tests/test_off_data_background_maker.py", "max_stars_repo_name": "grburgess/gammapy", "max_stars_repo_head_hexsha": "609e460698caca7223afeef5e71826c7b32728d1", "max_stars_repo_l... |
SUBROUTINE GDPGRF ( iytype, ratio, xstrt, xstop, ystrt, ystop,
+ rmargn, windxn, windyn, iret )
C************************************************************************
C* GDPGRF *
C* *
C* This subroutine sets the graph margins and sets up the graph in *
C* GEMPLT. The margins are set to ... | {"hexsha": "63681ec8b874cce2080b3b8fd8bac1eebe52aa15", "size": 2652, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "gempak/source/programs/gd/gdprof/gdpgrf.f", "max_stars_repo_name": "oxelson/gempak", "max_stars_repo_head_hexsha": "e7c477814d7084c87d3313c94e192d13d8341fa1", "max_stars_repo_licenses": ["BSD-3-Cl... |
program poisson_mpi
use poisson_module
use mpi
implicit none
integer :: i,j,k,ret
integer :: id1,id2,id3,id4,id5
real, allocatable, dimension(:) :: u,u0,f
integer, allocatable, dimension(:) :: buf
real :: h, l2
integer :: prank, psize, ierror, tag, status(MPI_STATUS_SIZE)
double precision :: t_start, t_end
... | {"hexsha": "2a7a4fb16bd5f4dd28ab33d22b6bb38af59c53aa", "size": 3336, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "Exos/old/codes_fortran/poisson_mpi.f90", "max_stars_repo_name": "vkeller/math-454", "max_stars_repo_head_hexsha": "0bf3a81214f094dbddec868d3d133986b31f4b01", "max_stars_repo_licenses": ["BSD-2-C... |
from napari_pssr import (
train_pssr_widget,
predict_pssr_widget,
)
import numpy as np
def test_train_pssr_widget(make_napari_viewer, capsys):
viewer = make_napari_viewer()
layer = viewer.add_image(np.random.random((100, 100)))
my_widget = train_pssr_widget()
my_widget(viewer.layers[0])
de... | {"hexsha": "ad171318fda8c9b88637efef933ca7d3737cb638", "size": 541, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/napari_pssr/_tests/test_widget.py", "max_stars_repo_name": "pattonw/pssr-napari", "max_stars_repo_head_hexsha": "73b986210fc5a81019895f148f25d4174c0e0c76", "max_stars_repo_licenses": ["MIT"], "... |
import numpy as np
def hartmann_6(x, original=True):
"""The Hartmann 6-dimensional objective function."""
# Unfurl the input.
x = x.ravel()
# Initialize matrices for the Hartmann function.
alpha = np.array([1.0, 1.2, 3.0, 3.2])
A = np.array([[10, 3, 17, 3.5, 1.7, 8],
[0.05, 1... | {"hexsha": "6a2252369ca0bc7333fee3e4ae2f7a364d68f820", "size": 1145, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/synthetic/hartmann/hartmann.py", "max_stars_repo_name": "JamesBrofos/Thor-Python-Client", "max_stars_repo_head_hexsha": "2cf1c2a876cf1dcce391ad2f33c8572cb0acd2e7", "max_stars_repo_license... |
[STATEMENT]
lemma lupd_get_local_other [simp]: "x \<noteq> y \<Longrightarrow> lupd(x\<mapsto>v) s<y> = s<y>"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. x \<noteq> y \<Longrightarrow> lupd(x\<mapsto>v) s<y> = s<y>
[PROOF STEP]
apply (drule not_sym)
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. y \<noteq> x \... | {"llama_tokens": 193, "file": null, "length": 2} |
#!/usr/bin/env python
""" Extracts RES-Europe data to examine forecasting issues.
"""
import numpy as np
import pandas as pd
import networkx as nx
import os
from load_network import load_network
from scipy.stats import norm
__copyright__ = "Copyright 2016, Tue Vissing Jensen"
__credits__ = ["Tue Vissing Jensen"]
__l... | {"hexsha": "f2d1ce8069c4b64d759277cf3ca57b9a70d5e559", "size": 2394, "ext": "py", "lang": "Python", "max_stars_repo_path": "correlation_extracter.py", "max_stars_repo_name": "TueVJ/RES-Europe_SimpleEnsembleForecasting", "max_stars_repo_head_hexsha": "5dd0d20d83be47c6af01d03514bf31b8bf4777fc", "max_stars_repo_licenses":... |
#!/usr/bin/env python
# __BEGIN_LICENSE__
# Copyright (c) 2015, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The xGDS platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this fil... | {"hexsha": "18da6360e34a08e1fa92eb131c0780f703a4801b", "size": 2400, "ext": "py", "lang": "Python", "max_stars_repo_path": "xgds_core/sse/rebroadcast.py", "max_stars_repo_name": "xgds/xgds_core", "max_stars_repo_head_hexsha": "7c2f8d56ca56321f6a9331cda38b40b503fade04", "max_stars_repo_licenses": ["Apache-2.0"], "max_st... |
PHM Property Management was a property management company owned and operated by Dave and Patti Miller, who are both are long time Davis residents.
PHM was in existence between 1985 and 2009. PHM managed approximately 190 properties in Davis. The staff was comprised of: Nicole (the receptionist), Marianna (the repa... | {"hexsha": "42faddce1e0f10a3642bb36412d914b28b9d7e7f", "size": 823, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/PHM_Property_Management.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_s... |
import pandas as pd
from pandas.io.json import json_normalize
from datetime import date as dt
import requests
import numpy as np
def MakeUrl(klass, correspond, cortype, fratil, date, language):
"""
Function to build url address for query to Statsitic Norways KLASS system
Parameters
---------------... | {"hexsha": "84e337de7ffd1eed2839e2c9feac7c8a7f135771", "size": 3198, "ext": "py", "lang": "Python", "max_stars_repo_path": "metodebibliotek/metodebibliotek.py", "max_stars_repo_name": "statisticsnorway/metodebibliotek", "max_stars_repo_head_hexsha": "2cd6023171e5d1df3a59f4f6b425c6b9006583b2", "max_stars_repo_licenses":... |
import numpy as np
from scipy.sparse import csr_matrix
def get_age_rating_matrix(URM, age_demographic, implicit=False):
ratings_per_age = np.zeros(shape=(len(age_demographic), URM.shape[1]))
for i, users_age in enumerate(age_demographic):
URM_age = URM[users_age].copy()
ratings_age = np.squeez... | {"hexsha": "1951c7e3ccc00bd71822aa1696815608486ec889", "size": 1303, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/model/NewRatingMatrix.py", "max_stars_repo_name": "riccardopoiani/recsys_2019", "max_stars_repo_head_hexsha": "47a44d2f7d85e76e31dacf4ba2e69721d010b6b8", "max_stars_repo_licenses": ["MIT"], "m... |
import numpy as np
import matplotlib.pyplot as plt
from scipy.linalg import cho_solve
from numpy.linalg import cholesky
from itertools import cycle
from GP_train import train_data
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
class SimpleGP():
""" One dimensional Gaussian Process class.
Us... | {"hexsha": "639c7b4eb9c5c365dfb15383026725db28df5675", "size": 4390, "ext": "py", "lang": "Python", "max_stars_repo_path": "GP.py", "max_stars_repo_name": "dumingyang20/Daily-draft-about-python", "max_stars_repo_head_hexsha": "ccb26f764d64824c20aeaec16f9b7b4e1f629e41", "max_stars_repo_licenses": ["Apache-2.0"], "max_st... |
'''
Convert CSV file to a basic ruleset package
'''
import os
import pathlib
import re
import argparse
from numpy.core.numeric import full
import pandas as pd
from tqdm import tqdm
TPL_RULENAME_CM = 'cm_%s'
TPL_REGEXP_FILENAME = "resources_regexp_re%s.txt"
TPL_USED_RES_FILENAME = "used_resources.txt"
TPL_MATCHRULES_FI... | {"hexsha": "cd6218eae303ba0eabc4aefc9e02e1c58e4c1904", "size": 6940, "ext": "py", "lang": "Python", "max_stars_repo_path": "util/csv2ruleset.py", "max_stars_repo_name": "OHNLP/covid19ruleset", "max_stars_repo_head_hexsha": "5b2578c2bbfe11d4aa9bb291d824c2a6bdec85b3", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars... |
import numpy as np
import scipy as sp
import unittest
from pywsl.cpe import cpe_ene
from pywsl.utils.syndata import gen_twonorm_ssl
class TestCpe_Ene(unittest.TestCase):
def test_alpha_one(self):
prior = .3
x, y, x_t, y_t = gen_twonorm_ssl(n_l=100, prior_l=.5,
... | {"hexsha": "73404dfc91a2d9d7bbd2c810c8acb3be97a3d6f9", "size": 1143, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/cpe_tests/test_cpe_ene.py", "max_stars_repo_name": "t-sakai-kure/PNU-Classification", "max_stars_repo_head_hexsha": "79a5bf104a53cb6d3498918e435bd88ac5331543", "max_stars_repo_licenses": ["M... |
[STATEMENT]
lemma (in t1_space) tendsto_imp_eventually_ne:
assumes "(f \<longlongrightarrow> c) F" "c \<noteq> c'"
shows "eventually (\<lambda>z. f z \<noteq> c') F"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<forall>\<^sub>F z in F. f z \<noteq> c'
[PROOF STEP]
proof (cases "F=bot")
[PROOF STATE]
proof (s... | {"llama_tokens": 1268, "file": null, "length": 17} |
"""Top-level package for whakaari."""
__author__ = """David Dempsey"""
__email__ = 'd.dempsey@auckland.ac.nz'
__version__ = '0.1.0'
# general imports
import os, sys, shutil, warnings, gc, joblib
import numpy as np
from datetime import datetime, timedelta, date
from copy import copy
from matplotlib import pyplot as pl... | {"hexsha": "02aba4b3d01f6c6ef93b88619ae55681d9257c1c", "size": 71899, "ext": "py", "lang": "Python", "max_stars_repo_path": "whakaari/__init__.py", "max_stars_repo_name": "sorenia/whakaari", "max_stars_repo_head_hexsha": "d49a1306a680ec5d624024b535dc2661d6cea339", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
"""
Options:
1. Use OverriddenParameter
Pros
: can assign to slice
: can use autocompletion
Cons
: need to use [:] to refer to the whole tensor
2. Use BoundedModule.register_()
Pros
: ?
Cons
: cannot assign to slice without using setslice()
"""
# Copyright (c) 2020. Yul HR Kang. hk2699 at caa dot columbia dot edu.
... | {"hexsha": "4d57115c21eae0d3b4b2abf08f08e2b8da82e0f5", "size": 47690, "ext": "py", "lang": "Python", "max_stars_repo_path": "yktorch.py", "max_stars_repo_name": "Gravifer/pylabyk", "max_stars_repo_head_hexsha": "bc071dfe090d75de3dc8910f90acdf346985a95e", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": nul... |
function y=modulo(x,N);
%MODULO Congruence of a vector.
% Y=MODULO(X,N) gives the congruence of each element of the
% vector X modulo N. These values are strictly positive and
% lower equal than N.
%
% See also REM.
% O. Lemoine - February 1996.
% Copyright (c) 1996 by CNRS (France).
%
% This program is free softwar... | {"author": "HeLiangHIT", "repo": "time_frequency", "sha": "09c2abe92355ff5cd867bdb169229682e9d7af7c", "save_path": "github-repos/MATLAB/HeLiangHIT-time_frequency", "path": "github-repos/MATLAB/HeLiangHIT-time_frequency/time_frequency-09c2abe92355ff5cd867bdb169229682e9d7af7c/tf_tool_box/tftb-0.2/mfiles/modulo.m"} |
#Implement EDIIS+DIIS and ADIIS+DIIS
#By Daniel Graham
import scipy
import numpy as np
from pyscf import lib, scf
DEBUG = False
class EDIIS(scf.diis.EDIIS):
def update(self, s, d, f, elec_e):
if self._head >= self.space:
self._head = 0
if not self._buffer:
shape = (self.s... | {"hexsha": "9586510f4b562d384169b0690d56a1f138afd3b6", "size": 10329, "ext": "py", "lang": "Python", "max_stars_repo_path": "qsome/custom_diis.py", "max_stars_repo_name": "Goodpaster/QSoME", "max_stars_repo_head_hexsha": "8b24d58dfab5ac0d90fd84b8519b25864eee6f74", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_c... |
import numpy as np
from basicsr.archs.rrdbnet_arch import RRDBNet
from realesrgan.utils import RealESRGANer
def test_realesrganer():
# initialize with default model
restorer = RealESRGANer(
scale=4,
model_path='experiments/pretrained_models/RealESRGAN_x4plus.pth',
model=None,
... | {"hexsha": "7919b74905495b4b6f4aa957a1f0b5d7a174c782", "size": 3089, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_utils.py", "max_stars_repo_name": "pcuenca/Real-ESRGAN", "max_stars_repo_head_hexsha": "9ff1944d06e9d7fe86c68bbf1a244cff403f064e", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_star... |
#!/usr/bin/env python
# coding: utf-8
# # Error Functions
#
# This is a library of standard error functions. I implemented these for use in perceptron networks and to better understand how they are calculated.
#
# **General Use** for API (reminder on how to build for me):
#
# * All error functions should take in an... | {"hexsha": "b41153b3d7440ad3e535373a60ee443a68e205f5", "size": 709, "ext": "py", "lang": "Python", "max_stars_repo_path": "scraper/lens/errors.py", "max_stars_repo_name": "AkiBae4891/yelp-dataset-challenge-2-ds", "max_stars_repo_head_hexsha": "fa7cace65e502e335bdb804519e2b3ec5b6e77c6", "max_stars_repo_licenses": ["MIT"... |
// Copyright (C) 2017 Vicente J. Botet Escriba
//
// 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)
// <experimental/strong_ints.hpp>
#include <experimental/strong_ints.hpp>
#include <sstream>
#include <boost/det... | {"hexsha": "372d100241530b8af8f249fa17378d72ac3d9944", "size": 9958, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/strong/strong_ints_pass.cpp", "max_stars_repo_name": "jwakely/std-make", "max_stars_repo_head_hexsha": "f09d052983ace70cf371bb8ddf78d4f00330bccd", "max_stars_repo_licenses": ["BSL-1.0"], "max_s... |
#!/usr/bin/python
# This script implements a motion capture surveillace cam for raspery pi using picam.
# It uses the motion vecors magnitude of the h264 hw-encoder to detect motion activity.
# At the time of motion detection a jpg snapshot is saved together with a h264 video stream
# some seconds before, during and a... | {"hexsha": "5c3115ec9b8b794c98bc4de53d689c39f1f5f7d9", "size": 7424, "ext": "py", "lang": "Python", "max_stars_repo_path": "TwoCamRPI.py", "max_stars_repo_name": "cliffeby/Duckpin2", "max_stars_repo_head_hexsha": "9b1b0891e898625373409f7b4b7d4e058184c45e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m... |
import numpy as np
from slbo.envs.mujoco.half_cheetah_env import HalfCheetahEnv
from slbo.envs.mujoco.ant_env import AntEnv
from slbo.envs.mujoco.hopper_env import HopperEnv
from slbo.envs.mujoco.walker_env import WalkerEnv
from slbo.envs.mujoco.ant_task_env import AntTaskEnv, AntTaskConfig
from slbo.envs.mujoco.ant3d_... | {"hexsha": "260806e47dbe54eb2d29298f143b035044fded88", "size": 2612, "ext": "py", "lang": "Python", "max_stars_repo_path": "slbo/partial_envs.py", "max_stars_repo_name": "LinZichuan/AdMRL", "max_stars_repo_head_hexsha": "50a22d4d480e99125cc91cc65dfcc0df4a883ac6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2... |
% !TEX root = main.tex
%-------------------------------------------------
\section{Location-scale models}
We seek to identify classes of parameters, in particular \emph{location parameters} and \emph{scale parameters}.
We can think of a parameter as a \emph{function} of the CDF (or PDF/PMF) of a random variable: we... | {"hexsha": "3d412f02e766ac84769c46076e743a72fad81a06", "size": 10840, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "L5/MA2500/10B_location_models.tex", "max_stars_repo_name": "gillardjw/notes", "max_stars_repo_head_hexsha": "58b3f7e8e2c289a88905bda689c95483bee04490", "max_stars_repo_licenses": ["MIT"], "max_star... |
#%%
"""
The script demonstrates a simple example of using ART with Keras. The example train a small model on the MNIST dataset
and creates adversarial examples using the Fast Gradient Sign Method. Here we use the ART classifier to train the model,
it would also be possible to provide a pretrained model to the ART class... | {"hexsha": "16318685b54cf9505826b2ce2bc69590c5b5766f", "size": 6259, "ext": "py", "lang": "Python", "max_stars_repo_path": "my_scripts/generate_adv_set.py", "max_stars_repo_name": "SilverKnightVGM/adversarial-robustness-toolbox", "max_stars_repo_head_hexsha": "9c37bed005cfe09f04dfed40c0886724b083b975", "max_stars_repo_... |
"""Computes infectiousness level for t days after infection, for t=0:14.
Computes the array of infectiousness levels and prints to the screen.
The results can be stored in kInfectivityArray in core/constants.h.
"""
from absl import app
import numpy as np
import scipy.stats
def infectiousness(t):
"""Computes infec... | {"hexsha": "c63c6f5682c886bdef64144c21f7e3a67adacfe7", "size": 1061, "ext": "py", "lang": "Python", "max_stars_repo_path": "agent_based_epidemic_sim/learning/infectiousness_lookup_table.py", "max_stars_repo_name": "Xtuden-com/agent-based-epidemic-sim", "max_stars_repo_head_hexsha": "49ba724b402605ff85f2892bfbcb6338281f... |
# -*- coding: utf-8 -*-
#import datetime as date
#import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import datetime as date
import numpy as np
# import stat packages
from fbprophet import Prophet
#from fbprophet.diagnostics import cross_validation
from fbprophet.plot import plot_plotly
from sklea... | {"hexsha": "9421c865895be6a52c1f2705b09007d1d3820a73", "size": 17025, "ext": "py", "lang": "Python", "max_stars_repo_path": "logproj/P9_workloadPrediction/demand_predicter.py", "max_stars_repo_name": "aletuf93/logproj", "max_stars_repo_head_hexsha": "ca80637dab7237123899d6972fba96e53916760a", "max_stars_repo_licenses":... |
import argparse
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import yaml
def heatmap_plot(result):
fig = plt.figure(figsize=(9, 9), dpi=100)
ax = fig.add_subplot()
cax = ax.matshow(result.corr(), interpolation='nearest')
fig.colorbar(cax)
num_vars = len(result.corr().co... | {"hexsha": "e930cbf83fad02836de69dc4035a62dff7879f12", "size": 3163, "ext": "py", "lang": "Python", "max_stars_repo_path": "correlation_stats.py", "max_stars_repo_name": "DolanTheMFWizard/automlbenchmark", "max_stars_repo_head_hexsha": "e75e3514bde887ffcdcc0d6157b1c89d8359f22b", "max_stars_repo_licenses": ["MIT"], "max... |
import matplotlib.pyplot as plt
from matplotlib import *
from numpy import *
from matplotlib.animation import *
name = "Log Spiral"
def shape(fig, edge_c, edge_w, grid, radiusm, radiusa, figcolor):
plt.clf()
def r_(u):
r = a * exp(b * u)
return r
a = float(radiusm)
b = float(radiusa)
u = linspace(0, 4 * pi,... | {"hexsha": "248b84b9c3d1e0e29da0f932ae8b353056d1836f", "size": 604, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/Current Models/Two Space/log_spiral.py", "max_stars_repo_name": "PharaohCola13/Geotesimal", "max_stars_repo_head_hexsha": "45de6fb9a587ae8eb3c85d0acd6b93c36fa7bf24", "max_stars_repo_licenses": ... |
\section*{Appendix: List library}
Those list library functions that are not primitive functions are pre-declared as follows:
\input list.js
| {"hexsha": "e60fe7538476832caa3eecd00f19487e42524466", "size": 144, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/source_list_library.tex", "max_stars_repo_name": "vivekscl/js-slang", "max_stars_repo_head_hexsha": "c756088e81b23dd1125dc2fc37bfc8818a142224", "max_stars_repo_licenses": ["Apache-2.0"], "max_sta... |
from datetime import datetime
from mobo.configuration import GlobalConfiguration
import numpy as np
import pandas as pd
from scipy.stats import gaussian_kde
from typing import List, Optional
class Optimizer(object):
"""Optimization pipeline initialized from a configuration.
Args:
configuration: Confi... | {"hexsha": "90a73e466e64536d1bc776a520ed0dd1f780d6b6", "size": 8630, "ext": "py", "lang": "Python", "max_stars_repo_path": "mobo/optimize.py", "max_stars_repo_name": "seatonullberg/mobo", "max_stars_repo_head_hexsha": "4824b5ca8b9de288735fc8fe6585b69c18a8b088", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_co... |
# coding: utf8
from pycropml.units import u
from copy import copy
from array import array
import numpy
from math import *
def model_leafnumber(deltaTT = 23.5895677277199,
phyllochron_t1 = 0.0,
hasFlagLeafLiguleAppeared = 0,
leafNumber_t1 = 0.0,
phase = 1.0):
"""
- Name: Le... | {"hexsha": "cbf6969660cbf60bb46dd8866c29c714cbbc7e20", "size": 4008, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/Models/pheno_pkg/src/py/Leafnumber.py", "max_stars_repo_name": "brichet/PyCrop2ML", "max_stars_repo_head_hexsha": "7177996f72a8d95fdbabb772a16f1fd87b1d033e", "max_stars_repo_licenses": ["MIT"... |
import numpy as np
from scipy.linalg import solve
#def uniTension(Young, strain, stress):
# plasticStrain =
# return
def uniTension(sigmaYield, poison):
"""
sigma 1 = sy
sigma2 = 0
sigma3 = 0
"""
I1 = sigmaYield
J2 = np.power(I1, 2) / 3
return I1, J2
def buttTension(sigmaYiel... | {"hexsha": "ebccd4cc3dc01c08022c56e5ab4cdefdcea6a643", "size": 1577, "ext": "py", "lang": "Python", "max_stars_repo_path": "ExperimentProcess/Mat252/yieldSurface.py", "max_stars_repo_name": "AaronGe88inTHU/pyMaterialTestsProcess", "max_stars_repo_head_hexsha": "c03fdd59645f2e82740b2f5f938789ced55ef93f", "max_stars_repo... |
from collections.abc import Sequence
import cupy
import numpy as np
import pandas as pd
import cudf
from cudf.api.types import is_list_like
from cudf.core.column import as_column, build_categorical_column
from cudf.core.index import IntervalIndex, interval_range
def cut(
x,
bins,
right: bool = True,
... | {"hexsha": "7c585602c23247b42ddfa49862c1c2fce92b0445", "size": 11640, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/cudf/cudf/core/cut.py", "max_stars_repo_name": "etseidl/cudf", "max_stars_repo_head_hexsha": "84073e8c3c9477c8afa974f14058f1208f63aba2", "max_stars_repo_licenses": ["Apache-2.0"], "max_sta... |
const DNA_SEQ = UInt8(0)
const RNA_SEQ = UInt8(1)
const AA_SEQ = UInt8(2)
const DNA_ALPHABET = ['A', 'T', 'C', 'G', 'N']
# for convinience, include 'C' in RNA alphabet
const RNA_ALPHABET = ['A', 'T', 'C', 'G', 'U', 'N']
const DNA_COMPLEMENT = Dict('A'=>'T', 'T'=>'A', 'C'=>'G', 'G'=>'C', 'N'=>'N', 'n'=>'n', 'a'=>'t', '... | {"hexsha": "44d0564e6c9211a3df39caabdf427d678462021f", "size": 3233, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Base/Types/sequence.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/OpenGene.jl-63bcc5cb-6a41-5765-9feb-b5d792dd5d92", "max_stars_repo_head_hexsha": "b1dac40385b7201bdb4ca13d45418fb... |
import sys
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from Bio import SeqIO
from six import StringIO
from Bio.SeqUtils.ProtParam import ProteinAnalysis
from Bio.SeqUtils.ProtParam import ProtParamData
from modlamp.plot import helical_wheel
# Protparam scales:
# kd → Kyte & Dool... | {"hexsha": "10b22645906fefb949c5cdb548fe02874d899f88", "size": 13192, "ext": "py", "lang": "Python", "max_stars_repo_path": "docs/figure_scripts/global_graphs2.py", "max_stars_repo_name": "luispedro/AMPSphereWebsite", "max_stars_repo_head_hexsha": "56992b871786edf3e671a5b8f5b4db3e0ff1151a", "max_stars_repo_licenses": [... |
[STATEMENT]
lemma strt_lemma: "length xs = vl \<Longrightarrow>
rec_exec (rec_strt vl) xs = strt xs"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. length xs = vl \<Longrightarrow> rec_exec (rec_strt vl) xs = strt xs
[PROOF STEP]
apply(simp add: strt.simps rec_exec.simps strt'_lemma)
[PROOF STATE]
proof (prove)
g... | {"llama_tokens": 405, "file": "Universal_Turing_Machine_UF", "length": 4} |
# Implementation of Behavioral cloning model
import os
import csv
import cv2
import numpy as np
import sklearn
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
samples = []
# Load udacity provided training data
with open('/opt/udacity_training_da... | {"hexsha": "9f5028fe6f28eff683cf6b55503212968e18c113", "size": 5481, "ext": "py", "lang": "Python", "max_stars_repo_path": "model.py", "max_stars_repo_name": "sreenivr/SCND_Behavioral_Cloning", "max_stars_repo_head_hexsha": "45a5933da8d46be61ed664b0cc1a762f762403e9", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
[STATEMENT]
lemma dist_fs_finite:
shows "dist_fs (of_complex z1) (of_complex z2) = 2 * cmod(z1 - z2) / (sqrt (1+(cmod z1)\<^sup>2) * sqrt (1+(cmod z2)\<^sup>2))"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. dist_fs (of_complex z1) (of_complex z2) = 2 * cmod (z1 - z2) / (sqrt (1 + (cmod z1)\<^sup>2) * sqrt (1 + (... | {"llama_tokens": 1055, "file": "Complex_Geometry_Chordal_Metric", "length": 7} |
//Copyright (c) 2016 Singapore-MIT Alliance for Research and Technology
//Licensed under the terms of the MIT License, as described in the file:
// license.txt (http://opensource.org/licenses/MIT)
#pragma once
#include <map>
#include <set>
#include <string>
#include <boost/graph/adjacency_list.hpp>
#include <boos... | {"hexsha": "305964c4d528e0f9d935e1eb12ea2f6f2273eecb", "size": 4946, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "dev/Basic/shared/geospatial/streetdir/RailTransit.hpp", "max_stars_repo_name": "gusugusu1018/simmobility-prod", "max_stars_repo_head_hexsha": "d30a5ba353673f8fd35f4868c26994a0206a40b6", "max_stars_r... |
[STATEMENT]
lemma (in group) lift_is_unique:
assumes "group G"
and cl: "f \<in> gens \<rightarrow> carrier G"
and "h \<in> hom \<F>\<^bsub>gens\<^esub> G"
and "\<forall> g \<in> gens. h (\<iota> g) = f g"
shows "\<forall>x \<in> carrier \<F>\<^bsub>gens\<^esub>. h x = lift f x"
[PROOF STATE]
proof (prove)
goa... | {"llama_tokens": 2114, "file": "Free-Groups_FreeGroups", "length": 21} |
#!/usr/bin/env python3
#
# Author: Theresa Enghardt (theresa@inet.tu-berlin.de)
# 2018
#
# Tools to compute and plot page load timings from Navigation Timings, Resource Timings, and HAR files as exported by webtimings.py
#
# Usage:
# ./computetimings.py RUNFILTER WORKLOAD POLICY LOG_LEVEL
# ... | {"hexsha": "4b04a8900805ace0ba1cf9284a130825e4598024", "size": 41036, "ext": "py", "lang": "Python", "max_stars_repo_path": "compute/computetimings.py", "max_stars_repo_name": "theri/web-measurement-tools", "max_stars_repo_head_hexsha": "4bd8b203b976a2e824d36121184344febe3dadf0", "max_stars_repo_licenses": ["BSD-2-Clau... |
import argparse
import os
import numpy as np
import time
from model import CCGAN
from preprocess import *
def conversion_all(speaker_name_list, model_dir, model_name, data_dir, output_dir):
start_time = time.time()
if not os.path.exists(output_dir):
os.makedirs(output_dir)
nu... | {"hexsha": "fd62c17142c8c65569a505998b5d32439cea3ad3", "size": 5658, "ext": "py", "lang": "Python", "max_stars_repo_path": "convert_all.py", "max_stars_repo_name": "wesky260643/CCGAN-VC", "max_stars_repo_head_hexsha": "4e5f2a65c338b34dae5ea190e1d6c58a4ef7903a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 4, ... |
module Data.Ref
import public Data.IORef
import public Control.Monad.ST
%default total
public export
interface Ref m r | m where
newRef : {0 a : Type} -> a -> m (r a)
readRef : {0 a : Type} -> r a -> m a
writeRef : r a -> a -> m ()
export
HasIO io => Ref io IORef where
newRef = newIORef
readRef = readIORe... | {"hexsha": "4f44d32e4a964fea9096835ce58800136ad4a149", "size": 447, "ext": "idr", "lang": "Idris", "max_stars_repo_path": "libs/base/Data/Ref.idr", "max_stars_repo_name": "ska80/idris-jvm", "max_stars_repo_head_hexsha": "66223d026d034578876b325e9fcd95874faa6052", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_... |
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
inputFolder = "../Data/"
outputFolder = "../Plots/BVHPlots/"
showImage = False
def endPlot():
if showImage:
plt.show()
else:
plt.close()
def nodeLeafCount(splitting):
if splitting:
filePath = inputFolder + "averageTable_AllInter.tx... | {"hexsha": "2eb6459eae5d9a6e95171ea500918131b764c8cb", "size": 24720, "ext": "py", "lang": "Python", "max_stars_repo_path": "LatexPlots/MatLibPlot/BVHPlots.py", "max_stars_repo_name": "Hengoo/BVHRaytracer", "max_stars_repo_head_hexsha": "d911f06e1af88859a9c94926669f334a64c516eb", "max_stars_repo_licenses": ["MIT"], "ma... |
import pythreejs as three
import ipywidgets as widgets
import numpy as np
from IPython.display import display as ipydisplay
from .DrawableMesh import DrawableMesh
from .DrawableSkeleton import DrawableSkeleton
from .DrawablePointcloud import DrawablePointCloud
from .GUI import GUI
class Viewer(object):
def __init... | {"hexsha": "8a1fa65532ce2cd261e992f56029922a7d1c1f61", "size": 5008, "ext": "py", "lang": "Python", "max_stars_repo_path": "Py3DViewer/visualization/Viewer.py", "max_stars_repo_name": "hovey/py3DViewer", "max_stars_repo_head_hexsha": "7ae1697aa4860430d0d94b854f8b1f2a4b2d895f", "max_stars_repo_licenses": ["MIT"], "max_s... |
import matplotlib.pyplot as plt
from scipy.io import wavfile # get the api
from scipy.fftpack import fft
from basic_units import hertz
from pylab import *
import glob
import numpy as np
def f(filename):
print(f"Parsing {filename}")
fs, data = wavfile.read(filename)
plt.clf()
plt.cla()
lf = abs(np... | {"hexsha": "ed9ed7c1ba3f5b4a2c813ad39f61e00c0824c721", "size": 563, "ext": "py", "lang": "Python", "max_stars_repo_path": "5-sem/multimedia-processing/exercises/esercitazione-2/images/spec-analysis.py", "max_stars_repo_name": "denysvitali/supsi-i3b-sem1", "max_stars_repo_head_hexsha": "d6b3b1b24749101b01357d1bec34f67bd... |
import geopy.distance as gpy
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt
import numpy as np
import math
import sys
import cv2
import objects as obj
import http_handler as hh
import setting as st
# bou... | {"hexsha": "65f1d646be02ec58d31ce921bcb0ed4f00bb0c28", "size": 7651, "ext": "py", "lang": "Python", "max_stars_repo_path": "my_util.py", "max_stars_repo_name": "gilbert1991/map", "max_stars_repo_head_hexsha": "4f60cc77f3ae4ad74da4c2b77d880bd19a203885", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_s... |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//
//版权所有(c)2013-2017 Vinnie Falco(Gmail.com上的Vinnie Dot Falco)
//
//在Boost软件许可证1.0版下分发。(见附件
//文件许可证_1_0.txt或复制到http://www... | {"hexsha": "33698432a245e5e87e50b4e6a115ecd7666ce9a5", "size": 4054, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/beast/extras/beast/test/string_ostream.hpp", "max_stars_repo_name": "yinchengtsinghua/RippleCPPChinese", "max_stars_repo_head_hexsha": "a32a38a374547bdc5eb0fddcd657f45048aaad6a", "max_stars_repo... |
import numpy as np
import itertools as it
import os
from PIL import Image
from colour import Color
import aggdraw
from helpers import *
from mobject import Mobject, PMobject, VMobject, ImageMobject, Group
class Camera(object):
CONFIG = {
"background_image" : None,
"pixel_shape" : (DEFAULT_HEIGHT,... | {"hexsha": "b298ae3342d35fc3665f6106bc6c2fd1c1d5d340", "size": 14404, "ext": "py", "lang": "Python", "max_stars_repo_path": "camera.py", "max_stars_repo_name": "S3L1M/Image-RGB-Ratio", "max_stars_repo_head_hexsha": "bd0d631166211d89e12acff0345a7754eb4e53a2", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ... |
#include <gtest/gtest.h>
#include <string>
#include <boost/assert.hpp>
#include <blackhole/extensions/format.hpp>
#include <src/datetime.hpp>
namespace blackhole {
namespace testing {
namespace {
using blackhole::datetime::make_generator;
class datetime_t : public ::testing::Test {
protected:
std::tm tm;
... | {"hexsha": "a9db805798bfb200d0731de1e04ab05f7a301a75", "size": 9376, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/datetime.cpp", "max_stars_repo_name": "JakariaBlaine/blackhole", "max_stars_repo_head_hexsha": "e340329c6e2e3166858d8466656ad12300b686bd", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
/-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
! This file was ported from Lean 3 source module topology.algebra.mul_action
! leanprover-community/mathlib commit d90e4e186f1d18e375dcd4e5b5f6364b01cb3e46
! Please d... | {"author": "leanprover-community", "repo": "mathlib4", "sha": "b9a0a30342ca06e9817e22dbe46e75fc7f435500", "save_path": "github-repos/lean/leanprover-community-mathlib4", "path": "github-repos/lean/leanprover-community-mathlib4/mathlib4-b9a0a30342ca06e9817e22dbe46e75fc7f435500/Mathlib/Topology/Algebra/MulAction.lean"} |
import ScikitSpatial: Vector
@testset "Vector from two points" begin
@test Vector([0, 0], [0, 0]) == [0, 0]
@test Vector([0, 0], [1, 0]) == [1, 0]
@test Vector([1, 0, 1], [0, 0, 5]) == [-1, 0, 4]
end
@testset "Unit" begin
for (vector, vector_unit_expected) in [
([1, 0], [1, 0])
([2, ... | {"hexsha": "c1ed041fca93d9f41e49f5409ae00b72b999eeb5", "size": 1880, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/computations/transformation.jl", "max_stars_repo_name": "ajhynes7/ScikitSpatial.jl", "max_stars_repo_head_hexsha": "60b0de7ae721c1dcfedfe4cf3b4a9409a4153d37", "max_stars_repo_licenses": ["BSD-... |
export plotting, plotting!, plotting_colored_mutations, plotting_colored_mutations!, colors_by_mutations
export plotting_sampletumor_pies!, plotting_sampletumor_pies
function plotting!(scene, tumor;
path="", markersize = 1.0, color=nothing, colormap=distinguishable_colors(68), alpha = 1.,
plotargs...
... | {"hexsha": "5a1ebb66bb6755544f7300894a3fa272102657f5", "size": 4509, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/plotting.jl", "max_stars_repo_name": "aangaji/TumorGrowth", "max_stars_repo_head_hexsha": "1b4eb76b381e29e59f879320482079ed39d7973b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null... |
(**
<<
1. Introduction
>>
*)
Fixpoint fact_aux (acc: nat) (n:nat):=
match n with
| O => acc
| S n' => (fact_aux (acc*n) n')
end.
Functional Scheme fact_aux_ind := Induction for fact_aux Sort Prop.
Definition fact_tr (n: nat) := fact_aux 1 n.
Require Import Arith Ring.
Lemma ... | {"author": "yoy553", "repo": "fold-ud", "sha": "806c4481694002471eb62ed3fd2accd96ad717ae", "save_path": "github-repos/coq/yoy553-fold-ud", "path": "github-repos/coq/yoy553-fold-ud/fold-ud-806c4481694002471eb62ed3fd2accd96ad717ae/dual/Fact/Fact.v"} |
import matplotlib
import numpy as np
import pylab as PL
import scipy as SP
import scipy.stats as ST
from matplotlib import gridspec
def plot_inference_result(y,w1,w2,x1,x2,tau,cell_lines = [], muts=[], title='', figname='test.png'):
matplotlib.rcParams.update({'font.size': 12})
fig = PL.figure(figsize=(9,6))... | {"hexsha": "07d121282a97744416ad6571213e54f2a2a806e9", "size": 3776, "ext": "py", "lang": "Python", "max_stars_repo_path": "jacks/jacks/plot_infer.py", "max_stars_repo_name": "peterpdu/JACKS", "max_stars_repo_head_hexsha": "db231508fa8fde05c282c75456795ea8faf0032c", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars... |
[STATEMENT]
theorem powerset_enum_distinct: "distinct xs \<Longrightarrow> distinct (powerset_enum xs)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. distinct xs \<Longrightarrow> distinct (powerset_enum xs)
[PROOF STEP]
proof -
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. distinct xs \<Longrightarrow> distinc... | {"llama_tokens": 824, "file": "Combinatorial_Enumeration_Algorithms_Powerset", "length": 11} |
#! /usr/bin/env python3
# -*- encoding: utf-8 -*-
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
import numpy as np
from morinth.gaussian_bump import EquilibriumExperiment
from morinth.gaussian_bump import EquilibriumConvergenceRates
from morinth.boundary_conditions import Perio... | {"hexsha": "b7bff77c5347c5639281f9752a60b88d0bf74c89", "size": 4232, "ext": "py", "lang": "Python", "max_stars_repo_path": "wave_propagation.py", "max_stars_repo_name": "1uc/morinth", "max_stars_repo_head_hexsha": "634769dc0925932e2c7ab7ff6fe5f978862bb50b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "... |
function definitions(b::Block)
defs = [Variable(i) for i = 1:length(b.ir.defs) if b.ir.defs[i][1] == b.id]
append!(defs, arguments(b))
end
function usages(b::Block)
uses = Set{Variable}()
prewalk(b) do x
x isa Variable && push!(uses, x)
return x
end
return uses
end
function dominators(ir)
doms =... | {"hexsha": "ec49b240332139dfc452e50c260667026cb0cb22", "size": 5113, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/passes/passes.jl", "max_stars_repo_name": "musm/IRTools.jl", "max_stars_repo_head_hexsha": "1756e84fe7adda11371327fc63ba5d1757376087", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul... |
!-------------------------------------------------------------------------------
! Copyright (c) 2019 FrontISTR Commons
! This software is released under the MIT License, see LICENSE.txt
!-------------------------------------------------------------------------------
!C***
!C*** module hecmw_solver_GPBiCG
!C***
!
modu... | {"hexsha": "6ba2e03e4f4345c08e5abb121011d68d465049cb", "size": 15665, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "hecmw1/src/solver/iterative/hecmw_solver_GPBiCG.f90", "max_stars_repo_name": "masae-hayashi/FrontISTR", "max_stars_repo_head_hexsha": "a488de9eb45b3238ba0cd11454c71a03450666a6", "max_stars_repo... |
require('maftools')
{{rimport}}('__init__.r', 'plot.r')
indir = {{i.indir | quote}}
outdir = {{o.outdir | quote}}
isTCGA = {{args.isTCGA | R}}
mutypes = {{args.mutypes | R}}
devpars = {{args.devpars | R}}
plots = {{args.plot | R}}
mtparams = {{args.params | R}}
ngenes = {{args.ngenes | R}}
nthread = {{... | {"hexsha": "405ae8b8e94061360fe20369421e986d9a1ac12b", "size": 20190, "ext": "r", "lang": "R", "max_stars_repo_path": "bioprocs/scripts/vcfnext/pMaftools.r", "max_stars_repo_name": "LeaveYeah/bioprocs", "max_stars_repo_head_hexsha": "c5d2ddcc837f5baee00faf100e7e9bd84222cfbf", "max_stars_repo_licenses": ["MIT"], "max_st... |
From mathcomp
Require Import ssreflect ssrnat.
Section naturalNumber.
Lemma addOnEqn (n : nat) : 0 + n = n.
Proof. by []. Qed.
Lemma addn3Eq2n1 (n : nat) : n + 3 = 2 + n + 1.
Proof.
rewrite addn1.
rewrite add2n.
rewrite addnC.
by [].
Qed.
Fixpoint sum n := if n is m.+1 then (sum m) + n else 0.
Lemma sumGauss ... | {"author": "hajifkd", "repo": "coq_book", "sha": "5bc7ff0c2234034d61ab1aed441fc6d0efa03344", "save_path": "github-repos/coq/hajifkd-coq_book", "path": "github-repos/coq/hajifkd-coq_book/coq_book-5bc7ff0c2234034d61ab1aed441fc6d0efa03344/ch2/NaturalNumber.v"} |
!123456
real, allocatable :: eigup(:,:),eigdn(:,:),feigup(:,:)
real, allocatable :: feigdn(:,:),xrk(:,:), xk(:,:), kval(:)
integer :: nband, nks, nline, istart, nrem, check, line, next_line
integer :: nion
real :: k, kpt, dis_k
real :: fermi,spin
real :: b11, b12, b13, b21... | {"hexsha": "360ec81b3e65f10101a523655d5b14be436314d6", "size": 13254, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "Park_pro.f90", "max_stars_repo_name": "pyungjinpark/Vasp_code", "max_stars_repo_head_hexsha": "75ce9bf10fa851b4d5c879138a4642ce518b77e2", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
\section{Phase Unwrapping}
\subsection{Path-Following vs Minimum Norm Algorithms}
\subsubsection{Path-Following Algorithms}
Phase unwrapping algorithms may be categorized as path-following or minimum norm algorithms. Path-following algorithms generally specify one or more starting points at which the phase is consi... | {"hexsha": "07326896f2697331ad8857dca0c59cfb0fea5b7b", "size": 6980, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Document/includes/Phase Unwrapping.tex", "max_stars_repo_name": "DVigneault/ITKPhaseSubmission", "max_stars_repo_head_hexsha": "4f52c134102139544a63d454501983f00c3ade67", "max_stars_repo_licenses": ... |
# Taylor problem 1.51
This problem attacks the "oscillating skateboard" problem described in Example 1.2 of Taylor. A Newton's 2nd law analysis leads to the differential equation for the angle $\phi$ in radians:
$
\begin{align}
\ddot\phi = -\frac{g}{R}\sin\phi
\;.
\end{align}
$
This is a 2nd order, *nonlinear* ... | {"hexsha": "6b228f56c4cffb8b0c7afbf75f9b4f4ad1d1f1cc", "size": 133971, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "2020_week_1/Taylor_problem_1.51_CL.ipynb", "max_stars_repo_name": "CLima86/Physics_5300_CDL", "max_stars_repo_head_hexsha": "d9e8ee0861d408a85b4be3adfc97e98afb4a1149", "max_stars_re... |
"""
A jones calculus example.
You can use the package for simple normal incidence Jones calculus. In the
:mod:`dtmm.jones` you will find all the functionality to work with jones calculus.
For example, we can compute the transmittance properties of a simple Twisted
Nematic director profile. We compute wavelength-de... | {"hexsha": "04e072515f35a49131e4dfb446fc298d0c0d9058", "size": 2308, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/1D/jones_twisted_nematic.py", "max_stars_repo_name": "IJSComplexMatter/dtmm", "max_stars_repo_head_hexsha": "08c66ddf55f9276bc713e921eaadbadbb4a28fe2", "max_stars_repo_licenses": ["MIT"],... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.