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 |
|---|---|---|---|---|---|---|---|---|---|---|
HKUST-SING/tensorflow | tensorflow/contrib/distributions/python/kernel_tests/quantized_distribution_test.py | 32 | 17752 | # 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... | apache-2.0 | 961,981,263,000,428,800 | 40.966903 | 80 | 0.609452 | false |
Karel-van-de-Plassche/bokeh | bokeh/command/subcommands/tests/test_json.py | 13 | 3465 | from __future__ import absolute_import
import argparse
import pytest
import os
import sys
is_python2 = sys.version_info[0] == 2
import bokeh.command.subcommands.json as scjson
from bokeh.command.bootstrap import main
from bokeh.util.testing import TmpDir, WorkingDir, with_directory_contents
from . import basic_scat... | bsd-3-clause | -2,116,621,404,743,254,300 | 29.394737 | 97 | 0.568831 | false |
brandjon/simplestruct | examples/abstract.py | 1 | 1261 | """Demonstrates how to combine Struct with abstract base classes."""
from abc import ABCMeta, abstractmethod
from simplestruct import Struct, Field, MetaStruct
# A simple ABC. Subclasses must provide an override for foo().
class Abstract(metaclass=ABCMeta):
@abstractmethod
def foo(self):
pass
# ABCs... | mit | 1,478,819,600,969,076,500 | 24.22 | 68 | 0.686757 | false |
aravindvenkatesan/AgroLD-scripts | AgroLD_ETL/riceKB/TropgeneModel.py | 1 | 8886 | import pprint
import re
import os
from globalVars import base_vocab_ns
from TropgeneParser import *
__author__ = 'elhassouni'
def tropGeneToRDF(tropGene_map, output_file):
# The differentes variable declaration
tropGene_buffer = '' # initilised the buffer at zero
population_counter, mapefeature_counter, s... | cc0-1.0 | 3,686,928,253,910,838,300 | 57.078431 | 141 | 0.539838 | false |
mvidalgarcia/indico | indico/modules/events/persons/util.py | 2 | 2965 | # This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from indico.modules.events.models.persons import EventPerson
from... | mit | -5,154,791,401,447,044,000 | 48.416667 | 112 | 0.664755 | false |
ds-hwang/chromium-crosswalk | third_party/protobuf/python/google/protobuf/internal/text_format_test.py | 162 | 23727 | #! /usr/bin/python
#
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# ... | bsd-3-clause | -7,218,034,522,040,718,000 | 38.743719 | 82 | 0.659123 | false |
ItsAdventureTime/fail2ban | fail2ban/server/faildata.py | 5 | 1896 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
# vi: set ft=python sts=4 ts=4 sw=4 noet :
# This file is part of Fail2Ban.
#
# Fail2Ban 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;... | gpl-2.0 | -1,185,226,505,256,350,200 | 26.085714 | 81 | 0.697785 | false |
felliott/scrapi | tasks.py | 1 | 8712 | import os
import base64
import logging
import platform
from datetime import date, timedelta
from invoke import run, task
# from elasticsearch import helpers
# from dateutil.parser import parse
# from six.moves.urllib import parse as urllib_parse
# import scrapi.harvesters # noqa
# from scrapi import linter
# from sc... | apache-2.0 | 2,119,517,389,298,409,700 | 27.657895 | 109 | 0.651171 | false |
scenarios/tensorflow | tensorflow/contrib/bayesflow/python/kernel_tests/variational_inference_test.py | 7 | 5651 | # 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... | apache-2.0 | -5,486,316,831,416,812 | 35.934641 | 80 | 0.703946 | false |
Kast0rTr0y/ansible | lib/ansible/modules/inventory/group_by.py | 50 | 1473 | # -*- mode: python -*-
# 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) any later version.
#
# Ansible is distr... | gpl-3.0 | 4,632,877,692,396,952,000 | 30.340426 | 81 | 0.697895 | false |
ericchaves/faker | faker/providers/python/__init__.py | 8 | 4613 | # coding=utf-8
from __future__ import unicode_literals
from decimal import Decimal
import sys
from faker.providers.lorem.la import Provider as Lorem
from .. import BaseProvider
if sys.version_info[0] == 2:
string_types = (basestring,)
elif sys.version_info[0] == 3:
string_types = (str, bytes)
else:
ra... | mit | -4,263,310,961,013,620,000 | 36.201613 | 124 | 0.584435 | false |
p4datasystems/CarnotKE | jyhton/Lib/test/test_sort.py | 10 | 10661 | from test import test_support
import random
import sys
import unittest
try:
import java
except ImportError:
pass
verbose = test_support.verbose
nerrors = 0
def check(tag, expected, raw, compare=None):
global nerrors
if verbose:
print " checking", tag
orig = raw[:] # save input in ca... | apache-2.0 | 6,104,461,737,553,274,000 | 32.737342 | 87 | 0.526311 | false |
ltilve/ChromiumGStreamerBackend | chrome/common/extensions/docs/server2/rietveld_patcher_test.py | 36 | 2773 | #!/usr/bin/env python
# Copyright 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 os
import posixpath
import sys
import unittest
from environment_wrappers import CreateUrlFetcher
from extensions_paths import (
... | bsd-3-clause | 6,953,041,652,218,442,000 | 32.409639 | 75 | 0.661017 | false |
sillydan1/WhatEverEngine | openglcsharp/Lib/os.py | 109 | 26300 | r"""OS routines for Mac, NT, or Posix depending on what system we're on.
This exports:
- all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc.
- os.path is one of the modules posixpath, or ntpath
- os.name is 'posix', 'nt', 'os2', 'ce' or 'riscos'
- os.curdir is a string representing the current di... | apache-2.0 | -3,513,923,977,192,860,000 | 33.650856 | 83 | 0.595741 | false |
40223250/40223250 | wsgi/application_orig.py | 135 | 4562 | ################################# 1. 宣告原始碼 coding, 導入必要模組
#coding=utf-8
import cherrypy
import random
# for path setup
import os
# for mako
from mako.lookup import TemplateLookup
################################# 2. 全域變數設定, 近端與遠端目錄設定
cwd = os.getcwd()
if 'OPENSHIFT_REPO_DIR' in os.environ.keys():
# 表示程式在雲端執行
... | gpl-3.0 | 2,344,853,332,503,285,000 | 33.070175 | 82 | 0.597322 | false |
bdoner/SickRage | lib/hachoir_core/field/string_field.py | 86 | 14829 | """
String field classes:
- String: Fixed length string (no prefix/no suffix) ;
- CString: String which ends with nul byte ("\0") ;
- UnixLine: Unix line of text, string which ends with "\n" ;
- PascalString8, PascalString16, PascalString32: String prefixed with
length written in a 8, 16, 32-bit integer (use parent e... | gpl-3.0 | 2,415,011,740,970,145,300 | 35.88806 | 115 | 0.573336 | false |
marcelomiky/PythonCodes | Intro ML Semcomp/semcomp17_ml/venv/lib/python3.5/site-packages/wheel/signatures/keys.py | 471 | 3320 | """Store and retrieve wheel signing / verifying keys.
Given a scope (a package name, + meaning "all packages", or - meaning
"no packages"), return a list of verifying keys that are trusted for that
scope.
Given a package name, return a list of (scope, key) suggested keys to sign
that package (only the verifying key... | mit | -5,947,162,185,842,895,000 | 32.535354 | 101 | 0.57741 | false |
a-tal/pypicloud | pypicloud/access/base.py | 2 | 19245 | """ The access backend object base class """
from collections import defaultdict
from passlib.apps import custom_app_context as pwd_context
from pyramid.security import (Authenticated, Everyone,
effective_principals, Allow, Deny,
ALL_PERMISSIONS)
from pyramid.... | mit | 2,981,345,897,331,908,600 | 26.532189 | 79 | 0.54544 | false |
DavidAndreev/indico | migrations/versions/201604211656_258db7e5a3e5_sync_contribution_abstract_friendly_ids.py | 2 | 4927 | """Sync contribution/abstract friendly ids
Revision ID: 258db7e5a3e5
Revises: 3ca8e62e6c36
Create Date: 2016-04-21 16:56:20.113767
"""
import sqlalchemy as sa
from alembic import context, op
# revision identifiers, used by Alembic.
revision = '258db7e5a3e5'
down_revision = '3ca8e62e6c36'
def _sync_last_contrib_id... | gpl-3.0 | 3,198,831,388,678,608,000 | 39.385246 | 113 | 0.626751 | false |
pravsripad/jumeg | pipelines/chop_and_apply_ica.py | 3 | 18052 | import os.path as op
import numpy as np
from utils import set_directory
import mne
from jumeg.decompose.ica_replace_mean_std import ICA, read_ica, apply_ica_replace_mean_std
from jumeg.jumeg_preprocessing import get_ics_cardiac, get_ics_ocular
from jumeg.jumeg_plot import plot_performance_artifact_rejection # , plot_... | bsd-3-clause | 3,518,842,256,106,033,000 | 37.905172 | 117 | 0.566364 | false |
mmakmo/python | crawling_scraping/chapter05/word_frequency.py | 1 | 1475 | import sys
import os
from glob import glob
from collections import Counter
import MeCab
def main():
"""
"""
input_dir = sys.argv[1]
tagger = MeCab.Tagger('')
tagger.parse('')
frequency = Counter()
count_processed = 0
for path in glob(os.path.join(input_dir, '*', 'wiki_*')):
p... | mit | 9,129,408,047,974,239,000 | 21.796875 | 99 | 0.542152 | false |
xsynergy510x/android_external_chromium_org | remoting/host/installer/build-installer-archive.py | 163 | 9195 | #!/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.
"""Creates a zip archive for the Chrome Remote Desktop Host installer.
This script builds a zip file that contains all the files n... | bsd-3-clause | 5,310,943,598,333,518,000 | 30.489726 | 79 | 0.658836 | false |
abandons/jieba | test/extract_topic.py | 65 | 1463 | import sys
sys.path.append("../")
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn import decomposition
import jieba
import time
import glob
import sys
import os
import random
if len(sys.argv)<2:
print("usage: extract_topic.py di... | mit | -3,116,413,616,511,347,700 | 22.222222 | 70 | 0.666439 | false |
BenLand100/rat-pac | python/SCons/cpp.py | 19 | 20097 | #
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 limitati... | bsd-3-clause | 8,548,821,234,259,844,000 | 32.607023 | 89 | 0.598746 | false |
alfanugraha/LUMENS-repo | processing/gdal/pct2rgb.py | 4 | 2876 | # -*- coding: utf-8 -*-
"""
***************************************************************************
pct2rgb.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*******************************... | gpl-2.0 | 5,005,814,201,358,060,000 | 35.405063 | 79 | 0.549374 | false |
zearom32/SmartBooks | books/migrations/0005_auto_20150413_2112.py | 1 | 1457 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('books', '0004_goodsinfo'),
]
operations = [
migrations.AddField(
model_name='bookinfo',
name='author... | mit | 5,374,003,437,149,616,000 | 28.14 | 82 | 0.537406 | false |
flgiordano/netcash | +/google-cloud-sdk/lib/googlecloudsdk/core/document_renderers/renderer.py | 1 | 2678 | # Copyright 2015 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 by applicable law or ag... | bsd-3-clause | 6,680,461,151,775,446,000 | 24.264151 | 79 | 0.672143 | false |
montefra/pyds9 | pyds9/tests/test_pyds9.py | 1 | 8747 | from collections import Counter
import contextlib
import random
import subprocess as sp
import time
from astropy.io import fits
import numpy as np
import pytest
from pyds9 import pyds9
parametrize = pytest.mark.parametrize
type_mapping = parametrize('bitpix, dtype ',
[(8, np.dtype(np.uint... | lgpl-2.1 | 6,066,724,186,605,213,000 | 28.451178 | 79 | 0.587287 | false |
kimw/shadowsocks | shadowsocks/crypto/util.py | 16 | 5004 | #!/usr/bin/env python
#
# Copyright 2015 clowwindy
#
# 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,259,137,493,648,794,600 | 29.144578 | 79 | 0.592326 | false |
danluu/BitFunnel | NativeJIT/googletest/googletest/test/gtest_output_test.py | 363 | 12259 | #!/usr/bin/env python
#
# Copyright 2008, 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | mit | 7,880,845,978,756,953,000 | 35.055882 | 79 | 0.668978 | false |
markrawlingson/SickRage | lib/chardet/utf8prober.py | 52 | 2709 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Con... | gpl-3.0 | -859,616,725,684,168,400 | 33.730769 | 69 | 0.629753 | false |
madazone/fabric-bolt | src/fabric_bolt/core/settings/base.py | 14 | 6914 | # Global settings for core project.
import os
########## PATH CONFIGURATION
PROJECT_DIR = os.path.dirname(os.path.dirname(__file__))
PUBLIC_DIR = os.path.join(PROJECT_DIR, 'public')
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'fabric_bolt.core.wsgi.application'
########... | mit | -220,249,476,864,758,180 | 28.547009 | 88 | 0.685855 | false |
korobool/nlp4go | test_data/prepare_data.py | 2 | 1589 | import json
from nltk.tokenize import TreebankWordTokenizer
def read_referrence_data(filename):
with open(filename, "r") as f:
lines = f.readlines()
return [l.strip('\n\r') for l in lines]
def span_tokenize(text):
tokens = TreebankWordTokenizer().tokenize(text)
dt = 0
end = 0
... | mit | 6,761,508,735,139,917,000 | 24.629032 | 60 | 0.490245 | false |
zang-cloud/zang-python | zang/connectors/carrier_services_connector.py | 2 | 5234 | # -*- coding: utf-8 -*-
"""
zang.connectors.carrier_services_connector
~~~~~~~~~~~~~~~~~~~
Module for communication with `Carrier` endpoint
"""
from zang.connectors.base_connector import BaseConnector
from zang.helpers.helpers import flatDict
from zang.domain.carrier_lookup import CarrierLookup
from zang.domain.list... | mit | 1,508,670,723,487,117,800 | 30.914634 | 77 | 0.618456 | false |
uci-cbcl/tree-hmm | setup.py | 2 | 4290 | import sys
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Distutils import build_ext
except ImportError:
sys.stderr.write("""
==================================================
Please install Cython (http://cython.org/),
which is required to build tre... | bsd-3-clause | -2,172,399,840,158,024,700 | 42.77551 | 188 | 0.538228 | false |
tanmaykm/edx-platform | common/djangoapps/dark_lang/views.py | 6 | 6175 | """
Views file for the Darklang Django App
"""
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.utils.translation import LANGUAGE_SESSION_KEY
from django.utils.translation import ugettext as _
from django.views.generic.base import View
from opene... | agpl-3.0 | 7,704,713,312,180,904,000 | 36.883436 | 98 | 0.636437 | false |
LegitInc/legitapi | tests/live_tests/live_test.py | 1 | 3234 | # Copyright (C) 2013 Rob Boyle / Legit Inc
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is dist... | gpl-3.0 | 926,819,620,018,037,800 | 28.953704 | 94 | 0.593692 | false |
ChrisAntaki/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py | 113 | 18377 | # Copyright (C) 2010 Google Inc. All rights reserved.
# Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of so... | bsd-3-clause | -8,528,062,650,487,594,000 | 46.485788 | 192 | 0.660935 | false |
ds-hwang/chromium-crosswalk | tools/valgrind/drmemory/PRESUBMIT.py | 61 | 1175 | # 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.
"""
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details on the presubmit API built into depot_tools.
"""
def Ch... | bsd-3-clause | 3,386,151,296,317,385,000 | 29.128205 | 78 | 0.724255 | false |
abdulbaqi/quranf | venv/lib/python2.7/site-packages/pip/_vendor/requests/utils.py | 222 | 19653 | # -*- coding: utf-8 -*-
"""
requests.utils
~~~~~~~~~~~~~~
This module provides utility functions that are used within Requests
that are also useful for external consumption.
"""
import cgi
import codecs
import collections
import io
import os
import platform
import re
import sys
import socket
import struct
from . i... | mit | 1,692,119,572,444,985,600 | 28.642534 | 118 | 0.599756 | false |
ChrisLR/Python-Roguelike-Template | scenes/character_creation/scene.py | 1 | 9203 | from bearlibterminal import terminal
from clubsandwich.ui import (
UIScene,
SingleLineTextInputView,
LabelView,
CyclingButtonView,
ButtonView,
LayoutOptions,
WindowView,
)
from components.needs import Needs
from data.python_templates.classes import character_class_templates
from data.python... | mit | -19,880,071,366,375,920 | 41.804651 | 115 | 0.576116 | false |
holm/suds | suds/umx/core.py | 199 | 7575 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will ... | lgpl-3.0 | 5,559,793,804,435,777,000 | 34.074074 | 90 | 0.590363 | false |
pair-code/lit | lit_nlp/examples/coref/datasets/winogender.py | 2 | 6390 | """Coreference version of the Winogender dataset.
Each instance has two edges, one between the pronoun and the occupation and one
between the pronoun and the participant. The pronoun is always span1.
There are 120 templates in the Winogender set, 60 coreferent with the
occupation, and 60 coreferent with the participa... | apache-2.0 | -2,861,569,230,902,628,000 | 31.769231 | 121 | 0.634116 | false |
mapr/sahara | sahara/plugins/vanilla/hadoop2/validation.py | 2 | 5127 | # Copyright (c) 2014 Mirantis 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 writ... | apache-2.0 | -5,864,523,847,145,009,000 | 41.02459 | 79 | 0.604252 | false |
snnn/tensorflow | tensorflow/python/framework/random_seed_test.py | 58 | 2522 | # 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 | 6,015,381,320,657,860,000 | 39.677419 | 80 | 0.61023 | false |
LecomteEmerick/Essentia-build | src/examples/python/streaming_extractor/tuningfrequency.py | 10 | 3771 | # Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
#
# This file is part of Essentia
#
# Essentia 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 (FSF), either version 3 of the ... | agpl-3.0 | 1,887,469,965,931,515,000 | 34.575472 | 107 | 0.652612 | false |
merutak/python-social-auth | social/backends/steam.py | 83 | 1553 | """
Steam OpenId backend, docs at:
http://psa.matiasaguirre.net/docs/backends/steam.html
"""
from social.backends.open_id import OpenIdAuth
from social.exceptions import AuthFailed
USER_INFO = 'http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?'
class SteamOpenId(OpenIdAuth):
name = 'steam'
... | bsd-3-clause | -315,097,930,741,606,800 | 32.042553 | 79 | 0.56407 | false |
Diegojnb/JdeRobot | src/types/python/jderobotTypes/pose3d.py | 8 | 1480 | #
# Copyright (C) 1997-2017 JDE Developers Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program... | gpl-3.0 | -5,197,451,224,835,741,000 | 36.025 | 106 | 0.635811 | false |
rschnapka/hr | __unported__/hr_schedule/wizard/validate_schedule.py | 28 | 2415 | # -*- coding:utf-8 -*-
#
#
# Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# 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, eit... | agpl-3.0 | 2,898,165,960,489,396,700 | 31.2 | 77 | 0.59089 | false |
landonb/hamster-applet | wafadmin/Tools/config_c.py | 6 | 15279 | #! /usr/bin/env python
# encoding: utf-8
import sys
if sys.hexversion < 0x020400f0: from sets import Set as set
import os,imp,sys,shlex,shutil
from Utils import md5
import Build,Utils,Configure,Task,Options,Logs,TaskGen
from Constants import*
from Configure import conf,conftest
cfg_ver={'atleast-version':'>=','exact-ve... | gpl-3.0 | -4,052,759,829,321,100,000 | 27.774011 | 111 | 0.662674 | false |
lukeiwanski/tensorflow-opencl | tensorflow/python/kernel_tests/topk_op_test.py | 58 | 3911 | # 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 | 6,067,861,580,579,456,000 | 35.896226 | 80 | 0.583994 | false |
timj/scons | src/engine/SCons/Tool/cyglink.py | 6 | 8493 | """SCons.Tool.cyglink
Customization of gnulink for Cygwin (http://www.cygwin.com/)
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
from __future__ import absolute_import, print_function
import re
import os
... | mit | 9,005,460,211,502,389,000 | 34.987288 | 137 | 0.613682 | false |
jeyraof/python-social-auth | social/apps/django_app/middleware.py | 70 | 2285 | # -*- coding: utf-8 -*-
import six
from django.conf import settings
from django.contrib import messages
from django.contrib.messages.api import MessageFailure
from django.shortcuts import redirect
from django.utils.http import urlquote
from social.exceptions import SocialAuthBaseException
from social.utils import soc... | bsd-3-clause | -5,174,278,358,073,012,000 | 39.087719 | 79 | 0.655142 | false |
rubikloud/scikit-learn | sklearn/datasets/california_housing.py | 3 | 3926 | """California housing dataset.
The original database is available from StatLib
http://lib.stat.cmu.edu/
The data contains 20,640 observations on 9 variables.
This dataset contains the average house value as target variable
and the following input variables (features): average income,
housing average age, averag... | bsd-3-clause | -2,950,769,193,808,689,700 | 29.434109 | 79 | 0.664289 | false |
benjello/openfisca-france | openfisca_france/scripts/calculateur_impots/extraction_champs_impots.py | 3 | 3057 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Use finances.gouv.fr web simulator as an API to compute income taxes."""
import argparse
import collections
import logging
import os
import sys
import urllib2
from lxml import etree
app_name = os.path.splitext(os.path.basename(__file__))[0]
log = logging.getLogger... | agpl-3.0 | 6,453,425,596,232,031,000 | 35.392857 | 118 | 0.569513 | false |
4rado/RepositoryForProject | Lib/site-packages/scipy/fftpack/setup.py | 51 | 1461 | #!"C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\bin\Debug\ipy.exe"
# Created by Pearu Peterson, August 2002
from os.path import join
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('fftpack',paren... | gpl-3.0 | -437,559,214,838,379,260 | 32.976744 | 100 | 0.624914 | false |
tic-ull/ufc | ufc.py | 1 | 12807 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Este script hace accounting de todos los correos que mueve postfix.
#
# Con esta información se pretende poder controlar el flujo de mensajes
# salientes de postfix.
#
#
# TODO
# - Implementar un decorador needs_root que verifique si el usuario que ejecuta
# el scri... | gpl-3.0 | 4,050,734,885,678,771,700 | 34.72905 | 143 | 0.591901 | false |
areski/django | django/templatetags/cache.py | 471 | 3389 | from __future__ import unicode_literals
from django.core.cache import InvalidCacheBackendError, caches
from django.core.cache.utils import make_template_fragment_key
from django.template import (
Library, Node, TemplateSyntaxError, VariableDoesNotExist,
)
register = Library()
class CacheNode(Node):
def __in... | bsd-3-clause | -3,279,791,739,483,239,400 | 35.053191 | 107 | 0.614931 | false |
civisanalytics/ansible | test/units/modules/network/eos/test_eos_banner.py | 15 | 2312 | # 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) any later version.
#
# Ansible is distributed in the hope that ... | gpl-3.0 | -8,762,812,785,600,612,000 | 37.533333 | 93 | 0.706747 | false |
mhrivnak/pulp | server/test/unit/server/webservices/views/test_search.py | 1 | 11706 | """
This module contains tests for the pulp.server.webservices.views.search module.
"""
import unittest
import mock
from django import http
from base import assert_auth_READ
from pulp.server import exceptions
from pulp.server.webservices.views import search
class TestSearchView(unittest.TestCase):
"""
Test ... | gpl-2.0 | 8,054,619,606,535,825,000 | 44.548638 | 100 | 0.629506 | false |
MinimalOS/external_skia | platform_tools/android/bin/download_utils.py | 149 | 8464 | #!/usr/bin/python
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A library to assist automatically downloading files.
This library is used by scripts that download tarballs, zipfiles, etc. as... | bsd-3-clause | 1,666,429,114,143,380,000 | 25.204334 | 80 | 0.662689 | false |
mfherbst/spack | lib/spack/spack/test/packaging.py | 4 | 14935 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 8,319,771,293,499,632,000 | 38.406332 | 78 | 0.563709 | false |
teeple/pns_server | work/install/Python-2.7.4/Lib/bsddb/test/test_dbobj.py | 114 | 2407 |
import os, string
import unittest
from test_all import db, dbobj, test_support, get_new_environment_path, \
get_new_database_path
#----------------------------------------------------------------------
class dbobjTestCase(unittest.TestCase):
"""Verify that dbobj.DB and dbobj.DBEnv work properly"""
d... | gpl-2.0 | -1,676,810,744,191,928,300 | 33.385714 | 75 | 0.546323 | false |
fajoy/nova | nova/scheduler/weights/least_cost.py | 3 | 4693 | # Copyright (c) 2011-2012 OpenStack, LLC.
# 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 | -4,746,606,496,035,650,000 | 36.544 | 79 | 0.648839 | false |
alexanderfefelov/nav | python/nav/topology/analyze.py | 1 | 11281 | #
# Copyright (C) 2011,2012 UNINETT AS
#
# This file is part of Network Administration Visualized (NAV).
#
# NAV is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# This program is distributed in the... | gpl-2.0 | 7,250,334,864,281,435,000 | 32.179412 | 80 | 0.596844 | false |
kar1m/firefox-ios | scripts/clean-xliff.py | 41 | 2284 | #! /usr/bin/env python
#
# clean-xliff.py <l10n_folder>
#
# Remove targets from a locale, remove target-language attribute
#
from glob import glob
from lxml import etree
import argparse
import os
NS = {'x':'urn:oasis:names:tc:xliff:document:1.2'}
def indent(elem, level=0):
# Prettify XML output
# http://eff... | mpl-2.0 | 3,955,180,567,038,259,000 | 30.287671 | 80 | 0.561734 | false |
fossoult/odoo | addons/stock/tests/test_owner_available.py | 233 | 3002 | # Author: Leonardo Pistone
# Copyright 2015 Camptocamp SA
#
# 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 la... | agpl-3.0 | -1,358,830,625,151,154,400 | 39.026667 | 77 | 0.621252 | false |
comandrei/django-haystack | haystack/signals.py | 27 | 3163 | # encoding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
from django.db import models
from haystack.exceptions import NotHandled
class BaseSignalProcessor(object):
"""
A convenient way to attach Haystack to Django's signals & cause things to
index.
By de... | bsd-3-clause | -3,272,242,716,112,034,300 | 34.144444 | 85 | 0.637686 | false |
florian-dacosta/OCB | addons/crm_partner_assign/report/crm_lead_report.py | 309 | 5104 | # -*- 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 | 5,134,713,815,568,435,000 | 50.04 | 144 | 0.577978 | false |
ryansb/boto | boto/dynamodb2/layer1.py | 134 | 152740 | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# 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 ... | mit | -1,312,153,628,477,133,800 | 51.596419 | 104 | 0.640448 | false |
LarryHillyer/PoolHost | PoolHost/env/Lib/site-packages/django/core/serializers/pyyaml.py | 439 | 2843 | """
YAML serializer.
Requires PyYaml (http://pyyaml.org/), but that's checked for in __init__.
"""
import collections
import decimal
import sys
from io import StringIO
import yaml
from django.core.serializers.base import DeserializationError
from django.core.serializers.python import (
Deserializer as PythonDes... | gpl-3.0 | -5,104,212,287,146,039,000 | 32.845238 | 98 | 0.704537 | false |
israeleriston/scientific-week | backend/venv/lib/python3.5/site-packages/setuptools/namespaces.py | 196 | 3199 | import os
from distutils import log
import itertools
from setuptools.extern.six.moves import map
flatten = itertools.chain.from_iterable
class Installer:
nspkg_ext = '-nspkg.pth'
def install_namespaces(self):
nsp = self._get_all_ns_packages()
if not nsp:
return
filenam... | mit | -1,952,222,961,068,664,000 | 28.897196 | 73 | 0.55111 | false |
conan-io/conan | conans/client/graph/build_mode.py | 1 | 4085 | import fnmatch
from conans.errors import ConanException
class BuildMode(object):
""" build_mode => ["*"] if user wrote "--build"
=> ["hello*", "bye*"] if user wrote "--build hello --build bye"
=> ["hello/0.1@foo/bar"] if user wrote "--build hello/0.1@foo/bar"
... | mit | -4,308,683,314,894,567,000 | 37.537736 | 101 | 0.520441 | false |
qrkourier/ansible | lib/ansible/modules/cloud/amazon/elb_target_group_facts.py | 8 | 9841 | #!/usr/bin/python
# Copyright: Ansible Project
# 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': ['preview'],
... | gpl-3.0 | 496,058,775,045,258,240 | 35.448148 | 156 | 0.635809 | false |
HXLStandard/hxl-proxy | tests/test_dao.py | 1 | 3313 | """
Unit tests for hxl-proxy dao module
David Megginson
February 2016
License: Public Domain
"""
import unittest, os
from hxl_proxy import app, dao
from . import base
class AbstractDAOTest(base.AbstractDBTest):
"""Abstract base class for DAO tests."""
def setUp(self):
super().setUp()
def t... | unlicense | 7,076,540,238,950,739,000 | 28.580357 | 80 | 0.58195 | false |
grlee77/scipy | benchmarks/benchmarks/signal_filtering.py | 7 | 3025 | import numpy as np
import timeit
from concurrent.futures import ThreadPoolExecutor, wait
from .common import Benchmark, safe_import
with safe_import():
from scipy.signal import (lfilter, firwin, decimate, butter, sosfilt,
medfilt2d)
class Decimate(Benchmark):
param_names = ['q'... | bsd-3-clause | -9,018,186,589,440,354,000 | 28.086538 | 82 | 0.593058 | false |
angelapper/edx-platform | lms/djangoapps/student_account/test/test_views.py | 2 | 37721 | # -*- coding: utf-8 -*-
""" Tests for student account views. """
import logging
import re
from unittest import skipUnless
from urllib import urlencode
import ddt
import mock
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import get_user_model
from django.contrib.messages... | agpl-3.0 | 8,427,954,032,298,824,000 | 39.966304 | 135 | 0.631325 | false |
Orav/kbengine | kbe/res/scripts/common/Lib/test/test_frame.py | 2 | 4693 | import gc
import sys
import types
import unittest
import weakref
from test import support
class ClearTest(unittest.TestCase):
"""
Tests for frame.clear().
"""
def inner(self, x=5, **kwargs):
1/0
def outer(self, **kwargs):
try:
self.inner(**kwargs)
... | lgpl-3.0 | -6,156,660,757,615,960,000 | 25.934524 | 76 | 0.496058 | false |
Ubuntu-Solutions-Engineering/glance-simplestreams-sync-charm | hooks/charmhelpers/contrib/storage/linux/loopback.py | 8 | 1698 |
import os
import re
from subprocess import (
check_call,
check_output,
)
##################################################
# loopback device helpers.
##################################################
def loopback_devices():
'''
Parse through 'losetup -a' output to determine currently mapped
lo... | agpl-3.0 | -1,942,716,341,017,079,300 | 26.387097 | 79 | 0.57126 | false |
indie1982/osmc-fixes | package/mediacenter-skin-osmc/files/usr/share/kodi/addons/script.module.unidecode/lib/unidecode/x0a2.py | 253 | 4503 | data = (
'kax', # 0x00
'ka', # 0x01
'kap', # 0x02
'kuox', # 0x03
'kuo', # 0x04
'kuop', # 0x05
'kot', # 0x06
'kox', # 0x07
'ko', # 0x08
'kop', # 0x09
'ket', # 0x0a
'kex', # 0x0b
'ke', # 0x0c
'kep', # 0x0d
'kut', # 0x0e
'kux', # 0x0f
'ku', # 0x10
'kup', # 0x11
'kurx',... | gpl-2.0 | 2,287,080,334,690,534,700 | 16.453488 | 18 | 0.429936 | false |
laszlocsomor/tensorflow | tensorflow/contrib/tpu/python/tpu/util.py | 48 | 1148 | # Copyright 2017 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 | -2,201,687,460,996,860,200 | 36.032258 | 74 | 0.689024 | false |
kargakis/test-infra | gubernator/pb_glance.py | 22 | 2862 | #!/usr/bin/env python
# Copyright 2016 The Kubernetes 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | apache-2.0 | -1,408,108,838,141,725,200 | 33.902439 | 81 | 0.605171 | false |
Woile/commitizen | commitizen/commands/commit.py | 1 | 2734 | import contextlib
import os
import tempfile
import questionary
from commitizen import factory, git, out
from commitizen.config import BaseConfig
from commitizen.cz.exceptions import CzException
from commitizen.exceptions import (
CommitError,
CustomError,
DryRunExit,
NoAnswersError,
NoCommitBackup... | mit | 5,212,805,419,110,950,000 | 27.185567 | 77 | 0.584492 | false |
CUCWD/edx-platform | lms/djangoapps/verify_student/tests/test_ssencrypt.py | 19 | 4149 | """
Tests of the encryption and decryption utilities in the ssencrypt module.
"""
import base64
from lms.djangoapps.verify_student.ssencrypt import (
aes_decrypt,
aes_encrypt,
decode_and_decrypt,
encrypt_and_encode,
rsa_decrypt,
rsa_encrypt
)
AES_KEY_BYTES = b'32fe72aaf2abb44de9e161131b5435c8... | agpl-3.0 | -702,869,550,089,651,100 | 41.773196 | 97 | 0.818269 | false |
dongsenfo/pymatgen | pymatgen/core/ion.py | 2 | 6398 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Module containing class to create an ion
"""
__author__ = "Sai Jayaraman"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.0"
__maintainer__ = "Sai Jayaraman"
__email__ = "sjayaram... | mit | -4,061,650,216,657,345,500 | 28.75814 | 76 | 0.521569 | false |
mbayon/TFG-MachineLearning | vbig/lib/python2.7/site-packages/pandas/tests/series/test_indexing.py | 3 | 88164 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
import pytest
from datetime import datetime, timedelta
from numpy import nan
import numpy as np
import pandas as pd
import pandas._libs.index as _index
from pandas.core.dtypes.common import is_integer, is_scalar
from pandas import (Index, Series, DataFrame, isnull,
... | mit | -3,023,702,503,071,725,600 | 31.750371 | 79 | 0.525827 | false |
yousafsyed/casperjs | bin/Lib/test/test_threading.py | 72 | 36686 | """
Tests for the threading module.
"""
import test.support
from test.support import verbose, strip_python_stderr, import_module, cpython_only
from test.script_helper import assert_python_ok
import random
import re
import sys
_thread = import_module('_thread')
threading = import_module('threading')
import time
import... | mit | -3,147,136,815,665,377,000 | 34.93144 | 89 | 0.558306 | false |
Bioinformatics-Support-Unit/python-scripts | zic1/zic1_correlation.py | 1 | 2362 | import sys
from scipy.stats.stats import pearsonr
import matplotlib
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
import matplotlib.mlab as mlab
def main(f):
fh = open(f, 'r')
zic1_expression = []
other_expression = {}
for line in fh:... | mit | -7,916,220,470,207,586,000 | 32.742857 | 81 | 0.560119 | false |
Evervolv/android_external_chromium_org | ui/resources/PRESUBMIT.py | 121 | 1397 | # 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.
"""Presubmit script for Chromium UI resources.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the pr... | bsd-3-clause | -3,938,278,684,005,586,000 | 29.369565 | 76 | 0.727989 | false |
proudlygeek/proudlygeek-blog | jinja2/testsuite/__init__.py | 114 | 2758 | # -*- coding: utf-8 -*-
"""
jinja2.testsuite
~~~~~~~~~~~~~~~~
All the unittests of Jinja2. These tests can be executed by
either running run-tests.py using multiple Python versions at
the same time.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
i... | mit | -4,204,496,349,504,710,000 | 28.031579 | 79 | 0.641769 | false |
dgreisen/u2db | u1db/vectorclock.py | 2 | 3167 | # Copyright 2011 Canonical Ltd.
#
# This file is part of u1db.
#
# u1db 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.
#
# u1db is distributed in the hope that it will be useful,
# but WITHOU... | gpl-3.0 | 474,406,662,938,994,800 | 34.58427 | 78 | 0.607199 | false |
pleaseproject/python-for-android | python3-alpha/python3-src/Lib/lib2to3/fixes/fix_exitfunc.py | 140 | 2497 | """
Convert use of sys.exitfunc to use the atexit module.
"""
# Author: Benjamin Peterson
from lib2to3 import pytree, fixer_base
from lib2to3.fixer_util import Name, Attr, Call, Comma, Newline, syms
class FixExitfunc(fixer_base.BaseFix):
keep_line_order = True
BM_compatible = True
PATTERN = """
... | apache-2.0 | -8,085,682,022,146,765,000 | 33.680556 | 77 | 0.504205 | false |
Azulinho/ansible | test/units/modules/network/netscaler/test_netscaler_gslb_service.py | 39 | 27775 |
# Copyright (c) 2017 Citrix Systems
#
# 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) any later version.
#
# ... | gpl-3.0 | -7,570,181,304,891,496,000 | 36.789116 | 133 | 0.594275 | false |
heytcass/homeassistant-config | deps/fuzzywuzzy/process.py | 1 | 11161 | #!/usr/bin/env python
# encoding: utf-8
"""
process.py
Copyright (c) 2011 Adam Cohen
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 t... | mit | -683,283,823,979,759,000 | 38.578014 | 122 | 0.660245 | false |
ThornCreekChurch/e2mc | main.py | 1 | 5923 | ## Copyright (C) 2017 ThornCreek Church
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program... | gpl-3.0 | -692,375,327,331,215,700 | 36.967949 | 111 | 0.58315 | false |
GodBlessPP/w16b_test | static/Brython3.1.1-20150328-091302/Lib/binascii.py | 620 | 24585 | """A pure Python implementation of binascii.
Rather slow and buggy in corner cases.
PyPy provides an RPython version too.
"""
# borrowed from https://bitbucket.org/pypy/pypy/src/f2bf94943a41/lib_pypy/binascii.py
class Error(Exception):
pass
class Done(Exception):
pass
class Incomplete(Exception):
pass
... | agpl-3.0 | 6,389,676,393,272,507,000 | 32.770604 | 85 | 0.49156 | false |
Greennut/ostproject | django/contrib/gis/maps/google/gmap.py | 90 | 8964 | from django.conf import settings
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from django.contrib.gis.maps.google.overlays import GPolygon, GPolyline, GMarker
class GoogleMapException(Exception):
pass
# The default Google Maps URL (for the API javascript)
# T... | bsd-3-clause | 3,649,723,567,242,247,700 | 38.144105 | 129 | 0.589023 | false |
mdanielwork/intellij-community | python/helpers/pydev/third_party/wrapped_for_pydev/ctypes/__init__.py | 106 | 15821 | #@PydevCodeAnalysisIgnore
"""create and manipulate C data types in Python"""
import os as _os, sys as _sys
from itertools import chain as _chain
# special developer support to use ctypes from the CVS sandbox,
# without installing it
# XXX Remove this for the python core version
_magicfile = _os.path.join(_os.path.dir... | apache-2.0 | -3,300,783,694,097,428,000 | 29.542471 | 97 | 0.606978 | false |
hrhtspr/IkaLog | ikalog/utils/ikautils.py | 2 | 5158 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA
#
# 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/l... | apache-2.0 | 3,216,547,869,274,391,000 | 28.367816 | 84 | 0.584932 | false |
gurneyalex/odoo | addons/stock_landed_costs/tests/test_stockvaluationlayer.py | 4 | 20303 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
""" Implementation of "INVENTORY VALUATION TESTS (With valuation layers)" spreadsheet. """
from odoo.tests import Form, tagged
from odoo.addons.stock_account.tests.test_stockvaluationlayer import TestStockValuationCommo... | agpl-3.0 | -3,868,954,112,611,728,400 | 41.743158 | 161 | 0.631926 | 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.