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 |
|---|---|---|---|---|---|---|---|
""" This module contain solvers for all kinds of equations:
- algebraic, use solve()
- recurrence, use rsolve()
- differential, use dsolve()
- transcendental, use tsolve()
- nonlinear (numerically), use nsolve()
(you will need a good starting point)
"""
from sympy.core.sympify import s... | KevinGoodsell/sympy | sympy/solvers/solvers.py | Python | bsd-3-clause | 25,987 | [
"Gaussian"
] | 5547a6dfa085a4888e1ba5c9ebff1358ec4a71fcc9194c351fd5b72604a9968d |
# Copyright 2013 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 applicable law or ... | wavemind/gcb17ml | modules/oauth2/oauth2.py | Python | apache-2.0 | 7,305 | [
"VisIt"
] | cc89be494470b3a4d94d56b0b0eb81663404b3f0be9b83048c39757563196d02 |
"""This directory is setup with configurations to run the main functional test.
It exercises a full analysis pipeline on a smaller subset of data.
"""
import os
import subprocess
import unittest
import shutil
import contextlib
import collections
import functools
from nose import SkipTest
from nose.plugins.attrib impo... | hjanime/bcbio-nextgen | tests/test_automated_analysis.py | Python | mit | 14,792 | [
"Galaxy"
] | 7cace676d88ace72b9274eea6ef80870ec2bd8dbf765a364c936f6e8f0c7348f |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import re
i... | harterj/moose | python/peacock/utils/TerminalUtils.py | Python | lgpl-2.1 | 1,724 | [
"MOOSE"
] | d244baea8787daedf6c3320a1f709e4dc578c1d36fe6de648426403ea5949cd9 |
"""
This is only meant to add docs to objects defined in C-extension modules.
The purpose is to allow easier editing of the docstrings without
requiring a re-compile.
NOTE: Many of the methods of ndarray have corresponding functions.
If you update these docstrings, please keep also the ones in
core/fromnum... | solarjoe/numpy | numpy/add_newdocs.py | Python | bsd-3-clause | 228,872 | [
"Brian"
] | 59a1a7c821a3bd96a6f79cd2c4e0f64681c91bb875fcd2f9826ae13a33b05311 |
#!/usr/bin/env python3
import numpy as np
import numpy.core.umath_tests as ut
import json
import collections
import itertools
from . import cromermann_params
def round_to_infinity(a):
"""
Signed ceiling function that rounds negative numbers to the next integer
smaller than it.
"""
return np.copysi... | chanjr/rheedsim | src/rheedsim/crystal.py | Python | mit | 16,282 | [
"CRYSTAL"
] | 962c4268b3353e2e1be121302526ed16de928eaa7f6d99f7795f9c8e3c28d4a6 |
# -*- coding: utf-8 -*-
"""
Unit tests for instructor.api methods.
"""
import datetime
import ddt
import random
import pytz
import io
import json
import requests
import shutil
import tempfile
from urllib import quote
from django.conf import settings
from django.contrib.auth.models import User
from django.core import m... | martynovp/edx-platform | lms/djangoapps/instructor/tests/test_api.py | Python | agpl-3.0 | 201,686 | [
"VisIt"
] | 6db2216f3257882485d1725746bb383f4b410b01b04a63859e74e898f0d328f3 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import wx
import wx.lib.agw.flatnotebook as fnb
import wx.stc as stc
import keyword
import os
import datetime
import webbrowser
from tmpNoteIcon import gettmpNoteIconIcon
__author__ = 'jmg1138'
__email__ = 'jmg1138@tmpnote.com'
__copyright__ = 'Copyright tmpNote.com'
__li... | jmg1138/tmpnote | tmpNote.py | Python | gpl-3.0 | 47,026 | [
"VisIt"
] | 4249b1e96ccc1b32898d3931ede5097162f0315f6ce2207b577acf8449188fc5 |
# The name generator class returns names! And if it can't, it returns Dave or Davina.
# Python imports
import random
maleFirstNames = [
"James",
"John",
"Robert",
"Michael",
"William",
"David",
"Richard",
"Charles",
"Joseph",
"Thomas",
"Christopher",
"Daniel",
"Paul",
"Mark",
"Donald",
"George",
"Kenneth",
"Steven",
... | mjdarby/RogueDetective | names.py | Python | gpl-2.0 | 3,533 | [
"Brian"
] | b080ac2c7c18e67b2b0d9f5816aa16d3a3c695d0423fc365151f29f12110a17f |
from math import *
import random
from random import randint
import copy
class Quadrocopter:
def __init__(self, world, iconSize = 20):
self.iconSize = iconSize
self.altitude = 15
self.world = world
self.x = randint(0, int(self.world.rows * 160 - self.iconSize));
self.y = rand... | aleksandergrzyb/MISiOZagubionyRobot | Quadrocopter.py | Python | mit | 3,272 | [
"Gaussian"
] | ec684b598bfd6cee02edad66315d0edc98398563c524362cf28e1f1f28c22df6 |
import logging
import signal
import sys
import unittest
from os.path import abspath, dirname, join
from robot.running import TestSuite, TestSuiteBuilder
from robot.utils import StringIO
from robot.utils.asserts import assert_equal
from resources.runningtestcase import RunningTestCase
from resources.Listener import Li... | joongh/robotframework | utest/running/test_running.py | Python | apache-2.0 | 12,059 | [
"VisIt"
] | b6d6d5453f32e7912e8fda0f07a8ee7ea3c7e39e94d6e18d2104a95780ecddb0 |
#!/usr/bin/env python
# --------------------------------------------------------------------------
# OligoMiner
# fastqToBed.py
#
# (c) 2016 Molecular Systems Lab
# Wyss Institute for Biologically-Inspired Engineering
# Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy... | brianbeliveau/OligoMiner | fastqToBed.py | Python | mit | 4,816 | [
"Biopython"
] | 8cabfe6e763e39fa9317298bb892962b0f3ad3f3f5c9776d9070855f8ce17a77 |
from random import randint
from lettuce import *
from rapidsms.contrib.locations.models import *
from survey.features.page_objects.indicators import ListIndicatorPage, SimpleIndicatorGraphPage
from survey.models import HouseholdMemberGroup, Indicator, LocationTypeDetails, BatchQuestionOrder, EnumerationArea
from surve... | antsmc2/mics | survey/features/simple_indicator_chart_step.py | Python | bsd-3-clause | 8,553 | [
"VisIt"
] | 016c3479e00e131a4ee742baa99b962e98a5e78a922510707ba9865bb6d2ff7e |
# -*- coding: utf-8 -*-
__author__ = 'Encore Hu, <huyoo353@126.com>'
from peewee import *
import datetime
#创建数据库实例
db = SqliteDatabase('abc.db')
#建议自己的项目使用一个新的基类,Model是peewee的基类
class BaseModel(Model):
created_at = DateTimeField(default=datetime.datetime.now)
updated_at = DateTimeField(default=datetime.date... | kisspy/abcms | models.py | Python | mit | 2,472 | [
"VisIt"
] | 56b0cdcb4c5a90cc3780d6e19c9afe4d28ef2f9034b233678264200dbad20063 |
"""Filter design.
"""
from __future__ import division, print_function, absolute_import
import warnings
import numpy
from numpy import atleast_1d, poly, polyval, roots, real, asarray, allclose, \
resize, pi, absolute, logspace, r_, sqrt, tan, log10, arctan, arcsinh, \
cos, exp, cosh, arccosh, ceil, conjugate, ... | juliantaylor/scipy | scipy/signal/filter_design.py | Python | bsd-3-clause | 83,129 | [
"Gaussian"
] | e1387d23e26d07b80e1f9bbd2250d842757edbf3fa6cd0d95c337229f5aadcf1 |
#!/usr/bin/env python
from setuptools import setup
version = '0.11.0'
long_description = open('README.rst').read()
setup(name='sdctool',
version=version,
description='Streamsets DataCollector API utility',
author='phData inc',
author_email='brian@phdata.io, tony@phdata.io',
url='https:... | phdata/sdc-api-tool | setup.py | Python | apache-2.0 | 686 | [
"Brian"
] | 8bdf2b6f87dd2f4456db4e9d6a7f4ebf859e11a912908873d28453683bf47d78 |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2014 Stanford University and the Authors
#
# Authors: Carlos X. Hernandez
# Contributors: Robert McGibbon, Jason Swa... | kyleabeauchamp/mdtraj | mdtraj/core/residue_names.py | Python | lgpl-2.1 | 3,108 | [
"MDTraj"
] | ef4e9a12e162bcdc4b47b045a035bf00d99d66dec11417625df16add07c1102c |
# display_morphology.py ---
#
# Filename: display_morphology.py
# Description:
# Author:
# Maintainer:
# Created: Fri Mar 8 11:26:13 2013 (+0530)
# Version:
# Last-Updated: Sun Jun 25 15:09:55 2017 (-0400)
# By: subha
# Update #: 390
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#... | BhallaLab/moose | moose-examples/traub_2005/py/display_morphology.py | Python | gpl-3.0 | 5,878 | [
"MOOSE",
"NEURON"
] | f84cfd048c352f74a35199dedbac3a488f2af8653d32721a366551aefe2ce13c |
import glob, os
from os.path import isfile
from django.shortcuts import render, render_to_response
from django.template import RequestContext
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from giscube.config import MEDIA_ROOT, MEDIA_URL
from giscube_app.models import Docume... | MBoustani/GISCube | giscube_app/views.py | Python | apache-2.0 | 7,755 | [
"NetCDF"
] | 48537e962d1334b9bbc0b90c01cb06d664f8e7eba258e258b451500506eb5eea |
# -*- coding: utf-8 -*-
"""
/***************************************************************************
QAD Quantum Aided Design plugin
classe per la gestione delle quote
-------------------
begin : 2014-02-20
copyright : iiiii
email ... | geosim/QAD | qad_dim.py | Python | gpl-3.0 | 282,318 | [
"ESPResSo"
] | 51ad175dfd238c2f8ca7c502de7473a72eae09e07b93fa3ad95618b520d7f451 |
from lino.api.shell import *
from lino.utils.instantiator import Instantiator
def objects():
author = Instantiator(
'tables.Author', 'first_name last_name country').build
adams = author("Douglas", "Adams", "UK")
yield adams
camus = author("Albert", "Camus", "FR")
yield camus
huttner = ... | lino-framework/book | lino_book/projects/tables/fixtures/demo.py | Python | bsd-2-clause | 748 | [
"Galaxy"
] | 2fef0304c8ca5c776b77a6cfcbb756f1330870f8f03fbd1b29594da116cd0e7f |
# -*- coding: utf-8 -*-
""" Tests for student account views. """
import logging
import re
from unittest import skipUnless
from urllib import urlencode
import ddt
import mock
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import get_user_model
from django.contrib.messages... | Lektorium-LLC/edx-platform | lms/djangoapps/student_account/test/test_views.py | Python | agpl-3.0 | 37,721 | [
"VisIt"
] | 95814070d8dbbf721df2ad50f851f09d988a8fc602265ceabde61c2c3607a7e1 |
#------------------------------------------------------------------------------------------------------------
#
# This program renames the vtk plane and slice files and put them in order sequentially to be open in
# paraview
#
#
# Usage : python FOLDERNAM
#
# Author : Bruno Blais
#
#----------------------------------... | blaisb/cfdemUtilities | foam/orderSamples.py | Python | lgpl-3.0 | 988 | [
"ParaView",
"VTK"
] | 6d126f5d966762e0ce81a339d0360a4a1c8558c0491cf375df51605b125e34ba |
import glob
import sys
import cPickle
from os.path import join
import numpy as n
import astropy.io.fits as fits
import os
import astropy.cosmology as co
cosmo = co.Planck13
import astropy.units as uu
import matplotlib
#matplotlib.use('pdf')
matplotlib.rcParams['font.size']=14
import matplotlib.pyplot as p
from scipy... | JohanComparat/nbody-npt-functions | bin/bin_onePT/extra/M200c-0A-compare-previous-fits.py | Python | cc0-1.0 | 5,480 | [
"TINKER"
] | 5526eae3a19fbfff4b09d097cdd89373013301001b8228347e18d7fbf0900f52 |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
#
# 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... | bearstech/ansible | lib/ansible/modules/network/avi/avi_cluster.py | Python | gpl-3.0 | 3,776 | [
"VisIt"
] | 561888f09b4f138d7eb9baedd0203074d9e29bcf6c02d1fb06536b59b10723dd |
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import scipy.io
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz as hv
import hrl_lib.... | tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/simulation_results/Combined/hmm_crossvalidation_force_motion_20_states.py | Python | mit | 19,107 | [
"Gaussian",
"Mayavi"
] | 79938dc4f80caa09225970f1d9fcad0e821315b45d1792d0c0378e9b9af6525d |
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 7 07:28:14 2016
@author: GDM
"""
import subprocess
import os
import HTSeq
from HaSAPPy.HaSAPPY_time import *
#############################
####Programs involved in align library with Bowtie2 cheack__BEGIN
####
def load(Info):
####
def Align_library(Info,I... | gdiminin/HaSAPPy | HaSAPPy/Align.py | Python | mit | 9,609 | [
"HTSeq"
] | 6ce2704f8299ffbcafba2a0fb2ee52436ab06759b75a960e3fb9cfa99d7989c7 |
# coding: utf-8
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from lfs.catalog.models import Product, Category
from lfs.manufacturer.models import Manufacturer
class ManufacturersTestCase(TestCase):
fixtures = ['lfs_shop.xml']
def se... | pigletto/django-lfs | lfs/manufacturer/tests.py | Python | bsd-3-clause | 8,581 | [
"VisIt"
] | e2bbfadf6d1ea08f9427e6845f4de317f1cef1b57a7bb47a2d5e6dca10350655 |
########################################################################
# File: ReqProxyHandler.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/06/04 13:18:41
########################################################################
"""
:mod: RequestProxyHandler
.. module: ReqtProxyHandler
:synopsis: ReqPr... | yujikato/DIRAC | src/DIRAC/RequestManagementSystem/Service/ReqProxyHandler.py | Python | gpl-3.0 | 9,137 | [
"DIRAC"
] | 851a6deebbcfefd387267c1664508006bfd5b3c8dba2696e9c03cc0bec35c19e |
from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pandas as pd
from sqlalchemy import create_engine
from lsst.utils import getPackageDir
from .phosim_cpu_pred import CpuPred
__all__ = ['OpSimOrdering']
class OpSimOrdering(object):
"""
Code to split the Twink... | DarkEnergyScienceCollaboration/Twinkles | python/desc/twinkles/obsHistIDOrdering.py | Python | mit | 10,882 | [
"VisIt"
] | 62800795510e106f36a0d4b5b3b13e9b39240a7a3e3bfd06b5e68fac80ae72ae |
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe.model import rename_field
from frappe.modules import scrub, get_doctype_module
rename_map = {
"Opportunity": [
["enquiry_details", "items"]
],
"Quotation": [... | gangadharkadam/v5_erp | erpnext/patches/v5_0/rename_table_fieldnames.py | Python | agpl-3.0 | 6,948 | [
"VisIt"
] | 85689b591dc5a40a17b578cf5dc42e5950d9b5f0991aec2ce87731145fc6188c |
"""
Fulara Syntactic Dictionary Usage Abstract Domain
===============================
Abstract domain to be used for **input data usage analysis** using syntactic variable dependencies
with support to analyze abstract dictionary segments.
A program variable or dictionary segment
can have value *U* (used), *S* (scoped)... | caterinaurban/Lyra | src/lyra/abstract_domains/usage/fulara_usage_domain.py | Python | mpl-2.0 | 29,273 | [
"VisIt"
] | c60bf1850273cb0aa612edfcb143612e72c7d1c2f9980cb0670e2cc18a0f0105 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
import copy
import glob
import json
import os
import unittest
from pymatgen import Molecule
from pymatgen.io.qchem import QcTask, QcInput, QcOutput
from pymatgen.util.t... | aykol/pymatgen | pymatgen/io/tests/test_qchem.py | Python | mit | 81,842 | [
"pymatgen"
] | 7b2a35dadc75d93924887c9a31983464c73a00d5dca16fd94db371f439af4edb |
from __future__ import absolute_import
from __future__ import print_function
from owmeta_core.command import OWM
from owmeta_core.dataobject import ObjectProperty
from owmeta_core.custom_dataobject_property import CustomProperty
from owmeta_core.context import Context
from owmeta.neuron import Neuron
from owmeta.netw... | openworm/PyOpenWorm | examples/rmgr.py | Python | mit | 5,576 | [
"NEURON"
] | b6b8a7cd3bbb04b44fce02ceab562f5cae6eac07e0b780def50841bd8b766550 |
# Copyright (c) 2012 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | dhruvg/luigi | setup.py | Python | apache-2.0 | 2,886 | [
"VisIt"
] | 64ad5c98bddd7fefb5d962cb41ab47ceb9cb69233d68e766541503d9fdde457a |
#!/bin/env python
import time
import simtk.openmm as mm
from simtk.openmm import app
from simtk.openmm import Platform
from simtk.unit import *
import numpy as np
from mdtraj.reporters import NetCDFReporter
from smarty import *
import sys
import numpy as np
from ast import literal_eval
molname = [sys.argv[1]]
SMIRKS_... | bmanubay/open-forcefield-tools | single-molecule-property-generation/simulate_for_posterior.py | Python | mit | 3,159 | [
"MDTraj",
"OpenMM"
] | 28393f5081b50eb7b15a72be6b49e79ab297f192585531dd44e18062253775b5 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
# This file... | nuclear-wizard/moose | test/tests/time_integrators/explicit_ssp_runge_kutta/compute_gold_values.py | Python | lgpl-2.1 | 1,681 | [
"MOOSE"
] | 734f37f964e32d67a97624072f149e733d3e0b4ccf7569dd2bb47d939fb5d460 |
# -*- coding: utf-8 -*-
"""Fake data generator.
To use:
1. Install fake-factory.
pip install fake-factory
2. Create your OSF user account
3. Run the script, passing in your username (email).
::
python3 -m scripts.create_fakes --user fred@cos.io
This will create 3 fake public projects, each with 3 fake co... | Johnetordoff/osf.io | scripts/create_fakes.py | Python | apache-2.0 | 19,763 | [
"Galaxy"
] | cec77f8d088e45ab8ebd63ddc85c9d00dd46d13863334900386ac2fd76248bdb |
# 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... | eric-haibin-lin/mxnet | example/distributed_training-horovod/gluon_mnist.py | Python | apache-2.0 | 6,467 | [
"Gaussian"
] | c3bdd1e869f9db90aea7bb3e41fd489bc8646767141ce5f4cc2410a4cf3c6b65 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
from pymatgen.util.testing import PymatgenTest
from pymatgen.core.periodic_table import Element, Specie
from pymatgen.core.composition import C... | aykol/pymatgen | pymatgen/core/tests/test_structure.py | Python | mit | 48,453 | [
"pymatgen"
] | 0f790baead8406f659f1cb5d366871143619721f371cd32b95cca8465228e3a8 |
from __future__ import absolute_import
import numpy as np
from numpy.testing import assert_array_almost_equal
from numpy.testing.decorators import skipif
from skimage.filters import threshold_adaptive, gaussian
from skimage.util.apply_parallel import apply_parallel, dask_available
@skipif(not dask_available)
def te... | pratapvardhan/scikit-image | skimage/util/tests/test_apply_parallel.py | Python | bsd-3-clause | 1,976 | [
"Gaussian"
] | 04a875025817029cf24feee58adc6551d3e7d31d48345ed68d5c9873a8618bd7 |
from ast import Attribute, Subscript, Load
from .compat import PY2
from .scope import FuncScope, Flow, SourceScope, ClassScope
from .name import AssignedName, ImportedName
from .util import (np, get_expr_end, get_indexes_for_target, visitor, get_any_marked_name)
if PY2:
UNSUPPORTED_ASSIGMENTS = Subscript
else:
... | baverman/supp | supp/nast.py | Python | mit | 8,757 | [
"VisIt"
] | 7be511bc84d3296b646eb089498a14cb06d47ad151cea8f68497cb1833cd559f |
"""
Courseware views functions
"""
import logging
import urllib
import json
import cgi
from datetime import datetime
from django.utils import translation
from django.utils.translation import ugettext as _
from django.utils.translation import ungettext
from django.conf import settings
from django.core.context_process... | Shrhawk/edx-platform | lms/djangoapps/courseware/views.py | Python | agpl-3.0 | 59,857 | [
"VisIt"
] | 329ce671c144fa64e2baa9b08b6dc28384b33bbd86b63354b3f8b7a51e206c04 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import pytest
from sisl import geom
from sisl.physics import MonkhorstPack
from sisl.io.siesta.kp import *
import nump... | zerothi/sisl | sisl/io/siesta/tests/test_kp.py | Python | mpl-2.0 | 1,420 | [
"SIESTA"
] | bc7e9cd513f8de3d53d396a9c93e9673b3ce3cebd54c2a928e69c39b224fafd1 |
# -*- coding: UTF-8 -*-
"""
weblogin
by Anarchintosh @ xbmcforums
Copyleft (GNU GPL v3) 2011 onwards
this example is configured for Fantasti.cc login
See for the full guide please visit:
http://forum.xbmc.org/showthread.php?p=772597#post772597
USAGE:
in your default.py put:
import weblogin
logged_in = we... | neopack1/xbmc-adult | plugin.video.fantasticc/resources/lib/weblogin.py | Python | gpl-3.0 | 3,721 | [
"VisIt"
] | b68178cb495147d85e057c7d48b52c55dd00384035e0dd9fc402690e69d1989b |
###########################################################################
#
# Copyright 2020 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
#
# https://www.apache.org/l... | google/starthinker | dags/dv360_segmentology_dag.py | Python | apache-2.0 | 12,447 | [
"VisIt"
] | 4a46baac34f29c1ea181e1875ee4d75c76a8d170c2736fb220a02fc049dc03ac |
# Copyright (C) 2012,2013,2015
# 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... | kkreis/espressopp | src/FixedSingleList.py | Python | gpl-3.0 | 2,694 | [
"ESPResSo"
] | 48c1a953c4fb3d1d28e55b67f7c3ae611cfb9517df811bfee3408d7c4933113c |
#------------------------------------------------------------------------------
#
# This file is part of the SternheimerGW code.
#
# Copyright (C) 2010 - 2018
# Henry Lambert, Martin Schlipf, and Feliciano Giustino
#
# SternheimerGW is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | mmdg-oxford/SternheimerGW | install/generate_makefile.py | Python | gpl-3.0 | 4,054 | [
"ESPResSo"
] | 14b867c04789d9f63d2e8223ef5c5c4918718e17f90c6897938c37d00d2fe490 |
# -*- coding: utf-8 -*-
'''
*******************************************************************
* File: writeSBML.py
* Description:
* Author: HarshaRani
* E-mail: hrani@ncbs.res.in
********************************************************************/
/**********************************... | upibhalla/moose-core | python/moose/SBML/writeSBML.py | Python | gpl-3.0 | 61,134 | [
"MOOSE"
] | ca2f24c61af5718088cc0899131d27251e6f7307cc5145acd1af32b5d7894ae1 |
import subprocess
import sys
import py
import pytest
import cfme
ROOT = py.path.local(cfme.__file__).dirpath()
MODULES = sorted(x for x in ROOT.visit("*.py") if 'test_' not in x.basename)
KNOWN_FAILURES = set(ROOT.dirpath().join(x) for x in[
'cfme/utils/ports.py', # module object
'cfme/utils/dockerbot/che... | izapolsk/integration_tests | cfme/tests/test_modules_importable.py | Python | gpl-2.0 | 1,322 | [
"VisIt"
] | 4ef587f53c39e4e3e7a9a33f394935cd75af1dbf5637a646f84adb5b7558894e |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | chemelnucfin/tensorflow | tensorflow/tools/common/public_api.py | Python | apache-2.0 | 4,947 | [
"VisIt"
] | 0eec7991143b166b532b2acda8258b02a321fbb3a4199836c8529143f73d8db2 |
# Copyright 2012 OpenStack Foundation
# 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 requ... | paninetworks/neutron | neutron/tests/unit/agent/linux/test_ip_lib.py | Python | apache-2.0 | 49,383 | [
"Brian"
] | eae0eaa7115da06f8535baf9729f1f5dead4eb2f8bd43544526dc9a50cd4d29d |
# Copyright 2008-2015 Nokia Solutions and Networks
#
# 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 l... | wojciechtanski/robotframework | src/robot/model/itemlist.py | Python | apache-2.0 | 2,752 | [
"VisIt"
] | 0e9f41fab41f1bbabc8ef0a4bfac1cce3b90a3f02a796e3e82692864fe4240f7 |
# -*- coding: utf-8 -*-
"""Some utility functions"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
#
# License: BSD (3-clause)
import atexit
from distutils.version import LooseVersion
from functools import wraps
import hashlib
import inspect
import json
... | wronk/mne-python | mne/utils.py | Python | bsd-3-clause | 75,705 | [
"Mayavi"
] | c171b51c5a127de9e2c986815a83ed066baf549a8325d532b3345844fbaf5876 |
# -*- coding: utf-8 -*-
"""Release data for the IPython project."""
#-----------------------------------------------------------------------------
# Copyright (c) 2008, IPython Development Team.
# Copyright (c) 2001, Fernando Perez <fernando.perez@colorado.edu>
# Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>... | liberorbis/libernext | env/lib/python2.7/site-packages/IPython/core/release.py | Python | gpl-2.0 | 5,491 | [
"Brian"
] | 28ce48218dd145364b94cce35690fd9fe303ac5e518a6f8aa6efd65a51526c3b |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
# Python stuff
from types import IntType
# My Stuff
from Entity import Entity
__doc__=... | NirBenTalLab/proorigami-cde-package | cde-root/usr/lib64/python2.4/site-packages/Bio/PDB/Chain.py | Python | mit | 3,724 | [
"Biopython"
] | 9ce5d214bd4ff8bdffd767dc54b961921f83c191b57057c9d2e6b380d96c8329 |
# -*- coding: utf-8 -*-
"""Ecosystem of Machine-maintained Models with Automated Analysis (EMMAA).
`EMMAA <https://emmaa.indra.bio/>`_ is a project built on top of INDRA by
the Sorger Lab at Harvard Medical School. It automatically builds knowledge
graphs around pathways/indications periodically (almost daily) using ... | pybel/pybel | src/pybel/io/emmaa.py | Python | mit | 3,874 | [
"Pybel"
] | b4c35b55ac37aa09fc6e44d44920952af0efd689ecc0f2a39368279075e686eb |
import os as os
import sys as sys
import glob as glob
import subprocess as sp
import datetime as dt
import timeit as ti
import re as re
import numpy as np
import prody as pd
import scipy.cluster.hierarchy as cluster
import matplotlib.pyplot as plt
import matplotlib as mpl
from multiprocessing import Pool, c... | rohithmohan/aesop | aesop/aesop.py | Python | gpl-3.0 | 185,987 | [
"CHARMM",
"VisIt"
] | 4a2080367db60a73a808de8c1bb30da063e83b2b720ed766afaa03599735731a |
from cis.data_io.products.AProduct import AProduct
class my_product(AProduct):
def get_file_signature(self):
return [r'cis\\-.\*\\.nc']
def create_coords(self, filenames):
from cis.data_io.netcdf import read_many_files_individually, get_metadata
from cis.data_io.Coord import Coord, Co... | duncanwp/cis_plugins | my_plugin_template.py | Python | lgpl-3.0 | 2,020 | [
"NetCDF"
] | 476be0de8cb4ec3d626bbdda50e20827a39b4d76327cc53605f69ef6840bd79b |
"""
Module holds JMX handlers implementations
Copyright 2017 BlazeMeter Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | Blazemeter/taurus | bzt/jmx/tools.py | Python | apache-2.0 | 30,218 | [
"Gaussian",
"VisIt"
] | 62edf00ccf87d3a287586c2fca9eec92158b6e22873d8d84ce96abe09f0b8516 |
"""0MQ Constant names"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013 Brian E. Granger & Min Ragan-Kelley
#
# This file is part of pyzmq
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, distributed as part... | ellisonbg/pyzmq | zmq/utils/constant_names.py | Python | lgpl-3.0 | 5,991 | [
"Brian"
] | 15ea0f5fa7a00dda888e35d9f7d667f468075a8f94c7b526402a2842e2b828e3 |
#!/usr/bin/env python
# Copyright (c) 2011 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.
"""
This module is a simple qa tool that installs extensions and tests whether the
browser crashes while visiting a list of urls.
... | robclark/chromium | chrome/test/functional/extensions.py | Python | bsd-3-clause | 17,932 | [
"VisIt"
] | 8fc2ffe92085527aa6131ef23f2a866171f52fc2a241c2bcfb146ed42e488900 |
from splinter import Browser
from django.conf import settings
from apps.authentication.models import User, UserGrade
def create_user(test_user_id, test_user_password, is_active=False):
user = User.objects.create_user(test_user_id,
test_user_id,
... | knmkr/perGENIE | pergenie/test/utils/auth.py | Python | agpl-3.0 | 660 | [
"VisIt"
] | 283d634694ab4ee9a5572b7d30626e927565a395d8b172bfda2701333aaa08a3 |
import glob
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 50) # print all rows
import os
os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files")
normalB = glob.glob("binary_position_RRBS_normal_B_cell*")
mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27... | evanbiederstedt/RRBSfun | trees/chrom_scripts/normal_chr09.py | Python | mit | 25,843 | [
"MCell"
] | ae22b1e1564d9076c3c5de219554544ade4b7c991b7ac26fb27a596dde02d957 |
# -*- coding: utf-8 -*-
"""Various text used throughout the website, e.g. status messages, errors, etc.
"""
# Status Messages
#################
# NOTE: in status messages, newlines are not preserved, so triple-quotes strings
# are ok
# Status message shown at settings page on first login
# (upon clicking primary e... | MerlinZhang/osf.io | website/language.py | Python | apache-2.0 | 7,721 | [
"VisIt"
] | a81e2fb4eea54215e397aa2957c2c72f526160e7660b3dfa25c802190893c947 |
<<<<<<< HEAD
<<<<<<< HEAD
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
"""Unittest for ipaddress module."""
import unittest
import re
import contextlib
import functools
import operator
import ipaddress
class BaseTestCase(unittest.TestCase):
# One big change in ipaddress over t... | ArcherSys/ArcherSys | Lib/test/test_ipaddress.py | Python | mit | 228,281 | [
"FEFF"
] | 6ff05f38230d39e24f29baf0858cf0c50752da70ff1b266d5f830a8d194473d3 |
import numpy as np
from ase.md.md import MolecularDynamics
class VelocityVerlet(MolecularDynamics):
def __init__(self, atoms, dt, trajectory=None, logfile=None,
loginterval=1):
MolecularDynamics.__init__(self, atoms, dt, trajectory, logfile,
loginterval... | grhawk/ASE | tools/ase/md/verlet.py | Python | gpl-2.0 | 1,040 | [
"ASE"
] | 676d5aab8322b3bc7b86427abed45dadce87bb73547512f37de0e74b56c13549 |
#!/usr/bin/env python
#
# DNSChef is a highly configurable DNS Proxy for Penetration Testers
# and Malware Analysts. Please visit http://thesprawl.org/projects/dnschef/
# for the latest version and documentation. Please forward all issues and
# concerns to iphelix [at] thesprawl.org.
#
# VERSION 0.2.1
#
# Copyright (C... | mhils/HoneyProxy | scripts/dnschef/dnschef.py | Python | mit | 25,481 | [
"VisIt"
] | e7b12020cbd909377e32c565f99ecd474b7d5c4661a7962fc8cdf12e1b763da6 |
##############################################################################
# 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... | EmreAtes/spack | var/spack/repos/builtin/packages/r-aneufinderdata/package.py | Python | lgpl-2.1 | 1,722 | [
"Bioconductor"
] | e1f713ad1c6fb72c717cd9fa664c8a77b2786f314e0d61bdf4a1d4e6e7cccf23 |
# -*- coding: utf8
"""Random Projection transformers
Random Projections are a simple and computationally efficient way to
reduce the dimensionality of the data by trading a controlled amount
of accuracy (as additional variance) for faster processing times and
smaller model sizes.
The dimensions and distribution of Ra... | alexeyum/scikit-learn | sklearn/random_projection.py | Python | bsd-3-clause | 22,132 | [
"Gaussian"
] | f914f2bcc240f418dbaea1ebe576c1b681c6f31b88780169d1279ce1dbcda74d |
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
#
"""Draw representations of organism chromosomes with added information.
These classes are meant to model the drawing of pictures of chromosomes.
Thi... | zjuchenyuan/BioWeb | Lib/Bio/Graphics/BasicChromosome.py | Python | mit | 30,768 | [
"Biopython"
] | 41a4a5145df6e80cfd90a45ffd075896a6c41ee185988b89f4a40daa78545e3a |
import numpy as np
import numpy.random as ra
from gpaw.setup import create_setup
from gpaw.xc import XC
x = 0.000001
ra.seed(8)
xc = XC('LDA')
s = create_setup('H', xc)
ni = s.ni
nii = ni * (ni + 1) // 2
D_p = 0.1 * ra.random((1, nii)) + 0.2
H_p = np.zeros(nii)
def f(x):
return x
J_pp = s.xc_correction.four_phi... | qsnake/gpaw | gpaw/test/integral4.py | Python | gpl-3.0 | 420 | [
"GPAW"
] | 542b8a9b4809a37ea7f4fe411f85be2335959ede02afabe1eb36ac6cd5f54dc9 |
# -*- coding: utf-8 -*-
#
# This file is part of EventGhost.
# Copyright © 2005-2016 EventGhost Project <http://www.eventghost.net/>
#
# EventGhost 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 versio... | WoLpH/EventGhost | eg/Classes/PluginInstall.py | Python | gpl-2.0 | 9,814 | [
"VisIt"
] | 2b8f11750255e28df7f5f64d4818967c34ff2e43630f0e964fdbd022e9784b3b |
#!/usr/bin/env python
# Copyright 2014-2021 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/cc/ccsd_lambda.py | Python | apache-2.0 | 17,685 | [
"PySCF"
] | 914c202570d6008dc630ee30d1be257fd2244c4fca2da9aba93f73895c3a3685 |
__author__ = 'Sarath'
import os
import numpy
from os import listdir
from os.path import isfile, join
import sys
import theano
import theano.tensor as T
from theano.tensor.shared_randomstreams import RandomStreams
from scipy import sparse
class Initializer(object):
def __init__(self, numpy_rng):
self.numpy_rng =... | apsarath/pyNN | util/Initializer.py | Python | apache-2.0 | 5,091 | [
"Gaussian"
] | 4628d45bef9d4b95243439d38a9889a26deb0e8c8de3276a07d23039708e2480 |
"""
Set of objects that implement different kinds of random noise generators.
"""
"""
Copyright 2010 Olivier Belanger
This file is part of pyo, a python module to help digital signal
processing script creation.
pyo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public L... | xyproto/gosignal | pyo/pyolib/randoms.py | Python | gpl-3.0 | 39,616 | [
"Gaussian"
] | 31c6413c27b4cb93e1506832c68ab8f24594d7b46f274441bdc7d48318cba1e4 |
import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
from tensorflow.contrib.layers.python import layers as tf_layers
from models.conv_lstm import basic_conv_lstm_cell
# Amount to use when lower bounding tensors
RELU_SHIFT = 1e-12
FC_LAYER_SIZE = 800
FC_LSTM_LAYER_SIZE = 800
# kernel siz... | jonasrothfuss/DeepEpisodicMemory | models/model_zoo/model_conv5_fc_lstm_800_deep_64.py | Python | mit | 9,813 | [
"Gaussian"
] | 203be747b0f619b9294b9130654c741ffd8a0acf3f2d505e8ab52d0bcbdc4355 |
import backend
rampages = 0
usj = 0
packages = 0
missions = []
r3 = []
importexport = []
timed = []
missions_base = [("Give Me Liberty", "Introduction", 0),
("Luigi's Girls", "Luigi Goterelli", 0),
("Don't Spank Ma Bitch Up", "Luigi Goterelli", 0),
("Drive Misty For ... | Skubert/GTAChecklist | iii.py | Python | mit | 7,227 | [
"CASINO",
"ESPResSo"
] | 2418be92ee0de9004352741d69b9e767fa1f88c896f70f7cd2b1b88ef700cd4d |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-admin-get-job-pilots
# Author : Stuart Paterson
########################################################################
"""
Retrieve info about pilots that have matched a given Job
"""
__RCSI... | andresailer/DIRAC | Interfaces/scripts/dirac-admin-get-job-pilots.py | Python | gpl-3.0 | 1,350 | [
"DIRAC"
] | f0b09a7e48cce2ab766271b149884f697dbfe1053d9b1495e438eefec0063cfa |
../../../../../../../share/pyshared/orca/scripts/apps/packagemanager/braille_generator.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/packagemanager/braille_generator.py | Python | gpl-3.0 | 89 | [
"ORCA"
] | 3b44dcd9ef51eea139196eb43686089ff0f0e2dfa90820666ae37e00b2e3ce89 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import moose.utils as mu
from .NeuroML import NeuroML, loadNeuroML_L123
from .NetworkML import NetworkML
from .MorphML import MorphML
from .ChannelML import ChannelML
| dilawar/moose-core | python/moose/neuroml/__init__.py | Python | gpl-3.0 | 259 | [
"MOOSE"
] | ab33c25078e757caf076953075c0b3d9d3cf072ba2b436134026f3aa065daf8b |
# The original stop words list (added in f46ffe3) was taken from
# http://www.damienvanholten.com/downloads/dutch-stop-words.txt
# and consisted of about 100 tokens.
# In order to achieve parity with some of the better-supported
# languages, e.g., English, French, and German, this original list has been
# extended with... | spacy-io/spaCy | spacy/lang/nl/stop_words.py | Python | mit | 3,091 | [
"Elk"
] | 26199e4fb54f772e7a7a0bd645c5f60bf52e6a91489f21cbebb8a444716a69ad |
# 05.06.2007, c
# last revision: 05.06.2007
input_name = '../examples/navier_stokes/stokes.py'
output_name = 'test_stokes.vtk'
from tests_basic import TestInput
class Test( TestInput ):
pass
| RexFuzzle/sfepy | tests/test_input_stokes.py | Python | bsd-3-clause | 197 | [
"VTK"
] | e3bbdfc65e59b79d624436e528ed6c5ff471451ba81d84790314658c8378a2ba |
""" Imitate a impulse response."""
import numpy as np
import measurement_chain
import calculation
def exponential_decay(duration_seconds,
db_decay,
noise_level_db,
fs,
seed=1):
""" Imitate real IR.
duration_seconds : IR du... | spatialaudio/sweep | ir_imitation.py | Python | mit | 1,167 | [
"DIRAC"
] | 29158298f50e50044d0e5c1db6dc9f25f73153a23e7ff5d83e7b02eb95ba2fba |
"""
This integration tests will perform basic operations on Echo, depending on which protocols are available.
It creates a local hierarchy, and then tries to upload, download, remove, get metadata etc
.. warn::
The storage element you test is supposed to be called 'RAL-ECHO'.
(pylint does not play friendly with c... | yujikato/DIRAC | tests/Integration/Resources/Storage/Test_Resources_Echo.py | Python | gpl-3.0 | 10,323 | [
"DIRAC"
] | 078c2d1216b21f2e56762ed86a642e729534b5f966c1902326f750dca57c9fa1 |
"""
It is used to test the MonitoringReporter.
It requires MonitoringDB which is based on elasticsearch and MQ which is optional...
CS (not strictly necessary):
Systems
{
Monitoring
{
Certification
{
Databases
{
MonitoringDB
{
Host = localhost
Port = 9200
... | arrabito/DIRAC | tests/Integration/Monitoring/Test_MonitoringReporter.py | Python | gpl-3.0 | 17,635 | [
"DIRAC"
] | c6b447772389fc20e461383104d357424464d8dbe5eb0f1bd537b32cd59b5765 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
(c) 2015 Brant Faircloth || http://faircloth-lab.org/
All rights reserved.
This code is distributed under a 3-clause BSD license. Please see
LICENSE.txt for more information.
Created on 17 April 2015 08:46 CDT (-0500)
"""
import os
import sys
import unittest
from ph... | xguse/conda-recipes-1 | recipes/phyluce/run_test.py | Python | bsd-3-clause | 3,547 | [
"BWA",
"Bowtie"
] | 01e63f11f8e4a37c5fc12775a238f0860680a46c6f4ac5cc8868db652fb4e37a |
import re
import os
import sys
import json
import time
import doctest
import textwrap
import subprocess
from nbformat import v3, v4
from datetime import datetime, date
import argparse
# Hacky solution to avoid picking up ParaView's python packages (i.e. pygments)
# that causes the notebooks to not be generated
try:
o... | BioDynaMo/biodynamo | util/demo_to_notebook.py | Python | apache-2.0 | 15,802 | [
"ParaView"
] | 3218530ee3bfeec5a6c967fe07cf97f9b4e7d0036b8e2e2ed6d1c426b2a6b6d6 |
import unittest
from test import support
import sys
import random
import math
# Used for lazy formatting of failure messages
class Frm(object):
def __init__(self, format, *args):
self.format = format
self.args = args
def __str__(self):
return self.format % self.args
# SHIFT should ma... | mancoast/CPythonPyc_test | fail/314_test_long.py | Python | gpl-3.0 | 44,811 | [
"Brian"
] | 54a05f365ebb182721969ca9d1005f697408fdcc08309b887cb6ebae71c81ea1 |
'''
Created on Aug 27, 2015
@author: kbaskaran
'''
import xml.etree.ElementTree as ET
import urllib,urllib2
import os
import re
from collections import Counter
class BlastParser:
'''
http://www.bmrb.wisc.edu/ftp/pub/bmrb/entry_directories/bmr255/bmr255.blast.xml
classdocs
'''
def getFile(self):
... | kumar-physics/bmrb | python/BlastXmlParser/BlastXmlParser.py | Python | gpl-2.0 | 2,981 | [
"BLAST"
] | da74c60f3a5c21cab6cc7a8ad065e9aeea50e0de318e007496fbd98f4ddbc69b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# VncClientHandler - A FSM managing the logic for Vnc client communication.
# @author Simon A. F. Lund
#
# Depends on:
# - proxy.protocols.rfb
# - proxy.requesthandler
# - logging
#
# Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter
... | heromod/migrid | mig/vm-proxy/deprecated/proxy/vncclienthandler.py | Python | gpl-2.0 | 8,780 | [
"Brian"
] | 25ec6c4e29d42e3eae332bd68e7e75778468a469c03114b56ce33f796378a8a6 |
#!/usr/bin/env python
##
## Biskit, a toolkit for the manipulation of macromolecular structures
## Copyright (C) 2004-2012 Raik Gruenberg & Johan Leckner
##
## 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... | ostrokach/biskit | scripts/analysis/random_complexes.py | Python | gpl-3.0 | 3,206 | [
"Amber"
] | 548945db25f4e6e28dbfd5121e7cffdaf4cf1e211b8413e0f5034fd0964f44cc |
### GRAPH ############################################################################################
# The NodeBox Graph library includes algorithms from NetworkX for
# betweenness centrality and eigenvector centrality, Connelly Barnes' implementation of
# Dijksta shortest paths (here) and the spring layout for Java... | mediafactory/yats | modules/graph/__init__.py | Python | mit | 28,524 | [
"VisIt"
] | 171edd75fe503049cc971f690b8cef202e1b1c4df5ac8f94e191ce55780b3445 |
#!/usr/bin/env python
"""
Script to generate sbatch files to run the pipeline in the Uppmax Cluster
Author: Mauricio Barrientos-Somarribas
Email: mauricio.barrientos@ki.se
Copyright 2014 Mauricio Barrientos-Somarribas
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except i... | maubarsom/meta_illumina_pipeline | scripts/create_sbatch_scripts.py | Python | apache-2.0 | 5,374 | [
"BLAST",
"BWA"
] | a9c35c31fe9ad43f4d5c5da16514a92a6eec3115225a6f4707c7a89f383325ad |
"""Test function in module."""
from os.path import join
from subprocess import CalledProcessError
import pytest
from sphinxcontrib.versioning.git import clone, GitError, IS_WINDOWS
def test_no_exclude(tmpdir, local_docs):
"""Simple test without "git rm".
:param tmpdir: pytest fixture.
:param local_doc... | Robpol86/sphinxcontrib-versioning | tests/test_git/test_clone.py | Python | mit | 8,472 | [
"VisIt"
] | 914b8cf72eb08e24580644ff21fe4326116a57bdd23194e7f2b45eabb34d6fdd |
# -*- coding:utf-8 -*-
# Copyright (c) 2015, Galaxy Authors. All Rights Reserved
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Author: wangtaize@baidu.com
# Date: 2015-04-01
from bootstrap import settings
from common import http
from galaxy import wrapper
SHO... | linyvxiang/galaxy | console/backend/src/console/cluster/views.py | Python | bsd-3-clause | 2,787 | [
"Galaxy"
] | ac7389fb35fb4721484fe2cb67e41b668c0f1e3cc314167c899009d80172b294 |
# 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... | dremio/arrow | python/pyarrow/parquet.py | Python | apache-2.0 | 39,884 | [
"VisIt"
] | e76d1398f55b0a0704c4ec597dbbc3cad5db87a4e230b033930f79b0dba3b886 |
"""
Plots log stellar mass vs. log(1+z) for each PROGRAMNAME.
"""
from lib_spm import *
#import matplotlib
#matplotlib.rcParams['agg.path.chunksize'] = 2000000
#matplotlib.rcParams.update({'font.size': 13})
##matplotlib.use('Agg')
#import matplotlib.pyplot as p
#out_dir = os.path.join('/data42s/comparat/firefly/v1_1... | JohanComparat/pySU | spm/bin_SMF/object_types_SNMEDIANALL.py | Python | cc0-1.0 | 12,660 | [
"Firefly",
"Galaxy"
] | bc2f3b9c3ab4d5d6da139d5756381f6912c6c5cc695652392932b7de4f49a10b |
"""
The EvMenu is a full in-game menu system for Evennia.
To start the menu, just import the EvMenu class from this module.
Example usage:
::
from evennia.utils.evmenu import EvMenu
EvMenu(caller, menu_module_path,
startnode="node1",
cmdset_mergetype="Replace", cmdset_priority=1,
... | jamesbeebop/evennia | evennia/utils/evmenu.py | Python | bsd-3-clause | 76,436 | [
"VisIt"
] | 11508ac13aa9bac57ed785fe645c757c8575d05cd5a7cc5cb7de80cc187d68c4 |
from .engine import Engine, _EngineHelper, logger
from .config import Config
import os
import cv2
import time
import numpy as np
import tensorflow as tf
from network import Network
class _TensorflowHelper(_EngineHelper):
"""
The TensorflowHelper is an implementation of an activation
maximization engine ... | Petr-By/qtpyvis | tools/am/tensorflow.py | Python | mit | 22,428 | [
"Gaussian"
] | 8e7a7e029e25b7f64d39ad9f7f1b8999c28385179d66ae2e24e54139bb7e6048 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.