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
# # This class is a wrapper around subprocess.Popen # # It behaves like a the stdout pipe generated by Popen. # However it makes a serious efford to do this: # 1) Forward STDERR of generated process to our STDERR # 2) Don't get stuck - no matter how much output we get # on STDOUT or STDERR # 3) Raise an Exception if...
TNG/svnfiltereddump
src/svnfiltereddump/CheckedCommandFileHandle.py
Python
gpl-3.0
3,044
#!/snacks/bin/python """ Ebml.py Use this package to decode and encode EBML data. Multimedia containers WebM and Matroska are supported. Extend support for EBML-based formats by modifying the Tags dictionary (see bottom of file). All native EBML Elements are defined with their own decoder/encoder class in this packag...
paoletto/mediastreamer
ebml.py
Python
gpl-3.0
14,181
# Copyright (C) 2003-2007 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ...
ostinelli/pyopenspime
lib/dns/rdtypes/ANY/MX.py
Python
gpl-3.0
869
import model import tensorflow as tf tf.VERSION class Config: def __init__(self): self.valid_step = 2000 self.valid_num_steps = 765 self.valid_data_list = './dataset/valid.txt' self.data_dir = './data_preprocessed' self.batch_size = 2 self.input_height = 512 ...
mstritt/orbit-image-analysis
src/main/python/deeplearn/export_pb_file.py
Python
gpl-3.0
1,973
# coding=utf-8 # This file is part of SickRage. # # URL: https://sick-rage.github.io # Git: https://github.com/Sick-Rage/Sick-Rage.git # # SickRage 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 versio...
Arcanemagus/SickRage
sickrage/media/ShowFanArt.py
Python
gpl-3.0
1,183
import os import hashlib FILES = [ 'extractor.tmp', 'tagger.tmp', 'alerts.tmp', ] def clean_files(): for file in FILES: os.remove(file) def generateId(*args): try: return hashlib.sha1( u''.join(args).encode('utf-8') ).hexdigest() except: ...
CIECODE-Madrid/tipi-engine
utils.py
Python
gpl-3.0
344
""" """ __author__ = "Xun Li <xunli@asu.edu> " __all__ = ['HeatMatrix'] import math import wx import numpy as np from stars.visualization.utils import GradientColor from stars.visualization.PlotWidget import PlottingCanvas class HeatMatrix(PlottingCanvas): def __init__(self,parent, layer, data,**kwargs): ...
GeoDaCenter/CAST
stars/visualization/plots/HeatMatrix.py
Python
gpl-3.0
3,750
"""Base class of calibration. @author : Liangjun Zhu @changelog: - 18-01-22 - lj - design and implement. - 18-01-25 - lj - redesign the individual class, add 95PPU, etc. - 18-02-09 - lj - compatible with Python3. - 20-07-22 - lj - update to use global MongoClient object. """ from __futur...
lreis2415/SEIMS
seims/calibration/calibrate.py
Python
gpl-3.0
9,807
from __future__ import print_function from ctypes import * from distutils.sysconfig import get_python_lib from os import path try: d = path.dirname(__file__) lib = cdll.LoadLibrary("%s/libpyZipHMM.so" % (d)) library_location = "%s/libpyZipHMM.so" % (d) except OSError: python_lib = get_python_lib() ...
mailund/ziphmm
web/files/OSX/pyZipHMM_1.0.2/pyZipHMM/pyZipHMM.py
Python
gpl-3.0
13,080
# coding=utf-8 """ InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - **Impact function Test Cases.** Contact : kolesov.dm@gmail.com .. note:: 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...
wonder-sk/inasafe
safe/impact_functions/inundation/flood_polygon_roads/test/test_flood_polygon_roads.py
Python
gpl-3.0
3,890
# -*- coding: utf-8 -*- ## Copyright 2015-2017 Frankfurt Institute for Advanced Studies ## 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 optio...
FRESNA/vresutils
vresutils/load.py
Python
gpl-3.0
10,161
import sys if __name__=="__main__": freq=float(sys.argv[1])*1E6 m_refclk=14.4E6 m_prescale_divide=40 m_r=14.4E6/12.5E3 #m_r=14.4E6/10.0E3 if len(sys.argv)>2: freq=freq+21.4E6 x = (freq * m_r)/m_refclk n = int(x/m_prescale_divide) a = int(round(x-n*m_prescale_divide)) ...
johngumb/danphone
junkbox/freq.py
Python
gpl-3.0
440
#!/usr/bin/env python try: import gi gi.require_version('NumCosmo', '1.0') gi.require_version('NumCosmoMath', '1.0') except: pass import scipy.stats as ss import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation from tqdm import tqdm import time import math import sys ...
NumCosmo/NumCosmo
examples/twofluids_wkb_mode.py
Python
gpl-3.0
7,072
# vim: set ts=8 sw=4 sts=4 et: #======================================================================= # Copyright (C) 2008, OSSO B.V. # This file is part of LightCount. # # LightCount is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
ossobv/lightcount
interface/lightcount/bits.py
Python
gpl-3.0
1,599
""" Copyright (C) 2008 Leonard Norrgard <leonard.norrgard@refactor.fi> This file is part of Geohash. Geohash 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 op...
sibsibsib/pressureNET-server
utils/geohash.py
Python
gpl-3.0
4,955
# -*- coding: utf-8 -*- """Threading module, used to launch games while monitoring them""" import os import sys import threading import subprocess from gi.repository import GLib from textwrap import dedent from lutris import settings from lutris.util.log import logger from lutris.util.process import Process from lut...
GoeGaming/lutris
lutris/thread.py
Python
gpl-3.0
6,218
""" This file is part of the geometry module. This module contains functions to create vertex lists of basic geometrical shapes. """ __author__ = 'Florian Krause <florian@expyriment.org>, \ Oliver Lindemann <oliver@expyriment.org>' __version__ = '' __revision__ = '' __date__ = '' import math as _math from ._geometr...
expyriment/expyriment
expyriment/misc/geometry/_basic_shapes.py
Python
gpl-3.0
6,280
import pkgutil from importlib import import_module TYPE_AMOUNT = 0 # This is used pretty much only in tests __path__ = pkgutil.extend_path(__path__, __name__) for _,modname,_ in pkgutil.walk_packages(path=__path__, prefix=__name__+"."): import_module(modname) TYPE_AMOUNT = TYPE_AMOUNT + 1
nyxxxie/spade
spade/typesystem/types/__init__.py
Python
gpl-3.0
299
from tkinter import * from PlotTemp import * from PlotLight import * import time class View(): def __init__(self, canvas, unit): self.canvas = canvas self.unit = unit ###--- drawGraph ---### self.canvas.create_line(450,300,930,300, width=2) # x-axis self.canvas.create_line(450,300,450,50, width=2) # y-a...
femkeh/project2-1
python/View.py
Python
gpl-3.0
1,974
#!/usr/bin/python # -*- coding: utf-8 -*- # kate: space-indent on; indent-width 4; mixedindent off; indent-mode python; from ..plugin import * from arsoft.filelist import * from arsoft.utils import which from arsoft.sshutils import SudoSessionException import hashlib import sys class SlapdBackupPluginConfig(BackupPlu...
aroth-arsoft/arsoft-python
python3/arsoft/backup/plugins/slapd.py
Python
gpl-3.0
6,014
#!/usr/bin/python # # Copyright 2016 Red Hat | Ansible # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any la...
Inspq/ansible
lib/ansible/modules/cloud/docker/docker_image.py
Python
gpl-3.0
21,821
# UrbanFootprint v1.5 # Copyright (C) 2017 Calthorpe Analytics # # This file is part of UrbanFootprint version 1.5 # # UrbanFootprint is distributed under the terms of the GNU General # Public License version 3, as published by the Free Software Foundation. This # code is distributed WITHOUT ANY WARRANTY, without impl...
CalthorpeAnalytics/urbanfootprint
footprint/client/configuration/sacog/built_form/sacog_land_use_definition.py
Python
gpl-3.0
2,408
''' Author: Caleb Moses Date: 04-06-2017 This file trains a character-level multi-layer RNN on text data. Code is based on Andrej Karpathy's implementation in Torch at: https://github.com/karpathy/char-rnn/blob/master/train.lua I modified the model to run using TensorFlow and Keras. Supports GPUs, as well as many o...
mathematiguy/welcome-to-night-vale
scripts/test/model.py
Python
gpl-3.0
8,363
from aiohttp import web from prometheus_client import ( REGISTRY, Counter, Gauge, Histogram, generate_latest, ) from prometheus_client.core import GaugeMetricFamily CLIENT_CONNECTIONS = Gauge( 'hpfeeds_broker_client_connections', 'Number of clients connected to broker', ) CONNECTION_MADE =...
rep/hpfeeds
hpfeeds/broker/prometheus.py
Python
gpl-3.0
5,199
import modelx as mx import pytest @pytest.fixture def param_formula_sample(): """ m---SpaceA[a]---SpaceB---x +-bar """ def param(a): refs = {"y": SpaceB.x, "z": SpaceB.bar()} return {"refs": refs} m = mx.new_model() A = m.new_...
fumitoh/modelx
modelx/tests/core/space/dynamic_spaces/test_param_formula.py
Python
gpl-3.0
1,105
import socket, threading DEFAULT_ROBOT_IP = "172.16.0.2" ROBOT_TCP_PORT = 80 CONNEXION_TIMEOUT = 2 # seconds class LowLevelCom: def __init__(self): self.tcp_ip_interface = None self.messageBuffer = [] self.rBuffer = bytearray() self.readingMsg = False self.currentMsgId = N...
INTechSenpai/eurobotruck
debug_tools/wiimote_controller/low_level_com.py
Python
gpl-3.0
5,895
#!/usr/bin/env python # -*- coding: utf-8 -*- # # scikit-tensor documentation build configuration file, created by # sphinx-quickstart on Sun Apr 20 14:28:17 2014. # # 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...
mnick/scikit-tensor
docs/conf.py
Python
gpl-3.0
8,802
""" WSGI config for gamesDB 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
pbalaguer19/GamesDB-SistemesWeb2016
gamesDB/wsgi.py
Python
gpl-3.0
391
# uses scipy's sparse linear algebra module to do LU factorization import sys import time import numpy as np import numpy.linalg as nla import scipy.io as scio import scipy.sparse.linalg as sla def LUsparse(matfile): # start timing computations start_time = time.time() # import A and b from file give...
OliverEvans96/rte_matrix
factorizations/LUsparse.py
Python
gpl-3.0
886
__author__ = "Horea Christian" import argh from pyvote.utils.votes import one def main(): argh.dispatch_commands([one]) if __name__ == '__main__': main()
TheChymera/PyVote
pyvote/cli.py
Python
gpl-3.0
159
import os, datetime, urlparse, string, urllib, re import time, functools, cgi import json from netlib import http def timestamp(): """ Returns a serializable UTC timestamp. """ return time.time() def format_timestamp(s): s = time.localtime(s) d = datetime.datetime.fromtimestamp(time.mktim...
win0x86/Lab
mitm/libmproxy/utils.py
Python
gpl-3.0
6,325
from gpiozero import LEDBoard from gpiozero.tools import random_values from signal import pause tree = LEDBoard(*range(2,28),pwm=True) for led in tree: led.source_delay = 0.1 led.source = random_values() pause()
markcarline/CoderDojo
project04/xmas-tree-random.py
Python
gpl-3.0
214
from pupa.scrape import Scraper, Person from .utils import MDBMixin class NJPersonScraper(Scraper, MDBMixin): def scrape(self, session=None): if not session: session = self.jurisdiction.legislative_sessions[-1]['name'] self.info('no session specified, using %s', session) ...
cliftonmcintosh/openstates
openstates/nj/people.py
Python
gpl-3.0
2,988
#!/usr/bin/env python # -*-coding: utf-8 -*- import wx import os from ll_global import * import ll_menubar import ll_textwin import ll_filterwin class LovelyLogUI(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, 'lovely log', style=wx.MAXIMIZE |wx.DEFAULT_FRAME_STYLE) ...
sdphome/LovelyLog
src/lovely_log.py
Python
gpl-3.0
3,182
import struct from socket import error from .exceptions import ProtocolError from .exceptions import WebSocketError from .exceptions import FrameTooLargeException from .utf8validator import Utf8Validator MSG_SOCKET_DEAD = "Socket is dead" MSG_ALREADY_CLOSED = "Connection is already closed" class WebSocket(object...
hatnote/barnsworth
barnsworth/geventwebsocket/websocket.py
Python
gpl-3.0
15,384
#!/usr/bin/env python # -*- coding: utf-8 -*- """" /*************************************************************************** least_cost.py Perform a least cost path with a raster conversion in graph Need : OsGeo library ------------------- begin : 2017-07-07...
SebastienPeillet/rast_to_graph
least_terr_cost.py
Python
gpl-3.0
30,577
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2014 Vincent Jacques <vincent@vincent-ja...
fernandog/Medusa
ext/github/tests/ExposeAllAttributes.py
Python
gpl-3.0
7,340
from django.contrib.sitemaps import Sitemap from .models import Graffiti class GraffitiSitemap(Sitemap): changefreq = "daily" def items(self): return Graffiti.objects.filter(active=True, checked=True) def lastmod(self, obj): return obj.date_updated
stleon/graffiti_map
graffities/sitemaps.py
Python
gpl-3.0
281
from ambition_validators import AmphotericinMissedDosesFormValidator from ..models import AmphotericinMissedDoses from .form_mixins import InlineSubjectModelFormMixin class AmphotericinMissedDosesForm(InlineSubjectModelFormMixin): form_validator_cls = AmphotericinMissedDosesFormValidator class Meta: ...
botswana-harvard/ambition-subject
ambition_subject/forms/amphotericin_missed_doses_form.py
Python
gpl-3.0
381
''' Created on Aug 3, 2013 Peer manager handles information of peers who have joined/left the swarm. This file is part of CryptikChaos. CryptikChaos 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 versio...
vaizguy/cryptikchaos
src/cryptikchaos/core/comm/swarm/manager.py
Python
gpl-3.0
8,638
# coding=utf-8 """Tests for medusa/search/core.py.""" from __future__ import unicode_literals import functools import logging from medusa.common import HD1080p, Quality from medusa.search.core import filter_results, pick_result from mock.mock import Mock import pytest from six import iteritems @pytest.mark.param...
pymedusa/SickRage
tests/test_search_core.py
Python
gpl-3.0
14,970
# # Honeybee: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari # # This file is part of Honeybee. # # Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com> # Honeybee is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
samuto/Honeybee
src/Honeybee_createHBZones.py
Python
gpl-3.0
4,480
# -*- coding: UTF-8 -*- # Copyright (C) 2008 Gautier Hayoun <gautier.hayoun@itaapy.com> # Copyright (C) 2008 Juan David Ibáñez Palomar <jdavid@itaapy.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 F...
kennym/itools
pkg/metadata.py
Python
gpl-3.0
5,870
#!/usr/bin/python3 import argparse import glob import os import re import string import sys import unicodedata from collections import defaultdict from ucca import layer0 from ucca.ioutil import file2passage desc = """Prints the unicode general categories of characters in words/punctuation in UCCA passages """ UNI...
borgr/ucca
scenes/punctuation_unicode_categories.py
Python
gpl-3.0
3,547
# -*- coding: utf-8 -*- from openerp import models, fields, api, tools, exceptions as ex class HrEmployeeLicence(models.Model): _name = 'hr.employee.licence' employee_id = fields.Many2one('hr.employee', 'Employee', required=True) licence_type_id = fields.Many2one('hr.licence.type', 'Licence type', requi...
nemanja-d/odoo_project_extensions
hr_employee_licences/models/hr_employee_licence.py
Python
gpl-3.0
459
import lxml.html def get_machines(): lvs = lxml.html.parse('http://laundryview.com/lvs.php') div = lvs.find(".//div[@id='campus1']") rooms = [] status = [] for a in div.findall('.//a'): rooms.append(str(a.text).strip().title()) for span in div.findall('.//span'): status.append(s...
dormbase/dormbase
dormbase/data/laundry.py
Python
gpl-3.0
402
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # 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', ...
DazWorrall/ansible
lib/ansible/modules/network/junos/junos_l3_interface.py
Python
gpl-3.0
5,778
# -*- coding: utf-8 -*- import re from module.utils import html_unescape, parseFileSize from module.plugins.Hoster import Hoster from module.network.RequestFactory import getURL from module.plugins.Plugin import chunks from module.plugins.ReCaptcha import ReCaptcha key = "bGhGMkllZXByd2VEZnU5Y2NXbHhYVlZ5cEE1bkEzRUw...
fener06/pyload
module/plugins/hoster/UploadedTo.py
Python
gpl-3.0
8,019
""" This test only need the JobLoggingDB to be present """ # pylint: disable=invalid-name,wrong-import-position import unittest import datetime import sys from DIRAC.Core.Base.Script import parseCommandLine parseCommandLine() from DIRAC.WorkloadManagementSystem.DB.JobLoggingDB import JobLoggingDB class JobLogging...
fstagni/DIRAC
tests/Integration/WorkloadManagementSystem/Test_JobLoggingDB.py
Python
gpl-3.0
2,254
"""*************************************************** --- FRANCISCO JESÚS JIMÉNEZ HIDALGO --- --- FUNDAMENTOS DE PROGRAMACIÓN --- --- Sopa de letras --- ---************************************************""" vectorDirecciones = [['E', 0, 1], ['O'], ['S...
MrXuso/Fundamentos-de-Computacion
SopaDeLetras.py
Python
gpl-3.0
4,245
QuestionCategory.objects.all().delete() Topic.objects.all().delete() Position.objects.all().delete() cat = QuestionCategory.objects.create(name=u"#Gênero") Topic.objects.create(category=cat, description="A prática de aborto é crime no Brasil: mulheres e médicos que praticam aborto ilegal podem ser presos. Uma em cada c...
ciudadanointeligente/votainteligente-portal-electoral
merepresenta/datos_iniciales.py
Python
gpl-3.0
13,550
# # Copyright (C) 2015 FreeIPA Contributors see COPYING for license # from __future__ import print_function, absolute_import import contextlib import logging import dns.exception as dnsexception import dns.name as dnsname import os import shutil import socket import sys import tempfile import textwrap import traceb...
encukou/freeipa
ipaserver/install/server/replicainstall.py
Python
gpl-3.0
51,681
from PyQt5.QtWidgets import QLabel, QLineEdit, QFormLayout from .abstract_settings_widget import AbstractSettingsWidget class ImgurSettingsWidget(AbstractSettingsWidget): def __init__(self): super().__init__(init_ui=False) self.setWindowTitle('Imgur Settings') self.client_id_line_edit =...
MalloyDelacroix/DownloaderForReddit
DownloaderForReddit/gui/settings/imgur_settings_widget.py
Python
gpl-3.0
1,934
from functools import partial from os import path import sys from collections import OrderedDict import numpy as np import yaml from .array import format_vector from .lp import Problem from .util import VectorMemory, _name from .symmetry import parse_symmetries, SymmetryGroup, group_by_symmetry def detect_prefix(s,...
coldfix/pystif
pystif/core/io.py
Python
gpl-3.0
13,580
""" Implementation of the IEAgent interface for the mechanical engineering and mechanics website, located here: http://drexel.edu/mem/contact/faculty-directory/ """ __all__ = ['MemIEAgent'] __version__ = '0.1' __author__ = 'Tom Amon' import requests from bs4 import BeautifulSoup import abc from .ieagent import IEAgen...
DrexelChatbotGroup/DrexelChatbot
ie/ieagents/mem_ieagent.py
Python
gpl-3.0
1,588
# coding=utf-8 from autosubliminal.server.api.items import ItemsApi from autosubliminal.server.api.logs import LogsApi from autosubliminal.server.api.movies import MoviesApi from autosubliminal.server.api.settings import SettingsApi from autosubliminal.server.api.shows import ShowsApi from autosubliminal.server.api.su...
h3llrais3r/Auto-Subliminal
autosubliminal/server/api/__init__.py
Python
gpl-3.0
1,092
# 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/. from collections import Iterable import contextlib import json from unittest import mock from django.core.cache import ...
lonnen/socorro
webapp-django/crashstats/api/tests/test_views.py
Python
mpl-2.0
34,754
import os import pytest import requests import time from pages.list_verification import ListVerificationPage CLIENT_CHECK_DELAY = 3600 TEST_ENV = os.environ['TEST_ENV'] @pytest.mark.nondestructive def test_list_verification(base_url, selenium, channel, conf): """Test that Firefox Tracking Protection serves corr...
rbillings/shavar-e2e-tests
tests/test_list_verification.py
Python
mpl-2.0
1,363
from tests.support.asserts import assert_success from tests.support.inline import inline from . import opener, window_name def new_window(session, type_hint=None): return session.transport.send( "POST", "session/{session_id}/window/new".format(**vars(session)), {"type": type_hint}) def test_pay...
asajeffrey/servo
tests/wpt/web-platform-tests/webdriver/tests/new_window/new_window.py
Python
mpl-2.0
1,798
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tuple functions""" import data DIRECTIONS = data.DIRECTIONS DIRECTIONS = (DIRECTIONS[:-1]) + ('West',)
ct3080a/is210-week-06-warmup
task_03.py
Python
mpl-2.0
155
from django.contrib.auth.models import User from django.template.loader import render_to_string from django.core.mail import send_mail from django.conf import settings from xbrowse_server.base.models import Project def add_new_collaborator(email, referrer): """ Someone has added a new user to the system - cre...
macarthur-lab/xbrowse
xbrowse_server/user_controls.py
Python
agpl-3.0
1,555
# Copyright 2014, Oliver Nagy <olitheolix@gmail.com> # # This file is part of Azrael (https://github.com/olitheolix/azrael) # # Azrael 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...
daviddeng/azrael
azrael/vectorgrid.py
Python
agpl-3.0
14,099
# -*- coding: utf-8 -*- """ *** RES PARTNER Created: 26 Aug 2016 Last updated: 20 Sep 2019 """ from openerp import models, fields, api from . import partner_vars class Partner(models.Model): """ """ _inherit = 'res.partner' _order = 'write_date desc' # ------------------------------------------...
gibil5/openhealth
models/patient/partner.py
Python
agpl-3.0
6,152
from comics.aggregator.crawler import CrawlerBase from comics.core.comic_data import ComicDataBase class ComicData(ComicDataBase): name = "Something of that Ilk" language = "en" url = "http://www.somethingofthatilk.com/" start_date = "2011-02-19" end_date = "2013-11-06" active = False righ...
jodal/comics
comics/comics/somethingofthatilk.py
Python
agpl-3.0
441
# # Copyright (C) 2019 pengjian.uestc @ gmail.com # # # SPDX-License-Identifier: AGPL-3.0-or-later # import pytest import redis import logging import re import time from util import random_string, connect logger = logging.getLogger('redis-test') def test_set_get_delete(redis_host, redis_port): r = connect(redis_...
scylladb/scylla
test/redis/test_strings.py
Python
agpl-3.0
6,704
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('account', '0002_email_max_length'), ('badgeuser', '0001_initial'), ] operations = [ migrations.CreateModel( name='CachedEmailAddress', ...
concentricsky/badgr-server
apps/badgeuser/migrations/0002_cachedemailaddress.py
Python
agpl-3.0
491
""" Django settings for tumuli project on Heroku. For more info, see: https://github.com/heroku/heroku-django-template For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ "...
daonb/tumulus
tumuli/settings.py
Python
agpl-3.0
4,745
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. # License: GNU General Public License v3. See license.txt def execute(): import webnotes entries = webnotes.conn.sql("""select voucher_type, voucher_no from `tabGL Entry` group by voucher_type, voucher_no""", as_dict=1) for entry in entries: try: docsta...
gangadhar-kadam/sapphire_app
patches/october_2012/fix_cancelled_gl_entries.py
Python
agpl-3.0
795
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2016 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py...
maxime-beck/compassion-modules
child_compassion/models/icp_property.py
Python
agpl-3.0
4,638
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." # Note: Remember to use orm['appname.ModelName'] rather than "from appname.mo...
IMIO/django-fixmystreet
django_fixmystreet/fixmystreet/migrations/0058_restore_fixed_at.py
Python
agpl-3.0
43,915
# Opus/UrbanSim urban simulation software. # Copyright (C) 2010-2011 University of California, Berkeley, 2005-2009 University of Washington # See opus_core/LICENSE #update SqlAlchemy to work with elixir import sqlalchemy.orm sqlalchemy.orm.ScopedSession = sqlalchemy.orm.scoped_session from elixir import Entity, Fiel...
apdjustino/DRCOG_Urbansim
src/opus_core/services/services_tables.py
Python
agpl-3.0
1,396
""" Instructor Dashboard API views JSON views which the instructor dashboard requests. Many of these GETs may become PUTs in the future. """ import csv import json import logging import random import re import string import six import unicodecsv from django.conf import settings from django.contrib.auth.models impo...
msegado/edx-platform
lms/djangoapps/instructor/views/api.py
Python
agpl-3.0
115,590
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # GNU General Public Licence (GPL) # # 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 lat...
mcolom/ipolDevel
ipol_demo/modules/demorunner/Tools/PythonTools/draw2Dcurve.py
Python
agpl-3.0
6,072
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 OpenERP S.A. http://www.openerp.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GN...
ovnicraft/openerp-server
openerp/osv/query.py
Python
agpl-3.0
7,544
from patients.forms import * from patients.models import * from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse import json from django.contrib.auth.decorators import login_required @login_required def registerPatient(request): if request.method == 'POST': ...
martinspeleo/graphgrid
patients/views.py
Python
agpl-3.0
4,224
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Comunitea All Rights Reserved # $Omar Castiñeira Saavedra <omar@comunitea.com>$ # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
jgmanzanas/CMNT_004_15
project-addons/picking_invoice_pending/stock_picking.py
Python
agpl-3.0
14,897
# -*- coding: utf-8 -*- # Copyright 2017 OpenSynergy Indonesia # Copyright 2022 PT. Simetri Sinergi Indonesia # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Scrap Operation", "version": "8.0.1.0.4", "website": "https://simetri-sinergi.id", "author": "PT. Simetri Sinergi ...
open-synergy/opnsynid-stock-logistics-warehouse
stock_scrap_operation/__openerp__.py
Python
agpl-3.0
669
#! /usr/bin/env python from __future__ import division from timeside.plugins.decoder.file import FileDecoder from timeside.plugins.analyzer.level import Level from timeside.core.processor import ProcessPipe import unittest from unit_timeside import TestRunner from timeside.core.tools.test_samples import samples #fro...
Parisson/TimeSide
tests/test_decoding_stack.py
Python
agpl-3.0
2,580
class Colour: """ Courtesy of: http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python """ HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\03...
danielquinn/isaac
isaac/colours.py
Python
agpl-3.0
790
from django import forms from django.utils.translation import ugettext_lazy as _ from apps.grid.fields import MultiCharField, TitleField from apps.grid.forms.base_form import BaseForm from apps.grid.widgets import CommentInput, NumberInput class DealLocalCommunitiesForm(BaseForm): RECOGNITION_STATUS_CHOICES = ( ...
sinnwerkstatt/landmatrix
apps/grid/forms/deal_local_communities_form.py
Python
agpl-3.0
10,279
""" This config file follows the devstack enviroment, but adds the requirement of a celery worker running in the background to process celery tasks. When testing locally, run lms/cms with this settings file as well, to test queueing of tasks onto the appropriate workers. In two separate processes on devstack: pav...
cpennington/edx-platform
cms/envs/devstack_with_worker.py
Python
agpl-3.0
1,077
from django.core.management.base import BaseCommand, CommandError from optparse import make_option from django.contrib.auth.models import User from scraper.spider.spiders import thingiverse class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('-u', '--user', action=...
Rhombik/rhombik-object-repository
scraper/management/commands/thingiverse.py
Python
agpl-3.0
986
""" Helper methods for testing cohorts. """ from factory import post_generation, Sequence from factory.django import DjangoModelFactory import json from opaque_keys.edx.locations import SlashSeparatedCourseKey from xmodule.modulestore.django import modulestore from xmodule.modulestore import ModuleStoreEnum from ..c...
romain-li/edx-platform
openedx/core/djangoapps/course_groups/tests/helpers.py
Python
agpl-3.0
6,163
# -*- coding: utf-8 -*- import controllers from . import models
jmankiewicz/odooAddons
stock_delivery_note/__init__.py
Python
agpl-3.0
64
# op_return_dogecoin.py # # Python script to generate and retrieve OP_RETURN dogecoin transactions # # Based on bitcoin python-OP_RETURN, # Copyright (c) Coin Sciences Ltd # (https://github.com/coinspark/python-OP_RETURN) # Adaptions and changes for Dogecoin by Ingo Keck, see # https://github.com/kubrik-engineering/dog...
kubrik-engineering/opendocumentrepository
op_return_dogecoin.py
Python
agpl-3.0
31,994
from django.conf.urls import patterns, include, url from django.conf.urls.defaults import * from django.contrib.staticfiles.urls import staticfiles_urlpatterns from recruit import views as recruit_views urlpatterns = patterns('', url( r'^$', recruit_views.homeViews, ), url( r'^regi...
EducationAdministrationSystem/EducationSystem
recruit/urls.py
Python
agpl-3.0
666
# -*- coding: utf-8 -*- # Copyright Puzzlebox Productions, LLC (2010-2014) # # This code is released under the GNU Pulic License (GPL) version 2 # For more information please refer to http://www.gnu.org/copyleft/gpl.html __changelog__ = """\ Last Update: 2014.02.23 """ __todo__ = """ """ ### IMPORTS ### import os, ...
PuzzleboxIO/synapse-python
Puzzlebox/Synapse/Session.py
Python
agpl-3.0
22,816
import random from collections import Counter, defaultdict import itertools # starter altid (0,0) -> (0,1) # Sti har formen [2, l, r]*, da man kan forlænge med 2, gå til venstre eller gå til højre. T, L, R = range(3) class Path: def __init__(self, steps): self.steps = steps def xys(self, dx=0, dy=1)...
thomasahle/numberlink
gen/mitm.py
Python
agpl-3.0
6,461
""" Badges related signal handlers. """ from django.dispatch import receiver from lms.djangoapps.badges.events.course_meta import award_enrollment_badge from lms.djangoapps.badges.utils import badges_enabled from common.djangoapps.student.models import EnrollStatusChange from common.djangoapps.student.signals import...
stvstnfrd/edx-platform
lms/djangoapps/badges/handlers.py
Python
agpl-3.0
664
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager 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 ...
rolandgeider/wger
wger/core/urls.py
Python
agpl-3.0
5,940
import requests from datetime import datetime, timedelta from pytz import timezone from django.core.files.base import ContentFile from django.core.management.base import BaseCommand from django.conf import settings from db.base.models import Satellite, Transmitter, DemodData class Command(BaseCommand): help = '...
Roboneet/satnogs-db
db/base/management/commands/fetch_data.py
Python
agpl-3.0
2,165
#------------------------------------------------------------------------------ # Copyright (C) 2009 Richard Lincoln # # 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; version 2 dated June...
rwl/openpowersystem
cdpsm/iec61970/wires/fuse.py
Python
agpl-3.0
1,864
# -*- encoding: utf-8 -*- ############################################################################## # # l10n FR FEC module for Odoo # Copyright (C) 2013-2015 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # # This program is free software: you can redistrib...
noemis-fr/old-custom
l10n_fr_fec/__openerp__.py
Python
agpl-3.0
1,536
from flask import * app = Flask(__name__, static_url_path='') app.config['PROPAGATE_EXCEPTIONS']=True @app.route('/', methods=['GET']) def home(): return app.send_static_file('index.html') @app.route('/whitepaper', methods=['GET']) def whitepper(): return app.send_static_file('blockfate.pdf') if __name__ == '_...
barisser/BlockFate_site
main.py
Python
agpl-3.0
342
# This file is part of OpenHatch. # Copyright (C) 2010 Parker Phinney # Copyright (C) 2009, 2010, 2011 OpenHatch, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 o...
mzdaniel/oh-mainline
mysite/search/views.py
Python
agpl-3.0
13,739
#! /usr/bin/python ################################################################################ # This file is part of python_finite_volume_solver # Copyright (C) 2017 Bert Vandenbroucke (bert.vandenbroucke@gmail.com) # # python_finite_volume_solver is free software: you can redistribute it and/or # modify it unde...
bwvdnbro/python_finite_volume_solver
example_solutions/sodshock_lagrangian.py
Python
agpl-3.0
15,137
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-10-18 07:37 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('base', '0157_entitymanager_entity'), ('attribution'...
uclouvain/osis_louvain
attribution/migrations/0016_auto_20171018_0937.py
Python
agpl-3.0
3,172
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-15 08:03 from __future__ import unicode_literals from decimal import Decimal import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): replaces = [('e...
wadobo/socializa
backend/event/migrations/0001_initial_squashed_0008_auto_20170114_2009.py
Python
agpl-3.0
3,007
"""check builtin data descriptors such as mode and name attributes on a file are correctly handled bug notified by Pierre Rouleau on 2005-04-24 """ __revision__ = None class File(file): # pylint: disable=file-builtin """ Testing new-style class inheritance from file""" # def __init__(self, ...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/pylint/test/input/func_noerror_new_style_class_py_30.py
Python
agpl-3.0
1,255
""" CourseGrade Class """ from abc import abstractmethod from collections import OrderedDict, defaultdict from django.conf import settings from lazy import lazy from ccx_keys.locator import CCXLocator from xmodule import block_metadata_utils from .config import assume_zero_if_absent from .subsection_grade import Zer...
proversity-org/edx-platform
lms/djangoapps/grades/course_grade.py
Python
agpl-3.0
13,201