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
""" Cards used in the Tutorial missions """ from ..utils import * ## # Hero Powers class TU4d_003: """Shotgun Blast""" requirements = {PlayReq.REQ_ENEMY_TARGET: 0, PlayReq.REQ_TARGET_TO_PLAY: 0} activate = Hit(TARGET, 1) class TU4e_002: """Flames of Azzinoth""" requirements = {PlayReq.REQ_NUM_MINION_SLOTS: 2}...
jleclanche/fireplace
fireplace/cards/tutorial/all.py
Python
agpl-3.0
1,753
[ "BLAST" ]
456d4fbfab7dc1e9207baf3f4d9fd52a90d0e9bb07836f9cbdf53ed9ca3e8d1e
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
GoogleCloudPlatform/python-docs-samples
composer/workflows/kubernetes_pod_operator.py
Python
apache-2.0
12,464
[ "VisIt" ]
7638f8823a7032fe9950a78ce8b419840ec2bef74bd9a911e5fa1c4e4d5379bb
model = """ # Generated by PySCeS 0.7.2 (2010-08-10 13:12) # Keywords Description: Dimerisation model (003), variant 03 Modelname: Dimerisation03 Output_In_Conc: True Species_In_Conc: False # GlobalUnitDefinitions UnitVolume: litre, 1.0, 0, 1 UnitLength: metre, 1.0, 0, 1 UnitSubstance: item, 1.0, 0, 1 UnitArea: met...
SystemsBioinformatics/stochpy
stochpy/pscmodels/dsmts_003_03.py
Python
gpl-3.0
3,789
[ "PySCeS" ]
b2de2db28ff3ba0a76a284aa1a31da816303db2b71d6afb80b55d31f29fcfdf2
""" Define common steps for instructor dashboard acceptance tests. """ # pylint: disable=C0111 # pylint: disable=W0621 from __future__ import absolute_import from django.conf import settings from lettuce import world, step from mock import patch from nose.tools import assert_in # pylint: disable=E0611 from coursew...
hkawasaki/kawasaki-aio8-1
lms/djangoapps/instructor/features/common.py
Python
agpl-3.0
4,568
[ "VisIt" ]
4a4b22ac51858a05b5c0ea9ebfe3c1abf78d15162cd4e53311afe9920eeff918
# connect to registration table # search entries with status "job_launched" or "job_running" # check the job slurm-status, e.g., scontrol show jobid 5037088 # 1. Invalid job id specified: means the job is off queue # 1.1 check job folder if input.log file is there # Yes: job already finished # No: job is abor...
KEHANG/autoQM
autoqm/checker.py
Python
mit
4,808
[ "Gaussian", "Pybel" ]
31952fac34d929b9ee511568e2587da8e09b1a890a1277d2d1c3cbe980a40a67
""" tests for Graph OperationHandlerBase module """ import unittest # # SUT from DIRAC.RequestManagementSystem.private.OperationHandlerBase import DynamicProps class DynamicPropTests(unittest.TestCase): """ .. class:: DynamicPropTests """ def testDynamicProps(self): """test dynamic props"""...
DIRACGrid/DIRAC
src/DIRAC/RequestManagementSystem/private/test/Test_OperationHandlerBase.py
Python
gpl-3.0
1,746
[ "DIRAC" ]
71b4d1dcd853fbade80d36e9edf4e9b1b2248fd00fbc054359572126ee4f96c3
""" Get information about the network. In this case, we are interested in a small set of neurons. We go through each of the neurons and get connectivity information about each connection it has with another cell. This type of script could be useful for visualizing data, generating reports, or any number programmatic ...
openworm/PyOpenWorm
examples/NetworkInfo.py
Python
mit
3,784
[ "NEURON" ]
d9a45e41261fd5d3ec93fd7dec0372482c68de06c74095c990c1f975bf799fc8
import functools import inspect import itertools import sys import warnings from collections import defaultdict from collections import deque from collections import OrderedDict import attr import py import _pytest from _pytest import nodes from _pytest._code.code import FormattedExcinfo from _pytest._code.code impor...
ekwoodrich/python-dvrip
env/lib/python3.5/site-packages/_pytest/fixtures.py
Python
mit
51,298
[ "VisIt" ]
38af2b8326ee9cfa1dd721351209e995ce35572c74d2a02c80286a49fa5e260d
""" Set of common passwords """ from __future__ import (absolute_import, division, print_function, unicode_literals) try: from builtins import * # pylint: disable=unused-wildcard-import,redefined-builtin,wildcard-import except ImportError: import sys print("WARNING: Cannot Load builtins for py3 compatibili...
rgant/saas-api-boilerplate
common/common_passwords.py
Python
gpl-3.0
13,627
[ "Brian", "CRYSTAL", "Jaguar", "TINKER" ]
b713e9b65c294a4dcf311793510a6fa6e9c64e38a68f12d799c1763804d3c7ac
# -*- coding: utf-8 -*- # Copyright (C) 2016 Fabio Falcinelli, Maximilian Hils # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
ffalcinelli/pydivert
pydivert/windivert.py
Python
lgpl-3.0
9,345
[ "VisIt" ]
657a3a3467a34951e18726bfa422be38030ad993e9f33ae1a9d2dfbf36598891
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. '''Unit tests for grd_reader package''' import os import sys if __name__ == '__main__': sys.path.append(os.path.join(os.path.dir...
JoKaWare/GViews
tools/grit/grit/grd_reader_unittest.py
Python
bsd-3-clause
10,420
[ "xTB" ]
08d2fa32546c2da2b100a0576f7bbe99e0e454592ed2fa47764f4ff8599273d1
#!/usr/bin/env python3 import numpy as np from LoLIM.main_plotter import * from LoLIM.interferometry import read_interferometric_PSE as R_IPSE from LoLIM import read_LMA as LMA ## these lines are anachronistic and should be fixed at some point from LoLIM import utilities utilities.default_raw_data_loc = "/home/brian...
Bhare8972/LOFAR-LIM
LIM_scripts/examples/run_main_plotter.py
Python
mit
4,052
[ "Brian" ]
da46bc8167b40ffa1e4821d9cb9778cab3929fb106d47c8b1ae88b6c10c77db3
# modified mexican hat wavelet test.py # spectral analysis for RADAR and WRF patterns # NO plotting - just saving the results: LOG-response spectra for each sigma and max-LOG response numerical spectra import os, shutil import time import pickle import numpy as np from scipy import signal, ndimage import matplo...
yaukwankiu/armor
tests/modifiedMexicanHatTest14.py
Python
cc0-1.0
6,084
[ "Gaussian" ]
73541629676bb18fc7737b243c804ae8105d502236d00f98fb50593b46916dae
from __future__ import annotations import copy import os import pytest from .test_scan_static_reflection_predictor import ( # noqa: F401, used as test fixture; isort:skip data as static_test, ) class Data: def __init__(self, dials_regression): path = os.path.join( dials_regression, ...
dials/dials
tests/algorithms/spot_prediction/test_scan_varying_reflection_predictor.py
Python
bsd-3-clause
10,967
[ "CRYSTAL" ]
815f2a3f197c3b1c2e3213a115cee5ba5c4c781875d2a6971a12b85bcf4b8261
#!/usr/bin/env pvbatch try: paraview.simple except: from paraview.simple import * import pviz import sys if __name__== '__vtkconsole__' : oviz=iviz() # for interactive sessions only else: oviz = pviz.viz(sys.argv) # Instantiate a new visualisation isocontour=FindSource('isoqcrit') # Find the part named isoqcrit in s...
ruizanthony/pviz
examples/advanced/restoreStateChangeIsoValueQcrit_bulletTime.py
Python
lgpl-3.0
1,074
[ "ParaView" ]
77df62a1d40b1a96a65b4ddac686deb3e04d2815f7d98cb5f95182fa0f684033
from collections import deque, defaultdict import itertools from boltons.iterutils import chunked from cycler import cycler import numpy as np from .run_engine import Msg from .utils import Struct, snake_cyclers, Subs class ScanBase(Struct): """ This is a base class for writing reusable scans. It provide...
dchabot/bluesky
bluesky/scans.py
Python
bsd-3-clause
28,981
[ "Gaussian" ]
48cd05a95de162ad51db1b141973b20c766099f46183f475dfdfd3380857954c
# pylint: disable=C0111 # pylint: disable=W0621 import os from lettuce import world, step from nose.tools import assert_true, assert_in # pylint: disable=no-name-in-module from django.conf import settings from student.roles import CourseStaffRole, CourseInstructorRole, GlobalStaff from student.models import get_user...
nicky-ji/edx-nicky
cms/djangoapps/contentstore/features/common.py
Python
agpl-3.0
11,918
[ "VisIt" ]
861496a78d589f0f9b6ed381ddfdd1347ddcf5232f7feeaeb4dd36c0e1204ec3
""" Base class for tests with enrollment capability """ import datetime from bok_choy.promise import EmptyPromise from regression.pages.whitelabel.basket_page import CyberSourcePage, MultiSeatBasketPage, SingleSeatBasketPage from regression.pages.whitelabel.const import BILLING_INFO, CARD_HOLDER_INFO, PASSWORD from ...
edx/edx-e2e-tests
regression/tests/whitelabel/course_enrollment_test.py
Python
agpl-3.0
8,195
[ "VisIt" ]
c5f43eac7065ebc9be4bcfe351d10b41d478a6cba98a4cea267566b94819124e
################################################################################ # # Copyright (C) 2012-2013 Eric Conte, Benjamin Fuks # The MadAnalysis development team, email: <ma5team@iphc.cnrs.fr> # # This file is part of MadAnalysis 5. # Official website: <https://launchpad.net/madanalysis5> # # MadAnal...
Lana-B/Pheno4T
madanalysis/core/launcher.py
Python
gpl-3.0
12,513
[ "VisIt" ]
45b6fa6c081d65e3ddf70bcf8b9274a06c3f7cd030f0b9c68f452d56f9c34bc2
import struct import os from shapely.geometry import Point, Polygon, LineString class TIN(object): def __init__(self, tin_path): self.path = tin_path # Required files self.tnxy = os.path.join(self.path, 'tnxy.adf') self.tnz = os.path.join(self.path, 'tnz.adf') self.tnod =...
SouthForkResearch/CHaMP_Metrics
lib/tin.py
Python
gpl-3.0
16,487
[ "ADF" ]
80ea3baa63fbb8cf5c0c73c54346bcdc5fe099b879442c4078a3c41872d2005e
# Copyright 2008-2009 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. # # This module is for reading and writing IntelliGenetics format files as # SeqRecord object...
NirBenTalLab/proorigami-cde-package
cde-root/usr/lib64/python2.4/site-packages/Bio/SeqIO/IgIO.py
Python
mit
3,665
[ "Biopython" ]
e920db8745830b3f566f1bdcb23142c2e07fbfe3d2b30f080b6b9c8aaa9b7086
# Copyright 2018 The TensorFlow Probability 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 applicable law o...
tensorflow/probability
tensorflow_probability/python/math/psd_kernels/exp_sin_squared.py
Python
apache-2.0
6,423
[ "Gaussian" ]
9e2a60b09436491a2d59a80bc9d812b449e7d11a0913776b7272fcaa2af29d5e
# Methods to restore the database after the migration. applied by Rick. import sys import pickle import simplejson import xlrd from db_functions.pubmed_functions import add_single_article_full from article_text_mining.full_text_pipeline import add_multiple_full_texts_all, ephys_table_identify from article_text_min...
lessc0de/neuroelectro_org
dbrestore.py
Python
gpl-2.0
20,583
[ "NEURON" ]
f9c029e93291f8b5d60ff1cfc95a8fe22ad8ffb3e2be6140dce86a3432369d7d
# vi: ts=8 sts=4 sw=4 et # # form.py: base class for Draco forms # # This file is part of Draco2. Draco2 is free software and is made available # under the MIT license. Consult the file "LICENSE" that is distributed # together with this file for the exact licensing terms. # # Draco2 is copyright (c) 1999-2007 by the Dr...
geertj/draco2
draco2/form/form.py
Python
mit
2,567
[ "VisIt" ]
77e3d1cda859ff3dc5f1acb307acd51d92155d9dc05e8a7ab3f24c0dc3cedd0e
# Example in which a cube is used to define an implicit function (through vtkImplicitDataSet) # which is then used to clip a sphere import vtk sphere = vtk.vtkSphereSource() sphere.SetCenter(1, 1, 1) sphere.SetRadius(1) sphere.Update() cube = vtk.vtkCubeSource() cube.SetBounds(-1, 1, -1, 1, -1, 1) cube.Update() # C...
lorensen/VTKExamples
src/Python/ImplicitFunctions/ImplicitDataSet.py
Python
apache-2.0
1,545
[ "VTK" ]
0efffa8c6acb23e144918a6710755d5fef5a4dd504628ac41f8e47ea4151aed8
#!/usr/bin/env python3 # This script takes the game name as parameter and returns the GOG Galaxy game id # Return with exit code 127 if no game was found for the given title # Return with exit code 1 if there are multiple games for the given name # Return with exit code 0 if there is exactly one match found import re...
vanfanel/scummvm
devtools/gog_gameid.py
Python
gpl-2.0
2,082
[ "Galaxy" ]
1fa9c149c85a876c379304e4c2015ce41e3975caed2e57b7bba99f9a4e606ff7
from django.conf.urls import patterns, include, url from tracking.views import * urlpatterns = patterns( '', url(r'^logout/$',LogoutView.as_view(), name="logout"), url(r'^home/$', IndexView.as_view(), name="index"), url(r'^add/organization/$', OrganizationView.as_view(), name="add-organization"), ...
Heteroskedastic/Dr-referral-tracker
tracking/urls.py
Python
mit
2,078
[ "VisIt" ]
0046ac58af880d74cbb3b663c0bc99ff412d2fc20c9f9f1241e218cc4985798c
#!/usr/bin/env python ################################################################################ # bitly.py # pyanalysis # # Created by Brian Baughman on 10/26/11. # Copyright 2011 Brian Baughman. All rights reserved. ################################################################################ from os imp...
bbaugh/gcn-parser
bitly.py
Python
gpl-2.0
1,417
[ "Brian" ]
7377ecdc6bd37800e59b37c4d61493fdc9acca415ec88471ade742d3fe0850b3
from shyft import api from netcdftime import utime import numpy as np """ These are the current supported regular time-step intervals """ delta_t_dic = {'days': api.deltahours(24), 'hours': api.deltahours(1), 'minutes': api.deltaminutes(1), 'seconds': api.Calendar.SECOND} def convert_netcdf_time(time_...
felixmatt/shyft
shyft/repository/netcdf/time_conversion.py
Python
lgpl-3.0
1,170
[ "NetCDF" ]
39ffdf28047787fe31ed4f24119c826871b482adee152aa986767b8d3108f7d0
""" ============================== Probability Calibration curves ============================== When performing classification one often wants to predict not only the class label, but also the associated probability. This probability gives some kind of confidence on the prediction. This example demonstrates how to di...
glemaitre/scikit-learn
examples/calibration/plot_calibration_curve.py
Python
bsd-3-clause
5,902
[ "Gaussian" ]
786b6674558cca9f0812007b7dbc11788cf95b588d61848caa81a36de4c1d84b
# -*- coding: utf-8 -*- import emoji import os import sys import random import getpass import difflib import subprocess import webbrowser import pkgtools.pypi as pp import github from travispy import TravisPy from time import sleep # from cookiecutter.main import generate_context, generate_files import keyring im...
takluyver/Love
love/love.py
Python
mit
11,720
[ "VisIt" ]
076bcdab850acb3f607e429f4146508b7f1918ab088b7ed1e341968e5f4afbd3
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ####################### # v0.1 2 march 2017 ####################### import glob import os # numpy # import numpy # improved system calls import random # def get_uniform(min, max): # return numpy.random # .uniform(min, max) ############## # constants ##############...
fgr1986/vlsi_memristor_compact_model
spectre/bipolar_aSiCCuTiN/experiment_advanced_variability_degradation/generate_variability.py
Python
gpl-3.0
1,653
[ "Gaussian" ]
6b5932f6a957b5d07de39564460cfcb049c85bd23d60822ceadd4636890cae3a
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the G...
govarguz/espressopp
src/analysis/MeanSquareDispl.py
Python
gpl-3.0
2,580
[ "ESPResSo" ]
cd46d531ac72a312a894fd345417d673e237fe0bbfcdaa65c0e142be8079a640
# # GMSK modulation and demodulation. # # # Copyright 2005-2007,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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 v...
analogdevicesinc/gnuradio
gr-digital/python/digital/gmsk.py
Python
gpl-3.0
10,987
[ "Gaussian" ]
159e62205229f8c3b2753295112ee109951c77ad5259998c000acbe496f891f3
# 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 PyPyani(PythonPackage): """pyani is a Python3 module that provides support for calculating...
iulian787/spack
var/spack/repos/builtin/packages/py-pyani/package.py
Python
lgpl-2.1
1,473
[ "BLAST", "Biopython" ]
a254b4c39eaf58fe49f83cad0c0b62d9a0cc8c7fd8ce405ec114e6e146c95151
# Copyright (C) 2003-2005 Peter J. Verveer # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following d...
scipy/scipy-svn
scipy/ndimage/filters.py
Python
bsd-3-clause
39,251
[ "Gaussian" ]
46958175c426f9c0d96e9cdf1a139f15690ddf2d6bb1d7aac4465217bebed5be
#!/usr/bin/env python # encoding: utf-8 """A regular SOM.""" from collections import UserList from .som import normalize from .som import SOM, Topology, Node from itertools import chain, islice from random import choice from math import exp import numpy as np import matplotlib.pyplot as plt class BasicSOM(SOM): ...
Procrat/som
som/basic_som.py
Python
mit
8,023
[ "Gaussian" ]
72a8cc866d1dd8e505fd614316fc1fbd087c318d98e3b9786927171c2f2afdec
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import os import pytest from django.core.urlresolvers import reve...
suutari/shoop
shuup_tests/browser/admin/test_product_create.py
Python
agpl-3.0
2,339
[ "VisIt" ]
12c48149d285b4b55dd00340f957f978dd2edde216881ad0bab597f3479afc13
# -*- coding: utf-8 -*- # 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 o...
googleapis/python-vision
scripts/fixup_vision_v1p3beta1_keywords.py
Python
apache-2.0
6,991
[ "VisIt" ]
11e97dbc3b1cdb3b6ed9c9faa31e676cc44cecd8c0148dbb7a3cc6b35fdec15b
""" Tags Controller: handles tagging/untagging of entities and provides autocomplete support. """ from galaxy.model import History, HistoryTagAssociation, Dataset, DatasetTagAssociation, \ HistoryDatasetAssociation, HistoryDatasetAssociationTagAssociation, Page, PageTagAssociation from galaxy.web.base.controller i...
volpino/Yeps-EURAC
lib/galaxy/web/controllers/tag.py
Python
mit
10,704
[ "Galaxy" ]
8c601862f18e07190deb645d8fd3888979e392ba29eb0f8aacb1d5059081e396
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from pymatgen.analysis.chemenv.utils.scripts_utils import strategies_class_lookup from os.path import expanduser, exists from os import makedirs import json from pymatgen import SETTINGS """ This module conta...
gVallverdu/pymatgen
pymatgen/analysis/chemenv/utils/chemenv_config.py
Python
mit
7,142
[ "pymatgen" ]
5569654a97ab528624d41f5ea257a51a85a9158764c4662344c17cc7892ed010
# #-*- coding:utf-8 -*- """ Gentoo-keys - action_map.py Primary api interface module data @copyright: 2015 by Brian Dolbec <dol-sen@gentoo.org> @license: GNU GPL2, see COPYING for details. """ from collections import OrderedDict Seed_Actions = ['----seeds----', 'add-seed', 'fetch-seed', 'upda...
gentoo/gentoo-keys
gkeys/gkeys/action_map.py
Python
gpl-2.0
16,565
[ "Brian" ]
241f83d43a6dfe33493acbe7df5d37b91ce6921b7616912db2f36b6a8cb7c8f1
# coding=utf-8 """ The end developer will do most of their work with the PayPalInterface class found in this module. Configuration, querying, and manipulation can all be done with it. """ import types import logging from pprint import pformat import warnings import requests from paypal.settings import PayPalConfig f...
KabbageInc/paypal-python
paypal/interface.py
Python
apache-2.0
20,021
[ "VisIt" ]
7d1f57289af798988d741c2fa8ab03e3471989daca8aea0b7842b57b882821a7
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## 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 Foundati...
andrebellafronte/stoq
stoqlib/gui/test/test_serviceitemeditor.py
Python
gpl-2.0
1,234
[ "VisIt" ]
1d818bdc0fc92f7e61cdea40587a2ca40fd5e86c78cda9b511f2b75d7ddd8312
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
src/typecode/magic2.py
Python
apache-2.0
8,769
[ "VisIt" ]
aaeb6c1431b070064aa940093b6b88a064546dbdeecec7a64b4c80ac9474c3ad
# # tsne.py # # Implementation of t-SNE in Python. The implementation was tested on Python 2.5.1, and it requires a working # installation of NumPy. The implementation comes with an example on the MNIST dataset. In order to plot the # results of this example, a working installation of matplotlib is required. # The ...
masoodking/LinkPrediction
SME/tsne_python-old/tsne.py
Python
bsd-3-clause
6,654
[ "Gaussian" ]
972f0181a5c093c3a565f7cdbf0c95fd93d57fe085314e61d4f11cebd177de7e
#!/usr/bin/env python # -*- coding: utf-8 -*- """Views tests for the OSF.""" from __future__ import absolute_import import datetime as dt import httplib as http import json import math import time import unittest import mock from nose.tools import * # noqa PEP8 asserts from modularodm import Q from modularodm.exce...
kch8qx/osf.io
tests/test_views.py
Python
apache-2.0
176,699
[ "Brian" ]
3d9acec5b705242754a48e3f9c6a81551d7b23f2f314398d0a1e1f8cc3c57203
from __future__ import absolute_import, division, print_function from jaspyx.visitor import BaseVisitor class FuncIsinstance(BaseVisitor): def func_isinstance(self, obj, type_): self.output('(') self.visit(obj) self.output(' instanceof ') self.visit(type_) self.output(')')
ztane/jaspyx
jaspyx/visitor/func_isinstance.py
Python
mit
320
[ "VisIt" ]
598400d33ccb4996d85106d401491d53b7d6fcd57cf6031d5628d9d9c2db8167
""" Utilities for dealing with correlated inputs.""" from equadratures.parameter import Parameter from equadratures.poly import Poly, evaluate_model, evaluate_model_gradients from equadratures.basis import Basis import numpy as np from scipy import stats from scipy.stats import multivariate_normal, norm from scipy.lina...
Effective-Quadratures/Effective-Quadratures
equadratures/correlations.py
Python
lgpl-2.1
11,100
[ "Gaussian" ]
0b18a092b1135b85a9a2257faef34139f290c76b45aee99bb27b3e52c0499a33
""" coreblog3 ================== coreblog3 is a blog hosting software developed at the top of Aha framework, which is a framework made specially for Google App Engine. Here are some quick instruction to get started with coreblog3 and make your own blog site on Google App Engine. For more details, visit our website :-)...
Letractively/aha-gae
applications/aha.application.coreblog3/setup.py
Python
bsd-3-clause
2,712
[ "VisIt" ]
b6bf1cfc82151065b060b5e003f3add093028a88c3a677a516f3af7667afca49
""" Do the initial configuration of a DIRAC component """ from __future__ import print_function __RCSID__ = "$Id$" from DIRAC import gConfig from DIRAC import exit as DIRACexit from DIRAC.ConfigurationSystem.Client.Helpers import getCSExtensions from DIRAC.FrameworkSystem.Client.ComponentInstaller import gComponentIn...
petricm/DIRAC
tests/Jenkins/dirac-cfg-add-option.py
Python
gpl-3.0
1,464
[ "DIRAC" ]
212686903f1ee74fefa26f168286ee47effd0889189f64d0686fd55989d7ad53
""" Code for "Generative Adversarial Networks". Please cite the ArXiv paper in any published research work making use of this code. """ import functools wraps = functools.wraps import itertools import numpy np = numpy import theano import warnings from theano.compat import OrderedDict from theano.sandbox.rng_mrg impor...
hans/adversarial
__init__.py
Python
bsd-3-clause
37,595
[ "Gaussian" ]
acf0f2aed3e6a3951087974dfb184703ce65ea5a70e5208c333e33d70a28e699
from ...cfg.cfg_utils import CFGUtils from .graph import GraphVisitor class LoopVisitor(GraphVisitor): """ :param angr.analyses.loopfinder.Loop loop: The loop to visit. """ def __init__(self, loop): super(LoopVisitor, self).__init__() self.loop = loop self.reset() def suc...
angr/angr
angr/analyses/forward_analysis/visitors/loop.py
Python
bsd-2-clause
725
[ "VisIt" ]
c097b226fe6929a01bd747b081e008f837d59102fe1dc081e623e26906045673
#!/usr/bin/env python import argparse import multiprocessing import os import queue import re import shutil import pandas import pysam from Bio import SeqIO INPUT_BAM_DIR = 'input_bam_dir' INPUT_VCF_DIR = 'input_vcf_dir' OUTPUT_VCF_DIR = 'output_vcf_dir' OUTPUT_METRICS_DIR = 'output_metrics_dir' def get_base_file_...
lparsons/tools-iuc
tools/vsnp/vsnp_add_zero_coverage.py
Python
mit
8,655
[ "pysam" ]
697719447017fff1435930dc687765ba338d3c4ac484a39e9d65811b1a48f46e
# Copyright (C) 2012 Alex Nitz, Tito Dal Canton # # # 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 Foundation; either version 3 of the License, or (at your # option) any later version. # # This program is...
bema-ligo/pycbc
pycbc/inject/inject.py
Python
gpl-3.0
15,995
[ "Gaussian" ]
557678746c313fafc581253b6471405ae7465453e1a4f6aa4117a11e6abbf58b
# Orca # # Copyright 2005-2008 Sun Microsystems Inc. # # This 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 the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/scripts/apps/gtk-window-decorator/script.py
Python
gpl-3.0
4,328
[ "ORCA" ]
49e2ada0ec0b393af51cab82883a1dbf323f0584569d21e36e3ce76c1069a7e7
# Copyright (c) 2010 OpenStack, 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 wr...
Intel-bigdata/swift
test/unit/common/middleware/test_staticweb.py
Python
apache-2.0
23,940
[ "VisIt" ]
8eb9391ebc0fc53026c84e65a538108fd7c2699514fe6a8775d2350cb40712c6
# SPDX-License-Identifier: Apache-2.0 # Copyright Contributors to the Rez Project """ Implements a well defined versioning schema. There are three class types - VersionToken, Version and VersionRange. A Version is a set of zero or more VersionTokens, separate by '.'s or '-'s (eg "1.2-3"). A VersionToken is a string ...
instinct-vfx/rez
src/rez/vendor/version/version.py
Python
apache-2.0
50,578
[ "VisIt" ]
708d633806b480018ffd2a8c861b35202064da77068dfd964d3cdd4603374abf
id2salary = { 0: 1000.0, 3: 990, 1: 1200.50 } names = ["Larry", "Curly", "", "Moe"] print {x: id2salary[i] for (x, i) in zip(names, range(len(names))) if i in id2salary}
darobin/notes
ctm/pytasks/0.5.26.py
Python
mit
173
[ "MOE" ]
a7db2e5e22060cbb8afcb3f080619e49fddf0c472d4aeef10436393ea539525b
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
mfherbst/spack
var/spack/repos/builtin/packages/r-phyloseq/package.py
Python
lgpl-2.1
2,512
[ "Bioconductor" ]
1c5d18ff66940ad3e3e835eb60ef42785f5bde70a113a1e34d1f9e01236f7e17
#!/usr/bin/env python import os from ase import Atoms from ase.calculators.dftb import Dftb from ase.optimize import QuasiNewton from ase.io import write d = 1.10 test = Atoms('2O', positions=[(0., 0., 0.), (0., 0., d)]) test.set_pbc([False, False, False]) test.set_calculator(Dftb(label='o2',write_dftb=True,do_spin_...
conwayje/ase-python
doc/ase/calculators/dftb_ex1_relax.py
Python
gpl-2.0
493
[ "ASE" ]
842900d4dd84b28fc850bdd56c44806f2a0de917e514a0ff8ae1508df7e9c86a
import csv import itertools import json import re import sys import threading import time import traceback as tb from datetime import datetime as dt import jsonpickle import psutil import requests from colorker.service import bigquery, drive, fusiontables, gee from colorker.utils import caught, deep_update from django...
jkachika/columbus
pyedf/views.py
Python
mit
81,529
[ "COLUMBUS" ]
ce5fc5e661c46cc84b8bcf89c6f7bd92bcba5300481965e26afdf5a6d48350a1
import io import os import threading import unittest import urllib.robotparser from test import support from http.server import BaseHTTPRequestHandler, HTTPServer class BaseRobotTest: robots_txt = '' agent = 'test_robotparser' good = [] bad = [] def setUp(self): lines = io.StringIO(self.r...
FFMG/myoddweb.piger
monitor/api/python/Python-3.7.2/Lib/test/test_robotparser.py
Python
gpl-2.0
10,218
[ "Brian" ]
c6dfb9c3a06bc8741679c7ff2d0d2494d8b68f83b0e3c5e8168e1f7c293836ad
import numpy as np from ase.structure import bulk from gpaw import FermiDirac, MethfesselPaxton, MixerSum from gpaw.utilities.bulk2 import GPAWRunner strains = np.linspace(0.98, 1.02, 9) a0 = 2.84 atoms = bulk('Fe', 'bcc', a0) atoms.set_initial_magnetic_moments([2.3]) def f(name, dist, k, g): tag = '%s-%02d-%2d' %...
qsnake/gpaw
doc/tutorials/lattice_constants/iron.py
Python
gpl-3.0
866
[ "ASE", "GPAW" ]
8f32674bb0d09b4819257226cedc6659e954471f487768160b6d962dfe59063e
from django.core.urlresolvers import reverse from karaage.tests.unit import UnitTestCase from karaage.projects.models import Project from fixtures import (PersonFactory, AccountFactory, ProjectQuotaFactory, ProjectRenamedFactory) class ProjectRenameTestCase(UnitTestCase): def test_project_...
NeCTAR-RC/karaage-user
kguser/tests/test_project_rename.py
Python
gpl-3.0
4,591
[ "VisIt" ]
a44db914b96a5085b09433c5512c5721634df1c75707a9f7db55db92fa6fc1fa
# -*- coding: utf-8 -*- """Functions for FIR filter design.""" from __future__ import division, print_function, absolute_import from math import ceil, log import operator import warnings import numpy as np from numpy.fft import irfft, fft, ifft from scipy.special import sinc from scipy.linalg import (toeplitz, hankel...
jamestwebber/scipy
scipy/signal/fir_filter_design.py
Python
bsd-3-clause
47,921
[ "Brian" ]
1d3e68549299579d9186b2be77002fcd912966d3490ac9f6ff3582ce0ebd3007
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pymatgen.analysis.interfaces.coherent_interfaces import ( CoherentInterfaceBuilder, from_2d_to_3d, get_2d_transform, get_rot_3d_for_2d, ) from pymatgen.symmetry.analyzer import Spacegroup...
materialsproject/pymatgen
pymatgen/analysis/interfaces/tests/test_coherent_interface.py
Python
mit
1,979
[ "pymatgen" ]
39fd5f4d80b761bf0203c1c1ebfe4a40761a833742461e796fb20282ed9ddc2b
import os, sys import unittest from trex import CTRexScenario from stateful_tests.trex_general_test import CTRexGeneral_Test from trex_stl_lib.api import * import time from nose.tools import nottest class CStlGeneral_Test(CTRexGeneral_Test): """This class defines the general stateless testcase of the TRex traffic ...
dimagol/trex-core
scripts/automation/regression/stateless_tests/stl_general_test.py
Python
apache-2.0
5,428
[ "Elk" ]
8131f49a37b9bdc0dedcc9e591fbd86dc17241673e5ab2080c4a394676f3b8ed
import logging from collections import defaultdict from slimit.parser import Parser from ..constants import * from ..parse.models import APINode from ..parse.models import AstNode from ..parse.models import CorpusNode from ..processing.normalize import Normalizer def js_parse(src): """ Parses snippets :p...
LudditeLabs/query-reform
reform/parse/javascriptcorpus.py
Python
apache-2.0
4,668
[ "VisIt" ]
390b5dfb25a5a497dbd901e4e4a35e8f697f18455082f6a96ef077f02060439f
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/mooseutils/tests/test_yaml_load.py
Python
lgpl-2.1
1,788
[ "MOOSE" ]
81780fd37d58f936de156ea199321c5342bc72c85a43507fde88347d44e45cce
""" Decorators for DIRAC. """ from __future__ import print_function import os import inspect import functools import traceback __RCSID__ = "$Id$" def deprecated(reason, onlyOnce=False): """ A decorator to mark a class or function as deprecated. This will cause a warnings to be generated in the usual log if...
chaen/DIRAC
Core/Utilities/Decorators.py
Python
gpl-3.0
6,211
[ "DIRAC" ]
4012ee5cd076a90a7f13626ab08e1c0abd89897f2e58fe754d01492ae70c2581
# -*- coding: utf-8 -*- # This is moose.server. # It accepts simulation request on a specified TCP port (default 31417). # It simulates the given file (usually a archive file e.g., tar.bz2) and sends # back artefacts generated by simulation (mostly images); and streams data from # moose.Tables back to client. __autho...
dilawar/moose-core
python/moose/server.py
Python
gpl-3.0
12,836
[ "MOOSE" ]
d4a16479b1285d2a75f4969772a11de78aa06bf844f40b1c91f581a6101c6600
#!/usr/bin/env python import os, time import numpy as np from ase import Atoms from ase.parallel import paropen from ase.units import fs, Hartree, Bohr from ase.io.trajectory import PickleTrajectory from ase.md.verlet import VelocityVerlet from gpaw import GPAW from gpaw.mpi import world # --------------------------...
ajylee/gpaw-rtxs
gpaw/test/big/ehrenfest/na2_md.py
Python
gpl-3.0
2,504
[ "ASE", "GPAW" ]
1453d9ec47483be3a838bd5c39a0d4d6e9cb7846de758608a7ba63d5cb2691a0
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
gkc1000/pyscf
pyscf/dft/xc/utils.py
Python
apache-2.0
1,635
[ "PySCF" ]
427793c50c87109b0a31b11a6029591c03e0bf0da2d274870da955832d426788
# MolMod is a collection of molecular modelling tools for python. # Copyright (C) 2007 - 2008 Toon Verstraelen <Toon.Verstraelen@UGent.be> # # This file is part of MolMod. # # MolMod 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...
woutersmet/Molmodsummer
test/io/__init__.py
Python
gpl-3.0
967
[ "CP2K" ]
191f29459c8160f178f0ce3498bab38a36a4b6ef9515425ee7aacfbe2b4d4dc9
"""Pre-trained ImageNet networks.""" import sys from typing import Any, Callable, Dict, NamedTuple, Optional, Tuple import numpy as np import tensorflow as tf import tensorflow.contrib.slim as tf_slim # pylint: disable=unused-import # Workaround of missing slim's import # see https://github.com/tensorflow/tensorflow/...
ufal/neuralmonkey
neuralmonkey/encoders/imagenet_encoder.py
Python
bsd-3-clause
9,426
[ "VisIt" ]
8709ae0bfba0b538a14cd45250cc484b2b87414b8edf1a062d24a87cda4cac43
#!/usr/bin/python3 ######################################################################## # Solves problem 172 from projectEuler.net. # Calculates the number of numbers of 18 digits that no digit is # repeated more than 3 times. # Copyright (C) 2011 Santiago Alessandri # # This program is free software: y...
sanSS/programming-contests
project-euler/problem172.py
Python
gpl-3.0
1,887
[ "VisIt" ]
149f6c011332dbaffc988d006059ccf5611e3db2f9fa6b75121045f3c5e8179b
from contextlib import contextmanager from stat import S_IXOTH from os import pardir, stat, chmod, access, X_OK, pathsep, environ from os import makedirs from os.path import join, dirname, isfile, split from os.path import exists from tempfile import mkdtemp from shutil import rmtree from sys import version_info if ve...
jmchilton/lwr
test/test_utils.py
Python
apache-2.0
6,842
[ "Galaxy" ]
d1b94cac0dc532fe31750dd768d09af0884a1d8b382f82a71e018f78e77229d8
#!/usr/local/sci/bin/python #*************************************** # 22 March 2014 KMW - v1 # Plots months of missing data for each station over time (x axis) and colours by # WMO region (y axis). # #************************************************************************ # START #**...
Kate-Willett/Climate_Explorer
PYTHON/PlotTemporalCoverage_SEP2014.py
Python
cc0-1.0
16,920
[ "NetCDF" ]
4da0f89c0671750b2a9d87c99f68413f6088f223413daea30c281305fb0082f6
#!/usr/bin/env python3 # # Copyright (C) 2018 INRA # # 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 Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is...
geraldinepascal/FROGS
tools/affiliation_filters/affiliation_filters.py
Python
gpl-3.0
44,830
[ "BLAST" ]
df2bfb3e541a9728268988b71568c9d0a2ac615d801ed3aad504b93f377cbb65
"""annotate.py this module is part of the ciderseq distribution. """ import os,sys import uuid import tempfile import json from Bio import SeqIO from Bio.Blast.Applications import NcbitblastnCommandline from Bio.Blast import NCBIXML def annotate(settings,inputfile,logger): #init blast if not settings['blastinit']...
hirschhm/ciderseq
cider/annotate.py
Python
agpl-3.0
5,731
[ "BLAST" ]
a3bc8bc3fd9c7615515b2b3c7bdc51a8f752de4271c930626d09eb3146969849
#!/usr/bin/env python # -*- coding: utf-8 -*- import vtk ''' There are two alternative ways to apply the transform. 1) Use vtkTransformPolyDataFilter to create a new transformed polydata. This method is useful if the transformed polydata is needed later in the pipeline To do this, set USER_MATRIX = Tru...
lorensen/VTKExamples
src/Python/GeometricObjects/OrientedCylinder.py
Python
apache-2.0
4,551
[ "VTK" ]
85e138d4e5b02e82dd3e6f27ca53623bda0f099121544e7536ea273edbb000ee
''' Created on Jan 9, 2011 @author: mkiyer chimerascan: chimeric transcript discovery using RNA-seq Copyright (C) 2011 Matthew Iyer 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 Foundation, either version 3...
madhavsuresh/chimerascan
chimerascan/deprecated/merge_read_pairs.py
Python
gpl-3.0
7,872
[ "pysam" ]
412b75e6db980fdadd1f61d73b784b5abc18dd674754f008a92e07e9e3789dde
from copy import deepcopy as dc from ase import Atoms from pyiid.experiments.elasticscatter import ElasticScatter from pyiid.calc.calc_1d import Calc1D from pyiid.sim.nuts_hmc import NUTSCanonicalEnsemble from ase.cluster import Octahedron import matplotlib.pyplot as plt from ase.visualize import view # Lets set up th...
CJ-Wright/pyIID
examples/Au_NP_PDF.py
Python
bsd-3-clause
1,688
[ "ASE" ]
92fa2b37da664ea12b1a36a87054b2db8a2f307c0a6c722b9eeb05ff6c2b6bc8
""" It is used to test the MonitoringReporter. It requires MonitoringDB which is based on elasticsearch and MQ which is optional... CS (not strictly necessary): Systems { Monitoring { Certification { Databases { MonitoringDB { Host = localhost Port = 9200 ...
ic-hep/DIRAC
tests/Integration/Monitoring/Test_MonitoringReporter.py
Python
gpl-3.0
25,597
[ "DIRAC" ]
761d88fd31194eb47bb400cee8631b18fc5b9d06943d732a170714bc6da00f68
from __future__ import division from warnings import warn import numpy as np binary_erosion = None # expensive, from scipy.ndimage binary_dilation = None # expensive, from scipy.ndimage from menpo.visualize.base import ImageViewer from .base import Image from .boolean import BooleanImage class OutOfMaskSampleErro...
mozata/menpo
menpo/image/masked.py
Python
bsd-3-clause
48,033
[ "Gaussian" ]
bc0d755e2fa3719f58f33fa514ebb848f6f9ced6db5eea0800dc3f523f702d94
# coding: utf-8 # Distributed under the terms of the MIT License. from ababe.stru.element import Specie from collections import Counter, OrderedDict from operator import itemgetter from fnmatch import fnmatch class GeneralIO(object): def __init__(self, gcell): self.gcell = gcell def write_file(self...
unkcpz/ababe
ababe/io/io.py
Python
mit
1,356
[ "VASP" ]
ddf290a45aa1cac343251f84b8d561c3043e3bd6117306fe90d718b319fa4694
from WebAppDIRAC.Lib.WebHandler import WebHandler, WErr, WOK, asyncGen from DIRAC import gConfig, S_OK, S_ERROR, gLogger from DIRAC.Core.Utilities import Time import json class ExampleAppHandler(WebHandler): AUTH_PROPS = "authenticated" @asyncGen def web_getJobData(self): timestamp = Time.dateTime().strfti...
chaen/WebAppDIRAC
WebApp/handler/ExampleAppHandler.py
Python
gpl-3.0
843
[ "DIRAC" ]
2dde1d99ad49c7e1ad3bcad946994ab8d4fa9c6de8238cb03f93e04fd9dabfff
from __future__ import division import numpy as np from matplotlib import pyplot as plt from pyhsmm import models, distributions np.random.seed(0) np.seterr(invalid='raise') obs_hypparams = dict(mu_0=np.zeros(2),sigma_0=np.eye(2),kappa_0=0.05,nu_0=5) ### generate data num_modes = 3 true_obs_distns = [distributio...
mattjj/pyhsmm
examples/meanfield.py
Python
mit
960
[ "Gaussian" ]
43c0623f260a54269978d25ed1e13864970bb7825ca7c01d26741cca6de5c330
from __future__ import print_function, division import collections from sympy.core.add import Add from sympy.core.basic import Basic, Atom from sympy.core.expr import Expr from sympy.core.function import count_ops from sympy.core.logic import fuzzy_and from sympy.core.power import Pow from sympy.core.symbol import Sym...
mafiya69/sympy
sympy/matrices/matrices.py
Python
bsd-3-clause
134,821
[ "DIRAC", "Gaussian" ]
0eb091dfcb269e76dbe469fd773e86e67ea9d03d29cd8e2b785f73ec9b3b1907
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Script to plot density of states (DOS) generated by an FEFF run either by site, element, or orbital """ __author__ = "Alan Dozier" __credits__ = "Anubhav Jain, Shyue Ping Ong" __copy...
gmatteo/pymatgen
pymatgen/cli/feff_plot_dos.py
Python
mit
2,284
[ "FEFF", "pymatgen" ]
8b488145f932083db144939221cd1bb8a05b1e0c592a14ef7d1ca9cbc8137794
############################################################################ ############################################################################ # Importing necessary packages import numpy as np import scipy import matplotlib.pyplot as plt from sklearn.utils import check_random_state from sklearn.utils import...
nickdex/cosmos
code/artificial_intelligence/src/gaussian_naive_bayes/gaussiannaivebayesmoons.py
Python
gpl-3.0
6,511
[ "Gaussian" ]
0b785c07e89d6e4c62d3b3fcfa31d3e76aa77d48e496ca24b40646cbe160a0fd
"""In-memory representation of interfaces and other data structures. The objects in this module are used to build a representation of an XML interface file in memory. @see: L{reader} constructs these data-structures @see: U{http://0install.net/interface-spec.html} description of the domain model @var defaults: Defau...
dsqmoore/0install
zeroinstall/injector/model.py
Python
lgpl-2.1
51,186
[ "VisIt" ]
12e62b3db746ebd4d1eded99f6200a72af30d050b9e88aae46b56c9aa7029951
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
gkc1000/pyscf
pyscf/lib/logger.py
Python
apache-2.0
6,165
[ "PySCF" ]
8df3accd2ca129a4e5aae8d4841520821283274bcb447d7cbf9a228cb3a0295e
from behave import * @given('we have behave installed') def step_impl(context): pass @when('we implement a test') def step_impl(context): assert True is not False @then('behave will test it for us!') def step_impl(context): assert context.failed is False @given(u'I put Red Tree Frog in a blender,') def ...
mc706/behave-web-seed
features/steps/example.py
Python
mit
1,510
[ "Galaxy" ]
3783c775d3d939377d59b7fd854ab1af89918c1620dfd08442d43c6573a6ab07
"""Functions for showing information about Census variables.""" from __future__ import absolute_import, division, print_function, unicode_literals import requests import os import re import json from collections import OrderedDict def censusvar(src, year, var): """Download information on a list of variables from Ce...
jtleider/censusdata
censusdata/variable_info.py
Python
mit
7,798
[ "MOE" ]
ab932314db42e9daf54ead4610c9b33309d0e795b357f577b1a68f4af2a3f8ac
# pmx Copyright Notice # ============================ # # The pmx source code is copyrighted, but you can freely use and # copy it as long as you don't change or remove any of the copyright # notices. # # ---------------------------------------------------------------------- # pmx is Copyright (C) 2006-2013 by Daniel ...
Alwnikrotikz/pmx
pmx/forcefield.py
Python
lgpl-3.0
72,047
[ "Gromacs" ]
16540dabd465e29841e2e6e4f6760481542d1f29372977440d5bd4234e161e43
# # The Python Imaging Library. # $Id$ # # Binary input/output support routines. # # Copyright (c) 1997-2003 by Secret Labs AB # Copyright (c) 1995-2003 by Fredrik Lundh # Copyright (c) 2012 by Brian Crowell # # See the README file for information on usage and redistribution. # if bytes is str: def i8(c): ...
havard024/prego
venv/lib/python2.7/site-packages/PIL/_binary.py
Python
mit
1,488
[ "Brian" ]
3b7cd83f613650f741d998ab9f389d5d2ea27d0e977268d42ff01091ec6b448f
# coding: utf-8 """ Vericred API Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and an...
vericred/vericred-python
test/test_carrier_subsidiary.py
Python
apache-2.0
10,045
[ "VisIt" ]
d5fe240b400f07de8909d8e7c09ffc37bee58845269acd233ba9ad5f43da51c6
# ---------------------------------------------------------------------- # LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator # http://lammps.sandia.gov, Sandia National Laboratories # Steve Plimpton, sjplimp@sandia.gov # # Copyright (2003) Sandia Corporation. Under the terms of Contract # DE...
rbberger/lammps
python/lammps/mliap/loader.py
Python
gpl-2.0
2,290
[ "LAMMPS" ]
7c91b51f1ae1609e503250f69ca0f96883fa53d8017df09b2c27adce08f29280