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 ..MPLogger import loggingclient from ..Commands.profile_commands import load_profile import configure_firefox from selenium.webdriver.firefox.firefox_binary import FirefoxBinary from selenium import webdriver from pyvirtualdisplay import Display import shutil import os import random DEFAULT_SCREEN_RES = (1366, ...
Jasonmk47/OpenWPM
automation/DeployBrowsers/deploy_firefox.py
Python
gpl-3.0
6,296
""" InaSAFE Disaster risk assessment tool developed by AusAid - **GUI Dialog.** Contact : ole.moller.nielsen@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 Free Software Foundation; either vers...
takmid/inasafe
safe_qgis/dock.py
Python
gpl-3.0
73,919
BSF2FINN_SPECIATION_FACTORS = { "1": { "MOZ4_Species": "Savanna/ Grasslands", "NO": "0.26", "NO2": "0.74", "BIGALD": "0.02", "BIGALK": "0.2", "BIGENE": "0.45", "C10H16": "0.01", "C2H4": "2.27", "C2H5OH": "0.02", "C2H6": "0.82", ...
pnwairfire/blueskyutils
blueskyutils/bsf2wrfchem/speciation.py
Python
gpl-3.0
5,442
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Mar 23 11:24:38 2018 @author: nkarasiak """ try: # if use in Qgis 3 from . import function_dataraster as dataraster from .mainfunction import pushFeedback except BaseException: import function_dataraster as dataraster from mainfunc...
lennepkade/dzetsaka
scripts/domainAdaptation.py
Python
gpl-3.0
12,927
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Project_Dependencies.is_public' db.delete_column('project_project_dependencies', 'is_publi...
alexykot/bitfund
bitfund/project/migrations/0006_auto__del_field_project_dependencies_is_public.py
Python
gpl-3.0
11,471
# -*- coding: utf-8 -*- """Time Clickers Auto upgrade & Auto-Clicker Tool. It makes the increment game look like the idle game. Made by b1oki & hakonw """ import sys import time # dis_pylint: disable=locally-disabled, no-name-in-module, no-member from win32gui import GetWindowText, GetForegroundWindow, GetWindowRect i...
b1oki/time_clicker_automatization
main.py
Python
gpl-3.0
5,645
#!/usr/bin/python #-*- coding:utf-8 -*- """G6 to CUB file(s) conversion tool Usage: g62cub FILE [FILE]... [DEST] FILE can either be a G6 file or a ZIP containing G6 files. DEST, if present, specifies the path where to save the converted file(s). Beware, DEST must be present if there are multiple FILE. """ import r...
Gweylorth/PyCubic
g62cub.py
Python
gpl-3.0
4,690
#!/usr/bin/env python # -*- coding: utf-8 -*- # # download_requests.py # # Copyright © 2013-2015 Antergos # # This file is part of Cnchi. # # Cnchi 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 ...
yucefsourani/Cnchi
cnchi/download/download_requests.py
Python
gpl-3.0
7,157
import os import traceback,sys CONFIG_FOLDER = "Configs" def load_config(name): try: module = __import__("%s.%s" % (CONFIG_FOLDER,name), fromlist=["Config"]) except ImportError: # Display error message traceback.print_exc(file=sys.stdout) raise ImportError("Failed to import mo...
sondree/Master-thesis
Python MOEA/utility.py
Python
gpl-3.0
592
# -*coding: utf-8-*- from collections import namedtuple from pytz import common_timezones from webhelpers2.html import tags from webhelpers2.html import HTML from ...interfaces import IServiceType from ...resources.accomodations import AccomodationsResource from ...resources.employees import EmployeesResource from ....
mazvv/travelcrm
travelcrm/lib/helpers/fields.py
Python
gpl-3.0
49,205
try: from settings_local import MyConf except ImportError: from feedreader.conf.base import Dev as MyConf try: from settings_local import MyTestConf except ImportError: from feedreader.conf.base import Test as MyTestConf
jo-soft/jadfr
jadfr/feedreader/conf/my_conf.py
Python
gpl-3.0
238
#!/usr/bin/python3 """Test the helper library used by the charm.""" import os def test_pytest(): """Test pytest works.""" assert True def test_ph(ph): """Test the ph fixture works to load charm configs.""" assert isinstance(ph.charm_config, dict) def test_proxy_config(ph): """Check that defaul...
chris-sanders/layer-haproxy
tests/unit/test_libhaproxy.py
Python
gpl-3.0
22,253
__author__ = 'harsha' import telegram_methods.getMe import telegram_methods.getUpdates import telegram_methods.sendMessage import telegram.Update import telegram.Message import telegram.User import telegram.GroupChat import bot_utilities.tgtwitter import re base_url = "https://api.telegram.org/bot" auth_file_name = "...
harsha5500/pytelegrambot
bots/doloresBot.py
Python
gpl-3.0
3,494
"""lsmdico URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/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') Class-bas...
acuriel/lsmdico
lsmdico/urls.py
Python
gpl-3.0
1,142
#!/usr/bin/python3 # import concurrent.futures import os # produce an imp file def calcuImp(mods, edges, index): # med results filedir = './{}_{}/'.format(mods, edges) filename = 'workflow_{}_{}_{}.txt'.format(mods, edges, index) filename = os.path.join(filedir,filename) results = open(filename, '...
lxylinki/medCC
src/main/resources/output/evalresults2014/calcuImp.py
Python
gpl-3.0
1,644
import sys import argparse import numpy as np import pylab as pl import netCDF4 import logging import pymqdatastream.connectors.todl.todl_data_processing as todl_data_processing try: from PyQt5 import QtCore, QtGui, QtWidgets except: from qtpy import QtCore, QtGui, QtWidgets #https://matplotlib.org/3.1.0/gall...
MarineDataTools/pymqdatastream
pymqdatastream/connectors/todl/tools/todl_quickview.py
Python
gpl-3.0
9,129
from Nymph import * ismail=nymphdata("ismail","127.0.0.1",8592) erdem=nymphdata('erdem','127.0.0.1',7711) ferhat=nymphdata('ferhat','127.0.0.1',8812) alptug=nymphdata('alptug','127.0.0.1',8813) ali=nymphdata('ali','127.0.0.1',8890) veli=nymphdata('veli','127.0.0.1',8891) firuze=nymphdata('firuze','127.0.0.1',8892) hali...
eaybek/nymph
IP.py
Python
gpl-3.0
489
""" Package bpl. Python module to work with bounded power-law (BPL) distributed random variables. This module contains a few basic functions that help analyse power-law distributed random variables that can be either bounded only from below or from both above and below. It provides the following functions: 1. Gener...
UP-RS-ESP/bpl
__init__.py
Python
gpl-3.0
1,448
from aospy import Var from aospy_user import calcs, units from aospy_user.variables.universal.energy_native import (swdn_sfc, olr, lwdn_sfc, lwup_sfc) from aospy_user.variables.idealized_moist.energy import flux_t, flux_lhe # Model native (or self-coded) diagn...
spencerkclark/aospy-obj-lib
aospy_user/variables/idealized_moist/dynamics.py
Python
gpl-3.0
3,317
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2017 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <https://weblate.org/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
lem9/weblate
weblate/accounts/captcha.py
Python
gpl-3.0
4,975
# -*- coding: utf-8 -*- # # Woofer - free open-source cross-platform music player # Copyright (C) 2015 Milan Herbig <milanherbig[at]gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
m1lhaus/woofer
components/scheduler.py
Python
gpl-3.0
14,594
from __future__ import unicode_literals from rest_framework import viewsets from rest_framework import permissions from videos.api.serializers import video as video_serializers from videos.models import Video class VideoViewSet(viewsets.ModelViewSet): permission_classes = [permissions.DjangoModelPermissionsOrA...
sdeleeuw/contagement
videos/api/viewsets/video.py
Python
gpl-3.0
1,272
#!/usr/bin/env python # chal34.py - Man in the middle vs. Diffie-Hellman # # Copyright (C) 2015 Andrew J. Zimolzak <andyzimolzak@gmail.com>, # and licensed under GNU GPL version 3. Full notice is found in # the file 'LICENSE' in the same directory as this file. from cryptopals import warn from diffie_...
zimolzak/crypto-challenges
chal34.py
Python
gpl-3.0
637
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # # PyMTP # Developed by: Nick Devito (nick@nick125.com) # (c) 2008 Nick Devito # Released under the GPLv3 or later. # import os import ctypes import ctypes.util from models import * from constants import * from errors import * _module_path = ctypes.util.find_librar...
nathanbullock/pymtp-nkb
pymtp/main.py
Python
gpl-3.0
23,914
class SongSection: def __init__(self, name): self.section = [] self.name = name
jpat82792/EloTab
song_section.py
Python
gpl-3.0
104
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interfazCompilador.ui' # # Created: Mon Oct 5 22:22:09 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 ex...
franco12594/Compilador
interfazCompilador.py
Python
gpl-3.0
2,205
import time import os from pdfLib import PdfLib import langdetect from filter import Filter import json class ProcessWorker(): def __init__(self, filename, wd, od, logger, uq, fileExtension = u'.json'): """ wd -> working dir od -> output dir uq -> update queue """ ...
n-witt/EconstorCorpus
Han_the_Converter/processingPdfFiles/processingPdfFiles.py
Python
gpl-3.0
4,598
from vsg import parser class with_keyword(parser.keyword): ''' unique_id = selected_waveform_assignment : with_keyword ''' def __init__(self, sString): parser.keyword.__init__(self, sString) class select_keyword(parser.keyword): ''' unique_id = selected_waveform_assignment : select...
jeremiah-c-leary/vhdl-style-guide
vsg/token/selected_waveform_assignment.py
Python
gpl-3.0
1,188
from test.classes.PingPongApp import PingPongApp from test.test_classes.BallTrackerMock import BallTrackerMock class PingPongAppMock(PingPongApp): def __init__(self, args): super(PingPongAppMock, self).__init__(args) self.ball_tracker = BallTrackerMock() def run(self): super(PingPongA...
Centre-Alt-Rendiment-Esportiu/att
src/python/test/test_classes/PingPongAppMock.py
Python
gpl-3.0
376
# Here's some new strange stuff, remember type it exactly # Defines days of the week days = "Mon Tue Wed Thu Fri Sat Sun" # Defines the months that will be printed after calling "months" # A new line is created after every month months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug" # Print the days and then the months pr...
seravok/LPTHW
ex9.py
Python
gpl-3.0
604
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-06 16:54 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gardens', '0010_auto_20170726_2100'), ] operations = [ migrations.RemoveFie...
bengosney/rhgd3
gardens/migrations/0011_auto_20170806_1654.py
Python
gpl-3.0
613
# coding=utf-8 """Clip and mask a hazard layer.""" import logging from qgis.core import ( QgsGeometry, QgsFeatureRequest, QgsWkbTypes, QgsFeature, ) from safe.definitions.fields import hazard_class_field, aggregation_id_field from safe.definitions.hazard_classifications import not_exposed_class from...
ismailsunni/inasafe
safe/gis/vector/union.py
Python
gpl-3.0
12,362
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, determine_ext, mimetype2ext, ) class TweakersIE(InfoExtractor): _VALID_URL = r'https?://tweakers\.net/video/(?P<id>\d+)' _TEST = { 'url': 'https://tweakers.net/video/9926/new-nintendo-3ds-xl-op-alle-fr...
valmynd/MediaFetcher
src/plugins/youtube_dl/youtube_dl/extractor/tweakers.py
Python
gpl-3.0
1,742
# -*- Python -*- import os def get_required_attr(config, attr_name): attr_value = getattr(config, attr_name, None) if attr_value == None: lit_config.fatal( "No attribute %r in test configuration! You may need to run " "tests from your build directory or add this attribute " "to lit.site.cfg....
r0mai/metashell
3rd/templight/llvm/projects/compiler-rt/test/ubsan_minimal/lit.common.cfg.py
Python
gpl-3.0
1,525
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import print_function, unicode_literals import frappe from erpnext.accounts.doctype.cash_flow_mapper.default_cash_flow_mapper import DEFAULT_MAPPERS from .default_success_acti...
saurabh6790/erpnext
erpnext/setup/install.py
Python
gpl-3.0
4,976
#!/usr/bin/python # # test/filemanagertest.py unit test suite for snap.filemanager # # (C) Copyright 2011 Mo Morsi (mo@morsi.org) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, Version 3, # as published by the Free Software Foundation # #...
movitto/snap
test/filemanagertest.py
Python
gpl-3.0
4,521
import xml.sax import string class cDep(object): def __init__(self): self.srcId = None self.nTriggerPkt = None class cTarget(object): def __init__(self): self.destId = None self.nPkt = None self.nDependant = 0 self.Dep = list() # this will contain a list o...
indarsugiarto/Graceful_TG_SDP
QtForms/tgxmlParser.py
Python
gpl-3.0
2,868
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # 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', ...
dagwieers/ansible
lib/ansible/modules/cloud/kubevirt/kubevirt_rs.py
Python
gpl-3.0
6,766
## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2012 Raik Gruenberg & Johan Leckner ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either v...
ostrokach/biskit
Biskit/Model.py
Python
gpl-3.0
10,389
# # This file is part of postpic. # # postpic 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. # # postpic is distributed in the hope th...
skuschel/postpic
postpic/datahandling.py
Python
gpl-3.0
89,742
class Solution(object): def generateParenthesis(self, n): if n < 1: return [] parens=[] def generate(p, left, right): if left: generate(p + '(', left-1, right) if right > left: generate(p + ')', left, right-1) if not right: ...
ravyg/algorithms
python/22_generateParentheses.py
Python
gpl-3.0
529
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 ...
valesi/electrum
lib/bitcoin.py
Python
gpl-3.0
24,923
# -*- coding: utf-8 -*- # Put the string you want to manually translate in this file, like this: # # _('Something that is not translated in offcial Django distro.') # # When you run `django-admin.py makemessage -l <language-code>` command, it will create a message file: # # locale/<language-code>/LC_MESSAGES/django.po ...
abcsds/tw
tw/common/trans.py
Python
gpl-3.0
491
#written for http://codegolf.stackexchange.com/questions/79207/minimize-those-ones def find1(num): z = 10 y = 11 while True: if num%z==0: if num/2 <= y/2: print(num) break else: print(num/y+num%y) break z += 10 def main(): cases = [0,7,121,72,1000,2016] for th in range(0,5): find1(cas...
torchhound/projects
codeGolf/find1.py
Python
gpl-3.0
368
# Author: Monnappa K A # Email : monnappa22@gmail.com # Twitter: @monnappa22 # Description: Volatility plugin to detect different types of Process Hollowing import os import volatility.obj as obj import volatility.utils as utils from volatility.plugins.taskmods import PSList import volatility.plugins.vadinfo as vadin...
etz69/irhelper
vol_plugins/hollowfind.py
Python
gpl-3.0
18,182
#!/usr/bin/python # -*- coding: utf-8 -*- """ Miguel Suez Xve """ import sys from PyQt4 import QtGui """==================================================================""" """ CLASSE QUE DESENHA A JANELA """ """===============================================================...
miguel7penteado/python-qt4
6/6.py
Python
gpl-3.0
1,622
# from gimpfu import * # for assertions from arraymap import ArrayMap from pixmapMask import PixmapMask from bounds import Bounds ''' Design note: Pixmap subclasses ArrayMap to separate GIMP from ArrayMap's implementation of a pixmap. ArrayMap can be doctested without GIMP. Use of a Python array instead of GIMP i...
bootchk/pixmap
pixmap/pixmap.py
Python
gpl-3.0
6,404
# Defines some types import collections Movie = collections.namedtuple("Movie", ["movie_id", "collection_id", "is_renamed", "filename"]) Collection = collections.namedtuple("Collection", ["collection_id", "display_name", "extension", "path", "drop_path"]) # Full definitions are below (generated by specifying "verb...
mrculler/movieface
face_types.py
Python
gpl-3.0
4,296
# Authors: Simo Sorce <ssorce@redhat.com> # # Copyright (C) 2007 Red Hat # see file 'COPYING' for use and warranty information # # 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...
tbabej/freeipa
ipaserver/install/installutils.py
Python
gpl-3.0
48,113
######################################################################## # # # Cyprium is a multifunction cryptographic, steganographic and # # cryptanalysis tool developped by members of The Hackademy. # # French White Hat Hackers...
underloki/Cyprium
kernel/brainfuck.py
Python
gpl-3.0
32,233
# -*- coding: utf-8 -*- import os import urllib import urllib2 try: import simplejson as json except ImportError: import json import sys reload(sys) # Reload does the trick! sys.setdefaultencoding('UTF8') class PlanetDP(object): """ PlanetDP.org subtitle search and fetch class """ def __init__(s...
RecNes/service.subtitles.planetdp_by_recnes
service.py
Python
gpl-3.0
4,634
# Test enhancements related to descriptors and new-style classes from test_support import verify, vereq, verbose, TestFailed, TESTFN from copy import deepcopy def veris(a, b): if a is not b: raise TestFailed, "%r is %r" % (a, b) def testunop(a, res, expr="len(a)", meth="__len__"): if verbose: print "...
mancoast/CPythonPyc_test
cpython/221_test_descr.py
Python
gpl-3.0
81,788
# Copyright (c) 2014-2016 Cedric Bellegarde <cedric.bellegarde@adishatz.org> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
kerimlcr/ab2017-dpyo
ornek/lollypop/lollypop-0.9.229/src/widgets_indicator.py
Python
gpl-3.0
7,051
# -*- coding: utf-8 -*- # This file is part of the Calibre-Web (https://github.com/janeczku/calibre-web) # Copyright (C) 2018 lemmsh, cervinko, OzzieIsaacs # # 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 S...
idalin/calibre-web
cps/fb2.py
Python
gpl-3.0
2,739
import unittest import os import sys import time import sqlite3 import os.path as op from shutil import rmtree from functools import partial from kivy.clock import Clock main_path = op.dirname(op.dirname(op.abspath(__file__))) sys.path.append(main_path) from main import KrySA, ErrorPop from tasks.basic import Basic ...
KeyWeeUsr/KrySA
krysa/tests/test_tasks_basic_small.py
Python
gpl-3.0
3,977
from django.contrib import admin from .models import Post, Category, Tag class PostAdmin(admin.ModelAdmin): list_display = ['title', 'create_time', 'modified_time', 'category', 'author', 'views'] admin.site.register(Post, PostAdmin) admin.site.register(Category) admin.site.register(Tag)
francislpx/myblog
blog/admin.py
Python
gpl-3.0
297
# pylint: disable=invalid-name """Tests for cli repository set""" from robottelo.cli.factory import make_org from robottelo.cli.product import Product from robottelo.cli.repository_set import RepositorySet from robottelo.cli.subscription import Subscription from robottelo import manifests from robottelo.constants impor...
abalakh/robottelo
tests/foreman/cli/test_repository_set.py
Python
gpl-3.0
11,864
import bpy from ... base_types.node import AnimationNode from ... data_structures.splines.poly_spline import PolySpline class SplinesFromEdgesNode(bpy.types.Node, AnimationNode): bl_idname = "an_SplinesFromEdgesNode" bl_label = "Splines from Edges" def create(self): self.newInput("Vector List", "V...
Thortoise/Super-Snake
Blender/animation_nodes-master/nodes/spline/splines_from_edges.py
Python
gpl-3.0
752
""" Unit tests for the Soul 'Tale' mud driver, mudlib and interactive fiction framework Copyright by Irmen de Jong (irmen@razorvine.net) """ from __future__ import print_function, division, unicode_literals, absolute_import import unittest import tale import tale.base import tale.soul import tale.player ...
sils1297/Tale
tests/test_soul.py
Python
gpl-3.0
48,428
#!/usr/bin/env python import distutils.cmd import setuptools.command.build_py from setuptools import setup, find_packages class BuildWithLintCommand(setuptools.command.build_py.build_py): """Custom build command.""" def run(self): self.run_command('lint') setuptools.command.build_py.build_p...
andreea-lucau/python-patterns
setup.py
Python
gpl-3.0
821
#!/usr/bin/python3 import emoji import random; from .phraselist import PhraseList; #from ..data.teletokens import CID; from telegram import Bot,Update; class PiropoList(PhraseList): def __init__(self,cmdget = "", cmdadd="", filename ="", updater=...
grcanosa/my-telegram-bot
src/mybot/handler/piropos.py
Python
gpl-3.0
833
# -*- coding: utf8 -*- ''' Copyright 2009 Denis Derman <denis.spir@gmail.com> (former developer) Copyright 2011-2012 Peter Potrowl <peter017@gmail.com> (current developer) This file is part of Pijnu. Pijnu is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Lic...
peter17/pijnu
samples/wikiLine.py
Python
gpl-3.0
2,097
from setuptools import setup setup(name='pimad', version=open('VERSION').read(), description='Pimad is modeling adaptive dynamics', url='http://www.eleves.ens.fr/home/doulcier/projects/celladhesion/', author='Guilhem Doulcier', long_description=open('README').read(), author_email='g...
geeklhem/pimad
setup.py
Python
gpl-3.0
504
# -*- coding: utf-8 -*- """ Created on Wed Apr 22 09:37:42 2015 @author: raukonim """ from pylab import * from scipy.misc import lena from skimage.data import camera close("all") interactive(True) imfourier=fftshift(fft2(lena())) dimen=imfourier.shape x,y=meshgrid(linspace(-1,1,dimen[0]), linspace(-1,1,dimen[1]...
Raukonim/piva
prac7_2.py
Python
gpl-3.0
897
""" Powershell method to inject inline shellcode Builds a metasploit .rc resource file to psexec the powershell command easily Original concept from Matthew Graeber: http://www.exploit-monday.com/2011/10/exploiting-powershells-features-not.html Note: the architecture independent invoker was developed independentl...
Veil-Framework/Veil
tools/evasion/payloads/powershell/shellcode_inject/psexec_virtual.py
Python
gpl-3.0
9,237
""" Instructions on how to put together different kinds of lasagnas """ # builtins from collections import (namedtuple, defaultdict, OrderedDict) from functools import (lru_cache, partial) from weakref import WeakKeyDictionary # pip packages from itertools import chain import sys from theano import tensor as T import...
emillynge/lasagne-caterer
lasagnecaterer/recipe.py
Python
gpl-3.0
50,854
class VideoFile(object): def __init__(self, filename, position='random', vtype='file', startat=0): self.filename = filename self.position = str(position) self.vtype = vtype self.startat = startat def get_input_line(self): if self.vtype == 'file': if self.star...
skawouter/piwall-ffmpeg-scenegenerator
vatypes.py
Python
gpl-3.0
1,444
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # ardas documentation build configuration file, created by # sphinx-quickstart on Mon Mar 20 08:42:32 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
UMONS-GFA/ardas
docs/source/conf.py
Python
gpl-3.0
5,513
# 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 __future__ import absolute_import import click import json import os import releng_clobberer.cli import backend_c...
andrei987/services
src/releng_clobberer/releng_clobberer/__init__.py
Python
mpl-2.0
1,316
# coding: utf-8 from __future__ import unicode_literals import logging import pytest import requests LOG = logging.getLogger("fm.crashmanager.tests.bugproviders.rest") @pytest.mark.parametrize("method", ["delete", "get", "patch", "post", "put"]) def test_rest_bugproviders_no_auth(db, api_client, method): """mus...
MozillaSecurity/FuzzManager
server/crashmanager/tests/test_bugproviders_rest.py
Python
mpl-2.0
3,764
# -*- coding: utf-8 -*- # Generated by h2py from sensorlab-frame-format.h FIRST_BYTE = 0 LAST_BYTE = -1 NODE_ID_FIELD_LENGTH = 4 ENTITY_ID_FIELD_LENGTH = 1 EVENT_ID_FIELD_LENGTH = 1 PROPERTIES_COUNT_FIELD_LENGTH = 1 NAME_LENGTH_FIELD_LENGTH = 1 LINK_ID_FIELD_LENGTH = 1 FRAME_ID_FIELD_LENGTH = 1 FRAME_DATA_LENGTH_FIELD_...
glarue-ol/sensorlab-observer
observer/m_sensorlab/frame_format.py
Python
mpl-2.0
9,968
# # Newfies-Dialer License # http://www.newfies-dialer.org # # 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/. # # Copyright (C) 2011-2014 Star2Billing S.L. # # The primar...
tarikgwa/nfd
newfies/dialer_campaign/models.py
Python
mpl-2.0
26,728
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone import jsonfield.fields from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL)...
peterbe/headsupper
headsupper/base/migrations/0001_initial.py
Python
mpl-2.0
2,093
# -* 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/. from unittest.case import TestCase from gopythongo.utils.debversion import debian_substr_compar...
gopythongo/gopythongo
src/py/gopythongo/tests/debversion.py
Python
mpl-2.0
3,559
# Copyright (c) 2001-2014, 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 and open public tr...
Tisseo/navitia
source/jormungandr/jormungandr/scenarios/tests/journey_compare_tests.py
Python
agpl-3.0
42,334
from django.utils.translation import ugettext as _ from django.conf import settings from django.contrib.staticfiles.storage import staticfiles_storage from django.contrib.sites.shortcuts import get_current_site from .config import Config static_url = staticfiles_storage.url DEFAULT_THEMES = ( ('Dark', 'bingo/the...
allo-/django-bingo
bingo/context_processors.py
Python
agpl-3.0
2,452
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license import super...
vied12/superdesk
server/apps/validators/validators.py
Python
agpl-3.0
645
from django.core.management.base import BaseCommand, CommandError try: from django.contrib.auth import get_user_model # Django 1.5 except ImportError: from django_extensions.future_1_5 import get_user_model from django.contrib.sessions.models import Session import re SESSION_RE = re.compile("^[0-9a-f]{20,40}$...
shash/IconDB
django_extensions/management/commands/print_user_for_session.py
Python
agpl-3.0
1,826
# -*- coding: utf-8 -*- # # privacyIDEA is a fork of LinOTP # May 08, 2014 Cornelius Kölbel # License: AGPLv3 # contact: http://www.privacyidea.org # # Copyright (C) 2010 - 2014 LSE Leading Security Experts GmbH # License: AGPLv3 # contact: http://www.linotp.org # http://www.lsexperts.de # ...
privacyidea/privacyidea
privacyidea/lib/error.py
Python
agpl-3.0
5,601
""" ------------------------------ bior2_6 cwt by BEAR, 05/04/14 ------------------------------ """ import scipy as sp import numpy as np from scipy.signal import convolve #import pywt _scale_max = 1024 _scale_max = int(2**(sp.ceil(sp.log2(_scale_max)))) tmp = np.loadtxt('bior2.6_1024.txt') _x_bior2_6 = tmp[:,0] ...
bearicc/python-wavelet-transform
mycwt.py
Python
agpl-3.0
1,948
# -*- 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
taiga/base/api/settings.py
Python
agpl-3.0
8,478
# Copyright (C) 2019 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, models class AgreementServiceProfile(models.Model): _inherit = ['agreement.serviceprofile'] @api.model def create(self, vals): # If SP is created with a managed ...
OCA/vertical-isp
connector_equipment_service/models/agreement_serviceprofile.py
Python
agpl-3.0
7,516
from unittest import TestCase from mediawords.util.mail import ( Message, send_email, send_text_email, enable_test_mode as enable_mail_test_mode, disable_test_mode as disable_mail_test_mode, ) class TestMail(TestCase): """Class instead of a module in order to be able to toggle email's test mo...
berkmancenter/mediacloud
apps/common/tests/python/mediawords/util/test_mail.py
Python
agpl-3.0
1,300
# -*- coding: utf-8 -*- ################################################################################# # # OpenERP, Open Source Management Solution # Copyright (C) 2013 Julius Network Solutions SARL <contact@julius.fr> # # This program is free software: you can redistribute it and/or modify # it under th...
ncliam/serverpos
openerp/custom_modules/pos_shop/shop.py
Python
agpl-3.0
3,525
from uber.common import * from panels.models.attraction import * from panels.site_sections.attractions import _attendee_for_badge_num @all_renderable(c.STUFF) class Root: @renderable_override(c.STUFF, c.PEOPLE, c.REG_AT_CON) def index(self, session, filtered=False, message='', **params): admin_account...
magfest/panels
panels/site_sections/attractions_admin.py
Python
agpl-3.0
16,616
from __future__ import absolute_import, print_function, division import collections import logging from six.moves import StringIO import numpy as np import theano from theano.configparser import config import theano.tensor as T import theano.sandbox.cuda as cuda from theano.compile import Mode from .mode import get_m...
Weihonghao/ECM
Vpy34/lib/python3.5/site-packages/theano/compile/nanguardmode.py
Python
agpl-3.0
12,284
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2015-2018: Alignak team, see AUTHORS.txt file for contributors # # This file is part of Alignak. # # Alignak is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free So...
Alignak-monitoring/alignak
tests/test_end_parsing_types.py
Python
agpl-3.0
10,949
# -*- coding: utf-8 -*- # Copyright (C) 2014-present Taiga Agile LLC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later ver...
taigaio/taiga-back
taiga/events/management/commands/emit_notification_message.py
Python
agpl-3.0
1,345
# Copyright (c) 2014 by Ecreall under licence AGPL terms # available on http://www.gnu.org/licenses/agpl.html # licence: AGPL # author: Vincent Fretin, Amen Souissi import transaction from substanced.util import get_oid from dace.processinstance.event import DelayedCallback from dace.util import ( find_catalog...
ecreall/dace
dace/objectofcollaboration/system.py
Python
agpl-3.0
2,093
import celery import datetime from django.conf import settings from ..models import Comparison @celery.task() def purge(): epoch = datetime.datetime.utcnow() - datetime.timedelta( days=settings.TRYDIFFOSCOPE_RESULTS_RETENTION_DAYS, ) for x in Comparison.objects.filter(updated__lte=epoch): ...
lamby/trydiffoscope
trydiffoscope/compare/retention_policy/tasks.py
Python
agpl-3.0
333
""" THIS MODULE IS DEPRECATED IN FAVOR OF https://github.com/edx/xblock-lti-consumer Learning Tools Interoperability (LTI) module. Resources --------- Theoretical background and detailed specifications of LTI can be found on: http://www.imsglobal.org/LTI/v1p1p1/ltiIMGv1p1p1.html This module is based on the ve...
jolyonb/edx-platform
common/lib/xmodule/xmodule/lti_module.py
Python
agpl-3.0
37,872
"""ContactExchange notes and metadata. Revision ID: b61a489d34a4 Revises: 1829e53eba75 Create Date: 2019-06-22 10:28:13.775099 """ # revision identifiers, used by Alembic. revision = 'b61a489d34a4' down_revision = '1829e53eba75' from alembic import op from sqlalchemy.sql import column, table import sqlalchemy as sa...
hasgeek/funnel
migrations/versions/b61a489d34a4_contactexchange_notes_and_metadata.py
Python
agpl-3.0
1,494
from flask import Blueprint, request, jsonify import time app = Blueprint('helpscout_webhook', __name__) @app.route("/webhooks/helpscout_app_callback", methods=['POST']) def helpscout_webhook(): return jsonify({"html": "<b>test</b> test %s" % time.gmtime()})
cloudanswers/ccp-integrations
webhooks/helpscout.py
Python
agpl-3.0
265
from django.conf.urls import url from django.contrib.auth.decorators import login_required from django.views.generic.base import TemplateView from django.views.generic.detail import DetailView from django.views.generic.list import ListView from autostew_web_session.models.models import Track from autostew_web_session....
Autostew/autostew
autostew_web_session/urls.py
Python
agpl-3.0
1,673
############################################################################## # # OSIS stands for Open Student Information System. It's an application # designed to manage the core business of higher education institutions, # such as universities, faculties, institutes and professional schools. # The core ...
uclouvain/osis_louvain
assessments/templatetags/score_display.py
Python
agpl-3.0
1,668
# Copyright (c) 2001-2015, 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 and open public tr...
francois-vincent/navitia
source/navitiacommon/navitiacommon/utils.py
Python
agpl-3.0
3,570
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014, 2015 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from p...
vied12/superdesk
server/publicapi/tests/prepopulate_init_app_test.py
Python
agpl-3.0
2,453
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2015-2015: Alignak team, see AUTHORS.txt file for contributors # # This file is part of Alignak. # # Alignak is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free So...
ddurieux/alignak
test/test_star_in_hostgroups.py
Python
agpl-3.0
3,007
# -*- coding: utf-8 -*- ############################################################################### # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved # d$ # # This program is free software: you can redistribute it and/or modify #...
cherrygirl/micronaet7
production_line_statistic/statistic.py
Python
agpl-3.0
4,479
"""example_project 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') ...
Pierre-Sassoulas/django-survey
example_project/example_project/urls.py
Python
agpl-3.0
1,020