repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
ShaguptaS/moviepy | moviepy/video/fx/resize.py | 1 | 3276 |
resize_possible = True
try:
import cv2
resizer = lambda pic, newsize : cv2.resize(pic.astype('uint8'),
tuple(map(int, newsize)),
interpolation=cv2.INTER_AREA)
except ImportError:
try:
import Image
import numpy as np
... | mit | -3,920,737,535,064,460,300 | 31.117647 | 76 | 0.53083 | false |
luzheqi1987/nova-annotation | nova/tests/unit/integrated/v3/test_flavor_access.py | 1 | 3181 | # Copyright 2013 IBM Corp.
#
# 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 t... | apache-2.0 | 7,465,998,557,256,841,000 | 34.741573 | 79 | 0.561144 | false |
BrendanLeber/adventofcode | 2016/20-firewall_rules/firewall_rules.py | 1 | 1586 | # -*- coding: utf-8 -*-
import argparse
import pdb
import traceback
from typing import List, Tuple
def test_ip(ip: int, rules: List[Tuple[int, int]], max_addr: int) -> bool:
for (start, end) in rules:
if start <= ip <= end:
break
else:
if ip < max_addr:
return True
... | mit | 2,803,982,701,570,625,000 | 24.580645 | 100 | 0.552333 | false |
uwosh/UWOshOIE | tests/testTransitionApproveForFA.py | 1 | 4225 | import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Products.UWOshOIE.tests.uwoshoietestcase import UWOshOIETestCase
from Products.CMFCore.WorkflowCore import WorkflowException
class TestTransitionApproveForFA(UWOshOIETestCase):
"""Ensure product is properly inst... | gpl-2.0 | 7,559,430,899,610,069,000 | 41.676768 | 304 | 0.68213 | false |
dpshelio/sunpy | sunpy/util/net.py | 2 | 6983 | """
This module provides general net utility functions.
"""
import os
import re
import sys
import shutil
from unicodedata import normalize
from email.parser import FeedParser
from urllib.parse import urljoin, urlparse
from urllib.request import urlopen
from sunpy.util import replacement_filename
__all__ = ['slugify',... | bsd-2-clause | 134,006,119,759,047,330 | 28.340336 | 98 | 0.622798 | false |
msherry/PyXB-1.1.4 | tests/bugs/test-200908271556.py | 1 | 1990 | import pyxb_114.binding.generate
import pyxb_114.binding.datatypes as xs
import pyxb_114.binding.basis
import pyxb_114.utils.domutils
import gc
import os.path
xsd='''<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="instance">
<xs:complexType>
... | apache-2.0 | 223,691,252,362,142,340 | 27.028169 | 89 | 0.554271 | false |
deuscoin-org/deuscoin-core | qa/rpc-tests/test_framework/authproxy.py | 1 | 6097 |
"""
Copyright 2011 Jeff Garzik
AuthServiceProxy has the following improvements over python-jsonrpc's
ServiceProxy class:
- HTTP connections persist for the life of the AuthServiceProxy object
(if server supports HTTP/1.1)
- sends protocol 'version', per JSON-RPC 1.1
- sends proper, incrementing 'id'
... | mit | -2,653,445,764,162,595,300 | 36.176829 | 105 | 0.599803 | false |
JasonLai256/plumbca | plumbca/cache.py | 1 | 2429 | # -*- coding:utf-8 -*-
"""
plumbca.cache
~~~~~~~~~~~~~
CacheHandler for the collections control.
:copyright: (c) 2015 by Jason Lai.
:license: BSD, see LICENSE for more details.
"""
import asyncio
import logging
import re
import os
from .config import DefaultConf
from .collection import IncreaseC... | bsd-3-clause | -7,146,317,080,230,869,000 | 31.386667 | 80 | 0.599012 | false |
sdrogers/lda | code/lda_utilities.py | 1 | 14058 | import numpy as np
import pickle
import jsonpickle
def match_topics_across_dictionaries(lda1 = None,lda2 = None,file1 = None,file2 = None,
same_corpus = True,copy_annotations = False,copy_threshold = 0.5,summary_file = None,
new_file2 = None,mass_tol = 5.0):
# finds the closest topic matches from lda2 to lda1
if l... | gpl-3.0 | 7,522,224,093,427,851,000 | 33.374083 | 132 | 0.636862 | false |
our-city-app/oca-backend | src/rogerthat/models/auth/acm.py | 1 | 2211 | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | apache-2.0 | 6,988,458,327,065,646,000 | 28.891892 | 101 | 0.703754 | false |
cartertech/odoo-hr-ng | hr_report_payroll_attendance_summary/report/attendance_summary.py | 1 | 14914 | #-*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 One Click Software (http://oneclick.solutions)
# and Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
#
# This program is free software: you can redistribute it and/or m... | agpl-3.0 | -5,935,333,586,226,009,000 | 42.48105 | 148 | 0.495575 | false |
adlius/osf.io | api/providers/urls.py | 1 | 5275 | from django.conf.urls import include, url
from api.providers import views
app_name = 'osf'
urlpatterns = [
url(
r'^preprints/', include(
(
[
url(r'^$', views.PreprintProviderList.as_view(), name=views.PreprintProviderList.view_name),
url... | apache-2.0 | 7,185,396,797,768,840,000 | 80.153846 | 202 | 0.653649 | false |
tensorflow/lingvo | lingvo/tasks/punctuator/input_generator_test.py | 1 | 3305 | # Lint as: python3
# Copyright 2018 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 ... | apache-2.0 | -7,914,446,482,851,049,000 | 36.988506 | 80 | 0.673222 | false |
ocadotechnology/aimmo | aimmo-game/tests/test_interactables/mock_world.py | 1 | 1445 | import random
from simulation import map_generator
from simulation.simulation_runner import SequentialSimulationRunner
from tests.test_simulation.mock_communicator import MockCommunicator
from tests.test_simulation.dummy_avatar import DummyAvatarManager, MoveEastDummy
from tests.test_simulation.mock_turn_collector imp... | agpl-3.0 | 7,244,592,675,952,076,000 | 37.026316 | 107 | 0.715571 | false |
akraft196/pyASC | examples/mplot1.py | 1 | 7267 | #! /usr/bin/env python
#
# quick and dirty processing of the MD All Sky images
from astropy.io import fits
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from scipy.misc import imsave
import numpy as np
import aplpy
import argparse as ap
import os.path
import logging
import time
def d(ff,box=[]):... | mit | 8,728,276,588,416,666,000 | 31.734234 | 236 | 0.551534 | false |
Daeinar/dfa-aes | simulator/inject.py | 1 | 1300 | #!/usr/bin/env python
#
# Licensed by "The MIT License". See file LICENSE.
#
# Script to simulate fault injections on AES-128.
# Prints correct and corresponding faulty ciphertext.
#
# Usage: ./inject nr_of_example fault_location
#
# fault_location must be in {0,...,15}.
#
import sys
from aes import *
# (plaintext,key... | mit | -8,040,455,792,532,726,000 | 34.135135 | 84 | 0.754615 | false |
wooga/airflow | airflow/providers/google/cloud/operators/natural_language.py | 1 | 10959 | #
# 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... | apache-2.0 | 3,930,899,505,662,823,400 | 40.044944 | 102 | 0.686559 | false |
goinnn/django-multiselectfield | example/app/urls.py | 1 | 1723 | # -*- coding: utf-8 -*-
# Copyright (c) 2013 by Pablo Martín <goinnn@gmail.com>
#
# This software 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) a... | lgpl-3.0 | 1,116,952,307,818,030,800 | 34.875 | 79 | 0.639373 | false |
bunnylin/supersakura | translate.py | 1 | 4235 | #!/usr/bin/python
# CC0, 2017 :: Kirinn Bunnylin / Mooncore
# https://creativecommons.org/publicdomain/zero/1.0/
import sys, re, time, subprocess
#from subprocess import check_output
if len(sys.argv) < 2:
print("Usage: python translate.py inputfile.tsv >outputfile.tsv")
print("The input file should be a tsv. The ... | gpl-3.0 | 9,078,087,450,414,523,000 | 35.508621 | 79 | 0.654782 | false |
marcusmchale/breedcafs | app/cypher.py | 1 | 76573 | class Cypher:
def __init__(self):
pass
# user procedures
allowed_emails = (
' MATCH '
' (e: Emails) '
' RETURN '
' e.allowed '
)
user_allowed_emails = (
' MATCH '
' (u:User) '
' WITH '
' COLLECT (DISTINCT u.email) as registered_emails '
' MATCH '
' (user:User {'
' username_lower : toLower(... | gpl-3.0 | 6,791,217,323,624,032,000 | 29.951091 | 110 | 0.525838 | false |
encukou/freeipa | ipaserver/install/dsinstance.py | 1 | 53454 | # Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
# Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2007 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publ... | gpl-3.0 | 5,848,009,297,824,252,000 | 37.734783 | 113 | 0.585644 | false |
SAPikachu/nyapass | nyapass-client.py | 1 | 1513 | #!/usr/bin/env python3
import sys
import logging
from common import nyapass_run_instances, Nyapass
from local import ClientHandlerManager
from local_socks5 import SocksClientHandler
from config import Config
def main():
config = Config("client")
logging.basicConfig(level=config.log_level)
instances = []... | gpl-3.0 | -1,051,527,714,603,912,100 | 25.086207 | 66 | 0.57766 | false |
acgtun/acgtun.com | acgtun/leetcode/views.py | 1 | 1338 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
import os
import sys
from collections import OrderedDict
from django.template.loader import render_to_string
from django.http import HttpResponse
from django.conf import settings
from . import db_table
from databas... | gpl-2.0 | -7,404,087,127,536,536,000 | 28.733333 | 116 | 0.683857 | false |
cvandeplas/plaso | plaso/parsers/olecf_plugins/summary_test.py | 1 | 4825 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2013 The Plaso Project Authors.
# Please see the AUTHORS file for details on individual authors.
#
# 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 L... | apache-2.0 | -707,528,440,018,639,700 | 36.115385 | 79 | 0.712124 | false |
mancoast/CPythonPyc_test | cpython/241_regrtest.py | 1 | 35276 | #! /usr/bin/env python
"""Regression test.
This will find all modules whose name is "test_*" in the test
directory, and run them. Various command line options provide
additional facilities.
Command line options:
-v: verbose -- run tests in verbose mode with output to stdout
-q: quiet -- don't print anythin... | gpl-3.0 | -5,719,543,437,383,639,000 | 29.674783 | 79 | 0.545498 | false |
jdilallo/jdilallo-test | examples/dfp/v201311/label_service/create_labels.py | 1 | 1668 | #!/usr/bin/python
#
# Copyright 2014 Google 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 b... | apache-2.0 | -6,635,565,559,352,071,000 | 28.785714 | 77 | 0.681655 | false |
south-coast-science/scs_mfr | src/scs_mfr/aws_group_setup.py | 1 | 4484 | #!/usr/bin/env python3
"""
Created on 21 Sep 2020
@author: Jade Page (jade.page@southcoastscience.com)
DESCRIPTION
The aws_group_setup utility is designed to automate the creation of AWS Greengrass groups using South
Coast Science's configurations.
The group must already exist and the ML lambdas must be associated ... | mit | -6,137,328,642,779,929,000 | 29.503401 | 118 | 0.574487 | false |
cshinaver/cctools | umbrella/src/umbrella.py | 1 | 188703 | #!/usr/bin/env cctools_python
# CCTOOLS_PYTHON_VERSION 2.7 2.6
# All the vanilla python package dependencies of Umbrella can be satisfied by Python 2.6.
"""
Umbrella is a tool for specifying and materializing comprehensive execution environments, from the hardware all the way up to software and data. A user simply in... | gpl-2.0 | -3,054,751,530,107,959,000 | 42.014133 | 648 | 0.702808 | false |
allink/cookiecutter-allink-project | {{ cookiecutter.repo_name }}/{{ cookiecutter.project_name }}/settings/production.py | 1 | 2379 | from .default import * # noqa
# import djcelery
# ===================
# = Global Settings =
# ===================
DEBUG = False
# ===================
# = Server Settings =
# ===================
DATABASES['default']['CONN_MAX_AGE'] = 60
RAVEN_CONFIG = {
'dsn': '{{ cookiecutter.sentry_dsn}}',
}
CACHES = {
... | bsd-3-clause | -8,018,112,526,542,343,000 | 24.580645 | 102 | 0.517865 | false |
leshchevds/ganeti | lib/jqueue/__init__.py | 1 | 52112 | #
#
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyri... | bsd-2-clause | -2,647,619,656,363,776,500 | 29.403734 | 80 | 0.644055 | false |
duke605/RunePy | tasks/configuration.py | 1 | 5798 | from secret import DISCORD_BOTS_TOKEN
from db.models import objects, Configuration
from datetime import datetime, timedelta
from secret import MIXPANEL_SECRET
import asyncio
import base64
import discord
import json
import util
class Config:
def __init__(self, bot):
self.bot = bot
self.prune_serve... | mit | -5,977,478,621,429,887,000 | 35.929936 | 140 | 0.583994 | false |
sonus89/FIPER | client/direct.py | 1 | 6293 | from __future__ import print_function, unicode_literals, absolute_import
import sys
import time
from FIPER.generic.interface import InterfaceFactory
from FIPER.generic.abstract import AbstractListener
from FIPER.generic.subsystem import StreamDisplayer
from FIPER.generic.probeclient import Probe
class DirectConnect... | mit | 2,546,170,463,574,380,000 | 31.107143 | 84 | 0.578262 | false |
tmoer/multimodal_varinf | networks/network_rl.py | 1 | 7832 | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 2 14:48:24 2017
@author: thomas
"""
#from layers import Latent_Layer
import sys
import os.path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
import tensorflow as tf
import tens... | mit | 8,419,598,953,240,772,000 | 47.652174 | 154 | 0.588994 | false |
KaiserAndres/kaiserBot | bot_executables.py | 1 | 4751 | import roller
import random
DEFAULT_CARD_AMOUNT = 1
MAX_CARDS = 15
CARD_SEPARATOR = "||"
def ping_exec(irc, message):
pong = 'PONG ' + message.text.split(" ")[1] + '\r\n'
irc.send(pong.encode("utf-8"))
def roll_exec(irc, message):
'''
A !roll comand has the following structure:
!rol... | mit | -1,279,902,818,268,667,600 | 29.455128 | 80 | 0.53273 | false |
thermokarst/advent-of-code-2015 | day20.py | 1 | 2724 | # Matthew Ryan Dillon
# github.com/thermokarst
#
# --- Day 20: Infinite Elves and Infinite Houses ---
#
# To keep the Elves busy, Santa has them deliver some presents by hand,
# door-to-door. He sends them down a street with infinite houses numbered
# sequentially: 1, 2, 3, 4, 5, and so on.
#
# Each Elf is assigned a n... | mit | -2,547,104,543,869,876,000 | 34.842105 | 82 | 0.656021 | false |
ifuding/Kaggle | PMRCN/Code/siamese_net.py | 1 | 22230 |
from sklearn import *
import sklearn
import pandas as pd
import numpy as np
import xgboost as xgb
import lightgbm as lgb
from time import gmtime, strftime
import numpy.random as rng
from multiprocessing.dummy import Pool
import h5py
import concurrent.futures
import tensorflow as tf
import multiprocessing as mp
from s... | apache-2.0 | 3,541,480,684,479,684,600 | 37.66087 | 268 | 0.609852 | false |
emmettk/pvrsex | tiff_file_folder_divider.py | 1 | 5268 | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 28 16:14:22 2017
@author: ekrupczak on LaVision
Divide tiffs up into subfolders with maximum number of files per folder
This allows them to be imported into DaVis which seems unwilling to import more than about 10000 files at a time.
Or pull all tiffs from specified fol... | mit | -5,883,737,634,653,318,000 | 33.664474 | 113 | 0.610478 | false |
czcorpus/kontext | lib/bgcalc/csv_cache.py | 1 | 1387 | # Copyright (c) 2021 Charles University, Faculty of Arts,
# Institute of the Czech National Corpus
# Copyright (c) 2021 Tomas Machalek <tomas.machalek@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publis... | gpl-2.0 | 5,040,845,778,632,978,000 | 32.829268 | 67 | 0.618601 | false |
arnavd96/Cinemiezer | myvenv/lib/python3.4/site-packages/music21/demos/smt2011.py | 1 | 5140 | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name: smt2011.py
# Purpose: Demonstrations for the SMT 2011 demo
#
# Authors: Christopher Ariza
# Michael Scott Cuthbert
#
# Copyright: Copyright © 2011 Michael Scott Cuthbert an... | mit | -2,055,209,700,920,989,400 | 30.527607 | 87 | 0.590971 | false |
jaeddy/bripipetools | bripipetools/dbification/flowcellrun.py | 1 | 8314 | """
Class for importing data from a sequencing run into GenLIMS and the
Research DB as new objects.
"""
import logging
import os
import re
from .. import parsing
from .. import database
from .. import annotation
logger = logging.getLogger(__name__)
class FlowcellRunImporter(object):
"""
Collects FlowcellRu... | mit | 3,064,618,017,734,528,000 | 39.955665 | 82 | 0.595141 | false |
hidashun/django-typed-models | typedmodels/tests.py | 1 | 8182 | from django.utils import unittest
try:
import yaml # NOQA
PYYAML_AVAILABLE = True
except ImportError:
PYYAML_AVAILABLE = False
from django.core import serializers
from django.test import TestCase
from django.db.models.query_utils import DeferredAttribute
from .test_models import AngryBigCat, Animal, BigC... | bsd-3-clause | -235,403,817,046,583,680 | 43.467391 | 189 | 0.666585 | false |
Zogg/Tiltai | tiltai/sdn/docker.py | 1 | 1700 | from tiltai.utils import tiltai_logs_format
import socket
from logbook import Logger, StderrHandler
err = StderrHandler(format_string=tiltai_logs_format)
log = Logger("sdn[docker]")
def dockersdn(queue_name, resolver, storage):
"""
Get addresses and type of the socket from within docker container. A
hostnam... | gpl-3.0 | -5,203,554,288,579,424,000 | 29.357143 | 94 | 0.63 | false |
BFH-BTI7301-project1/ClockAlarm | _clockalarm/UI/NotificationWidget.py | 1 | 3442 | # ClockAlarm is a cross-platform alarm manager
# Copyright (C) 2017 Loïc Charrière, Samuel Gauthier
#
# 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 y... | gpl-3.0 | 9,079,899,574,267,566,000 | 39.952381 | 114 | 0.65843 | false |
takus/dd-agent | tests/checks/integration/test_php_fpm.py | 1 | 2958 | # 3p
from nose.plugins.attrib import attr
# project
from checks import AgentCheck
from tests.checks.common import AgentCheckTest
# sample from /status?json
# {
# "accepted conn": 350,
# "active processes": 1,
# "idle processes": 2,
# "listen queue": 0,
# "listen queue len": 0,
# "max active p... | bsd-3-clause | -3,591,520,637,008,432,600 | 28 | 96 | 0.55071 | false |
AdamsLee/mongo-connector | mongo_connector/connector.py | 1 | 31437 | # Copyright 2013-2014 MongoDB, 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 writing... | apache-2.0 | -3,153,926,013,907,341,300 | 42.967832 | 85 | 0.533193 | false |
willzfarmer/HadoopInspector | hadoopinspector/tests/test_registry.py | 1 | 12740 | #!/usr/bin/env python2
"""
This source code is protected by the BSD license. See the file "LICENSE"
in the source code root directory for the full language or refer to it here:
http://opensource.org/licenses/BSD-3-Clause
Copyright 2015, 2016 Will Farmer and Ken Farmer
"""
from __future__ import division
import sys... | bsd-3-clause | 901,230,051,959,237,400 | 42.040541 | 105 | 0.569937 | false |
v4hn/ecto | test/scripts/test_tendrils.py | 1 | 2868 | #!/usr/bin/env python
#
# Copyright (c) 2011, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# n... | bsd-3-clause | 3,189,837,938,713,107,000 | 31.590909 | 77 | 0.656206 | false |
lazuxd/teste-admitere-snpap | slidingpanel.py | 1 | 3425 | # -*- coding: utf-8 -*-
from kivy.animation import Animation
from kivy.clock import Clock
from kivy.core.window import Window
from kivy.lang import Builder
from kivy.metrics import dp
from kivy.properties import OptionProperty, NumericProperty, StringProperty, \
BooleanProperty, ListProperty
from kivy.uix.boxlayout... | mit | -6,720,822,278,794,531,000 | 35.827957 | 90 | 0.574015 | false |
sophilabs/py101 | py101/lists/__init__.py | 1 | 1763 | """"
Introduction Adventure
Author: Ignacio Avas (iavas@sophilabs.com)
"""
import codecs
import io
import sys
import unittest
from story.adventures import AdventureVerificationError, BaseAdventure
from story.translation import gettext as _
class TestOutput(unittest.TestCase):
"""Variables Adventure test"""
d... | mit | 1,598,433,818,799,941,000 | 29.396552 | 79 | 0.601815 | false |
ZeitOnline/zeit.push | src/zeit/push/browser/mobile.py | 1 | 1348 | from zope.cachedescriptors.property import Lazy as cachedproperty
import logging
import sys
import zeit.push.interfaces
import zope.security.proxy
log = logging.getLogger(__name__)
class FindTitle(object):
def __call__(self):
name = self.request.form.get('q')
if not name:
return ''
... | bsd-3-clause | 2,564,557,959,152,968,000 | 27.083333 | 71 | 0.626855 | false |
gitoffdabus/inf1340_2015_asst1 | exercise3.py | 1 | 5527 | #!/usr/bin/env python
""" Assignment 1, Exercise 3, INF1340, Fall, 2015. Troubleshooting Car Issues.
This module contains one function diagnose_car(). It is an expert system to
interactive diagnose car issues.
"""
__author__ = 'Susan Sim'
__email__ = "ses@drsusansim.org"
__copyright__ = "2015 Susan Sim"
__license__... | mit | 1,235,066,256,256,096,000 | 32.70122 | 121 | 0.562692 | false |
grafgustav/accessmail | src/Service/ImapReceiver.py | 1 | 1024 | __author__ = 'phillip'
from .MailReceiver import MailReceiver
import poplib
class IMAPReceiver(MailReceiver):
def __init__(self, config):
self._conn = None
def connect(self, config):
self._server = poplib.POP3_SSL()
self._server.apop()
def delete_mail(self, n):
self._se... | mit | -1,807,214,119,877,362,200 | 18.711538 | 41 | 0.584961 | false |
kurennon/misc-tools | find_validator/find_validator.py | 1 | 1259 | #!/usr/bin/env python3
DIG_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
def find_validator(dig_string, old_base):
dig_sum = sum_digits(dig_string, old_base)
return dig_sum[-1:].upper()
def sum_digits(dig_string, old_base):
int_sum = 0
while dig_string:
int_sum += int(dig_string[:1], base=... | gpl-3.0 | 3,645,768,671,179,305,500 | 36.029412 | 96 | 0.590151 | false |
yggi49/wtforms-polyglot | wtf_polyglot/meta.py | 1 | 2876 | from __future__ import unicode_literals
try:
from html import escape
from html.parser import HTMLParser
except ImportError:
from cgi import escape
from HTMLParser import HTMLParser
from wtforms.meta import DefaultMeta
from wtforms.widgets.core import HTMLString
class PolyglotHTMLParser(HTMLParser):
... | bsd-3-clause | -4,385,307,373,991,363,000 | 31.681818 | 78 | 0.631085 | false |
torchingloom/edx-platform | common/lib/xmodule/xmodule/master_class_module.py | 1 | 15766 | # -*- coding: utf-8 -*-
"""Word cloud is ungraded xblock used by students to
generate and view word cloud.
On the client side we show:
If student does not yet answered - `num_inputs` numbers of text inputs.
If student have answered - words he entered and cloud.
"""
import json
import logging
import datetime
import cs... | agpl-3.0 | -7,321,570,871,203,777,000 | 39.703125 | 195 | 0.540179 | false |
EmanueleCannizzaro/scons | test/DVIPDF/DVIPDFCOM.py | 1 | 2061 | #!/usr/bin/env python
#
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# 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 us... | mit | -6,095,781,751,735,169,000 | 28.869565 | 98 | 0.70985 | false |
googleapis/googleapis-gen | google/cloud/aiplatform/v1/aiplatform-v1-py/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc_asyncio.py | 1 | 18872 | # -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 227,159,472,070,711,040 | 46.417085 | 109 | 0.632524 | false |
puttarajubr/commcare-hq | custom/ilsgateway/tests/test_locations_sync.py | 1 | 4004 | from datetime import datetime
import json
import os
from django.test import TestCase
from corehq.apps.commtrack.models import CommtrackConfig
from corehq.apps.commtrack.tests.util import bootstrap_domain as initial_bootstrap
from corehq.apps.locations.models import Location, SQLLocation
from custom.ilsgateway.api impor... | bsd-3-clause | 6,287,786,364,255,786,000 | 47.829268 | 102 | 0.709041 | false |
davidvg/google_api | google_api/gmail_api.py | 1 | 13120 | '''
Basic Python3 implementation of some functionality of the Gmail API.
Based on the code from the Gmail API documentation.
Requires a 'secret file' to allow authentication (see [1])
Installation
-----------
In Python3, install the API using pip3:
pip3 install --upgrade google-api-python-client
Install packages... | mit | -5,331,380,682,368,593,000 | 32.384224 | 88 | 0.509604 | false |
nens/threedi-verification | threedi_verification/views.py | 1 | 6949 | # (c) Nelen & Schuurmans. GPL licensed, see LICENSE.txt.
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from collections import OrderedDict
import itertools
import logging
from django.conf import settings
from django.core.urlresolvers i... | gpl-3.0 | 6,112,501,060,165,958,000 | 32.090476 | 79 | 0.65477 | false |
Lax/Packages | ganglia-gmond-modules-python-plugins/usr/lib64/ganglia/python_modules/sockstat.py | 1 | 2803 | # sockstat module for ganglia 3.1.x and above
# Copyright (C) Wang Jian <lark@linux.net.cn>, 2009
import os, sys
import time
last_poll_time = 0
sockstats = {
'tcp_total': 0,
'tcp_established': 0,
'tcp_orphan': 0,
'tcp_timewait': 0,
'udp_total': 0 }
def metric_update():
global sockstats
f... | gpl-3.0 | -1,002,256,754,032,724,500 | 23.163793 | 79 | 0.49447 | false |
paolomonella/ursus | xmlToolBox/minidomToolBox.py | 1 | 7687 | #! /usr/bin/env python
# This is a toolbox I'm using to look for specific things in the XML DOM
##################
# Import modules #
##################
from __future__ import print_function
from xml.dom.minidom import parse, parseString
#import xml.dom.minidom
#################
# Parse the XML #
#################
... | gpl-2.0 | 6,549,222,712,097,434,000 | 38.420513 | 120 | 0.552751 | false |
apdavison/python-neo | neo/test/iotest/test_neuralynxio.py | 1 | 18949 | """
Tests of neo.io.neuralynxio.py
"""
import time
import warnings
import unittest
import numpy as np
import quantities as pq
from neo.test.iotest.common_io_test import BaseTestIO
from neo.core import *
from neo.io.neuralynxio import NeuralynxIO
from neo import AnalogSignal
class CommonNeuralynxIOTest(BaseTestIO... | bsd-3-clause | 6,517,273,555,125,768,000 | 42.461009 | 99 | 0.616075 | false |
cupy/cupy | tests/cupy_tests/random_tests/test_generator.py | 1 | 39103 | import functools
import os
import threading
import unittest
import numpy
import pytest
import cupy
from cupy import cuda
from cupy.cuda import runtime
from cupy.random import _generator
from cupy import testing
from cupy.testing import _attr
from cupy.testing import _condition
from cupy.testing import _hypothesis
fr... | mit | -1,526,008,727,223,784,700 | 26.990694 | 79 | 0.591106 | false |
btat/Booktype | lib/booktype/apps/reader/tests/functest_views.py | 1 | 8237 | from django.test import TestCase
from django.core.urlresolvers import reverse
from .factory_models import UserFactory, BookFactory, BookVersionFactory
from .factory_models import ChapterFactory, BookTocFactory
from .factory_models import PLAIN_USER_PASSWORD
class ReaderBaseTestCase(TestCase):
"""
Base test ca... | agpl-3.0 | -3,166,875,531,639,531,500 | 32.901235 | 93 | 0.637611 | false |
baroquebobcat/pants | contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_binary_create.py | 1 | 1949 | # 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 os
from pant... | apache-2.0 | 3,385,666,084,271,358,000 | 33.803571 | 94 | 0.682401 | false |
niallrmurphy/pyvern | test_tree.py | 1 | 20890 | #!/usr/bin/env python
# encoding: utf-8
# Niall Richard Murphy <niallm@gmail.com>
"""Test the tree (gap-production) object."""
import sys
import constants
import random
import tree
# Perhaps unittest2 is available. Try to import it, for
# those cases where we are running python 2.7.
try:
import unittest2 as unitt... | apache-2.0 | -4,469,209,220,088,208,400 | 34.709402 | 94 | 0.613787 | false |
kmahyyg/learn_py3 | antiscanhttp.py | 1 | 2192 | #!/usr/bin/env python3
# -*- coding : utf-8 -*-
# http://speedtest.tele2.net/10GB.zip
# https://docs.python.org/3/library/http.server.html
# http://blog.csdn.net/cteng/article/details/51584766
"""
Anti-HTTP-Scanner : Redirect all requests to 10GB speedtest file
Patrick Young 2017/10/8
usage: "antiscanhttp.py" [-h] [-... | agpl-3.0 | 8,516,625,122,009,231,000 | 31.235294 | 113 | 0.649635 | false |
brendanlong/dash-ts-tools | dash_initialization_segmenter.py | 1 | 4159 | #!/usr/bin/env python3
import argparse
import os
from ts import *
def write_ts(file_name, packets, force):
logging.info("Writing %s", file_name)
if not force and os.path.exists(file_name):
choice = input(
"Output file {} already exists. Overwrite it? "
"[y/N] ".format(file_na... | bsd-2-clause | -5,032,914,013,594,060,000 | 40.178218 | 80 | 0.5434 | false |
MarcoVogt/basil | tests/test_RegisterHardwareLayer.py | 1 | 9389 | #
# ------------------------------------------------------------
# Copyright (c) All rights reserved
# SiLab, Institute of Physics, University of Bonn
# ------------------------------------------------------------
#
import unittest
from basil.dut import Dut
from basil.HL.RegisterHardwareLayer import Registe... | bsd-3-clause | -6,639,450,954,130,615,000 | 45.180905 | 163 | 0.575248 | false |
libvirt/libvirt-test-API | selftests/test_envparser.py | 1 | 5061 | import pytest
from unittest.mock import Mock, MagicMock, patch
try:
import ConfigParser
except ImportError:
import configparser as ConfigParser
import os
from libvirttestapi.src import exception as exc
from libvirttestapi.src import env_parser
from libvirttestapi.utils import utils
class TestEnvParser():
... | gpl-2.0 | -3,375,050,663,111,439,000 | 43.787611 | 95 | 0.69018 | false |
mistercrunch/panoramix | superset/reports/api.py | 2 | 14710 | # 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... | apache-2.0 | -7,320,515,751,932,594,000 | 32.205418 | 85 | 0.560639 | false |
adieu/django-invitation | invitation/models.py | 1 | 6880 | import os
import random
import datetime
from django.db import models
from django.conf import settings
from django.utils.http import int_to_base36
from django.utils.hashcompat import sha_constructor
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from django.core.mail ... | bsd-3-clause | -6,604,925,912,574,837,000 | 37.435754 | 100 | 0.636628 | false |
drssoccer55/RLBot | src/main/python/rlbot/utils/structures/rigid_body_struct.py | 1 | 1072 | import ctypes
from rlbot.utils.structures.bot_input_struct import PlayerInput
from rlbot.utils.structures.game_data_struct import Vector3
from rlbot.utils.structures.start_match_structures import MAX_PLAYERS
class Quaternion(ctypes.Structure):
_fields_ = [("x", ctypes.c_float),
("y", ctypes.c_flo... | mit | -2,333,322,161,590,240,000 | 29.628571 | 69 | 0.609142 | false |
jepler/linuxcnc-mirror | src/emc/usr_intf/pncconf/pncconf.py | 1 | 292409 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# This is pncconf, a graphical configuration editor for LinuxCNC
# Chris Morley copyright 2009
# This is based from stepconf, a graphical configuration editor for linuxcnc
# Copyright 2007 Jeff Epler <jepler@unpythonic.net>
#
# This program is free software... | lgpl-2.1 | -1,847,330,764,788,389,000 | 54.005267 | 192 | 0.527267 | false |
HaebinShin/tensorflow | tensorflow/python/ops/nn_ops.py | 1 | 56530 | # Copyright 2015 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... | apache-2.0 | 5,910,611,416,458,937,000 | 41.535741 | 92 | 0.660375 | false |
jxwufan/AssociativeRetrieval | FW_model.py | 1 | 3847 | import tensorflow as tf
from FastWeightsRNN import LayerNormFastWeightsBasicRNNCell
from tensorflow.python.ops import seq2seq
import utils
import numpy as np
class FW_model(object):
def __init__(self, config=None, mode=None):
self.config = config
self.mode = mode
self.build_graph()
self.load_validat... | apache-2.0 | -3,620,637,527,844,677,000 | 40.815217 | 127 | 0.653236 | false |
joseguerrero/sembrando | src/presentacion/paginas/pantalla9.py | 1 | 30062 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
from librerias import pantalla
from librerias.boton import boton
from librerias.texto import texto
from librerias.popups import PopUp
from librerias.imagen import imagen
from librerias.contenido import cont
from librerias.imgfondo import fondo
from librerias.p... | gpl-3.0 | 7,081,254,828,094,702,000 | 58.114173 | 189 | 0.497036 | false |
barct/odoo-coop | infocoop_epec_consumos/tab_fact.py | 1 | 5194 | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
from openerp import models, fields, api
from opene... | gpl-3.0 | -7,498,251,093,839,075,000 | 33.85906 | 78 | 0.426646 | false |
frzdian/jaksafe-engine | jaksafe/jaksafe/jakservice/jaksafe.py | 1 | 3403 | import ConfigParser
import os
import sys
#### import postgresql and mysql package
import MySQLdb
import psycopg2
from sqlalchemy import create_engine
global_conf_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'global_conf.cfg')
def get_database_connection(ip_address,user,paswd,database):
con = ... | gpl-2.0 | 3,715,504,238,457,003,000 | 38.114943 | 121 | 0.667058 | false |
ufal/ker | server.py | 1 | 9594 | #!/usr/bin/env python
import flask
from flask import Flask
from flask import request
from werkzeug import secure_filename
import os, random, datetime, codecs
import sys, json, magic
import cPickle as pickle
import regex as re
import keywords
import argparse
import xml.etree.ElementTree
import zipfile
app = Flask(__na... | lgpl-3.0 | 3,862,969,899,623,233,500 | 34.142857 | 126 | 0.603294 | false |
Juanlu001/CBC.Solve | cbc/swing/fsinewton/solver/boundary_conditions.py | 1 | 4016 | """Module containing implementation of monolithic FSI boundary conditions"""
__author__ = "Gabriel Balaban"
__copyright__ = "Copyright (C) 2010 Simula Research Laboratory and %s" % __author__
__license__ = "GNU GPL Version 3 or any later version"
from dolfin import *
class FSIBC(object):
"""
Boundary Conditi... | gpl-3.0 | -6,300,717,971,602,277,000 | 43.131868 | 101 | 0.608317 | false |
timopulkkinen/BubbleFish | tools/telemetry/telemetry/core/chrome/win_platform_backend.py | 1 | 3723 | # Copyright (c) 2013 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 ctypes
import subprocess
try:
import win32api # pylint: disable=F0401
import win32con # pylint: disable=F0401
import win32process # pylin... | bsd-3-clause | 2,244,057,969,717,524,000 | 36.606061 | 77 | 0.640612 | false |
Jajcus/pyxmpp2 | pyxmpp2/mainloop/wait.py | 1 | 2125 | #
# (C) Copyright 2011 Jacek Konieczny <jajcus@jajcus.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License Version
# 2.1 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful... | lgpl-2.1 | -7,421,785,645,248,673,000 | 35.637931 | 77 | 0.660235 | false |
kamitchell/py2app | py2app/filters.py | 1 | 1048 | from pkg_resources import require
require("macholib")
import os
import sys
from macholib.util import has_filename_filter, in_system_path
def not_stdlib_filter(module, prefix=None):
"""
Return False if the module is located in the standard library
"""
if prefix is None:
prefix = sys.prefix
... | mit | 183,278,461,600,789,730 | 27.324324 | 67 | 0.645992 | false |
schieb/angr | tests/test_baseptr_save_simplifier.py | 1 | 2862 |
import os.path
import nose.tools
import angr
import ailment
from angr.analyses.decompiler.optimization_passes.base_ptr_save_simplifier import BasePointerSaveSimplifier
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests')
def _get_block(clinic, addr):
for ... | bsd-2-clause | -5,038,531,602,819,677,000 | 35.692308 | 107 | 0.676799 | false |
tuukka/sonata-svn-test | sonata/plugins/test.py | 1 | 2113 |
# this is the magic interpreted by Sonata, referring to on_enable etc. below:
### BEGIN PLUGIN INFO
# [plugin]
# plugin_format: 0, 0
# name: Test plugin
# version: 0, 0, 1
# description: A simple test plugin.
# author: Tuukka Hastrup
# author_email: Tuukka.Hastrup@iki.fi
# url: http://sonata.berlios.de
# license: GPL... | gpl-3.0 | 4,461,166,768,552,095,000 | 27.554054 | 77 | 0.705632 | false |
datacommonsorg/data | scripts/us_bjs/nps/preprocess_data.py | 1 | 19122 | import pandas as pd
from absl import flags
from absl import app
FLAGS = flags.FLAGS
flags.DEFINE_string('preprocess_file',
'NPS_1978-2018_Data.tsv',
'file path to tsv file with data to proess',
short_name='p')
def convert_nan_for_calculation(value):
if ... | apache-2.0 | 8,942,910,421,515,007,000 | 45.867647 | 174 | 0.653488 | false |
seecr/meresco-distributed | meresco/distributed/failover/_conditionmet.py | 1 | 2572 | ## begin license ##
#
# "Meresco Distributed" has components for group management based on "Meresco Components."
#
# Copyright (C) 2018, 2021 Seecr (Seek You Too B.V.) https://seecr.nl
# Copyright (C) 2021 Data Archiving and Network Services https://dans.knaw.nl
# Copyright (C) 2021 SURF https://www.surf.nl
# Copyright... | gpl-2.0 | 5,258,369,946,063,491,000 | 37.969697 | 92 | 0.680016 | false |
scotwk/cloud-custodian | tools/zerodark/zerodark/ipdb.py | 1 | 24394 | # Copyright 2017-2018 Capital One Services, 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 agreed ... | apache-2.0 | -6,660,086,870,212,036,000 | 33.309423 | 100 | 0.540051 | false |
szlin/gitsome | tests/data/thread.py | 1 | 1319 | # -*- coding: utf-8 -*-
# Copyright 2015 Donne Martin. 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. A copy of
# the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "lice... | gpl-3.0 | -6,820,701,067,351,513,000 | 81.4375 | 739 | 0.692191 | false |
abramhindle/UnnaturalCodeFork | python/testdata/launchpad/lib/lp/codehosting/tests/test_safe_open.py | 1 | 16078 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Tests for the safe branch open code."""
__metaclass__ = type
from bzrlib.branch import (
Branch,
BranchReferenceFormat,
BzrBranchFormat7,
)
from bzrlib.b... | agpl-3.0 | -2,065,448,850,034,553,000 | 41.089005 | 78 | 0.662085 | false |
jjdmol/LOFAR | LTA/LTAIngest/dav/webdav/acp/Acl.py | 1 | 10978 | # pylint: disable-msg=W0622
#
# Copyright 2008 German Aerospace Center (DLR)
#
# 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... | gpl-3.0 | 5,891,104,285,362,545,000 | 34.299035 | 118 | 0.55092 | false |
thundernet8/WRGameVideos-API | venv/lib/python2.7/site-packages/flask_jsonpify.py | 1 | 2543 | from flask import current_app, json, request
def __pad(strdata):
""" Pads `strdata` with a Request's callback argument, if specified, or does
nothing.
"""
if request.args.get('callback'):
return "%s(%s);" % (request.args.get('callback'), strdata)
else:
return strdata
... | gpl-2.0 | -717,886,847,209,968,100 | 29.395062 | 80 | 0.583956 | false |
DailyActie/Surrogate-Model | 01-codes/numpy-master/numpy/core/tests/test_records.py | 1 | 14928 | from __future__ import division, absolute_import, print_function
import collections
import pickle
import sys
from os import path
import numpy as np
from numpy.compat import asbytes
from numpy.testing import (
TestCase, run_module_suite, assert_, assert_equal, assert_array_equal,
assert_array_almost_equal, ass... | mit | 2,026,631,021,244,819,700 | 38.492063 | 96 | 0.518288 | false |
taoliu/taolib | Scripts/ce_histone_matrix.py | 1 | 17749 | #!/usr/bin/env python
# Time-stamp: <2010-09-08 02:38:38 Tao Liu>
"""Module Description
Copyright (c) 2008 Tao Liu <taoliu@jimmy.harvard.edu>
This code is free software; you can redistribute it and/or modify it
under the terms of the BSD License (see the file COPYING included with
the distribution).
@status: exper... | bsd-3-clause | -3,209,012,394,225,596,000 | 38.267699 | 610 | 0.57423 | false |
antechrestos/cf-python-client | main/cloudfoundry_client/v2/service_brokers.py | 1 | 1120 | from cloudfoundry_client.v2.entities import EntityManager
class ServiceBrokerManager(EntityManager):
def __init__(self, target_endpoint, client):
super(ServiceBrokerManager, self).__init__(target_endpoint, client, '/v2/service_brokers')
def create(self, broker_url, broker_name, auth_username, auth_pa... | apache-2.0 | -4,444,524,997,635,367,400 | 47.695652 | 109 | 0.68125 | false |
tonybaloney/st2 | st2common/tests/unit/test_util_loader.py | 1 | 6525 | # Licensed to the StackStorm, Inc ('StackStorm') 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 use th... | apache-2.0 | -6,562,999,816,449,155,000 | 39.52795 | 91 | 0.69931 | false |
Comunitea/CMNT_004_15 | project-addons/custom_account/models/payment.py | 1 | 3019 | # Copyright 2019 Omar Castiñeira, Comunitea Servicios Tecnológicos S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api
class PaymentOrderLine(models.Model):
_inherit = 'account.payment.line'
_order = 'partner_name'
partner_name = fields.Char(relate... | agpl-3.0 | -3,272,857,600,221,413,000 | 44.712121 | 79 | 0.46006 | false |
project-owner/Peppy | ui/container.py | 1 | 6297 | # Copyright 2016-2021 Peppy Player peppy.player@gmail.com
#
# This file is part of Peppy Player.
#
# Peppy Player 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 you... | gpl-3.0 | -7,975,863,792,035,716,000 | 31.626943 | 114 | 0.570907 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.