repo_name stringlengths 5 100 | path stringlengths 4 299 | copies stringclasses 990
values | size stringlengths 4 7 | content stringlengths 666 1.03M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,297,778B | line_mean float64 3.17 100 | line_max int64 7 1k | alpha_frac float64 0.25 0.98 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
flacjacket/sympy | sympy/combinatorics/tests/test_perm_groups.py | 2 | 21720 | from sympy.combinatorics.perm_groups import PermutationGroup
from sympy.combinatorics.group_constructs import DirectProduct
from sympy.combinatorics.named_groups import SymmetricGroup, CyclicGroup,\
DihedralGroup, AlternatingGroup, AbelianGroup
from sympy.combinatorics.permutations import Permutation, perm_af_muln, cyc... | bsd-3-clause | 6,483,593,423,376,247,000 | 34.665025 | 80 | 0.581031 | false |
twschiller/open-synthesis | openach/migrations/0019_boardfollower.py | 1 | 1515 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-23 01:38
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("openach", "0018_auto_20160919_2318"),
]
operations... | gpl-3.0 | 4,212,794,619,625,237,500 | 30.5625 | 87 | 0.433663 | false |
dwang159/iris-api | src/iris/metrics/influx.py | 2 | 1761 | # Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
# See LICENSE in the project root for license information.
# This is named 'influx' to avoid conflicting with the influxdb module
from datetime import datetime
import logging
from influxdb import InfluxDBClient
from in... | bsd-2-clause | 4,053,119,667,844,424,000 | 32.865385 | 99 | 0.602499 | false |
tylerbrockett/Alert-Bot-Reddit | src/bot_modules/inbox_handler.py | 1 | 12640 | """
==========================================
Author: Tyler Brockett
Username: /u/tylerbrockett
Description: Alert Bot
==========================================
"""
from utils import inbox, times
from bot_modules.sleep_handler import SleepHandler
from bot_modules.database_handler import ... | mit | -5,505,985,071,328,949,000 | 46.164179 | 130 | 0.607991 | false |
ahvigil/MultiQC | multiqc/modules/qualimap/QM_RNASeq.py | 1 | 6096 | #!/usr/bin/env python
""" MultiQC Submodule to parse output from Qualimap RNASeq """
from __future__ import print_function
from collections import OrderedDict
import logging
import re
from multiqc import config
from multiqc.plots import bargraph, linegraph
# Initialise the logger
log = logging.getLogger(__name__)
... | gpl-3.0 | 6,180,485,285,409,714,000 | 38.584416 | 118 | 0.549541 | false |
Tsur/sos | server/desktop/models/users.py | 1 | 4179 | # STD Libraries
# Django Core Libraries
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.core.mail import send_mail
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.db import models
# Third-party Libraries
from ... | mit | -2,789,567,202,738,048,500 | 31.403101 | 97 | 0.619048 | false |
googleinterns/stampify | extraction/content_extractors/text_extractor.py | 1 | 1324 | """This script checks whether DOM has text tag or not and
creates and returns the Text object"""
import bs4
from data_models.text import Text
from extraction.content_extractors.interface_content_extractor import \
IContentExtractor
from extraction.utils import string_utils as utils
TEXT_TAGS = ['p', 'span', 'cod... | apache-2.0 | 3,093,648,934,173,986,000 | 35.777778 | 71 | 0.617825 | false |
christianurich/VIBe2UrbanSim | 3rdparty/opus/src/opus_upgrade/changes_2007_04_11/test_do_convert_numarray_cache_to_numpy_cache.py | 2 | 6677 | # Opus/UrbanSim urban simulation software.
# Copyright (C) 2005-2009 University of Washington
# See opus_core/LICENSE
import os
import sys
import tempfile
import numpy
from shutil import rmtree
from opus_core.tests import opus_unittest
from opus_core.store.file_flt_storage import file_flt_storage
fro... | gpl-2.0 | 3,211,731,888,894,946,000 | 44.381944 | 129 | 0.623034 | false |
gorcz/mercurial | mercurial/templatekw.py | 2 | 16005 | # templatekw.py - common changeset template keywords
#
# Copyright 2005-2009 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from node import hex
import patch, util, error
import hbisect
# This help... | gpl-2.0 | 4,792,943,687,673,580,000 | 33.345494 | 80 | 0.616182 | false |
virtualopensystems/neutron | neutron/agent/linux/external_process.py | 3 | 3671 | # Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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 a... | apache-2.0 | 2,475,695,555,353,490,000 | 33.961905 | 78 | 0.560065 | false |
sanjanalab/GUIDES | static/data/pre_processed/precompute_guides_msgpack_CFD+FD.py | 2 | 16590 | import msgpack
import json
import pickle
import os.path
from Queue import PriorityQueue
import re
import doench_score
import azimuth.model_comparison
import numpy as np
import pandas as pd
import csv
from intervaltree import IntervalTree
from multiprocessing import Process
import os
import time
start_time = time.time(... | bsd-3-clause | -2,047,981,963,186,979,000 | 36.197309 | 244 | 0.620374 | false |
shodimaggio/SaivDr | appendix/pytorch/nsoltAtomExtension2dLayer.py | 1 | 4566 | import torch
import torch.nn as nn
import torch.autograd as autograd
from nsoltLayerExceptions import InvalidDirection, InvalidTargetChannels
class NsoltAtomExtension2dLayer(nn.Module):
"""
NSOLTATOMEXTENSION2DLAYER
コンポーネント別に入力(nComponents=1のみサポート):
nSamples x nRows x nCols x nChsTotal
... | bsd-2-clause | 1,967,853,115,146,456,000 | 31.601449 | 91 | 0.545576 | false |
luckylavish/zamboni | mkt/api/tests/test_serializer.py | 19 | 3187 | # -*- coding: utf-8 -*-
from django.core.handlers.wsgi import WSGIRequest
from django.test import TestCase
from django.test.client import RequestFactory
import mock
from nose.tools import eq_, ok_
from rest_framework.serializers import Serializer, ValidationError
from mkt.api.serializers import PotatoCaptchaSerialize... | bsd-3-clause | -6,630,730,032,490,068,000 | 38.345679 | 77 | 0.640728 | false |
memtoko/django | tests/pagination/tests.py | 60 | 13250 | from __future__ import unicode_literals
import unittest
from datetime import datetime
from django.core.paginator import (
EmptyPage, InvalidPage, PageNotAnInteger, Paginator,
)
from django.test import TestCase
from django.utils import six
from .custom import ValidAdjacentNumsPaginator
from .models import Article... | bsd-3-clause | -3,168,654,423,479,534,600 | 41.604502 | 92 | 0.522415 | false |
hujiajie/chromium-crosswalk | tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py | 41 | 31861 | #!/usr/bin/env python
# Copyright (c) 2012 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.
'''Unit tests for grit.format.policy_templates.writers.adm_writer'''
import os
import sys
if __name__ == '__main__':
sys.path.a... | bsd-3-clause | 7,711,468,013,090,224,000 | 27.27063 | 77 | 0.570541 | false |
nabobalis/pyhht | pyhht/EMD.py | 1 | 8737 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import numpy as np
from scipy import interpolate
from scipy.stats import pearsonr
__all__ = ['emd']
def exterma(data, extenstion='extrema', n=2):
"""
Takes an 1D array and finds exterma points.
""... | bsd-2-clause | -2,863,552,198,583,403,500 | 34.811475 | 103 | 0.563008 | false |
Viele/onionSkinRenderer | 2017_2018/onionSkinRenderer/controller.py | 1 | 24018 | import pymel.core as pm
import maya.cmds as cmds
import os
import json
import inspect
from PySide2 import QtWidgets, QtCore
import maya.OpenMayaUI as omui
from shiboken2 import wrapInstance
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
import onionSkinRenderer.core as core
import onionSkinRenderer.ui... | mit | 7,300,354,918,632,017,000 | 39.098497 | 124 | 0.666042 | false |
longman694/youtube-dl | youtube_dl/extractor/xhamster.py | 15 | 8650 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
clean_html,
dict_get,
ExtractorError,
int_or_none,
parse_duration,
unified_strdate,
)
class XHamsterIE(InfoExtractor):
_VALID_URL = r'''(?x)
... | unlicense | -3,816,557,424,709,412,400 | 36.124464 | 117 | 0.485549 | false |
havardgulldahl/pling-plong-odometer | test/test_xmeml.py | 1 | 1545 | # encoding: utf-8
# tests of xmeml logic
from distutils import dir_util
from pytest import fixture
import os
import sys
import pytest
from xmeml import iter as xmemliter
## THANK YOU http://stackoverflow.com/a/29631801
@fixture
def datadir(tmpdir, request):
'''
Fixture responsible for searching a folder wi... | gpl-3.0 | 834,200,219,906,065,400 | 25.637931 | 93 | 0.654369 | false |
buffer/phoneyc | ActiveX/ActiveX.py | 3 | 5040 |
import os
import config
from binascii import hexlify
from CLSID import clsidlist, clsnamelist
from Attr2Fun import Attr2Fun
eventlist = []
funname = []
class unknownObject(object):
def __init__(self, name, parent = None):
self.__dict__['__name'] = name
if not parent:
self.__dict__['... | gpl-2.0 | -2,631,485,755,720,054,000 | 32.377483 | 105 | 0.538492 | false |
tharp/linux-minidisc | netmd/libnetmd.py | 4 | 44422 | import libusb1
from cStringIO import StringIO
from time import sleep
from struct import pack
try:
from Crypto.Cipher import DES
from Crypto.Cipher import DES3
except ImportError:
DES = None
DES3 = None
import array
import random
def dump(data):
if isinstance(data, basestring):
result = ' '.... | gpl-2.0 | 6,562,219,316,995,415,000 | 35.322159 | 108 | 0.547116 | false |
html5lib/html5lib-python | html5lib/tests/test_encoding.py | 18 | 4820 | from __future__ import absolute_import, division, unicode_literals
import os
import pytest
from .support import get_data_files, test_dir, errorMessage, TestData as _TestData
from html5lib import HTMLParser, _inputstream
def test_basic_prescan_length():
data = "<title>Caf\u00E9</title><!--a--><meta charset='utf... | mit | 2,522,060,990,303,054,000 | 40.196581 | 109 | 0.648548 | false |
ichuang/sympy | sympy/plotting/plot_modes.py | 3 | 5242 | from plot_curve import PlotCurve
from plot_surface import PlotSurface
from sympy import pi, lambdify
from sympy.functions import sin, cos
from math import sin as p_sin
from math import cos as p_cos
def float_vec3(f):
def inner(*args):
v = f(*args)
return float(v[0]), float(v[1]), float(v[2])
r... | bsd-3-clause | -1,641,263,633,310,484,200 | 26.445026 | 67 | 0.51488 | false |
AleCandido/Lab3.2 | Esercitazione15/passabanda.py | 1 | 4213 | import sys
import pylab
from scipy.optimize import curve_fit
from scipy.stats import chisqprob
import numpy as np
import getpass
users={"candi": "C:\\Users\\candi\\Documents\\GitHub\\Lab3.2\\",
"silvanamorreale":"C:\\Users\\silvanamorreale\\Documents\\GitHub\\Lab3.2\\" ,
"Studenti": "C:\\Users\\Studenti\\Desktop\\Lab3\... | gpl-2.0 | -3,721,280,279,171,289,000 | 26.48366 | 177 | 0.633294 | false |
kmacinnis/sympy | sympy/solvers/tests/test_inequalities.py | 3 | 11948 | """Tests for tools for solving inequalities and systems of inequalities. """
from sympy import (And, Eq, FiniteSet, Ge, Gt, im, Interval, Le, Lt, Ne, oo,
Or, Q, re, S, sin, sqrt, Union)
from sympy.assumptions import assuming
from sympy.abc import x, y
from sympy.solvers.inequalities import (reduce_inequalities... | bsd-3-clause | -448,640,723,350,479,100 | 52.339286 | 198 | 0.567877 | false |
vipshop/twemproxies | tests/test_redis/common.py | 1 | 1364 | #!/usr/bin/env python
#coding: utf-8
import os
import sys
import redis
PWD = os.path.dirname(os.path.realpath(__file__))
WORKDIR = os.path.join(PWD,'../')
sys.path.append(os.path.join(WORKDIR,'lib/'))
sys.path.append(os.path.join(WORKDIR,'conf/'))
import conf
from server_modules import *
from utils import *
CLUSTE... | apache-2.0 | -4,010,993,009,019,577,000 | 23.8 | 89 | 0.58651 | false |
ric2b/Vivaldi-browser | chromium/tools/diagnosis/crbug_1001171.py | 11 | 1721 | # Copyright 2019 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.
"""Helper context wrapper for diagnosing crbug.com/1001171.
This module and all uses thereof can and should be removed once
crbug.com/1001171 has been resol... | bsd-3-clause | 7,203,210,606,618,754,000 | 32.745098 | 75 | 0.62638 | false |
kosgroup/odoo | addons/web/models/ir_http.py | 14 | 2041 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import json
from odoo import models
from odoo.http import request
import odoo
class Http(models.AbstractModel):
_inherit = 'ir.http'
def webclient_rendering_context(self):
return {
'menu_... | gpl-3.0 | 9,124,184,406,343,638,000 | 44.355556 | 210 | 0.624694 | false |
ammarkhann/FinalSeniorCode | lib/python2.7/site-packages/matplotlib/testing/__init__.py | 10 | 3767 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import warnings
from contextlib import contextmanager
from matplotlib.cbook import is_string_like, iterable
from matplotlib import rcParams, rcdefaults, use
def _is_list_like(obj):
"""Returns whether the... | mit | 6,350,728,815,843,813,000 | 34.537736 | 78 | 0.609504 | false |
ic-labs/django-icekit | icekit/abstract_models.py | 1 | 4379 | """
Models for ``icekit`` app.
"""
# Compose concrete models from abstract models and mixins, to facilitate reuse.
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.template.loader import get_template
from django.utils import encoding, timezone
from django.utils.transl... | mit | -4,701,846,451,494,734,000 | 29.622378 | 93 | 0.62343 | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickfont.py | 2 | 1580 | import _plotly_utils.basevalidators
class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self,
plotly_name="tickfont",
parent_name="histogram2dcontour.colorbar",
**kwargs
):
super(TickfontValidator, self).__init__(
plotly_na... | mit | 3,341,459,364,958,832,600 | 36.619048 | 72 | 0.536076 | false |
donspaulding/adspygoogle | examples/adspygoogle/dfp/v201206/update_creatives.py | 2 | 2356 | #!/usr/bin/python
#
# Copyright 2012 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 | 9,132,696,863,083,803,000 | 31.722222 | 80 | 0.703735 | false |
proxysh/Safejumper-for-Mac | buildlinux/env32/lib/python2.7/site-packages/twisted/mail/test/test_pop3.py | 10 | 30479 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Test cases for Ltwisted.mail.pop3} module.
"""
from __future__ import print_function
import StringIO
import hmac
import base64
import itertools
from collections import OrderedDict
from zope.interface import implementer
from twisted.intern... | gpl-2.0 | -2,474,074,347,284,726,000 | 27.45845 | 101 | 0.596443 | false |
TrampolineRTOS/trampoline | machines/msp430x/small/msp430fr5994/launchpad/serial/serial.py | 2 | 2173 | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import print_function
from math import *
# This simple python script computes baud-rate settings
# for different input frequencies
# The algorithm is extracted from the user's guide
# (slau367o.pdf), p.776
# the 2 tabulars fracFreq and ucbrsTab are extrac... | gpl-2.0 | 1,583,848,727,349,696,800 | 25.82716 | 63 | 0.570179 | false |
googleapis/googleapis-gen | google/cloud/bigquery/connection/v1/bigquery-connection-v1-py/google/cloud/bigquery_connection_v1/services/connection_service/client.py | 1 | 49605 | # -*- 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 | 2,099,994,186,533,660,400 | 42.820671 | 149 | 0.589174 | false |
cd334/hangoutsbot | hangupsbot/plugins/forecast.py | 2 | 9901 | """
Use forecast.io to get current weather forecast for a given location.
Instructions:
* Get an API key from https://developer.forecast.io/
* Store API key in config.json:forecast_api_key
"""
import logging
import plugins
import requests
from decimal import Decimal
logger = logging.getLogger(__name__)
_inter... | agpl-3.0 | -6,699,385,779,283,329,000 | 38.6 | 169 | 0.618951 | false |
gemrb/gemrb | gemrb/GUIScripts/pst/GUIREC.py | 1 | 37975 | # -*-python-*-
# GemRB - Infinity Engine Emulator
# Copyright (C) 2003 The GemRB Project
#
# 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
# of the License, or (at your option) ... | gpl-2.0 | -7,488,686,639,834,815,000 | 29.823864 | 174 | 0.705622 | false |
arnaudsj/Petrel | petrel/petrel/package.py | 1 | 11356 | import os
import sys
import shutil
import getpass
import socket
import zipfile
import glob
import pkg_resources
from itertools import chain
from cStringIO import StringIO
from emitter import EmitterBase
from topologybuilder import TopologyBuilder
from util import read_yaml
MANIFEST = 'manifest.txt'
def add_to_jar(ja... | bsd-3-clause | 4,556,587,947,054,720,000 | 37.23569 | 100 | 0.609193 | false |
sserrot/champion_relationships | venv/Lib/site-packages/networkx/algorithms/vitality.py | 1 | 2618 | # Copyright (C) 2010 by
# Aric Hagberg (hagberg@lanl.gov)
# Renato Fabbri
# Copyright (C) 2012 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# Copyright (C) 2016-2019 by NetworkX developers.
#
# All rights reserved.
# BSD license.
"""
Vitality measures... | mit | -437,198,766,088,023,200 | 29.091954 | 75 | 0.638655 | false |
certik/pyjamas | examples/slideshow/Slideshow.py | 5 | 3778 | import pyjd
from pyjamas.ui.Button import Button
from pyjamas.ui.RootPanel import RootPanel
from pyjamas.ui.HTML import HTML
from pyjamas.ui.DockPanel import DockPanel
from pyjamas.ui import HasAlignment
from pyjamas.ui.Hyperlink import Hyperlink
from pyjamas.ui.VerticalPanel import VerticalPanel
from pyjamas.ui.Scrol... | apache-2.0 | -8,968,549,927,613,880,000 | 27.839695 | 89 | 0.644521 | false |
C2SM-RCM/CCLM2CMOR | src/CMORlight/init_log.py | 1 | 1676 | """
Sets up custom logger
"""
import logging
def setup_custom_logger(name,filename='/dev/null',propagate=False,normal_log=True,verbose_log=False,append_log=False):
"""
Sets up custom logger and returns it
Parameters
----------
name : str
Name of the logger with which it can be called
... | gpl-3.0 | -7,992,626,526,875,689,000 | 26.032258 | 118 | 0.637828 | false |
akosel/servo | python/servo/testing_commands.py | 1 | 17196 | # Copyright 2013 The Servo Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
#... | mpl-2.0 | 7,995,225,851,598,871,000 | 38.531034 | 117 | 0.567748 | false |
unixhot/opencmdb | util/fields_validation.py | 1 | 22384 | # coding=utf-8
import datetime
from item.models import ItemCategory, Item
import re
from jsonschema import validate
import json
def validate_item_field(attr_value, attr_form):
"""
:param attr_value: item的属性
:param attr_form: item category的属性规则
:return:
"""
if not isinstance(attr_form, dict):... | apache-2.0 | 8,529,370,498,095,866,000 | 27.857888 | 201 | 0.400786 | false |
ollie314/browserscope | static_mode/selectors_1.py | 9 | 25266 | (dp0
VCrazy Browser 3
p1
(dp2
S'summary_display'
p3
S'0%'
p4
sS'total_runs'
p5
L1L
sS'summary_score'
p6
I100
sS'results'
p7
(dp8
S'failed'
p9
(dp10
S'score'
p11
I50
sS'raw_score'
p12
L1816L
sS'display'
p13
S'1816'
p14
ssS'passed'
p15
(dp16
g11
I50
sg12
L0L
sg13
S'0'
p17
ssssVK-Meleon 1
p18
(dp19
S'summary_display'
p20
... | apache-2.0 | 6,179,444,714,391,151,000 | 6.963126 | 26 | 0.761023 | false |
Manojkumar91/odoo_inresto | addons/account/report/account_report.py | 8 | 12764 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 6,816,886,781,557,173,000 | 43.319444 | 167 | 0.56816 | false |
bzennn/blog_flask | python/lib/python3.5/site-packages/olefile/olefile.py | 29 | 111647 | """
olefile (formerly OleFileIO_PL)
Module to read/write Microsoft OLE2 files (also called Structured Storage or
Microsoft Compound Document File Format), such as Microsoft Office 97-2003
documents, Image Composer and FlashPix files, Outlook messages, ...
This version is compatible with Python 2.6+ and 3.x
Project we... | gpl-3.0 | -7,636,307,375,128,598,000 | 44.182922 | 129 | 0.594105 | false |
SurfasJones/djcmsrc3 | venv/lib/python2.7/site-packages/cms/templatetags/cms_tags.py | 3 | 41250 | # -*- coding: utf-8 -*-
from copy import copy
from itertools import chain
from datetime import datetime
from django.template.defaultfilters import safe
from classytags.arguments import Argument, MultiValueArgument
from classytags.core import Options, Tag
from classytags.helpers import InclusionTag, AsTag
from classytag... | mit | 3,690,432,044,043,633,000 | 38.511494 | 137 | 0.610521 | false |
k0001/mediasancion | mediasancion/core/models.py | 1 | 4365 | # coding: utf-8
#
# MediaSanción, aplicación web para acceder a los datos públicos de la
# actividad legislativa en Argentina.
# Copyright (C) 2010,2011,2012 Renzo Carbonara <renzo @carbonara .com .ar>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero Genera... | agpl-3.0 | -1,767,903,761,686,009,600 | 32.523077 | 106 | 0.687701 | false |
michael-donat/ansible | lib/ansible/vars/__init__.py | 1 | 18914 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible 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... | gpl-3.0 | -8,885,744,624,233,779,000 | 40.206972 | 175 | 0.580945 | false |
liiight/notifiers | tests/test_json_schema.py | 1 | 3283 | import hypothesis.strategies as st
import pytest
from hypothesis import given
from jsonschema import validate, ValidationError
from notifiers.utils.schema.formats import format_checker
from notifiers.utils.schema.helpers import one_or_more, list_to_commas
class TestFormats:
@pytest.mark.parametrize(
"for... | mit | -875,849,426,209,985,800 | 35.865169 | 86 | 0.541908 | false |
praekelt/txtalert | txtalert/apps/therapyedge/tests/importer.py | 1 | 28383 | from django.test import TestCase
from django.utils import timezone
from django.contrib.auth.models import User
from txtalert.apps.therapyedge.importer import Importer, SEX_MAP
from txtalert.apps.therapyedge.xmlrpc import client
from txtalert.core.models import Patient, MSISDN, Visit, Clinic
from txtalert.apps.therapyed... | gpl-3.0 | 967,314,180,620,399,400 | 53.373563 | 441 | 0.558257 | false |
aequitas/home-assistant | homeassistant/components/temper/sensor.py | 7 | 3307 | """Support for getting temperature from TEMPer devices."""
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NAME, TEMP_FAHRENHEIT
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__n... | apache-2.0 | 8,785,866,354,727,695,000 | 30.798077 | 79 | 0.643484 | false |
miniconfig/home-assistant | tests/components/switch/test_init.py | 23 | 3411 | """The tests for the Switch component."""
# pylint: disable=protected-access
import unittest
from homeassistant.setup import setup_component
from homeassistant import loader
from homeassistant.components import switch
from homeassistant.const import STATE_ON, STATE_OFF, CONF_PLATFORM
from tests.common import get_test... | mit | 8,759,282,363,653,833,000 | 35.677419 | 78 | 0.638229 | false |
davidrobles/mlnd-capstone-code | experiments/c4_ql_tab_simple_selfplay.py | 1 | 1783 | '''
The Q-learning algorithm is used to estimate the state-action values for a
simple Connect 4 position by playing games against itself (self-play).
'''
from capstone.game.games import Connect4
from capstone.game.players import RandPlayer
from capstone.game.utils import c42pdf
from capstone.rl import Environment, Game... | mit | -2,542,293,844,128,585,000 | 30.280702 | 75 | 0.607964 | false |
byterom/android_external_chromium_org | tools/checklicenses/checklicenses.py | 25 | 16386 | #!/usr/bin/env python
# Copyright (c) 2012 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.
"""Makes sure that all files contain proper licensing information."""
import json
import optparse
import os.path
import subproces... | bsd-3-clause | -379,906,135,795,255,300 | 29.010989 | 97 | 0.573233 | false |
vishnu-kumar/PeformanceFramework | tests/unit/cli/commands/test_task.py | 6 | 35281 | # Copyright 2013: Mirantis 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 | -2,379,006,896,939,867,600 | 46.104139 | 79 | 0.541283 | false |
sandyjmacdonald/dots_for_microarrays | dots_scripts/dots_workflow.py | 1 | 1929 | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import os
import glob
import argparse
from dots_backend.dots_plotting import do_boxplot, do_pcaplot, do_volcanoplot, do_heatmap, do_clusters_plot
from dots_backend.dots_arrays import read_experiment
from dots_backend.dots_analysis import get_fold_changes, write_fcs_stats, ... | mit | 7,454,683,969,489,343,000 | 38.387755 | 109 | 0.743909 | false |
abhidrona/gn-osc-custom | oscar/apps/catalogue/migrations/0011_auto__chg_field_productimage_original__chg_field_category_image.py | 18 | 13475 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'ProductImage.original'
db.alter_column(u'catalogue_productimage', 'original', self.gf('dj... | bsd-3-clause | -7,592,863,747,906,435,000 | 78.270588 | 224 | 0.569425 | false |
bbbenja/SickRage | lib/hachoir_parser/archive/rpm.py | 95 | 8568 | """
RPM archive parser.
Author: Victor Stinner, 1st December 2005.
"""
from hachoir_parser import Parser
from hachoir_core.field import (FieldSet, ParserError,
UInt8, UInt16, UInt32, UInt64, Enum,
NullBytes, Bytes, RawBytes, SubFile,
Character, CString, String)
from hachoir_core.endian import BIG_ENDIAN
f... | gpl-3.0 | -4,038,099,798,579,749,000 | 31.089888 | 89 | 0.537815 | false |
heiden-deng/anaconda | pyanaconda/ui/gui/spokes/advstorage/zfcp.py | 8 | 5845 | # zFCP configuration dialog
#
# Copyright (C) 2013 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, or (at your option) any later version.
# This program is distributed... | gpl-2.0 | -5,419,727,511,572,498,000 | 38.493243 | 86 | 0.656287 | false |
selahssea/ggrc-core | src/ggrc/models/categorization.py | 7 | 3037 | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
from ggrc import db
from sqlalchemy.ext.associationproxy import association_proxy
from .mixins import Base
BACKREF_NAME_FORMAT = '{type}_{scope}_categorizable'
class Categorization(Base, db.Model):
__ta... | apache-2.0 | -9,022,900,897,160,025,000 | 28.201923 | 78 | 0.641752 | false |
mjs/postfix-charm | lib/charmhelpers/core/services/helpers.py | 8 | 9736 | # Copyright 2014-2015 Canonical Limited.
#
# This file is part of charm-helpers.
#
# charm-helpers is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3 as
# published by the Free Software Foundation.
#
# charm-helpers is distributed in the hope ... | mit | -3,186,722,227,022,911,000 | 35.464419 | 97 | 0.631676 | false |
njoyce/pyamf | doc/tutorials/examples/general/helloworld/python/server.py | 8 | 1347 | # Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Hello world example server.
@see: U{HelloWorld<http://pyamf.org/tutorials/general/helloworld/index.html>} wiki page.
@since: 0.1.0
"""
def echo(data):
"""
Just return data back to the client.
"""
return data
services = {
'ech... | mit | -7,744,107,146,699,620,000 | 21.081967 | 88 | 0.575353 | false |
codevlabs/ZeroNet | src/main.py | 10 | 11710 | # Included modules
import os
import sys
import time
import logging
# Third party modules
import gevent
from gevent import monkey
update_after_shutdown = False # If set True then update and restart zeronet after main loop ended
# Load config
from Config import config
config.parse(silent=True) # Plugins need to acc... | gpl-2.0 | 6,025,404,489,523,852,000 | 36.774194 | 126 | 0.623143 | false |
EliteTK/qutebrowser | qutebrowser/misc/ipc.py | 6 | 19531 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free S... | gpl-3.0 | -5,241,322,583,141,148,000 | 34.575592 | 86 | 0.596129 | false |
dilawar/moose-full | moose-core/python/moose/neuroml2/generated_neuroml.py | 2 | 717194 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Sun Jul 28 10:18:38 2013 by generateDS.py version 2.10a.
#
import sys
import getopt
import re as re_
import base64
import datetime as datetime_
etree_ = None
Verbose_import_ = False
(
XMLParser_import_none, XMLParser_import_lxml,
XMLParser_import_el... | gpl-2.0 | -853,355,551,470,653,800 | 48.96823 | 951 | 0.623654 | false |
danielsen/arf | test/arf_test.py | 1 | 2110 | #!/usr/bin/env python
# tests for the arf package
import sys
sys.path.insert(0, "../arf/")
import unittest
import arf
class ARFTest(unittest.TestCase):
def setUp(self):
unittest.TestCase.setUp(self)
self.message = arf.load_arf("./resources/sample_arf_message.txt")
def tearDown(self):
... | gpl-3.0 | -8,183,541,207,676,271,000 | 36.017544 | 74 | 0.641706 | false |
paulkocialkowski/systemd | test/rule-syntax-check.py | 14 | 2664 | #!/usr/bin/env python3
# Simple udev rules syntax checker
#
# (C) 2010 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either ve... | gpl-2.0 | 5,095,719,038,793,636,000 | 35.493151 | 133 | 0.611111 | false |
GDGLima/contentbox | third_party/unidecode/x0d6.py | 4 | 5023 | data = (
'hyeo', # 0x00
'hyeog', # 0x01
'hyeogg', # 0x02
'hyeogs', # 0x03
'hyeon', # 0x04
'hyeonj', # 0x05
'hyeonh', # 0x06
'hyeod', # 0x07
'hyeol', # 0x08
'hyeolg', # 0x09
'hyeolm', # 0x0a
'hyeolb', # 0x0b
'hyeols', # 0x0c
'hyeolt', # 0x0d
'hyeolp', # 0x0e
'... | apache-2.0 | -8,548,412,192,690,056,000 | 17.468992 | 19 | 0.437587 | false |
compatibleone/accords-platform | paprocci/test/to-cosacs/cosacs-monitor.py | 3 | 1493 | import os
import socket
import subprocess
import signal
import sys
import logging
import time
import miscco
import platform
# logging system
curros=platform.platform()
currdir=os.getcwd()
hostname=socket.gethostname()
lockfile=currdir + '/lock-' + hostname
logfile=currdir + '/log-cosacs-wrapper-' + hostname
logger = ... | apache-2.0 | 3,380,356,045,750,076,400 | 25.660714 | 60 | 0.665774 | false |
pinax/pinax-messages | pinax/messages/forms.py | 1 | 2585 | from django import forms
from django.contrib.auth import get_user_model
from .hooks import hookset
from .models import Message
class UserModelChoiceField(forms.ModelChoiceField):
def label_from_instance(self, obj):
return hookset.display_name(obj)
class UserModelMultipleChoiceField(forms.ModelMultiple... | mit | -1,233,269,215,145,651,700 | 30.52439 | 87 | 0.624371 | false |
luispedro/milk | milk/supervised/adaboost.py | 2 | 2186 | # -*- coding: utf-8 -*-
# Copyright (C) 2008-2012, Luis Pedro Coelho <luis@luispedro.org>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
# License: MIT. See COPYING.MIT file in the milk distribution
from __future__ import division
import numpy as np
from .normalise import normaliselabels
from .base import supervise... | mit | 4,411,267,599,867,851,300 | 24.126437 | 99 | 0.575023 | false |
messagebird/python-rest-api | messagebird/conversation_contact.py | 1 | 1043 | from messagebird.base import Base
from messagebird.contact import CustomDetails
class ConversationContact(Base):
def __init__(self):
self.id = None
self.href = None
self.msisdn = None
self.firstName = None
self.lastName = None
self._customDetails = None
sel... | bsd-2-clause | -7,907,751,996,086,822,000 | 25.74359 | 79 | 0.651007 | false |
aitoralmeida/networkx | networkx/algorithms/connectivity/tests/test_connectivity.py | 2 | 13850 | import itertools
from nose.tools import assert_equal, assert_true, assert_false, assert_raises
import networkx as nx
from networkx.algorithms.flow import (edmonds_karp, preflow_push,
shortest_augmenting_path)
flow_funcs = [edmonds_karp, preflow_push, shortest_augmenting_path]
# connectivity functions not import... | bsd-3-clause | 4,308,517,269,950,704,600 | 41.097264 | 86 | 0.572924 | false |
fardog/deej | app/deej/wsgi.py | 1 | 1268 | """
WSGI config for utility project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` ... | bsd-3-clause | -2,057,336,928,713,251,300 | 38.625 | 79 | 0.791798 | false |
antoyo/qutebrowser | tests/unit/commands/test_userscripts.py | 4 | 7179 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2015-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free S... | gpl-3.0 | -2,509,098,262,350,676,500 | 29.037657 | 79 | 0.627525 | false |
e-dorigatti/pyspider | pyspider/processor/project_module.py | 6 | 7447 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2014-02-16 22:24:20
import os
import six
import sys
import imp
import time
import weakref
import logging
import inspect
import traceback
import linecache
f... | apache-2.0 | 2,032,686,362,230,016,300 | 32.696833 | 99 | 0.570297 | false |
ScreamingUdder/mantid | Testing/SystemTests/tests/analysis/CompressEvents.py | 1 | 1888 | #pylint: disable=no-init,invalid-name,attribute-defined-outside-init
import stresstesting
from mantid.simpleapi import *
class CompressEventsTesting(stresstesting.MantidStressTest):
event_files = ["PG3_4844_event.nxs"] # /SNS/PG3/IPTS-2767/0/ for 2.5 hours
def requiredFiles(self):
return self.event_f... | gpl-3.0 | -6,123,531,465,325,404,000 | 45.04878 | 123 | 0.627119 | false |
node13h/droll | droll/blog/tests/test_views.py | 1 | 3526 | # Copyright (C) 2017 Sergej Alikov <sergej.alikov@gmail.com>
# 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.
# ... | agpl-3.0 | 382,627,207,613,383,740 | 36.115789 | 77 | 0.688599 | false |
ryfeus/lambda-packs | Keras_tensorflow_nightly/source2.7/tensorflow/python/keras/preprocessing/image/__init__.py | 4 | 2145 | # Copyright 2016 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... | mit | 4,021,981,804,133,122,600 | 54 | 88 | 0.788811 | false |
mvdbeek/tools-iuc | tools/metaphlan/customizemetadata.py | 12 | 18949 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import bz2
import json
import pickle
import re
from pathlib import Path
def load_from_json(json_fp):
'''
Read JSON file with marker metadata
:param json_fp: Path to JSON file
'''
with open(json_fp, 'r') as json_f:
data = json.... | mit | -2,116,030,210,486,993,200 | 38.477083 | 177 | 0.621721 | false |
houssemFat/bloodOn | bloodon/templatetags/bloodi_extras.py | 1 | 1190 | from string import lower, split
from django import template
#tr_msg_dic
#from django.utils import simplejson
register = template.Library()
@register.filter
def get_tr_value(dictionary, arg):
#return dictionary
if arg:
value_ = str(arg)
try :
return dictionary[value_] #arg#simplejson.dump... | mit | -6,872,206,881,221,684,000 | 22.8 | 66 | 0.536975 | false |
MartinHjelmare/home-assistant | homeassistant/components/ads/sensor.py | 7 | 2335 | """Support for ADS sensors."""
import logging
import voluptuous as vol
from homeassistant.components import ads
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, CONF_UNIT_OF_MEASUREMENT
import homeassistant.helpers.config_validation as cv
from . import CONF_ADS_F... | apache-2.0 | -2,115,013,889,005,415,000 | 31.887324 | 77 | 0.659957 | false |
boreq/archive_chan | archive_chan/management/commands/archive_chan_recount_denormalized.py | 1 | 1224 | from django.db.models import Max, Min, Count
from django.core.management.base import BaseCommand
from archive_chan.models import Thread
class Command(BaseCommand):
args = ''
help = 'Recount the data in the thread model.'
def handle(self, *args, **options):
threads = Thread.objects.annotate(
... | gpl-2.0 | 8,310,147,761,891,992,000 | 31.210526 | 65 | 0.576797 | false |
dharryman/BPM_Test_Framework | Gate_Source/Rigol3030DSG_GateSource_test.py | 1 | 3888 | import unittest
from mock import patch
import Gate_Source
import telnetlib
# Checks the simple get requests against the criteria set here
output = "1"
period = "3uS"
dutycycle = "0.03uS"
def mocked_rigol_replies(input):
global output, period, dutycycle
if input == "MOD:STAT?":
return output
eli... | apache-2.0 | 6,348,148,879,351,824,000 | 42.211111 | 103 | 0.692387 | false |
RevelSystems/django | tests/i18n/patterns/tests.py | 12 | 14314 | from __future__ import unicode_literals
import os
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import clear_url_caches, reverse, translate_url
from django.http import HttpResponsePermanentRedirect
from django.middleware.locale import LocaleMiddleware
from django.template impor... | bsd-3-clause | -6,864,494,333,051,821,000 | 39.435028 | 112 | 0.647268 | false |
t794104/ansible | lib/ansible/modules/cloud/docker/docker_compose.py | 11 | 39515 | #!/usr/bin/python
#
# Copyright 2016 Red Hat | Ansible
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['prev... | gpl-3.0 | -4,108,804,277,155,227,600 | 34.98816 | 153 | 0.529191 | false |
realityone/flaskbb | flaskbb/extensions.py | 1 | 1474 | # -*- coding: utf-8 -*-
"""
flaskbb.extensions
~~~~~~~~~~~~~~~~~~
The extensions that are used by FlaskBB.
:copyright: (c) 2014 by the FlaskBB Team.
:license: BSD, see LICENSE for more details.
"""
from celery import Celery
from flask_allows import Allows
from flask_sqlalchemy import SQLAlchemy
fr... | bsd-3-clause | 52,331,647,757,293,920 | 19.191781 | 64 | 0.75848 | false |
icedwater/opendoc | excel.py | 1 | 1452 | #! /usr/bin/env python
"""
Here's a small script based on a github gist to show diffs
between Excel files. I'll be using this to see if openpyxl
or xlrd is easier to use or they serve different use cases
entirely. Thanks, nmz787.
"""
import xlrd
import sys
def cell_on_line(excel_filename):
"""
Take an input f... | mit | 7,909,886,015,887,775,000 | 28.632653 | 79 | 0.550964 | false |
cjaymes/pyscap | src/scap/model/xccdf_1_1/MetadataType.py | 1 | 1100 | # Copyright 2016 Casey Jaymes
# This file is part of PySCAP.
#
# PySCAP 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.
#
# PySCAP is ... | gpl-3.0 | 364,053,764,359,543,600 | 35.666667 | 101 | 0.675455 | false |
0--key/lib | portfolio/Python/scrapy/wesco/wesco_spider.py | 2 | 1480 | import csv
import os
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request, HtmlResponse
from scrapy.utils.response import get_base_url
from scrapy.utils.url import urljoin_rfc
from product_spiders.items import Product, ProductLoaderWithNameStrip as Product... | apache-2.0 | 2,747,492,294,643,822,000 | 36.948718 | 90 | 0.670946 | false |
gordonzola/naobot | irc/events.py | 2 | 4660 | # Numeric table based on the Perl's Net::IRC.
numeric = {
"001": "welcome",
"002": "yourhost",
"003": "created",
"004": "myinfo",
"005": "featurelist", # XXX
"200": "tracelink",
"201": "traceconnecting",
"202": "tracehandshake",
"203": "traceunknown",
"204": "traceoperator",
... | agpl-3.0 | -3,814,749,747,236,175,400 | 23.397906 | 69 | 0.529399 | false |
cerrno/neurokernel | neurokernel/mixins.py | 2 | 1930 | #!/usr/bin/env python
"""
Object with built-in logger.
"""
import twiggy
class LoggerMixin(object):
"""
Mixin that provides a per-instance logger that can be turned off.
Parameters
----------
name : str
Name to assign logger.
log_on : bool
Initial value to assign to class ins... | bsd-3-clause | 3,982,794,631,024,196,000 | 26.571429 | 84 | 0.569948 | false |
virtualrobotix/ardupilot | libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F469xx.py | 21 | 21308 | #!/usr/bin/env python
'''
these tables are generated from the STM32 datasheet stm32f469ii.pdf
'''
# additional build information for ChibiOS
build = {
"CHIBIOS_STARTUP_MK" : "os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk",
"CHIBIOS_PLATFORM_MK" : "os/hal/ports/STM32/STM32F4xx/platform.mk"
... | gpl-3.0 | -2,235,886,264,404,956,400 | 25.972152 | 93 | 0.443355 | false |
pledra/odoo-product-configurator | product_configurator/models/product_config.py | 1 | 57284 | from ast import literal_eval
from odoo.addons import decimal_precision as dp
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError, UserError
from odoo.tools.misc import formatLang
class ProductConfigDomain(models.Model):
_name = 'product.config.domain'
_description = "Domain fo... | agpl-3.0 | 3,607,961,118,295,161,000 | 34.982412 | 85 | 0.560855 | false |
tealover/nova | nova/api/openstack/compute/schemas/v3/quota_sets.py | 26 | 1745 | # Copyright 2014 NEC Corporation. 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 ... | apache-2.0 | -3,126,493,495,415,688,700 | 29.614035 | 78 | 0.656734 | false |
amaurywalbert/twitter | graphs/n1/n5_co_follow_creating_network_with_ego_v1.5_5k_alters.py | 2 | 11246 | # -*- coding: latin1 -*-
################################################################################################
#
#
import datetime, sys, time, json, os, os.path, shutil, time, struct, random
import networkx as nx
import matplotlib.pyplot as plt
from math import*
reload(sys)
sys.setdefaultencoding('utf-8')
... | gpl-3.0 | -1,815,334,411,947,517,000 | 55.492386 | 166 | 0.468744 | false |
gems-uff/noworkflow | capture/noworkflow/now/persistence/models/graphs/trial_graph.py | 1 | 11588 | # Copyright (c) 2016 Universidade Federal Fluminense (UFF)
# Copyright (c) 2016 Polytechnic Institute of New York University.
# This file is part of noWorkflow.
# Please, consult the license terms in the LICENSE file.
"""Trial Graph Module"""
from __future__ import (absolute_import, print_function,
... | mit | -3,480,296,621,707,613,000 | 31.459384 | 111 | 0.57853 | false |
iModels/ffci | github/Team.py | 1 | 10674 | # -*- coding: utf-8 -*-
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | mit | 1,098,415,611,471,718,000 | 36.321678 | 107 | 0.550684 | false |
Filechaser/nzbToMedia | libs/munkres.py | 7 | 24745 | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Documentation is intended to be processed by Epydoc.
"""
Introduction
============
The Munkres module provides an implementation of the Munkres algorithm
(also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
useful for solving the Assignment Problem... | gpl-3.0 | 377,111,066,161,064,300 | 30.482188 | 82 | 0.545686 | false |
Subsets and Splits
Gradio Code Samples
Limits the results to entries containing the word 'gradio' in the repo_name, content, or path, providing a filtered subset of the dataset.