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
#!/usr/bin/env python # POC: Multiple VNC Clients Multiple Integer Overflow Vulnerabilities(UltraVNC and TightVNC), BID 33568 #Author: Andres Lopez Luksenberg <polakocai@gmail.com> (Visit: http://208.66.16.113/~andres/) # import socket serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serversocket.bind(...
knightmare2600/d4rkc0de
exploits/090205.py
Python
gpl-2.0
847
[ "VisIt" ]
ee4fc95781d5555e777203dd6d8110e53eb07ac2a46c4a04f7d1ce1780be7ae2
from django.contrib.auth.decorators import login_required from django.http import HttpRequest, HttpResponse from django.shortcuts import render from core.utils import get_context from .utils import BLASTNcbi @login_required def index(request: HttpRequest, voucher_code: str, gene_code: str) -> HttpResponse: """Ex...
carlosp420/VoSeq
blast_ncbi/views.py
Python
bsd-3-clause
741
[ "BLAST" ]
94856313089a3e489929bccd2e074dd69ef718834f9f9f273fdd753aa78aeb30
""" Test class for Pilot Status Agent """ import pytest from mock import MagicMock # DIRAC Components from DIRAC.WorkloadManagementSystem.Agent.PilotStatusAgent import PilotStatusAgent from DIRAC import gLogger, S_OK # Mock objects mockReply = MagicMock() mockReply.return_value = {"OK": True, "Value": []} mockAM = Ma...
ic-hep/DIRAC
src/DIRAC/WorkloadManagementSystem/Agent/test/Test_Agent_PilotStatusAgent.py
Python
gpl-3.0
2,799
[ "DIRAC" ]
d01e2cd46a4f2d9a4fe747f8ac04da539774684cdab7b246e723a9c9f95a56ac
dicewords = {'11111':"a", '11112':"a&p", '11113':"as", '11114':"aa", '11115':"aaa", '11116':"aaaa", '11121':"aaron", '11122':"ab", '11123':"aba", '11124':"ababa", '11125':"aback", '11126':"abase", '11131':"abash", '11132':"abate", '11133':"abbas", '11134':"abbe", '11135':"abbey", '11136':"abbot", '11141':"abbott", '111...
joekari/dxbot
dicewords.py
Python
mit
126,284
[ "Amber", "BLAST", "Brian", "DIRAC", "Elk", "GULP", "Galaxy", "MOE", "MOOSE", "NEURON", "VisIt" ]
771d5de2e1bba9e8736f4fb7dc7e5e32e54b88aa5fcfa45f5f6353f9f96f4f14
#!/usr/bin/env python ############################################################################### # # # utilities.py # # ...
minillinim/BamTyper
bamtyper/utilities.py
Python
gpl-3.0
40,554
[ "pysam" ]
8309d0ef9358d13eb4a4604ffd00639effac3bd1e1f5e8d42c715cab65904310
from typing import Dict, List, Optional from dataclasses import dataclass def get_request_options(): request_options = RequestOptions() request_options.add_option( 'portal usage per month combined', None, 'portalUsage', None ) request_options.add_option( 'portal usage: filterChange per month'...
ICOS-Carbon-Portal/data
src/main/python/portalusage/RequestOptions.py
Python
gpl-3.0
4,825
[ "NetCDF" ]
67da8e6961a7e160ab566d067f0cef2fdadc2be8a8ef67dd17e81172736ba367
import numpy import os import subprocess # from time import sleep # Rotates input xyz file and generates 100 output xyz files at random orientations along with input.scan for each of them to give as input to mechAFM def makeIt(output_folder = "randomRotateOutput/"): fileNumber = 0 for x in range(41): ...
SINGROUP/readAFM
databaseCode/toyDB/oneAtomShifted/makeXYZ.py
Python
gpl-3.0
4,011
[ "CHARMM" ]
a11be4f463bead70e9c63cb582f631d60ebc14e22b79b1b8fcd54731f0320d30
# Copyright 2000 by Jeffrey Chang. 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. # Gavin E. Crooks 2001-11-07: # Interface and comments modified to reflect changes to the ...
bryback/quickseq
genescript/Bio/SCOP/Dom.py
Python
mit
2,370
[ "Biopython" ]
8ad03346845a7590295a3a983fd80952ce6b618812a3c3e2fe9b3fbf75e06e2d
import pytest from unshortenit.exceptions import NotFound, UnshortenFailed @pytest.fixture def module(): from unshortenit.modules import ShorteSt return ShorteSt() def test_shortest_valid_link(module): uri = module.unshorten('http://sh.st/INTI') assert uri == 'https://adf.ly/b2H0Y' def test_shorte...
jkehler/unshortenit
tests/modules/test_shortest.py
Python
mit
614
[ "ADF" ]
65fd2c60118c42141b4481eaf323b3643e5392a4770c2efee7b9d69e0a0f2048
from pype.ast import * from symtab import * from lib_import import LibraryImporter class SymbolTableVisitor(ASTVisitor): def __init__(self): self.symbol_table = SymbolTable() self.scope='global' def return_value(self): return self.symbol_table def visit(self, node): if isinstance(node, ASTImpor...
cs207-project/pype-package
tests/translate.py
Python
mit
1,708
[ "VisIt" ]
9a67eeeabe1e5eb6a6b9701eba9263bffc847aea31cef75ac03b0c289caffa22
import unittest class TestVTK(unittest.TestCase): def test_import(self): import vtk
Kaggle/docker-python
tests/test_vtk.py
Python
apache-2.0
98
[ "VTK" ]
3ca2ac3b4f0d7edbb327f4880555559fb09f48f21fd05a9bef43495e861c7daa
#!/usr/bin/python # -*- coding: utf-8 -*- dimensions= 2 size1d = 10 halfSize = [size1d*2,size1d*1.2,0.1] # wavepacket parameters k0_x = 3 k0_y = 2 gaussWidth_x = 1.0 gaussWidth_y = 2.0 potentialCoefficient= [0.2,0.5,0.5] # potential parameters potentialCenter = [ 0, 0 ,0 ] potentialHalfSize = h...
cosurgi/trunk
examples/qm/2d-harmonic.py
Python
gpl-2.0
3,211
[ "Gaussian" ]
7c051382b7f46559bf9b89c1e16adda9e7d88e395409871768594f90ed82c69e
""" An example showing the norm and phase of an atomic orbital: isosurfaces of the norm, with colors displaying the phase. This example shows how you can apply a filter on one data set, and dislay a second data set on the output of the filter. Here we use the contour filter to extract isosurfaces of the norm of a com...
liulion/mayavi
docs/source/mayavi/auto/atomic_orbital.py
Python
bsd-3-clause
2,866
[ "Mayavi" ]
b35d964607eb39f2b593ccd4e523e26336d65011cee6abd541e8dd55ec45cc4c
# -*- coding: utf-8 -*- from __future__ import print_function """Check GW calculations. Compare to data from: Predictive GW calculations using plane waves and pseudopotentials Jiří Klimeš, Merzuk Kaltak, Georg Kresse http://arxiv.org/abs/1404.3101 """ import ase.db # Table II: lda = { 'C': [...
robwarm/gpaw-symm
gpaw/test/big/gw/check.py
Python
gpl-3.0
4,018
[ "ASE", "GPAW" ]
c4bbfb239a2874d4987681ea71308bac87a12030491f674ad73bf3b5a027494d
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------- # Copyright (c) 2009 Jendrik Seipp # # RedNotebook 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 vers...
serialdoom/rednotebook
rednotebook/info.py
Python
gpl-2.0
24,447
[ "VisIt" ]
f7b38ff4d97fe28adebd7e636e8d3374516730833b1f2ea7e56a62dc45913d24
# # Copyright (C) 2003 Rational Discovery LLC # All rights are reserved. # from __future__ import print_function from elementtree.ElementTree import ElementTree,Element,SubElement import time def _ConvertModelPerformance(perf,modelPerf): if len(modelPerf)>3: confMat = modelPerf[3] accum = 0 for row in c...
soerendip42/rdkit
rdkit/ML/ModelPackage/PackageUtils.py
Python
bsd-3-clause
4,499
[ "RDKit" ]
68837743dc0a5f34fbd9e9fc97bb9e566be58de64608ceac8c52cdc2f2c2d86e
#!/usr/bin/env python2 # Copyright (C) 2016-2017(H) # Max Planck Institute for Polymer Research # # 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, eit...
MrTheodor/espressopp
testsuite/sub_ens_bond/sub_ens_bond.py
Python
gpl-3.0
6,834
[ "ESPResSo", "VMD" ]
cda751a81368c3f59939f1f12bd8b05a49089f1230f565c139404fd69d0a8a41
from .creators import DispenseScheduleCreator, DispenseAppointmentCreator from .period import Period from .schedule import Schedule from .schedule_collection import ScheduleCollection from .schedule_validator import ScheduleValidator, ScheduleOverlapError from .scheduler import Scheduler, InvalidScheduleConfig, Schedul...
botswana-harvard/edc-pharma
edc_pharmacy/old/scheduler/__init__.py
Python
gpl-2.0
407
[ "VisIt" ]
914e3b61580eaad22be7257f1396825d2732b331fb7138981d75c9abb2dda715
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.a...
sridevikoushik31/nova
nova/tests/compute/test_resource_tracker.py
Python
apache-2.0
33,735
[ "exciting" ]
40ae974db5add1def15d19e97b8dd6ac79a154557b4549034147ef553789453c
#!/usr/bin/env python """ load metabolome into OSDF using info from data file """ import os import re from cutlass.Metabolome import Metabolome import settings from cutlass_utils import \ load_data, get_parent_node_id, list_tags, format_query, \ write_csv_headers, values_to_node_dict, write_out_csv, ...
TheJacksonLaboratory/osdf_submit
nodes/metabolome.py
Python
gpl-3.0
5,242
[ "VisIt" ]
4f264557beb3e6a8335780e72d8c326196d59117a2ea0a5cd4b2ce68c03e63ba
# -*- 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_altloc.py
Python
gpl-2.0
2,542
[ "MDAnalysis" ]
8943e4b09b749dcab72cffd3c765b511edff0be4d0c47b6143ed2cd06c9e26d0
#!python """\ Easy Install ------------ A tool for doing automatic download/extract/build of distutils-based Python packages. For detailed documentation, see the accompanying EasyInstall.txt file, or visit the `EasyInstall home page`__. __ http://packages.python.org/distribute/easy_install.html """ import sys, os.p...
davidvon/pipa-pay-server
site-packages/distribute-0.6.27-py2.7.egg/setuptools/command/easy_install.py
Python
apache-2.0
72,272
[ "VisIt" ]
1df9aae47f9a0ce48825e13d75445df8b149763b51a5084b8998598c445f12e5
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import warnings import numpy as np from pymatgen.analysis.ewald import EwaldMinimizer, EwaldSummation from pymatgen.io.vasp.inputs import Poscar from pymatgen.util.testing import PymatgenTest cla...
vorwerkc/pymatgen
pymatgen/analysis/tests/test_ewald.py
Python
mit
5,780
[ "LAMMPS", "VASP", "pymatgen" ]
f7b2f29b6f87f56e25e6c6b623b96eb1e2be32c7be2bfa0097d08aebca7b67dd
#-*- coding: cp936 -*- # Modified based on Phatch #---PIL modules import from PIL import Image, ImageChops, ImageFilter, ImageEnhance, ImageOps def has_transparency(image): """Checks if the image has transparency. The image has an alpha band or a P mode with transparency. :param image: the image to check...
QuinnSong/JPG-Tools
src/shadow.py
Python
gpl-3.0
19,284
[ "Gaussian" ]
51ee885ca27388fd7a7791c3b938308d36a2145b584d085946e1a66afb555a8c
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module define the various drones used to assimilate data. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" ...
migueldiascosta/pymatgen
pymatgen/apps/borg/hive.py
Python
mit
17,214
[ "Gaussian", "VASP", "pymatgen" ]
0597aa7f6e7769c0704f7bccbcafebe7dd9a9771baf96179cb5952a512fce567
#!/usr/bin/env python2 # vim:fileencoding=UTF-8 from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' from collections import OrderedDict fr...
ashang/calibre
src/calibre/ebooks/metadata/sources/google_images.py
Python
gpl-3.0
4,870
[ "VisIt" ]
73e650f49ab0cb4d60f719b5a078fa8f6d449977020f2692577eef39d05c4acc
import sys import ast from collections import namedtuple from distutils.version import LooseVersion from axidrawinternal.plot_utils_import import from_dependency_import ebb_serial = from_dependency_import('plotink.ebb_serial') # Requires v 0.13 in plotink https://github.com/evil-mad/plotink requests = from_depende...
evil-mad/axidraw
inkscape driver/axidraw_options/versions.py
Python
gpl-2.0
5,785
[ "VisIt" ]
7058d3a663ed02f050894868949c1d3f8c2de40aff9209c7418f90a01fbac9a9
# -*- coding: utf-8 -*- """Sample controller with all its actions protected.""" from tg import expose, flash, redirect, request from tg.i18n import lazy_ugettext as l_ from molgears.model import DBSession, Tags, SFiles, LCompound, LPurity, LHistory, Group, Names, SCompound from molgears.model import Compound, User, Pro...
admed/molgears
controllers/library.py
Python
bsd-3-clause
58,444
[ "RDKit" ]
4f3e77dec86f13ccf6ee678a1e794713b29cdb7dba8118192d74a605bf981abd
import sys sys.path.insert(1, "../../../") import h2o, tests def weights_and_distributions(): htable = h2o.upload_file(tests.locate("smalldata/gbm_test/moppe.csv")) htable["premiekl"] = htable["premiekl"].asfactor() htable["moptva"] = htable["moptva"].asfactor() htable["zon"] = htable["zon"] # g...
kyoren/https-github.com-h2oai-h2o-3
h2o-py/tests/testdir_algos/deeplearning/pyunit_weights_and_distributionsDeeplearning.py
Python
apache-2.0
1,126
[ "Gaussian" ]
4d8497d38605e67028994b82b630214851a72aa34348e323ffbb3b56b06c93db
#!/usr/bin/env python # CREATED:2013-03-11 18:14:30 by Brian McFee <brm2132@columbia.edu> # unit tests for librosa.onset from __future__ import print_function from nose.tools import raises, eq_ # Disable cache import os try: os.environ.pop('LIBROSA_CACHE_DIR') except: pass import warnings import numpy as ...
r9y9/librosa
tests/test_onset.py
Python
isc
8,533
[ "Brian" ]
cac7d81a903cc24c1d5ed02059beb222756faf00eee6fe13d7be12def17ba12d
# -*- coding: utf-8 -*- # Description: class NeuroML for loading NeuroML from single file into MOOSE # Version 1.0 by Aditya Gilra, NCBS, Bangalore, India, 2011 for serial MOOSE # Version 1.5 by Niraj Dudani, NCBS, Bangalore, India, 2012, ported to parallel MOOSE # Version 1.6 by Aditya Gilra, NCBS, Bangalore, India, ...
dilawar/moose-core
python/moose/neuroml/NeuroML.py
Python
gpl-3.0
8,050
[ "MOOSE" ]
1256567334ff8ed0b0ac9672ddc53e9008dc29c43261e9b42207944189695dea
# -*- coding: utf-8 -*- """ pytasa.fundamental - basic operations with elastic constant matrices This module provides functions that operate on single elastic constant matrices represented as 6x6 numpy arrays (Voigt notation). """ from __future__ import print_function import numpy as np def _velo(X,rh,C): """P...
alanfbaird/PyTASA
pytasa/fundamental.py
Python
mit
13,770
[ "CRYSTAL" ]
eb9012b22bd03ae6c6fab1614b2305c22f387d6884e7ca4030fd3832c3852b8d
from dsltools import Traversal from ..syntax import const from ..ndtypes import ArrayT, ClosureT, ScalarT, TupleT from shape import Closure, Scalar, Var, AnyScalar, any_scalar, computable_dim class ArgConverter(Traversal): def __init__(self, codegen): self.codegen = codegen self.var_counter = 0 self...
pombredanne/parakeet
parakeet/shape_inference/shape_codegen.py
Python
bsd-3-clause
3,213
[ "VisIt" ]
1f3ac4618429c0a0392d0a95185daeaf522b1a0196a181f3893b0f67ff2639ee
#!/usr/bin/env python # -*- coding=utf-8 -*- from pymatgen.core import Molecule, SymmOp import numpy as np def local_frame(mol, origin=0, xat=1, yat=2, barycenter=False): """ Return a new molecule object where the atoms are in the local frame defined from the three atoms given as argument. Args: ...
gVallverdu/myScripts
Various/ads.py
Python
gpl-2.0
7,950
[ "VASP", "pymatgen" ]
8649fa67df6942da66912be06dcb4032ca22f6c67076f7d2f8ab90f2940a1b5b
# # QAPI types generator # # Copyright IBM, Corp. 2011 # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # # This work is licensed under the terms of the GNU GPLv2. # See the COPYING.LIB file in the top-level directory. from ordereddict import OrderedDict from qapi import * import sys import os import getopt impor...
rpaleari/qtrace
src/scripts/qapi-types.py
Python
gpl-2.0
10,389
[ "VisIt" ]
fbd8e4659fc906827266f5bec0fcc584089efcb04083d3ebfdcdbee0bedbc768
import unittest from mock import patch from envs import env from warrant import Cognito, UserObj, GroupObj, TokenVerificationException from warrant.aws_srp import AWSSRP class UserObjTestCase(unittest.TestCase): def setUp(self): if env('USE_CLIENT_SECRET') == 'True': self.app_id = env('COGN...
capless/warrant
warrant/tests/tests.py
Python
apache-2.0
7,402
[ "Brian" ]
fb150198b4830032591540b3c446b07db3b3d70d4851f278746a0d3f9b9b53c0
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import datetime import json import os import gzip import shutil import stat from contextlib import contextmanager, clos...
bsmedberg/socorro
socorro/external/fs/crashstorage.py
Python
mpl-2.0
25,969
[ "VisIt" ]
42d10a00f83741d1bb8954aa684ec08193bdcf9857716c276d4ac2c1e16b35b0
from __future__ import print_function from tempfile import NamedTemporaryFile from ase.io.trajectory import TrajectoryReader, Trajectory from pyiid.calc.calc_1d import Calc1D from pyiid.experiments.elasticscatter import ElasticScatter from pyiid.sim.nuts_hmc import NUTSCanonicalEnsemble from pyiid.tests import * __...
CJ-Wright/pyIID
pyiid/tests/test_sim/test_nuts.py
Python
bsd-3-clause
4,811
[ "ASE" ]
12955d434d2fb49684395b15631430b6e6bc47aa353f31dd01040fc7f7673f6f
import urllib,urllib2,re,cookielib,os,sys import xbmc, xbmcgui, xbmcaddon, xbmcplugin,time from resources.modules import main, vipplaylist,resolvers import subprocess import FuckNeulionClient from addon.common.addon import Addon addon_id = 'plugin.video.phstreams' selfAddon = xbmcaddon.Addon(id=addon_id) addon = Addon...
siouka/dmind
plugin.video.phstreams/resources/modules/nhl.py
Python
gpl-2.0
10,141
[ "VisIt" ]
5646c84069d7f4476866a0aceab90b85d193d549500c83d72441922f6bbeb2ce
#!/usr/bin/python #Author: Lori Glenwinkel # CREATE DATE: 2014 # DESCRIPTION:Feeds user input from the Galaxy TargetOrtho tool to TargetOrtho.py. import os,sys,datetime p=os.path.abspath(__file__).split('/')[1:-3] s='' for i in p: s=s +'/%s'%i TargetOrtho_path=s def assign_jobID(): """assign a Galaxy job ID"...
loriglenwinkel/TargetOrtho
run/scripts/TargetOrtho_galaxy.py
Python
mit
6,131
[ "Galaxy" ]
cfea9e94adb7f6431c47a0c5656ce198423c95c2d25f78072ab5755fb966973f
# -*- coding: utf-8 -*- # # Copyright (c) 2017, 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. """Unit tests for parser ccio module.""" import os import sys import tempfile from io import StringIO import unittest fro...
cclib/cclib
test/io/testccio.py
Python
bsd-3-clause
6,733
[ "ADF", "Dalton", "GAMESS", "Gaussian", "Jaguar", "MOPAC", "Molpro", "NWChem", "ORCA", "Psi4", "cclib" ]
f447cf473ca823d6e837780faef5571bf33872679fa0ece501f4dd7366c6105d
# coding: utf8 # Adafruit BNO055 Absolute Orientation Sensor Library # Copyright (c) 2015 Adafruit Industries # Author: Tony DiCola # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without r...
makerplane/FIX-Gateway
fixgw/plugins/rpi_bno055/Adafruit_BNO055/BNO055.py
Python
gpl-2.0
29,872
[ "CRYSTAL" ]
29ce845d966f83b00a4d3bd619c1d961bde503596b29854ce86d88e39a859779
# -*- coding: utf-8 -*- # Copyright (c) 2015-2020, Exa Analytics Development Team # Distributed under the terms of the Apache License 2.0 """ Common conversion factors ########################################## Conversion factors from the tabulated physical constants from `NIST`_. All of the entries that end with relat...
exa-analytics/exa
exa/util/conversions.py
Python
apache-2.0
2,767
[ "Dalton" ]
5125a20b37764736baea81fe2cfabd68eb7f9ae3493b06ca1985edb49c951ec9
""" A plugin for reading BAS aircraft files """ from cis.data_io.products import AProduct import logging class BAS_aircraft(AProduct): def get_file_signature(self): return [r'.*\.nc'] def create_coords(self, filenames, usr_variable=None): from cis.data_io.netcdf import read_many_files_indivi...
duncanwp/cis_plugins
BAS_aircraft.py
Python
lgpl-3.0
3,572
[ "NetCDF" ]
d12a95a50e5fd65483670900aaa4cd2f6d8e1d124450530fa1c32487d7386f29
""" Client-side transfer class for monitoring system """ import time from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC import S_OK class SiteMapClient: ########################################################################### def __init__( self, getRPCClient = None ): self.getRPCClient = getRPCCl...
Sbalbp/DIRAC
FrameworkSystem/Client/SiteMapClient.py
Python
gpl-3.0
1,184
[ "DIRAC" ]
aa1779f864e337bcfa7e28ce9ba9a5fe17835627567ada78f32a958cd9a51ddf
from coalib.bearlib.abstractions.Linter import linter from coalib.bears.requirements.DistributionRequirement import ( DistributionRequirement) @linter(executable='verilator', output_format='regex', use_stderr=True, output_regex=r'\%(?:(?P<severity>Error|Warning.*?).*?):' ...
sounak98/coala-bears
bears/verilog/VerilogLintBear.py
Python
agpl-3.0
1,474
[ "VisIt" ]
fda5d62724a1e276bcfc0a1934b05e79cee757e5aba6f2ea9375d4f5f7d740ce
""" This is an example of using th Optuna (https://optuna.org/) hyper-parameter optimizer to select which optimizer (and paramter set) performs best on a set of circuits. There are several parameters that need to be set for this to run: * OptimizerList: this is the list of opimzers to try * n_tria...
danecollins/pyawr
pyawr/optuna_single_project.py
Python
mit
17,556
[ "Gaussian" ]
bb346f5b35dd87e046901ddc8fe0c59d96718d97e6ccb15d5a2df1e34679efca
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2017, 2018, 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
CalebBell/thermo
thermo/mixture.py
Python
mit
125,376
[ "RDKit" ]
3352c5272dd105422f7b7c7146a529600360e0c91e30bd2c5087618f238ef442
# -*- coding: utf-8 -*- """ config ~~~~~~ Configuration settings. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ config = {} # Configuration for the 'tipfy' module. config['tipfy'] = { # Enable debugger. It will be loaded only in development. 'middleware':...
ac001/moe
project/app/config.py
Python
bsd-3-clause
1,001
[ "MOE" ]
d3867fbbd6378f1b530fb79d5f8e3fbebedef86a5e86957cbcaed704127d33a4
# revlog.py - storage back-end for mercurial # # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. """Storage back-end for Mercurial. This provides efficient delta storage with O(1...
jordigh/mercurial-crew
mercurial/revlog.py
Python
gpl-2.0
45,834
[ "VisIt" ]
1c76d247b464d8b713ae98b20718d50630f248a65d9c3d0071c6b10a409122d3
#!python """ reloadall.py: transitively reload nested modules (2.X + 3.X). Call reload_all with one or more imported module module objects. """ import types from imp import reload # from required in 3.X def status(module): print('reloading ' + module.__name__) def tr...
simontakite/sysadmin
pythonscripts/learningPython/reloadall.py
Python
gpl-2.0
1,831
[ "VisIt" ]
50edaa5613f3912671c2b96b2579670fb47187b9ff02812b7e189d406a69e928
#!/usr/bin/python3 """ =============================================================================== title :main.py for wisewebspider package description :Scrapes and downloads all publicly availabe spectra from WISeREP. authors :Jerod Parrent, James Guillochon date ...
jparrent/WISeWEBSpider
wisewebspider/main.py
Python
gpl-3.0
26,277
[ "Galaxy" ]
484bec399d7a717d613d50563dceb18e81e09228873dff16877e51605b6478c9
#!/usr/bin/env python # Modification History # 01/28/2017 Add jsdoc2md and some print statements to trace what's going on. Brian S Hayes (Hayeswise) # 02/04/2017 Add if exists check around distribution file rather than use try block. Brian S Hayes (Hayeswise) import glob import time import re import io import base64 ...
hayeswise/ingress-intel-total-conversion
wise-build.py
Python
isc
17,501
[ "Brian" ]
dd3394a1a1165365f298805a9feb72fba3ee4ca8a88647dd3a32e271d32ad6e0
#!/usr/bin/env python """ Artificial Intelligence for Humans Volume 1: Fundamental Algorithms Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2013 by Jeff Heaton Licensed under the Apache License, Version 2...
PeterLauris/aifh
vol1/python-examples/examples/example_logit.py
Python
apache-2.0
4,422
[ "VisIt" ]
8cd6e433ed656f78cff9699878459d95ff051751beaded1d41433b847ba7049e
# -*- coding: utf-8 -*- # (c) 2017, Brian Coca <bcoca@ansible.com> # (c) 2017, Adam Miller <admiller@redhat.com> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ...
ansible/ansible
lib/ansible/modules/sysvinit.py
Python
gpl-3.0
13,798
[ "Brian" ]
c4585f40bc1375c6d5ef155d948b4778b143754d2ddeb8e25a8635aa870222cd
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-05-19 17:00:49 # @Last modified by: Brian Cherinka # @Last Modified time: 2017-07-30 19:23:16 from __future__ import print_function, division, absolute_import from tests.api.conftest ...
sdss/marvin
tests/api/test_modelcube.py
Python
bsd-3-clause
2,893
[ "Brian", "Galaxy" ]
3a1f4226c3a9b64b710e25f788845533eb7a4b223a64abf4e37ea5c67d7defe5
import numpy as np def affine_forward(x, w, b): """ Computes the forward pass for an affine (fully-connected) layer. The input x has shape (N, d_1, ..., d_k) where x[i] is the ith input. We multiply this against a weight matrix of shape (D, M) where D = \prod_i d_i Inputs: x - Input data, of...
UltronAI/Deep-Learning
CS231n/reference/cnn_assignments-master/assignment3/cs231n/layers.py
Python
mit
5,070
[ "NEURON" ]
a524b65382dc44e6127e8350ed980d63d625adf41b8e47418b653cb03fa87ade
r""" :mod:`~matplotlib.mathtext` is a module for parsing a subset of the TeX math syntax and drawing them to a matplotlib backend. For a tutorial of its usage see :ref:`mathtext-tutorial`. This document is primarily concerned with implementation details. The module uses pyparsing_ to parse the TeX expression. .. _p...
tkaitchuck/nupic
external/linux64/lib/python2.6/site-packages/matplotlib/mathtext.py
Python
gpl-3.0
101,723
[ "Bowtie" ]
d12e0d45ae00ea0c925832eecd933e6644ecedd8010f43a0162bf0e553547241
import os from random import randrange from math import ceil # Déclaration des variables de départ argent = 1000 # On a 1000 $ au début du jeu continuer_partie = True # Booléen qui est vrai tant qu'on doit # continuer la partie print("Vous vous installez à la table de roulette avec", argent, "$.") while continuer_...
david-co/veamos
test.py
Python
lgpl-2.1
2,875
[ "CASINO" ]
eeec7218fe62493626a21bb9c9d11a5a79ee9fbf37aca2b6aaafe1a58e9a100e
from pygraph.classes.digraph import digraph from pygraph.algorithms.searching import depth_first_search import sys import re RHETORICAL_RELATIONS = [ "continuation", "narration", "result", "contrast", "parallel", "precondition", "consequence", "conditional", "alternation", "back...
valeriobasile/learningbyreading
src/unboxer/drg.py
Python
gpl-2.0
5,125
[ "VisIt" ]
45a77f4361acd1deb377f8122cc56f0f7b191d624b12aecc0dd158bd73330cd4
"""Polynomial factorization routines in characteristic zero. """ from sympy.polys.galoistools import ( gf_from_int_poly, gf_to_int_poly, gf_lshift, gf_add_mul, gf_mul, gf_div, gf_rem, gf_gcdex, gf_sqf_p, gf_factor_sqf, gf_factor) from sympy.polys.densebasic import ( dup_LC, dmp_LC, dmp_gro...
amitjamadagni/sympy
sympy/polys/factortools.py
Python
bsd-3-clause
33,232
[ "Gaussian" ]
4cbe3761193584ee62a680ac8bbea79957d7695c724c14627c1f07e45e56c74f
"""Leetcode 98. Validate Binary Search Tree Medium URL: https://leetcode.com/problems/validate-binary-search-tree/ Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key. The rig...
bowen0701/algorithms_data_structures
lc0098_validate_binary_search_tree.py
Python
bsd-2-clause
8,897
[ "VisIt" ]
b5560f5e8beb42a04296dc4b1950af2cd622aad8d5fb8388a3fbedcefd95d54c
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/plugins/songs/songsplugin.py
Python
gpl-2.0
14,434
[ "Brian" ]
a6a95f73291606299c449bf99287174aafe5b0bd55b7661b9d6b67e5652ac425
"""Django settings for Pontoon.""" import os import socket from django.utils.functional import lazy import dj_database_url _dirname = os.path.dirname ROOT = _dirname(_dirname(_dirname(os.path.abspath(__file__)))) def path(*args): return os.path.join(ROOT, *args) # Environment-dependent settings. These are ...
participedia/pontoon
pontoon/settings/base.py
Python
bsd-3-clause
23,783
[ "VisIt" ]
7481422e0a3c72da00d049d3070d45e93500e932554b8b4d31b1eff8f685afef
""" Atom-based Bootstrap Embedding """ import os import time import numpy as np import multiprocessing as mtproc import itertools as its from frankenstein.be import BE from frankenstein.pyscf_be.pysd_atom import pySDATOM from frankenstein.tools.io_utils import prtvar """ Methods for setting up fragments/getting in...
hongzhouye/frankenstein
be/bemol.py
Python
bsd-3-clause
26,819
[ "PyMOL", "PySCF" ]
53bab75b9c5e972affdfc2a31491c352120c5080048e111f94c3e6eae856bab9
""" SystemLoggingReportHandler allows a remote system to access the contest of the SystemLoggingDB The following methods are available in the Service interface getTopErrors() getGroups() getSites() getSystems() getSubSystems() getFixedTextStrings() getCountMessages() getGroupedMess...
Andrew-McNab-UK/DIRAC
FrameworkSystem/Service/SystemLoggingReportHandler.py
Python
gpl-3.0
8,376
[ "DIRAC" ]
dbc47882c85eb24e1017a3c5651b6084a2ccbf2d139841c794029097245c5366
""" Shared constants across the bcbio-nextgen-vm project. """ import logging import os import sys # pylint: disable=no-init,old-style-class DOCKER = { "port": 8085, "biodata_dir": "/usr/local/share/bcbio-nextgen", "work_dir": "/mnt/work", "image_url": "bcbio/bcbio", } class ANSIBLE: """Ansible...
alexandrucoman/bcbio-nextgen-vm
bcbiovm/common/constant.py
Python
mit
2,562
[ "BWA", "Bioconda", "Bowtie" ]
efc2272fc5698d5f4aae6eb3cd71b8efd6ac8b8008805bb199f6fc5e4987264f
# -*- coding: utf-8 -*- """ Created on Sat Dec 19 02:52:03 2015 @author: ylks """ ''' Regression Example ''' from StringGPy.samplers.regression import SGPRegressor # Create the model. kernel_type = "se" # Many kernels are available including Matern 1/2, 3/2, 5/2, RQ, and stationary spectral kernels. ...
YLnKS/StringGPy
StringGPy/examples/example.py
Python
bsd-3-clause
2,762
[ "Gaussian" ]
1e0bb6710008fede44b1b76dca0e22b2347a1182b3b8126209e90945ceb6f273
#!/usr/bin/env python #-*- encoding: utf-8 -*- """ GUI front end for qrencode based on the work of David Green: <david4dev@gmail.com> https://launchpad.net/qr-code-creator/ and inspired by http://www.omgubuntu.co.uk/2011/03/how-to-create-qr-codes-in-ubuntu/ uses python-zbar for decoding from files and webcam """ impo...
primetang/qrtools
src/qtqr.py
Python
gpl-3.0
34,107
[ "VisIt" ]
56f7c0b09796296182d52b5a66c5b7767fe14fab8a3dce98a7de3ec725acce99
import numpy as np from scipy.misc import derivative from scipy.special import erf import pytest from starlight.models_cy import * relative_accuracy = 0.0001 NREPEAT = 10 def gaussian(x, mu, sig): return np.exp(-0.5*((x - mu)/sig)**2) / np.sqrt(2*np.pi) / sig def gaussian_grad(x, mu, sig): return - gauss...
ixkael/Starlight
tests/test_models_cy.py
Python
mit
24,202
[ "Gaussian" ]
70a6e729fc3ff93d54cfef2ddce1f50ce2443b7ed6426bed848fe3603894b692
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundati...
andrebellafronte/stoq
stoqlib/gui/test/test_importer_dialog.py
Python
gpl-2.0
1,582
[ "VisIt" ]
cd863c096ce71bdd379dda536619271194f619b27431332e1a73024de6cd8a61
""" Contains methods for generating a pdbbind dataset mapping complexes (protein + ligand) to experimental binding measurement. """ import pickle import os import pandas as pd from rdkit import Chem from glob import glob import re def extract_labels(pdbbind_label_file): """Extract labels from pdbbind label file."...
evanfeinberg/deep-learning
datasets/construct_pdbbind_df.py
Python
lgpl-3.0
3,351
[ "RDKit" ]
339095a47ca1de84c94e976aaa74be67eb220a61bf547913ae7898a83089aea9
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. #!/usr/bin/env python from __future__ import division, unicode_literals """ #TODO: Write module doc. """ __author__ = 'Shyue Ping Ong' __copyright__ = 'Copyright 2013, The Materials Virtual Lab' __version__ =...
Bismarrck/pymatgen
pymatgen/io/aseio.py
Python
mit
594
[ "ASE", "pymatgen" ]
ecdc9c5fc2d2f363284e9eb9d71389e7a89b6f2ef04b2dc99ade372da8ec6061
import logging log = logging.getLogger(__name__) import itertools import numpy as np from collections import OrderedDict from pycqed.analysis import analysis_toolbox as a_tools from pycqed.analysis_v3 import helper_functions as hlp_mod from pycqed.analysis_v3 import processing_pipeline as pp_mod from pycqed.measuremen...
QudevETH/PycQED_py3
pycqed/analysis_v3/data_processing.py
Python
mit
66,982
[ "Gaussian" ]
cc10895d2039fde46b70e397553a8b24e995175803b98d2e8a0ef964b5b1d918
""" Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
google/patents-public-data
tools/bigquery-indexer/main.py
Python
apache-2.0
5,271
[ "RDKit" ]
58bd519185dc465556a11f2577aaea4d424a22e2e1cdbba559ba176d80beec78
import os.path as op from sfepy.base.base import * from sfepy.base.progressbar import MyBar from sfepy.fem.evaluate import eval_equations import freeFormDef as ffd from sfepy.terms import CharacteristicFunction ## # c: 15.10.2007, r: 15.04.2008 def update_mesh( shape_opt, pb, design ): output( 'mesh update (%d)!'...
olivierverdier/sfepy
sfepy/optimize/shapeOptim.py
Python
bsd-3-clause
13,452
[ "VTK" ]
05983567658a04dfeeb22118190989035f33ebe82263b84f15046383f10a1246
try: import unittest2 as unittest except ImportError: import unittest from bpython.curtsiesfrontend.manual_readline import \ left_arrow, right_arrow, beginning_of_line, forward_word, back_word, \ end_of_line, delete, last_word_pos, backspace, delete_from_cursor_back, \ delete_from_cursor_forward, d...
aktorion/bpython
bpython/test/test_manual_readline.py
Python
mit
9,887
[ "ADF" ]
61bf61fed82cc5fc1ad6954b8e6695b1ff98853c63433c02d2c1bc55ca82ecc2
## # @package RAMS.NXT # @file NXTSonarSensor.py # @author Brian Kim # @date 7/24/14 # @brief an NXT wrapper around the SonarSensorAssembly to interface with # the NXT sonar sensors from RAMS.NXT.NXTSensor import NXTSensor from RAMS.common.sensors.SonarSensorAssembly import SonarSensorAssembly clas...
briansan/rams
RAMS/nxt/NXTSonarSensor.py
Python
bsd-3-clause
481
[ "Brian" ]
20a5b3179fd50eb72ba51aff8461d07c17766e9b4cdd284c56e08a0537f00ade
# Copyright (C) 2008 University of Maryland # All rights reserved. # See LICENSE.txt for details. # Author: Christopher Metting #Starting Date:6/19/2009 from numpy import * from pylab import figure, show, subplot, imshow #import approximations, view, scale, sample_prep, magPlotSlicer from . import approximations imp...
reflectometry/osrefl
osrefl/theory/scatter.py
Python
bsd-3-clause
34,768
[ "Gaussian" ]
a3f1b78773c2da86c0bee64e790cb641ec9bbebd859dd93f007c120252c90989
from numpy import * class BayesClassifier(object): def __init__(self): """ Initialize classifier with training data. """ self.labels = [] # class labels self.mean = [] # class mean self.var = [] # class variances self.n = 0 # nbr o...
siddhartharay007/PCV
pcv_book/bayes.py
Python
bsd-2-clause
1,884
[ "Gaussian" ]
04ebb86e7faf8829a0c5b74444bdff5c4c87d007647e217277859f2e184f82af
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import session, _ from frappe.utils import today from erpnext.utilities.transaction_base import TransactionBase class ...
gangadharkadam/v5_erp
erpnext/support/doctype/customer_issue/customer_issue.py
Python
agpl-3.0
2,172
[ "VisIt" ]
aed53c1edd6df54972896cb8236da453da7f4a1427ff079ed676dedb9199bf8b
#! /usr/bin/python2 import subprocess import sys import os import time from subprocess import PIPE import socket default_params = '' output_file_prefix = 'output' if len(sys.argv) > 1: output_file_prefix = sys.argv[1] # # SCENARIO # # 0: radial dam break # 1: gaussian # 2: balanced steady state u # 3: balanced ste...
schreiberx/sweet
archive/benchmarks_plane/rexi_tests_lrz/2016_01_06_scalability_rexi_fd_run2/params.py
Python
mit
5,450
[ "Gaussian" ]
e0359e044e8f8a03dbe408846e4854e948eae044000ee3966c6ec2977c244f84
# $Id$ # # Copyright (C) 2007-2010 Greg Landrum # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ General descriptor testing code """ from __f...
strets123/rdkit
rdkit/Chem/UnitTestDescriptors.py
Python
bsd-3-clause
3,834
[ "RDKit" ]
03fda29e1f0ab7c8c776ebf5643ae1081d8101f382645cfe20205dc5c6387515
""" Module to set up run time parameters for Clawpack -- classic code. The values set in the function setrun are then written out to data files that will be read in by the Fortran code. """ import os import numpy as np #------------------------------ def setrun(claw_pkg='classic'): #--------------------------...
clawpack/adjoint
examples/acoustics_1d_heterogeneous/adjoint/setrun.py
Python
bsd-2-clause
7,337
[ "NetCDF" ]
da542e28ab1e6a1d19a7babcf0ae4d056fd394087262db2051f2ccb6a71d98f0
#! /usr/bin/env python ############################################################################## ## Phylogenomic tools package. ## ## Copyright 2013 Derrick J. Zwickl ## All rights reserved. ## ## See "LICENSE.txt" for terms and conditions of usage. ## ## If you use this work or any portion thereof in publis...
zwickl/pygot
setup.py
Python
mit
6,099
[ "Biopython" ]
bfdf3aae4cfc323f695fe154b7b2369eb58766027ef8da6a32f18d4cb37fb0c8
from simtk import unit as u import simtk.openmm as mm import openmmtools testsystem = openmmtools.testsystems.WaterBox() system, positions = testsystem.system, testsystem.positions integrator = mm.CustomIntegrator(1.75 * u.femtoseconds) temperature = 300 * u.kelvin integrator.addPerDofVariable("x1", 0) integrator.a...
kyleabeauchamp/HMCNotes
code/misc/test_nan.py
Python
gpl-2.0
2,063
[ "Gaussian", "OpenMM" ]
5ea52d487dc0c51ec47c654ee9ad23da3aac0e2db5cfb6971f2d0e1156b9a133
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-02-16 13:10:05 by Brian McFee <brian.mcfee@nyu.edu> '''Regression tests on metlab features''' from __future__ import print_function # Disable cache import os try: os.environ.pop('LIBROSA_CACHE_DIR') except: pass import matplotlib matplotlib.use('...
craffel/librosa
tests/test_met_features.py
Python
isc
4,341
[ "Brian" ]
8421ccb0a7a399c3ab62b158d5a11f10f080cf529c06a028f38ca839d60bc466
""" TransformationPlugin is a class wrapping the supported transformation plugins """ import random from DIRAC import gConfig, gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities.SiteSEMapping import getSitesForSE, getSEsForSite from DIRAC.Core.Utilities.List import breakListIntoChu...
coberger/DIRAC
TransformationSystem/Agent/TransformationPlugin.py
Python
gpl-3.0
12,211
[ "DIRAC" ]
a9839e0b78e97b472a87611669fffc2375a5312ee60dbd2dc33c9715503c7712
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/nerfactor
nerfactor/util/img.py
Python
apache-2.0
8,343
[ "Gaussian" ]
e241f083d191b94296e7235e4301ba7e2a4aae3a835cabe775f5da4480841930
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.account.tests.account_test_classes import AccountingTestCase class ValuationReconciliationTestCase(AccountingTestCase): """ Base class for tests checking interim accounts reconciliation works i...
maxive/erp
addons/stock_account/tests/test_anglo_saxon_valuation_reconciliation_common.py
Python
agpl-3.0
5,469
[ "MOOSE" ]
852f372a88b57d1708af05e554aab3ef93c2d0f4e2150c1dd345d61d2c8c4eeb
"""test_table_stream.py: Test moose.TableStream. This class takes over moose.Table and make sure that their vector is written to stream. Once a chunk of data is written, it is removed from vector. This way, moose never runs out of memory during simulation. """ __author__ = "Dilawar Singh"...
subhacom/moose-core
tests/python/streamer.py
Python
gpl-3.0
923
[ "MOOSE" ]
58475e35f72519c7098a2202a79edd4fded36bc110ee24a7842e021ca8d5c64e
""" core implementation of testing process: init, session, runtest loop. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import contextlib import functools import os import pkgutil import sys import attr import py import six import _pytest._code from _...
txomon/pytest
src/_pytest/main.py
Python
mit
24,867
[ "VisIt" ]
ae8902a2b54a734a7c145e180a9dae64efa7ae965d9973e184881f4099485d6b
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/pbc/lib/kpts_helper.py
Python
apache-2.0
13,932
[ "PySCF" ]
02ff3e47cddd0139abc1d8d589f67ef6a8ddb6721ad569e6bcac157bfd7ff449
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2006 Brian Matherly # # 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) ...
sam-m888/gramps
gramps/gen/mime/_winmime.py
Python
gpl-2.0
3,542
[ "Brian" ]
4cca63ce8197c190c733b9dc5379fe2063bc35dfc0f85a28e5c8963ec79af70b
""" Featurizes proposed binding pockets. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals __author__ = "Bharath Ramsundar" __copyright__ = "Copyright 2017, Stanford University" __license__ = "GPL" import numpy as np import os import pybel import tempfil...
bowenliu16/deepchem
deepchem/feat/binding_pocket_features.py
Python
gpl-3.0
2,010
[ "MDTraj", "Pybel" ]
5291a0bafb8f561aa13c71a6864240ab016f7e9bf41016ccf00fb92bc5dd9af9
#!/usr/bin/env python """ Created on Thu Dec 4 18:43:23 2014 Author: Oren Freifeld Email: freifeld@csail.mit.edu """ import numpy as np import cv2 import pylab from pylab import plt from of.gpu import CpuGpuArray from of.utils import * from cpab.cpa2d.TransformWrapper import TransformWrapper from cpab.cpaNd.infer...
freifeld/cpabDiffeo
cpab/cpa2d/inference/transformation/Register.py
Python
mit
15,510
[ "Gaussian" ]
d54130995beef0942e32191e2ae9648caf39932c19fe0f5f21948b7ef57fb3d0
#!/usr/bin/env python """ Performs a DIPS ping on a given target and exit with the return code. It uses the local host certificate The target is specified as ""<port>/System/Service" The script does not print anything, and just exists with 0 in case of success, or 1 in case of error """ __RCSID__ = "$Id$" import sy...
andresailer/DIRAC
Interfaces/scripts/dirac-framework-self-ping.py
Python
gpl-3.0
860
[ "DIRAC" ]
a1af14e92ab39b27669a90f55d8fe5ff7c810670ae23fe6d3450df032c068e00
""" (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. This package includes code for representing and learning HMM's. Most of the code in this package was derived from the...
hughdbrown/QSTK-nohist
src/qstklearn/hmm.py
Python
bsd-3-clause
13,034
[ "CASINO" ]
57419b6cf159ab605c74882f6d6c3943ee41a1a2c6b0b96d74dbce076678af28
# Load dependencies import ovito.vis # Load the native code module import Particles # Inject selected classes into parent module. ovito.vis.SimulationCellDisplay = Particles.SimulationCellDisplay ovito.vis.ParticleDisplay = Particles.ParticleDisplay ovito.vis.VectorDisplay = Particles.VectorDisplay ovito.vis.BondsDis...
srinath-chakravarthy/ovito
src/plugins/particles/resources/python/ovito/vis/particles/__init__.py
Python
gpl-3.0
552
[ "OVITO" ]
481aca73192146e592162c7ea224bcad160298cc76789af73e66a5086a006493
database( thermoLibraries = ['primaryThermoLibrary', 'GRI-Mech3.0'] ) species( label='Cineole', structure=SMILES('CC12CCC(CC1)C(C)(C)O2'), ) species( label='JP10', structure=SMILES('C1CC2C3CCC(C3)C2C1'), ) species( label='chx', structure=SMILES('C1CCCCC1'), ) species( label='chpen...
pierrelb/RMG-Py
examples/thermoEstimator/input_QM.py
Python
mit
662
[ "MOPAC" ]
ed9bb2d505ed1518d54e8e971e5618e047e9b51892698bfb39e104165392abba