sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
985aba0f18fdfb6a5ce8eee52f448fd893338d336992f11b7668824bcd274901
Python
128
7
""" Model parameters. """ __author__ = "Fabi Bongratz" __email__ = "fabi.bongratz@gmail.com" # Vox2Cortex default parameters
1b8b4b09dea27b48f2274db8b3e70d709bf1a2ec73e070e318124fc0ac284e41
Python
129
5
"""LaMAReg: Label Augmented Modality Agnostic Registration.""" __version__ = "0.1.0" from lamareg.scripts.lamar import lamareg
d91143de66fda8ad385e7bbc26dfd26ee68554c26194578e18a3be819bae791b
Python
129
2
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe
d9354b53580547a80d210966b04541bdb77514cafc5ab877dc17e1578558642d
Python
129
5
from .information import * from .jitter import * from .png_counts import * from .spade_runs import * from .unconstrained import *
2e959dda1b6b0734e24658af90e9e246c69a41c8d63ffd321b31f416dfb4ef92
Python
130
5
from .main import MethyAnno_train_test from .config import MethyAnnoConfig __all__ = ["MethyAnno_train_test", "MethyAnnoConfig"]
30a242296c71a3f53e0ddd54826f71fde9a35a339b5df371f92ce89942f80fc6
Python
132
6
# type: ignore __submodules__ = [] import lazy_loader __getattr__, __dir__, __all__ = lazy_loader.attach_stub(__name__, __file__)
27724db55d47cec95e24297bb188e8dc2d743d700607beffc33e85f17ff16498
Python
133
3
from qm9.data.utils import initialize_datasets from qm9.data.collate import collate_fn from qm9.data.dataset import ProcessedDataset
38bc2ac2413d0ed709fa4192b117430ba93b2aeb93f9aca62baac856eee427a4
Python
133
7
from setuptools import setup import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass() )
775150f2168d8df4f0e5b3e248c1001f0cc927307994c923ee5e705e27f5a55b
Python
134
1
# This file marks the exp_protocols directory as a Python package. It can also be used to import specific protocols for easier access.
c2cabc0f04e29feb3a335c541f9be37a3f3f77f2c5a0334cf46b052a8c873eea
Python
135
10
""" vox2cortex. This library implements Vox2Cortex. """ __version__ = "0.1.0" __author__ = 'Fabian Bongratz' __credits__ = 'ai-med'
b2ded1821c7473498339c148566d0d0cb25c00a48d57f834324deaa68242191e
Python
137
4
import sys import os #sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__)))) from tristan_pipeline.io.params import *
22f6145d98eb9f7b38244e105a5184483105d3b771cf0e2824f43d038beb625b
Python
139
4
import pluggy hookimpl = pluggy.HookimplMarker("snakebids") """Marker to be imported and used in plugins (and for own implementations)"""
c876ec4636df5cf15537cc7685c767ac2e643256af7ddfed7b0e5cee5a3c5065
Python
139
5
"""AccuSNV: high-accuracy SNV calling for bacterial isolates.""" from importlib.metadata import version __version__ = version('accusnv')
ae50b253745240ee8b23f41e953e771ec54f224271ceaf7ced5614cb817e8764
Python
141
9
from . import ( lambdaprotocol, multistate, relative, topologyhelpers, ) from .relative import ( HybridTopologyFactory, )
943745ec2e3f2bb12f4d98debd550ac6ce5d5bd68c862e22dd7754fba4a287ec
Python
142
5
# test that load_rel can work from detectron2.config import LazyConfig x = LazyConfig.load_rel("dir1_a.py", "dir1a_dict") assert x["a"] == 1
002efb425d84106423e8009373db7647d4f0138fc744245c7bf182cd180c08e9
Python
144
5
import pandas as pd pd.concat([pd.read_table(in_tsv) for in_tsv in snakemake.input]).to_csv( snakemake.output.tsv, sep="\t", index=False )
8603894624a88d6435d2f379d55efd529fa2e3981540189e4f878e2a09ab5367
Python
144
4
from plus_slurm import AutomaticFilenameJob class Job(AutomaticFilenameJob): base_data_folder = '/mnt/obob/staff/fschmidt/cardiac_1_f/data'
ba67d9c233b0b949ae72bf2f297a20a4f5efce819d1500cc16222e89c9c7d8b4
Python
144
5
"""Continuous-time states and Threshold monitors.""" from .state import ContinuousState, Threshold __all__ = ["ContinuousState", "Threshold"]
128f3eff275f11456d6a174ccf9da8f03dc15270eadd06de29209224ff152c9f
Python
145
6
from django.apps import AppConfig class AbxAppConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "abx_app"
83fb2cf1d501b5d610c08958e8f5f1c0df14b805f625098b48f8fc840c7fc435
Python
145
4
import pyglet song = pyglet.media.load('../SkyDrive/musicmix/1NickiMinajGirlsFallLikeDominoesExplicitEdit.mp3') song.play() pyglet.app.run()
9491e044a1790472dfef64f0dd8a70ca25ae46822299a4ca43bc410b0fd1c770
Python
146
9
"""Solara related utils.""" import solara update_counter = solara.reactive(0) def force_update(): # noqa: D103 update_counter.value += 1
30961fd8bd2cfc1ee3a1a7dcacb9a9aa11183b25de4967a28fe2103cb998e014
Python
150
4
from qm9.data.prepare.download import * from qm9.data.prepare.process import * from qm9.data.prepare.qm9 import * from qm9.data.prepare.md17 import *
9d3a893680dca29134c54afacda89bbc99bafdaf6aea3fe8980c2732f89be17f
Python
152
3
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe from . import plotting
dc0f60c24afb56c3382d85d65538a1a70c313de8723da1c39267fb77dee72e39
Python
152
9
# micorr/__init__.py from . import simulation from . import realdata from . import snr from . import estimators __all__ = ['simulation', 'realdata']
fefbdd9dd719508b84733f7f973c9d5b40e15cc1101f9396af456884a7ed6f18
Python
152
6
from . import edit_tensors from . import edit_volumes from . import image_generator from . import lab2im_model from . import layers from . import utils
160786add0d08d186828295bb402f7dc5dd4129df1b4ce1155b85ecc674db748
Python
155
10
import random import numpy as np def pytest_runtest_setup() -> None: random.seed(0) np.random.seed(0) import torch torch.manual_seed(0)
78896a49ac400856859b793345e04cbfa5386e5266c08342167cea8db089833d
Python
156
7
import multiprocessing def get_cpu_count(): return multiprocessing.cpu_count() if __name__ == '__main__': print('CPU count: ' + str(get_cpu_count()))
4add5809e2e1e6094c379a0256f158ab16958117cde7a21c18f6d5d454045b5a
Python
158
6
from .surface_plotting import build_plotter, plot_surf, plot_hemispheres __all__ = ['build_plotter', 'plot_surf', 'plot_hemispheres']
5e8f9cebaa1da99cc16f1864974aab4919e0b280a995097f4ea6804d4101c8cf
Python
158
7
# micorr/simulation/__init__.py from . import mi_estimators from . import binning from . import corr_est __all__ = ['mi_estimators', 'binning', 'corr_est']
7639194c1c9e35e94b00de00e7e23e4a4acc285a0a17df3286680c3204ac6edf
Python
160
3
from ._cellprofiler import create_and_save_measurement_pipeline, try_measure_objects __all__ = ["create_and_save_measurement_pipeline", "try_measure_objects"]
e4ada44d7d75795647444c9654e449644e4f7cd074416d9eb333affd3c42b1a6
Python
161
9
# type: ignore # <AUTOGEN_INIT> import lazy_loader __getattr__, __dir__, __all__ = lazy_loader.attach_stub(__name__, __file__) __all__ = [] # </AUTOGEN_INIT>
20850494f69cba5b49298af6666b369c3cefe8f24e1dabbb3e4f925ba1d4ba57
Python
162
3
from ._cellprofiler import create_and_save_segmentation_pipeline, try_segment_objects __all__ = ["create_and_save_segmentation_pipeline", "try_segment_objects"]
361f092a821f2fb7973d3a58e74cda2c18217e93194ef3b06e70d2f478ca7cfa
Python
163
8
import pylab as cpy import ConnPlotter as c import ConnPlotter.examples as cex sl,sc,sm=cex.simple() print sl scp=c.ConnectionPattern(sl,sc) scp.plot() cpy.show()
a97ba7c71e947e3f34b0f813ab89419ff5f9b64d3e159b5f091ad4ac46888bf4
Python
163
9
from .mask_rcnn_R_50_FPN_100ep_LSJ import ( dataloader, lr_multiplier, model, optimizer, train, ) model.backbone.bottom_up.stages.depth = 101
cb1456aa77d744f21c1aff594b1d5b1e7ab8529b7761c534bf88b0e90e34c321
Python
163
8
import nibabel as nib import numpy as np gii = nib.load(snakemake.input.gii) varr = gii.darrays[0].data varr = np.tanh(varr) nib.save(gii, snakemake.output.gii)
58894a5a88f644bdcb2073c03af902bc3a9e5100a975734b89dccac432168111
Python
166
7
# type: ignore __submodules__ = [] # <AUTOGEN_INIT> import lazy_loader __getattr__, __dir__, __all__ = lazy_loader.attach_stub(__name__, __file__) # </AUTOGEN_INIT>
72db8297f83d8a4c2edb59070898c224fc56cb6e57dd7b126b3433048d4a70af
Python
166
3
from .mask_rcnn_BNhead import model, dataloader, lr_multiplier, optimizer, train model.roi_heads.box_head.conv_norm = model.roi_heads.mask_head.conv_norm = "SyncBN"
a1cb228ab9839f4078aa21d15cd5124dc243f1f5efecebf38d52b647682c359f
Python
166
7
from .base import * from .ratesdb import * from .activity import * from .spikesdb import * from .measures import * from .traceback import * from .population import *
f7196f0e162ee66b9383d05aada4cb202d71e8d8b76441ff3e2060004921056d
Python
167
13
class BaseDataLoader(): def __init__(self): pass def initialize(self): pass def load_data(): return None
af7e00e1562d7ddd6b646cf62731fd2f65417e9ca67371b2e35e779df03b7c7f
Python
168
7
# Copyright (c) Facebook, Inc. and its affiliates. # pyre-unsafe from detectron2.utils.registry import Registry DENSEPOSE_LOSS_REGISTRY = Registry("DENSEPOSE_LOSS")
c2d864ddbc0032bd78ebf2ddfd06c563d9900c5d0ce8cf175b8ff52a49ad017c
Python
169
3
# Copyright (c) Facebook, Inc. and its affiliates. from .coco import register_coco_instances # noqa from .coco_panoptic import register_coco_panoptic_separated # noqa
7bcc6070cf407ca15d8342bd72bc214171e8ccd96aec6955afc67d52ac171eaf
Python
175
4
# Copyright (c) Facebook, Inc. and its affiliates. from .swap_align2nat import SwapAlign2Nat, swap_align2nat __all__ = [k for k in globals().keys() if not k.startswith("_")]
e215b9fb096e14d4c7dbc6e0ff0dfb2bd6cbb5fd51b1e66a9cdccf5b1b3ab86e
Python
176
7
# Copyright (c) Facebook, Inc. and its affiliates. # pyre-unsafe from detectron2.utils.registry import Registry ROI_DENSEPOSE_HEAD_REGISTRY = Registry("ROI_DENSEPOSE_HEAD")
13cdb3df29ece13998e53fae3d7f2feb4f97f7581637260083e251b0f226a447
Python
178
7
# Copyright (c) Facebook, Inc. and its affiliates. # pyre-unsafe from detectron2.utils.registry import Registry DENSEPOSE_PREDICTOR_REGISTRY = Registry("DENSEPOSE_PREDICTOR")
7cae3a8c1b796918f455f5f5a6e41b8ab8d7cb54ddc539ff77bc251097b34893
Python
180
3
from .cascade_mask_rcnn_mvitv2_b_3x import model, dataloader, optimizer, lr_multiplier, train train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_B_in21k.pyth"
bd7957a3c096f001f0dafc34d8b96ef3b1adda187d7fe5a688582343ccd42d9a
Python
181
10
# type: ignore __submodules__ = [] # <AUTOGEN_INIT> import lazy_loader __getattr__, __dir__, __all__ = lazy_loader.attach_stub(__name__, __file__) __all__ = [] # </AUTOGEN_INIT>
9735e5fc902f28dd5fd29809dd75a72eca7f90c33c6c5f8e67dd52a2f7f90283
Python
183
14
DIVERGING_PALETTES = [ "PiYG", "PRGn", "BrBG", "PuOr", "RdGy", "RdBu", "RdYlBu", "RdYlGn", "Spectral", "coolwarm", "bwr", "seismic", ]
c6e3a1da922435f338eb7a595671f4faf6db023dd2142b665bdc04f89d4fee51
Python
188
5
# # Copyright (c) 2020 10X Genomics, Inc. All rights reserved. # """Constants and methods only applicable to spatial targeting.""" SPATIAL_TARGET_DISALLOWED_PANEL_TYPES = ["fully_custom"]
bb4450ea67b811931e64b3d420657bda3047d3a68c98c30b7f538114dcc9ec53
Python
190
13
# -*- coding: utf-8 -*- """ Created on Mon Oct 24 16:45:14 2016 @author: Federico Barabas """ from ringfinder.testdata_maker import buildData if __name__ == '__main__': buildData()
61d9be09b2d2adab754446f4f23636a00ebfbfbd8d5708f178e3855e6a6b75ce
Python
195
9
"""Timed, interruptible actions and the agent mixin that performs them.""" from .actions import Action, ActionState, HasActions __all__ = [ "Action", "ActionState", "HasActions", ]
81f2918d2321e9138f0f1f15bf475a1461c09c312c151fac2b5dbe58fde923f1
Python
198
9
import urllib.error import urllib.request try: urllib.request.urlopen("https://www.google.com") except urllib.error.URLError: # -no-cov- HAS_INTERNET = False else: HAS_INTERNET = True
c612e7ae9b8e7b2d175cb61a76e965883d02b3de1748e35033b624ab8f8a22c1
Python
198
7
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # pyre-unsafe from . import builtin __all__ = [k for k in globals().keys() if "builtin" not in k and not k.startswith("_")]
69ad872511962b87d9e00877a0191e1eb53b0700796619836bbb9f4f2642e65b
Python
200
11
""" Analysis module for electrophysiology data. This module contains functions for detecting and analyzing synaptic events. """ from .synaptic_events import BLA_EPSCs __all__ = [ 'BLA_EPSCs', ]
15104724f6f8976e5b3a6e30350f8c6539bf0e5eefb03aa6d92aa3f6bb109efd
Python
201
9
"""Configuration for submodule doctests. Should be importable (but not useful) without development dependencies. """ try: import k3d except ModuleNotFoundError: collect_ignore_glob = ["*.py"]
006092126f44f38ce3de653af495a0bf0db321ef2c1422e0d2633615f2a90a9e
Python
202
9
"""Meta-agents: agents composed of other agents.""" from .meta_agents_api import MembershipEdge, MembershipView, MetaAgents __all__ = [ "MembershipEdge", "MembershipView", "MetaAgents", ]
d5bea3c57923755557f58e86d73c4e2bc060fd15bb10d318ebab652ea83cc4aa
Python
203
8
import zipfile from nnunetv2.paths import nnUNet_results def install_model_from_zip_file(zip_file: str): with zipfile.ZipFile(zip_file, 'r') as zip_ref: zip_ref.extractall(nnUNet_results)
edf1696535b52b4cac32fcdaac4a294ae752a4d60ecf1d34561e05f2909e3924
Python
203
8
# micorr/simulation/__init__.py from . import simulations from . import testing from . import plotting from . import transformations __all__ = ['simulations', 'testing', 'plotting', 'transformations']
fc8389a3795768bafb0be7ceaf110cf9d8b532cb2c6080b233b7a0a6f08c0736
Python
203
10
from ._go import run_gsea from ._idea import IDEA import logging logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", )
ae046f3b956e9aedba1096ac76946980edebb805504bf611b505ca411528b26f
Python
208
2
from ldm.modules.image_degradation.bsrgan import degradation_bsrgan_variant as degradation_fn_bsr from ldm.modules.image_degradation.bsrgan_light import degradation_bsrgan_variant as degradation_fn_bsr_light
ce7437e36114e000e3a89d6931e09f5f3f54104205e2097129206d3854c30808
Python
213
4
from .base import BaseRestraintGeometry, HostGuestRestraintGeometry from .boresch import BoreschRestraintGeometry from .flatbottom import FlatBottomDistanceGeometry from .harmonic import DistanceRestraintGeometry
daeb8be3bf593292cff1ff09a4e007e6437d89ab421d32529b0696ea3cf31841
Python
213
5
from .custom_preprocessors import mean_artifact_subtract, trend_subtract from .icms_pipeline import preprocess_icms, stim_timestamps_seconds_to_samples from .curate import curate_units __version__ = "1.0.0"
344b2e9113d9b4fd3acd576fd3af12632e2b565c4c639db83c76a3a8c4189b97
Python
219
11
""" Names of stored models. """ __author__ = "Fabi Bongratz" __email__ = "fabi.bongratz@gmail.com" # Model names INTERMEDIATE_MODEL_NAME = "intermediate.pt" BEST_MODEL_NAME = "best.pt" FINAL_MODEL_NAME = "final.pt"
36aaa64ae61d5de14d687e21d1860a0e47f92ac48eb763f9bf86f38f6d3223e2
Python
219
10
from abc import ABC, abstractmethod from pathlib import Path import numpy as np class BaseLoader(ABC): @abstractmethod def load(self, file_path: str | Path) -> np.ndarray: raise NotImplementedError()
bef25a9f639222fadc3e33316b683b2659bba01afc96b63b46033779783e8e66
Python
219
3
from .harmonizationLearn import harmonizationLearn, saveHarmonizationModel from .harmonizationApply import harmonizationApply, loadHarmonizationModel #from .harmonizationNIFTI.py import create_NIFTI_mask, flatten_NIFTIs
61465905f1811c704657227307dc22f1fd697cc81831d4234d4bbf0f181c40b9
Python
221
11
from pathlib import Path import yaml def load_config(): CONFIG_PATH = Path("config_attackcnn.yaml") with CONFIG_PATH.open("r") as config_file: return yaml.safe_load(config_file) config = load_config()
7ae47093ec1543140c4592698cd5c933a475d9b42dbe0da1624f4f4ce110d84f
Python
221
9
"""Configuration for submodule doctests. Should be importable (but not useful) without development dependencies. """ try: import plotly.graph_objs as go except ModuleNotFoundError: collect_ignore_glob = ["*.py"]
32073bdac0723abd1e24579661f0398fa0e403d0301f4c15095450a3822eb721
Python
224
7
# Copyright (c) Facebook, Inc. and its affiliates. # pyre-unsafe from . import builtin # ensure the builtin datasets are registered __all__ = [k for k in globals().keys() if "builtin" not in k and not k.startswith("_")]
e358d26585805e71f0b10c20714c349ec33a59b50f74c3e5549e97b4a9ec4194
Python
227
8
from .freesurfer_support import vtkFSReader, vtkFSWriter from .gifti_support import vtkGIFTIReader, vtkGIFTIWriter __all__ = ['vtkFSReader', 'vtkFSWriter', 'vtkGIFTIReader', 'vtkGIFTIWriter']
f4330cca3afab9cc30236825967046882aae40a8546db902257f9e95cd5fea11
Python
227
7
"""Vendored MolGpKa inference (MIT). See LICENSE.md in this directory.""" from __future__ import annotations from .predict_pka import predict, predict_acid, predict_base __all__ = ["predict", "predict_acid", "predict_base"]
38a19a7c68900805d5049aeeb63b2bdb070c5a6166eb6ccd4d6e89d2883234df
Python
231
5
# Copyright (c) Facebook, Inc. and its affiliates. from .build import PROPOSAL_GENERATOR_REGISTRY, build_proposal_generator from .rpn import RPN_HEAD_REGISTRY, build_rpn_head, RPN, StandardRPNHead __all__ = list(globals().keys())
a673d4de1b8f361b51be9d0534ea2c9963f68fdf5a4cb91e45e5e396c8dbc712
Python
231
13
#!/usr/bin/env python3 from pathlib import Path from snakebids import bidsapp, plugins app = bidsapp.app( [ plugins.SnakemakeBidsApp(Path(__file__).resolve().parent), ] ) if __name__ == "__main__": app.run()
3a60b898475d77034459379360a1dd1f46511f5d5c83b5894b6181843dc17f03
Python
234
7
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # pyre-unsafe from .vertex_direct_embedder import VertexDirectEmbedder from .vertex_feature_embedder import VertexFeatureEmbedder from .embedder import Embedder
d148267b18ef60f403ac976cfd45af8554cb3429cdcde7513094f6fd54afcc93
Python
236
6
from .model import MPNN from .mol_atom_bond import MolAtomBondMPNN from .multi import MulticomponentMPNN from .utils import load_model, save_model __all__ = ["MPNN", "MolAtomBondMPNN", "MulticomponentMPNN", "load_model", "save_model"]
643cf4743946d98a6e2f8426d7a691439f4a70de5f8be5a81fa00ce71a5dec49
Python
237
12
import torch.utils.data as data class BaseDataset(data.Dataset): def __init__(self): super(BaseDataset, self).__init__() def name(self): return 'BaseDataset' def initialize(self): pass
86e657dd03acbf33daba1f2529bee34efb41522b3d3fc19b938b46281f6d0844
Python
237
9
class TestExternalPreprocessing: def test_list_image_files(self): pass # TODO def test_create_panel_from_image_files(self): pass # TODO def test_try_preprocess_images_from_disk(self): pass # TODO
b047b89f7cf7fcfa1f4277ee55391741130363d0fe6fc30032977267a6db8bfb
Python
244
5
# Copyright (c) Facebook, Inc. and its affiliates. from .build_solver import build_lr_scheduler from .config import add_deeplab_config from .resnet import build_resnet_deeplab_backbone from .semantic_seg import DeepLabV3Head, DeepLabV3PlusHead
020f577071fe2bb2f3491b012c0c232f2548fb4cc1c54f5a1d7638fffea97012
Python
247
13
# Copyright (c) Facebook, Inc. and its affiliates. # pyre-unsafe from enum import Enum class DatasetType(Enum): """ Dataset type, mostly used for datasets that contain data to bootstrap models on """ VIDEO_LIST = "video_list"
028a266170764406421c49483b02d084ca927e204f70a87252327f2521981b8c
Python
247
9
"""Pytest bootstrap. Import torch before RDKit (see src/utils/torch_preimport) so MolGpKa-backed tests do not hit the Windows ``shm.dll`` load-order failure. """ from __future__ import annotations import src.utils.torch_preimport # noqa: F401
980a994bb4fd8dc61c30b8dcbee7d39715fa9ac4e846e11b6caf36ab001d5d42
Python
247
8
import re def normalize_text(text): text = str(text) text = re.sub(r'<[^>]+>', '', text) text = re.sub(r'\s+', '', text) text = text.replace('%','%').replace('WiFi','wifi').replace('WiFi','wifi') return text.strip()
e95fb2e1122676138c5eb6e45d76bc42e211cb19199b5daf9a8cb4f2d2ca3275
Python
247
9
from pathlib import Path class TestExpansionUtils: def test_expand_mask(self, imc_test_data_steinbock_path: Path): pass # TODO def test_try_expand_masks_from_disk(self, imc_test_data_steinbock_path: Path): pass # TODO
be91a43373c9076780edd4ad5c903f621d0b952ca08c70f885e6033afdfbf739
Python
249
14
from . import data, exceptions, featurizers, models, nn, schedulers, uncertainty, utils __all__ = [ "data", "featurizers", "models", "nn", "utils", "exceptions", "schedulers", "uncertainty", ] __version__ = "2.3.1"
269922d4b0db59dc40e843b249f2189b545cd8a35868be647ed1c1f1d0f45d7e
Python
250
2
import argparse, joblib ap=argparse.ArgumentParser(); ap.add_argument('--text',required=True); ap.add_argument('--model',default='models/executable_baseline_synthetic.joblib'); a=ap.parse_args(); m=joblib.load(a.model); print(m.predict([a.text])[0])
4eec142a9b379f1c04a1d9c1ac7b754e3f52d47b393647528322f197d95b40ea
Python
250
8
# Copyright (c) Facebook, Inc. and its affiliates. # pyre-unsafe from .v1convx import DensePoseV1ConvXHead from .deeplab import DensePoseDeepLabHead from .registry import ROI_DENSEPOSE_HEAD_REGISTRY from .roi_head import Decoder, DensePoseROIHeads
3f5eeb2482d9ed8fd40e003190c57d66c3785f36a4467124fc4eeabdb826a9e7
Python
251
7
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe from .relative_alchemical_network_planner import ( RBFEAlchemicalNetworkPlanner, RHFEAlchemicalNetworkPlanner, )
ee7f9f72e6e4c719e4dc614a30c41962f1d874de8a166a1946ae83eee3180b38
Python
251
9
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe """ The MCS class from Lomap shamelessly wrapped and used here to match our API. """ from lomap import LomapAtomMapper
2beff802870c9592abf70107723dacf5fd07440d79880e82cb1e071143d10c17
Python
253
9
from . import brain_generator from . import estimate_priors from . import evaluate from . import labels_to_image_model from . import metrics_model from . import model_inputs from . import predict from . import training_supervised from . import training
b6570d470943dac6351c837baad80583e21cbdf355d43e28f2b855fb44ce0349
Python
254
4
"""CASCADE utilities - v0.8.0""" from .common import MEARecording, save_fig, say, banner, step, frames_to_seconds from .io import write_csv, write_tsv, write_criticality_report from .inspect_file import dump_structure, compare_structures
761d36f42b9bdf1e5d0002bccbb785d96c45129fac3849854501fa3f0fcd98b0
Python
255
7
from gufe import LigandAtomMapping from kartograf import KartografAtomMapper from . import lomap_scorers, perses_scorers from .ligandatommapper import LigandAtomMapper from .lomap_mapper import LomapAtomMapper from .perses_mapper import PersesAtomMapper
a271da583822b29b0b309938ab098bd0a19bec7f3ae7b4a4c53f3ed7e3d109d2
Python
256
6
"""CASCADE manufacturer loaders - v0.8.0""" from .brainwave_loader import BrainwaveLoader from .maxwell_loader import MaxwellLoader from .cl1_loader import CL1Loader from .mcs_loader import MCSLoader from .axion_loader import AxionLoader
417d59aa1090f6c4c8256219109dc4c2f83c60076f91c7201b9eb0111f6cd3b8
Python
257
4
import WORC.plotting.plot_barchart import WORC.plotting.plot_boxplot_features, WORC.plotting.plot_images import WORC.plotting.plot_boxplot_performance, WORC.plotting.plot_ranked_scores import WORC.plotting.plot_ROC, WORC.plotting.plot_estimator_performance
d30239ef35996141e2411d97b2259f80cb2ee7c471435e33ce9627eb3ef63def
Python
257
13
import torch def get_gpu_name(): return torch.cuda.get_device_name(0) def get_all_gpu_names(): d = [] for i in range(torch.cuda.device_count()): d.append(torch.cuda.get_device_name(i)) return d if __name__ == '__main__': print(get_all_gpu_names())
13ad28f1c53e186f8c26bab8e3afeb26834659316e2260c4f64e8a539b35091a
Python
258
10
# Copyright (c) Facebook, Inc. and its affiliates. from .utils.env import setup_environment setup_environment() # This line will be programatically read/write by setup.py. # Leave them at the bottom of this file and don't touch them. __version__ = "0.6"
f49b6fa9a44d07de6e1deeb33e5fe2fc0dea3ca4ce90775a88672d2116b0a1a3
Python
258
6
############################################################################ # Copyright (c) 2022-2026 University of Helsinki # All Rights Reserved # See file LICENSE for details. ############################################################################
acad7ee1ea5dea67d1f919a1b1e77169ac6c15a20ed5628b886fc12602e3480e
Python
260
11
from pylab import figure, show, nx, linspace, stineman_interp x = linspace(0,2*nx.pi,20); y = nx.sin(x); yp = None xi = linspace(x[0],x[-1],100); yi = stineman_interp(xi,x,y,yp); fig = figure() ax = fig.add_subplot(111) ax.plot(x,y,'ro',xi,yi,'-b.') show()
ea579672b65f5fdacc4460a30773178ed8dd8764c41249f0a9f7bd996874b23a
Python
262
29
"""\ Core FFT routines ================== Standard FFTs fft ifft fft2 ifft2 fftn ifftn Real FFTs rfft irfft rfft2 irfft2 rfftn irfftn Hermite FFTs hfft ihfft """ depends = ['core']
2cdbf0a7b50ee4740a3a3488c12671898618dbd654211750b9d9b7aaa14080d2
Python
264
9
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe from importlib.metadata import version from . import commands from .plugins import OFECommandPlugin __version__ = version("openfe")
a4009e385fdae63124c8515947dbc0502db38c411c6ac2bb6e82ed2c3f632eaf
Python
265
11
import cudf import cupy as cp import sys NUM_ELEMENTS = cp.int(sys.argv[1]) print(NUM_ELEMENTS) #NUM_ELEMENTS = 10 df = cudf.DataFrame() for i in range(NUM_ELEMENTS): df[i] = cp.random.sample(NUM_ELEMENTS) for column in df.columns: print(df[column].mean())
c9a203944648bfe3d85e1e8d27ca290f4d59d33bc2d33e85f4b23775109b8754
Python
268
6
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe from .abstract_chemicalsystem_generator import RFEComponentLabels from .easy_chemicalsystem_generator import EasyChemicalSystemGenerator
2640a42f8cd9a5ef1cd061eac3886e336faea06398aab0b2b7b275338e789050
Python
269
8
"""Continuous space support.""" from mesa.experimental.continuous_space.continuous_space import ContinuousSpace from mesa.experimental.continuous_space.continuous_space_agents import ( ContinuousSpaceAgent, ) __all__ = ["ContinuousSpace", "ContinuousSpaceAgent"]
4decf21503a2ace993387752298cbe86d264d4ee2489ef146a3eab6b64118399
Python
276
13
from __future__ import annotations from typing import Protocol class TautomerError(Exception): """Raised when tautomer selection fails.""" class Tautomerizer(Protocol): backend_name: str def dominant_tautomer(self, smiles: str, access_code: str) -> str: ...