text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
import os import math import struct import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from mayavi import mlab from mayavi.mlab import * filePath = "/home/kriol/data/R8O1IS01C25_Y0Z55/R8O1IS01C25_Y0Z55.3ddose" f = open(filePath,'r') #read in the dimensions line = f.readline(...
Iwan-Zotow/runEGS
XcVV/may.py
Python
apache-2.0
1,480
[ "Mayavi" ]
b56762d102cca77438ccc69318beaf84d4bd7d5a438076cf22d0996a35d85bc2
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
espressomd/espresso
testsuite/python/pairs.py
Python
gpl-3.0
4,553
[ "ESPResSo" ]
74acda2cb7db769f2839e9b81ed2c015d2abe8acec0326d2eae38ce69e3ef880
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """SUPER-FOCUS: A tool for agile functional analysis of shotgun metagenomic data""" import argparse import os import sys import logging from pathlib import Path from shutil import which from superfocus_app import version import tempfile LOGGER_FORMAT = '[%(asctime)s - ...
metageni/SUPER-FOCUS
superfocus_app/superfocus_downloadDB.py
Python
gpl-3.0
7,440
[ "BLAST" ]
0bf25ed3c327ea20c435f0baf2fc43c0178e892d4cfa0a78c313540c934b88ef
# -*- coding: utf-8 -*- """ Module to handle World Ocean Atlas (WOA) climatology """ from os.path import expanduser import re from datetime import datetime import numpy as np from numpy import ma import netCDF4 from scipy.interpolate import interp1d # RectBivariateSpline from scipy.interpolate import griddata from ...
castelao/oceansdb
oceansdb/woa.py
Python
bsd-3-clause
18,112
[ "NetCDF" ]
ec875a288efec952eddb360542eda4f83457acad4d6acd9587636a99d552ca1c
#!/usr/bin/env python # Dan Blankenberg from __future__ import print_function import datetime import logging import optparse import os import shutil import subprocess import tempfile from json import ( dumps, loads ) from os.path import basename from xml.etree.ElementTree import tostring try: # For Python ...
blankclemens/tools-iuc
data_managers/data_manager_rsync_g2/data_manager/data_manager_rsync.py
Python
mit
17,666
[ "Galaxy" ]
ae35c57d927035d313545e7cdfcd491e71349dcec801d2e4c3326ece372e1c14
"""Support for displaying weather info from Ecobee API.""" from datetime import datetime from pyecobee.const import ECOBEE_STATE_UNKNOWN from homeassistant.components.weather import ( ATTR_FORECAST_CONDITION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARIN...
postlund/home-assistant
homeassistant/components/ecobee/weather.py
Python
apache-2.0
6,349
[ "VisIt" ]
8260be26b2d621242efcaee619693658a82441e555c6711978ea75c500112f40
""" This file is a mess, it is a merge of random stuff that is in galaxy.util and stuff that was in pulsar.util. This should be reworked to only contain stuff in galaxy.util and the rest should be moved into galaxy.util.pulsar_io or something like that. """ import os import stat try: import grp except ImportError: ...
ssorgatem/pulsar
galaxy/util/__init__.py
Python
apache-2.0
7,460
[ "Galaxy" ]
0c8f89f11fa02108f6748186b63e3e3e208ccf8d60294e0ebcdcacb53007b1ca
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-compute
tests/unit/gapic/compute_v1/test_license_codes.py
Python
apache-2.0
52,934
[ "Octopus" ]
f37ad22523e1025d5dac253be5102ed5983bf73af77bb5dd6c62033d555a11be
from __future__ import absolute_import from typing import Any, Dict, List, Set, Tuple, TypeVar, Text, \ Union, Optional, Sequence, AbstractSet, Pattern, AnyStr from typing.re import Match from zerver.lib.str_utils import NonBinaryStr from django.db import models from django.db.models.query import QuerySet from dja...
peguin40/zulip
zerver/models.py
Python
apache-2.0
56,005
[ "VisIt" ]
9363c4fa000ff535531693d93a977125a2c3cfeb96d9c95599a0a6ebd17ec854
# -*- coding: utf-8 -*- from __future__ import absolute_import from os import path import logging import socket from tornado import gen, testing import thriftpy from thriftpy.tornado import make_client from thriftpy.tornado import make_server logging.basicConfig(level=logging.INFO) addressbook = thriftpy.load(pa...
eleme/thriftpy
tests/test_tornado.py
Python
mit
3,604
[ "Brian" ]
4215e5a1d92bec86f46f83e8619cf1713de68e6b12922e373b255478e1170c24
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-03-03 21:29:49 by Brian McFee <brian.mcfee@nyu.edu> '''Additive background noise''' import pysoundfile as psf import librosa import numpy as np import os import six from ..base import BaseTransformer def sample_clip(filename, n_samples, sr, mono=True): ...
silky/muda
muda/deformers/background.py
Python
apache-2.0
3,768
[ "Brian" ]
c610dc0e98d06b7a96e1388401307519f0014243a46ccaa0c9418f863bd2f299
#!/usr/bin/python ### ## twitter access for #cc # import sys import ccdb import tweepy import urllib import tempfile import igscrape import instasync import credentials ### ## actual tweeting # def get_api(): # pull the credentials cred = credentials.get_credentials("twitter") if (cred is None): ...
cromulentcoffee/cromulentcoffee.github.io
tweet.py
Python
gpl-2.0
8,382
[ "ESPResSo" ]
406ce73138c44aceaec7e33761c94b993f05cbf6bfcaa6ff781df55c89baa936
# coding: utf-8 # 😬 from django.utils.translation import ugettext_lazy as _ # This file is a place to store static, translatable strings SECTORS = ( # (value, human-readable label) ("Public Administration", _("Public Administration")), ("Arts, Entertainment, and Recreation", _("Arts, Entertainment, and R...
kobotoolbox/kpi
kobo/static_lists.py
Python
agpl-3.0
15,429
[ "BWA" ]
27c585cf114bd58fa45a3a58ff6df19914a36b0c364635016f86ffda58d58f59
# Standard Library import asyncio import random # Casino from .deck import Deck from .engine import game_engine # Red from redbot.core import bank from redbot.core.i18n import Translator from redbot.core.errors import BalanceTooHigh from redbot.core.utils.chat_formatting import box from redbot.core.utils.predicates i...
Redjumpman/Jumper-Cogs
casino/games.py
Python
gpl-3.0
16,248
[ "CASINO" ]
e34519fb83d4c08bf1907b1546b10d4cff91d5f677f9a4b10db3edbeb2aaec37
# *************************************************************************** # * Copyright (c) 2017 qingfeng Xia <qingfeng.xia@gmail.coom> * # * Copyright (c) 2017 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * Th...
sanguinariojoe/FreeCAD
src/Mod/Fem/feminout/importVTKResults.py
Python
lgpl-2.1
6,452
[ "VTK" ]
abbf37dbf4965543447a7784c5d821da91fd9e1f14c55b7b5efddf169ac0685b
#!/usr/bin/python # TODO: This code needs to be cleaned up a lot... there is a lot of testing garbage that is no longer needed! # It however, does work for the purposes of the paper submission. # I have to make this submission ready, and conform to infile, out folder, done. from multiprocessing import Pool import tim...
schaefce/gene_block_evolution
make_operon_query.py
Python
gpl-3.0
32,347
[ "BLAST", "Biopython" ]
3496d0026c0382a1d18033502846b4829a244a7f370e9bceae49f957dd83a129
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from datetime import date from workalendar.core import WesternCalendar, ChristianMixin, Calendar from workalendar.core import SUN, MON, SAT class Canada(WesternCalendar, ChristianMixin...
sayoun/workalendar
workalendar/canada.py
Python
mit
10,029
[ "Desmond" ]
0978becb58ce581b22667c9e1f5dcf57ff90e1ff670ccb7b94e9e0211a9c62e6
#!/usr/bin/env python # coding: utf-8 """Test suite for autopep8. Unit tests go in "UnitTests". System tests go in "SystemTests". """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import re import sys i...
hhatto/autopep8
test/test_autopep8.py
Python
mit
256,881
[ "Psi4" ]
cc039492ec0e216daef5f3d72d227a552d4ace9b56329a1a950018c9771617fd
#!/usr/bin/env python # encoding: utf-8 # -*- coding: UTF-8 -*- #-------------------------------------------------------------------------- # package : GenroPy core - see LICENSE for details # module gnrbag : an advanced data storage system # Copyright (c) : 2004 - 2007 Softwell sas - Milano # Written by : Gi...
poppogbr/genropy
gnrpy/tests/sql/e_query_test.py
Python
lgpl-2.1
8,654
[ "Brian" ]
ffb042881475a70fb3e9527cdc8fb5300031b2f82c4091f3c0d49567dc82b9e1
""" FileManager for ... ? """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import six import os import datetime from DIRAC import S_OK, S_ERROR from DIRAC.DataManagementSystem.DB.FileCatalogComponents.FileManager.FileManagerBase impor...
yujikato/DIRAC
src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/FileManager/FileManagerPs.py
Python
gpl-3.0
31,305
[ "DIRAC" ]
0d478d9b5ca18b9399ec22979a78f5e19ffa4ac1cb24e1352caff787612586de
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
rmcgibbo/psi4public
psi4/driver/qcdb/interface_gcp.py
Python
lgpl-3.0
11,889
[ "Psi4" ]
895fec3862e31eb914c21d72b39a88d1f35992b5e420987efcd2a9c151ae0b13
# Import libaries and illustris library import numpy as np import math # calulate distance to a point: # input: subhalo_mask: position of particles in column matrix x,y,z position # fil_pos_mat: position of filaments in column matrix x,y,z position # output: array: 1st column is index of filament row that is ...
zpenoyre/illustris
web/code/subroutines/distance.py
Python
mit
3,364
[ "Galaxy" ]
2499a7d8020b8327fe943c3407859c29fa4b1449ea469c01077cf7ffb42bba7a
from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import random import re import socket import sys import time import math from ..compat import ( compat_cookiejar, compat_cookies, compat_etree_fromstring, compat_getpass, compat_...
dannyperry571/theapprentice
script.module.youtube.dl/lib/youtube_dl/extractor/common.py
Python
gpl-2.0
115,266
[ "VisIt" ]
a2ce3f49d657cd78865ddc0c865ee419a47feec422d540af73b8c4bdca20faf3
""" Courseware views functions """ import logging import urllib import json from collections import defaultdict from django.utils import translation from django.utils.translation import ugettext as _ from django.conf import settings from django.core.context_processors import csrf from django.core.exceptions import P...
epam-mooc/edx-platform
lms/djangoapps/courseware/views.py
Python
agpl-3.0
38,453
[ "VisIt" ]
51453c63f14c933c3800d02ea336f88f408fe914c870e13dc21620f8c9ca9441
import numpy as np def Gaussian(Center, Smear, Norm, Domain): return Norm * np.exp( - 0.5 * (Domain - Center) ** 2 / Smear ** 2 ) def dump(args, suffix, x, y): fname = args.filename.split('.out')[0] + suffix np.savetxt(fname, np.transpose([x,y]))
LuciusV/ORCA-pyPDOS
functions.py
Python
gpl-3.0
260
[ "Gaussian" ]
b0f760dd59fcb4fc54b1056b841fea49d1cce5b81a6af8d73c3efd2c03835291
import json import uuid from django.conf import settings import requests class TranslationException(Exception): pass def translate(text, from_language, to_language): AZURE_CLIENT_SECRET = getattr(settings, 'AZURE_CLIENT_SECRET', None) GOOGLE_APPLICATION_CREDENTIALS_PATH = getattr( settings, 'G...
mbi/django-rosetta
rosetta/translate_utils.py
Python
mit
4,624
[ "VisIt" ]
50c7d1e8365c3d5bfa344b70ea1f53eb09c2b963b12ad0f805f8c171370fd83b
from django.db import models from django.apps import apps from edc_base.model.fields import OtherCharField from edc_base.model.models import BaseUuidModel from edc_base.model.validators import datetime_not_before_study_start, datetime_not_future from edc_consent.models import RequiresConsentMixin from edc_constants.ch...
botswana-harvard/tshilo-dikotla
td_maternal/models/maternal_labour_del.py
Python
gpl-2.0
11,697
[ "VisIt" ]
a38077a6001ca496cebce568ace431630c68713b3e1c051af58ca55b0bab5314
from numpy import array, arange, frombuffer, load, asarray, random, \ fromstring, expand_dims, unravel_index, prod try: buffer except NameError: buffer = memoryview from ..utils import check_spark, check_options spark = check_spark() def fromrdd(rdd, nrecords=None, shape=None, index=None, labels=None, d...
jwittenbach/thunder
thunder/series/readers.py
Python
apache-2.0
14,477
[ "Gaussian" ]
80be0a7f91e62330eaf4d5503bf69cbbf4887065825348d1f491ba7388e340af
# -*- coding: UTF-8 -*- """ ``DeSeq2`` ----------------------- :Authors: Liron Levin :Affiliation: Bioinformatics core facility :Organization: National Institute of Biotechnology in the Negev, Ben Gurion University. Short Description ~~~~~~~~~~~~~~~~~~~~~~~~~ A module to preform: * Gene level differential e...
bioinfo-core-BGU/neatseq-flow_modules
neatseq_flow_modules/Liron/DeSeq2_module/DeSeq2.py
Python
gpl-3.0
16,344
[ "Bioconductor", "HTSeq" ]
cfbe0751bafaf9033f6445a1bac1a44b72d90008e5c4e5c52e77acf07bde0ea1
import unittest from pymatgen.core import Structure import pandas as pd import numpy as np from veidt.monte_carlo.ensemble import NVT, NPT, uVT from veidt.monte_carlo.base import State, StaticState from veidt.monte_carlo.state import AtomNumberState, IsingState from veidt.monte_carlo.base import StateDict from veidt.mo...
materialsvirtuallab/veidt
veidt/monte_carlo/tests/test_ensemble.py
Python
bsd-3-clause
3,849
[ "pymatgen" ]
7b22d12053fde36061afa3e1002805976b448bf906c06319594e211c5e4313bb
#!/usr/bin/env python # coding=utf-8 from __future__ import absolute_import from collections import namedtuple from difflib import get_close_matches try: from collections import OrderedDict except ImportError: from future.moves.collections import OrderedDict from future.utils import with_metaclass, iteritems...
bionikspoon/pureyaml
tests/utils/parametrized_tests_data.py
Python
mit
3,138
[ "VisIt" ]
ffd68b72e7c56340cfd8f07b36d33872c654ff4e252755110de299719e057db0
"""Calculate quality control metrics for UMI tags and consensus generation. """ import collections import math import os import numpy as np import pysam import yaml from bcbio import bam, utils from bcbio.pipeline import datadict as dd def run(_, data, out_dir): stats_file = os.path.join(utils.safe_makedir(out_d...
biocyberman/bcbio-nextgen
bcbio/qc/umi.py
Python
mit
3,082
[ "pysam" ]
6f749d45cabd990c2e6558ba10de11896d9fec953be41fa4b30e479378e931f1
""" This sample performs a grand canonical simulation of a salt solution. """ # # Copyright (C) 2013-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwar...
hmenke/espresso
samples/grand_canonical.py
Python
gpl-3.0
4,854
[ "ESPResSo" ]
71c23d4351fbb74ad8155dca4870829a40e08a77f3c1b7a665e14b427754b71f
"""Unit tests for Variational Bayes. """ from .variational import * from ..density.gauss import Gauss from ..density.student_t import StudentT from ..density.mixture import MixtureDensity, create_gaussian_mixture, recover_gaussian_mixture from ..sampler import importance_sampling from ..tools._probability_densities im...
fredRos/pypmc
pypmc/mix_adapt/variational_test.py
Python
gpl-2.0
30,985
[ "Gaussian" ]
ea44f63cccab334984d6d730cbc761a751ab190c94ecc2a340cd839f1f12e284
# -*- coding: utf-8 -*- """ ast ~~~ The `ast` module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like and allows...
kennedyj/symphony
vim/bundle/pyflakes/ftplugin/python/pyflakes/pyflakes/ast.py
Python
mit
11,668
[ "VisIt" ]
ffc01a24a00f3c8ef6c0ac68bcd6792515b6277317fea45722c67504dc0cf859
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/latexify_py
latexify/core.py
Python
apache-2.0
8,483
[ "VisIt" ]
67e0ed6c1708e75c305ab50c6bb94d1b9c3b39f96006c8505493254d5754d197
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as # published by t...
jck/myhdl
myhdl/_extractHierarchy.py
Python
lgpl-2.1
12,645
[ "VisIt" ]
2a984f69c3067d274ef2f7ce935a005792367a594bc2a9a2fa9ea7bd0d99c2b1
from __future__ import print_function import openpyxl import scipy.io as sio import numpy as np from sklearn import linear_model import matplotlib.pyplot as plt from functions_extract_database import get_rates_from_trials folder = './database/' filename = 'SummaryDatabase' format_type = '.xlsx' # Extract all the dat...
h-mayorquin/camp_india_2016
project1/predict_location.py
Python
mit
1,706
[ "NEURON" ]
6e6f06cab1eae0bd146fd2f6e6f18d9cdd6eabc9d183b0c9cf802c1d347905c4
# proxy module from __future__ import absolute_import from mayavi.filters.api import *
enthought/etsproxy
enthought/mayavi/filters/api.py
Python
bsd-3-clause
87
[ "Mayavi" ]
800e67a6d188f8fff0a9b6baef2b2d12014f8d186f841b8716bec941c1862c8e
# Copyright 2008-2010 by Peter Cock. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Code for dealing with sequence alignments. """ from Bio.Seq import Seq from Bio.SeqRecor...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Align/__init__.py
Python
gpl-2.0
25,300
[ "Biopython" ]
4a25ccad831388484daaa7b6358828f84e1ee20e73b9daa5ff7e1696202e79b3
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
rmcgibbo/psi4public
psi4/driver/procrouting/sapt/sapt_jk_terms.py
Python
lgpl-3.0
16,078
[ "Psi4" ]
04c32f1d0beab1a9dfead6d8278415d48d8fc60fe5b7a6278bb6e8bc8bb439ac
import numpy as np import theano.tensor as T import conv_ops import deconv_ops import feedforward from theano_toolkit import utils as U from theano.printing import Print FMAP_SIZES = [4, 8, 16, 32, 64, 128] FEATURE_MAP_SIZE = FMAP_SIZES[0] REV_FMAP_SIZES = FMAP_SIZES[::-1] FINAL_FMAP_SIZE = 64 // 2**(len(FMAP_SIZES)-1...
shawntan/ift6266
model.py
Python
mit
10,855
[ "Gaussian" ]
396801c68ba634a5f6985d9bf2b2661385503c7ef550579ea38448bd517ea3e0
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
nburn42/tensorflow
tensorflow/tools/api/tests/api_compatibility_test.py
Python
apache-2.0
9,970
[ "VisIt" ]
a655f8f59ab15dcca178e20ed459b64d5de6aabdda300edd61dcf92db065f638
# sql/elements.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Core SQL expression elements, including :class:`_expression.ClauseElement`, :clas...
cloudera/hue
desktop/core/ext-py/SQLAlchemy-1.3.17/lib/sqlalchemy/sql/elements.py
Python
apache-2.0
159,917
[ "VisIt" ]
74567c2929bf9859183098c40043f78a997751fd29d14ddda5440216a13a198b
# Welcome to the OpenDFT scripting console # # You can normally(*) use python to script here in addition to OpenDFT objects that can be # used to calculate electronic properties and visualize them. The structure, engine options etc. are loaded, when the # scripting window is opened and can be changed within the script....
JannickWeisshaupt/OpenDFT
src/examples/scripting/structure_optimization.py
Python
gpl-3.0
2,754
[ "CRYSTAL" ]
9d0ae5a22d70cbe346d5a6804048561b17694a7d87a941791fb82d284a62fd5c
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Ibmisc(CMakePackage): """Misc. reusable utilities used by IceBin.""" homepage = "http...
iulian787/spack
var/spack/repos/builtin/packages/ibmisc/package.py
Python
lgpl-2.1
2,520
[ "NetCDF" ]
055fbc36e6b0801cf16eaf220aca527aed47244f2ed1a03afd4336b612fe4f14
# $Id$ # # Copyright (C) 2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit.ForceField impo...
soerendip42/rdkit
rdkit/Chem/ChemicalForceFields.py
Python
bsd-3-clause
370
[ "RDKit" ]
392111917d9b16d91748de1689887ed907e0747099a2a2efa5eac5d4a26ac4c3
from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import send_mail from django.template.defaultfilters import pluralize from grandchallenge.subdomains.utils import reverse def send_unread_notifications_email(recipients): site = Site.objects.get_current()...
comic/comic-django
app/grandchallenge/notifications/emails.py
Python
apache-2.0
1,248
[ "VisIt" ]
019031167cdc6e757d8a739e364ad1f0dcddd8b48adf8fff657e1b2abdb99680
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
coufon/neon-distributed
examples/early_stopping.py
Python
apache-2.0
2,993
[ "Gaussian" ]
f70df447473881c7c089cef6fb04cca22b5117904e925feacf9c6b463f7231fb
from contextlib import closing import numpy from mayavi.scripts import mayavi2 from simphony.core.cuba import CUBA from simphony.cuds.lattice import (make_hexagonal_lattice, make_orthorhombic_lattice) from simphony.io.h5_cuds import H5CUDS # create some datasets to be saved in a fi...
simphony/simphony-mayavi
examples/cudsfilesource_mayavi2.py
Python
bsd-2-clause
1,926
[ "Mayavi" ]
50b6f2cf04d1ea7c824e1f4a25f0c1ad072f7d6a12277c79e60348090b26e68f
__author__ = 'Victoria' from src.common.Observable import * from src.game.AttackSpell import * from src.game.Room2 import * from src.game.StatePattern4 import * from src.game.Monsters2 import * from random import * class Hero(Observable,Observer, AttackSpell): def __init__(self, name): super(Hero, self)._...
victorianorton/SimpleRPGGame
src/game/Heros3.py
Python
mit
3,416
[ "VisIt" ]
a1debdf4a5b297085a192e772d90c3b2ba5d84973ba1809b454faadad88bfe08
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 3D Visualization (Proof of concept) ----------------------------------- """ import pygimli as pg from pygimli.viewer import show mesh = pg.meshtools.createMesh3D(1,1,1) """ If interactive is set to True, a Mayavi window pops up which allows for interactive introspect...
gimli-org/gimli
doc/tutorials/dev/plot_XX-3D-visualization.py
Python
apache-2.0
657
[ "Mayavi" ]
bb17e0cb525070b2c3dc335d10a733b2d2d8e6352373cd8bf11baba6321b80ef
# abstract class for Beverage class BeverageBase(object): def get_description(self): raise 0, "Must be implemented" def get_cost(self): raise 0, "Must be implemented" # Concrete Beverage class Beverage(BeverageBase): def get_description(self): return self.description def get_c...
sakurahilljp/dojo
Decorator/DecoratorSamples/PythonDecorator/PythonDecorator.py
Python
mit
2,366
[ "ESPResSo" ]
ac42709f1d185a1a38ea3ca39ff6f238e29f356e5c8854753d7905e48919ce35
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This package containes classes to parse input files from the exciting code package. """ from .inputs import * # noqa
gmatteo/pymatgen
pymatgen/io/exciting/__init__.py
Python
mit
234
[ "exciting", "pymatgen" ]
37a11720f9b13b107ded4d0e25bdcc839b2d0c1e902407f22d578c25ea4bcb46
from ase import Atoms, Atom from gpaw import GPAW from gpaw.mpi import rank, size a = 3.0 H = Atoms([Atom('H')], cell=(a, a, a), pbc=True, calculator=GPAW()) if size > 1: H.positions[0, 0] += 0.01 * rank try: e0 = H.get_potential_energy() except RuntimeError: pa...
qsnake/gpaw
gpaw/test/parallel/compare.py
Python
gpl-3.0
354
[ "ASE", "GPAW" ]
b9aff304664d5a34e026933f2e7900fac86483d78b30c8ed57719f49eac1922c
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import django.core.validators class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('main', '000...
FMI-B20/Yarr
main/migrations/0008_auto_20150523_1053.py
Python
mit
1,349
[ "VisIt" ]
9a1d06c1322092a24eac9987489906940b0d6489cd72c89a70a45abc3fe4ac46
from ase import * from ase.visualize import * import numpy as np from math import * np.set_printoptions(precision=3, suppress=True) TOLERANCE = 1.0e-5 ''' module to create hkl slabs using a layer approach ''' def nint(number): """Returns the nearest integer to :arg:`number`.""" if number >= 0.0: r...
jboes/jasp
jasp/vicinal.py
Python
gpl-2.0
9,522
[ "ASE" ]
fc143e05903a6c27b877ea4cb92b1bdacdccce9adc76414a4b64816b19483e06
################################################################################ # # # Copyright (C) 2010-2018 The ESPResSo project # # # # This file is pa...
hmenke/espresso
doc/tutorials/06-active_matter/SOLUTIONS/rectification_simulation.py
Python
gpl-3.0
8,056
[ "ESPResSo", "VTK" ]
a04e87c6d62e777b99444c574377590eadcfe9ef4704dd5664d162a94e569153
#build list of available data import sys builds= [] try: #read db names from file, this file is also used in galaxy/util.py for line in open("static/ucsc/builds.txt"): if line[0:1] == "#": continue try: fields = line.replace("\r","").replace("\n","").split("\t") ...
jmchilton/galaxy-central
tools/filters/axt_to_lav_code.py
Python
mit
1,169
[ "Galaxy" ]
ebea512045bcdda2962d7a68d5e604c71113c71979d639133c099dbcb216b1a4
import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn from torch.autograd import Variable import torch.optim as optim import random import numpy as np from sklearn.metrics import roc_auc_score def symmetric_normalize_adj(adj): """ Implements symmetric normalization of graphs ...
Agent007/deepchem
contrib/torch/pytorch_graphconv.py
Python
mit
17,841
[ "NEURON" ]
0c9a5a099657f92818c79e7ec89e969443a30f323cd583eedecab4ebacd70144
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator from astropy.io import fits from astropy.time import Time from PyAstronomy import pyasl from scipy import ndimage import pandas as pd import gaussfitter as gf import BF_functions as bff...
mrawls/BF-simulator
BF_pythonTYC.py
Python
mit
12,707
[ "Gaussian" ]
55a98c5c8ae003c6dc51038f528f0edd1b05e8e5b37281bdfa3d32c25604bb9f
"""Testing for Gaussian process classification """ # Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de> # License: BSD 3 clause import numpy as np from scipy.optimize import approx_fprime from sklearn.gaussian_process import GaussianProcessClassifier from sklearn.gaussian_process.kernels import RBF, Constant...
RPGOne/scikit-learn
sklearn/gaussian_process/tests/test_gpc.py
Python
bsd-3-clause
6,016
[ "Gaussian" ]
cdadd0a3ab73724797e3fe931c45e54f4b1c5c28b7f1bcae4c31006b7d2010ef
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Kyle A. Beauchamp # Contributors: Robert McGibbon # # MDTraj i...
mattwthompson/mdtraj
mdtraj/nmr/shift_wrappers.py
Python
lgpl-2.1
12,185
[ "MDTraj" ]
42643992a68a23ac1b2583bb349f7979631a2fa71c2fe6fe792064316e865a7b
# -*- coding: utf-8 -*- import os import matplotlib.pyplot as plt import numpy as np from __future__ import division import utils import seaborn seaborn.set() colors = seaborn.color_palette() # First create a vector of x values spanning the support of the histogram x = linspace(d.min(), d.max(), 1000) # Let's define...
NicovincX2/Python-3.5
Probabilités/Loi de probabilité/gaussian.py
Python
gpl-3.0
1,348
[ "Gaussian" ]
3e5471b81ff67777a4ed0cdc9d1a1cf7465da7b0bc0d703c0466a078e4cd7603
import os import time import urllib, json from random import randint from flask import Flask from flask_ask import Ask, statement, question app = Flask(__name__) ask = Ask(app, '/') MAGIC_SEAWEED_KEY = 'e96ca9b1f03a627aaab136eafe4f83ee' SPOT_ID = '1449' @ask.launch def launched(): return question("This is a sur...
willchis/alexaskillz
alexaskillz.py
Python
apache-2.0
5,867
[ "VisIt" ]
dee5cfcacb9b2a3e7b81a43d49db173cd76421dd2c0a2977ff1176f3570ba15f
"""Loading icons.""" # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _, logger import gtk import math def load_icon(icon_path, icon_width=None, icon_height=None): """Load icon from path. Icon MUST be in PNG format. @param icon_path: pathn...
timdiels/0install
zeroinstall/gtkui/icon.py
Python
lgpl-2.1
1,392
[ "VisIt" ]
823345807c5ad47c4889e626f2a4aea03251c762fcbfae921428113026e506b5
#!/usr/bin/env python # This example demonstrates the use of vtk3DSImporter. # vtk3DSImporter is used to load 3D Studio files. Unlike writers, # importers can load scenes (data as well as lights, cameras, actors # etc.). Importers will either generate an instance of vtkRenderWindow # and/or vtkRenderer or will use th...
CMUSV-VisTrails/WorkflowRecommendation
examples/vtk_examples/IO/flamingo.py
Python
bsd-3-clause
1,623
[ "VTK" ]
43f21d54839a0e32999e734f2a843dd6ef986a908088285efb8d6b35f4d7daf7
""" This module loads the entire VTK library into its namespace. It also allows one to use specific packages inside the vtk directory..""" import os import sys # The dl module is used to force the symbols in the loaded VTK modules to # be global, that is, to force symbols to be shared between modules. This # used ...
Wuteyan/VTK
Wrapping/Python/vtk/__init__.py
Python
bsd-3-clause
3,701
[ "VTK" ]
c6d250dbc4404fc6d3084258c06635ff4cb006249cc18e7033b2f920ad940eb5
__author__ = 'Chaya D. Stern' import mdtraj as md import os from fnmatch import fnmatch import sys from math import radians try: import openeye.oechem as oechem except ImportError: pass from torsionfit.utils import logger import warnings import numpy as np from cclib.parser import Gaussian, Psi from cclib.pars...
ChayaSt/Torsions
torsionfit/qmscan/torsion_scan.py
Python
gpl-2.0
12,248
[ "Gaussian", "MDTraj", "Psi4", "cclib" ]
84f2b31cfd228ac3e5eb698cf5b61da3c219a59055fc4b40c6a05213eb9328f7
# -*- coding: utf-8 -*- """Multivariate Normal and t distributions Created on Sat May 28 15:38:23 2011 @author: Josef Perktold TODO: * renaming, - after adding t distribution, cov doesn't make sense for Sigma DONE - should mean also be renamed to mu, if there will be distributions with mean != mu ...
wesm/statsmodels
scikits/statsmodels/sandbox/distributions/mv_normal.py
Python
bsd-3-clause
38,670
[ "Gaussian" ]
b13439bf05bfe68692351e41e7807359c57c37590fd98c85aad4b4e269d5f9b0
from random import Random class Haikunator: _adjectives = [ 'aged', 'ancient', 'autumn', 'billowing', 'bitter', 'black', 'blue', 'bold', 'broad', 'broken', 'calm', 'cold', 'cool', 'crimson', 'curly', 'damp', 'dark', 'dawn', 'delicate', 'divine', 'dry', 'empty', 'falling', 'fancy', ...
Atrox/haikunatorpy
haikunator/haikunator.py
Python
bsd-3-clause
3,671
[ "Firefly" ]
1d4df14ad8619944171f83e87dbd7f597a9f0e957c5e80ea8147350aa18b8007
# -*- coding: utf-8 -*- """ Part of the astor library for Python AST manipulation. License: 3-clause BSD Copyright 2012 (c) Patrick Maupin Copyright 2013 (c) Berker Peksag """ import ast class NonExistent(object): pass def iter_node(node, name='', list=list, getattr=getattr, isinstance=isinstance, ...
casawa/mdtraj
mdtraj/utils/external/astor/misc.py
Python
lgpl-2.1
5,966
[ "VisIt" ]
4e53e96c450743aa57b662f65eaa2d8d949081ea5eaa6cd69298fa6bb64fc6eb
# GromacsWrapper: test_example.py # Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. from __future__ import division, absolute_import, print_function import pytest import gromacs common_tool_names = ["pdb2...
PicoCentauri/GromacsWrapper
gromacs/tests/test_tools.py
Python
gpl-3.0
1,448
[ "Gromacs" ]
397449a57fd9eba696ad66be05ca5032a2053fdfd5acfa07ea2813a9620dc35e
import vtk red = [255, 0, 0] green = [0, 255, 0] blue = [0, 0, 255] # Setup the colors array colors = vtk.vtkUnsignedCharArray() colors.SetNumberOfComponents(3) colors.SetName("Colors") # Add the colors we created to the colors array colors.InsertNextTypedTuple(red) colors.InsertNextTypedTuple(red) colors.InsertNext...
tjssmy/CuviewerPy
vtkTests/Banded.py
Python
mit
5,343
[ "VTK" ]
5dbd0a05723758ad6e6195c4eef9b90fb41018f4e0cec82e34e6e2ebbfd065e7
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
brianrodri/oppia
core/controllers/reader_test.py
Python
apache-2.0
104,499
[ "VisIt" ]
3560d61ea4088b581093a1b414734eaa1744c50e9e81e3dba47cf39946e6ca6f
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Generate RGB colours suitable for distinguishing categorical data. This module provides a class that implements a spiral 'path' through HSV colou...
zjuchenyuan/BioWeb
Lib/Bio/Graphics/ColorSpiral.py
Python
mit
7,225
[ "Biopython" ]
1fad016017a794e2bbb7163f7a7eb2879dc2a4e26dd1e9f6872800c6997c1e77
# !usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2018-07-17 23:36:31 # @Last modified by: Brian Cherinka # @Last Modified time: 2018-07-19 00:37:28 from __future__ import print_function, division, absolute_import import copy as copy_mod ...
sdss/marvin
python/marvin/utils/datamodel/vacs/base.py
Python
bsd-3-clause
5,053
[ "Brian" ]
579a5646360e8bd885ddd04f065580618b0e32566f6ab6b6b9bb53f0ba45446e
"""NumpyArrayHandler.py was written by Ryan Petersburg for use with fiber characterization on the EXtreme PREcision Spectrograph The functions in this module are used to handle two dimensional np.ndarray objects that represent images from optical fibers. Functions include array summing, image cropping, image filt...
rpetersburg/FiberProperties
fiber_properties/numpy_array_handler.py
Python
mit
20,018
[ "Gaussian" ]
4dd1406df26832698439a245318dc7237c614647e944f063a84accb05a382b45
"""Helper methods for model interpretation.""" import numpy from gewittergefahr.gg_utils import radar_utils from gewittergefahr.gg_utils import error_checking from gewittergefahr.deep_learning import cnn from gewittergefahr.deep_learning import input_examples from gewittergefahr.deep_learning import deep_learning_util...
thunderhoser/GewitterGefahr
gewittergefahr/deep_learning/model_interpretation.py
Python
mit
11,293
[ "NEURON" ]
da9887ba4f33c02a2b99cc569dfa8b2c48a60dd1266ae5b58c09f575ff0ba1e6
# -*- coding: utf-8 -*- """ E2E tests for the LMS. """ from unittest import skip from .helpers import UniqueCourseTest, load_data_str from ..pages.lms.auto_auth import AutoAuthPage from ..pages.lms.find_courses import FindCoursesPage from ..pages.lms.course_about import CourseAboutPage from ..pages.lms.course_info im...
geekaia/edx-platform
common/test/acceptance/tests/test_lms.py
Python
agpl-3.0
15,194
[ "VisIt" ]
6ce1ffa5bdd1becd2f53048a0c16d06df01b058b0220c73091afddc727048544
"""Test suite for the crystal field calculations in the Inelastic/CrystalField package """ from __future__ import (absolute_import, division, print_function) import unittest import numpy as np from scipy.constants import physical_constants # Import mantid to setup the python paths to the bundled scripts import mantid ...
ScreamingUdder/mantid
scripts/test/CrystalFieldTest.py
Python
gpl-3.0
75,565
[ "CRYSTAL", "Gaussian" ]
34894d9a66925c47bea020a14482f44ec6e89fabaef3672a07b07aba7bfa5150
#!/usr/bin/python # -*- coding: Windows-1252 -*- NaturalEarthToGeoIP = { 'AFG': 'AF', 'AGO': 'AO', 'ALB': 'AL', 'ARE': 'AE', 'ARG': 'AR', 'ARM': 'AM', 'ATA': 'AQ', 'ATF': 'TF', 'AUS': 'AU', 'AUT': 'AT', 'AZE': 'AZ', 'BDI': 'BI', 'BEL': 'BE', 'BEN': 'BJ', 'BFA': 'BF', 'BGD': 'BD', 'BGR': 'BG', 'BHS...
Xangis/mm2ne
MaxMindToNaturalEarth.py
Python
mit
19,645
[ "BWA" ]
74faf977cb92f0588ea4c1ed9beca9d4b58cc9f13f8894ea2ff7c3276b93e8b0
''' Evolve a music piece with a simple evolutionary algorithm Author: Saquib Email: nzm.saquib@gmail.com 7/27/13 Note: you can get pygame libraries from http://www.pygame.org/download.shtml ''' import pygame import pygame.midi from time import sleep import random def fitness(source, target): fitval = 0 for i in...
nsaquib/slc-mathcsworkshop
evolve_music.py
Python
mit
3,384
[ "CRYSTAL" ]
995e0ee29c09319abb6c1d1424298c03b7ee7bb28053932782bfea9972507303
""" test_NeuronUpdate.py This file is part of ANNarchy. Copyright (C) 2016-2018 Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Found...
vitay/ANNarchy
tests/Unittests/test_SynapseUpdate.py
Python
gpl-2.0
2,005
[ "NEURON" ]
2019995d8ee8eec3cb4ae206fee4dc1e196fc0004f953cb3d443ae4cb44f7d31
import numpy as np import matplotlib.pyplot as plt import random import math class Envelope: def _init_(self): self.number=0 self.mass_std = 0 #modified, used to be self.central_fit_std self.mass = 0 self.charge = 1 #modified, used to be 0 self.peaks = [] #peak number in lis...
lujonathanh/PeakSeeker
SpectrumSimulator.py
Python
gpl-3.0
10,464
[ "Gaussian" ]
50dc33f5507c0a7332cc7690202236719e5cd10340ef639816160605d1934de7
#!/usr/bin/env python """ Simple script for testing various SfePy functionality, examples not covered by tests, and running the tests. The script just runs the commands specified in its main() using the `subprocess` module, captures the output and compares one or more key words to the expected ones. The output of fai...
RexFuzzle/sfepy
test_install.py
Python
bsd-3-clause
6,907
[ "VTK" ]
d16c94a6a54f52c29ab70fe8e6e6353c043edd909857dc92b1c7b44dbef3012b
#-*- coding:utf-8 -*- """ This file is part of OpenSesame. OpenSesame is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenSesame is distri...
eort/OpenSesame
libopensesame/sketchpad_elements/_noise.py
Python
gpl-3.0
1,670
[ "Gaussian" ]
d360783004f8adb5385b834539b73b11d3431681158edaebbfc8d0ad3b59e94c
from data.Category import Category class Root(Category): """description of class""" instance = None def __init__(self, args, name="Root", depth=-1): super().__init__(args.path, name, depth) global instance instance = self self.args = args def accept(self, visitor): ...
Sildra/PyTester
PyTester/data/Root.py
Python
apache-2.0
660
[ "VisIt" ]
74e8f87252ca6a7a0a1e3d4de2c621f197b7e4b595209de34431a3e3ccb16506
import warnings warnings.simplefilter('always', DeprecationWarning) import os import itertools import functools import os.path import re import urllib import urllib2 import imp import tabulate from connection import H2OConnection from job import H2OJob from expr import ExprNode from frame import H2OFrame, _py_tmp_key, ...
brightchen/h2o-3
h2o-py/h2o/h2o.py
Python
apache-2.0
78,121
[ "Gaussian" ]
f1b19367bb870386047e7f5da403a86f1cd9e954ea9c1234ab3bd533b0a94972
class BrowserHistory: def __init__(self, homepage: str): self.history = [homepage] self.future = [] def visit(self, url: str) -> None: self.history.append(url) self.future.clear() def back(self, steps: int) -> str: while steps > 0 and len(self.his...
jiadaizhao/LeetCode
1401-1500/1472-Design Browser History/1472-Design Browser History.py
Python
mit
817
[ "VisIt" ]
4b5f47ba2be73d8b0caf1d76ad05b159a8bb931a0ea914e6f071109661e737f1
#!/usr/bin/env python ##print __name__ import optparse import os usage_line = """ read_mapping.py Version 1.0 (8 September, 2014) License: GNU GPLv2 To report bugs or errors, please contact Daren Card (dcard@uta.edu). This script is provided as-is, with no support and no guarantee of proper or desirable functioning...
darencard/RADpipe
read_mapping.py
Python
gpl-2.0
16,032
[ "BWA" ]
5751e0be44bf7779cba133bf3f251e00c0d59be9ca16aaa7ce675390d0558632
""" SDSS Galaxy Colors ------------------ The function :func:`fetch_sdss_galaxy_colors` used below actually queries the SDSS CASjobs server for the colors of the 50,000 galaxies. Below we extract the :math:`u - g` and :math:`g - r` colors for 5000 stars, and scatter-plot the results """ # Author: Jake VanderPlas <vand...
eramirem/astroML
examples/datasets/plot_sdss_galaxy_colors.py
Python
bsd-2-clause
1,300
[ "Galaxy" ]
29484706a883c6a24faaa51ea928a7bd51df85fd0fcbc80f918ad4dadc2b3dd3
#!/usr/local/anaconda/bin/python ''' A tool to calculate the fluxes from DSMACC D.Ellis 2016 ''' #functions global specs,reactants xlen = lambda x: xrange(len(x)) import numpy as np import pandas as pd import sys,os,re,multiprocessing,netCDF4 from netCDF4 import Dataset import matplotlib.pyplot as plt #netcdf fil...
wolfiex/RopaJL
treecluster/tree/ropa_tool.py
Python
mit
5,867
[ "NetCDF" ]
9579e6c55490f66f69c74959023434b5ea631e338b4c2ca8966efa1eacb5d9df
""" bct slope v0.01 - implements an alternative market classification algo Bitcoin Trade Simulator Copyright 2011 Brian Monkaba This file is part of ga-bitbot. ga-bitbot is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre...
stahn/ga-bitbot
bct_slope.py
Python
gpl-3.0
38,814
[ "Brian" ]
bd8f4290dbf1356411eca6614f6a73d28a946e156a24d1e2a7569565d8f865dc
"""Priority based json library imports. Use jsonapi.loads() and jsonapi.dumps() for guaranteed symmetry. Priority: simplejson > jsonlib2 > json Always serializes to bytes instead of unicode for zeromq compatibility. jsonapi.loads/dumps provide kwarg-compatibility with stdlib json. To override pyzmq's choice of jso...
IsCoolEntertainment/debpkg_python-pyzmq
zmq/utils/jsonapi.py
Python
lgpl-3.0
2,407
[ "Brian" ]
b8ab9da21e72206fd4427e5d04d5fb9176ff5da5717549d204476234753961e8
import os import unittest import pysal import numpy as np class Testuser(unittest.TestCase): def setUp(self): self.wq = pysal.queen_from_shapefile( pysal.examples.get_path("columbus.shp")) self.wr = pysal.rook_from_shapefile( pysal.examples.get_path("columbus.shp")) de...
spreg-git/pysal
pysal/weights/tests/test_user.py
Python
bsd-3-clause
7,649
[ "COLUMBUS", "Gaussian" ]
53b0beb2fcb0bf920fd52c6dbc42e11677ef308181bafca53dd3ddc55681ffa6
from sys import exit from random import randint class Scene(object): def enter(self): print "this scene is not yet configured. Subclass it and implement enter()." exit(1) class Engine(object): def __init__(self, scene_map): self.scene_map = scene_map def play(self): cu...
githubfun/lphw
ex43.py
Python
mit
8,745
[ "BLAST" ]
600b548df35aa24b4b9fe773bfe9fd8fad5f869de7f4eb9d6ccd92610385ac8c
#*********************************************************************** # This code is part of pyCMPL # # Copyright (C) 2013 - 2016 # Mike Steglich - Technical University of Applied Sciences # Wildau, Germany # # pyCMPL is a project of the Technical University of # Applied Sciences Wildau and the Inst...
Mangara/ArboralExplorer
lib/Cmpl/pyCmpl/lib/pyCmpl/Cmpl.py
Python
apache-2.0
51,709
[ "VisIt" ]
33692fc37f056eaef6abf4dcb0e1555e928034b4d3307d5d4b8d7ccb1de96d6d
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/google-research
frechet_audio_distance/fad_utils.py
Python
apache-2.0
4,951
[ "Gaussian" ]
78e4cc9cb4d4e32288037472ca2d8e28cefc5f5cc623e80f5d6c4208c9334199
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either...
fredericlepied/ansible
lib/ansible/executor/module_common.py
Python
gpl-3.0
40,167
[ "VisIt" ]
2415e5007ff2e63078bee713772eacd0b9e4b303e054f518259e9194f8c7d2a9