code
stringlengths
2
1.05M
repo_name
stringlengths
5
104
path
stringlengths
4
251
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals AUTHOR = u'Jamie Duncan' SITENAME = u'Open Tech Podcast' SITEURL = 'https://opentechpodcast.org' PATH = 'content' TIMEZONE = 'America/New_York' DEFAULT_LANG = u'en' # Feed generation is usually not desired when developing FEED_...
jduncan-rva/opentechpodcast
pelicanconf.py
Python
gpl-3.0
2,398
#!/usr/bin/env python # ********************************************************************* # * Copyright (C) 2012 Luca Baldini (luca.baldini@pi.infn.it) * # * * # * For the license terms see the file LICENSE, distributed * # * along ...
centrofermi/e3pipe
root/E3Logo.py
Python
gpl-3.0
2,531
# Author: Jason Lu class Publisher: def __init__(self): self.observers = [] def add(self, observer): if observer not in self.observers: self.observers.append(observer) else: print('Failed to add: {}'.format(observer)) def remove(self, observer): try...
jinzekid/codehub
python/设计模式/行为型模式/观察者模式/observer.py
Python
gpl-3.0
1,865
# Import Parent import test from testresult import TestResult import pytz #ValidityTest class Test(test.Test): """docstring for ClassName""" def __init__(self): self.name = "Subject name" self.weight = 0 self.required = True # Test def performTest(self, scanResult): if scanResult.hostnameMatch == Tr...
darckbit/ssl-health
src/tests/servCommonName.py
Python
gpl-3.0
470
#! /usr/bin/python import sys import os if len(sys.argv) == 1: obj = "." else: obj = sys.argv[1] files_to_img = [ obj+"/stage1.o", obj+"/stage2.o", obj+"/kernel64.o" ] buf = [] for fn in files_to_img: with open(fn, "rb") as f: # append file d = f.read() buf.append(d) # 512 byte padding if len(d)...
KoczurekK/pocOS
scripts/merge.py
Python
gpl-3.0
467
# Copyright (C) British Crown (Met Office) & Contributors. # This file is part of Rose, a framework for meteorological suites. # # Rose 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 L...
metomi/rose
metomi/rose/apps/rose_arch_compressions/rose_arch_gzip.py
Python
gpl-3.0
1,827
""" DWF Python Example Author: Digilent, Inc. Revision: 2018-07-19 Requires: Python 2.7, 3 """ from ctypes import * from dwfconstants import * import math import time import matplotlib.pyplot as plt import sys import numpy import wave import datetime import os buffersize =...
andrasfuchs/BioBalanceDetector
Measurements/WaveForms/Experiments/SleepLogging/python/AnalogIn_AcquisitionSaveToWAV_float.py
Python
gpl-3.0
4,592
import pandas as pd import numpy as np import os import json from sklearn.preprocessing import StandardScaler from itertools import combinations_with_replacement '''train_df_play['percent_damage'] = \ train_df_play[['crack_length_1','crack_length_2','crack_length_3','crack_length_4']].max(axis=1)/threshold * 100 p...
samnashi/howdoflawsgetlonger
scattergro_parser_each.py
Python
gpl-3.0
14,324
#!/usr/bin/env python """ Create Phase Tensor Map from the ModEM's output Resistivity model """ import os import os.path as op import matplotlib.colorbar as mcb import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as np from matplotlib.colors import Normalize from matplotlib.patches ...
MTgeophysics/mtpy
mtpy/modeling/modem/phase_tensor_maps.py
Python
gpl-3.0
54,665
a = int(input()) print(-15<a<=12 or 14<a<17 or a>=19)
fess932/python
Stepic Программирование на Python/Часть первая/интервалы.py
Python
gpl-3.0
53
#!/usr/bin/env python # COPYRIGHT: Robosub Club of the Palouse under the GPL v3 """Creates and maintains Robosub vision processes. Creates one process for every vision processor defined in robosub/src/settings.json. """ #import json # TODO remove this once the hack main function is removed #from vision_settings imp...
pi19404/robosub-1
src/sensor/vision/vision_controller.py
Python
gpl-3.0
4,677
# -*- coding: utf-8 -*- """ Created on Thu Feb 20 19:15:28 2014 @author: Pete """ from __future__ import division, print_function import numpy as np import xlwt # Constants R = 0.5 A = 1.0 D = 1.0 tsrs = np.arange(0.1, 3.15, 0.1) tsr_wake = 1.9 speeds = np.arange(0.4, 1.45, 0.2) z_H = np.arange(0, 0.75, 0.125) y_R =...
petebachant/TurbineDAQ
scripts/test_plan_builder/test_plan_builder.py
Python
gpl-3.0
1,699
################################################################################ ################################################################################ class JumpEvent(object): ############################################################################## def __init__(self, State, InitialVelocity, MaxNumb...
dloman/FiestaMonsterz
Events/JumpEvent.py
Python
gpl-3.0
1,020
#!/usr/bin/python # -*- coding: utf-8 -*- import caffe import numpy as np import scipy.ndimage from utils import * from sklearn.manifold import TSNE import matplotlib.pyplot as plt transformations = { "identity": { "f": lambda i,v: i, "steps": [0], }, "shift_x": { "f": img_shift_x, "steps": rangesym(1, 15, 2)...
axel-angel/master-project
src/trace_transfo.py
Python
gpl-3.0
2,776
#!/usr/bin/python # # marker.py is a piece of uCon 2009 Capture The Flag code # Copyright (C) 2002 Marcos Alvares <marcos.alvares@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; ei...
mabj/ctf_ucon2
bot/marker.py
Python
gpl-3.0
3,740
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2014 Cristhofer Travieso <cristhofert97@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 3 of the License...
cristhofert/presentation
activity.py
Python
gpl-3.0
1,028
import numpy as np from pele.utils.hessian import sort_eigs __all__ = ["normalmode_frequencies", "normalmodes", "logproduct_freq2"] class NormalModeError(Exception): """raised if the normal mode results are not as expected this typically means that a minimum is actually a transition state, or a transiti...
js850/pele
pele/thermodynamics/_normalmodes.py
Python
gpl-3.0
4,019
from __future__ import absolute_import import re from ner_v1.detectors.base_detector import BaseDetector from language_utilities.constant import ENGLISH_LANG class PhoneDetector(BaseDetector): """Detects phone numbers in given text and tags them. Detects all phone numbers in given text and replaces them by e...
hellohaptik/chatbot_ner
ner_v1/detectors/pattern/phone_number/phone_detection.py
Python
gpl-3.0
6,529
""" determined if a word is all lowcase, all uppcase or just first letter being Capital. https://leetcode.com/problems/detect-capital/ NOTE:the below code is borrowed from: https://leetcode.com/problems/detect-capital/discuss/1555379/Python-Simple-Implementation This question is easy, but the code below showcased the ...
entrepidea/projects
python/tutorials/algo/leetcode/easy/detect_capital.py
Python
gpl-3.0
577
#!/usr/bin/python3 # note that module name has changed from Tkinter in Python 2 to tkinter in Python 3 from tkinter import * from tkinter.ttk import * """ Using Grid Layout most of this is taken from:: http://zetcode.com/gui/tkinter/layout/ and http://www.dabeaz.com/special/Tkinter.pdf http://infohost.nmt.edu/tcc/he...
cbshiles/community_site
domains/subs/slack/res/sumulator.py
Python
gpl-3.0
1,731
import sys from pylint.lint import Run def lint(file): """ Lint file and return non-zero code if code is rated at less than 8/10 Parameters ---------- file: str Path name of the file to lint """ results = Run([file, "--max-line-length=100"], exit=False) if results.linter.stat...
eftov/1password2pass
test/lint.py
Python
gpl-3.0
503
from django.db import models from django.utils.translation import ugettext_lazy as _ from oioioi.base.utils.deps import check_django_app_dependencies from oioioi.contests.models import Submission, Contest check_django_app_dependencies(__name__, ['oioioi.disqualification'], strict=True) ...
papedaniel/oioioi
oioioi/similarsubmits/models.py
Python
gpl-3.0
1,206
############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
Donkyhotay/MoonPy
zope/app/rotterdam/tests/util.py
Python
gpl-3.0
1,167
#!/usr/bin/python ''' The following commands were ran prior to execution of this script: $ touch goodpass.txt ** For storing our successful password $ vi zero.txt ** type in some passphrases from a hint you have...hopefully Example: zero kool zerokool zerocool zero cool ... $ sudo john --ru...
mcardacci/tools_of_the_dark_arts
gpg_brute_forcer_python/gpg_Brute_Force.py
Python
gpl-3.0
1,259
import os.path import zipfile import bs4 import tempfile import os import glob import re import nltk import string import unicodedata from subprocess import call abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) os.chdir(dname) def get_soup(f): h = open(html,"r+") soup = bs4.BeautifulSoup(h,"lxml...
kanner/lfs-crawler
fix/mdtohtml.py
Python
gpl-3.0
743
from __future__ import absolute_import import os import unittest from .. import PhyloTree, NCBITaxa from ..ncbi_taxonomy import ncbiquery DATABASE_PATH = "test_tmp/testdb.sqlite" class Test_ncbiquery(unittest.TestCase): def test_00_update_database(self): if not os.path.exists(DATABASE_PATH): ncbiqu...
Unode/ete
ete3/test/test_ncbiquery.py
Python
gpl-3.0
5,434
from . import GeneralBranch, Branch from anaconda_updates.settings import GlobalSettings class Rhel7_5Branch(GeneralBranch): def __init__(self): super().__init__(branch_type=Branch.rhel7_5, cmd_args=["-rh7.5", "--rhel7.5"], help="working on RHEL 7.5", ...
jkonecny12/anaconda_updates
anaconda_updates/releases/rhel7_5.py
Python
gpl-3.0
576
# -*- coding: utf-8 -*- import pycurl import re import time from module.plugins.internal.Account import Account class FilefactoryCom(Account): __name__ = "FilefactoryCom" __type__ = "account" __version__ = "0.16" __description__ = """Filefactory.com account plugin""" __license__ = "GP...
Zerknechterer/pyload
module/plugins/accounts/FilefactoryCom.py
Python
gpl-3.0
1,573
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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 Lice...
CHBMB/LazyLibrarian
lazylibrarian/notifiers/__init__.py
Python
gpl-3.0
1,598
# -*- coding: utf-8 -*- # Space Syntax Toolkit # Set of tools for essential space syntax network analysis and results exploration # ------------------- # begin : 2014-04-01 # copyright : (C) 2015 by Jorge Gil, UCL # author : Jorge Gil # email : jorge.gil@ucl.ac.uk...
SpaceGroupUCL/qgisSpaceSyntaxToolkit
esstoolkit/SettingsManager.py
Python
gpl-3.0
1,562
#!/usr/bin/env python # This file is part of Gummworld2. # # Gummworld2 is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Gum...
gentooza/Freedom-Fighters-of-Might-Magic
src/gamelib/gummworld2/engine.py
Python
gpl-3.0
19,363
#!/usr/bin/env python ''' njRat Config Decoder ''' __description__ = 'njRat Config Extractor' __author__ = 'Kevin Breen http://techanarchy.net http://malwareconfig.com' __version__ = '0.2' __date__ = '2015/06/13' #Standard Imports Go Here import os import sys import base64 import string from optparse import OptionPa...
hoangcuongflp/RATDecoders
njRat.py
Python
gpl-3.0
8,357
""" This module provides classes that describe quantum spin operators as well as spin interactions. """ __all__ = [ "SpinOperator", "SpinInteraction", ] from itertools import product import matplotlib.pyplot as plt import numpy as np from scipy.sparse import csr_matrix, identity, kron from HamiltonianPy.q...
wangshiphys/HamiltonianPy
HamiltonianPy/quantumoperator/spinsystem.py
Python
gpl-3.0
23,008
#!/usr/bin/python # This script gives server-side access to one Soledad user database by using # the configuration stored in /etc/soledad/soledad-server.conf. # # Use it like this: # # python -i server-side-db.py <uuid> import sys from ConfigParser import ConfigParser from leap.soledad.common.couch import Couch...
leapcode/soledad
scripts/db_access/server_side_db.py
Python
gpl-3.0
1,052
import select import errno class BasePoller: def __init__(self, options): self.options = options self.initialize() def initialize(self): pass def register_readable(self, fd): raise NotImplementedError def register_writable(self, fd): raise NotImplementedError...
soarpenguin/python-scripts
poller.py
Python
gpl-3.0
6,022
#!/usr/bin/python -u ''' Targets: * Create framework for path finding: * maze creation (manual) from learn_pygame/pygame_3rd.py * start/end points * creep class * some way to change pathfinding algorithm * Implement stright-to-the-target pathfinding ...
amarao/fun_came
learn/pathfinding/pathplay.py
Python
gpl-3.0
9,902
import numpy as num import scipy.linalg import numpy.matlib class gait(object): """ Class biped gait gernerator """ def __init__(self, gait_param = None): self.Tcycle = 1.4 self.DSrate = 0.2 self.SSrate = 0.8 self.SWrate = 0.4 self.STrate = 0.6 self.samp_...
nvtienanh/PyUXASim
gait.py
Python
gpl-3.0
25,979
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name' : 'Sales & Purchases Receipts', 'version' : '1.0', 'summary': 'Manage your debts and credits thanks to simple sale/purchase receipts', 'description': """ This module allows you recording sales an...
t3dev/odoo
addons/account_voucher/__manifest__.py
Python
gpl-3.0
842
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2015-2018 Canonical Ltd # # 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 Software Foundation. # # This program is distributed in ...
elopio/snapcraft
tests/unit/plugins/test_base.py
Python
gpl-3.0
3,087
import typing import string import discord from discord.ext import commands, vbu class UserCommands(vbu.Cog): EIGHT_BALL_ANSWERS = ( "It is certain.", "It is decidedly so.", "Without a doubt.", "Yes – definitely.", "You may rely on it.", "As I see it, yes.", ...
4Kaylum/SkyBot
cogs/user_commands.py
Python
gpl-3.0
3,285
# -*- coding: utf-8 -*- """ DEMO_002 OPTION DICTIONARY Which options can one set? This demo explains all fields of the options dictionary, e.g. which options you can set for the fitting process as a user. """ from numpy import array, exp from psignifit.psignifit import psignifit # to have some data we use the data...
Visdoom/psignifit-4.0
demo_002.py
Python
gpl-3.0
11,305
""" Filters ------- `FilterQuery` objects save the filter details and are stored pickled in the `Filter` class as `Filter.query` in :doc:`models`. """ from __future__ import with_statement # python imports import re from os import path # library imports from sqlalchemy import and_, not...
lowmanio/Webscavator
webscavator/webscavator/model/filters.py
Python
gpl-3.0
4,022
import pytest import unittest import resource import functools import os def source_root(): path_list = os.path.dirname(os.path.abspath(__file__)).split("/") while len(path_list) > 0: git_path = os.path.join(os.sep, "/".join(path_list), ".git") if os.path.isdir(git_path): return os....
Statoil/libres
python/tests/conftest.py
Python
gpl-3.0
1,113
# vim: ts=4:sw=4:expandtab # -*- coding: UTF-8 -*- # BleachBit # Copyright (C) 2008-2017 Andrew Ziem # https://www.bleachbit.org # # 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...
brahmastra2016/bleachbit
bleachbit/Action.py
Python
gpl-3.0
14,848
from httpserver import app as application
Samuel-Phillips/pv-viability-map
index.py
Python
gpl-3.0
42
import _thread from FaustBot.Communication.Observable import Observable class LeaveObservable(Observable): def input(self, raw_data, connection): data = {} leave_or_part = "PART" if raw_data.find('PART') != -1 else "QUIT" data['raw'] = raw_data data['nick'] = raw_data.split('!')[0...
SophieBartmann/Faust-Bot
FaustBot/Communication/LeaveObservable.py
Python
gpl-3.0
719
""" WSGI config for credenciamento project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
dparaujo/projeto
credenciamento/wsgi.py
Python
gpl-3.0
406
''' gui.py ------------- Various classes for providing a graphical user interface. ''' import sys, webbrowser from .qt.widgets import (QMainWindow, QApplication, QPushButton, QWidget, QAction, QTabWidget,QVBoxLayout,QGridLayout,QLabel,QGraphicsView,QKeySequence) from .qt.QtGui import QIcon from .qt.QtCore import p...
feranick/GES_AT
Other/GES-AT_Tabs/gridedgeat/gui.py
Python
gpl-3.0
6,718
#!/usr/bin/env python # -*- mode: python; coding: utf-8; -*- # ---------------------------------------------------------------------------## # # Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer # Copyright (C) 2003 Mt. Hood Playing Card Co. # Copyright (C) 2005-2009 Skomoroh # # This program is free softwa...
jimsize/PySolFC
pysollib/games/yukon.py
Python
gpl-3.0
27,170
# -*- coding: utf-8 -*- # crunchyfrog - a database schema browser and query tool # Copyright (C) 2008 Andi Albrecht <albrecht.andi@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, e...
angvp/angelvelasquez-crunchyfrog
cf/ui/prefs.py
Python
gpl-3.0
21,018
# coding: utf-8 from gettext import gettext def _(text, args=None): text = gettext(text) if args is not None: text %= args return text
onlfait/uTopiaController
src/controller/i18n.py
Python
gpl-3.0
156
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import strip_jsonp, unified_strdate class ElPaisIE(InfoExtractor): _VALID_URL = r'https?://(?:[^.]+\.)?elpais\.com/.*/(?P<id>[^/#?]+)\.html(?:$|[?#])' IE_DESC = 'El País' _TESTS = [{ 'url': 'ht...
israeltobias/DownMedia
youtube-dl/youtube_dl/extractor/elpais.py
Python
gpl-3.0
3,823
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Raspa Preço documentation build configuration file, created by # sphinx-quickstart on Mon Nov 6 10:52:29 2017. # # 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 ...
IvanBrasilico/raspa-preco
conf.py
Python
gpl-3.0
5,357
# coding=utf-8 """ Calcolare il fattore primo più grande di 600851475143 """ __author__ = 'davide' from euler._utils import genera_primi import math def ex3(n): top = math.ceil(math.sqrt(n)) for m in genera_primi(): while not n % m: yield m n //= m top = math.ce...
DavideCanton/Python3
euler/ex3.py
Python
gpl-3.0
564
import argparse import collections import os import re import subprocess import sys import xml.etree.cElementTree as ElementTree VERSION = "2.7.2" NAMESPACE = "pyqtc.python.%s" % VERSION FILTER_NAME = "Python %s" % VERSION FILTER_ID = "python" EXTENSIONS = {".html", ".css", ".js", ".txt", ".xml", ".jpg"} c...
yarolig/pyqtc
tools/sphinx2qhcp.py
Python
gpl-3.0
4,974
# -*- coding: utf-8 -*- # Copyright (C) 2016-2018 Mathew Topper # # 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 later...
DTOcean/dtocean-app
dtocean_app/main.py
Python
gpl-3.0
130,886
#!/usr/bin/python2 ''' This example shows that private values (values stored in attributes whose names is prefixed by one or two underscores) are not really private. - _values can be changed as is. - __values are just hidden in funny names. The reason for this is ofcourse inheritance. NOTE: new style (deriving from '...
nonZero/demos-python
src/examples/short/object_oriented/oo_private_2.py
Python
gpl-3.0
1,874
import logging from qtpy.QtWidgets import QUndoCommand from larray_editor.utils import logger class ArrayValueChange(object): """ Class representing the change of one value of an array. Parameters ---------- key: list/tuple of str Key associated with the value old_value: scalar ...
larray-project/larray-editor
larray_editor/commands.py
Python
gpl-3.0
3,416
import sqlite3 from ..models.dbhandler import * from ..models.Schedule import * from ..models.Scheduler import * from ..models.Repetition import * from ..models.MetronomeSetup import * from ..config.config import Config from ..test.helper import Helper import os import datetime class DatabaseTestBase(object): dbf...
ideabulbs/muspractice
muspractice/test/test_database.py
Python
gpl-3.0
6,082
"""Tests for the validators module""" import pytest import redbaron import reddel_server def test_OptionalRegionValidator_call(): """Test that it's valid to not specify a region""" testsrc = redbaron.RedBaron("1+1") validator = reddel_server.OptionalRegionValidator() validator(testsrc) def test_Opt...
storax/reddel-server
tests/test_validators.py
Python
gpl-3.0
7,005
import unittest from reckerbot import Message class TestMessage(unittest.TestCase): def test_is_direct_message(self): actual = Message(data={'channel': 'D0120K8DHQX'}).is_direct_message() self.assertEqual(actual, True) actual = Message(data={'channel': 'C012MGSMG5S'}).is_direct_message() ...
arecker/reckerbot
test/test_message.py
Python
gpl-3.0
409
# noinspection PyPackageRequirements from collections import namedtuple from logbook import Logger import uuid import time import config import base64 import secrets import hashlib import json from jose import jwt from jose.exceptions import ExpiredSignatureError, JWTError, JWTClaimsError import os import datetime fro...
pyfa-org/Pyfa
service/esiAccess.py
Python
gpl-3.0
11,002
# -*- coding: utf-8 -*- import re from module.plugins.Hook import Hook from module.utils import remove_chars class MultiHook(Hook): __name__ = "MultiHook" __type__ = "hook" __version__ = "0.27" __config__ = [("mode" , "all;listed;unlisted", "Use for plugins (if supported)" ...
mariusbaumann/pyload
module/plugins/internal/MultiHook.py
Python
gpl-3.0
8,647
import re import base64 import os # Web app flask_host = os.getenv('FLASK_HOST', 'localhost.localdomain') flask_port = int(os.getenv('FLASK_PORT', 5000)) flask_use_ssl = bool(int(os.getenv('FLASK_USE_SSL', 1))) flask_server_name = os.getenv('FLASK_SERVER_NAME', None) if not flask_server_name: if ((flask_use_ssl a...
mozilla/pulseguardian
pulseguardian/config.py
Python
mpl-2.0
2,761
# encoding: utf-8 # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import absolute_import from __fu...
klahnakoski/Bugzilla-ETL
tests/test_examples.py
Python
mpl-2.0
3,218
import os config = { # mozconfig file to use, it depends on branch and platform names "platform": "macosx64", "stage_product": "firefox", "update_platform": "Darwin_x86_64-gcc3", "mozconfig": "%(branch)s/browser/config/mozconfigs/macosx-universal/l10n-mozconfig", "bootstrap_env": { "SHE...
cstipkovic/spidermonkey-research
testing/mozharness/configs/single_locale/macosx64.py
Python
mpl-2.0
2,930
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2018: Alignak team, see AUTHORS.txt file for contributors # # This file is part of Alignak. # # Alignak is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, eit...
Alignak-monitoring/alignak
alignak/objects/schedulerlink.py
Python
agpl-3.0
3,944
from django.contrib import admin from django.utils.translation import gettext_lazy as _ from .models import Partner @admin.register(Partner) class PartnerAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'email', 'phones', 'address', 'is_company') list_display_links = ('id', 'name') search_fields = (...
mrsarm/django-coleman
partner/admin.py
Python
agpl-3.0
1,275
""" """ import os import numpy, time, cPickle, gzip, os, sys import theano import theano.tensor as T from theano.tensor.shared_randomstreams import RandomStreams #from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams from mlp import HiddenLayer from rbm import RBM from logistic_sgd import LogisticReg...
utunga/hashmapd
hashmapd/boneyard/DBN.py
Python
agpl-3.0
10,383
#!/usr/bin/env python3 # encoding: UTF-8 # This file is part of Addison Arches. # # Addison Arches is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option)...
tundish/blue_monday_78
bluemonday78/test/test_presenter.py
Python
agpl-3.0
5,224
#from django.conf import settings #from django.conf.urls.static import static from django.conf.urls.defaults import patterns, include, url from django.views.generic import TemplateView from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Admin url(r'^admin/doc/', include('django...
mysociety/polipop
polipop/urls.py
Python
agpl-3.0
794
from odoo import api, fields, models class SlideChannelPartner(models.Model): _inherit = 'slide.channel.partner' @api.model def create(self, vals): res = super(SlideChannelPartner, self).create(vals) res._create_slide_channel_survey() return res def _create_slide_channel_sur...
avanzosc/odoo-addons
slide_channel_survey/models/slide_channel_partner.py
Python
agpl-3.0
1,378
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from openerp import models, fields, api, _ _logger = logging.getLogger('credit.control.agree') class CreditControlAgree(models.TransientModel): _name = 'credit.control.agree' _description = 'Add...
rosenvladimirov/addons
partner_credit_control/wizard/credit_control_agree.py
Python
agpl-3.0
9,204
# -*- coding: utf-8 -*- {'active': False, 'author': 'ADHOC SA', 'website': 'www.adhoc.com.ar', 'category': 'Accounting & Finance', 'data': [ 'account_voucher_view.xml', ], 'demo': [], 'depends': ['report_extended_voucher'], 'description': ''' Account Voucher Pop Up Print =======...
dvitme/odoo-addons
account_voucher_popup_print/__openerp__.py
Python
agpl-3.0
460
# -*- coding: utf-8 -*- """ PL Acc Lib Used by AccountLine Created: 12 April 2019 Last up: 12 April 2019 """ # ----------------------------------------------------------- Get Cuentab --------------------- def get_cuentab(self, product_type): """ Get Cuentab Used by Accounting """ print() print(...
gibil5/openhealth
models/electronic_new/lib/pl_acc_lib.py
Python
agpl-3.0
1,099
# !/usr/bin/env python3 # Copyright (C) 2017 Qrama # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This pr...
tengu-team/layer-sojobo
files/sojobo_api/scripts/remove_machine.py
Python
agpl-3.0
3,080
# -*- coding: utf-8 -*- """ This is the default template for our main set of AWS servers. Common traits: * Use memcached, and cache-backed sessions * Use a MySQL 5.1 database """ # We intentionally define lots of variables that aren't used, and # want to import all variables from base settings files # pylint: disabl...
ahmedaljazzar/edx-platform
lms/envs/aws.py
Python
agpl-3.0
50,591
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html import mock from odoo.tests import SavepointCase class TestSaleExceptionMultiRecord(SavepointCase): @classmethod def setUpClass(cls): super().setUpClass() cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) ...
OCA/sale-workflow
sale_exception/tests/test_multi_records.py
Python
agpl-3.0
4,701
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # Copyright (c) 2013 Noviat nv/sa (www.noviat.com). All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under...
rschnapka/account-financial-reporting
account_financial_report_webkit_xls/report/partners_balance_xls.py
Python
agpl-3.0
20,868
# MySQL-specific implementations for south # Original author: Andrew Godwin # Patches by: F. Gabriel Gosselin <gabrielNOSPAM@evidens.ca> from django.db import connection from django.conf import settings from south.db import generic from south.db.generic import DryRunError, INVALID from south.logger import get_logger ...
MechanisM/musicdb
contrib/south/db/mysql.py
Python
agpl-3.0
11,404
# See LICENSE file for full copyright and licensing details. from odoo import fields, models class HotelServices(models.Model): _name = "hotel.services" _description = "Hotel Services and its charges" product_id = fields.Many2one( "product.product", "Service_id", required=True, ...
OCA/vertical-hotel
hotel/models/hotel_services.py
Python
agpl-3.0
562
from collections import OrderedDict from django.contrib.auth.models import User, Group from django.apps import apps from django.contrib.admin import AdminSite from django.http import HttpResponseRedirect from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from tk.chunks import admi...
GISAElkartea/tresna-kutxa
tk/admin.py
Python
agpl-3.0
3,075
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2017 Didotech Inc. (<http://www.didotech.com>) # All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Genera...
iw3hxn/LibrERP
garazd_product_label/report/product_label_parser.py
Python
agpl-3.0
1,674
import os from django.core import management from django.test import TestCase class CreateDevDataSmokeTest(TestCase): def test_createdevdata_works(self): """The createdevdata management command should run successfully, without raising any exceptions.""" # Write stdout to /dev/null so as ...
freedomofpress/securethenews
home/management/commands/tests/test_createdevdata.py
Python
agpl-3.0
488
from .RegularVerb import RegularVerb from .ToBe import ToBe __all__ = [ "RegularVerb", "ToBe" ]
etkirsch/legends-of-erukar
erukar/ext/nlg/verbs/__init__.py
Python
agpl-3.0
106
import re from django.utils.translation import ugettext_lazy as _ from django.forms import ModelForm from django import forms from django.forms.widgets import ClearableFileInput from etruekko.truekko.models import UserProfile from etruekko.truekko.models import Group from etruekko.truekko.models import User from etru...
wadobo/etruekko
etruekko/truekko/forms.py
Python
agpl-3.0
7,037
# -*- coding:utf-8 -*- # # # Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, eit...
iDTLabssl/hr
hr_unported/hr_infraction/hr_infraction.py
Python
agpl-3.0
7,920
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import _ from frappe.utils import cstr, flt, getdate, comma_and, nowdat...
rohitwaghchaure/New_Theme_Erp
erpnext/manufacturing/doctype/process_allotment/process_allotment.py
Python
agpl-3.0
37,413
# -*- coding: utf8 -*- # This file is part of PyBossa. # # Copyright (C) 2013 SF Isle of Man Limited # # PyBossa is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
stefanhahmann/pybossa
test/test_activity_update.py
Python
agpl-3.0
5,209
# coding=utf-8 """ DCRM - Darwin Cydia Repository Manager Copyright (C) 2017 WU Zheng <i.82@me.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at yo...
82Flex/DCRM
WEIPDCRM/styles/DefaultStyle/views/package.py
Python
agpl-3.0
2,971
import sys from juju.lib.upstart import UpstartService from juju.providers.common.cloudinit import get_default_origin, BRANCH class ManagedMachineAgent(object): agent_module = "juju.agents.machine" def __init__( self, juju_unit_namespace, zookeeper_hosts=None, machine_id="0", log_fi...
anbangr/trusted-juju
juju/providers/local/agent.py
Python
agpl-3.0
2,786
############################################################################### # Copyright 2011,2012 GISA Elkartea. # # # # This file is part of django-ws. # ...
unaizalakain/django-ws
ws/tasks/dummy.py
Python
agpl-3.0
2,723
# -*- coding: utf-8 -*- # # OpenCraft -- tools to aid developing and hosting free software projects # Copyright (C) 2015-2019 OpenCraft <contact@opencraft.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Fre...
open-craft/opencraft
instance/tests/models/test_utils.py
Python
agpl-3.0
33,828
import datetime import re import sys from contextlib import contextmanager from unittest import SkipTest, skipIf from xml.dom.minidom import parseString import pytz from django.contrib.auth.models import User from django.core import serializers from django.core.exceptions import ImproperlyConfigured from django.db im...
nesdis/djongo
tests/django_tests/tests/v21/tests/timezones/tests.py
Python
agpl-3.0
54,334
# This file is part of rinohtype, the Python document preparation system. # # Copyright (c) Brecht Machiels. # # Use of this source code is subject to the terms of the GNU Affero General # Public License v3. See the LICENSE file or http://www.gnu.org/licenses/. from ..attribute import Attribute, Bool, OverrideDefault...
brechtm/rinohtype
src/rinoh/templates/article.py
Python
agpl-3.0
2,023
import re from unittest import skipIf from unittest.mock import patch import django from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.views import INTERNAL_RESET_SESSION_TOKEN from django.contrib.sessions.backends.cache import SessionStore from django.core import ...
tejoesperanto/pasportaservo
tests/forms/test_auth_forms.py
Python
agpl-3.0
67,559
#!/usr/bin/env python # Copyright (C) 2006-2021 Music Technology Group - Universitat Pompeu Fabra # # This file is part of Essentia # # Essentia is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation (FSF), e...
MTG/essentia
src/python/essentia/extractor/segmentation_max_energy.py
Python
agpl-3.0
1,852
############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # @author: Quentin Gigon <gigon.quentin@gmail.com> # # The licence is in the file __manifest__.py # ####################################################################...
CompassionCH/compassion-modules
sms_sponsorship/forms/__init__.py
Python
agpl-3.0
379
from hitchtest import HitchPackage, utils from hitchtest.environment import checks from subprocess import check_output, call, check_call from os.path import join, exists from os import makedirs, chdir, environ import hitchnode import struct import sys ISSUES_URL = "http://github.com/hitchtest/hitchnode/issues" class...
hitchtest/hitchnode
hitchnode/node_package.py
Python
agpl-3.0
5,790
# pylint: disable=missing-docstring """ This must be run only after seed_permissions_roles.py! Creates default roles for all users in the provided course. Just runs through Enrollments. """ from django.core.management.base import BaseCommand from openedx.core.djangoapps.django_comment_common.models import assign_de...
cpennington/edx-platform
lms/djangoapps/discussion/management/commands/assign_roles_for_course.py
Python
agpl-3.0
1,007