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
rbrito/pkg-youtube-dl
youtube_dl/extractor/vtm.py
5
1899
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, parse_iso8601, try_get, ) class VTMIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?vtm\.be/([^/?&#]+)~v(?P<id>[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12})' _TEST = { ...
unlicense
2e50f3d3b22ee97329c9296b0390b63d
29.629032
110
0.516061
3.19697
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/firsttv.py
23
6457
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_str, compat_urlparse, ) from ..utils import ( int_or_none, qualities, unified_strdate, url_or_none, ) class FirstTVIE(InfoExtractor): IE_NAME = '1tv' IE_DESC = 'Перв...
unlicense
01d66ee13427b2de9f315b12b226c1d8
39.480769
182
0.502138
3.270326
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/cammodels.py
20
3478
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, url_or_none, ) class CamModelsIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?cammodels\.com/cam/(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'https://...
unlicense
c7e94d3cb26b9fc2aeb3978db98c891d
34.489796
92
0.470385
4.402532
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/myspace.py
51
8412
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, parse_iso8601, ) class MySpaceIE(InfoExtractor): _VALID_URL = r'''(?x) https?:// myspace\.com/[^/]+/ ...
unlicense
524f54e8b7ffd9b61de9e69cd2e8a8ef
38.660377
153
0.483349
3.787387
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/utils.py
1
168589
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals import base64 import binascii import calendar import codecs import collections import contextlib import ctypes import datetime import email.utils import email.header import errno import functools import gzip import io import itertools impor...
unlicense
5feb53f7fe5d4499734ad2b629878957
28.434236
133
0.494294
2.99341
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/pornhub.py
1
26854
# coding: utf-8 from __future__ import unicode_literals import functools import itertools import operator import re from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_str, compat_urllib_request, ) from .openload import PhantomJSwrapper from ..utils import ( determine_ext...
unlicense
5c39d5adf81a651ccc1a8e8d870eefe2
35.916094
173
0.509278
3.570782
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/rice.py
90
4580
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_parse_qs from ..utils import ( xpath_text, xpath_element, int_or_none, parse_iso8601, ExtractorError, ) class RICEIE(InfoExtractor): _VALID_URL = r'https?://mediahu...
unlicense
0b6c3af7d48fbec20a47e2320f5e5dd5
38.482759
195
0.527948
3.643596
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/radiode.py
64
1820
from __future__ import unicode_literals from .common import InfoExtractor class RadioDeIE(InfoExtractor): IE_NAME = 'radio.de' _VALID_URL = r'https?://(?P<id>.+?)\.(?:radio\.(?:de|at|fr|pt|es|pl|it)|rad\.io)' _TEST = { 'url': 'http://ndr2.radio.de/', 'info_dict': { 'id': 'ndr2...
unlicense
ccfd3c6a1cf2524ee41e2da80343bec2
34
117
0.520879
3.575639
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/turner.py
5
11115
# coding: utf-8 from __future__ import unicode_literals import re from .adobepass import AdobePassIE from ..compat import compat_str from ..utils import ( fix_xml_ampersands, xpath_text, int_or_none, determine_ext, float_or_none, parse_duration, xpath_attr, update_url_query, Extrac...
unlicense
85595fdd6b1736a1a4fda8872d7f4593
41.75
134
0.474854
3.938696
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/postprocessor/common.py
145
2240
from __future__ import unicode_literals import os from ..utils import ( PostProcessingError, cli_configuration_args, encodeFilename, ) class PostProcessor(object): """Post Processor class. PostProcessor objects can be added to downloaders with their add_post_processor() method. When the dow...
unlicense
e01866907e20646967b2c2b697ea6d51
31.463768
93
0.692857
4.715789
false
true
false
false
unitedstates/congress-legislators
scripts/alternate_bulk_formats.py
1
5823
import csv import json import glob import os import utils def generate_csv(): #yaml filenames yamls = ["legislators-current.yaml","legislators-historical.yaml"] yaml_social = "legislators-social-media.yaml" #list of yaml field name, csv column name tuples. Split into categories which do not reflect yaml stru...
cc0-1.0
fe6ad2e3804aec843ef2cfce056c03ec
29.973404
154
0.656363
3.007748
false
false
false
false
awslabs/aws-config-rules
python/VPC_VPN_2_TUNNELS_UP/VPC_VPN_2_TUNNELS_UP_test.py
1
9093
# Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fi...
cc0-1.0
843d943bc2ea484d6cd6c1273d32ef9b
42.927536
195
0.639393
4.052139
false
true
false
false
awslabs/aws-config-rules
python/EKS_PUBLIC_ACCESS/EKS_PUBLIC_ACCESS.py
1
17721
# Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fi...
cc0-1.0
19a86c84c0527adcb9d447cb79e1deb6
43.75
178
0.691383
4.311679
false
true
false
false
awslabs/aws-config-rules
python/AMI_NOT_PUBLIC_CHECK/AMI_NOT_PUBLIC_CHECK.py
1
16007
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fi...
cc0-1.0
67bd808a0b3f114586dd7aacb1fcb80f
42.262162
178
0.681327
4.283382
false
true
false
false
awslabs/aws-config-rules
python/VPC_FLOW_LOGS_ENABLED_CUSTOM/VPC_FLOW_LOGS_ENABLED_CUSTOM_test.py
1
19285
# # This file made available under CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/legalcode) # # Created with the Rule Development Kit: https://github.com/awslabs/aws-config-rdk # Can be used stand-alone or with the Rule Compliance Engine: https://github.com/awslabs/aws-config-engine-for-complianc...
cc0-1.0
8a4ecea49a218320cefbcd6889555db7
47.215
163
0.644854
3.801498
false
true
false
false
awslabs/aws-config-rules
python/DYNAMODB_ENCRYPTED_CUSTOM/DYNAMODB_ENCRYPTED_test.py
1
12296
# # This file made available under CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/legalcode) # # Created with the Rule Development Kit: https://github.com/awslabs/aws-config-rdk # Can be used stand-alone or with the Rule Compliance Engine: https://github.com/awslabs/aws-config-engine-for-complianc...
cc0-1.0
b5e5e977740671dc43286bfb0946034d
45.229323
162
0.676561
4.056747
false
true
false
false
awslabs/aws-config-rules
python/S3_PUBLIC_ACCESS_SETTINGS_FOR_ACCOUNT/S3_PUBLIC_ACCESS_SETTINGS_FOR_ACCOUNT_TEST.py
1
9380
import sys import unittest try: from unittest.mock import MagicMock except ImportError: from mock import MagicMock import botocore ############## # Parameters # ############## # Define the default resource to report to Config Rules DEFAULT_RESOURCE_TYPE = 'AWS::::Account' ############# # Main Code # ########...
cc0-1.0
a5ef601b7b60c5276ed31f5dea5a6963
46.614213
200
0.6871
3.944491
false
true
false
false
awslabs/aws-config-rules
python/LAMBDA_DLQ_CHECK/LAMBDA_DLQ_CHECK.py
1
18481
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" f...
cc0-1.0
3842a7647c2bdf82632dd6e2d4c2a532
44.519704
171
0.682701
4.333177
false
true
false
false
mcedit/mcedit
filters/demo/filterdemo.py
1
5188
# the inputs list tells MCEdit what kind of options to present to the user. # each item is a (name, value) pair. name is a text string acting # both as a text label for the input on-screen and a key for the 'options' # parameter to perform(). value and its type indicate allowable and # default values for the option: ...
isc
4b8bf51a644eccee5042559385164314
44.911504
87
0.673092
4.078616
false
false
false
false
mcedit/mcedit
editortools/operation.py
1
4107
import atexit import os import shutil import tempfile import albow from pymclevel import BoundingBox import numpy from albow.root import Cancel import pymclevel from mceutils import showProgress from pymclevel.mclevelbase import exhaust undo_folder = os.path.join(tempfile.gettempdir(), "mcedit_undo", str(os.getpid()))...
isc
8f69e77019208e7278ea46718e782391
34.102564
139
0.597029
4.119358
false
false
false
false
mcedit/mcedit
filters/floodwater.py
1
2494
from numpy import * from pymclevel import alphaMaterials, faceDirections, FaceYIncreasing from collections import deque import datetime displayName = "Classic Water Flood" inputs = ( ("Makes water in the region flood outwards and downwards, becoming full source blocks in the process. This is similar to Minecraft Cla...
isc
b95c1a52e81363ce977d3cfd7bab858d
32.702703
159
0.543304
3.872671
false
false
false
false
mcedit/mcedit
glutils.py
1
7859
"""Copyright (c) 2010-2012 David Rio Vierra Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA...
isc
88fd09a9441caa39bce11368729c626d
28.324627
145
0.616109
3.631701
false
false
false
false
mcedit/mcedit
filters/AddPotionEffect.py
1
1637
# Feel free to modify and use this filter however you wish. If you do, # please give credit to SethBling. # http://youtube.com/SethBling from pymclevel import TAG_List from pymclevel import TAG_Byte from pymclevel import TAG_Int from pymclevel import TAG_Compound displayName = "Add Potion Effect to Mobs" Effects = {...
isc
64e2e278a4946f0af9f2dc5da81f73a5
24.578125
107
0.638363
2.648867
false
false
false
false
mcedit/mcedit
editortools/filter.py
1
14414
"""Copyright (c) 2010-2012 David Rio Vierra Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA...
isc
8c4a94cc4579854e01354607f90ff03e
34.156098
154
0.565423
4.500156
false
false
false
false
mcedit/mcedit
albow/resource.py
1
4762
# -*- coding: utf-8 -*- import os import sys import pygame from pygame.locals import RLEACCEL #default_font_name = "Vera.ttf" optimize_images = True run_length_encode = False def find_resource_dir(): try: from directories import dataDir return dataDir except: pass dir = sys.path[0...
isc
fae12aed5c3b30b027c51c7459d996f8
23.546392
87
0.546829
3.54052
false
false
false
false
mcedit/mcedit
editortools/chunk.py
1
19257
"""Copyright (c) 2010-2012 David Rio Vierra Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA...
isc
6f969e31dd1114cfb3746750d22d8213
36.319767
212
0.595731
4.19086
false
false
false
false
mozilla-services/tecken
systemtests/bin/make-symbols-zip.py
1
5995
#!/usr/bin/env python # 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/. # Download SYM files and put them into a ZIP file for testing upload with. # # Usage: ./bin/make...
mpl-2.0
a70246809efc67456c7672da4f6377db
28.975
85
0.584821
3.744535
false
false
false
false
mozilla-services/tecken
systemtests/bin/fetch-crashids.py
1
2558
#!/usr/bin/env python # 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/. # Fetch crash ids for Firefox nightly from Crash Stats. # # Usage: ./bin/fetch-crashids.py from...
mpl-2.0
2ccfe33228ead32de7e4c4b5aba8a254
23.361905
73
0.60086
3.800892
false
false
false
false
mozilla-services/tecken
tecken/tests/test_download.py
1
29954
# 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/. import csv import datetime from io import StringIO import json import os from unittest import mock from urllib.parse im...
mpl-2.0
15568823811a3e3f7d80e58f284ce861
33.1082
88
0.609978
3.544024
false
false
false
false
mozilla-services/tecken
docs/conf.py
1
10633
# 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/. # Tecken documentation build configuration file, created by # sphinx-quickstart on Tue May 10 18:20:27 2016. # # This f...
mpl-2.0
76a13c0398880fa37694daa80fef0fc7
32.021739
81
0.695853
3.658981
false
true
false
false
mozilla-services/tecken
tecken/libdockerflow.py
1
2292
# 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/. import json from pathlib import Path from django.core import checks from django.conf import settings from tecken.stor...
mpl-2.0
6c1576853545fb8955959934b82bd9b7
28.384615
84
0.579843
4.15971
false
false
false
false
mozilla-services/tecken
tecken/librequests.py
1
2398
# 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/. import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry clas...
mpl-2.0
e7695c595ec1437f78202b47bcc7a420
29.35443
80
0.673478
4.071307
false
false
false
false
mozilla-services/tecken
bin/make-a-zip.py
1
2604
#!/usr/bin/env python # 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/. import os import shutil import tempfile import time from pathlib import Path from urllib.parse i...
mpl-2.0
a6f8c6d2013773dd5f6b3304c7c47cfb
33.263158
85
0.522657
4.139905
false
false
false
false
mozilla-services/tecken
tecken/base/decorators.py
1
6480
# 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/. import logging from tempfile import TemporaryDirectory from functools import wraps from django import http from django...
mpl-2.0
b17c125475da077521a1c12e06e60001
30.764706
87
0.64892
4.124761
false
false
false
false
mozilla-services/tecken
tecken/api/views.py
1
35275
# 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/. import datetime import logging import markus from django import http from django.conf import settings from django.url...
mpl-2.0
5880e132a2b283d8848a261caaf908a4
36.407211
88
0.585996
3.861522
false
false
false
false
mozilla-services/tecken
tecken/storage.py
1
6501
# 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/. import re from urllib.parse import urlparse from botocore.exceptions import BotoCoreError, ClientError import boto3 fr...
mpl-2.0
5dd56481e06775452d02a37a200d112f
34.52459
88
0.599754
4.070758
false
false
false
false
mozilla-services/tecken
tecken/tests/test_libdockerflow.py
1
3488
# 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/. from unittest.mock import patch import pytest from botocore.exceptions import ClientError, EndpointConnectionError fro...
mpl-2.0
545d22a7bb5990d53b87c51deb36425b
32.864078
88
0.678899
3.197067
false
true
false
false
dbr/tvnamer
tests/test_anime_filenames.py
2
1170
#!/usr/bin/env python """Tests anime filename output """ from functional_runner import run_tvnamer, verify_out_data from helpers import attr @attr("functional") def test_group(): """Anime filename [#100] """ out_data = run_tvnamer( with_files = ['[Some Group] Scrubs - 01 [A1B2C3].avi'], ...
unlicense
8f52eee5e37846130b3478973ff53c13
23.893617
118
0.612821
2.969543
false
true
false
false
dbr/tvnamer
tests/test_filename_blacklist.py
2
6354
#!/usr/bin/env python """Tests ignoreing files by regexp (e.g. all files with "sample" in the name) """ from functional_runner import run_tvnamer, verify_out_data from helpers import attr @attr("functional") def test_no_blacklist(): """Tests empty list of filename regexps is parsed as expected """ conf...
unlicense
73b487d714868f33c0893b73ee03708f
22.887218
85
0.564054
3.18656
false
true
false
false
cdr-stats/cdr-stats
cdr_stats/cdr_alert/functions_blacklist.py
1
3832
# # 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
26ccc11d45b55f4062dcdc13093806de
28.705426
94
0.607516
3.966874
false
false
false
false
cdr-stats/cdr-stats
cdr_stats/mod_utils/management.py
3
2097
# -*- 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
b1669061ba03bb6626092e619cc80339
41.795918
78
0.606104
4.359667
false
false
false
false
bitmovin/bitmovin-python
bitmovin/services/encodings/generic_muxing_service.py
1
1943
from bitmovin.errors import MissingArgumentError, BitmovinApiError, InvalidStatusError from bitmovin.resources import ResourceResponse, Status from bitmovin.resources.models import EncodingStatus from bitmovin.services.rest_service import RestService class GenericMuxingService(RestService): BASE_ENDPOINT_URL = 'e...
unlicense
e78d2d78893763e12be5459477d49499
45.261905
114
0.696861
3.736538
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/filters/enhanced_watermark_filter.py
1
2080
from bitmovin.resources.enums import WatermarkUnit from bitmovin.errors import InvalidTypeError from bitmovin.utils import Serializable from .abstract_filter import AbstractFilter class EnhancedWatermarkFilter(AbstractFilter, Serializable): def __init__(self, image, id_=None, left=None, right=None, top=None, bot...
unlicense
12e08ce533692ec9a135d204d1ea16db
34.254237
117
0.615865
4.038835
false
false
false
false
bitmovin/bitmovin-python
tests/bitmovin/services/manifests/dash/adaptationset_tests.py
1
8723
import unittest import uuid from bitmovin import Bitmovin, DashManifest, ACLEntry, ACLPermission, EncodingOutput, Period, AudioAdaptationSet, \ VideoAdaptationSet, SubtitleAdaptationSet, AbstractAdaptationSet from tests.bitmovin import BitmovinTestCase class AdaptationSetTests(BitmovinTestCase): @classmethod...
unlicense
350cfd6b2cbd32908cb7e8fc54e6c955
49.132184
122
0.708586
4.140009
false
true
false
false
bitmovin/bitmovin-python
examples/encoding/live/live_to_vod.py
1
9125
import datetime from bitmovin import Bitmovin, S3Output, EncodingOutput, ACLEntry, ACLPermission, DashManifest, FMP4Representation, \ FMP4RepresentationType, Period, VideoAdaptationSet, AudioAdaptationSet, HlsManifest, AudioMedia, VariantStream # IMPORTANT: first run start_live_encoding_dash_hls.py to get the ids ...
unlicense
e27db030f4584127fe6cfce88172e6f1
45.319797
117
0.540164
3.672032
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/filters/scale_filter.py
1
1998
from bitmovin.utils import Serializable from bitmovin.errors import InvalidTypeError from bitmovin.resources.enums import ScalingAlgorithm from . import AbstractFilter class ScaleFilter(AbstractFilter, Serializable): def __init__(self, name=None, width=None, height=None, scaling_algorithm=None, id_=None, custo...
unlicense
31577e029af806fb9d6a7631a38b635b
33.448276
110
0.629129
4.5
false
false
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/manifests/hls/vtt_media.py
1
1338
from .abstract_media import AbstractMedia class VttMedia(AbstractMedia): def __init__(self, name, group_id, vtt_url, language=None, assoc_language=None, is_default=None, autoselect=None, characteristics=None, id_=None, uri=None): super().__init__(id_=id_, name=name, group_id=group_id, la...
unlicense
9d4d51bd1ad7bd5456b0b9db2815ca54
42.16129
117
0.633782
3.758427
false
false
false
false
bitmovin/bitmovin-python
tests/bitmovin/services/encodings/encoding_tests.py
1
9567
import unittest import json from bitmovin import Bitmovin, Response, Encoding, CloudRegion from bitmovin.errors import BitmovinApiError from bitmovin.resources.enums.encoding_status_values import EncodingStatusValues from tests.bitmovin import BitmovinTestCase class EncodingTests(BitmovinTestCase): @classmethod ...
unlicense
a532c478a8b86ac4d07393949f33597d
48.828125
118
0.726351
4.474743
false
true
false
false
bitmovin/bitmovin-python
bitmovin/resources/models/encodings/id3/id3_tag.py
1
2031
from bitmovin.errors import InvalidTypeError from bitmovin.resources.models import AbstractModel from bitmovin.resources import AbstractNameDescriptionResource from bitmovin.utils import Serializable from bitmovin.resources import ID3TagPositionMode class ID3Tag(AbstractNameDescriptionResource, AbstractModel, Seriali...
unlicense
275ee7d754d9f15ed05bf9f19191db98
37.320755
118
0.661251
4.128049
false
false
false
false
bitmovin/bitmovin-python
tests/bitmovin/services/inputs/https_input_service_tests.py
1
6459
import unittest import json from bitmovin import Bitmovin, Response, HTTPSInput from bitmovin.errors import BitmovinApiError from tests.bitmovin import BitmovinTestCase class HTTPSInputTests(BitmovinTestCase): @classmethod def setUpClass(cls): super().setUpClass() @classmethod def tearDownCl...
unlicense
349a0bf48f38c349ff82573db3ece4aa
44.485915
114
0.700263
4.00434
false
true
false
false
bitmovin/bitmovin-python
tests/bitmovin/services/manifests/dash/representation_tests.py
1
28339
import unittest import uuid from bitmovin import Bitmovin, DashManifest, ACLEntry, ACLPermission, EncodingOutput, Period, VideoAdaptationSet, \ AbstractAdaptationSet, FMP4Representation, FMP4RepresentationType, DRMFMP4Representation, Encoding, \ Stream, StreamInput, MuxingStream, FMP4Muxing, MarlinDRM, Abstract...
unlicense
22ad9857f52f5b6d86526f80226292fa
55.678
157
0.690427
4.204599
false
false
false
false
mitre/multiscanner
multiscanner/storage/basic_elasticsearch_storage.py
2
4795
""" Storage module that will interact with elasticsearch in a simple way. """ from uuid import uuid4 from elasticsearch import Elasticsearch from multiscanner.storage import storage class BasicElasticSearchStorage(storage.Storage): DEFAULTCONF = { 'ENABLED': False, 'host': 'localhost', '...
mpl-2.0
022f8646af5e6b4f21a7afebd959ff58
35.052632
120
0.542023
4.502347
false
false
false
false
mitre/multiscanner
multiscanner/modules/Metadata/ExifToolsScan.py
2
3427
# 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 division, absolute_import, with_statement, print_function, unicode_literals import os import subp...
mpl-2.0
5a6441283d3fcf5f25217722aaaabc3c
28.042373
105
0.569303
3.903189
false
false
false
false
mitre/multiscanner
multiscanner/modules/Detonation/FireeyeScan.py
2
2339
# 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 division, absolute_import, with_statement, print_function, unicode_literals import os import time ...
mpl-2.0
37b029fc16a0d67bbf668801a8bce7d9
31.486111
98
0.604532
3.501497
false
false
false
false
odlgroup/odl
odl/test/tomo/operators/ray_trafo_test.py
1
29898
# 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/. """Tests for the Ray transform.""" from __f...
mpl-2.0
bd8dbe94d2fc9e4bfca1a991157b434e
37.929688
79
0.586594
3.232216
false
true
false
false
odlgroup/odl
odl/trafos/wavelet.py
2
26565
# 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/. """Discrete wavelet transformation on L2 spa...
mpl-2.0
595906d1611d43eaffcac2e4bea984be
37.444284
86
0.540599
4.509421
false
false
false
false
odlgroup/odl
odl/test/trafos/backends/pyfftw_bindings_test.py
3
13174
# 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/. from __future__ import division import numpy...
mpl-2.0
6b354c6cb9be59b11cc403461f2755c0
32.866324
78
0.582056
3.325088
false
true
false
false
odlgroup/odl
doc/source/getting_started/code/getting_started_convolution.py
2
3383
"""Source code for the getting started example.""" import odl import scipy.signal class Convolution(odl.Operator): """Operator calculating the convolution of a kernel with a function. The operator inherits from ``odl.Operator`` to be able to be used with ODL. """ def __init__(self, kernel): ...
mpl-2.0
80f34bd0de4ca757ed2eb0bfc087880a
27.91453
79
0.687851
3.045005
false
false
false
false
odlgroup/odl
examples/solvers/pdhg_deconvolve.py
2
2847
"""Total variation deconvolution using PDHG. Solves the optimization problem min_x 1/2 ||A(x) - g||_2^2 + lam || |grad(x)| ||_1 Where ``A`` is a convolution operator, ``grad`` the spatial gradient and ``g`` is given noisy data. For further details and a description of the solution method used, see https://odlg...
mpl-2.0
6aec45a5d378af6798bdd87165484fab
31.352273
79
0.721812
3.074514
false
false
false
false
odlgroup/odl
examples/tomo/ray_trafo_parallel_3d.py
2
1705
"""Example using the ray transform with 3d parallel beam geometry.""" import numpy as np import odl # Reconstruction space: discretized functions on the cube # [-20, 20]^3 with 300 samples per dimension. reco_space = odl.uniform_discr( min_pt=[-20, -20, -20], max_pt=[20, 20, 20], shape=[300, 300, 300], dtype=...
mpl-2.0
20f73b3549adf4cbc04ae1c419c53318
43.868421
79
0.721994
3.157407
false
false
true
false
odlgroup/odl
examples/solvers/adupdates_tomography.py
2
6365
r"""Total-variation regularized tomography example using the adupdates solver. This example solves a linear inverse problem of the form :math:`Ax = y`, where :math:`x \in \mathbb{R}^n` is the (unknown) original image to be reconstructed, :math:`y \in \mathbb{R}^m` is the noisy data and :math:`A \in \mathbb{R}^{m \time...
mpl-2.0
932cc1996868590bdb01d1f466a49820
42.006757
79
0.671956
3.213024
false
false
false
false
odlgroup/odl
odl/operator/tensor_ops.py
2
61291
# 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/. """Operators defined for tensor fields.""" ...
mpl-2.0
058d564832f96c5ecd8629a8d858378d
36.509792
79
0.53879
4.098636
false
false
false
false
odlgroup/odl
examples/solvers/pdhg_denoising_L2_HuberTV.py
2
4708
"""Linearly convergent total variation denoising using PDHG. This exhaustive example solves the L2-HuberTV problem min_{x >= 0} 1/2 ||x - d||_2^2 + lam * sum_i eta_gamma(||grad(x)_i||_2) where ``grad`` is the spatial gradient and ``d`` is given noisy data. Here ``eta_gamma`` denotes the Huber fu...
mpl-2.0
17531f7ccca6f7c320e5842ec6bc7387
33.086957
79
0.673895
2.894769
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/filmon.py
63
6049
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_str, compat_HTTPError, ) from ..utils import ( qualities, strip_or_none, int_or_none, ExtractorError, ) class FilmOnIE(InfoExtractor): IE_NAME = 'filmon' _VALID_URL ...
unlicense
7f681034b497a9220b27f6a72e04c59e
32.983146
110
0.503554
3.731647
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/nonktube.py
15
1151
from __future__ import unicode_literals from .nuevo import NuevoBaseIE class NonkTubeIE(NuevoBaseIE): _VALID_URL = r'https?://(?:www\.)?nonktube\.com/(?:(?:video|embed)/|media/nuevo/embed\.php\?.*?\bid=)(?P<id>\d+)' _TESTS = [{ 'url': 'https://www.nonktube.com/video/118636/sensual-wife-uncensored-fuc...
unlicense
b51e39cc51665e3a124b84b132572f4b
29.289474
117
0.533449
3.153425
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/stv.py
5
3447
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( compat_str, float_or_none, int_or_none, smuggle_url, str_or_none, try_get, ) class STVPlayerIE(InfoExtractor): IE_NAME = 'stv:player' _VALID_URL = r'https?://play...
unlicense
2c0e56adc6ddf42013a0aedd9954746a
35.284211
119
0.536989
3.433267
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/puhutv.py
11
8458
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_str, ) from ..utils import ( ExtractorError, int_or_none, float_or_none, parse_resolution, str_or_none, try_get, unified_timestamp, url_or_no...
unlicense
1da1150b841fc2cd453280ca1e837632
34.351464
124
0.492839
3.708955
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/foxgay.py
50
2203
from __future__ import unicode_literals import itertools from .common import InfoExtractor from ..utils import ( get_element_by_id, int_or_none, remove_end, ) class FoxgayIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?foxgay\.com/videos/(?:\S+-)?(?P<id>\d+)\.shtml' _TEST = { 'url':...
unlicense
27caae54b91322db398d457b53f38751
33.968254
90
0.545166
3.485759
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/twitter.py
1
27930
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_parse_qs, compat_urllib_parse_unquote, compat_urllib_parse_urlparse, ) from ..utils import ( dict_get, ExtractorError, float_or_none, int_...
unlicense
3568fb744b11e17a0b4f0f5b8b49e6a0
40.639098
217
0.519863
3.425708
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/einthusan.py
15
3720
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_str, compat_urlparse, ) from ..utils import ( extract_attributes, ExtractorError, get_elements_by_class, urlencode_postdata, ) c...
unlicense
5d9863e4aa61949018bc7ca6038ecdf0
32.513514
92
0.54086
3.454039
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/popcorntv.py
20
2686
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( extract_attributes, int_or_none, unified_timestamp, ) class PopcornTVIE(InfoExtractor): _VALID_URL = r'https?://[^/]+\.popcorntv\.it/guarda/(?P<display_id>[^/]+)/(?P<id>\d+)' _TESTS = [{ ...
unlicense
8b0306635290beddb9d558acae3e4c56
34.342105
103
0.540953
3.46134
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/corus.py
13
6404
# coding: utf-8 from __future__ import unicode_literals import re from .theplatform import ThePlatformFeedIE from ..utils import ( dict_get, ExtractorError, float_or_none, int_or_none, ) class CorusIE(ThePlatformFeedIE): _VALID_URL = r'''(?x) https?:// ...
unlicense
9e53b692347f03e80ed51721b66146c9
39.025
143
0.482042
3.86715
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/meta.py
81
2623
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from .pladform import PladformIE from ..utils import ( unescapeHTML, int_or_none, ExtractorError, ) class METAIE(InfoExtractor): _VALID_URL = r'https?://video\.meta\.ua/(?:iframe/)?(?P<id>[0-9]+)' _TESTS = [...
unlicense
f103de27572110d1285338173b5fb426
34.917808
97
0.522121
3.500668
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/vidbit.py
64
2917
from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_urlparse from ..utils import ( int_or_none, js_to_json, remove_end, unified_strdate, ) class VidbitIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?vidbit\.co/(?:watch|embed)\?.*?\bv=(?P<id>[...
unlicense
c4911d7ed3ea1e0f806e02611cb6730b
33.72619
93
0.511484
3.480907
false
true
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/vk.py
9
25866
# coding: utf-8 from __future__ import unicode_literals import collections import functools import re from .common import InfoExtractor from ..compat import compat_urlparse from ..utils import ( clean_html, ExtractorError, get_element_by_class, int_or_none, OnDemandPagedList, orderedSet, s...
unlicense
a3023af4e8f9b0a8a923381b8aa20562
36.626844
208
0.483007
3.491788
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/rtve.py
24
10066
# coding: utf-8 from __future__ import unicode_literals import base64 import re import time from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_struct_unpack, ) from ..utils import ( determine_ext, ExtractorError, float_or_none, remove_end, remove_start, s...
unlicense
8b6eed33e71a5c678908d54d9cc69acc
33.458904
155
0.528722
3.180152
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/vidlii.py
28
4530
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( float_or_none, get_element_by_id, int_or_none, strip_or_none, unified_strdate, urljoin, ) class VidLiiIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?vidlii\.com...
unlicense
6dda50ce77ac18fcc1a948fbb334edbf
35.24
100
0.505519
3.450114
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/sixplay.py
15
5252
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_parse_qs, compat_str, compat_urllib_parse_urlparse, ) from ..utils import ( determine_ext, int_or_none, try_get, qualities, ) class SixPlayIE(InfoExtractor): ...
unlicense
7d827b3855e7b89d34c5d0e06351e60a
39.697674
189
0.488762
3.502335
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/linkedin.py
17
6753
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( ExtractorError, float_or_none, int_or_none, urlencode_postdata, urljoin, ) class LinkedInLearningBaseIE(InfoExtractor): _NETRC_MACHINE = 'linkedin' _LOGIN_URL = 'http...
unlicense
0cdcf05c0d5adabfe642761ad1b6b410
36.104396
112
0.535614
3.733002
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/teamcoco.py
13
7310
# coding: utf-8 from __future__ import unicode_literals import json from .turner import TurnerBaseIE from ..utils import ( determine_ext, ExtractorError, int_or_none, mimetype2ext, parse_duration, parse_iso8601, qualities, ) class TeamcocoIE(TurnerBaseIE): _VALID_URL = r'https?://(?:...
unlicense
0890804245e0889f9407872519f4ad24
34.639024
167
0.482206
3.658488
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/washingtonpost.py
5
5257
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class WashingtonPostIE(InfoExtractor): IE_NAME = 'washingtonpost' _VALID_URL = r'(?:washingtonpost:|https?://(?:www\.)?washingtonpost\.com/(?:video|posttv)/(?:[^/]+/)*)(?P<id>[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-...
unlicense
f09d5f6b5134c16bd25703467f2faab4
44.301724
311
0.577165
3.092996
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/spreaker.py
7
6030
# coding: utf-8 from __future__ import unicode_literals import itertools from .common import InfoExtractor from ..compat import compat_str from ..utils import ( float_or_none, int_or_none, str_or_none, try_get, unified_timestamp, url_or_none, ) def _extract_episode(data, episode_id=None): ...
unlicense
c41f8f78c553ba275034e12a4afe653f
33.261364
113
0.523715
3.489583
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/hketv.py
15
6965
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( clean_html, ExtractorError, int_or_none, merge_dicts, parse_count, str_or_none, try_get, unified_strdate, urlencode_postdata, urljoin, ...
unlicense
f7f4bf5cc02aa59fb0dbdf219c075434
34.900524
86
0.506052
3.414841
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/nintendo.py
13
1882
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from .ooyala import OoyalaIE class NintendoIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?nintendo\.com/(?:games/detail|nintendo-direct)/(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'https://www.nintend...
unlicense
8b0717f78700948a54d3384a9d63b707
30.333333
102
0.50266
3.061889
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/philharmoniedeparis.py
15
3759
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( try_get, urljoin, ) class PhilharmonieDeParisIE(InfoExtractor): IE_DESC = 'Philharmonie de Paris' _VALID_URL = r'''(?x) https?:// ...
unlicense
bac1bf87344ea988ea13febeee4849bf
34.45283
148
0.510112
3.482854
false
true
false
false
rbrito/pkg-youtube-dl
test/test_iqiyi_sdk_interpreter.py
36
1104
#!/usr/bin/env python from __future__ import unicode_literals # Allow direct execution import os import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from test.helper import FakeYDL from youtube_dl.extractor import IqiyiIE class IqiyiIEWithCredentials(IqiyiIE):...
unlicense
d7fe3331e893f9b7e2062bc6716d1bfd
22
79
0.650362
3.643564
false
true
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/reddit.py
5
5331
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, float_or_none, try_get, unescapeHTML, url_or_none, ) class RedditIE(InfoExtractor): _VALID_URL = r'https?://v\.redd\.it/(?P<id>[^/?#&]+)' _TEST = { ...
unlicense
3603bdd95c92477128dce841912f1ebd
32.111801
114
0.512849
3.421694
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/ninegag.py
1
4097
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( determine_ext, ExtractorError, int_or_none, try_get, url_or_none, ) class NineGagIE(InfoExtractor): IE_NAME = '9gag' _VALID_URL = r'https?://(?:www\.)?9gag\.com/gag/(?P<id>[^/?&#]+)' _TEST...
unlicense
d1c354f601f269dd6ac91229468f45f9
31.776
81
0.428118
4.03248
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/zattoo.py
15
14325
# coding: utf-8 from __future__ import unicode_literals import re from uuid import uuid4 from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_str, ) from ..utils import ( ExtractorError, int_or_none, try_get, url_or_none, urlencode_postdata, ) class ZattooPla...
unlicense
c64beb66459a273db2c6d3593733c26b
32.083141
128
0.547225
3.320584
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/radiocanada.py
19
6349
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_HTTPError from ..utils import ( determine_ext, ExtractorError, int_or_none, unified_strdate, ) class RadioCanadaIE(InfoExtractor): IE_NAME = 'radiocanada' _VALID_UR...
unlicense
14893ad7d7786283e9756951062205dc
36.070175
129
0.522322
3.599659
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/izlesene.py
24
4152
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_str, compat_urllib_parse_unquote, ) from ..utils import ( determine_ext, float_or_none, get_element_by_id, int_or_none, parse_iso8601, str_to_int, ) class IzleseneIE...
unlicense
c26a91e5a8b97314b45f4cb415f43bae
34.42735
99
0.506152
3.573276
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/xiami.py
7
6816
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_urllib_parse_unquote from ..utils import int_or_none class XiamiBaseIE(InfoExtractor): _API_BASE_URL = 'https://emumo.xiami.com/song/playlist/cat/json/id' def _download_webpage_handle(self, ...
unlicense
bcebfd6690b07e93c4310aea9f125829
32.278607
92
0.500075
3.111163
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/amp.py
5
4088
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( determine_ext, ExtractorError, int_or_none, mimetype2ext, parse_iso8601, unified_timestamp, url_or_none, ) class AMPIE(InfoExtractor): # parse Akamai Adaptive Media Player f...
unlicense
1aa663ba5e85e5f335d0b83c12ced40a
38.68932
106
0.525196
4.108543
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/radiojavan.py
21
2761
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( parse_resolution, str_to_int, unified_strdate, urlencode_postdata, urljoin, ) class RadioJavanIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?radiojavan\.com/videos/video/(?P<id>[^/...
unlicense
6f756cabc7981b981859de6b2a6e530d
32.26506
90
0.516842
3.553411
false
false
false
false
rbrito/pkg-youtube-dl
devscripts/make_lazy_extractors.py
7
2872
from __future__ import unicode_literals, print_function from inspect import getsource import io import os from os.path import dirname as dirn import sys print('WARNING: Lazy loading extractors is an experimental feature that may not always work', file=sys.stderr) sys.path.insert(0, dirn(dirn((os.path.abspath(__file_...
unlicense
f6134afd164c1a5b270e7ff5d20fc10b
27.72
110
0.629178
3.523926
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/tnaflix.py
20
12219
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_str from ..utils import ( fix_xml_ampersands, float_or_none, int_or_none, parse_duration, str_to_int, unescapeHTML, xpath_text, ) class TNAFlixNetworkBaseIE(InfoExtractor): ...
unlicense
d48ce5df7e4404bd45505f29d3f6f0a9
36.366972
145
0.536214
3.401726
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/facebook.py
3
30065
# coding: utf-8 from __future__ import unicode_literals import json import re import socket from .common import InfoExtractor from ..compat import ( compat_etree_fromstring, compat_http_client, compat_str, compat_urllib_error, compat_urllib_parse_unquote, compat_urllib_parse_unquote_plus, ) fr...
unlicense
baa6bd7c063efc93d26c60d68a8780ac
41.576487
159
0.50341
3.738217
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/techtalks.py
71
2529
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( get_element_by_attribute, clean_html, ) class TechTalksIE(InfoExtractor): _VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]+/)?(?P<id>\d+)' _TESTS = [{ 'url': 'http://techtalks.tv/tal...
unlicense
182456187c793bdb8d48ff27ac915ab9
29.841463
89
0.411625
4.020668
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/aliexpress.py
36
1581
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( float_or_none, try_get, ) class AliExpressLiveIE(InfoExtractor): _VALID_URL = r'https?://live\.aliexpress\.com/live/(?P<id>\d+)' _TEST = { 'url': 'ht...
unlicense
9e5c67b1bbb1037fc56652af457fefc0
28.830189
78
0.523087
3.444444
false
false
false
false
rbrito/pkg-youtube-dl
youtube_dl/extractor/spotify.py
5
5739
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..utils import ( clean_podcast_url, float_or_none, int_or_none, strip_or_none, try_get, unified_strdate, ) class SpotifyBaseIE(InfoExtractor): _ACCESS_TOKEN = None _OP...
unlicense
95a55676dd74bbd27d6cbebbf4bad5fb
35.788462
132
0.542081
3.516544
false
false
false
false