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
# -*- coding: utf-8 -*- r""" TODO: Look at this file http://www.lfd.uci.edu/~gohlke/code/transformations.py.html # Sympy: # >>> # https://groups.google.com/forum/#!topic/sympy/k1HnZK_bNNA # >>> import vtool_ibeis as vt # >>> import sympy # >>> from sympy.abc import theta # >>> x, y, a, c, d, sx...
Erotemic/vtool
vtool_ibeis/linalg.py
Python
apache-2.0
21,152
[ "Gaussian" ]
e7a4d0974aafc7160a1c90e0be2f574c51a7568e8d3a0eb837dab69fb8593cc4
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2005 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Andrew I Baznikin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
Forage/Gramps
gramps/plugins/rel/rel_fi.py
Python
gpl-2.0
7,780
[ "Brian" ]
c18545a6f3ee18ce8eb14f99c9ad63bf52e8e9f7ffedcc0d245f5abaf2a6a0ac
class DataPoint(object): """ A Ladybug data point Attributes: value :<flot>, <integer>, <string> based on type isEpwData: A boolean that indicates if the data is from an epw file. Valid range for epw file can be differnt. For example Temperature rang...
antonszilasi/honeybeex
honeybeex/honeybee/ladybug/datatype.py
Python
gpl-3.0
7,115
[ "EPW" ]
582096baaf9e5d4ed9b7aaf0a3a4f9bcf28362e0146dc23e7c79e523b9cbfa82
#!/usr/bin/env python # This code is licensed under the New BSD License # 2009, Alexander Artemenko <svetlyak.40wt@gmail.com> # For other contacts, visit http://aartemenko.com from migrate.versioning.shell import main main(repository='migrations')
svetlyak40wt/gtdzen
gtdzen/migrations/manage.py
Python
bsd-3-clause
250
[ "VisIt" ]
3a288247aff9c5caf132930364e652b7ff3f1aa88472517675a7226bbaa55da2
# -*- coding: utf-8 -*- # # hill_tononi_Vp.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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 2 of the License,...
SepehrMN/nest-simulator
pynest/examples/spatial/hill_tononi_Vp.py
Python
gpl-2.0
38,623
[ "Gaussian", "NEURON" ]
2866593341a0667e35beef7a0c9e09ec158c898a8df807e8ca91dbf186f32440
#**************************************************************************** # Copyright (C) 2013 SUNCAT # This file is distributed under the terms of the # GNU General Public License. See the file `COPYING' # in the root directory of the present distribution, # or http://www.gnu.org/copyleft/gpl.txt . #**************...
chuanshi/ase-espresso
multiespresso.py
Python
gpl-3.0
3,940
[ "ESPResSo" ]
bd68a678faddfa57444615c8c861e10976d01b303bfbf58b72365f129398d3fc
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2017 SML 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 use, copy...
Gr8z/Legend-Cogs
deck/deck.py
Python
mit
34,881
[ "VisIt" ]
13beaa571918fa162e029d22bc4ebc40f0f17fe29dbaa368a4130835b71e2d2b
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
hguemar/cinder
cinder/flow_utils.py
Python
apache-2.0
6,587
[ "VisIt" ]
21f813e98eeecb59dbdaba613e53186ae25c4330ef02d329aefb5d48e43aca2c
# -*- coding: utf-8 -*- """ *************************************************************************** dataobject.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ****************************...
mhugo/QGIS
python/plugins/processing/tools/dataobjects.py
Python
gpl-2.0
8,309
[ "NetCDF" ]
f4a9342670feecb4c5637f6eee8be1d7d8ced34d11962a6e72e9723564f16268
#!/usr/bin/python __author__ = 'samim' # Imports import argparse import time import os import errno import subprocess from cStringIO import StringIO import numpy as np import scipy.ndimage as nd import PIL.Image from google.protobuf import text_format import caffe #Loading DNN model model_name = 'bvlc_googlenet' #mo...
naeluh/DeepDreamAnim
dreamer.py
Python
mit
10,389
[ "Gaussian" ]
5198f4d596007fc4ea181167f74cc5822df5eaa16c777d47dffcdaeaa9c3762c
#!/usr/bin/env python3 """ pylupdate parses python files to search for calls to pytson.tr resp pytson.Translatable._tr to generate a Qt linguist translation file These are the two valid usecases from module pytson: class Translatable(object): @classmethod def _tr(cls, sourcetext, *, disambiguation="", n=-1, c...
pathmann/pyTSon
tools/pylupdate.py
Python
gpl-3.0
31,776
[ "VisIt" ]
e75a9025d14cbebf263f9fee155a71203ab86dd6fd7116afdffa3577161d2045
#!/usr/bin/env python import sys import logging import argparse import pysam def unalign(ifs,ofs,tags=None): ''' Convert aligned bam IFS to unaligned bam OFS. ''' # Generate a new read that we'll use as the base. unaligned = pysam.AlignedRead() # Set target reference and position to unknown. unaligne...
WhiteLab/utils
python/bam/unalign.py
Python
apache-2.0
2,319
[ "pysam" ]
b1ccdace470acf22be0b935ff100b71d20b75aa76dc76dc1169a97cbb2625d55
# -*- coding: utf-8 -*- """Mayavi/traits GUI for setting MRI fiducials.""" # Authors: Christian Brodbeck <christianbrodbeck@nyu.edu> # # License: BSD-3-Clause import os from mayavi.core.ui.mayavi_scene import MayaviScene from mayavi.tools.mlab_scene_model import MlabSceneModel import numpy as np from pyface.api impo...
bloyl/mne-python
mne/gui/_fiducials_gui.py
Python
bsd-3-clause
18,825
[ "Mayavi" ]
afe124be64a5db23c0cff443c3f9ff22ffc90e5a920f6b82ce7a58c4078f2083
import numpy as np from scipy.spatial.distance import pdist, squareform from pysisyphus.calculators.Calculator import Calculator class IDPPCalculator(Calculator): def __init__(self, target): self.target = squareform(target) super().__init__(base_name="idpp") def get_forces(self, atoms, co...
eljost/pysisyphus
pysisyphus/calculators/IDPPCalculator.py
Python
gpl-3.0
1,400
[ "ASE" ]
71327b72bbc61a3194b21b15354f361da780e73acdef4edaf1a3e162ab768059
""" Spike train correlation plots ----------------------------- .. autosummary:: :toctree: toctree/spike_train_correlation/ plot_corrcoef plot_cross_correlation_histogram """ # Copyright 2017-2022 by the Viziphant team, see `doc/authors.rst`. # License: Modified BSD, see LICENSE.txt.txt for details. fr...
INM-6/viziphant
viziphant/spike_train_correlation.py
Python
bsd-3-clause
7,862
[ "NEURON" ]
7e3ee78fbf3d334ffc8cd2c91b015350726b2fdcd00dc5f53a6261b4de4d71c2
import praw import time import os class RedditBot(): def __init__(self, parent=None): super(RedditBot, self).__init__() self.Init() self.runBot() def Custom_Init_Variables(self): ######################################################## ################ Cha...
xvang/reddit-bots
Moose_Hunter_bot/reddit_bot_2.py
Python
unlicense
4,248
[ "MOOSE" ]
6529a97f053efd2336b62f0e8e2ecbb0d309043261dd283f10fb00b3001efa0c
#!/usr/bin/python import unittest import os import random import numpy as np from pymatgen.core.structure import Structure from pymatgen.core.lattice import Lattice from pymatgen.core.surface import Slab, SlabGenerator, generate_all_slabs, \ get_symmetrically_distinct_miller_indices from pymatgen.symmetry.group...
sonium0/pymatgen
pymatgen/core/tests/test_surface.py
Python
mit
13,101
[ "pymatgen" ]
24e4b8c11a25b971868e9ca4c25ea3265f32ce3fe6840000a9b6abf01ec96c1c
import itertools import math import sys import numpy as np import numpy.linalg import functools from pychemia import Structure, pcm_log from pychemia.utils.mathematics import integral_gaussian from pychemia.utils.periodic import atomic_number, covalent_radius, valence, atomic_symbol from collections import OrderedDic...
MaterialsDiscovery/PyChemia
pychemia/analysis/analysis.py
Python
mit
26,318
[ "CRYSTAL" ]
1d0b6f746627d62d9f3a8bf91bd006cd743afb6b575f14f856c1e40267649d29
"""Growing Neural Gas main file, for developers only.""" from numpy import * from oldgraph.classes.graph import graph winner_index = 0 winner_2nd_index = 0 setN = [] #:set of neuron weights gr = graph() #:topology structure implemented by python-graph T_winner = 0 T_2nd_winner = 0 accumulated = [1,1] big_cl...
sbxzy/pygks
pygks/gng2.py
Python
bsd-3-clause
7,610
[ "NEURON" ]
4c9e441f5ca5ee9f503697e001ac4432167edd4250aa0a86c53916c3b24cbf9f
#!/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...
gkc1000/pyscf
pyscf/grad/tduhf.py
Python
apache-2.0
11,956
[ "PySCF" ]
46b46c5a25bf9726cf589771012f275c56568b186057047e426addd9db1525fe
# This is the main script to run disparity plasticity experiment. # # Copyright (C) 2010-2011 Huang Xin # # See LICENSE.TXT that came with this file. import numpy as np #from StimControl.LightStim.LightData import dictattr from Experimenter.Experiments.Experiment import ExperimentConfig,Experiment,StimTimingExp,Restin...
chrox/RealTimeElectrophy
Experimenter/test/test_dsp_plasticity_rand_phase.py
Python
bsd-2-clause
5,274
[ "NEURON" ]
a08b641cf650fce7662194cac5f94c755cc773213c4e57fb5a4741f285364d21
"""Convert to and from Roman numerals""" __author__ = "Mark Pilgrim (f8dy@diveintopython.org)" __version__ = "1.4" __date__ = "8 August 2001" __copyright__ = """Copyright (c) 2001 Mark Pilgrim This program is part of "Dive Into Python", a free Python tutorial for experienced programmers. Visit http://diveint...
mfazekas/safaridriver
selenium/src/py/lib/roman.py
Python
apache-2.0
2,768
[ "VisIt" ]
1ce3434b394fbfcac8bc299d3b88156701f320b48d841dcd4adb86f407639856
# # Copyright (c) 2009, Novartis Institutes for BioMedical Research Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyri...
ptosco/rdkit
Contrib/LEF/CreateFps.py
Python
bsd-3-clause
4,608
[ "RDKit" ]
24d479d964a7f066107573861307bb115edd4377e233d3c03745d4e047ba4004
import ast as _ast import cypy import cypy.astx as astx import clq from clq import TypeResolutionError import clq.backends.base_c as base_c _globals = globals() # used to create lists of types below ################################################################################ # Types #############################...
cyrus-/ace
clq/backends/opencl/__init__.py
Python
lgpl-3.0
87,758
[ "VisIt" ]
749e81fef09fce84c9a6811e1c3c318d4e1b931b6deecabe099a262aa25cd947
from __future__ import print_function from six import iteritems from six.moves import range import os from numpy import arange, mean, amax, amin, vstack, zeros, unique, where, sqrt import vtk from vtk import vtkTriangle from vtk.util.numpy_support import numpy_to_vtk from pyNastran.gui.gui_objects.gui_res...
saullocastro/pyNastran
pyNastran/converters/cart3d/cart3d_io.py
Python
lgpl-3.0
19,298
[ "VTK" ]
1ec82a294d2419faa945323977ad697a58a396b7e4b7aab0acac79cfed2a9751
# coding: utf-8 # ## FFT solver for 1D Gross-Pitaevski equation # We look for the complex function $\psi(x)$ satisfying the GP equation # # # $-\frac{1}{2}(i\partial_x - \Omega)^2\psi+g|\psi|^2\psi = \mu \psi$, # # with periodic boundary conditions. # Import libraries and general definitions # In[1]: import nu...
brunojulia/ultracoldUB
gpe_fft_v0.py
Python
gpl-3.0
6,795
[ "Gaussian" ]
2b7cec8910872cf9e3ce089cb4282c11ab6ce154869cdc981bd11bc1cb7f35d3
#------------------------------------------------------ # Create a rom memory with the given string stored #------------------------------------------------------ # (c) BQ october 2015. Written by Juan gonzalez (obijuan) #-------------------------------------------------------- ##-- String to store into the rom cad = ...
Obijuan/open-fpga-verilog-tutorial
tutorial/ICESTICK/T28-ram/char2rom.py
Python
gpl-2.0
454
[ "ASE" ]
1383b6998f4d8d9d3619f9d04efdb0f53dd617c17083af13cc082babfb9ba8e9
#!/usr/bin/python #coding=utf8 import Pmw from Tkinter import * from tkFileDialog import askdirectory import string import pafy from pygoogle import pygoogle import webbrowser import urllib2 import sys import csv import os #------------------------------------------------------------------------------# # ...
jasongi/pysongscraper
pysonggui.py
Python
gpl-2.0
13,676
[ "VisIt" ]
228e4a513c2418c277a0913cefdca0567661fb254fd8ef9bd7ba9f1c53cd7956
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "L...
saltstar/spark
python/pyspark/ml/tests.py
Python
apache-2.0
101,783
[ "Gaussian" ]
6c2c77ae5571b600435c54517a2de6fd6892672d7212f80e45829a8d005cb217
# -*- coding: utf-8 -*- class Charset(object): common_name = 'NotoSansSymbols-Regular' native_name = '' def glyphs(self): chars = [] chars.append(0x0000) #uniFEFF ???? chars.append(0x000D) #uni000D ???? chars.append(0x0020) #uni00A0 SPACE chars.append(0x20A0) #...
davelab6/pyfontaine
fontaine/charsets/noto_chars/notosanssymbols_regular.py
Python
gpl-3.0
537,286
[ "Bowtie", "FLEUR" ]
77d35932c0ee23158ca51ab1f00737e2386a3c0b1918592fd3300e2a60bf5927
# # Copyright (c) 2001 - 2014 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 use, copy, modify, merge...
engineer0x47/SCONS
engine/SCons/Taskmaster.py
Python
mit
40,536
[ "VisIt" ]
29dcb86a26b4f85cc371c2f226ca1fbe0a10b89ea78cec05848a57b23059da98
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Christoph Klein # Contributors: # # MDTraj is free software: y...
leeping/mdtraj
tests/test_rdf.py
Python
lgpl-2.1
3,558
[ "Gromacs", "MDTraj" ]
4769f64f442e23ab3e1b8e09dcbfd3d9cd2478d8aa3c21cc16976be6ee32aa51
tests = [ ("python", "UnitTestMolStandardize.py", {}) ] longTests = [] if __name__ == '__main__': import sys from rdkit import TestRunner failed, tests = TestRunner.RunScript('test_list.py', 0, 1) sys.exit(len(failed))
bp-kelley/rdkit
rdkit/Chem/MolStandardize/test_list.py
Python
bsd-3-clause
241
[ "RDKit" ]
b35961f35cf160a4ad6c6e35baba274e30bf840bb2bfe56903b5ca3ff7bb6831
# test rasl inner loop on simulated data # # pylint:disable=import-error from __future__ import division, print_function import numpy as np from rasl.inner import inner_ialm from rasl import (warp_image_gradient, EuclideanTransform, SimilarityTransform, AffineTransform, ProjectiveTransform) def setup...
welch/rasl
tests/inner_test.py
Python
mit
4,843
[ "Gaussian" ]
939bc9109f0c05cd2058aa318a6442cf5f50cb7e6e64cf069ffa1c829a8effe9
import re def fun(s): m = re.fullmatch('([a-zA-Z0-9_-])+@([a-zA-Z0-9])+\.([a-zA-Z0-9]){1,3}', s) return m is not None def filter_mail(emails): return list(filter(fun, emails)) if __name__ == "__main__": tests = [ ( ['lara@hackerrank.com', 'brian-23@hackerrank.com', ...
Moggi/python-playground
HRank/email_filter.py
Python
gpl-2.0
954
[ "Brian" ]
f01e1d19803218ebf53ef1d423b4a033d7962f59f593c78e7518fa3d6b496f9b
# # Nearest Neighbor Classifier # # # Code file for the book Programmer's Guide to Data Mining # http://guidetodatamining.com # # Ron Zacharski # ## I am trying to make the classifier more general purpose ## by reading the data from a file. ## Each line of the file contains tab separated fields. ## The f...
ChaoSBYNN/Tools
Data Mining/A Programmer's Guide to Data Mining/code/chapter-4/nearestNeighborClassifier.py
Python
gpl-3.0
7,804
[ "CRYSTAL" ]
dac4dcd07563097766e8cab9d1753282fc20d153070717b2bb9b68fdc070454c
# found at: https://pythonspot.com/json-encoding-and-decoding-with-python/ import json # Pretty printing # =============== # If you want to display JSON data you can use the json.dumps() function. json_data = '{"name": "Brian", "city": "Seattle"}' json_obj = json.loads(json_data) print(json.dumps(json_obj, sort_keys=...
uherting/RasPi
JSON/json_pretty_printing.py
Python
gpl-2.0
337
[ "Brian" ]
4a48205e1075be7e090112731a8114fb0de999c19dd0e15de837103dcdca24cd
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google-research/vmoe
vmoe/nn/ensemble_routing_test.py
Python
apache-2.0
8,066
[ "MOE" ]
13f3ec6f989942b0a912ce780446a6834998bbed528865e390ef6d06442bae90
from scripts.db_shell import * from galaxy.util.bunch import Bunch from galaxy.security import GalaxyRBACAgent from sqlalchemy.orm import sessionmaker from sqlalchemy import * import argparse bunch = Bunch( **globals() ) engine = create_engine('postgres://galaxy:galaxy@localhost:5432/galaxy') bunch.session = sessionmak...
jmchilton/docker-recipes
galaxy/create_galaxy_user.py
Python
mit
1,787
[ "Galaxy" ]
4dad18c855919061b50987b7ea4a6eb4be74b55c061a7c2f3302bafa62c6f029
"""Extract reference documentation from the NumPy source tree. """ # This code is copied directly from numpy # numpy / doc / sphinxext / docscrape.py # Copyright (c) 2005-2011, NumPy Developers. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
leeping/mdtraj
mdtraj/testing/docscrape.py
Python
lgpl-2.1
17,166
[ "MDTraj" ]
d1f04cdcaaac6e284833967962480e35100092ddd679649258dafdd0af81b3f2
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
xsm110/Apache-Beam
sdks/python/apache_beam/pipeline_test.py
Python
apache-2.0
15,829
[ "VisIt" ]
bc6078e0d66d0afad4b6c0e45c1c0c79013e3c39b832185f2b73c4c9bba8739e
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Google Chrome cookie database plugin.""" import unittest from plaso.formatters import chrome_cookies # pylint: disable=unused-import from plaso.lib import eventdata from plaso.lib import timelib from plaso.parsers.sqlite_plugins import chrome_cookies from t...
dc3-plaso/plaso
tests/parsers/sqlite_plugins/chrome_cookies.py
Python
apache-2.0
4,456
[ "VisIt" ]
cc4eb6e4ce630cb7fd203ba9171c83e6b0f7c57fffe777b8f60fb636b49f7374
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ Versioneer 2 ============ * Like a rocketeer, but for versions! * Based on https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy * Edited by Ryan Dwyer This is a...
ryanpdwyer/versioneer2
versioneer.py
Python
mit
38,234
[ "Brian" ]
31c804f4d61a67037de246fee3a2ef4de177527b8bb70cf28e35facbf8e22767
""" calculate coverage across a list of regions """ import os import os.path as op import yaml from argparse import ArgumentParser from ichwrapper import cluster, arguments from bcbio.install import _get_data_dir from bcbio.utils import safe_makedir from vardict.run import trymemory def _update_algorithm(data, res...
lpantano/eggs
vardict_debug/scripts/run-vardict.py
Python
gpl-2.0
1,737
[ "Galaxy" ]
47d0f03587011443265b960e086fc275769dcb3a0f3fe2e8cfc204db8b3a7df0
######################################################################## # $HeadURL$ # File : SiteSEMapping.py ######################################################################## """ The SiteSEMapping module performs the necessary CS gymnastics to resolve site and SE combinations. These manipulations are...
sposs/DIRAC
Core/Utilities/SiteSEMapping.py
Python
gpl-3.0
4,850
[ "DIRAC" ]
6511aefea4e66558b125368121d450857117722ea6ce9ea58bc8d125b8ac4631
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2007-2009 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Adam Stein <adam@csh.rit.edu> # # This program is free software; you can redistribute it and/or modify # it u...
Forage/Gramps
gramps/plugins/docgen/psdrawdoc.py
Python
gpl-2.0
14,036
[ "Brian" ]
43470f2815a6798272bf1bb640864c2c7a457874c94d3481d541bba5797dcec3
######################################################################## # File : Utilities.py # Author : Federico Stagni ######################################################################## """ Utilities for Transformation system """ __RCSID__ = "$Id$" import ast import random from DIRAC import S_OK, S_ERROR, ...
marcelovilaca/DIRAC
TransformationSystem/Client/Utilities.py
Python
gpl-3.0
17,448
[ "DIRAC" ]
dfcd7fba960b6bff39c6545fc8727b7bdfde955540717d0177e3e10fe072c98e
#!/usr/bin/env python """Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit http://feedparser.org/ for the latest version Visit http://feedparser.org/docs/ for the latest documentation Required: Python 2.1 or later Recommended: Python 2.3 or later Recommended: CJKCodecs...
MehmetNuri/ozgurlukicin
util/feedparser.py
Python
gpl-3.0
123,318
[ "NetCDF", "VisIt" ]
48e1231c44988432fbbaa241ce4eaafa54e222da7d41cef38987462363a74b44
from webob import Response import urllib2 import socket import base64 from urlparse import urlparse, urlunparse import urllib def get_url(url, method='GET', data=None, client_id=None, user_id=None, api_key=None, timeout=5, get_body=True, extra_headers=None): """Performs a synchronous url call and retur...
cackharot/opensaas
opensaas/library/http_helpers.py
Python
gpl-2.0
2,134
[ "VisIt" ]
0e5b90b0e3d716827170112708f3851e301bccc2e2319629d9f8d8a5b3eefe35
#!/usr/bin/env python ################################################################################ # # make_aims.py # # Creates a standard control.in template file using a specified geometry.in # and species directory. # ################################################################################ # # Copyright...
kaneod/physics
python/make_aims.py
Python
gpl-3.0
2,885
[ "FHI-aims" ]
10bc98536863e6c06f68c2628ad19b382886340be980f4aabceb2c886d501fe8
import json import hive import logging import time from oauth_hook import OAuthHook import socket import requests import urlparse class NetworkError(Exception): pass class ServerError(Exception): pass class AuthError(Exception): pass class BotQueueAPI(): version = '0.4' name = 'Bumblebee' localip =...
qharley/BotQueue
bumblebee/botqueueapi.py
Python
gpl-3.0
11,185
[ "VisIt" ]
9038d37c5849d123380465c9859cb0849fcd8a9075e5c3fcccd641ff8b28409b
"""Kernels for Gaussian process regression and classification. The kernels in this module allow kernel-engineering, i.e., they can be combined via the "+" and "*" operators or be exponentiated with a scalar via "**". These sum and product expressions can also contain scalar values, which are automatically converted to...
vortex-ape/scikit-learn
sklearn/gaussian_process/kernels.py
Python
bsd-3-clause
67,657
[ "Gaussian" ]
a70c951280a37547abf7d45932043b2b95701ffc37db6820044210c9b2fc1b79
"""Regression tests for testing CPyDock scoring function""" import shutil import os import filecmp from regression import RegressionTest class TestRegressionPyDockShort(RegressionTest): def setup(self): self.path = os.path.dirname(os.path.realpath(__file__)) self.test_path = self.path + '/scrat...
brianjimenez/lightdock
bin/test/test_pydock.py
Python
gpl-3.0
6,261
[ "Amber" ]
2dd9b9f477c6a28738f3dfbd33a9ac1494a2c1ed12cd26a7daa857072505dce7
import inspect import asplib.asp.codegen.python_ast as ast import asplib.asp.codegen.cpp_ast as cpp_ast import asplib.asp.codegen.ast_tools as ast_tools import codepy.cgen import asplib.asp.jit.asp_module as asp_module from collections import namedtuple class IfNotDefined(cpp_ast.Generable): """ A generable A...
harperj/KDTSpecializer
pcb_operator.py
Python
bsd-3-clause
12,550
[ "VisIt" ]
08fa5a1aa7ce80dd614d3a6695d5713fac0e6c98e878765489445b06570617bf
#!/usr/bin/env python # Copyright (C) 2012 Tianyang Li # tmy1018@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 option) any lat...
tianyang-li/de-novo-metatranscriptome-analysis--the-uniform-model
play/show_start_pos_0.py
Python
gpl-3.0
1,414
[ "HTSeq" ]
5349d5a6d83b3927b35de1a076b0fdc492b7720058efa30da01f62e2d7440c54
''' synbiochem (c) University of Manchester 2015 synbiochem is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' # pylint: disable=no-member # pylint: disable=too-many-public-methods import os import tempfile import unittest from...
synbiochem/synbiochem-py
synbiochem/utils/test/test_sbol_utils.py
Python
mit
986
[ "VisIt" ]
26f85f2151257ddf9b2dba767849a2f5b5dc2162c68c2427790e4f74a007565b
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
Jc2k/libcloudcore
libcloudcore/serializers/json.py
Python
apache-2.0
3,509
[ "VisIt" ]
1a8b862867d65faa80a92bbf76c545f0bc0b38a0efcb9a63b14069c8b939c891
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # # Project: wb97xdDsC-optim # FileName: computation # Creation: Jul 16, 2015 # """Example Google style docstrings. This module demonstrates documentation as specified by the `Google Python Style Guide`_. Docstrings may extend over multiple lines. Sections are created...
grhawk/wb97xdDsC-optim
mainOptimTest/master/computation.py
Python
gpl-2.0
10,467
[ "GAMESS" ]
5174797195ed264da2c7608b8613a862f7e274881c3d28ea7879c5e77f632b5c
import constant from model import * from potential import * __all__ = 'PreSynapse', 'PostSynapse' class PreSynapse: def __init__(self, model, post): self.model = model self.post = post def activate(self): self.post.activate() class PostSynapse: def __init__(self, neuron): ...
lennart96/neurons
synapse.py
Python
isc
1,972
[ "NEURON" ]
7b40d1b1d45a8ec224048a3bf16a254c5e5d0bf1638913fdd7fee3d5d4d5977e
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' License: For personnal, educationnal, and research purpose, this software is provided under the Gnu GPL (V.3) license. To use this software in commercial application, please contact the authors. Authors: Jaroslaw Zygierewicz (jarekz@fuw.edu.pl), ...
britodasilva/pyhfo
pyhfo/core/book_reader.py
Python
mit
4,490
[ "DIRAC" ]
541bd98f6b7572dac8e1a8306dafcc9555baea35e35e68ca7e5d4340f4f3f8bb
__author__ = 'amarch' # -*- coding: utf-8 -*- from utils import strutils as infoutils import itertools from scipy.integrate import * from RotationCurve import * from Galaxy import * from utils import strutils as infoutils import itertools import copy from RadialToAzimuthalRatioHandler import * from RadialToVerticalR...
Amarchuk/2FInstability
core/VelocityEllipsoidHandler.py
Python
gpl-3.0
5,851
[ "Galaxy" ]
fca2b0cdecb8ea19b67ee35e6ef848243f13cec70f28ec0e05eeb299acea08e4
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-aiplatform
tests/unit/gapic/aiplatform_v1/test_prediction_service.py
Python
apache-2.0
70,918
[ "Octopus" ]
695f0eea87376a88f0c18dc83bdb9ccfa07626f589471041988eab42652917de
import subprocess import sys import os import linecache import re import numpy as np if len(sys.argv)<3: print 'An input file and setup file are needed as arguments' print 'Input and setup files must be stored in folder RR_fitter/input/' print 'Input file path name must be entered before setup file name' print 'Ex...
elizabethswann/RR_fitter
run_RR_fitter.py
Python
mit
2,350
[ "Galaxy" ]
43c8d3bdaa104154e2628fb8bc0f85ecc75f37ba4694ba67d7c0c9828f87515b
import time import lmdb import struct import logging import hashlib import itertools import synapse.glob as s_glob import synapse.common as s_common import synapse.eventbus as s_eventbus import synapse.lib.net as s_net import synapse.lib.cell as s_cell import synapse.lib.lmdb as s_lmdb import synapse.lib.const as s_c...
vivisect/synapse
synapse/axon.py
Python
apache-2.0
22,767
[ "NEURON" ]
6c1c5ca577e02b629db8fdaba2c733ca3b84df79ac8caf7a78baa9703a2e1418
# Copyright (c) 2009, Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the...
EpicCM/SPH-D700-Kernel
external/webkit/WebKitTools/Scripts/webkitpy/committers.py
Python
gpl-2.0
13,988
[ "Brian" ]
d029e90cabd13215b365d02a9c458b742b25c1d4ee9e4164a07c60def6a6d01b
""" Contains tests to check a particular script's results or speed have not changed. Buildbot shows how to run all these tests. $Id$ """ __version__='$Revision$' import pickle, copy, __main__, timeit, os, os.path, socket, cPickle, inspect, traceback, tempfile, shutil from numpy.testing import assert_array_equal, a...
ioam/svn-history
topo/tests/test_script.py
Python
bsd-3-clause
25,712
[ "Gaussian" ]
eb37828c6445146ca7bfd47e6465dd77819fdb5b24fc5a3d2634c2cf467b1e56
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 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 #...
dgasmith/psi4
psi4/share/psi4/databases/RSE42.py
Python
lgpl-3.0
77,097
[ "Psi4" ]
6161edb7d0eaf622536f51a0eb0d015243ec20144ca193db9a8647cc1879c74b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import unittest import os import json from io import open import matplotlib matplotlib.use("pdf") # Use non-graphical display backend during test. from pyma...
matk86/pymatgen
pymatgen/electronic_structure/tests/test_plotter.py
Python
mit
7,139
[ "VASP", "pymatgen" ]
e37789d5700aa6f6ff1a0918ad2acc738df8ae097ad29a4d2dababce37cb51e5
from __future__ import print_function import networkx as nx import argparse import multiprocessing from rdkit import Chem NUM_PROCESSES = 8 def get_arguments(): parser = argparse.ArgumentParser(description='Convert an rdkit Mol to nx graph, preserving chemical attributes') parser.add_argument('smiles', type=...
dakoner/keras-molecules
convert_rdkit_to_networkx.py
Python
mit
3,031
[ "RDKit" ]
0cf87e6ca5010721328b55311823292df1a5b73468c2c135a774ed6cdd47fafa
""" The Notification service provides a toolkit to contact people via email (eventually SMS etc.) to trigger some actions. The original motivation for this is due to some sites restricting the sending of email but it is useful for e.g. crash reports to get to their destination. Another use-case is...
andresailer/DIRAC
FrameworkSystem/Service/NotificationHandler.py
Python
gpl-3.0
10,897
[ "DIRAC" ]
9018f1e3fd16c16dd48d099716ba126610d23e59e45eae7bb6297c35629b4127
#Copyright Aksyonov D.A from __future__ import division, unicode_literals, absolute_import import shelve, sys, datetime, shutil, tempfile, os, json, re, glob import json try: import pandas as pd except: print('no pandas') from siman import header from siman.header import runBash, printlog from siman.small_f...
dimonaks/siman
siman/database.py
Python
gpl-2.0
20,063
[ "pymatgen" ]
e4bf638388e067fd83d1309f3017423780a911601576154edaa6aaa3d4ee5511
#!/usr/bin/env python # Install.py tool to build the GPU library # used to automate the steps described in the README file in this dir from __future__ import print_function import sys,os,subprocess # help message help = """ Syntax from src dir: make lib-gpu args="-m machine -h hdir -a arch -p precision -e esuffix -...
jag1g13/lammps
lib/gpu/Install.py
Python
gpl-2.0
5,201
[ "LAMMPS" ]
f9de8d4adb1ed9986267eaa8c143c62fdd1b3484bdf01feaa8b3c08caae82c75
""" Script entry point """ from src.calrissian.particle_vector_n_network_local_conv4 import ParticleVectorNLocalConvolution4Network from src.calrissian.layers.particle_vector_n_local_conv4 import ParticleVectorNLocalConvolution4 from src.calrissian.layers.particle_vector_n_local_conv4 import ParticleVectorNLocalConvol...
awlange/brainsparks
tests/particle_vector_n_local_conv4_test.py
Python
mit
13,564
[ "Gaussian" ]
8e9fd8ed5e9ba591509ce673895e221afe7671d9d3ea5573218880016e4fb9e3
__author__ = "John D. Chodera, Frank Noe" __copyright__ = "Copyright 2015, John D. Chodera and Frank Noe" __credits__ = ["John D. Chodera", "Frank Noe"] __license__ = "LGPL" __maintainer__ = "John D. Chodera, Frank Noe" __email__="jchodera AT gmail DOT com, frank DOT noe AT fu-berlin DOT de" import numpy as np from b...
bhmm/legacy-bhmm-force-spectroscopy-manuscript
bhmm/output_models/gaussian.py
Python
lgpl-3.0
17,938
[ "Gaussian" ]
35a9233e40f0b928ea11836dec24dc3f8b22d21ea1b6b6cc06f69ca6b94cfde6
from check_grad import check_grad from utils import * from logistic import * import matplotlib.pyplot as plt def run_logistic_regression(hyperparameters): # TODO specify training data train_inputs, train_targets = load_train_small() valid_inputs, valid_targets = load_valid() test_inputs, test_target...
ouyangyike/Machine-Learning-and-Data-Mining
Logistic Regression/logistic_regression_template5.py
Python
mit
3,770
[ "Gaussian" ]
1f3764488fc2c783cee8480be62989e9bcb0b005f957b3f20cb385d33d72437e
'''PipelinePeakCalling.py - Tasks associated with pipeline_peakcalling ====================================================================== One set of functions runs peak callers and uploads the called peaks into the database. The functions follow the following naming convention: runXXX() run a certain peak ca...
CGATOxford/CGATPipelines
CGATPipelines/PipelineIntervals.py
Python
mit
92,375
[ "pysam" ]
828fcb31d5f25dec5e9a478177795fb147b020c994dff8dd29f3c307e4680927
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The borg package contains modules that assimilate large quantities of data into pymatgen objects for analysis. """
gVallverdu/pymatgen
pymatgen/apps/borg/__init__.py
Python
mit
229
[ "pymatgen" ]
87c7f9f2189e88d34bc6d31f7266764877a206768a8dbf95c8d3bb95eafb42e7
""" CLASS INFO ------------------------------------------------------------------------------------------- Clustering class contains every method that is necessary for creating,exporting and evaluating clusters. Inherits the Dataset/Dataset_transformations which makes it indepedent of data origin and str...
iaklampanos/bde-pilot-2
backend/Clustering.py
Python
apache-2.0
13,505
[ "Gaussian", "NetCDF" ]
dfed1b6791db4e65f175a9d0fe9657618cc186c760fe4dd1c8fb546f01b76f31
#-------------------------------------------------------------------------- # Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas # Copyright: (C) 2001 Centro de Pesquisas Renato Archer # Homepage: http://www.softwarepublico.gov.br # Contact: invesalius@cti.gov.br # License: GNU ...
fabio-otsuka/invesalius3
invesalius/reader/others_reader.py
Python
gpl-2.0
1,892
[ "VTK" ]
94bfe03d1777b573128bc2a92ef1cefaea3355770b223aca1ff1745849085d2b
"""WSGI Flask-app for browsing a database. You can launch Flask's local webserver like this:: $ ase-db abc.db -w For a real webserver, you need to set the $ASE_DB_APP_CONFIG environment variable to point to a configuration file like this:: ASE_DB_NAME = '/path/to/db-file/abc.db' ASE_DB_HOMEP...
suttond/MODOI
ase/db/app.py
Python
lgpl-3.0
7,617
[ "ASE" ]
b3d029e6b29b7dddb221187eba05d522964d6de24b4bd5e234270254ad252a6f
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- ########################################################################### # ...
cgchemlab/chemlab
examples/atrp_lj/polymer_melt.py
Python
gpl-3.0
6,565
[ "ESPResSo" ]
b26d65f611187738ffb5cd086eb987c3c00c9f890eca81747c7f5a6fbda86480
# Copyright 2014 Mark Chilenski # This program is distributed under the terms of the GNU General Purpose License (GPL). # Refer to http://www.gnu.org/licenses/gpl.txt # # 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 Fr...
markchil/profiletools
profiletools/CMod.py
Python
gpl-3.0
109,376
[ "Gaussian", "NetCDF" ]
01d4c25dbaa60b18d2fdbffe91bb18f7e8cb3f9f8fb2cce1c0ecc8846e9147e7
# $Id$ # Hop --- a framework to analyze solvation dynamics from MD simulations # Copyright (c) 2009 Oliver Beckstein <orbeckst@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...
iwelland/hop
hop/graph.py
Python
lgpl-3.0
126,271
[ "Biopython", "CHARMM", "MDAnalysis", "VMD" ]
8d0b050de47ee390f1b4fd76bde6dd1d80bc95d40591fe64e45af6b07ec6b879
import sys import os import types import threading import time from DIRAC import gLogger from DIRAC.Core.Utilities.DIRACSingleton import DIRACSingleton from DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals import Extensions class Devloader( object ): __metaclass__ = DIRACSingleton def __init__( self ): se...
Sbalbp/DIRAC
Core/Utilities/Devloader.py
Python
gpl-3.0
2,381
[ "DIRAC" ]
04ba10a6f77606bdf3cdb22f54097c7a689e28f0596f002aa5499e77ef0e00f0
# -*- coding: utf-8 -*- """ sphinx.writers.texinfo ~~~~~~~~~~~~~~~~~~~~~~ Custom docutils writer for Texinfo. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import textwrap from os import path import warnings from six import...
neerajvashistha/pa-dude
lib/python2.7/site-packages/sphinx/writers/texinfo.py
Python
mit
46,798
[ "VisIt" ]
664fd34dd1836c0ccef2137ba84b4765c6d5e7ec105aa0f6ce445eda4c6b9b4e
"""SCons.Util Various utility functions go here. """ # # __COPYRIGHT__ # # 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 use...
timj/scons
src/engine/SCons/Util.py
Python
mit
50,962
[ "VisIt" ]
bae1825629d60e542ecaaa173c18bdf27f068e2030695236b7af148babda1d0c
from datetime import datetime, timedelta from typing import List import warnings from dateutil.relativedelta import FR, MO, SA, SU, TH, TU, WE # noqa import numpy as np from pandas.errors import PerformanceWarning from pandas import DateOffset, Series, Timestamp, date_range from pandas.tseries.offsets import Day, ...
cbertinato/pandas
pandas/tseries/holiday.py
Python
bsd-3-clause
16,245
[ "COLUMBUS" ]
da68de356ff63be6d3781d83181c7b2e0e21e67c46a42fa6df9bbdd4b3e88f57
import unittest from vivisect.const import SYMT_CONST from vivisect.symboliks.common import Arg, Var, Const, Mem, Call, \ o_add, o_sub, o_xor, o_and, o_or, \ evalSymbolik def walkTree_cb(path, cur, ctx): ctx['path'].append(cur) class ...
bat-serjo/vivisect
vivisect/symboliks/tests/test_walkTree.py
Python
apache-2.0
23,017
[ "VisIt" ]
72e1c725f2bafa897563d966fbb377d8e2a851b92f6b85ddbeec0705f14983c6
# Copyright 2003-2008 by Leighton Pritchard. 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. # # Contact: Leighton Pritchard, Scottish Crop Research Institute, # ...
zjuchenyuan/BioWeb
Lib/Bio/Graphics/GenomeDiagram/_FeatureSet.py
Python
mit
8,609
[ "Biopython" ]
974605799ce7c7908a4b7a93a0c590e8eec392c340404ec3b93643ecfe866e00
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
SamStudio8/scikit-bio
skbio/io/format/tests/test_phylip.py
Python
bsd-3-clause
9,695
[ "scikit-bio" ]
6fb771b7df45b2056ca09337b268c63dbb847c38ee7502f1bfd6a2e9e6341af2
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2010 Brian G. Matherly # # 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 2 of the License, or # (at your optio...
pmghalvorsen/gramps_branch
gramps/gui/user.py
Python
gpl-2.0
5,178
[ "Brian" ]
aac26dd489068e6934cecc2e20a03eb89909942d9d3861d615de060b08a13cbd
# coding: utf-8 from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import random import re import socket import sys import time import math from ..compat import ( compat_cookiejar, compat_cookies, compat_etree_fromstring, compat_getp...
epitron/youtube-dl
youtube_dl/extractor/common.py
Python
unlicense
132,429
[ "VisIt" ]
60823d26d89c6f961f796ff3b99d2e1dca30d2e8e79f4b519bf5b4bcfdf80aef
import re from django.contrib.auth import get_user_model from django.core import mail from django.shortcuts import reverse from django.test import Client, TestCase from .models import Profile User = get_user_model() class ViewTests(TestCase): @classmethod def setUpTestData(cls): cls.client = Client...
cts-admin/cts
cts/accounts/tests.py
Python
gpl-3.0
5,845
[ "VisIt" ]
a4763d05d432a46f968309da30cf4b4eee79da31f46ccd05ab7783ebb1e409fb
# Copyright (C) 2003 CAMP # Please see the accompanying LICENSE file for further information. """This module provides all the classes and functions associated with the evaluation of exact exchange. """ import numpy as np from gpaw.xc import XC from gpaw.xc.kernel import XCNull from gpaw.xc.functional import XCFunct...
robwarm/gpaw-symm
gpaw/xc/hybrid.py
Python
gpl-3.0
17,666
[ "ASE", "GPAW" ]
f50672339afe66c9677f696239e1851cf4e3d3eceb077774d8a0f560141133cd
import MySQLdb import time import random #import threading import db_conf import sys class pham_comparator: def compare_B_to_C(self, pB, pC): for b_pham in pB.phams: for c_pham in pC.phams: match = 0 ...
byuphamerator/phamerator-dev
phamerator/pham_comparator.py
Python
gpl-2.0
1,929
[ "BLAST" ]
4ccb54d72e00db58f928bfbadd86e22339bae10f48600584a7d11041601eec9e
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/bug_1117098
openlp/core/utils/__init__.py
Python
gpl-2.0
15,825
[ "Brian" ]
5dd2f912fead5f9be9ecf76d665fa0842bfa484cef4ae03afee44cc2a2d1c9f3
import inspect import logging import weakref import uuid from types import MethodType import sys if sys.version_info > (3, ): long = int unicode = str logger = logging.getLogger(__name__) try: getfullargspec = inspect.getfullargspec except AttributeError: getfullargspec = inspect.getargspec class S...
openpathsampling/openpathsampling
openpathsampling/netcdfplus/base.py
Python
mit
12,401
[ "NetCDF" ]
c6cc7e383b275db4732f271cb1443b47ebc62cd4ad7e7c7304eea137f5c82cb2
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ A Flow is a container for Works, and works consist of tasks. Flows are the final objects that can be dumped directly to a pickle file on disk Flows are executed using abirun (abipy). """ from __future__ impo...
johnson1228/pymatgen
pymatgen/io/abinit/flows.py
Python
mit
109,644
[ "ABINIT", "pymatgen" ]
c71c392d7a8d7cd789958860cf08fab948d415fc88e8d992750f4a2e4b120fef
# coding=utf-8 from __future__ import absolute_import from flask import url_for from flask_login import current_user import pytest from firefly.six import unicode from firefly.models.user import User from firefly.views.api.consts import OK @pytest.mark.usefixtures('client_class') class TestUser: def setup(self)...
mozillazg/firefly
tests/test_user.py
Python
mit
2,460
[ "Firefly" ]
18e9d7509bb7cb4d5bcf485ceaee664625c9c34d8fdc7b3b252c737e28da14a1
__author__ = 'yanbo' HEROES = [{'dt_name': 'DT_DOTA_Unit_Hero_AntiMage', 'id': 2, 'localized_name': 'Anti-Mage', 'name': 'npc_dota_hero_antimage'}, {'dt_name': 'DT_DOTA_Unit_Hero_Axe', 'id': 3, 'localized_name': 'Axe', 'name': 'npc_dota_hero_axe'}, {'dt_name': 'DT_DOTA_Unit...
Morijarti/dota-2-heatmap
heroes.py
Python
mit
15,331
[ "CRYSTAL", "TINKER" ]
4109a803e1d8226f46b6d495173f4fab982025f9735034cbbd2b522282453813