hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
928aafa4ae95d17a8208147f42a9e723807969fb
2,608
py
Python
fbrp/src/fbrp/runtime/base.py
ali-senguel/fairo-explore
893481da270eed1e6d504c71e483d685ca9218d1
[ "MIT" ]
null
null
null
fbrp/src/fbrp/runtime/base.py
ali-senguel/fairo-explore
893481da270eed1e6d504c71e483d685ca9218d1
[ "MIT" ]
null
null
null
fbrp/src/fbrp/runtime/base.py
ali-senguel/fairo-explore
893481da270eed1e6d504c71e483d685ca9218d1
[ "MIT" ]
null
null
null
import asyncio from fbrp.process import ProcDef import a0 import argparse import asyncio import contextlib import enum import psutil import json
30.682353
84
0.597009
928bb066d36b361a796df63bf40e98b8b8f26f01
88
py
Python
pytest_relaxed/__init__.py
cclauss/pytest-relaxed
2f6f83b35af312ce8f34686af79e7fdb7ca23726
[ "BSD-2-Clause" ]
24
2017-04-06T22:09:33.000Z
2022-03-26T14:06:38.000Z
pytest_relaxed/__init__.py
cclauss/pytest-relaxed
2f6f83b35af312ce8f34686af79e7fdb7ca23726
[ "BSD-2-Clause" ]
14
2017-11-15T18:53:17.000Z
2021-12-13T23:25:38.000Z
pytest_relaxed/__init__.py
cclauss/pytest-relaxed
2f6f83b35af312ce8f34686af79e7fdb7ca23726
[ "BSD-2-Clause" ]
8
2017-05-24T20:21:31.000Z
2022-03-10T05:58:26.000Z
# Convenience imports. # flake8: noqa from .trap import trap from .raises import raises
17.6
26
0.772727
928bff163a9c28010dac3e96f467a861b8f12154
1,375
py
Python
main/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
main/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
main/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView, RedirectView from django.contrib.auth import login, logout, authenticate from django.shortcuts import render from main.permissions import *
31.25
72
0.612364
928cdb12cb361d5fcb3ef68b59a2d730df5d6777
1,072
py
Python
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
null
null
null
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
null
null
null
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
1
2019-03-28T00:25:46.000Z
2019-03-28T00:25:46.000Z
import config, lang import pb import urllib2 import urlnorm import os import time
23.304348
79
0.677239
928ec887f63d3c4f2f730f5e35706d8bb96d40b2
8,087
py
Python
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# 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, overload from ... import _utilities fro...
37.439815
229
0.657722
928fe78301baaab64810fda9828eb05526f5d381
416
py
Python
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
46
2018-08-25T07:45:07.000Z
2022-01-27T04:06:38.000Z
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
1
2018-10-10T12:59:43.000Z
2018-10-10T12:59:43.000Z
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
19
2018-10-10T12:58:44.000Z
2021-04-25T16:12:08.000Z
import os img_path = '/home/deep/datasets/hmdb/' clip_length = 16 f = open('ucfTrainTestlist/hmdb.txt', 'w') actions = os.listdir(img_path) actions.sort(key=str.lower) label = 0 for action in actions: print(action) samples = os.listdir(img_path + action) samples.sort(key=str.lower) for sample in sam...
20.8
64
0.644231
9291017fab8fc41f30f6a3b5858bb70a792408b4
73
py
Python
ik/src/tests/python/test_Solver.py
LaudateCorpus1/ik
c472230ecd6958f7a105d7188ebb1e871ef7a8b1
[ "MIT" ]
363
2017-08-22T03:07:55.000Z
2022-03-27T02:41:30.000Z
ik/src/tests/python/test_Solver.py
LaudateCorpus1/ik
c472230ecd6958f7a105d7188ebb1e871ef7a8b1
[ "MIT" ]
18
2019-04-05T12:43:03.000Z
2022-01-19T16:25:48.000Z
ik/src/tests/python/test_Solver.py
LaudateCorpus1/ik
c472230ecd6958f7a105d7188ebb1e871ef7a8b1
[ "MIT" ]
53
2017-09-27T07:14:03.000Z
2022-01-03T17:55:18.000Z
import ik import unittest
12.166667
36
0.780822
929107b27ad9748f2ff4956a92dd324eba875c13
437
py
Python
geotrek/feedback/migrations/0031_report_eid.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/migrations/0031_report_eid.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/migrations/0031_report_eid.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.14 on 2022-03-24 11:25 from django.db import migrations, models
23
104
0.613272
9295f185bea3693f60585923f865715fd849e6ea
1,232
py
Python
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
import json import pytest from handler import detect_language, translate_message, handler
34.222222
86
0.693182
9297372fa443955e53e67f87e3ad4b6f573eebaa
715
py
Python
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Alpha Griffin # @%@~LICENSE~@%@ from ag.orbit.command import main from ag.orbit.node.config import get_webapi_interface, set_webapi_interface if __name__ == '__main__': main(run)
20.428571
75
0.606993
92978a18ec72ff57a63325176d0b1a9c34d9e043
849
py
Python
license_plate_classifier.py
neryay/OCR_SPACE_License_Plate_Detection
c61b620df4558cc7b0b9a868405395f7aa708dac
[ "Unlicense" ]
null
null
null
license_plate_classifier.py
neryay/OCR_SPACE_License_Plate_Detection
c61b620df4558cc7b0b9a868405395f7aa708dac
[ "Unlicense" ]
null
null
null
license_plate_classifier.py
neryay/OCR_SPACE_License_Plate_Detection
c61b620df4558cc7b0b9a868405395f7aa708dac
[ "Unlicense" ]
null
null
null
import ocr_space_api_engine as ocr_eng import licensePlate_string_parser as license_parser import DB_Utils import os import datetime
32.653846
97
0.673734
929828265e477d2b3b2741fd74dc69a90b281f11
1,420
py
Python
tests/integration/test_display_para_from_json.py
lizschley/number_six
a427202397822fca1f49d43d138c24fffdbe95da
[ "MIT" ]
1
2020-07-14T20:13:05.000Z
2020-07-14T20:13:05.000Z
tests/integration/test_display_para_from_json.py
lizschley/number_six
a427202397822fca1f49d43d138c24fffdbe95da
[ "MIT" ]
3
2021-04-06T20:40:08.000Z
2021-06-03T21:54:21.000Z
tests/integration/test_display_para_from_json.py
lizschley/number_six
a427202397822fca1f49d43d138c24fffdbe95da
[ "MIT" ]
null
null
null
'''These tests are for utilities to call paragraph helpers that instansiate the common classes. I am using ''' # pylint: disable=missing-function-docstring import testing.constants.common as common def test_display_para_from_json_returns_dictionary(display_text_from_json): '''This is an integration test, testi...
39.444444
81
0.772535
929893933759cc9c2a16174a003428aa9861cd4f
1,290
py
Python
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
4
2021-01-04T07:04:32.000Z
2021-07-25T12:25:58.000Z
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
null
null
null
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @Author : zYx.Tom @Contact : 526614962@qq.com @site : https://zhuyuanxiang.github.io --------------------------- @Software : PyCharm @Project : Hanlp-Books-Examples @File : demo_corpus_loader.py @Version : v0.1 @Time : 2020-12-21 16:27 @...
24.807692
72
0.55969
929a40a2c2266e63e865c5849f48f7efa2fab62e
1,895
py
Python
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
3
2020-07-24T01:06:04.000Z
2021-12-20T14:35:21.000Z
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
39
2020-06-26T12:54:35.000Z
2022-03-23T14:16:34.000Z
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
1
2020-05-29T14:24:16.000Z
2020-05-29T14:24:16.000Z
""" Create a label file and a pickled subset file of the recount3 dataset containing only samples with manually annotated tissue labels """ import argparse import pickle from typing import Dict import pandas as pd if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('count_file...
34.454545
98
0.729815
929df0c92f35ab103a77aaa4f06fb08b870d147f
278
py
Python
hermes_common/tests/leaks/dealloc.py
certik/hermes1d-llnl
8e3b76fd3022af90e5c4c3923337a422d79604d5
[ "BSD-3-Clause" ]
1
2016-08-18T23:21:55.000Z
2016-08-18T23:21:55.000Z
hermes_common/tests/leaks/dealloc.py
certik/hermes1d-llnl
8e3b76fd3022af90e5c4c3923337a422d79604d5
[ "BSD-3-Clause" ]
null
null
null
hermes_common/tests/leaks/dealloc.py
certik/hermes1d-llnl
8e3b76fd3022af90e5c4c3923337a422d79604d5
[ "BSD-3-Clause" ]
null
null
null
""" This module contains testing classes for the leaks test. """
19.857143
56
0.604317
929ea315775a00593ed7a9f890d334c617507497
4,136
py
Python
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
#!/usr/bin/env python # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2016 Contributor # # 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...
42.204082
89
0.60324
929f30d54fb67d713942739135dbf52d301c492c
1,210
py
Python
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
2
2019-11-15T17:59:36.000Z
2020-06-08T04:42:36.000Z
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
null
null
null
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
null
null
null
import unittest import json from tests.dummy_flask_app import app
29.512195
85
0.643802
929fca46bf26c17e3a094d83f8ff90c1a0c57add
582
py
Python
webware/MiddleKit/WebBrowser/BrowseObject.py
PeaceWorksTechnologySolutions/w4py3-middlekit
a9554e20c47010e7b0c0deee63e1786482c59a1c
[ "MIT" ]
2
2020-10-31T09:12:58.000Z
2021-02-20T13:52:14.000Z
webware/MiddleKit/WebBrowser/BrowseObject.py
WebwareForPython/w4py3-middlekit
f740e2d2d3a5c225d6b8f9eb27ac08f8deed47e6
[ "MIT" ]
2
2020-01-07T15:24:09.000Z
2020-01-08T15:39:57.000Z
webware/MiddleKit/WebBrowser/BrowseObject.py
PeaceWorksTechnologySolutions/w4py3-middlekit
a9554e20c47010e7b0c0deee63e1786482c59a1c
[ "MIT" ]
1
2021-09-27T21:04:18.000Z
2021-09-27T21:04:18.000Z
from .StorePage import StorePage
29.1
66
0.539519
92a06ec22b5b18f54c6edc08711413ab59ced176
199
py
Python
mountain/db.py
tehmaze-labs/mountain
f9fc9d66b3bd525b771acc2d76e36aaf405dc51a
[ "MIT" ]
2
2019-09-22T15:33:55.000Z
2022-02-20T09:34:12.000Z
mountain/db.py
tehmaze-labs/mountain
f9fc9d66b3bd525b771acc2d76e36aaf405dc51a
[ "MIT" ]
null
null
null
mountain/db.py
tehmaze-labs/mountain
f9fc9d66b3bd525b771acc2d76e36aaf405dc51a
[ "MIT" ]
null
null
null
# Import SQLAlchemy from flask.ext.sqlalchemy import SQLAlchemy # Import Flask from .app import app # Define the database object which is imported # by modules and controllers db = SQLAlchemy(app)
19.9
46
0.788945
92a0c630be89c797fa922d133d8774ad4cfcc3c7
324
py
Python
Samples/Simple_Demo/Python_Export/Export_whole_project/D4P_export_demo.py
Embarcadero/Delphi4PythonExporter
0137a298552e5356fa2cadb4fc288adeed0f03f4
[ "MIT" ]
18
2022-02-02T20:23:03.000Z
2022-03-29T11:26:41.000Z
Samples/Simple_Demo/Python_Export/Export_whole_project/D4P_export_demo.py
Embarcadero/Delphi4PythonExporter
0137a298552e5356fa2cadb4fc288adeed0f03f4
[ "MIT" ]
3
2022-02-14T13:19:29.000Z
2022-03-28T20:07:33.000Z
Samples/Simple_Demo/Python_Export/Export_whole_project/D4P_export_demo.py
Embarcadero/Delphi4PythonExporter
0137a298552e5356fa2cadb4fc288adeed0f03f4
[ "MIT" ]
6
2022-02-10T03:12:04.000Z
2022-03-27T17:41:30.000Z
from delphifmx import * from parent_window import Parent_Form if __name__ == '__main__': main()
23.142857
51
0.725309
92a139101f7375dea0fe1c410b3894330370bd08
2,867
py
Python
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Read results from visual inspection, create new target lists. ''' import os, sys import json import glob, shutil from collections import OrderedDict if __name__ == '__main__': # read candidate events. with open('candidate-events.json', 'r') as fp: cand_events = json.load(fp...
31.855556
70
0.560516
92a1643415ce525953e9608207d138948ae44c6e
736
py
Python
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
null
null
null
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
null
null
null
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
1
2018-03-05T00:40:04.000Z
2018-03-05T00:40:04.000Z
#!/usr/bin/env python from setuptools import find_packages, setup long_description = """Basic regular expression lexer implementation. """ appname = "rexlex" version = "0.02" setup(**{ "name": appname, "version": version, "packages": [ 'tater', ], "author": "Thom Neale", "package...
23
68
0.588315
92a2d943773633b0c8d2368e44bf92c1be473d13
2,776
py
Python
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
27.485149
77
0.569885
92a551a7495fb26a88c28fac7bc5841ea1c6677d
585
py
Python
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
1
2021-03-24T13:52:15.000Z
2021-03-24T13:52:15.000Z
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
null
null
null
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
1
2018-12-18T13:59:29.000Z
2018-12-18T13:59:29.000Z
import sys sys.path.append('/home/sriteja/PycharmProjects/My_Mario/mymario') import objects as o import config as c ob = o.Obj(10, 10, 5,6, 'a')
20.892857
107
0.605128
92a5e861cf4d8399bd7cd91a87489badf6a26104
3,479
py
Python
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
7
2021-05-20T23:54:30.000Z
2021-10-21T03:01:21.000Z
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
24
2021-05-18T07:56:00.000Z
2021-08-14T12:35:34.000Z
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
null
null
null
import collections from enum import Enum, auto
36.239583
85
0.569991
92a80e67902b327f49022344c6449b52dc564296
199
py
Python
CircuitPython_Made_Easy_On_CPX/cpx_play_tone/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
CircuitPython_Made_Easy_On_CPX/cpx_play_tone/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
CircuitPython_Made_Easy_On_CPX/cpx_play_tone/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2017 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT from adafruit_circuitplayground.express import cpx cpx.play_tone(262, 1) cpx.play_tone(294, 1)
22.111111
68
0.80402
92a90c376bb34719218ade2a529d194a53bd4e68
4,375
py
Python
modules/all_class.py
shequ123/Tron_monitor
ac071481f04395c54da12aebd13096bb76337a10
[ "MIT" ]
2
2018-11-26T09:08:00.000Z
2018-12-05T04:16:49.000Z
modules/all_class.py
shequ123/Tron_monitor
ac071481f04395c54da12aebd13096bb76337a10
[ "MIT" ]
null
null
null
modules/all_class.py
shequ123/Tron_monitor
ac071481f04395c54da12aebd13096bb76337a10
[ "MIT" ]
null
null
null
# 3 # Transaction # Top # Block # # ''' def get_version(self): return self.block_header['raw_data']['version'] def get_witness_signature(self): return self.block_header['witness_signature'] def get_txTrieRoot(self): return self.block_header['raw_data']['txTri...
24.857955
100
0.630629
92aac54ee2f007488fca049482a6bfd926d66471
2,432
py
Python
oo/carro.py
Jaques1974/pythonbirds
dcd7270442dc652ff698689b81ee45c9a7c76c2d
[ "MIT" ]
null
null
null
oo/carro.py
Jaques1974/pythonbirds
dcd7270442dc652ff698689b81ee45c9a7c76c2d
[ "MIT" ]
null
null
null
oo/carro.py
Jaques1974/pythonbirds
dcd7270442dc652ff698689b81ee45c9a7c76c2d
[ "MIT" ]
null
null
null
""" Voc deve criar uma classe carro que vai possuir dois atributos compostos por outras duas classes: 1)Motor 2)Direo O Motor ter a responsabilidade de controlar a velocidade. Ele oferece os seguintes atributos: 1)Atributo de dado velocidade 2)Mtodo acelerar, que dever incrementar a velocidade de uma unidade 3)Mtod...
17.751825
93
0.612664
92abd4bfab45f4773add1ea8e00aef24b3e5cafc
2,482
py
Python
gpflowopt/acquisition/poi.py
kyu999/GPflowOpt
972aa70a57222c66ce9bcfe077f92deb4fbaf227
[ "Apache-2.0" ]
258
2017-04-28T15:47:35.000Z
2022-03-31T08:44:40.000Z
gpflowopt/acquisition/poi.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
123
2017-04-28T22:20:47.000Z
2021-10-01T16:29:47.000Z
gpflowopt/acquisition/poi.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
69
2017-06-06T00:18:01.000Z
2022-02-25T21:43:39.000Z
# Copyright 2017 Joachim van der Herten # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
36.5
154
0.670024
92ae05ad8c75372791cf6ad5c9f3d0a8771a5d26
3,160
py
Python
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
null
null
null
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
null
null
null
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
1
2022-02-12T11:34:44.000Z
2022-02-12T11:34:44.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django.template.loader import render_to_string from django.utils.translation import ugettext as _ from django.utils.functional import cached_property from django.core.exceptions import ImproperlyConfigured try: f...
32.57732
106
0.625316
92aeaf3bb38c5d7ba7802606c755df910d5db3eb
307
py
Python
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
8
2017-06-13T13:07:34.000Z
2020-02-13T06:30:42.000Z
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
null
null
null
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
3
2017-06-10T18:30:57.000Z
2019-03-19T07:28:25.000Z
from networkx import Graph, complement from networkx.algorithms.clique import find_cliques
23.615385
51
0.664495
92aeeb3e9d61abc362adc14aaad14c366f08ca7b
47,930
py
Python
src/vbr/tableclasses/redcap/autogenerated/qst_mcc1_v03.py
a2cps/python-vbr
9d5d4480386d0530450d59157e0da6937320f928
[ "BSD-3-Clause" ]
1
2021-05-26T19:08:29.000Z
2021-05-26T19:08:29.000Z
src/vbr/tableclasses/redcap/autogenerated/qst_mcc1_v03.py
a2cps/python-vbr
9d5d4480386d0530450d59157e0da6937320f928
[ "BSD-3-Clause" ]
7
2021-05-04T13:12:39.000Z
2022-03-09T21:04:33.000Z
src/vbr/tableclasses/redcap/autogenerated/qst_mcc1_v03.py
a2cps/python-vbr
9d5d4480386d0530450d59157e0da6937320f928
[ "BSD-3-Clause" ]
2
2021-04-20T14:46:52.000Z
2021-06-07T20:28:28.000Z
"""Autogenerated 2021-11-16T11:37:36.551949 by redcap_classfiles.py """ from ....pgrest import * from ...constants import Constants from ..rcconstants import REDCapConstants from ..rcaptable import RcapTable __all__ = ["RcapQstMcc1V03"]
68.964029
245
0.528041
92b048524e06f46f14c0a5fe0c3471d724de29c7
4,241
py
Python
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
2
2018-02-11T10:34:48.000Z
2018-02-11T17:31:21.000Z
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
null
null
null
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
null
null
null
# -*- coding: iso-8859-15 -*- import unicodedata import nltk from nltk.stem.porter import PorterStemmer import itertools from nltk.tokenize import RegexpTokenizer import pandas as pd import numpy as np import re from nltk.corpus import stopwords from tqdm import tqdm import glob import multiprocessing from functools im...
34.479675
90
0.590663
92b0497c2fa2c3a01be8e9844086d5b63c53e894
1,902
py
Python
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
from typing import Any import math import types from rx.core.notification import OnNext, OnError, OnCompleted from .recorded import Recorded from .subscription import Subscription def is_prime(i: int) -> bool: """Tests if number is prime or not""" if i <= 1: return False _max = int(math.floor(...
23.775
63
0.627234
92b1e3a36f771edef543cb8815d84b4cc693e74f
12,296
py
Python
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
from model.sentclassifier import SentClassifier from model.seqlabel import SeqLabel from utils.data import Data import torch import os import sys from utils.functions import normalize_word import time from main import recover_nbest_label, get_ner_fmeasure, recover_label, batchify_with_label # TEST STUFF if __n...
42.546713
156
0.588728
92b26fb10b69150eb5abb2d1e46488489f0a691c
55
py
Python
play_motion/play_motion/src/play_motion/__init__.py
hect1995/Robotics_intro
1b687585c20db5f1114d8ca6811a70313d325dd6
[ "BSD-3-Clause" ]
7
2018-10-24T14:52:20.000Z
2021-01-12T14:59:00.000Z
play_motion/play_motion/src/play_motion/__init__.py
hect1995/Robotics_intro
1b687585c20db5f1114d8ca6811a70313d325dd6
[ "BSD-3-Clause" ]
null
null
null
play_motion/play_motion/src/play_motion/__init__.py
hect1995/Robotics_intro
1b687585c20db5f1114d8ca6811a70313d325dd6
[ "BSD-3-Clause" ]
17
2019-09-29T10:22:41.000Z
2021-04-08T12:38:37.000Z
from .move_joint import move_joint, print_err, print_ok
55
55
0.854545
92b2ec2594b7f624a5e0c4ef610a7491441323d8
694
py
Python
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
10
2020-09-06T12:08:32.000Z
2021-07-19T15:12:30.000Z
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
null
null
null
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
1
2021-11-22T05:14:56.000Z
2021-11-22T05:14:56.000Z
#!/usr/bin/python import binascii import dpkt import struct import sys # Start the pcap file parsing f = open("usbtraffic.pcap", 'rb') pcap = dpkt.pcap.Reader(f) #print(pcap) lba = 0 packets = [] for ts, buf in pcap: #print(ts) if buf[64:68] == b'USBC': #lba = int( buf[], 16) a = buf[0x51:0x55]...
23.133333
66
0.567723
92b4a1d863351284e48ed8cd2f0cf5dc7bead1a6
2,586
py
Python
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
null
null
null
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
14
2020-12-06T13:31:34.000Z
2020-12-12T12:55:06.000Z
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
1
2020-12-17T14:33:19.000Z
2020-12-17T14:33:19.000Z
from django.shortcuts import render from . utils import get_html_content from store.utils import cartData # Create your views here.
41.047619
170
0.549111
92b599cdface562c0a63bce70f29c39376ec628b
2,699
py
Python
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
1
2021-11-18T02:27:29.000Z
2021-11-18T02:27:29.000Z
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
python/src/iceberg/avro/codecs/snappy_codec.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.557143
115
0.675435
92b669a43887f9c811d94bcfb545a90bfec0af49
718
py
Python
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
2
2015-10-07T12:31:24.000Z
2015-10-08T04:58:48.000Z
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
from setuptools import setup from pip.req import parse_requirements import sys, os sys.path.append("wutu/") sys.path.append("wutu/compiler/") install_reqs = list(parse_requirements("requirements.txt", session={})) setup(name="wutu", version=version(), description="A minimalistic python-angular frame...
27.615385
71
0.669916
92b778782a6c826438fa80906dc1159fa91249e9
2,063
py
Python
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
import itertools import threading import pickle import time import sys
20.838384
84
0.565681
92b80775e077bc571711817c75463061aa2ef995
2,632
py
Python
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
from pathlib import PurePath from elftools.elf.elffile import ELFFile from .typing import get_class import ctypes if __name__ == "__main__": filename = './test/resources/cpp_test_file.so' with open(str(filename), 'rb') as f: elffile = ELFFile(f) dwarf_info = elffile.get_dwarf_info() cu...
48.740741
153
0.676292
92ba7faaffb8f7360355154db493fc509d84f145
2,305
py
Python
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
import os from functools import partial import lazy_object_proxy start_spark()
43.490566
115
0.463774
92baceda72fe1079e3c469a957d61c1676e7dbea
1,534
py
Python
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
""" This file can be used to try a live prediction. """ import keras import librosa import numpy as np
30.078431
92
0.524772
2b7cd4df0f0bbe6c33a448d501b266a7c04861f1
3,956
py
Python
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
1
2021-11-12T12:57:59.000Z
2021-11-12T12:57:59.000Z
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
import pygame import __main__ from Modules.Globals import * from Modules.NavWidgets.Battery import * from Modules.NavWidgets.Bluetooth import * from Modules.NavWidgets.Wifi import * if __name__ == '__main__': pass
31.396825
105
0.503539
2b7e914455b7e4d21ee32d8e348737af8ad3bb3b
1,463
py
Python
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
4
2020-07-01T17:10:25.000Z
2020-11-10T22:15:55.000Z
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
null
null
null
app/auth/forms.py
hammer-mt/FireFlask
4bc9ea1d0a1a35d7dc726f4257cfbbc6e47528c2
[ "MIT" ]
3
2020-06-24T17:33:50.000Z
2020-11-17T20:45:43.000Z
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField from wtforms.validators import DataRequired, Email, Length from flask_wtf.file import FileField, FileAllowed, FileRequired
47.193548
92
0.723855
2b7eedc17fc971f906228a3bedf199afe148ad63
358
py
Python
executive/executive/urls.py
b800h/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
1
2019-03-14T11:13:00.000Z
2019-03-14T11:13:00.000Z
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'executive.views.home', name='home'), url(r'^cloudcontrol/ajax/', include('cloudcontrol.urlsajax')), url(r'^cloudcontrol/', include('cloudcontrol.urls')), url(r'^...
32.545455
66
0.675978
2b7faeb53a37cd7b206440dda10874cb138af114
5,356
py
Python
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
null
null
null
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
66
2019-05-03T22:10:11.000Z
2022-02-20T18:33:38.000Z
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
8
2018-05-17T04:16:30.000Z
2022-02-07T18:00:57.000Z
""" ================================================= Classify ALS diagnosis from white matter features ================================================= Predict ALS diagnosis from white matter features. This example fetches the ALS classification dataset from Sarica et al [1]_. This dataset contains tractometry featu...
41.51938
181
0.731516
2b827b627d677ff0e024a5757a45773ff0405784
7,004
py
Python
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
1
2020-05-05T05:11:56.000Z
2020-05-05T05:11:56.000Z
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Materials Virtual Lab # Distributed under the terms of the BSD License. import itertools import numpy as np import pandas as pd from monty.json import MSONable from pymatgen.core.periodic_table import get_el_sp from sklearn.base import TransformerMixin, BaseEstimator
43.234568
93
0.536408
2b87549bbd51431d78948c0c0286d6c5c6d1c477
4,505
py
Python
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
1
2022-02-24T23:39:12.000Z
2022-02-24T23:39:12.000Z
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
null
null
null
src/JetRecognizer/JetRecognizerTensorflow.py
albertinopadin/PlaneRecognizer
399eddd8d58ec47219804f23cec1503b01ea6c4d
[ "MIT" ]
null
null
null
from ImagePreprocessing.ImagePreprocessing import load_label_encoder, save_label_encoder, \ convert_labels_to_one_hot_vectors from JetRecognizerPreprocessing import get_random_train_fighter_images_as_pixel_values_generator, \ get_random_validation_fighter_images_as_pixel_values_generator from BatchLoopGenerator...
45.505051
131
0.767592
2b88ac303411dbb8834614706fb3ea14becb3330
68,137
py
Python
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
46.132024
198
0.610931
2b89378a0a9c79a3daaa3b6a56cbcba3f417f9d5
455
py
Python
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
1
2019-10-03T02:51:05.000Z
2019-10-03T02:51:05.000Z
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
null
null
null
bin/test_client.py
malishav/coap
bd7a0da9065fc161f680be8b2b1e8e8f649cecd6
[ "BSD-3-Clause" ]
null
null
null
import os import sys here = sys.path[0] sys.path.insert(0, os.path.join(here,'..')) import time from coap import coap import logging_setup SERVER_IP = '::1' # open c = coap.coap(udpPort=5000) # retrieve value of 'test' resource p = c.GET('coap://[{0}]/test'.format(SERVER_IP),) print '=====' pri...
16.25
50
0.610989
2b8a7153a2c7fe04826c272ba305bcfaefa1482d
1,469
py
Python
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
color_gamma_analyzer/tests/test_diapason.py
AndrianCode/ColorGammaAnalyzer
0699c3f71c29308fca9983f45f2200443c68e757
[ "MIT" ]
null
null
null
import unittest from color_gamma_analyzer.diapason import calculate_ranges if __name__ == '__main__': unittest.main()
26.232143
76
0.497617
2b8bc3d0e40e43824259f72ae47057f59a324480
3,470
py
Python
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# W roku 2050 Maksymilian odbywa podr przez pustyni z miasta A do miasta B. Droga pomidzy miastami # jest lini prost na ktrej w pewnych miejscach znajduj si plamy ropy. Maksymilian porusza si # 24-koow cystern, ktra spala 1 litr ropy na 1 kilometr trasy. Cysterna wyposaona jest w pomp # pozwalajc zbiera rop z plam. Aby...
50.289855
104
0.69366
2b8d41aecdba1cd7987f459d5c39928afa74674b
159
py
Python
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
26
2019-01-07T14:22:05.000Z
2019-02-28T17:11:48.000Z
authors/apps/articles/admin.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
3
2019-09-19T22:16:09.000Z
2019-10-16T21:16:16.000Z
from django.contrib import admin from .models import Article ,Comment # Register your models here. admin.site.register(Article) admin.site.register(Comment)
19.875
36
0.805031
2b8e4161bf16ec89b1640782424942de3ea30db0
6,499
py
Python
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
90
2021-01-04T20:08:20.000Z
2022-03-14T11:20:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
93
2020-12-12T22:10:33.000Z
2021-11-21T16:12:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
13
2020-12-12T22:11:01.000Z
2021-09-22T14:37:09.000Z
import os from typing import Union from aws_cdk import core from aws_cdk.core import CfnOutput from datajob import logger from datajob.datajob_context import DataJobContext from datajob.datajob_execution_input import DataJobExecutionInput def create_resources(self) -> None: """create each of the resourc...
36.717514
113
0.62625
2b8e54d9ba07085ebbc7eda5e53fdf3cf8fed6cb
5,869
py
Python
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
1
2020-06-04T11:10:27.000Z
2020-06-04T11:10:27.000Z
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable if __name__ == '__main__': datas = load_data() datas = np.hstack([d for d in datas]).T batch_si...
30.567708
114
0.552905
2b8e9143a4d8b498c35d6f0274755ccab7a27fe4
1,994
py
Python
Sources/Workflows/XLixian/iambus-xunlei-lixian/lixian_hash.py
yagosys/AlfredWorkflow.com
9e5087e61fb89640a7a6ca89ba554303aec0b037
[ "MIT" ]
2,177
2015-01-02T09:56:51.000Z
2022-03-27T01:48:37.000Z
lixian_hash.py
lincank/xunlei-lixian
fe96ee19c1af8a268dc39818a5e8d33ff71e50ee
[ "MIT" ]
24
2015-01-02T19:11:51.000Z
2021-01-27T07:20:33.000Z
lixian_hash.py
lincank/xunlei-lixian
fe96ee19c1af8a268dc39818a5e8d33ff71e50ee
[ "MIT" ]
516
2015-01-02T18:48:29.000Z
2022-01-26T07:12:35.000Z
#!/usr/bin/env python import hashlib import lixian_hash_ed2k import lixian_hash_bt import os if __name__ == '__main__': import sys args = sys.argv[1:] main(args)
23.458824
55
0.675025
2b924ecff2ec12429f869ba4056b1d43ae0cd0bd
39
py
Python
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
null
null
null
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
null
null
null
banking/src/common/enum.py
teamo2dev/coin-town
74ba60ee45644950074efb725d990d63a418c7f6
[ "MIT" ]
1
2021-08-28T08:34:56.000Z
2021-08-28T08:34:56.000Z
CONTENT_TYPE_JSON = 'application/json'
19.5
38
0.820513
2b93570ed0d715724876abed8f98fd6668d40c94
5,130
py
Python
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
1
2018-11-12T10:54:24.000Z
2018-11-12T10:54:24.000Z
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
null
null
null
fesim_util.py
matti-logiko/PyPlate
05e877ae6abc20ad7fb4fe15bd403595a92b99d7
[ "MIT" ]
1
2018-11-12T10:54:27.000Z
2018-11-12T10:54:27.000Z
""" Utility class for fesim By: Mehdi Paak """ import os import subprocess def create_meshinput_file(vardict): """ generate temporary mesh data input file to be read by salome_mesh.py script. """ try: geofile = vardict['GEOFILE'] wrkdir = vardict['WRKDIR'] seg_a = vardict...
28.983051
104
0.575828
2b9525401f62a8c3bf39cf1a74d072fa4e2b9b95
2,455
py
Python
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
14
2015-03-11T21:46:15.000Z
2020-06-06T16:01:38.000Z
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
20
2015-01-21T16:11:36.000Z
2020-01-06T10:30:46.000Z
chemreac/util/grid.py
chemreac/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
3
2015-08-13T12:06:17.000Z
2021-12-17T01:12:20.000Z
# -*- coding: utf-8 -*- """ chemreac.util.grid ------------------ Grid related utilities for one-dimensional grid of arbitrary spacing. """ from __future__ import print_function, division from math import log import numpy as np from ..units import get_derived_unit, to_unitless def padded_centers(x, nsidep): ...
25.309278
93
0.600407
2b95278b15173f39c3e354e42bd5da9df55f3094
4,771
py
Python
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
#python: from collections import namedtuple import numpy as np from scipy.constants import speed_of_light import gprMax.input_cmd_funcs as gprmax_cmds import aux_funcs Point = namedtuple('Point', ['x', 'y', 'z']) # ! Simulation model parameters begin # * Naming parameters simulation_name = 'Antenna in free spac...
29.450617
78
0.640537
2b96748117a2ee7e1202b513f6bf2c96ed0a9759
6,226
py
Python
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-08-06T13:32:17.000Z
2021-08-06T13:32:17.000Z
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
null
null
null
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-10-20T20:16:30.000Z
2021-10-20T20:16:30.000Z
# Save Roam JSON Export file in same folder and run following code in terminal `python r2o.py my-roam-export.json` import sys import os import json from tqdm import tqdm import re from dateutil.parser import parse from datetime import datetime yaml = """--- title: {title} created: {created} --- """ months = r"Jan...
29.789474
114
0.540475
2b99fe63fcf6d06c867423d961d88a13935d459e
1,465
py
Python
var/spack/repos/builtin/packages/canu/package.py
mrzv/spack
a0fb2838ea60f020179f480a2db1438da9d2e2ab
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
34.069767
95
0.63959
2b9a383e24e5d4a41702986edf7f6ba4a61bd555
578
py
Python
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
1
2022-02-23T07:34:53.000Z
2022-02-23T07:34:53.000Z
EXC/CW2/task4-3/aggregate-combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # aggregate-combiner.py import sys answers = [] last_user_id = None MEM_THRESHOLD = 1024 * 1024 * 1024 # 1 GB for line in sys.stdin: user_id, answer_id = line.strip().split('\t', 1) if (last_user_id and last_user_id != user_id) or sys.getsizeof(answers) > MEM_THRESHOLD: write(last_...
22.230769
92
0.65917
2b9c36065308f6e11cc20429ce2141c3f1285943
646
py
Python
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
tests/test_meta.py
adsabs/flask-mongoalchemy
3a508029fc99726fc32e98060af7476287a68ea1
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2010 flask-mongoalchemy authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from __future__ import absolute_import from mongoalchemy import document from flaskext.mongoalchemy import Document from fla...
29.363636
65
0.787926
2b9c7ab513539e60f2d46c3236a9f0d71ce9e6af
446
py
Python
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import socket #target machine's ip number target_ip = '3.82.4.173' #target machine's port number target_port = 8888 #create UDP socket # IPv4--(INET--INET6), type of socket UDP --(DGRAM--STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) while True: msg = input("P...
20.272727
75
0.665919
2b9edcb37a923970861e233477ef7c666f955383
601
py
Python
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/neo4jAPI/rest_server.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
from neo4j import GraphDatabase,basic_auth from neo4j.expections import ServiceUnavailable import neo_native_app as neo4j import json from flask import Flask app = Flask(__name__) if __name__ == "__main__": app.run(host ='0.0.0.0')
22.259259
52
0.71381
2b9f17f18f5bbb0bd66f11c7a64aabbb4c285ec5
733
py
Python
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
null
null
null
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
50
2021-08-28T23:02:22.000Z
2022-01-18T18:31:21.000Z
step1a/sanproof_1_02/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
1
2021-09-02T04:36:26.000Z
2021-09-02T04:36:26.000Z
# coding=utf-8 """transcode_ab.py """ from __future__ import print_function import sys, re,codecs sys.path.append('../') import transcoder transcoder.transcoder_set_dir('../transcoder') if __name__=="__main__": filein = sys.argv[1] # assumed Devanagari encoding of Sanskrit fileout = sys.argv[2] # with codecs.ope...
27.148148
63
0.709413
2ba3178b86594e0bd355d453a40ea67602520196
3,361
py
Python
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
from threading import Thread, Timer from time import time import logging try: import Adafruit_DHT except: pass
36.532609
109
0.547456
2ba81ec618c7d1270dc12f7a84fbe054a68e7523
1,073
py
Python
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SDPR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
1
2021-09-26T08:03:11.000Z
2021-09-26T08:03:11.000Z
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
""" Flask app """ import pandas as pd from flask import Flask import json app = Flask(__name__) # runs in local host http://127.0.0.1:5000/latest/all # Get setup so that if we call the app directly (and it isn't being imported elsewhere) if __name__ == '__main__': app.run(debug=True)
24.386364
97
0.652377
2ba9a68c0d2e685fc62f09c1f4d6c194b81d0b3e
173
py
Python
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
119
2020-04-01T02:56:03.000Z
2022-03-30T13:01:49.000Z
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
8
2020-04-08T08:52:19.000Z
2021-12-08T04:22:37.000Z
inversefed/nn/__init__.py
MelonDLI/ATSPrivacy
2cf4bd67c9c0c69092b63dcdc3d06b33acf32812
[ "MIT" ]
47
2020-04-06T07:14:59.000Z
2022-03-21T15:57:53.000Z
"""Experimental modules and unexperimental model hooks.""" from .models import construct_model from .modules import MetaMonkey __all__ = ['construct_model', 'MetaMonkey']
24.714286
58
0.786127
2bab34cabee96c50bbb6c626cf15d0541229eed3
376
py
Python
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
Gyandaan2/appointments/migrations/0023_remove_appointment_student_id.py
siddanthshetty000/Gyandaan
c65e3e021b84535dc86257e1c0d8152fdeda2269
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-26 09:48 from django.db import migrations
20.888889
70
0.598404
2bab74084dad44f3e5db5cfb85553841ba064145
259
py
Python
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
Sieve.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
import itertools
28.777778
76
0.594595
2babfb50af910a621784aa5f2878e7604544427c
535
py
Python
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
import cv2 import numpy as np showImage()
22.291667
53
0.573832
2bac10073b3ae6eec7697f798e5c4e87de6ae3a5
33,051
py
Python
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/containerapp/azext_containerapp/tests/latest/test_containerapp_commands.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
58.809609
291
0.663399
2bac2bdf3e935053151415509164e32a0e767cd4
1,340
py
Python
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np import warnings warnings.filterwarnings('ignore') #New record new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #Reading file data = np.genfromtxt(path, delimiter=",", skip_header=1) #Code starts here census=np.concatenate((data,new_record)) a...
23.928571
57
0.71194
2bad03cbdb9b9c6e7b1117ca58db86aba320ec23
3,247
py
Python
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
8
2017-07-02T10:45:43.000Z
2022-02-25T16:30:22.000Z
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
null
null
null
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
1
2019-07-10T06:49:22.000Z
2019-07-10T06:49:22.000Z
#!/usr/bin/env python3 # tkpng - example of using tkinter and pypng to display pngs (albeit reduced quality) # in nothing but pure python. Can use RGBA images, but the alpha is stripped. # v0.3 - structure rearranged to make classes and functions for reuse from array import * from tkinter import * import png # MAIN ...
41.101266
122
0.493994
2baf47be9d3daf1c604497a9da492e2f6f27a9d5
2,083
py
Python
demos/face_recognition_demo/python/landmarks_detector.py
Ohtani-y/open_model_zoo
280b59fc6c00455889a1949c795558252fdad96f
[ "Apache-2.0" ]
2
2019-08-20T15:30:19.000Z
2020-09-01T15:16:33.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
4
2020-05-22T17:30:43.000Z
2021-08-02T07:33:16.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
2
2021-06-25T06:18:58.000Z
2021-08-04T10:05:32.000Z
""" Copyright (c) 2018-2021 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 i...
37.196429
108
0.697072
2bb0744556e03bcafe147ce0dc50dc9bf26d2ee6
5,724
py
Python
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
ems_cli/commands/create_hls_stream.py
tomi77/ems-cli
4e249b58af03416f931264f7de56eadeb4b2bcf5
[ "MIT" ]
null
null
null
import os from . import BaseCommand from ..i18n import _
48.10084
80
0.570231
2bb09c7c624b4b2fa539a4a7b7639cfbbb55950f
23,581
py
Python
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 by dhrone. All Rights Reserved. # import time from .iot import Iot from .utility import get_utc_timestamp from .objects import ASHO def _setdirective(self, request, propertyName, payloadName, validRange=None): # Should really send an error if out of range ...
52.872197
221
0.713329
2bb22f0b235ccbd5403faa7e90ca5e580a0c0f77
1,696
py
Python
Invisible Pixels/invisible_pixel.py
Yash-Vekaria/Web-Tracking-in-Indian-Partisan-News-Websites
9fac25ed364b823d13d25346dbaef3042fa459fb
[ "MIT" ]
1
2021-01-31T17:32:38.000Z
2021-01-31T17:32:38.000Z
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
null
null
null
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
2
2021-01-31T16:48:13.000Z
2021-05-28T15:33:48.000Z
import sqlite3 import json import pandas as pd import numpy as np homepages = list(pd.read_csv('news_homepage_urls.csv')['news_url']) conn = sqlite3.connect('./topics_url_crawls/topics_url_crawl4/crawl-data_all_topics4.sqlite') c = conn.cursor() res = [['image_url', 'content_length', 'req_id', 'visit_id', 'news_site...
34.612245
114
0.608491
2bb4fcba3285a569396ccc8016820835689216c0
1,368
py
Python
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
null
null
null
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
9
2020-06-19T16:34:08.000Z
2021-04-19T16:09:53.000Z
tests/helpers.py
oarepo/oarepo-fsm
f28471e10d0419e282dcc69744dbc7b2275d46b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CESNET. # # oarepo-fsm is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """Pytest helper methods.""" import copy import uuid from flask_security import login_user from invenio_db import db...
25.811321
77
0.703947
2bb98a7d05b2fa13ccaa82a80ac1056091559328
1,844
py
Python
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
2
2020-04-28T16:50:43.000Z
2020-09-13T10:36:08.000Z
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
from html.parser import HTMLParser from .test_data import TestData
28.8125
74
0.625813
2bbb4aba06003d96ae6df55d6da4fe272ec4958a
10,644
py
Python
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
import json from nonogram_solver.error import LengthError, ClueError, AxisError, SetSolutionError
31.868263
90
0.530252
2bbc1387949c1f848c4efefd89253c1a919c0873
30
py
Python
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/api/__init__.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
from app.api.routes import api
30
30
0.833333
2bbe278b496ce085135269ff9461df76d529a0fd
2,468
py
Python
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
3
2020-02-17T11:11:08.000Z
2021-12-03T18:54:47.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
1
2019-12-05T15:32:50.000Z
2019-12-10T16:13:08.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
2
2019-09-26T20:21:14.000Z
2021-07-10T04:37:31.000Z
#!/usr/bin/env python """Python wrapper module for the GROMACS make_ndx module """ import sys import json from command_wrapper import cmd_wrapper import configuration.settings as settings from tools import file_utils as fu #Creating a main function to be compatible with CWL def main(): system=sys.argv[1] step...
35.257143
94
0.633712
2bbf26e6f9ed571944d41bf407293fbe14a0b718
18,454
py
Python
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/plot/test_structure_plotters.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
import autoarray as aa import autoarray.plot as aplt from os import path import pytest import numpy as np import shutil directory = path.dirname(path.realpath(__file__))
35.217557
89
0.617427
2bbf71442072bd282493639805a17b1c960bf32f
5,866
py
Python
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
null
null
null
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
40
2018-06-18T13:43:42.000Z
2018-07-24T19:24:57.000Z
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
2
2018-07-17T20:47:23.000Z
2018-07-27T17:42:53.000Z
from __future__ import print_function import os import sys import time import traceback import subprocess from shutil import disk_usage, rmtree from base64 import b64decode pipWorking = False gitWorking = False if __name__ == '__main__': main()
36.434783
183
0.56103
2bc2d93e8d13d4e3616e50c69adba5724129cd36
280
py
Python
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2019-11-05T18:28:22.000Z
2019-11-05T18:28:22.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
9
2019-12-05T01:04:48.000Z
2021-06-10T19:26:06.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2020-09-24T22:21:14.000Z
2020-09-24T22:21:14.000Z
from django import template register = template.Library() from ..models import Notification
23.333333
67
0.707143
2bc2f3579b936e5347d7069c68b383a1d2e7b783
499
py
Python
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
2
2021-09-15T04:12:07.000Z
2022-02-04T02:44:09.000Z
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
import pytest from ekorpkit import eKonf
23.761905
63
0.677355
2bc30fd5ccd085f6e33f22005fb27c74cb901846
16,111
py
Python
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
5
2021-07-24T15:11:28.000Z
2021-07-24T15:11:49.000Z
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
import os import operator from flask import Blueprint, redirect, render_template, url_for, request, session from flask_socketio import SocketIO, emit, join_room, leave_room from . import socketio from .helper import * from .generator import generate_room_code from .database import * MIN_PLAYER_COUNT = 4 app = Bluepri...
36.042506
136
0.638322
2bc4ad754b21348d16285e2026fcdacb8e8dc9ad
1,075
py
Python
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # This module requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.module import Module from hatsploit.utils.session import SessionTools
26.219512
65
0.572093
2bc4ad99cec6515a6001bb4ad4c1f6891d5605dd
293
py
Python
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
p = ('Curso', 'Video', 'Python') cont = 0 contl = 0 while True: while True: if p[cont][contl] in 'AaEeIiOoUu': print(p[cont][contl]) contl += 1 if contl >= len(p[cont]): break contl = 0 cont += 1 if cont >= len(p): break
19.533333
42
0.467577
2bc5c9f0df460e7d769b16ab75ae99c2117d9daa
3,951
py
Python
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
import requests import time from urllib.parse import urlparse, parse_qs from selenium.common.exceptions import NoSuchElementException def SolveCaptcha(api_key, site_key, url): """ Uses the 2Captcha service to solve Captcha's for you. Captcha's are held in iframes; to solve the captcha, you need a part of...
41.589474
185
0.68894
2bc827b81d318e5b08fd6be908891296ced5a47e
3,350
py
Python
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
1
2022-02-01T04:50:22.000Z
2022-02-01T04:50:22.000Z
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
2
2021-12-07T10:40:44.000Z
2021-12-23T13:42:07.000Z
src/bpyutils/util/request.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
null
null
null
import re import os.path as osp import requests # from fake_useragent import UserAgent from bpyutils.db import get_connection from bpyutils.util.proxy import get_random_requests_proxies from bpyutils.util._dict import merge_dict from bpyutils.util.imports import import_or_raise from bpyutils.util.string ...
30.18018
100
0.618806
2bcbff98a3b8f0e8db73d81591bf41ea08b8b323
1,845
py
Python
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
null
null
null
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
null
null
null
bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py
teapowell/bclearer_boson_1_2
571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0
[ "MIT" ]
1
2021-11-19T13:05:53.000Z
2021-11-19T13:05:53.000Z
from bclearer_source.b_code.common_knowledge.content_operation_types import ContentOperationTypes from bclearer_source.b_code.common_knowledge.digitialisation_level_stereotype_matched_ea_objects import \ DigitalisationLevelStereotypeMatchedEaObjects from bclearer_source.b_code.configurations.content_operation_confi...
52.714286
138
0.852033
2bcdc35a04b16095280a01dc75b1da9b3b40cc93
1,246
py
Python
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
"""solution.py""" import math import os import random import re import sys import timeit def run_time_it(): """Trigger timeit""" dynamicArray(n, queries) if __name__ == '__main__': INPUT_PATH = 'input/' for filename in os.listdir(INPUT_PATH): print(' %s' % (filename)) f = open(INPUT_...
22.654545
79
0.539326
2bcdd23129cd748120cb2b5f88558b1bd84fa70e
9,644
py
Python
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
prettifyoutput_fast.py
compbio-iitr/SRFv2
b7350f15db4ff0f21f268b81d78d77004530a6e8
[ "MIT" ]
null
null
null
import re import json from reading_json import modification_json from downloadable_file_fast import downloadable #def pat2json(filename, jsonfilename): # json_string = {'data' : {}, 'mers': []} # mers = [] # with open(filename, 'r') as pat: # idx = 0 # lines = pat.readlines() # while idx ...
39.52459
219
0.501659
2bcf4ebb9b8e16ba99b810270dfd24d5a5b61f81
1,235
py
Python
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
null
null
null
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
1
2021-05-12T17:54:04.000Z
2021-05-12T17:54:04.000Z
jsonscribe/filters.py
aweber/json-scribe
cc5ea2ed33afb0ffcee0c4610de77be83200c173
[ "BSD-3-Clause" ]
1
2021-05-12T12:16:39.000Z
2021-05-12T12:16:39.000Z
import logging import uuid from jsonscribe import utils
28.068182
71
0.595951