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
########################################################################## # Copyright (C) 2009 - 2014 Huygens ING & Gerbrandy S.R.L. # # This file is part of bioport. # # bioport 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 ...
jellegerbrandy/bioport-site
bioport/mail_validation.py
Python
gpl-3.0
1,103
import urllib,urllib2,re,cookielib,string,os,sys import xbmc, xbmcgui, xbmcaddon, xbmcplugin from resources.libs import main #Mash Up - by Mash2k3 2012. from t0mm0.common.addon import Addon from resources.universal import playbackengine, watchhistory addon_id = 'plugin.video.movie25' selfAddon = xbmcaddon.Addon(id=ad...
marduk191/plugin.video.movie25
resources/libs/sports/skysports.py
Python
gpl-3.0
35,627
# coding=utf-8 # Author: Daniel Heimans # # URL: https://sickchill.github.io # # This file is part of SickChill. # # SickChill 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...
eleonrk/SickRage
sickbeard/providers/btn.py
Python
gpl-3.0
12,849
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.core.exceptions import ObjectDoesNotExist def migrate_old_permissions_to_new_ones(apps, schema_editor): """Idempotent function to migrate the old permissions to the new ones. Old custom content...
thesgc/chembiohub_ws
cbh_core_model/migrations/0031_auto_20160112_0307.py
Python
gpl-3.0
2,204
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2016 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
Aurous/Magic-Discord-Bot
discord/opus.py
Python
gpl-3.0
8,162
# -*- coding: utf-8 -*- # -- plugin.py # Functions required by every plugin # Copyright © 2010 Eric Bourry & Julien Flaissy # This file is part of PSSI (Python Simple Smartcard Interpreter). # PSSI is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
FeitianSmartcardReader/pssi
pssi/plugins/emv/plugin.py
Python
gpl-3.0
1,019
# coding=utf-8 """ Module to generate impact report using QgsComposition. 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 version 2 ...
easmetz/inasafe
safe/report/impact_report.py
Python
gpl-3.0
24,112
#!/usr/bin/env python """\ Upload a file to Smoothie over the network """ from __future__ import print_function import sys import argparse import socket import os # Define command line argument interface parser = argparse.ArgumentParser(description='Upload a file to Smoothie over network.') parser.add_argument('file',...
arthurwolf/fabrica
smoothie-upload.py
Python
gpl-3.0
2,305
from gi.repository import Gtk from gi.repository import GObject class BorderBox (Gtk.Alignment): def __init__ (self, widget=None, top=False, right=False, bottom=False, left=False): GObject.GObject.__init__(self) self.connect("draw", self._onExpose) if wi...
oldstylejoe/pychess-timed
lib/pychess/widgets/BorderBox.py
Python
gpl-3.0
2,441
# THIS FILE IS PART OF THE CYLC SUITE ENGINE. # Copyright (C) 2008-2019 NIWA & British Crown (Met Office) & Contributors. # # 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 th...
matthewrmshin/cylc
doc/src/conf.py
Python
gpl-3.0
5,004
# -*- coding: utf-8 -*- # # This file is part of Lumberjack. # Copyright 2014 CERN. # # Lumberjack is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) an...
jmacmahon/lumberjack
lumberjack/actions.py
Python
gpl-3.0
7,907
# coding=utf-8 """Test for GIS utilities functions.""" import unittest import numpy from os.path import join # noinspection PyUnresolvedReferences import qgis # pylint: disable=unused-import from PyQt4.QtCore import QVariant from os.path import join from safe.utilities.gis import ( layer_attribute_names, is_...
Samweli/inasafe
safe/utilities/test/test_gis.py
Python
gpl-3.0
13,312
#!/usr/bin/env python3 # Copyright (c) 2008-11 Qtrac Ltd. All rights reserved. # This program or module 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) an...
therealjumbo/python_summer
py31eg/grepword-m.py
Python
gpl-3.0
4,049
# 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 from datetime import datetime import wsme.types class Machine(wsme.types.Base...
hwine/build-relengapi
relengapi/blueprints/slaveloan/rest.py
Python
mpl-2.0
3,346
import time from datetime import timedelta from typing import List from treeherder.config import settings from treeherder.perf.sheriffing_criteria import ( EngineerTractionFormula, FixRatioFormula, CriteriaTracker, TotalAlertsFormula, ) from treeherder.perf.sheriffing_criteria import criteria_tracking...
jmaher/treeherder
treeherder/perf/management/commands/compute_criteria_formulas.py
Python
mpl-2.0
5,956
try: import ossaudiodev except: print "ossaudiodev not installed" ossaudiodev = None try: import FFT except: print "FFT not installed" ossaudiodev = None try: import Numeric except: print "Numeric not installed" ossaudiodev = None import struct, math, time, threading, copy def add(s...
emilydolson/forestcat
pyrobot/tools/sound.py
Python
agpl-3.0
6,306
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Adrien Chardon # @Date: 2014-08-21 18:54:29 # @Last Modified by: Adrien Chardon # @Last Modified time: 2014-12-04 19:41:49 # This file is part of iTeam.org. # Copyright (C) 2014 Adrien Chardon (Nodraak). # # iTeam.org is free software: you can redistribute i...
iTeam-org/iteam-site
iTeam/events/forms.py
Python
agpl-3.0
3,827
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt'), encoding='utf-8') as f: CHANGES = f.read() setup( name='sloth', v...
Lvl4Sword/Acedia
setup.py
Python
agpl-3.0
1,191
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-04-28 15:02 from __future__ import unicode_literals import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0106_auto_20170428_1119'), ] operations = [ ...
uclouvain/OSIS-Louvain
base/migrations/0107_learningunit_learning_container.py
Python
agpl-3.0
577
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hansards', '0001_initial'), ('core', '0001_initial'), ] operations = [ migrations.CreateModel( name='Com...
litui/openparliament
parliament/committees/migrations/0001_initial.py
Python
agpl-3.0
5,619
# Lint as: python3 """The abstract robot class.""" import abc from typing import Optional, Sequence # Action names for robots operating kinematically. LINEAR_VELOCITY = "linear_velocity" ANGULAR_VELOCITY = "angular_velocity" class RobotBase(metaclass=abc.ABCMeta): """The base class for all robots used in the mobi...
nrz/ylikuutio
external/bullet3/examples/pybullet/gym/pybullet_envs/minitaur/robots/robot_base.py
Python
agpl-3.0
4,709
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
xdevelsistemas/taiga-back-community
taiga/projects/attachments/__init__.py
Python
agpl-3.0
1,012
# Generated by Django 2.0.6 on 2018-08-31 10:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('iati', '0030_auto_20180831_1001'), ] operations = [ migrations.RemoveField( model_name='resultindicatorperiodtargetdimension', ...
openaid-IATI/OIPA
OIPA/iati/migrations/0031_remove_resultindicatorperiodtargetdimension_result_indicator_period.py
Python
agpl-3.0
372
""" Common test utilities for courseware functionality """ from abc import ABCMeta, abstractmethod from datetime import datetime import ddt from mock import patch from lms.djangoapps.courseware.url_helpers import get_redirect_url from student.tests.factories import AdminFactory, UserFactory, CourseEnrollmentFactory f...
rhndg/openedx
lms/djangoapps/courseware/testutils.py
Python
agpl-3.0
7,021
from flask import Flask from flask import request from flask.ext.sqlalchemy import SQLAlchemy import datetime import uuid as uid import sys import requests import urllib2 GOIP_SERVER_IP = '127.0.0.1' #'172.248.114.178' TELEPHONY_SERVER_IP = '127.0.0.1:5000/sms/in' sys.path.append('/home/csik/public_python/sms_...
rootio/rootio_telephony
sms_utils/sms_server.py
Python
agpl-3.0
3,873
# Generated by Django 3.0.4 on 2020-12-04 21:24 from django.db import migrations import pages.models import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('pages', '0010_auto_20201204_1520'), ] operations = [ ...
Connexions/openstax-cms
pages/migrations/0011_auto_20201204_1524.py
Python
agpl-3.0
1,093
# Copyright 2019 Open Source Integrators # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from . import models
OCA/stock-logistics-warehouse
stock_request_picking_type/__init__.py
Python
agpl-3.0
133
# -*- coding: utf-8 -*- ################################################################################# # Autor: Mikel Martin (mikel@zhenit.com) # Copyright (C) 2012 ZhenIT Software (<http://ZhenIT.com>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify ...
odoousers2014/LibrERP
account_invoice_merge/invoice.py
Python
agpl-3.0
4,433
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
core/extract/scaling.py
Python
agpl-3.0
3,571
import unittest from datetime import datetime, timedelta from apps.rules.routing_rules import Weekdays class WeekdaysTestCase(unittest.TestCase): def test_is_valid_schedule(self): self.assertTrue(Weekdays.is_valid_schedule(["MON", "TUE"])) self.assertFalse(Weekdays.is_valid_schedule(["MON", "SRC"...
superdesk/superdesk-core
tests/rules/weekdays_test.py
Python
agpl-3.0
797
#!/usr/bin/env python # -*- Mode: Python; py-indent-offset: 4 -*- # vim: tabstop=4 shiftwidth=4 expandtab # # Copyright (C) 2010 Red Hat, Inc., John (J5) Palmieri <johnp@redhat.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License a...
pexip/pygobject
examples/demo/demos/infobars.py
Python
lgpl-2.1
3,918
#!/home/gnosis/bin/python #-- Let's define the en/decryption functions (crude for now) def xor_key(key): "Produce 100 bytes of key-based pseudo-random bits" import sha s = "" for _ in range(5): s += sha.sha(s+key).digest() return s def crypt(key, s, decrypt): """En/decrypt a string wi...
jalilag/apspir
objedit/gnosis/anon/encode_address.py
Python
lgpl-2.1
3,832
# This file is part of eventmq. # # eventmq is free software: you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 2.1 of the License, or (at your option) # any later version. # # eventmq is distributed in the ...
com4/eventmq
eventmq/client/__init__.py
Python
lgpl-2.1
933
#! /usr/bin/env python """ Sample script that illustrates exclusive card connection decorators. __author__ = "http://www.gemalto.com" Copyright 2001-2010 gemalto Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com This file is part of pyscard. pyscard is free software; you can redistribute it and/or m...
12019/pyscard
smartcard/Examples/framework/sample_ExclusiveCardConnection.py
Python
lgpl-2.1
2,465
#!/bin/env python import sys import requests import json sys.path.append('/opt/hltd/python') sys.path.append('/opt/hltd/lib') import mappings from pyelasticsearch.client import ElasticSearch from pyelasticsearch.exceptions import * if len(sys.argv)>=4: command = sys.argv[1] server_url=sys.argv[2] index_name...
danduggan/hltd
test/create_index.py
Python
lgpl-3.0
3,019
"""Mac-only module to find the home file of a resource.""" import sstruct import array import calldll import macfs, Res def HomeResFile(res): """Return a path to the file in which resource 'res' lives.""" return GetFileLocation(res.HomeResFile()) def GetFileLocation(refNum): """Return a path to the open file id...
stack-of-tasks/rbdlpy
tutorial/lib/python2.7/site-packages/FontTools/fontTools/misc/homeResFile.py
Python
lgpl-3.0
2,148
import sys from services.spawn import MobileTemplate from services.spawn import WeaponTemplate from resources.datatables import WeaponType from resources.datatables import Difficulty from resources.datatables import Options from java.util import Vector def addTemplate(core): mobileTemplate = MobileTemplate...
agry/NGECore2
scripts/mobiles/endor/mature_hanadak_rock_smasher.py
Python
lgpl-3.0
1,652
# -*- coding: utf-8 -*- # Copyright(C) 2016 Bezleputh # # This file is part of a weboob module. # # This weboob module 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, o...
laurentb/weboob
modules/apec/job.py
Python
lgpl-3.0
1,051
# Copyright (C) 2014 @threatlead # # 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 th...
lixiangning888/whole_project
modules/signatures_orignal/rat_spynet.py
Python
lgpl-3.0
1,986
"""Vagrant aliases.""" ALIASES = { 'pid1': '/opt/treadmill-pid1/bin/pid1', 'treadmill': '/opt/treadmill', 'treadmill_bin': '/opt/treadmill/bin/treadmill', # openldap 'slapd': '/usr/sbin/slapd', 'slapadd': '/usr/sbin/slapadd', 'dnscache': None, 'java_home': None, 'kafka_run_class'...
keithhendry/treadmill
treadmill/bootstrap/vagrant_aliases.py
Python
apache-2.0
1,513
"""Abstraction form AEMET OpenData sensors.""" from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ATTRIBUTION, SENSOR_DEVICE_CLASS, SENSOR_NAME, SENSOR_UNIT from .weather_update_coordinator import WeatherUpdateCoordinator class A...
partofthething/home-assistant
homeassistant/components/aemet/abstract_aemet_sensor.py
Python
apache-2.0
1,752
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
transon/cassandra-shawn
test/system/test_avro_super.py
Python
apache-2.0
11,380
# Copyright 2013 OpenStack Foundation # Copyright 2019 Aptira Pty Ltd # All Rights Reserved. # # Licensed under the Apache 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.apache.org/license...
rahulunair/nova
nova/tests/unit/privsep/test_fs.py
Python
apache-2.0
15,685
# -*- coding: utf-8 -*- ''' ''' from __future__ import absolute_import from __future__ import with_statement from . import database_meta from . import database_tera def closeAllConnections(): database_meta.closeConnection() database_tera.closeConnection()
tal-nino/edwin
edwinServer/common/database_all.py
Python
apache-2.0
267
import serial import re from time import sleep from datetime import datetime, timedelta from .tty import Terminal # ------------------------------------------------------------------------- # Terminal connection over SERIAL CONSOLE # ------------------------------------------------------------------------- _PROMPT =...
r2600r/py-junos-netconify
lib/netconify/tty_serial.py
Python
apache-2.0
3,000
from ark.tasks.task_check_for_update import Task_CheckForUpdates from ark.tasks.task_list_players import Task_ListPlayers from ark.tasks.task_get_chat import Task_GetChat from ark.tasks.task_daily_restart import Task_DailyRestart from ark.tasks.task_daily_restart import Task_DailyRestartRepopulate from ark.tasks.task_s...
f4ble/Arkon
configs/tasks_default.py
Python
apache-2.0
707
#!/usr/bin/env python from getpass import getpass from pprint import pprint as pp from napalm_base import get_network_driver host = '184.105.247.70' username = 'pyclass' password = getpass() optional_args = {} driver = get_network_driver('ios') device = driver(host, username, password, optional_args=optional_args) p...
ktbyers/pynet-ons-jan17
napalm_example/test_ios_cfg.py
Python
apache-2.0
1,143
# Copyright 2020 Mycroft AI Inc. # # Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
forslund/mycroft-core
test/integrationtests/voight_kampff/generate_feature.py
Python
apache-2.0
2,177
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-02-22 20:39 from __future__ import unicode_literals import time import logging import progressbar from django.db import connection, migrations from django.db.models import Q from django.contrib.contenttypes.models import ContentType from bulk_update.helper i...
caseyrollins/osf.io
addons/wiki/migrations/0010_migrate_node_wiki_pages.py
Python
apache-2.0
23,077
# -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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. # # ...
mostafa-mahmoud/sahwaka
docs/conf.py
Python
apache-2.0
8,086
#!/usr/bin/env python """ Copyright 2012 GroupDocs. Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable...
liosha2007/temporary-groupdocs-python3-sdk
groupdocs/models/State.py
Python
apache-2.0
851
""" putJSONdata.py Copyright 2016 OSIsoft, LLC. Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
danielElopez/PI-Connector-for-UFL-Samples
COMPLETE_SOLUTIONS/North American General Bike Feed/putJSONdata_SF_Bikes_service.py
Python
apache-2.0
3,727
#!/usr/bin/python # # Calculate the standard deviation of the # sampling size experiment # ############################################ import sys import re import math # Check args if len(sys.argv) < 2: print "Usage:", sys.argv[0], "<filename>" sys.exit(0) # Regex samplingSizePattern = re.compile("^Simula...
jnidzwetzki/bboxdb
bin/experiments/experiment_sampling_calculate_std.py
Python
apache-2.0
2,322
from .index import HackerRegistrationPage
andrewsosa/hackfsu_com
api/webapp/views/registration/hacker/__init__.py
Python
apache-2.0
42
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
djkonro/client-python
kubernetes/client/models/v1beta1_network_policy_ingress_rule.py
Python
apache-2.0
5,351
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
DavidNorman/tensorflow
tensorflow/python/ops/linalg/sparse/sparse.py
Python
apache-2.0
1,085
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import functools import threading class Storage(threading.local): def __init__(self, rel_path): self.clear(rel_path) def clear(self, rel_path): self.rel_path = r...
tdyas/pants
src/python/pants/base/parse_context.py
Python
apache-2.0
3,532
import pytest from plenum.test.helper import perf_monitor_disabled from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data from plenum.test.view_change_with_delays.helper import \ do_view_change_with_propagate_primary_on_one_delayed_node # This is needed only with current view change implement...
evernym/zeno
plenum/test/view_change_with_delays/test_view_change_with_propagate_primary_on_one_delayed_node.py
Python
apache-2.0
1,269
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # zfsdist Summarize ZFS operation latency. # For Linux, uses BCC, eBPF. # # USAGE: zfsdist [-h] [-T] [-m] [-p PID] [interval] [count] # # Copyright 2016 Netflix, Inc. # Licensed under the Apache License, Version 2.0 (the "License") # # 14-Feb-20...
brendangregg/bcc
tools/zfsdist.py
Python
apache-2.0
5,394
# # Copyright (c) 2015 Autodesk Inc. # All rights reserved # # Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
gomezsan/ochopod
examples/sanity.py
Python
apache-2.0
2,544
# -*- coding: utf-8 -*- ''' Manage Cloudwatch alarms .. versionadded:: 2014.7.0 Create and destroy cloudwatch alarms. Be aware that this interacts with Amazon's services, and so may incur charges. This module uses boto, which can be installed via package, or pip. This module accepts explicit credentials but can als...
stephane-martin/salt-debian-packaging
salt-2016.3.3/salt/states/boto_cloudwatch_alarm.py
Python
apache-2.0
6,749
from cdm.installer import Installer, SimpleCQLSchema class SampleInstaller(SimpleCQLSchema, Installer): def install_cassandra(self): c = self.context
cassandra-dataset-manager/cdm
tests/sample/install.py
Python
apache-2.0
165
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Main script for the stixel world evaluation. """ from __future__ import print_function import sys sys.path.append("..") sys.path.append("../data_sequence") sys.path.append("../helpers") from stixels_pb2 import Stixels, Stixel from data_sequence import DataSequence ...
LevinJ/Pedestrian-detection-and-tracking
src/doppia/tools/stixels_evaluation/stixels_evaluation.py
Python
apache-2.0
63,385
import pytest from cinp.common import URI # TODO: test mutli-object setting def test_splituri_builduri(): # TODO: test invlid URIs, mabey remove some tests from client_test that are just checking the URI uri = URI( '/api/v1/' ) ( ns, model, action, id_list, multi ) = uri.split( '/api/v1/' ) assert ns == [] ...
cinp/python
cinp/common_test.py
Python
apache-2.0
7,291
def phonehome(): relax() i01.setHeadSpeed(1.0,1.0,1.0,1.0,1.0) i01.setArmSpeed("left",1.0,1.0,1.0,1.0) i01.setArmSpeed("right",1.0,1.0,1.0,1.0) i01.setHandSpeed("left",1.0,1.0,1.0,1.0,1.0,1.0) i01.setHandSpeed("right",1.0,1.0,1.0,1.0,1.0,1.0) i01.setTorsoSpeed(1.0,1.0,1.0) i01.moveHead(1...
MyRobotLab/pyrobotlab
home/hairygael/GESTURES/phonehome.py
Python
apache-2.0
639
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-28 15:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dcim', '0019_new_iface_form_factors'), ] operations = [ migrations.AddField( model_name='rack', ...
lampwins/netbox
netbox/dcim/migrations/0020_rack_desc_units.py
Python
apache-2.0
493
# All Rights Reserved. # # Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
sebrandon1/tempest
tempest/api/volume/admin/test_qos.py
Python
apache-2.0
6,582
from typing import TypedDict class Point(TypedDict): x: int y: int def is_even(x: Point) -> bool: pass is_even({'<caret>'})
jwren/intellij-community
python/testData/completion/dictLiteralCompletion/EmptyLiteralsInCallExpressionsWithQuotes/main.py
Python
apache-2.0
142
""" TODO: add comments """ import imp import sys import os def load_module(env, module_path, name): """ This method load module file """ module_file = os.path.join(module_path, "%s.py" % name) mod = None if os.path.exists(module_file): mod = imp.new_module(name) mod.__dict__.update({"e...
docker-tow/tow
tow/modules.py
Python
apache-2.0
427
import sys import time import commands import userinterface.Client as Client from taskbuffer.JobSpec import JobSpec from taskbuffer.FileSpec import FileSpec if len(sys.argv)>1: site = sys.argv[1] else: site = None datasetName = 'panda.destDB.%s' % commands.getoutput('uuidgen') destName = 'BNL_ATLAS_2' job...
RRCKI/panda-server
pandaserver/test/execute.py
Python
apache-2.0
2,194
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
swiftstack/swift
test/unit/proxy/test_sysmeta.py
Python
apache-2.0
21,779
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # cpudist Summarize on- and off-CPU time per task as a histogram. # # USAGE: cpudist [-h] [-O] [-T] [-m] [-P] [-L] [-p PID] [interval] [count] # # This measures the time a task spends on or off the CPU, and shows this time # as a histogram, optionally p...
romain-intel/bcc
tools/cpudist.py
Python
apache-2.0
4,973
# Copyright Hugh Perkins 2016 """ Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
hughperkins/coriander
test/test_local.py
Python
apache-2.0
1,738
# ------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you unde...
apache/incubator-systemml
src/main/python/tests/matrix/test_rand.py
Python
apache-2.0
4,213
from cbagent.collectors.libstats.psstats import PSStats from cbagent.collectors import Collector class PS(Collector): COLLECTOR = "atop" # Legacy KNOWN_PROCESSES = ("beam.smp", "memcached", "indexer", "projector", "cbq-engine", "sync_gateway") def __init__(self, settings): ...
couchbase/cbagent
cbagent/collectors/ps.py
Python
apache-2.0
1,640
""" Initialize facebook module """
yakinaround/myadventure-front
app/mod_facebook/__init__.py
Python
apache-2.0
36
""" Module where admin tools dashboard classes are defined. """ from django.template.defaultfilters import slugify from django.utils.importlib import import_module from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse from django.contrib.contenttypes.models import Content...
edisonlz/fruit
web_project/base/site-packages/grappelli/dashboard/dashboards.py
Python
apache-2.0
6,499
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
tensor-tang/Paddle
python/paddle/fluid/tests/unittests/test_unique_with_counts.py
Python
apache-2.0
2,925
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
yoer/hue
apps/impala/src/impala/conf.py
Python
apache-2.0
5,222
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-21 00:45 from __future__ import unicode_literals from django.db import migrations import autoslug.fields class Migration(migrations.Migration): dependencies = [ ('groups', '0008_auto_20170921_2233'), ] operations = [ migra...
srtab/alexandriadocs
alexandriadocs/groups/migrations/0009_auto_20171121_0045.py
Python
apache-2.0
829
# Copyright (c) 2013 Christian Schwede <christian.schwede@enovance.com> # # Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 # # Unless required b...
notmyname/swift
test/unit/cli/test_recon.py
Python
apache-2.0
44,459
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
srowen/spark
python/pyspark/mllib/classification.py
Python
apache-2.0
33,064
from time import sleep from bluesky.callbacks.broker import LiveTiffExporter from databroker import process from bluesky import Msg from bluesky.plans import DeltaScanPlan, DeltaListScanPlan RE = gs.RE # an alias def take_dark(): print('closing shutter...') shctl1.put(0) # close shutter sleep(2) pr...
NSLS-II-XPD/ipython_ophyd
archived/profile_collection-dev/startup/99-subtracted-tiff-exporter.py
Python
bsd-2-clause
1,827
from flask import request from flask_restful import abort from flask_login import login_required import sqlparse from funcy import distinct, take from itertools import chain from redash.handlers.base import routes, org_scoped_rule, paginate from redash.handlers.query_results import run_query from redash import models...
easytaxibr/redash
redash/handlers/queries.py
Python
bsd-2-clause
5,877
import logging from ...engines.light import SimEngineLight from ...errors import SimEngineError l = logging.getLogger(name=__name__) class SimEnginePropagatorBase(SimEngineLight): # pylint:disable=abstract-method def __init__(self, stack_pointer_tracker=None, project=None): super().__init__() ...
iamahuman/angr
angr/analyses/propagator/engine_base.py
Python
bsd-2-clause
1,026
# -*- coding: utf-8 -*- """ Add first_answer_email_sent and first_l10n_email_sent fields to Profile. """ from __future__ import unicode_literals from django.db import models, migrations import kitsune.sumo.models # noqa class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_201504...
mozilla/kitsune
kitsune/users/migrations/0004_auto_add_contrib_email_flags.py
Python
bsd-3-clause
897
#!/usr/bin/env python3 import unittest import logging from rdflib import URIRef, Literal from dipper import curie_map from dipper.graph.RDFGraph import RDFGraph from dipper.models.Model import Model from dipper.models.BiolinkVocabulary import BioLinkVocabulary as blv from dipper.utils.CurieUtil import CurieUtil logge...
TomConlin/dipper
tests/test_model.py
Python
bsd-3-clause
3,403
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import uuid from buildbot.changes.filter import ChangeFilter from buildbot.scheduler import Dependent from buildbot.scheduler import Nightly from buildb...
eunchong/build
scripts/master/master_config.py
Python
bsd-3-clause
7,620
# -*- test-case-name: twisted.test.test_ident -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Ident protocol implementation. """ import struct from twisted.internet import defer from twisted.protocols import basic from twisted.python import log, failure _MIN_PORT = 1 _...
hlzz/dotfiles
graphics/VTK-7.0.0/ThirdParty/Twisted/twisted/protocols/ident.py
Python
bsd-3-clause
7,930
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-23 13:25 from __future__ import unicode_literals from django.db import migrations, models import django_extensions.db.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Cre...
jfterpstra/bluebottle
bluebottle/donations/migrations/0001_initial.py
Python
bsd-3-clause
1,157
"""Initial model definitions Revision ID: 1a0db86d91f Revises: None Create Date: 2014-04-04 01:10:20.064006 """ # revision identifiers, used by Alembic. revision = '1a0db86d91f' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please a...
djds23/jobs-board
migrations/versions/1a0db86d91f_initial_model_definitions.py
Python
bsd-3-clause
3,462
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import smart_unicode, force_unicode class ContentTypeManager(models.Manager): # Cache to avoid re-looking up ContentType objects all over the place. # This cache is shared by all the get_for_* metho...
mixman/djangodev
django/contrib/contenttypes/models.py
Python
bsd-3-clause
6,625
# -*- coding: utf-8 -*- import warnings from statsmodels.compat.pandas import PD_LT_1_4 import os import numpy as np import pandas as pd from statsmodels.multivariate.factor import Factor from numpy.testing import (assert_equal, assert_array_almost_equal, assert_, assert_raises, assert_arr...
statsmodels/statsmodels
statsmodels/multivariate/tests/test_factor.py
Python
bsd-3-clause
11,521
from __future__ import unicode_literals from django.core.exceptions import PermissionDenied from django.core.mail import send_mail from django.core import validators from django.db import models from django.db.models.manager import EmptyManager from django.utils.crypto import get_random_string, salted_hmac from django...
dhoffman34/django
django/contrib/auth/models.py
Python
bsd-3-clause
17,902
import json import numpy as np from bokeh.plotting import * from bokeh.sampledata.olympics2014 import data from bokeh.objects import ColumnDataSource data = { d['abbr']: d['medals'] for d in data['data'] if d['medals']['total'] > 0} # pull out just the data we care about countries = sorted( data.ke...
jakevdp/bokeh
sphinx/source/tutorial/solutions/olympics.py
Python
bsd-3-clause
3,262
import sys from os.path import abspath, dirname, join import mongoengine sys.path.insert(0, '../..') DEBUG = True TEMPLATE_DEBUG = DEBUG ROOT_PATH = abspath(dirname(__file__)) ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.d...
hsr-ba-fs15-dat/python-social-auth
examples/django_me_example/example/settings.py
Python
bsd-3-clause
7,162
#!/usr/bin/env python # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This is a script for generating easily-viewable comparisons of text and pixel diffs. """ import optparse from layout_pack...
rwatson/chromium-capsicum
webkit/tools/layout_tests/test_output_formatter.py
Python
bsd-3-clause
4,736
# Copyright (c) 2016-2021 Renata Hodovan, Akos Kiss. # # Licensed under the BSD 3-Clause License # <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>. # This file may not be copied, modified, or distributed except # according to those terms. from functools import cmp_to_key from urwid import * from .decor...
renatahodovan/fuzzinator
fuzzinator/ui/tui/table.py
Python
bsd-3-clause
18,857
# $Id$ # # Copyright (C) 2001-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ Functionality for ...
rdkit/rdkit-orig
rdkit/Chem/SATIS.py
Python
bsd-3-clause
3,432
""" The rechunk module defines: intersect_chunks: a function for converting chunks to new dimensions rechunk: a function to convert the blocks of an existing dask array to new chunks or blockshape """ from __future__ import absolute_import, division, print_function import heapq from itertools ...
chrisbarber/dask
dask/array/rechunk.py
Python
bsd-3-clause
19,776