sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
021e73ad74afa4e3f91f1af9053bc07cbd952f601669a528441bced0660e5a2b
Python
78
2
# import logging # logging.getLogger('pgen').addHandler(logging.NullHandler())
0f74e26c30e1b1e1dbe22b57fe4ca3f14bff4d52a4cec87be04b919874b9d2ed
Python
78
2
from .main import ShapeOut2 # noqa: F401 from . import widgets # noqa: F401
30fef81d6c5169aabdb7d6db9850900fa9f66615007fba4e021a77c6d226f19d
Python
78
3
""" scanometrics.utils module: utility functions for statistics (stats.py) """
bbe2a19c99e4b69b3fb6ef3f2ca31acd1da66b4b03f53c28766a8c98b1cd05fb
Python
80
4
# -*- coding: utf-8 -*- from .ensemble import SWA from .eval import KGCNMetric
8148a29df18bf9b9faad370290a661caf7ff833a89c65c2a119878a4a793397e
Python
81
4
from .spec import * from .abs import * from .inmemory import * from .hdf import *
9ecf332d1618179cc0895697a4bdf1fd927cf6cd11e4acbfd655c0e34f22856a
Python
81
1
from .io import write_h5, write_pkl, read_h5, _export_to_stc, _export_to_vol_stc
d32555fcf5ca2a36e524f9c7c9242156cba987ba1aa55194f9b5482b33fdaaf0
Python
81
5
""" Using __init__.py to organize the structure. """ __version__ = "1.2.9.1"
fa18b5b9e84bee05b636544eacf5dcc545977854eb454fd47340ca900ac69ff9
Python
81
5
import sys for line in sys.stdin: print("!ARTICLE") print(line.rstrip())
03b8b7511ad8950a5e0caaefff904b2dd50688294516fcece40686ad5d14ca78
Python
84
4
import os # suppress tensorflow print out os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
3337660ad4d9145e7df8fca412a7d3689ddaeeb9ca7b2da887402ef202295b22
Python
84
1
from .metrics import compute_mld, compute_ospa, compute_sd, compute_goodness_of_fit
92e25d874b619e4790a27f1d6a6ac18bc5a437849d6c1c0f0bb666be109a0e31
Python
86
4
import torch device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
05a1e6fd7e43173a0dd4e2801db05720f66ea6e49f2a8d702929665519bf5c27
Python
88
3
from .cell import Cell from .mixed_layer import MixedLayer from .network import Network
1a08e8d214dd6346d10143f9716a49857e3f59cf2cd54bdb207c8d2d2e464ac1
Python
88
3
import sys import os sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), "lib"))
a3482d4de7a34ae62c57bc87022265b929cd7456812bc4595d85c6a28e4e59ca
Python
88
2
from evcouplings.mutate.calculations import * from evcouplings.mutate.protocol import *
7461ee987c00284cb840e715ef7cef46eae26747603a5470473867e66d3e12db
Python
89
2
from .optimization import OptimizationProblem from .optimization import VariablesStitcher
cb3c33a88145b0fc8d32f6455ce22135b045d8947db0ee0668eab27bd6c377f9
Python
91
2
from .downselect_edges import DownselectEdges from .rattle_particles import RattleParticles
d102e1ff88bd6bfff68792c5f850099175e701e3ac1f7f2704b57cf365801156
Python
92
2
from .topk_accuracy import accuracy_topk from .topk_accuracy import multitask_accuracy_topk
1796fe28f7fa49a34c3cfb48d5fdb6c046dbd0fb5a62bba8ce53d0eaf21266c1
Python
93
1
from .viz import plot_n_sources, plot_amplitudes, plot_stc, plot_vol_stc, plot_cloud_sources
ad90c21c8de3e3522c516b871075aac454dc7202248839a21f4082639b1e0e9b
Python
93
4
from .cell import Cell from .network import ConvNetwork from .mixed_layer import MixedLayer
bcaf05a9e67cb3bee4497caf5c0fe71da2512f08dfc382d6c07e1a08a50f7bd2
Python
93
4
from . import platform from . import dmd from . import neopixel from . import synchronizer
df1861e465a5f31e493c5b17024ece6b6543e825b566d940c420f6ecf0c834a9
Python
93
2
from qbiome.network import Network Network('hypothesis_1_5.dot',outfile='network.png').get()
57b677031528f5875a92ed9afebaf7f9240e4e19f3dd4bb8a369c4448d8d4b8d
Python
94
1
from .t_loss import tLoss, tMSELoss, tCrossEntropyLoss, tLogSoftmax, t_log_softmax, t_softmax
6eadd920012bbc8c75c6542b11751133f7292cf28bd2a457e1d38c673bf291e8
Python
94
5
from trainers.neural_trainer import NeuralTrainer class CNNTrainer(NeuralTrainer): pass
0a040718f0f3c66f358549c64645da8b27ca1fcab054088631cd92fc624a1c76
Python
95
5
from trainers.neural_trainer import NeuralTrainer class LSTMTrainer(NeuralTrainer): pass
58107ecdeb13cc3bad347b8b30036325d26c4ce2429baf0e264bd2c4bc7b71a2
Python
96
1
from .regularizers import BlockRegularization, TikhonovRegularization, SmoothTimeRegularization
7cd79815dcb1c0fea431937ed0d1220ae9c14a7d161fd082fa7768eefafd2fd8
Python
102
7
from setuptools import setup setup( name='brand', version='0.0.0', packages=['brand'], )
83112c0d879839f0973a9b6790e4c53d6d51c5faf582ca3cb9dba6dc6b5e6064
Python
102
3
from inference.segment_brain_gauss import * from inference.segment_brain import segment_brain_normal
c3ee991a4e1be3f8d9ab68f23d5d0f7c9752e31f60355673f14c91d531c246cf
Python
103
3
from .compute_pvalues import compute_pvalues from .parse_input import parse_input from . import mapping
26a5b36e6f91ea0bf53ba66b3d4d2ccaeced776d8b2219cddf177f3b587a2bc3
Python
104
2
# empty file -- turns directory into a package so # 'python -m unittest discover' works.
fb3d9f8c6b9c05e6ecaee52e1bd34c3327a54d448c39555b5636c01fb67057bb
Python
104
5
""" Processing modules for ScanOMetrics """ from . import freesurfer, dldirect, fsl, pipeline_template
33370c11b81dbe6086583ee80e167449bd226ee27fbffebcf7d43f7808f934f8
Python
106
5
# pyaging/data/__init__.py from ._data import download_example_data __all__ = ["download_example_data"]
e735c883c2d516d4a96bbb52e1952bd1308e4016c94a3317a632c3f54385f0df
Python
106
7
options = { 'yn_min_ms' : 20, 'yn_max_ms' : 120, 'alpha' : .3, 'ms' : 50, 'mew' : 2 }
f09f2c0b172ff7b4a5140218ef0b36f6a34441fd47b2d6088e28c94e3a9a2752
Python
106
3
# flake8: noqa: F401 from .comp_lme4 import ComputeSignificance from .comp_stats import ComputeStatistics
f4d603ad5185e70926807e5976f2af0b5669ee1c32077739882153c8577dd53b
Python
106
6
from setuptools import find_packages, setup setup( name='cellPLATO', packages=find_packages(), )
a7a7eb7b95a16e1c467473450a3da195a4276a1406cfc2a8ee5ceea952acacac
Python
107
6
""" This is a module to be used as a reference for building other modules """ def foo(): return 'foo'
01c1faec5a19e059057a90f1fa0698d9325aa15c463893c7eb3d0706aa48bd50
Python
108
1
from .signal import ecgSignalSamplingPeriod, extractSignalFromImage, verticallyScaleECGSignal, zeroECGSignal
30eacb8d385f8f7202c55d0bc48d291443a1a30be053242ec5ddc93a067ba831
Python
108
5
from brand import Supervisor if __name__ == "__main__": supervisor = Supervisor() supervisor.main()
c4c3b7036743591bee4395c1a61ab247c618a4fd7c1e838b82f79fdb98e3b4c1
Python
108
6
import warnings from dynast.logging import logger logger.setLevel(9999) warnings.filterwarnings('ignore')
53802a06de7c9caf7bd28cde8e3063f45d9f93311e0247b5ec790782df1e85f0
Python
111
5
import pandas as pd def read_pickle_file(file): pickle_data = pd.read_pickle(file) return pickle_data
674e40675af472af492cf40b4f987e5f9a2b8bc0fff927c0fa3c40a4c6b8c6ca
Python
112
5
""" This is evcouplings """ __all__ = ["align", "compare", "couplings", "fold", "mutate", "visualize", "utils"]
e3a64fc1cd06df9932e76ec11295b8f8203622f55274f18559101096a15584a3
Python
112
2
from .utils import index2mask, mask2index, np_groupby, np_scatter from .alignn import line_graph, dihedral_graph
4480ccfbee05035ed52fe6a85f84733f85befcd5fe055249bab6fad95633f48c
Python
113
4
from .emulator import APEmulator, load_default_emulator_model __version__ = "0.9" __author__ = "Grandits et al."
5e7cac0de8ad39e86b1bb7f161635c6ad30fcf3a52303190475bdb2f79dbedbd
Python
113
2
from .replay_buffer import make_reverb_dataset # noqa from .variable_container import VariableContainer # noqa
420f839369f27cf638b344cf6aa237ce6041844bf05f5d0f4fb3fea0c9584b52
Python
115
5
from .aminoacids import * from .mods import * from .losses import * from .fragments import * from .pepmass import *
b1778e57e4969393b7f9bc10e9c384dbc9fd973f3d2433806543b4f05f0baf70
Python
115
5
from .glycans import * from .nglycans import * from .fragments import * from .gmass import * from .gpmass import *
1342c62bde686d9ac87cc9f6c014925c3e59b561215dbfb2c83ddf921b1e82f3
Python
117
6
# sitecustomize.py import coverage import os if os.getenv("COVERAGE_PROCESS_START"): coverage.process_startup()
adaf60ac50b7d720318dbd987883e7da1e311806c89d258663d64fa08dbf25f7
Python
118
4
__all__ = ['prediction_error', 'sparse_evaluation'] from .prediction_error import * from .sparse_evaluation import *
4dbaf8cf40c9349233ce3b5cff1fa6906f76eaf9cd42cd1b4a81b56769eb4293
Python
121
1
from .io import Session, SessionCollection, parse_ma_directory, parse_ma_session, parse_tdt_directory, parse_tdt_session
a26c8d4939c0524bd5c30b4017a7920b2345a1b3f7e3965d0b385ab166cde091
Python
121
3
from .anova import anova from .remove_non_expressed import remove_non_expressed from .log_normalize import log_normalize
ef9500d1195d3ea57b4acec31d9913cffc2e0dbaa2a6a671fc0a700db682604e
Python
121
5
# __init__.py import sys, os sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'neuroxai')) import neuroxai
91da22f68c7d148b4ce85cbf4bba21a2072912ff1d067b0ddec31471b69f8820
Python
122
5
from .aug_loss import * from .homography import * from .modules import * from .unsup_loss import * from .sl1loss import *
c6b0f882867244472eb4d6ab5d22ad8e5c48ea3573e5e06bd85e76f04d57c18c
Python
122
3
# MOFTransformer version 2.0.0 from moftransformer.modules import module from moftransformer.modules.module import Module
e5bd8186088e4074e94f0b198aff9ccd0950c80f5c925fcc69c073fb304cfff3
Python
122
7
# -*- coding: utf-8 -*- """ Created on Wed Feb 7 19:38:09 2024 @author: tpisano """ #from dxr_inference import *
ba141c116d86b38c1c32601470c33121446818eef8c3af06c96c4a74a3355595
Python
123
2
# This file turns "img" into a Python module such that we can access # image files in this folder via importlib.resources.
352bc1d0d141fd7a9de816a1576a437296954da8a58fed083b21ba46d30a8e9e
Python
124
3
# from . import initialization # from . import config print('Finished running cellPLATO initialization and loaded config.')
4eea94f42b77f7b481cd85ffe40c1e4ee1d7f87edba14db1e13b370bab6287c9
Python
126
5
import pytest @pytest.fixture def mock_no_gpu(monkeypatch): monkeypatch.setattr("torch.cuda.is_available", lambda: False)
ffe025b9a6bec9391abfbaf3a9f9276423bd402d2ea159b1864c4562e6967743
Python
126
7
from scanometrics.GUI.MainWindow import main as start_gui def main(): start_gui() if __name__ == "__main__": main()
dd2253ccb0443f782cb7b2f5225c5c60e375fe41406164fb6c4ac7153130b445
Python
127
2
from .utils import optimizer_keys, optimizer_parameters, parameters_norm from .batch_train import train, test, train_one_epoch
29a491501f80be97e1b98e03ef8f8ba4e0fc6fdc03276952c4a6881046b13a6d
Python
128
4
# -*- coding: utf-8 -*- from .io import pickle_dump, pickle_load, write_log, format_filename from .data_loader import load_data
4b2d3b202f23c8d033c77acd8d3f74d8367aac9ab3dde45f28c8e662ee5af0af
Python
129
5
from .modules import * from .render_utils import * from .renderer import * from .render_models import * from .casmvsnet import *
cfe193ebd95c355255ddc617ded156ee98bd25e4f690a6ab357f5365ca0f5ae9
Python
129
6
class MissingDataError(Exception): """ Error raised if variables contain missing values when forbidden """ pass
c7bc8cb8c6b5e505ac280531b101aaa666585a9892b40cfd45c52b95d58d3986
Python
130
4
# MOFTransformer version 2.0.0 from moftransformer.visualize.visualizer import PatchVisualizer __all__ = ["PatchVisualizer"]
5a56884fd9629ea9ebdb547a173901bb397adfba046e5efc36719935a4e26143
Python
131
6
from distutils.core import setup from Cython.Build import cythonize setup( ext_modules = cythonize("linear_assignment.pyx") )
21de5f6f3fe07b2bd6b3b366e2394ff2196d01728c114ded3491e75d4f596724
Python
134
4
# Copyright 2021 ETH Zurich, NVIDIA CORPORATION # SPDX-License-Identifier: BSD-3-Clause from .rollout_storage import RolloutStorage
3946e62fbe5a3f5721946f8ee4a469072f687d6d845d8417cbf1b6b043f1a131
Python
135
3
from .twixtools import read_twix, write_twix, del_from_mdb_list,\ construct_multiheader from .map_twix import map_twix, twix_array
b088a2440b647262731c42b67f0129736135ff9d2e284fabdb88d55da058d88c
Python
135
2
from xgb.xgboost_preprocess import load_and_preprocess_default_data from xgb.xgboost_preprocess import load_and_preprocess_custom_data
1853935e888d8c6244a211a829bdc8adda4e507462f4f580d9e733d1c3c8dc9f
Python
136
7
from ._test import test from ._plot import plot try: from ._version import __version__ except ImportError: __version__ = "???"
c69ac9c9a7c616ae8889409229f1cd25f1e560b6e16a8ead57f046f342c28b06
Python
137
5
from ecgdigitize.signal.extraction.viterbi import * if __name__ == "__main__": print(list(interpolate(Point(0,0), Point(5,5))))
c2263943430d68a1b3d6a019eb8505bb366b3eec8528c330482b5e4bd4311719
Python
138
4
# SPDX-FileCopyrightText: 2023-present Quentin Uhl <quentin.uhl@wanadoo.fr> # # SPDX-License-Identifier: Apache-2.0 __version__ = "1.0.7"
b9184ed8fa42c06e4929e41f5ed75032a1b862cf7257039ed28a239229c2f3cd
Python
139
3
from .e2data import ExportData # noqa: F401 from .e2filter import ExportFilter # noqa: F401 from .e2plot import ExportPlot # noqa: F401
922e32d4e9a87631c532900cb663ea995c33718e091a6b64541838778417d801
Python
140
4
from .agent import Agent # noqa from .learner import Learner # noqa from .server import Server # noqa from .tester import Tester # noqa
fd61757c2680b2872fced290b44da62fd0aceffc2564d1fc1fe1eec73b754eae
Python
141
8
import yaml def load_config(config_path: str): with open(config_path, "r") as f: config = yaml.safe_load(f) return config
311eecdf46b76f6631520494319f101c9c6a2c39c328bd07bc79f44743a96a9b
Python
142
8
# -*- coding: utf-8 -*- """ Created on Thu Dec 2 14:47:36 2021 @author: jeanbaptiste """ from . import acquisitions from . import microscope
aee2900253dde5aa58f86e179aef514c179b93aeba3326e96026ababfe7f5124
Python
143
5
__version__ = "4" from .utils import PROBE_DIR, DOWNLOADS_DIR from .run_kilosort import run_kilosort from .parameters import DEFAULT_SETTINGS
d0f267211b4a1c5de2ebebbcf3fb6bbf06eb0af04db7a809690a22f0e43774a8
Python
144
6
from typing import Union from os import PathLike import torch PathType = Union[str, PathLike[str]] DeviceType = Union[torch.device, str, None]
f75d72a46ae77891cff55c345ddef594b5b98b2aca31b7655c571e2d3643ad77
Python
145
3
from .dqn_agent import DQNAgentCallback # noqa from .lr import PrintLR, cosine_schedule # noqa from .sac_agent import SACAgentCallback # noqa
9d3eca21fe67eee220169ed1f5c6a5d821cc5c360dd0840261673e3307b58c0f
Python
147
2
import os os.environ['CUDA_VISIBLE_DEVICES']="/The directory where the source code is located/radiation_mapping/openmc_library/cross_sections.xml"
5fe29885b8b3c745651cd5e9541b777cbfde445480e28c15be74811c4ae6dfd5
Python
149
7
# pyaging/__init__.py from . import data, logger, models, utils from . import predict as pred from . import preprocess as pp __version__ = "0.5.7"
5aafd5c89ce530cc234b82e7978a9b4716ea032b73e4fcb29c0d5580905500bf
Python
150
2
"""Module with visualization functions.""" from .viz import plot_lda_results, plot_validation_curve, plot_permutation_score, Aesthetics # noqa: F401
b00b72664072b91922280021a16fcd447df747d32709e6d629b53c2f452631a7
Python
150
3
from ._IsmrmrdRawTestData import IsmrmrdRawTestData from ._DicomTestImage import DicomTestImage from ._PulseqRadialTestSeq import PulseqRadialTestSeq
b487fb9ba263ae1931e6ae5d33d7f161427971931b7759a8d271fb7587fd3612
Python
150
11
from .image import ( Stack, Volume, Slice, Image, save_slices, load_slices, load_stack, load_volume, load_mask, )
ece5d72de66be9e2b28292d42f661727dc7c723ee0f33e98ed45d6784868e931
Python
150
9
#!/usr/bin/env python __version__ = '1.0' import os, sys from Bio import Seq for seq in sys.argv[1:]: print(Seq.Seq(seq).reverse_complement())
dd9fece336eaa525608638251e694728c4a59c92d257ccd9dcd7eb8325791538
Python
151
3
"""Initialization for `paccmann.models` submodule.""" from .core import paccmann_model_fn from .model_specifications import MODEL_SPECIFICATION_FACTORY
2a75a4bf294e8d6456b75d4bf5b7df01ac4e8f783f37a0c97ea73c79f1b6c3f5
Python
153
10
import sys docid = sys.argv[1] header = sys.stdin.readline().strip() print(header + ' docid') for l in sys.stdin: print(l.strip() + ' ' + docid)
aa8aaec5b7935b87eb8fd1e455e3b1cd7303c73c0502701c5ffb8c10a19714ac
Python
153
5
"""Density Compensation Calculation.""" from mrpro.algorithms.dcf.dcf_voronoi import dcf_1d, dcf_2d3d_voronoi __all__ = ['dcf_1d', 'dcf_2d3d_voronoi']
95e13edb90640a546ced4a479061ef0dc20e46531e94dc8e9330aacdefe57fa0
Python
155
7
# -*- coding: utf-8 -*- """Top-level package for tractify.""" __author__ = """Salim Mansour""" __email__ = 'Salim.Mansour@camh.ca' __version__ = '0.1.0'
a4c6849a8307816376e540b3c9c1dbb50842ee9eee72319a0c4edd65f6d04021
Python
155
8
"""Gradec: Meta-analytic gradient decoding.""" from . import decode, fetcher, segmentation __all__ = [ "segmentation", "decode", "fetcher", ]
da3b7fbb06b937cad49eac540021c99db117da774ee000559687a271a66fc4ea
Python
155
3
python scaling_with_autoresponses.py && python scaling_with_autoresponses_trends.py python wt_unc31_timescales_differences.py python show_non_asymmetry.py
347a5fc9c65bea95da47a9dc1cc0712d8d5a094e24bf3822315dea94790825e3
Python
156
6
"""Coil Sensitivity Estimation.""" from mrpro.algorithms.csm.walsh import walsh from mrpro.algorithms.csm.inati import inati __all__ = ['inati', 'walsh']
8d31899f9b5ad797771d23a9160bd3e920490f1355c119ed6551d026e5b9d5d1
Python
158
3
# from .csd_profile import gauss_1d_mono, gauss_1d_dipole # from .csd_profile import gauss_2d_large, gauss_2d_small # from .csd_profile import gauss_3d_small
f070edb314ff76b766f8756115e06731931b4093fdde04a2a6efb682c0a14278
Python
158
9
#! /usr/bin/python3 # -*- coding: utf-8 -*- # @FileName: main.py # @Author: Li Chengxin # @Time: 2023/7/19 1:45 from SCTrack import sctrack sctrack.main()
3029a37384d07533740064505f00c7c632dc9abf4657220545e568991c60f9aa
Python
159
4
from .actor import Actor # noqa from .actor_critic import ActorCritic # noqa from .critic import MultiCritic # noqa from .dueling import DuelingDQN # noqa
608ed45e8e06d297fd6898c9395f8bec38d5186927606884d5d1f65fb1a61454
Python
159
4
from rl_games.networks.tcnn_mlp import TcnnNetBuilder from rl_games.algos_torch import model_builder model_builder.register_network('tcnnnet', TcnnNetBuilder)
6cc7dcaad0d7dac070034541d958be614c4ae52e29c6dc6f39026fbe30cf1a54
Python
161
9
from .sesame import Sesame from .dipoles import Dipole from .emp_pdf import EmpPdf from .particles import Particle __all__ = ['Sesame'] __version__ = '0.0.3'
f19c51861e60429717f873583ed407e0d7798fed8008b5d970f2c7ad62136cae
Python
161
9
# -*- coding: utf-8 -*- """ Created on Thu Dec 2 14:48:21 2021 @author: jeanbaptiste """ from . import experiment from . import processors from . import series
ae7a5af2ee05bcd9811aa2011a06a0927323c897b94fe98c34346ee4eda4e014
Python
162
8
import sys for line in sys.stdin: ix = 1 for word in line.split(): print(str(ix) + '\t' + word + '\t_\t_\t_\t_\t_\t_\t_') ix += 1 print('')
c46c9befcfaf21b800c0ef48146c92e317b056f52a29cfed2d47df4602405bcb
Python
163
9
import numpy as np import sklearn import tensorflow as tf def test_imports(): print(tf.__version__) print(sklearn.__version__) print(np.__version__)
d3c52b9329cccf1e03321be99aaf9d770050cf55a37be2338fa442bd0a95a22f
Python
163
7
from .det import det from .ep import ep from .es_sd import es_sd from .es_mu import es_mu from .esw_star import esw_star from .ges import ges from .nsi import nsi
06ea066ab21d963203c5c550af5ab4c62c110b051c9e7a954e215a369b6e2283
Python
164
6
__all__ = ['models', 'losses', 'predict_model', 'train_model'] from .models import * from .losses import * from .predict_model import * from .train_model import *
db5e5be39c945941367a30602cfd187ec5d5438572dbefe7a1dc6e3481e428c5
Python
165
7
from importlib.metadata import version import pyaging def test_package_version_matches_installed_metadata(): assert version("pyaging") == pyaging.__version__