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
from dis_snek import Snake from dis_snek.models import Scale, message_command from discordbot.command import MtgMessageContext class Barbs(Scale): @message_command() async def barbs(self, ctx: MtgMessageContext) -> None: """Volvary's advice for when to board in Aura Barbs.""" msg = "Heroic d...
PennyDreadfulMTG/Penny-Dreadful-Tools
discordbot/commands/barbs.py
Python
gpl-3.0
486
# -*- coding: utf-8 -*- import os import re from nmb.NetBIOS import NetBIOS from platformcode import logger from smb.SMBConnection import SMBConnection GitHub = 'https://github.com/miketeo/pysmb' #buscar aquí de vez en cuando la última versiónde SMB-pysmb, y actualizar en Alfa vesion_actual_pysmb = '1....
alfa-jor/addon
plugin.video.alfa/lib/sambatools/libsmb.py
Python
gpl-3.0
12,146
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) The widget is called from web2py. """ import datetime import sys import cStringIO import time import threa...
montaggroup/montag-token-redeemer
web2py/gluon/widget.py
Python
gpl-3.0
44,651
# -*- coding: utf-8 -*- """ *************************************************************************** tableviewtool.py ------------------------------------- Copyright (C) 2014 TIGER-NET (www.tiger-net.org) Based on Profile tool plugin: Copyright (C) 2012 Patrice Verchere *********************...
TIGER-NET/Temporal_profile_tool
tools/tableviewtool.py
Python
gpl-3.0
5,422
# profile_nan.py --- # # Filename: profile_nan.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Mon May 26 22:17:16 2014 (+0530) # Version: # Last-Updated: # By: # Update #: 0 # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change log: # # # # # This...
nsdf/nsdf
nsdf/test/profile_nan.py
Python
gpl-3.0
1,998
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2012 Sigurd Gartmann sigurdga-ubuntu@sigurdga.no # 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 Fre...
sigurdga/maps
maps/gpx_track.py
Python
gpl-3.0
3,283
#!/usr/bin/python2.6 # # This script is to set up various things for our projects. It can be used by: # # * developers - setting up their own environment # * jenkins - setting up the environment and running tests # * fabric - it will call a copy on the remote server when deploying # # The tasks it will do (eventually) ...
qris/toptalkers-website
deploy/tasklib.py
Python
gpl-3.0
17,548
# # Copyright (C) 2012 Uninett AS # # This file is part of Network Administration Visualized (NAV). # # NAV 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 the hope...
hmpf/nav
python/nav/ipdevpoll/shadows/adjacency.py
Python
gpl-3.0
8,885
#!/usr/bin/python3 # NatanJMai # github.com/NatanJMai/SocketsExample import socket, hashlib from threading import Thread from Crypto.Cipher import AES from Crypto import Random def abort(msg): print(msg) exit() def read(line): spl = line.split() return float(spl[-2]) * float(s...
NatanJMai/SocketsExample
util.py
Python
gpl-3.0
601
# 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 distributed in the hope that it will be useful,...
BlendingJake/JARCH-Vis
__init__.py
Python
gpl-3.0
1,961
#!/usr/bin/env python import sys import argparse import os from datetime import datetime def get_args(): parser = argparse.ArgumentParser(description='Clean up hourly gnomescroll backups') parser.add_argument('backup_path', help='Where the backups are stored') return parser.parse_args() def cleanup(bac...
Gnomescroll/Gnomescroll
server/shell/cleanup_gs_backups.py
Python
gpl-3.0
2,238
from django.db import models from course.models import CourseInstance from exercise.models import Submission from lib.models import UrlMixin from userprofile.models import UserProfile class Notification(UrlMixin, models.Model): """ A user notification of some event, for example manual assessment. """ ...
Aalto-LeTech/a-plus
notification/models.py
Python
gpl-3.0
2,190
from kivy.app import App from kivy.core.window import Window from kivy.uix.widget import Widget from kivy.uix.image import Image from kivy.graphics import Color from kivy.graphics.vertex_instructions import Rectangle from kivy.clock import Clock from random import random from map import * DEBUG = True G...
Danomax/comoelrogue
AtMoving_test.py
Python
gpl-3.0
4,305
from Luna import Luna from bson import ObjectId luna = Luna() print 1 print luna.create_obj('nodes', ['node005', 'node006'], {}) print 2 print luna.change_obj('nodes', ['node005', 'node006'], {'aaa': None})
hicham-a/luna
test/test04.py
Python
gpl-3.0
207
import espressomd import numpy as np import os import sys import unittest as ut from tests_common import abspath @ut.skipIf(not espressomd.has_features("MEMBRANE_COLLISION", "OIF_LOCAL_FORCES", "OIF_GLOBAL_FORCES"), "OIF featues not compiled in.") class OifVolumeConservation(ut.TestCase): """Loads a soft elas...
KonradBreitsprecher/espresso
testsuite/oif_volume_conservation.py
Python
gpl-3.0
2,137
""" testEmail JCS 10/31/2013 Version 1.0 This program runs the data collection from the watchdog """ # shelves: # datacollect - sensor data collection - disabled to RAM # graphprep - building system graphs # housekeeping - fan check , general health and wellfare # alarmchecks - checks for system health alarms # a...
projectcuracao/projectcuracao
testEmail.py
Python
gpl-3.0
1,102
import asyncio import discord from discord.ext import commands import tweepy import random from datetime import datetime import time #https://gist.github.com/yanofsky/5436496 #Twitter API credentials consumer_key = "" consumer_secret = "" access_key = "" access_secret = "" textChatIDlist = ["170682390786605057"...
BuckeyeLAN/discord_bot
tweets.py
Python
gpl-3.0
2,055
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-06-06 16:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tmv_app', '0013_topic_primary_dtopic'), ] operatio...
mcallaghan/tmv
BasicBrowser/tmv_app/migrations/0014_dynamictopicterm.py
Python
gpl-3.0
925
#! /usr/bin/env python #-*- coding: utf-8 -*- import cgi, re, sys, os from tools import utils def remove_bug(error_id, status): PgConn = utils.get_dbconn() PgCursor = PgConn.cursor() # find source PgCursor.execute("SELECT source,class,subclass,elems,lat,lon FROM marker WHERE id = %s;", ...
duthils/osmose-frontend
tools/osmose_common.py
Python
gpl-3.0
1,610
from ThreeDiToolbox import PLUGIN_DIR DOC_SOURCE_DIR = PLUGIN_DIR / "doc" / "source" def generate_subdir_readme_symlinks(): """Create a symlink for every README in a direct subdirectory. Note: the symlinks to the main README and CHANGELOG and so are done by hand. """ for readme in PLUGIN_DIR.g...
nens/threedi-qgis-plugin
scripts/generate-reference-docs.py
Python
gpl-3.0
3,019
# -*- coding: utf-8 -*- # vim: ts=8 et sw=4 sts=4 # # pylint: disable=modernize-parse-error """ Utilities that return preferred orders of minions """ import sys import os import salt.client def help_(): """ Usage """ usage = ('salt-run orderednodes.unique:\n' 'salt-run orderednodes.uniqu...
LenzGr/DeepSea
srv/modules/runners/orderednodes.py
Python
gpl-3.0
2,202
# Copyright 2016 Mycroft AI, Inc. # # This file is part of Mycroft Core. # # Mycroft Core 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 versio...
JarbasAI/jarbas-core
mycroft/jarbas-skills/skill_date_time/__init__.py
Python
gpl-3.0
2,553
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #This file is part of Test Platform. # #Test Platform 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 la...
instytut-badan-edukacyjnych/platforma-testow
TaskServer/server.py
Python
gpl-3.0
11,332
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user_resource', '0010_historicalcontactnumber_historicalinstituteaddress_historicalprogram_historicalsecondaryemail'), ] operations ...
DheerendraRathor/ldap-oauth2
user_resource/migrations/0011_auto_20151109_2358.py
Python
gpl-3.0
1,510
# inGraph (https://www.netways.org/projects/ingraph) # Copyright (C) 2011-2012 NETWAYS GmbH # # 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...
NETWAYS/ingraph
ingraph/api.py
Python
gpl-3.0
16,388
from django.contrib.auth import logout from django.http import HttpResponseRedirect from myslice.settings import logger import activity.user # hard question : where should we redirect requests to logout if user is not logged in ? def logout_user (request): # check that we're indeed logged in if not request.u...
onelab-eu/myslice
localauth/views.py
Python
gpl-3.0
553
#!/usr/bin/python #coding: UTF-8 import re from os import popen files = popen("find src -type f").readlines() for file in files: file = file.strip() encodingRaw = popen("file -bi %s" % file).readlines()[0].strip() match = re.search('.*charset=([a-z0-9-]*).*', encodingRaw) encoding = match.groups()[0] if n...
KoRE0/KoRE
scripts/fixEncoding.py
Python
gpl-3.0
566
# This file is part of QuTiP. # # QuTiP 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. # # QuTiP is distributed in the ...
Vutshi/qutip
qutip/tests/test_operators.py
Python
gpl-3.0
5,537
from tkinter import * root = Tk() # 将Tk()赋值给root Girls = ['西施','貂蝉','杨玉环','王昭君'] v = [] for girl in Girls: v.append(IntVar()) b = Checkbutton(root, text = girl, variable = v[-1]) b.pack(anchor = W) # anchor设置位置 mainloop()
lsp84ch83/PyText
Tkinter GUI图形框架/Checkbutton(多选).py
Python
gpl-3.0
277
from flask import Flask, render_template, request, session import cgi import datetime import time import json app = Flask(__name__) app.config['DEBUG'] = True app.config['SECRET_KEY'] = 'Q\xbb\x0f\xae\xedO\xf0:\tv\xfaMKgX4\x95\xdfo\x18\xc7lIM' app.config['PUSHER_CHAT_APP_ID'] = '201352' app.config['PUSHER_CHAT_APP_...
aesptux/clack
runserver.py
Python
gpl-3.0
1,598
# This file is part of cloud-init. See LICENSE file for license information. from cloudinit import cloud from cloudinit.config import cc_growpart from cloudinit import util from cloudinit.tests.helpers import TestCase import errno import logging import os import re import unittest try: from unittest import mock...
larsks/cloud-init
tests/unittests/test_handler/test_handler_growpart.py
Python
gpl-3.0
7,493
#!/usr/bin/python3 """ ipv4_help.py: """ # Import Required Libraries (Standard, Third Party, Local) ******************** import re # Authorship Info ************************************************************* __author__ = "Christopher Maue" __copyright__ = "Copyright 2017, The RPi-Home Project" __credits__ = ["Chr...
csm0042/rpihome_v3
rpihome_v3/helpers/ipv4_help.py
Python
gpl-3.0
1,295
from datetime import date from numpy import array from artist import MultiPlot from sapphire import Station from sapphire.transformations.clock import datetime_to_gps from download_dataset import END, START, STATIONS # STATIONS = STATIONS[-2:] START_TS = datetime_to_gps(date(*START, day=1)) END_TS = datetime_to_gp...
HiSPARC/topaz
160303_dataset/plot_configs.py
Python
gpl-3.0
2,803
# Generated by Django 2.2.17 on 2020-12-13 18:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ajapaik', '0003_auto_20201213_1907'), ] operations = [ migrations.AlterField( model_name='album', name='name_origina...
Ajapaik/ajapaik-web
ajapaik/ajapaik/migrations/0004_auto_20201213_2022.py
Python
gpl-3.0
709
# -*- coding: utf-8 -*- # Copyright 2011 Nelen & Schuurmans import os import sys from os.path import join from django.core.management.base import BaseCommand from dpnetcdf.conf import settings from dpnetcdf.models import ShapeFile class Command(BaseCommand): args = "" help = "Map file system based shapefile...
nens/dpnetcdf
dpnetcdf/management/commands/map_shapefiles.py
Python
gpl-3.0
1,197
#### import the simple module from the paraview from paraview.simple import * M_MODES = [0, 4, 16, 39] K_SEGMENTS = [400,] CLVlocation = 'D:\\figure_JFMcylinder\\temp1_CLV_finer\\' def plot(i_segment, j_mode): print(i_segment, j_mode) # create a new 'XML Unstructured Grid Reader' pnglocation =...
qiqi/fds
apps/charles_cylinder3D_Lyapunov/for_paraview/paraviewCLV.py
Python
gpl-3.0
2,824
from django.forms import widgets from rest_framework import serializers from learningobjects.models import * ####################################################################### # View API ####################################################################### class TagListSerializer(serializers.WritableField): ...
alabarga/SocialLearning
SocialLearning/apps/api/serializers.py
Python
gpl-3.0
11,422
from .engine import conf as engine_conf from .conf import Conf from .level import Intro as EntryWorld engine_conf.add(Conf)
ikn/boom
game/__init__.py
Python
gpl-3.0
125
# UPDATE CONFIG FILE # WITH INFO PASSED AS JSON import sys import os import urllib import json import copy import pprint from config_func import read_config_raw import logging logging.basicConfig(filename='/home/pi/fireball_camera/log_files/app.log',format='%(asctime)s -- %(levelname)s: -- %(message)s', datefmt='...
mikehankey/fireball_camera
config/update_config.py
Python
gpl-3.0
2,820
# -*- coding: utf-8 -*- """ Subliminal uses `click <http://click.pocoo.org>`_ to provide a powerful :abbr:`CLI (command-line interface)`. """ from __future__ import division from collections import defaultdict from datetime import timedelta import json import logging import os import re from babelfish import Error as...
duramato/SickRage
lib/subliminal/cli.py
Python
gpl-3.0
17,269
#!/usr/local/bin/python # -*- coding: utf-8 -*- ''' @author: melon ''' import json import math from Stat import * import Utilities import re import time from MasterObject import masterObject class Joiner(masterObject): #Puede ser un socket ? _id = 0 connection = 0 stats = {} function=0 parsed_fun...
Melon-PieldeSapo/IoTFramework
src/Joiner.py
Python
gpl-3.0
5,398
#!/usr/bin/env python # -*- coding: utf-8 -*- # # primitives.py # # Copyright 2014 Balint Seeber <balint256@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2...
balint256/ice
tlm/primitives.py
Python
gpl-3.0
19,588
""" A set of common tools to be used in pilot commands """ __RCSID__ = '$Id$' import sys import time import os import pickle import getopt import imp import json import urllib import urllib2 import signal import subprocess from PilotLogger import PilotLogger def printVersion(log): log.info("Running %s" % " ".jo...
wkrzemien/Pilot
Pilot/pilotTools.py
Python
gpl-3.0
32,357
from getIQU import IQU from subprocess import call import sys import numpy as np import glob import matplotlib.pyplot as plt import aplpy from astropy.convolution import convolve, Gaussian2DKernel from astropy.io import fits import scipy.ndimage from skimage import filters plt.ion() if len(sys.argv) < 2: print "Yo...
sbg2133/miscellaneous_projects
carina/imcomp.py
Python
gpl-3.0
1,145
# ex_axes_4_1.py import sys sys.path.insert(0, "..") from pynomo.nomographer import Nomographer import pyx N_params = {'u_min': 1.0, 'u_max': 10.0, 'function': lambda u: u, 'title': 'title', 'tick_levels': 2, 'tick_text_levels': 1, 'tick_side': ...
lefakkomies/pynomo
examples/ex_axes_4_1.py
Python
gpl-3.0
2,643
from . import sales_order_analytic
sumihai-tekindo/account_sicepat
sale_order_analytic/models/__init__.py
Python
gpl-3.0
34
# -*-coding:utf8-*- from __future__ import print_function # SciPy from scipy.stats import chi2 import healpy as hp import numpy as np from scipy.signal import convolve2d # skylab from skylab.ps_injector import PointSourceInjector from skylab.psLLH import MultiPointSourceLLH from skylab.ps_model import UniformLLH fro...
zdgriffith/skylab
doc/examples/weighted_sensitivity.py
Python
gpl-3.0
1,950
# -*- coding: utf-8 -*- # # Copyright © 2017 Mark Wolfman # # This file is part of scimap. # # Scimap 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 ...
m3wolf/scimap
tests/test_map.py
Python
gpl-3.0
3,379
import os import threading import datetime import time import random import gi gi.require_version('Gtk', '3.0') # isort:skip from gi.repository import Gtk, Pango pkg = 'foo-too-loo-3:2.3.0-1.fc34.noarch' ACTIONS = [ f"Updating: {pkg}", f"Updated: {pkg}", f"Installing: {pkg}", f"Reinstalling: {pkg}"...
timlau/poc
python/progress/progress.py
Python
gpl-3.0
2,668
# -*- coding: utf-8 -*- ############################################################################## # # Author: Yannick Buron # Copyright 2015, TODAY Clouder SASU # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License with Attribution # ...
nicolas-petit/clouder
clouder_template_magento/template.py
Python
gpl-3.0
7,500
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-05-26 15:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ip', '0035_auto_20170516_1336'), ('ip', '0033_auto_20170306_1440'), ] operations = [ migrations.AlterModelOptions( ...
ESSolutions/ESSArch_Core
ESSArch_Core/ip/migrations/0036_auto_20170526_1723.py
Python
gpl-3.0
1,103
### # Copyright (c) 2011, Valentin Lorentz # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditi...
kg-bot/SupyBot
plugins/Variables/test.py
Python
gpl-3.0
3,088
#!/bin/python2.7 ''' Dieses programm kann Videos von der ARD Mediathek herunterladen. Es wurde von tatort-dl inspiriert weil es nicht mehr funksionierte. http://gareus.org/wiki/tatort-dl Copyright (C) 2013 Frederick Hunter fhunterz@verizon.net This program is free software: you can redistribute ...
linuxuis/ardDownloader
Deutsch/ardDownload.py
Python
gpl-3.0
4,024
# Copyright © 2020, Joseph Berry, Rico Tabor (opendrop.dev@gmail.com) # OpenDrop is released under the GNU GPL License. You are free to # modify and distribute the code, but always under the same license # # If you use this software in your research, please cite the following # journal articles: # # J. D. Berry, M. J. ...
jdber1/opendrop
opendrop/app/conan/report/graphs/services/graphs.py
Python
gpl-3.0
4,727
import csv from datetime import datetime from os import listdir from use_list import decode_html, clean_stuff #Write csv file def write_stuff(rows, output_file): myfile = open(output_file, 'wb') wr = csv.writer(myfile, quoting=csv.QUOTE_ALL) for i in range(len(rows)): wr.writerow(rows[i]) def beauty(path, days,...
ldd/schedule_helper
nextstepwrite.py
Python
gpl-3.0
1,139
# globals.py agent1 = None agent2 = None domain_structure = [] # domain structure in use test_title = "title" # title to use world = None # placeholder for Panda world cycle = 0 # current teaching cycle
Dfred/concept-robot
control/learning/globals.py
Python
gpl-3.0
249
# uses pushover for send a notifcation to a specific user import httplib, urllib import iotairclean_config def pushover(msg, room, ppm, minutes): conn = httplib.HTTPConnection("www.iot-airclean.at") # if there is no room definied, we send the given message if room == '': conn.request("POST", "/api.pushover.php",...
michaelulm/iotairclean
src/server/backend/iotairclean_pushover.py
Python
gpl-3.0
985
import ROOT as rt import CMS_lumi, tdrstyle import array #set the tdr style tdrstyle.setTDRStyle() #change the CMS_lumi variables (see CMS_lumi.py) CMS_lumi.lumi_7TeV = "4.8 fb^{-1}" CMS_lumi.lumi_8TeV = "18.3 fb^{-1}" CMS_lumi.writeExtraText = 1 CMS_lumi.extraText = "Preliminary" CMS_lumi.lumi_sqrtS = "13 TeV" # use...
jsturdy/root-scripts
cms-macros/test/myMacro.py
Python
gpl-3.0
3,427
from pandac.PandaModules import TextNode from direct.gui.DirectGui import * import global_functions from gui_3d import Gui3D class GuiManager: def __init__(self, game_data, gfx_manager): self.onscreen_title = OnscreenText(text="Das Leben", pos=(0.95,-0.95), scale=0....
JDShu/das-leben
das_leben/gui.py
Python
gpl-3.0
2,306
#!/usr/bin/env python '''The setup and build script for the python-telegram-bot library.''' import os from setuptools import setup, find_packages def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup( n...
antoniodemora/python-telegram-bot
setup.py
Python
gpl-3.0
1,548
from django.template.defaulttags import register @register.filter(name='votat_per') def votat_per(material, usuari): return material.reputacioperutil_set.filter( perfil_otorga = usuari.perfil ).exists() and not material.reputacioperutilperduda_set.filter( perfil_otorga = usuari.perfil ).exists()
ctrl-alt-d/fpuf
fpuf/apps/material/templatetags/material_extras.py
Python
gpl-3.0
304
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-10-08 22:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0005_talk'), ] operations = [ migrations.AlterModelOptions( ...
adrianomargarin/wttd-eventex
eventex/core/migrations/0006_auto_20171008_2259.py
Python
gpl-3.0
1,183
from lino_ui_tests import *
MaxTyutyunnikov/lino
lino/modlib/system/tests/__init__.py
Python
gpl-3.0
29
# project/__init__.py from flask import Flask, request, jsonify, session from flask.ext.bcrypt import Bcrypt from flask.ext.sqlalchemy import SQLAlchemy from project.config import BaseConfig # config app = Flask(__name__) app.config.from_object(BaseConfig) bcrypt = Bcrypt(app) db = SQLAlchemy(app) from project.m...
sartim/angular_flask_auth
project/__init__.py
Python
gpl-3.0
1,534
import pygame import math from locals import * import util class Water(pygame.sprite.Sprite): global_water = None raster_image = None def __init__(self): pygame.sprite.Sprite.__init__(self) self.image = pygame.Surface((SCREEN_WIDTH, SCREEN_HEIGHT)) self.rect = self.image.get_rect...
italomaia/turtle-linux
games/FunnyBoat/water.py
Python
gpl-3.0
3,074
# -*- coding: UTF-8 -*- # Copyright (C) 2007 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 Foundation, either version 3 of the License, or # (at your option...
kennym/itools
git/git.py
Python
gpl-3.0
3,530
"""Pygame tiler by J. This module primarily consists of a Tiler class to draw and manage a tiled grid using Pygame. Release: 10. Licensed under the GNU General Public License, version 3; if this was not included, you can find it here: http://www.gnu.org/licenses/gpl-3.0.txt """ from pygame.display import get_s...
ikn/brjaf
brjaf/ext/tiler.py
Python
gpl-3.0
19,214
#!/usr/bin/env python # -*- coding: utf-8 -*- """ engineauth.strategies.password ============================ OAuth2 Authentication Strategy :copyright: (c) 2011 Kyle Finley. :license: Apache Sotware License, see LICENSE for details. :copyright: (c) 2010 Google Inc. :license: Apache Softwa...
CoderBotOrg/coderbotsrv
server/lib/engineauth/strategies/password.py
Python
gpl-3.0
2,606
#! /usr/bin/env python import exsim import logging import os import pickle import signal import socket import struct import sys import time logging.basicConfig(level=logging.DEBUG) class API: """Client API.""" def __init__(self): self._buffer = '' self._servers = {} return def ...
da4089/exsim
exsim/api.py
Python
gpl-3.0
6,776
from . import send
UOSHUB/BackEnd
Requests/zoho/__init__.py
Python
gpl-3.0
19
import inspect import imp import sys import traceback class ErtScript(object): def __init__(self, ert): """ @type ert: EnKFMain """ super(ErtScript, self).__init__() if not hasattr(self, "run"): raise UserWarning("ErtScript implementations must provide a method...
andreabrambilla/libres
python/res/job_queue/ert_script.py
Python
gpl-3.0
4,141
# Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
vidartf/hyperspy
hyperspy/tests/component/test_component_active_array.py
Python
gpl-3.0
2,468
#!/usr/bin/env python #-*- coding:utf-8 -*- ''' Linear tools This section contains some rather basic implementations of linear time series methods which are there just for convenience. If you want to embark seriously on linear or spectral analysis of your data, you will have to use any one of the statistical or m...
sdia/tisane
linear_tools.py
Python
gpl-3.0
7,566
''' By: Deon Hua Date: 16 May 2013 Description: pyAsteroids - a remake of the original game in python! The game contains a few functions to control the game's menus and overall gameplay. The main() function is used to call all of this. ''' #Import and Initialize import pygame, pygame.mixer, asteroidsSprites, random py...
DeonHua/pyAsteroids
Asteroids.py
Python
gpl-3.0
18,040
#!/usr/bin/env python3 """ python3 based web shell based on gist here: https://gist.github.com/phoemur/461c97aa5af5c785062b7b4db8ca79cd modified by @__timk to: * make output a bit nicer and safer * work regardless of scheme * append a GUID to the end of the path to provide security through obscurity :) """ import os ...
timkent/scripts
webshell.py
Python
gpl-3.0
3,218
# -*- coding: utf-8 -*- # Model made of ZeroLengthSection elements that is used only # for checking limit states i.e. for reinforced concrete sections. # # This kind of phantom model is needed when the model that we use # to check limit states is different from the model that we use for # the analysis. A typical exampl...
lcpt/xc
python_modules/postprocess/phantom_model.py
Python
gpl-3.0
11,691
from game_states import GameStates def handle_keys(user_input, game_state): if user_input: if game_state == GameStates.PLAYERS_TURN: return handle_player_turn_keys(user_input) elif game_state == GameStates.PLAYER_DEAD: return handle_player_dead_keys(user_input) elif...
WrogueOne/Wrogue
input_handlers.py
Python
gpl-3.0
4,488
# -*- coding: utf-8 -*- # # ELL documentation build configuration file, created by # sphinx-quickstart on Mon Aug 24 18:25:39 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
xaqq/ell
docs/conf.py
Python
mpl-2.0
9,101
# -*- coding: utf-8 -*- """Create draft invoices This management command creates draft Sivler invoices from the content of the ProjectInvestment table. When they invested, users didn't add their first names, last names, addresses and other data required in an invoice. We create draft invoices with empty fields that wi...
jeromecc/doctoctocbot
src/customer/management/commands/draft_invoice.py
Python
mpl-2.0
747
# The contents of this file are subject to the Mozilla Public License # Version 2.0 (the "License"); you may not use this file except in # compliance with the License. You may obtain a copy of the License at # http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS IS"basis, #...
os2webscanner/os2webscanner
scrapy-webscanner/scanners/processors/zip.py
Python
mpl-2.0
1,698
# -*- coding: utf-8 -*- # # DECaF Utils Components documentation build configuration file, created by # sphinx-quickstart on Tue Feb 9 17:02:55 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenera...
CN-UPB/OpenBarista
utils/decaf-utils-components/docs/sphinx/source/conf.py
Python
mpl-2.0
11,600
try: import traceback import os import logging from . import supported_projections except ImportError as err: print('Error {0} import module: {1}'.format(__name__, err)) traceback.print_exc() exit(128) def grid_path(filename): return os.path.abspath(os.path.join(os.path.dirname(os.pat...
KAMI911/lactransformer
lactransformer/libs/AssignProjection.py
Python
mpl-2.0
5,950
import os # Originally authored by the Buildbot Team Members __version__ = "latest" try: fn = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'VERSION') with open(fn) as f: __version__ = f.read().strip() except IOError: from subprocess import Popen, PIPE import re VERSION_MATCH...
mozilla/inv-tool
invtool/__init__.py
Python
mpl-2.0
743
# -*- coding: utf-8 -*- params = { 'volume': 16, 'title': u'Firefox 校園大使招募中, Firefox OS 於 MWC 發表首年成果、改寫入門級智慧型手機定義', }
elin-moco/bedrock
bedrock/newsletter/templates/newsletter/2014-02/config.py
Python
mpl-2.0
183
from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.forms import ModelForm from django import forms # Teachers or admin create a list of "I can statements" for each core competency class CoreComp(models.Model): CORE_COMP = ( ('CT', 'Critical Thinking'), ...
shmish/core-assess
core/models.py
Python
mpl-2.0
2,931
from itertools import islice from operator import methodcaller try: from itertools import imap as map except ImportError: pass # python 3, use builtin map from elasticsearch.exceptions import ElasticsearchException class BulkIndexError(ElasticsearchException): @property def errors(self): """ L...
AdrianGaudebert/elmo
vendor-local/lib/python/elasticsearch/helpers.py
Python
mpl-2.0
7,954
# -*- coding: 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/. import flask import os import werkzeug.exceptions import typing import backend_common import ba...
lundjordan/services
src/tooltool/api/tooltool_api/__init__.py
Python
mpl-2.0
1,972
import datetime from django.conf import settings from django.utils.translation import ugettext_lazy as _ from missing import timezone import mongoengine GENDER_CHOICES = ( ('male', _("male")), ('female', _("female")), ) ERROR_MESSAGES = { 'bounds': _("Value is out of bounds."), 'callable': _("Calla...
mitar/django-mongo-auth
mongo_auth/contrib/fields.py
Python
agpl-3.0
3,720
""" kartograph - a svg mapping library Copyright (C) 2011 Gregor Aisch 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 op...
kartograph/kartograph.py-old
lib/polygon/poly.py
Python
agpl-3.0
2,317
# Copyright 2019-20 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from odoo import fields, models class MrpWorkOrder(models.Model): _inherit = "mrp.workorder" sequence = fields.Integer()
OCA/manufacture
mrp_workorder_sequence/models/mrp_workorder.py
Python
agpl-3.0
266
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms o...
kevin8909/xjerp
openerp/addons/sale/res_config.py
Python
agpl-3.0
8,370
# -*- coding: utf-8 -*- # # This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for # more information about the licensing of this file. import json import re from flask import Response from inginious.frontend.pages.course_admin.utils import INGIniousAdminPage class CourseAdminSearchUserPage(ING...
UCL-INGI/INGInious
inginious/frontend/pages/course_admin/search_user.py
Python
agpl-3.0
1,238
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you ca...
ubiar/odoo
openerp/addons/base/res/res_users.py
Python
agpl-3.0
45,055
import pytest import os import re def test_ssh_motd_disabled(File): """ Ensure the SSH MOTD (Message of the Day) is disabled. Grsecurity balks at Ubuntu's default MOTD. """ f = File("/etc/pam.d/sshd") assert f.is_file assert not f.contains("pam\.motd") @pytest.mark.skipif(os.environ.get(...
ageis/securedrop
testinfra/common/test_grsecurity.py
Python
agpl-3.0
6,311
#!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2015, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions ...
marionleborgne/nupic.research
projects/vehicle-control/agent/run_sm.py
Python
agpl-3.0
7,852
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2012-2022 GEM Foundation # # OpenQuake 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 Licen...
gem/oq-engine
openquake/hazardlib/tests/gsim/akkar_cagnan_2010_test.py
Python
agpl-3.0
1,232
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2015-2018: # Matthieu Estrada, ttamalfor@gmail.com # # This file is part of (AlignakApp). # # (AlignakApp) 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 Sof...
Alignak-monitoring-contrib/alignak-app
test/test_common_frames.py
Python
agpl-3.0
1,740
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2014 Pexego All Rights Reserved # $Jesús Ventosinos Mayor <jesus@pexego.es>$ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affer...
jgmanzanas/CMNT_004_15
project-addons/sale_product_customize/model/mrp_production.py
Python
agpl-3.0
7,284
import sys from django.conf import settings from django.contrib import admin from django.contrib.admin.widgets import AdminTextInputWidget from django.core.exceptions import ImproperlyConfigured from django.utils.encoding import force_text from django.utils.html import escape from django.utils.translation import ugette...
82Flex/DCRM
fluent_comments/admin.py
Python
agpl-3.0
4,511
#!/usr/bin/env python3 if __name__ == "__main__": from unittest import main main(module="newslist.tests")
kaini/newslist
server/runtests.py
Python
agpl-3.0
115