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
# # Copyright 2016 The BigDL 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 ...
intel-analytics/BigDL
python/chronos/test/bigdl/chronos/data/utils/test_feature.py
Python
apache-2.0
4,619
[ "ORCA" ]
1c58405a3a4b935322f0613b58f3c701d1b94b05996e9253215f08128bcf4b80
# # QAPI visitor generator # # Copyright IBM, Corp. 2011 # Copyright (C) 2014-2016 Red Hat, Inc. # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # Michael Roth <mdroth@linux.vnet.ibm.com> # Markus Armbruster <armbru@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. # See the CO...
gongleiarei/qemu
scripts/qapi-visit.py
Python
gpl-2.0
10,482
[ "VisIt" ]
17af0cafc0b2e4dfc630b3dcd8c901472b2c5b3c38d8844ed321057c08e26479
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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 your option) an...
amousset/ansible
lib/ansible/constants.py
Python
gpl-3.0
17,103
[ "Galaxy" ]
13eaa87e28e57306b7e482b8d68ded8df31807493e7eed962a124f3f00b2f002
from datetime import tzinfo, timedelta, datetime ZERO = timedelta(0) HOUR = timedelta(hours=1) # A UTC class. class UTC(tzinfo): """UTC""" def utcoffset(self, dt): return ZERO def tzname(self, dt): return "UTC" def dst(self, dt): return ZERO utc = UTC() # A class building...
ArduinoHannover/FlipDotWorker
timezone.py
Python
gpl-3.0
5,060
[ "VisIt" ]
23f33d3d79549d3476b8af4968db57a3dd28ce24d735f56cd4aec5af8b86fe2e
# Licensed under an MIT open source license - see LICENSE import numpy as np from astropy.modeling.models import Gaussian2D, Const2D, Gaussian1D, Const1D from astropy.utils import NumpyRNGContext # Define ways to make 1D and 2D profiles (typically Gaussian for ease) def twoD_gaussian(shape=(201, 201), x_std=10., y_s...
e-koch/TurbuStat
turbustat/tests/generate_test_images.py
Python
mit
1,400
[ "Gaussian" ]
48aac6614bfbad0948352ff18a549067badcb981a67c1f9013206c45303643e2
"""This module contains all of the CFG nodes types.""" from collections import namedtuple from ..helper_visitors import LabelVisitor ControlFlowNode = namedtuple( 'ControlFlowNode', ( 'test', 'last_nodes', 'break_statements' ) ) class IgnoredNode(): """Ignored Node sent from...
python-security/pyt
pyt/core/node_types.py
Python
gpl-2.0
9,684
[ "VisIt" ]
e10f67a755e2700eeafe3c495e38c7f31dba7bef66aebe363fcf5058d352d02c
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # LAMMPS documentation build configuration file, created by # sphinx-quickstart on Sat Sep 6 14:20:08 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # aut...
zimmermant/dlvo_lammps
doc/utils/sphinx-config/conf.py
Python
gpl-2.0
8,669
[ "LAMMPS" ]
07584b6b19a0e217833ab072097084db63869acc18848c563025ebc3e9e6f7bf
""" Gaussian-process factor analysis (GPFA) is a dimensionality reduction method :cite:`gpfa-Yu2008_1881` for neural trajectory visualization of parallel spike trains. GPFA applies factor analysis (FA) to time-binned spike count data to reduce the dimensionality and at the same time smoothes the resulting low-dimension...
mdenker/elephant
elephant/gpfa/gpfa.py
Python
bsd-3-clause
19,302
[ "Gaussian", "NEURON" ]
8b02ac681db05b1435f6be4c747eb205d74348b6a9ee0d13458c2d9501f34c24
#!/usr/bin/env python """Simple example of publish/subscribe illustrating topics. Publisher and subscriber can be started in any order, though if publisher starts first, any messages sent before subscriber starts are lost. More than one subscriber can listen, and they can listen to different topics. Topic filtering...
mgadi/naemonbox
sources/psdash/pyzmq-13.1.0/examples/pubsub/topics_sub.py
Python
gpl-2.0
1,661
[ "Brian" ]
2ea930ea66e56dd089a385670d5c010f6a09cfab60a535f46b80fce436705481
import corner import numpy as np import seaborn as sns import pandas as pd import matplotlib.pyplot as plt from matplotlib import gridspec from matplotlib.colors import Normalize from matplotlib.lines import Line2D import miscellaneous as msc import stats as st import io_grb_pop as io from io_grb_pop import root_dir fr...
JPalmerio/GRB_population_code
grbpop/plotting_functions.py
Python
gpl-3.0
35,525
[ "Gaussian" ]
b0685a0a15c5975712a698623348ea86183c9c837e75733c9e68103e52ef7c45
#!/usr/bin/env python import os import VG import AS import sys import Prt import Spec import util as u import numpy as np import parseqm as pq import argparse as arg au2ang = 0.5291771 def options(): '''Defines the options of the script.''' parser = arg.ArgumentParser(description='Normal Modes Analysis', ...
dpadula85/VAISD
stable/VAISD.py
Python
gpl-3.0
9,186
[ "Gaussian" ]
9c9b44852d7ab0b0a6094c6089922e972d0cc5f7d0229dccbb2e5ba1aafe7793
'''Some gromacs utilities''' from __future__ import absolute_import import os import shutil import subprocess import logging import fcntl import time from IPython.display import display from ipywidgets.widgets import Textarea from chemlab.io import datafile from chemlab.md.simulation import to_mdp from chemlab.md.pot...
chemlab/chemlab
chemlab/contrib/gromacs.py
Python
gpl-3.0
5,744
[ "Gromacs" ]
d75d8a81328baf065eacbb5c29870cd6b11cfc13ab89e762586783d1eedc5484
# -*- 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 t...
alejob/mdanalysis
package/MDAnalysis/analysis/hbonds/__init__.py
Python
gpl-2.0
1,184
[ "MDAnalysis" ]
a8c7ba944fb86b5602e6971e83c3c9730ebe3dad53a057017be336da41f0077c
from __future__ import unicode_literals VENDORS = { 0x0000: 'Ericsson Technology Licensing', 0x0001: 'Nokia Mobile Phones', 0x0002: 'Intel Corp.', 0x0003: 'IBM Corp.', 0x0004: 'Toshiba Corp.', 0x0005: '3Com', 0x0006: 'Microsoft', 0x0007: 'Lucent', 0x0008: 'Motorola', 0x0009: 'In...
liamw9534/bt-manager
bt_manager/vendors.py
Python
gpl-3.0
11,603
[ "CRYSTAL" ]
5178bb7c5b6750bcd1bd709e81eb5b7a150cc81eac138388c63bf19b4ca15004
# -*- coding: utf-8 -*- """ Neural Network Classes: - Neuron: where all the calculations are done - Layer: facilitates communication between the neuron and the network - NNetwork: performs higher level commands integral to the neural network Author: Riaan Zoetmulder assisted by: Christina Zavou """ import numpy as ...
DavidZomerdijk/play_notebook
NeuralNetwork.py
Python
mit
7,882
[ "NEURON" ]
a37ae4e2d537483adf6dc44a28c08fd2a366fb7bd4f20d79236ebf404387fc0b
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Andrew Dykstra <andrew.r.dykstra@gmail.com> # Mads Jensen <mje.mads@gmail.com> # # License: BSD (...
alexandrebarachant/mne-python
mne/evoked.py
Python
bsd-3-clause
68,173
[ "Gaussian", "Mayavi" ]
19b65122c0c519d3792513f20232fb78b5e02c031002a954170778c7d92ac67c
""" Courseware views functions """ import logging import urllib import json import cgi from datetime import datetime from collections import defaultdict from django.utils import translation from django.utils.translation import ugettext as _ from django.utils.translation import ungettext from django.conf import setti...
antonve/s4-project-mooc
lms/djangoapps/courseware/views.py
Python
agpl-3.0
55,280
[ "VisIt" ]
927ebf7bb7cf822207be413ca8358b10a6292a4b2e67e5afd406efab086d5166
tests=[ ("python","testDistGeom.py",{}), ] longTests=[] if __name__=='__main__': import sys from rdkit import TestRunner failed,tests = TestRunner.RunScript('test_list.py',0,1) sys.exit(len(failed))
soerendip42/rdkit
Code/GraphMol/DistGeomHelpers/Wrap/test_list.py
Python
bsd-3-clause
218
[ "RDKit" ]
262555e267e01bfeab3b0e4c9013ceee2f96c50a1968355768afae4fb16fff91
#!/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/lo/nao.py
Python
apache-2.0
9,507
[ "PySCF" ]
a4050a607c719273a18b7789a654cde4de2ee9e4f26fe88ce4c81e8c9e4c4edb
# Copyright (c) 2001, Stanford University # All rights reserved. # # See the file LICENSE.txt for information on redistributing this software. # # Authors: # Brian Paul """ lightning2_template.py Template for setting up Lightning-2 (tile-reassembly) configurations. """ # Known issues: # 1. Tiles must all be sa...
excid3/chromium
mothership/tools/reassembly_template.py
Python
bsd-3-clause
42,823
[ "Brian" ]
c98d21212db0d909df63b63ea9aab41bde27622d2e67564126fcfedf28e78a91
#!/usr/bin/env python # Copyright 2014-2019 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...
sunqm/pyscf
pyscf/lo/pipek.py
Python
apache-2.0
11,899
[ "PySCF" ]
de27ff3713a8e9fee9b9006391869036fd7056f015b5d734ad2cbf8d5bdc06f6
# coding=utf-8 """ install_examples.py Dialogs that installs scripts to a desired directory. Simple front end to sfc_models.examples.install_example_scripts Migrated to sfc_models.examples License/Disclaimer ------------------ Copyright 2017 Brian Romanchuk Licensed under the Apache License, Version 2.0 (the "Lic...
brianr747/SFC_models
sfc_models/examples/install_examples.py
Python
apache-2.0
2,223
[ "Brian" ]
df5077a682bebf3fa9c159a195336e86f0263a247c389acabce4d260ef079879
__author__ = 'noe' import numpy as _np def _guess_model_type(observations): """ Suggests a HMM model type based on the observation data Uses simple rules in order to decide which HMM model type makes sense based on observation data. If observations consist of arrays/lists of integer numbers (irrespective...
bhmm/legacy-bhmm-force-spectroscopy-manuscript
bhmm/api.py
Python
lgpl-3.0
11,447
[ "Gaussian" ]
2cd6c7d5a2a847173ac5a3b94f52a9db1402163b13d20f5d55ed0b92c45db8d0
########################################################################### # (C) 2016 Elettra - Sincrotrone Trieste S.C.p.A.. All rights reserved. # # # # # # This file is ...
ElettraSciComp/STP-Core
STP-Core/reconstruct/rec_astra.py
Python
gpl-3.0
6,260
[ "Gaussian" ]
e47101c185b66323b13616fb07c52bbab61c6224821034c144a9008ab02e540c
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements input and output processing from Nwchem. 2015/09/21 - Xin Chen (chenxin13@mails.tsinghua.edu.cn): NwOutput will read new kinds of data: 1. normal hessian matrix. ...
gmatteo/pymatgen
pymatgen/io/nwchem.py
Python
mit
35,267
[ "Gaussian", "NWChem", "pymatgen" ]
e542501c6972b6f3902531a142a14d335966929ad937bec8e8961fac4a3687be
# 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...
kobejean/tensorflow
tensorflow/python/autograph/pyct/cfg.py
Python
apache-2.0
27,421
[ "VisIt" ]
f45137a00715782e362c52b00b13e8b18c1e6bb862eb9745af2020c680b27480
import astropy.units as u import numpy as np from pytest import approx import fastimgproto.gridder.conv_funcs as conv_funcs from fastimgproto.imager import image_visibilities def test_normalization(): n_image = 16 * u.pix # pixel co-ords -8 through 7. support = 3 uvw_pixel_coords = np.array([ (-...
SKA-ScienceDataProcessor/FastImaging-Python
tests/test_imager.py
Python
apache-2.0
1,927
[ "Gaussian" ]
9d770e9532093c354aff19d28790f7241be927f6ba6b0fae4d31c2a2537e6838
########################################################################## # # This file is part of OCEMR. # # OCEMR 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,...
ph1l/ocemr
ocemr/admin.py
Python
gpl-3.0
3,155
[ "VisIt" ]
107658353eddb9a870b02e8ae0d10b00e164194e7f73094aed6ca2920c0958be
from __future__ import division, print_function, unicode_literals # This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # testinfo = "f 10 0.033, s, f 20 0.033, s, f 30 0.033, s, f 30 0.033, s, q" tags = "particl...
vyscond/cocos
test/test_particle_flower.py
Python
bsd-3-clause
978
[ "Galaxy" ]
a57f0dbbdf6fd0194c944e9807ed157a985c7ca60b95c131e0bbd7208916a56c
""" TransformationPlugin is a class wrapping the supported transformation plugins """ import re import random from DIRAC import gConfig, gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities.SiteSEMapping import getSitesForSE, getSEsForSite from DIRAC.Core.Utilities.List import breakL...
Sbalbp/DIRAC
TransformationSystem/Agent/TransformationPlugin.py
Python
gpl-3.0
12,638
[ "DIRAC" ]
249d3e1dda380ca09c1fb50a724b984054e48c3aae8c19df1981988418a8c01f
# bagel_macro.py # the macro to generate a bagel, the axle-guidance of the bell piece # created by charlyoleg on 2013/12/02 # # (C) Copyright 2013 charlyoleg # # This file is part of the Cnc25D Python package. # # Cnc25D is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
charlyoleg/Cnc25D
cnc25d/tests/bagel_macro.py
Python
gpl-3.0
5,067
[ "VisIt" ]
b7a087dbc79b0ef188b1aae4acc4eee35462f94413d5bb3e1a989e4b0c40e038
""" Class object that encapsulates a component, the phase-space model of an unbound set of stars formed from the same starburst/filament. A component models the initial phase-space distribution of stars as a Gaussian. As such there are three key attributes: - mean: the central location - covariance matrix: the spread ...
mikeireland/chronostar
chronostar/component.py
Python
mit
69,583
[ "Gaussian" ]
320e3b7ec5c7a9a89764e42ce666ba825d7b18491b186289052ef642bebb16f6
import syslog from DIRAC import gLogger, gConfig from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.Core.Utilities import Time from DIRAC.Core.Utilities.ThreadScheduler import gThreadScheduler class SecurityLogClient: __securityLogStore = [] def __init__( self ): self.__messagesList = [] self._...
Sbalbp/DIRAC
FrameworkSystem/Client/SecurityLogClient.py
Python
gpl-3.0
2,116
[ "DIRAC" ]
1412f9000f63b35cacff2098dce297279b0d21d1ac279436310d4460a3ce516c
""" The TimeLeft utility allows to calculate the amount of CPU time left for a given batch system slot. This is essential for the 'Filling Mode' where several VO jobs may be executed in the same allocated slot. The prerequisites for the utility to run are: - Plugin for extracting information from lo...
vmendez/DIRAC
Core/Utilities/TimeLeft/TimeLeft.py
Python
gpl-3.0
9,093
[ "DIRAC" ]
1778a8c15972eef4c441fe2528b0a1245df191c16d579d8c224116c78b54f70a
# -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX 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. # #...
andybarry/abarry-pyalienfx
AlienFX/AlienFXEngine.py
Python
gpl-3.0
23,305
[ "VisIt" ]
2cbef99b283bf424964fb87f4f83eba4cefd44286337337fe60507cd93dcba19
import calendar import json import re import uuid import mock from nose.tools import eq_, ok_ from django.core.cache import cache from django.contrib.auth.models import User from django.core import mail from django.core.urlresolvers import reverse from airmozilla.main.models import Event from airmozilla.base.tests.t...
blossomica/airmozilla
airmozilla/comments/tests/test_views.py
Python
bsd-3-clause
23,822
[ "VisIt" ]
c3eb38d153b4f8730ee442da317bdf4601cfc27b6e47a9741578dc240a6534d2
#******************************************************************************* # # Vocabulary definitions # #******************************************************************************* bullshitWords = { 'nCosmos' : [ 'cosmos', 'quantum soup', 'infinite', 'universe', 'galaxy', 'multiverse', 'grid',...
mcquiggi/wisdom
vocabulary.py
Python
mit
8,094
[ "CRYSTAL", "Galaxy" ]
d9249a7e285653a22c719e4f61a19d4c9a363a769c64a341f97e72a3a9777490
# coding: utf-8 # # Copyright 2012 NAMD-EMAP-FGV # # This file is part of PyPLN. You can get more information at: http://pypln.org/. # # PyPLN 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 o...
NAMD/pypln.backend
tests/test_worker_freqdist.py
Python
gpl-3.0
1,502
[ "NAMD" ]
f838effaa6a02cdeb0ea343b59a657191fd81d39ae88da3c6ab4cd8bac9436d8
from .. import Provider as PersonProvider class Provider(PersonProvider): formats = ( '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{first_name}} {{la...
danhuss/faker
faker/providers/person/no_NO/__init__.py
Python
mit
7,066
[ "MOE" ]
9c02d76a6923e9e03ce89a61419e183b81590351096cf61897c221ed491ac6c8
""" An autoindex & strategy rapd_agent """ __license__ = """ This file is part of RAPD Copyright (C) 2009-2018, Cornell University All rights reserved. RAPD is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation...
RAPD/RAPD
src/old_agents/rapd_agent_index+strategy.py
Python
agpl-3.0
109,820
[ "CRYSTAL" ]
1ba312bffc4e584864e4af2817619edc468dfb65590a5928d345df380cd06f6d
''' file name : remap.py Description : This sample shows how to remap images This is Python version of this tutorial : http://opencv.itseez.com/doc/tutorials/imgproc/imgtrans/remap/remap.html#remap Level : Beginner Benefits : Learn to use remap function Usage : python remap.py Written by : Abid K. (abidrahman2@g...
asrob-uc3m/rpc_rpi
src/python/opencv_python_tutorials/Official_Tutorial_Python_Codes/3_imgproc/remap.py
Python
gpl-3.0
1,835
[ "VisIt" ]
6f7500e97b39df27a81e9c3ff6c245e8b829a361fe3dd18feb420b18ee7c22dc
"""Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit https://code.google.com/p/feedparser/ for the latest version Visit http://packages.python.org/feedparser/ for the latest documentation Required: Python 2.4 or later Recommended: iconv_codec <http://cjkpython.i18n.org...
bruceyou/NewsBlur
utils/feedparser.py
Python
mit
155,454
[ "NetCDF", "VisIt" ]
8f3c3c6f1d118841ecf6b866a5b3bf0231cb3936fcb6e956d8cc1e947cd13328
""" Classes:: IntegrateData -- A collection of functions that integrate the fit created by FitData. """ import numpy as np from itertools import product from json import load, dump from scipy.special.orthogonal import p_roots from dftintegrate import customserializer as cs from dftintegrate.fourier import fit...
mmb90/dftintegrate
dftintegrate/fourier/integratedata.py
Python
mit
6,475
[ "Gaussian" ]
5bdd908621c732e2c801bf72038f58a706cdb15698cc9255a63fe7bcacb55f31
# -*- 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_sale_wizard.py
Python
gpl-2.0
20,859
[ "VisIt" ]
000797bbd7c81c8646d8dccf334085dacb48571115a404131dba2836d54b1e36
"""Open Drug Discovery Toolkit ============================== Universal and easy to use resource for various drug discovery tasks, ie docking, virutal screening, rescoring. Attributes ---------- toolkit : module, Toolkits backend module, currenlty OpenBabel [ob] and RDKit [rdk]. This settin...
mwojcikowski/opendrugdiscovery
oddt/__init__.py
Python
bsd-3-clause
888
[ "RDKit" ]
09b54014639b02ef4c9949f6536fd944a35f7b015f65c276115325605a559ccd
# Copyright 2014 SolidBuilds.com. All rights reserved # # Authors: Ling Thio <ling.thio@gmail.com> from __future__ import print_function # Use print() instead of print from flask import url_for from StringIO import StringIO def test_page_urls(client): # Visit landing page response = client.get(url_for('landi...
xke/nash
tests/test_page_urls.py
Python
bsd-2-clause
1,963
[ "VisIt" ]
7defc83caea409cd6716bd29482028affbba95c02e6cc75b2f1d498be6c5cf25
"""Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit https://code.google.com/p/feedparser/ for the latest version Visit http://packages.python.org/feedparser/ for the latest documentation Required: Python 2.4 or later Recommended: iconv_codec <http://cjkpython.i18n.org...
lucidbard/NewsBlur
utils/feedparser.py
Python
mit
160,127
[ "NetCDF", "VisIt" ]
fd655cd0dbc65b7aaef83fd398e3b74338b0a036e82b34ff8b84888943f00e47
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ========================================================================= Program: Visualization Toolkit Module: TestNamedColorsIntegration.py Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www....
aashish24/VTK-old
Filters/Modeling/Testing/Python/TestNamedColorsIntegration.py
Python
bsd-3-clause
5,088
[ "VTK" ]
05aa78b78c2e1051fd1bc13b12bd0f20f9124e5abf6ae967502cbe1067c4a3e6
# RMSD-based clustering to filter out models with high structural similarity # # Daniel L. Parton <partond@mskcc.org> - 22 Feb 2013 # Edits by John D. Chodera <choderaj@mskcc.org> - 17 Mar 2013 # # PREREQUISITES # # * MDAnalysis # code.google.com/p/mdanalysis # ============================= # IMPORTS # ===============...
choderalab/Ensembler2
scripts/attic/cluster-models.py
Python
gpl-2.0
6,795
[ "MDAnalysis" ]
f8e44cb9ad26b25ff823517a70a9b1b821456b946645a8cdda98699b069efe12
from galaxy.datatypes.data import Text from galaxy.datatypes.data import get_file_peek from galaxy.datatypes.data import nice_size from galaxy.datatypes.metadata import MetadataElement from galaxy import util import tempfile import subprocess import json import gzip import os import re import logging from galaxy.mod...
lappsgrid-incubator/GalaxyMods
lib/lappsgrid/datatypes/lapps.py
Python
apache-2.0
9,789
[ "Galaxy" ]
6bb31a3d4fa68f8deb155dde72757431f899dee959615de2cfc75cd88aff2a5b
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, Jeroen Hoekx <jeroen.hoekx@dsquare.be>, Alexander Bulimov <lazywolf0@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANS...
bearstech/ansible
lib/ansible/modules/system/lvol.py
Python
gpl-3.0
16,640
[ "Firefly" ]
b59baa70176d6b827e5bba5045b6c0095b5d8fbab3217afef23b6d9cc6af4946
# # Copyright 2015 LinkedIn Corp. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
thomas-young-2013/wherehowsX
metadata-etl/src/main/resources/jython/HdfsLoad.py
Python
apache-2.0
17,802
[ "ESPResSo" ]
d5b3b25c441ce45770ba2ac2efc0ebbc70251cd749266cc7e9549204620b54bf
import sys import os home = os.path.expanduser("~") sys.path.append(os.path.join(home, 'gnumpy')) import gnumpy as gp import numpy as np class RBM(object): ''' This class implements a restricted Bolzmann machine using gnumpy, which runs on a gpu if cudamat is installed args: int n_visible...
JRMeyer/Autotrace
under-development/deepnet.py
Python
mit
11,502
[ "Gaussian" ]
4a40120510978f73574c5ca738cf1516955768a4e02ab639ddc2be88e93b9898
#!/usr/bin/env python """ Demos of real-time MIMO time encoding and decoding algorithms that use IAF neurons with delays. """ # Copyright (c) 2009-2015, Lev Givon # All rights reserved. # Distributed under the terms of the BSD license: # http://www.opensource.org/licenses/bsd-license import numpy as np # Set matplo...
bionet/ted.python
demos/iaf_delay_rt_demo.py
Python
bsd-3-clause
3,575
[ "NEURON" ]
46ab8de116d3b7c79cafb161ea28d6f9066652730b0722f3127b86ab91ee2d2a
#!/usr/bin/python import serial import time import requests import json import sys #import logging import os #import traceback import terminal_colors as tc import argparse import datetime import weather_conditions as wc import led_command as lc import wx import app_ui as ui #script_path = os.getcwd() #log_path = scri...
jhogsett/linkit
python/weather.py
Python
mit
21,080
[ "Amber" ]
590dc80c852f7e66255ec1ddecacbf562fb6b599621fb7cd243ed7ce1591792d
# encoding: utf-8 # ## Imports from __future__ import unicode_literals, print_function try: import tornado.ioloop import tornado.httpserver import tornado.wsgi except ImportError: print("You must install the 'tornado' package.") raise # ## Server Adapter def serve(application, host='127.0.0.1', port=8080, **...
marrow/WebCore
web/server/tornado_.py
Python
mit
901
[ "VisIt" ]
587361a3a594b61ba9375786ba5065cb968ec96161cf245ca386244054461ac9
import numpy as np import os try: import matplotlib if not os.environ.get('DISPLAY'): # Use non-interactive Agg backend matplotlib.use('Agg') from matplotlib import pyplot as plt except ImportError: import platform if platform.python_implementation() == 'PyPy': # PyPy doesn'...
bamueh/dark-matter
dark/features.py
Python
mit
12,240
[ "BLAST", "Biopython" ]
0a9387e18e375ccc73aa6abdcdf8cec9eb59cc25d5204b844b3639557412dad1
# Copyright (c) 2016 kamyu. All rights reserved. # # Google Code Jam 2014 Round 1B - Problem C. The Bored Traveling Salesman # https://code.google.com/codejam/contest/2994486/dashboard#s=p2 # # Time: O(N^3) # Space: O(M + N) # def connectivity_check(neighbors, source, DEAD): visited = set() def dfs(u): ...
kamyu104/GoogleCodeJam-2014
Round 1B/the-bored-traveling-salesman.py
Python
mit
2,994
[ "VisIt" ]
59bf9db9edc7318fc216386536bc185dc3b67398f05b6dee07a06d192d104ebd
import datetime from flask_wtf import Form from wtforms import validators from wtforms import SelectMultipleField as _SelectMultipleField, DateField, IntegerField as _IntegerField from wtforms.widgets import TextInput as _TextInput from wtformsparsleyjs import (Select, SelectField, ...
neotrinity/cqf
web/api/forms.py
Python
mit
3,880
[ "Gaussian" ]
0c71d20541fe1e9245d3c5b6690bf4916545c370a9cff94893c66fccf125f63b
# -*- coding: utf-8 -*- import sys sys.path.insert(0, '../docsim') import CompareTwoDocs text1 = "I do not speak english" #text1 = "München bietet in seinen diversen Abteilungen immer" text2="es usted estoy bien dónde está Berlín" #text1='wie zijt gij, ik ben goed , waar is Berlijn' #text2 = "A statement from Mr Obama...
adityamogadala/xLiMeSemanticIntegrator
examples/testcomparedocs.py
Python
gpl-3.0
673
[ "VisIt" ]
408e17a2dfdc42bde42848caa2978be345485e802fa082f4e759097baf543810
# -*- coding: utf-8 -*- """ brewpi-neuron settings ~~~~~~~~~~~~~~~~~~~~~~ Settings file for our (mock) api ** copied from eve-demo: PLEASE NOTE: We don't need to create the two collections in MongoDB. Actually, we don't even need to create the database: GET requests on an empty/non-exist...
elcojacobs/brewpi-neuron
settings.py
Python
gpl-3.0
4,285
[ "NEURON" ]
92b6ec6b38430278dca2bfd02448f74555c5031aea4b5896cfadd559a81331d8
"""Tools to improve pylint introspection""" # stdlib import os import re # These imports are *sort-of* dangerous in that python-utils does not declare a dependency on any of these, but since # this specific package and modules are only meant to be run within pylint we are assuming that the pylint environment # is setu...
kevinseelbach/generic_utils
src/generic_utils/pylint_tools/gen_utils_common.py
Python
bsd-3-clause
3,728
[ "VisIt" ]
9815a99e260824e163cc928cfb6d5710e0d036bde53c82c1c474cc3e740819d6
import psi4 import pytest using_ambit = pytest.mark.skipif(psi4.addons("ambit") is False, reason="Psi4 not compiled with ambit. Rebuild with -DENABLE_ambit") using_cfour = pytest.mark.skipif(psi4.addons("cfour") is False, reason="Psi4 not detecting CFOUR...
andysim/psi4
tests/pytest/test_addons.py
Python
gpl-2.0
32,357
[ "CFOUR", "Psi4", "Q-Chem" ]
d11f4d80a892893ba9af8a8985de5fb8781fbab963bd788d7516ea00db972e27
#!/usr/bin/env python # Script by Jason Kwong # Checks for ctrA gene in Neisseria meningitidis # Use modern print function from python 3.x from __future__ import print_function # Modules import argparse from argparse import RawTextHelpFormatter import sys import os import subprocess from subprocess import Popen from ...
MDU-PHL/meningotype
meningotype/ctrA.py
Python
gpl-3.0
2,783
[ "BLAST", "Biopython" ]
19b3bcd9492e7b201bb653e279d67c5cd33a5c96edd9eab38b13852916a41494
# # This implementation is derived from the ``concurrent.futures`` # module of Python 3.2, by Brian Quinlan, (C) 2011 the Python Software # Foundation. See http://docs.python.org/3/license.html for more information. import logging import uuid, threading, signal import h5py from itertools import islice from contextlib ...
westpa/westpa
lib/wwmgr/work_managers/core.py
Python
mit
15,450
[ "Brian" ]
b85ee10870b1406480c3ae148aa22731f1c8b5705b97a771bf82ae134a244b90
# # Copyright 2015 by Justin MacCallum, Alberto Perez, Ken Dill # All rights reserved # import logging import logging.handlers import time import meld from meld import util from meld import vault from meld.system import get_runner from simtk.openmm import version as mm_version from meld.remd import multiplex_runner im...
laufercenter/meld
meld/remd/launch.py
Python
mit
4,928
[ "OpenMM" ]
e20bbc6e2cf11f549002c34704cc37e6d4146660626ccb47b937e8dff122c40a
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kratman/psi4public
psi4/driver/qcdb/options.py
Python
gpl-2.0
10,836
[ "CFOUR", "ORCA", "Psi4", "Q-Chem" ]
c18a8773d1e87cabb8e7857c708c5cc2628ff356967ea93f30ad9a2349c43137
# This file is part of Androguard. # # Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com> # 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://...
andymg/androguard
androguard/decompiler/dad/basic_blocks.py
Python
apache-2.0
10,517
[ "VisIt" ]
e01ee5a1ca7f0dd6821279392c1f2b6bb0f62142886d4be5e362b4536b0b4453
# The MIT License (MIT) # # Copyright (c) 2015 Brian Wray (brian@wrocket.org) # # 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 # ...
wrocket/Tulip-Chess
tests/basic-tests/test_makemove.py
Python
mit
24,955
[ "Brian" ]
cfcd29a2be060aa12016527b4203c8437358991373964a7795b3b0547b6f5175
""" This file contains utility classes for modifying components. :copyright: Copyright 2010-2017 by the NineML Python team, see AUTHORS. :license: BSD-3, see LICENSE for details. """ from nineml.exceptions import NineMLUsageError, NineMLNameError from nineml.visitors import BaseVisitor, BasePreAndPostVisitorWithContex...
INCF/lib9ML
nineml/abstraction/componentclass/visitors/modifiers.py
Python
bsd-3-clause
5,582
[ "VisIt" ]
a1d78af592f8b507ac98c1967ce18dafaa670a5a1b687e99af896e474173121a
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Test the Trigger classes.""" import itertools from inspect import isclass import pickle import pytest import hoomd import hoomd.trigger class CustomTrigge...
joaander/hoomd-blue
hoomd/pytest/test_trigger.py
Python
bsd-3-clause
4,115
[ "HOOMD-blue" ]
a02ee78839d2b78b0624e824cd134873cbe02cc306d3d41fcbfaf5443cf2a372
from collections import defaultdict from outsourcer import Code from .constants import POS, RESULT, STATUS, TEXT class Expression: defines_local = False has_params = False is_commented = True is_reference = False is_tagged = True def always_succeeds(self): return False def can_p...
jvs/sourcer
sourcer/expressions/base.py
Python
mit
3,308
[ "VisIt" ]
f04e1270c2aad598064d04b79de1ad988b3af913df93ff2b1d9a57c381368dec
""" Usage: yahoo-groups-backup.py scrape_messages [-h|--help] [options] <group_name> Options: -d --delay=<delay> Delay before scraping each message, to avoid rate limiting. Delays by a gaussian distribution with average <delay> and standard deviation <del...
csaftoiu/yahoo-groups-backup
yahoo_groups_backup/subcommands/scrape_messages.py
Python
unlicense
2,142
[ "Gaussian" ]
04d5f6d875af4b8c7ebc0bf680354ab0bf7bcaa41845b1b9f077bc3e031c1636
import glob import hashlib import os from subprocess import check_call import h5py import openmc import pytest from tests.testing_harness import TestHarness from tests.regression_tests import config vtk = pytest.importorskip('vtk') class PlotVoxelTestHarness(TestHarness): """Specialized TestHarness for running ...
tjlaboss/openmc
tests/regression_tests/plot_voxel/test.py
Python
mit
1,855
[ "VTK" ]
48103748d998654da5c409f2e5a8da12a2d1ac8cd23ce6c888c3bd8dd93b5d6d
# hg.py - hg backend for convert extension # # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. # Notes for hg->hg conversion: # # * Old versions of Mercurial didn't tr...
joewalnes/idea-community
plugins/hg4idea/testData/bin/hgext/convert/hg.py
Python
apache-2.0
13,779
[ "Octopus" ]
33b7d7d299d6f71656d5ab73ab975e05b57d6c3ade86b0cd92fdb358ad31e827
import unittest import os import subprocess import shutil import json import numpy from numpy import genfromtxt from scipy import stats from Builder import Builder import math import csv class TestNoiseResults(unittest.TestCase): @classmethod def setUpClass(cls): print("") print("Te...
sballesteros/ssm
src/test_Algorithms.py
Python
gpl-3.0
45,614
[ "DIRAC" ]
cd412c148c71685687cb2c7f23263a13171eef7062429b600fb7ce605dc5afc5
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Mathematical models.""" from __future__ import (absolute_import, unicode_literals, division, print_function) from collections import OrderedDict import numpy as np from .core import (Fittable1DModel, Fittable2DModel, Model, ...
AustereCuriosity/astropy
astropy/modeling/functional_models.py
Python
bsd-3-clause
74,699
[ "DIRAC", "Gaussian" ]
f2f04d268d61db9e1bb4dcd504bdcf51d3425ef0a171c730ffbed24922577eb7
r""" Ordination results format (:mod:`skbio.io.format.ordination`) ============================================================= .. currentmodule:: skbio.io.format.ordination The ordination results file format (``ordination``) stores the results of an ordination method in a human-readable, text-based format. The form...
wdwvt1/scikit-bio
skbio/io/format/ordination.py
Python
bsd-3-clause
14,472
[ "scikit-bio" ]
0b74b9031e9799d0ae3961c7508160c28c7545c4ec9954b8e94b9adf4b222f5a
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2021 emijrp <emijrp@gmail.com> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your optio...
emijrp/wikidata
commons-stats.py
Python
gpl-3.0
12,380
[ "Galaxy" ]
5f0ae15de6acc3641fd23e3caaa7a0f4f8fe0cdcad8b964f07435fc24635e34c
""" User policy settings """ from askbot.conf.settings_wrapper import settings from askbot.conf.super_groups import LOGIN_USERS_COMMUNICATION from askbot.deps import livesettings from django.conf import settings as django_settings from askbot.skins import utils as skin_utils from django.utils.translation import ugettex...
divio/askbot-devel
askbot/conf/user_settings.py
Python
gpl-3.0
5,195
[ "VisIt" ]
7f340d7ca68e11aedfea730ef4d3bbc2c0abafdc6f450b6850b3015c0931b0f8
#!/usr/bin/env python # coding: utf-8 # # Copyright 2007 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 # # Unless required by ...
v3ss0n/rietveld
upload.py
Python
apache-2.0
99,749
[ "VisIt" ]
d54cb85308d92d09858c39ab3fb95c01a246fc0f7f2215093f5e24e6136986ab
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Package for analysis of magnetic structures. """ from pymatgen.analysis.magnetism.analyzer import * # noqa
vorwerkc/pymatgen
pymatgen/analysis/magnetism/__init__.py
Python
mit
207
[ "pymatgen" ]
a6d2b3a277004f43db2adbc6525ced45595894b9ee20606d5fe10e8d70c67232
import time import math from nxtools import s2tc from firefly.api import api from firefly.objects import has_right from firefly.qt import ( QApplication, QPushButton, QLabel, QWidget, QProgressBar, QHBoxLayout, QGridLayout, QVBoxLayout, QTimer, ) PROGRESS_BAR_RESOLUTION = 1000 c...
immstudios/firefly
firefly/modules/rundown_mcr.py
Python
gpl-3.0
10,643
[ "Firefly" ]
70bba93511e28700940b57f16c99c689fabecad4ac4d1047934d91614da656c5
# Copyright 2013-2021 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 OpenkimModels(CMakePackage): """OpenKIM is an online framework for making molecular simula...
LLNL/spack
var/spack/repos/builtin/packages/openkim-models/package.py
Python
lgpl-2.1
2,248
[ "OpenKIM" ]
01754a76fe23a483861896c41fb0a270ee175d2fb89c77aea1c80ab4d1c4c5e5
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either...
wenottingham/ansible
lib/ansible/executor/module_common.py
Python
gpl-3.0
34,696
[ "VisIt" ]
f3ba63bd34ddd7d0176351213dbf7643da5ceb6c9b493b7e166938006349abe5
import pygame import random import Funkcje as fun WHITE = (255, 255, 255) RED = (255, 0, 0) GREEN = (20, 255, 140) PURPLE = (255, 0, 255) YELLOW = (255, 255, 0) BLUE = (100, 100, 255) L_BLUE = (12, 219, 242) BLACK = (0,0,0) SCREENWIDTH=500 SCREENHEIGHT=600 class Spaceship(pygame.sprite.Sprite): def __init__(self)...
wkocin/python_game
Obiekty.py
Python
mit
7,753
[ "BLAST" ]
c5e689764cf3c4118b4d3456e3fafee077a51107e4e81eabb602dd5eac4567ad
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
Stargrazer82301/CAAPR
CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/fitting/initialization.py
Python
mit
34,092
[ "Galaxy" ]
200e46eff1edbf5dea7984fcb1e3fc569080de66eeea2e7b793a9c3c363e4c37
# -*- coding: utf-8 -*- """ dataset.py RAPIDpy Created by Alan D Snow, 2016. License: BSD-3-Clause """ from csv import writer as csv_writer import datetime from netCDF4 import Dataset, num2date import numpy as np from numpy.ma import is_masked import pandas as pd from past.builtins import xrange # pylint...
erdc-cm/RAPIDpy
RAPIDpy/dataset.py
Python
bsd-3-clause
48,751
[ "NetCDF" ]
e103181c1a1d4d887d8d0d89d442a8bec71e5db2063c937e35dfc13339cec017
#!/usr/bin/env python """ snippet.py Author: Tony Papenfuss Date: Mon Jun 23 23:32:21 EST 2008 """ import os, sys from alchemy import * from blast import BlastFile, HSP tableName = 'Devil454' # Devil454, Platy454, PlatySolexa dsn = 'sqlite:///test.db' metadata = MetaData() # Create the table and define the ma...
PapenfussLab/Mungo
mungo/alchemy/snippets/load.py
Python
artistic-2.0
770
[ "BLAST" ]
62a6b3bef75e46f1a611c1072df40e748950cb7953743c897123c177842b24f3
#!/usr/bin/env vpython # Copyright 2013 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. from __future__ import print_function import datetime import json import logging import os import StringIO import sys impor...
endlessm/chromium-browser
tools/swarming_client/tests/swarming_test.py
Python
bsd-3-clause
85,705
[ "VisIt" ]
7376c1454b004010e70de42105c9efbac9921f6421287689c8296c386a29f500
#!/usr/bin/env python # # Electrum - Lightweight Bitcoin Client # Copyright (C) 2015 Thomas Voegtlin # # 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 y...
Kefkius/scallop
plugins/trustedcoin.py
Python
gpl-3.0
26,135
[ "VisIt" ]
dec88310b76afdfd01aa1e9d5313c4541e8e993e5cc7f819009d0f374222e7df
# function.py --- import numpy as np import sys import moose simtime = 1.0 plot_ = False if plot_: import matplotlib.pyplot as plt def example(): """Function objects can be used to evaluate expressions with arbitrary number of variables and constants. We can assign expression of the form:: f...
upibhalla/moose-core
tests/python/test_function_derivative.py
Python
gpl-3.0
6,043
[ "MOOSE" ]
4ace5084ae5759b76da4971ab76325b60a100c9a2f32706fcf67b737cfc58cbe
# Copyright 2013-2021 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 RAnalysispageserver(RPackage): """A framework for sharing interactive data and plots from ...
LLNL/spack
var/spack/repos/builtin/packages/r-analysispageserver/package.py
Python
lgpl-2.1
1,178
[ "Bioconductor" ]
7a6108bec725701ce2b399d2c1d72f3443f5bab2a8e8275251a6c37089db4455
""" test_SpikingNeuron.py This file is part of ANNarchy. Copyright (C) 2013-2016 Joseph Gussev <joseph.gussev@s2012.tu-chemnitz.de>, Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General P...
ANNarchy/ANNarchy
tests/Unittests/test_SpikingSynapse.py
Python
gpl-2.0
4,172
[ "NEURON" ]
cb908c8dcca5517b3b8fda0f00b9b4867fb306905e51dc9d6bb225531cca318f
# Python test set -- part 1, grammar. # This just tests whether the parser accepts them all. # NOTE: When you run this test as a script from the command line, you # get warnings about certain hex/oct constants. Since those are # issued by the parser, you can't suppress them by adding a # filterwarnings() call to this...
trivoldus28/pulsarch-verilog
tools/local/bas-release/bas,3.9/lib/python/lib/python2.3/test/test_grammar.py
Python
gpl-2.0
17,317
[ "GULP" ]
be66397a1c280ede209f1a046547c89c51b74d3cb76008a54200a881f0d17974
def compliment(): import random compliments = """Your smile is contagious You look great today You're a smart cookie I bet you make babies smile You have impeccable manners I like your style You have the best laugh I appreciate you You are the most perfect you there is Your perspective is refreshing You're an awesom...
DNAGamer/Helix3
code/misc_compliment.py
Python
mit
4,668
[ "BLAST" ]
e9ba1d90e2b3f8b643024012f9a09ceb76dae1f763f0df2041010d80e11617c6
# 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 # # Unless required by appl...
gkc1000/pyscf
pyscf/nao/m_siesta_ion_add_sp2.py
Python
apache-2.0
1,325
[ "PySCF" ]
6a3adaa71fa6fb93ec5b1579acfbd882b1106393c48ed2aa2f38ee455c87f9b4
# -*- coding: utf-8 -*- # Taken from http://www.iana.org/assignments/language-subtag-registry langs = ( ("aa", "Afar"), ("ab", "Abkhazian"), ("ae", "Avestan"), ("af", "Afrikaans"), ("ak", "Akan"), ("am", "Amharic"), ("an", "Aragonese"), ("ar", "Arabic"), ("as", "Assamese"), ("av", "Avaric"), ("ay", ...
godiard/pathagar
books/langlist.py
Python
gpl-2.0
181,877
[ "ADF", "ASE", "BWA", "Elk", "MOE", "MOOSE", "VMD", "xTB" ]
3f133630e22c0d2ad04fc5b8edbefe575e0933a77760bdd21591f245adf831e5
""" Courseware views functions """ import logging import urllib import json import cgi from datetime import datetime from collections import defaultdict from django.utils import translation from django.utils.translation import ugettext as _ from django.utils.translation import ungettext from django.conf import setti...
UXE/local-edx
lms/djangoapps/courseware/views.py
Python
agpl-3.0
46,152
[ "VisIt" ]
bcede9ae8246276346c921894b6fa55fe1fbe0d54a27bb2dfa31c1e957a26b70
#!/opt/python-2.7.1/bin/python """ Created on Thurs, 9/04/2014 @author: mdistasio """ """ import modules """ # Python modules import sys import os import subprocess import numpy as np import glob import pickle import argparse import re # mmd Library of functions sys.path.append(os.path.dirname(os.path.dirname(os.path...
ChellyD65/shoelace
python/shoelace/scripts/Align_All_Cells_In_Dir.py
Python
gpl-2.0
3,614
[ "Bowtie" ]
a22a77070a73652558c3ba83d0c8ac5b0a58cb3b102ca81c5f94d37608ca2be7