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
""" Create a seam loop from a list of edge pairs. Written by Zachary Ferguson """ from util import verts_equal def find_seam_loops(edgepairs): """ Creates a seam loop from a edgePair object. Parameters: edgepairs - tuple of edgepairs Returns: List of list containing seam loops """ # Flatten ...
zfergus2/Wrapping-Textures
src/seam_loops.py
Python
mit
1,573
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
lmazuel/azure-sdk-for-python
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/__init__.py
Python
mit
3,118
# Copyright (C) 2013 Google Inc. # # This file is part of YouCompleteMe. # # YouCompleteMe 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...
NcLang/vimrc
sources_non_forked/YouCompleteMe/python/ycm/diagnostic_interface.py
Python
mit
9,546
from openslides.agenda.models import Item from openslides.topics.models import Topic from openslides.utils.test import TestCase class TestItemManager(TestCase): def test_get_root_and_children_db_queries(self): """ Test that get_root_and_children needs only one db query. """ for i i...
emanuelschuetze/OpenSlides
tests/integration/agenda/test_models.py
Python
mit
473
import pytest from web3.utils.filters import ( construct_data_filter_regex, ) def hex_and_pad(*i): return '0x' + ''.join( hex(v).rstrip('L')[2:].zfill(64) for v in i ) SINGLE_VALUE = [ [hex_and_pad(1)], ] TWO_VALUES = [ [hex_and_pad(12345), hex_and_pad(54321)], ] TWO_VALUES_WITH...
shravan-shandilya/web3.py
tests/utilities/test_construct_data_filter_regex.py
Python
mit
2,233
from hlt import * from networking import * from keras.models import Sequential from keras.layers import Dense, Activation from keras.optimizers import SGD, Adam, RMSprop from os import listdir, remove from os.path import join, isfile def loadGame(filename): def stringUntil(gameFile, endChar): returnStrin...
yangle/HaliteIO
website/tutorials/machinelearning/TrainMatt.py
Python
mit
4,981
from lxml import html from base_test import BaseTest from web import model class LanguagesTestCase(BaseTest): """ Contains tests for the languages blueprint """ def _lang_add(self, init_lang_name): rv = self.app.post('/admin/languages/add/', data={ "name": init_lang_name, ...
spacetag/code_court
code_court/courthouse/test/languages_test.py
Python
mit
2,299
import logging from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import EmailMultiAlternatives from django.core.urlresolvers import reverse from django.template.loader import render_to_string from django.utils import timezone from djblets.siteconfig.models import SiteC...
atagar/ReviewBoard
reviewboard/notifications/email.py
Python
mit
13,727
""" DummyProcess to check the WPS structure Author: Jorge de Jesus (jorge.de-jesus@jrc.it) as suggested by Kor de Jong """ from pywps.Process import WPSProcess class Process(WPSProcess): def __init__(self): # init process WPSProcess.__init__(self, i...
jachym/PyWPS-SVN
tests/processes/dummyprocess.py
Python
gpl-2.0
1,590
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-09-15 15:10 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('silo', '0028_auto_20170913_0206'), ] operations = ...
toladata/TolaTables
silo/migrations/0029_auto_20170915_0810.py
Python
gpl-2.0
1,233
#!/usr/bin/python # -*- coding: utf-8 -*- # Pardus Desktop Services Test-Suit # Copyright (C) 2010, TUBITAK/UEKAE # 2010 - Gökmen Göksel <gokmen:pardus.org.tr> # 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 # Softw...
Pardus-Linux/pds
pds/tests/test-pds.py
Python
gpl-2.0
2,879
# # James Laska <jlaska@redhat.com> # # Copyright 2009 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. This program is distributed in the hope that it # will be useful...
bcl/pykickstart
tests/commands/monitor.py
Python
gpl-2.0
2,924
from __future__ import absolute_import, print_function import os import httplib from httplib import (_CS_REQ_SENT, _CS_REQ_STARTED, CONTINUE, UnknownProtocol, CannotSendHeader, NO_CONTENT, NOT_MODIFIED, EXPECTATION_FAILED, HTTPMessage, HTTPException) try: from cStringIO ...
fviard/s3cmd
S3/Custom_httplib27.py
Python
gpl-2.0
8,180
#!/usr/bin/env python from runtest import TestBase class TestCase(TestBase): def __init__(self): TestBase.__init__(self, 'abc', """ # DURATION TID FUNCTION 0.508 us [ 772] | __monstartup(); 0.425 us [ 772] | __cxa_atexit(); [ 772] | main() { [ 772] | a() { ...
andrewjss/uftrace
tests/t072_no_comment.py
Python
gpl-2.0
621
# -*- coding: utf-8 -*- ''' Phoenix Add-on Copyright (C) 2015 Blazetamer Copyright (C) 2015 lambda 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 Lic...
dr4g0nsr/phoenix-kodi-addon
plugin.video.phstreams/default.py
Python
gpl-2.0
5,936
# -*- coding: utf-8 -*- ''' Exodus Add-on Copyright (C) 2016 Exodus 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 opti...
JamesLinEngineer/RKMC
addons/plugin.video.phstreams/resources/lib/modules/proxy.py
Python
gpl-2.0
2,896
#!/usr/bin/env python3 import os import sys import re # CODING GUIDELINE CHECK # Author: KoffeinFlummi # ---------------------- # https://github.com/KoffeinFlummi/AGM/wiki/Coding-Guidelines # USAGE # ----- # To only check a specific module, put it down as a sys arg. # By default, everything is checked. # Use "-f" to...
KoffeinFlummi/AGM_Compatibility
.devfiles/rulecheck.py
Python
gpl-2.0
3,525
from resources.lib.modules import client from resources.lib.modules import cloudflare import re,sys,urllib,urlparse,base64,urllib2 domains = ['stream4free.pro', 'stream4free.eu'] def resolve(url): try: result = cloudflare.request(url) items = client.parseDOM(result, 'video', attrs={'id': 'live_...
azumimuo/family-xbmc-addon
plugin.video.phstreams/resources/lib/resolvers/stream4free.py
Python
gpl-2.0
582
from os import path as opath, walk from dduplicated import hashs ignored = ['..'] files = {} visited = [] def add_file(path): global files if not opath.islink(path): file_hash = hashs.get_hash(path) if file_hash in files: if path not in files[file_hash]: files[file_hash].append(path) else: files.u...
messiasthi/Dduplicated
dduplicated/scans.py
Python
gpl-2.0
1,093
# -*- coding: utf-8 -*- # Copyright (c) 2012-2014 CoNWeT Lab., Universidad Politécnica de Madrid # This file is part of Wirecloud. # Wirecloud 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 v...
sixuanwang/SAMSaaS
wirecloud-develop/src/wirecloud/platform/wiring/utils.py
Python
gpl-2.0
2,913
#!/usr/bin/env python # # Copyright 2013 Tim O'Shea # # This file is part of PyBOMBS # # PyBOMBS 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 option) # any later version. # # P...
scalable-networks/ext
pybombs/RPCPybombsClient.py
Python
gpl-2.0
1,186
from django.db import models class FunctionManager(models.Manager): def active(self): return self.all().filter(active=True).order_by("position")
tanzquotient/tq_website
organisation/managers.py
Python
gpl-2.0
159
#! /usr/bin/env python2 #-*- coding:utf-8 -*- from builtins import range import unittest import logging from miasm.analysis.machine import Machine import miasm.os_dep.win_api_x86_32 as winapi from miasm.os_dep.win_api_x86_32 import get_win_str_a, get_win_str_w from miasm.core.utils import pck32 from miasm.jitter.csts ...
serpilliere/miasm
test/os_dep/win_api_x86_32.py
Python
gpl-2.0
9,960
""" ############################################################################### split lines on fixed columns or at delimiters before a column; see also: related but different textwrap standard library module (2.3+); 4E caveat: this assumes str; supporting bytes might help avoid some decodes; #################...
simontakite/sysadmin
pythonscripts/programmingpython/Internet/Email/PyMailGui/wraplines.py
Python
gpl-2.0
4,750
info_system = 'http://webpac.lib.nthu.edu.tw/F/' top_circulations = 'http://www.lib.nthu.edu.tw/guide/topcirculations/index.htm' top_circulations_bc2007 = 'http://www.lib.nthu.edu.tw/guide/topcirculations/bc2007.htm' rss_recent_books = 'http://webpac.lib.nthu.edu.tw:8080/nbr/reader/rbn_rss.jsp' lost_found_url = 'http:/...
leVirve/NTHU-Library
nthu_library/static_urls.py
Python
gpl-2.0
363
#!/usr/bin/env python2 from distutils.core import setup from distutils.dist import Distribution from distutils.cmd import Command from distutils.command.install_data import install_data from distutils.command.build import build from distutils.dep_util import newer from distutils.log import warn, info, error from distu...
albfan/terminator
setup.py
Python
gpl-2.0
9,520
# Opus/UrbanSim urban simulation software. # Copyright (C) 2005-2009 University of Washington # See opus_core/LICENSE from opus_core.opus_package import OpusPackage class package(OpusPackage): name = 'psrc_parcel' required_opus_packages = ["opus_core", "opus_emme2", "urbansim", "urbansim_parcel"]
christianurich/VIBe2UrbanSim
3rdparty/opus/src/psrc_parcel/opus_package_info.py
Python
gpl-2.0
318
from flask import redirect, url_for, current_app, request from flask_login import LoginManager, UserMixin, current_user from functools import wraps import listenbrainz.db.user as db_user from werkzeug.exceptions import Unauthorized from listenbrainz.webserver.errors import APIUnauthorized login_manager = LoginManager(...
paramsingh/listenbrainz-server
listenbrainz/webserver/login/__init__.py
Python
gpl-2.0
1,893
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2015 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <http://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, eithe...
mablae/weblate
weblate/trans/tests/test_suggestions.py
Python
gpl-3.0
7,857
import re import csv from urllib import parse import lxml.html from pupa.scrape import Person, Scraper class NoDetails(Exception): pass SESSION_NUMBERS = { '2011': '62nd', '2013': '63rd', '2015': '64th', '2017': '65th', } class MTPersonScraper(Scraper): def url_xpath(self, url): #...
cliftonmcintosh/openstates
openstates/mt/people.py
Python
gpl-3.0
7,587
# test for xml.dom.minidom from xml.dom.minidom import parse, Node, Document, parseString from xml.dom import HierarchyRequestErr import xml.parsers.expat import os import sys import traceback from test_support import verbose if __name__ == "__main__": base = sys.argv[0] else: base = __file__ tstfile = os.pa...
mancoast/CPythonPyc_test
cpython/223_test_minidom.py
Python
gpl-3.0
19,230
# -*- coding: utf-8 -*- # # Slave, (c) 2014, see AUTHORS. Licensed under the GNU GPL. from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * from slave.lakeshore import LS340, LS370 from slave.transport import SimulatedTransport de...
therealpyro/slave
slave/test/test_lakeshore.py
Python
gpl-3.0
488
""" I came up with this the first try. So, that's why this is posted in duplicate. """ import sys try: columns = int(input("How many columns? ")) rows = int(input("How many rows? ")) tall = int(input("How tall should the boxes be? ")) wide = int(input("How wide should the boxes be? ")) except Excepti...
MattD830/Python-INFO1-CE9990
graphpaper2.py
Python
gpl-3.0
968
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010-2013 Código Sur Sociedad Civil. # All rights reserved. # # This file is part of Cyclope. # # Cyclope 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 Foundat...
MauHernandez/cyclope
cyclope/core/series/admin.py
Python
gpl-3.0
2,378
# -*- encoding: utf-8 -*- """Test class for Template CLI :Requirement: Template :CaseAutomation: Automated :CaseLevel: Acceptance :CaseComponent: CLI :TestType: Functional :CaseImportance: High :Upstream: No """ from fauxfactory import gen_string from robottelo.cli.base import CLIReturnCodeError from robottelo....
ares/robottelo
tests/foreman/cli/test_template.py
Python
gpl-3.0
8,063
# Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? # Find all unique triplets in the array which gives the sum of zero. # Elements in a triplet (a,b,c) must be in non-descending order. (ie, a <= b <= c) # The solution set must not contain duplicate triplets. # Solution: # This ...
asraf209/leetcode
src/3SumClosest/main.py
Python
gpl-3.0
2,156
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import fir_artifacts.models class Migration(migrations.Migration): dependencies = [ ('fir_artifacts', '0001_initial'), ('incidents', '0001_initial') ] operations = [ migration...
benjimons/FIR
fir_artifacts/migrations/0002_create_artifacts.py
Python
gpl-3.0
1,876
# -*- coding: utf-8 -*- ## ## ## This file is part of Indico. ## Copyright (C) 2002 - 2014 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; eith...
pferreir/indico-backup
indico/MaKaC/plugins/EPayment/blueprint.py
Python
gpl-3.0
1,033
from PIL import Image import numpy from antialiased import antialiased im=Image.open('C:/Users/linzz/Desktop/pic/image_processing/ImageProcessing/perspective/find/line.jpg') im=numpy.array(im) node_site_u2 = [165, 145, 557, 83, 564, 333, 137, 359] node_site_u3 = [124, 150, 524, 113, 540, 246, 106, 272] node_site_u4 =...
THM-TheoreM/Algorithm
tool/ImageProcessing/perspective/antialiased_do.py
Python
gpl-3.0
947
import os import re import sys from setuptools import setup, find_packages with open(os.path.join(os.path.dirname(__file__), "cosmos/VERSION"), "r") as fh: __version__ = fh.read().strip() def find_all(path, reg_expr, inverse=False, remove_prefix=False): if not path.endswith("/"): path = path + "/" ...
LPM-HMS/COSMOS2
setup.py
Python
gpl-3.0
2,740
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-14 12:09 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0005_user_last_...
jabber-at/hp
hp/account/migrations/0006_notifications.py
Python
gpl-3.0
1,200
# -*- coding: utf-8 -*- # Copyright 2007-2022 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at y...
jat255/hyperspy
hyperspy/tests/model/test_model_as_dictionary.py
Python
gpl-3.0
8,873
# # 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...
stetie/postpic
postpic/datareader/dummy.py
Python
gpl-3.0
7,561
from sympy import (Symbol, Wild, sin, cos, exp, sqrt, pi, Function, Derivative, abc, Integer, Eq, symbols, Add, I, Float, log, Rational, Lambda, atan2, cse, cot, tan, S, Tuple, Basic, Dict, Piecewise, oo, Mul) from sympy.core.basic import _aresame from sympy.utilities.pytest import XFAIL from sympy.abc ...
lidavidm/mathics-heroku
venv/lib/python2.7/site-packages/sympy/core/tests/test_subs.py
Python
gpl-3.0
18,518
import json import hashlib import uuid import datetime from valley.exceptions import ValidationException from kev.utils import get_doc_type from kev.query import SortingParam class DocDB(object): db_class = None indexer_class = None backend_id = None doc_id_string = '{doc_id}:id:{backend_id}:{class_n...
capless/kev
kev/backends/__init__.py
Python
gpl-3.0
3,810
######################## # DCProgs computes missed-events likelihood as described in # Hawkes, Jalali and Colquhoun (1990, 1992) # # Copyright (C) 2013 University College London # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as ...
jenshnielsen/HJCFIT
likelihood/python/optimization.py
Python
gpl-3.0
5,973
import urllib.parse import unittest.mock import tornado.httpclient import robot.tests class TasksHandlerTest(robot.tests.TestCase): @unittest.mock.patch("robot.tasks.TasksHandler.fetch") def test_get(self, fetch): fetch.return_value = robot.tests.future(unittest.mock.Mock(json={ "rows": [...
sfstpala/robot-ci
robot/tests/test_tasks.py
Python
gpl-3.0
7,594
f = open("colorFormatter.txt","r"); name = f.readline(); c = f.readline(); colors = []; while (name != "" or name == None): colors.append((name,c)); f.readline(); name = f.readline(); c = f.readline(); for x in colors: print('colorPresets.put(\"' + x[0].strip() + '\",\"' + x[1].strip() + '\");');
gralog/gralog
gralog-fx/src/main/java/gralog/gralogfx/piping/thinger.py
Python
gpl-3.0
311
"""This program is used to generate the coefficients c00, c01 and c11 used in the demo.""" # Copyright (C) 2007-2009 Anders Logg # # This file is part of DOLFIN. # # DOLFIN 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 S...
alogg/dolfin
demo/undocumented/tensor-weighted-poisson/python/generate_data.py
Python
gpl-3.0
1,642
# -*- coding: utf-8 -*- # Copyright (c) 2006 - 2015 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing the VCS status monitor thread class for Subversion. """ from __future__ import unicode_literals import os import pysvn from VCS.StatusMonitorThread import VcsStatusMonitorThread import Prefer...
testmana2/test
Plugins/VcsPlugins/vcsPySvn/SvnStatusMonitorThread.py
Python
gpl-3.0
6,360
import threading import time def worker(): print (threading.currentThread().getName() + 'Starting') time.sleep(2) print (threading.currentThread().getName()+'Exiting') def my_service(): print (threading.currentThread().getName()+ 'Starting') time.sleep(3) print (threading.currentThread().getNa...
mayankjohri/LetsExplorePython
Section 2 - Advance Python/Chapter S2.11 Multiprocessing and Threading/code/4_threading.py
Python
gpl-3.0
651
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditions apply: # # This pro...
Petr-Kovalev/nupic-win32
py/regions/ImageSensorExplorers/ExhaustiveSweep.py
Python
gpl-3.0
11,962
#!/usr/bin/env python """ Parse the GerbMerge configuration file. -------------------------------------------------------------------- This program is licensed under the GNU General Public License (GPL) Version 3. See http://www.fsf.org for details of the license. Rugged Circuits LLC http://ruggedcircuits.com/gerbm...
space-age-robotics/gerbmerge-patched
gerbmerge/config.py
Python
gpl-3.0
14,779
from django.urls import reverse def test_perf_tags_get(authorized_sheriff_client, test_perf_tag, test_perf_tag_2): resp = authorized_sheriff_client.get(reverse('performance-tags-list')) assert resp.status_code == 200 assert len(resp.json()) == 2 assert resp.json()[0]['id'] == test_perf_tag.id as...
jmaher/treeherder
tests/webapp/api/test_performance_tags.py
Python
mpl-2.0
483
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Test for the smooth solvers.""" from __f...
kohr-h/odl
odl/test/solvers/smooth/smooth_test.py
Python
mpl-2.0
5,137
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import account_loan_generate_entries from . import account_loan_pay_amount from . import account_loan_post
ddico/account-financial-tools
account_loan/wizard/__init__.py
Python
agpl-3.0
184
#!/usr/bin/env python # 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 version. # # This program is distributed in the hop...
scylladb/scylla-cluster-tests
grow_cluster_test.py
Python
agpl-3.0
7,585
from urllib import urlencode from urllib2 import urlopen from django.shortcuts import render from django.http import HttpResponse, Http404 from cms.utils.html import clean_html def index(request): url = "http://results.influenzanet.info/results.php?" + urlencode(request.GET) try: content = urlopen(ur...
chispita/epiwork
apps/sander/views.py
Python
agpl-3.0
486
# -*- coding: utf-8 -*- # This file is part of wger Workout Manager. # # wger Workout Manager 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 ...
DeveloperMal/wger
wger/manager/api/resources.py
Python
agpl-3.0
6,864
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from psycopg2._psycopg import IntegrityError from odoo.exceptions import UserError, ValidationError from odoo.tests import common from odoo.tools import mute_logger class TestPartnerIdentification...
OCA/partner-contact
partner_identification/tests/test_partner_identification.py
Python
agpl-3.0
4,638
from rest_framework import serializers class EmptySerializer(serializers.Serializer): pass
yunity/yunity-core
karrot/utils/serializers.py
Python
agpl-3.0
97
from rest_framework import generics from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.reverse import reverse from .models import Feedback from .serializers import * class FeedbackListView(generics.ListCreateAPIView): # permission_classes = IsAuthenticatedOrR...
mmilaprat/policycompass-services
apps/feedbackmanager/views.py
Python
agpl-3.0
891
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import models from openerp import api, SUPERUSER_ID def _setup_inalterability(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {}) # enable ping for this module env['publisher_warranty.contract'].updat...
Elico-Corp/odoo_OCB
addons/l10n_fr_certification/__init__.py
Python
agpl-3.0
1,524
# -*- coding: utf-8 -*- # Kuulemma # Copyright (C) 2014, Fast Monkeys Oy # # 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...
fastmonkeys/kuulemma
tests/views/auth/test_activate_account.py
Python
agpl-3.0
2,656
"""!@package grass.script.array @brief GRASS Python scripting module (rasters with numpy) Functions to use GRASS rasters with NumPy. Usage: @code from grass.script import array as garray ... @endcode (C) 2010-2011 by Glynn Clements and the GRASS Development Team This program is free software under the GNU General ...
AsherBond/MondocosmOS
grass_trunk/lib/python/array.py
Python
agpl-3.0
3,001
from flask import Flask from flask import render_template app = Flask(__name__) def info(): user = { 'nickname': 'Praful', 'key': 'A154XWA256' } posts = { 'company': 'Ethereal Machines', 'link': 'http://www.etherealmachines.com/', 'firmware' : 'Marlin Firmware', ...
abinashk-inf/AstroBox
src/astroprint/about/__init__.py
Python
agpl-3.0
441
from shutil import which from coalib.bearlib.abstractions.Linter import linter from dependency_management.requirements.DistributionRequirement import ( DistributionRequirement) @linter(executable='perl', output_format='regex', output_regex=r'.+:(?P<line>\d+):(?P<severity>.*) - (?P<message>.*)') c...
coala-analyzer/coala-bears
bears/vhdl/VHDLLintBear.py
Python
agpl-3.0
2,011
import struct, socket, time, logging from gosh.config import STUN_SERVER, STUN_PORT, logger from gosh import JsonSocket #============================================================================= # STUN Client # ============================================================================ class StunClient(object):...
nthiep/global-ssh
gosh/stun.py
Python
agpl-3.0
4,914
""" Lightweight wrapper around the GitHub API for use in GAE """ __copyright__ = """ Copyright (C) 2016 Potential Ventures Ltd This file is part of theopencorps <https://github.com/theopencorps/theopencorps/> """ __license__ = """ This program is free software: you can redistribute it and/or modify it under the terms...
theopencorps/theopencorps
theopencorps/endpoints/github.py
Python
agpl-3.0
8,932
from __future__ import unicode_literals from zope.interface import implements, classProvides from scheme.macro import Macro from scheme.symbol import Symbol from scheme.environment import Environment, SyntaxEnvironment from scheme.syntax import SyntaxSymbol from scheme.PatternMatcher import PatternMatcher # from sche...
perkinslr/schemepy
scheme/syntax_rules.py
Python
lgpl-2.1
1,919
import sys from myhdl import * from myhdl import ConversionError from myhdl.conversion._misc import _error from myhdl.conversion import analyze, verify class MyIntf(object): def __init__(self): self.x = Signal(intbv(2,min=0,max=16)) self.y = Signal(intbv(3,min=0,max=18)) def m_one_level(clock,re...
palashahuja/myhdl
myhdl/test/conversion/general/test_interfaces1.py
Python
lgpl-2.1
2,907
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko 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 (a...
mirrorcoder/paramiko
paramiko/util.py
Python
lgpl-2.1
8,572
#!/usr/bin/python # -*- coding: utf-8 -*- # # Urwid escape sequences common to curses_display and raw_display # Copyright (C) 2004-2011 Ian Ward # # This library 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 ...
urwid/urwid
urwid/escape.py
Python
lgpl-2.1
15,967
import sys def setup(core, object): object.setStfFilename('static_item_n') object.setStfName('item_bracelet_r_set_officer_dps_01_01') object.setDetailFilename('static_item_d') object.setDetailName('item_bracelet_r_set_officer_dps_01_01') object.setStringAttribute('class_required', 'Officer') object.setIntAttribu...
agry/NGECore2
scripts/object/tangible/wearables/bracelet/item_bracelet_r_set_officer_dps_01_01.py
Python
lgpl-3.0
1,158
AppName = "Qtaste" GitHubRepositoryUrl = "qspin/qtaste" ReleaseNotesTemplate = "./qtaste_release_notes_template.xml" ReleaseNotesOutputFile = "../qtaste_release_notes.xml" # Version Info (generated by maven) VersionFile = "../../../../Version.txt" VersionTag = "qtaste-version"
qspin/qtaste
doc/src/docbkx/scripts/config.py
Python
lgpl-3.0
281
#!/usr/bin/env python3 #-*- coding: utf-8 -*- import subprocess import os import sys def test_identification(): path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..') try: output = subprocess.check_output('./examples/excite_kuka_lwr4.sh', cwd=path, shell=True, env=os.environ.copy()) ...
kjyv/FloBaRoID
tests/test_excite.py
Python
lgpl-3.0
475
# // license # Copyright 2016, Free Software Foundation. # # This file is part of Solent. # # Solent 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) ...
solent-eng/solent
solent/eng/engine.py
Python
lgpl-3.0
20,491
from os import path from unittest import TestSuite, TestLoader, TextTestRunner import sys if __name__ == '__main__': # Because the project is structured differently than # any tooling expects, we need to modify the python # path during runtime (or before) to get it to # properly import plugins and othe...
crisisking/skybot
test/__main__.py
Python
unlicense
712
from __future__ import unicode_literals __version__ = '2016.01.09'
Hakuba/youtube-dl
youtube_dl/version.py
Python
unlicense
68
# -*- coding: utf-8 -*- # Copyright 2015 Objectif Libre # # 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 ...
stackforge/cloudkitty
cloudkitty/rating/pyscripts/datamodels/script.py
Python
apache-2.0
1,854
# # Copyright (c) 2016 Kien Ha <kienha9922@gmail.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 by applicable law or a...
klmitch/jenkins-job-builder
tests/modules/test_helpers.py
Python
apache-2.0
2,542
# Copyright 2012 OpenStack Foundation # 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 requ...
danielmellado/tempest
tempest/api/compute/floating_ips/test_list_floating_ips_negative.py
Python
apache-2.0
1,698
"""Helpers for components that manage entities.""" import asyncio from datetime import timedelta from homeassistant import config as conf_util from homeassistant.setup import async_prepare_setup_platform from homeassistant.const import ( ATTR_ENTITY_ID, CONF_SCAN_INTERVAL, CONF_ENTITY_NAMESPACE, DEVICE_DEFAULT...
ewandor/home-assistant
homeassistant/helpers/entity_component.py
Python
apache-2.0
17,208
# -*- coding: utf-8 -*- # # pex documentation build configuration file, created by # sphinx-quickstart on Fri Jul 25 15:16:37 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
jsirois/pex
docs/conf.py
Python
apache-2.0
8,585
#!/usr/bin/env python import sys from manticore import issymbolic from manticore.native import Manticore """ Replaces a variable that controls program flow with a tainted symbolic value. This in turn explores all possible states under that variable's influence, and reports the specific cmp/test instructions can be i...
montyly/manticore
examples/script/introduce_symbolic_bytes.py
Python
apache-2.0
2,875
# # Copyright (c) SAS Institute 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 w...
fedora-conary/conary
conary/dbstore/sqlerrors.py
Python
apache-2.0
1,638
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import import os import errno from typing import List from typing import Optional from typing import Text def relative_normpath(f, path): # type: (Optional[Text], Text) ->...
beeva-fernandocerezal/rasa_nlu
rasa_nlu/utils/__init__.py
Python
apache-2.0
3,329
# Copyright (c) 2018 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...
luotao1/Paddle
python/paddle/fluid/tests/unittests/test_op_function_generator.py
Python
apache-2.0
3,921
from a10sdk.common.A10BaseClass import A10BaseClass class DisablePartitionName(A10BaseClass): """Class Description:: . Class disable-partition-name supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param disable_partition...
amwelch/a10sdk-python
a10sdk/core/logging/logging_disable_partition_name.py
Python
apache-2.0
1,271
# Copyright 2020 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
googleapis/python-aiplatform
samples/snippets/model_service/get_model_evaluation_tabular_regression_sample_test.py
Python
apache-2.0
1,059
# 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 u...
sxjscience/tvm
apps/topi_recipe/gemm/android_gemm_square.py
Python
apache-2.0
4,440
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import inspect impor...
kslundberg/pants
src/python/pants/base/build_configuration.py
Python
apache-2.0
8,384
# -*- coding: utf-8 -*- # # 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 (...
apache/bloodhound
bloodhound_multiproduct/tests/versioncontrol/api.py
Python
apache-2.0
4,299
# 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 # distributed under the Li...
chopmann/warehouse
warehouse/i18n/translations.py
Python
apache-2.0
2,912
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import errno import ...
gmalmquist/pants
tests/python/pants_test/pantsd/test_process_manager.py
Python
apache-2.0
16,494
# Copyright 2019 Red Hat, 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...
mahak/neutron
neutron/tests/unit/db/test_ovn_revision_numbers_db.py
Python
apache-2.0
12,345
#- # Copyright (c) 2011 Robert N. M. Watson # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LICENSE_HEADER_START@ # # License...
8l/beri
cheritest/trunk/tests/mem/test_lh_unalign.py
Python
apache-2.0
2,215
# -*- encoding: utf-8 -*- # # Copyright © 2012 Red Hat, Inc # # Author: Eoghan Glynn <eglynn@redhat.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/license...
rackerlabs/instrumented-ceilometer
ceilometer/compute/virt/libvirt/inspector.py
Python
apache-2.0
6,398
# Copyright (c) 2014 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 agreed to ...
swiftstack/swift3-stackforge
swift3/test/unit/test_obj.py
Python
apache-2.0
47,051
#!/usr/bin/env python # % brew vinstall samtools 1.0 # % brew vinstall samtools 0.1.19 # % brew vinstall samtools 1.1 # % brew env samtools 1.1 # PATH=/home/john/.linuxbrew/Cellar/htslib/1.1/bin:/home/john/.linuxbrew/Cellar/samtools/1.1/bin:$PATH # export PATH # LD_LIBRARY_PATH=/home/john/.linuxbrew/Cellar/htslib/1.1/...
ssorgatem/pulsar
galaxy/tools/deps/brew_exts.py
Python
apache-2.0
19,588