repo_name
stringlengths
7
65
path
stringlengths
5
186
copies
stringlengths
1
4
size
stringlengths
4
6
content
stringlengths
941
973k
license
stringclasses
14 values
hash
stringlengths
32
32
line_mean
float64
5
100
line_max
int64
26
999
alpha_frac
float64
0.25
0.93
ratio
float64
1.5
7.35
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
modoboa/modoboa
modoboa/relaydomains/migrations/0001_initial.py
2
1802
from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('admin', '0002_migrate_from_modoboa_admin'), ] operations = [ migrations.CreateModel( name='RelayDomain', fields=[ ('id', models.AutoField(verbose_nam...
isc
1475f135fef240d15e3f20bb8584c1dc
40.906977
148
0.563818
4.482587
false
false
false
false
modoboa/modoboa
modoboa/core/password_validation.py
2
2460
"""Custom password validators.""" from django.core.exceptions import ValidationError from django.utils.translation import ugettext as _, ungettext class ComplexityValidator(object): """Check password contains at least a few things.""" def __init__(self, upper=1, lower=1, digits=1, specials=1): self....
isc
82523ecb83f71486490acebe91cbf1da
36.272727
76
0.520732
5.234043
false
false
false
false
modoboa/modoboa
modoboa/core/extensions.py
2
4054
"""Extension management.""" from django.conf import settings from django.conf.urls import include, url from django.utils.encoding import smart_str class ModoExtension(object): """ Base extension class. Each Modoboa extension must inherit from this class to be considered as valid. """ name =...
isc
f06e9baef117c5eb285b86b1e069b049
29.481203
78
0.572768
4.494457
false
false
false
false
modoboa/modoboa
modoboa/admin/forms/alias.py
2
5448
"""Forms related to aliases management.""" from collections import OrderedDict from django import forms from django.http import QueryDict from django.utils.translation import ugettext as _, ugettext_lazy from modoboa.core import signals as core_signals from modoboa.lib import exceptions as lib_exceptions, fields as ...
isc
6ac7b3098053858749bd386ffb761aea
39.962406
79
0.590125
4.327244
false
false
false
false
modoboa/modoboa
modoboa/core/commands/deploy.py
2
10463
"""A shortcut to deploy a fresh modoboa instance.""" import getpass import os from os.path import isfile import shutil import subprocess import sys import dj_database_url import django from django.core import management from django.template import Context, Template from django.utils.encoding import smart_str from m...
isc
029675f3b68bf0953530c496cbb35b8b
36.102837
79
0.541336
4.248071
false
false
false
false
modoboa/modoboa
modoboa/maillog/management/commands/update_statistics.py
3
3305
"""Management command to update various statistics.""" import os from dateutil.relativedelta import relativedelta import rrdtool from django.core.management.base import BaseCommand from django.utils import timezone from modoboa.core import models as core_models from modoboa.parameters import tools as param_tools ...
isc
578e9faec17105a1d98549785e673687
38.345238
79
0.55885
3.883666
false
false
false
false
modoboa/modoboa
modoboa/parameters/forms.py
2
3677
"""Parameters forms.""" from django import forms from modoboa.lib import db_utils, form_utils class GenericParametersForm(forms.Form): """Base class for parameter forms. Each extension has the possibility to define global parameters. """ app = None visibility_rules = None def __init__(self...
isc
00ada93e1bb6ee204b103d761917ac51
30.973913
72
0.601577
4.265661
false
true
false
false
modoboa/modoboa
modoboa/urls.py
2
3428
from functools import reduce from ckeditor_uploader import views as cku_views from django.conf import settings from django.contrib.auth import views as auth_views from django.contrib.auth.decorators import login_required from django.urls import include, path from django.views.i18n import JavaScriptCatalog from drf_s...
isc
740e9a191283e39d6ee34360e5a06359
36.26087
84
0.684364
3.354207
false
false
false
false
modoboa/modoboa
modoboa/admin/models/mxrecord.py
2
2908
"""MX records storage.""" import datetime from django.db import models from django.utils import timezone from modoboa.parameters import tools as param_tools class MXRecordQuerySet(models.QuerySet): """Custom manager for MXRecord.""" def has_valids(self): """Return managed results.""" if pa...
isc
add10ccd46e956580d70519acd06c4a7
29.93617
78
0.63033
3.978112
false
false
false
false
modoboa/modoboa
modoboa/core/views/user.py
2
5143
"""Simple user views.""" import io import qrcode import qrcode.image.svg from django.shortcuts import render from django.template.loader import render_to_string from django.utils import translation from django.utils.encoding import force_text from django.utils.translation import ugettext as _ from django.contrib.au...
isc
65dd88d212579b36e58ce482ea0af2cb
34.226027
75
0.619288
4.005452
false
false
false
false
modoboa/modoboa
modoboa/policyd/tests.py
2
7865
"""Policy daemon related tests.""" import asyncio # from mock import patch from asynctest import patch from multiprocessing import Process import socket import time import redis from django import db from django.conf import settings from django.core.management import call_command from django.test import TransactionT...
isc
51109f86e01880189f517449e609520d
29.019084
79
0.620089
3.689024
false
true
false
false
modoboa/modoboa
modoboa/admin/forms/account.py
2
24364
"""Forms related to accounts management.""" from collections import OrderedDict from functools import reduce from django import forms from django.conf import settings from django.contrib.auth import password_validation from django.http import QueryDict from django.urls import reverse from django.utils.translation imp...
isc
59bc4d2e39bf75ff785089f955e8b205
37.128326
79
0.567518
4.284157
false
false
false
false
csirtgadgets/bearded-avenger
cif/hunter/spamhaus_fqdn.py
1
3164
import logging from csirtg_indicator import Indicator from pprint import pprint from cif.utils import resolve_ns import arrow CONFIDENCE = 9 PROVIDER = 'spamhaus.org' CODES = { '127.0.1.2': { 'tags': 'suspicious', 'description': 'spammed domain', }, '127.0.1.3': { 'tags': 'suspici...
mpl-2.0
072b2d30661afd840e19b9b69d076527
28.027523
102
0.484513
3.640967
false
false
false
false
csirtgadgets/bearded-avenger
cif/gatherer/asn.py
1
3020
import logging import os import re from cif.utils import resolve_ns from cif.utils.asn_client import ASNClient ASN_FAST = os.environ.get('CIF_GATHERER_ASN_FAST') ENABLE_PEERS = os.environ.get('CIF_GATHERERS_PEERS_ENABLED') class Asn(object): def __init__(self, *args, **kwargs): self.logger = logging.ge...
mpl-2.0
8173dd612da89909fae9f60dd201a242
28.617647
97
0.513245
3.714637
false
false
false
false
csirtgadgets/bearded-avenger
cif/store/token_plugin.py
1
2652
import arrow from cif.constants import TOKEN_CACHE_DELAY, TOKEN_LENGTH from cifsdk.exceptions import AuthError import os import binascii import abc class TokenManagerPlugin(object): __metaclass__ = abc.ABCMeta def __init__(self, *args, **kwargs): self._cache = {} self._cache_check_next = arro...
mpl-2.0
7e63fe4d8fbac7a85c3475f3be42ed75
26.061224
87
0.60181
3.877193
false
false
false
false
csirtgadgets/bearded-avenger
cif/hunter/fqdn_cname.py
1
1717
import logging from cif.utils import resolve_ns from csirtg_indicator import Indicator from dns.resolver import Timeout from csirtg_indicator import resolve_itype from csirtg_indicator.exceptions import InvalidIndicator import arrow class FqdnCname(object): def __init__(self): self.logger = logging.getLog...
mpl-2.0
61ef2a8f415ff2f41310c89366eeba28
29.122807
89
0.545719
4.049528
false
false
false
false
csirtgadgets/bearded-avenger
cif/store/sqlite/__init__.py
1
2970
import logging import os from sqlalchemy import create_engine, event from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.engine import Engine import sqlite3 from cifsdk.constants import RUNTIME_PATH from cif.store.plugin import Store from cif...
mpl-2.0
bc3b4e42c0b2b55c6af2b35c59cf3493
29.618557
103
0.703704
3.441483
false
false
false
false
cdr-stats/cdr-stats
cdr_stats/cdr_alert/templatetags/cdr_alert_tags.py
3
2035
# # CDR-Stats License # http://www.cdr-stats.org # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (C) 2011-2015 Star2Billing S.L. # # The Initial Develope...
mpl-2.0
b51f9b8288ea8a473c1f71f7f1fbd600
26.876712
100
0.69484
3.256
false
false
false
false
cdr-stats/cdr-stats
cdr_stats/cdr_alert/tasks.py
1
19322
# -*- coding: utf-8 -*- # # CDR-Stats License # http://www.cdr-stats.org # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (C) 2011-2015 Star2Billing S.L....
mpl-2.0
753109355bc73c4ef4283f1aac9c193c
40.552688
112
0.621985
3.64566
false
false
false
false
cdr-stats/cdr-stats
cdr_stats/cdr_stats/settings.py
1
16083
# # CDR-Stats License # http://www.cdr-stats.org # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (C) 2011-2015 Star2Billing S.L. # # The Initial Develope...
mpl-2.0
01ce8ea1fdbff9f8b1664b8cc12e2865
28.188748
105
0.675061
3.31882
false
false
false
false
cdr-stats/cdr-stats
cdr_stats/cdr_alert/admin.py
2
6696
# # CDR-Stats License # http://www.cdr-stats.org # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (C) 2011-2015 Star2Billing S.L. # # The Initial Develope...
mpl-2.0
6ddfbf52a7c32690ff68c38322869a4a
34.428571
111
0.596326
4.259542
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/encodings/infrastructure.py
1
1487
from bitmovin.errors import InvalidTypeError from bitmovin.resources.enums import CloudRegion from bitmovin.utils import Serializable class Infrastructure(Serializable): def __init__(self, infrastructure_id, cloud_region): super().__init__() self.infrastructureId = infrastructure_id self....
unlicense
a5df27a686ba02f46c9dd8d0c755da9a
32.795455
111
0.6577
4.438806
false
false
false
false
bitmovin/bitmovin-python
examples/encoding/live/start_live_encoding_dash_manifest.py
1
16765
import time, sys, uuid from bitmovin import Bitmovin, Encoding, S3Output, H264CodecConfiguration, \ AACCodecConfiguration, H264Profile, StreamInput, SelectionMode, Stream, EncodingOutput, ACLEntry, ACLPermission, \ FMP4Muxing, MuxingStream, CloudRegion, DashManifest, VideoAdaptationSet, AudioAdaptationSet, Peri...
unlicense
5d7beef41a2dbe7aab4730a15eb10eec
58.875
120
0.496451
4.753331
false
true
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/infrastructures/kubernetes_infrastructure.py
1
1349
from bitmovin.utils import Serializable from . import AbstractInfrastructure class KubernetesInfrastructure(AbstractInfrastructure, Serializable): def __init__(self, name, description=None, online=None, connected=None, agent_deployment_download_url=None, id_=None, custom_data=None): super().__init__(id_=...
unlicense
f72cf60be6e3f070b3665ab736674cc0
43.966667
142
0.647887
4.66782
false
false
false
false
bitmovin/bitmovin-python
bitmovin/services/manifests/generic_media_service.py
1
2056
from bitmovin.errors import MissingArgumentError, FunctionalityNotAvailableError from bitmovin.services.manifests.media_custom_tag_service import MediaCustomTag from bitmovin.services.rest_service import RestService class GenericMediaService(RestService): BASE_ENDPOINT_URL = 'encoding/manifests/hls/{manifest_id}/...
unlicense
08f40c329e5d2884d13de799c0d69675
45.727273
114
0.692121
3.821561
false
false
false
false
bitmovin/bitmovin-python
bitmovin/services/encodings/encoding_control_service.py
1
6915
import time import json from bitmovin.bitmovin_object import BitmovinObject from bitmovin.errors import BitmovinApiError, InvalidStatusError from bitmovin.resources.models.encodings.start import StartEncodingRequest from bitmovin.rest import BitmovinHttpClient from bitmovin.resources import ResourceResponse, Status, En...
unlicense
388fcf8b1aab3ead7bd7b134601b835f
52.604651
117
0.688214
4.140719
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/encodings/id3/raw_id3_tag.py
1
1041
from .id3_tag import ID3Tag class RawID3Tag(ID3Tag): def __init__(self, position_mode, bytes_, time=None, frame=None, id_=None, custom_data=None, name=None, description=None): super().__init__(id_=id_, custom_data=custom_data, name=name, description=description, position_mode=po...
unlicense
4bbdc2288db9f812236ed54afef668dd
34.896552
126
0.619597
3.493289
false
false
false
false
bitmovin/bitmovin-python
tests/bitmovin/services/manifests/dash/period_tests.py
1
4900
import unittest import uuid from bitmovin import Bitmovin, DashManifest, ACLEntry, ACLPermission, EncodingOutput, Period, CustomXMLElement from tests.bitmovin import BitmovinTestCase class PeriodTests(BitmovinTestCase): @classmethod def setUpClass(cls): super().setUpClass() @classmethod def ...
unlicense
f87e1eed2c43b33468ba4bbb860c94d3
44.794393
116
0.697755
4.145516
false
true
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/encodings/muxings/progressive_webm_muxing.py
1
1688
from .muxing import Muxing class ProgressiveWebMMuxing(Muxing): def __init__(self, streams, filename, outputs=None, id_=None, custom_data=None, name=None, description=None, ignored_by=None, stream_conditions_mode=None, internal_chunk_length=None): super().__init__(id_=id_, custom_data=cu...
unlicense
c3035cc02b133e373db96056796295c8
55.266667
120
0.499408
5.146341
false
false
false
false
bitmovin/bitmovin-python
tests/bitmovin/services/outputs/akamai_netstorage_output_service_tests.py
1
6559
import unittest import json from bitmovin import Bitmovin, Response, AkamaiNetStorageOutput from bitmovin.errors import BitmovinApiError from tests.bitmovin import BitmovinTestCase class AkamaiNetStorageOutputTests(BitmovinTestCase): @classmethod def setUpClass(cls): super().setUpClass() @classm...
unlicense
8a337aa8a24c7f25de72d65e90fd397e
47.227941
120
0.717792
3.897207
false
true
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/manifests/hls/hls_manifest.py
1
3325
from ..abstract_manifest import AbstractManifest from bitmovin.resources.enums.hls_version import HlsVersion class HlsManifest(AbstractManifest): def __init__(self, manifest_name, outputs, name=None, description=None, id_=None, custom_data=None, hls_media_playlist_version=None, hls_master_playli...
unlicense
bbc9f9cb434894ef96437c0cd113593d
45.830986
104
0.691128
4.369251
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/encodings/muxings/information/muxing_information_video_track.py
1
1927
from bitmovin.resources import Resource class MuxingInformationVideoTrack(Resource): def __init__(self, index, codec, codec_iso, bitrate, pixel_format, frame_mode, frame_width, frame_height, frame_rate, start_time, duration, number_of_frames): super().__init__() self.index = ind...
unlicense
a4063ce0196fb70fbb291a87ee19b1a5
36.057692
109
0.609237
3.932653
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/encodings/muxings/information/progressive_ts_information.py
1
4987
from bitmovin.resources import Resource from bitmovin.resources.models.encodings.muxings.information import ByteRange from bitmovin.errors import InvalidTypeError from bitmovin.utils.serialization import Serializable from .muxing_information_video_track import MuxingInformationVideoTrack from .muxing_information_audio...
unlicense
0bad71d3ebfe8b18162edeb989f31a0e
39.544715
116
0.594947
4.533636
false
false
false
false
bitmovin/bitmovin-python
tests/bitmovin/services/encodings/id3/raw_id3_tag_tests.py
1
14423
import unittest import base64 import uuid import json from bitmovin import Bitmovin, Response, Stream, StreamInput, EncodingOutput, ACLEntry, Encoding, \ ProgressiveTSMuxing, MuxingStream, SelectionMode, ACLPermission, RawID3Tag, ID3TagPositionMode from bitmovin.errors import BitmovinApiError from tests.bitmovin im...
unlicense
f83c556b7ee3964408f3b66a8046ca9f
44.498423
120
0.650627
3.611167
false
true
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/manifests/hls/subtitles_media.py
1
2490
from .abstract_standard_media import AbstractStandardMedia class SubtitlesMedia(AbstractStandardMedia): def __init__(self, name, group_id, segment_path, encoding_id, stream_id, muxing_id, drm_id=None, start_segment_number=None, end_segment_number=None, language=None, assoc_language=None, ...
unlicense
a00495e1b13553df1ed1ece7a2a35af5
53.130435
118
0.593976
4.156928
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/inputs/analysis/stream_analysis_details.py
1
2298
from bitmovin.errors import InvalidTypeError from bitmovin.resources import Resource from .analysis_audio_stream import AnalysisAudioStream from .analysis_video_stream import AnalysisVideoStream class StreamAnalysisDetails(Resource): def __init__(self, audio_streams, video_streams): super().__init__() ...
unlicense
4de0b730ea8d28cddc3ea6428819b147
34.90625
100
0.658834
4.427746
false
false
false
false
openaddresses/machine
openaddr/render.py
1
20392
from __future__ import division import logging; _L = logging.getLogger('openaddr.render') from glob import glob from unicodedata import normalize from collections import defaultdict from argparse import ArgumentParser from itertools import combinations, chain from os.path import join, dirname, splitext, relpath from u...
isc
078db0ceaa00a22aff0f9b4b19b5ddfc
38.215385
118
0.640643
3.412887
false
false
false
false
mozilla/telemetry-analysis-service
atmo/stats/models.py
1
1424
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. from django.contrib.postgres.fields import JSONField from django.core.serializers.json import DjangoJSONEncoder from djan...
mpl-2.0
d82ba830fd87d63a21ebc07a0fdcd47f
32.116279
84
0.653792
4.011268
false
false
false
false
mozilla/telemetry-analysis-service
atmo/stats/migrations/0001_initial.py
1
1932
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-19 21:23 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb import django.core.serializers.json from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = ...
mpl-2.0
5e0a353e917041023a2bfc54d1978119
29.1875
79
0.389234
5.908257
false
false
false
false
mozilla/telemetry-analysis-service
atmo/jobs/forms.py
1
8374
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. from django import forms from django.conf import settings from django.core.urlresolvers import reverse from django.utils ...
mpl-2.0
264831251bbd19d32edca31e6780e681
33.460905
90
0.595295
4.164097
false
false
false
false
mozilla/telemetry-analysis-service
atmo/clusters/factories.py
1
1368
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. import factory from . import models from .. import names from ..keys.factories import SSHKeyFactory from ..users.factori...
mpl-2.0
bbddd3142689e3d7b62d64fc42d3a7b8
31.571429
70
0.693713
3.677419
false
false
false
false
mozilla/telemetry-analysis-service
atmo/clusters/migrations/0022_convert_cluster_emr_release.py
1
1388
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2017-03-21 12:36 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion CURRENT_EMR_RELEASES = ("5.2.1", "5.0.0") def convert_emr_releases(apps, schema_editor): EMRRelease = apps.get_model("cluster...
mpl-2.0
019f9a5f860706e04073cc266aa035c5
32.853659
121
0.651297
3.513924
false
false
false
false
mozilla/telemetry-analysis-service
tests/test_dashboard.py
1
5265
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. import pytest from django.contrib.auth.models import Group from django.core.urlresolvers import reverse from django.templ...
mpl-2.0
a27da994a9eb3c8d5e607d6601376c30
35.5625
83
0.683761
3.766094
false
true
false
false
mozilla/telemetry-analysis-service
atmo/clusters/admin.py
1
1507
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. from django.contrib import admin from guardian.admin import GuardedModelAdmin from .models import Cluster, EMRRelease ...
mpl-2.0
d6a831a61c9860b8ef64012c74c193e7
24.982759
69
0.588587
3.748756
false
false
false
false
mozilla/telemetry-analysis-service
atmo/jobs/migrations/0019_convert_spark_job_emr_release.py
1
1406
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2017-03-21 12:15 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion CURRENT_EMR_RELEASES = ("5.2.1", "5.0.0") def convert_emr_releases(apps, schema_editor): EMRRelease = apps.get_model("cluster...
mpl-2.0
d65d3772cb21df64791208df2056fc8a
33.292683
121
0.647937
3.331754
false
false
false
false
mozilla/telemetry-analysis-service
atmo/keys/models.py
1
1843
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. from autorepr import autorepr, autostr from django.db import models from ..models import CreatedByModel, EditedAtModel, ...
mpl-2.0
1562c53c6d087c4a720083e4b666fa06
29.716667
71
0.630494
3.627953
false
false
false
false
mozilla/build-relengapi
relengapi/blueprints/archiver/test_tasks.py
3
3419
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import mock import moto from relengapi.blueprints.archiver.tasks import create_a...
mpl-2.0
a433c60fdb96a7306de202b6574a5927
42.833333
98
0.626206
3.425852
false
true
false
false
mozilla/build-relengapi
relengapi/blueprints/tokenauth/tables.py
1
1727
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import sqlalchemy as sa from relengapi.blueprints.tokenauth import types from r...
mpl-2.0
3b25e5a0f9b9e8e4ba8a188778ad7d57
38.25
86
0.651998
3.961009
false
false
false
false
mozilla/build-relengapi
relengapi/blueprints/auth/__init__.py
3
1039
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import from flask import Blueprint from flask import url_for from flask.ext.login impor...
mpl-2.0
d407e36bb64229f7bb23d852815d8935
30.484848
71
0.693936
3.876866
false
false
false
false
mozilla/build-relengapi
relengapi/blueprints/clobberer/models.py
1
2147
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import time import sqlalchemy as sa from relengapi.lib import db DB_DECLARATI...
mpl-2.0
9bc1cf4bc06452a30b65a9894eb1ac50
27.25
82
0.62599
3.48539
false
false
false
false
mozilla/build-relengapi
relengapi/lib/layout.py
3
1235
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import from flask import current_app from flask import request class Layout(object): ...
mpl-2.0
cf97395b48588729a6d8e684a4b21da6
29.121951
92
0.587854
4.04918
false
false
false
false
mozilla/build-relengapi
relengapi/blueprints/archiver/test_archiver.py
1
18001
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import datetime import json import mock import moto import pytz from nose.tools ...
mpl-2.0
d7ed4161cb160fefcf345d6e0d447935
49.282123
100
0.662352
3.513761
false
true
false
false
mozilla/build-relengapi
relengapi/blueprints/badpenny/tables.py
1
3226
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import sqlalchemy as sa from relengapi.blueprints.badpenny import rest from rel...
mpl-2.0
a74bf0dba0a21700631ba0192e9f0823
34.065217
81
0.623683
3.632883
false
false
false
false
mozilla/build-relengapi
relengapi/blueprints/tooltool/test_tooltool.py
1
32380
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import datetime import hashlib import json import time import urlparse from cont...
mpl-2.0
7804d636dd6ed87aff0ce1068d986631
33.410202
97
0.607937
3.336768
false
true
false
false
mozilla/build-relengapi
relengapi/blueprints/tokenauth/test_loader.py
3
5885
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import mock from flask import json from nose.tools import eq_ from relengapi.bl...
mpl-2.0
fd520eb2e786903d1448d634dc8834a7
33.215116
87
0.639082
3.362857
false
true
false
false
librosa/librosa
tests/test_display.py
1
31834
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-02-14 22:51:01 by Brian McFee <brian.mcfee@nyu.edu> """Unit tests for display module""" # Disable cache import os try: os.environ.pop("LIBROSA_CACHE_DIR") except KeyError: pass from packaging import version import pytest matplotlib = pytest.im...
isc
530464e165d3bafe0a9278bcb80c6491
29.260456
101
0.658792
2.741238
false
true
false
false
librosa/librosa
librosa/segment.py
2
38286
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Temporal segmentation ===================== Recurrence and self-similarity ------------------------------ .. autosummary:: :toctree: generated/ cross_similarity recurrence_matrix recurrence_to_lag lag_to_recurrence timelag_filter path_enhan...
isc
76a39494bdde0b6c5c0e5b09bc1c6976
32.819788
115
0.605841
3.609315
false
false
false
false
librosa/librosa
librosa/util/decorators.py
1
2476
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-02-15 10:06:03 by Brian McFee <brian.mcfee@nyu.edu> """Helpful tools for deprecation""" import warnings import functools from decorator import decorator import numpy as np __all__ = ["moved", "deprecated", "vectorize"] def moved(*, moved_from, version,...
isc
55d01b2a3ba968aa615f0ed438a96d86
30.74359
117
0.595315
4.039152
false
false
false
false
cmusatyalab/opendiamond
opendiamond/blaster/search.py
1
10762
# # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2011-2012 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, REPRODUCTION OR DISTRIBUTION OF T...
epl-1.0
a71f0b30dee1b54a70675046c2b13962
32.216049
77
0.585114
4.232009
false
false
false
false
cmusatyalab/opendiamond
opendiamond/dataretriever/gigapan_store.py
1
5792
from __future__ import division # # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2009-2018 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, R...
epl-1.0
5b9679a42026faf8710db38e9b731d27
32.097143
87
0.624309
3.198233
false
false
false
false
cmusatyalab/opendiamond
opendiamond/protocol.py
1
3805
# # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2011-2012 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, REPRODUCTION OR DISTRIBUTION OF T...
epl-1.0
0a7d69f63239505ba0eabee2653a8029
22.20122
78
0.61866
3.302951
false
false
false
false
cmusatyalab/opendiamond
opendiamond/scopeserver/cocktail/views.py
1
4110
# # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2018-2019 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, REPRODUCTION OR DISTRIBUTION OF T...
epl-1.0
a0728d7f0d75c6ec4b25cf545514da8a
37.773585
102
0.596837
4.077381
false
false
false
false
cmusatyalab/opendiamond
opendiamond/server/scopelist.py
1
5842
# # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2011-2019 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, REPRODUCTION OR DISTRIBUTION OF T...
epl-1.0
83f2fd858f8bd96894e39423f029ebf6
34.406061
86
0.570181
4.435839
false
false
false
false
cmusatyalab/opendiamond
opendiamond/config.py
1
10699
# # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2011-2019 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, REPRODUCTION OR DISTRIBUTION OF T...
epl-1.0
1754e618f326479ce217a2121e654540
39.071161
102
0.551173
4.349187
false
true
false
false
cmusatyalab/opendiamond
opendiamond/blaster/json.py
1
15510
from __future__ import print_function # # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2011-2012 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY ...
epl-1.0
89a7665d42a7cae3e8bcf8e88c8479b2
31.045455
78
0.422373
5.430672
false
false
false
false
cmusatyalab/opendiamond
opendiamond/scopeserver/gatekeeper/forms.py
1
1246
# # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2009 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS S...
epl-1.0
b607c1326c44f3660bcf98b9a01e9166
30.15
71
0.707063
4.006431
false
false
false
false
cmusatyalab/opendiamond
opendiamond/dataretriever/video_store.py
1
5539
# # The OpenDiamond Platform for Interactive Search # # Copyright (c) 2018 Carnegie Mellon University # All rights reserved. # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS S...
epl-1.0
adb4a7e98df69ffb6e4adc6bdf0d7a73
32.77439
126
0.610399
3.651285
false
false
false
false
eregs/regulations-site
regulations/tests/notices_tests.py
4
5767
from unittest import TestCase from regulations.generator import notices class NoticesTest(TestCase): def test_find_label_in_sxs_found(self): sxs_list = [ {'label': '204-1', 'children': []}, {'label': '204-2', 'children': [{ 'label': '204-2-a', 'chil...
cc0-1.0
eaef372c847c956aa9b4a3e28b30d1e2
37.966216
77
0.481013
3.276705
false
true
false
false
eregs/regulations-site
regulations/tests/views_sidebar_tests.py
4
1815
import re from unittest import TestCase from mock import patch from django.test.client import Client from regulations.generator import node_types class ViewsSideBarViewTest(TestCase): """Integration tests for the sidebar""" @patch('regulations.views.sidebar.api_reader') def test_get(self, api_reader): ...
cc0-1.0
ed01d20de95239d927a270fa44446d43
36.8125
78
0.522314
3.411654
false
true
false
false
eregs/regulations-site
regulations/views/universal_landing.py
2
1793
from datetime import datetime from django.http import HttpResponse from django.template.loader import select_template from regulations.views import utils from regulations.generator import versions def filter_future_amendments(versions): """ Take a list of amendments, and only return a list of those that are in ...
cc0-1.0
47c9705ca01df528bdc3e76adaab2cae
31.017857
78
0.661461
3.607646
false
false
false
false
eregs/regulations-site
regulations/tests/layers_appliers_test.py
2
6696
from unittest import TestCase from regulations.generator.layers import layers_applier from regulations.generator.layers import location_replace class LayersApplierTest(TestCase): def test_enqueue(self): applier = layers_applier.LayersApplier() element = ('abcd', 'ABCD', []) applier.enqueu...
cc0-1.0
e2a6a7f85dd6bac51413bab59d272306
39.337349
78
0.574373
3.617504
false
true
false
false
eregs/regulations-site
regulations/generator/section_url.py
2
3577
from itertools import takewhile from django.core.urlresolvers import reverse, NoReverseMatch from regulations.generator.node_types import to_markup_id from regulations.generator.toc import fetch_toc class SectionUrl(object): """With few exceptions, users are expected to browse the regulation by traversing r...
cc0-1.0
a858b6450a8a5c0cdc135c20af676d00
41.583333
78
0.574224
4.159302
false
false
false
false
eregs/regulations-site
regulations/views/navigation.py
3
1258
from regulations.generator.section_url import SectionUrl from regulations.generator.toc import fetch_toc def get_labels(current): return current.split('-') def _add_extra(el, version): """Add extra fields to a TOC element -- only added to elements we will use for prev/next""" if el.get('is_section_s...
cc0-1.0
e26b3e12c60f351cf4ec763a34d8941b
31.25641
74
0.59062
3.710914
false
false
false
false
odlgroup/odl
odl/contrib/tensorflow/space.py
3
4740
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Utilities for converting ODL spaces to te...
mpl-2.0
fb31c477396f8c80a534f110b50e75d5
33.59854
79
0.524262
4.006762
false
false
false
false
odlgroup/odl
odl/solvers/nonsmooth/proximal_operators.py
1
63340
# Copyright 2014-2019 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Factory functions for creating proximal o...
mpl-2.0
d229e8274669a016720e13340f8f6a20
30.654173
79
0.567446
3.816352
false
false
false
false
odlgroup/odl
examples/solvers/proximal_lang_tomography.py
3
2158
"""Tomography with TV regularization using the ProxImaL solver. Solves the optimization problem min_{0 <= x <= 1} ||A(x) - g||_2^2 + 0.2 || |grad(x)| ||_1 Where ``A`` is a parallel beam forward projector, ``grad`` the spatial gradient and ``g`` is given noisy data. """ import numpy as np import odl import prox...
mpl-2.0
9f1e16e92fa9ef5e87b2e8ef7ae00932
33.253968
79
0.721038
3.056657
false
false
false
false
odlgroup/odl
examples/solvers/lbfgs_tomography_tv.py
2
2971
"""Tomography using the `bfgs_method` solver. Solves an approximation of the optimization problem min_x ||A(x) - g||_2^2 + lam || |grad(x)| ||_1 Where ``A`` is a parallel beam forward projector, ``grad`` the spatial gradient and ``g`` is given noisy data. The problem is approximated by applying the Moreau envel...
mpl-2.0
3bc74e17d5810c4f636de16f6b937cab
32.382022
79
0.732413
3.167377
false
false
true
false
odlgroup/odl
odl/contrib/torch/operator.py
2
18803
# Copyright 2014-2019 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Utilities for converting ODL operators to...
mpl-2.0
71a87bb37becb4ad4f42990c416f0fd7
34.883588
78
0.565548
3.858609
false
false
false
false
odlgroup/odl
odl/discr/discr_space.py
2
70375
# Copyright 2014-2020 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Lebesgue L^p type discretizations of func...
mpl-2.0
7da25a1965ffae8531f865d523ef937e
35.201132
79
0.53924
4.10829
false
false
false
false
odlgroup/odl
odl/solvers/nonsmooth/alternating_dual_updates.py
2
9693
# Copyright 2014-2019 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Alternating dual (AD) update algorithm st...
mpl-2.0
3d3904c76dbfb21e057af920b6762581
40.780172
79
0.606314
3.603346
false
false
false
false
odlgroup/odl
odl/contrib/pyshearlab/pyshearlab_operator.py
2
5177
# Copyright 2014-2020 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """ODL integration with pyshearlab.""" fro...
mpl-2.0
090cf7ac18003c182c5bbedfd26ee1ab
25.548718
79
0.600734
3.88081
false
false
false
false
odlgroup/odl
odl/util/numerics.py
2
36360
# Copyright 2014-2020 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Numerical helper functions for convenienc...
mpl-2.0
fa0d4ae33886f47d9f7ff6bd225acc14
36.561983
79
0.558498
3.624402
false
false
false
false
odlgroup/odl
odl/test/test_doc.py
2
2168
# Copyright 2014-2020 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Run all doctests in the online documentat...
mpl-2.0
1deaf26f19fe3d8323c19ef93e669f89
29.535211
79
0.689576
3.559934
false
true
false
false
odlgroup/odl
odl/trafos/fourier.py
2
62350
# Copyright 2014-2020 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Discretized Fourier transform on L^p spac...
mpl-2.0
383932aaa612dac0a633f1f737a39fd0
36.515042
79
0.572045
4.238325
false
false
false
false
odlgroup/odl
odl/contrib/tensorflow/layer.py
3
15213
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Utilities for converting ODL operators to...
mpl-2.0
72eccb0dcaea27723b2b50e88a712b5a
37.12782
79
0.483271
4.522295
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/downloader/external.py
15
13892
from __future__ import unicode_literals import os.path import re import subprocess import sys import time from .common import FileDownloader from ..compat import ( compat_setenv, compat_str, ) from ..postprocessor.ffmpeg import FFmpegPostProcessor, EXT_TO_OUT_FORMATS from ..utils import ( cli_option, ...
unlicense
22868f6b0929ff6a646b70bc21d4d4e8
36.444744
201
0.559315
3.830163
false
false
false
false
rbrito/pkg-youtube-dl
devscripts/fish-completion.py
36
1614
#!/usr/bin/env python from __future__ import unicode_literals import optparse import os from os.path import dirname as dirn import sys sys.path.insert(0, dirn(dirn((os.path.abspath(__file__))))) import youtube_dl from youtube_dl.utils import shell_quote FISH_COMPLETION_FILE = 'youtube-dl.fish' FISH_COMPLETION_TEMPLA...
unlicense
24064ecdc34c5ab11ec90e537e15f160
31.938776
96
0.637546
3.618834
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/soundcloud.py
7
30076
# coding: utf-8 from __future__ import unicode_literals import itertools import re from .common import ( InfoExtractor, SearchInfoExtractor ) from ..compat import ( compat_HTTPError, compat_kwargs, compat_str, compat_urlparse, ) from ..utils import ( error_to_compat_str, ExtractorError...
unlicense
7b2f6732b06f016a2fc530aed78b08d9
35.888344
195
0.490121
3.745359
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/teletask.py
215
1739
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import unified_strdate class TeleTaskIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?tele-task\.de/archive/video/html5/(?P<id>[0-9]+)' _TEST = { 'url': 'http://www.tele-task.de/archive/video/html5/2...
unlicense
73eea2ed487e48d6e8c1f7533b72b8dc
31.811321
87
0.489937
3.520243
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/plays.py
68
1841
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import int_or_none class PlaysTVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?plays\.tv/(?:video|embeds)/(?P<id>[0-9a-f]{18})' _TESTS = [{ 'url': 'https://plays.tv/video/56af17f56c...
unlicense
fac4448d35ea3cfec2f1b6943f03101b
33.735849
111
0.540467
3.335145
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/gputechconf.py
87
1201
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class GPUTechConfIE(InfoExtractor): _VALID_URL = r'https?://on-demand\.gputechconf\.com/gtc/2015/video/S(?P<id>\d+)\.html' _TEST = { 'url': 'http://on-demand.gputechconf.com/gtc/2015/video/S5156.html', '...
unlicense
817dd48f765e0d04524e6800e4ac434c
33.314286
97
0.547877
3.103359
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/fourtube.py
15
11586
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_str, compat_urllib_parse_unquote, compat_urlparse, ) from ..utils import ( int_or_none, parse_duration, parse_iso8601, str_or_none, str_to_int, tr...
unlicense
89515466672b92945736dfce56bff14f
36.495146
120
0.514241
3.372926
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/youjizz.py
12
3126
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( determine_ext, int_or_none, parse_duration, url_or_none, ) class YouJizzIE(InfoExtractor): _VALID_URL = r'https?://(?:\w+\.)?youjizz\.com/videos/(?:[^/#?]*-(?P<id>\d+)\.html|embed/(?P<embed_...
unlicense
a4f22c5513428fabaaf6076d9c72db19
31.905263
112
0.493602
3.73031
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/muenchentv.py
64
2126
# coding: utf-8 from __future__ import unicode_literals import json from .common import InfoExtractor from ..utils import ( determine_ext, int_or_none, js_to_json, ) class MuenchenTVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?muenchen\.tv/livestream' IE_DESC = 'münchen.tv' _TEST = {...
unlicense
dffb91ccc629456ae077ee47b2d7ea18
27.32
95
0.468456
3.528239
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/ninenow.py
15
3541
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, float_or_none, smuggle_url, ) class NineNowIE(InfoExtractor): IE_NAME = '9now.com.au' _VALID_URL = r'https?://(?:www\.)?...
unlicense
cb20c95151a7cac9045763f5606635fa
37.075269
113
0.542785
3.441205
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/uktvplay.py
5
1364
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class UKTVPlayIE(InfoExtractor): _VALID_URL = r'https?://uktvplay\.uktv\.co\.uk/(?:.+?\?.*?\bvideo=|([^/]+/)*watch-online/)(?P<id>\d+)' _TESTS = [{ 'url': 'https://uktvplay.uktv.co.uk/shows/world-at-war/c/200/wa...
unlicense
0936bbd95ed37e60d2336704bc4bf35f
36.888889
119
0.581378
3.150115
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/patreon.py
13
5646
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( clean_html, determine_ext, int_or_none, KNOWN_EXTENSIONS, mimetype2ext, parse_iso8601, str_or_none, try_get, ) class PatreonIE(InfoExtractor): _VALID_URL = r'https?://(?...
unlicense
dcd57eb872bde2d3de3345ecd97afc6d
35.192308
108
0.501594
3.729194
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/thisav.py
30
2531
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import remove_end class ThisAVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?thisav\.com/video/(?P<id>[0-9]+)/.*' _TESTS = [{ # jwplayer 'url': 'http://www.thisav.com/video/...
unlicense
d9f4d3962ecd1a3a236c07e000deade9
33.150685
96
0.49298
3.237662
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/yahoo.py
5
22870
# coding: utf-8 from __future__ import unicode_literals import hashlib import itertools import re from .common import InfoExtractor, SearchInfoExtractor from ..compat import ( compat_str, compat_urllib_parse, ) from ..utils import ( clean_html, ExtractorError, int_or_none, mimetype2ext, pa...
unlicense
1897d94bac5c24370b981efb1b40c826
38.775044
225
0.514449
3.211579
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/postprocessor/embedthumbnail.py
4
5652
# coding: utf-8 from __future__ import unicode_literals import os import subprocess from .ffmpeg import FFmpegPostProcessor from ..utils import ( check_executable, encodeArgument, encodeFilename, PostProcessingError, prepend_extension, replace_extension, shell_quote ) class EmbedThumbn...
unlicense
ef385443f1e4227c33d3c7f7e93063a8
43.857143
118
0.621904
4.384794
false
false
false
false