hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f70b4ab8b24b3c82f5dfd1e583d98ca16d2fb009
2,358
py
Python
tests/optim_test.py
liutongyu0304/smartnet
6c720165d3222366864163b39f0e2ba7db64253f
[ "BSD-3-Clause" ]
null
null
null
tests/optim_test.py
liutongyu0304/smartnet
6c720165d3222366864163b39f0e2ba7db64253f
[ "BSD-3-Clause" ]
null
null
null
tests/optim_test.py
liutongyu0304/smartnet
6c720165d3222366864163b39f0e2ba7db64253f
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from smartnet.optims import * from smartnet.layers import * import smartnet as sn import unittest class OptimTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass @classmethod def setUpClass(cls): print("optim test begins.") @classmethod ...
24.309278
64
0.522477
from smartnet.optims import * from smartnet.layers import * import smartnet as sn import unittest class OptimTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass @classmethod def setUpClass(cls): print("optim test begins.") @classmethod def tearDo...
true
true
f70b4acf7cbf3a28a8bfb59275fed813316b0317
709
py
Python
app/users/migrations/0007_auto_20190803_0831.py
S3Infosoft/mvr-insights
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
[ "MIT" ]
null
null
null
app/users/migrations/0007_auto_20190803_0831.py
S3Infosoft/mvr-insights
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
[ "MIT" ]
20
2019-06-17T11:01:25.000Z
2020-05-09T06:13:17.000Z
app/users/migrations/0007_auto_20190803_0831.py
S3Infosoft/mvr-insights
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
[ "MIT" ]
1
2020-03-03T11:13:57.000Z
2020-03-03T11:13:57.000Z
# Generated by Django 2.2.4 on 2019-08-03 08:31 from django.db import migrations, models import users.models class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20190803_0830'), ] operations = [ migrations.AlterField( model_name='customuser', ...
28.36
122
0.634697
from django.db import migrations, models import users.models class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20190803_0830'), ] operations = [ migrations.AlterField( model_name='customuser', name='_image', field=models.Im...
true
true
f70b4d49fd7c2428414fde8a0fcb3a392c5d7289
7,023
py
Python
deepsim/deepsim/core/link_state.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim/deepsim/core/link_state.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim/deepsim/core/link_state.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
31.922727
109
0.508472
true
true
f70b4e07bb9dc2e5dc2154f42b695e18f69be121
8,395
py
Python
autossrf.py
Th0h0/autossrf
17125339c395ffaef7d6a58ba234fad53d172885
[ "MIT" ]
null
null
null
autossrf.py
Th0h0/autossrf
17125339c395ffaef7d6a58ba234fad53d172885
[ "MIT" ]
null
null
null
autossrf.py
Th0h0/autossrf
17125339c395ffaef7d6a58ba234fad53d172885
[ "MIT" ]
1
2022-03-26T14:21:59.000Z
2022-03-26T14:21:59.000Z
import regex import argparse import requests import time import os import threading import random execPath = os.getcwd() currentPath = os.path.dirname(__file__) os.chdir(currentPath) FUZZ_PLACE_HOLDER = '??????' TIMEOUT_DELAY = 5 LOCK = threading.Lock() parser = argparse.ArgumentParser() parser.add_argument("--file"...
34.690083
379
0.657177
import regex import argparse import requests import time import os import threading import random execPath = os.getcwd() currentPath = os.path.dirname(__file__) os.chdir(currentPath) FUZZ_PLACE_HOLDER = '??????' TIMEOUT_DELAY = 5 LOCK = threading.Lock() parser = argparse.ArgumentParser() parser.add_argument("--file"...
true
true
f70b4fbb627ce25c7b6702ad09dd5c7ee15dad9d
321
py
Python
core/migrations/0004_remove_user_username.py
jamesseth/Universalone
11aa4eef9879970baa49f5602d8ebdf83aee4b6a
[ "MIT" ]
null
null
null
core/migrations/0004_remove_user_username.py
jamesseth/Universalone
11aa4eef9879970baa49f5602d8ebdf83aee4b6a
[ "MIT" ]
null
null
null
core/migrations/0004_remove_user_username.py
jamesseth/Universalone
11aa4eef9879970baa49f5602d8ebdf83aee4b6a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.14 on 2022-03-04 18:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0003_user_username'), ] operations = [ migrations.RemoveField( model_name='user', name='username', ), ]...
17.833333
48
0.582555
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0003_user_username'), ] operations = [ migrations.RemoveField( model_name='user', name='username', ), ]
true
true
f70b50ce14fd613d55f97a8be1d77a76ed98e10a
1,998
py
Python
src/import_pracownikow/migrations/0002_importpracownikowrow.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/import_pracownikow/migrations/0002_importpracownikowrow.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/import_pracownikow/migrations/0002_importpracownikowrow.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.11 on 2021-02-28 16:39 import django.contrib.postgres.fields.jsonb import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bpp", "0240_auto_20210228_1739"), ("import_pracownikow", "0001_initial"...
31.21875
87
0.407407
import django.contrib.postgres.fields.jsonb import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bpp", "0240_auto_20210228_1739"), ("import_pracownikow", "0001_initial"), ] operations = [ migrations....
true
true
f70b522960a3a384eacd9476f9389c6890217ff6
970
py
Python
saleor/expensetypes/models.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
1
2018-05-03T06:17:02.000Z
2018-05-03T06:17:02.000Z
saleor/expensetypes/models.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
8
2018-05-07T16:42:35.000Z
2022-02-26T03:31:56.000Z
saleor/expensetypes/models.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils.translation import pgettext_lazy from django.utils.timezone import now class ExpenseTypes(models.Model): name = models.CharField( pgettext_lazy('ExpenseTypes field', 'name'), unique=True, max_length=128) descriptio...
32.333333
95
0.703093
from __future__ import unicode_literals from django.db import models from django.utils.translation import pgettext_lazy from django.utils.timezone import now class ExpenseTypes(models.Model): name = models.CharField( pgettext_lazy('ExpenseTypes field', 'name'), unique=True, max_length=128) descriptio...
true
true
f70b525457f87d17c8efd833276ea214c1891035
265
py
Python
10 Days of Statistics/Day 5 Poisson Distribution II.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
10 Days of Statistics/Day 5 Poisson Distribution II.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
10 Days of Statistics/Day 5 Poisson Distribution II.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT averageX, averageY = [float(num) for num in input().split(" ")] CostX = 160 + 40*(averageX + averageX**2) CostY = 128 + 40*(averageY + averageY**2) print(round(CostX, 3)) print(round(CostY, 3))
33.125
69
0.686792
averageX, averageY = [float(num) for num in input().split(" ")] CostX = 160 + 40*(averageX + averageX**2) CostY = 128 + 40*(averageY + averageY**2) print(round(CostX, 3)) print(round(CostY, 3))
true
true
f70b543d15dfc1d3ae417fb6ae739938fa4eb1f7
455
py
Python
MIPS.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
null
null
null
MIPS.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
null
null
null
MIPS.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import hnswlib import numpy as np def buildIndex(X): dim = X.shape[1] num_elements = X.shape[0] data_labels = np.arange(num_elements) p = hnswlib.Index(space = 'cosine', dim = dim) p.init_index(max_elements = num_elements, ef_construction = 200, M = 16) p.add_items(X, d...
22.75
76
0.643956
import hnswlib import numpy as np def buildIndex(X): dim = X.shape[1] num_elements = X.shape[0] data_labels = np.arange(num_elements) p = hnswlib.Index(space = 'cosine', dim = dim) p.init_index(max_elements = num_elements, ef_construction = 200, M = 16) p.add_items(X, data_labels) p.set_e...
true
true
f70b548ce4f7e4c8370edd4d6309077c0b3aeee4
15,065
py
Python
pyvcloud/vcd/firewall_rule.py
kousgy123/pyvcloud
46cbac266b7db64c32ae2a9b860d2c82f4d00a36
[ "Apache-2.0" ]
null
null
null
pyvcloud/vcd/firewall_rule.py
kousgy123/pyvcloud
46cbac266b7db64c32ae2a9b860d2c82f4d00a36
[ "Apache-2.0" ]
null
null
null
pyvcloud/vcd/firewall_rule.py
kousgy123/pyvcloud
46cbac266b7db64c32ae2a9b860d2c82f4d00a36
[ "Apache-2.0" ]
null
null
null
# VMware vCloud Director Python SDK # Copyright (c) 2014-2019 VMware, Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
44.308824
79
0.62237
from pyvcloud.vcd.client import create_element from pyvcloud.vcd.client import EntityType from pyvcloud.vcd.exceptions import InvalidParameterException from pyvcloud.vcd.gateway import Gateway from pyvcloud.vcd.gateway_services import GatewayServices from pyvcloud.vcd.network_url_constants import FIREWALL_...
true
true
f70b54bcca7c78b8d17ea7a455504224546fdeca
2,474
py
Python
network/db.py
LincZero/BiliTools
334190da7f6407fc85b20ff6d126a3dcd16505ab
[ "Apache-2.0" ]
null
null
null
network/db.py
LincZero/BiliTools
334190da7f6407fc85b20ff6d126a3dcd16505ab
[ "Apache-2.0" ]
null
null
null
network/db.py
LincZero/BiliTools
334190da7f6407fc85b20ff6d126a3dcd16505ab
[ "Apache-2.0" ]
null
null
null
import MySQLdb from biliClass.biliAid import Aid import time def dblink(): # 连接数据库 # demo return MySQLdb.connect( host='localhost', user='root', passwd='password', db='nav', charset='utf8' ) def dbsql(conn, sql): # 执行sql cursor = conn.cursor() cursor...
27.186813
185
0.516168
import MySQLdb from biliClass.biliAid import Aid import time def dblink(): return MySQLdb.connect( host='localhost', user='root', passwd='password', db='nav', charset='utf8' ) def dbsql(conn, sql): cursor = conn.cursor() cursor.execute(sql) re...
true
true
f70b569498b82d470320a1d9546d114427f688b4
695
py
Python
cinderclient/v3/qos_specs.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/v3/qos_specs.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/v3/qos_specs.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
# Copyright (c) 2013 eBay Inc. # Copyright (c) OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
30.217391
69
0.748201
from cinderclient.v2.qos_specs import *
true
true
f70b5953932541c87b991bde53d94cc13d35e857
36
py
Python
tests/__init__.py
quarkslab/ziphyr
f4b6f258b88ed5b4c8c1e0557ddd01e63f225407
[ "Apache-2.0" ]
3
2020-12-13T10:52:50.000Z
2021-11-15T10:45:00.000Z
tests/__init__.py
quarkslab/ziphyr
f4b6f258b88ed5b4c8c1e0557ddd01e63f225407
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
quarkslab/ziphyr
f4b6f258b88ed5b4c8c1e0557ddd01e63f225407
[ "Apache-2.0" ]
1
2021-11-14T02:56:49.000Z
2021-11-14T02:56:49.000Z
"""Unit test package for ziphyr."""
18
35
0.666667
true
true
f70b5a26a5001b76af41aed307f2de5fb84a932a
3,490
py
Python
python_modules/dagster/dagster_tests/conftest.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-10T23:03:37.000Z
2020-08-10T23:03:37.000Z
python_modules/dagster/dagster_tests/conftest.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/conftest.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-20T14:20:31.000Z
2020-08-20T14:20:31.000Z
import os import subprocess import time from contextlib import contextmanager import grpc import pytest from dagster_test.dagster_core_docker_buildkite import ( build_and_tag_test_image, test_project_docker_image, ) from dagster import check from dagster.grpc.client import DagsterGrpcClient from dagster.utils...
30.884956
100
0.67851
import os import subprocess import time from contextlib import contextmanager import grpc import pytest from dagster_test.dagster_core_docker_buildkite import ( build_and_tag_test_image, test_project_docker_image, ) from dagster import check from dagster.grpc.client import DagsterGrpcClient from dagster.utils...
true
true
f70b5aa7ce7c85310bc3393804622e2a327dc477
16,705
py
Python
tests/image/utils_test.py
ayman3000/keras-preprocessing
845c423e01acfe251d4276e52cf2b86e73f1646a
[ "MIT" ]
1,071
2018-05-30T23:04:13.000Z
2022-03-23T08:50:10.000Z
tests/image/utils_test.py
ayman3000/keras-preprocessing
845c423e01acfe251d4276e52cf2b86e73f1646a
[ "MIT" ]
286
2018-05-31T14:17:50.000Z
2022-03-31T10:13:57.000Z
tests/image/utils_test.py
ayman3000/keras-preprocessing
845c423e01acfe251d4276e52cf2b86e73f1646a
[ "MIT" ]
529
2018-05-30T23:21:34.000Z
2022-03-08T19:11:06.000Z
import io import resource from pathlib import Path import numpy as np import PIL import pytest from keras_preprocessing.image import utils def test_validate_filename(tmpdir): valid_extensions = ('png', 'jpg') filename = tmpdir.ensure('test.png') assert utils.validate_filename(str(filename), valid_extens...
41.7625
81
0.685004
import io import resource from pathlib import Path import numpy as np import PIL import pytest from keras_preprocessing.image import utils def test_validate_filename(tmpdir): valid_extensions = ('png', 'jpg') filename = tmpdir.ensure('test.png') assert utils.validate_filename(str(filename), valid_extens...
true
true
f70b5ab5c5fcfa6cb7faa06d88ce4d7ec1a8cd30
1,525
py
Python
tests/stream_test.py
pniedzwiedzinski/pseudo
b27570bd8400b6a51a2958454b31f1ce2e25c4f9
[ "MIT" ]
5
2019-04-02T07:01:34.000Z
2019-11-24T02:08:03.000Z
tests/stream_test.py
pniedzwiedzinski/pseudo
b27570bd8400b6a51a2958454b31f1ce2e25c4f9
[ "MIT" ]
11
2019-03-20T08:29:30.000Z
2019-05-21T11:57:03.000Z
tests/stream_test.py
pniedzwiedzinski/pseudo
b27570bd8400b6a51a2958454b31f1ce2e25c4f9
[ "MIT" ]
1
2019-04-02T15:24:40.000Z
2019-04-02T15:24:40.000Z
"""This module contains unit tests for stream module.""" import pytest import pseudo __author__ = "Patryk Niedźwiedziński" @pytest.fixture def stream(): """Returns stream object""" def _s(i): s = pseudo.stream.Stream(i) return s return _s @pytest.mark.timeout(2) def test_get_current...
18.154762
56
0.591475
import pytest import pseudo __author__ = "Patryk Niedźwiedziński" @pytest.fixture def stream(): def _s(i): s = pseudo.stream.Stream(i) return s return _s @pytest.mark.timeout(2) def test_get_current_line(stream, test): s = stream("a\nb") test(s.get_current_line(), "a") s.li...
true
true
f70b5ae82ddf77d29a0ee10d330906455aea832b
3,360
py
Python
packages/openshift/result.py
mhcurlee/openshift-client-python
f8013715d51afcd51c5ab8dd95ee0e2f9f21bb15
[ "Apache-2.0" ]
41
2019-04-12T21:07:02.000Z
2022-02-21T20:01:18.000Z
packages/openshift/result.py
mhcurlee/openshift-client-python
f8013715d51afcd51c5ab8dd95ee0e2f9f21bb15
[ "Apache-2.0" ]
27
2019-07-11T21:26:27.000Z
2021-11-29T17:28:42.000Z
packages/openshift/result.py
mhcurlee/openshift-client-python
f8013715d51afcd51c5ab8dd95ee0e2f9f21bb15
[ "Apache-2.0" ]
33
2019-04-10T17:37:01.000Z
2022-03-08T01:05:45.000Z
from __future__ import absolute_import import json from .model import OpenShiftPythonException class Result(object): def __init__(self, high_level_operation, tracking_limit=None): self.high_level_operation = high_level_operation self.__actions = [] # if tracking_limit is less than 0 that...
35
117
0.609821
from __future__ import absolute_import import json from .model import OpenShiftPythonException class Result(object): def __init__(self, high_level_operation, tracking_limit=None): self.high_level_operation = high_level_operation self.__actions = [] if tracking_limit is not None ...
true
true
f70b5b13da8974a7a5b30eaef4bc634bbeef2ad0
5,029
py
Python
simbad/mr/sheetbend_refine.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
2
2017-02-14T15:31:30.000Z
2019-07-20T12:30:59.000Z
simbad/mr/sheetbend_refine.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
65
2017-02-14T14:19:28.000Z
2021-09-21T09:50:02.000Z
simbad/mr/sheetbend_refine.py
hlasimpk/SIMPLE
89570f1a29e2871cb1e85cfda36cfa22fbad0877
[ "BSD-3-Clause" ]
7
2017-05-09T15:27:08.000Z
2021-06-13T13:32:40.000Z
#!/usr/bin/env ccp4-python """Module to run sheetbend on a model""" __author__ = "Adam Simpkin" __date__ = "05 Aug 2018" __version__ = "1.0" import os from simbad.util import mtz_util from simbad.mr.refmac_refine import Refmac from pyjob import cexec class SheetBend(object): """Class to run sheetbend""" d...
28.737143
149
0.608471
__author__ = "Adam Simpkin" __date__ = "05 Aug 2018" __version__ = "1.0" import os from simbad.util import mtz_util from simbad.mr.refmac_refine import Refmac from pyjob import cexec class SheetBend(object): def __init__(self, hklin, hklout, logfile, pdbin, pdbout, work_dir): self._hklin = None ...
true
true
f70b5bc19f060360f1fc41d6395e3d53e284fb88
8,628
py
Python
sdk/python/pulumi_azure_nextgen/web/web_app_backup_configuration_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/web/web_app_backup_configuration_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/web/web_app_backup_configuration_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
45.650794
779
0.659944
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['WebAppBackupConfigurationSlot'] class WebAppBackupConfigurationSlot(pulumi.CustomResourc...
true
true
f70b5c717242fedb522fc7d4cd4831e8513391c1
67
py
Python
src/python/twitter/common/python/platforms.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
1,143
2015-01-05T04:19:24.000Z
2019-12-11T12:02:23.000Z
src/python/twitter/common/python/platforms.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
144
2015-01-06T05:05:07.000Z
2019-12-12T18:02:37.000Z
src/python/twitter/common/python/platforms.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
426
2015-01-08T08:33:41.000Z
2019-12-09T13:15:40.000Z
from __future__ import absolute_import from pex.platforms import *
22.333333
38
0.850746
from __future__ import absolute_import from pex.platforms import *
true
true
f70b5e01e475801f3975fd465b2281a400b36fda
18,438
py
Python
mmdet3d/datasets/s3dis_dataset.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
95
2021-12-01T07:32:48.000Z
2022-03-11T07:12:32.000Z
mmdet3d/datasets/s3dis_dataset.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
15
2021-12-03T09:56:17.000Z
2022-03-07T13:01:12.000Z
mmdet3d/datasets/s3dis_dataset.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
21
2021-12-02T11:07:55.000Z
2022-03-28T15:25:02.000Z
import numpy as np from os import path as osp from mmdet3d.core import show_result, show_seg_result from mmdet3d.core.bbox import DepthInstance3DBoxes from mmdet.datasets import DATASETS from mmseg.datasets import DATASETS as SEG_DATASETS from .custom_3d import Custom3DDataset from .custom_3d_seg import Custom3DSegDat...
39.822894
83
0.594533
import numpy as np from os import path as osp from mmdet3d.core import show_result, show_seg_result from mmdet3d.core.bbox import DepthInstance3DBoxes from mmdet.datasets import DATASETS from mmseg.datasets import DATASETS as SEG_DATASETS from .custom_3d import Custom3DDataset from .custom_3d_seg import Custom3DSegDat...
true
true
f70b5f2e5d711c4d49dfaaaa08f666f717f97bdc
23,143
py
Python
sympy/core/exprtools.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
2
2015-05-11T12:26:38.000Z
2016-08-19T00:11:03.000Z
sympy/core/exprtools.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
sympy/core/exprtools.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
"""Tools for manipulating of large commutative expressions. """ from sympy.core.add import Add from sympy.core.compatibility import iterable from sympy.core.mul import Mul, _keep_coeff from sympy.core.power import Pow from sympy.core.basic import Basic from sympy.core.expr import Expr from sympy.core.function import e...
31.190027
98
0.535065
from sympy.core.add import Add from sympy.core.compatibility import iterable from sympy.core.mul import Mul, _keep_coeff from sympy.core.power import Pow from sympy.core.basic import Basic from sympy.core.expr import Expr from sympy.core.function import expand_mul from sympy.core.sympify import sympify from sympy.core...
true
true
f70b5f4294a4d2ab507a4a6f16e55b064f90a04c
4,342
py
Python
sawtooth_identity/processor/main.py
STYJ/Sawtooth-Sample-Identity-TP
e1e914215f69a516bf81b98ed5a470134f6bd2aa
[ "Apache-2.0" ]
1
2018-08-14T06:58:46.000Z
2018-08-14T06:58:46.000Z
sawtooth_identity/processor/main.py
STYJ/sawtooth-identity-tp
e1e914215f69a516bf81b98ed5a470134f6bd2aa
[ "Apache-2.0" ]
null
null
null
sawtooth_identity/processor/main.py
STYJ/sawtooth-identity-tp
e1e914215f69a516bf81b98ed5a470134f6bd2aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.145038
80
0.688392
import sys import os import argparse import pkg_resources path = os.path.dirname(os.path.dirname(os.getcwd())) sys.path.append(path) from sawtooth_sdk.processor.core import TransactionProcessor from sawtooth_sdk.processor.log import init_console_logging from sawtooth_sdk.processor.log import log_confi...
true
true
f70b5fcacbe25a93df7d8bed3dc476118eb19b62
464
py
Python
data/scripts/templates/object/draft_schematic/space/shields/shared_adv_deflector_shields.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/space/shields/shared_adv_deflector_shields.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/space/shields/shared_adv_deflector_shields.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/space/shields/shared_adv_deflector_shields.iff" result.att...
27.294118
90
0.734914
true
true
f70b5fe0481a8c9a2817f06ed651a862a7858a27
6,023
py
Python
src/hebphonics/parsers/mechon_mamre_org.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
null
null
null
src/hebphonics/parsers/mechon_mamre_org.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
11
2020-11-20T20:23:00.000Z
2021-01-28T14:23:19.000Z
src/hebphonics/parsers/mechon_mamre_org.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
1
2021-01-01T20:06:01.000Z
2021-01-01T20:06:01.000Z
#!/usr/bin/env python # coding: utf-8 """Download and parse Tanakh from <http://mechon-mamre.org/>. The text is based on the [Aleppo Codex][1]. [1]: https://en.wikipedia.org/wiki/Aleppo_Codex Each book is in a separate HTML file (e.g., `c01.htm`) and contains navigation and textual data. The relevant structure is: ...
30.573604
85
0.546738
from functools import partial from multiprocessing import Queue from pathlib import Path from typing import List import os import re from tqdm import tqdm from . import parse_args, download_unzip, Msg, queuer, spawn_processes, save_database from .. import tokens as T, grammar BOOK_NAMES = { "בראשית": "Genes...
true
true
f70b602fa67e6e8b514ce3156eac1f98c7a45b36
303
py
Python
src/main/resources/docs/tests/R0914.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
src/main/resources/docs/tests/R0914.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
src/main/resources/docs/tests/R0914.py
h314to/codacy-pylint
9d31567db6188e1b31ce0e1567998f64946502df
[ "Apache-2.0" ]
null
null
null
##Patterns: R0914: { "max-locals": "3" } ##Warn: R0914 def doEverything(thing): a = 3 b = 3 c = 3 d = 3 e = 3 f = 3 g = 3 h = 3 i = 3 j = 3 k = 3 l = 3 m = 3 n = 3 o = 3 p = 3 q = 3 r = 3 s = 3 t = 3
12.625
41
0.30363
c = 3 d = 3 e = 3 f = 3 g = 3 h = 3 i = 3 j = 3 k = 3 l = 3 m = 3 n = 3 o = 3 p = 3 q = 3 r = 3 s = 3 t = 3
true
true
f70b604cbbd058238c84f4a1dabfc8279733f7ac
9,038
py
Python
test.py
oscarcx123/MagicTower-Python
14ccf8e811e90adc3c4bc7b225e23dbb79c2d28e
[ "BSD-3-Clause" ]
36
2019-07-26T09:19:28.000Z
2022-02-20T07:14:50.000Z
test.py
oscarcx123/MagicTower-Python
14ccf8e811e90adc3c4bc7b225e23dbb79c2d28e
[ "BSD-3-Clause" ]
1
2019-02-03T01:51:46.000Z
2019-02-03T01:51:46.000Z
test.py
oscarcx123/MagicTower-Python
14ccf8e811e90adc3c4bc7b225e23dbb79c2d28e
[ "BSD-3-Clause" ]
11
2019-02-02T13:49:26.000Z
2022-03-09T13:25:41.000Z
# 作为新框架测试用 import pygame import os import json import platform import ctypes from sysconf import * pygame.init() # 如果是Windows系统,在游戏中禁用显示缩放 # 注:通常高分屏用户在使用Windows系统时,都会把缩放调到100%以上,否则会瞎眼。 # 例如1920*1080屏幕,Windows推荐的缩放率就是125%。 # 这样会导致游戏窗口被严重放大,造成一部分游戏画面处在任务栏下方。 # 然而,在Linux系统下并没有这问题,所以这里只判定是否为Windows。 if platform.system()...
35.167315
105
0.700929
import pygame import os import json import platform import ctypes from sysconf import * pygame.init() if platform.system() == "Windows": ctypes.windll.user32.SetProcessDPIAware() screen = pygame.display.set_mode([WIDTH, HEIGHT]) pygame.display.set_caption(TOWER_NAME) from lib.utools import * from lib ...
true
true
f70b6058884bd02f5b51d29c0313f747701475ac
11,761
py
Python
docs/tests.py
dineshsonachalam/djangoproject.com
4fff6b48be275f97b060ce05de0e55e453a1b5f9
[ "BSD-3-Clause" ]
null
null
null
docs/tests.py
dineshsonachalam/djangoproject.com
4fff6b48be275f97b060ce05de0e55e453a1b5f9
[ "BSD-3-Clause" ]
null
null
null
docs/tests.py
dineshsonachalam/djangoproject.com
4fff6b48be275f97b060ce05de0e55e453a1b5f9
[ "BSD-3-Clause" ]
null
null
null
import datetime import os from http import HTTPStatus from operator import attrgetter from pathlib import Path from django.conf import settings from django.contrib.sites.models import Site from django.template import Context, Template from django.test import TestCase from django.urls import reverse, set_urlconf from ...
36.299383
116
0.590426
import datetime import os from http import HTTPStatus from operator import attrgetter from pathlib import Path from django.conf import settings from django.contrib.sites.models import Site from django.template import Context, Template from django.test import TestCase from django.urls import reverse, set_urlconf from ...
true
true
f70b61cb8859600b367959872158a264f1e91bc4
1,215
py
Python
data/cal_mean_std.py
PaulTHong/STDA-inf
3d87a7843f879d17a343ba4838caa1f58f1e8e65
[ "MIT" ]
1
2022-02-21T04:44:09.000Z
2022-02-21T04:44:09.000Z
data/cal_mean_std.py
PaulTHong/STDA-inf
3d87a7843f879d17a343ba4838caa1f58f1e8e65
[ "MIT" ]
null
null
null
data/cal_mean_std.py
PaulTHong/STDA-inf
3d87a7843f879d17a343ba4838caa1f58f1e8e65
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os mean = [] std = [] img_list = [] dir_path = './STL10-data/train' class_paths = os.listdir(dir_path) print(class_paths) for cls in class_paths: img_paths = os.listdir(dir_path + os.sep + cls) print(len(img_paths)) for img_path in img_paths: print(img_path) ...
22.924528
64
0.635391
import numpy as np import cv2 import os mean = [] std = [] img_list = [] dir_path = './STL10-data/train' class_paths = os.listdir(dir_path) print(class_paths) for cls in class_paths: img_paths = os.listdir(dir_path + os.sep + cls) print(len(img_paths)) for img_path in img_paths: print(img_path) ...
true
true
f70b63460b6e1920a8ab199d2d897323b063d66c
1,676
py
Python
benchmark/startPyquil1973.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil1973.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil1973.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=31 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += X(3) # number=1 prog...
24.647059
64
0.569212
import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() prog += X(3) prog += H(1) prog += H(2) prog += H(3) prog +=...
true
true
f70b6484fd5c367040bd21c68df6b4ceaf51dcfa
42
py
Python
libpysal/io/geotable/__init__.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/geotable/__init__.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/geotable/__init__.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
from .file import read_files, write_files
21
41
0.833333
from .file import read_files, write_files
true
true
f70b6582958899d7a3048c74fd9764f38a1ce5a8
7,444
py
Python
neutron_vpnaas/tests.skip/unit/services/vpn/test_vpnaas_driver_plugin.py
citrix-openstack-build/neutron-vpnaas
d1ee6923425eca52f400a2de23d1541f16568c2b
[ "Apache-2.0" ]
null
null
null
neutron_vpnaas/tests.skip/unit/services/vpn/test_vpnaas_driver_plugin.py
citrix-openstack-build/neutron-vpnaas
d1ee6923425eca52f400a2de23d1541f16568c2b
[ "Apache-2.0" ]
null
null
null
neutron_vpnaas/tests.skip/unit/services/vpn/test_vpnaas_driver_plugin.py
citrix-openstack-build/neutron-vpnaas
d1ee6923425eca52f400a2de23d1541f16568c2b
[ "Apache-2.0" ]
null
null
null
# Copyright 2013, Nachi Ueno, NTT I3, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
45.950617
79
0.569183
import contextlib import mock from neutron.common import constants from neutron import context from neutron import manager from neutron.plugins.common import constants as p_constants from neutron.tests.unit.db.vpn import test_db_vpnaas from neutron.tests.unit.openvswitch import test_agent_scheduler from...
true
true
f70b65d7b3654b248db969d72b0a41b9332d19db
14,122
py
Python
utils/sp6_bitstream_analyzer.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
583
2017-12-21T11:06:13.000Z
2022-02-20T21:27:33.000Z
utils/sp6_bitstream_analyzer.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
1,212
2017-12-22T15:05:06.000Z
2022-02-19T13:04:59.000Z
utils/sp6_bitstream_analyzer.py
mfkiwl/prjxray-xilinx-7-bitstream-fortmat
5349556bc2c230801d6df0cf11bccb9cfd171639
[ "ISC" ]
134
2017-12-21T10:16:50.000Z
2022-02-16T06:42:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC ''' Spartan 6 bitstream analyzer tool...
32.539171
78
0.522518
import argparse from io import StringIO conf_regs = { 0: "CRC", 1: "FAR_MAJ", 2: "FAR_MIN", 3: "FDRI", 4: "FDRO", 5: "CMD", 6: "CTL", 7: "MASK", 8: "STAT", 9: "LOUT", 10: "COR1", 11: "COR2", 12: "PWRDN_REG", 13: "FLR", 14: "IDCODE", 15: "CWDT",...
true
true
f70b669356f7538feec576b7756d8e12924a4c88
2,257
py
Python
code-samples/language/v1/python/analyze_entities_request_language_entities_text.py
tswast/gapic-docs-samples
16976b148fb6eb53a8a685d475dcdb713ceb9e60
[ "Apache-2.0" ]
null
null
null
code-samples/language/v1/python/analyze_entities_request_language_entities_text.py
tswast/gapic-docs-samples
16976b148fb6eb53a8a685d475dcdb713ceb9e60
[ "Apache-2.0" ]
null
null
null
code-samples/language/v1/python/analyze_entities_request_language_entities_text.py
tswast/gapic-docs-samples
16976b148fb6eb53a8a685d475dcdb713ceb9e60
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
30.093333
80
0.712893
import sys from google.cloud import language_v1 from google.cloud.language_v1 import enums from google.cloud.language_v1 import enums import six def sample_analyze_entities(text_content): client = language_v1.LanguageServiceClient() if isinstance(text_content, six.binary_...
true
true
f70b671c221dafd94c7b178303d0f5d51c443463
2,771
py
Python
py/_error.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2016-07-06T23:30:20.000Z
2017-05-30T15:59:31.000Z
py/_error.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
py/_error.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
2
2020-07-09T08:14:22.000Z
2021-01-15T18:01:25.000Z
""" create errno-specific classes for IO or os calls. """ import sys, os, errno class Error(EnvironmentError): def __repr__(self): return "%s.%s %r: %s " %(self.__class__.__module__, self.__class__.__name__, self.__class__.__doc__, ...
31.850575
75
0.517864
import sys, os, errno class Error(EnvironmentError): def __repr__(self): return "%s.%s %r: %s " %(self.__class__.__module__, self.__class__.__name__, self.__class__.__doc__, " ".join(map(str, self.args)), ...
true
true
f70b6764a0549b85ceff5a1d7d0f64159ca92887
4,806
py
Python
opencv/sources/modules/dnn/test/cityscapes_semsegm_test_enet.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/dnn/test/cityscapes_semsegm_test_enet.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/dnn/test/cityscapes_semsegm_test_enet.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
import numpy as np import sys import os import fnmatch import argparse try: import cv2 as cv except ImportError: raise ImportError('Can\'t find OpenCV Python module. If you\'ve built it from sources without installation, ' 'configure environment variable PYTHONPATH to "opencv_bu...
34.085106
145
0.615689
import numpy as np import sys import os import fnmatch import argparse try: import cv2 as cv except ImportError: raise ImportError('Can\'t find OpenCV Python module. If you\'ve built it from sources without installation, ' 'configure environment variable PYTHONPATH to "opencv_bu...
true
true
f70b677ef4defae6580fc8ce081c318d2bf035c9
7,857
py
Python
workflow/scripts/hebrew/build_hebrew_tables.py
CambridgeSemiticsLab/translation_traditions_HB
8f2c4d263cc5dc1542184343a384b44bf705770d
[ "MIT" ]
2
2020-11-30T06:34:10.000Z
2021-11-16T14:16:24.000Z
workflow/scripts/hebrew/build_hebrew_tables.py
CambridgeSemiticsLab/Gesenius_data
8f2c4d263cc5dc1542184343a384b44bf705770d
[ "MIT" ]
null
null
null
workflow/scripts/hebrew/build_hebrew_tables.py
CambridgeSemiticsLab/Gesenius_data
8f2c4d263cc5dc1542184343a384b44bf705770d
[ "MIT" ]
null
null
null
import re import sys import csv import json import pickle import collections from pathlib import Path from tf.fabric import Fabric from book_formats import get_book_maps, etcbc2sbl, etcbc2abbr from verb_form import get_verbform, get_cl_verbform from modify_domain import permissive_q from synvar_carc import in_dep_calc ...
34.012987
92
0.616393
import re import sys import csv import json import pickle import collections from pathlib import Path from tf.fabric import Fabric from book_formats import get_book_maps, etcbc2sbl, etcbc2abbr from verb_form import get_verbform, get_cl_verbform from modify_domain import permissive_q from synvar_carc import in_dep_calc ...
true
true
f70b67b26a39bfb74bdcfdb0a3cd91faaca8a144
984
py
Python
PyShooter/enemies/zigzagenemy.py
ildave/PyShooter
ff04fcbcbd144a6959b291fe5242afff6d616eaa
[ "MIT" ]
null
null
null
PyShooter/enemies/zigzagenemy.py
ildave/PyShooter
ff04fcbcbd144a6959b291fe5242afff6d616eaa
[ "MIT" ]
null
null
null
PyShooter/enemies/zigzagenemy.py
ildave/PyShooter
ff04fcbcbd144a6959b291fe5242afff6d616eaa
[ "MIT" ]
null
null
null
import pygame import random import math import enemies.enemy class ZigZagEnemy(enemies.enemy.Enemy): def __init__(self, game): super().__init__(game) self.timer = self.game.getRepeateTimer() self.timer.duration = 3000 self.timer.action = self.changeAngle def changeAngle(self): ...
28.114286
64
0.575203
import pygame import random import math import enemies.enemy class ZigZagEnemy(enemies.enemy.Enemy): def __init__(self, game): super().__init__(game) self.timer = self.game.getRepeateTimer() self.timer.duration = 3000 self.timer.action = self.changeAngle def changeAngle(self): ...
true
true
f70b6a6e97aabeec0b3ae86dcf3cfa2a57216dff
4,559
py
Python
mmhelper/output.py
jmetz/momanalysis
8d71490c99127568b184784890258e9a6ef876ef
[ "MIT" ]
null
null
null
mmhelper/output.py
jmetz/momanalysis
8d71490c99127568b184784890258e9a6ef876ef
[ "MIT" ]
3
2019-07-25T13:43:15.000Z
2019-11-04T12:39:22.000Z
mmhelper/output.py
jmetz/momanalysis
8d71490c99127568b184784890258e9a6ef876ef
[ "MIT" ]
1
2021-03-28T03:00:21.000Z
2021-03-28T03:00:21.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jan 09 09:59:13 2017 @author: as624 """ import csv import os import matplotlib.pyplot as plt import numpy as np def output_detection_figures( image, wells, bacteria, timeindex, output_dir): """ Produces and saves figures showing the output from the detection ...
36.18254
85
0.611976
import csv import os import matplotlib.pyplot as plt import numpy as np def output_detection_figures( image, wells, bacteria, timeindex, output_dir): plt.figure(figsize=(16, 12)) plt.imshow(image, cmap='gray') plt.contour(wells > 0, levels=[0.5], colors=['y']) for lab_bac in range(1,...
true
true
f70b6cc1626bd36f34f787aa2d060e18f5411270
2,294
py
Python
packit_service/service/api/installations.py
FalseG0d/packit-service
03f840cdfbcc129582a2ec2a20f069c85fea0c56
[ "MIT" ]
1
2020-03-28T13:57:08.000Z
2020-03-28T13:57:08.000Z
packit_service/service/api/installations.py
FalseG0d/packit-service
03f840cdfbcc129582a2ec2a20f069c85fea0c56
[ "MIT" ]
null
null
null
packit_service/service/api/installations.py
FalseG0d/packit-service
03f840cdfbcc129582a2ec2a20f069c85fea0c56
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge...
39.551724
87
0.745423
from http import HTTPStatus from logging import getLogger try: from flask_restx import Namespace, Resource except ModuleNotFoundError: from flask_restplus import Namespace, Resource from packit_service.service.events import Event from packit_service.service.models import Installation log...
true
true
f70b6e0a29deb0c4886c21ece0571ca190b3699c
33,970
py
Python
src/characterization/cycle_period_length_analysis.py
iurteaga/menstrual_cycle_analysis
799c7cb59d759e0c3929164bccdc5c7ce80324d0
[ "MIT" ]
5
2020-03-05T23:30:26.000Z
2022-02-27T18:16:23.000Z
src/characterization/cycle_period_length_analysis.py
iurteaga/menstrual_cycle_analysis
799c7cb59d759e0c3929164bccdc5c7ce80324d0
[ "MIT" ]
null
null
null
src/characterization/cycle_period_length_analysis.py
iurteaga/menstrual_cycle_analysis
799c7cb59d759e0c3929164bccdc5c7ce80324d0
[ "MIT" ]
2
2021-03-26T19:56:51.000Z
2021-12-22T02:26:14.000Z
#!/usr/bin/python # Imports import sys, os, re, time import argparse import pdb import pickle from itertools import * # Science import numpy as np import scipy.stats as stats import pandas as pd # Plotting import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib import colors from mpl_to...
55.325733
257
0.68222
import sys, os, re, time import argparse import pdb import pickle from itertools import * import numpy as np import scipy.stats as stats import pandas as pd import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib import colors from mpl_toolkits.mplot3d import Axes3D lim3d(10,90) ...
true
true
f70b6edc5aee3ac2d67c6163cc07e8550165c5db
4,030
py
Python
cmpy/disorder.py
dylanljones/cmpy
21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c
[ "MIT" ]
2
2021-11-17T13:39:37.000Z
2021-12-14T09:30:57.000Z
cmpy/disorder.py
dylanljones/cmpy
21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c
[ "MIT" ]
null
null
null
cmpy/disorder.py
dylanljones/cmpy
21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c
[ "MIT" ]
null
null
null
# coding: utf-8 # # This code is part of cmpy. # # Copyright (c) 2022, Dylan Jones """This module contains methods for modeling disorder.""" import numpy as np from typing import Union, Sequence def create_subst_array( size: int, values: Sequence[float], conc: Union[float, Sequence[float]] ) -> np.ndarray: ...
28.181818
88
0.600744
import numpy as np from typing import Union, Sequence def create_subst_array( size: int, values: Sequence[float], conc: Union[float, Sequence[float]] ) -> np.ndarray: if isinstance(conc, float): conc = [conc, 1 - conc] if sum(conc) != 1: raise ValueError("Fractions have to add ...
true
true
f70b708bbdac7d2781674c92fd8e90e059902171
3,501
py
Python
bindings/python/ensmallen/datasets/string/sphingomonashankookensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/sphingomonashankookensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/sphingomonashankookensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Sphingomonas hankookensis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--prot...
33.342857
223
0.680377
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen import Graph def SphingomonasHankookensis( directed: bool = False, preprocess: bool = True, load_nodes: bool = True, verbose: int = 2, cache: bool = True, cache_path: str = "graphs/...
true
true
f70b70c4057ddb22121863cfd747a26613e1e6ec
4,612
py
Python
tests/test_coords.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
tests/test_coords.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
tests/test_coords.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
46.12
88
0.670425
import unittest import numpy import coords import go from tests import test_utils class TestCoords(test_utils.MiniGoUnitTest): def test_upperleft(self): self.assertEqual(coords.parse_sgf_coords('aa'), (0, 0)) self.assertEqual(coords.unflatten_coords(0), (0, 0)) self.assertEqu...
true
true
f70b7227b620424d036d27f17a1cc64db679149c
4,193
py
Python
src/plugins/test_plugin_2/__init__.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
3
2018-08-24T10:48:40.000Z
2020-05-29T06:33:23.000Z
src/plugins/test_plugin_2/__init__.py
ShizhuZhang/Ontask_b_zh
ca4526871f26e7153b724b1e97b922a0b52f75d6
[ "MIT" ]
null
null
null
src/plugins/test_plugin_2/__init__.py
ShizhuZhang/Ontask_b_zh
ca4526871f26e7153b724b1e97b922a0b52f75d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import pandas as pd # The field class_name contains the name of the class to load to execute the # plugin. class_name = 'OntaskTestPlugin' class OntaskTestPlugin(object): """ Example of a class that implements the OnTask plugin ...
39.933333
80
0.632721
from __future__ import unicode_literals, print_function import pandas as pd class_name = 'OntaskTestPlugin' class OntaskTestPlugin(object): def __init__(self): self.name = 'Test Plungin 2 Name' self.description_txt = 'Test Plugin 2 Description Text' self.input_column_names = ['A1', '...
true
true
f70b72e4d5f4604427e2f7259e15eaf0fc83e22f
3,735
py
Python
strawberry_wagtail/stream_field.py
patrick91/strawberry-wagtail
cfb94cd09be32dc720bda2d366aa8824f7d3ea5c
[ "MIT" ]
22
2022-03-25T08:32:04.000Z
2022-03-31T03:01:49.000Z
strawberry_wagtail/stream_field.py
patrick91/strawberry-wagtail
cfb94cd09be32dc720bda2d366aa8824f7d3ea5c
[ "MIT" ]
6
2022-03-25T03:32:03.000Z
2022-03-25T15:21:20.000Z
strawberry_wagtail/stream_field.py
patrick91/strawberry-wagtail
cfb94cd09be32dc720bda2d366aa8824f7d3ea5c
[ "MIT" ]
null
null
null
import dataclasses from typing import Any, Callable, List, Optional, Type from wagtail.core.blocks.field_block import CharBlock, FieldBlock, RichTextBlock from wagtail.core.blocks.stream_block import StreamBlock from wagtail.core.fields import StreamField from wagtail.images.blocks import ImageChooserBlock import str...
27.463235
84
0.672825
import dataclasses from typing import Any, Callable, List, Optional, Type from wagtail.core.blocks.field_block import CharBlock, FieldBlock, RichTextBlock from wagtail.core.blocks.stream_block import StreamBlock from wagtail.core.fields import StreamField from wagtail.images.blocks import ImageChooserBlock import str...
true
true
f70b734b40b8db78f6f6d0cfd6df74f70c01ab5f
804
py
Python
irs990/manage.py
jsfenfen/irs990_admin
40eae9e04af35f0b047b4e85b0cb41ef294a3eeb
[ "Apache-2.0" ]
null
null
null
irs990/manage.py
jsfenfen/irs990_admin
40eae9e04af35f0b047b4e85b0cb41ef294a3eeb
[ "Apache-2.0" ]
5
2018-04-11T20:46:48.000Z
2020-04-28T11:57:06.000Z
irs990/manage.py
jsfenfen/irs990_admin
40eae9e04af35f0b047b4e85b0cb41ef294a3eeb
[ "Apache-2.0" ]
5
2018-04-10T21:34:01.000Z
2020-09-29T17:47:21.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "irs990.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.956522
77
0.641791
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "irs990.settings") try: from django.core.management import execute_from_command_line except ImportError: try: import django except ImportError: ...
true
true
f70b7393759e8c5f2fac7b50ef3572a46caf23c7
3,806
py
Python
data/import.py
greencoder/shipwrecksproject
d06c0cc40ec3cf0dbf287a2da3ad6992100f4ce6
[ "MIT" ]
null
null
null
data/import.py
greencoder/shipwrecksproject
d06c0cc40ec3cf0dbf287a2da3ad6992100f4ce6
[ "MIT" ]
null
null
null
data/import.py
greencoder/shipwrecksproject
d06c0cc40ec3cf0dbf287a2da3ad6992100f4ce6
[ "MIT" ]
null
null
null
import django import json import os import sys # Make sure we can see the parent directory to import sys.path.append('../') os.environ['DJANGO_SETTINGS_MODULE'] = 'shipwrecks.settings' # Make sure Django is set up django.setup() # Now we can import our Django model(s) from wrecks.models import Wreck from wrecks.mode...
33.095652
84
0.596164
import django import json import os import sys sys.path.append('../') os.environ['DJANGO_SETTINGS_MODULE'] = 'shipwrecks.settings' django.setup() from wrecks.models import Wreck from wrecks.models import WreckType from wrecks.models import SOURCE_CHOICES from django.contrib.gis.geos import Point from django.con...
false
true
f70b74bcb3342cafe7f11ffe27d5eb119c2c1352
23,631
py
Python
examples/FasterRCNN/train.py
bzamecnik/tensorpack
e9a3c2b3cd441e5b288607b44f2fe44fbf3ad4bb
[ "Apache-2.0" ]
null
null
null
examples/FasterRCNN/train.py
bzamecnik/tensorpack
e9a3c2b3cd441e5b288607b44f2fe44fbf3ad4bb
[ "Apache-2.0" ]
null
null
null
examples/FasterRCNN/train.py
bzamecnik/tensorpack
e9a3c2b3cd441e5b288607b44f2fe44fbf3ad4bb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: train.py import argparse import itertools import numpy as np import os import shutil import cv2 import six assert six.PY3, "FasterRCNN requires Python 3!" import tensorflow as tf import tqdm import tensorpack.utils.viz as tpviz from tensorpack import * from tensor...
45.183556
116
0.636791
import argparse import itertools import numpy as np import os import shutil import cv2 import six assert six.PY3, "FasterRCNN requires Python 3!" import tensorflow as tf import tqdm import tensorpack.utils.viz as tpviz from tensorpack import * from tensorpack.tfutils import optimizer, collect_env_info from tensorp...
true
true
f70b75434414c84f9bbb1cf2d7b60ad9a8239b4c
3,882
py
Python
sdk/python/pulumi_azure_nextgen/eventgrid/latest/get_domain_topic.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/eventgrid/latest/get_domain_topic.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/eventgrid/latest/get_domain_topic.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
34.660714
188
0.657908
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetDomainTopicResult', 'AwaitableGetDomainTopicResult', 'get_domain_topic', ] warnings.warn("""The 'latest' version is deprecated. Please migr...
true
true
f70b75ad57c09c88cd88ad107f911048b4df0d20
11,050
bzl
Python
bazel/grpc_build_system.bzl
EnergySRE/grpc
0bf1c34237f8cd8d0b37673b2af17b1c410fcc9e
[ "Apache-2.0" ]
null
null
null
bazel/grpc_build_system.bzl
EnergySRE/grpc
0bf1c34237f8cd8d0b37673b2af17b1c410fcc9e
[ "Apache-2.0" ]
null
null
null
bazel/grpc_build_system.bzl
EnergySRE/grpc
0bf1c34237f8cd8d0b37673b2af17b1c410fcc9e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
31.126761
253
0.549864
# the BUILD file for gRPC. It contains the mapping for the template system we # use to generate other platform's build system files. # each change must be ported from one to the other. # load("//bazel:cc_grpc_library.bzl", "cc_grpc_library") load("@upb//bazel:upb_proto_library.bzl", "upb_proto_libr...
true
true
f70b75fafa63025b402d17cbd62623efb90964dc
813
py
Python
test/test_misc.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
null
null
null
test/test_misc.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
null
null
null
test/test_misc.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
1
2019-05-12T13:20:31.000Z
2019-05-12T13:20:31.000Z
import os.path import sys from nose.tools import assert_raises from cx_Freeze.common import ConfigError, process_path_specs rootdir = "C:\\" if sys.platform == "win32" else "/" def test_process_path_specs(): inp = [ os.path.join(rootdir, "foo", "bar"), (os.path.join(rootdir, "foo", "qux"), os.p...
26.225806
74
0.606396
import os.path import sys from nose.tools import assert_raises from cx_Freeze.common import ConfigError, process_path_specs rootdir = "C:\\" if sys.platform == "win32" else "/" def test_process_path_specs(): inp = [ os.path.join(rootdir, "foo", "bar"), (os.path.join(rootdir, "foo", "qux"), os.p...
true
true
f70b77fb0efe1cafb20ffc7d735e9eb9e9f2742d
2,768
py
Python
st_plugins/preview.py
Odyseus/MarkdownEditingFork
13ced60c99042ffca7a91549606c616a7a603c20
[ "MIT" ]
null
null
null
st_plugins/preview.py
Odyseus/MarkdownEditingFork
13ced60c99042ffca7a91549606c616a7a603c20
[ "MIT" ]
null
null
null
st_plugins/preview.py
Odyseus/MarkdownEditingFork
13ced60c99042ffca7a91549606c616a7a603c20
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import webbrowser import sublime import sublime_plugin from . import MDETextCommand from . import plugin_name from . import settings from python_utils.misc_utils import get_system_tempdir from python_utils.mistune_utils import md from python_utils.sublime_text_util...
28.833333
96
0.680275
import os import webbrowser import sublime import sublime_plugin from . import MDETextCommand from . import plugin_name from . import settings from python_utils.misc_utils import get_system_tempdir from python_utils.mistune_utils import md from python_utils.sublime_text_utils.utils import get_file_path from python_...
true
true
f70b7841faae47aa58d61ae0fc8a4215d631a15e
5,270
py
Python
data/scraper.py
hmartelb/meme-search
2042678b3a7252ba00699e7a0618aafdf2059465
[ "MIT" ]
3
2021-06-15T17:29:32.000Z
2021-06-18T20:02:55.000Z
data/scraper.py
hmartelb/meme-search
2042678b3a7252ba00699e7a0618aafdf2059465
[ "MIT" ]
null
null
null
data/scraper.py
hmartelb/meme-search
2042678b3a7252ba00699e7a0618aafdf2059465
[ "MIT" ]
null
null
null
import json import time import os import pandas as pd import requests from bs4 import BeautifulSoup from tqdm import tqdm def process_9gag(args): fetched_memes = [] errors = 0 # for i in tqdm(range(args.)) pass def process_me_dot_me(args): pass def templates_imgflip(args): args.source_url =...
36.09589
158
0.563567
import json import time import os import pandas as pd import requests from bs4 import BeautifulSoup from tqdm import tqdm def process_9gag(args): fetched_memes = [] errors = 0 pass def process_me_dot_me(args): pass def templates_imgflip(args): args.source_url = "https://imgflip.com/memetem...
true
true
f70b78cf3d193ad5a49b7e2c944da33196938d26
39,984
py
Python
stubs.min/System/__init___parts/Array.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/__init___parts/Array.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/__init___parts/Array.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class Array(object,ICloneable,IList,ICollection,IEnumerable,IStructuralComparable,IStructuralEquatable): """ Provides methods for creating,manipulating,searching,and sorting arrays,thereby serving as the base class for all arrays in the common language runtime. """ @staticmethod def AsReadOnly(array): """ AsRe...
42.993548
617
0.702131
class Array(object,ICloneable,IList,ICollection,IEnumerable,IStructuralComparable,IStructuralEquatable): @staticmethod def AsReadOnly(array): pass @staticmethod def BinarySearch(array,*__args): must be between zero and System.Int32.MaxValue,inclusive. Copy(sourceArray: Array,destinationArray: A...
true
true
f70b78fe961ac969ab87dde5b0b394f97850c561
1,589
py
Python
test/test_worksheet.py
adrianturcato/document-api-python
a9b69fa83210172c9302b57f5f5cd4dfa7e9d1c5
[ "MIT" ]
null
null
null
test/test_worksheet.py
adrianturcato/document-api-python
a9b69fa83210172c9302b57f5f5cd4dfa7e9d1c5
[ "MIT" ]
null
null
null
test/test_worksheet.py
adrianturcato/document-api-python
a9b69fa83210172c9302b57f5f5cd4dfa7e9d1c5
[ "MIT" ]
null
null
null
import os.path import unittest import hashlib from tableaudocumentapi import Workbook TEST_ASSET_DIR = os.path.join( os.path.dirname(__file__), 'assets' ) TEST_TWB_FILE = os.path.join( TEST_ASSET_DIR, 'group_test.twb' ) TEST_TWB_FILE2 = os.path.join( TEST_ASSET_DIR, 'add_user_filter_test.twb...
30.557692
131
0.71995
import os.path import unittest import hashlib from tableaudocumentapi import Workbook TEST_ASSET_DIR = os.path.join( os.path.dirname(__file__), 'assets' ) TEST_TWB_FILE = os.path.join( TEST_ASSET_DIR, 'group_test.twb' ) TEST_TWB_FILE2 = os.path.join( TEST_ASSET_DIR, 'add_user_filter_test.twb...
true
true
f70b7a68b18379e63dccf55607bdb8100c19a3f3
2,639
py
Python
exercicio-4.py
AnielliRosane/lista-ser347
61a8ac8f675dc0ec05f45408c54e9d3a0e515ff4
[ "MIT" ]
null
null
null
exercicio-4.py
AnielliRosane/lista-ser347
61a8ac8f675dc0ec05f45408c54e9d3a0e515ff4
[ "MIT" ]
null
null
null
exercicio-4.py
AnielliRosane/lista-ser347
61a8ac8f675dc0ec05f45408c54e9d3a0e515ff4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Lista de exercicio 06 # Exercicio 4 # importando as bibliotecas import matplotlib as plt import matplotlib.pyplot as plt import numpy as np # informacoes da tabela relativas aos dados masculino e feminino (IBGE) idade = np.array( ["0 a 4 anos", "5 a 9 anos", "10 a 14 anos", "15 a 19 ...
35.662162
120
0.678287
import matplotlib as plt import matplotlib.pyplot as plt import numpy as np idade = np.array( ["0 a 4 anos", "5 a 9 anos", "10 a 14 anos", "15 a 19 anos", "20 a 24 anos", "25 a 29 anos", "30 a 34 anos", "35 a 39 anos", "40 a 44 anos", "45 a 49 anos", "50 a 54 anos", "55 a 59 anos", "60 a 64 ano...
true
true
f70b7a9deb9229cf2e91e60271efe0589b08ae67
295
py
Python
projetos em python/exercicio8.py
gustavo621/projetos-em-python
4797ae7226a2c4a628dd0cd746e7bc3050b72f04
[ "MIT" ]
null
null
null
projetos em python/exercicio8.py
gustavo621/projetos-em-python
4797ae7226a2c4a628dd0cd746e7bc3050b72f04
[ "MIT" ]
null
null
null
projetos em python/exercicio8.py
gustavo621/projetos-em-python
4797ae7226a2c4a628dd0cd746e7bc3050b72f04
[ "MIT" ]
null
null
null
metros = int(input("uma distância em metro: ")) print("A medida de {}m corresponde a".format()) print("{}km".format(metros/1000)) print("{}hm".format(metros/100)) print("{}dam".format(metros/10)) print("{}dm".format(metros*10)) print("{}cm".format(metros*100)) print("{}mm".format(metros*1000))
32.777778
47
0.674576
metros = int(input("uma distância em metro: ")) print("A medida de {}m corresponde a".format()) print("{}km".format(metros/1000)) print("{}hm".format(metros/100)) print("{}dam".format(metros/10)) print("{}dm".format(metros*10)) print("{}cm".format(metros*100)) print("{}mm".format(metros*1000))
true
true
f70b7b226b60ffaa1edf1653d8ef3f8943d4f01f
9,614
py
Python
python_modules/dagster-airflow/dagster_airflow_tests/test_factory.py
rparrapy/dagster
453ebedb326eae48b5f8fa2a4a3811d94629dc6e
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow_tests/test_factory.py
rparrapy/dagster
453ebedb326eae48b5f8fa2a4a3811d94629dc6e
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow_tests/test_factory.py
rparrapy/dagster
453ebedb326eae48b5f8fa2a4a3811d94629dc6e
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import uuid from airflow.exceptions import AirflowSkipException from dagster_airflow.factory import AIRFLOW_MAX_DAG_NAME_LEN, _rename_for_airflow from dagster_airflow.test_fixtures import ( # pylint: disable=unused-import dagster_airflow_docker_operator_pipeline,...
36.976923
98
0.741939
from __future__ import unicode_literals import os import uuid from airflow.exceptions import AirflowSkipException from dagster_airflow.factory import AIRFLOW_MAX_DAG_NAME_LEN, _rename_for_airflow from dagster_airflow.test_fixtures import ( dagster_airflow_docker_operator_pipeline, dagster_airflow_k8s_operat...
true
true
f70b7c4882be3566aec8efefe1b2fcf666fad2ae
83
py
Python
symbolator/corpus/__init__.py
buildsi/symbolator
4af830082d994d5a6d899189ac8e6dd236332ac9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-11-09T09:14:27.000Z
2021-11-09T17:16:56.000Z
symbolator/corpus/__init__.py
buildsi/symbolator
4af830082d994d5a6d899189ac8e6dd236332ac9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-06-19T17:19:12.000Z
2021-10-31T19:51:50.000Z
symbolator/corpus/__init__.py
buildsi/symbolator
4af830082d994d5a6d899189ac8e6dd236332ac9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
from .elf import Corpus from .base import CorpusBase, JsonCorpus, JsonCorpusLoader
27.666667
58
0.831325
from .elf import Corpus from .base import CorpusBase, JsonCorpus, JsonCorpusLoader
true
true
f70b7d0d3c8ecc6b25400f485bf3ddd85c3790e5
759
py
Python
Demos/Distancias_ocurrencias.py
TheReverseWasp/TBD_TF-IDF_with_Google_Corpus
92e60148f625cf0be0300b60e3e09b553f96b7df
[ "MIT" ]
null
null
null
Demos/Distancias_ocurrencias.py
TheReverseWasp/TBD_TF-IDF_with_Google_Corpus
92e60148f625cf0be0300b60e3e09b553f96b7df
[ "MIT" ]
null
null
null
Demos/Distancias_ocurrencias.py
TheReverseWasp/TBD_TF-IDF_with_Google_Corpus
92e60148f625cf0be0300b60e3e09b553f96b7df
[ "MIT" ]
null
null
null
import json import re import spacy import enchant import copy as cp sp = spacy.load('en_core_web_sm') def lemmatize_this(str_word): return sp(str_word)[0] def main(): while True: print("Ingrese la Palabra: ") word = input() word = str(lemmatize_this(word)) try: wit...
24.483871
91
0.541502
import json import re import spacy import enchant import copy as cp sp = spacy.load('en_core_web_sm') def lemmatize_this(str_word): return sp(str_word)[0] def main(): while True: print("Ingrese la Palabra: ") word = input() word = str(lemmatize_this(word)) try: wit...
true
true
f70b7fd4259e0ee06d7ecf1c652c7a551b8fef2a
37,041
py
Python
ep8/basic.py
Eli-pixel/py-myopl-code
babfbdec2b9bcb057ccc38424d81efaaf8b719b6
[ "MIT" ]
325
2019-05-16T17:48:57.000Z
2022-03-31T05:57:49.000Z
ep8/basic.py
Eli-pixel/py-myopl-code
babfbdec2b9bcb057ccc38424d81efaaf8b719b6
[ "MIT" ]
18
2020-03-11T22:03:12.000Z
2022-03-07T20:23:09.000Z
ep8/basic.py
Eli-pixel/py-myopl-code
babfbdec2b9bcb057ccc38424d81efaaf8b719b6
[ "MIT" ]
359
2019-05-16T17:49:06.000Z
2022-03-31T09:57:46.000Z
####################################### # IMPORTS ####################################### from strings_with_arrows import * import string ####################################### # CONSTANTS ####################################### DIGITS = '0123456789' LETTERS = string.ascii_letters LETTERS_DIGITS = LETTERS + DIGITS...
26.307528
115
0.682136
ll(self): res = ParseResult() atom = res.register(self.atom()) if res.error: return res if self.current_tok.type == TT_LPAREN: res.register_advancement() self.advance() arg_nodes = [] if self.current_tok.type == TT_RPAREN: res.register_advancement() self.advance() else: arg_nodes.ap...
true
true
f70b80aef77d272ca54798b4da68fcd06046255f
2,174
py
Python
config/project.py
veltzer/pyapikey
4e7ea6d5a74263f76fc344489581f03818eb57c6
[ "MIT" ]
null
null
null
config/project.py
veltzer/pyapikey
4e7ea6d5a74263f76fc344489581f03818eb57c6
[ "MIT" ]
null
null
null
config/project.py
veltzer/pyapikey
4e7ea6d5a74263f76fc344489581f03818eb57c6
[ "MIT" ]
null
null
null
import pyclassifiers.values import config.general import config.helpers project_github_username = "veltzer" project_name = "pyapikey" github_repo_name = project_name project_website = f"https://{project_github_username}.github.io/{project_name}" project_website_source = f"https://github.com/{project_github_username}/...
41.018868
109
0.832107
import pyclassifiers.values import config.general import config.helpers project_github_username = "veltzer" project_name = "pyapikey" github_repo_name = project_name project_website = f"https://{project_github_username}.github.io/{project_name}" project_website_source = f"https://github.com/{project_github_username}/...
true
true
f70b810ec69d135f1133e7a8b3cdbfb8803aca24
3,377
py
Python
tensorflow/contrib/__init__.py
monokrome/tensorflow
2533ada7dd45b84d60677b8735e013d21044651a
[ "Apache-2.0" ]
1
2018-12-08T18:04:55.000Z
2018-12-08T18:04:55.000Z
tensorflow/contrib/__init__.py
monokrome/tensorflow
2533ada7dd45b84d60677b8735e013d21044651a
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/__init__.py
monokrome/tensorflow
2533ada7dd45b84d60677b8735e013d21044651a
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.729412
80
0.822624
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.contrib import bayesflow from tensorflow.contrib import cloud from tensorflow.contrib import compiler from tensorflow.contrib import copy_graph from tensorflow.contrib import crf...
true
true
f70b81350664ee0818d7513eb9f617928ed6b5e5
26,952
py
Python
third_party/pycolmap/pycolmap/scene_manager.py
dukebw/nerfies
b30fe19edb6435e770b35dc07aab44ae62c96278
[ "Apache-2.0" ]
null
null
null
third_party/pycolmap/pycolmap/scene_manager.py
dukebw/nerfies
b30fe19edb6435e770b35dc07aab44ae62c96278
[ "Apache-2.0" ]
null
null
null
third_party/pycolmap/pycolmap/scene_manager.py
dukebw/nerfies
b30fe19edb6435e770b35dc07aab44ae62c96278
[ "Apache-2.0" ]
null
null
null
# Author: True Price <jtprice at cs.unc.edu> from collections import OrderedDict, defaultdict from io import StringIO from itertools import combinations import os import struct from .camera import Camera from .image import Image import numpy as np from .rotation import Quaternion # ----------------------------------...
38.947977
88
0.532762
from collections import OrderedDict, defaultdict from io import StringIO from itertools import combinations import os import struct from .camera import Camera from .image import Image import numpy as np from .rotation import Quaternion class SceneManager: INVALID_POINT3D = np.uint64(-1) def __init__...
true
true
f70b8176857a7599c2af9d3e6c1fa9b31a2be0ce
1,151
py
Python
theano/sparse/sharedvar.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
95
2019-05-14T20:55:26.000Z
2022-03-26T13:32:42.000Z
theano/sparse/sharedvar.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
7
2019-11-25T08:24:47.000Z
2021-09-12T13:29:14.000Z
theano/sparse/sharedvar.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
30
2016-10-27T21:59:00.000Z
2021-02-20T09:55:14.000Z
from __future__ import absolute_import, print_function, division import copy import scipy.sparse from theano.compile import shared_constructor, SharedVariable from theano.sparse.basic import SparseType, _sparse_py_operators class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable): dtype = property(l...
34.878788
105
0.709818
from __future__ import absolute_import, print_function, division import copy import scipy.sparse from theano.compile import shared_constructor, SharedVariable from theano.sparse.basic import SparseType, _sparse_py_operators class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable): dtype = property(l...
true
true
f70b825b2d6c30d08c725397e1887e24107df4c0
3,704
py
Python
pyy1/.pycharm_helpers/python_stubs/-1550516950/apt_pkg/PackageRecords.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
pyy1/.pycharm_helpers/python_stubs/-1550516950/apt_pkg/PackageRecords.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
pyy1/.pycharm_helpers/python_stubs/-1550516950/apt_pkg/PackageRecords.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # module apt_pkg # from /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so # by generator 1.145 """ Classes and functions wrapping the apt-pkg library. The apt_pkg module provides several classes and functions for accessing the functionality provided by the apt-pkg library. Typica...
43.576471
101
0.693575
""" Classes and functions wrapping the apt-pkg library. The apt_pkg module provides several classes and functions for accessing the functionality provided by the apt-pkg library. Typical uses might include reading APT index files and configuration files and installing or removing packages. """ from .object impor...
false
true
f70b8270148c2a4a1b509940ba30da27fef71b50
5,107
py
Python
production/visualizer.py
Vlad-Shcherbina/icfpc2014-tbd
8169102307808a80801bf5ee55688e41287990bf
[ "WTFPL" ]
4
2015-01-14T11:35:08.000Z
2020-01-19T19:14:40.000Z
production/visualizer.py
Vlad-Shcherbina/icfpc2014-tbd
8169102307808a80801bf5ee55688e41287990bf
[ "WTFPL" ]
null
null
null
production/visualizer.py
Vlad-Shcherbina/icfpc2014-tbd
8169102307808a80801bf5ee55688e41287990bf
[ "WTFPL" ]
null
null
null
""" Examples: visualizer.py visualizer.py --map=gen/hz.txt --lm="py:lm_ai.Oscillating(frequency=5)" ghc:fickle.ghc ghc:miner.ghc Controls: ESC, q - quit b - one step back arrows - control interactive lm any key - one step of non-interactive lm """ import random import curses import logging import ...
32.737179
104
0.528099
""" Examples: visualizer.py visualizer.py --map=gen/hz.txt --lm="py:lm_ai.Oscillating(frequency=5)" ghc:fickle.ghc ghc:miner.ghc Controls: ESC, q - quit b - one step back arrows - control interactive lm any key - one step of non-interactive lm """ import random import curses import logging import ...
false
true
f70b82a48614719ef93b9151d17a35ed981f6a36
3,177
py
Python
adv/aldred.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/aldred.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/aldred.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.a import * def module(): return Aldred class Aldred(Adv): comment = 'maintain dragondrive' conf = {} conf['slots.a'] = Heralds_of_Hinomoto()+Dear_Diary() conf['slots.poison.a'] = Heralds_of_Hinomoto()+The_Plaguebringer() conf['acl'] = """ `s3, not ...
33.09375
116
0.575071
from core.advbase import * from slot.a import * def module(): return Aldred class Aldred(Adv): comment = 'maintain dragondrive' conf = {} conf['slots.a'] = Heralds_of_Hinomoto()+Dear_Diary() conf['slots.poison.a'] = Heralds_of_Hinomoto()+The_Plaguebringer() conf['acl'] = """ `s3, not ...
true
true
f70b82a64651b669501101e2383b4a201ac4b9ba
5,305
py
Python
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import io import os import shutil import tempfile import unittest from edo_client import WoClient class ContentApi_DownloadTestCase(unittest.TestCase): ''' - Basically this is to ensure all the facilities related to HTTP range headers are working properly; ''' @classmethod ...
32.746914
106
0.590575
import io import os import shutil import tempfile import unittest from edo_client import WoClient class ContentApi_DownloadTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.file_size = 10 * (2 ** 20) cls.download_url = 'http://192.168.1.115/docker/unittest/10mb.test' ...
true
true
f70b82c0df0d88c5e8c371dcea1b15a28a5a37fd
321
py
Python
answers/Anuraj Pariya/Day 4/question 1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/Anuraj Pariya/Day 4/question 1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/Anuraj Pariya/Day 4/question 1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
n=int(input('enter no.')) factors = [] while n % 2 == 0: factors.append(2) n//=2 divisor=3 while n!=1 and divisor <=n: if n% divisor == 0: factors.append(divisor) n//=divisor else: divisor+=2 print('prime factors is') for i in range (len(factors)): print(factors[i], end=" ")...
18.882353
31
0.560748
n=int(input('enter no.')) factors = [] while n % 2 == 0: factors.append(2) n//=2 divisor=3 while n!=1 and divisor <=n: if n% divisor == 0: factors.append(divisor) n//=divisor else: divisor+=2 print('prime factors is') for i in range (len(factors)): print(factors[i], end=" ")...
true
true
f70b82ff4fbb8ab82c3cc5110fdd6e662a84733a
9,806
py
Python
salt/cli/caller.py
martin-helmich/salt
eed588f65b6c7e3b1fbd73bf618eba1d85b7cdb7
[ "Apache-2.0" ]
null
null
null
salt/cli/caller.py
martin-helmich/salt
eed588f65b6c7e3b1fbd73bf618eba1d85b7cdb7
[ "Apache-2.0" ]
null
null
null
salt/cli/caller.py
martin-helmich/salt
eed588f65b6c7e3b1fbd73bf618eba1d85b7cdb7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The caller module is used as a front-end to manage direct calls to the salt minion modules. ''' # Import python libs from __future__ import print_function import os import sys import logging import datetime import traceback # Import salt libs import salt.exitcodes import salt.loader import...
32.795987
80
0.538344
from __future__ import print_function import os import sys import logging import datetime import traceback import salt.exitcodes import salt.loader import salt.minion import salt.output import salt.payload import salt.transport import salt.utils.args from salt._compat import string_types from salt.log import LOG_L...
true
true
f70b831d2289ee6bccaec8a8ac8e8f483a6803be
17,388
py
Python
PyFlow/UI/Widgets/PropertiesFramework.py
Kochera/PyFlow
0f59c7127be696c514da276c003d2444cd3a1f9c
[ "Apache-2.0" ]
null
null
null
PyFlow/UI/Widgets/PropertiesFramework.py
Kochera/PyFlow
0f59c7127be696c514da276c003d2444cd3a1f9c
[ "Apache-2.0" ]
null
null
null
PyFlow/UI/Widgets/PropertiesFramework.py
Kochera/PyFlow
0f59c7127be696c514da276c003d2444cd3a1f9c
[ "Apache-2.0" ]
1
2020-06-14T19:50:12.000Z
2020-06-14T19:50:12.000Z
## Copyright 2015-2019 Ilgar Lunin, Pedro Cabrera ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## http://www.apache.org/licenses/LICENSE-2.0 ## Unless required by applicable law or...
38.8125
131
0.654762
apsibleWidget(QtWidgets.QWidget): def __init__(self, parent=None, headName="Collapse", noSpacer=True, collapsed=False): super(CollapsibleWidget, self).__init__(parent) self.setObjectName(self.__class__.__name__) self.setupUi() self.connectUi() self.setButtonName(headName) ...
true
true
f70b8423fc991d0b95cd0f26021b8c0e980bec5c
31,695
py
Python
docusign_esign/models/email_address.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/email_address.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/email_address.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
1
2021-04-26T20:52:45.000Z
2021-04-26T20:52:45.000Z
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from ppr...
32.708978
690
0.629405
from pprint import pformat from six import iteritems import re class EmailAddress(object): def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_off...
true
true
f70b85c39ef0540db908890e3580c1d06caf96f5
70
py
Python
rltrain.py
leopd/jasrlp
4ebc0a91bd0a5533aeb9b2d136612c862ec8f6a8
[ "MIT" ]
2
2019-12-02T04:32:36.000Z
2019-12-03T03:17:40.000Z
rltrain.py
leopd/jasrlp
4ebc0a91bd0a5533aeb9b2d136612c862ec8f6a8
[ "MIT" ]
null
null
null
rltrain.py
leopd/jasrlp
4ebc0a91bd0a5533aeb9b2d136612c862ec8f6a8
[ "MIT" ]
null
null
null
from rldqn import DQN, FCNet, RandomLearner from rlddpg import DDPG
14
43
0.8
from rldqn import DQN, FCNet, RandomLearner from rlddpg import DDPG
true
true
f70b86ad326a4d97bea318ce1998d3afe340e4cd
368
py
Python
scripts/ex_concat.py
spisakt/PUMI
bea29696aa90e5581f08919e1a2cd9f569284984
[ "BSD-3-Clause" ]
5
2018-06-12T08:17:13.000Z
2022-02-25T20:07:00.000Z
scripts/ex_concat.py
spisakt/PUMI
bea29696aa90e5581f08919e1a2cd9f569284984
[ "BSD-3-Clause" ]
null
null
null
scripts/ex_concat.py
spisakt/PUMI
bea29696aa90e5581f08919e1a2cd9f569284984
[ "BSD-3-Clause" ]
2
2020-10-19T15:27:28.000Z
2021-06-04T17:02:27.000Z
#!/usr/bin/env python import PUMI.utils.Concat as conc conc=conc.concat_workflow(2) conc.inputs.inputspec.par1="abc" conc.inputs.inputspec.par2="def" conc.write_graph('graph-orig.dot', graph2use='orig', simple_form=True); conc.write_graph('graph-exec-detailed.dot', graph2use='exec', simple_form=False); conc.write_gra...
33.454545
81
0.769022
import PUMI.utils.Concat as conc conc=conc.concat_workflow(2) conc.inputs.inputspec.par1="abc" conc.inputs.inputspec.par2="def" conc.write_graph('graph-orig.dot', graph2use='orig', simple_form=True); conc.write_graph('graph-exec-detailed.dot', graph2use='exec', simple_form=False); conc.write_graph('graph.dot', graph...
true
true
f70b87c4ef72db99b9638adb5bff6118843e5de5
40,741
py
Python
tests/test_djangocache.py
mgorny/python-diskcache
b0451e084ea403c29980f683b8f0d8c9ac2a2dea
[ "Apache-2.0" ]
null
null
null
tests/test_djangocache.py
mgorny/python-diskcache
b0451e084ea403c29980f683b8f0d8c9ac2a2dea
[ "Apache-2.0" ]
null
null
null
tests/test_djangocache.py
mgorny/python-diskcache
b0451e084ea403c29980f683b8f0d8c9ac2a2dea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Most of this file was copied from: # https://raw.githubusercontent.com/django/django/1.11.12/tests/cache/tests.py # Unit tests for cache framework # Uses whatever cache backend is set in the test settings file. from __future__ import unicode_literals import copy import io import os import r...
39.174038
114
0.628188
from __future__ import unicode_literals import copy import io import os import re import shutil import tempfile import threading import time import unittest import warnings from django.conf import settings from django.core import management, signals from django.core.cache import ( DEFAULT_CACHE_ALIAS, Cach...
true
true
f70b881f1b2b4ed66c203c087f52e37d9971e9b5
2,571
py
Python
test_requests.py
OT022/Threading-OCR
50379078c5885a0046cb3b0598306da0bd6f5a0a
[ "MIT" ]
null
null
null
test_requests.py
OT022/Threading-OCR
50379078c5885a0046cb3b0598306da0bd6f5a0a
[ "MIT" ]
null
null
null
test_requests.py
OT022/Threading-OCR
50379078c5885a0046cb3b0598306da0bd6f5a0a
[ "MIT" ]
null
null
null
import pytest import os import logging import requests_helper @pytest.fixture def valid_post_image(): return open('_test/src/img001.jpg', 'rb') @pytest.fixture def valid_post_url(): return os.environ['COMPUTER_VISION_ENDPOINT'] + "/vision/v3.0/read/analyze" @pytest.fixture def valid_headers(): return...
38.954545
222
0.736289
import pytest import os import logging import requests_helper @pytest.fixture def valid_post_image(): return open('_test/src/img001.jpg', 'rb') @pytest.fixture def valid_post_url(): return os.environ['COMPUTER_VISION_ENDPOINT'] + "/vision/v3.0/read/analyze" @pytest.fixture def valid_headers(): return...
true
true
f70b8964b3beea5bf3a3e0e4b46e46f93cf419a2
51,566
bzl
Python
third_party/gpus/cuda_configure.bzl
parallelo/tensorflow-upstream
41c9f4d4435707ed64b5a4fa5a964f73a5b99986
[ "Apache-2.0" ]
null
null
null
third_party/gpus/cuda_configure.bzl
parallelo/tensorflow-upstream
41c9f4d4435707ed64b5a4fa5a964f73a5b99986
[ "Apache-2.0" ]
null
null
null
third_party/gpus/cuda_configure.bzl
parallelo/tensorflow-upstream
41c9f4d4435707ed64b5a4fa5a964f73a5b99986
[ "Apache-2.0" ]
null
null
null
"""Repository rule for CUDA autoconfiguration. `cuda_configure` depends on the following environment variables: * `TF_NEED_CUDA`: Whether to enable building with CUDA. * `GCC_HOST_COMPILER_PATH`: The GCC host compiler path * `TF_CUDA_CLANG`: Whether to use clang as a cuda compiler. * `CLANG_CUDA_COMPILER_PATH...
36.468175
125
0.638134
load("//third_party/clang_toolchain:download_clang.bzl", "download_clang") load( "@bazel_tools//tools/cpp:lib_cc_configure.bzl", "escape_string", "get_env_var", ) load( "@bazel_tools//tools/cpp:windows_cc_configure.bzl", "find_msvc_tool", "find_vc_path", "setup_vc_env_vars", ) load( "//...
true
true
f70b8a2bb9b965788aeed7882a1db5c0a0a6b4de
40,693
py
Python
forms/forms_func.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
forms/forms_func.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
forms/forms_func.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
import datetime import zlib from collections import OrderedDict from copy import deepcopy from decimal import Decimal from django.db.models import Q from clients.models import Document, DispensaryReg, Card from directions.models import Napravleniya, Issledovaniya, ParaclinicResult, IstochnikiFinansirovaniya, PersonCo...
42.081696
183
0.591527
import datetime import zlib from collections import OrderedDict from copy import deepcopy from decimal import Decimal from django.db.models import Q from clients.models import Document, DispensaryReg, Card from directions.models import Napravleniya, Issledovaniya, ParaclinicResult, IstochnikiFinansirovaniya, PersonCo...
true
true
f70b8b74c1eeee8137644ecf3c06c9597b396f6b
10,428
py
Python
vb_simulation_pkgs/pkg_vb_sim/scripts/task3_spawn_models.py
ROBODITYA/Eyantra-2021-Vargi-Bots
f1c6a82c46e6e84486a4832b3fbcd02625849447
[ "MIT" ]
1
2021-07-13T07:05:29.000Z
2021-07-13T07:05:29.000Z
vb_simulation_pkgs/pkg_vb_sim/scripts/task3_spawn_models.py
TejasPhutane/Eyantra-2021-Vargi-Bots
ab84a1304101850be8c0f69cfe6de70d53c33189
[ "MIT" ]
1
2021-06-05T07:58:03.000Z
2021-06-05T07:58:03.000Z
vb_simulation_pkgs/pkg_vb_sim/scripts/task3_spawn_models.py
ROBODITYA/Eyantra-2021-Vargi-Bots
f1c6a82c46e6e84486a4832b3fbcd02625849447
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from gazebo_msgs.srv import SpawnModel, SpawnModelRequest, SpawnModelResponse # from gazebo_msgs.srv import ApplyBodyWrench, GetModelProperties, GetWorldProperties, SetModelState from copy import deepcopy from tf.transformations import quaternion_from_euler sdf_cube = """<?xml versi...
26.07
100
0.476122
import rospy from gazebo_msgs.srv import SpawnModel, SpawnModelRequest, SpawnModelResponse from copy import deepcopy from tf.transformations import quaternion_from_euler sdf_cube = """<?xml version="1.0" ?> <sdf version="1.4"> <model name="MODELNAME"> <static>0</static> <link name="link"> <inertial>...
true
true
f70b8bc855024eae8c8724cea7763f1ea53656f2
5,413
py
Python
test/test_expected_behaviors_configurations.py
michael7198/deeplenstronomy_tests
e310684669f403969e169843185255a468c299d9
[ "MIT" ]
17
2020-11-13T17:39:28.000Z
2022-03-18T11:22:01.000Z
test/test_expected_behaviors_configurations.py
michael7198/deeplenstronomy_tests
e310684669f403969e169843185255a468c299d9
[ "MIT" ]
23
2020-12-09T21:50:27.000Z
2022-01-11T17:26:17.000Z
test/test_expected_behaviors_configurations.py
michael7198/deeplenstronomy_tests
e310684669f403969e169843185255a468c299d9
[ "MIT" ]
9
2020-11-11T19:15:19.000Z
2022-03-01T17:50:55.000Z
""" Parsed Config File Produces Expected Behaviors - configurations """ import inspect import os import deeplenstronomy.deeplenstronomy as dl doc = """ \tRunning tests from test_expected_behaviors_configurations.py \tThe tests included in this module demonstrate that the properties of each \tconfiguration wer...
34.922581
84
0.616664
import inspect import os import deeplenstronomy.deeplenstronomy as dl doc = """ \tRunning tests from test_expected_behaviors_configurations.py \tThe tests included in this module demonstrate that the properties of each \tconfiguration were simulated as expected. These properties include the \texpected size o...
true
true
f70b8bc93123bb50d895e673ddd956f0d95d791d
1,299
py
Python
setup.py
lietu/twitch-bot
e1f3462a8851031bc2cbd5dffb6440edc2e45116
[ "MIT" ]
6
2015-12-21T14:43:26.000Z
2019-09-08T12:56:36.000Z
setup.py
lietu/twitch-quote-bot
e1f3462a8851031bc2cbd5dffb6440edc2e45116
[ "MIT" ]
5
2015-04-06T08:33:20.000Z
2016-02-09T03:28:39.000Z
setup.py
lietu/twitch-bot
e1f3462a8851031bc2cbd5dffb6440edc2e45116
[ "MIT" ]
5
2015-12-03T17:54:51.000Z
2020-06-29T12:43:07.000Z
import sys from cx_Freeze import setup, Executable base = None # Uncomment to disable the console on Windows, once the thing is stable #if sys.platform == "win32": # base = "Win32GUI" config = { 'description': 'Twitch Bot', 'author': 'Janne Enberg', 'url': 'https://github.com/lietu/twitch-bot', 'do...
27.0625
74
0.602771
import sys from cx_Freeze import setup, Executable base = None config = { 'description': 'Twitch Bot', 'author': 'Janne Enberg', 'url': 'https://github.com/lietu/twitch-bot', 'download_url': 'https://github.com/lietu/twitch-bot', 'author_email': 'janne.enberg@lietu.net', 'version': '0.1', ...
true
true
f70b8cb2129444e1f6211239a197af3e5f9f6cb3
14,418
py
Python
conveyor_2.py
bjnortier/ai-experiments-1
aff4496d84b059af6096f8f6b51d0ebcf6ed5c37
[ "CC0-1.0" ]
null
null
null
conveyor_2.py
bjnortier/ai-experiments-1
aff4496d84b059af6096f8f6b51d0ebcf6ed5c37
[ "CC0-1.0" ]
null
null
null
conveyor_2.py
bjnortier/ai-experiments-1
aff4496d84b059af6096f8f6b51d0ebcf6ed5c37
[ "CC0-1.0" ]
null
null
null
import os import glob from pathlib import Path import numpy as np import random import carb from PIL import Image from tensorflow import keras from pxr import Usd, UsdGeom, Gf, UsdPhysics import omni.kit from omni.isaac.examples.base_sample import BaseSample from omni.isaac.core.objects import DynamicCuboid from omni.i...
34.410501
103
0.619087
import os import glob from pathlib import Path import numpy as np import random import carb from PIL import Image from tensorflow import keras from pxr import Usd, UsdGeom, Gf, UsdPhysics import omni.kit from omni.isaac.examples.base_sample import BaseSample from omni.isaac.core.objects import DynamicCuboid from omni.i...
true
true
f70b8d0e2b5f41a42fe57c9b6a33830ab0c71fa9
305
py
Python
config.py
tensorush/Neural-Painter-Bot
420fd2d01a1a91b45553e3da07d4a5c18a60ec11
[ "MIT" ]
1
2021-02-18T02:52:10.000Z
2021-02-18T02:52:10.000Z
config.py
tensorush/Neural-Painter-Bot
420fd2d01a1a91b45553e3da07d4a5c18a60ec11
[ "MIT" ]
null
null
null
config.py
tensorush/Neural-Painter-Bot
420fd2d01a1a91b45553e3da07d4a5c18a60ec11
[ "MIT" ]
null
null
null
import os # Bot token BOT_TOKEN = os.getenv('BOT_TOKEN') # Web application setup WEBAPP_HOST = '0.0.0.0' WEBAPP_PORT = int(os.getenv('PORT')) # Webhook setup WEBHOOK_HOST = 'https://neural-painter-bot.herokuapp.com' WEBHOOK_PATH = f'/webhook/{BOT_TOKEN}' WEBHOOK_URL = f'{WEBHOOK_HOST}{WEBHOOK_PATH}'
20.333333
57
0.734426
import os BOT_TOKEN = os.getenv('BOT_TOKEN') WEBAPP_HOST = '0.0.0.0' WEBAPP_PORT = int(os.getenv('PORT')) WEBHOOK_HOST = 'https://neural-painter-bot.herokuapp.com' WEBHOOK_PATH = f'/webhook/{BOT_TOKEN}' WEBHOOK_URL = f'{WEBHOOK_HOST}{WEBHOOK_PATH}'
true
true
f70b8dd29628c3270d786ed902fdfe1bff153136
998
py
Python
two_factor/management/commands/two_factor_disable.py
ercpe/django-two-factor-auth
76866dd310903b3a34526becaa0a5012dea7debe
[ "MIT" ]
null
null
null
two_factor/management/commands/two_factor_disable.py
ercpe/django-two-factor-auth
76866dd310903b3a34526becaa0a5012dea7debe
[ "MIT" ]
1
2015-07-13T16:52:33.000Z
2015-07-16T20:24:59.000Z
two_factor/management/commands/two_factor_disable.py
ercpe/django-two-factor-auth
76866dd310903b3a34526becaa0a5012dea7debe
[ "MIT" ]
1
2019-12-30T15:38:13.000Z
2019-12-30T15:38:13.000Z
from django.core.management.base import BaseCommand, CommandError try: from django.contrib.auth import get_user_model except ImportError: from django.contrib.auth.models import User else: User = get_user_model() from django_otp import devices_for_user class Command(BaseCommand): """ Command for d...
28.514286
73
0.670341
from django.core.management.base import BaseCommand, CommandError try: from django.contrib.auth import get_user_model except ImportError: from django.contrib.auth.models import User else: User = get_user_model() from django_otp import devices_for_user class Command(BaseCommand): args = '<username use...
true
true
f70b8fac17e6bde268e662cd3401fce8726fa90e
599
py
Python
tests/test_comments.py
EugeneZnm/pitches
64edf62503f9195de2f1e11a7a7cf29e88fa00de
[ "Unlicense" ]
null
null
null
tests/test_comments.py
EugeneZnm/pitches
64edf62503f9195de2f1e11a7a7cf29e88fa00de
[ "Unlicense" ]
null
null
null
tests/test_comments.py
EugeneZnm/pitches
64edf62503f9195de2f1e11a7a7cf29e88fa00de
[ "Unlicense" ]
null
null
null
import unittest from app.models import Comments class CommentsModelTest(unittest.TestCase): def setUp(self): self.new_comment = Comments(comment='a') def test_instance(self): self.assertEqual(self.new_comment.comment, 'a') def test_save_comment(self): self.new_comment.save_comme...
24.958333
55
0.686144
import unittest from app.models import Comments class CommentsModelTest(unittest.TestCase): def setUp(self): self.new_comment = Comments(comment='a') def test_instance(self): self.assertEqual(self.new_comment.comment, 'a') def test_save_comment(self): self.new_comment.save_comme...
true
true
f70b918593a9967c3c6a32aab2c0bf4d8d1dbaef
1,505
py
Python
dls_ade/dls_list_modules_test.py
hir12111/dls_ade
92449cc2a0fadc1af4c125d72cfc392df4763f2c
[ "Apache-2.0" ]
null
null
null
dls_ade/dls_list_modules_test.py
hir12111/dls_ade
92449cc2a0fadc1af4c125d72cfc392df4763f2c
[ "Apache-2.0" ]
null
null
null
dls_ade/dls_list_modules_test.py
hir12111/dls_ade
92449cc2a0fadc1af4c125d72cfc392df4763f2c
[ "Apache-2.0" ]
null
null
null
#!/bin/env dls-python from sys import version_info if version_info.major == 2: import __builtin__ as builtins # Allows for Python 2/3 compatibility, 'builtins' is namespace for inbuilt functions else: import builtins import unittest from mock import patch, MagicMock p = patch('dls_ade.Server') server_mock ...
26.403509
120
0.711628
from sys import version_info if version_info.major == 2: import __builtin__ as builtins else: import builtins import unittest from mock import patch, MagicMock p = patch('dls_ade.Server') server_mock = MagicMock() m = p.start() m.return_value = server_mock from dls_ade import dls_list_modules p.stop() ...
true
true
f70b928fea37b2c0df2781362cb19ba7188b7b27
1,220
py
Python
project/train.py
Lucklyric/hydra-pytorch-lightning-seed
2fd1ef2795c8705f03334f0af66e78aaa565a52e
[ "Apache-2.0" ]
4
2021-05-03T14:00:12.000Z
2022-03-16T18:39:24.000Z
project/train.py
Lucklyric/dl-optimizer-poc
fd7ddc91e10f3d9e6fa6154221c960cc6ff6a8a7
[ "Apache-2.0" ]
null
null
null
project/train.py
Lucklyric/dl-optimizer-poc
fd7ddc91e10f3d9e6fa6154221c960cc6ff6a8a7
[ "Apache-2.0" ]
1
2021-09-07T13:15:51.000Z
2021-09-07T13:15:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : train.py # Author: Alvin(Xinyao) Sun <xinyao1@ualberta.ca> # Date : 02.05.2021 import logging import os import sys import hydra import pytorch_lightning as pl from omegaconf import DictConfig, OmegaConf sys.path.append(os.path.dirname(os.path.realpath(__file__...
23.461538
70
0.622951
import logging import os import sys import hydra import pytorch_lightning as pl from omegaconf import DictConfig, OmegaConf sys.path.append(os.path.dirname(os.path.realpath(__file__))) log = logging.getLogger(__name__) @hydra.main(config_path='config', config_name='train_config') def main(cfg: DictConfig): ...
true
true
f70b92b9aa2e2b3ff6177472d1bfaf0b814109aa
182
py
Python
src/python/gudhi/hera/__init__.py
m0baxter/gudhi-devel
6e14ef1f31e09f3875316440303450ff870d9881
[ "MIT" ]
146
2019-03-15T14:10:31.000Z
2022-03-23T21:14:52.000Z
src/python/gudhi/hera/__init__.py
m0baxter/gudhi-devel
6e14ef1f31e09f3875316440303450ff870d9881
[ "MIT" ]
398
2019-03-07T14:55:22.000Z
2022-03-31T14:50:40.000Z
src/python/gudhi/hera/__init__.py
m0baxter/gudhi-devel
6e14ef1f31e09f3875316440303450ff870d9881
[ "MIT" ]
51
2019-03-08T15:58:48.000Z
2022-03-14T10:23:23.000Z
from .wasserstein import wasserstein_distance from .bottleneck import bottleneck_distance __author__ = "Marc Glisse" __copyright__ = "Copyright (C) 2020 Inria" __license__ = "MIT"
22.75
45
0.802198
from .wasserstein import wasserstein_distance from .bottleneck import bottleneck_distance __author__ = "Marc Glisse" __copyright__ = "Copyright (C) 2020 Inria" __license__ = "MIT"
true
true
f70b9516de8ebd320f979b8a39b117ab92fb9820
8,050
py
Python
docs/languages/en/conf.py
chrisoconnell/zf2-documentation
f7ea720801db65c82448128cb173944e81a10d82
[ "BSD-3-Clause" ]
null
null
null
docs/languages/en/conf.py
chrisoconnell/zf2-documentation
f7ea720801db65c82448128cb173944e81a10d82
[ "BSD-3-Clause" ]
null
null
null
docs/languages/en/conf.py
chrisoconnell/zf2-documentation
f7ea720801db65c82448128cb173944e81a10d82
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Zend Framework 2 documentation build configuration file, created by # sphinx-quickstart on Fri Jul 6 18:55:07 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file...
32.459677
83
0.717143
import sys, os extensions = [] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = u'Zend Framework 2' copyright = u'2012, Zend Technologies Ltd.' # |version| and |release|, also used in various other places throughout the # built documents. # # T...
true
true
f70b959b58bee55c3001698484754add230dbb4e
18,187
py
Python
common/webapp/views/misc_views.py
jisantuc/labeller
11c7738d43b860fbdad660b459572843f873abce
[ "Apache-2.0" ]
2
2021-12-02T08:42:31.000Z
2022-03-11T19:58:40.000Z
common/webapp/views/misc_views.py
jisantuc/labeller
11c7738d43b860fbdad660b459572843f873abce
[ "Apache-2.0" ]
null
null
null
common/webapp/views/misc_views.py
jisantuc/labeller
11c7738d43b860fbdad660b459572843f873abce
[ "Apache-2.0" ]
2
2021-12-03T17:49:49.000Z
2022-03-21T17:05:06.000Z
# Copyright 2014 SolidBuilds.com. All rights reserved # # Authors: Ling Thio <ling.thio@gmail.com> from datetime import datetime from flask import current_app, flash from flask import Blueprint, redirect, render_template from flask import request, url_for from flask_user import current_user, login_required, roles_acc...
41.617849
137
0.675647
from datetime import datetime from flask import current_app, flash from flask import Blueprint, redirect, render_template from flask import request, url_for from flask_user import current_user, login_required, roles_accepted from flask_user.views import _get_safe_next_param, render, _send_registered_email, _endpoint...
true
true
f70b95eb5cf834f80422d263ac7df828a5ca831d
73
py
Python
__init__.py
dshatz/unionfind
4c1f76b344e126ec9f08c5c992a34434ce1150ee
[ "MIT" ]
51
2017-06-07T16:44:52.000Z
2022-02-12T21:49:18.000Z
__init__.py
dshatz/unionfind
4c1f76b344e126ec9f08c5c992a34434ce1150ee
[ "MIT" ]
3
2018-06-14T04:04:05.000Z
2021-10-07T18:55:21.000Z
__init__.py
dshatz/unionfind
4c1f76b344e126ec9f08c5c992a34434ce1150ee
[ "MIT" ]
26
2018-03-23T18:42:05.000Z
2021-09-07T11:29:11.000Z
""" UnionFind disjoint sets data structure. """ from . import unionfind
12.166667
39
0.726027
from . import unionfind
true
true
f70b965627fb06acd42bbdb804a082cfe0104a24
280
py
Python
core/task/__init__.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
10
2020-07-30T14:46:43.000Z
2021-11-16T12:04:01.000Z
core/task/__init__.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
null
null
null
core/task/__init__.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @File : __init__.py.py @Time : 2020/3/27 22:36 @Author : Empty Chan @Contact : chen19941018@gmail.com @Description: @License : (C) Copyright 2016-2020, iFuture Corporation Limited. """ from . import *
21.538462
68
0.603571
from . import *
true
true
f70b99540978fb2f332b286d95f514e1c656d922
8,634
py
Python
tests/test_myplex.py
jjlawren/python-plexapi
9f9e2350006da3c613a71f5bdee07d2c1181d89f
[ "BSD-3-Clause" ]
1
2022-01-15T19:02:33.000Z
2022-01-15T19:02:33.000Z
tests/test_myplex.py
jjlawren/python-plexapi
9f9e2350006da3c613a71f5bdee07d2c1181d89f
[ "BSD-3-Clause" ]
43
2021-07-27T01:31:21.000Z
2022-03-30T11:20:55.000Z
tests/test_myplex.py
Montellese/python-plexapi
bd7de4281ec599e096c8991bbd1e583a0d196d8d
[ "BSD-3-Clause" ]
2
2020-09-08T21:09:26.000Z
2020-09-08T21:44:02.000Z
# -*- coding: utf-8 -*- import pytest from plexapi.exceptions import BadRequest, NotFound from . import conftest as utils def test_myplex_accounts(account, plex): assert account, "Must specify username, password & resource to run this test." print("MyPlexAccount:") print("username: %s" % account.username...
35.097561
88
0.677322
import pytest from plexapi.exceptions import BadRequest, NotFound from . import conftest as utils def test_myplex_accounts(account, plex): assert account, "Must specify username, password & resource to run this test." print("MyPlexAccount:") print("username: %s" % account.username) print("email: %s"...
true
true
f70b9a2e490b150981301c9d54d99efeb3e5f99f
1,970
py
Python
app/service/file_svc.py
FumblingBear/caldera
adef51b27ac04ab21bab33a3c988965ce69fb0f3
[ "Apache-2.0" ]
null
null
null
app/service/file_svc.py
FumblingBear/caldera
adef51b27ac04ab21bab33a3c988965ce69fb0f3
[ "Apache-2.0" ]
null
null
null
app/service/file_svc.py
FumblingBear/caldera
adef51b27ac04ab21bab33a3c988965ce69fb0f3
[ "Apache-2.0" ]
null
null
null
import os from aiohttp import web from app.utility.logger import Logger class FileSvc: def __init__(self, payload_dirs, exfil_dir): self.payload_dirs = payload_dirs self.log = Logger('file_svc') self.exfil_dir = exfil_dir async def download(self, request): name = request.he...
33.965517
97
0.553807
import os from aiohttp import web from app.utility.logger import Logger class FileSvc: def __init__(self, payload_dirs, exfil_dir): self.payload_dirs = payload_dirs self.log = Logger('file_svc') self.exfil_dir = exfil_dir async def download(self, request): name = request.he...
true
true
f70b9c2b4ad81820ced65c41979ef8e1756fe72a
995
py
Python
libs/yowsup/yowsup/yowsup/layers/protocol_acks/protocolentities/ack.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
22
2017-07-14T20:01:17.000Z
2022-03-08T14:22:39.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_acks/protocolentities/ack.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
6
2017-07-14T21:03:50.000Z
2021-06-10T19:08:32.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_acks/protocolentities/ack.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
13
2017-07-14T20:13:14.000Z
2020-11-12T08:06:05.000Z
from yowsup.structs import ProtocolEntity, ProtocolTreeNode class AckProtocolEntity(ProtocolEntity): ''' <ack class="{{receipt | message | ?}}" id="{{message_id}}"> </ack> ''' def __init__(self, _id, _class): super(AckProtocolEntity, self).__init__("ack") self._id = _id sel...
24.875
71
0.554774
from yowsup.structs import ProtocolEntity, ProtocolTreeNode class AckProtocolEntity(ProtocolEntity): def __init__(self, _id, _class): super(AckProtocolEntity, self).__init__("ack") self._id = _id self._class = _class def getId(self): return self._id def getClass(self): ...
true
true
f70b9ca9a7409b6984913947757c73688e40b12c
775
py
Python
HW01/sha256bruteforce.py
ideaPeng/UW-Madison-CS642
ae4ce979f9bd55a1807a0809ec84ccb679e71d5c
[ "MIT" ]
null
null
null
HW01/sha256bruteforce.py
ideaPeng/UW-Madison-CS642
ae4ce979f9bd55a1807a0809ec84ccb679e71d5c
[ "MIT" ]
null
null
null
HW01/sha256bruteforce.py
ideaPeng/UW-Madison-CS642
ae4ce979f9bd55a1807a0809ec84ccb679e71d5c
[ "MIT" ]
1
2021-02-23T03:29:11.000Z
2021-02-23T03:29:11.000Z
#!/usr/bin/env python3 import hashlib def main(): print(hashlib.sha256("hugh,13145820,20193833".encode("ascii")).hexdigest()) # 13145820 guess_flag = True digits = 1 while guess_flag: bound = 10**digits guess = 0 while guess < bound: guess_str = ("hugh,{:0" + st...
28.703704
92
0.547097
import hashlib def main(): print(hashlib.sha256("hugh,13145820,20193833".encode("ascii")).hexdigest()) guess_flag = True digits = 1 while guess_flag: bound = 10**digits guess = 0 while guess < bound: guess_str = ("hugh,{:0" + str(digits) + ...
true
true
f70b9dfdf88a8fb2039774b40ccfcf8d12c02620
6,479
py
Python
turbinia/workers/analysis/jenkins.py
giovannt0/turbinia
6733eea42ba3a2442c49aaf933656ace45bd20e1
[ "Apache-2.0" ]
1
2021-01-21T19:53:33.000Z
2021-01-21T19:53:33.000Z
turbinia/workers/analysis/jenkins.py
joachimmetz/turbinia
f69b34b7da72d9f9eb0d0c4a11e2b8d5443faab8
[ "Apache-2.0" ]
null
null
null
turbinia/workers/analysis/jenkins.py
joachimmetz/turbinia
f69b34b7da72d9f9eb0d0c4a11e2b8d5443faab8
[ "Apache-2.0" ]
1
2019-10-31T10:16:08.000Z
2019-10-31T10:16:08.000Z
# -*- coding: utf-8 -*- # Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
33.921466
80
0.703812
from __future__ import unicode_literals import os import re from turbinia import TurbiniaException from turbinia.evidence import ReportText from turbinia.lib import text_formatter as fmt from turbinia.workers import TurbiniaTask from turbinia.workers import Priority from turbinia.lib.utils import extra...
true
true
f70b9eda58e54f0a70a16842e2cf09a28ec76236
13,889
py
Python
tangleanalyzer/filter/time.py
bingyanglin/tangle-analyzer.py
70f43604aa13fdeaeeb15535508532da935e45d3
[ "MIT" ]
1
2020-07-27T17:18:03.000Z
2020-07-27T17:18:03.000Z
tangleanalyzer/filter/time.py
bingyanglin/tangle-analyzer.py
70f43604aa13fdeaeeb15535508532da935e45d3
[ "MIT" ]
null
null
null
tangleanalyzer/filter/time.py
bingyanglin/tangle-analyzer.py
70f43604aa13fdeaeeb15535508532da935e45d3
[ "MIT" ]
null
null
null
from typing import Callable from datetime import datetime, timezone from time import mktime from ..common.const import ( MILESTONES_USING_TIMESTAMP_ONLY, TIMESTAMP_B, TIMESTAMP_E, ATCH_TIMESTAMP_B, ATCH_TIMESTAMP_E ) from ..common import tryte_to_int import logging __all__ = [ 'TimeFilter', ] ...
38.796089
101
0.606379
from typing import Callable from datetime import datetime, timezone from time import mktime from ..common.const import ( MILESTONES_USING_TIMESTAMP_ONLY, TIMESTAMP_B, TIMESTAMP_E, ATCH_TIMESTAMP_B, ATCH_TIMESTAMP_E ) from ..common import tryte_to_int import logging __all__ = [ 'TimeFilter', ] ...
true
true