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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Makes sure that all files contain proper licensing information.""" import json import optparse import os.path import subproces...
Teamxrtc/webrtc-streaming-node
third_party/webrtc/src/chromium/src/tools/checklicenses/checklicenses.py
Python
mit
20,607
[ "Galaxy" ]
01b1c50ff7080c273805013b0eb8519409255c329fe78437284b2ce7da14fbf0
#!/usr/bin/env python # -*- coding: utf-8 -*- """ For downloading lecture resources such as videos for Coursera classes. Given a class name, username and password, it scrapes the course listing page to get the section (week) and lecture names, and then downloads the related materials into appropriately named files and...
TheEpsylon/coursera
coursera/coursera_dl.py
Python
gpl-3.0
29,176
[ "VisIt" ]
935495a20471e086e4ac901279035e0303d98028a102e9b8bc42a8a298dcdacf
from __future__ import unicode_literals import binascii import collections import email import getpass import io import optparse import os import re import shlex import shutil import socket import struct import subprocess import sys import itertools import xml.etree.ElementTree try: import urllib.request as comp...
dntt1/youtube-dl
youtube_dl/compat.py
Python
unlicense
88,351
[ "Bowtie" ]
628eb402a791fff1a1cb95fb1b3ef6ad392f017419b10f6bb4643305296a186e
import optoanalysis import matplotlib.pyplot as _plt import numpy as _np import scipy.signal from bisect import bisect_left as _bisect_left from scipy.optimize import curve_fit as _curve_fit import uncertainties as _uncertainties from mpl_toolkits.mplot3d.axes3d import Axes3D from matplotlib import rcParams import matp...
markusrademacher/datahandling
optoanalysis/optoanalysis/optoanalysis.py
Python
mit
189,500
[ "Avogadro" ]
50826a1784505b9fccc8fc945e2d057c4ffa77e7f87975b343b95be421674e76
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # Eric Martin <eric@ericmart.in> # Giorgio Patrini <giorgio.patrini@anu.edu.au> # ...
vortex-ape/scikit-learn
sklearn/preprocessing/data.py
Python
bsd-3-clause
106,915
[ "Gaussian" ]
c22ffb44479b6480790290b281f6c6902a6f804431a7b28540caa223ccba03ef
from __future__ import unicode_literals import logging import collections import datetime import json import random import dateutil.parser import django.contrib.messages import django.urls import django.http import django.shortcuts import django.views.generic.edit import django.forms import django.utils from django.c...
ORGAN-IZE/register
registration/views.py
Python
gpl-3.0
43,982
[ "VisIt" ]
239ea1f254801ae54d75305915a1d0dd8381a6a85bfba318f7804b73ce4fff76
""" A very simple FCFF NN intended to be used for comparing theano to other libraries. """ from six.moves import cPickle as pickle import logging import sys import theano import theano.ifelse import theano.tensor as TT import numpy as np import learning_rates import utils logger = logging.getLogger(__name__) c...
djpetti/rpinets
theano/simple_feedforward.py
Python
mit
23,800
[ "Gaussian" ]
4855cf44c747d9ce885bd2c00d7c794c62d7f3ff5a1301b4bfce0ab17e9568ca
import pytest from distutils.version import LooseVersion from cfme.utils.log import logger from cfme.utils.providers import ProviderFilter, list_providers from markers.env import EnvironmentMarker ONE = 'one' ALL = 'all' LATEST = 'latest' ONE_PER_VERSION = 'one_per_version' ONE_PER_CATEGORY = 'one_per_category' ONE...
okolisny/integration_tests
markers/env_markers/provider.py
Python
gpl-2.0
8,988
[ "VisIt" ]
5f440508f670901becb1fd237d0b82950d584d14035dad2086d7e03049826025
# Copyright (C) 2003-2005 Peter J. Verveer # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following d...
sargas/scipy
scipy/ndimage/fourier.py
Python
bsd-3-clause
9,818
[ "Gaussian" ]
f9b5204f3422167a0e03241e9ac39e285ae7d45c15f4a076943c6aff606a0f09
# Copyright 2003-2009 by Bartek Wilczynski. 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. """ Module containing different tools for sequence motif analysis. it contains the co...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Motif/__init__.py
Python
gpl-2.0
4,623
[ "Biopython" ]
c35d73554269ec1009e237ceda28050de8838980cfd208dfade5dd981c5f78c5
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Test the kernel functions K. Every kernel function is a radial basis function, i.e. it's a composition of a norm and a function defined on positive reals. """ import numpy as np import scipy from scipy.integrate import quad from KDEpy.BaseKDE import BaseKDE from KDEpy....
tommyod/KDEpy
KDEpy/tests/test_kernel_funcs.py
Python
gpl-3.0
7,633
[ "Gaussian" ]
b0a0ed3593829b6ff9430da29b68fdff667343bb8b31a304f7cbb2f774d5a39b
from math import * from random import * import numpy as np import xml.etree.ElementTree as et import sys, getopt, time import pytz from datetime import * from dateutil import parser ZULU_FMT="%Y-%m-%dT%H:%M:%SZ" KML_URL="http://earth.google.com/kml/2.2" def parseTimeToUTC(time_string, time_zone): src_time = par...
craigulmer/rungen
rungen.py
Python
mit
9,773
[ "VisIt" ]
1b4504ef73ea99db173cc64c9b1cd9aa6e3a529873bd4285523587155e3ca9a3
#!/usr/bin/env python3 # # average_nucleotide_identity.py # # This script calculates Average Nucleotide Identity (ANI) according to one of # a number of alternative methods described in, e.g. # # Richter M, Rossello-Mora R (2009) Shifting the genomic gold standard for the # prokaryotic species definition. Proc Natl Aca...
peterjc/pyani
bin/average_nucleotide_identity.py
Python
mit
35,651
[ "BLAST", "Biopython" ]
ca05bd932893ec63228c1be957f41155c9115a614b16890c3e175f4f960bd0e7
""" How much do you win if you never lose a bet? How to detect if someone is winning all the bets so you can throw them out of the casino? """ # # # THIS IS A SOLVED SOLUTION. DON'T EDIT. # # If this is an interview, don't read this until you've solved your version. # # # # # # # # # # # # # # # # # # # # # # # # # # ...
matthewdeanmartin/kata-python
solved/kata/never_lose/main.py
Python
gpl-3.0
1,091
[ "CASINO" ]
b0a6dc021ba48d7e7973c0ca67946e92d865719b537dbaed07680a6a7324ae77
from datetime import datetime import re import traceback import warnings import numpy as np import pandas as pd from collections import defaultdict from pandas.tslib import OutOfBoundsDatetime from .core import indexing, ops, utils from .core.formatting import format_timestamp, first_n_items from .core.variable impor...
clarkfitzg/xray
xray/conventions.py
Python
apache-2.0
34,675
[ "NetCDF" ]
96cde2fda7e3403ab22eb77ec791673b5446084462b8798033657bd584fadbec
# -*- coding: utf-8 -*- import csv from time import sleep from django.contrib.auth.models import Group, User, Permission from django.contrib.contenttypes.models import ContentType from lettuce import step, world from rapidsms.contrib.locations.models import LocationType from survey.features.page_objects.accounts import...
antsmc2/mics
survey/features/upload_location-steps.py
Python
bsd-3-clause
5,643
[ "VisIt" ]
eb547631da60edcb6d763f7c69cfe4ad4397b5e97621fa96d782c9e15767a54b
# Copyright 2013-2019 The Meson development team # 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 agree...
becm/meson
mesonbuild/dependencies/misc.py
Python
apache-2.0
18,581
[ "NetCDF" ]
2bfe4f766cec430cc65be72b7ee281fe4d3612d982b2377ca1848e690853ae36
'''benchmark pysam BAM/SAM access with the samtools commandline tools. samtools functions are called via the pysam interface to avoid the over-head of starting additional processes. ''' import pysam import timeit iterations = 10 def runBenchmark( test, pysam_way, samtools_way =...
pkaleta/pysam
tests/pysam_bench.py
Python
mit
1,328
[ "pysam" ]
a29f709ac60b7bb0ce47fb65988c0396fcbcbf298a7068b8a09184beeaf9310d
import src import random class Shocker(src.items.Item): """ ingame item used as ressource to build bombs and stuff should have the habit to explode at inconvienent times """ type = "Shocker" def __init__(self): """ set up internal state """ super().__init__(di...
MarxMustermann/OfMiceAndMechs
src/itemFolder/military/shocker.py
Python
gpl-3.0
1,603
[ "CRYSTAL" ]
2121c1e5b68e0a04909cb1458cc67c9c67a6742941822387c0dbeb5daf6787a7
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Unit tests for the :mod:`iris.fileformats.netcdf` module."""
pp-mo/iris
lib/iris/tests/unit/fileformats/netcdf/__init__.py
Python
lgpl-3.0
257
[ "NetCDF" ]
8a110a6018f32f6b8ce9bfb95f1ea7c8da47d29059be71dfc122c9db0155c4ac
# -*- coding: utf-8 -*- """ Created on Wed May 4 10:33:14 2016 @author: Jeremy Nowell and Gordon Gibb """ from __future__ import print_function import Queue from threading import Thread import subprocess import time import os import chimera import stat WORKING_DIR = '/Users/ggibb2/Projects/CP2K' WORKING_DIR= '/User...
gpsgibb/Tetr-Chimera_plugin
__init__.py
Python
bsd-2-clause
14,124
[ "CP2K" ]
db30e4d455987b65fd9a3985841cb6624f056d564b4fd1dc256a89fe5c7518c3
import sys import logging import os import pandas as pd import glob import numpy as np class BfactorMapper: def __init__(self, reference_pdb, dataframe, outdir=None, column=None): ''' Map calculated B-Factors onto pdb structure. Use only as Context manager (see Example). Args: ...
pocin/BioModelTools
biomodeltools/MD/bfactors.py
Python
mit
6,153
[ "CRYSTAL" ]
29630b7af877e060d48c23cedfd8b88ef8a592faf5943699501203d0c2959e6f
#!/usr/bin/python # Copyright: (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_METADATA = {'metadata_version': '1.1', 'status': ['sta...
nrwahl2/ansible
lib/ansible/modules/files/xattr.py
Python
gpl-3.0
6,314
[ "Brian" ]
d48d737cbeb1f2189cdb3b649816035865e26b3e6df6c08d321311b826c1db99
#!/usr/bin/env python import sys import os import pysam import gzip from argparse import ArgumentParser from collections import defaultdict def consensus_caller(input_reads, cutoff, tag, length_check): nuc_identity_list = [0, 0, 0, 0, 0, 0] # In the order of T, C, G, A, N, Total nuc_key_dict = {0: '...
risqueslab/CRISPR-DS
UnifiedConsensusMaker.py
Python
bsd-3-clause
14,060
[ "pysam" ]
13ccb3e2ac3b70ba8273bc6b98b5ae595b00fa0fbdf4ab318f6d808c8f96ddaa
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.gridspec as gridspec from mpl_toolkits.axes_grid1 import make_axes_locatable import matplotlib.offsetbox as offsetbox from matplotlib.ticker import MultipleLocator from matplotlib.patches import Ellipse from . ...
Gabriel-p/mcs_rot_angles
modules/make_all_plots.py
Python
gpl-3.0
24,142
[ "Galaxy" ]
247876c631cf9972efbb21f29f5d32ad61724c9566cafa7eb48ce462c30cd91d
# Copyright 2008-2015 Nokia Solutions and Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
caio2k/RIDE
src/robotide/lib/robot/reporting/xunitwriter.py
Python
apache-2.0
3,435
[ "VisIt" ]
2271c0050f6bceda157ea4ce5d384d441234c46c5622a3cbe6a50ed04557ec3d
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Verify commits against a trusted keys list.""" import argparse import hashlib import logging import os impor...
thelazier/dash
contrib/verify-commits/verify-commits.py
Python
mit
8,165
[ "Octopus" ]
39f450428108636335348caf1045236e1800502f60e69298e0daf46ddfc5e492
""" This is a test of the chain ProductionClient -> ProductionManagerHandler -> ProductionDB It supposes that the DB is present, and that the service is running """ import DIRAC DIRAC.initialize() # Initialize configuration import unittest import json from DIRAC.ProductionSystem.Client.ProductionClient imp...
DIRACGrid/DIRAC
tests/Integration/ProductionSystem/Test_Client_Production.py
Python
gpl-3.0
1,901
[ "DIRAC" ]
603f598bc5297af5469f3f27a14cf6cfc6d44580648c5bf7ec3099188d6b7fff
"""pagesizes.py This module defines a few common page sizes in PIDDLE units (1/72 inch). """ from rdkit.sping.pid import cm, inch _W, _H = (21 * cm, 29.7 * cm) A6 = (_W * .5, _H * .5) A5 = (_H * .5, _W) A4 = (_W, _H) A3 = (_H * 2, _W) A2 = (_W * 2, _H * 2) A1 = (_H * 4, _W * 2) A0 = (_W * 4, _H * 4) letter = (8.5 ...
bp-kelley/rdkit
rdkit/sping/pagesizes.py
Python
bsd-3-clause
600
[ "RDKit" ]
cd847c559da5238d9f3176b52c8e7ff8599f7af257aed5d51a2a90531f126006
import numpy as np from time import time, ctime from datetime import timedelta from ase.lattice import bulk from ase.units import Hartree from gpaw import GPAW, FermiDirac from gpaw.response.gw import GW from gpaw.mpi import serial_comm starttime = time() a = 5.431 atoms = bulk('Si', 'diamond', a=a) kpts = (2,2,2) ...
robwarm/gpaw-symm
gpaw/test/gw_method.py
Python
gpl-3.0
1,439
[ "ASE", "GPAW" ]
fbec5bed55c0d77ce339383f63d95d70767c215d7de7557508761bd6e5a3b687
# -*- coding: utf-8 -*- import datetime import json import os from django.conf import settings from django.core.urlresolvers import reverse import mock from nose.tools import eq_, ok_ from pyquery import PyQuery as pq import mkt from mkt.constants.applications import DEVICE_TYPES from mkt.files.tests.test_models imp...
shahbaz17/zamboni
mkt/submit/tests/test_views.py
Python
bsd-3-clause
39,359
[ "exciting" ]
ae6b48f33d1164074e4ca5ec605492f421ae590061a977dd748628a8f9ecd89f
# # Copyright (C) 2003 Greg Landrum and Rational Discovery LLC # """ defines class _DbResultSet_ for lazy interactions with Db query results **Note** this uses the Python iterator interface, so you'll need python 2.2 or above. """ from __future__ import print_function import sys from rdkit.Dbase import DbInfo c...
adalke/rdkit
rdkit/Dbase/DbResultSet.py
Python
bsd-3-clause
6,090
[ "RDKit" ]
a15b108755d02fbd8cae506a748d7909fe852faa34851a8188c242664b0ccb38
# -*- coding: utf-8 -*- """ texte doc """ import Ulysse_utils as U import os, sys, random try: import pysam except ImportError: print "\tError: Pysam is not installed. \n\ Please see: https://github.com/pysam-developers/pysam\n\n" sys.exit() import operator import datetime try: import networkx as...
gillet/ulysses
sv_inter.py
Python
gpl-3.0
109,371
[ "pysam" ]
e7d0bf018632e70bf522ecedf36cd97dc1a51f839e167f9eeb1fa6dd8cf6b698
# -*- coding: utf-8 -*- import logging from operator import itemgetter, or_ from clang.cindex import Config, CursorKind, Index class AnalyzerError(Exception): pass class Prototype(object): def __init__(self, node): self.node = node @property def code(self): return_type = self.node.t...
tlk-emb/SWORDS
python/analyzer/designparam.py
Python
mit
7,652
[ "VisIt" ]
8035d6a570b2f1f1aabab453cc8f6d33332a6174b9576418a2a4aeb572244a10
import os import signal import http.client import logging import copy import base64 from types import SimpleNamespace from tornado.ioloop import IOLoop from tornado.web import Application, RequestHandler, RedirectHandler, \ HTTPError, authenticated, asynchronous from tornado.websocket import WebSocketHandler from ...
wirefish/amber
amber/server.py
Python
bsd-3-clause
6,740
[ "Amber" ]
47e202fc1348dff89bebf2ab754927a7f942d72936403311f286e92a40ab26f3
import numpy as np import math import logging as log class RandomVariable(object): """ Base class, should not be instantiated """ def __init__(self, dimension=1): self._dimension = dimension def evaluate(self, x): raise TypeError("Dummy base class") def sample(self): raise T...
mdbenito/ModelSelection
src/RandomVariables.py
Python
gpl-3.0
7,813
[ "Gaussian" ]
c89eadf0bf4ab3805c4177bc8146c17176d7f21b73f80c16bab825f7364761f9
# Begin CVS Header # $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/scripts/rewriteXML.py,v $ # $Revision: 1.1 $ # $Name: $ # $Author: gauges $ # $Date: 2008/01/28 14:33:50 $ # End CVS Header # Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc...
jonasfoe/COPASI
copasi/sbml/unittests/scripts/rewriteXML.py
Python
artistic-2.0
776
[ "COPASI" ]
9d5c9b6315b05d50c02a146a4eb18866fc98aa207a46bf768d1e01b2657a146b
# # Copyright (C) 2008, Brian Tanner # #http://rl-glue-ext.googlecode.com/ # # 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 require...
okkhoy/rlglue-python3-codec
src/tests/test_message_experiment.py
Python
apache-2.0
2,454
[ "Brian" ]
eb988d5be2acbaf246f50ecafd1b8b2fd1cd3188f94ff5a8f40cb5f555011f94
# Copyright 2017 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...
zasdfgbnm/tensorflow
tensorflow/contrib/py2tf/converters/break_statements.py
Python
apache-2.0
3,983
[ "VisIt" ]
90009e062aa3e9876b1d5540d97739a87e9d25fbbad143f4fb433c61a89e0cbd
from collections import abc, Counter from .contact_map import ContactFrequency, ContactObject # Split this out of the to prevent code duplication for DaskContactTrajectory def _build_contacts(contact_object, trajectory): """Make a contact map for every frame in trajectory. Parameters ---------- cont...
dwhswenson/contact_map
contact_map/contact_trajectory.py
Python
lgpl-2.1
13,666
[ "MDTraj" ]
9bb38891c5319e35278decd02be31a9f19657a89178d55fc802e1a4912f26a93
import csv import logging import sys from collections import Counter from csv import DictReader from io import StringIO import pytest import yaml from mappy import revcomp from micall.core import project_config from micall.core.aln2counts import InsertionWriter, SequenceReport, combine_region_nucleotides, \ combi...
cfe-lab/MiCall
micall/tests/test_aln2counts_report.py
Python
agpl-3.0
105,714
[ "BLAST" ]
ee2b3165bed4945974fc27cee6375bb85148ebcc745437beb684ff1407ca76d2
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RGtrellis(RPackage): """Genome Level Trellis Layout. Genome level Trellis graph vi...
iulian787/spack
var/spack/repos/builtin/packages/r-gtrellis/package.py
Python
lgpl-2.1
1,528
[ "Bioconductor" ]
50728884880508ef82ae7319de981f500627a33450a076309c7ff2b080eebd0d
#!/usr/bin/env python # Copyright (C) Duncan Macleod (2014) # # This file is part of GWpy. # # GWpy 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 l...
andrew-lundgren/gwpy
examples/table/rate_binned.py
Python
gpl-3.0
2,157
[ "Gaussian" ]
7bfb74c85fd914c695310dc750afe1d55ca46470df0228d7c02c1b962ab0a7c2
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014 Martin Raspaud # Author(s): # Martin Raspaud <martin.raspaud@smhi.se> # 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, eit...
TAlonglong/trollduction-test
trollduction/tests/test_xml_read.py
Python
gpl-3.0
4,230
[ "NetCDF" ]
dccb69dc1f091333828567c26e22825ecfc9051e903ac7bb13ce01a276402867
# pylint: disable=bad-continuation """ Certificate HTML webview. """ from datetime import datetime from uuid import uuid4 import logging import urllib from django.conf import settings from django.contrib.auth.models import User from django.http import HttpResponse, Http404 from django.template import RequestContext fr...
ampax/edx-platform
lms/djangoapps/certificates/views/webview.py
Python
agpl-3.0
28,036
[ "VisIt" ]
8a485401e14651d9a8cd7d66220ab0e62be6dd5176211cda8408b7fde5ff69ce
""" Code allowing tools to define extra files associated with an output datset. """ import os import re import glob import json from galaxy import jobs from galaxy import util from galaxy.util import odict DATASET_ID_TOKEN = "DATASET_ID" DEFAULT_EXTRA_FILENAME_PATTERN = r"primary_DATASET_ID_(?P<designation>[^_]+)_(?...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/tools/parameters/output_collect.py
Python
gpl-3.0
11,211
[ "Galaxy" ]
2a9b95045618783839c658ebde832cab856c0eb0474b15ce8a0095adcac79c4e
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
skosukhin/spack
var/spack/repos/builtin/packages/r-ape/package.py
Python
lgpl-2.1
2,633
[ "Bioconductor" ]
4a8e2915bcc4b351a3025502f09bf7494390f3755ae0f9f9c1e792ac1c671d4b
# # Copyright (c) 2010 Brian E. Granger # # This file is part of pyzmq. # # pyzmq is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option)...
takluyver/pyzmq
zmq/tests/test_poll.py
Python
lgpl-3.0
5,721
[ "Brian" ]
9cc6c3b61f240f8a30ca45dedae83f2dcd7fa13da67749603c71270f119047a8
import sys from sympy import symbols,sin,cos from printer import xdvi,Get_Program,Print_Function,Format from mv import MV def Maxwells_Equations_in_Geometric_Calculus(): Print_Function() X = symbols('t x y z') (g0,g1,g2,g3,grad) = MV.setup('gamma*t|x|y|z',metric='[1,-1,-1,-1]',coords=X) I = MV.I ...
rschwiebert/galgebra
examples/Old Format/physics_check_latex.py
Python
bsd-3-clause
3,069
[ "DIRAC" ]
f566ebb1bb353cf327bd46685737b392b5b70655713fa29b249ed24f17a5570e
import os import sys import types import re from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype from numpy.core import product, ndarray, ufunc __all__ = ['issubclass_', 'issubsctype', 'issubdtype', 'deprecate', 'deprecate_with_doc', 'get_numarray_include', 'get_include', 'info', '...
pelson/numpy
numpy/lib/utils.py
Python
bsd-3-clause
36,451
[ "VisIt" ]
64d1e5509443e94ba64b44dc3706662b4cd3def7e72621932526558bd8d81569
# $Id$ # # Copyright (C) 2003-2006 Rational Discovery LLC # # @@ 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. # """ Unit Test code for Fragment Descript...
soerendip42/rdkit
rdkit/Chem/UnitTestFragmentDescriptors.py
Python
bsd-3-clause
8,417
[ "RDKit" ]
d02afc4afe9b34b38351af0149d058fa52c74c71556e107b907273efc288de5d
# -*- coding: utf-8 -*- # # DAX documentation build configuration file, created by # sphinx-quickstart on Tue Jan 12 14:43:53 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
MattVUIIS/dax
docs/conf.py
Python
mit
9,573
[ "Brian" ]
507c3ae5b09c99164b0043796b5bc5d8944fbf526cffcdf081eb74d9386d84e7
""" Inference for GP regression. """ from __future__ import division from __future__ import absolute_import from __future__ import print_function import numpy as np import scipy.stats as ss import warnings from ...utils.misc import rstate from ...utils import linalg as la from .._core import ParameterizedModel from...
mwhoffman/reggie
reggie/models/gp/gp.py
Python
bsd-2-clause
10,275
[ "Gaussian" ]
e7bc0461bf1e4a24f1e3cfdd7582231cdeb78263e20c9267547b4629858760ca
import time import djisdkpy user_prompt = "\n" + \ "|------------------DJI Onboard SDK Interactive Sample------------|\n" + \ "| |\n" + \ "| The interactive mode allows you to execute a few commands |\n" + \ "| to help you get a feel of the DJ...
drmaj/dji-sdk-python
djisdk-sample.py
Python
gpl-3.0
4,694
[ "VisIt" ]
3cc9fd8beeb82df84ca52f4eb5ab0b9d95b4fd44081003d62ffe3c5a2c978d08
# TODO check num_threads before testing / 8 for Cisco Server # TODO ATTTENTION! Maybe there are some mistakes in neuron parameters! Write to alexey.panzer@gmail.com. from func import * logger = logging.getLogger('neuromodulation') startbuild = datetime.datetime.now() nest.ResetKernel() nest.SetKernelStatus({'overwri...
magnastrazh/NEUCOGAR
nest/dopamine/integrated/scripts/neuromodulaton.py
Python
gpl-2.0
7,639
[ "NEURON" ]
415aefd13e6603dccc0169715089b7371977f6ff70699dc4641a4786bc5bee87
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: # # MDTraj is free software: y...
daviddesancho/mdtraj
mdtraj/formats/openmmxml.py
Python
lgpl-2.1
2,834
[ "MDTraj", "OpenMM" ]
40a11b1a60773dc4494394c6ff4a3eda77effad00b882cf14ec17d42347e3f27
""" [2014-12-28] Challenge #195 [Easy] Symbolic Link Resolution https://www.reddit.com/r/dailyprogrammer/comments/2qmz12/20141228_challenge_195_easy_symbolic_link/ # [](#EasyIcon) **(Easy)**: Symbolic Link Resolution Many Unix-based systems support the concept of a **symbolic link**. This is where one directory name ...
DayGitH/Python-Challenges
DailyProgrammer/DP20141228A.py
Python
mit
3,692
[ "VisIt" ]
3f79896a2b16e60f99fed9f06aada8dc5d1ad1bb4e0ef5622c8c93f17b99e2c6
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014-2016, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This p...
subutai/nupic
src/nupic/algorithms/anomaly_likelihood.py
Python
agpl-3.0
28,597
[ "Gaussian" ]
423dc656e2344abe31d26df3a5b310eb180467ab5f6a07aa251d392d99238c81
# # # Copyright 2009-2016 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (...
hpcleuven/easybuild-framework
easybuild/tools/filetools.py
Python
gpl-2.0
49,278
[ "NetCDF" ]
49f885949b98b4f2cb90434cab808be48f0ee0faee7a04f7785b18c2e946ddf3
"""Check for abnormally high rmsd values to a reference structure {{header}} Meta ---- depends: - meta.pandas.pickl - trajs - top.pdb """ import mdtraj as md from msmbuilder.io import load_meta, itertrajs, save_trajs ## Load reference structure ref = md.load("top.pdb") meta = load_meta() ## Do calculation ...
Eigenstate/msmbuilder
msmbuilder/project_templates/rmsd/rmsd.py
Python
lgpl-2.1
425
[ "MDTraj" ]
6cf6453a537aa9944bc2ead6e8510c4c0dce40902948b58bf4832aada3bdeed4
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import json from math import sin, cos, asin, pi, degrees, radians import numpy as np from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from .core import DiffractionPattern, AbstractDiffrac...
dongsenfo/pymatgen
pymatgen/analysis/diffraction/xrd.py
Python
mit
11,339
[ "CRYSTAL", "pymatgen" ]
fedcad40b6a50f19d6706a0949c47b832df0ab5256873814964a8fee7a07ffc0
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/enigma2-plugin-extensions-openwebif
plugin/controllers/views/web/epgservicenext.py
Python
gpl-2.0
7,578
[ "VisIt" ]
5d0faade2f791b0a1ae68db9bb26cf6a1b9a34fd49dcd65d5e188b4366f0e1a1
from cardboard import types from cardboard.ability import ( AbilityNotImplemented, spell, activated, triggered, static ) from cardboard.cards import card, common, keywords, match @card("Necrotic Plague") def necrotic_plague(card, abilities): def necrotic_plague(): return AbilityNotImplemented de...
Julian/cardboard
cardboard/cards/sets/magic_2011.py
Python
mit
20,075
[ "CRYSTAL" ]
c5470a4602d875407a42c96285a21f325d62d1c77ff25c20d0963faa505b50b4
# -*- coding: utf-8 -*- ########################################## Declaration ###################################################### # Declaration: # tcaxPy.pyc's source code # Copyright (c) 2008 - 2012 milkyjing (milkyjing@gmail.com). All rights reserved. # Please visit tcax.rhacg.com to get the latest informatio...
milkyjing/TCAX
src/TCAX/tcax/tcaxPy/tcaxPy.py
Python
gpl-3.0
36,327
[ "VisIt" ]
4fa73394411dee721e52b956540a0f89bcbbf11b67fa1d9d6824029948fbff41
#!/usr/bin/env python # -*- coding: utf-8 -*- # Cypress -- C++ Spiking Neural Network Simulation Framework # Copyright (C) 2016 Andreas Stöckel # # 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 Found...
hbp-unibi/cypress
scripts/plot_synfire.py
Python
gpl-3.0
2,908
[ "NEURON" ]
d8df439e99cccdb9bc249821972dd0e1f81254d90039a034f53948b997a1dde4
#!/usr/bin/python # -*- coding: utf-8 -*- ''' 1563. Bayan Time limit: 1.0 second Memory limit: 64 MB [Description] As everybody knows, there are a lot of stores in skyscrapers, it's the favourite place of glamorous girls. Blonde Cindy loves only one thing — the shopping. Today is one of the best days, she's going sho...
matrixjoeq/timus_solutions
1563/slu.py
Python
mit
1,466
[ "VisIt" ]
086b3b48fc3d4aab76e431bc34b6018c641b75323d07f83870eb82c041b08abf
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
psci2195/espresso-ffans
samples/save_checkpoint.py
Python
gpl-3.0
2,411
[ "ESPResSo" ]
9de64cd49d37957944ec58febb4a1ba442c8768617fd8580d7e076a9cbe58322
class Supernova(): """ Has the following properties g (LightCurve) r (LightCurve) i (LightCurve) z (LightCurve) lcsDict (dictionary) 4 entries, g,r,i,z returning the corresponding LightCurves ...
mdepasca/miniature-adventure
classes_dir/supernova.py
Python
unlicense
5,631
[ "Galaxy" ]
4b3eb440cd014a8b24af2a4d5929d035dbebf196d631add05e1f857c0f534fc2
#!/usr/bin/env python3 # dstc client side # Copyright (C) 2018 Jaguar Land Rover # # All rights reserved. # import re import struct import sys import dstc import vsd from . import IPC import logging import os import string from threading import Thread import time import struct verbose = True fifo_fd = None signals = ...
GENIVI/vehicle_signal_manager
ipc/rmc_ipc.py
Python
mpl-2.0
7,824
[ "Jaguar" ]
48f685190aec12bd48bcba309f32c44e96bf8b70fbf1881a4a28a7b3beee0b8b
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Apr 19 18:51:06 2018 @author: rachel """ import os import time import yaml import numpy as np import glob try: import dill as cpl except(ImportError): import cPickle as cpl from hexrd.xrd import material from hexrd import config from hexr...
joelvbernier/hexrd-sandbox
multipanel_ff/lat_parm_from_powder.py
Python
gpl-3.0
9,706
[ "Gaussian" ]
631d3ef814a173e100c4bae18eb9c04c71ec62bcba9710e4bdeb04373bce29f7
#!/usr/bin/env python # Various functions for TFCE_mediation # Copyright (C) 2016 Tristram Lett, Lea Waller # 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 3 of ...
trislett/TFCE_mediation
tfce_mediation/pyfunc.py
Python
gpl-3.0
98,480
[ "Gaussian" ]
5a44c61df6921680756e92ca9769690447ab37112e8dc904577bcf96bb421e04
import new import sys import tempfile import os.path import shutil from test_toolbox import ToolTestCase from base.interactor import build_interactor, stage_data_in_history import logging log = logging.getLogger( __name__ ) data_managers = None class DataManagerToolTestCase( ToolTestCase ): """Test case that runs...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/test/functional/test_data_managers.py
Python
gpl-3.0
5,164
[ "Galaxy" ]
31efdcab07bafee9ad04f2a8d7d0188b1d13cbf997c2d5633127dab80ae796a9
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # isReactionaryBot.py # # Copyright 2015 Wyboth <www.reddit.com/u/Wyboth> # # 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 3...
Wyboth/isReactionaryBot
isReactionaryBot.py
Python
gpl-3.0
10,221
[ "VisIt" ]
f45404b979edf1a2d5b3e5116a3ececd507734cf6bce6e920a3579f57e8338fd
# -*- coding: utf-8 -*- def VtkLoadKPts(setName, nmbContndr): nmbContndr= vtk.vtkPoints() eSet= preprocessor.getSets.getSet(setName) eSet.numerate() print("nombre set: ",eSet.nombre,"\n") print("num. points: ",len(eSet.getPoints),"\n") points= eSet.getPoints for p in points: nmbContndr.insert_point(p....
lcpt/xc
python_modules/postprocess/xcVtk/CAD_model/vtk_load_kpoints.py
Python
gpl-3.0
377
[ "VTK" ]
babe4d869407cf70f3c0283e5b51f87d797f8bfc60fc4702b67a17f052ce39f0
"""Hilbert spaces for quantum mechanics. Authors: * Brian Granger * Matt Curry """ from __future__ import print_function, division from sympy import Basic, Interval, oo, sympify from sympy.core.compatibility import range from sympy.printing.pretty.stringpict import prettyForm from sympy.physics.quantum.qexpr import...
kaushik94/sympy
sympy/physics/quantum/hilbert.py
Python
bsd-3-clause
19,601
[ "Brian" ]
325624f5ce8b6cfeb16d30b3e57744d06aeb1b805f87d6e970a39286f1bb644f
# -*- coding: utf-8 -*- # # gap_junctions_two_neurons.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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 t...
weidel-p/nest-simulator
pynest/examples/gap_junctions_two_neurons.py
Python
gpl-2.0
2,950
[ "NEURON" ]
59cc09dd796d54c846c8d9b43aa426897ace36669379a1b985499a7f73436efe
# -*- coding: utf-8 -*- from flask import Flask,request, url_for,render_template,session,redirect import shelve app = Flask(__name__) app.secret_key = 'F12Zr47j\3yX R~X@H!jmM]Lwf/,?KT' def addweb(url): try: if session['USER'] != None: session['VISIT'].insert(session['COUNT'],url) session['COUNT'] = session[...
insua1990/DAI
DAI-master/Flask/practica3.py
Python
gpl-3.0
4,264
[ "VisIt" ]
03120c00dc80dcf8d32e5cf96c9a2d9a6142123ff0db47af397aebd3cf5d6934
# -*- coding: UTF-8 -*- ''' Module unicode_tex provides the map between unicode characters and latex commands. To convert a unicode character u to latex commands: unicode_tex.unicode_to_tex_map.get(u, u) Both unicode_to_tex_map and tex_to_unicode_map are dict objects, generated from http://www.w3.org/Math/chara...
brigittebigi/proceed
proceed/src/utils/unicode_tex.py
Python
gpl-3.0
89,271
[ "Bowtie" ]
1bbdd07ff4aff831e29781c7ead7679303ada0b7aa6cc7bc2fb8b29e8d057c37
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
googleapis/python-vision
scripts/fixup_vision_v1p1beta1_keywords.py
Python
apache-2.0
5,942
[ "VisIt" ]
858346346e15ac17efba6541cab8f19f4f54e8396720f8bc4d088ea87da10d1b
class Solution(object): def exist(self, board, word): """ :type board: List[List[str]] :type word: str :rtype: bool """ def dfs(i, j, idx): if board[i][j] != word[idx]: return False if idx == len(word)-1: return ...
zqfan/leetcode
algorithms/79. Word Search/solution.py
Python
gpl-3.0
1,062
[ "VisIt" ]
39fcb6f7603619d3b3f143e16e80e09f85457ce70c4d63e17c89a11eff57925c
# -*- coding: utf-8 -*- """ Created on Thu Oct 23 15:54:36 2014 This file is part of pyNLO. pyNLO 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 optio...
ycasg/PyNLO
src/validation/Old and Partial Tests/ppln_phasematching.py
Python
gpl-3.0
2,044
[ "CRYSTAL" ]
4f291bcefccdc95cd5bb32086dd6af5fc99ac1221b47fe622f211b875604260a
# -*- coding: utf-8 -*- # # Natural Language Toolkit: Snowball Stemmer # # Copyright (C) 2001-2012 NLTK Project # Author: Peter Michael Stahl <pemistahl@gmail.com> # Peter Ljunglof <peter.ljunglof@heatherleaf.se> (revisions) # Algorithms: Dr Martin Porter <martin@tartarus.org> # URL: <http://www.nltk.org/> # Fo...
abad623/verbalucce
verbalucce/nltk/stem/snowball.py
Python
apache-2.0
150,194
[ "ASE" ]
8b2a46ad2cc81676f16ac04ccec630edd1978279922fa5f153bfa8bd159d3d00
from __future__ import absolute_import from __future__ import print_function import matplotlib.pyplot as plt import autograd.numpy as np import autograd.numpy.random as npr import autograd.scipy.stats.multivariate_normal as mvn import autograd.scipy.stats.norm as norm from autograd import grad from optimizers import ...
kcarnold/autograd
examples/black_box_svi.py
Python
mit
3,262
[ "Gaussian" ]
dd6a4b6f6d3c9971fa3fefa7a7b2a7f32394ade66db416e8c67ae8f00180fefb
# # 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...
retrography/scancode-toolkit
src/commoncode/filetype.py
Python
apache-2.0
7,432
[ "VisIt" ]
9aefb47a305eb597078f6b8560eae10fec5c5134cc19558285cfaf1a548dfdbe
# Copyright 2018 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
ros2/launch
launch/test/launch/actions/test_group_action.py
Python
apache-2.0
9,270
[ "VisIt" ]
9f645ee65a3539069eba0e3f54caefb0f296b3a543977e566ef042e87ab3fc37
import pyfftw import numpy as np import tomviz.operators import time class ReconConstrintedDFMOperator(tomviz.operators.CancelableOperator): def transform_scalars(self, dataset, Niter=None, Niter_update_support=None, supportSigma=None, supportThreshold=None): """ 3D Reco...
cryos/tomviz
tomviz/python/Recon_DFT_constraint.py
Python
bsd-3-clause
9,005
[ "VTK" ]
3644160e130670fcb2dfdea0ccffa5a802b57d11d911c2c0617fc17efec35482
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt import frappe from frappe.model.utils.rename_field import rename_field from frappe.modules import scrub, get_doctype_module rename_map = { "Opportunity": [ ["enquiry_details", "items"] ],...
mahabuber/erpnext
erpnext/patches/v5_0/rename_table_fieldnames.py
Python
agpl-3.0
6,629
[ "VisIt" ]
44cdc8efd3fb1019687915432c6656ba4a151408f0d1a1f93e787bba94548919
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
modules/tensor_mechanics/doc/tests/create_vtr.py
Python
lgpl-2.1
3,442
[ "MOOSE", "VTK" ]
7efdb482bf3394ea849521d5e79db6bf06a1f9cef686b69001c0eac4a225fe34
#!/usr/bin/env python # encoding: utf-8 """ block.py Created by Pete Aykroyd on 2010-06-21. Copyright (c) 2010 Spring Partners. All rights reserved. Visit http://springpadit.com/api/oauth-register-app to get your develope tokens """ import logging import urllib, httplib2, uuid, time, calendar, sys import oauth from ...
rmoskal/e-springpad
springpad.py
Python
mit
23,753
[ "VisIt" ]
2387aa78bb969081d2be86e64a858bf1a20b57c16a7f59280845d6b0d656506e
from test import support import unittest import codecs import sys, _testcapi, io class Queue(object): """ queue: write bytes at one end, read bytes from the other end """ def __init__(self, buffer): self._buffer = buffer def write(self, chars): self._buffer += chars ...
edmundgentle/schoolscript
SchoolScript/bin/Debug/pythonlib/Lib/test/test_codecs.py
Python
gpl-2.0
65,341
[ "FEFF" ]
627679817f07b333bce1647d9879d64cf6f9e904ee3da3edb3f7f6e434a59415
""" ../wps.py?request=execute &service=wps &version=1.0.0 &identifier=esmvaltool-perfmetrics &status=true &storeExecuteResponse=true """ import datetime import shutil import netCDF4 import urlparse from pywps.Process import WPSProcess import os import logging from jinja2 import FileSystemLoader, Environment,select...
c3s-magic/adaguc-services-esmvaltool-wps
processes/esmvaltool-taylor.py
Python
apache-2.0
9,854
[ "NetCDF" ]
d6e9bd38a6185b14b4229b29c49a3cdd335bff5c06d3515423774f4baf67629b
from __future__ import unicode_literals MAPIT_BASE_URL = 'http://mapit.democracyclub.org.uk/' SITE_OWNER = 'Democracy Club' COPYRIGHT_HOLDER = 'Democracy Club Limited' PEOPLE_LIABLE_TO_VANDALISM = { 2811, # Theresa May 1120, # Jeremy Corbyn 4546, # Boris Johnson 6035, # Paul Nuttall 8372, # Nicol...
mysociety/yournextmp-popit
elections/uk/settings.py
Python
agpl-3.0
3,948
[ "Amber" ]
7b6ad6b1f9e526eb1884c3c320a087826782808337b2fd13391ca0a7411ac95b
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
thica/ORCA-Remote
src/ORCA/Skin.py
Python
gpl-3.0
6,929
[ "ORCA" ]
4ec398f08f9209361e3334ffc95f982281fcb3683ce392ff9a759721600b28fb
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/interaction/TersoffPairTerm.py
Python
gpl-3.0
4,962
[ "ESPResSo" ]
169cce4c0f2667de4631184c2d01cf5eb28b7719fc76e2e2169e1da7b06c88e6
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import gzip import json import os import unittest import warnings import xml.etree.ElementTree as ET from pathlib import Path from shutil import copyfile, copyfileobj import numpy as np import pytest from monty.tempfile impo...
vorwerkc/pymatgen
pymatgen/io/vasp/tests/test_outputs.py
Python
mit
89,873
[ "VASP", "Wannier90", "pymatgen" ]
6bc446b3be796ccc52671d09ffa3d50c9a689ddfd0f1b2f221e7737d87e0b67d
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative sampling [1]_ [2]_. The train...
d10genes/gensim
gensim/models/word2vec.py
Python
gpl-3.0
74,321
[ "VisIt" ]
bec881593af463b831e77280e67c9c36cc9e30b6551f9a8e9c883ec7141948c3
import numpy as np import pytest import LabPy from NonlinearTMM import Material, SecondOrderNLTMM @pytest.fixture(params = ["p", "s"]) def polP1(request): return request.param @pytest.fixture(params = ["p", "s"]) def polP2(request): return request.param @pytest.fixture(params = ["p", "s"]) ...
ardiloot/NonlinearTMM
Tests/test_SecondOrderNLTMM.py
Python
mit
3,819
[ "CRYSTAL" ]
9d46e2adbaa641976c080dc088eede1210f95853a40775715104acd64c2ce3fb
from sg import sg from pylab import plot, show, connect from numpy import array,transpose,sin,double import util util.set_title('SVR Regression') sg('new_regression', 'LIBSVR') features=array([range(0,100)],dtype=double) features.resize(1,100) labels=sin(features)[0] sg('set_features', "TRAIN", features) sg('set_lab...
ratschlab/ASP
examples/undocumented/python_static/graphical/svr_regression.py
Python
gpl-2.0
671
[ "Gaussian" ]
b9c64e8747196a20dde899f72201d970dd29ea93f3d01d49f4d545e7bb21905d
try: paraview.simple except: from paraview.simple import * import numpy as np from mpi4py import MPI import os import csv from scipy import interpolate import gc import sys gc.enable() comm = MPI.COMM_WORLD label = 'r_1k_B_1F1' basename = 'ring' ## READ archive (too many points... somehow) # args: name, dayi, dayf...
jungla/ICOM-fluidity-toolbox
2D/U/extract_Velocity_CG_ring_U.py
Python
gpl-2.0
3,109
[ "ParaView" ]
49c5b3d0a13b9ab9a6ea36f6a9e329715c514627d2fd5ca68db1024e644a9e10
"""This module contains an interface for using the GPy library in ELFI.""" # TODO: make own general GPRegression and kernel classes import copy import logging import GPy import numpy as np logger = logging.getLogger(__name__) logging.getLogger("GP").setLevel(logging.WARNING) # GPy library logger class GPyRegress...
HIIT/elfi
elfi/methods/bo/gpy_regression.py
Python
bsd-3-clause
12,604
[ "Gaussian" ]
38faaa43c936f0ca4d0cd85071638d3652aa56cd3e597b7d8325035165574e8f