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 |
|---|---|---|---|---|---|---|---|
import numpy
from six import string_types
from netCDF4 import Dataset
from pyproj import Proj
from trefoil.netcdf.crs import get_crs, is_geographic, PROJ4_GEOGRAPHIC
from trefoil.netcdf.utilities import get_ncattrs
from trefoil.netcdf.variable import SpatialCoordinateVariable, SpatialCoordinateVariables, DateVa... | consbio/clover | trefoil/netcdf/describe.py | Python | bsd-3-clause | 6,383 | [
"NetCDF"
] | 08cfaa6d35377454b6792b3ef5f2d34f2946a56565f91cd8d76863b324a8dd61 |
import sys as __sys
import requests as __requests
# from Bio import Seq as Seq
from Bio import SeqIO as __SeqIO
from Bio import SeqRecord as __SeqRecord
import StringIO as __StringIO
import re as __re
import pandas as __pd
import numpy as __np
__web_request_status_collection = {200: "The request was processed success... | sergpolly/GlycoMadness | ms_module.py | Python | mit | 26,357 | [
"Biopython"
] | dd0652c4fde9129eda2a26f119011355e6a8d2d37f420cbba043c8f1eb8d335f |
# -*- coding: utf-8 -*-
#
# 2015-01-06 Cornelius Kölbel <cornelius@privacyidea.org>
# The Password reset functions
#
# This code is free software; you can redistribute it and/or
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# License as published by the Free Software Foundation; eith... | wheldom01/privacyidea | privacyidea/lib/passwordreset.py | Python | agpl-3.0 | 5,765 | [
"VisIt"
] | 7a9a9f83b05a7d96dda68d8311e5d8946dcbf28a3dc157bbdd0d24864e6898cf |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import unicodedata
import numpy as np
from .. import conventions, Variable
from ..core import duck_array_ops
from ..core.pycompat import basestring, unicode_type, OrderedDict
# Special characters that are pe... | rabernat/xray | xarray/backends/netcdf3.py | Python | apache-2.0 | 4,084 | [
"NetCDF"
] | ba5360ceb1a891de577cae347a565e3c79f2d29e173eb457ceaea305ed6a4972 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""shadow_oes: custom wrapper classes of *ShadowOpticalElement* from
ShadowOui_ (was Orange-Shadow_) from SHADOW3_ project
.. note:: ShadowOpticalElement is designed as a final class, this is
why the first class, *SwOE* is a wrapper class and does not inherit
from *Shadow... | maurov/xraysloth | sloth/raytracing/shadowoui_optical_elements.py | Python | bsd-3-clause | 14,180 | [
"CRYSTAL"
] | b54da6ac87a757f283f7228ace1ea09c764a782a917ef054014780b1cbe3a739 |
# Copyright 2018 SAS Project 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 requ... | Wireless-Innovation-Forum/Spectrum-Access-System | src/harness/reference_models/tools/sim_utils.py | Python | apache-2.0 | 18,633 | [
"Gaussian"
] | 290c824429f791bd416495e6b6ba797a287fac21f1a7a80df21e775d563e0df0 |
import PythonQt
from PythonQt import QtCore, QtGui, QtUiTools
import ddapp
from ddapp import lcmUtils
from ddapp import applogic as app
from ddapp.utime import getUtime
from ddapp.timercallback import TimerCallback
import numpy as np
import math
from time import sleep
import vtkAll as vtk
from time import time
from ... | rdeits/director | src/python/ddapp/navigationpanel.py | Python | bsd-3-clause | 19,553 | [
"VTK"
] | 826e60a97b6be9d0905d2725b69e13ad456b8c8e61183cdc13c677120d8e1afa |
"""
PackageKit integration.
"""
# Copyright (C) 2010, Aleksey Lim
# See the README file for details, or visit http://0install.net.
import os, sys
import locale
import logging
from zeroinstall import _, SafeException
from zeroinstall.support import tasks, unicode
from zeroinstall.injector import download, model
_log... | dsqmoore/0install | zeroinstall/injector/packagekit.py | Python | lgpl-2.1 | 13,413 | [
"VisIt"
] | bf9657cd49d75aaf58ca0cdd34c3eee692acc69e68e7a11a792f521b9d0d51e9 |
# Copyright 2004 by Bob Bussell. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Tools to manipulate data from nmrview .xpk peaklist files.
"""
from __future__ import print_f... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/NMR/xpktools.py | Python | gpl-2.0 | 9,626 | [
"Biopython"
] | 67bbe7686068cc2c67d7d008e681d3e196888c35f48ad05ffa1e3f9bb54830ea |
import vtk
from vtk.util.vtkAlgorithm import VTKPythonAlgorithmBase
from vtk.util import numpy_support
from timeit import default_timer as timer
import logging
class FilterClassifier(VTKPythonAlgorithmBase):
"""
vtkAlgorithm with 2 inputs of vtkImageData and an output of vtkImageData
Input: Depth images
... | lucasplus/MABDI | mabdi/FilterClassifier.py | Python | bsd-3-clause | 4,012 | [
"VTK"
] | 056651de4bbac67daa8537cdde6c9c8189b660a754c670d92e130a4cea7335bd |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/friesian/example/xgb/xgb_train.py | Python | apache-2.0 | 7,611 | [
"ORCA"
] | 9da9e6a412fa6f71bd65eb5b72fbf5416873c2f5a6c12ccec33c8cb2e9861ca0 |
""" :mod: GFAL2_XROOTStorage
=================
.. module: python
:synopsis: XROOT module based on the GFAL2_StorageBase class.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
# from DIRAC
from DIRAC import gLogger
from DIRAC.Res... | yujikato/DIRAC | src/DIRAC/Resources/Storage/GFAL2_XROOTStorage.py | Python | gpl-3.0 | 4,193 | [
"DIRAC"
] | 3320861d54ad4c9d2d3258be11d09156c2b288fb43d0217904bbd9151ace2b53 |
#!/usr/bin/env python
# Copyright 2017 Informatics Matters Ltd.
#
# 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 applicab... | InformaticsMatters/pipelines | src/python/pipelines/rdkit/max_min_picker.py | Python | apache-2.0 | 7,034 | [
"RDKit"
] | 5c8eaea979ac9930aa7aed87566308b7babf845ab4368bea4e3febb904651825 |
from optparse import make_option
from optparse import OptionParser
import logging
#import os
#import sys
import contextlib
#import hashlib
import datetime
from django.core.management.base import BaseCommand
from django.conf import settings
#from django.db.models import Q
import dateutil
import netCDF4
from lizard_ne... | lizardsystem/lizard-neerslagradar | lizard_neerslagradar/management/commands/create_geotiffs.py | Python | gpl-3.0 | 2,139 | [
"NetCDF"
] | ee63c3ad740994b7c0943d75b3dc16cb19a5f4330384f5583f8901fafe3959bf |
"""
This module contains algorithms found in the literature and used extensively in
wind energy engineering as standard methods.
For more information visit:
https://www.ecn.nl/publications/ECN-C--98-096
https://webstore.iec.ch/preview/info_iec61400-1%7Bed3.0%7Den.pdf
"""
import numpy as _np
from scipy.special impo... | kikocorreoso/scikit-extremes | skextremes/models/wind.py | Python | mit | 5,243 | [
"VisIt"
] | e08caea618fc2ac0dcaeaf89b550d8899d3d5ee7d25825582122cfc212fd2cac |
__author__ = 'krier'
from bein import *
from bein.util import *
import sys, os, re, json, shutil, gzip, tarfile, bz2, pickle, urllib, time
from bbcflib.common import set_file_descr
def listdir_fullpath(d):
return [os.path.join(d, f) for f in os.listdir(d)]
@program
def copy_here(file):
shortname=os.path.basen... | ikrier/leukemia_analysis | testing_bein.py | Python | gpl-3.0 | 1,440 | [
"BWA"
] | 1b4052688abecc99968418cb76befe4678220c6cb3f1fc17c87e3a4a148848bd |
# Copyright (c) 2008-2009 Junior (Frederic) FLEURIAL MONFILS
#
# This file is part of PyAnalyzer.
#
# PyAnalyzer 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
# (a... | jffm/pyanalyzer | core/visitor.py | Python | gpl-3.0 | 1,720 | [
"VisIt"
] | 38dae74360d34f4e6fb1d98895620db088d3dc44eecd7c7436fd058daff00888 |
""" This plugin opens WhatsApp Web in the browser, and can send messages to numbers that are not scheduled
"""
__kupfer_name__ = _("WhatsApp Web")
__kupfer_sources__ = ()
__kupfer_actions__ = ("WhatsApp",)
__description__ = _("""Open a new number in WhatsApp Web
The number format must respect:
"Country Code" + "Area... | engla/kupfer | kupfer/plugin/whatsapp.py | Python | gpl-3.0 | 1,209 | [
"VisIt"
] | 53dc9f8e6abd302cbda4f421b466382fa28133f66830e408a6ee7ac3f6938b82 |
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | DIRACGrid/VMDIRAC | docs/source/conf.py | Python | gpl-3.0 | 8,992 | [
"DIRAC"
] | dc548310ca8e722a61793c0c8a0e60a5a95e2b26591e9f4cfe66ca56a4cf329e |
from twisted.internet import reactor
from octopus.runtime import *
from octopus import runtime as r
from octopus.sequence.util import Runnable, Pausable, Cancellable, Dependent
class MyD (Dependent):
def __init__ (self, i):
Dependent.__init__(self)
self.i = i
def _run (self):
print "Dep %d Run" % self.i
... | rasata/octopus | examples/test_dep.py | Python | mit | 895 | [
"Octopus"
] | aab3d25e135778c30f2e8b474892fb9887fb6778578f0ae53390a834fc3606af |
from util import *
from InputParameters import InputParameters
from MooseObject import MooseObject
class Tester(MooseObject):
@staticmethod
def validParams():
params = MooseObject.validParams()
# Common Options
params.addRequiredParam('type', "The type of test of Tester to create for this test.")
... | shanestafford/moose | python/TestHarness/testers/Tester.py | Python | lgpl-2.1 | 8,282 | [
"VTK"
] | 6022398d64a311231b56661be07a6823dbd42527cca6eef651eb6faf3b6f6e5f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------#
"""
Author: Tong Zhang
Created Time: 09:26, Jun. 29, 2015
Scan utilities: (p.s.) separated from felutils.py
1 correlation analyzer:
1.1: ScanAnalyzer
"""
import wx
import epics
import tim... | Archman/felapps | felapps/utils/scanutils.py | Python | mit | 56,003 | [
"Gaussian"
] | fda7fd0aecd3c2512af32d5fa623031e10c53694e261beb557c7f740e1a0cd1f |
#!/usr/bin/env python
'''
Master load script that is driven by a dictionary of campaigns and the
commands that load them. This dictionary also drives the campaigns
served by a deployment of stoqs via the stoqs/campaigns.py file.
Mike McCann
MBARI 5 September 2015
'''
import os
import sys
app_dir = os.path.abspath(o... | duane-edgington/stoqs | stoqs/loaders/load.py | Python | gpl-3.0 | 42,713 | [
"NetCDF",
"VisIt"
] | fc491bc4c4e37d2d36ecd6e5653b4b8739a81e46b8ac2a333433425a9d63b769 |
"""
Deprecated v1 API client. To be removed once v2 is at parity with v1.
"""
from __future__ import absolute_import
import base64
import re
import os
import six
import sys
import urllib
import warnings
if six.PY3:
from io import StringIO
basestring = str
url_path_quote = urllib.parse.quote
else:
fro... | leonardoo/dropbox-sdk-python | dropbox/client.py | Python | mit | 67,853 | [
"VisIt"
] | db95284c57a233e93dc30a4ab3c5922848aa1ffc8de735dd59571fd73e074102 |
#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from copy import copy
from datetime import datetime
from .base import MessageBase
from .outgoing import OutgoingMessage
from .error import ErrorMessage
class IncomingMessage(MessageBase):
"""
This class represents, naturally, an incoming message. It is prob... | dimagi/rapidsms | lib/rapidsms/messages/incoming.py | Python | bsd-3-clause | 3,362 | [
"exciting"
] | 3e84402a9bdbf0304fab49776baf0955d641e4d25b79670aa488696294a4e182 |
from sys import exit
import os
import glob
import numpy as np
from scipy import integrate
from astropy.table import Table
from astropy.io import votable as votable_routines
from fortesfit import FortesFit_Settings
""" A module that handles filter registration and management in FORTES-AGN """
# *********************... | vikalibrate/FortesFit | fortesfit/FortesFit_Filters.py | Python | mit | 9,841 | [
"exciting"
] | 99cac905bd24bec8156a240466e94d37f4b62bc3f1cd21ac8c96d9052aeff4fa |
# coding: utf-8
"""Parser for Specification section of an MDN raw page."""
from .html import HnElement, HTMLElement, HTMLText
from .kumascript import (
KumaScript, KumaVisitor, SpecName, Spec2, kumascript_grammar)
from .utils import join_content
from .visitor import Extractor
class SpecSectionExtractor(Extractor... | renoirb/browsercompat | mdn/specifications.py | Python | mpl-2.0 | 11,627 | [
"VisIt"
] | 8c1b1f7339622f5918ece652c2f336d2118460af7bc474d16fda29e63f4cb979 |
"""
Module for distributing synapses at the subcellular level in networks
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
from builtins import zip
from builtins import range
from builtins import round
from buil... | Neurosim-lab/netpyne | netpyne/network/subconn.py | Python | mit | 17,291 | [
"NEURON"
] | 31d2949914e1426ebc19ce09ad31d8a94b9fcf5c3b35bfa3a9181f426d84adad |
"""
This file contains functions concerned with solving for decoders
or other types of weight matrices.
The idea is that as we develop new methods to find decoders either more
quickly or with different constraints (e.g., L1-norm regularization),
the associated functions will be placed here.
"""
import numpy as np
# ... | jaberg/nengo | nengo/decoders.py | Python | mit | 4,897 | [
"Gaussian"
] | 6e9fc0a90af4c0513d9edce2a0e1d8dcd467faf1cf573cf3664eb1a9af206907 |
import cv2
import numpy as np
import sys
from collections import OrderedDict
import matplotlib.pyplot as plt
from gaussian_pyramid import *
from lucas_kanade import *
def backwarp(img, flow):
h, w = flow.shape[:2]
flow_map = -flow.copy()
flow_map[:,:,0] += np.arange(w)
flow_map[:,:,1] += np.arange(h)[... | rohithredd94/Computer-Vision-using-OpenCV | Warping-using-LK/flow_warping.py | Python | mit | 3,807 | [
"Gaussian"
] | 381990cbfeecc8ca301f509cc7630f244b3a751dff4fecbb37a0e6f1ca43c039 |
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from __future__ import (absolute_import, divi... | mganeva/mantid | scripts/AbinsModules/LoadDMOL3.py | Python | gpl-3.0 | 11,580 | [
"DMol3"
] | 22ab8a4af9bb604efef73f3ed7123d09e4108abaf47eb1d65d3f8fe11e671840 |
#
# Copyright (C) 2010-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... | fweik/espresso | doc/tutorials/active_matter/solutions/enhanced_diffusion.py | Python | gpl-3.0 | 5,131 | [
"ESPResSo"
] | e591740ecb4d446f78f660462e898d17afd014a1bc0ab388467e212063cb80e9 |
# Copyright (C) 2010, Joao Rodrigues (anaryin@gmail.com)
# This module is heavily based on PyMol's code.
# !! Similarities are not a coincidence. !!
# PyMol: chempy/protein.py chempy/place.py
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have ... | SBRG/ssbio | ssbio/biopython/Bio/Struct/Hydrogenate.py | Python | mit | 26,684 | [
"Biopython",
"ChemPy",
"PyMOL"
] | df0ee1af9008118a28f0962427ed9276eb8ac185d71c9bc4da83ab1738ef3129 |
"""This will run a test game with random AIs displaying on a board canvas"""
import Board
import BoardCanvas
import Building
import Tile
import Agent
import Player
import GameConstants
import threading
import Move
import Score
if __name__ == "__main__":
board = Board.make_board(11,16)
tile_supply = Tile.get_a... | nicholas-maltbie/Medina | TestGame.py | Python | mit | 4,427 | [
"Brian"
] | 3e1252cd30369702c07297a732da1eb6caba20b361a7a685949d67cd56eeb862 |
import sys
import re
import numpy as np
from gen_files import parse_args, split_vars
#f is a string with the contents of the file
class FermiSurface(object):
def __init__(self):
self.nx = 60
self.ny = 60
self.nz = 60
self.dimvec = np.array([float(self.nx), float(self.ny), float(self.nz)])
self.... | mmdg-oxford/papers | Ponce-CPC-2016/MgB2/fermi_surf.py | Python | gpl-3.0 | 8,397 | [
"CRYSTAL"
] | 29002ef05b13783f04367070a4cedc01bc7b0c5284fcb1a355061bb1efc80e4f |
import math
from itertools import combinations, product, permutations
from typing import List
from utils.help import gcd3
def P90():
comb_list = []
ret = 0
for comb in combinations([i for i in range(10)], 6):
data_set = set(comb)
if {6, 9} & data_set:
data_set |= {6, 9}
... | Gaolious/algorithm | ProjectEuler/euler_python/P0xx/prob_p09x.py | Python | gpl-3.0 | 47,094 | [
"VisIt"
] | a1f1b2184b30265231ebec43dd930aa897fa102ccf082953759e0eb666885d69 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | kkreis/espressopp | src/interaction/StillingerWeberPairTerm.py | Python | gpl-3.0 | 10,546 | [
"ESPResSo"
] | 5ed33cf182a701d3b79d7852e2eb9a2967404be631e1640671229d33495e70d8 |
country_codes_2 = [
"AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB",
"BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BA", "BA", "BW", "BV", "BV", "BR", "IO", "BN", "BG", "BF", "BI",
"KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", ... | usc-isi-i2/dig-alignment | versions/1.0/karma/python/addresses.py | Python | apache-2.0 | 20,974 | [
"BWA"
] | 35f3214be3cfd280fc2be45bd19c99c61e1c73155468ba45437eaf63ce9f32f2 |
## @package shesha.constants
## @brief Numerical constants for shesha and config enumerations for safe-typing
## @author COMPASS Team <https://github.com/ANR-COMPASS>
## @version 5.2.1
## @date 2022/01/24
## @copyright GNU Lesser General Public License
#
# This file is part of COMPASS <https://anr-comp... | ANR-COMPASS/shesha | shesha/constants.py | Python | gpl-3.0 | 5,648 | [
"Gaussian"
] | c145419c45282b447120398b3ea7d58d73905cd7a573a236da5174b01ab4679f |
import cv2
import numpy as np
from tkinter import *
from PIL import ImageGrab, ImageTk, Image
import win32gui
import win32con
import win32console
import pyHook # pyhook_py3k is advised
import serial
import threading
import serial.tools.list_ports
import pygame
from win32api import GetSystemMetrics
import ctypes
import... | CHMachine/CHMachine-Software | CHMachine_Software_Win/CHMachine.py | Python | bsd-3-clause | 70,634 | [
"VisIt"
] | a5f86558cb057bb605a4083fbbce6aefeaa78c587daa1ff86dcb97bbd0a6a823 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/friesian/example/deep_fm/deepFM_train.py | Python | apache-2.0 | 10,082 | [
"ORCA"
] | cb4fb31e2488df7c1aa3b22877781491cc2262659e8f67d829f809ce69afba45 |
# -*- coding: utf-8 -*-
""":mod:`itertools` is full of great examples of Python generator
usage. However, there are still some critical gaps. ``iterutils``
fills many of those gaps with featureful, tested, and Pythonic
solutions.
Many of the functions below have two versions, one which
returns an iterator (denoted by ... | kevinastone/boltons | boltons/iterutils.py | Python | bsd-3-clause | 23,565 | [
"VisIt"
] | 409c6cac85e4dcc1460bbde20d6aa8b17ccfb58f48cc1513ef8a3697052eb29e |
"""!@brief Script by Mathieu Fauvel which performs Gaussian Mixture Model
""" # -*- coding: utf-8 -*-
from __future__ import print_function
from builtins import str
from builtins import range
from builtins import object
import numpy as np
from numpy import linalg
import multiprocessing as mp
# Temporary predict funct... | lennepkade/dzetsaka | scripts/gmm_ridge.py | Python | gpl-3.0 | 9,914 | [
"Gaussian"
] | e0faec624622640e74c590de149c3ec57139e8a038eb0d4d9499fc08cccf21d1 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Generic file writer and related tools"""
import logging
from abc import ABC, abstractmethod
from collections.abc impor... | langner/cclib | cclib/io/filewriter.py | Python | bsd-3-clause | 5,183 | [
"Open Babel",
"Pybel",
"cclib"
] | 83eaed3a4e4f9a2e7d503d6eb2caef301a8634c98bbf4c384737835f3ba42cc3 |
"""
DIRAC API Class
All DIRAC functionality is exposed through the DIRAC API and this
serves as a source of documentation for the project via EpyDoc.
The DIRAC API provides the following functionality:
- A transparent and secure way for users
to submit jobs to the Grid, monitor them and
re... | fibbo/DIRAC | Interfaces/API/Dirac.py | Python | gpl-3.0 | 107,226 | [
"DIRAC"
] | f8c1d262b0960568f71c4541f475e8aab24f09bfcf8faa6c922db220c1da1c88 |
"""Test suite for abdt_branch-like things."""
# =============================================================================
# CONTENTS
# -----------------------------------------------------------------------------
# abdt_branchtester
#
# Public Functions:
# check_XB_UntrackedBranch
# check_XC_MoveBetweenAllMarke... | bloomberg/phabricator-tools | py/abd/abdt_branchtester.py | Python | apache-2.0 | 10,565 | [
"VisIt"
] | 098021ba90305f274b01a430ed30f59472dd70531c211535277c06881b90653a |
import pdb, sys, os, time
import numpy as np
import cPickle
import matplotlib.pyplot as plt
import scipy.optimize
from bayes.pyhm_dev import pyhm
def mle( MultiBand ):
ntrials = MultiBand.mle_ntrials
mbundle = MultiBand.mbundle
par_ranges = MultiBand.par_ranges # initial starting ranges to sample random... | tomevans/TransitFitting | MultiBandRoutines.py | Python | gpl-2.0 | 16,256 | [
"Gaussian"
] | 5422ae2690b4005f27bffdacbf46a4ed36686ece3dff3c52ccda1e8daa585efa |
# -*- coding: utf-8 -*-
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2009-2010 Andrew I Baznikin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | pmghalvorsen/gramps_branch | gramps/plugins/rel/rel_ru.py | Python | gpl-2.0 | 17,615 | [
"Brian"
] | abf599c46ae459b1ca7d4051a1d5e90ad37e1606ad8e454915b391bf5f48359b |
# -*- coding: utf-8 -*-
class Charset(object):
common_name = 'NotoSansEthiopic-Regular'
native_name = ''
def glyphs(self):
chars = []
chars.append(0x0000) #null ????
chars.append(0x000D) #nonmarkingreturn ????
chars.append(0xAB06) #uniAB06 ????
chars.append(0x00... | davelab6/pyfontaine | fontaine/charsets/noto_chars/notosansethiopic_regular.py | Python | gpl-3.0 | 30,255 | [
"BWA"
] | d99846381a3483c18dd27cfcab21a8db5183afea7db1219147961b41bcca95af |
import numpy as np
from .converters import *
from ._data import SOLVENTS, CHARGES, APOLARS
def occupancy(grid, points, spacing=0.01):
"""Return a vector with the occupancy of each grid point for
given array of points"""
distances = ((grid[:,None,:] - points[None,:,:])**2).sum(axis=2)
occupied = (di... | Tsjerk/Insane | insane/structure.py | Python | gpl-2.0 | 13,792 | [
"Gromacs"
] | 7b4388e317c76ce057a06a4763dd711716aaefc9d61912aee732aff79b927889 |
#!/usr/bin/env python
########################################
# to modify the NetCDF files
########################################
#First import the netcdf4 library
from netCDF4 import Dataset # http://code.google.com/p/netcdf4-python/
import numpy as np
import sys,getopt
import math
import datetime as DT
import net... | CopyChat/Plotting | Python/test.py | Python | gpl-3.0 | 12,747 | [
"NetCDF"
] | c75b8d7958efeff34cd9d80e86e1a1cf121925b7e4d015447165aab1d7e2bb93 |
# Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import torch
import pyro.distributions as dist
from pyro.ops.gamma_gaussian import GammaGaussian
from tests.common import assert_close
def random_gamma_gaussian(batch_shape, dim, rank=None):
"""
Generate a random Gaussia... | uber/pyro | tests/ops/gamma_gaussian.py | Python | apache-2.0 | 1,763 | [
"Gaussian"
] | 4f4bf6de0ee911811f85fb3eec845b7ad7aba20415bc91622d920e2655371a9f |
import numpy as np
from scipy.signal import argrelmax, detrend
from scipy.integrate import trapz
from scipy.ndimage.filters import gaussian_filter
import peakutils
def get_hyper_peaks(hyper_image, threshold):
"""
Given a Hyperspectral image, computes the average spectrum and finds the
peaks of that spect... | kongjy/hyperAFM | hyperAFM/gen_features.py | Python | mit | 3,891 | [
"Gaussian"
] | 482e59852b65f0a0acea750daf2da782ab048ad235403d639f57dca128a56ca8 |
#!/usr/bin/python
##This Python file uses the following encoding: utf-8
##
## (C) 2008 Muthiah Annamalai,
## Licensed under GPL Version 3
##
## Module has elements of PARSE-TREE AST
##
#!/usr/bin/python
## -*- coding: utf-8 -*-
##
## (C) 2008, 2013 Muthiah Annamalai
## Licensed under GPL Version 3
##
## This mod... | kracekumar/Ezhil-Lang | ezhil/transform.py | Python | gpl-3.0 | 8,563 | [
"VisIt"
] | 546db52d92e9d81c81abbbebae13d27970db5e2d9d17bb563e325e75acb73780 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# docs - online documentation generator
# Copyright (C) 2003-2014 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... | heromod/migrid | mig/shared/functionality/docs.py | Python | gpl-2.0 | 23,560 | [
"Brian",
"CRYSTAL"
] | 5e09dd2a751b6c7053dfa764a3c489d75e2df21e89c6d75a806ea5688618d9ec |
# coding=utf-8
# Copyright 2022 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | tensorflow/tensor2tensor | tensor2tensor/models/mtf_transformer.py | Python | apache-2.0 | 44,882 | [
"MOE"
] | f31ca46073d34b729673355386ac63032358f60a83e95837a4da4615429ff574 |
# -*- coding: utf-8 -*-
import logging
import re
import traceback
import os
import time
import bpy
from bpy.types import Operator
from bpy.types import OperatorFileListElement
from bpy_extras.io_utils import ImportHelper, ExportHelper
from mmd_tools import auto_scene_setup
from mmd_tools.utils import makePmxBoneMap
... | lordscales91/blender_mmd_tools | mmd_tools/operators/fileio.py | Python | mit | 19,548 | [
"VMD"
] | 6921b8ae3b50a1f66f3068c3222466419064f55c80a2fd081ffc7bbf602ef974 |
import torch
import torch.nn as nn
import numpy as np
import gpytorch
class GaussianMixtureTorch(nn.Module):
def __init__(self, n_components, n_iter=5, covariance_type='diag',
covariance_init=1.0, reg_covar=1e-4):
"""
Initializes a Gaussian mixture model with n_clusters.
... | interactiveaudiolab/nussl | nussl/ml/unfold/gaussian_mixture.py | Python | mit | 7,016 | [
"Gaussian"
] | 7d0724b1c2cb9ed5cde16a954525c8d773a8864212eee8d266c5518321731d33 |
#!/usr/bin/env python3
import os
import argparse
import sys
from time import sleep
import subprocess
import myPersonalFunctions
import fileinput
from small_script.myFunctions import *
if(platform.system() == 'Darwin'): # Mac system (local machine)
OPENAWSEM_LOCATION = "/Users/weilu/openmmawsem/"
elif(platform.sys... | luwei0917/awsemmd_script | archive/mm_create_project.py | Python | mit | 3,342 | [
"CRYSTAL"
] | 577e494dc9afe64f1c54ee55475e48a13ebffa7dba7af3fa631837e84b147137 |
import ast
import os
from os.path import abspath
from pydoc import locate
import astunparse
class TypeBuilder(ast.NodeTransformer):
def __init__(self, type_schema, options):
"""
:type type_schema: office365.runtime.odata.odata_type.ODataType
:type options: dict
"""
self._... | vgrem/Office365-REST-Python-Client | generator/builders/type_builder.py | Python | mit | 2,647 | [
"VisIt"
] | bd629ab9a557c7ee5ab33f21887380a8d24e624b7f158af48c41f75cb6292dd1 |
"""Gaussian processes regression. """
# Authors: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
#
# License: BSD 3 clause
import warnings
from operator import itemgetter
import numpy as np
from scipy.linalg import cholesky, cho_solve, solve_triangular
import scipy.optimize
from ..base import BaseEstimator, Regre... | chrsrds/scikit-learn | sklearn/gaussian_process/gpr.py | Python | bsd-3-clause | 20,827 | [
"Gaussian"
] | d925a76c2ed79b663688ee6975a13b1bc66c6d1bde39d197040d870d92be402a |
'Tests for the filtering module'
# Copyright 2009 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia
# This file is part of franklin.
# franklin is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation... | JoseBlanca/franklin | test/seq/seq_filters_test.py | Python | agpl-3.0 | 5,698 | [
"BLAST"
] | fcd9ba09dbd249709b942e24ab3b1d868f6194709e63ee52810bb7cc8dccdfc7 |
#!/usr/bin/env python
# encoding: utf-8
"""
The ipcluster application.
Authors:
* Brian Granger
* MinRK
"""
from __future__ import print_function
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms o... | WillisXChen/django-oscar | oscar/lib/python2.7/site-packages/IPython/parallel/apps/ipclusterapp.py | Python | bsd-3-clause | 22,341 | [
"Brian"
] | f8a8708a9aa642efd1b4f1e0663dc4cb017ab404e14d9348e797d5113ba24f21 |
__author__ = 'xiaoxiaol'
###
import sys
import os
import platform
if (platform.system() == "Linux"):
WORK_PATH = "/local1/xiaoxiaol/work"
else:
WORK_PATH = "/Users/xiaoxiaoliu/work"
p = WORK_PATH + '/src/morphology_analysis'
sys.path.append(p)
import bigneuron.recon_prescreening as rp
import bigneuron.pl... | XiaoxiaoLiu/morphology_analysis | bigneuron/gold166_consensus_comparison.py | Python | gpl-3.0 | 6,497 | [
"NEURON"
] | d20a931d46c0354da2437db24fbd460491e9eefe2e49953e89366f41c936e818 |
#!/usr/bin/env python
## Copyright (C) 2005-2006 Graham I Cummins
## This program is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free Software
## Foundation; either version 2 of the License, or (at your option) any later version.
##... | gic888/MIEN | parsers/bbt.py | Python | gpl-2.0 | 6,775 | [
"NEURON"
] | c2e4ab42acf0109c67757b36b8a0e439d1efcde058815245fb57ad83c51e0db0 |
# mako/codegen.py
# Copyright 2006-2019 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""provides functionality for rendering a parsetree constructing into module
source code."""
import j... | wujuguang/mako | mako/codegen.py | Python | mit | 47,892 | [
"VisIt"
] | 3f494095344a23b3115681a8af84f631cde611395d26f670d37a43350e4cb3f7 |
#!/usr/bin/env python2
from setuptools import setup, find_packages
from glob import glob
def main():
setup(name = "epicode",
url="https://github.com/i000/epicode",
version = "1.0.2",
author="Marcin Cieslik",
author_email="marcin.cieslik@gmail.com",
packages = find_... | mcieslik-mctp/epicode | setup.py | Python | mit | 506 | [
"pysam"
] | f2398f6e69940b0a8692f73d509b5287c2c1aa348f1e24688b0c4add940c24a0 |
"""
**hep_ml.reweight** contains reweighting algorithms.
Reweighting is procedure of finding such weights for original distribution,
that make distribution of one or several variables identical in original distribution and target distribution.
Typical application of this technique in HEP is reweighting of Monte-Carlo... | iamfullofspam/hep_ml | hep_ml/reweight.py | Python | apache-2.0 | 18,499 | [
"Gaussian"
] | 35411263210495272b748e5d5022a80824ab3359bfeece596cf9f8ba4481db32 |
tests=[
("python","testAlignment.py",{})
]
longTests=[]
if __name__=='__main__':
import sys
from rdkit import TestRunner
failed,tests = TestRunner.RunScript('test_list.py',0,1)
sys.exit(len(failed))
| soerendip42/rdkit | Code/Numerics/Alignment/Wrap/test_list.py | Python | bsd-3-clause | 216 | [
"RDKit"
] | 3de37f25c49465f5b63852598c10fa2c705e5eaaf1e4de62bfb528b9ea943b9f |
import numpy as np
from collections import defaultdict
import statsmodels.base.model as base
from statsmodels.genmod import families
from statsmodels.genmod.generalized_linear_model import GLM
from statsmodels.genmod.families import links
from statsmodels.genmod.families import varfuncs
import statsmodels.regression.li... | statsmodels/statsmodels | statsmodels/genmod/qif.py | Python | bsd-3-clause | 16,374 | [
"Gaussian"
] | f8315a8affab342210d664bd49d1764309e54a25ac5265cc61eb9d22a5fb3658 |
#
# GMSK modulation and demodulation.
#
#
# Copyright 2005,2006,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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 v... | tyc85/nwsdr-3.6.3-dsc | dsc-bfsk-rs/gmsk_cats.py | Python | gpl-3.0 | 11,383 | [
"Gaussian"
] | 6a0f2163002af4d83f2891b2c21b2b1c4ab1aa9aec2f55b1802f47c4e255b24b |
# ----------------------------------------------------------------------------
# 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/stats/distance/tests/test_permdisp.py | Python | bsd-3-clause | 10,598 | [
"scikit-bio"
] | 878a58926d6bc9f8f338a5c2a5675552bb3bcbd93cd37633bde4236125fd4ad9 |
"""Wrapper object for Python modules"""
import ast
import inspect
import os
from docs.imports import Import
from docs.visitors.base import VisitorBase
from docs.visitors.query import QueryConstructor
__author__ = ['Michael Van Veen (michael@mvanveen.net)']
METADATA = [
'copyright', 'credits', 'license', 'version',... | codebrowse/docs | docs/modules/module.py | Python | mit | 2,542 | [
"VisIt"
] | 7c3243bd32428982d7410a01c5dced4f8f66dbde64f8ba1df94c386a868a3ef2 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Tests for the photometry module.
"""
from astropy.convolution.utils import discretize_model
from astropy.modeling import Fittable2DModel, Parameter
from astropy.modeling.fitting import LevMarLSQFitter, SimplexLSQFitter
from astropy.modeling.models imp... | astropy/photutils | photutils/psf/tests/test_photometry.py | Python | bsd-3-clause | 34,702 | [
"Gaussian"
] | c664c3c43ab9094d978bcdf954e6a7936c78b3b39b0769c3177d062ce40dbee2 |
"""
Tools for the instructor dashboard
"""
import dateutil
import json
from django.conf import settings
from django.contrib.auth.models import User
from django.http import HttpResponseBadRequest
from django.utils.timezone import utc
from django.utils.translation import ugettext as _
from courseware.models import Stud... | nanolearning/edx-platform | lms/djangoapps/instructor/views/tools.py | Python | agpl-3.0 | 7,780 | [
"VisIt"
] | d9b95006d7af203da68794e78aa61406a306851cccdcfc6c89c7f8a7c21500e9 |
# coding: utf-8
"""
Vericred API
Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and an... | vericred/vericred-python | test/test_network_sizes_api.py | Python | apache-2.0 | 10,232 | [
"VisIt"
] | 37f98ea0e113e4daca9059033fdeaef3927fd5e676fb4c0c0e3c7e19891398a3 |
#This file is part of ChiVO, the Chilean Virtual Observatory
#A project sponsored by FONDEF (D11I1060)
#Copyright (C) 2015 Universidad Tecnica Federico Santa Maria Mauricio Solar
# Marcelo Mendoza
# Universidad de Chile Die... | ChileanVirtualObservatory/StructureDetection | Gui/analysis.py | Python | gpl-3.0 | 9,191 | [
"Gaussian"
] | 281ff6cfd33a07b014d0f2524a270f65f89f234f06b1e96528dfed2556043168 |
"""Takes an unrolled StencilModel and converts it to a C++ AST.
The third stage in processing. Input must be processed with
StencilUnrollNeighborIter first to remove neighbor loops and
InputElementZeroOffset nodes. Done once per call.
"""
import ast
import asp.codegen.cpp_ast as cpp_ast
import asp.codegen.ast_tools a... | richardxia/asp-multilevel-debug | demo/demo_backups/stencil_convert.py | Python | bsd-3-clause | 9,867 | [
"VisIt"
] | a58c94a1205dba5b21379aafa98222038379bf24315d2f8cdcf480464866fc02 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 ~ 2012 Deepin, Inc.
# 2011 ~ 2012 Wang Yong
#
# Author: Wang Yong <lazycat.manatee@gmail.com>
# Maintainer: Wang Yong <lazycat.manatee@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the... | linuxdeepin/deepin-ui | dtk/ui/draw.py | Python | gpl-3.0 | 26,212 | [
"Gaussian"
] | 7846676c699f61abc46ab17bb1099a7a0c27a40554cef52fd2425d1113539613 |
#!/usr/bin/env python
""" Setup script for Toy Parser Generator
Just run "python setup.py install" to install TPG
Toy Parser Generator: A Python parser generator
Copyright (C) 2001-2013 Christophe Delord
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Gener... | Awakens/Seawolf | setup.py | Python | lgpl-2.1 | 3,333 | [
"VisIt"
] | 1c130bb4572e3e9d6ae10bbdbf9025a7c1943a5375c9bfde6dd0e2b01f9f5184 |
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | dropbox/pep8squad | yapf/yapflib/subtype_assigner.py | Python | apache-2.0 | 10,019 | [
"VisIt"
] | 5782ed13fb4cbcd1cee9bbd9e52b9a0f86c610267b478b89dd6ffbb47f48dc5e |
#!/usr/bin/env python
import sys
import os
import subprocess
import datetime
import re
import string
# Define tests here
fci_tests = ["fci-1"]
aci_tests = ["aci-1"]
pci_tests = ["pci-1"]
dsrg_tests = ["diskdf-dsrg-mrpt2-1", "mrdsrg-ldsrg2-df-seq-nivo-1"]
tests = dsrg_tests + fci_tests + aci_tests + pci_tests
... | evangelistalab/forte | tests/performance/run_forte_timings.py | Python | lgpl-3.0 | 2,433 | [
"Psi4"
] | ea9b447547be45268d8a3c7b8c75653a908696d18a6477683fa17f63bceb247a |
#!/usr/bin/env python
##############################################################################
#
# diffpy.pyfullprof by DANSE Diffraction group
# Simon J. L. Billinge
# (c) 2010 Trustees of the Columbia University
# in the City of New York. All rights reserve... | xpclove/autofp | diffpy/pyfullprof/phase.py | Python | gpl-3.0 | 27,563 | [
"CRYSTAL"
] | 94fcc6a28eb7950935573577a4535ed4c26fcfe1ea89cbaf404337476739f8df |
import os
import dotenv
import requests
DOTENV_PATH = os.path.join(os.getcwd(), '.env')
if os.path.exists(DOTENV_PATH):
dotenv.load_dotenv(DOTENV_PATH)
NBG_PRIMARY_KEY = os.getenv('NBG_PRIMARY_KEY')
NBG_SECONDARY_KEY = os.getenv('NBG_SECONDARY_KEY')
if not NBG_PRIMARY_KEY or not NBG_SECONDARY_KEY:
message... | nationalbankofgreece/open-bank-python | nbg.py | Python | mit | 1,201 | [
"VisIt"
] | bf9fd743deaa855c28e5afbf4dff784d5ead9b1a2a06a49c855aea6c59a72df1 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2021 The Atlite Authors
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""
Created on Mon May 11 11:15:41 2020
@author: fabian
"""
import os
import sys
import pytest
import urllib3
import geopandas as gpd
urllib3.disable_warnings()
import atli... | FRESNA/atlite | test/test_preparation_and_conversion.py | Python | gpl-3.0 | 12,240 | [
"NetCDF"
] | a0c7a0d4c73b4be788a595ec5bb7df6ef5311b206b98b758e47a09d6113234a8 |
import json
import sys
import getopt
import os
import time
from preprocess import preprocess_helpers, blast, filtermap, generate_index_and_libs
# TODO: Can also break this into smaller bits
def preprocess_cell_line(cell_line, ref_genome, pulse_path, preprocess_output_path):
# TODO: This alternative splicing event... | wonjunetai/pulse | preprocess/main.py | Python | mit | 7,339 | [
"BLAST"
] | 44b8b7ef8b49c1fa51c16fa4341dabd3496418bf524db49dc0896bb0aeca49ee |
import os
from django.contrib import admin
from django.core.urlresolvers import reverse
from django.conf import settings
# Register your models here.
from .models import Repository
from .forms import RepositoryForm
class RepositoryAdmin(admin.ModelAdmin):
"""Custom Admin class used to administer Repository obj... | CultureNumerique/cn_app | escapad/admin.py | Python | cc0-1.0 | 3,109 | [
"VisIt"
] | ce2229b79444a5c6b0d3a250c79c82e406897bbb93f820a7c4fa0515b86910a2 |
import itertools
from py2d.Math.Vector import *
from py2d.Math.Operations import *
def tip_decorator_pointy(a,b,c,d,is_cw):
intersection = intersect_line_line(a,b,c,d)
return [intersection]
def tip_decorator_flat(a,b,c,d,is_cw):
return []
class Polygon(object):
"""Class for 2D Polygons.
A Polgon behaves like ... | jshaffstall/PyPhysicsSandbox | py2d/Math/Polygon.py | Python | mit | 23,397 | [
"VisIt"
] | c13bbfcbd514d9a05dff2b9c3207066789d448009e5375d2c2adf678e00fe63b |
import os
import re
import collections
import logging
log = logging.getLogger(__name__)
import MooseDocs
class MooseInfoBase(object):
"""
Base information for Actions and MooseObjects.
"""
STUB_HEADER = '<!-- MOOSE Documentation Stub: Remove this when content is added. -->\n'
def __init__(self, node, code=[... | paulthulstrup/moose | python/MooseDocs/MooseApplicationSyntax.py | Python | lgpl-2.1 | 12,376 | [
"MOOSE"
] | e65d5e2f6e2feab576d04a77756630b81499a42ee4d0b36fc81a0ae84cb254f4 |
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.fast_layers import *
from cs231n.layer_utils import *
class ThreeLayerConvNet(object):
"""
A three-layer convolutional network with the following architecture:
conv - relu - 2x2 max pool - affine - relu - affine - sof... | gutouyu/cs231n | cs231n/assignment/assignment2/cs231n/classifiers/cnn.py | Python | mit | 6,283 | [
"Gaussian"
] | 8c4f59802ccf00a16599a7647109d21e32f1d3e964a5a0288d45242f92b6db35 |
# -*- coding: utf-8 -*-
import os, sys; sys.path.insert(0, os.path.join(".."))
import unittest
from pattern import graph
from pattern.graph import commonsense
#---------------------------------------------------------------------------------------------------
class TestUtilityFunctions(unittest.TestCase):
d... | EricSchles/pattern | test/test_graph.py | Python | bsd-3-clause | 27,746 | [
"VisIt"
] | 453220d0a69b35dd0428392d0f00991b1814855cfd7c4b429f18ab85f74f296b |
# 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.
"""Residue class, used by Structure objects."""
# My Stuff
from Bio.PDB.PDBExceptions imp... | zjuchenyuan/BioWeb | Lib/Bio/PDB/Residue.py | Python | mit | 5,046 | [
"Biopython"
] | 2372e54ed583218f4371de997eff3546a710d550ae988eabb1e8d3ff12b971d7 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
3D modeling in a closed geometry
================================
This is a synthetic model of an experimental tank with a highly heterogeneous
resistivity, motivated by the BAM Berlin.
Geometry: 0.99m x 0.5m x 1.0m
Data: 48 Electrodes and 588 Measurements defined in ... | gimli-org/gimli | doc/examples/3_dc_and_ip/plot_modTank3d.py | Python | apache-2.0 | 7,254 | [
"ParaView",
"VTK"
] | 7d846ec174f442e0abda76c69e341d95f00ffa27c4fe5ccee662fc2f6d697991 |
# ----------------------------------------------------------------------------
# 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/diversity/tests/test_driver.py | Python | bsd-3-clause | 36,246 | [
"scikit-bio"
] | a509b2aec469b3e0d2d2588634627a42cdee63af3180b4f6cd80165ac3a01be5 |
from HappyTools.util.fitting import gauss_function
from matplotlib.figure import Figure
import HappyTools.gui.version as version
from bisect import bisect_left, bisect_right
from datetime import datetime
from matplotlib.backends.backend_pdf import PdfPages
from numpy import linspace
from pathlib import Path, PurePath
... | Tarskin/HappyTools | HappyTools/util/pdf.py | Python | apache-2.0 | 4,716 | [
"Gaussian"
] | 5f8fce81c7cdf9b4a9aaad3522996954207bea18f1c5deb5a911fbc43018d6b5 |
from __future__ import absolute_import, division
from django.core import urlresolvers
from django.db import connection
from django.db.models.query import QuerySet
from django.http import HttpResponseNotFound, HttpRequest, HttpResponse
from django.template import RequestContext, loader
from django.utils import timezone... | Diptanshu8/zulip | analytics/views.py | Python | apache-2.0 | 30,695 | [
"VisIt"
] | 9f3a44ecf1bf9817a46fa4517ade763327c5796fa56ce57cf7e16bb1d1ddfe6d |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
This is a small example which creates a twitch stream to connect with
and changes the color of the video according to the colors provided in
the chat.
"""
from __future__ import print_function
from twitchstream.outputvideo import TwitchBufferedOutputStream
from twitchstream... | 317070/python-twitch-stream | examples/color.py | Python | mit | 4,226 | [
"VisIt"
] | 6ad6eed260d09540b8ca5e9fd64e3f3ede7d9e57297157aca5df77875622badc |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PyRATA
#
# Authors:
# Nicolas Hernandez <nicolas.hernandez@gmail.com>
# Guan Gui 2014-08-10 13:20:03 https://www.guiguan.net/a-beautiful-linear-time-python-regex-matcher-via-nfa
# URL:
# https://github.com/nicolashernandez/PyRATA/
#
#
# Copyri... | nicolashernandez/PyRATA | demo/NPFST/phrase-extraction.py | Python | apache-2.0 | 20,645 | [
"Gaussian"
] | 0ae9cb70042e8cc8cb9db781c21f67daa8fc49d18264b315ce401850d2c879f7 |
from __future__ import print_function
import logging
import os
import sys
import urllib
import xapian
from gi.repository import Gdk, Gtk, GLib
from mock import Mock, patch
import softwarecenter.distro
import softwarecenter.log
import softwarecenter.paths
from softwarecenter.backend import channel
from softwarecent... | mortenpi/ubuntu-software-center | tests/gtk3/windows.py | Python | gpl-3.0 | 36,819 | [
"ADF",
"DIRAC"
] | eb0dd4e078f0df37fc05bdf6e05b90b64313839e03800bc7384e4e519c42701e |
import socket
import sys
# from six.moves import BaseHTTPServer
# from six.moves import urllib
# Python 2
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
import urlparse
import urllib
# End Python 2
# Python 3
# from http.server import HTTPServer, BaseHTTPRequestHandler
# import urllib.parse
# End Pytho... | Lingotek/filesystem-connector | python2/ltk/auth.py | Python | mit | 6,259 | [
"VisIt"
] | fb8ef9443be532960866225f8bfbd8f06d7102c7ccb0a19b731f8d7c515dc599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.