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 |
|---|---|---|---|---|---|---|---|---|---|---|
NaturalGIS/naturalgis_qgis | python/PyQt/PyQt5/QtTest.py | 45 | 1035 | # -*- coding: utf-8 -*-
"""
***************************************************************************
QtTest.py
---------------------
Date : March 2016
Copyright : (C) 2016 by Juergen E. Fischer
Email : jef at norbit dot de
*******************************... | gpl-2.0 | 3,200,086,600,493,313,500 | 42.125 | 75 | 0.34686 | false |
Jimmyhua94/MyoFlie | lib/cfclient/ui/dialogs/inputconfigdialogue.py | 5 | 19062 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 20... | gpl-2.0 | 2,185,654,685,663,585,800 | 39.730769 | 79 | 0.558336 | false |
wxgeo/geophar | wxgeometrie/sympy/printing/ccode.py | 2 | 31443 | """
C code printer
The C89CodePrinter & C99CodePrinter converts single sympy expressions into
single C expressions, using the functions defined in math.h where possible.
A complete code generator, which uses ccode extensively, can be found in
sympy.utilities.codegen. The codegen module can be used to generate complet... | gpl-2.0 | -7,199,189,049,494,312,000 | 34.975973 | 99 | 0.565499 | false |
toanalien/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checker_unittest.py | 121 | 35416 | # -*- coding: utf-8; -*-
#
# Copyright (C) 2009 Google Inc. All rights reserved.
# Copyright (C) 2009 Torch Mobile Inc.
# Copyright (C) 2009 Apple Inc. All rights reserved.
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
#
# Redistribution and use in source and binary forms, with or without
# modificatio... | bsd-3-clause | -4,556,482,261,465,393,700 | 38.659574 | 136 | 0.611277 | false |
TheTypoMaster/chromium-crosswalk | chrome/common/extensions/docs/server2/host_file_system_provider_test.py | 97 | 1715 | #!/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.
from copy import deepcopy
import unittest
from extensions_paths import CHROME_API
from file_system import FileNotFoundError
from host_... | bsd-3-clause | -87,739,909,156,857,820 | 34.729167 | 80 | 0.730029 | false |
hongmeister/aislib | aislib.py | 1 | 24559 | #!/usr/bin/env python
"""
Simple AIS library.
This library supports creating and decoding NMEA formatted AIS type 1,5,24 messages
@author Daniel Hong
https://github.com/doodleincode/aislib
This program is licensed under the GNU GENERAL PUBLIC LICENSE Version 2.
A LICENSE file should have accompanied this program... | gpl-2.0 | 8,187,269,034,521,378,000 | 41.785714 | 143 | 0.529012 | false |
cigalsace/ldapreader | libs/requests/models.py | 410 | 29176 | # -*- coding: utf-8 -*-
"""
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
"""
import collections
import datetime
from io import BytesIO, UnsupportedOperation
from .hooks import default_hooks
from .structures import CaseInsensitiveDict
from .auth import HTTPBasicAuth
... | mit | 4,849,718,883,618,704,000 | 32.965076 | 119 | 0.571806 | false |
yinjun322/quick-ng | tools/cocos2d-console/plugins/project_new/project_new.py | 6 | 26531 | #!/usr/bin/python
# ----------------------------------------------------------------------------
# cocos "new" plugin
#
# Copyright 2013 (C) cocos2d-x.org
#
# License: MIT
# ----------------------------------------------------------------------------
'''
"new" plugin for cocos command line tool
'''
__docformat__ = 're... | mit | 4,503,527,740,058,254,300 | 37.731387 | 122 | 0.561079 | false |
wehkamp/ansible | lib/ansible/executor/task_executor.py | 3 | 19381 | # (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 | 141,399,549,028,471,490 | 41.041215 | 134 | 0.599401 | false |
wemanuel/smry | smry/server-auth/ls/google-cloud-sdk/platform/gsutil/third_party/boto/tests/unit/s3/test_connection.py | 90 | 7823 | # Copyright (c) 2013 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 ... | apache-2.0 | -9,127,829,953,583,951,000 | 31.595833 | 94 | 0.625463 | false |
i8run/BigDL-1 | spark/dl/src/test/resources/tf/models/batch_norm_nchw.py | 9 | 1139 | #
# Copyright 2016 The BigDL 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 applicable law or agreed to in ... | apache-2.0 | -5,294,181,347,381,693,000 | 33.545455 | 97 | 0.700615 | false |
landism/pants | tests/python/pants_test/base/test_pants_ignore_scm.py | 8 | 1301 | # coding=utf-8
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import subprocess
im... | apache-2.0 | 5,705,839,503,799,604,000 | 35.138889 | 93 | 0.713297 | false |
lebertbe/Mines-Project | FonctionExtraction.py | 1 | 5498 | import xlrd
import numpy as np
def importBus():
wb = xlrd.open_workbook('Demand.xlsx')
sh = wb.sheet_by_name(u'Sheet1')
resultFinal=[]
compteur = 0
for rownum in range(sh.nrows):
inter1 = sh.row_values(rownum)
if compteur > 0:
nomBus = inter1[0]
typeCons = 2... | mit | 5,824,077,683,565,890,000 | 33.325 | 163 | 0.507647 | false |
maxiyommi/primeros-pasos-BBB | CODIGOS/python/LCD/display-lcd-menu.py | 1 | 1524 |
# -*- coding: utf-8 -*-
"""Código para display HD44780 conectado via I2C con un modulo PCF8574."""
from Adafruit_BBIO import GPIO
from i2c_lcd import I2cLcd
import time
"""
Dirección por defecto del display: 0x27. Probado en una BB Black con Debian -
kernel 4.4.83 - Verificar la dirección con el comando ' i2cdetect -... | gpl-3.0 | 2,601,169,194,341,568,500 | 31.276596 | 81 | 0.59855 | false |
phborba/dsgtoolsop | ProfileTool/pyqtgraph/canvas/CanvasTemplate_pyqt.py | 35 | 5126 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'acq4/pyqtgraph/canvas/CanvasTemplate.ui'
#
# Created: Thu Jan 2 11:13:07 2014
# by: PyQt4 UI code generator 4.9
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QStr... | gpl-2.0 | -2,116,521,264,317,586,200 | 54.717391 | 169 | 0.726687 | false |
fjbatresv/odoo | addons/report/models/report.py | 168 | 26320 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | -176,526,340,354,722,430 | 44.694444 | 143 | 0.574506 | false |
mpasternak/pyglet-fix-issue-552 | pyglet/image/codecs/gdkpixbuf2.py | 9 | 5863 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | bsd-3-clause | 3,177,583,628,932,111 | 34.75 | 80 | 0.643868 | false |
paulsmith/geodjango | django/contrib/gis/gdal/geomtype.py | 1 | 2745 | from django.contrib.gis.gdal.error import OGRException
#### OGRGeomType ####
class OGRGeomType(object):
"Encapulates OGR Geometry Types."
# Ordered array of acceptable strings and their corresponding OGRwkbGeometryType
__ogr_str = ['Unknown', 'Point', 'LineString', 'Polygon', 'MultiPoint',
... | bsd-3-clause | -8,262,189,383,502,890,000 | 37.125 | 84 | 0.578142 | false |
open-synergy/purchase-workflow | purchase_partial_invoicing/wizard/po_line_invoice.py | 3 | 4153 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2013 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# This program is free software: you can redistribute it and/or modify
# ... | agpl-3.0 | 5,544,615,762,108,332,000 | 40.118812 | 79 | 0.586805 | false |
saisai/phantomjs | src/qt/qtwebkit/Tools/QueueStatusServer/model/queuestatus.py | 121 | 2109 | # Copyright (C) 2013 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 of conditions and the... | bsd-3-clause | 5,877,253,865,110,186,000 | 45.866667 | 72 | 0.768611 | false |
jinverar/crits | crits/core/mongo_tools.py | 17 | 14440 | from django.conf import settings
if settings.FILE_DB == settings.S3:
from crits.core.s3_tools import get_file_s3
import gridfs
import pymongo
import magic
class MongoError(Exception):
"""
Generic MongoError exception.
"""
pass
# TODO: mongo_connector() and gridfs_connector() can probably be comb... | mit | 299,601,373,629,731,460 | 33.96368 | 85 | 0.628601 | false |
pawkoz/dyplom | blender/release/scripts/startup/bl_ui/space_userpref.py | 1 | 48048 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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) any later version.
#
# This program is distrib... | gpl-2.0 | -7,425,975,972,060,073,000 | 33.197865 | 154 | 0.569555 | false |
Noviat/odoo | addons/calendar/__openerp__.py | 269 | 1999 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2011 OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | agpl-3.0 | -5,056,368,270,007,809,000 | 33.465517 | 78 | 0.574787 | false |
gnieboer/tensorflow | tensorflow/contrib/training/python/training/failure_tolerator.py | 72 | 4450 | # 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 | 8,559,772,103,983,587,000 | 34.31746 | 80 | 0.693708 | false |
elitan/mybot | plugins/google.py | 18 | 1115 | import random
from util import hook, http
def api_get(query, key, is_image=None, num=1):
url = ('https://www.googleapis.com/customsearch/v1?cx=007629729846476161907:ud5nlxktgcw'
'&fields=items(title,link,snippet)&safe=off' + ('&searchType=image' if is_image else ''))
return http.get_json(url, key=... | unlicense | 2,879,199,558,551,426,600 | 27.589744 | 100 | 0.623318 | false |
hortonworks/hortonworks-sandbox | desktop/core/ext-py/greenlet-0.3.1/tests/test_extension_interface.py | 2 | 2392 | import sys
import unittest
import greenlet
import _test_extension
class CAPITests(unittest.TestCase):
def test_switch(self):
self.assertEquals(
50, _test_extension.test_switch(greenlet.greenlet(lambda: 50)))
def test_switch_kwargs(self):
def foo(x, y):
return x * y
... | apache-2.0 | 172,045,612,632,918,180 | 33.666667 | 82 | 0.591137 | false |
liikGit/MissionPlanner | Lib/site-packages/scipy/signal/fir_filter_design.py | 53 | 18572 | """Functions for FIR filter design."""
from math import ceil, log
import numpy as np
from numpy.fft import irfft
from scipy.special import sinc
import sigtools
# Some notes on function parameters:
#
# `cutoff` and `width` are given as a numbers between 0 and 1. These
# are relative frequencies, expressed as a fracti... | gpl-3.0 | 5,015,647,485,292,476,000 | 33.202578 | 107 | 0.618458 | false |
pepeportela/edx-platform | lms/djangoapps/course_blocks/transformers/tests/test_visibility.py | 36 | 1429 | """
Tests for VisibilityTransformer.
"""
import ddt
from nose.plugins.attrib import attr
from ..visibility import VisibilityTransformer
from .helpers import BlockParentsMapTestCase, update_block
@attr(shard=3)
@ddt.ddt
class VisibilityTransformerTestCase(BlockParentsMapTestCase):
"""
VisibilityTransformer Te... | agpl-3.0 | -3,810,420,310,406,795,000 | 29.404255 | 90 | 0.526242 | false |
cjparsons74/kupfer | kupfer/plugin/gtg.py | 1 | 4891 | # -*- coding: UTF-8 -*-
__kupfer_name__ = _("Getting Things GNOME")
__kupfer_sources__ = ("TasksSource", )
__kupfer_actions__ = ("CreateNewTask",)
__description__ = _("Browse and create new tasks in GTG")
__version__ = "2010-05-27"
__author__ = "Karol Będkowski <karol.bedkowski@gmail.com>"
import os
import dbus
fro... | gpl-3.0 | -4,212,549,112,694,702,600 | 22.613527 | 70 | 0.684738 | false |
yury-s/v8-inspector | Source/chrome/tools/perf/benchmarks/blink_style.py | 2 | 1383 | # Copyright 2015 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.
from core import perf_benchmark
from measurements import blink_style
from telemetry import benchmark
import page_sets
@benchmark.Disabled('reference', 'wi... | bsd-3-clause | -4,951,215,896,417,454,000 | 26.66 | 77 | 0.749096 | false |
smaffulli/libcloud | libcloud/dns/drivers/softlayer.py | 26 | 7409 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | -1,376,864,431,487,597,800 | 33.784038 | 77 | 0.553651 | false |
LukasSukenik/faunus | src/examples/grand.py | 1 | 1548 | #!/usr/bin/env python
from __future__ import print_function
import json, sys, os
from subprocess import call
from shutil import copyfile
pfx = os.path.join( os.path.dirname(__file__), "grand")
try:
copyfile( pfx+'.state', 'state' )
copyfile( pfx+'.test', 'grand.test' )
except: pass
def mkinput():
d = {
"m... | gpl-2.0 | -1,226,179,685,199,393,000 | 26.157895 | 73 | 0.46447 | false |
cbrepo/django-reversion | src/reversion/helpers.py | 2 | 2931 | """A number of useful helper functions to automate common tasks."""
from django.contrib import admin
from django.contrib.admin.sites import NotRegistered
from reversion.admin import VersionAdmin
def patch_admin(model, admin_site=None):
"""
Enables version control with full admin integration for a model tha... | bsd-3-clause | -7,943,888,686,249,703,000 | 34.743902 | 100 | 0.670078 | false |
Mapkin/tally | tally/conf/wsgi.py | 1 | 1146 | """
WSGI config for tally 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`` se... | mit | -702,411,874,728,624,000 | 39.928571 | 79 | 0.800175 | false |
epiqc/ScaffCC | llvm/utils/lit/lit/discovery.py | 12 | 8926 | """
Test discovery functions.
"""
import copy
import os
import sys
from lit.TestingConfig import TestingConfig
from lit import LitConfig, Test
def chooseConfigFileFromDir(dir, config_names):
for name in config_names:
p = os.path.join(dir, name)
if os.path.exists(p):
return p
retur... | bsd-2-clause | -138,544,835,299,449,380 | 34.704 | 84 | 0.597244 | false |
simod/geonode | geonode/proxy/views.py | 1 | 14175 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# 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 ... | gpl-3.0 | 807,604,929,668,455,400 | 39.384615 | 119 | 0.551746 | false |
yamateh/robotframework | src/robot/output/librarylogger.py | 1 | 1938 | # Copyright 2008-2013 Nokia Siemens Networks Oyj
#
# 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... | apache-2.0 | 4,278,076,586,754,195,000 | 27.925373 | 78 | 0.70743 | false |
dennis-sheil/commandergenius | project/jni/python/src/Tools/pynche/PyncheWidget.py | 100 | 10501 | """Main Pynche (Pythonically Natural Color and Hue Editor) widget.
This window provides the basic decorations, primarily including the menubar.
It is used to bring up other windows.
"""
import sys
import os
from Tkinter import *
import tkMessageBox
import tkFileDialog
import ColorDB
# Milliseconds between interrupt ... | lgpl-2.1 | -5,850,339,177,694,948,000 | 32.657051 | 78 | 0.514903 | false |
krintoxi/NoobSec-Toolkit | NoobSecToolkit /tools/sqli/plugins/dbms/mysql/connector.py | 10 | 2046 | #!/usr/bin/env python
"""
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
try:
import pymysql
except ImportError:
pass
import logging
from lib.core.data import conf
from lib.core.data import logger
from lib.core.exception import SqlmapConn... | gpl-2.0 | -1,686,672,792,296,992,500 | 27.027397 | 178 | 0.651515 | false |
DoomTaper/ptp | tests/tools/burpsuite/test_parser.py | 2 | 4008 | # -*- coding: UTF-8 -*-
import mock
import unittest
from lxml import etree
from hamcrest import assert_that, has_entry, equal_to
from ptp.libptp.exceptions import NotSupportedVersionError
from ptp.tools.burpsuite.parser import BurpXMLParser
def lxml_etree_parse(string):
return etree.fromstring(string).getroottr... | bsd-3-clause | -1,515,191,474,964,954,400 | 48.481481 | 120 | 0.667914 | false |
solintegra/addons | mrp_product_variants_configurable_timing/__openerp__.py | 15 | 1296 | # -*- encoding: utf-8 -*-
##############################################################################
#
# 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... | agpl-3.0 | -2,673,208,492,437,613,600 | 39.5 | 78 | 0.57716 | false |
kenshay/ImageScripter | ProgramData/SystemFiles/Python/Lib/site-packages/django/core/management/commands/makemigrations.py | 46 | 15083 | import io
import os
import sys
import warnings
from itertools import takewhile
from django.apps import apps
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.db import DEFAULT_DB_ALIAS, connections, router
from django.db.migrations import Migration
from djan... | gpl-3.0 | 4,389,697,516,476,841,000 | 45.841615 | 107 | 0.565935 | false |
trickv/fspot_browser | urls.py | 1 | 1469 | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^render/(?P<photo_id>\d+)/$', 'render.views.raw'),
url(r'^render/(?P<photo_id>\d+)/thumbnail/$', 'render.views... | bsd-3-clause | 6,610,829,579,079,783,000 | 49.655172 | 98 | 0.622873 | false |
boneknuckleskin/libforensics | code/lf/win/shell/link/consts.py | 13 | 3381 | # Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | gpl-3.0 | -2,078,138,751,299,418,600 | 35.354839 | 78 | 0.738243 | false |
citrix/netscaler-ansible-modules | docs/conf.py | 1 | 10060 | # Copyright (c) 2017 Citrix Systems
#
# 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 wr... | gpl-3.0 | 7,048,090,311,033,142,000 | 31.875817 | 79 | 0.703082 | false |
mottosso/mindbender-setup | bin/windows/python36/Lib/curses/textpad.py | 40 | 7657 | """Simple textbox editing widget with Emacs-like keybindings."""
import curses
import curses.ascii
def rectangle(win, uly, ulx, lry, lrx):
"""Draw a rectangle with corners at the provided upper-left
and lower-right coordinates.
"""
win.vline(uly+1, ulx, curses.ACS_VLINE, lry - uly - 1)
win.hline(u... | mit | -1,472,043,952,465,632,300 | 37.094527 | 92 | 0.514039 | false |
hayderimran7/tempest | tempest/api/compute/limits/test_absolute_limits.py | 17 | 2089 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -1,975,871,398,662,088,700 | 44.413043 | 78 | 0.627094 | false |
nickleefly/youtube-dl | youtube_dl/extractor/iwara.py | 11 | 2611 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_urllib_parse_urlparse
from ..utils import remove_end
class IwaraIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.|ecchi\.)?iwara\.tv/videos/(?P<id>[a-zA-Z0-9]+)'
_TESTS = [{
'url': ... | unlicense | -8,007,631,885,851,447,000 | 32.649351 | 85 | 0.519491 | false |
rhyolight/nupic.research | projects/encoder_quality/scalar_encoder_check_demo.py | 12 | 1668 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | gpl-3.0 | -1,021,771,276,684,367,100 | 34.489362 | 73 | 0.656475 | false |
chyeh727/django | django/contrib/gis/db/backends/base/operations.py | 263 | 4865 | class BaseSpatialOperations(object):
"""
This module holds the base `BaseSpatialBackend` object, which is
instantiated by each spatial database backend with the features
it has.
"""
truncate_params = {}
# Quick booleans for the type of this spatial backend, and
# an attribute for the sp... | bsd-3-clause | -9,180,530,330,074,823,000 | 34.510949 | 115 | 0.67482 | false |
jkarnows/scikit-learn | sklearn/utils/fixes.py | 29 | 12072 | """Compatibility fixes for older version of python, numpy and scipy
If you add content to this file, please give the version of the package
at which the fixe is no longer needed.
"""
# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# ... | bsd-3-clause | 8,634,131,864,398,764,000 | 33.1983 | 84 | 0.569583 | false |
mozilla/addons-server | src/olympia/addons/admin.py | 4 | 18785 | import functools
from urllib.parse import urlencode, urljoin
from django import http, forms
from django.conf import settings
from django.contrib import admin
from django.core import validators
from django.forms.models import modelformset_factory
from django.http.response import (
HttpResponseForbidden,
HttpRes... | bsd-3-clause | -1,222,969,037,017,183,700 | 32.425267 | 88 | 0.53415 | false |
drpaneas/linuxed.gr | lib/python2.7/site-packages/Crypto/SelfTest/Util/__init__.py | 116 | 1743 | # -*- coding: utf-8 -*-
#
# SelfTest/Util/__init__.py: Self-test for utility modules
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication t... | mit | -6,270,951,727,871,420,000 | 38.613636 | 105 | 0.668962 | false |
ne9een/Movie-Trailer-Website | entertainment_centre.py | 1 | 1894 | import media
import fresh_tomatoes
print (media.Movie.__doc__)
# Instantiate of class Movie
inglourious_basterds = media.Movie("Inglourious Basterds",
"Story of war between France and Germany",
"http://goo.gl/rz9p8v",
... | unlicense | 214,618,324,821,549,200 | 53.114286 | 79 | 0.545935 | false |
theherk/django-theherk-resources | setup.py | 1 | 1124 | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-theherk-resources',
version='1.6',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django-localflavor'... | bsd-3-clause | -2,508,572,353,389,379,600 | 32.058824 | 87 | 0.6379 | false |
Spoken-tutorial/spoken-website | donate/views.py | 1 | 13338 | from config import TARGET, CHANNEL_ID, CHANNEL_KEY, EXPIRY_DAYS
from .helpers import PURPOSE
from django.shortcuts import render
from creation.models import FossCategory, Language
from cms.models import Profile
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login... | gpl-3.0 | -1,900,013,438,511,071,000 | 35.244565 | 162 | 0.618159 | false |
OpenPymeMx/OCB | addons/account/report/account_partner_ledger.py | 14 | 13132 | # -*- 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 | 2,195,964,284,245,328,400 | 41.22508 | 199 | 0.521017 | false |
Friedbaumer/litecoin | test/functional/test_framework/blocktools.py | 53 | 3932 | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Utilities for manipulating blocks and transactions."""
from .mininode import *
from .script import CSc... | mit | 7,679,232,457,778,768,000 | 34.745455 | 104 | 0.692777 | false |
Perferom/android_external_chromium_org | remoting/tools/build/remoting_copy_locales.py | 142 | 5150 | #!/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.
"""Helper script to repack paks for a list of locales.
Gyp doesn't have any built-in looping capability, so this just provides a way t... | bsd-3-clause | -4,684,171,339,827,855,000 | 31.1875 | 80 | 0.654369 | false |
cgstudiomap/cgstudiomap | main/eggs/Django-1.9-py2.7.egg/django/test/client.py | 132 | 26745 | from __future__ import unicode_literals
import json
import mimetypes
import os
import re
import sys
from copy import copy
from importlib import import_module
from io import BytesIO
from django.apps import apps
from django.conf import settings
from django.core import urlresolvers
from django.core.handlers.base import ... | agpl-3.0 | -1,371,942,806,475,676,200 | 37.537464 | 112 | 0.591475 | false |
apporc/cinder | cinder/api/__init__.py | 26 | 1394 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | apache-2.0 | -1,468,103,529,160,972,300 | 35.684211 | 78 | 0.695122 | false |
pdellaert/ansible | lib/ansible/modules/network/netscaler/netscaler_nitro_request.py | 21 | 28641 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Citrix Systems
# 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',
... | gpl-3.0 | 1,997,026,334,399,222,800 | 30.473626 | 158 | 0.567857 | false |
orion-42/numerics-physics-stuff | knapsack.py | 1 | 1976 | from collections import namedtuple
knapsack_item = namedtuple("knapsack_item", ["weight", "value"])
max_weight = 15
items = [
knapsack_item(weight=2, value=2),
knapsack_item(weight=1, value=2),
knapsack_item(weight=12, value=4),
knapsack_item(weight=1, value=1),
knapsack_item(weight=4, value=10),... | mit | 9,176,658,036,647,423,000 | 37.745098 | 133 | 0.668522 | false |
laosiaudi/tensorflow | tensorflow/contrib/labeled_tensor/python/ops/sugar.py | 174 | 4821 | # 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 | 6,877,966,664,158,045,000 | 35.801527 | 80 | 0.651939 | false |
pombredanne/invenio | modules/bibclassify/lib/bibclassify_daemon.py | 1 | 13895 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 CERN.
##
## Invenio 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 ve... | gpl-2.0 | 2,646,582,706,989,564,400 | 36.252011 | 79 | 0.612666 | false |
Necromoshka/orderHistory | journal/journal/settings.py | 1 | 5285 | """
Django settings for journal project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os... | mit | -2,416,759,624,345,801,000 | 27.728261 | 107 | 0.680984 | false |
scollis/iris | lib/iris/fileformats/name_loaders.py | 1 | 31766 | # (C) British Crown Copyright 2013 - 2014, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | gpl-3.0 | 6,758,950,755,336,612,000 | 34.853273 | 79 | 0.554461 | false |
dav1x/ansible | lib/ansible/utils/module_docs_fragments/junos.py | 101 | 2910 | #
# (c) 2015, Peter Sprygada <psprygada@ansible.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) any late... | gpl-3.0 | -8,919,451,029,809,860,000 | 41.173913 | 87 | 0.673883 | false |
mintcloud/deep-learning | face_generation/helper.py | 160 | 8114 | import math
import os
import hashlib
from urllib.request import urlretrieve
import zipfile
import gzip
import shutil
import numpy as np
from PIL import Image
from tqdm import tqdm
def _read32(bytestream):
"""
Read 32-bit integer from bytesteam
:param bytestream: A bytestream
:return: 32-bit integer
... | mit | 9,013,331,584,869,744,000 | 32.949791 | 116 | 0.617328 | false |
guorendong/iridium-browser-ubuntu | tools/telemetry/telemetry/unittest_util/page_test_test_case.py | 5 | 3967 | # Copyright 2014 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.
"""Provide a TestCase base class for PageTest subclasses' unittests."""
import unittest
from telemetry import benchmark
from telemetry.core import exceptio... | bsd-3-clause | -7,673,386,468,514,657,000 | 36.074766 | 79 | 0.724477 | false |
projectatomic/atomic-reactor | tests/utils/test_yum.py | 1 | 1699 | """
Copyright (c) 2018 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
Very small subset of tests for the YumRepo class. Most testing
is done in test_add_yum_repo_by_url
"""
from __future__ import absolute_import
fr... | bsd-3-clause | 3,477,460,360,116,652,000 | 31.673077 | 78 | 0.65156 | false |
sledz/oe | contrib/source-checker/oe-checksums-sorter.py | 40 | 2995 | #!/usr/bin/env python
# ex:ts=4:sw=4:sts=4:et
# Copyright (C) 2007 OpenedHand
#
# This program 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 hope that it wil... | mit | 781,241,256,021,391,600 | 25.981982 | 78 | 0.644073 | false |
mrshelly/openerp71313 | openerp/addons/mrp/report/price.py | 19 | 11417 | # -*- 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 | -763,938,628,482,897,500 | 49.96875 | 150 | 0.489533 | false |
YingHsuan/termite_data_server | web2py/gluon/tests/test_contribs.py | 18 | 1745 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Unit tests for contribs """
import sys
import os
import unittest
def fix_sys_path():
"""
logic to have always the correct sys.path
'', web2py/gluon, web2py/site-packages, web2py/ ...
"""
def add_path_first(path):
sys.path = [path] + [p f... | bsd-3-clause | -1,956,684,179,713,193,200 | 25.044776 | 72 | 0.568481 | false |
udacity/course-front-end-frameworks | lesson3/quizNewFeature2/unit_tests.py | 1 | 2220 | is_correct = False
router = widget_inputs["check1"]
template = widget_inputs["check2"]
service = widget_inputs["check3"]
controller = widget_inputs["check4"]
module = widget_inputs["check5"]
comments = []
def commentizer(new):
if new not in comments:
comments.append(new)
if not router:
is_correct = i... | mit | 7,758,192,407,426,891,000 | 40.111111 | 256 | 0.732432 | false |
stefanfoulis/django-multilingual | testproject/inline_registrations/admin.py | 5 | 1190 | from django.contrib import admin
from testproject.inline_registrations.models import (ArticleWithSimpleRegistration,
ArticleWithExternalInline,
ArticleWithInternalInline)
import multilingual
######################... | mit | -4,044,077,928,177,366,000 | 37.387097 | 83 | 0.67479 | false |
macks22/dblp | api/dblp_sql.py | 2 | 3801 | import sqlalchemy as sa
import db
import dblp
def insert(conn, ins):
"""Attempt to run an insertion statement; return results, None if error."""
try:
ins_res = conn.execute(ins)
except sa.exc.IntegrityError as err:
# a paper already exists with this id
logging.error(str(err))
... | mit | -8,837,223,192,074,217,000 | 26.948529 | 79 | 0.590634 | false |
UpSea/thirdParty | pyqtgraph-0.9.10/examples/PlotWidget.py | 6 | 2553 | # -*- coding: utf-8 -*-
"""
Demonstrates use of PlotWidget class. This is little more than a
GraphicsView with a PlotItem placed in its center.
"""
import initExample ## Add path to library (just for examples; you do not need this)
from pyqtgraph.Qt import QtGui, QtCore
import numpy as np
import pyqtgraph as pg
#... | mit | 3,559,306,869,869,190,700 | 26.159574 | 97 | 0.68351 | false |
d/hamster-applet | src/hamster/utils/graphics.py | 1 | 57654 | # - coding: utf-8 -
# Copyright (C) 2008-2010 Toms Bauģis <toms.baugis at gmail.com>
# Dual licensed under the MIT or GPL Version 2 licenses.
# See http://github.com/tbaugis/hamster_experiments/blob/master/README.textile
import math
import datetime as dt
import gtk, gobject
import pango, cairo
import re
try:
im... | gpl-3.0 | 3,153,081,953,994,345,500 | 36.954575 | 134 | 0.573674 | false |
noslenfa/tdjangorest | uw/lib/python2.7/site-packages/django/db/models/sql/compiler.py | 52 | 49792 | from django.utils.six.moves import zip
from django.core.exceptions import FieldError
from django.db import transaction
from django.db.backends.util import truncate_name
from django.db.models.constants import LOOKUP_SEP
from django.db.models.query_utils import select_related_descend
from django.db.models.sql.constants ... | apache-2.0 | 4,086,644,844,139,696,000 | 43.181012 | 136 | 0.551976 | false |
frankk00/realtor | atom/mock_http.py | 278 | 4474 | #!/usr/bin/python
#
# Copyright (C) 2008 Google 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 ... | bsd-3-clause | -4,099,530,682,227,467,300 | 32.893939 | 78 | 0.687528 | false |
assamite/creamas | creamas/serializers.py | 1 | 1074 | """
.. py:module:: serializers
:platform: Unix
Predefined serializers for routers.
"""
import pickle
from numpy import array, ndarray
from creamas.core.artifact import Artifact
def get_serializers():
"""Get all basic serializers defined in this module as a list.
"""
return [artifact_serializer, arr... | gpl-2.0 | 1,484,917,434,959,549,200 | 24.5 | 77 | 0.711485 | false |
nomaro/SickBeard_Backup | sickbeard/notifiers/pushbullet.py | 6 | 5572 | # Author: Pedro Correia (http://github.com/pedrocorreia/)
# Based on pushalot.py by Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as... | gpl-3.0 | -6,028,124,754,648,051,000 | 42.193798 | 185 | 0.625987 | false |
sorenk/ansible | lib/ansible/plugins/action/ironware.py | 28 | 3772 | #
# (c) 2016 Red Hat Inc.
#
# 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 d... | gpl-3.0 | 6,232,148,132,457,694,000 | 38.705263 | 118 | 0.668346 | false |
cosenal/osf.io | website/oauth/views.py | 7 | 1558 | # -*- coding: utf-8 -*-
import httplib as http
from flask import redirect
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.oauth.models import ExternalAccount
from website.oauth.utils import get_service
from website.oauth.signals import oauth_complete
@... | apache-2.0 | -8,224,188,878,381,168,000 | 26.821429 | 81 | 0.723363 | false |
ccccccccccc/personal-file-sharing-center | web/debugerror.py | 68 | 12346 | """
pretty debug errors
(part of web.py)
portions adapted from Django <djangoproject.com>
Copyright (c) 2005, the Lawrence Journal-World
Used under the modified BSD license:
http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5
"""
__all__ = ["debugerror", "djangoerror", "emailerrors"]
import sys, urlparse, pprint, traceb... | gpl-2.0 | -8,452,844,035,888,788,000 | 33.875706 | 159 | 0.590961 | false |
akash1808/nova | nova/wsgi/nova-ec2-api.py | 50 | 1284 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | -2,936,829,963,825,536,000 | 28.860465 | 78 | 0.732087 | false |
ndardenne/pymatgen | pymatgen/analysis/defects/dilute_solution_model.py | 4 | 53811 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
from __future__ import division
"""
Evaluate the defect concentration based on composition, temperature,
and defect energies using "Dilute Solution Model"
Reference: Phy... | mit | -5,931,378,372,972,381,000 | 37.518969 | 86 | 0.535968 | false |
murgatroid99/grpc | examples/python/interceptors/headers/request_header_validator_interceptor.py | 31 | 1367 | # Copyright 2017 gRPC 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 applicable law or agreed to in writing... | apache-2.0 | -8,946,344,566,878,640,000 | 34.051282 | 74 | 0.713972 | false |
yamt/tempest | tempest/manager.py | 26 | 2954 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -8,378,585,448,096,561,000 | 35.469136 | 79 | 0.691943 | false |
nzavagli/UnrealPy | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/setuptools-18.0.1/setuptools/tests/test_easy_install.py | 4 | 18326 | # -*- coding: utf-8 -*-
"""Easy install Tests
"""
from __future__ import absolute_import
import sys
import os
import shutil
import tempfile
import site
import contextlib
import tarfile
import logging
import itertools
import distutils.errors
import pytest
try:
from unittest import mock
except ImportError:
imp... | mit | -9,212,505,359,655,412,000 | 33.838403 | 81 | 0.595034 | false |
abought/osf.io | website/addons/wiki/exceptions.py | 52 | 1131 | from modularodm.exceptions import ValidationValueError
from website.addons.base.exceptions import AddonError
class WikiError(AddonError):
"""Base exception class for Wiki-related error."""
pass
class NameEmptyError(WikiError, ValidationValueError):
"""Raised if user tries to provide an empty name value.""... | apache-2.0 | 4,334,161,692,173,843,500 | 32.264706 | 91 | 0.744474 | false |
vrenaville/OCB | addons/stock_dropshipping/wizard/stock_invoice_onshipping.py | 51 | 2115 | # -*- 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 | 737,003,885,162,441,600 | 45 | 156 | 0.617494 | false |
signed/intellij-community | python/lib/Lib/macpath.py | 87 | 7601 | """Pathname and path-related operations for the Macintosh."""
import os
from stat import *
__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime",
"getatime","getctime", "islink","exists","lexists","isdir","isfile",
... | apache-2.0 | -5,045,158,837,762,441,000 | 26.64 | 79 | 0.606894 | false |
sudosurootdev/external_chromium_org | chrome/test/mini_installer/registry_verifier.py | 36 | 5088 | # 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 _winreg
import verifier
class RegistryVerifier(verifier.Verifier):
"""Verifies that the current registry matches the specified criteria."""
de... | bsd-3-clause | 8,514,625,203,959,660,000 | 44.428571 | 80 | 0.614976 | false |
tensorflow/probability | tensorflow_probability/python/distributions/blockwise_test.py | 1 | 17698 | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | apache-2.0 | -4,623,960,480,556,205,000 | 34.396 | 89 | 0.588259 | false |
wenderen/servo | tests/wpt/css-tests/tools/manifest/utils.py | 113 | 1370 | import os
import urlparse
from StringIO import StringIO
blacklist = ["/", "/tools/", "/resources/", "/common/", "/conformance-checkers/", "_certs"]
def rel_path_to_url(rel_path, url_base="/"):
assert not os.path.isabs(rel_path)
if url_base[0] != "/":
url_base = "/" + url_base
if url_base[-1] != "/... | mpl-2.0 | -1,349,232,502,673,512,200 | 26.4 | 91 | 0.549635 | false |
mcsalgado/ansible | lib/ansible/cli/playbook.py | 71 | 7832 | #!/usr/bin/env python
# (c) 2012, 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
# (... | gpl-3.0 | 1,186,710,370,023,690,500 | 41.565217 | 188 | 0.581716 | false |
kracekumar/crawlit | crawlit/crawlit.py | 1 | 8527 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import reppy.cache
import tldextract
import requests
from BeautifulSoup import BeautifulSoup
from time import sleep
import datetime
import platform
import sys
import os
import logging
import json
import Queue
from urlparse import urlparse
#http://stackoverflow.com/quest... | bsd-3-clause | 9,049,140,762,337,953,000 | 30.120438 | 146 | 0.579923 | false |
pougounias/codecombat | scripts/analytics/mixpanelLevelRates.py | 97 | 6288 | # Calculate level completion rates via mixpanel export API
# TODO: why are our 'time' fields in PST time?
targetLevels = ['dungeons-of-kithgard', 'the-raised-sword', 'endangered-burl']
eventFunnel = ['Started Level', 'Saw Victory']
import sys
from datetime import datetime, timedelta
from mixpanel import Mixpanel
t... | mit | 8,708,836,433,301,927,000 | 38.797468 | 124 | 0.517335 | 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.