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 from pymatgen.analysis.chemenv.utils.scripts_utils import compute_environments, welcome, thankyou from pymatgen.analysis.chemenv.utils.chemenv_config import ChemEnvConfig from argparse import ArgumentParser import logging __author__ = 'waroquiers' def run_script(): m_description = 'Welco...
Bismarrck/pymatgen
scripts/get_environment.py
Python
mit
1,353
[ "pymatgen" ]
2a97565afa04f346e5bf8736bb725126e811afdd6aaa00171c8007c16faff6b2
""" Courseware views functions """ import logging import urllib import json from collections import defaultdict from django.utils import translation from django.utils.translation import ugettext as _ from django.conf import settings from django.core.context_processors import csrf from django.core.exceptions import P...
kuiwei/kuiwei
lms/djangoapps/courseware/views.py
Python
agpl-3.0
39,275
[ "VisIt" ]
c1656dc4a49646af8fe8ebf843de54cbbcc9701292e9d8054b95869cfa63a923
import numpy as np from math import pi, log # import pylab from scipy import fft, ifft from scipy.optimize import curve_fit __doc__ = """ Code for peak detection in time series. This code comes from https://gist.github.com/sixtenbe/1178136 that is a python translation of the original matlab code: http://billauer.co.i...
luca-penasa/cyclopy
cyclopy/External/Peakdetect.py
Python
gpl-2.0
28,083
[ "TINKER" ]
141bb2018ea3bcbce7ec757c7d83646316920a11246c8f45ccb92f7531745e60
import random from math import * import sys import matplotlib.pyplot as plt import numpy as np """ Define a robot class. """ class robot: def __init__(self): self.x = random.random()*world_size self.y = random.random()*world_size self.orientation = random.random()*1.0*pi self.forward_noise = 0.0 self....
ResByte/SLAM
occupancy.py
Python
gpl-2.0
4,230
[ "Gaussian" ]
3ddbe82449aa76c6cc22ee4e87763b8c61dcee051b292feac8e262195e37b745
#!/usr/bin/env python # # AST.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; witho...
fedelemantuano/thug
thug/AST/AST.py
Python
gpl-2.0
6,647
[ "VisIt" ]
eec2282a86f2f378ffab6130dcc2ff60953d211b63b7027eed55df95dde5fb7f
import json import pickle import random import nltk import numpy as np import tensorflow import tflearn from nltk.stem.lancaster import LancasterStemmer stemmer = LancasterStemmer() with open("intents.json") as intents_file: data = json.load(intents_file) try: # Try to load pre-existing processed training...
Phixyn/ZoeyBot
neural_network_tim/neural_net.py
Python
gpl-3.0
9,758
[ "NEURON" ]
4ab0a0eb6f1520af85b68adf26e9131a77a9516f21bc6fbd6c5798678509396f
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
racemidev/WMI_cmd
pysamba/rpc/credentials.py
Python
gpl-2.0
724
[ "VisIt" ]
173cbdf039df56633417c246ad23b83ee7eff4d2f52c0b64283b0ccfbcf3a178
import enum import sys import unittest from vendor.enum import Enum, IntEnum, unique, EnumMeta from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL pyver = float('%s.%s' % sys.version_info[:2]) try: any except NameError: def any(iterable): for element in iterable: if element: ...
bernardorufino/pick
src/vendor/enum/test_enum.py
Python
mit
62,290
[ "MOE" ]
354ea85d2e71821994c366c104372e245a06f461034b3b265c9a59c50caf5e43
#!/usr/bin/env python2 # Copyright (c) 2014, Jelmer Tiete <jelmer@tiete.be>. # All rights reserved. # # 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 ...
d00616/RIOT
dist/tools/cc2538-bsl/cc2538-bsl.py
Python
lgpl-2.1
42,557
[ "CRYSTAL" ]
c4ea7eadddf4bed84d018141280775442141af9568f5cf46d1969dcfb71b6b0f
# License: BSD 3 clause import numpy as np from tick.base.simulation import SimuWithFeatures from tick.preprocessing.features_binarizer import FeaturesBinarizer # TODO: something better to tune the censoring level than this censoring factor class SimuCoxReg(SimuWithFeatures): """Simulation of a Cox regression ...
Dekken/tick
tick/survival/simu_coxreg.py
Python
bsd-3-clause
17,328
[ "Gaussian" ]
651cbf075a2f79de47dc95b0de78fbe494697e03b2eb8df3cadd812b3c3023c1
# ################################################################ # # Active Particles on Curved Spaces (APCS) # # Author: Silke Henkes # # ICSMB, Department of Physics # University of Aberdeen # Author: Rastko Sknepnek # # Division of Physics # School of Engineering, Physics and Mathem...
sknepneklab/SAMoS
analysis/batch_nematic/batch_analyze_nematic_R40m.py
Python
gpl-3.0
2,362
[ "VTK" ]
e204f3e8bd8ebe7eedbb6ed952fff2840df3628c2637939113ac4f4ab84b7a4b
# coding=utf-8 # Copyright 2022 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
tensorflow/tensor2tensor
tensor2tensor/data_generators/translate_enzh.py
Python
apache-2.0
10,367
[ "VisIt" ]
69146d5c87a8eb9085d3f03d967f16edfe8b6faef7640a158d43662a92eed865
# lintory - keep track of computers and licenses # Copyright (C) 2008-2009 Brian May # # 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 the License, or # (at your option) any ...
VPAC/lintory
lintory/mfields.py
Python
gpl-3.0
2,198
[ "Brian" ]
5b2379bec48942af31c367d703a7054ddcd6598545dce295e9f45ef4bdc82ca2
'''Term writing.''' from aterm import types from aterm import visitor class Writer(visitor.Visitor): '''Base class for term writers.''' def __init__(self, fp): visitor.Visitor.__init__(self) self.fp = fp class TextWriter(Writer): '''Writes a term to a text stream.''' def writeList(self, seq, begin, end,...
mewbak/idc
aterm/write.py
Python
lgpl-2.1
1,563
[ "VisIt" ]
323e6ee73cbde56b27ea066fff086f9470ab286825e92633131d99d613640307
"""Draw molecules in the Jupyter notebook.""" import os import uuid import IPython from IPython.display import HTML, display import imolecule.json_formatter as json from imolecule import format_converter file_path = os.path.normpath(os.path.dirname(__file__)) local_path = 'nbextensions/imolecule.min' remote_path = (...
patrickfuller/imolecule
imolecule/notebook.py
Python
mit
7,909
[ "Open Babel" ]
dadae3a76b2b22a7db1dac5b7f9c74024fe19b9cf6c2b66b674db0867bb197af
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import os import json import numpy as np from monty.serialization import loadfn from pymatgen import Structure from pymatgen.electronic_structure.core import Spin, Orbital, OrbitalType from p...
gVallverdu/pymatgen
pymatgen/electronic_structure/tests/test_dos.py
Python
mit
30,971
[ "pymatgen" ]
13e977374744cbdbaf30b5c9274f18afa6f693a589b5cf460891a886fa6d4e09
from ase.atoms import Atoms from ase.parallel import paropen def read_xyz(fileobj, index=-1): if isinstance(fileobj, str): fileobj = open(fileobj) if not isinstance(index, int) and not isinstance(index, slice): raise TypeError('Index argument is neither slice nor integer!') fileobj.seek(...
PHOTOX/fuase
ase/ase/io/xyz.py
Python
gpl-2.0
4,297
[ "ASE" ]
2cfa1bcdf5de964cc722677f1691a552c14d68f478c191f5b0ba83b1f755c6cd
#!/usr/bin/env python # Author: Pierre de Buyl http://pdebuyl.be/ # License: BSD 3-clause """Display the last frame of a dimer simulation, optionally with solvent species B """ from __future__ import print_function, division import argparse parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('fi...
pdebuyl-lab/RMPCDMD
experiments/03-single-janus/view_last_simulation_frame.py
Python
bsd-3-clause
2,998
[ "Mayavi" ]
c89b4344a60c18c8c47c1d1e2bb03bc89ee1e381214f0581cdf9c83f2337f9da
# Copyright (C) 2007 Alex Drummond <a.d.drummond@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This p...
addrummond/gliki
gliki.py
Python
gpl-2.0
91,139
[ "VisIt" ]
f81b6ff241195b6b07c4d4c5576f446df6c9f050a9735fbfc3a9b67900a5064d
from zope.interface import implements from twisted.plugin import IPlugin from twisted.application import internet, service from twisted.python import usage from casino.factory import PokerFactory from casino.services import PokerService import casino.paths class Options(usage.Options): optParameters = [ ...
gnmerritt/casino
twisted/plugins/casino_plugin.py
Python
mit
1,373
[ "CASINO" ]
4bcee5f46be6a9264e4f7b33b21dc10f3411607d0ef59e927e735425d5b0c21b
"""Table definitions and SQL ORM classes for the star schema - see README.txt in same directory. """ import datetime import getpass import sys from sqlalchemy import create_engine, text from sqlalchemy import CHAR, VARCHAR, SMALLINT, NUMERIC, TEXT from sqlalchemy import Boolean, DateTime, Integer from sqlalchemy impo...
pbugni/pheme.longitudinal
pheme/longitudinal/tables.py
Python
bsd-3-clause
30,216
[ "VisIt" ]
e988b9c309a0eaaf79e13fa336d53d623ebbf2bab3c4fde5e2d68458a2418935
#!/usr/bin/env python """This is a patched :mod:`ase.calculators.vasp.Vasp` calculator with the following features: 1. context manager to run in a specified directory and then return to the CWD. 2. calculations are run through the queue, not at the command line. 3. hook functions are enabled for pre and post processi...
jboes/jasp
jasp/jasp.py
Python
gpl-2.0
24,303
[ "ASE", "VASP" ]
fd53d347efaff8471f14ca8c40fc0782279ccb9e9e08a012a33723f444aabea5
# AvsP - an AviSynth editor # Copyright 2007 Peter Jang # http://www.avisynth.org/qwerpoi # 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 opt...
AbsoluteDestiny/scenic
avisynth/pyavs.py
Python
mit
21,055
[ "VisIt" ]
f9771786acd882c569b41b4a84fd197265aa4900202156f1c2169efdd96c34ae
# # Copyright (c) 2016 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
src/scancode/utils.py
Python
apache-2.0
9,249
[ "VisIt" ]
aef96f82b0c5596a38c6b38a6605e612024e4d072b5482e515bb373cd4caa55a
"""Creates a sinogram for testing purposes""" import numpy as np def create_test_sino(A, N): """ Creates test sinogram. """ resar = np.zeros((A, N), dtype=float) angles = np.linspace(0, np.pi, A, endpoint=False) x = np.linspace(-N/2, N/2, N, endpoint=True) dev = np.sqrt(N/2) off = N/7 ...
RI-imaging/radontea
tests/sinogram.py
Python
bsd-3-clause
624
[ "Gaussian" ]
778434f4e452e2a97880067cc5f6a274bc82d6b47df4212570af540faa02ca6b
from __future__ import print_function import itertools import numpy as np import scipy.stats as st import pandas as pd import matplotlib.pyplot as plt import matplotlib.patches as mpatches import cartopy.crs as ccrs import sys from .. import mcplates from pymc.utils import hpd plt.style.use('./bpr.mplstyle') from ..m...
ian-r-rose/mcplates
keweenawan/keweenawan_apw_path.py
Python
gpl-3.0
12,544
[ "Gaussian" ]
01903de0311f0c2300a0e4d3bf3a737479f08816f7096739832d032f7b5c5a40
#-*- coding:utf-8 -*- """ PyHdust *oifits* module: third-part module for reading/writing OIFITS files. I made some modifications, but I keep the original README below. This module is NOT related to the OIFITS Python module provided at http://www.mrao.cam.ac.uk/research/OAS/oi_data/oifits.html It is a (better) alterna...
dbednarski/pyhdust
pyhdust/oifits.py
Python
gpl-3.0
71,180
[ "Amber" ]
5c1fd5725b266a770904c810ef7315de7022c14538a9bf2b01fbfae46659c9c6
# coding: utf-8 import scipy.stats import numpy as np from math import ceil from .. import img_as_float from ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman from .._shared.utils import skimage_deprecation, warn import pywt import skimage.color as color import numbers def denoise_bilateral(ima...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/skimage/restoration/_denoise.py
Python
gpl-3.0
27,373
[ "Gaussian" ]
1967047ad50ea14802a8922923211a8ca367c297b08d7f6a8f63882cdf016140
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/graphs.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, th...
securestate/king-phisher
king_phisher/client/graphs.py
Python
bsd-3-clause
36,836
[ "VisIt" ]
e77d47af18ae03943c164d95957b58aa1a91d5b2fa401656616d7de19682615d
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------------ # File Name: GetWanIP.py # Author: Zhao Yanbai # Thu Oct 30 04:34:37 2014 # Description: none # ------------------------------------------------------------------------ import htt...
acevest/monitor
GetWanIP.py
Python
gpl-2.0
3,171
[ "VisIt" ]
993b32f807f687619362c99ef1b5923074f1d46e86c568d3734d7fbb36b8d0e9
#!/usr/bin/python import sys import libvtkCommon as vtktools sys.path.append('/share/apps/paraview/3.14/lib/paraview-3.14/') data = vtktools.vtu('../mli_4.pvtu') uvw = data.GetVectorField('Velocity') u = uvw[:,0]
jungla/ICOM-fluidity-toolbox
functions.py_bkup/extract_field.py
Python
gpl-2.0
215
[ "ParaView" ]
b62e124ada60a5673d98ceb6604a6d71158301b1729b9683f2b87c0178bb81c7
""" Acceptance tests for adding components in Studio. """ import ddt from common.test.acceptance.fixtures.course import XBlockFixtureDesc from common.test.acceptance.pages.studio.container import ContainerPage from common.test.acceptance.pages.studio.settings_advanced import AdvancedSettingsPage from common.test.accep...
ahmedaljazzar/edx-platform
common/test/acceptance/tests/studio/test_studio_components.py
Python
agpl-3.0
7,151
[ "VisIt" ]
805b30240914e58a24ab01f5af86c358450b18756caadfa548695e2600d784e6
#!/usr/bin/env python # -*- coding: utf-8 -*- # ommprotocol: A command line application to launch # MD protocols with OpenMM # By Jaime RGP <@jaimergp> """ ommprotocol.analyze ------------------- Trajectory analysis routines """ import argparse import os import sys import matplotlib.pyplot as plt plt.i...
insilichem/ommprotocol
ommprotocol/analyze.py
Python
lgpl-3.0
6,543
[ "MDTraj", "OpenMM", "VisIt" ]
a7bc3bbcb5a95d00f104a601a466028e4179dc2ef1465f42a2d6936e74aca5ba
# -*- coding: utf-8 -*- """ @file @brief Defines a sphinx extension to output the documentation in :epkg:`RST`. It is inspired from `restbuilder <https://github.com/sphinx-contrib/legacy>`_. I replicate its license here: :: Copyright (c) 2012-2013 by Freek Dijkstra <software@macfreek.nl>. Some rights reserved...
sdpython/pyquickhelper
src/pyquickhelper/sphinxext/sphinx_rst_builder.py
Python
mit
39,272
[ "VisIt" ]
85e7b9b3e632072f2154eedb494ee4d5d95e7065ea7b645051b869264ff51147
#!/usr/bin/env python """ Simple script for testing various SfePy functionality, examples not covered by tests, and running the tests. The script just runs the commands specified in its main() using the `subprocess` module, captures the output and compares one or more key words to the expected ones. The output of fai...
BubuLK/sfepy
test_install.py
Python
bsd-3-clause
9,683
[ "VTK" ]
d4bfd117ed0a04c85aebd16e10376506e78048aea9a95996c918b63929f14a44
from openzwave.network import ZWaveNode from Firefly import logging from Firefly.components.zwave.zwave_device import ZwaveDevice from Firefly.const import ACTION_OFF, ACTION_ON, ACTION_TOGGLE, DEVICE_TYPE_SWITCH, EVENT_ACTION_OFF, EVENT_ACTION_ON, STATE from Firefly.helpers.metadata.metadata import metaSwitch TITLE ...
Firefly-Automation/Firefly
Firefly/components/zwave/zwave_aeotec_dsc11_smart_strip.py
Python
apache-2.0
6,550
[ "Firefly" ]
4f398720d374a8d31c0ecad2f38421d66ef716d8be056c904d36461aeaf71c42
""" =============================== Ordinary Least Squares with SGD =============================== Simple Ordinary Least Squares example with stochastic gradient descent, we draw the linear least squares solution for a random set of points in the plane. """ print __doc__ import numpy as np import pylab as pl from s...
ominux/scikit-learn
examples/linear_model/plot_sgd_ols.py
Python
bsd-3-clause
821
[ "Gaussian" ]
8258e847fc5e2da3dbc13e37cdf26b68521287663adab5986bc062c1912270dd
# -*- coding: utf-8 -*- import os import sys import imp import ast import contextlib from mamba import nodetransformers from mamba.infrastructure import is_python3 class ExampleCollector(object): def __init__(self, paths): self.paths = paths self._node_transformer = nodetransformers.TransformToS...
jaimegildesagredo/expects_docs_mamba_formatter
mamba/example_collector.py
Python
mit
2,371
[ "VisIt" ]
ee37cc3bb624c5c057e37ef5667b7f04c04c6227aca6cc2d1e15a193d34aa82c
# # Copyright 2009 Mathieu Leocmach # # This file is part of Colloids. # # Colloids 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 opti...
MathieuLeocmach/colloids
python/colloids/clouds.py
Python
gpl-3.0
3,397
[ "CRYSTAL" ]
e0c2df5b8be716c1ba9b20d8c226e8e0a6f244b7b809a446e772bb6c5ff29f81
# -*- coding: utf-8 -*- # # Copyright 2008 - 2013 Brian R. D'Urso # # This file is part of Python Instrument Control System, also known as Pythics. # # Pythics 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, e...
LunarLanding/Pythics
pythics/qwt.py
Python
gpl-3.0
42,205
[ "Brian" ]
2adc674ebc87453af94c02bf573dfb3b4d195f61c25435af71e79e06fb3cd0e0
class test: def run(self): print '\nThis is a demonstration/template of a PySCeS user contributed extension' print '\nAdding a new extension module is a three step process:' print '========================================================' print '(1) create a directory which represents the name of\n and con...
asttra/pysces
pysces/contrib/demo/demotest.py
Python
bsd-3-clause
684
[ "PySCeS" ]
6239884f31f3536bc182f8017820ccd8e18f42d329f17ef31bccc887c7f21835
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
coxmediagroup/googleads-python-lib
examples/adwords/v201502/error_handling/handle_policy_violation_error.py
Python
apache-2.0
4,209
[ "VisIt" ]
3eb9913339e568c7e0cacfa2799bb3b18be3a5d352dc168b154e6bc21edb34be
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
tensorflow/probability
tensorflow_probability/python/sts/components/semilocal_linear_trend.py
Python
apache-2.0
19,985
[ "Gaussian" ]
44c87a4370183d59ec4a11fc61f90a291d3319f6e40c4710d9e9c0822faed136
"""Convolutional/Variational autoencoder, including demonstration of training such a network on MNIST, CelebNet and the film, "Sita Sings The Blues" using an image pipeline. Copyright Parag K. Mital, January 2016 """ import tensorflow as tf import numpy as np import os from libs.dataset_utils import create_input_pipel...
alvaroing12/CADL
session-4/libs/vae.py
Python
apache-2.0
19,310
[ "Gaussian" ]
3345e0dc74cd1a735b206982e9ae1d73bf485e5b8683afc18b86fd2c987b696e
# -*- coding: utf-8 -*- # # documentation build configuration file, created by # sphinx-quickstart on Sat Sep 27 13:23:22 2008-2009. # # This file is execfile()d with the current directory set to its # containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleab...
jctanner/ansible
docs/docsite/sphinx_conf/core_conf.py
Python
gpl-3.0
11,221
[ "Galaxy" ]
d1c492a22b23c6a58c26de5c5214ddb55e1afcb232962c884475b6029485968d
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
GirlsCodePy/girlscode-coursebuilder
modules/oauth2/oauth2.py
Python
gpl-3.0
6,937
[ "VisIt" ]
cd462edf7ee3863e48806c0450f5e354a9c93058c5562a0136ef8f07159a53a9
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
Jc2k/libcloud
libcloud/common/google.py
Python
apache-2.0
18,953
[ "VisIt" ]
4b1b7be7f2799bfa72b2ab27122302225599dabe187bd38c9355ed11f35b55a6
#!/usr/local/env python # if necessary, edit preceding line to point to your Python # or launch as "python Make.py ..." # Purpose: manage LAMMPS packages, external libraries, and builds # create a version of LAMMPS specific to an input script(s) # Syntax: Make.py switch args ... # Help: type Make.py or Make.p...
CFDEMproject/LAMMPS
src/Make.py
Python
gpl-2.0
27,623
[ "LAMMPS" ]
9cd43d1f85b6126106566a1df4189d8e484c50dc089f07cf48c98ef8038b3a39
# fMBT, free Model Based Testing tool # Copyright (c) 2012, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU Lesser General Public License, # version 2.1, as published by the Free Software Foundation. # # This program is distribut...
sanyaade-mobiledev/fMBT
utils/eyenfinger.py
Python
lgpl-2.1
61,210
[ "Gaussian" ]
3d0fec40d229926eb688b1e3fc0750a255614914bdc59762a9bcd3ad7a10fe89
# -*- coding: utf-8 -*- # ramaplot.AnalyticalDataset.py # # Copyright (C) 2015 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. See the LICENSE file for details. """ Manages analytical Ramachandran plot datasets. .. todo: - Use par...
KarlTDebiec/Ramaplot
AnalyticalDataset.py
Python
bsd-3-clause
8,668
[ "Amber" ]
07439e92c80e49bfe3128cee44bad7db11b68619fc6d986318b269982fc0a547
#! /usr/bin/python ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ##* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ##======================================================================= ##Copyright (C) 2009-2010 Leonardo BAUTISTA GOMEZ ##This program is free softwar...
geodynamics/specfem3d_globe
utils/fault_tolerance_FTI_Leonardo_Bautista_Gomez/FTI_version_0.3_from_2011/src/conf.py
Python
gpl-3.0
3,022
[ "VisIt" ]
05c444876762c8ca09d45d41ba39988ce8256fdb7ba449c91b3f2d1f2d3e2405
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/google-research
poem/core/input_generator.py
Python
apache-2.0
28,000
[ "Gaussian" ]
806b020134218b525498bc90fac2686c88c6becbde8bbb4a48e42edf79dc7787
# 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...
capoe/espressopp.soap
src/interaction/DihedralPotential.py
Python
gpl-3.0
2,701
[ "ESPResSo" ]
8008026ee23cd192fa976195849e038d1be7f8958cfe2aaea71bf0b88a5592a4
# $Id: get_deployments.py 2016-12-27 $ # Author: Coen Meerbeek <coen@buzzardlabs.com> # Copyright: BuzzarLabs 2016 """ This file retrieves deployments from an Octopus application """ import logging, json, requests, time, sys import ConfigParser import splunk.Intersplunk as isp import octopus_common # Parse octopus.c...
cmeerbeek/splunk-addon-octopus-deploy
TA-OctopusNT-Fwd/bin/get_deployments.py
Python
mit
2,057
[ "Octopus" ]
3ffc4c7add64498c6a33dce101bb5c1133cba494fbc4f75ba7b7c6bae482fd2d
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ # generate server.xml with the following command: # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes # run as follows: # python simple-https-server.py # then in your browser, visit: # https://localhost:4443 ...
hn12404988/hast_web
examples/https_server.py
Python
gpl-3.0
600
[ "VisIt" ]
1f17a5d6ec26bed97cc14bb57ce92ba10129334a6b759a92a2a3bce23fbb5b55
__author__ = 'Brian Wylie' __email__ = 'brian.wylie@kitware.com' __version__ = '0.2.2'
jzadeh/Aktaion
python/parserDev/brothon/__init__.py
Python
apache-2.0
87
[ "Brian" ]
185f5f14682978549bb40fb927477eba25d493825230a7928f876c749aeb3c28
import sys import os import collections import logging import operator import json from sys import exit from os.path import splitext, join, basename, exists from glob import glob from seance.sample import Sample, MetadataSample from seance.filetypes import MetadataReader, DataFileError, FastqFile, SffFile from seance...
ajm/seance
seance/workflow.py
Python
gpl-3.0
22,769
[ "BLAST" ]
c9be25070bd1adf963aa7c3b18c3dd104ced1265409674d83429be899ecd856b
from builtins import range import sys sys.path.insert(1, "../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator # simple test to set beta constraints tests with various number of predictors. Make sure the coefficient bounds are # within the beta constraint...
h2oai/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_7973_beta_constraints_gaussian.py
Python
apache-2.0
3,461
[ "Gaussian" ]
317ffab2060cc312837dcbc2e64e27a64f88fb074936b3dd1702bf59dfff10d8
""" A general-purpose Simulation class for discrete events. The Simulation object is the central object of a simulation. It handles the simulation clock time and maintains communication between the components of the simulation. A simulation is structured as a directed graph of event-processing nodes called EventPr...
jesuscript/topo-mpi
topo/base/simulation.py
Python
bsd-3-clause
61,919
[ "NEURON" ]
3fe3ca301d26f6f260b830e199bba2bee7c7821edd3cd5293e5c74bf959c7292
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2014 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/agui
agui/backends/pyside/extras/timeout.py
Python
gpl-3.0
1,072
[ "Brian" ]
57b48852a19f91e0a60ac2210c773683a26a182ff9b63ebcef1f8da88c7c924f
""" PilotAgentsDB class is a front-end to the Pilot Agent Database. This database keeps track of all the submitted grid pilot jobs. It also registers the mapping of the DIRAC jobs to the pilot agents. Available methods are: addPilotTQReference() setPilotStatus() deletePilot() clearPilo...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/DB/PilotAgentsDB.py
Python
gpl-3.0
49,028
[ "DIRAC" ]
fb06790b2e5da6d83018980509ff0f670cc8272e8f8624d646f3cf2c0e82a53b
#!/usr/bin/env python ''' sets up the dataset based on the measurement data Argumets: relative path ''' # Required modules for all notebooks import scipy as sp import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import IPython import sklearn import graphviz import sys import os #...
primercuervo/cognitive_radio_ml
python/setup_dataset.py
Python
mit
18,915
[ "Gaussian" ]
21a57ef4d5a8011c00b191231e8fb82b30ca059447b1de00111f5db8617e3f71
# -*- coding: utf-8 -*- from abc import abstractmethod, ABCMeta import numpy as np import cv2 import scipy.ndimage as snd # from skimage.feature import structure_tensor, structure_tensor_eigvals, hog from sldc import Logger, StandardOutputLogger, SilentLogger __author__ = "Rubens Ulysse <urubens@uliege.be>" __versio...
urubens/CellCounting
cell_counting/image_features.py
Python
mit
10,968
[ "Gaussian" ]
a63536c19ed0d96cc6fbef568e5d7ded28b5594ec3b52c1e685b5e5b8f106a2a
# -*- coding: utf-8 -*- # # Copyright (c) 2016, 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. """Parser for GAMESS-UK output files""" import re import numpy from . import logfileparser from . import utils class...
Schamnad/cclib
src/cclib/parser/gamessukparser.py
Python
bsd-3-clause
28,721
[ "GAMESS", "Gaussian", "cclib" ]
94bea59a11ecdc338ec638e6fb7d78f6953069d9eabcceae795992405ba4a5c6
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread("/home/pi/Desktop/document-scanner/images/please.jpg",0) img = cv2.medianBlur(img,5) ret,th1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY) th2 = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_MEAN_C,\ cv2.THRESH_BINARY...
agdal1125/sicp2
document-scanner/example.py
Python
mit
750
[ "Gaussian" ]
317764288f8dabe868e1ae7ff8e2eed8ddce1b56128e9f7783f2359922b04420
# -*- test-case-name: twisted.web.test.test_util -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An assortment of web server-related utilities. """ __all__ = [ "redirectTo", "Redirect", "ChildRedirector", "ParentRedirect", "DeferredResource", "htmlIndent", "FailureElement", "fo...
ecolitan/fatics
venv/lib/python2.7/site-packages/twisted/web/util.py
Python
agpl-3.0
12,852
[ "VisIt" ]
a333e6f6364891c25d0b930e41264b05023b1bcb9dc8ede467b827f03c58e063
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permission to us...
bgoli/pysces
pysces/PyscesInterfaces.py
Python
bsd-3-clause
9,280
[ "PySCeS" ]
0c21d7004c43c5efe609f9f54d7efe9b709364f250fe962370b8a259b32f557e
from tools.load import LoadMatrix from sg import sg lm=LoadMatrix() traindat=lm.load_numbers('../data/fm_train_real.dat') testdat=lm.load_numbers('../data/fm_test_real.dat') trainlabel=lm.load_labels('../data/label_train_regression.dat') parameter_list=[[traindat,testdat,trainlabel,10,2.1,1.2,1e-6], [traindat,testda...
ratschlab/ASP
examples/undocumented/python_static/regression_krr.py
Python
gpl-2.0
852
[ "Gaussian" ]
57a7aacad4d2c0705528ad2d54aa609c9cba31088ac281a58e91652fd9443286
#__docformat__ = "restructuredtext en" # ******NOTICE*************** # optimize.py module by Travis E. Oliphant # # You may copy and use this module as you see fit with no # guarantee implied provided you keep this notice in all copies. # *****END NOTICE************ # A collection of optimization algorithms. Version ...
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/scipy/optimize/optimize.py
Python
apache-2.0
96,448
[ "Gaussian" ]
82fb8d9bc49d887832cb9b4a069e5adb9e863667583df43326228e44c5bf0f23
#!/usr/bin/python """ This module contains an OpenSoundControl implementation (in Pure Python), based (somewhat) on the good old 'SimpleOSC' implementation by Daniel Holth & Clinton McChesney. This implementation is intended to still be 'simple' to the user, but much more complete (with OSCServer & OSCClient classes) ...
fieldOfView/pyZOSC
OSC.py
Python
lgpl-3.0
89,915
[ "VisIt" ]
e5b1f19ad7fac62b54c8f452b63d1e89556be66c6eb11eb5629e0cac966c289f
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-utils-file-adler # Author : ######################################################################## """ Calculate md5 of the supplied file """ __RCSID__ = "$Id$" import DIRAC from DIRAC.Core...
andresailer/DIRAC
Interfaces/scripts/dirac-utils-file-md5.py
Python
gpl-3.0
1,184
[ "DIRAC" ]
f9e2939812abce289d14f856c42996fd7b06173c0b47544aac50cff6a3259587
## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2012 Raik Gruenberg & Johan Leckner ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either v...
ostrokach/biskit
Biskit/AmberCrdEntropist.py
Python
gpl-3.0
6,335
[ "Amber" ]
71f1b127d21dcba71e4f87d59b7d2497f79bd8bb2cb3fd8b800e47d2aa2498b9
# Author: Samuel Genheden samuel.genheden@gmail.com """ Program to analyse the radius and area per lipid of a liposome Examples: md_liposome.py -s ref.gro -f sim.xtc --inner "name PO4 and resid 8161:9107" --outer "name PO4 and resid 9108:10688" """ import numpy as np import MDAnalysis as md import MDAnalysis.lib.d...
SGenheden/Scripts
Md/md_liposome.py
Python
mit
4,014
[ "MDAnalysis" ]
8e8ef0ba34d0e0e4870e0ecf4ab7e26903916a0f7c6d740b3b33a2de30388471
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ ParallelTemperingSampler ======================== Derived multi-thermodynamic state multistate class wit...
choderalab/openmmtools
openmmtools/multistate/paralleltempering.py
Python
mit
12,141
[ "OpenMM" ]
74f36ea5b16236abbe6f5acd6b79d0ad4f06666413d8f59919f10a436ae46ea1
# -*- coding: utf-8 -*- from __future__ import division """ Created on Fri Jul 20 15:55:52 2018 @author: hou """ import numpy as np import os import cv2 import math import skimage import random import argparse from skimage import io from PIL import Image,ImageDraw,ImageFont parser = argparse.ArgumentParser() parser.a...
ucloud/uai-sdk
examples/tensorflow/train/crnn_chinese/code/gen_data/gen_pic.py
Python
apache-2.0
2,733
[ "Gaussian" ]
0d6de73fa4d6572d3c68370be4fe2718fc093ebd7190c401cf683b9f21c5aff6
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may n...
kwhitehall/climate
ocw/dataset_processor.py
Python
apache-2.0
32,596
[ "NetCDF" ]
5cecf8812cbff518aa8b13cfa33385066ebf50e37c3e8f85ad1a29715ad96521
#!/usr/bin/env python """ Converts plumed cv output to evb cv output style (keep only the first 2 columns; multiply the first by 1000 (ps to fs) and make an int """ from __future__ import print_function import os import sys import argparse from md_utils.md_common import list_to_file, InvalidDataError, warning, create_...
team-mayes/md_utils
md_utils/proc_plumed_cv.py
Python
bsd-3-clause
5,937
[ "LAMMPS" ]
78fe8c198f8dbb8ee30e5321cf790109a24095f4efdd01cf75c89b7a75808f97
# -*- coding: utf-8 -*- # Copyright 2007-2011 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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...
pburdet/hyperspy
hyperspy/io_plugins/netcdf.py
Python
gpl-3.0
6,617
[ "NetCDF" ]
b6c6bc227d669ad8550266e4faa17646158ad8ad1dca80da01e161597c5e23a8
""" The image module supports basic image loading, rescaling and display operations. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six import os import warnings import math import numpy as np from numpy import ma from matplotlib import rcPar...
yavalvas/yav_com
build/matplotlib/lib/matplotlib/image.py
Python
mit
49,589
[ "Gaussian" ]
ad7ce5f8bd0b8eb1bf634420f82226fb5da61f1917ceb9cb64e5e8597560ec4a
""" OUTPUT: Bacteriocins 1. bacterion ID 2. organism 3. bacteriocin start 4. bacteriocin end 5. bacteriocin strand 6. regionType Annotated Genes 1. bacteriocin ID 2. organism 3. bacteriocin start 4. bacteriocin end 5. bacteriocin strand 6. annotated gene organism 7. annotated gene locus 8. annotated ...
idoerg/BOA
src/genome/bacteriocin.py
Python
gpl-3.0
25,065
[ "BLAST" ]
652bef07dd3c06ced130656221fdb203f80afa88c13f740e6c99d0f8bbd6cbcd
#Fits an emission ine with a Gaussian and returns the amplitude, standard deviation, and continuum line #Usage: run FitEmission.py 'a6' 4861 to fit the lines at rest wavelengths 6563 (Ha) for the a6 mask. #Typing run FitEmission.py 'a6' 'HaNII' will fit all three lines around Ha simulaaneously import nump...
brianlorenz/COSMOS_IMACS_Redshifts
PlotCodes/PlotEmission.py
Python
mit
40,053
[ "Galaxy", "Gaussian" ]
af9fd005eb30b6af95bc44a6e7e6e23529481f3adbc3776217a7c66d34e9e920
# -*- coding: utf-8 -*- """ Created on Thu Jul 24 19:49:39 2014 @author: brian """ import socket, time, re class LifeBoard: """ Play the game of life """ def __init__(self, board): """ board - 2d array of the board where '*' is an alive cell and ' ' is a dead cell """ self.board = b...
cylussec/gameoflife
life.py
Python
gpl-2.0
1,914
[ "Brian" ]
7de30cb08617b95b120af312d1b4767cc7070194d1130ebfe4477043b200c233
# Copyright (C) 2004-2008 Paul Cochrane # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distribut...
paultcochrane/pyvisi
examples/FlindersFaultLinesExample.py
Python
gpl-2.0
3,835
[ "VTK" ]
ef2ba909fb308fa0b303d3dc9da25d52b552bffc795750792d63ec9560b8a8ad
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import random def getLambdaModel(): print("Read data") prostate = h2o.import_file(path=pyunit_utils.locate("smalldata/logreg/prostate.csv")) myX = ["AGE","RACE","DPROS","DCAPS","PSA","VOL","GLEASON"] myY = "CAPSULE" famil...
pchmieli/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_NOFEATURE_getLambdaModel_mediumGLM.py
Python
apache-2.0
1,395
[ "Gaussian" ]
22fa3a0fadabeb44645aad2b0d97ec70bd35927588c09350aa6e6eaf1e5271cb
from rdkit import RDConfig import unittest from rdkit.DataManip.Metric import rdMetricMatrixCalc as rdmmc import numpy import random from rdkit import DataStructs def feq(v1,v2,tol2=1e-4): return abs(v1-v2)<=tol2 class TestCase(unittest.TestCase): def setUp(self) : pass def test0DistsArray(self)...
rdkit/rdkit-orig
Code/DataManip/MetricMatrixCalc/Wrap/testMatricCalc.py
Python
bsd-3-clause
4,444
[ "RDKit" ]
af8c359b61f652f64dd28437af168b7851c7f569394e2fa154e10f64556ec7a8
#!/usr/bin/python import os import shutil from testutil import test_result import pynbody as pyn import numpy as np import matplotlib.pyplot as plt import pynbody.plot.sph as p_sph #Parameters for the test testdir='sedov' files = ["data/sedov.std", "data/sedov.param"] exe = "./gasoline" testname = "Sedov Blast" def t...
ibackus/compare-changa-builds
tests/sedov/sedovblast.py
Python
mit
3,176
[ "BLAST" ]
aa6cc2cf7461cf56183f6791c05bfbe18eab8a2b62cc2f919e37d0ef39f17699
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2005 Donald N. Allingham # Copyright (C) 2008 Stefan Siegel # Copyright (C) 2008 Brian G. Matherly # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera...
Forage/Gramps
gramps/plugins/rel/rel_de.py
Python
gpl-2.0
11,352
[ "Brian" ]
f03353af4df7f6927b5652d3de9c5b414e70715871fd54edc65b8284965cf553
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import numpy as np import re from math import sin, cos, pi, sqrt import string import warnings from pymatgen.electronic_structure.core import Magmom from pymatgen.util.string import transformation_to_string ...
dongsenfo/pymatgen
pymatgen/core/operations.py
Python
mit
20,784
[ "CRYSTAL", "pymatgen" ]
f5ca52693897cca556690ca858744ac76ff9af65e156aec307ed2d905935047e
# 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...
drpngx/tensorflow
tensorflow/contrib/autograph/pyct/transformer.py
Python
apache-2.0
11,455
[ "VisIt" ]
603c75bf18b60dcd65dd05487d064daee9203b613d8b809e8db17428dffa8465
#!/usr/bin/env python """ module used to compare gene clusters between forg to stat and stat to forg transitions. """ import os import sys import re import argparse import itertools import string import random import networkx as nx import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib...
oxpeter/small_fry
compare_clusters.py
Python
gpl-2.0
21,145
[ "Mayavi" ]
22f750caa2fa415361f8acd027e15031b2b9e138a85819b6569f83742ada741f
#!/usr/bin/python # -*- coding: utf-8 -*- """ ===================== Classifier comparison ===================== A comparison of a several classifiers in scikit-learn on synthetic datasets. The point of this example is to illustrate the nature of decision boundaries of different classifiers. This should be taken with ...
chenyyx/scikit-learn-doc-zh
examples/en/classification/plot_classifier_comparison.py
Python
gpl-3.0
5,236
[ "Gaussian" ]
b7862b7f475239d61f8b40d061e32a2263b86ce0b711946adcdd4f5ea21dd03f
#------------------------------------------------------------------------------- # # Define classes for (uni/multi)-variate kernel density estimation. # # Currently, only Gaussian kernels are implemented. # # Written by: Robert Kern # # Date: 2004-08-09 # # Modified: 2005-02-10 by Robert Kern. # Contr...
svviz/svviz
src/svviz/kde.py
Python
mit
3,288
[ "Gaussian" ]
f415b1356bbdf1be3d42ccf831e2072cbda97b69ac803f068552bd2eb728a7d9
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ============================================================= Compare the effect of different scalers on data with outliers ============================================================= Feature 0 (median income in a block) and feature 5 (number of households) of the `...
chrsrds/scikit-learn
examples/preprocessing/plot_all_scaling.py
Python
bsd-3-clause
13,981
[ "Gaussian" ]
c937870992a620ffeedccf81b3e1fe63c507893b9a45892a0742db7f1559e87d
# TO-DO: to be moved to tests directory import cmd import sys import os.path from DIRAC.DataManagementSystem.Client.CmdDirCompletion.AbstractFileSystem import UnixLikeFileSystem from DIRAC.DataManagementSystem.Client.CmdDirCompletion.DirectoryCompletion import DirectoryCompletion class DirCompletion(cmd.Cmd): ...
DIRACGrid/DIRAC
src/DIRAC/DataManagementSystem/Client/test/new_dir_completion.py
Python
gpl-3.0
1,214
[ "DIRAC" ]
61a4a0c9c35274771c6900c231939aff10d361a89c39196eadef0acce78a3e48
# polling_location/controllers.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from .models import PollingLocationManager from config.base import get_environment_variable from django.contrib import messages import glob import json import requests import wevote_functions.admin from wevote_functions.fun...
wevote/WeVoteServer
polling_location/controllers.py
Python
mit
15,992
[ "VisIt" ]
69c56c65ee94e1b5e9cb23cf02a5a5883138bd7cfa9f50f5e413febb76525ebb
# Developed by Redjumpman for Redbot. # Inspired by Spriter's work on a modded economy. # Creates 1 json file, 1 log file per 10mb, and requires tabulate. # STD Library import asyncio import logging import logging.handlers import os import random import time from copy import deepcopy # Discord imports i...
OldManMarsh/Jumper-Cogs
casino/casino.py
Python
mit
106,141
[ "CASINO" ]
8316d52fc454d80127cc2b61ae9bf33f32e0c4c2d290e85b8bbdebb6a2f2628e
import os from datetime import datetime from django.test import SimpleTestCase from django.utils import html, safestring from django.utils.encoding import force_text from django.utils.functional import lazystr class TestUtilsHtml(SimpleTestCase): def check_output(self, function, value, output=None): """...
twz915/django
tests/utils_tests/test_html.py
Python
bsd-3-clause
9,021
[ "ADF" ]
da1acf631435283644fe958727b1445bf9fb90b51e0915477dbf2a650d5e2b21
# vim: set tabstop=4 shiftwidth=4 textwidth=79 cc=72,79: """ fuzzy: Fuzzy Set and Fuzzy Logic functions. Original Author: Owain Jones [github.com/erinaceous] [contact@odj.me] """ from __future__ import print_function import fuzzython.utils import fuzzython.norms.norms import fuzzython.fsets.fuzzy_set import fu...
erinaceous/python-fire
fire/fuzzy.py
Python
mit
5,923
[ "Gaussian" ]
79f44dc04b5e67c5416c8b6d3ed7b6b045f075fda437ec190912e53697d7430d
""" For reporting messages to security log service """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import syslog from DIRAC import gLogger, gConfig from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.Core.Utilities import Time from DIRAC.Core.Ut...
yujikato/DIRAC
src/DIRAC/FrameworkSystem/Client/SecurityLogClient.py
Python
gpl-3.0
2,234
[ "DIRAC" ]
d5c006985685476b85aed272136c0f33963c095daf7f1a8cb67dceb86eb8f19b
class Neuron: """Abstract class for a neuron in a neural network.""" def __init__(self): self.result = 0 def calculate_result(self): pass
hesslink111/neuralnetworknibbles
domain/neuron.py
Python
mit
168
[ "NEURON" ]
93adbf848d6c72e24bb1a1d78021581da231159adfe761b67af0db22eff42bf9