code
stringlengths
6
947k
repo_name
stringlengths
5
100
path
stringlengths
4
226
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
6
947k
# Generated by Django 2.2.11 on 2020-04-15 13:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coredata', '0022_add_new_visit_data'), ] operations = [ migrations.AlterField( model_name='combinedoffering', name=...
sfu-fas/coursys
coredata/migrations/0023_update_choices.py
Python
gpl-3.0
2,507
import math from math import sin as sin from math import cos as cos from .bearing import Bearing EARTH_RADIUS = 6371009.0 # in meters class Point(object): '''A point on the face of the earth''' def __init__(self, latitude, longitude): self._lat = latitude self._long = longitude @classm...
boatd/python-boatd
boatdclient/point.py
Python
gpl-3.0
5,843
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2016-2017 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in ...
mvo5/snapcraft
snapcraft/internal/indicators.py
Python
gpl-3.0
3,981
#!/usr/bin/env python3 """pgm2jack Convert a P1 pbm (monochome ascii, a.k.a. "Plain PBM") file to a jack array (nand2tetris). One word is 16bits in jack, so image width must be a multiple! Copyright 2013-2016 Gavin Stewart. You are required to give attribution to the author (Gavin Stewart) for any use of this prog...
gav-/Nand2Tetris-Games_and_Demos
bin/pbm2jack.image.py
Python
gpl-3.0
6,471
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-11 13:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vpn', '0045_auto_20160811_1212'), ] operations = [ migrations.CreateModel( ...
Oleh-Hrebchuk/OpenVPN-TryFalse
vpn/migrations/0046_grouppermisions.py
Python
gpl-3.0
624
# 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/JarbasAI
jarbas_skills/service_client_manager/__init__.py
Python
gpl-3.0
21,611
######################################################################### """ SQL TOOLS """ ######################################################################### """ SQL Tools Tools provided for parsing sql statements using regex. For each function, a precom...
AdamantLife/alcustoms
alcustoms/sql/tests/sqltest__depricated__.py
Python
gpl-3.0
8,816
# ScratchABit - interactive disassembler # # Copyright (c) 2015-2018 Paul Sokolovsky # # 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 ...
pfalcon/ScratchABit
plugins/cpu/x86_32_pymsasid.py
Python
gpl-3.0
816
# This file has to be run in pure Python mode! # Imports from the CO𝘕CEPT code from commons import * from species import Component from snapshot import save # Create stationary, homogeneous matter distribution, # perturbed with global, stationary sine wave along # the x-direction. w = user_params['_w'] ρ0 = user_pa...
jmd-dk/concept
test/fluid_pressure/gen_ic.py
Python
gpl-3.0
976
#!/usr/bin/env python # # Copyright 2011-2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your opt...
levelrf/level_basestation
grextras/python/qa_msg_passing.py
Python
gpl-3.0
4,308
# -*- mode: python; coding: utf-8 -*- # Copyright © 2016 by Jeffrey C. Ollie # # This file is part of ceph_exporter. # # ceph_exporter 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 #...
jcollie/ceph_exporter
ceph_exporter/ceph/metrics/ceph_objects_recovered.py
Python
gpl-3.0
908
# -*- coding: utf-8 -*- from __future__ import absolute_import from .base import BaseDomainNameScanQuery class SubdomainEnumerationQuery(BaseDomainNameScanQuery): """ This is an Elasticsearch query class for querying SubdomainEnumerationModel objects. """ @classmethod def get_queried_class(cls):...
lavalamp-/ws-backend-community
wselasticsearch/query/dns/enumeration.py
Python
gpl-3.0
1,098
# -*- coding: utf-8 -*- # wpcdesk - WordPress Comment Desktop # Copyright (C) 2012 Eka Putra - ekaputra@balitechy.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 ...
ekaputra07/wpcdesk
wpcdesk/comment_editor.py
Python
gpl-3.0
4,371
# Copyright (C) 2017, Isaac Porta "uny11" # # This file is part of SE-Bigdata. # # SE-Bigdata 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...
uny11/SE-Bigdata
bigdata.py
Python
gpl-3.0
43,107
""" Basic unit tests for the Job API """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" from os.path import dirname, join import pytest from io import StringIO from DIRAC.Interfaces.API.Job import Job from DIRAC.Core.Utilities.ClassAd....
ic-hep/DIRAC
src/DIRAC/Interfaces/API/test/Test_JobAPI.py
Python
gpl-3.0
3,051
""" 30 Oct 2013 """ from pytadbit.eqv_rms_drms import rmsdRMSD_wrapper from pytadbit.consistency import consistency_wrapper from itertools import combinations import numpy as np from math import pi, sqrt, cos, sin, acos def generate_sphere_points(n=100): """ Returns list of 3d coordinates of points on a sp...
yuanbaowen521/tadbit
_pytadbit/utils/three_dim_stats.py
Python
gpl-3.0
19,120
# -*- coding: utf-8 -*- """ Unit Tests ~~~~~~~~~~ Define TestCase as base class for unit tests. Ref: http://packages.python.org/Flask-Testing/ """ from flask.ext.testing import TestCase as Base, Twill from bambooapp import create_app from bambooapp.user import User, UserDetail, ADMIN, USER, ACTIVE fr...
gloaec/bamboo
tests/__init__.py
Python
gpl-3.0
2,708
import copy import math from pymio.material.material_list import MaterialList from pymio.material.phong_material import PhongMaterial from pymio.material.textured_phong_material import TexturedPhongMaterial from pymio.material.by_polygon_material_mapping import ByPolygonMaterialMapping from pymio.geometry.ind...
esetomo/mio
script/pymio/mmd/pmd/pmd_model.py
Python
gpl-3.0
28,845
""" This file is part of the Miracle Crafter Client. Miracle Crafter (C) 2014 The Miracle Crafter Team (see AUTHORS) Miracle Crafter 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...
JonasT/miraclecrafter-client
src/miraclecrafterclient/gui/versionconflictwindow.py
Python
gpl-3.0
1,781
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-22 10:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0017_auto_20160821_1833'), ] operations = [ migrations.AlterField( ...
niksoc/srmconnect
app/migrations/0018_auto_20160822_1047.py
Python
gpl-3.0
4,536
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Idea: Run or debug an experiment script using exactly the same code, i.e., for both tes...
psychopy/psychopy
psychopy/hardware/emulator.py
Python
gpl-3.0
12,656
class RepositoryCache: def __init__(self): self.data_dict = {} def add_data(self, keys, data): self.data_dict[keys, data] def clear(self): self.data_dict = {} def is_data_cached(self, keys): result = self.data_dict.has_key(keys) return result def get_data(...
jorgecasals/VoiceTrainingTool
Repositories/Cache.py
Python
gpl-3.0
420
import csv from util.helper import * import util.plot_defaults from matplotlib.ticker import MaxNLocator from pylab import figure parser = argparse.ArgumentParser() parser.add_argument('--file', '-f', help="data file directory", required=True, action="store...
XianliangJ/collections
ShrewAttack/plotter.py
Python
gpl-3.0
1,097
"""The base Controller API Provides the BaseController class for subclassing. """ from pylons.controllers import WSGIController from pylons.templating import render_mako as render from quanthistling.model.meta import Session #from quanthistling.lib.helpers import History from pylons import request, response, session...
FrankNagel/qlc
src/webapp/quanthistling/quanthistling/lib/base.py
Python
gpl-3.0
1,177
#0y0r1+syp0ry1+0267*y0r-7i+Psr+1ge
fixbugs/py-fixbugs-tools
test/75f6.py
Python
gpl-3.0
37
# -*- coding: utf-8 -*- # flake8: noqa import unittest import datetime import uuid from urllib.error import HTTPError from mock import Mock from mailman.email.message import Message from mailman.interfaces.archiver import ArchivePolicy #import kittystore.utils #from kittystore import get_store #from kittystore.cachi...
systers/hyperkitty
hyperkitty/tests/_test_caching.py
Python
gpl-3.0
9,926
from __future__ import print_function import numpy as np import os import sys import time import tensorflow as tf import load_datasets as ld import datetime as dt import ilt_two_layers as ilt from sklearn.metrics import mean_squared_error import tensorflow.python.client flags = tf.app.flags FLAGS = flags.FLAGS flags....
abezuglov/ANN
Storm-Surge/code/ilt_multi_gpu_feed.py
Python
gpl-3.0
12,586
# encoding: utf-8 """ Place holder for all workers """ from .integration_tester import IntegrationTestWorker from .db_writer import DatabaseWriterWorker from .deploy import BeforeDeploy, Deploy, Restart, GithubDeploy
adsabs/ADSDeploy
ADSDeploy/pipeline/workers.py
Python
gpl-3.0
216
#!/usr/bin/env python """Example of DocOpt Usage: docopt_example.py (-h | --help) docopt_example.py --version docopt_example.py aws [--az=<az>] [--sg=<sg>] [--ssh_user=<sshuser>] [--ssh_key=<sshkey>] [--instance_type=<instance_type>] [--ami_id=<ami_id>] [--roles=<roles> ...] docopt_example.py azure [--roles=<...
wcannon/ranked-choice-voting
docopt_example.py
Python
gpl-3.0
1,073
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Describes the Flow of an experiment """ from psychopy.constants import FOREVER from xm...
psychopy/psychopy
psychopy/experiment/routines/_base.py
Python
gpl-3.0
27,908
""" Functions for creating maps from tabular files with lat/lng columns. Incudes creation of DataTable, Layer, and LatLngTableMappingRecord objects """ import datetime import json import sys import traceback import uuid # Postgres import psycopg2 from geonode.contrib.datatables.db_helper import get_datastore_connectio...
cga-harvard/cga-worldmap
geonode/contrib/datatables/utils_lat_lng.py
Python
gpl-3.0
18,580
import smtplib import base64 from email.MIMEText import MIMEText from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.MIMEBase import MIMEBase from email import encoders from __builtin__ import file import flogger_settings import os import datetime def email_msg(sender, receive...
tobiz/OGN-Flight-Logger_V3
flogger_email_msg.py
Python
gpl-3.0
1,212
from bases import * from inanimate import Bullet class Player(AnimateObject): def __init__(self, x=0, y=0, hits=MAX_HEALTH, timer=TIMER, damage=1, score=0): super(Player, self).__init__(x, y, hits, timer) self.damage = damage self.score = score def shoot(self): ...
elenaod/PythonScrollingShooter
player.py
Python
gpl-3.0
743
""" InaSAFE Disaster risk assessment tool developed by AusAid - **GUI Keywords 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; ei...
ingenieroariel/inasafe
safe_qgis/keywords_dialog.py
Python
gpl-3.0
24,200
""" The network analyzer records the coherent response of the signal at the port :code:`input` to a sinusoidal excitation of variable frequency sent to the output selected in :code:`output_direct`. .. note:: If :code:`output_direct='off'`, another module's input can be set to :code:`networkanalyzer` to test ...
lneuhaus/pyrpl
pyrpl/widgets/module_widgets/na_widget.py
Python
gpl-3.0
15,889
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + import unittest from mantid.py3compat import...
mganeva/mantid
scripts/test/Muon/utilities/thread_model_test.py
Python
gpl-3.0
5,303
# # lobbyists.py - Parse and import U.S. Senate LD-1/LD-2 XML documents. # Copyright (C) 2008 Drew Hess <dhess@bothan.net> # # 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 t...
dhess/lobbyists
lobbyists/lobbyists.py
Python
gpl-3.0
27,077
""" Oppia backup-format export for courses """ from __future__ import unicode_literals import zipfile from StringIO import StringIO from django.template.loader import render_to_string from lxml import etree from pathlib2 import Path from orb.courses.export import CourseExport from orb.courses.export import format_p...
mPowering/django-orb
orb/courses/oppia_export.py
Python
gpl-3.0
4,264
# coding=utf-8 # Author: adaur <adaur.underground@gmail.com> # Rewrite: Dustyn Gibson (miigotu) <miigotu@gmail.com> # URL: https://sickrage.github.io # # This file is part of SickRage. # # SickRage is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publishe...
kingmotley/SickRage
sickbeard/providers/xthor.py
Python
gpl-3.0
7,253
from django.conf.urls import patterns, url urlpatterns = patterns('tendenci.apps.dashboard', url(r'^$', 'views.new', name="dashboard"), url(r'^new/$', 'views.new', name="dashboard-new"), url(r'^old/$', 'views.index', name="dashboard-old"), url(r'^customize/$', 'views.customize', name="dashboard_customi...
alirizakeles/tendenci
tendenci/apps/dashboard/urls.py
Python
gpl-3.0
328
# This file is part of Indico. # Copyright (C) 2002 - 2017 European Organization for Nuclear Research (CERN). # # Indico 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 (a...
nop33/indico-plugins
chat/indico_chat/blueprint.py
Python
gpl-3.0
2,683
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import json from frappe import _ from frappe import utils from frappe.model.document import Document from frappe.utils import now, time_di...
ebukoz/thrive
erpnext/support/doctype/issue/issue.py
Python
gpl-3.0
16,641
# -*- coding: utf-8 *-* # Copyright (c) 2013 Tisserant Pierre # # This file is part of Dragon dice simulator. # # Dragon dice simulator 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 ve...
TheLazyHase/dragon_dice_simulator
business/dice/face/standard/group_id.py
Python
gpl-3.0
1,018
########################################################## #07:10 PM #Thursday, June 11, 2016 (GMT+5:30) #@ author : VAIBHAV GUPTA(15454) ######################################################### # Rock-paper-scissors-lizard-Spock template import simplegui # helper functions def name_to_number(name): # de...
vaibhavg2896/PythonSimpleGUI
Rock-paper-scissor-lizard-Spock.py
Python
gpl-3.0
2,546
#!/usr/bin/env python """ An alarm can be executed when an error condition occurs Author: Elias Bakken Redeem 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 opti...
intelligent-agent/redeem
redeem/Alarm.py
Python
gpl-3.0
6,796
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/bjornl/ros/workspaces/bjorn_ws/install/include".split(';') if "/home/bjornl/ros/workspaces/bjorn_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ') PKG...
blutjens/perc_neuron_ros_ur10
pn_ros/bjorn_ws/build/rosserial/rosserial_mbed/catkin_generated/pkg.installspace.context.pc.py
Python
gpl-3.0
511
#!/usr/bin/python # browsershots.org - Test your web design in different browsers # Copyright (C) 2007 Johann C. Rocholl <johann@browsershots.org> # # Browsershots 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 Foundatio...
mintuhouse/shotfactory
build/scripts-2.6/browsershot.py
Python
gpl-3.0
2,045
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class PortalalumnoConfig(AppConfig): name = 'portalalumno'
Etxea/gestioneide
portalalumno/apps.py
Python
gpl-3.0
164
""" Custom-written pure python meterpreter/bind_tcp stager """ from tools.evasion.evasion_common import evasion_helpers from tools.evasion.evasion_common import encryption class PayloadModule: def __init__(self, cli_obj): # required options self.description = "pure windows/meterpreter/bind_tcp...
Veil-Framework/Veil
tools/evasion/payloads/python/meterpreter/bind_tcp.py
Python
gpl-3.0
6,026
""" For loops iterate over lists prints: dog is a mammal cat is a mammal mouse is a mammal """ for animal in ["dog", "cat", "mouse"]: # You can use format() to interpolate formatted strings print("{} is a mammal".format(animal)) """ "range(number)" returns an iterable of numbers from zero to the gi...
dade22/HelloPython
samples/collections/ex_for_loops.py
Python
gpl-3.0
2,308
import sys import json from datetime import timedelta, tzinfo from io import BytesIO from yledl import execute_action, StreamFilters, IOContext, StreamAction, RD_SUCCESS from yledl.io import random_elisa_ipv4 from yledl.http import HttpClient from yledl.titleformatter import TitleFormatter # Context manager for captu...
aajanki/yle-dl
tests/utils.py
Python
gpl-3.0
2,189
from test_health_icd10 import suite
kret0s/gnuhealth-live
tryton/server/trytond-3.8.3/trytond/modules/health_icd10/tests/__init__.py
Python
gpl-3.0
36
''' Script used to test bucketlistitem response and request.''' from rest_framework.authtoken.models import Token from rest_framework.test import APIClient from django.core.urlresolvers import reverse_lazy from rest_framework import status from rest_framework.test import APITestCase from django.contrib.auth.models imp...
andela-sjames/django-bucketlist-application
bucketlistapp/bucketlistapi/tests/test_bucketlistitems.py
Python
gpl-3.0
1,569
import collections from bx.intervals import * from qcmodule import BED '''Compare given bed entry to reference gene model''' def getCDSExonFromFile(bedfile): '''Only Extract CDS exon regions from input bed file (must be 12-column).''' ret_lst=[] for f in open(bedfile,'r'): f = f.strip().split() chrom = f[0...
dnanexus/rseqc
rseqc/lib/qcmodule/annoGene.py
Python
gpl-3.0
9,403
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
thica/ORCA-Remote
src/ORCA/utils/Platform/generic/generic_GetIPAddressV6.py
Python
gpl-3.0
2,158
#!/usr/bin/python # # weewx extension service to collect Loop & Archive packets and share them with other processes # via a python Multiprocessing connection # # Copyright (c) 2015 William B. Phelps <wm@usa.net> # See the file LICENSE.txt for your full rights. import weewx import weewx.engine import weeutil.weeutil f...
wbphelps/WxData
wxdata.py
Python
gpl-3.0
5,036
#!/usr/bin/python # -*- coding: cp1252 -*- # #NURBS_fittin_by_Biarc_curves #Programmer: Christian Kohlöffel #E-mail: n/A # #Copyright 2008 Christian Kohlöffel # #Distributed under the terms of the GPL (GNU Public License) # #dxf2gcode is free software; you can redistribute it and/or modify #it under the terms of th...
workflo/dxf2gcode
python_examples/NURBS_fitting_by_Biarc_curves.py
Python
gpl-3.0
69,179
import sys from sim import Sim from node import Node from link import Link from transport import Transport from tcp import TCP from network import Network import optparse import os import subprocess class AppHandler(object): def __init__(self,filename, directory): self.filename = filename self.di...
joe-eklund/cs460
bene/lab2/src/transfer.py
Python
gpl-3.0
4,724
from __future__ import unicode_literals import os from twisted.trial import unittest example_file_path = os.path.join( os.path.dirname(os.path.abspath(__file__)), os.path.pardir, os.path.pardir, "share", "example-tilde.ini", ) from tilde.loader import load_config from tilde.commands import ubun...
veloutin/tilde
tilde/tests/test_example_config.py
Python
gpl-3.0
1,068
# -*- coding: utf-8 -*- from flask import Flask; app = Flask(__name__) @app.route('/') def hello_wold(): return 'Hola, ingenieros :D' if __name__ == '__main__': app.run()
MauricioAcosta/Aprendiendo_Python
servidor/main.py
Python
gpl-3.0
182
from collections import OrderedDict from purl import URL as PURL def URL(base, path, segments=None, defaults=None): """ URL segment handler capable of getting and setting segments by name. The URL is constructed by joining base, path and segments. For each segment a property capable of getting and se...
dr4ke616/LazyTorrent
application/lib/the_pirate_bay/utils.py
Python
gpl-3.0
2,327
#!/usr/bin/env python3 import random import re import requests import unicodedata import sys import os import pkg_resources import config MAX_SONG_TITLE_LENGTH = 35 is_closing = False """This flag is set to True when the application begins to shut down. Parts of the program that handle events might use this flag ...
quasoft/adblockradio
adblockradio/utils.py
Python
gpl-3.0
3,350
''' File.zipExtract(strZipfile, strDirectory) // returns # of extracted files or false on error File.zipList() //returns entries File.zipList(true) //returns only files, not folders File.zipCreate(strDirectory) ''' import os import zipfile from io import StringIO def zipfile_list( filename, includeFolders=False): ...
downpoured/lnzscript
lnzscript/util/python/zipfile_wrapper.py
Python
gpl-3.0
3,191
# -*- coding: utf-8 -*- import sqlite3 import os from logger import log from collections import OrderedDict as odi CREATE, INSERT, UPDATE, DELETE, SCRIPT, SELECT = range(6) SQL_CREATE = 'sql_create.sql' class Sqlcon(object): def __new__(cls, action, db, sql): if not action: return None ...
tedlaz/pyted
pykoinoxrista/u_dbcon.py
Python
gpl-3.0
5,047
#!/usr/bin/env python """ MaTiSSe.py, Markdown To Impressive Scientific Slides """ from __future__ import print_function import argparse import os import sys from matisse_config import MatisseConfig from presentation import Presentation __appname__ = "MaTiSSe.py" __description__ = "MaTiSSe.py, Markdown To Impressive S...
szaghi/MaTiSSe
release/MaTiSSe-1.2.0/matisse/matisse.py
Python
gpl-3.0
4,821
from qtpy.QtCore import Qt, QPoint, QObject, Signal from qtpy.QtGui import QColor from qtpy.QtWidgets import QWidget, QVBoxLayout, QSizePolicy, QFrame, QLabel import html class ErrorPopup(QWidget): error_template = ( "<html>" "<table style='background-color: #ffdfdf;'width='100%%'>" "<tr><...
joakim-hove/ert
ert_gui/ertwidgets/validationsupport.py
Python
gpl-3.0
3,928
#!/usr/bin/env python2 #-*- coding: utf-8 -*- __author__ = "Shrinidhi Rao" __license__ = "GPL" __email__ = "shrinidhi666@gmail.com" import os import sys import pwd import time import socket import subprocess import simplejson rbhus_main_path = os.sep.join(os.path.abspath(__file__).split(os.sep)[0:-3]) sys.path.appen...
shrinidhi666/rbhus
etc/blend_lin/default.py
Python
gpl-3.0
5,828
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ default_lead_sources = ["Existing Customer", "Reference", "Advertisement", "Cold Calling", "Exhibition", "Supplie...
manqala/erpnext
erpnext/setup/setup_wizard/install_fixtures.py
Python
gpl-3.0
14,628
from qit.base.bool import Bool from qit.base.struct import Struct from qit.domains.domain import Domain from qit.domains.iterator import Iterator from qit.base.function import Function from qit.functions.int import multiplication_n class Product(Domain): """ Cartesian product of domains """ def __init__(self...
spirali/qit
src/qit/domains/product.py
Python
gpl-3.0
3,854
lista = [1, 3, 5, 20, 50, 100] print([x**2 for x in lista]) print([x for x in lista if x < 50 and x > 2])
pacocampo/Backend
semana2/list.py
Python
gpl-3.0
105
import clr clr.AddReference("System") clr.AddReference("System.Core") clr.AddReference("Linx") clr.AddReference("MetaTweetObjectModel") clr.AddReference("MetaTweetFoundation") from System import * from System.Collections.Generic import * from XSpect import * from XSpect.MetaTweet import * from XSpect.MetaTweet.Modules ...
takeshik/metatweet-old
resource/configuration/global.py
Python
gpl-3.0
522
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (C) 2005-2007 Carabos Coop. V. All rights reserved # Copyright (C) 2008-2017 Vicent Mas. All rights reserved # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License...
ankostis/ViTables
examples/scripts/MDobjects.py
Python
gpl-3.0
2,868
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
ltb-project/white-pages
docs/conf.py
Python
gpl-3.0
5,250
#!/usr/bin/python """sc_initkey.py: utility script forS-CRIB Scramble device to format initialisation key it requires input string of 40 hex characters - project sCribManager - Python.""" ''' @author: Dan Cvrcek @copyright: Copyright 2013-14, Smart Crib Ltd @credits: Dan Cvrcek @license: GPL version 3 (e.g., https:/...
smartcrib/password-scrambler-ws
ScramblerTools/sc_initkey.py
Python
gpl-3.0
1,190
""" This script computes correlation function multipoles from given files of galalxy and random catalgues python3 compute_corr_multipole.py Args: n: index of mock Options: --igalaxies=1:1 --irandoms=1:1 Input: mocks/mock_<n>.txt randoms/random_<n>.txt File format is: x y z in ea...
junkoda/mockgallib
script/compute_corr_multipole.py
Python
gpl-3.0
3,670
# Generated by Django 2.2.15 on 2021-10-07 12:02 import django.core.files.storage from django.db import migrations, models import django.db.models.deletion import ra.models class Migration(migrations.Migration): dependencies = [ ('coredata', '0025_update_choices'), ('ra', '0016_add_drafts'), ...
sfu-fas/coursys
ra/migrations/0017_add_processor_field.py
Python
gpl-3.0
636
""" StorageManagementDB is a front end to the Stager Database. There are five tables in the StorageManagementDB: Tasks, CacheReplicas, TaskReplicas, StageRequests. The Tasks table is the place holder for the tasks that have requested files to be staged. These can be from different systems and have differe...
yujikato/DIRAC
src/DIRAC/StorageManagementSystem/DB/StorageManagementDB.py
Python
gpl-3.0
58,271
import os from setuptools import setup from setuptools import find_packages version_file = 'VERSION.txt' version = open(version_file).read().strip() description_file = 'README.txt' description = open(description_file).read().split('\n\n')[0].strip() description = description.replace('\n', ' ') long_description_file =...
pombreda/ximenez
setup.py
Python
gpl-3.0
1,457
""" Copyright 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GNU Radio OpenCV Companion 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) a...
atzengin/OCC
occ/gui/Block.py
Python
gpl-3.0
8,149
# -*- 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/formulaParser.py
Python
gpl-3.0
2,616
from django.apps import AppConfig class MaintenancemodeAppConfig(AppConfig): name = "oioioi.maintenancemode"
sio2project/oioioi
oioioi/maintenancemode/apps.py
Python
gpl-3.0
115
import urllib, json, urllib2 import pprint url = "https://data.ilri.org/portal/api/3/action/package_list" # url = "http://127.0.0.1:5000/api/3/action/package_list" response = urllib.urlopen(url) data = json.loads(response.read()) for dataset in data["result"]: print dataset try: url = "https://data.ilr...
ilri/ckanext-dataportal
ckanext-ilrimetadata/update_product.py
Python
gpl-3.0
1,576
from django.template import Context, loader from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.views.decorators import cache from workflow.ticket import forms from workflow.ticket import models from workflow.ticket import tickettree import pp...
shlomimatichin/workflow
workflow/ticket/views.py
Python
gpl-3.0
10,924
"""Regularizations. Each regularization method is implemented as a subclass of :class:`Regularizer`, where the constructor takes the hyperparameters, and the `__call__` method constructs the symbolic loss expression given a parameter. These are made for use with :meth:`Model.regularize`, but can also be used directly...
robertostling/bnas
bnas/regularize.py
Python
gpl-3.0
1,950
print('Simple Assignment') shoplist = ['apple', 'mango', 'carrot', 'banana'] # mylist is just another name pointing to the same object! mylist = shoplist # I purchased the first item, so I remove it from the list del shoplist[0] print('shoplist is', shoplist) print('mylist is', mylist) # Notice that both shoplist and...
SyrakuShaikh/python
learning/a_byte_of_python/ds_reference.py
Python
gpl-3.0
712
from distutils.core import setup from ripwrap import __VERSION__ setup( name = 'ripwrap', version = __VERSION__, description = 'A wrapper for ReSTinPeace, for Django applications.', long_description = open('README').read() author = 'P.C. Shyamshankar', packages = ['ripwrap'], url = 'http...
sykora/django-ripwrap
setup.py
Python
gpl-3.0
712
#!/usr/bin/python3 # -*- coding: utf-8 -*- import urllib.request import time from bs4 import BeautifulSoup def main(): url = 'http://www.pokemonstore.co.kr/shop/main/index.php' print('For exit, press ctrl + c') while(True): try: with urllib.request.urlopen(url) as f: i...
munhyunsu/Hobby
TestResponse/testresponse.py
Python
gpl-3.0
878
# SnippetViewPlugin - Provides a templated/abbreviation expansion mechanism for # the editor. # # Copyright (C) 2006-2010 Frank Hale <frankhale@gmail.com> # # ##sandbox - irc.freenode.net # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # a...
frankhale/nyana
nyana/plugins/SnippetViewPlugin.py
Python
gpl-3.0
18,007
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # 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 ...
ppasq/geonode
geonode/base/forms.py
Python
gpl-3.0
17,648
import BaseHTTPServer, SimpleHTTPServer import subprocess, shlex import ssl import time import os from optparse import OptionParser port = 4443 execfile('./variables.py') parser = OptionParser() parser.add_option('-p', "--port", dest='port', help='Run HTTPS server on PORT', metavar='PORT') (options, args) = parser....
SelfKit/SelfKit
web/server.py
Python
gpl-3.0
2,036
''' Created on Nov 7, 2012 @author: mmornati ''' from django.conf.urls.defaults import patterns, include import logging from webui.plugins import utils logger = logging.getLogger(__name__) urlpatterns = patterns('', ) installed_plugins = utils.installed_plugins_list() for plugin in installed_plugins: try: ...
kermitfr/kermit-webui
src/webui/plugins/urls.py
Python
gpl-3.0
517
from sigma.core.permission import check_ban import discord async def unban(cmd, message, args): channel = message.channel if args: user_q = args[0] if message.author is not user_q: if check_ban(message.author, channel): ban_list = await message.guild.bans() ...
valeth/apex-sigma
sigma/plugins/moderation/punish/unban.py
Python
gpl-3.0
1,449
__author__ = 'pabloholanda' import settings def trava(vp): if -4 <= vp <= 4: return vp elif vp > 4.00: return 4 elif vp < -4: return -4.00 def trava_alto_nivel(vp): if settings.tanque['pvtq_1'] > 28 and vp > 3.15: return 3.15 else: return vp def trava_mu...
mribeirodantas/newpump
travas.py
Python
gpl-3.0
848
#!/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 of the License, or # (at...
BTA-BATA/electrum-bta-master
lib/wallet.py
Python
gpl-3.0
72,921
""" ================== tao.ui_modules ================== Helper class to extension UI modules """ from django.conf import settings from tao.record_filter_form import RecordFilterForm from tao.output_format_form import OutputFormatForm from tao.sql_job_form import SQLJobForm from tao.models import Simulation, GalaxyMod...
IntersectAustralia/asvo-tao
web/tao/ui_modules.py
Python
gpl-3.0
4,349
from tkinter import * import random import time class Game: def __init__(self): self.tk = Tk() self.tk.title("Game") self.tk.resizable(0, 0) self.tk.wm_attributes("-topmost", 1) self.canvas = Canvas(self.tk, width=500, height=500, bd=0, highlightthickness=0)...
amosnier/python_for_kids
book_code/appendixb/ch16-checkerboard.py
Python
gpl-3.0
1,319
from django.conf.urls import url from django.contrib.auth.models import User from tastypie import fields from tastypie.resources import ModelResource from tastypie.utils import trailing_slash from vegancity import models from .search import master_search from tastypie.api import Api def build_api(): v1_api = Api...
vegphilly/vegphilly.com
vegancity/api.py
Python
gpl-3.0
4,516
#!/usr/bin/python from __future__ import print_function import numpy as np from sklearn.decomposition import PCA import theano import theano.tensor as T class SMACOF(): """ Multidimensional Scaling Multidimensional Scaling using the "Scaling by MAjorizing a COmplicated Function" (SMACOF) alghorithm ...
Haddy1/ClusterMDS
lib/libSMACOF_theano.py
Python
gpl-3.0
10,508
#!/usr/bin/env python '''A parameter sweep that varies g_AMPA_total and pAMPA_sigma. 2D parameter sweep that simulates a stationary bump and records spiking activity. ''' from __future__ import absolute_import, print_function, division import numpy as np from grid_cell_model.submitting.noise import SubmissionParser f...
MattNolanLab/ei-attractor
grid_cell_model/simulations/007_noise/submit_sweep_ei_widths.py
Python
gpl-3.0
2,950
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of Cournal. # Copyright (C) 2012 Fabian Henze # # Cournal 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, o...
KaiQ/cournal
cournal/mainwindow.py
Python
gpl-3.0
28,342