sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
17k
content
stringlengths
1
200k
67b0fc3dc885a1a605fd70ad20d1f37e3a2f5991ea816995389d948ef3645a53
Python
117,288
2,797
import os.path import sys import hashlib import pytest import numpy as np from numpy.exceptions import AxisError from numpy.linalg import LinAlgError from numpy.testing import ( assert_, assert_raises, assert_equal, assert_allclose, assert_warns, assert_no_warnings, assert_array_equal, assert_array_almost...
a34757d909ba0760d28126b145eb7d1392f78bfac0e8e180a38e43ce1b2b1989
Python
117,686
2,458
import warnings warnings.simplefilter("ignore") import os os.environ["KIVY_NO_CONSOLELOG"] = "1" from numpy.core.numeric import ones from pandas._config.config import set_option from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.factory import Factory from kivy.properties import ObjectPro...
995dbbe3a549c0a6bcf91c27e222be9ef0e5fc2b8c707a033cec4fdf07c9e55f
Python
119,354
3,366
""" test label based indexing with loc """ from collections import namedtuple from datetime import ( date, datetime, time, timedelta, ) import re from dateutil.tz import gettz import numpy as np import pytest from pandas._config import using_pyarrow_string_dtype from pandas._libs import index as libi...
1a26fee3567bdf97e73d48742299fa57f5f2c4a84f2f7ce6d621454cdcb0725a
Python
121,614
3,657
import datetime import numpy as np import pytest import pytz import pandas.util._test_decorators as td import pandas as pd from pandas import ( Index, Timedelta, merge_asof, option_context, to_datetime, ) import pandas._testing as tm from pandas.core.reshape.merge import MergeError @pytest.fixt...
283f5601c6230e86bf76e8c7de5510ba46f720ccb23f2d8691fda81e6eac74e8
Python
121,671
2,705
import datetime import pickle import pytest import numpy import numpy as np from numpy.testing import ( IS_WASM, assert_, assert_equal, assert_raises, assert_warns, suppress_warnings, assert_raises_regex, assert_array_equal, ) # Use pytz to test out various time zones if available try: from pytz ...
f89058bed25ab8fee9ae12f6301631f08a0306797d9563187d96a7ddd47f83d3
Python
122,378
2,003
import numpy as np import time import graph_tool as gt from graph_tool import draw as gdraw from graph_tool import topology as gtop import lcapy import PySpice.Logging.Logging as Logging logger = Logging.setup_logging() from PySpice.Spice.Netlist import Circuit from PySpice.Unit import * class pipenet(): ''' Class...
83de6de71d2b4dd171eea93246bc0d96c91e17dadf02afe56297680aacb1aa65
Python
122,913
3,009
#!/usr/bin/env python3 # Tests implemented in this file are relying on GitHub GraphQL APIs # In order to avoid test flakiness, results of the queries # are cached in gql_mocks.json # PyTorch Lint workflow does not have GITHUB_TOKEN defined to avoid # flakiness, so if you are making changes to merge_rules or # GraphQL ...
fc859ae5c32d99331972a1fc0ace4cdfa12dda7a6a0ac93082f41bc75a176dbf
Python
123,649
3,348
import array from collections import ( OrderedDict, abc, defaultdict, namedtuple, ) from collections.abc import Iterator from dataclasses import make_dataclass from datetime import ( date, datetime, timedelta, ) import functools import re import numpy as np from numpy import ma from numpy.m...
bdb4c9d3faee5201b1423944aacaee16688d3d5ca1dadf6afb3c930d3d39df12
Python
124,451
3,676
# TODO: Add Generic type annotations to initialized collections. # For now we'd simply use implicit Any/Unknown which would add redundant annotations # mypy: disable-error-code="var-annotated" """ Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirecto...
a45faf5e0b01c075e4fa475b8f7597284dd3dc26a7404890a38d1d291839e116
Python
127,057
2,805
""" This modules specifies contrasts for the IBC tasks Author: Bertrand Thirion, Ana Luisa Pinho 2014--2020 """ import numpy as np def make_contrasts(paradigm_id, design_matrix_columns=None): """ return the contrasts matching a string""" if paradigm_id == 'ArchiStandard': return archi_standard(desig...
323032025f473b90846874f2dc5de0b44acca6362b9e7e8419ad2e9287516ef0
Python
127,610
3,401
#!/usr/bin/env python3 from __future__ import annotations import base64 import json import os import re import time import traceback import urllib.parse from collections import defaultdict from dataclasses import dataclass from functools import cache, partial from pathlib import Path from re import Pattern from typin...
a3e6311f9e9e7c76ffc8de7e91b277983569a7855ab1afc33c4e65844cdc01cd
Python
131,186
3,364
import sys import pytest import textwrap import subprocess import numpy as np import numpy._core.umath as ncu import numpy._core._multiarray_tests as _multiarray_tests from numpy import array, arange, nditer, all from numpy.testing import ( assert_, assert_equal, assert_array_equal, assert_raises, IS_WASM, HA...
aa2576c24346d3e676feefdabde44b288f6a10ea9a2f1c96bdc87a06dcfe52b7
Python
132,405
3,201
import warnings import itertools import sys import ctypes as ct import pickle import pytest from pytest import param import numpy as np import numpy._core.umath as ncu import numpy._core._umath_tests as umt import numpy.linalg._umath_linalg as uml import numpy._core._operand_flag_tests as opflag_tests import numpy._c...
987149fe300f3785d97c454e9c02fe651eeaec48d0652a2f4f67297f6ea1d01f
Python
134,534
3,507
import copy import os import torch import networkx as nx from utils import one_hot from rules import ( ATOMIC_NUMBER, CHARGE_CATEGORIES, HYBRIDIZATION_CATEGORIES, FRAGMENTS, MAX_VALENCE, bond_orders, node_valence_degree, atomic_num_at, atomic_charge_at, adjacency...
056db229bb06e607eeeaf511ff991b517f15b697004e5675d9f61c276825261b
Python
135,483
3,194
from __future__ import annotations import os import time from pathlib import Path from typing import TYPE_CHECKING, Any, cast import numpy as np import tifffile import useq from ndv import NDViewer from pymmcore_widgets.useq_widgets._well_plate_widget import ( DATA_POSITION, WellPlateView, ) from qtpy.QtCore ...
7603ef7966abaa5f6e67aa1238ed360df9dfed99a21727b62d41b4fbd22b1226
Python
135,790
3,763
""" Module contains tools for processing Stata files into DataFrames The StataReader below was originally written by Joe Presbrey as part of PyDTA. It has been extended and improved by Skipper Seabold from the Statsmodels project who also developed the StataWriter and was finally added to pandas in a once again improv...
86a07fb6188467589d3420a0ae230959759188de89f367fa7a4401989bfd94d3
Python
137,319
3,250
""" Created on Jan 8, 2026 Classify modulation of corticospinal excitability (MEP) using p-values of t-tests. Only run one model for experiment 1A. For publication. Has main function. @author: mning STATUS: WIP. FOR PUBLICATION: Unknown. SYNTAX: Script. DESCRIPTION: Performs classification of entropies. ...
3d9848289d02d6845f3ef0267b21eb605101099f0bc5922941f6524575c32929
Python
139,182
3,485
#!/usr/bin/env python3 """ Scientific workflow ------------------- * Recursively inventory EEG-Pype .txt output. * Keep sensor-level and each source method / atlas / region selection separate. * Prefer unfiltered data and otherwise use the widest passband that covers the fit. * Calculate a multitaper PSD for each saved...
86ed552fd9db55da6926b5688a356c85195c4517bfbf7763bb7326776b0a65d6
Python
140,235
3,610
EMOJI = { "1st_place_medal": "🥇", "2nd_place_medal": "🥈", "3rd_place_medal": "🥉", "ab_button_(blood_type)": "🆎", "atm_sign": "🏧", "a_button_(blood_type)": "🅰", "afghanistan": "🇦🇫", "albania": "🇦🇱", "algeria": "🇩🇿", "american_samoa": "🇦🇸", "andorra": "🇦🇩", ...
26c91948abcaa2da9b792fb6504e614c1e5ec89e6dbaea2da19deee3bbf7dd46
Python
143,195
4,157
from __future__ import annotations from collections.abc import ( Collection, Generator, Hashable, Iterable, Sequence, ) from functools import wraps from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Callable, Literal, cast, ) import warnings import numpy as np ...
80af26d98de5489e6ab3380d13e17e65d37ab9a6f8d1c5b9041b03e1238d1cb0
Python
143,907
4,269
"""Module containing non-deprecated functions borrowed from Numeric. """ import functools import types import warnings import numpy as np from .._utils import set_module from . import multiarray as mu from . import overrides from . import umath as um from . import numerictypes as nt from .multiarray import asarray, a...
c2990b6f989849d4590969e86021d7d9e14f0790dac9abb6737447db79090d7e
Python
145,081
4,395
from __future__ import annotations import contextlib from contextlib import closing import csv from datetime import ( date, datetime, time, timedelta, ) from io import StringIO from pathlib import Path import sqlite3 from typing import TYPE_CHECKING import uuid import numpy as np import pytest from p...
fb3e694f2799a89c13539f80656b99e5ae203270256baca4bc50656c6cbe5f2f
Python
145,640
2,892
## ........................................................................... ## ## PIMMS (Polymer Interactions in Multicomponent Mixtures) ## Alex Holehouse, Pappu Lab, Holehouse Lab ## Copyright 2015 - 2026 ## ........................................................................... ## ## simulation ## ## This f...
a2e9a94ac76a25543496339bc2433ec2c6b90c3506265ab013f2311d718d83eb
Python
146,052
3,999
""" Quantum state and operator class backend by tensornetwork """ # pylint: disable=invalid-name import logging import math import os import warnings from functools import partial, reduce from operator import matmul, mul, or_ from collections import Counter from typing import ( Any, Callable, Collection, ...
5335ee3100ab5e962f3135c171fee47440373d0a59dcfc0ac308714a66bc4252
Python
147,509
3,382
""" Created on Jan 5, 2026 Run regression on TEP ratios using entropy as predictors. @author: mning STATUS: WIP. FOR PUBLICATION: Unknown. SYNTAX: Script. DESCRIPTION: Performs classification of entropies. Look at second feature set. PIPELINE SUMMARY: RESTRICTION: 1) Feature selection option is not p...
b96722fd3e98a32f84ebc5925565cf6faf23a9ba05a33ed7eeb28fe154c77b79
Python
148,507
3,763
""" crackfortran --- read fortran (77,90) code and extract declaration information. Copyright 1999 -- 2011 Pearu Peterson all rights reserved. Copyright 2011 -- present NumPy Developers. Permission to use, modify, and distribute this software is given under the terms of the NumPy License. NO WARRANTY IS EXPRESSED OR ...
3d4ecfb7ba580dea11bfbcc56311ebe51bb8f882ea48ee0e8c91214fad9e363a
Python
151,801
3,129
""" Simulation code for the Amygdala Engrams model. At the bottom of this file, you will find the main method. Please simply uncomment the line for the figure which you would like to reproduce. """ from model.phase import Phase from model.model import AmygdalaEngrams import numpy as np import matplotlib.pyplot as pl...
00ccd5ccaff867e6d64f4b2c6402100e9443c9e16e9cef0ea6420853ff9e22c0
Python
155,629
5,004
import marimo __generated_with = "0.18.0" app = marimo.App(width="medium", auto_download=["ipynb"]) @app.cell def _(): import os from datetime import datetime import numpy as np import pandas as pd import scipy.stats as stats import statsmodels.formula.api as smf # Local module imports ...
edb33da2890565d44c5636a6214cc27327e260058cd24b1377d9b7527bf20c0d
Python
155,854
4,136
""" Module for applying conditional formatting to DataFrames and Series. """ from __future__ import annotations from contextlib import contextmanager import copy from functools import partial import operator from typing import ( TYPE_CHECKING, Any, Callable, overload, ) import warnings import numpy as...
fdfd67416ba39b63d0645e18f468f1b785bb47431b54d18987d38476390a1421
Python
158,490
4,210
import sys import warnings import itertools import platform import pytest import math from decimal import Decimal import numpy as np from numpy._core import umath, sctypes from numpy._core.numerictypes import obj2sctype from numpy.exceptions import AxisError from numpy.random import rand, randint, randn from numpy.tes...
0ac48b0993ff2fde8ffcec5bd253c025ed3024b604e120eb41e2b2d57a7e67a4
Python
160,245
3,409
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2023.2.3), on June 19, 2024, at 12:46 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, L...
89907ed55ef4c2315f812933edf86ec138cd46188febb3aa9e57d8183dce7aee
Python
161,525
4,810
"""Tests for the CaliRunner and internal runners. Optimized for CI speed while maintaining >90% coverage. Key optimizations: 1. Mock cellpose inference in most tests (cellpose is slow) 2. Use fixtures to share database setup where possible """ import gc from collections.abc import Generator, Iterator from pathlib imp...
28dcc20c9669ec899df8bdd6f8c211ee62a86db7a181e449ab09b241a07f8147
Python
163,839
3,272
## ........................................................................... ## ## PIMMS (Polymer Interactions in Multicomponent Mixtures) ## Alex Holehouse, Pappu Lab, Holehouse Lab ## Copyright 2015 - 2026 ## ........................................................................... import random import math im...
9aa6f8c4c6f4e9888dbe2ee0b8ab4027d47f2ab622c9ad686ff47d92583bf25a
Python
164,893
3,170
import torch from torch.optim import Adam import torch.nn.functional as F from gym.spaces import Box, Discrete, MultiDiscrete from multiagent.multi_discrete import MultiDiscrete from utils.networks import MLPNetwork, SNNNetwork from utils.misc import soft_update, average_gradients, onehot_from_logits, gumbel_softmax fr...
8d1d9cecafb55f45cca84b2f7a3df054392c62d9e7aaaf1b18ae40ed583e1ef8
Python
165,213
5,261
import marimo __generated_with = "0.18.2" app = marimo.App(width="medium", auto_download=["ipynb"]) @app.cell def _(): import os from datetime import datetime import numpy as np import pandas as pd import scipy.stats as stats import statsmodels.formula.api as smf # Local module imports ...
6f8b561e624c2917e7aa97c1217e07ea8065a346a267c980fdcae1d4372309a9
Python
165,220
5,264
import marimo __generated_with = "0.18.2" app = marimo.App(width="medium", auto_download=["ipynb"]) @app.cell def _(): import os from datetime import datetime import numpy as np import pandas as pd import scipy.stats as stats import statsmodels.formula.api as smf # Local module imports ...
729d7e424a88c1344d7080ba456c0fd2f7f9bf147fb64114552978241c45b933
Python
166,732
3,945
"""@authors: Herman van Dellen en Yorben Lodema.""" import itertools import json import logging import math import os import pickle import random import re import time from collections import defaultdict from datetime import datetime from multiprocessing import Pool, cpu_count from typing import Optional import mne i...
620c5a4538e928dcf0f76c643317716362701d0a013abc9bfb4ea06918939f57
Python
168,840
4,478
import operator import warnings import sys import decimal from fractions import Fraction import math import pytest import hypothesis from hypothesis.extra.numpy import arrays import hypothesis.strategies as st from functools import partial import numpy as np from numpy import ( ma, angle, average, bartlett, blackm...
4fb9a43530b7696cbf44549a252ec73824f28b8070167f6180a8a5241d9268b2
Python
170,637
3,831
""" Created on Dec 19, 2024 Classify plasticity in corticospinal excitability (MEP). @author: mning """ """ STATUS: WIP. FOR PUBLICATION: Unknown. SYNTAX: Script. DESCRIPTION: Performs classification of entropies. Look at second feature set. PIPELINE SUMMARY: RESTRICTION: 1) Feature selection option i...
e4db149f28ba02c0cd2f23ee4c1ccb05d36b53341a02e6914553848e8db534b0
Python
174,431
5,561
import marimo __generated_with = "0.18.0" app = marimo.App(width="medium", auto_download=["ipynb"]) @app.cell def _(): import os import re from pathlib import Path from datetime import datetime import numpy as np import pandas as pd import scipy.stats as stats import statsmodels.formu...
4ce0b23822aeeab193d503271d85a87340aae2fafeff4c200d3ae95b0bdd1169
Python
174,778
3,930
""" NO LONGER IN USE, use calc_Classification_Entropy_Ratio_2.py Created on Dec 23, 2024 @author: mning STATUS: WIP. FOR PUBLICATION: Unknown. SYNTAX: Script. DESCRIPTION: Performs classification of powers of different frequency bands and plot different performance metrics. Additional debugging informat...
6d72e50fc83c27880984783760febeb5b5e690034a3d313c6d77de1f0bbc72ae
Python
176,851
4,026
""" Created on Apr 28, 2025 To compare two files, use git diff: git diff --no-index calc_Classification_Entropy_Ratio_02.py calc_Classification_Entropy_Ratio_2.py Diff between calc_Classification_Entropy_Ratio.py: Use entropy from rf"Entropy_{band_name}_{inpt_op_str}_02_Full.csv" instead of rf"Entropy_{band_name}_{i...
a3c248b640f407951ec2392ce483edcafe49b47cea0fde3250eeb1550f74917f
Python
177,239
5,421
""" High level interface to PyTables for reading and writing pandas data structures to disk """ from __future__ import annotations from contextlib import suppress import copy from datetime import ( date, tzinfo, ) import itertools import os import re from textwrap import dedent from typing import ( TYPE_CH...
92d8046632641b79f127f8ce210f91173efae5ea5798429350172b1f90adf862
Python
182,384
3,888
""" Simulation code for the Amygdala Engrams model. At the bottom of this file, you will find the main method. Please simply uncomment the line for the figure which you would like to reproduce. """ from model.phase import Phase from model.model import AmygdalaEngrams import numpy as np import matplotlib.pyplot as pl...
c88eb1da32bcec5144d3340e0aee301a4b211382db7aaaaa2f2d4c8b1af1cb13
Python
188,043
4,036
""" UNTESTED Created on Apr 9, 2025 To compare two files, use git diff: git diff --no-index calc_Classification_Entropy_Ratio_02.py calc_Classification_Entropy_Ratio_2.py Diff between calc_Classification_Entropy_Ratio.py: Use entropy from rf"Entropy_{band_name}_{inpt_op_str}_02_Full.csv" instead of rf"Entropy_{band...
4b676a973885b9beb54f4eb983ca660d7e9ca9eea23788483d985342ebc55e65
Python
188,742
4,059
""" Created on Oct 21, 2024 To compare two files, use git diff: git diff --no-index calc_Classification_Entropy_Ratio_02.py calc_Classification_Entropy_Ratio_2.py Diff between calc_Classification_Entropy_Ratio.py: Use entropy from rf"Entropy_{band_name}_{inpt_op_str}_02_Full.csv" instead of rf"Entropy_{band_name}_{i...
2a56d97f6f2b09346149869cc3aefd879473783a605dbe97b3d0c2e20e83433d
Python
192,331
4,166
""" Created on Apr 9, 2025 To compare two files, use git diff: git diff --no-index calc_Classification_Entropy_Ratio_02.py calc_Classification_Entropy_Ratio_2.py Diff between calc_Classification_Entropy_Ratio.py: Use entropy from rf"Entropy_{band_name}_{inpt_op_str}_02_Full.csv" instead of rf"Entropy_{band_name}_{in...
a9e108aa78c197bfe61e105987af92ffba01cfde2769b3324bec6a75039797da
Python
193,188
4,897
import platform import warnings import fnmatch import itertools import pytest import sys import operator from fractions import Fraction from functools import reduce from collections import namedtuple import numpy._core.umath as ncu from numpy._core import _umath_tests as ncu_tests, sctypes import numpy as np from nump...
ca336c8099aeb6b5b1663fbaa2f782b640c580983a4b8adc5c7b09f2bb235535
Python
195,730
5,997
""" Provide the groupby split-apply-combine paradigm. Define the GroupBy class providing the base-class of operations. The SeriesGroupBy and DataFrameGroupBy sub-class (defined in pandas.core.groupby.generic) expose these user-facing objects to provide specific functionality. """ from __future__ import annotations fr...
79e65a8b3169b022de8ac2dcc6b43e78ae11fbc7a7c3a60a3d5d637833f00b35
Python
196,038
5,827
import builtins import collections.abc import functools import re import sys import warnings import numpy as np import numpy._core.numeric as _nx from numpy._core import transpose, overrides from numpy._core.numeric import ( ones, zeros_like, arange, concatenate, array, asarray, asanyarray, empty, ndarray, tak...
a7bb6497f2d0dd938d93f2269584f22cdfc0ad2fc12ba9ad564fd0145f25f201
Python
197,682
5,097
"""@authors: Herman van Dellen and Yorben Lodema.""" import os import json import pickle import posixpath import traceback import webbrowser as wb from datetime import datetime from pathlib import Path import gc import mne import mne_icalabel import numpy as np import pandas as pd from mne.beamformer import apply_lcm...
03924e8511570924737db24397f7691ec8e9cbb5ac2a1d4790679c2bb5686ed7
Python
200,000
5,066
# module pyparsing.py # # Copyright (c) 2003-2018 Paul T. McGuire # # 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, cop...
5cba93dd451273619b1add1410b4cf912d99420073f4027f227244faafcee46f
Python
200,000
6,681
""" This is only meant to add docs to objects defined in C-extension modules. The purpose is to allow easier editing of the docstrings without requiring a re-compile. NOTE: Many of the methods of ndarray have corresponding functions. If you update these docstrings, please keep also the ones in _core/fromnu...
7b2fa60560e2e7b9f82638ca08771436deb9018201021258932cf6de7484c501
Python
200,000
5,219
# pylint: disable-msg=W0400,W0511,W0611,W0612,W0614,R0201,E1102 """Tests suite for MaskedArray & subclassing. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu """ __author__ = "Pierre GF Gerard-Marchant" import sys import warnings import copy import operator import itertools import textwrap import pi...
98182da85d3ef726c990a82b1736e2cab0804e3fd76ab6b224b1d594ecbcb236
Python
200,000
5,671
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
9e8c8d77b83f8b7b65cf0cb7daa7bcb1096ab2310e49473f0f33de50b5f2d337
Python
200,000
6,040
""" numpy.ma : a package to handle missing or invalid values. This package was initially written for numarray by Paul F. Dubois at Lawrence Livermore National Laboratory. In 2006, the package was completely rewritten by Pierre Gerard-Marchant (University of Georgia) to make the MaskedArray class a subclass of ndarray,...
a18f3e95090fb4c1472519b668dec7cc8964cc233ba8f4c44f6b08f965157e17
Python
200,000
5,057
from __future__ import annotations import collections.abc import tempfile import sys import warnings import operator import io import itertools import functools import ctypes import os import gc import re import weakref import pytest from contextlib import contextmanager import pickle import pathlib import builtins fr...
9284967e7fe78782e1c597db25a1746467fc0c1950a6b08f12db79496fc09555
Python
200,002
5,813
# pyright: reportPropertyTypeMismatch=false from __future__ import annotations import collections from copy import deepcopy import datetime as dt from functools import partial import gc from json import loads import operator import pickle import re import sys from typing import ( TYPE_CHECKING, Any, Callab...
51d92fe38a483eeb3ab9168e4288a8afb3c607c638fe58ec190f059406e136e1
Python
200,003
5,929
from __future__ import annotations from collections import abc from datetime import datetime import functools from itertools import zip_longest import operator from typing import ( TYPE_CHECKING, Any, Callable, ClassVar, Literal, NoReturn, cast, final, overload, ) import warnings i...
873a88615f113b19edd9ea7e7b24ed1980b82ecf872e59409da18a5020f8a46d
Python
200,010
6,243
""" Data structure for 1-dimensional cross-sectional and time series data """ from __future__ import annotations from collections.abc import ( Hashable, Iterable, Mapping, Sequence, ) import operator import sys from textwrap import dedent from typing import ( IO, TYPE_CHECKING, Any, Cal...
7e844f184dbb29831ebf05793df03b6b3abb78d18eab0f253bbe9373b3b4f431
Python
207,759
7,567
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : from typing import List, Tuple, Union """IDNA Mapping Table from UTS46.""" __version__ = "15.1.0" def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: return [ (0x0, "3"), (0x1, "3"), ...
580fd84e9b4ca25efdb2dd4bf4155342975e528bde9492f321bb502c0381aac1
Quarto
657
26
--- title: "maxSPRT: maximise the spirit of pharmacovigilance" author: "{...} from QUMPRC @UniSA" format: revealjs --- ## Outline 1. The problem + The data + Primer/example of multiple comparison problem 2. Solutions + Some terminology 3. Comparison of solutions: RR vs LLR + The idea behind RR to find...
bff03e340ee830813fc953383ac25f7cecd51ecc04f0ff44ee2c1cabc0ad3817
Quarto
905
41
--- title: "import_trial_times" format: html: self-contained: true code-tools: true --- ```{r} #| label: setup #| include: false library(tidyverse) library(readxl) library(melidosData) source("../project_globals.R") ``` ```{r} path_study_dates <- paste0("../data/Study_dates_MeLiDos_", site, ".xlsx") #imp...
eb946badd021cdabcd7ce52f5343a9618f0c212418a918c88e711ce235eb5424
Quarto
1,421
107
--- title: "Consistency of maxSPRT critical value calculations across packages in R" subtitle: "Signal detection of spontaneous medical device reports over time accounting for multiple comparisons" author: "Ty Stanford et al." format: pdf: toc: true highlight-style: atom-one number-sections: true editor:...
af82e872ce6bda91d208255ea808385f0161e818d5f0d8e4d79d34cb0c7676dd
Quarto
1,519
129
--- title: "Data preprocessing for analysis" subtitle: "Signal detection of spontaneous medical device reports over time" author: "Ty Stanford and Curtis Murray" format: pdf: toc: true highlight-style: atom-one number-sections: true editor: source --- <!-- highlight-style supported themes: arrow, pygme...
3b0b83d8ea90126e8e0f0984d4336caa90f1a63b869a810e6dd7e296e648f837
Quarto
1,565
147
--- title: "Data analysis" subtitle: "Signal detection of spontaneous medical device reports over time" author: "Ty Stanford et al." format: pdf: toc: true highlight-style: atom-one number-sections: true editor: source --- <!-- highlight-style supported themes: arrow, pygments, tango, espresso, zenburn...
071fda493c4655cdbd4c2c4d9f79cdf534057423c0f4babfeb726f143f75d7c1
Quarto
2,471
98
--- title: "Import demographics" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `demographics` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tid...
5f1b28751164e611b84ce2e05d3549ad11604f8fb50277a940af03125c704c99
Quarto
2,570
102
--- title: "Import lifestyle and health" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `health` questionnaire and shows descriptive statistics for the site. ## Setup ```{r} #| message: f...
22b147f9ad37cda2ed8c02660b8d11aa3a296092438194683152262591e9f3cd
Quarto
2,731
119
--- title: "Import Light sensitivity VLSQ8" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `VLSQ8` (Light sensitivity) and shows descriptive statistics for the site. ## Setup ```{r} #| me...
2892c7ae4b9ef99aae989a9b54254c4199ae1f6de53b06dd75ee16e85d5615fd
Quarto
2,762
112
--- title: "Import light glasses acceptability" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `acceptability` (of light glasses) and shows descriptive statistics for the site. ## Setup `...
f25dc5a1524ff53b08c482851c49bf644e1cac1262772a16c1a008d94049baf6
Quarto
2,802
113
--- title: "Import wellbeing diary" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- ## Preface This document imports the `WHO5` wellbeing diary and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(LightLogR) library(...
793b08f23e1ca46020e958212b55887ed44cf0e4d379369e83d3325c0090ff86
Quarto
2,889
106
--- title: "Import current conditions" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- ## Preface This document imports the `current conditions` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(LightLogR) library...
c69a3ed781fd3b5b329257f226a55cb4a34ef7a5b9b73ccefe2deedfde27466e
Quarto
2,959
135
--- title: "Import Sleep environment ASE" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `ASE` (Sleep environment) and shows descriptive statistics for the site. ## Setup ```{r} #| messag...
682935be7e188bed03e5f6f6412cb1a17141e591150812e4b4067d59e3a1c1d4
Quarto
3,610
148
--- title: "Import LEBA" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `LEBA` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(...
15b367fc1b3d2bf0a03a95c2d3598c846476ce3111ba91628572d3ca9807550e
Quarto
3,823
172
--- title: "Import light wrist" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- # Preface This is a work-in-progress descriptive analysis of the `SanchoSalasEtAl2025` dataset. ```{r} #| label: setup #| include: false library(LightLogR) library(glue) library(tidyverse) lib...
a62e65a2116c046d2cce32e21f91a2afb908677b0e5bf2782befd4a712590719
Quarto
3,839
172
--- title: "Import light glasses" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- # Preface This is a work-in-progress descriptive analysis of the `SanchoSalasEtAl2025` dataset. ```{r} #| label: setup #| include: false library(LightLogR) library(glue) library(tidyverse) l...
a2698639ff94ec4e014bfdfbe6affbc449a68c0bdcedff2b858f920284c9da5f
Quarto
4,205
180
--- title: "Import light chest" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- # Preface This is a work-in-progress descriptive analysis of the `SanchoSalasEtAl2025` dataset. ```{r} #| label: setup #| include: false library(LightLogR) library(glue) library(tidyverse) lib...
022ced977a4a6e03d86533e2d70061b522069bb917fd94585c43613512cbcf1b
Quarto
5,093
187
--- title: "Import exercise diaries" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- ## Preface This document imports the `exercisediary` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(LightLogR) library(glue) ...
2938fa1d29daa67b6b5702711017ffa9dfd355ae069a0d9ae34f8e34262fed01
Quarto
5,711
219
--- title: "Import sleep diaries" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- ## Preface This document imports the `sleepdiaries` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(LightLogR) library(glue) libr...
20f21a1ac3a1bd8a0a914022b20b4eb526c32403cfd5d1f9adfb7edf7fb6b988
Quarto
6,400
179
--- title: "Import light glasses evaluation" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `evaluation` (of using light glasses/and lanyrads) and shows descriptive statistics for the site....
dee1b5c0035d4985c1d0070f4cdddc2853c4cbafd2b3e48c2d2aed84d3431bfb
Quarto
6,898
222
--- title: "Import experience log" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- ## Preface This document imports the `experience log` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(LightLogR) library(glue) l...
e217a9d6124a4a0d514c477c9fb58b2f1f66bb670f3f46a3093f5d6562f8b6eb
Quarto
8,454
290
--- title: "Import wearlog" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- ## Preface This document imports the `wear log` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(LightLogR) library(glue) library(readxl...
f3997ceffa68ca38db72a32c4ec657cd6964326496488d765d6557145ea0365b
Quarto
8,800
242
--- title: "Import chronotype" author: "Johannes Zauner" format: html: self-contained: true code-tools: true editor_options: chunk_output_type: console --- ## Preface This document imports the `chronotype` and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyver...
79f35f230a58d9af126eef5b086da2e4d56994f789d8a1b55b8148a8695b0091
Quarto
9,630
311
--- title: "Import mHLEA" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- ## Preface This document imports the `mHLEA` evening diary (light exposure) and shows descriptive statistics for the site. ## Setup ```{r} #| message: false library(tidyverse) library(LightLogR) li...
b574472609ca1f37561354daf778e46dbd8315801d81b43b6d2070623984da05
Quarto
11,799
414
--- title: "Descriptive analysis" author: "Johannes Zauner" format: html: self-contained: true code-tools: true --- # Preface This is a work-in-progress descriptive analysis of the `Sancho-SalasEtAl2025` dataset. ```{r} #| label: setup #| include: false library(LightLogR) library(glue) library(tidyverse) ...
ce7af02171f0ce154e326512b7a9f40735c6e9ea142394dd378dc9dd66d8f861
Quarto
12,599
56
--- title: "" format: docx: reference-doc: landscape-template.docx --- ## sumary of events in table (no Description field) | Report_ID | Report date | Classification | Device | P('pain'\|doc) | Event | Event type | Source | |--------:|:--------|:--------|:--------|------...
35b9b2030d21338c9ff52889c7af3eafed495d3270eb5fbe4d2e0046b25e94a3
Quarto
31,897
499
--- title: "Report" subtitle: "Signal detection of spontaneous medical device reports over time accounting for multiple comparisons" author: "Ty Stanford, Lan Kelly, Marianne Gillam, et al." format: docx: toc: true highlight-style: atom-one number-sections: true pdf: toc: true highlight-style: ...
d28f894ace06a98ff1dd905eaf86a8f5c48102a62e5cc614c51fd4c7246290e3
Quarto
37,509
1,080
--- title: "ASO F. Prausnitzii Treatment Bulk RNA-Seq Analysis" editor: source author: "Joe Boktor" date: '2025-05-04' format: html: self-contained: true code-fold: false code-tools: true fig-align: center fig-height: 12 fig-width: 18 toc: true toc-location: left toc-title: "Conte...
699c22e922214c096333588bbe04ea60a4fd2c1e899d23fec2b34ffb08a74f8f
Quarto
80,615
2,451
--- title: "Figures" author: "T. Macedo" format: html --- This quarto document is a script to reproduce figures using the data and modeling in the methods of "Growth for coral reefs peaked at 25 °C through the Holocene" in PLOS ONE by Tonya Macedo and Robert van Woesik ----------------------------- Figure...
dda2cdd307513d2aeb8225df6b6fa4579df4061a5e8ac5134b70243fe96eabcd
R
13
1
site <- "UCR"
0ab36616e97c81c7db87ca468bb9a41b9beb35fba14cda05717444bf255287a5
R
57
2
".RNG.name" <- "base::Mersenne-Twister" ".RNG.seed" <- 1
6f8088efcf3b16e7a7f1aba490ff190f445ee7a21a47a64ea15a46d0f3eeae75
R
57
2
".RNG.name" <- "base::Mersenne-Twister" ".RNG.seed" <- 3
6fefba8f6d37e4c1e7f11460ed76f128b74bfdcb8056df8b872622c1ae53312e
R
57
2
".RNG.name" <- "base::Mersenne-Twister" ".RNG.seed" <- 2
e0de99e6d3bff1b31121faabf520c48de5593439971755cdc15e5b4f768580ec
R
88
6
library(shiny) ui <- source('ui.R') server <- source('server.R') shinyApp(ui, server)
62a902c5ef6b4895d75a183bd5217d83b8ffb68cc1e34e3fa1cd84cf03347e3a
R
116
8
library(testthat) library(miloR) require(mvtnorm) require(scran) require(scater) require(MASS) test_check("miloR")
da49e679067863b9da1fecb79eb9e076e67bde05f6a388845c5680b762b8afe1
R
122
3
library(cowplot) plot_grid(spontaneous_rotarod, mptp_rotarod_plot,pff_data_positive_plot, aso_data_positive_plot,nrow=1)
720ed67576ec0bec1ba0701449557a0c5468c1c22e51ee3fac864ac5ff0df02a
R
183
4
# this script is run before any of the test_*.R scripts # include this code before unit testing @ https://github.com/r-lib/testthat/issues/544 source("../prepare_test_datasets.R")
a9d76bb3a1a762fb3118245eeddfe42b4d992558d067b3448099748f2288d7d2
R
200
8
# Wrapper for `scale()` in cases where sd(x) == 0 scale2 <- function(x) { if (near(sd(x), 0)) { scale(x, center = TRUE, scale = FALSE) } else { scale(x, center = TRUE, scale = TRUE) } }
ed410be79647aa2a3902218ec7a547bbd038ca9ee2c9d3ee763f8c6f3a67bb55
R
229
8
save_pheatmap_pdf <- function(x, filename, width=7, height=7) { stopifnot(!missing(x)) stopifnot(!missing(filename)) pdf(filename, width=width, height=height) grid::grid.newpage() grid::grid.draw(x$gtable) dev.off() }
10ab2c7419ca56a82d37d6b6b37437d89ac09330e5e03bddb71ceb83929b585c
R
242
12
library(readr) library(lme4) library(lmerTest) library(emmeans) df <- read_csv("collected_results.csv") df$jitter <- factor(df$jitter) m1 <- lmer("perc_correct ~ jitter + (1|pid)", data = df) anova(m1) em <- emmeans(m1, 'jitter') pairs(em)