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 unittest import vtk from vtk.test import Testing testInt = 12 testString = "test string" testFloat = 5.4 class VTKPythonObjectCalldataInvokeEventTest(Testing.vtkTest): @vtk.calldata_type(vtk.VTK_INT) def callbackInt(self, caller, event, calldata): self.calldata = calldata @vtk.calldata_...
SimVascular/VTK
Common/Core/Testing/Python/TestInvokeEvent.py
Python
bsd-3-clause
1,832
[ "VTK" ]
d1b664bdce8a6c9477b47665d4b67a207365c7b68c739ed5550abffed05357ed
#!/usr/bin/env python # # Copyright 2013 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. """Convert Android xml resources to API 14 compatible. There are two reasons that we cannot just use API 17 attributes, so we are ge...
gfreed/android_external_chromium-org
build/android/gyp/generate_v14_compatible_resources.py
Python
bsd-3-clause
13,424
[ "Galaxy" ]
014f3ffe27dfd703328345ed6254875b078890815919864a0f63032726ec4a07
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest from util import merge_path, remove_trailing_junk, is_repeated_path, merge_href from tokenizer import Tokenizer class TestUtil(unittest.TestCase): @unittest.skip('skip') def test_merge_path(self): self.assertEqual('/about/annualreport/index.ph...
jwlin/ir-proj3
test_util.py
Python
mit
6,453
[ "VisIt" ]
51d3c3060a591aa14eb15b093c4bfeadb7e1da93f71cd7209926cf2588c97311
""" Instructor Dashboard Views """ import logging import datetime from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey import uuid import pytz from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST from django.utils.translation imp...
nikolas/edx-platform
lms/djangoapps/instructor/views/instructor_dashboard.py
Python
agpl-3.0
28,063
[ "VisIt" ]
101693460caadfd46bd90faf9cc1e8cb016868c99aecc4e2dfa5940728c56892
#! /usr/bin/env python """ print DCommands working directory """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script @Script() def main(): from COMDIRAC.Interfaces import DSession from...
DIRACGrid/COMDIRAC
src/COMDIRAC/Interfaces/scripts/dpwd.py
Python
gpl-3.0
831
[ "DIRAC" ]
7f48ceff70a87f6c82b4fcdfd21456d2a81a96152970e4d18a95970759b4b063
from pype.ast import * from pype.symtab import * from pype.lib_import import LibraryImporter from pype.fgir import FGNodeType, FGNode, Flowgraph, FGIR from pype.error import * class SymbolTableVisitor(ASTVisitor): ''' Visitor subclass to walk through a SymbolTable ''' def __init__(self): self...
Mynti207/cs207project
pype/translate.py
Python
mit
7,247
[ "VisIt" ]
cb4bf3c2cf2185f43d29344724f89a621bc6a7569207776f0a7dbcbe78cfb34d
"""SCons.Tool.zip Tool-specific initialization for zip. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation # # Permiss...
BenLand100/rat-pac
python/SCons/Tool/zip.py
Python
bsd-3-clause
3,291
[ "VisIt" ]
76dc890be7931b5749b75359751f9df82253fc0f058e32c846ab31a434b39d14
# $Id$ # # Copyright (C) 2007 by Greg Landrum # All rights reserved # from rdkit import Chem,Geometry from rdkit.Chem import AllChem from rdkit.Chem.Subshape import SubshapeObjects from rdkit.Chem.Subshape import BuilderUtils import time,cPickle #----------------------------------------------------------------------...
rdkit/rdkit-orig
rdkit/Chem/Subshape/SubshapeBuilder.py
Python
bsd-3-clause
4,287
[ "PyMOL", "RDKit" ]
80de31086289e4b6a1fc00588cc7705bf8159d377c6b8d0633d05d071023c947
# -*- coding: utf-8 -*- import os import sys import httplib2 from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run_flow CLIENT_SECRETS_FILE = 'client_secrets.json' YOUTUBE_SCOPES = ["https://www.googleapis...
JohnPeel/Scooter
youtube.py
Python
gpl-3.0
1,378
[ "VisIt" ]
10740a5a46ef70333deb71bf9047b30beb30b892a27265fe367f20b0b80c8a40
# $HeadURL: $ ''' ResourceManagementDB Module that provides basic methods to access the ResourceManagementDB. ''' from datetime import datetime from DIRAC import S_OK, S_ERROR from DIRAC.Core.Base.DB import DB from DIRAC.ResourceStatus...
vmendez/DIRAC
ResourceStatusSystem/DB/ResourceManagementDB.py
Python
gpl-3.0
19,265
[ "DIRAC" ]
87b4e30fb6fd8f04ce3c2d2295fbf4a6bc0d54ec365a06055ba21bbec547a807
""" The B{0install digest} command-line interface. """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function import os, tempfile from zeroinstall import SafeException, _ from zeroinstall.zerostore import manifest, unpack from zero...
timdiels/0install
zeroinstall/cmd/digest.py
Python
lgpl-2.1
1,441
[ "VisIt" ]
99c7b05c7cabb3dd676081444ec4fbfc92c0d54ac9b011fc0e08d9e8998e17a8
import os import glob import sys import warnings import logging import re import subprocess logger = logging.getLogger(__name__) class NoSuchSensorError(Exception): def __init__(self, port, type_id=None, name=None): self.port = port self.type_id = type_id self.name =name def __str__...
dan-ionut-fechete/ev3
ev3/ev3dev.py
Python
apache-2.0
19,250
[ "Amber" ]
1a5df3d008a4adacea8c0ea5dd702e88a2d879eea345071fff3d4acde069e432
""" Loadable.Loadable subclass """ # This file is part of Munin. # Munin 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. # Munin is ...
munin/munin
munin/mod/intel.py
Python
gpl-2.0
9,500
[ "Galaxy" ]
527f3f388596406d68311a4b656184b7ac54403ad11ff82d003418c456904960
# -*- coding: utf-8 -*- """ End-to-end tests for the main LMS Dashboard (aka, Student Dashboard). """ import datetime from nose.plugins.attrib import attr from common.test.acceptance.tests.helpers import UniqueCourseTest, generate_course_key from common.test.acceptance.fixtures.course import CourseFixture from common....
itsjeyd/edx-platform
common/test/acceptance/tests/lms/test_lms_dashboard.py
Python
agpl-3.0
12,711
[ "VisIt" ]
8d78cff8b1baf603e8f9eeafcf4f15f85d94c8f717319a905b0770fba9068c5d
import sys import six import numpy as np from json import dump, load from contextlib import contextmanager from collections import Counter, defaultdict from subprocess import CalledProcessError from pysam import ( AlignmentFile, CMATCH, CINS, CDEL, CREF_SKIP, CSOFT_CLIP, CHARD_CLIP, CPAD, CEQUAL, CDIFF) from...
acorg/dark-matter
dark/sam.py
Python
mit
48,541
[ "BWA", "pysam" ]
77a1d05680644447867155e2f38b460ca38ce84067ad054eaba085f53fe64dda
#!/usr/bin/env python # GM-PHD implementation in python by Dan Stowell. # Based on the description in Vo and Ma (2006). # (c) 2012 Dan Stowell and Queen Mary University of London. # All rights reserved. # # NOTE: I AM NOT IMPLEMENTING SPAWNING, since I don't need it. # It would be straightforward to add it - see the...
danstowell/gmphd
gmphd.py
Python
gpl-3.0
14,138
[ "Gaussian" ]
a191f6c30b0122b01b04a97738240df416e236367a4d660bf40b4c9216679cc0
import ast import astunparse import inspect from collections import OrderedDict from functools import update_wrapper from types import FunctionType, MethodType from .exceptions import ArgumentError, RewritingError from .matching import Var, push_context, matches, var undefined = object() class generator(object): ...
kyouko-taiga/stew
stew/core.py
Python
apache-2.0
14,774
[ "VisIt" ]
082e5fd2ad1dfae32903aabc51b0139cc1660d90ecb10445b4e22865b7ac1b09
import numpy as np from mmd.molecule import Molecule from mmd.realtime import RealTime from mmd.utils.spectrum import genSpectra hydrogen = """ 0 1 H 0.0 0.0 0.0 H 0.0 0.0 0.74 """ # init molecule and build integrals mol = Molecule(geometry=hydrogen,basis='3-21G') # do the SCF mol.RHF() # define the applied f...
jjgoings/McMurchie-Davidson
examples/real-time.py
Python
bsd-3-clause
1,780
[ "Gaussian" ]
b54aa1fa71de3cab8b26c05beec2c2f152da2456dcf3fc9bc2165c82479434be
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """ Module: IntrinsicDistance ========================= """ from __future__ import print_function from . import Observable class IntrinsicDistance(Observable): """Initialize the intr...
Marcello-Sega/pytim
pytim/observables/intrinsic_distance.py
Python
gpl-3.0
2,139
[ "MDAnalysis" ]
db9395528bc2fe3e437522ee6501a10e193d4a37514f0d5ecd9696e88ecf3784
# # Brian C. Lane <bcl@redhat.com> # # Copyright 2012 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. This program is distributed in the hope that it # will be useful,...
jikortus/pykickstart
pykickstart/commands/unsupported_hardware.py
Python
gpl-2.0
1,844
[ "Brian" ]
6ba1ebe5128f8e94e9aebf93b045066ad07d92a0c2153c6c6f221b0b38d171b6
###################################################################### # Copyright (C) 2014 Jaakko Luttinen # # This file is licensed under Version 3.0 of the GNU General Public # License. See LICENSE for a text of the license. ###################################################################### ####################...
nipunreddevil/bayespy
bayespy/inference/vmp/nodes/gaussian_wishart.py
Python
gpl-3.0
10,240
[ "Gaussian" ]
6ca6896295685f4a365a9eb296596a332db1adb8fa82db504138810e28ab8713
################################################################################ # Peach - Computational Intelligence for Python # Jose Alexandre Nalon # # This file: tutorial/k-means.py # Example of using K-Means implementation ################################################################################ # We impo...
PaulGrimal/peach
tutorial/neural-networks/k-means.py
Python
lgpl-2.1
2,833
[ "Gaussian" ]
db50d71ff53ab2e4a06c774157e2560dcd3739600adbb5e9722c2b3cd6c9b062
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2005-2009 Serge Noiraud # Copyright (C) 2007-2009 Brian G. Matherly # Copyright (C) 2010 Peter Landgren # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Adam Stein <adam@csh.rit.e...
arunkgupta/gramps
gramps/plugins/docgen/odfdoc.py
Python
gpl-2.0
73,332
[ "Brian" ]
f70e32ba900ef25c7c9af132ab8fd3b148e88777439a9f6ae76fc7c31e74391a
from disco.core import Job, result_iterator def read_coverage_map(rec, params): ref, read = rec yield '%s:%d' % (ref, read.pos), read.qlen def chr_partition(key, nrp, params): chr = key.split(':')[0] if chr == 'X': return 24 elif chr == 'Y': return 25 elif chr == 'MT': return 0 ...
ContinuumIO/Examples
1000Genomes/MapReduce_1000Genomes.py
Python
mit
2,652
[ "BWA", "pysam" ]
12b1035c8a73bad4ff8aa97a6ca40cbb4e2739b8c4d165f3051ce70307d2bd9f
from __future__ import division, unicode_literals, absolute_import import os, tempfile, copy, math, itertools, sys import numpy as np from operator import itemgetter from itertools import product try: import scipy except: print('functions.py: no scipy, smoother() will not work()') from siman import header ...
dimonaks/siman
siman/functions.py
Python
gpl-2.0
29,756
[ "LAMMPS", "VASP" ]
461a7e2bd315d5579b567472a8af4b1ef9247d525078e4b08e61d9e97d0028b1
""" FROWNS LICENSE Copyright (c) 2001-2003, Brian Kelley All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, t...
ubccr/pinky
pinky/smiles/builder.py
Python
bsd-2-clause
8,899
[ "Brian" ]
1c5476cdb4978c71d6f7425277707818903ec04af009b5a38c8899d8a82c4575
#!/usr/local/bin/python # Copyright (C) 2004 Rune Linding & Lars Juhl Jensen - EMBL # The DisEMBL is licensed under the GPL license # (http://www.opensource.org/licenses/gpl-license.php) # DisEMBL pipeline # Modified to work with current versions of Biopython (1.7+) # by Shyam Saladi (saladi1@illinois.edu), Janauary 2...
whysgeff/DisEMBL-1.4
DisEMBL.py
Python
gpl-2.0
6,507
[ "Biopython" ]
cd23f7c89fe17355b77005f3bff51153a0d4f7a417bf8c2c094107f0f258624b
### want to look at concatenating the R1 and R2 for 16s so that I can align and then cluster them.... import sys file1=sys.argv[1] file2=sys.argv[2] file3=sys.argv[3] def file_len_fasta(fname): with open(fname) as f: for i, l in enumerate(f): pass return (i + 1)/2 import itertools from...
jooolia/phylo_temporal_jericho
sequence_processing/concatenate_R1_and_R2_for_non_merging_primers.py
Python
mit
1,815
[ "Biopython" ]
e46463a4249668049f1f2636787d6a6f1be42cedd47014a466e9f3b77753d76f
# Copyright 2008 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock, # Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern # University. # # This file is part of Crunchberry Pie. # # Crunchberry Pie is free software: you can redistribute it and/or modify # it under the terms of the GNU Gene...
brianboyer/newsmixer
social/facebook_templates.py
Python
gpl-3.0
8,098
[ "Brian" ]
40c23b22f55f2864966302227c4178fb2002957808df350bfe2b71382cc89286
''' Created on Apr 22, 2015 ''' import py2bash.base.node as base __author__ = "Eugene Kondrashev" __copyright__ = "Copyright 2015, Eugene Kondrashev" __credits__ = ["Eugene Kondrashev"] __license__ = "MIT" __version__ = "0.0.1" __maintainer__ = "Eugene Kondrashev" __email__ = "eugene.kondrashev@gmail.com" __status__ ...
ekondrashev/py2bash
py2bash/optimized/memory/node.py
Python
mit
1,382
[ "VisIt" ]
3d5c1fc71b7d32dd233876d08f122f72578f732da39f1031f8c0107adafa03c2
#!/usr/bin/env python ''' Monitor the aosn web site for new realtime data from Tethys and use DAPloaders.py to load new data into the stoqs_realtime database. Mike McCann MBARI 17 May 2011 ''' import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../")) if 'DJANGO_SETTINGS_MODULE' not in...
stoqs/stoqs
stoqs/loaders/CANON/realtime/monitorTethys.py
Python
gpl-3.0
10,723
[ "VisIt" ]
6b4692c74c8fbe13d027228deae4ce795be1a52c7903c723a11bda2dc826852d
""" This module defines the building blocks of a CP2K input file. The cp2k input structure is essentially a collection of "sections" which are similar to dictionary objects that activate modules of the cp2k executable, and then "keywords" which adjust variables inside of those modules. For example, FORCE_EVAL section w...
materialsproject/pymatgen
pymatgen/io/cp2k/inputs.py
Python
mit
64,419
[ "CP2K", "Gaussian", "MOPAC", "VASP", "pymatgen" ]
0a81b487b47e06e71d16df4642d4e0491dfaaef41cef6029d214fdd4fb8c31fe
""" ======================================== Special functions (:mod:`scipy.special`) ======================================== .. module:: scipy.special Nearly all of the functions below are universal functions and follow broadcasting and automatic array-looping rules. Exceptions are noted. .. seealso:: `scipy.s...
bkendzior/scipy
scipy/special/__init__.py
Python
bsd-3-clause
26,955
[ "Gaussian" ]
7b7126c6b6f82b7969121dbd5c2dff424ff6a7600ab4943707a0c24016362d35
from django.core.management.base import BaseCommand from django.contrib.auth.models import User from txtalert.core.models import (Patient, Clinic, MSISDN, VISIT_STATUS_CHOICES, Visit) from optparse import make_option from django.utils import timezone from datetime import datetime, ti...
praekelt/txtalert
txtalert/apps/bookings/management/commands/create_bookings_sample_data.py
Python
gpl-3.0
4,735
[ "VisIt" ]
78fc9e34f1e2f8072abd1127695452f7b3aab3ade95675571e93879b6b7abaa2
# -*- 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-30 import rpc_server import thread import socket import time import threading from galaxy...
fxsjy/galaxy
test/integeration/agent.py
Python
bsd-3-clause
2,935
[ "Galaxy" ]
bba4d5ad501ce7acf48676f80bdbc6043699375918a993b8563954ec98e9a23d
from __future__ import print_function, division import copy from collections import defaultdict from sympy.core.containers import Dict from sympy.core.compatibility import is_sequence, as_int from sympy.core.singleton import S from sympy.functions.elementary.miscellaneous import sqrt from sympy.utilities.exceptions i...
hrashk/sympy
sympy/matrices/sparse.py
Python
bsd-3-clause
42,913
[ "DIRAC" ]
645d9908b7b9e2cb791022f652fc59e4db64b047451addf52a74c62b08bc7389
""" Test the FTS3Utilities""" from DIRAC.DataManagementSystem.Client.FTS3File import FTS3File from DIRAC import S_OK, S_ERROR __RCSID__ = "$Id $" import unittest import mock import datetime from DIRAC.DataManagementSystem.private.FTS3Utilities import FTS3JSONDecoder, \ FTS3Serializable, \ groupFilesByTarget,...
fstagni/DIRAC
DataManagementSystem/private/test/Test_FTS3Utilities.py
Python
gpl-3.0
8,312
[ "DIRAC" ]
b07ca6d807b395b5348437cc72dc6dcd92f6a1832f78b721d14c4128873513e3
import numpy as np import scipy import time as ttime import logging logger = logging.getLogger(__name__) # ================================================================================= # The following set of functions are separated from the rest of the program # and prepared to be moved to scikit-beam (skbeam...
NSLS-II-HXN/PyXRF
pyxrf/core/utils.py
Python
bsd-3-clause
10,665
[ "Gaussian" ]
df27f7dcd2cba3443c4e7896291944db313aebd39160ae189aa93cca1877a994
# mako/ast.py # Copyright (C) 2006-2011 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 """utilities for analyzing expressions and blocks of Python code, as well as generating Python from A...
theguardian/LazyLibrarian_Old
mako/ast.py
Python
gpl-3.0
5,565
[ "VisIt" ]
de3944168a14d2b22556fd3fa947b94f3b7c0ff8034f0505ee77f2f6d40bde66
""" Meager code path measurement tool. Ned Batchelder http://nedbatchelder.com/blog/200803/python_code_complexity_microtool.html MIT License. """ from __future__ import with_statement import optparse import sys import tokenize from collections import defaultdict try: import ast from ast import ite...
arju88nair/projectCulminate
venv/lib/python3.5/site-packages/mccabe.py
Python
apache-2.0
10,693
[ "VisIt" ]
5cf332c1d42c846ff99d28dc91bf8eccdaa7090b9742fcb71530a5b292b01900
# -*- coding: utf-8 -*- # Copyright 2019 The GraphicsFuzz Project Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
google/graphicsfuzz
gfauto/gfauto/result_util.py
Python
apache-2.0
1,974
[ "Amber" ]
e74672171e592a0616760637b4b8770cfe1d8ff73bbf3a58d1d7b99503ec50ed
""" ========================================================================== Illustration of prior and posterior Gaussian process for different kernels ========================================================================== This example illustrates the prior and posterior of a GPR with different kernels. Mean, st...
chenyyx/scikit-learn-doc-zh
examples/zh/gaussian_process/plot_gpr_prior_posterior.py
Python
gpl-3.0
2,900
[ "Gaussian" ]
1d3dd2ca5ab1739069c0308e36246dabe29b5450e177854b808e75939e09c4ec
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2015 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permiss...
asttra/pysces
pysces/PyscesConfig.py
Python
bsd-3-clause
3,624
[ "PySCeS" ]
39b8eb131108d75b68dddbd65996d42f289968773aae6fd55bddacdfc02d4842
# # @file TestAnnotationCopyAndClone.py # @brief Test the copy and clone methods for annotation classes # # @author Akiya Jouraku (Python conversion) # @author Sarah Keating # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated ...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/annotation/TestAnnotationCopyAndClone.py
Python
bsd-3-clause
8,732
[ "VisIt" ]
e543b2023c657f78798b85e2234328485e75546c3e8455b2f0a18f52034e61f7
import matplotlib #matplotlib.use('WXAgg') from matplotlib import pyplot as pl #this is Python's main scientific plotting library. from matplotlib import cm import cv2 #computer vision library. interfaces with python over numpy arrays. import numpy as np from scipy import stats from sys import argv #for command line a...
cmaass/swimmertracking
readtraces.py
Python
gpl-2.0
69,835
[ "Gaussian" ]
9b228fe964667f9443e10bfb4f689b750b3421fb8d8c0a80d8be96cd345ded02
# Code from Chapter 2 of Machine Learning: An Algorithmic Perspective (2nd Edition) # by Stephen Marsland (http://stephenmonika.net) # You are free to use, change, or redistribute the code in any way you wish for # non-commercial purposes, but please maintain the name of the original author. # This code comes with no...
Anderson-Lab/anderson-lab.github.io
csc_466_2021_spring/MLCode/Ch2/plotGaussian.py
Python
mit
730
[ "Gaussian" ]
bd0bfd057912d09eca113219d220370c98747c3886c6753e73b83894a576ee6c
#! /usr/bin/env python """ list replicas for files in the FileCatalog """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import DIRAC from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script @Script() def main(): from COMDIRAC.Interfaces im...
DIRACGrid/COMDIRAC
src/COMDIRAC/Interfaces/scripts/dreplicas.py
Python
gpl-3.0
1,753
[ "DIRAC" ]
1df41d27b5ce3a660533054e0ced77068d87328c25da580b73e86e9e6df593d2
# # # File to test current configuration of GranuleCell project. # # To execute this type of file, type '..\..\..\nC.bat -python XXX.py' (Windows) # or '../../../nC.sh -python XXX.py' (Linux/Mac). Note: you may have to update the # NC_HOME and NC_MAX_MEMORY variables in nC.bat/nC.sh # # Author: Padrai...
pgleeson/TestArea
models/VSCSGranCell/pythonScripts/RunTests.py
Python
gpl-2.0
2,810
[ "NEURON" ]
ea7abec5ad49b1b63b3da826cf2cb5e801410971a619e81936533222523e9cff
# -*- coding: utf-8 -*- { "'Cancel' will indicate an asset log entry did not occur": "' 취소 ' 자산 로그 항목을 표시합니다 발생하지 않았습니다.", "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": "위치 이...
code-for-india/sahana_shelter_worldbank
languages/ko.py
Python
mit
244,176
[ "VisIt" ]
36c424a7a9b94423adc4b2e42e41ca71cce10f4e10396c8274b9ee7442ed534c
import os from exceptions import TableException import atpy from decorators import auto_download_to_file, auto_decompress_to_fileobj, auto_fileobj_to_file try: import h5py h5py_installed = True except: h5py_installed = False def _check_h5py_installed(): if not h5py_installed: raise Except...
stvoutsin/pyrothorn
pyrothorn/pyroquery/atpy/hdf5table.py
Python
gpl-3.0
8,820
[ "VisIt" ]
7bb5e07627560065d30cca1110c46472064cc169b33a844d253277086778528b
import truetypetracer as ttt import openvoronoi as ovd import ovdvtk import time import vtk def translate(segs, x, y): out = [] for seg in segs: seg2 = [] for p in seg: p2 = [] p2.append(p[0] + x) p2.append(p[1] + y) seg2.append(p2) #...
aewallin/openvoronoi
python_examples/ttt/ttt_3_alphabet.py
Python
lgpl-2.1
7,151
[ "VTK" ]
08c88dbd4ff4f1d485c76e37bd18d6183ff9548b650c991662aaffc26970ae62
#!/usr/bin/env python3 ### Made by Ayden G.W for his ICS-201 Class. ### DUE: January 20th, 2017 # NOTE: Import all required packages. import sys,os,random,time,platform try: import pyglet except ModuleNotFoundError: print("Run build.py first [Missing Pyglet]!") sys.exit() ### REVIEW: Enhancements Complete...
MTadder/A-Dark-Forest
ADF.py
Python
mit
25,115
[ "ADF", "VisIt" ]
8ea6b1986c18e4ac73483c9c9c30bcccef3283bc07a67e18a7044aec52102182
""" Test functions for stats module """ import warnings import re import sys import pickle from pathlib import Path import os import json import platform from numpy.testing import (assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, as...
zerothi/scipy
scipy/stats/tests/test_distributions.py
Python
bsd-3-clause
261,929
[ "Gaussian" ]
9ee666aff1a6c73b18d1f6dfc55e88a94047d9583d1a5dfa177d3f22cc33b8a1
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + #pylint: disable=R0914,R0912,R0913 # Utility ...
mganeva/mantid
scripts/HFIR_4Circle_Reduction/fputility.py
Python
gpl-3.0
9,894
[ "CRYSTAL" ]
193f5b94db91604ffc6935a60d930ba61a6f10ebf8b353329da3f31b83f18c2a
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, absolute_import """ This module implements classes for processing Lammps output files: 1. log file: contains the thermodynamic data with ...
aykol/pymatgen
pymatgen/io/lammps/output.py
Python
mit
16,639
[ "LAMMPS", "pymatgen" ]
65599feaeaa3deea68020337f0f7612a1309ae39d2a733c98468313c3d3e49d3
# -*- coding: utf-8 -*- ''' This file is part of Arcte. Arcte is software that simplifies the creation of 3D printable atomic structures, with added features for the blind. Copyright (C) 2015 Jesse Smith and contributors Arcte is free software: you can redistribute it and/or modify it under the terms of the GNU Gene...
jessedsmith/Arcte
modules/exportdialog.py
Python
gpl-3.0
21,348
[ "VTK" ]
fec14b55a12bc33a51a5a7985f2cc8b95f540a97d180dee6d82933fd676f72c5
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
magic/services/ned.py
Python
agpl-3.0
13,315
[ "Galaxy" ]
be174855715aef76470749019f04e0ba5412d908e251c8501b27cd201a4e40db
#!/usr/bin/env python #pylint: disable=missing-docstring #################################################################################################### # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simu...
liuwenf/moose
python/MooseDocs/tests/common/database/test_link_database.py
Python
lgpl-2.1
3,508
[ "MOOSE" ]
f101a4104d072d534a419dbba58d7b1af4a9db2da9f4f68fea940d547c52052d
#------------------------------------------------------------------------------- # coding=utf8 # Name: 模块1 # Purpose: # # Author: zhx # # Created: 19/05/2016 # Copyright: (c) zhx 2016 # Licence: <your licence> #------------------------------------------------------------------------------- import...
vimilimiv/weibo-popularity_judge-and-content_optimization
分类和回归/svm.py
Python
mit
1,941
[ "Gaussian" ]
ce9c5ddbb3cbd7f34335ee0164263bc4986783574985981b70183a12dbd07f6f
#!/usr/bin/env python3 #pylint: disable=missing-docstring #* 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 ...
nuclear-wizard/moose
python/chigger/tests/colormap/reverse_default.py
Python
lgpl-2.1
691
[ "MOOSE" ]
047180fb4ff539d9342c0a9212374a0758aa55aceb6ac276ecbbff440f4f0b70
import ocl import camvtk import time import vtk import datetime import math import procmemory # 2018.08: Weave not wrapped def drawVertices(myscreen, weave, vertexType, vertexRadius, vertexColor): pts = weave.getVertices( vertexType ) print(" got ",len(pts)," of type ", vertexType) for p in pts: m...
aewallin/opencamlib
examples/python/fiber/fiber_16_weave2_STL.py
Python
lgpl-2.1
4,894
[ "VTK" ]
eedd644e3013a0132a64dfd853ccbb4c9d19d565c7364bd19ac5f4988eed458d
# This file is part of OpenHatch. # Copyright (C) 2010, 2011 OpenHatch, Inc. # # This program 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, either version 3 of the License, or # (at your option) any l...
jledbetter/openhatch
mysite/customs/profile_importers.py
Python
agpl-3.0
39,168
[ "exciting" ]
db09f95c0cbf4b42269966e90b804598b469dabdf838cac5b8527eaa3c06779b
import threading import time import uuid from common.constants import gameModes, actions from common.log import logUtils as log from common.ripple import userUtils from constants import exceptions from constants import serverPackets from events import logoutEvent from helpers import chatHelper as chat from objects imp...
osuripple/pep.py
objects/osuToken.py
Python
agpl-3.0
15,993
[ "VisIt" ]
2714760e1cbb10ee30c0dc3c2638a366dd3406bfda58d282c6daf1de42818f50
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
kain88-de/mdanalysis
testsuite/MDAnalysisTests/test_selections.py
Python
gpl-2.0
7,518
[ "CHARMM", "Gromacs", "Jmol", "MDAnalysis", "PyMOL", "VMD" ]
1266fd4d7cff3ac4c99b256149cd12cd7cd2cdde8066151e88c30f92a4aeb1f4
from configparser import ConfigParser import mpi4py import numpy from setuptools import setup, find_packages from setuptools.extension import Extension from Cython.Build import cythonize lammps_config = ConfigParser() lammps_config.read('lammps.cfg') include_dirs = [ mpi4py.get_include(), numpy.get_include(...
costrouc/lammps-python
setup.py
Python
gpl-3.0
1,558
[ "LAMMPS" ]
e285e6718b1ca85572f9e0386d4a4de1dbe086bb063475772aa5b634b5db3f4b
#!/usr/bin/env python # File: plot_icd_mass.py # Created on: Tue Jun 4 11:31:32 2013 # Last Change: Mon Jul 15 16:35:14 2013 # Purpose of script: <+INSERT+> # Author: Steven Boada import pylab as pyl import cPickle as pickle def plot_icd_vs_mass(): galaxies = pickle.load(open('galaxies.pickle','rb')) #galaxi...
boada/ICD
sandbox/legacy_plot_code/plot_icd_mass.py
Python
mit
2,607
[ "Galaxy" ]
1e699d79d7373361e4a5f32c3cd504089c88b7ee0b2c0fe824d11a0ebaf1bcc8
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2007, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
jcurry/ZenPacks.skills1st.deviceReports
ZenPacks/skills1st/deviceReports/ReportLoader.py
Python
gpl-2.0
2,863
[ "VisIt" ]
953540c979ae5aee3bdb3dcdb676bed0387c6ba8f0985523d4c96db4286cd8be
""" Codes for Scattering by ISM Based on formalism derived by Macquart & Koay 2013, ApJ, 776, 125 Modified by Prochaska & Neeleman 2017 """ from __future__ import print_function, absolute_import, division, unicode_literals import numpy as np from scipy.special import gamma from astropy import constants from astr...
FRBs/DM
frb/turb_scattering.py
Python
bsd-3-clause
13,651
[ "Galaxy" ]
a414640eeb8ffc62561f6b14330246bd611cbb308a5d169a2819cc43b76fdac8
# -*- coding: utf-8 -*- """ solace.tests.link_check ~~~~~~~~~~~~~~~~~~~~~~~ A test that finds 404 links in the default templates. :copyright: (c) 2010 by the Solace Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import re import unittest from urlparse import u...
mitsuhiko/solace
solace/tests/link_check.py
Python
bsd-3-clause
2,159
[ "VisIt" ]
0788ee5ee8d0dc8528b2db10b8c41d805ebfb2f44e096e0ad1677b90ac7ded61
#!/usr/bin/python # -*- coding: utf-8 -*- # =========================================================================== # eXe # Copyright 2012, Pedro Peña Pérez, Open Phoenix IT # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
exelearning/iteexe
exe/jsui/mainpage.py
Python
gpl-2.0
88,087
[ "VisIt" ]
122842ca3c7b1b4414ba003801a87f571e84a2ca777b9eb8b6877d37ea8334db
# -*- coding: utf-8 -*- # Copyright (C) Brian Moe (2013-2014), Duncan Macleod (2014-) # # This file is part of LIGO CIS Core. # # LIGO CIS Core 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 ...
lscsoft/cis.server
cisserver/middleware/ligodjangoauth.py
Python
gpl-3.0
7,145
[ "Brian", "MOE" ]
04ee55f18d5dfec542ec5f85b877fb907c525eddeb955b4dbe5efa7831e655d6
# Copyright 2016 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...
ppries/tensorflow
tensorflow/contrib/distributions/python/ops/mvn.py
Python
apache-2.0
28,684
[ "Gaussian" ]
9f36ec0b1260ab7401a33563277fd2b3f795af1347448a8a7cc47f2b53bef98a
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Christian Schwantes # Contributors: Robert McGibbon # # MDTraj...
rmcgibbo/mdtraj
mdtraj/geometry/contact.py
Python
lgpl-2.1
13,688
[ "MDTraj" ]
063e3813afa745638247f97d1de8ed07e155b9ac6fe1f6b063fb19bc53afa2b6
import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import BaggingClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.ensemble import ExtraTreesClassifier from sklearn.neural_network import MLPClassifie...
rupakc/Kaggle-Compendium
Porto Seguro Safe Driver Prediction/porto-baseline.py
Python
mit
2,887
[ "Gaussian" ]
9514f5cd0e7eef03b98fd1aed62d8f2e6622def811d21e404e92edc6925a5746
# -*- coding: utf-8 -*- """ pysteps.nowcasts.sprog ====================== Implementation of the S-PROG method described in :cite:`Seed2003` .. autosummary:: :toctree: ../generated/ forecast """ import numpy as np import time from pysteps import cascade from pysteps import extrapolation from pysteps import ...
pySTEPS/pysteps
pysteps/nowcasts/sprog.py
Python
bsd-3-clause
15,968
[ "Gaussian" ]
7d0c9c53f0ee99433d83be79a456b6bfc972ee855c32afed4d04b04e0bd4789b
""" API operations on the contents of a history. """ from galaxy import exceptions from galaxy import util from galaxy.web import _future_expose_api as expose_api from galaxy.web import _future_expose_api_anonymous as expose_api_anonymous from galaxy.web import url_for from galaxy.web.base.controller import BaseAPIC...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/webapps/galaxy/api/history_contents.py
Python
gpl-3.0
25,537
[ "Galaxy" ]
e2bce10d21366df73c85b8f7720a117ec948ed23790074311c2f838a3652ab54
"""Tools for managing evaluation contexts. """ from __future__ import print_function, division from sympy.utilities.iterables import dict_merge from sympy.polys.polyutils import PicklableWithSlots __known_options__ = set(['frac', 'gens', 'wrt', 'sort', 'order', 'domain', 'modulus', 'gaussian', 'extension', 'fiel...
hrashk/sympy
sympy/polys/polycontext.py
Python
bsd-3-clause
1,944
[ "Gaussian" ]
9f72372a4d377a838a5a149946714045a78bc32b7ed87615be5e6978a2da6f42
# # @file TestAlgebraicRule.py # @brief AlgebraicRule unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting the file lo...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestAlgebraicRule.py
Python
bsd-3-clause
4,067
[ "VisIt" ]
d53a9c0eb3d887255839596a8e89f4c8d2b68193f66c34adaddb714b3c8bbc94
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
src/cluecode/finder.py
Python
apache-2.0
15,886
[ "VisIt" ]
0d1218d0125fa7b9de35a46ef555e714eb4d99d1df3979ea788f4aa2e3da529d
# Copyright (C) 2010 by Kevin Saff # This file is part of the CA scanner. # The CA scanner 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 la...
kcsaff/CA
src/formats/__init__.py
Python
gpl-3.0
4,524
[ "MCell" ]
7df54d141d09c1564411b83bb8161b42fc632fa3f7b1137d92f65d6895b8f836
# -*- coding: utf-8 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 ...
zulumarketing/html2pdf
xhtml2pdf/parser.py
Python
apache-2.0
25,758
[ "VisIt" ]
7282f2b4cf8cfa49a689be5fd108b2b2d0b5b4f066a9132b72420d822b3416d4
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ IC-PCA2 Ice-crystal Classification with Pricipal Component Analysis A complete rewrite in Python 3 Based on the original IC-PCA Matlab tool by Hannakaisa Lindqvist, Jussi Tiira and Hanne Hakkarainen @author: Jussi Tiira <jussi.tiira@helsinki.fi> License: GPL v3 """ imp...
juhi24/ic-pca2
classify.py
Python
gpl-3.0
1,014
[ "CRYSTAL" ]
82bed5a9809938e1349e6611459e8382eb73c76a8949bc2692d567ca6d36b84c
#!/usr/bin/env python # Dan Blankenberg import json import logging import optparse import os import shutil import tempfile from xml.etree.ElementTree import tostring try: # For Python 3.0 and later from shutil import unpack_archive except ImportError: # Fall back to Python 2 import from setuptools.arc...
mblue9/tools-iuc
data_managers/data_manager_manual/data_manager/data_manager_manual.py
Python
mit
7,932
[ "Galaxy" ]
d72d20b9ae4f8239c56d6b719612cc5f69afc88f3698862e3e4312fcc63f0a26
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkDataSetReader(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk....
nagyistoce/devide
modules/vtk_basic/vtkDataSetReader.py
Python
bsd-3-clause
480
[ "VTK" ]
1206544f7faad7a5b82e25a0da6c8401a323dad7a4b0e7f0cbaa8ffed0527b6e
from graphs import Graph """ find a sequence of moves that allow the knight to visit every square on the board exactly once. """ def knightGraph(bdsize): ktGraph = Graph() for row in range(bdsize): for col in range(bdsize): nodeId = posToNodeId(row, col, bdsize) newPositions =...
vector8188/AlgorithmAnalysisPython
knightsTour.py
Python
mit
1,047
[ "VisIt" ]
cc7245708eb4d33458fac5e10bcc5dd92e0c63708f1bfe1807e122118adb5c1a
# encoding: utf-8 """Module for (annotated) unit housekeeping; see ``ModuleSIRegister``.""" from __future__ import division import string import si.math from si.units import SIUnit, SICompoundUnit class ModuleSIRegister(object): """In a module, create a ``_register = ModuleSIRegister(locals())`` and add define units...
chrysn/si
si/register.py
Python
bsd-2-clause
4,102
[ "Dalton" ]
6e1513f8ac6204a25a02586d4c615eb24cae7b81ce35b0226d672874851a94d9
# -*- coding: utf-8 -*- tex_nine_maths_cache = [ {"word": r"aleph", "menu": "ℵ"}, {"word": r"alpha", "menu": "α"}, {"word": r"amalg", "menu": "⨿"}, {"word": r"angle", "menu": "∠"}, {"word": r"approx", "menu": "≈"}, ...
vim-scripts/TeX-9
ftplugin/tex_nine/tex_nine_symbols.py
Python
gpl-3.0
10,868
[ "Bowtie" ]
b8a92e047d4ba439534ec81bb80b395f69a64b72ed8dcd2332cb5c0586bd5409
from __future__ import print_function from __future__ import unicode_literals from builtins import str, bytes, dict, int import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) from pattern.en import article, referenced from pattern.en import pluralize, singularize from pattern.e...
clips/pattern
examples/03-en/01-inflect.py
Python
bsd-3-clause
3,915
[ "Octopus" ]
e62ff2fbff3b7f3aeac10d7db9657ebe84cdbca737c7f245fb8d8c817cfd0094
# # @file TestUnitKind.py # @brief UnitKind enumeration unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting the file ...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestUnitKind.py
Python
bsd-3-clause
10,570
[ "VisIt" ]
f09225b1c946823d7dd80db6c124e0de8529a79d3580b19f49e2b26f7eaf3180
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft = python sts = 4 ts = 4 sw = 4 et: """ANTS Apply Transforms interface Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os.path.realpath( __file__ ) ) >>> datadir = os....
FredLoney/nipype
nipype/interfaces/ants/resampling.py
Python
bsd-3-clause
16,542
[ "Gaussian" ]
7d92f3c2ea8f20360960b6d54e4ac26ae376c06b01ba984ffdae6fb1d626f7e1
""" codecs -- Python Codec Registry, API and helpers. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import builtins import sys ### Registry and builtin stateless codec functions try: from _codecs import * except ImportError as why: raise System...
brython-dev/brython
www/src/Lib/codecs.py
Python
bsd-3-clause
36,672
[ "FEFF" ]
49b4ee951cb4ffc1fcb6b5497888952191dd62337c03ec8475e954dbcad5f0f2
from framework.utils import OWTFLogger from framework.dependency_management.dependency_resolver import ServiceLocator """ This plugin does not perform ANY test: The aim is to visit all URLs grabbed so far and build the transaction log to feed data to other plugins NOTE: This is an active plugin because it may visit UR...
sharad1126/owtf
plugins/web/active/Visit_URLs@OWTF-WSP-001.py
Python
bsd-3-clause
988
[ "VisIt" ]
89351284615eb8bfd7d4a078b15d3d64e30b44aba17a7839026df8bcda12c2ff
import requests import utils CLIENT_ID = "dAhCaXVVvRdCjh7BcA" CLIENT_SECRET = "JvuwZv9NPgV6E5MqzW8Lfb3FgjLpNFzK" REPO_UUID = None def get_auth_url(): return "https://bitbucket.org/site/oauth2/authorize?client_id={0}&response_type=code".format(CLIENT_ID) def is_logged_in(repo_uuid): try: if repo_...
varunagrawal/ClassNotes
notes/bitbucket.py
Python
mit
2,614
[ "VisIt" ]
bf68915fd66aed2f967f4d3210160389185c0bdae61a4e224c1ee3dcb068b52c
import numpy as np from bayesnet.array.broadcast import broadcast_to from bayesnet.math.exp import exp from bayesnet.math.log import log from bayesnet.math.sqrt import sqrt from bayesnet.math.square import square from bayesnet.random.random import RandomVariable from bayesnet.tensor.constant import Constant from bayesn...
ctgk/BayesianNetwork
bayesnet/random/gaussian_mixture.py
Python
mit
3,939
[ "Gaussian" ]
50a6f76e42b2a68c5f6b5fe7c3e75fa9b05a8525aec45fa609c23a8e8200f3be
# -*- coding: iso-8859-1 -*- """ MoinMoin - feed some FCKeditor dialogues @copyright: 2005-2006 Bastian Blank, Florian Festi, Thomas Waldmann @license: GNU GPL, see COPYING for details. """ from MoinMoin import config, wikiutil from MoinMoin.action.AttachFile import _get_files from MoinMoin.Page...
Glottotopia/aagd
moin/local/moin/build/lib.linux-x86_64-2.6/MoinMoin/action/fckdialog.py
Python
mit
20,690
[ "VisIt" ]
313fbed966be153e5e59a7d66906c5f9b30541f6a8df2df95d97c00168526957
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Created on Mar 18, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Ping Ong" __email__ = "shyue@mit.edu" __date_...
gVallverdu/pymatgen
pymatgen/apps/borg/tests/test_queen.py
Python
mit
1,250
[ "pymatgen" ]
4c5f26d4499235df56cdb490ba9c2c6f77493d92598b5d8c6cf3b2ee8901cd48
""" ===================================== SGDOneClassSVM benchmark ===================================== This benchmark compares the :class:`SGDOneClassSVM` with :class:`OneClassSVM`. The former is an online One-Class SVM implemented with a Stochastic Gradient Descent (SGD). The latter is based on the LibSVM implementa...
glemaitre/scikit-learn
benchmarks/bench_online_ocsvm.py
Python
bsd-3-clause
9,395
[ "Gaussian" ]
d1bef8a8a654def98d6574ea14a0b84ae402e1b5e4a11438d6f43459a5bb7203
from django.shortcuts import redirect, render from django.contrib.auth.decorators import login_required from django.views import generic from django.views.generic.edit import DeleteView, UpdateView, CreateView from django.core.urlresolvers import reverse_lazy from django.contrib import messages from .models import Cli...
dwagon/Scheduler
scheduler/client/views.py
Python
gpl-2.0
3,326
[ "VisIt" ]
de2920f7d3fdf59a82bb61e98f2d04a456d06e4272f47ff8918d7c26589c73f9
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2011-2012 Async Open Source ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public License ## as published by the Free Software Foundation; either version 2 ## of the Licens...
andrebellafronte/stoq
stoqlib/api.py
Python
gpl-2.0
8,524
[ "VisIt" ]
6058eeafbb77711e3c9d2342b4cd2b6138135fe881a8a68a15d3d3a97e692bde
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. import collections import logging import threading import itertools import time __author__ = 'Brian Quinlan (brian@sweetapp.com)' FIRST_COMPLETED = 'FIRST_COMPLETED' FIRST_EXCEPTION = 'FIRST_EXCEPTION' ALL_COMPLETED...
bbfamily/abu
abupy/ExtBu/futures/_base.py
Python
gpl-3.0
21,108
[ "Brian" ]
8c96eee148e5ad8f210f0af733005998074d2ad43af296f718be1df0b55d590f