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
from __future__ import (absolute_import, division, print_function) import unittest from mantid import logger # noinspection PyUnresolvedReferences from mantid.simpleapi import mtd, Abins, Scale, CompareWorkspaces, Load, DeleteWorkspace from AbinsModules import AbinsConstants, AbinsTestHelpers import numpy as np class...
ScreamingUdder/mantid
Framework/PythonInterface/test/python/plugins/algorithms/AbinsBasicTest.py
Python
gpl-3.0
9,837
[ "CASTEP", "CRYSTAL" ]
6c2878593ab4d384cae8fb5a0d8fbd0464b229d7f597679a77c87456050697e6
import os import sys import numpy as np import astropy.io.fits as afits from scipy.interpolate import interp1d, UnivariateSpline from astrodash.array_tools import normalise_spectrum, zero_non_overlap_part from astrodash.read_from_catalog import catalogDict try: import pandas as pd USE_PANDAS = True except Imp...
daniel-muthukrishna/DASH
astrodash/preprocessing.py
Python
mit
17,597
[ "Galaxy" ]
fe6ae7f42219cce7b1dd2e48ed5593847265b6c60b02a0b70a32289ad74fb30f
from __future__ import print_function import os import sys import subprocess import itertools import csv import time GapChar = '-' # Test that we can run code we'll need DirectoryOfThisScript = os.path.dirname(os.path.realpath(__file__)) def FindAndCheckCode(PythonPath, CodeBasename, BaseNameIncludesDir=False, IsPyCo...
BDI-pathogens/phyloscanner
tools/phyloscanner_funcs.py
Python
gpl-3.0
47,483
[ "pysam" ]
536851c77b8ba4df2e780d51723778beb8ae7c18b823ee6b52a327b2c1a46e62
#!/usr/bin/env python """ refguide_check.py [OPTIONS] [-- ARGS] Check for a Scipy submodule whether the objects in its __all__ dict correspond to the objects included in the reference guide. Example of usage:: $ python refguide_check.py optimize Note that this is a helper script to be able to check if things ar...
nmayorov/scipy
tools/refguide_check.py
Python
bsd-3-clause
31,414
[ "Gaussian" ]
eb860894c15fc9163cfed460eeae0bf31fbe4342f75fcd4887df966d121f5d30
from setuptools import setup, find_packages import imp version = imp.load_source('librosa.version', 'librosa/version.py') setup( name='librosa', version=version.version, description='Python module for audio and music processing', author='Brian McFee', author_email='brian.mcfee@nyu.edu', url='...
ruohoruotsi/librosa
setup.py
Python
isc
1,694
[ "Brian" ]
86adc23b0a9c7b7f3a71f3f3cba62eb0c080be35659da4b0c4441b2f6152f737
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # grid_ftps - secure ftp server wrapping ftp in tls/ssl and mapping user home # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the ...
heromod/migrid
mig/server/grid_ftps.py
Python
gpl-2.0
14,640
[ "Brian" ]
94e7b6ed998061ee59dd0afa47c2d6c9fcf2f4227c3ed552e5e11712fba2f9a5
from django.db import models from firearm.models import Firearm from member.models import Member RANGES = [ 'Bicester', 'Chesterton' ] SESSIONS = [ 'Practice', 'Competition' ] class Visit(models.Model): member = models.ForeignKey(Member) range = models.IntegerField(choices=enumerate(RANGES...
joedborg/fusilier
register/models.py
Python
agpl-3.0
622
[ "VisIt" ]
9f513c3ac1ac6f155fdb667f5462180297e853a34e1ef36fc68bb2aeb06b3cb1
#!/usr/bin/env python # -*- coding: utf-8 -*- """Extract sequences from a fasta file if the begining of their name is not in a 'remove' file. Remove file contains one sequence name per line. Usage: %program <input_file> <remove_file> <output_file>""" import sys import re try: from Bio import SeqIO except: ...
enormandeau/Scripts
fasta_remove_start.py
Python
gpl-3.0
1,123
[ "Biopython" ]
d5c91cf44845237f6533e71b6a57d5cc437f5ff8312f17f637c6108c60093bcc
#coding:utf8 ''' Created on 2013-8-2 @author: lan (www.9miao.com) ''' import os if os.name!='nt': from twisted.internet import epollreactor epollreactor.install() def println(a): print a if __name__=="__main__": from firefly.master.master import Master master = Master() master.config('con...
yangdw/repo.python
src/annotation/Firefly/firefly/test/test_server_master.py
Python
mit
381
[ "Firefly" ]
0482808cd3dee65d1b5f306d2c79a9127dc895fa7a5ab726b2892cb3b576b2b4
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Douglas S. Blank # Copyright (C) 2004-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Tim G L Lyons # Copyright (C) 2013 Vassilii Khachaturov # # Th...
Fedik/gramps
gramps/plugins/export/exportcsv.py
Python
gpl-2.0
23,772
[ "Brian" ]
72c502313f0f043bf35c12cf483d1e67ff8c127769bad08264b96b259a4b65a8
from flask import Flask, render_template, session, request, redirect import random app = Flask(__name__) app.secret_key = 'my_secret_key' @app.route('/') def index(): if not 'gold' in session: session['gold'] = 0 if not 'activities' in session: session['activities'] = [] return render_templ...
authman/Python201609
Guerrero_Melissa/Assignments/Guerrero_Flask_Olympics/olympics6/server.py
Python
mit
899
[ "CASINO" ]
199c5eba874d666d59a943b8b7447e27a6ef1957393d7575bf33a5309c9eaf56
import numpy as np import tensorflow as tf from tensorflow.contrib import rnn def _print_success_message(): print('Tests Passed') def test_create_lookup_tables(create_lookup_tables): with tf.Graph().as_default(): test_text = ''' Moe_Szyslak Moe's Tavern Where the elite meet to drink ...
nwhidden/ND101-Deep-Learning
tv-script-generation/problem_unittests.py
Python
mit
13,109
[ "MOE" ]
62baf6c1d53c36640c7d49f12b085e2a9f6d0734423437a86affa7fafb473936
#Module of various function for streamlining loading of data. #Contains function get arrays and addresses for data files. import glob import numpy as np import clean import spec ############################################################ #Stuff for the large SVD distribution function acquired on #11 - 28 - 2016 # ###...
Smattacus/data-analysis
python/modules/sroh.py
Python
gpl-2.0
22,772
[ "Gaussian" ]
25bbd1f10e7c7a3debb621ae753214f411f34ac19c98031833364e27d7b47f7e
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Unit tests for StructureNL (SNL) format """ __author__ = "Anubhav Jain" __credits__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Pro...
xhqu1981/pymatgen
pymatgen/matproj/tests/test_snl.py
Python
mit
10,131
[ "pymatgen" ]
5b7f18134b57f5f249ee6b1fd2d573cf07daffc1657f268524a622d6bdf727b4
""" Course Outline page in Studio. """ import datetime from bok_choy.page_object import PageObject from bok_choy.promise import EmptyPromise from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys from ..common.utils import click_css, confirm_prompt from .course_page import ...
edxzw/edx-platform
common/test/acceptance/pages/studio/overview.py
Python
agpl-3.0
29,354
[ "VisIt" ]
3746febdd13f76e8ec22f30c995381efabc14555d27012695022fd852c30bb22
#!/usr/bin/env python # # Copyright 2008,2009,2011,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 version 3, or (at ...
trondeau/gr-osmosdr
apps/osmocom_siggen_base.py
Python
gpl-3.0
21,935
[ "Gaussian" ]
89626664ace896b6c1c3398754fb00db1393934c4a5b301ac6d1cac6ebf92731
## # Copyright 2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # Flemish Research Foundation (FWO)...
wpoely86/easybuild-easyblocks
easybuild/easyblocks/g/gromacs.py
Python
gpl-2.0
9,193
[ "Gromacs" ]
d79c094b30b6f8aad9f683fb045caba796386ac0b391d5035115cfbeb16e5ff3
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to us...
EmanueleCannizzaro/scons
test/Parallel/duplicate-target.py
Python
mit
3,380
[ "VisIt" ]
868936a2553c028615ab028f08c7f7d894147f9719c2ba97ba73148374b8c523
# -*- coding: utf-8 -*- import codecs import json import os import tempfile from django import forms from django.core.urlresolvers import reverse from django.test.client import RequestFactory from mock import patch from nose.tools import eq_ from pyquery import PyQuery as pq from mkt.developers.views import standalo...
shahbaz17/zamboni
mkt/developers/tests/test_views_validation.py
Python
bsd-3-clause
9,132
[ "exciting" ]
6f70080ec13baeb8d63ac57c86421313721801d4612307fea4e86ea3f12dff25
# -*- coding: utf-8 -*- # (c) 2016, Adrian Likins <alikins@redhat.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 version 3 of the License, or # (at you...
broferek/ansible
test/units/cli/test_galaxy.py
Python
gpl-3.0
50,746
[ "Galaxy" ]
c0b482ba26de7646080b8bb33947565767564c5ab02a71b0cba58f5e1f256055
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst """ Built-in distribution-creation functions. """ from warnings import warn import numpy as np from astropy import units as u from .core import Distribution __all__ = ['normal', 'poisson', 'uniform'] def normal(center, *, std=...
pllim/astropy
astropy/uncertainty/distributions.py
Python
bsd-3-clause
6,654
[ "Gaussian" ]
c42dd216e1a0c69e490d61fb1b09076b19404c9c809f8f2594a05375328d6013
'''Datastream reader for the ncreview tool. This contains the classes nessecary to read a single datastream into a Datastream object, collecting useful summary information about the datastream which can be compared against another datastream with datastreamdiff, or written out as a JSON string for display on the ncrev...
CesiumLifeJacket/overwatch
dummy_project/ncr/datastream.py
Python
mit
38,685
[ "NetCDF" ]
ea39ef70e5335520781e50a4c2fecccbc5aa279144041ea26588389452601024
""" Test LogRecord Creation """ __RCSID__ = "$Id$" #pylint: disable=invalid-name import unittest from DIRAC.FrameworkSystem.test.testLogging.Test_Logging import Test_Logging, cleaningLog from DIRAC.FrameworkSystem.test.testLogging.Test_Logging import gLogger, oldgLogger class Test_LogRecordCreation(Test_Logging):...
arrabito/DIRAC
FrameworkSystem/test/testLogging/Test_LogRecordCreation.py
Python
gpl-3.0
9,918
[ "DIRAC" ]
a602542d0e932173fcaaea0bf8d21a88bc998ca193483a3f91ca1bdaf4c7d2d1
#!/usr/local/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Google 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
Ishayahu/MJCC-tasks
snmp/Gdrive/sample.old.py
Python
mit
28,530
[ "VisIt" ]
de98bc3a141b6e4caf443d98a59a1ea775c219014cc8430e2190614fe618f474
# # Copyright (C) 2007 Greg Landrum # @@ 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. # import os import unittest from rdkit import Chem from rdkit.Ch...
rvianello/rdkit
rdkit/Chem/Subshape/UnitTestSubshape.py
Python
bsd-3-clause
2,495
[ "RDKit" ]
f3e488f4a2ff7eb9547b8a1f868a45b668e8790e7a92e581262190d14b4449ad
import wx import wx.lib.filebrowsebutton as filebrowse ID= wx.ID_ANY class NewFileDialog(wx.Dialog): def __init__(self, parent): wx.Dialog.__init__(self, id=ID, name='', parent=parent, size=wx.Size(600, 250), title=u'Import Abundance File') self.rbFam = wx.RadioBox(self, id=ID, choices...
ecotox/pacfm
pacfm/view/gui/helper/dialog/new_file_dialog.py
Python
mit
5,295
[ "BLAST" ]
c648f270b0e035916c6fec740d72cc840c95d86f353f282442cc1efae1cda475
# drizzle/base.py # Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file> # Copyright (C) 2010-2011 Monty Taylor <mordred@inaugust.com> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ .. dialect:: drizz...
fredericmohr/mitro
mitro-mail/build/venv/lib/python2.7/site-packages/sqlalchemy/dialects/drizzle/base.py
Python
gpl-3.0
15,008
[ "VisIt" ]
2c1dd8c8390be8c67655c4743ecdc30b09c99d70eb74eb4b331c46f6b04db256
# This module is used by: # homer_pipeline_run.py, ... import os, sys, subprocess import glob import pysam # Define constants #HEP = "/seq/epigenome01/Rusty/Homer/homer/bin/" # Homer executables path #PEP = "/seq/software/picard/current/bin/" # Picard executables path #ITEN = "/xchip/igv/tools/./igvtools" # IGV tools...
dfernan/de
myutils/myos.py
Python
mit
8,050
[ "pysam" ]
ef040bab992d3a2a42461c8b85efbd04dace6e0418ab55523e7730072b33dc2e
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # Oleh Kozynets <ok7mailbox@gmail.com> # Guillaume Favelier <guillaume.favelier@gmail.com> # jona-sassenhagen <jona.sassenhagen@gmail.com> # Joan Massich <mailsik@gmail.com> #...
larsoner/mne-python
mne/viz/_brain/_brain.py
Python
bsd-3-clause
154,775
[ "VTK" ]
3eeee7e6955a39a3e8f8275cba1fc42755f6f58a117dccd172b9603ac0595cef
""" # lint-amnesty, pylint: disable=cyclic-import Test utils for CCX """ import datetime import pytz from django.conf import settings from common.djangoapps.student.roles import CourseCcxCoachRole, CourseInstructorRole, CourseStaffRole from common.djangoapps.student.tests.factories import UserFactory from lms.djan...
eduNEXT/edunext-platform
lms/djangoapps/ccx/tests/utils.py
Python
agpl-3.0
4,216
[ "VisIt" ]
5a8e46b1b3a088792f4c37a8d717079ebcf4869382dbcf1b43d22c0b2d385ad1
"""Tests of VASP calculator interface.""" import os import tarfile import numpy as np from phonopy.file_IO import parse_FORCE_SETS from phonopy.interface.phonopy_yaml import read_cell_yaml from phonopy.interface.vasp import Vasprun, read_vasp data_dir = os.path.dirname(os.path.abspath(__file__)) def test_read_vasp...
atztogo/phonopy
test/interface/test_vasp.py
Python
bsd-3-clause
1,449
[ "VASP", "phonopy" ]
4518c254d47655fbf8d8074da979c47603dd6defe46850016a54a26f95d1508e
""" Settings for trans girls rule the world """ import os BLOG_URL = 'transgirlsruletheworld.tumblr.com' TUMBLR = [ os.environ['TRANS_GIRLS_CONSUMER_KEY'], os.environ['TRANS_GIRLS_CONSUMER_SECRET'], os.environ['TRANS_GIRLS_OAUTH_TOKEN'], os.environ['TRANS_GIRLS_OAUTH_SECRET'] ] TAGS = [ 'trans wom...
Deafjams/trans_girls_rule_the_world
trans_girls_rule_the_world/settings.py
Python
mit
3,922
[ "Octopus" ]
5921868f2c36221f94457dfdb13d271844000c28a9e3c39b3f92606f5ffd8dae
# -*- coding: utf-8 -*- # Copyright (c) 2013 Kai Kratzer, Universität Stuttgart, ICP, # Allmandring 3, 70569 Stuttgart, Germany; all rights # reserved unless otherwise stated. # # 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...
freshs/freshs
client/main_client.py
Python
gpl-3.0
2,805
[ "ESPResSo" ]
266cf96984d4cb501d71967c309dc588e5c0d4be2f218a6973148de0b234a631
''' GGUSTicketsCommand The GGUSTickets_Command class is a command class to know about the number of active present opened tickets. ''' __RCSID__ = '$Id$' import urllib2 from DIRAC import S_ERROR, S_OK from DIRAC.Core.LCG.GGUSTicketsClient import GGUSTicketsClient from DIRAC.Core.Utilities.SitesDIRACGOCDBmappin...
andresailer/DIRAC
ResourceStatusSystem/Command/GGUSTicketsCommand.py
Python
gpl-3.0
4,883
[ "DIRAC" ]
b7b8a6f1827993ab5a40b328bf5a6d9e5fb7dca04d28c9adf3a29a646fd91b28
# -*- coding: utf-8 -*- """ /*************************************************************************** ReconstructLine QGIS tool to reconstruct linear features from points The main idea of the processing is to constrict Hamiltonian path. To do it we use 1-d Self Organising Map. It allows: order data points co...
nextgis/ngq_compulink
qgis-installer/customization-conf/plugins/reconstruct_line/connector.py
Python
gpl-2.0
7,988
[ "Gaussian" ]
c84ad8999a8faa27053785cfafb7ad018da69cb62c3de3e8691f5670b2fd81b6
""" Refresh local CS (if needed) In every gConfig """ __RCSID__ = "$Id$" import threading import thread import time import random from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData from DIRAC.ConfigurationSystem.Client.PathFinder import getGatewayURLs from DIRAC.FrameworkSystem.Clie...
andresailer/DIRAC
ConfigurationSystem/private/Refresher.py
Python
gpl-3.0
6,648
[ "DIRAC" ]
afab7a081f607f8c401f361bff691a70dbc8be2a05e812bc56d1979c966c8d60
import unittest from test import test_support from itertools import * import weakref from decimal import Decimal from fractions import Fraction import sys import operator import random import copy import pickle from functools import reduce maxsize = test_support.MAX_Py_ssize_t minsize = -maxsize-1 def onearg(x): '...
mancoast/CPythonPyc_test
cpython/277_test_itertools.py
Python
gpl-3.0
67,677
[ "GULP" ]
2ef7f81b61f5c48eb9f37484b4eeac169c2698be943887cc3b93818c37c14f91
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
anish/buildbot
master/buildbot/scripts/devproxy.py
Python
gpl-2.0
7,905
[ "ParaView" ]
db6a85bc3344f3efd2acb21a1fdfbceb6b953450641560788c4f586043c590b9
# coding=utf-8 """This module, test_network.py, is a quick test file.""" #from finance.data_related import data_scraper as ds #from universal_code import debugging as dbg #from universal_code import output_coloring as oc import libraries.universal_code.output_coloring as oc #from z_code_archive.finance.data_related ...
utarsuno/quasar_source
deprecated/neural_networks/test_network.py
Python
mit
4,205
[ "NEURON" ]
957b2892df91ca3148b394cff45d115da6e8650681c9695313e1f0bcdae2ce47
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from textwrap import...
pgroudas/pants
tests/python/pants_test/targets/test_wiki_page.py
Python
apache-2.0
3,075
[ "exciting" ]
1a8ebdec47094d29a29a274c2cc239660133a3bed2aeb31b8c62ee930cafcd3a
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import re import pytest from indico.modules.events.abstracts.models.abstracts import Abstract, AbstractS...
pferreir/indico
indico/modules/events/abstracts/notifications_test.py
Python
mit
10,626
[ "VisIt" ]
4f3bb6491266939e78bd63417c939d89681943ff55a0350f0d5419ee9139cf50
#!/usr/bin/python import os, sys, json from DNN import Connection, Neuron, Net if not os.path.exists(sys.argv[4]): eta = float(sys.argv[5]) alpha = float(sys.argv[6]) topology = [int(number) for number in sys.argv[7:]] myNet = Net(topology = topology, eta = eta, alpha = alpha) with open(sys.argv[4], mode = 'w') as...
aaiijmrtt/LEARNING
v1/dividedata.py
Python
mit
777
[ "NEURON" ]
9a35598617db21e846ecb0283268c5b1827beb7345f600289050ff1bec2ceb73
""" pytest for WorkflowTasks """ # pylint: disable=protected-access,missing-docstring,invalid-name from mock import MagicMock import pytest from DIRAC import gLogger from DIRAC.Interfaces.API.Job import Job # sut from DIRAC.TransformationSystem.Client.WorkflowTasks import WorkflowTasks gLogger.setLevel("DEBUG") mo...
DIRACGrid/DIRAC
src/DIRAC/TransformationSystem/Client/test/Test_Client_WorkflowTasks.py
Python
gpl-3.0
5,073
[ "DIRAC" ]
42c28e9c7ee2d4470edebe924a58a945ebae51e445d038356d969ec8d6c4d4fb
from __future__ import division from __future__ import print_function #!/usr/bin/python # small programm to loop the plot_msg function # until all desired RGB images are processed from time import time, sleep import os.path from os import remove if __name__ == '__main__': from plot_msg import plot_msg, print_...
meteoswiss-mdr/monti-pytroll
scripts/loop_msg.py
Python
lgpl-3.0
4,838
[ "NetCDF" ]
59abf9fef03a3a9e65a7a651616728696683eb00b589e3e1160fec8a6e1a3f33
#!/bin/env python3 from VASP import readCell, writeVasp import sys if len(sys.argv) < 2: print('') print('Usage: %s cell_file1 cell_file2 ...' % sys.argv[0].split('/')[-1]) print('Please try again') exit(1) print('') print('################## This script converts .cell into POSCAR ##################'...
Mabinogiysk/VASP-script
cel2vas.py
Python
gpl-2.0
780
[ "VASP" ]
7b9c617c187d303cb0c69965221fd779b00a3b5780440c7c5904ceb5b54f07d2
# Copyright 2022 The jax3d 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 or agreed to in wr...
google-research/jax3d
jax3d/projects/nesf/nerfstatic/models/nerf_renderer.py
Python
apache-2.0
14,731
[ "Gaussian" ]
c7133f39008d9af13d6c68c1ddf21ee86b49f091ce87d307110c285ddc670613
""" Contains the relevant conversions of HTML and LaTeX entities that will not be correctly converted elsewhere. This is taken from adsabs/adsdata authored by J. Luke. """ __author__ = 'J. Luke' __maintainer__ = 'J. Elliott' __copyright__ = 'Copyright 2015' __version__ = '1.0' __email__ = 'ads@cfa.harvard.edu' __statu...
adsabs/ADSfulltext
adsft/entitydefs.py
Python
gpl-3.0
48,476
[ "Bowtie" ]
94b6596641bc7cadf9bf2228627b3e60eff1164902ea48a159928762695d3996
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
endlessm/chromium-browser
third_party/webrtc/tools_webrtc/vim/webrtc.ycm_extra_conf.py
Python
bsd-3-clause
12,354
[ "VisIt" ]
80027ec901080759d6d6f1bbbba4180ce2eaea7333510c2e439a28cd642d8f08
# -*- coding: utf-8 -*- import re from unidecode import unidecode import Levenshtein from brewerynamematcher import strip_punctuation BEER_TYPES = [ u'American Pale Ale', u'Abbey Brown Ale', u'Barleywine', u'Imperial Wheat Stout', u'Imperial Coffee Stout', u'Imperial Stout', u'Imperial P...
atlefren/beertools
beertools/beernamematcher.py
Python
mit
15,663
[ "Amber" ]
26351894ae8c40151f84b469ca0b815fbfcc8b9959a58e649b45e0b4283419ef
import codecs import contextlib import io import locale import sys import unittest import warnings import encodings from test import support if sys.platform == 'win32': VISTA_OR_LATER = (sys.getwindowsversion().major >= 6) else: VISTA_OR_LATER = False try: import ctypes except ImportError: ctypes = N...
IronLanguages/ironpython3
Src/StdLib/Lib/test/test_codecs.py
Python
apache-2.0
118,059
[ "FEFF" ]
00b18b0c8942d0f92db06e4930a9678fd2192dd68200a63d7f41ed86bbef7a37
# ida-brk-comment script for IDA # (c) AVET Information and Network Security Sp. z o.o. 2012 # For more info visit us at: http://www.avet.com.pl # Not for commercial use from idaapi import * chooser = Choose([],'Breakpoint comments',1) comments = {} breakpoints = {} brk_no = GetBptQty() print 'Breakpoints = %d' % brk...
avet/ida-avet-scripts
ida-brk-comment.py
Python
gpl-3.0
898
[ "VisIt" ]
5d8e621afc6907058cb6da857696346fef76c034ecc72d0dc140ebbec8c317c1
# Copyright 2016 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...
jjas0nn/solvem
tensorflow/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py
Python
mit
32,824
[ "VisIt" ]
659816ea5b5db77571e8d344b53ac63f1599c89d535f5d393f6542f72d823474
import astropy import numpy as np import astropy.units as u from astropy.coordinates import SkyCoord #from astroy.wcs import WCS class Galaxy: def __init__(self,Name=None): if not Name: self.Name = 'M33' self.Distance = 8.4e5*u.pc self.CenterPosition = SkyCoord(23.461667...
low-sky/py-low-sky
DiskCoord.py
Python
mit
1,368
[ "Galaxy" ]
deec2e46353dc4d3364ca03701c0c782842bbca7b288ab86dbfcaa0cd33e8542
# glviewloader.py --- # # Filename: loadcell.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Thu Feb 4 20:34:34 2010 (+0530) # Version: # Last-Updated: Sat Jun 26 15:46:24 2010 (+0530) # By: Subhasis Ray # Update #: 129 # URL: # Keywords: # Compatibility: # # # Commentary: #...
BhallaLab/moose-thalamocortical
pymoose/gui/demo/glviewloader.py
Python
lgpl-2.1
3,648
[ "MOOSE" ]
4b4338d78cd4c25c1a9c3d5aba4eab75cdbdb5d93554591bd00e5f948493a96c
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView urlpatterns = [ # Django Admin url(r'^admin/', in...
PythonicNinja/ExerciseAgregator
config/urls.py
Python
bsd-3-clause
1,099
[ "VisIt" ]
4bbfcec16e7a9cd123994d204fb01aa09e405dadc0f4ebdc95e21876d8d9b986
# Copyright 1999 by Jeffrey Chang. 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 more fancy file handles. Classes: UndoHandle File object decorator with sup...
NirBenTalLab/proorigami-cde-package
cde-root/usr/lib64/python2.4/site-packages/Bio/File.py
Python
mit
5,642
[ "Biopython" ]
812119bc0f0360347202efc11b4a8881f29f1fd5bcd0f1a7026bdfe1b41ec8f5
# -*- coding: utf-8 -*- """Misspellings module. Take a list of files, check them against a list of misspelled words. """ # For Python 2.5 from __future__ import with_statement from collections import defaultdict import os import re import sys import string _NORM_REGEX = re.compile('([a-z])([A-Z][a-z])') _WORD_R...
lyda/misspell-check
misspellings_lib.py
Python
gpl-3.0
142,097
[ "exciting" ]
37fc40e2c536208a61aaf91dd7bb22781b46f6ef087f449c1439646c601f4c81
""" This module contains the OHSU-specific image collections. The following OHSU QIN scan numbers are captured: * 1: T1 * 2: T2 * 4: DW * 6: PD These scans have DICOM files specified by the :attr:`qipipe.staging.image_collection.Collection.patterns` ``dicom`` attribute. The T1 scan has ROI files as we...
ohsu-qin/qipipe
qipipe/staging/ohsu.py
Python
bsd-2-clause
6,736
[ "VisIt" ]
ab59de267178b424df230b89f5cf59658a6769bbee5d4195bcfca7a57cf36e35
import sys from time import time, ctime import numpy as np from math import sqrt, pi from ase.units import Hartree, Bohr from gpaw import extra_parameters from gpaw.utilities.blas import gemv, scal, axpy from gpaw.mpi import world, rank, size, serial_comm from gpaw.fd_operators import Gradient from gpaw.response.math_f...
qsnake/gpaw
gpaw/response/chi.py
Python
gpl-3.0
18,183
[ "ASE", "GPAW" ]
c31be5462b2d71331902c9a589aafbf79024da1f28951d7f63085f5b45fa94de
from brian import * from itertools import product import neuroTools as postdoc from scipy.signal import fftconvolve from time import time import sortUtils as tech import ISIpy as ISIpy filenames = ['/Volumes/My Book/Rat/010113_real/continuous/ch045/ch045.spiketimes', '/Volumes/My Book/Rat/010113_real/continuous/ch...
mac389/brainpy
lib/Analysis.py
Python
gpl-3.0
1,379
[ "Brian" ]
8a04fe3f90804bf48134137b69d2950376bafba4bcb33d2a0f21e25e0a9d4115
""" # Notes: - This simulation seeks to emulate the COBAHH benchmark simulations of (Brette et al. 2007) using the Brian2 simulator for speed benchmark comparison to DynaSim. However, this simulation includes CLOCK-DRIVEN synapses, for direct comparison to DynaSim's clock-driven architecture. The synaptic connec...
asoplata/dynasim-benchmark-brette-2007
output/Brian2/brian2_benchmark_COBAHH_clocksyn_lodens_1000/brian2_benchmark_COBAHH_clocksyn_lodens_1000.py
Python
gpl-3.0
3,781
[ "Brian" ]
59ec1ddd8ea18e47c2b9edc1078785f0bcd7eea19701405cfbc13379d6019836
""" """ import os from pulsar.client import action_mapper from pulsar.client import staging from pulsar.client.staging import PulsarOutputs from pulsar.client.staging.down import ResultsCollector import logging log = logging.getLogger(__name__) def postprocess(job_directory, action_executor): # Returns True if ...
natefoo/pulsar
pulsar/managers/staging/post.py
Python
apache-2.0
4,001
[ "Galaxy" ]
b9a7d321109e50cbccdffd7c1e47200d101d6afdb8c11bd295d4fb52ddba4edd
# A translation of calc_fitness.pl into python! For analysis of Tn-Seq. # This script requires BioPython, which in turn has a good number of dependencies (some optional but very helpful). # How to install BioPython and a list of its dependencies can be found here: http://biopython.org/DIST/docs/install/Installation.htm...
jsa-aerial/aerobio
Scripts/calc_fitness.py
Python
mit
43,828
[ "Biopython", "Bowtie" ]
be07857ca6c72fdba73364c73ce32d778040ced919881f0f69dc6936d9635223
# ============================================================================ # # Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
jeroendierckx/Camelot
camelot/view/controls/field_label.py
Python
gpl-2.0
4,766
[ "VisIt" ]
0e611738bd97120d1d751732e8f01cca8f3007498d226723a131a4766baa45fd
""" View for Courseware Index """ # pylint: disable=attribute-defined-outside-init from datetime import datetime from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.context_processors import csrf from django.core.urlreso...
ampax/edx-platform
lms/djangoapps/courseware/views/index.py
Python
agpl-3.0
22,329
[ "VisIt" ]
330c39f6deba737339797712bed59bfcabf9ff6061348dc9412988849d262973
#!/usr/bin/env python # -*- coding: utf-8 -*- """Directadmin API - Python implementation of Directadmin Web API Copyright (C) 2009, Andrés Gattinoni 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, e...
kuzmiigo/python-directadmin
directadmin/api.py
Python
gpl-3.0
45,535
[ "VisIt" ]
cb9989012c768b5e9f753cf698d2e2c6fa68a91cfc40073e952542a5b2dedb4a
# # QAPI command marshaller generator # # Copyright IBM, Corp. 2011 # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # Michael Roth <mdroth@linux.vnet.ibm.com> # # This work is licensed under the terms of the GNU GPLv2. # See the COPYING.LIB file in the top-level directory. from ordereddict import OrderedDict...
aliguori/qemu
scripts/qapi-commands.py
Python
gpl-2.0
11,164
[ "VisIt" ]
2d87031a3fbd1fe9ee338161bde9ff349e5927a5c7cd0c50eaccdd2c7be23aaa
#!/usr/bin/env python """ Artificial Intelligence for Humans Volume 2: Nature-Inspired Algorithms Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2014 by Jeff Heaton Licensed under the Apache License, Versi...
trenton3983/Artificial_Intelligence_for_Humans
vol2/vol2-python-examples/lib/aifh/genetic.py
Python
apache-2.0
8,374
[ "VisIt" ]
2c328b782b77249269aa060d152b22ea3fde45130c6c607434edfd97588b08fe
# (c) 2015 - Jaguar Land Rover. # # Mozilla Public License 2.0 # # Library to process updates import json import os import subprocess import dbus from collections import deque import manifest # # Simplistic storage of successfully completed # operations # class ManifestProcessor: def __init__(self, storage...
magnusfeuer/genivi_software_management
software_loading_manager/manifest_processor.py
Python
mpl-2.0
5,305
[ "Jaguar" ]
6847d11b49691e029b920cfbd9d0c44158e2217c95864f3cb98118f2096fb938
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Beans to store the description of compositions and components :author: Thomas Calmant :license: Apache Software License 2.0 :version: 3.0.0 .. Copyright 2014 isandlaTech Licensed under the Apache License, Version 2.0 (the "License"); you may not ...
ahmadshahwan/cohorte-runtime
python/cohorte/composer/beans.py
Python
apache-2.0
6,750
[ "VisIt" ]
505dc90f7e17178d3b1998ba2c8bdc868db98ad769d552897cef462261426265
import sys import numpy as np import matplotlib.pyplot as plt dimensions=[2,3,4,5,6,7,8,9,10] print("Gaussian dimensional analysis \n") #Decision Tree p_1_dt = [] p_2_dt = [] p_3_dt = [] for dim in range(2,11): temp1,temp2,temp3 = np.loadtxt("../dt_gauss/"+str(dim)+'Dgauss_dt_p_values_1_2_3_std_dev.txt') p_1_dt.ap...
weissercn/MLTools
Dalitz_simplified/evaluation_of_optimised_classifiers/gauss_analysis/plot_gauss_dimenionality_analysis.py
Python
mit
8,958
[ "Gaussian" ]
e224f38d4fb7503c2f7d312cee42002d923ecc71eb1a3a0d2f16b483a08f4c81
# Copyright 2017 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...
hfp/tensorflow-xsmm
tensorflow/python/autograph/pyct/ast_util.py
Python
apache-2.0
11,832
[ "VisIt" ]
b4aa6bd486e54cca3d87666f70080a80cea93eb0daace49e97650a5cf1f35e3a
# encoding: utf-8 """crystal.py - Window for setting up arbitrary crystal lattices """ import gtk from gettext import gettext as _ from ase.gui.widgets import pack, cancel_apply_ok, oops from ase.gui.pybutton import PyButton from ase.gui.setupwindow import SetupWindow from ase.gui.status import formula from ase.lattic...
suttond/MODOI
ase/gui/crystal.py
Python
lgpl-3.0
22,834
[ "ASE", "CRYSTAL" ]
40292a5ff4cda21483afb8c75e6ffc9772239ea16c78df8ffc064a73e6ed62e0
#!/usr/bin/env python ### DO NOT USE THIS SCRIPT # Instead, use 'fasta_reservoir_sampling.py' """Extract approximately n random sequences from a fasta file. To be sure to get the exact desired number of sequences, boost the number of wanted sequences by a certain amount. Eg: 150% for 300 sequences or less 120% for 1...
enormandeau/Scripts
fasta_extract_random_sequences.py
Python
gpl-3.0
1,598
[ "Biopython" ]
da87803d4b2266182ba4b08ab22fdd7abd1f442b2a297f03e884a4471c7fec86
## # Copyright 2009-2016 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # Flemish Research Foundation ...
wpoely86/easybuild-easyblocks
easybuild/easyblocks/n/netcdf_fortran.py
Python
gpl-2.0
2,770
[ "NetCDF" ]
b011b786d58ffed26f7ce08e3d2802916d7fccb9c439e0a11eca1c70304b0a2c
""" DIRAC API Class All DIRAC functionality is exposed through the DIRAC API and this serves as a source of documentation for the project via EpyDoc. The DIRAC API provides the following functionality: - A transparent and secure way for users to submit jobs to the Grid, monitor them and re...
miloszz/DIRAC
Interfaces/API/Dirac.py
Python
gpl-3.0
107,757
[ "DIRAC" ]
0e24253045ba993ae251da3a7d12dd40c01160546de13ffb0a3fa1ac8eef9dc1
# $Id: VTKBlender.py,v 1.19 2008-07-03 15:13:21 cwant Exp $ # # Copyright (c) 2005, Chris Want, Research Support Group, # AICT, University of Alberta. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met...
unterweg/peanoclaw
blender/VTKBlender.py
Python
bsd-3-clause
11,458
[ "VTK" ]
c0626a3e65bcc11380de12d94e6d7a2eaa04303222aba99122d54244288427d3
''' Created on Oct 22, 2013 @author: J.Akeret ''' from __future__ import print_function, division, absolute_import, unicode_literals import numpy from cosmoHammer.pso.ParticleSwarmOptimizer import ParticleSwarmOptimizer from cosmoHammer.pso.CurvatureFitter import CurvatureFitter class BestFitPositionGenerator(object...
cosmo-ethz/CosmoHammer
cosmoHammer/pso/BestFitPositionGenerator.py
Python
gpl-3.0
6,049
[ "Gaussian" ]
cd6297e15ceed0b4de7058605070dc5df96a8a6d060255bfa92373571cee320d
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 # see LICENSE file (it's BSD) from __future__ import with_statement import re, csv, datetime, time import errors, message import traceback import StringIO import threading # arch: pacman -S python-pyserial # debian: apt-get install pyserial import serial # Constan...
adammck/pygsm
pygsm/gsmmodem.py
Python
bsd-3-clause
41,599
[ "FEFF" ]
97300336382841af1efb6b3f67eec3bed209e8248cc064efc863869ead2e4ddc
import os from setuptools import setup readme_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md') with open(readme_path, 'r', encoding='utf-8') as fh: long_description = fh.read() def main(): install_list = ['pysb>=1.3.0,<=1.9.1', 'objectpath', 'rdflib==4....
johnbachman/indra
setup.py
Python
bsd-2-clause
6,066
[ "Pybel" ]
f16cb92c55a595ac4c983efede864d83c13c7836593d4074a8ab72712d9b9f51
#!/usr/bin/env python # # Copyright 2002 by Michael Hoffman. 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. """Access to General Feature Format databases created with BioPerl (...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/GFF/__init__.py
Python
gpl-2.0
15,023
[ "BioPerl", "Biopython" ]
f37bbec97b14629ba36f3c346de681b23e57b68d8483e21147d3e32d2544bd8c
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 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 #...
amjames/psi4
psi4/driver/qcdb/cov_radii.py
Python
lgpl-3.0
5,328
[ "Psi4" ]
6de2c3cc87948e3451386fc5b4bb3885cb19a8591cfc8f284e80063b6c55e337
# # Copyright (c) 2010 Brian E. Granger # # This file is part of pyzmq. # # pyzmq is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option)...
felipecruz/zmqpy
zmqpy/tests/pyzmq_tests/__init__.py
Python
bsd-2-clause
3,215
[ "Brian" ]
65736c2d710376209f5c94d2d8b579a882d4983dba4b5d836c5955de97a40a48
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under th...
alejob/mdanalysis
package/MDAnalysis/analysis/hbonds/hbond_autocorrel.py
Python
gpl-2.0
20,554
[ "MDAnalysis" ]
2599252e3e35374e2832e510f3d897ad950ae3455d25e5cb21437ed3e7f97c65
#! /usr/bin/env python ###============================================================= ### Multifit 3 ### Nicola Ferralis <feranick@hotmail.com> ### The entire code is covered by GNU Public License (GPL) v.3 ###============================================================= ### Uncomment this if for headless servers. ...
feranick/MultiFit
Archive/multifit_3/multifit.py
Python
gpl-3.0
25,354
[ "Gaussian" ]
fab42ca1dff4e32cfe0c3880d996e8891a0ce8c0464d5c20cad20cfe284bf0f2
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements the pickler objects used in abinitio. """ from __future__ import unicode_literals, division, print_function import pickle from pymatgen.core.periodic_table import Element class Pmg...
sonium0/pymatgen
pymatgen/serializers/pickle_coders.py
Python
mit
2,839
[ "pymatgen" ]
544965cb5b79ef2d924aa874e340f855a0e0410ccdb837b20327e4122e5c622f
from ase import * from gpaw import GPAW atoms = molecule('C6H6') atoms.center(vacuum=3.5) calc = GPAW(h=.21, xc='PBE', txt='benzene.txt', nbands=18) atoms.set_calculator(calc) atoms.get_potential_energy() calc.set(fixdensity=True, txt='benzene-harris.txt', nbands=40, eigensolver='cg', convergence={'bands': ...
freephys/python_ase
doc/tutorials/wannier/benzene.py
Python
gpl-3.0
393
[ "ASE", "GPAW" ]
f5d2d1909696632966b7c0a32333a5d4f58383bdc5581e21d4d6cad97020f8e5
import sys import numpy.fft as fft from ocelot import MagneticLattice from ocelot.cpbd.optics import * from ocelot.utils.xdb import Xdb sys.path.append('../utils/') from xfel_utils import * def test_twiss(): xdb = Xdb(index_file='/home/iagapov/data/xdb/test/index.h5', mode='r') f = xdb.read_undulator_config...
sserkez/ocelot
utils/xdb_cli.py
Python
gpl-3.0
18,311
[ "VisIt" ]
d4ff34d1d93d47678667a95fedfa2be3417da45f87734ca81078153c4f518d7e
# 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...
sarvex/tensorflow
tensorflow/python/ops/image_ops_impl.py
Python
apache-2.0
226,930
[ "Gaussian" ]
8daf1ea2325f286a5f0139516490d3f0da3f3537bccfd93180e19727380454df
######################################################################## # $HeadURL$ ######################################################################## """ :mod: FTSSubmitAgent ==================== FTS Submit Agent takes files from the TransferDB and submits them to the FTS using FTSRequest helper cl...
sposs/DIRAC
DataManagementSystem/Agent/FTSSubmitAgent.py
Python
gpl-3.0
12,093
[ "DIRAC" ]
149d164aeda1437991280be655a0c9739081c8bea783bb6efca822bd907089bb
'''This script demonstrates how to build a variational autoencoder with Keras. Reference: "Auto-Encoding Variational Bayes" https://arxiv.org/abs/1312.6114 ''' import numpy as np import matplotlib.pyplot as plt from scipy.stats import norm from keras.layers import Input, Dense, Lambda, Layer, concatenate from keras.mo...
Fuchai/Philosophy-Machine
vae_mining/unsampledvae.py
Python
apache-2.0
5,741
[ "Gaussian" ]
d7c108fb3267a1d073545726c8ea4421e8a48d6b3948738335872aec475a2e18
import logging import os import re import socket import sys import time from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django_extensions.management.technical_response import \ null_technical_500_response from django_extensio...
rodo/django-extensions
django_extensions/management/commands/runserver_plus.py
Python
mit
16,094
[ "VisIt" ]
0d4a0b8fd3f8e624d2b5a77f65a10f95651e6ba178933d8a00163a7313015652
# -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import tempfile import time import re import sys from contextlib import contextmanager from selenium.common.exceptions import NoSuchEle...
houllette/ducktheinternet
splinter/driver/webdriver/__init__.py
Python
mit
22,049
[ "VisIt" ]
e5c847b84215b82a36ee28621bc3236b12131f7ddb15f78674b503ff9e87bb28
# $HeadURL: $ ''' CacheFeederAgent This agent feeds the Cache tables with the outputs of the cache commands. ''' from DIRAC import S_OK#, S_ERROR, gConfig from DIRAC.AccountingSystem.Client.ReportsClient import ReportsClient from DIRAC.Core.Base....
calancha/DIRAC
ResourceStatusSystem/Agent/CacheFeederAgent.py
Python
gpl-3.0
6,141
[ "DIRAC" ]
637ac4978565c30f5244131f5b32c9d51509a730c62755919693212e5c0875de
""" Do the initial configuration of a DIRAC component """ from __future__ import print_function from __future__ import absolute_import from __future__ import division __RCSID__ = "$Id$" from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script Script.setUsageMessage( "\n".join( [ __d...
ic-hep/DIRAC
tests/Jenkins/dirac-cfg-add-option.py
Python
gpl-3.0
1,441
[ "DIRAC" ]
66a0508364c605a02cb1a7a1c440304700e7ea4ffad47f2c26b86239375b3ccc
# -*- coding: utf-8 -*- #Copyright Aksyonov D.A from __future__ import division, unicode_literals, absolute_import, print_function import itertools, os, copy, math, glob, re, shutil, sys, pickle, gzip, shutil, random import re, io, json import pprint from textwrap import wrap import numpy as np #additional packages...
dimonaks/siman
siman/classes.py
Python
gpl-2.0
245,897
[ "ABINIT", "Jmol", "Quantum ESPRESSO", "VASP", "phonopy", "pymatgen" ]
5902f947e53caa370492e50cd871daf7bedecd1f83cc3ef40435537cf952043f
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ve...
sparkslabs/kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Codec/Dirac.py
Python
apache-2.0
10,572
[ "DIRAC" ]
65ec795d87257053791cc2927fdc92da8ccb8dcf87f5566c3a90317bb58760e2
import textwrap import io from cssypy.visitors import flatteners, formatters from cssypy import parsers, errors from cssypy import csstokens as tokens from cssypy.nodes.util import dump from cssypy.nodes import * from .. import base class Flattener_TestCase(base.TestCaseBase): def stylesheet_to_string(self, sty...
colossalbit/cssypy
cssypy/tests/visitors/test_flatteners.py
Python
bsd-3-clause
5,500
[ "VisIt" ]
d165c414bbfda49fe544a4645db62b571e0ddd307c7dd68a947b228c2b136f6c
import math from neat.iznn.iznn_pure import Synapse from neat.iznn.network import Network class Neuron(object): 'Neuron based on the integrate and fire model' def __init__(self, bias = 0, tau = 10, vrest = -70, vreset = -70, vt = -55): ''' tau, vrest, vreset, vthreshold are the parameters of th...
davidmfinol/py3NEAT
neat/ifnn/ifnn_pure.py
Python
gpl-3.0
2,131
[ "NEURON" ]
49998c6c8aa137f4d249fcac416c071e22d2a4ae20d49a6af7a61df1707da484
#pylint: disable=no-init from stresstesting import MantidStressTest from mantid.simpleapi import CreateWorkspace, LinearBackground, FlatBackground, Gaussian, CalculateChiSquared, mtd from CrystalField.fitting import makeWorkspace from PyChop import PyChop2 import numpy as np class CrystalFieldPythonInterface(MantidSt...
ScreamingUdder/mantid
Testing/SystemTests/tests/analysis/CrystalFieldPythonInterface.py
Python
gpl-3.0
19,208
[ "CRYSTAL", "Gaussian" ]
a5a98685da10a73a8a7ba9d66b47a0bfccaf37f980700e9f45b8fd62d253897c