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 clldfabric import tasks tasks.init('cdk')
clld/cdk
fabfile.py
Python
apache-2.0
47
[ "CDK" ]
effcdd2e7fac43edd5abef86331e3ab861cad46abd857587d15dce01aaa736c6
# flake8: noqa # Generated with tools/generate-isocodes.py LANGUAGES = set( ['aa', 'aaa', 'aab', 'aac', 'aad', 'aae', 'aaf', 'aag', 'aah', 'aai', 'aak', 'aal', 'aan', 'aao', 'aap', 'aaq', 'aas', 'aat', 'aau', 'aaw', 'aax', 'aaz', 'ab', 'aba', 'abb', 'abc', 'abd', 'abe', 'abf', 'abg', 'abh...
matwey/rpmlint
rpmlint/__isocodes__.py
Python
gpl-2.0
64,434
[ "ADF", "ASE", "BWA", "Elk", "MOE", "VMD", "xTB" ]
20adf674ea2d10a7ad1d84e92eff90701d15c0c74f15ff1ea0433a6fe0473617
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the G...
espressopp/espressopp
src/FixedTripleAngleList.py
Python
gpl-3.0
4,092
[ "ESPResSo" ]
de90c3561722f3a37820d5fb8d60d7e73f8568873b68bdaa1f74393e2bf53746
#!/usr/bin/env python # Author: Andrew Jewett (jewett.aij at g mail) # http://www.chem.ucsb.edu/~sheagroup # License: 3-clause BSD License (See LICENSE.TXT) # Copyright (c) 2011, Regents of the University of California # All rights reserved. """ lttree.py lttree.py is an extension of the generic ttree.py pr...
crtrott/lammps
tools/moltemplate/src/lttree.py
Python
gpl-2.0
35,110
[ "LAMMPS" ]
d59e84a7b776eca04964389bae603339144f2949cada78efc1b287faff59c222
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module provides tools for detecting sources in an image. """ import warnings from astropy.convolution import Gaussian2DKernel, convolve from astropy.stats import gaussian_fwhm_to_sigma, sigma_clipped_stats from astropy.utils.exceptions import As...
astropy/photutils
photutils/segmentation/detect.py
Python
bsd-3-clause
18,568
[ "Gaussian" ]
efcd8127c071976e8eee00cb0e3c689b64826a94937867749ce157d6390d031d
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Makes sure that all files contain proper licensing information.""" import optparse import os.path import subprocess import sys...
KitKatXperience/platform_external_chromium_org
tools/checklicenses/checklicenses.py
Python
bsd-3-clause
15,850
[ "Galaxy" ]
0d37fe4ea295bb48cb92e78b04246954c755d4f7940746258ca593074f0517b8
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
thica/ORCA-Remote
src/ORCA/utils/Platform/android/android_GetSystemUserPath.py
Python
gpl-3.0
1,028
[ "ORCA" ]
4d4e01195df369c229cbad22246f48aa1dfdf16affc8de53dd0349463f381ecc
#!/restricted/projectnb/montilab-p/personal/eric/hydra_dev/dev_env/bin/python #Copyright 2015 Daniel Gusenleitner, Stefano Monti #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.a...
montilab/Hydra
build/scripts-2.7/paired_ends_intersect.py
Python
apache-2.0
2,532
[ "Biopython" ]
9cb7e16fb3cca4bd63dee0f56352c1945b3cae7d927f901d79b6fea3e91aa062
# -*- coding: utf-8 -*- # Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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...
magnunor/hyperspy
hyperspy/_components/gaussianhf.py
Python
gpl-3.0
5,976
[ "Gaussian" ]
8e4c2c1154961e151ea15f82eecee8bc8da792cdb462a116b8ad6c973ee45e48
# coding: utf-8 # # Copyright 2012 NAMD-EMAP-FGV # # This file is part of PyPLN. You can get more information at: http://pypln.org/. # # PyPLN is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 o...
NAMD/pypln.backend
pypln/backend/workers/statistics.py
Python
gpl-3.0
2,790
[ "NAMD" ]
8a647b8b294e7d1527935ac422d8e93014bc7d3cb7ce927338d412502ba9969e
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Synced list utility classes.""" from collections.abc import MutableSequence import inspect from copy import copy class _PartialIsInstance: """Allows pa...
joaander/hoomd-blue
hoomd/data/syncedlist.py
Python
bsd-3-clause
10,180
[ "HOOMD-blue" ]
e958ad1239dc1d93a920ddab2c9ce895b3a30b6aa9eb920859130e1b10774f9b
# -*- coding: utf-8 -*- """ Authors: Gonzalo E. Espinoza-Dávalos IHE Delft 2017 Contact: g.espinoza@un-ihe.org Repository: https://github.com/gespinoza/waterpix Module: waterpix """ import os from .davgis import NetCDF_to_Raster import netCDF4 def output_nc_to_tiffs(output_nc, output_path): """ Crea...
wateraccounting/wa
Models/waterpix/wp_gdal/output_nc_to_tiffs.py
Python
apache-2.0
3,388
[ "NetCDF" ]
19f71660376fe3e5a6eeefbd9fb4bf806cd02bee307490ae57ca50f1b46b41e3
#!/bin/env python import vtk import PyQt4 from PyQt4 import QtCore, QtGui from vtk.util.colors import * from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor from ui_testbed import Ui_TestbedWindow from imgVolRender import imgVolRender class MainWindow (QtGui.QMainWindow): def __init__(self, da...
chapering/PyVolRender
vmDTIRender.py
Python
gpl-2.0
2,628
[ "VTK" ]
9841df5ea9e8bb174263e4476dec9cd0a57ff1f91607f592095f45168535756d
# coding: utf-8 import numpy as np from .. import img_as_float from ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman from .._shared.utils import _mode_deprecations def denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1, bins=10000, mode='constant', cva...
jwiggins/scikit-image
skimage/restoration/_denoise.py
Python
bsd-3-clause
11,808
[ "Gaussian" ]
b95e622a54208c272dd6ab3fdf735d1c38cb8cd8bce0b02714c5adaf5852b4c2
#! /usr/bin/env python """Test script for the bsddb C module by Roger E. Masse Adapted to unittest format and expanded scope by Raymond Hettinger """ import os, sys import copy import bsddb import dbhash # Just so we know it's imported import unittest from test import test_support class TestBSDDB(unittest.TestCase)...
leighpauls/k2cro4
third_party/python_26/Lib/test/test_bsddb.py
Python
bsd-3-clause
11,518
[ "Brian" ]
a91e528059fcb9f8e654fee1c27848da428cbe6bacc6234201c939bc9a50d147
"""The SOINN regressor.""" import isoinn2 from kde import density from __gaussian_custom import norm_pdf_multivariate from numpy import array,diag,matrix import time from pygraph.classes.graph import graph from pygraph.algorithms.accessibility import connected_components import itertools from copy import deepc...
sbxzy/pygks
build/lib/pygks/reg_inn.py
Python
bsd-3-clause
6,787
[ "NEURON" ]
d4b0e59b7c06fda533c8d8dfd743b31922d962a5cb7536b6998f23e0cf9b1c96
#from ctx_base import StandardBaseContext from .libmp.backend import basestring, exec_ from .libmp import (MPZ, MPZ_ZERO, MPZ_ONE, int_types, repr_dps, round_floor, round_ceiling, dps_to_prec, round_nearest, prec_to_dps, ComplexResult, to_pickable, from_pickable, normalize, from_int, from_float, from_str,...
lidavidm/mathics-heroku
venv/lib/python2.7/site-packages/sympy/mpmath/ctx_mp_python.py
Python
gpl-3.0
36,688
[ "Gaussian" ]
aa8d787269210c0bd39e5822c415fc0605ac9cf4acf2fe50942faad79cfcbc0e
# - Coding UTF8 - # # Networked Decision Making # Development Sites (source code): # http://code.google.com/p/global-decision-making-system/ # http://github.com/NewGlobalStrategy/NetDecisionMaking # # Demo Sites (Google App Engine) # http://netdecisionmaking.appspot.com # http://globaldecisionmaking.appspot.co...
NewGlobalStrategy/NetDecisionMaking
controllers/eventquests.py
Python
mit
25,087
[ "VisIt" ]
de26a97ba6b4b25c5970abd2a8cb37e21ce71d8c63ed279ce5f2bf25f67e47b0
""" To know more or get code samples, please visit my website: https://morvanzhou.github.io/tutorials/ Or search: 莫烦Python Thank you for supporting! """ # please note, all tutorial code are running under python3.5. # If you use the version like python2.7, please modify the code accordingly # 4 - Regressor example im...
tencrance/cool-config
ml_keras_learn/tutorials/kerasTUT/4-regressor_example.py
Python
mit
1,503
[ "VisIt" ]
3faf777872fb298486c61023985595d0ef36689b9edfb89a6f4841bf8b02ac48
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-install-agent # Author : Ricardo Graciani ######################################################################## """ Do the initial installation and configuration of a DIRAC agent """ __RCSID_...
avedaee/DIRAC
Core/scripts/dirac-install-agent.py
Python
gpl-3.0
3,120
[ "DIRAC" ]
ac5da8bb37e1748a15bce784e898ab351bb94695889314bc0cd2cb8d659b2a1a
#!/usr/bin/env python -i # Script: logplot.py # Purpose: use GnuPlot to plot two columns from a LAMMPS log file # Syntax: logplot.py log.lammps X Y # log.lammps = LAMMPS log file # X,Y = plot Y versus X where X,Y are thermo keywords # once plot appears, you are in Python interpreter, type ...
SGenheden/lammps
tools/python/logplot.py
Python
gpl-2.0
760
[ "LAMMPS" ]
1b2ee8916bee193ac1924c5948c29e590cbcfe78bed8dd456ad98451029c12df
# coding=utf-8 from __future__ import unicode_literals import re from calendar import timegm from datetime import timedelta, MAXYEAR from time import time from dateutil import relativedelta from dateutil.tz import tzlocal, tzutc from faker.utils import is_string from faker.utils.datetime_safe import date, datetime...
deanishe/alfred-fakeum
src/libs/faker/providers/date_time/__init__.py
Python
mit
82,424
[ "BWA" ]
7a516c1385f0745b2010848707f0af13d0cd4113a7f9d3ec8278697ed44b5253
# python3 # pylint: disable=g-bad-file-header # Copyright 2021 DeepMind Technologies Limited. 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...
deepmind/neural_testbed
neural_testbed/likelihood/regression.py
Python
apache-2.0
5,157
[ "Gaussian" ]
d77e61ac6d509fad335260e91b9e1dbeec194e37d44a6af5e01a3c6d90c32139
""" Downloads feeds, keys, packages and icons. """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _, logger import os, sys from zeroinstall import support from zeroinstall.support import tasks, basedir, portable_rename from zeroinstall.in...
dsqmoore/0install
zeroinstall/injector/fetch.py
Python
lgpl-2.1
24,666
[ "VisIt" ]
efc3519f1b9831ae69fbb53d370a42a093b63f43684383cea3f3e4471bd45b24
import time, socket import commands, channels, mods, irc_msg class irc: def __init__(self, host, nick, port, chans, rootpwd): self.host = host self.port = port self.nick = nick self.command_char = "!" self.init_phase = True self.auto_join = chans self.root_p...
ccshiro/mib
src/irc.py
Python
mit
9,263
[ "VisIt" ]
f213060a6f98599350f726e62370ddef43a2797256ae9c6c62224fc3916aefd5
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
Stargrazer82301/CAAPR
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/tools/regions.py
Python
mit
11,810
[ "Galaxy" ]
dab5321badff28515cef5d4b9ddd4d057319baf17c3ac164a8c84281923dad2a
__author__ = 'cos' from tactic_world import TacticWorld from strategic_world import StrategicWorld from galaxy import * from faction import Faction from gui.universeUI import UniverseUI from campaign import Campaign from agents.unit import * from agents.building import * import Tkinter, tkFileDialog from engine.so...
conan747/fallen-heaven
scripts/universe.py
Python
gpl-2.0
13,110
[ "Galaxy" ]
2b771c67309f43b074e08448e1b2c6c4bb812a9f67e81f7ac24467455fe460de
#convert Chemical Models to SBML #Moose needs to be compiled with libsbml: USE_SBML=1 import moose moose.loadModel('../genesis/Kholodenko.g','/Kholodenko') moose.writeSBML('../genesis/Kholodenko.xml','/Kholodenko')
dilawar/moose-full
moose-examples/snippets/convert_to_sbml.py
Python
gpl-2.0
216
[ "MOOSE" ]
be26b222e59b30242b7086de4b59d92d63cc703c19f774e9839091ef415240b2
from django.core.management.base import NoArgsCommand from django.contrib.sites.models import Site from pombola.feedback.models import Feedback class Command(NoArgsCommand): help = 'Report all the feedbac that needs attention' args = '' def handle_noargs(self, **options): pending = Feedback.obj...
mysociety/pombola
pombola/feedback/management/commands/feedback_report_pending.py
Python
agpl-3.0
857
[ "VisIt" ]
67c93cb51821fbb646a9d8a6ff70e823892346df61f4f91589f655023c106c43
# pylint: disable=missing-docstring import json import platform import re import time from textwrap import dedent from urllib import quote_plus # django_url is assigned late in the process of loading lettuce, # so we import this as a module, and then read django_url from # it to get the correct value import lettuce.d...
BehavioralInsightsTeam/edx-platform
common/djangoapps/terrain/ui_helpers.py
Python
agpl-3.0
21,595
[ "VisIt" ]
e1142dfba1e1c13b9f4a77c73ca66897181684dc5bc8c95f17ee0c54a92ac830
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: Kyle A Beauchamp, Ravi Ramanat...
marscher/mdtraj
MDTraj/geometry/dihedral.py
Python
lgpl-2.1
16,636
[ "MDTraj" ]
95352000584b6f6f51deebc6c87663afa6eb73c6de4523a63b6b856ebd7b00f5
from compiler import ast # XXX should probably rename ASTVisitor to ASTWalker # XXX can it be made even more generic? class ASTVisitor: """Performs a depth-first walk of the AST The ASTVisitor will walk the AST, performing either a preorder or postorder traversal depending on which method is called. ...
trivoldus28/pulsarch-verilog
tools/local/bas-release/bas,3.9/lib/python/lib/python2.3/compiler/visitor.py
Python
gpl-2.0
3,900
[ "VisIt" ]
fe171bdac89157d9cb8576778917129735945bece4f8e19fbe4f9c8f9189f11c
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
gregcaporaso/scikit-bio
skbio/io/tests/test_util.py
Python
bsd-3-clause
23,129
[ "scikit-bio" ]
d850f2ef2ff19dc2da149e63508de5696c1e6ab785a0c1a07f10eaf423960402
######################################################################## # # (C) 2015, Brian Coca <bcoca@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
ilpianista/ansible
lib/ansible/galaxy/role.py
Python
gpl-3.0
16,177
[ "Brian", "Galaxy" ]
e222c1405bf9c9bde31dbb45c8aaee1289cede3f73ce012603be7342bbd08d6c
"""Visualization helpers.""" from contextlib import contextmanager import copy import os.path as op import numpy as np from scipy import linalg from mne import read_proj, read_events, pick_types from mne.utils import verbose from mne.viz.utils import tight_layout, plt_show from ._sss import compute_good_coils from ...
kambysese/mnefun
mnefun/_viz.py
Python
bsd-3-clause
18,073
[ "Mayavi" ]
13dd8a747da2630bb884a9564a9e1cada40570801667ef2f0568266e7320b248
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import json import frappe.utils from frappe.utils import cstr, flt, getdate, cint, nowdate, add_days, get_link_to_form from frappe import ...
Zlash65/erpnext
erpnext/selling/doctype/sales_order/sales_order.py
Python
gpl-3.0
35,256
[ "VisIt" ]
d1269a9884ec0d977d8f44f141944f73d7dc814dae12e49fadb78aaba35045e1
# 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 u...
dmlc/tvm
tests/python/contrib/test_tensorrt.py
Python
apache-2.0
56,782
[ "VisIt" ]
c0dc8800b22fad0c014d6d1287dd54fc9ca78202105e23d917ba3a2b0aefc9bf
#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import re, th...
jelly/calibre
src/calibre/ebooks/metadata/sources/base.py
Python
gpl-3.0
22,537
[ "VisIt" ]
8d958c25dc86b4b115326561c298c4e78ea40472c90560fdaab4a52f718e23f3
# -*- coding: utf-8 -*- # ### # Copyright (c) 2013, Rice University # This software is subject to the provisions of the GNU Affero General # Public License version 3 (AGPLv3). # See LICENCE.txt for details. # ### """Database search utilties.""" import os import re from collections import Mapping, OrderedDict, Sequence ...
Connexions/cnx-archive
cnxarchive/search.py
Python
agpl-3.0
22,499
[ "VisIt" ]
3f3227530465a8999e9df065ec378def06abe585b5d47bb4fb4654117f1e6247
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> import pandas as pd import sys import os, os.path sys.path.append('/home/will/PatientPicker/') import LoadingTools # <codecell> redcap= LoadingTools.load_redcap_data().set_index(['Patient ID', 'VisitNum']) # <codecell> admit_no_drugs = [('Current-Dr...
JudoWill/ResearchNotebooks
AdmitExplanation.py
Python
mit
2,967
[ "VisIt" ]
3c3527bfbf4bf195ed56c1119d72452321d6b955601f0fd100577466d731ec4a
CONTAINER = [ "Docker", "Rkt", "LXC", "Vagrant", "OpenVZ", "Kubernetes" ] LICENSES = [ "Apache License, 2.0 (Apache-2.0)", "The BSD 3-Clause License", "The BSD 2-Clause License", "GNU General Public License (GPL)", "General Public License (LGPL)", "MIT License (MIT)", ...
wikkiewikkie/elizabeth
elizabeth/intd/dev.py
Python
mit
10,967
[ "GULP" ]
55101c4e29e6be65beae71f5302323fdf4dec43a466da446b2e6e4c0d06801d9
#BEGIN_HEADER import sys import os import glob import json #sys.path.insert(0, '/kb/dev_container/modules/genome_util/lib/biokbase/genome_util') import script_util #from biokbase.workspace.client import Workspace #from workspace.client import Workspace #END_HEADER class KBaseGenomeUtil: ''' Module Name: ...
plane83/genome_util
lib/biokbase/genome_util/KBaseGenomeUtilImpl.py
Python
mit
3,110
[ "BLAST" ]
fc6a3e376f030efa39b7a77901529e345a69c513cf8aa7b568e77189a35afa6a
import os import struct from io import StringIO import vstruct import vstruct.defs.pe as vs_pe from . import ordlookup IMAGE_FILE_RELOCS_STRIPPED = 0x0001 IMAGE_FILE_EXECUTABLE_IMAGE = 0x0002 IMAGE_FILE_LINE_NUMS_STRIPPED = 0x0004 IMAGE_FILE_LOCAL_SYMS_STRIPED = 0x0008 IMAGE_FILE_AGGRESSIVE_WS_TRIM = 0x00010 IMAGE_...
bat-serjo/vivisect
PE/__init__.py
Python
apache-2.0
43,419
[ "VisIt" ]
c85b25be66af9963b9c151a59a29c695b2ae7141e4d5a2651abd9a7d841b88e5
#!/usr/bin/env python # Script by Jason Kwong # In silico serotyping for L.monocytogenes import sys import logging import os import click import loguru import pkg_resources from Bio import SeqIO from lissero.scripts.Sample import Samples from lissero.scripts.Blast import Blast from lissero.scripts.Serotype import Ser...
MDU-PHL/LisSero
lissero/run_lissero.py
Python
gpl-2.0
3,616
[ "BLAST" ]
8b141be0362217c6bd3ec90befa003e30666d68ab86bb33847fc1d99f73d7c51
# Author: Travis Oliphant # 2003 # # Feb. 2010: Updated by Warren Weckesser: # Rewrote much of chirp() # Added sweep_poly() from __future__ import division, print_function, absolute_import import numpy as np from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, po...
gertingold/scipy
scipy/signal/waveforms.py
Python
bsd-3-clause
21,065
[ "Gaussian" ]
b40410f16fce2fdc5de31dc805556f5ef8b82ed9414fb68b9c37622d89f5d737
import numpy as np import dolfin from dolfin import * from mpi4py import MPI as pyMPI comm = pyMPI.COMM_WORLD mpi_comm = MPI.comm_world #mark whole boundary, inflow and outflow will overwrite) class Noslip(SubDomain): def inside(self, x, on_boundary): return on_boundary class Left(SubDomain): def ins...
BradHub/SL-SPH
hdg_test/anistropic/cg_test.py
Python
mit
2,561
[ "ParaView" ]
b94806a950df7354b576384f58ac19b2201621fb482684779d72ac806302d2fe
import logging import random import tba_config from google.appengine.ext import deferred from google.appengine.api import memcache from consts.client_type import ClientType from consts.notification_type import NotificationType from helpers.notification_sender import NotificationSender from sitevars.notifications_enab...
bdaroz/the-blue-alliance
notifications/base_notification.py
Python
mit
6,868
[ "VisIt" ]
bc82ea67e172f311921da4117f04e572ab6e6626476b878180c6768ee95ba14e
"""StrongConnectivity.py DFS-based algorithm for computing strongly connected components. If G is a graph, then - StronglyConnectedComponents(G) returns a list of its components, each represented as a subgraph of G - Condensation(G) returns a directed acyclic graph, the vertices of which are strongly connected co...
jfinkels/PADS
pads/strong_connectivity.py
Python
mit
3,363
[ "VisIt" ]
e4152c46a18656c6b8cac5c370dc074a9d06d5805b251694fcde8bcb0d420bff
""" View for Courseware Index """ # pylint: disable=attribute-defined-outside-init from datetime import datetime from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.context_processors import csrf from django.core.urlreso...
waheedahmed/edx-platform
lms/djangoapps/courseware/views/index.py
Python
agpl-3.0
22,383
[ "VisIt" ]
07697068add4b6088833bf6ce540d5b31c944c445d07dc0ae5c359c4993b1cb7
# -*- coding: utf-8 -*- """\ Visualizing Parameters in a Modern Neural Network ================================================= """ from __future__ import (absolute_import, unicode_literals, print_function) print(__doc__) __author__ = 'Alex J. Champandard' import sys import time import logging import argparse import...
gticket/scikit-neuralnetwork
examples/plot_mlp.py
Python
bsd-3-clause
5,613
[ "Gaussian" ]
1a0d0eb7602e74c188bc140cdd1a45ccad2cc6c5637a7b14290479dbb4f0a256
from rauth.service import OAuth2Service # Get a real consumer key & secret from: # https://github.com/settings/applications/new github = OAuth2Service( client_id='8ae4946cc5a9af76f6d7', client_secret='48aeb2b3c9226ae2b698eef4d7e6310473ccafa7', name='github', authorize_url='https://github.com/login/oaut...
arifgursel/rauth
examples/github-cli.py
Python
mit
1,136
[ "VisIt" ]
8905ee5995a51247f2d6f36b17d29f8fcb1a1d311e8992333cb93f78de88807f
# $HeadURL$ __RCSID__ = "$Id$" from DIRAC.Core.DISET.private.Transports import PlainTransport, SSLTransport gProtocolDict = { 'dip' : { 'transport' : PlainTransport.PlainTransport, 'sanity' : PlainTransport.checkSanity, 'delegation' : PlainTransport.dele...
Sbalbp/DIRAC
Core/DISET/private/Protocols.py
Python
gpl-3.0
636
[ "DIRAC" ]
c06abb881288003de82d4d09df1ca9590adb2e4439f02f0bc79208c64f771b74
######################################################################## # # (C) 2013, James Cammarata <jcammarata@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software ...
levenlabs/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
30,101
[ "Galaxy" ]
e28fcc90b896220d65e26a352bc7eb4fc0bfa2881bb8318a2f233b4aebbe8214
import pytest import UWG import os import math import pprint from test_base import TestBase class TestSimParam(TestBase): def test_uwg_simparam_matlab_init(self): """ Matlab value comparison for simparam initialization in main uwg """ # Initialize UWG from default initialize.uwg for 31 days simul...
saeranv/UWG_Python
tests/test_simparam.py
Python
gpl-3.0
6,096
[ "EPW" ]
33bda6e568f2bc4d046f0009fed06e0089cd2df69b9ffc4cdff8e023c36f4d1b
from matplotlib import pyplot from math import cos, sin, atan class Neuron(): def __init__(self, x, y): self.x = x self.y = y def draw(self, neuron_radius): circle = pyplot.Circle((self.x, self.y), radius=neuron_radius, fill=False) pyplot.gca().add_patch(circle) class Layer()...
brenoarosa/projeto_final
plotters/neural_net.py
Python
mit
4,008
[ "NEURON" ]
57206b9a71d635ee948e4764293e90e3f36fa8ce6da85bd4284094dea1a8108f
# --- # jupyter: # jupytext: # formats: ipynb,.pct.py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.3.3 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] ...
GPflow/GPflow
doc/source/notebooks/basics/GPLVM.pct.py
Python
apache-2.0
5,263
[ "Gaussian" ]
9f870aa3741923abfe6e72296192f5171d1ecaf091cec54521a5e31d3ac3dfb8
''' Illustrates the impact of viscosity on the assymptotical variances and convergence rate spectra. (Reproduce figure 3 from the articla, section 3-b) ''' import numpy as np import matplotlib.pyplot as plt from numpy import pi from DM93 import Uncorrelated, Foar, Soar, Gaussian from DM93 import spVarStationary, an...
martndj/DaleyMenard1993
viscosity.py
Python
gpl-3.0
1,987
[ "Gaussian" ]
bd9c8fd560db12fcf7c2341a45c4951e40fed54f95bb0dbad773292674617aa6
"Tools for working with parso ASTs." from abc import ABC, abstractmethod import io import sys import parso.python.tree import parso.tree class Visitor(ABC): """AST visitor for parso trees. This supports both simple traversal as well as editing of the tree. """ def walk(self, node): "Walk a...
sixty-north/cosmic-ray
src/cosmic_ray/ast/__init__.py
Python
mit
2,775
[ "VisIt" ]
ba1bd075d85655bf0b337bec4e18e0ed222d882f831f0a920758a8cef4ae7023
# $HeadURL: $ """ JobEfficiencyPolicy Policy that calculates the efficiency following the formula: ( completed + done ) / ( completed + done + failed ) if the denominator is smaller than 10, it does not take any decision. """ from DIRAC import S_OK from DIRAC...
Sbalbp/DIRAC
ResourceStatusSystem/Policy/JobEfficiencyPolicy.py
Python
gpl-3.0
2,430
[ "DIRAC" ]
09943d347c5897bf7d4065894b72d6b18fb20c42adca08df961800a2105f36a1
# Contributed by t0rm3nt0r to the Official L2J Datapack Project. # With some minor cleanup by DrLecter. # Visit http://forum.l2jdp.com for more details. import sys from com.l2scoria.gameserver.model.quest import State from com.l2scoria.gameserver.model.quest import QuestState from com.l2scoria.gameserver.model.quest.j...
zenn1989/scoria-interlude
L2Jscoria-Game/data/scripts/quests/18_MeetingWithTheGoldenRam/__init__.py
Python
gpl-3.0
2,398
[ "VisIt" ]
f764fcec3e6d46c3f4e63aab50c1346f6fe8bf862a308501561c507cd2b29f74
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from ..var import Var def _get_input_vars(op, only_nonconst_vars=False): """ Return type : ...
apple/coremltools
coremltools/converters/mil/mil/visitors/dot_visitor.py
Python
bsd-3-clause
6,108
[ "VisIt" ]
80c82c6306824e019d0f689c06c8aeaf24f05ed5eef8e87d2bc12200f5d497c9
# (C) British Crown Copyright 2010 - 2018, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
dkillick/iris
lib/iris/__init__.py
Python
lgpl-3.0
16,714
[ "NetCDF" ]
01962fa38a9e8c9b611348b065c160dbccbcda834a0a4fbd832ff2e9e4cbbef8
#! coding: utf-8 import copy import datetime import inspect import sys from sqlalchemy import exc from sqlalchemy import sql from sqlalchemy import testing from sqlalchemy import util from sqlalchemy.sql import column from sqlalchemy.sql.base import DedupeColumnCollection from sqlalchemy.testing import assert_raises ...
zzzeek/sqlalchemy
test/base/test_utils.py
Python
mit
94,962
[ "MOE" ]
1f053c929b78b168f548f75b1deea9a1334d55dccb1437a0828812d80bb6f2a7
import sys, os from CodeGen.visitor import * from CodeGen.irgenerator import IRGenerator from CodeGen.compiler import IRCompiler rtype = " - git-unstable" def debug(msg): if "--enable-debug" in sys.argv: print(msg) if __name__ == "__main__": if len(sys.argv) < 2: print() print("LeFT...
LFUnion/left
compiler/leftc.py
Python
mit
3,401
[ "VisIt" ]
0eedd724bc4a1a41ca82a19f0dec53f5b12056722cb8e4d1ee265d7108cb2182
from __future__ import print_function import re, sys info = """ This script collects the relevant simulation parameters and generates a set of input options for `fft_test.x` that replicate the execution of vloc_psi done in the production run. This simplifies the identification of the optimal fft tasking paramete. Us...
QEF/q-e_schrodinger
FFTXlib/gen_test_params.py
Python
gpl-2.0
3,021
[ "CRYSTAL" ]
696ca0f5e783444667618d8a1b5f5f37cbd2fac3ba6a70bc5e6593f3a9270b98
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import unittest2 as unittest import os import json from pymatgen.electronic_structure.core import Spin, Orbital, OrbitalType from pymatgen.electronic_structure.dos impo...
aykol/pymatgen
pymatgen/electronic_structure/tests/test_dos.py
Python
mit
5,487
[ "pymatgen" ]
eef4b373cf86093f93968eaaa8bbe97a431746de965e772b96b0036914a3b5b0
from __future__ import print_function from __future__ import division from past.utils import old_div import unittest import numpy as np import statsmodels.api as sm from statsmodels.genmod.tests.results.results_glm import InvGauss from IOHMM import GLM class PoissonTests(unittest.TestCase): @classmethod ...
Mogeng/IO-HMM
tests/test_GLM.py
Python
mit
67,433
[ "Gaussian" ]
b30fe330f0b40be631af8ed953f36d4a1bfeac1d49131b9ee9da3ce5b40127e0
# Copyright (c) 2006-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2011-2014 Google, Inc. # Copyright (c) 2012 Tim Hatch <tim@timhatch.com> # Copyright (c) 2013-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Brett Cannon <brett@python.org> # Copyright (c) 2014 Arun Pe...
ruchee/vimrc
vimfiles/bundle/vim-python/submodules/pylint/pylint/checkers/exceptions.py
Python
mit
23,645
[ "VisIt" ]
96a5154e6aa3b6687a3cc101bc120907dbb5268b1f7671b22d863e5e618b5424
""" Given a fasta file and a list of sequence IDs, write the whole file out but with those sequence IDs reverse complemented. """ import os import sys import argparse import gzip def stream_fasta(fastafile): """ Stream a fasta file, one read at a time. Saves memory! :param fastafile: The fasta file to st...
linsalrob/crAssphage
bin/reverse_complement.py
Python
mit
2,965
[ "BLAST" ]
75e15f789c122f3b1abdf6d687890cf96dc865fb731bb1b521972bf14ca1c2fb
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2012 Andrew Bettison <andrewb@zip.com.au> # # Copyright 2012 Dima Kukushkin <dima@kukushkin.me> ...
Vagab0nd/SiCKRAGE
lib3/github/Requester.py
Python
gpl-3.0
23,546
[ "Brian" ]
c9e38b4a0d66b5525173a935cbe20441d8a26f493903b8156f508e5409a6b7b7
# -*- coding: utf-8 -*- { '(Recipient)': '(Empfänger)', "'Cancel' will indicate an asset log entry did not occur": "'Abbrechen' zeigt an, dass ein Asset Log Eintrag nicht eingetreten ist", "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group loc...
anurag-ks/eden
languages/de.py
Python
mit
283,796
[ "VisIt" ]
21fb46317c7c45d9cd575f09ebf1b14a3f71fa42c0879a6388b0762909718153
# Illustration of Various Kernels #---------------------------------- # # This function wll illustrate how to # implement various kernels in Tensorflow. # # Linear Kernel: # K(x1, x2) = t(x1) * x2 # # Gaussian Kernel (RBF): # K(x1, x2) = exp(-gamma * abs(x1 - x2)^2) import matplotlib.pyplot as plt import numpy as np i...
benjaminoh1/tensorflowcookbook
Chapter 04/svm_kernels.py
Python
mit
5,157
[ "Gaussian" ]
baa620774c404847e15a356844fe357e0b75716c202e5367aef51f2d41d41a1a
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Brian Coca <bcoca@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1...
rosmo/ansible
lib/ansible/modules/system/systemd.py
Python
gpl-3.0
21,285
[ "Brian" ]
d4ba32067a582de74fa598ff3de398c0075e6460c63ed5e5280045af7beed0f0
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Wgrib2(CMakePackage): """The wgrib2 package functionality for interacting with, reading, ...
LLNL/spack
var/spack/repos/builtin/packages/wgrib2/package.py
Python
lgpl-2.1
987
[ "NetCDF" ]
f95f3c62085f31f06b8efef7a0555fa9bd7d56e884204d255deb0c0fff5c2f87
import pysam import re import sys regex = re.compile('[0-9]+N[0-9]+D[0-9]+N') sj = '' infile = pysam.AlignmentFile(sys.argv[1], mode="rb")#, threads=4) outfile = pysam.AlignmentFile(sys.argv[2], mode="wb", template=infile)#, threads=4) # for s in infile: s2 = s if s2.has_tag('MQ'): MQtag = s2.get_tag...
IARCbioinfo/mutect-nf
bin/correctNDN.py
Python
gpl-3.0
1,041
[ "pysam" ]
8f7e90dd27da8eeeedd61d96e59de82e0c736d426796ba4c2135d4ac540a77e2
""" Reward function prior distributions """ from __future__ import division import six import scipy.stats import numpy as np from abc import abstractmethod, ABCMeta from ...base import Model __all__ = [ 'RewardPriorBase', 'UniformRewardPrior', 'GaussianRewardPrior', ] class RewardPriorBase(six.wit...
makokal/funzo
funzo/irl/birl/priors.py
Python
mit
3,847
[ "Gaussian" ]
950db96e4aad15986b63e9ab3aeef88498b73476a6c5d13b9aff469b546a47dd
# Copyright (C) 2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
mkuron/espresso
testsuite/python/features.py
Python
gpl-3.0
1,200
[ "ESPResSo" ]
9f12eb04e022fa1a34f4d5d7e182708950644de92ebd6887fe9f0755dfe869a3
import core.modules import core.modules.module_registry from core.modules.vistrails_module import Module, ModuleError import numpy import scipy import scipy.ndimage from Array import * from Matrix import * class ArrayImaging(object): my_namespace = 'numpy|imaging' class ExtractRGBAChannel(ArrayImaging, Module): ...
Nikea/VisTrails
contrib/NumSciPy/Imaging.py
Python
bsd-3-clause
7,502
[ "Gaussian" ]
644ba2cbdec420f27aa54f66acffe98c06319f88301819502bf6f0cd644fe3fd
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
mfherbst/spack
var/spack/repos/builtin/packages/r-agimicrorna/package.py
Python
lgpl-2.1
1,873
[ "Bioconductor" ]
7ae8ae5dbd81bb5984e30d745b3cd8ff220168b2e7d66ecbf29c7f5ce1b3170e
# Authors: Denis A. Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) # Parts of this code are taken from scikit-learn import pytest import numpy as np from numpy.testing import assert_almost_equal from scipy import stats from scipy import linalg from mne.preprocessing.infomax_ import infomax from mn...
olafhauk/mne-python
mne/preprocessing/tests/test_infomax.py
Python
bsd-3-clause
6,115
[ "Gaussian" ]
ed6587ac33394ade73a2a6cede0e22a80d6c1b0c63df74afae39ac1c24a82d6a
#!/usr/bin/env python import logging import capytaine as cpt from capytaine.ui.vtk.animation import Animation logging.basicConfig(level=logging.INFO, format="%(levelname)s:\t%(message)s") # Generate the mesh of a sphere full_sphere = cpt.Sphere( radius=3, center=(0, 0, 0), # Size and positions ntheta=20, n...
mancellin/capytaine
docs/user_manual/examples/animate_free_surface.py
Python
gpl-3.0
2,141
[ "VTK" ]
1aef5f19939b4109c8581d80d058bbadfb61df046c0333b30603b40a5c249a24
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
jensreeder/scikit-bio
skbio/util/_decorator.py
Python
bsd-3-clause
2,517
[ "scikit-bio" ]
2a1d1b6dd2610690a24daf3bf985913fcf206711b2b8e261bbbecd4a2cdabacf
from flask import Flask, render_template, session, request, redirect import random app = Flask(__name__) app.secret_key = 'my_secret_key' @app.route('/') def index(): if not 'gold' in session: session['gold'] = 0 if not 'activities' in session: session['activities'] = [] return render_temp...
jiobert/python
Apatira_Authman/Assignments/flaskolympics/olympics7/server.py
Python
mit
1,018
[ "CASINO" ]
c8020bbd6c59ce8614bc1d9144be36405460dbfefd7084400133f73f6ca3c2a9
### Effective medium theory calculator. ### # encoding: utf-8 # Written by: Rasmus E. Christiansen, s072162 # Version 1.02 # Imported Packages import sys import numpy from math import sqrt,exp from ase.data import atomic_numbers, chemical_symbols from ase.units import Bohr from asap3 import FullNeighborList # Gobal ...
auag92/n2dm
Asap-3.8.4/Python/asap3/EMT2011_py.py
Python
mit
23,251
[ "ASE", "CRYSTAL" ]
a2c404ff3eee8b4adbbfce612b8e88f10a2a5e24232e59bb7ffc474b718d852e
""" Code to help with managing a TVTK data set in Pythonic ways. """ # Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. from enthought.traits.api import (HasTraits, Instance, Array, Str, Property, Dict) from enthought.tvtk.api im...
olivierverdier/sfepy
sfepy/postprocess/dataset_manager.py
Python
bsd-3-clause
9,486
[ "VTK" ]
c696c9de36d5bbe5bdc489b1a5eb8a17255b320ba66700820ed2cd7baa70d724
# -*- coding: utf-8 -*- import itertools import functools import os import re import urllib import logging import pymongo import datetime import urlparse from collections import OrderedDict import warnings import pytz from flask import request from django.core.urlresolvers import reverse from modularodm import Q from...
njantrania/osf.io
website/project/model.py
Python
apache-2.0
132,206
[ "VisIt" ]
1490ee7972ad2d83f9436c93cabfff918617586e674fc80886ddfbe73163e20e
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundati...
tiagocardosos/stoq
stoqlib/gui/test/test_commissionsearch.py
Python
gpl-2.0
4,304
[ "VisIt" ]
b66c6ba66c34287e70f596df41a82b0bd3457ea442a28d5678301c4d1823228c
# This file is part of PyEMMA. # # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER) # # PyEMMA 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 vers...
gph82/PyEMMA
pyemma/coordinates/tests/test_featurereader_and_tica_projection.py
Python
lgpl-3.0
5,619
[ "MDTraj" ]
7a9fdd44082e91398d9307f084ea54dcd85e74faa4304dbdd13ccf172a1be633
"""Regression testing framework This module will search for scripts in the same directory named XYZtest.py. Each such script should be a test suite that tests a module through PyUnit. (As of Python 2.1, PyUnit is included in the standard library as 'unittest'.) This script will aggregate all found test suites...
jhjguxin/PyCDC
Karrigell-2.3.5/test/regression.py
Python
gpl-3.0
1,292
[ "VisIt" ]
d1850acdba91158b1a74706dc98b84da44c50466f3a58456c44f5897e39a3446
#!/usr/bin/env python from mpl_toolkits.mplot3d import Axes3D import matplotlib.cm as cm from sklearn.metrics import silhouette_score, silhouette_samples from sklearn.cluster import KMeans, DBSCAN import msmexplorer as msme import mdtraj import argparse from matplotlib import pyplot as plt import numpy as np import sea...
jeiros/Scripts
AnalysisMDTraj/cluster_ligands.py
Python
mit
10,303
[ "Amber", "MDTraj" ]
a7bacec62a2fef9dd32df79ff6e7cf25a19cefa60dd54d79b748226f2394870d
""" VTK Animations Usage: vtkanim <file> --type=<type> Options: --type=<type> type that of grid (curvi, ugrid) """ import logging import numpy as np from mayavi.sources.vtk_data_source import VTKDataSource from mayavi.modules.outline import Outline from mayavi.modules.surface import Surface from mayavi.modules...
openearth/vtkanim
vtkanim/commands.py
Python
gpl-3.0
2,949
[ "Mayavi", "VTK" ]
c68ad631902e9b41c6132065e0f6bb35afb8d42b9b091c0642d5e0af01f2b4e3
# Custom library import data_reader # Standard libraries import datetime import os import sys import time # Third-party libraries import numpy as np import tensorflow as tf # Short form of Boolean value T, F = True, False class optimise_hyperparameters : def __init__(self, use_single_U = True, U = 5, U1 = 5, U...
kchng/Quantum_machine_learning
TF_HSF_CNN0f_core.py
Python
apache-2.0
28,818
[ "NEURON" ]
c8607ef443ca5d23263dd396e77cf44aaa07a381bf1acf3a3ad88302dfdcbc38
# sql/expression.py # Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Defines the base components of SQL expression trees. All components are derived ...
eunchong/build
third_party/sqlalchemy_0_7_1/sqlalchemy/sql/expression.py
Python
bsd-3-clause
168,783
[ "VisIt" ]
fad1797685569affcbb7e3e38ef4a25b992d6b3917a7ea4d81b401c18f48fa49
#!/usr/bin/python from multiprocessing import Pool import time import os import sys import argparse from Bio.Blast.Applications import NcbiblastxCommandline # Copyright(C) 2014 David Ream # Released under GPL version 3 licence. http://www.gnu.org/licenses/lgpl.html # Do not remove this comment # This exists to make...
schaefce/gene_block_evolution
blast_script.py
Python
gpl-3.0
7,010
[ "BLAST" ]
8c798e2be4d261a073f3d556784e27ef3af723b3f9fa8577c45925fa1bf918c7
import matplotlib.pyplot as plt import os from astropy.table import Table import numpy as np # setup information sources degas = Table.read(os.path.join(os.environ['SCRIPTDIR'],'degas_base.fits')) stack = Table.read('/lustre/cv/users/akepley/degas/stack_test/stack_IR6p0_mom1.fits') plotDir = os.path.join(os.environ['...
low-sky/degas
scripts/plot_fdense_vs_mstar_combined_nolim.py
Python
gpl-3.0
2,115
[ "Galaxy" ]
bc80fb405a0c86f033a13aaa186a3471e8761dd2f0d26b10bc4c188614193e7c
""" >>> import phoebe Available environment variables: * PHOEBE_ENABLE_PLOTTING=TRUE/FALSE (whether to import plotting libraries with phoebe: defaults to True) * PHOEBE_ENABLE_SYMPY=TRUE/FALSE (whether to attempt to import sympy for constraint algebra: defaults to True if sympy installed, otherwise False) * PHOEBE_ENA...
phoebe-project/phoebe2
phoebe/__init__.py
Python
gpl-3.0
38,334
[ "Gaussian" ]
ccfc0b984868f34095b77f9c0995a7f81c768c4f58ee98c7e1d0ab97237c8019
''' Just playing around with graphs and classes and stacks and queues and stuff. Nodes in a directed graph have values and children, a possibly other properties based on the situation. ''' from queue import Queue # .put() to put things in the queue and .get() to pop from the queue class Node: def __init__(self, valu...
chuckinator0/Projects
scripts/graphPlay.py
Python
gpl-3.0
2,124
[ "VisIt" ]
a7e22bfb8db7dfeaabf6288db476b802ce7a78ad3d9c666b5003188bfe8a3356
# - Coding UTF8 - # # Networked Decision Making # Development Sites (source code): # http://code.google.com/p/global-decision-making-system/ # http://github.com/NewGlobalStrategy/NetDecisionMaking # # Demo Sites (Google App Engine) # http://netdecisionmaking.appspot.com # http://globaldecisionmaking.appspot.co...
NewGlobalStrategy/NetDecisionMaking
controllers/viewquest.py
Python
mit
29,082
[ "VisIt" ]
784b51c4264f5fc107135f40d8e2457d6f3783b7905ae1a728c2b1130f24f752
from __future__ import annotations import ast from pre_commit_hooks.debug_statement_hook import Debug from pre_commit_hooks.debug_statement_hook import DebugStatementParser from pre_commit_hooks.debug_statement_hook import main from testing.util import get_resource_path def test_no_breakpoints(): visitor = Debu...
pre-commit/pre-commit-hooks
tests/debug_statement_hook_test.py
Python
mit
1,786
[ "VisIt" ]
2b4ed2cd8b8bb697f5ab1ee69a092e0a329e4a1d8eead3b1f126923b8598f1c8
""" Selected plots commonly used in astronomy and active learning. """ import pandas as pd import numpy as np import ephem import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.patches as mpatches import seaborn as sns from pandas import DataFrame from matplotlib.ticker import FuncFormatter from ...
yen223/mclass-sky
mclearn/viz.py
Python
bsd-3-clause
23,490
[ "Galaxy" ]
8111a496a735f3699c1a3ec32b8ead6432a84bb5ff65ede4aa7a79048af6ec20