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
def main(): pass def generateBlock():
willybh11/python
tetris/tetris.py
Python
gpl-3.0
48
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 2 17:52:19 2017 Author: Peiyong Jiang : jiangpeiyong@impcas.ac.cn Function: ______________________________________________________ """ from numpy.random import multivariate_normal as npmvn from numpy import diag def PartGen(emitT,numPart): ...
iABC2XYZ/abc
DM_RFGAP_3/PartGen.py
Python
gpl-3.0
516
# 62. Unique Paths QuestionEditorial Solution # A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). # # The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below...
shawncaojob/LC
QUESTIONS/62_unique_paths.py
Python
gpl-3.0
1,044
import os import time import argparse import atexit import gym import gym_bombermaaan import numpy as np import random import utils from pathlib import Path import pickle from DQAgent import DQAgent from evaluation import evaluate from Logger import Logger import pygame def exit_handler(): global DQA DQA.quit(...
bjaraujo/bombermaaan
openai-gym/gym-bombermaaan/bombermaaan.py
Python
gpl-3.0
12,907
import sys import datetime import pymysql import os import smtplib import subprocess import configparser from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def errorSQL(id, errMessage): config = configparser.RawConfigParser() #instantiate config reader config.read(os.path.join...
gmross/CATS
Software/scan_key/ErrorSQL.py
Python
gpl-3.0
3,416
from .modulation import ModulationTypes class TuningParameterCollection(object): """ Holds multiple tuning parameters at various heights. Each acts as a calibration point. """ tuning_parameters = [] build_x_min = -50.0 build_y_min = -50.0 build_x_max = 50.0 build_y_max = 50.0 dwell_...
PeachyPrinter/peachytoolchain
src/audio/tuning_parameters.py
Python
gpl-3.0
4,182
# -------------------------------------------------------------------------- # BlenderAndMBDyn # Copyright (C) 2015 G. Douglas Baldwin - http://www.baldwintechnology.com # -------------------------------------------------------------------------- # ***** BEGIN GPL LICENSE BLOCK ***** # # This file is part of Blender...
louisgag/BlenderAndMBDyn
user_defined_element.py
Python
gpl-3.0
14,009
""" slackrealtime/event.py - Event handling for Slack RTM. Copyright 2014-2020 Michael Farrell <http://micolous.id.au> This program 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 L...
micolous/python-slackrealtime
src/slackrealtime/event.py
Python
gpl-3.0
5,496
import datetime import qrcode from django import forms from django.conf import settings from apps.complementos.afiliados.models import Plan from lib.forms import EstiloForm from apps.personas.models import Sexo from apps.complementos.personas.models import EstadoCivil from .models import Titular, Adherente, Parentes...
montenegroariel/sigos
apps/afiliados/forms.py
Python
gpl-3.0
5,885
import time import threading import json import cv2 from PyQt5 import QtCore from PyQt5.QtGui import QImage from effects import process class ImageRIT_PyQt(QtCore.QObject): newFrame = QtCore.pyqtSignal(QImage) def __init__(self, cameraId, state_func): super(ImageRIT_PyQt, self).__init__() ...
natedileas/ImageRIT
Server/qt_CameraWidget.py
Python
gpl-3.0
1,349
# Copyright (C) 2013,2017 Ian Harry, Duncan Brown # # 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 version. # # This program is ...
hagabbar/pycbc_copy
pycbc/workflow/configuration.py
Python
gpl-3.0
38,216
import imp import os from DIRAC import gConfig, gLogger from DIRAC.Core.Utilities.CFG import CFG from DIRAC.ConfigurationSystem.Client.Helpers import CSGlobals BASECS = "WebApp" def loadWebAppCFGFiles(): """ Load WebApp/web.cfg definitions """ exts = [] for ext in CSGlobals.getCSExtensions(): if ext ==...
zmathe/WebAppDIRAC
Core/ConfMgr.py
Python
gpl-3.0
2,674
# This file is part of FreePC. # # FreePC 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 version. # # FreePC is distributed in the hope that ...
vonkarmaninstitute/FreePC
server/restriction_system/utils.py
Python
gpl-3.0
5,215
from dopamine.experiments.experiment import Experiment, ExperimentException import numpy as np import types class APIExperiment(Experiment): def runEpisode(self, reset=True): """ resets the environment in a random state, then creates rollouts until the environment and its adapters signals the ...
rueckstiess/dopamine
experiments/api.py
Python
gpl-3.0
5,317
import glob import os import shutil from ua.core.utils.isfirst import IsFirst # Renamed Methods: # # dir_file_names -> read_dir_file_names # dir_file_paths -> read_dir_file_paths # get_dir_file_names -> read_dir_file_names # get_dir_file_paths -> read_dir_file_paths # latest_file -> read_latest_fil...
toconn/Python3-Core
Source/ua/core/utils/fileutils.py
Python
gpl-3.0
4,659
from UI import UI from View import View import Elements import Colors
v4nz666/7drl2017
RoguePy/UI/__init__.py
Python
gpl-3.0
70
"""'d987888a7460' - Tags table.""" import sqlalchemy as sa from alembic import op #from lib.util_datetime import tzware_datetime #from lib.util_sqlalchemy import AwareDateTime """ Tags table Revision ID: d987888a7460 Revises: 216ce379d3f0 Create Date: 2016-11-01 14:13:28.216736 """ # Revision identifiers, used by ...
hoytnix/hoyt.io
flask-server/hoyt/migrations/versions/d987888a7460_tags_table.py
Python
gpl-3.0
1,553
""" WSGI config for yaco project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` set...
wavesoft/yaco
yaco/wsgi.py
Python
gpl-3.0
1,413
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
zozo123/buildbot
master/buildbot/test/unit/test_buildslave_libvirt.py
Python
gpl-3.0
10,089
""" Emonoda -- A set of tools to organize and manage your torrents Copyright (C) 2015 Devaev Maxim <mdevaev@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 vers...
mdevaev/emonoda
emonoda/plugins/trackers/kinozal_tv.py
Python
gpl-3.0
4,716
from rexus.devices import Device class DigitalDevice(Device): def __init__(self, config, interface): super(DigitalDevice, self).__init__(config=config, interface=interface) self.active = None # Return the value that we want to display # Override this in the top level class def get_s...
tkensiski/rexus
Rexus/device_poller/devices/digital_device.py
Python
gpl-3.0
488
#!/usr/bin/python import os import getpass from Shadow import * class Password(): def __init__(self, passwd): self.data = Shadow(passwd) def list(self): info = self.data.getInfo() for row in info: #print row['id'] ,row['name'],row['user'],row['password'] print...
bsurfer/CryptPass
start.py
Python
gpl-3.0
3,177
# -*- coding: utf-8 -*- TRIPLE_DES_KEY = '1234567812345678' LIMIT_TITLE_VIEW_LENGTH = 25 RANK_LIST = 5 BLOCK = 11 LIST = 25 VIEW_SERVER_NOTICE = 2 VIEW_NOTICE = 3 TEXTAREA_ROW = 400 MAX_ROW = 700 REPLY_ROW = 50
codeMarble/codeMarble_Web
codeMarble_Web/resource/otherResource.py
Python
gpl-3.0
214
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------- # Filename: test_input_handler.py # Purpose: testing input_handler # Author: Kasra Hosseini # Email: kasra.hosseinizad@earth.ox.ac.uk # License: GPLv3 # ----------------------------...
kasra-hosseini/obspyDMT
obspyDMT/tests/test_input_handler.py
Python
gpl-3.0
6,739
# coding=utf-8 # # <BestRussianTV plugin for XBMC> # Copyright (C) <2011> <BestRussianTV> # # 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 # ...
tatigo/XBMC-BestRussianTVPlugin
archive.py
Python
gpl-3.0
9,702
"""Commands for making and seeing robotics team associations.""" import collections import discord from discord.ext.commands import BadArgument, guild_only from ._utils import * from ..asyncdb.orm import orm from ..asyncdb import psqlt # alter table team_numbers alter column team_number type text class Teams(Cog): ...
guineawheek/Dozer
dozer/cogs/teams.py
Python
gpl-3.0
6,850
#!/usr/bin/python # -*- coding: utf-8 -*- # # Clean and analyse POS/NER patterns. # # Usage: # # Author: rja # # Changes: # 2017-05-05 (rja) # - initial version from __future__ import print_function import re import fileinput re_clean_ner = re.compile("\(([A-Z]+) .+?\)") re_clean_sla = re.compile("\w+/([A-Z]+)") # ...
weltliteratur/vossanto
first/analyse_patterns.py
Python
gpl-3.0
1,679
import datetime import json class Experience: def __init__(self, date, event): self._date = date self._event = event @classmethod def reconstruct_from_db_data_event(cls, date, event): event = json.loads(event) date = datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S.%f"...
semiirs/ai_project
common/experience.py
Python
gpl-3.0
462
import wx import os from printrun.utils import imagefile def Print_Control(root, parentpanel): if os.name == "nt": root.text_loading_file = wx.StaticText(parentpanel, label=str(root.var_loading_file_name), pos=(75, 33)) else: root.text_loading_file = wx.StaticText(parentpanel, label=str(root....
yoosw/printrun_etri
printrun/gui/control_printing.py
Python
gpl-3.0
6,280
/usr/share/pyshared/gwibber/lib/gtk/widgets.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/pymodules/python2.7/gwibber/lib/gtk/widgets.py
Python
gpl-3.0
46
import warnings from asl_data import SinglesData def recognize(models: dict, test_set: SinglesData): """ Recognize test word sequences from word models set :param models: dict of trained models {'SOMEWORD': GaussianHMM model object, 'SOMEOTHERWORD': GaussianHMM model object, ...} :param test_set: Si...
loredanacirstea/ai-algos
hidden_markov_models/my_recognizer.py
Python
gpl-3.0
1,646
# # Race Capture App # # Copyright (C) 2014-2016 Autosport Labs # # This file is part of the Race Capture App # # This 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 ...
ddimensia/RaceCapture_App
autosportlabs/racecapture/views/configuration/rcp/wirelessconfigview.py
Python
gpl-3.0
3,591
""" ================== Colormap reference ================== Reference for colormaps included with Matplotlib. This reference example shows all colormaps included with Matplotlib. Note that any colormap listed here can be reversed by appending "_r" (e.g., "pink_r"). These colormaps are divided into the following cate...
v00d00dem0n/PyCrashCourse
work/ch15/colormap_example.py
Python
gpl-3.0
3,677
from __future__ import absolute_import # Start a Celery worker by executing: # celery -A proj worker -l info # Import available tasks from proj.tasks import add, mul, xsum, fib # Test short-running tasks add.delay(2, 2) mul.delay(10, 12) xsum.delay(range(100)) fib.delay(10) # Test medium-running tasks fib.delay(35)...
tjanez/celery-demo-app
test/test.py
Python
gpl-3.0
350
# =============================================================================== # Copyright (C) 2010 Diego Duclos # # This file is part of eos. # # eos 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, ...
pyfa-org/Pyfa
eos/db/saveddata/queries.py
Python
gpl-3.0
18,335
#!/usr/bin/env python3 # coding=utf-8 from Geometry.Vector2 import Vector2 import math import pygame def intersecting_rows(rect1, rect2): """ @param rect2: pygame.Rect @param rect1: pygame.Rect @return: tuple """ tile_left = math.floor(rect1.left / rect2.width) tile_right = math.ceil(rect...
bubbles231/Prototype
Helpers.py
Python
gpl-3.0
20,270
# -*- coding=utf-8 -*- """ Created on Aug 10, 2016 @author: corvo """ import json import urllib import urllib2 def get_card(_uuid): """ 通过uuid 获取一卡通号 """ _check_path = 'http://www.heraldstudio.com/api/user' # print (_uuid) params = {'uuid': _uuid} data = urllib.urlencode...
HeraldStudio/HeraldAppApi
mod/kuaidi/Utlis/Helper.py
Python
mpl-2.0
667
# 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 https://mozilla.org/MPL/2.0/. import numpy as np from scipy.sparse import lil_matrix # Import sile objects from .sile import SileScaleUp from ..sile ...
zerothi/sisl
sisl/io/scaleup/rham.py
Python
mpl-2.0
3,108
# mozilla/prettyprinters.py --- infrastructure for SpiderMonkey's auto-loaded pretty-printers. import gdb import re # Decorators for declaring pretty-printers. # # In each case, the decoratee should be a SpiderMonkey-style pretty-printer # factory, taking both a gdb.Value instance and a TypeCache instance as # argume...
Yukarumya/Yukarum-Redfoxes
js/src/gdb/mozilla/prettyprinters.py
Python
mpl-2.0
14,426
# 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 test_sms import TestSms def all(handler): env = environment.get(InProcessTestEnvironment) suite = unittest...
andreastt/certtest
semiauto/tests/__init__.py
Python
mpl-2.0
411
from django.conf.urls import url from . import views from core.views import list_evidence_view, create_evidence_view, list_submissions_view app_name = 'core' urlpatterns = [ # ex: /core/ url(r'^$', views.index, name='index'), url(r'^(?P<corecomp_id>[0-9]+)/$', views.detail, name='detail'), url(r'^submi...
shmish/core-assess
core/urls.py
Python
mpl-2.0
549
# 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/. # # Contact: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import absolute_import, divisi...
klahnakoski/ActiveData
vendor/pyLibrary/aws/s3.py
Python
mpl-2.0
18,596
""" Student and course analytics. Serve miscellaneous course and student data """ from shoppingcart.models import PaidCourseRegistration, CouponRedemption, Invoice, RegistrationCodeRedemption from django.contrib.auth.models import User import xmodule.graders as xmgraders from django.core.exceptions import ObjectDoesNo...
LearnEra/LearnEraPlaftform
lms/djangoapps/instructor_analytics/basic.py
Python
agpl-3.0
12,491
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0004_add_default_ordering_of_categories_by_name'), ] operations = [ migrations.AlterField( model_name='ca...
lgp171188/xpens
xpens/app/migrations/0005_make_description_optional_provide_default_value.py
Python
agpl-3.0
606
from tests.base import ApiDBTestCase from zou.app.models.entity import Entity class BreakdownTestCase(ApiDBTestCase): def setUp(self): super(BreakdownTestCase, self).setUp() self.generate_fixture_project_status() self.generate_fixture_project() self.generate_fixture_asset_type() ...
cgwire/zou
tests/shots/test_breakdown.py
Python
agpl-3.0
4,949
"""Initial migration Revision ID: 771555241255 Revises: 73b22ccbe472 Create Date: 2017-04-24 09:15:59.549855 """ # revision identifiers, used by Alembic. revision = '771555241255' down_revision = '73b22ccbe472' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa import residue t...
magfest/ubersystem
alembic/versions/771555241255_initial_migration.py
Python
agpl-3.0
3,407
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
quanvm009/codev7
openerp/tools/translate.py
Python
agpl-3.0
45,384
import copy import glob import fnmatch import os import logging import yaml log = logging.getLogger("subiquitycore.netplan") def _sanitize_inteface_config(iface_config): for ap, ap_config in iface_config.get('access-points', {}).items(): if 'password' in ap_config: ap_config['password'] = '<R...
CanonicalLtd/subiquity
subiquitycore/netplan.py
Python
agpl-3.0
5,471
# -*- coding: utf-8 -*- # # http://www.privacyidea.org # (c) cornelius kölbel, privacyidea.org # # 2018-11-21 Cornelius Kölbel <cornelius.koelbel@netknights.it> # Remove the audit log based statistics # 2016-12-20 Cornelius Kölbel <cornelius.koelbel@netknights.it> # Restrict download to certain ti...
privacyidea/privacyidea
privacyidea/api/audit.py
Python
agpl-3.0
4,483
import pytest from mock import Mock from workbench.runtime import WorkbenchRuntime from xblock.fields import ScopeIds from xblock.runtime import DictKeyValueStore, KvsFieldData from done.done import DoneXBlock def generate_scope_ids(runtime, block_type): """ helper to generate scope IDs for an XBlock """ de...
pmitros/DoneXBlock
tests/conftest.py
Python
agpl-3.0
842
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys from intelmq.lib import utils from intelmq.lib.bot import Bot from intelmq.lib.harmonization import IPAddress from intelmq.lib.message import Event class CymruFullBogonsParserBot(Bot): def process(self): report = self.receive_mes...
sch3m4/intelmq
intelmq/bots/parsers/cymru_full_bogons/parser.py
Python
agpl-3.0
1,188
"""JobApplication.replied_by Revision ID: 470c8feb73cc Revises: 449914911f93 Create Date: 2013-12-14 22:32:49.982184 """ # revision identifiers, used by Alembic. revision = '470c8feb73cc' down_revision = '449914911f93' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column( 'job_a...
hasgeek/hasjob
migrations/versions/470c8feb73cc_jobapplication_repli.py
Python
agpl-3.0
469
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
dayatz/taiga-back
tests/integration/test_occ.py
Python
agpl-3.0
15,300
import codecs input_filename = '/home/jittat/mydoc/directadm53/payment/assignment.csv' quota_filename = '/home/jittat/mydoc/directadm53/payment/quota.txt' output_filename = '/home/jittat/mydoc/directadm53/payment/assignment-added.csv' def read_quota(): q_data = { 'nat_id': {}, 'firstname': {}, ...
jittat/ku-eng-direct-admission
scripts/filter_quota.py
Python
agpl-3.0
1,880
""" This module contains celery task functions for handling the management of subtasks. """ from time import time import json from celery.utils.log import get_task_logger from celery.states import SUCCESS, READY_STATES, RETRY from django.db import transaction from django.core.cache import cache from instructor_task....
abo-abo/edx-platform
lms/djangoapps/instructor_task/subtasks.py
Python
agpl-3.0
17,270
import unittest from butler_offline.viewcore import configuration_provider from butler_offline.core import file_system from butler_offline.test.core.file_system_stub import FileSystemStub class TesteConverter(unittest.TestCase): def set_up(self): file_system.INSTANCE = FileSystemStub() configur...
RosesTheN00b/BudgetButlerWeb
butler_offline/test/viewcore/configuration_provider_test.py
Python
agpl-3.0
1,464
# -*- coding: utf-8 -*- # © 2016 Alfredo de la Fuente - AvanzOSC # © 2016 Oihane Crucelaegui - AvanzOSC # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from openerp.addons.sale_order_create_event.tests.\ test_sale_order_create_event import TestSaleOrderCreateEvent class TestEventCalendarHoliday(...
avanzosc/event-wip
event_calendar_holiday/tests/test_event_calendar_holiday.py
Python
agpl-3.0
2,154
from endpoints_proto_datastore.ndb import EndpointsModel from google.appengine.api import search from google.appengine.ext import ndb from protorpc import messages class CaseStatusSchema(messages.Message): name = messages.StringField(1) status_changed_at = messages.StringField(2) class Casestatus (Endpoints...
ioGrow/iogrowCRM
crm/iomodels/casestatuses.py
Python
agpl-3.0
1,555
from django.db import transaction from rest_framework import serializers from questions.models import Question, Choice from votes.models import Vote, VoteChoice from streams.models import Stream from ..accounts.serializers import AccountSerializer class VoteChoiceUserSerializer(serializers.ModelSerializer): use...
ballotify/django-backend
ballotify/apps/api_v1/questions/serializers.py
Python
agpl-3.0
4,502
"""Top level site urls.""" from django.conf.urls import patterns, include, url from quiz2 import views from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^$', views.home, name='home'), url(r'^register/$', views.register, name='register'), url(r'^login/$', views.u...
hillscottc/quiz2
quiz2/urls.py
Python
agpl-3.0
1,275
## # Copyright (C) 2018 Jessica Tallon & Matthew Molyneaux # # 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 late...
Inboxen/Inboxen
inboxen/views/manifest.py
Python
agpl-3.0
1,459
# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import res_partner from . import res_company from . import payment_mode
diagramsoftware/l10n-spain
l10n_es_facturae/models/__init__.py
Python
agpl-3.0
173
#encoding:utf-8 import Queue import threading import urllib2 # called by each thread def get_url(q, url): q.put(urllib2.urlopen(url).read()) theurls = '''http://google.com http://yahoo.com'''.split() print theurls q = Queue.Queue() for u in theurls: t = threading.Thread(target=get_url, args = (q,u)) t...
ubaldino/pyloop
prueba3.py
Python
agpl-3.0
369
import re from django.contrib.sites.models import Site from django.contrib.syndication.views import Feed from django.core.urlresolvers import reverse from django.utils.feedgenerator import Atom1Feed from django.utils.text import slugify from django.utils.translation import ugettext_lazy as _ from .models import Logge...
datamade/yournextmp-popit
candidates/feeds.py
Python
agpl-3.0
1,820
# -*- coding: utf-8 -*- # Copyright 2018 OpenSynergy Indonesia # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import models, fields class ResPartner(models.Model): _inherit = "res.partner" go_public = fields.Boolean( string="Go Public", )
open-synergy/opnsynid-partner-contact
partner_go_public/models/res_partner.py
Python
agpl-3.0
293
from LatLng import LatLng from LatLngBounds import LatLngBounds
gogogo/gogogo-hk
gogogo/geo/__init__.py
Python
agpl-3.0
64
# -*- coding: utf-8 -*- # Copyright 2019 OpenSynergy Indonesia # Copyright 2022 PT. Simetri Sinergi Indonesia # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # pylint: disable=locally-disabled, manifest-required-author { "name": "Employee Job Family From Contract", "version": "8.0.1.0.0", "c...
open-synergy/opnsynid-hr
hr_employee_job_family_from_contract/__openerp__.py
Python
agpl-3.0
676
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DCRM.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
82Flex/DCRM
manage.py
Python
agpl-3.0
247
#!/usr/bin/env python # coding=utf-8 # --------------------------------------------------------------------------- # Messages compiler for Ajenti plugins. # # Copyright (C) 2015 Marc Bertens <m.bertens@pe2mbs.nl> # Adapted from make_messages.py by Eugene Pankov # # This program is free software: you can redistribut...
pe2mbs/ajenti-mdadm
make_messages.py
Python
agpl-3.0
4,684
#!/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
test/src/unittests/temporal/test_effectiveduration.py
Python
agpl-3.0
2,995
""" Student Views """ import datetime import logging import uuid import json import warnings from collections import defaultdict from urlparse import urljoin, urlsplit, parse_qs, urlunsplit from django.views.generic import TemplateView from pytz import UTC from requests import HTTPError from ipware.ip import get_ip i...
chrisndodge/edx-platform
common/djangoapps/student/views.py
Python
agpl-3.0
105,293
import pytest from dateutil.parser import parse from django import forms from adhocracy4.forms.fields import DateTimeField class DateTimeForm(forms.Form): date = DateTimeField( time_format='%H:%M', required=False, require_all_fields=False, ) @pytest.mark.django_db def test_datetimef...
liqd/adhocracy4
tests/forms/test_forms.py
Python
agpl-3.0
1,198
from parser import CategoryParser class ScrubbingTelemetryParser(CategoryParser): def __init__(self, reader, store): CategoryParser.__init__(self, '05: Scrubbing State', reader, store) def get_bit_count(self): return 3 + 3 + 32 def parse(self): self.append("Primary Flash Scrubbin...
PW-Sat2/PWSat2OBC
integration_tests/emulator/beacon_parser/scrubbing_telemetry_parser.py
Python
agpl-3.0
445
# -*- encoding: utf-8 -*- ############################################################################## # # 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 Licens...
odoo-arg/odoo_l10n_ar
l10n_ar_electronic_invoice_report/models/account_tax.py
Python
agpl-3.0
1,266
# Copyright 2018 Cloudbase Solutions Srl # All Rights Reserved. from oslo_policy import policy from coriolis.policies import base REPLICA_EXECUTIONS_POLICY_PREFIX = "%s:replica_executions" % ( base.CORIOLIS_POLICIES_PREFIX) REPLICA_EXECUTIONS_POLICY_DEFAULT_RULE = "rule:admin_or_owner" def get_replica_executi...
cloudbase/coriolis
coriolis/policies/replica_tasks_executions.py
Python
agpl-3.0
2,399
# Copyright 2011, Thomas G. Dimiduk # # This file is part of GroupEng. # # GroupEng 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 versi...
tdimiduk/groupeng
src/input_parser.py
Python
agpl-3.0
2,845
# this app has been deprecated but sticks around for migrations dependencies
concentricsky/badgr-server
apps/composition/__init__.py
Python
agpl-3.0
77
# -*- 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...
ecino/compassion-modules
thankyou_letters/models/account_invoice_line.py
Python
agpl-3.0
3,938
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-20 23:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('authentication', '0003_auto_20160620_2027'), ('feed'...
winstein27/social
social/feed/migrations/0006_post_author.py
Python
agpl-3.0
660
"""Integration tests for Google providers.""" import base64 import hashlib import hmac from django.conf import settings from django.core.urlresolvers import reverse import json from mock import patch from social.exceptions import AuthException from student.tests.factories import UserFactory from third_party_auth import...
pomegranited/edx-platform
common/djangoapps/third_party_auth/tests/specs/test_google.py
Python
agpl-3.0
6,324
import math, functools, operator class GenerationProfile(): def __init__(self, **kwargs): super().__init__() for kw in kwargs: setattr(self, kw, kwargs[kw]) def stochasticity_weight(self, profile): weights = [ getattr(self, parameter).variable_correlation(getatt...
etkirsch/legends-of-erukar
erukar/system/engine/model/GenerationProfile.py
Python
agpl-3.0
586
""" This file contains signal handlers for credentials-related functionality. """ from logging import getLogger from django.contrib.sites.models import Site from common.djangoapps.course_modes.models import CourseMode from lms.djangoapps.certificates.models import CertificateStatuses, GeneratedCertificate from lms....
stvstnfrd/edx-platform
openedx/core/djangoapps/credentials/signals.py
Python
agpl-3.0
6,532
#! /usr/bin/env python # -*- coding: UTF-8 -*- ################################################################# # # ProActive Parallel Suite(TM): The Java(TM) library for # Parallel, Distributed, Multi-Core Computing for # Enterprise Grids & Clouds # # Copyright (C) 1997-2011 INRIA/University of # ...
ow2-proactive/agent-linux
palinagent/daemon/controller.py
Python
agpl-3.0
3,298
# coding=utf-8 # Copyright (c) 2001-2017, Canal TP and/or its affiliates. All rights reserved. # # This file is part of Navitia, # the software to build cool stuff with public transport. # # Hope you'll enjoy and contribute to this project, # powered by Canal TP (www.canaltp.fr). # Help us simplify mobility an...
xlqian/navitia
source/jormungandr/jormungandr/street_network/tests/here_test.py
Python
agpl-3.0
9,105
# coding=UTF-8 """ Performance tests for field overrides. """ import itertools from datetime import datetime import ddt import mock from ccx_keys.locator import CCXLocator from courseware.field_overrides import OverrideFieldData from courseware.testutils import FieldOverrideTestMixin from courseware.views.views import...
raccoongang/edx-platform
lms/djangoapps/ccx/tests/test_field_override_performance.py
Python
agpl-3.0
10,116
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
eneldoserrata/marcos_openerp
addons/purchase/purchase.py
Python
agpl-3.0
67,788
from .patch import post_load
OCA/server-tools
module_change_auto_install/__init__.py
Python
agpl-3.0
29
# -*- 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
pr_watch/tests/test_api.py
Python
agpl-3.0
11,845
# -*- coding: utf-8 -*- from . import parner_risk_exceeded
be-cloud-be/horizon-addons
partner-contact/partner_financial_risk/wizard/__init__.py
Python
agpl-3.0
60
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2015 by frePPLe bv # # This library 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 versio...
frePPLe/frePPLe
djangosettings.py
Python
agpl-3.0
19,163
# -*- coding: utf-8 -*- """ Copyright 2013-2014 Olivier Cortès <oc@1flow.io>. This file is part of the 1flow project. 1flow 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,...
1flow/1flow
oneflow/core/models/reldb/folder.py
Python
agpl-3.0
18,859
""" Student Views """ import datetime import json import logging import uuid import warnings from collections import defaultdict, namedtuple from urlparse import parse_qs, urlsplit, urlunsplit import analytics import edx_oauth2_provider import waffle from django.conf import settings from django.contrib import message...
Lektorium-LLC/edx-platform
common/djangoapps/student/views.py
Python
agpl-3.0
123,198
# Copyright 2009-2013 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). __metaclass__ = type __all__ = [ 'BranchPortletSubscribersContent', 'BranchSubscriptionAddOtherView', 'BranchSubscriptionAddView', 'BranchSubscriptionEditOwnV...
abramhindle/UnnaturalCodeFork
python/testdata/launchpad/lib/lp/code/browser/branchsubscription.py
Python
agpl-3.0
11,371
"""fask_dj URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') ...
ZompaSenior/fask
fask/src/fask_dj/dashboard/urls.py
Python
agpl-3.0
1,461
# -*- coding: utf-8 -*- # Copyright 2016 OpenSynergy Indonesia # Copyright 2022 PT. Simetri Sinergi Indonesia # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Stock Inventory Result Aeroo Report", "version": "8.0.1.0.0", "summary": "Adds Stock Inventory Result Report", "websit...
open-synergy/opnsynid-stock-reporting
opnsynid_stock_inventory_result_aeroo_report/__openerp__.py
Python
agpl-3.0
629
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Attendance Status') class TestAttendanceStatus(unittest.TestCase): pass
shitolepriya/Saloon_erp
erpnext/hr/doctype/attendance_status/test_attendance_status.py
Python
agpl-3.0
299
{ "name": "Base Sparse Field List Support", "summary": "add list support to convert_to_cache()", "version": "14.0.1.0.1", "category": "Technical Settings", "website": "https://github.com/OCA/server-tools", "author": "Akretion,Odoo Community Association (OCA)", "license": "AGPL-3", "appli...
OCA/server-tools
base_sparse_field_list_support/__manifest__.py
Python
agpl-3.0
409
# -*- coding: utf-8 -*- ############################################################################## # 'author': 'Wulf Chow', # 'date' : 2012-7-5 # 'maile' : <alangwansui at gmail.com> ############################################################################## import mrp_production_new
alangwansui/mtl_ordercenter
openerp/addons/001_mrp/__init__.py
Python
agpl-3.0
301
#!/usr/bin/python """Test of color chooser output.""" from macaroon.playback import * import utils sequence = MacroSequence() sequence.append(KeyComboAction("<Control>f")) sequence.append(TypeAction("Color Chooser")) sequence.append(KeyComboAction("Return")) sequence.append(KeyComboAction("Return")) sequence.append...
pvagner/orca
test/keystrokes/gtk3-demo/role_color_chooser.py
Python
lgpl-2.1
5,337
# Copyright (C) 2017 Pelagicore AB # # Permission to use, copy, modify, and/or distribute this software 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 THE AUTHOR DISCLAIMS ALL ...
tobsan/softwarecontainer
servicetest/agent/test_agent.py
Python
lgpl-2.1
4,114