text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
from importlib import import_module from itertools import chain import json from os import path, getcwd import os import subprocess import inspect from ..fileop import IOHelper from ...util import Utility from ..exechelper import func_exec_run # import_module can't load the following modules in the NGINX server # whi...
mainulhossain/phenoproc
app/biowl/dsl/func_resolver.py
Python
mit
14,095
[ "BWA", "Galaxy", "pysam" ]
fb7e008b6f77ce6ba8ba3c1402e7926ce6cd37a9d848020a302170cdd0534a30
from rdkit import Chem from rdkit.Chem import AllChem from rdkit import DataStructs from sklearn.naive_bayes import BernoulliNB import cPickle import glob import os import sys from pylab import save import numpy as np import pymysql import math import getpass from multiprocessing import Pool import multiprocessing impo...
lhm30/PIDGIN
ad_analysis_all.py
Python
mit
3,415
[ "RDKit" ]
bb9cad0a2c715473d15ac08b0e1e9e23c3bc4d709eb3b24cd81ffc7618bfc847
#!/usr/bin/env python ########################################################################## # # Generation of boundary representation from arbitrary geophysical # fields and initialisation for anisotropic, unstructured meshing. # # Copyright (C) 2011-2013 Dr Adam S. Candy, adam.candy@imperial.ac.uk # # ...
adamcandy/QGIS-Meshing
extras/contouring/rtopo_mask_to_stereographic.py
Python
lgpl-2.1
23,934
[ "NetCDF" ]
75bf38902fd1bdddee877092a9a131239a1ef88faeb441e78b8624d5166f3d5b
__RCSID__ = "$Id$" from DIRAC import gLogger, gConfig, S_OK from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.StorageManagementSystem.Client.StorageManagerClient import StorageManagerClient from DIRAC.Resources.Storage.StorageElement import Storag...
fstagni/DIRAC
StorageManagementSystem/Agent/StageRequestAgent.py
Python
gpl-3.0
22,625
[ "DIRAC" ]
51b3edfddf250f68025352613069cd616c0cd056ab127d30570a708aa7406405
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements representations of slabs and surfaces, as well as algorithms for generating them. If you use this module, please consider citing the following work:: R. Tran, Z. Xu, B. Radhakrishnan, D. Winston...
vorwerkc/pymatgen
pymatgen/core/surface.py
Python
mit
86,299
[ "pymatgen" ]
c2fa975de364a2c842a3fdb907cbd5561b77dfeea6440ee0f2878073493f7cb8
from kmeans import * import sys import matplotlib.pyplot as plt plt.ion() if sys.version_info.major == 3: raw_input = input def mogEM(x, K, iters, randConst=1, minVary=0): """ Fits a Mixture of K Diagonal Gaussians on x. Inputs: x: data with one data vector in each column. K: Number of G...
ouyangyike/Machine-Learning-and-Data-Mining
Mixture of Gaussian/mogEM.py
Python
mit
7,998
[ "Gaussian" ]
9739a58ca0b32be8660ddd8f5464c26777b6ee11a17e348eccf5952db5c600d5
#!/usr/bin/python # Copyright 2017 Google Inc. # 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
valentin-krasontovitsch/ansible
lib/ansible/modules/cloud/google/gcp_healthcheck.py
Python
gpl-3.0
15,347
[ "VisIt" ]
865a40a33e57d5d780df8925b555c4c9c50a7e82be1b0611de684e6d485eeba4
############################################################################## # adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD) # Simulations on HPC Resources # Copyright 2017 FU Berlin and the Authors # # Authors: Jan-Hendrik Prinz # Contributors: # # `adaptiveMD` is free software: ...
markovmodel/adaptivemd
adaptivemd/analysis/__init__.py
Python
lgpl-2.1
1,099
[ "MDTraj" ]
3a85c4ea595c622d84e50659cad62b4fefbd30949d739da72c966a93222fcc61
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest @pytest.mark.skip(reason="This is a long test") def test_ccsdtqp(): """Test CCSDTQP on Ne using RHF/cc-pVDZ orbitals""" import forte.proc.scc as scc import forte import psi4 ref_energy = -128.679025538 # from Evangelista, J. Chem. Phy...
evangelistalab/forte
tests/pytest/sparse_ci/srcc/test_ccsdtqp.py
Python
lgpl-3.0
957
[ "Psi4" ]
b1e62eb3a29943beb28fc81cf5a268051ac37df25a4bd41f4fa4dbb3a8d608a7
import os import re import jinja2 import subprocess import markdown import markdown_include import MooseDocs from MooseDocs.html2latex import Translator, BasicExtension, MooseExtension def latex_options(parser, subparser): """ Command line arguments for "latex" command. Args: parser: The main argparse pars...
vityurkiv/Ox
python/MooseDocs/commands/latex.py
Python
lgpl-2.1
6,417
[ "MOOSE" ]
9f814edf9536fe7471463bfca867d7d906d39e51c72c98ee137aa247d62ebe72
#!/usr/bin/env python #---------------------------------------------------------------------------- # # Monte Carlo simulation of the kinematic extraction with pPXF. It is useful # to determine the desired value for the BIAS keyword of the pPXF procedure. # This procedure generates a plot similar (but not identical) to...
moustakas/impy
lib/ppxf/ppxf_simulation_example.py
Python
gpl-2.0
6,151
[ "Galaxy", "Gaussian" ]
b182a81625797c6d9a6f3004b0034beaefad44e9c3fe82cd7dbbe1d42253a020
import copy from django.http.response import HttpResponse from django.utils.translation import ugettext as _ from corehq.apps.groups.models import Group from corehq.apps.reports.cache import request_cache from corehq.apps.reports.standard.cases.basic import CaseListReport from corehq.apps.api.es import CaseES from cor...
SEL-Columbia/commcare-hq
custom/bihar/reports/mch_reports.py
Python
bsd-3-clause
21,503
[ "VisIt" ]
751765acc1932a72a7ec47976cbadf72a5bd2433f9db8d053134858ae7488e88
""" Plots gaussian mixture model """ import numpy from scipy.stats import gumbel_r from scipy.stats import norm from numpy import random import os,site,sys from math import * base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) base_path="%s/src"%base_path for directory_name in os.listdir(base_path...
idoerg/BOA
scripts/plot_mixture.py
Python
gpl-3.0
2,262
[ "Gaussian" ]
100deafd87e6cd3d188c2d705bce7aa3b5141f1d304ce81d7595f772fbce6d4b
import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) README = open(os.path.join(_here, 'README.txt...
jinty/van.contactology
setup.py
Python
bsd-3-clause
836
[ "Brian" ]
84f5342265eb29c4d297586cbf7dfec5c842e8ca5a756d8a730ba6810b89e5f0
#! /usr/bin/env python # # Copyright (C) 2015-2016 Rich Lewis <rl403@cam.ac.uk> # License: 3-clause BSD """ ## skchem.core.mol Defining molecules in scikit-chem. """ import copy import rdkit.Chem import rdkit.Chem.inchi from rdkit.Chem import AddHs, RemoveHs from rdkit.Chem.rdMolDescriptors import CalcMolFormula, C...
richlewis42/scikit-chem
skchem/core/mol.py
Python
bsd-3-clause
13,323
[ "RDKit" ]
37387b57993e997498241edebcdeacf3a64319db7f5be5a117c77fb528f527e1
import numpy import vtk from .raw import points as to_vtk_points from .raw import vertices as to_vtk_vertices from .raw import polygons as to_vtk_polygons from numpy2vtk.exceptions import Numpy2VtkFormatException def mesh(points, polys, z_index=0): """ Returns the VTK-representation of a mesh that is build by ...
selaux/numpy2vtk
numpy2vtk/data/mesh.py
Python
lgpl-3.0
1,903
[ "VTK" ]
8b15bc56b8f5b606b9ce4a7e0239933ebe0ae413244274f0dda7e3d18c893cdf
## Copyright (c) 2001-2009, Scott D. Peckham ## November 2009 (converted from IDL) #----------------------------------------------------------------------- # Notes: Use the random midpoint displacement method to create # a fractal surface/landscape (due to Mandelbrot). # This can be used as initial s...
mdpiper/topoflow
topoflow/utils/midpoints.py
Python
mit
10,558
[ "Gaussian" ]
2d7d6039cfd62627390bf67f236c07a75df9627c187b0f72ca6b6eb9ebbf866c
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup if os.path.exists('README.rst'): long_description = open('README.rst').read() else: long_description = '''MolVS is a molecule validation and standardization tool, written in Python using the RDKit chemistry framework. Buildi...
mcs07/MolVS
setup.py
Python
mit
1,917
[ "RDKit" ]
f1db5efe271aa869794756e966b0055f977a32f2aad9c22baa6f2ff96158695b
#!/usr/bin/python # -*- coding: utf-8 -*- """ Ansible module to configure .deb packages. (c) 2014, Brian Coca <briancoca+ansible@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 Softwa...
jburwell/ansible-modules-extras
system/debconf.py
Python
gpl-3.0
5,359
[ "Brian" ]
d105384f4beeeb5261f0d92a777af550f97f56485f50d3cbc909488c3d4db55d
# -*- coding: utf-8 -*- """ Created on Fri Sep 30 15:20:45 2011 @author: josef """ from statsmodels.compat.python import lrange import numpy as np from scipy import stats from statsmodels.sandbox.tools.mctools import StatTestMC from statsmodels.stats.diagnostic import acorr_ljungbox from statsmodels.tsa.stattools impo...
statsmodels/statsmodels
statsmodels/sandbox/tools/try_mctools.py
Python
bsd-3-clause
1,941
[ "ADF" ]
31730f507fe3c829c3a75208a053d9bb4090af8f8b5f8776ce5088a4542067cd
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
souravbadami/oppia
core/controllers/reader_test.py
Python
apache-2.0
110,025
[ "VisIt" ]
8af0058f6c2fb29c1d4f3d824724eb05bd24ae3caf60e43ae125e6e10c0b3cf4
import numpy as np import pytest from elfi.methods import mcmc # construct a covariance matrix and calculate the precision matrix n = 5 true_cov = np.random.rand(n, n) * 0.5 true_cov += true_cov.T true_cov += n * np.eye(n) prec = np.linalg.inv(true_cov) # log multivariate Gaussian pdf def log_pdf(x): return -0....
elfi-dev/elfi
tests/unit/test_mcmc.py
Python
bsd-3-clause
2,150
[ "Gaussian" ]
9c07e093051141ba531774a82b8764565cb4f180b8ed94ee77a4c80b788da968
#!/usr/bin/env python """ Copyright (c) 2006-2014 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ class PRIORITY: LOWEST = -100 LOWER = -50 LOW = -10 NORMAL = 0 HIGH = 10 HIGHER = 50 HIGHEST = 100 class SORT_ORDER: FIRST = 0 SECOND = 1 ...
Snifer/BurpSuite-Plugins
Sqlmap/lib/core/enums.py
Python
gpl-2.0
9,285
[ "Galaxy" ]
e0176cb8cc94c983790c92f89750afdb9a58aa23d7ea806a208337b4bd607bd3
""" # lint-amnesty, pylint: disable=django-not-configured Instructor Dashboard Views """ import datetime import logging import uuid from functools import reduce from unittest.mock import patch import pytz from django.conf import settings from django.contrib.auth.decorators import login_required from django.http imp...
stvstnfrd/edx-platform
lms/djangoapps/instructor/views/instructor_dashboard.py
Python
agpl-3.0
34,219
[ "VisIt" ]
aa2825c6bfe771cb635b28939d8c195127c1abb928b6219d9453e358273f96b6
from __future__ import absolute_import, print_function import BaseHTTPServer import SimpleHTTPServer import base64 import io import json import threading import time import hashlib import os import sys import urllib2 from decimal import Decimal from optparse import OptionParser from twisted.internet import reactor ...
chris-belcher/joinmarket-clientserver
scripts/obwatch/ob-watcher.py
Python
gpl-3.0
18,029
[ "VisIt" ]
06f035fc4071fd4e2e10510d164281cc7e57667e8b4cb6bba68f468930b5ba55
# -*- 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-dialogflow-cx
tests/unit/gapic/dialogflowcx_v3beta1/test_versions.py
Python
apache-2.0
110,374
[ "Octopus" ]
445a1df933e0ab02653e1d2a0048097a6f3be9b30ce12fc6673f8f86b21dbb31
# # 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/orca/example/learn/tf/image_segmentation/image_segmentation.py
Python
apache-2.0
9,307
[ "ORCA" ]
2a3f7571a2d5c841dbdc54fd89b840c469cdf55e6332b1d121e37fe5da3a8c4f
# -*- coding: utf-8 -*- from dp_tornado.engine.schema import Table as dpTable from dp_tornado.engine.schema import Attribute as dpAttribute class ArticlesSchema(dpTable): __table_name__ = 'articles' article_id = dpAttribute.field(dpAttribute.DataType.INT, ai=True, pk=True, nn=True, un=True, comment='Articl...
why2pac/dp-tornado
dp_tornado/engine/template/bbs/schema/bbs/articles.py
Python
mit
2,558
[ "Amber" ]
fe0e7d505a293ce95e3377cfeab97462d04477053907c7f7e6f00dc9e7e63f63
# Copyright (C) 2013 by Ben Morris (ben@bendmorris.com) # Based on Bio.Nexus, copyright 2005-2008 by Frank Kauff & Cymon J. Cox # and Bio.Phylo.Newick, copyright 2009 by Eric Talevich. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file tha...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/Phylo/CDAOIO.py
Python
gpl-2.0
15,435
[ "Biopython" ]
29ce6cf951f032d9773453952e36ba1548b15eb38cf7cc0dd3137c7b1b40456c
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
anksp21/Community-Zenpacks
ZenPacks.community.NetWare/setup.py
Python
gpl-2.0
3,270
[ "VisIt" ]
1f9703346069782f00002e09b059738c190ed066a68c2577e50e58b2250e37b4
# Copyright 2006-2012 Mark Diekhans # this module is tested by pycbio/src/progs/gbff/gbffGenesToGenePred from pycbio.sys import PycbioException from Bio import SeqFeature class GbffExcept(PycbioException): pass def featHaveQual(feat, key): "does a feature have a qualifier?" return (key in feat.qualifier...
ifiddes/pycbio
pycbio/ncbi/gbff.py
Python
bsd-3-clause
6,284
[ "Biopython" ]
f9a081b8fecb47b270c4df65ca46323adbf186f9988db5864d36c5d239d947c7
"""Finds the FOF groups changed after Balrog-injection and unchanged after Balrog-injection. Author: Brian Yanny""" #!/usr/bin/env python import sys import csv if(len(sys.argv) != 3): sys.exit("Usage: python par.py matchlist outprefixname") fn=sys.argv[1] outprefix=sys.argv[2] gidlist={} gidsizelist={} fofidli...
sweverett/Balrog-GalSim
plots/ms_par.py
Python
mit
2,777
[ "Brian" ]
279a505a7afbf4398d35f58726a9f19d4850bad8f922d1c231c907c10f05af0f
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Views tests for the OSF.''' from __future__ import absolute_import import unittest import json import datetime as dt import mock import httplib as http import math import time from nose.tools import * # noqa PEP8 asserts from tests.test_features import requires_search...
sbt9uc/osf.io
tests/test_views.py
Python
apache-2.0
181,352
[ "Brian" ]
c7103b9ead7aeb45849934510dfd22e337856511c452ceca25984216689ad266
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
pmghalvorsen/gramps_branch
gramps/plugins/tool/rebuild.py
Python
gpl-2.0
3,667
[ "Brian" ]
7a2b9863da1ebe2017536b443f784fa1c1b1d78936c38d4015d5fea89decc58c
import os import time import string import random from django.core.urlresolvers import reverse from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.contrib.auth.models import User, Group from django.contrib.staticfiles.templatetags.staticfiles import static from splinter import Browser ...
erikiado/jp2_online
captura/test_views.py
Python
mit
47,333
[ "VisIt" ]
901fbced32a6caa1668976090ea97ac24170f6a96cdbde0ee1197eb801b6ccde
from asap3 import * from ase.md.verlet import VelocityVerlet from ase.lattice.cubic import FaceCenteredCubic from asap3.io.trajectory import * from numpy import * import sys, os, time from asap3.testtools import ReportTest from asap3.mpi import world debug = 0 if debug == 1: DebugOutput("makeverlet%d.log", nomaste...
auag92/n2dm
Asap-3.8.4/Test/parallel/parallelTrajectories.py
Python
mit
2,781
[ "ASE" ]
fe0153414237f3a171458589d3ac4122befd80d3f4b16dd8b485b14aadaf0722
# -*- coding: utf-8 -*- """ Created on Tue Oct 31 08:10:06 2017 @author: a002028 """ import os import sys current_path = os.path.dirname(os.path.realpath(__file__))[:-4] if current_path not in sys.path: sys.path.append(current_path) import pandas as pd import numpy as np import time import pickle import utils i...
ekostat/ekostat_calculator
core/data_handlers.py
Python
mit
96,099
[ "NetCDF", "VisIt" ]
0e6fc72b41e21f56c261e2a006d620ad16de87786b6a8485d952eb46d26126b7
# Copyright (C) 2015 Philipp Baumgaertel # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE.txt file for details. from itertools import combinations import numpy as np from scipy.misc import derivative from skgpuppy.FFNI import PropagateMome...
snphbaum/scikit-gpuppy
skgpuppy/TaylorPropagation.py
Python
bsd-3-clause
8,018
[ "Gaussian" ]
a8893b444df57cc32119de9387cb7e4020a47c7b184f2a5240e4aecf780d8467
import json import os import urllib2 filename = "../../AP_ITEM_DATASET/5.11/NORMAL_5X5/NA.json" base_match_url = "https://na.api.pvp.net/api/lol/na/v2.2/match/" api_key = "?api_key=72ed6f93-1e5d-47b3-ae92-8c4657887887" class Item: def __init__(self, item_name, id, pre_work): self.__item_name = item_name ...
drood1/Riot_API_Challenge_2
API_Challenge_2/Program.py
Python
mit
3,120
[ "CRYSTAL" ]
fea44355b18b07df8ba159fafa8658860e973d98cd039e699e9f3ea80575543d
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
capoe/espressopp.soap
src/tools/analyse.py
Python
gpl-3.0
2,814
[ "ESPResSo" ]
e5b3b6a103dfa484079f141e9e1e9a112117c855cf5685a497e24c64434ed078
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ.get('OH_SECRET', 'DEFAULT COOKIE SECRET FOR DEVELOPING') DEBUG = bool(os.environ.get('OH_DEBUG', False)) ALLOWED_HOSTS = ['*'] INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django....
acgx/ooi-hack
ooi2h/settings.py
Python
gpl-2.0
2,812
[ "MOE" ]
a6c48221788630f621a09059dd6b23bf89b6c7634382a7a4953dabeb229a142e
#!/usr/bin/env python import os from ase.io import read from ase.neb import NEB from ase.calculators.turbomole import Turbomole from ase.optimize import QuasiNewton initial = read('initial.coord') final = read('final.coord') os.system('rm -f coord; cp initial.coord coord') # Make a band consisting of 5 configs: con...
slabanja/ase
doc/ase/calculators/turbomole_ex2_diffuse_usingNEB.py
Python
gpl-2.0
694
[ "ASE", "TURBOMOLE" ]
9b6e1efafdfd59e2f7e1266073e05e3e402a9eb241a38a38d06f89f8b5551959
# # Copyright (C) 2001 greg Landrum # # unit testing code for the composite model COM server from rdkit import RDConfig import unittest from rdkit.ML.Composite import Composite from win32com.client import Dispatch from Numeric import * class TestCase(unittest.TestCase): def setUp(self): print '\n%s: '%self.sh...
rdkit/rdkit-orig
rdkit/ML/Composite/UnitTestCOMServer.py
Python
bsd-3-clause
2,592
[ "RDKit" ]
0fd79f6de4be656fdda1f227ecf37b8af1ea35f5af4c8756a0444e28ff8afaa0
#!/usr/bin/env python """ Generate The Corpus Cloud with Page Elements, to be Styled """ import jinja2 import arrow corpus = { "5Cars": "http://5cars.world", "Amethyst Grills": "http://amethystgrills.com/", "Ascension Symptoms": "http://ascension.fyi", "Astral Seed": "http://trinitysou...
trinitysoulstars/nino.movie
ninogenerator.py
Python
apache-2.0
9,332
[ "CRYSTAL" ]
67e802b32eae12a3f233baeecbd9fbc58feac0b7cb7222c3a04e5481beba9964
""" CLI options class for comictagger app """ """ Copyright 2012-2014 Anthony Beville 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 ...
2mny/mylar
lib/comictaggerlib/options.py
Python
gpl-3.0
14,932
[ "VisIt" ]
8140efcb08848549444ffb1a2d32558b4bda4c681de0e8f3c645aca71dfe00f2
# GromacsWrapper: xpm.py # Copyright (c) 2012 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ :mod:`gromacs.fileformats.convert` --- converting entries of tables =============================================================...
pslacerda/GromacsWrapper
gromacs/fileformats/convert.py
Python
gpl-3.0
7,997
[ "Gromacs" ]
bcd13cdc0fe07c6479b7133fefc8a9fb98caeba2bd89cfddc95014576415ba71
# uk.po val = {"" : "Project-Id-Version: sheltermanager\nReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\nPOT-Creation-Date: 2013-01-24 10:55+0000\nPO-Revision-Date: 2011-10-10 12:35+0000\nLast-Translator: Asalle Kim <Asaly12@ukr.net>\nLanguage-Team: Ukrainian <uk@li.org>\nMIME-Version: 1.0\nContent-Type: text/plain; ...
aubzen/sheltermanager
src/locale/locale_uk.py
Python
gpl-3.0
80,712
[ "Amber", "VisIt" ]
4b3fbabcbe333f9e684168a54ad7df10192804bb8246b9ee524190cf33185759
#------------------------------------------------------------------------------ # pycparser: c-to-c.py # # Example of using pycparser.c_generator, serving as a simplistic translator # from C to AST and back to C. # # Copyright (C) 2008-2015, Eli Bendersky # License: BSD #------------------------------------------------...
johncsnyder/SwiftKitten
pycparser/examples/c-to-c.py
Python
mit
1,578
[ "VisIt" ]
bd9958ed1a37df64ed6ebfc4d862ef8880babcff2bd1906394c5f7a0f319cd2b
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/lib/gto/test/test_int1e_pbc.py
Python
apache-2.0
1,979
[ "PySCF" ]
aaccecc4751f02fdae70a538625d854b59d761b0974b4e8b03ca5c0710409dfb
# -*- coding: utf-8 -*- # # one-neuron-with-noise.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 L...
BlueBrain/NEST
pynest/examples/one-neuron-with-noise.py
Python
gpl-2.0
1,197
[ "NEURON" ]
760c9303e39bc0b21c41993984f4ae8fc6b2f5353a2d5a260f0cdae48506163a
from __future__ import print_function import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator def glm_solvers(): predictors = ["displacement","power","weight","acceleration","year"] for solver in ["AUTO", "IRLSM", "L_BFGS", ...
nilbody/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_solvers_glm.py
Python
apache-2.0
1,311
[ "Gaussian" ]
b08c41f8cebaa495f1db87c44fb0fbdfcea506c2aaf6316f52de6ebb1dc45a35
from __future__ import (absolute_import, division, print_function) import unittest from mantid.simpleapi import logger import AbinsModules class AbinsLoadCRYSTALTest(unittest.TestCase, AbinsModules.GeneralLoadDFTTester): def tearDown(self): AbinsModules.AbinsTestHelpers.remove_output_files(list_of_names=...
dymkowsk/mantid
scripts/test/AbinsLoadCRYSTALTest.py
Python
gpl-3.0
2,060
[ "CRYSTAL" ]
f00c4c4f82168b039f02682c26f8f153cc727c2bceea664c0779704af0fd6715
# -*- coding: utf-8 -*- # Vahid Moosavi 2015 08 08 10:50 am #sevamoo@gmail.com #Chair For Computer Aided Architectural Design, ETH Zurich # Future Cities Lab #www.vahidmoosavi.com import numpy as np from matplotlib import pyplot as plt import matplotlib.gridspec as gridspec import numexpr as ne from time import tim...
shawngraham/SOMPY
sompy.py
Python
mit
50,591
[ "Gaussian" ]
053265c23bd6f35840b0aebbd269efeaae082b10fc9391ffe541692a91e35a63
# Copyright (c) 2007 The Regents of The University of Michigan # Copyright (c) 2010 The Hewlett-Packard Development Company # 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 sou...
danielpalomino/gem5
src/python/m5/stats/__init__.py
Python
bsd-3-clause
4,670
[ "VisIt" ]
1a494c58f7d60213484a7b986181781948db319be47f5763d9844e1483f1ad6b
"""Class for making requests to a ComponentMonitoring Service.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" from DIRAC.Core.Base.Client import Client, createClient @createClient("Framework/ComponentMonitoring") class ComponentMoni...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/Client/ComponentMonitoringClient.py
Python
gpl-3.0
552
[ "DIRAC" ]
b5463e068314be044d8b7518f2317ee201872bf317e949a1e177ba98f228aa86
""" DIRAC.DataManagementSystem.private package """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id"
yujikato/DIRAC
src/DIRAC/DataManagementSystem/private/__init__.py
Python
gpl-3.0
179
[ "DIRAC" ]
04eb561ae4ac83c0468142c49efe9a7d2da356c509a81854717fd895d6247765
#!/usr/bin/env python ######################################################################################### # # Spinal Cord Automatic Detection # # --------------------------------------------------------------------------------------- # Copyright (c) 2015 Polytechnique Montreal <www.neuro.polymtl.ca> # Authors: Be...
3324fr/spinalcordtoolbox
dev/sct_detect_spinalcord/sct_detect_spinalcord.py
Python
mit
23,339
[ "Gaussian" ]
6ee3283e49f1646bb3a5bd3e9f8c4a48414fc28d9ee8ea90008279ebfe89a254
""" drivers/__init__.py @copyright: (C) 2012-2017 by D. Brian Kimmel The following terms apply to all files associated with the software unless explicitly disclaimed in individual files. The authors hereby grant permission to use, copy, modify, distribute, and license this software and its documentation for any pu...
DBrianKimmel/PyHouse
Project/src/Modules/Core/Drivers/__init__.py
Python
mit
2,040
[ "Brian" ]
77b3a299f5f7f0b62aff3fe0732b358e1bb8fe62d7387fa3b25e1318d27f96fb
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
rvs/gpdb
src/test/tinc/tincrepo/mpp/models/test/sql_related/test_sql_concurrency_test_case.py
Python
apache-2.0
2,523
[ "ORCA" ]
b627892c614a930a9a87d4ca3f460867ca878ac0f68714b7764f735d01479a56
#!/usr/bin/env python """ ezgrid.py Functions for generating ROMS grid files Copyright (c)2017 University of Hawaii under the BSD-License. """ import numpy as np from datetime import datetime import netCDF4 import seapy from collections import namedtuple def create_grid(grid_file, lat, lon): """ Creat...
dalepartridge/seapy
roms/ezgrid.py
Python
mit
10,073
[ "NetCDF" ]
21a72df0957f910625cdb8c9c2b856404465e70c48aab54db15c7c45f7b3881e
from handlers.base import BaseHandler from tornado import gen import momoko import tornado.web import logging logger = logging.getLogger('kisspy.' + __name__) MAX_ADMIN_UID=2 from models import A,B,C,User, Link, Visit, Config from settings import MEDIA_ROOT import os import time import forms class BaseAdminMixin(o...
kisspy/abcms
handlers/admin.py
Python
mit
14,043
[ "VisIt" ]
12ca4b98af62cc99e9dcad52202c66ddfe478a574672254eb69d9318a18a3c12
#!/usr/bin/env python3 # # Copyright 2020 SymbiFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
SymbiFlow/sphinx-verilog-domain
docs/source/conf.py
Python
isc
3,726
[ "Amber" ]
8c77e532f051faa1b3d1f3df4c4d8e99388d4609790c13f058e64e072bcbfe6a
# Copyright 2018 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...
aselle/tensorflow
tensorflow/contrib/autograph/converters/directives.py
Python
apache-2.0
5,008
[ "VisIt" ]
d7264e1e86424c49e0d5028fed6220aeac35cf3c77df71b0f1ab24108a2f337a
#!/usr/bin/env python """kmos.gui.forms - GUI forms used by kmos.gui The classes defined here heavily draw on the interface provided by python-kiwi. In the language of underlying MVC (Model-View-Controller) pattern these classes form the controller. The view is defined through a *.glade XML file and the models are inst...
mieand/kmos
kmos/gui/forms.py
Python
gpl-3.0
52,360
[ "ASE" ]
b67db1f81649ed60c22861eafb375f0d1960db8a50d15ad672a34b82d1d8d2b3
#!/usr/bin/python # Copyright 2015 Google Inc. 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 appli...
NetworkDeviceTaxonomy/wifi_taxonomy
tests/wifi_test.py
Python
apache-2.0
12,633
[ "Galaxy" ]
50e4e27c5bcde4db09d56514685d49ee3a0ebc1192521e397bd9029577c6255d
""" Test of the classical LM model for language modelling """ from groundhog.datasets import LMIterator from groundhog.trainer.SGD_momentum import SGD as SGD_m from groundhog.trainer.SGD import SGD from groundhog.mainLoop import MainLoop from groundhog.layers import MultiLayer, \ RecurrentMultiLayer, \ Re...
vseledkin/LV_groundhog
tutorials/DT_RNN_Tut.py
Python
bsd-3-clause
14,392
[ "Gaussian" ]
3d1659a7331977117caebb2ffd87749e9efee429bf035371d7125ddb1296478b
#!/usr/bin/python3 # -*- coding: utf-8 -*- '''Pychemqt, Chemical Engineering Process simulator Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@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 Softwar...
jjgomera/pychemqt
lib/mEoS/Ethylene.py
Python
gpl-3.0
50,303
[ "Avogadro", "Jmol" ]
18f9ef83c6af04f6e9d6b81fdbd0824515ae0cf5d445d700bcddbb53d2991984
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
backmari/moose
python/chigger/tests/wireframe/points.py
Python
lgpl-2.1
1,484
[ "MOOSE", "VTK" ]
1c2904800d01985384e37984b79bcb84227a88e88e02b74cd5206accadd61afd
# -*- encoding: utf-8 -*- # # Copyright © 2012 Robert Weidlich. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this ...
funkenstrahlen/django-radioportal
radioportal/models.py
Python
bsd-3-clause
31,854
[ "Gaussian" ]
c6a46923459faa2d147231ff13578abae5d51945840fc94d124f83dd2637f88d
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re try: import simplejson as json except: import json from collections import Counter import unicodedata from time import strftime, gmtime """ 12 December 2014 for each of {body, title}: the unicodeSignature is the sequence of >ascii codepoin...
usc-isi-i2/dig-unicode
python/unicode-histogram.py
Python
apache-2.0
15,156
[ "FEFF" ]
731cc7a57790fcbe05f7af19b7250d04369323136c7c3624d648f2cc5be4a1b2
import textwrap import re # TODO - maybe get Dave's help in coming up with content? # TODO - fix up room descriptions for typos, etc. # TODO - put back in (part of) Michael's description of Dave's office # TODO - entering the stall w/deoderant should print different msg the first time you do that '''TODO - make sure ...
kkrugler/bitney-adventure
bag_engine.py
Python
apache-2.0
45,756
[ "exciting" ]
6ddcad05ec59af4420c8ac26d7802e0b3b60e69f1b526ed284069ccb8f94b7ba
""" gal v0.01.1 ga-bitbot-revived based on: ga-bitbot application / system launcher Copyright 2011 Brian Monkaba This file is part of ga-bitbot. ga-bitbot is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
iamkingmaker/ga-bitbot-revived
gal.py
Python
gpl-3.0
12,452
[ "Brian" ]
45d4e76379dc4251bf66a2f5a90b4108e0dca863e4789b15967d037e77a9b64c
import flask import os from gevent.pywsgi import WSGIServer app = flask.Flask(__name__, static_path="/unused") _basedir = os.path.join("..", os.path.dirname(__file__)) PORT=5009 """this is a simple server to facilitate developing the docs. by serving up static files from this server, we avoid the need to use a symli...
sahat/bokeh
sphinx/docserver.py
Python
bsd-3-clause
1,178
[ "VisIt" ]
8a7fee4e663154bdf1bcfb97ed97eb220d317310429acb08235fa0814ec1cf94
# (C) 2013, Markus Wildi, markus.wildi@bluewin.ch # # 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, or (at your option) # any later version. # # This program is distr...
xyficu/rts2
scripts/rts2saf/unittest/rts2_environment.py
Python
gpl-2.0
8,251
[ "VisIt" ]
dfc47376d62b5bbeeedcca9708316865435729ca70024b962b9761f4c12a2861
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
Quikling/gpdb
src/test/tinc/tinctest/models/perf/__init__.py
Python
apache-2.0
8,346
[ "VisIt" ]
f99ad94415b6df04c79f1556f0e906c61b179849eba2ab112d20293e92703048
# Author: Samuel Genheden samuel.genheden@gmail.com """ Program to make a plummed-common input file for umbrella sampling of the distance between a membrane and one or more solutes The atom indices are taken from a Gromacs index file Examples: make_plumed.py --solutes AAC1 AAC2 """ import argparse from sgenlib i...
SGenheden/Scripts
Membrane/make_plumed.py
Python
mit
1,220
[ "Gromacs" ]
b1989872dac71219a4582c5995e04cad01be508ab32354c88fb3c42d7963d32c
__author__ = 'stephen' # =============================================================================== # GLOBAL IMPORTS: import os,sys import numpy as np import argparse import mdtraj as md # =============================================================================== # LOCAL IMPORTS: HK_DataMiner_Path = os.path.r...
stephenliu1989/HK_DataMiner
hkdataminer/scripts/test_kcenters_assign.py
Python
apache-2.0
5,118
[ "MDTraj" ]
58f4e5488fa44b3885592fb54aa60856abf2f26b40a4906822d979c4770ad0ae
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2017 Alois Poettker <alois.poettker@gmx.de> # # This program is free software; you can redistribute it and/or modi...
dermoth/gramps
gramps/plugins/tool/reorderids.py
Python
gpl-2.0
28,505
[ "Brian" ]
66dab8357103fc67e343deb8330fe0afd315025144741c8310c032c319835242
######################################################################## # File : ComputingElement.py # Author : Stuart Paterson, A.T. ######################################################################## """ The Computing Element class is a base class for all the various types CEs. It serves several purpos...
petricm/DIRAC
Resources/Computing/ComputingElement.py
Python
gpl-3.0
19,093
[ "DIRAC" ]
77c8632615a6dd4c0547d4102bce8ee7da4f37c22997057a522786723904843d
######################################################################## # File: FTSDB.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/04/02 15:13:51 ######################################################################## """ :mod: FTSDB =========== .. module: FTSDB :synopsis: FTS DB .. modul...
sposs/DIRAC
DataManagementSystem/DB/FTSDB.py
Python
gpl-3.0
21,698
[ "DIRAC" ]
aec1d785608211712405fb88974bbd21f9af53e3b1cc167bd0c296c43f0f839d
from setuptools import setup, find_packages with open('README.md', 'r') as fh: long_desc = fh.read() setup( name='pybbn', version='3.2.1', author='Jee Vang', author_email='vangjee@gmail.com', packages=find_packages(exclude=('*.tests', '*.tests.*', 'tests.*', 'tests')), description='Learnin...
vangj/py-bbn
setup.py
Python
apache-2.0
1,351
[ "Gaussian" ]
55cc4bb1be4dba8f89a550df303e3e7549f4ab2b1022cf0a88e4ce2954949afa
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2022, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
qiime2/q2-feature-table
q2_feature_table/plugin_setup.py
Python
bsd-3-clause
26,276
[ "BLAST" ]
ab4bc46ffeea25ada51abf5d19c0a7a6509580fd807c07e6cbeb99b825daf7f8
# Orca # # Copyright 2010 Joanmarie Diggs, Mesar Hameed. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # ...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/laptop_keyboardmap.py
Python
gpl-3.0
4,620
[ "ORCA" ]
50f6942c23a9a8b2c593cb5e9a21ce4634857e03a6c67d3c36229ca70c45c792
import os import sys import os.path as op import pysam from bcbio.log import logger from bcbio.utils import file_exists, safe_makedir, chdir, get_perl_exports from bcbio.provenance import do from bcbio.distributed.transaction import file_transaction from bcbio.pipeline import datadict as dd def run(data): confi...
biocyberman/bcbio-nextgen
bcbio/srna/mirdeep.py
Python
mit
4,651
[ "pysam" ]
6c0fe0d3ef0e555baccf17978208730cc451cbaf73e73e232be50992a586e64f
#Copyright 2009 Almero Gouws, <14366037@sun.ac.za> """ This module provides general functions that are used by the Python based Bayesian network toolbox. """ __docformat__ = 'restructuredtext' import numpy as np import pylab def determine_observed(evidence): """ Determine which nodes are observe...
bhrzslm/uncertainty-reasoning
my_engine/others/GrMPy/lib/GrMPy/general.py
Python
mit
8,556
[ "Gaussian" ]
9626d3ac8fef9d5d2526765a24660d53b39ea6b1e1cb1fd4d090fb555a193464
# vi:sts=4:sw=4:et """Code for parsing OpenEmbedded license strings""" import ast import re from fnmatch import fnmatchcase as fnmatch class LicenseError(Exception): pass class LicenseSyntaxError(LicenseError): def __init__(self, licensestr, exc): self.licensestr = licensestr self.exc = exc ...
wwright2/dcim3-angstrom1
sources/openembedded-core/meta/lib/oe/license.py
Python
mit
3,978
[ "VisIt" ]
e9af2f8d51b08c74e40bedbee2d4af0bd467e71b1df019393461c008d09f9ba1
# # Modified based on MINDO3_Parameters.py and Slater.py in PyQuante-1.6 # """\ MINDO3.py: Dewar's MINDO/3 Semiempirical Method This program is part of the PyQuante quantum chemistry program suite. Copyright (c) 2004, Richard P. Muller. All Rights Reserved. PyQuante version 1.2 and later is covered by the modif...
gkc1000/pyscf
pyscf/semiempirical/mopac_param.py
Python
apache-2.0
13,473
[ "Gaussian", "PySCF" ]
679b383a13b25e37caad91a9cf8fd4c3865c2bc0493488542dbe9d7c218c92ba
#!/usr/bin/python """ This module specifically deals with the photometric quantities related to a Multi Gaussian Expansion models (Monnet et al. 1992, Emsellem et al. 1994). It makes use of the MGE class defined in pygme.py module. It includes the derivation of projected and deprojected photometry. WARNING: this modu...
emsellem/pygme
pygme/photMGE.py
Python
bsd-3-clause
17,400
[ "Gaussian" ]
90127eaeed970706a755bd51f3a95feac5d481a7599c31f399f74cbf4c6e1e31
# -*- coding: utf-8 -*- # # Copyright (C) 2008-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
OpenClovis/SAFplus-Availability-Scalability-Platform
src/ide/genshi/genshi/template/ast24.py
Python
gpl-2.0
17,676
[ "VisIt" ]
e2561ac756f66dac0374b9d6b95cfe3f44cad27cbfb65695d9f524762983fbd7
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
andreaso/ansible
lib/ansible/modules/network/avi/avi_gslbhealthmonitor.py
Python
gpl-3.0
6,440
[ "VisIt" ]
5db2e4e398c5a0146de2817587c70c1b225046ae5f8fced0bb3fe72ac6e0c69e
import unittest import galaxy.model.mapping as mapping class MappingTests( unittest.TestCase ): def test_basic( self ): # Start the database and connect the mapping model = mapping.init( "/tmp", "sqlite:///:memory:", create_tables=True ) assert model.engine is not None # Make some c...
jmchilton/galaxy-central
galaxy/model/mapping_tests.py
Python
mit
1,976
[ "Galaxy" ]
a55842804e0b03f98aef8e634474115e0bc7684afecdf3b0d2c9569b61df7937
../../../../../../../share/pyshared/orca/scripts/apps/notify-osd/__init__.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/notify-osd/__init__.py
Python
gpl-3.0
76
[ "ORCA" ]
6c56a4d873bf92247f8791c1f22d8cb374e6e5b1bf1390f02bc72af23aa1a3e7
# 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 option) any later version. """Migrate from 0.14 to 0.15 Revision ID: 49a4a1e3779a Revises: 057b08...
jtoppins/beaker
Server/bkr/server/alembic/versions/49a4a1e3779a_014_to_015.py
Python
gpl-2.0
6,218
[ "VisIt" ]
722f87319e6be93aab21448947030c5b03dfc51f972b2529f28e9aa59365e84a
#pylint: disable=no-name-in-module from __future__ import (absolute_import, division, print_function) from mantid.simpleapi import CrystalFieldEnergies import numpy as np import warnings def _unpack_complex_matrix(packed, n_rows, n_cols): unpacked = np.ndarray(n_rows * n_cols, dtype=complex).reshape((n_rows, n_co...
wdzhou/mantid
scripts/Inelastic/CrystalField/energies.py
Python
gpl-3.0
1,767
[ "CRYSTAL" ]
6f80281c45b495dbf454fb7d85799df86a364745869fdaff0732e8f4238ec296
# -*- coding: utf-8 -*- { '!=': '!=', '!langcode!': 'nl', '!langname!': 'Nederlands', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%...
remcoboerma/w2p_redirector
languages/nl.py
Python
lgpl-3.0
19,638
[ "Elk" ]
14202c20b2355c75307e38f9d2efe2793863278b870c9e7a5fd34fbc564f5c64
#!/usr/bin/env python #=============================================================================== # Copyright 2015 Geoscience Australia # # 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 #...
ama-jharrison/agdc
agdc/agdc/modis_ingester/__init__.py
Python
apache-2.0
5,726
[ "NetCDF" ]
0dcb14d0af5c9791ec4a71e2ee64bdfd7f0b2862a80b5a2358ad80c58c66550d
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative sampling [1]_ [2]_. The train...
kmike/gensim
gensim/models/word2vec.py
Python
gpl-3.0
72,370
[ "VisIt" ]
66122b0b4e7a42f09504b532068c07dbb2921efeb92aae1535f350dc13a653b8
#!/software/python/3.3.3/bin/python3.3 import sys import os import argparse import locations import subprocess import pickle import pwd from redhawk import * # Second version of the script for testing RAIDER. # Generates runs only; will use a seperate script for testing. ####################### # Globals: So we don...
karroje/RAIDER_eval
testing_pipeline.py
Python
gpl-3.0
33,390
[ "BLAST" ]
0e272d5df23979f8d4c3407ea637dfaa0895e1571371e57fcddca88710a9c841
""" Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3. T(n)- O(k) : k is the number of 1s present in binary re...
marcosfede/algorithms
bit/count_ones.py
Python
gpl-3.0
867
[ "Brian" ]
96f538fe735ce4bd0af147cb872183ffdb10ffc7b39f2c630c585c300b5d02de
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Lenovo, Inc. # # 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 # ...
andreaso/ansible
lib/ansible/modules/network/lenovo/cnos_conditional_command.py
Python
gpl-3.0
7,085
[ "VisIt" ]
c90376116936e9cc298be1bae2a89b2b2365f029428af91406de817764d8747e