hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
10e2b00c6ccdaad9da612055fa45d2c4930f0890
3,498
py
Python
Judge/judge_core.py
peeesspee/BitOJ
0d67a87b71d0c8c8d3df719f1b9e176ec91cfb32
[ "MIT" ]
30
2019-07-28T18:05:33.000Z
2021-12-27T10:19:31.000Z
Judge/judge_core.py
peeesspee/BitOJ
0d67a87b71d0c8c8d3df719f1b9e176ec91cfb32
[ "MIT" ]
2
2019-09-03T19:53:03.000Z
2019-10-18T11:00:44.000Z
Judge/judge_core.py
peeesspee/BitOJ
0d67a87b71d0c8c8d3df719f1b9e176ec91cfb32
[ "MIT" ]
4
2019-10-02T04:54:50.000Z
2020-08-10T13:28:58.000Z
# This process handles all the requests in the queue task_queue and updates database import json, pika, sys, time from database_management import manage_database, submission_management class core(): data_changed_flags = '' task_queue = '' channel = '' file_password = '' unicast_exchange = 'connection_manager' ...
28.209677
106
0.64837
3,308
0.945683
0
0
0
0
0
0
1,009
0.288451
10e350fdeb74a09ba92056d3e0417d107ac47a47
50
py
Python
{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py
cav71/cav71-python-package-cookiecutter
697a830560ee5e3072e28a0021e227a7d0ef5b66
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py
cav71/cav71-python-package-cookiecutter
697a830560ee5e3072e28a0021e227a7d0ef5b66
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py
cav71/cav71-python-package-cookiecutter
697a830560ee5e3072e28a0021e227a7d0ef5b66
[ "BSD-3-Clause" ]
null
null
null
__version__ = "0.0.0" __hash__ = "<invalid-hash>"
16.666667
27
0.66
0
0
0
0
0
0
0
0
23
0.46
10e3ae93c25d180de54302b985756fd17e3e9d4e
5,954
py
Python
generator/restaurant.py
mouse-reeve/unfamiliar-tourism
18daa6f130ceeaf75b5b74d119b77580063dc838
[ "MIT" ]
3
2019-02-27T20:35:22.000Z
2020-11-16T16:56:36.000Z
generator/restaurant.py
mouse-reeve/unfamiliar-tourism
18daa6f130ceeaf75b5b74d119b77580063dc838
[ "MIT" ]
10
2017-10-05T19:50:47.000Z
2018-10-17T15:17:52.000Z
generator/restaurant.py
mouse-reeve/unfamiliar-tourism
18daa6f130ceeaf75b5b74d119b77580063dc838
[ "MIT" ]
1
2020-11-16T16:56:39.000Z
2020-11-16T16:56:39.000Z
''' buildings and built environment ''' from datetime import datetime import random import tracery from utilities import format_text, get_latin def eatery(name, dish, category, data): ''' a charming stone hut where they serve tea ''' earliest = data['founded'] if data['founded'] > 1700 else 1700 founding =...
44.432836
80
0.533255
0
0
0
0
0
0
0
0
4,101
0.688781
10e603705f200570ddc8a317e07439c1c6aa3453
1,235
py
Python
Urutu/cu/blocks.py
adityaatluri/Urutu
a01cfc5e4101e0479ae420807c8a380fcdfb96ff
[ "Apache-2.0" ]
null
null
null
Urutu/cu/blocks.py
adityaatluri/Urutu
a01cfc5e4101e0479ae420807c8a380fcdfb96ff
[ "Apache-2.0" ]
null
null
null
Urutu/cu/blocks.py
adityaatluri/Urutu
a01cfc5e4101e0479ae420807c8a380fcdfb96ff
[ "Apache-2.0" ]
null
null
null
## CUDA blocks are initialized here! ## Created by: Aditya Atluri ## Date: Mar 03 2014 def bx(blocks_dec, kernel): if blocks_dec == False: string = "int bx = blockIdx.x;\n" kernel = kernel + string blocks_dec = True return kernel, blocks_dec def by(blocks_dec, kernel): if blocks_dec == False: string = "int...
27.444444
59
0.663158
0
0
0
0
0
0
0
0
281
0.22753
10e7175402559319c02afe0d648f19ee8be6ef3c
953
py
Python
tests/test_attr.py
tatsuya4649/dcolour
fc55768ca5f9208771b034c85c72cbc72ff98adc
[ "MIT" ]
null
null
null
tests/test_attr.py
tatsuya4649/dcolour
fc55768ca5f9208771b034c85c72cbc72ff98adc
[ "MIT" ]
null
null
null
tests/test_attr.py
tatsuya4649/dcolour
fc55768ca5f9208771b034c85c72cbc72ff98adc
[ "MIT" ]
null
null
null
import pytest from dcolor.attr import * def attr_init(): attr = Attr( kind="bold" ) yield attr def test_init(): Attr( kind="bold" ) def test_init2(): Attr( kind=AttrList.bold ) @pytest.mark.parametrize( "kind", [ b"kind", 10, 10.0, ["bold"], ...
15.883333
34
0.52361
0
0
74
0.07765
264
0.27702
0
0
79
0.082896
10e78d87cc82a459f5caa7a1a6341f84faedc2e2
7,358
py
Python
tests/test_setuptools_build_subpackage.py
ashb/setuptools-build-subpackage
6169baaea0020aaecf71e0441e1c44120c88b4ff
[ "Apache-2.0" ]
2
2020-11-30T12:41:13.000Z
2021-07-14T14:43:42.000Z
tests/test_setuptools_build_subpackage.py
ashb/setuptools-build-subpackage
6169baaea0020aaecf71e0441e1c44120c88b4ff
[ "Apache-2.0" ]
null
null
null
tests/test_setuptools_build_subpackage.py
ashb/setuptools-build-subpackage
6169baaea0020aaecf71e0441e1c44120c88b4ff
[ "Apache-2.0" ]
null
null
null
import os import tarfile import textwrap from pathlib import Path import setuptools from wheel.wheelfile import WheelFile from setuptools_build_subpackage import Distribution ROOT = Path(__file__).parent.parent def build_dist(folder, command, output, *args): args = [ '--subpackage-folder', fold...
41.806818
119
0.647323
0
0
0
0
0
0
0
0
4,406
0.598804
10eabbde5c8c1ecebe18272de8da83e00ed981a5
2,711
py
Python
satchless/checkout/tests/__init__.py
styleseat/satchless
884d0256c6af9b1de596d3875ee12dc02ecfaf8a
[ "BSD-4-Clause" ]
1
2017-11-26T18:53:40.000Z
2017-11-26T18:53:40.000Z
satchless/checkout/tests/__init__.py
styleseat/satchless
884d0256c6af9b1de596d3875ee12dc02ecfaf8a
[ "BSD-4-Clause" ]
13
2015-01-22T23:47:52.000Z
2022-01-13T20:22:34.000Z
satchless/checkout/tests/__init__.py
styleseat/satchless
884d0256c6af9b1de596d3875ee12dc02ecfaf8a
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.conf import settings from django.http import HttpResponse from django.test import ( Client, TestCase, ) from satchless.cart.tests import TestCart from ...cart.models import CART_SESSION_KEY from ...order.app import order_app from ...pri...
34.316456
93
0.677241
2,178
0.803394
0
0
0
0
0
0
119
0.043895
10eadf799059b6e61c4efcf6b39cc22bd1709f1f
4,309
py
Python
app/source/tests_previos/test6/run.py
SMDynamicsLab/Haptic
2c109cf4098c3e9b968bfd0d6ddd48e9a80f270e
[ "MIT" ]
null
null
null
app/source/tests_previos/test6/run.py
SMDynamicsLab/Haptic
2c109cf4098c3e9b968bfd0d6ddd48e9a80f270e
[ "MIT" ]
null
null
null
app/source/tests_previos/test6/run.py
SMDynamicsLab/Haptic
2c109cf4098c3e9b968bfd0d6ddd48e9a80f270e
[ "MIT" ]
null
null
null
import os import subprocess import pathlib import time import sys from numpy.core.shape_base import block import pandas as pd import matplotlib.pyplot as plt import numpy as np from random import randint import random from datetime import datetime def run_make(): p_status, p_output = subprocess.getstatusoutput('m...
34.472
95
0.624043
0
0
0
0
0
0
0
0
1,076
0.24971
10ebbac7e6bf038ef16d63153c2620db6f0bfe22
7,167
py
Python
Libraries_Benchmark/Real_dataset_experiments/code/Plotting/plots_code_real_dataset_var.py
gonzalo-munillag/Benchmarking_Differential_Privacy_Analytics_Libraries
eb0aaa38686812112d421085b0b61fa9880c4f87
[ "MIT" ]
null
null
null
Libraries_Benchmark/Real_dataset_experiments/code/Plotting/plots_code_real_dataset_var.py
gonzalo-munillag/Benchmarking_Differential_Privacy_Analytics_Libraries
eb0aaa38686812112d421085b0b61fa9880c4f87
[ "MIT" ]
null
null
null
Libraries_Benchmark/Real_dataset_experiments/code/Plotting/plots_code_real_dataset_var.py
gonzalo-munillag/Benchmarking_Differential_Privacy_Analytics_Libraries
eb0aaa38686812112d421085b0b61fa9880c4f87
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.gridspec as gs import numpy as np import pandas as pd import csv from matplotlib.lines import Line2D epsilon = pd.read_pickle('epsilon.pkl') def plots_with_sizes(result_folder, query, attribute): if attribute == 'age': d = 1 if attribute == '...
62.321739
298
0.654528
0
0
0
0
0
0
0
0
3,685
0.514019
10eec5ef18a14eb50d0dd2a7fc5c856e9cf818ae
5,443
py
Python
tests/anim.py
jerry-belaston/gopro-lib-node.gl
623031489ddc82ed980c15bad349391c5b6bab5c
[ "Apache-2.0" ]
1
2020-09-02T01:30:21.000Z
2020-09-02T01:30:21.000Z
tests/anim.py
jerry-belaston/gopro-lib-node.gl
623031489ddc82ed980c15bad349391c5b6bab5c
[ "Apache-2.0" ]
1
2020-09-09T16:14:38.000Z
2020-09-09T16:14:38.000Z
tests/anim.py
jerry-belaston/gopro-lib-node.gl
623031489ddc82ed980c15bad349391c5b6bab5c
[ "Apache-2.0" ]
1
2020-09-09T14:51:05.000Z
2020-09-09T14:51:05.000Z
#!/usr/bin/env python # # Copyright 2020 GoPro Inc. # # 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...
34.232704
96
0.60959
0
0
0
0
2,477
0.45508
0
0
1,073
0.197134
10eff1d39f6acd5ae6fc306444aa467930b6a9d1
1,624
py
Python
ozpcenter/models/import_task_result.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2018-10-05T17:03:01.000Z
2018-10-05T17:03:01.000Z
ozpcenter/models/import_task_result.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2017-01-06T19:20:32.000Z
2017-01-06T19:20:32.000Z
ozpcenter/models/import_task_result.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
7
2016-12-16T15:42:05.000Z
2020-09-05T01:11:27.000Z
from django.db import models from ozpcenter.utils import get_now_utc from .import_task import ImportTask class ImportTaskResultManager(models.Manager): def get_queryset(self): return super().get_queryset() def find_all(self): return self.all() def find_by_id(self, id): return s...
28.491228
105
0.690887
1,512
0.931034
0
0
0
0
0
0
236
0.14532
10f03c8b4ec1d6bf728c70944a7bf9b8db50e71f
3,422
py
Python
latmats/tasks/loader.py
ardunn/latmats
9eabbd404041cd706dac443dda18bf4809835d3b
[ "MIT" ]
null
null
null
latmats/tasks/loader.py
ardunn/latmats
9eabbd404041cd706dac443dda18bf4809835d3b
[ "MIT" ]
null
null
null
latmats/tasks/loader.py
ardunn/latmats
9eabbd404041cd706dac443dda18bf4809835d3b
[ "MIT" ]
null
null
null
""" Loading utilities for computational experiments. """ import os import pandas as pd DATA_DIR = os.path.dirname(os.path.abspath(__file__)) def load_zT(all_data=False): """ Thermoelectric figures of merit for 165 experimentally measured compounds. Obtained from the Citrination database maintained by C...
31.394495
96
0.708358
0
0
0
0
0
0
0
0
2,750
0.803624
10f0b5be627adb241ec165f681ffdd4b7c724bf9
1,913
py
Python
triviaqa_cp/triviaqa_cp_loader.py
chrisc36/debias
98033fd569499879ba8d0ef917b37913660f3701
[ "Apache-2.0" ]
51
2019-09-12T03:40:08.000Z
2022-03-12T07:47:33.000Z
triviaqa_cp/triviaqa_cp_loader.py
kiminh/debias
98033fd569499879ba8d0ef917b37913660f3701
[ "Apache-2.0" ]
2
2020-05-22T14:32:50.000Z
2021-03-26T08:36:47.000Z
triviaqa_cp/triviaqa_cp_loader.py
kiminh/debias
98033fd569499879ba8d0ef917b37913660f3701
[ "Apache-2.0" ]
8
2019-10-25T06:08:29.000Z
2021-06-23T22:15:58.000Z
import json def get_qtypes(dataset_name, part): """Return list of question-types for a particular TriviaQA-CP dataset""" if dataset_name not in {"location", "person"}: raise ValueError("Unknown dataset %s" % dataset_name) if part not in {"train", "dev", "test"}: raise ValueError("Unknown part %s" % par...
32.423729
84
0.671197
0
0
0
0
0
0
0
0
868
0.453738
10f33906f4fef402a2de99509529076ca712a7c2
25
py
Python
org/sfu/billing/controller/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
1
2020-08-15T08:34:36.000Z
2020-08-15T08:34:36.000Z
org/sfu/billing/controller/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
null
null
null
org/sfu/billing/controller/__init__.py
MehdiLebdi/Real-Time-Charging_system
9eb59c12a36b3e10d9b3bf99bf2cd09a91376a10
[ "Apache-2.0" ]
null
null
null
__all__= ['controller']
8.333333
23
0.68
0
0
0
0
0
0
0
0
12
0.48
10f540c5034ca1b5afdb44405af84acd35b8db36
385
py
Python
tests/unicode/unicode_id.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
692
2016-12-19T23:25:35.000Z
2022-03-31T14:20:48.000Z
tests/unicode/unicode_id.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
tests/unicode/unicode_id.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
228
2016-12-19T05:03:30.000Z
2022-03-22T18:13:00.000Z
# test unicode in identifiers # comment # αβγδϵφζ # global identifiers α = 1 αβγ = 2 bβ = 3 βb = 4 print(α, αβγ, bβ, βb) # function, argument, local identifiers def α(β, γ): δ = β + γ print(β, γ, δ) α(1, 2) # class, method identifiers class φ: def __init__(self): pass def δ(self, ϵ): ...
13.75
39
0.584416
86
0.200935
0
0
0
0
0
0
144
0.336449
10f5834075ee59a03333434f3790eb69637b29a2
552
py
Python
examples/hsets.py
gfmartins/cssdbpy
f2369dd46caeb6bd84f2b1deacb8fb9416b26afc
[ "BSD-2-Clause" ]
85
2016-09-05T19:41:37.000Z
2021-11-08T11:26:54.000Z
examples/hsets.py
gfmartins/cssdbpy
f2369dd46caeb6bd84f2b1deacb8fb9416b26afc
[ "BSD-2-Clause" ]
10
2016-09-22T06:42:08.000Z
2018-12-12T13:55:16.000Z
examples/hsets.py
deslum/ssdbpy
4cecc6f421bbf1782334b294569801c5808aaaa1
[ "BSD-2-Clause" ]
9
2016-09-06T08:41:32.000Z
2020-09-08T04:04:23.000Z
from cssdbpy import Connection from time import time import md5 if __name__ == '__main__': conn = Connection('127.0.0.1', 8888) for i in xrange(0, 10000): md5word = md5.new('word{}'.format(i)).hexdigest() create = conn.execute('hset','words', md5word, int(time())) value = conn.execute('hget','words', md5word)...
32.470588
61
0.677536
0
0
0
0
0
0
0
0
117
0.211957
10f6dbf11be847714f973a856f08657cfe64dcc7
4,538
py
Python
BuildTiramisuData.py
abfarahani/Image-segmentation
d58d25a593384199f9d504eab3afbf3bdd108c17
[ "MIT" ]
null
null
null
BuildTiramisuData.py
abfarahani/Image-segmentation
d58d25a593384199f9d504eab3afbf3bdd108c17
[ "MIT" ]
null
null
null
BuildTiramisuData.py
abfarahani/Image-segmentation
d58d25a593384199f9d504eab3afbf3bdd108c17
[ "MIT" ]
null
null
null
import os import argparse from distutils.dir_util import copy_tree import random def main(args): """ Simple function that looks at the arguments passed, checks to make sure everything expected exists, and then defines a validation data set for later processing by TrainTiramisu.py and TestTiramisu.py ...
43.219048
79
0.608859
0
0
0
0
0
0
0
0
1,686
0.371529
10f6f1699cc6b4bfebbd0b39b437bd160c9162ff
880
py
Python
samples/histrequester_demo.py
suuuch/tws_async
35f4ae77734d0e8dad5b1d7f9aac8102c42c4c0c
[ "Unlicense" ]
102
2017-02-15T08:13:34.000Z
2022-03-11T02:00:57.000Z
samples/histrequester_demo.py
suuuch/tws_async
35f4ae77734d0e8dad5b1d7f9aac8102c42c4c0c
[ "Unlicense" ]
8
2017-05-03T17:28:57.000Z
2018-09-10T11:42:48.000Z
samples/histrequester_demo.py
suuuch/tws_async
35f4ae77734d0e8dad5b1d7f9aac8102c42c4c0c
[ "Unlicense" ]
40
2017-02-18T08:17:21.000Z
2022-02-25T22:23:26.000Z
import datetime import pytz from tws_async import * stocks = [ Stock('TSLA'), Stock('AAPL'), Stock('GOOG'), Stock('INTC', primaryExchange='NASDAQ') ] forexs = [ Forex('EURUSD'), Forex('GBPUSD'), Forex('USDJPY') ] endDate = datetime.date.today() startDate = endDate - datetime.timedelta(day...
24.444444
76
0.685227
0
0
0
0
0
0
0
0
182
0.206818
10f7e736dab607c21a9da9bd75162b5602eb90c7
961
py
Python
problems/test_0630_easy_to_understand.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0630_easy_to_understand.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0630_easy_to_understand.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import heapq import unittest from typing import List import utils # O(nlog(n)) time. O(n) space. Interval, sorting by end, greedy. class Solution: def scheduleCourse(self, courses: List[List[int]]) -> int: courses.sort(key=lambda course: course[1]) time = 0 q = [] for t, d in co...
24.025
68
0.557752
774
0.805411
0
0
0
0
0
0
74
0.077003
10f9b2fbba3d5b4a7de7179cc117d380392f5116
1,761
py
Python
Tests/ttLib/tables/C_F_F__2_test.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
2,705
2016-09-27T10:02:12.000Z
2022-03-31T09:37:46.000Z
Tests/ttLib/tables/C_F_F__2_test.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
1,599
2016-09-27T09:07:36.000Z
2022-03-31T23:04:51.000Z
Tests/ttLib/tables/C_F_F__2_test.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
352
2016-10-07T04:18:15.000Z
2022-03-30T07:35:01.000Z
"""cff2Lib_test.py -- unit test for Adobe CFF fonts.""" from fontTools.ttLib import TTFont from io import StringIO import re import os import unittest CURR_DIR = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) DATA_DIR = os.path.join(CURR_DIR, 'data') CFF_TTX = os.path.join(DATA_DIR, "C_F_F__2.ttx") CF...
29.847458
71
0.635434
994
0.564452
0
0
369
0.20954
0
0
320
0.181715
10f9d7dfc533d1074e71035424e95b25f68c15f6
340
py
Python
Module_03/mlb.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_03/mlb.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_03/mlb.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
from common.webdriver_factory import get_driver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By driver = get_driver('chrome') wait = WebDriverWait(driver, 5) driver.get('https://www.mlb.com/es/standin...
30.909091
64
0.817647
0
0
0
0
0
0
0
0
42
0.123529
10fb0f98c0db7ba3d5ed61bdb4bc78ad51efafdc
13,380
py
Python
azext_csvmware/_help.py
ctaggart/az-csvmware-cli
6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74
[ "MIT" ]
2
2020-05-20T13:33:33.000Z
2020-09-12T03:48:15.000Z
azext_csvmware/_help.py
ctaggart/az-csvmware-cli
6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74
[ "MIT" ]
null
null
null
azext_csvmware/_help.py
ctaggart/az-csvmware-cli
6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74
[ "MIT" ]
2
2020-05-11T17:10:27.000Z
2021-01-02T16:15:35.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. # -----------------------------------------------------...
41.169231
268
0.652242
0
0
0
0
0
0
0
0
12,964
0.968909
10fbff50584bd8fe647d8f729ee0c1afb693afd7
15,033
py
Python
pajbot/managers/songrequest.py
sgaweda/troybot
7153c0ad387e31de57c71172893fd92c85259d1b
[ "MIT" ]
null
null
null
pajbot/managers/songrequest.py
sgaweda/troybot
7153c0ad387e31de57c71172893fd92c85259d1b
[ "MIT" ]
2
2020-02-18T03:30:30.000Z
2020-02-18T03:31:44.000Z
pajbot/managers/songrequest.py
sgaweda/troybot
7153c0ad387e31de57c71172893fd92c85259d1b
[ "MIT" ]
null
null
null
import logging import threading import time from pajbot.managers.db import DBManager from pajbot.managers.schedule import ScheduleManager from pajbot.models.songrequest import SongrequestQueue, SongrequestHistory, SongRequestSongInfo from pajbot.models.user import User log = logging.getLogger("pajbot") WIDGET_ID = ...
37.866499
115
0.600545
14,708
0.978381
0
0
0
0
0
0
515
0.034258
10fc435cfd2d251b2fecfc35f6aaa156bcaaeea6
157
py
Python
irl/common/utils/mean_or_nan.py
uidilr/deepirl_chainer
45f6134fe457bdae1484e4847ab0701f39940faa
[ "MIT" ]
16
2019-06-25T11:54:38.000Z
2022-02-13T15:14:40.000Z
irl/common/utils/mean_or_nan.py
uidilr/deepirl_chainer
45f6134fe457bdae1484e4847ab0701f39940faa
[ "MIT" ]
4
2019-07-17T15:17:25.000Z
2020-09-03T12:12:16.000Z
irl/common/utils/mean_or_nan.py
uidilr/deepirl_chainer
45f6134fe457bdae1484e4847ab0701f39940faa
[ "MIT" ]
3
2019-07-17T16:45:07.000Z
2020-12-15T16:52:26.000Z
import numpy as np def mean_or_nan(xs): """Return its mean a non-empty sequence, numpy.nan for a empty one.""" return np.mean(xs) if xs else np.nan
26.166667
74
0.687898
0
0
0
0
0
0
0
0
70
0.44586
10fd14ffad39bd5b02627e93c4a2e36424183645
3,065
py
Python
test/test_tae/test_serial_runner.py
dengdifan/SMAC3
4739741fe9f6b0b92d419bac8f0a6252858a55dc
[ "BSD-3-Clause" ]
1
2021-05-12T10:11:59.000Z
2021-05-12T10:11:59.000Z
test/test_tae/test_serial_runner.py
dengdifan/SMAC3
4739741fe9f6b0b92d419bac8f0a6252858a55dc
[ "BSD-3-Clause" ]
1
2021-06-17T07:57:05.000Z
2021-06-17T07:57:05.000Z
test/test_tae/test_serial_runner.py
dengdifan/SMAC3
4739741fe9f6b0b92d419bac8f0a6252858a55dc
[ "BSD-3-Clause" ]
null
null
null
import time import unittest import unittest.mock from smac.configspace import ConfigurationSpace from smac.runhistory.runhistory import RunInfo, RunValue from smac.scenario.scenario import Scenario from smac.stats.stats import Stats from smac.tae import StatusType from smac.tae.execute_func import ExecuteTAFuncDict fr...
36.488095
92
0.651876
2,445
0.797716
0
0
0
0
0
0
592
0.193148
10fd538c1e9b6fd2668077d80094be203d83e7ee
531
py
Python
backend/admingym/gyms/migrations/0003_auto_20200909_0508.py
ManuelRivera98/AdminGym
caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13
[ "MIT" ]
1
2020-09-14T04:23:07.000Z
2020-09-14T04:23:07.000Z
backend/admingym/gyms/migrations/0003_auto_20200909_0508.py
ManuelRivera98/AdminGym
caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13
[ "MIT" ]
null
null
null
backend/admingym/gyms/migrations/0003_auto_20200909_0508.py
ManuelRivera98/AdminGym
caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-09-09 05:08 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gyms', '0002_auto_20200903_1750'), ] operations = [ migrations.AlterField( model_name='gym', ...
26.55
170
0.642185
410
0.772128
0
0
0
0
0
0
129
0.242938
10fefb6ca4d9966756b86304037f68034335c7e9
3,467
py
Python
tests/test_cli.py
mbbroberg/SEODeploy
5de0c3f8f3658638128445e78854e6a6e2daa8cf
[ "MIT" ]
48
2020-06-16T21:15:34.000Z
2022-02-17T14:01:52.000Z
tests/test_cli.py
mbbroberg/SEODeploy
5de0c3f8f3658638128445e78854e6a6e2daa8cf
[ "MIT" ]
2
2020-07-06T12:22:19.000Z
2021-03-31T19:52:07.000Z
tests/test_cli.py
mbbroberg/SEODeploy
5de0c3f8f3658638128445e78854e6a6e2daa8cf
[ "MIT" ]
8
2020-06-18T17:56:18.000Z
2021-12-10T09:21:37.000Z
#! /usr/bin/env python # coding: utf-8 # # Copyright (c) 2020 JR Oakes # # 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,...
30.412281
86
0.694837
193
0.055668
0
0
442
0.127488
0
0
1,609
0.46409
8001270d6cfc8547c4dfb75dfc1628301ed4ccf1
358
bzl
Python
org_opencv.bzl
chris-blay/bazel
21ea699a0a6ec2f56be52ca7ed78d5964aab3c27
[ "Apache-2.0" ]
1
2018-02-06T15:56:40.000Z
2018-02-06T15:56:40.000Z
org_opencv.bzl
chris-blay/bazel
21ea699a0a6ec2f56be52ca7ed78d5964aab3c27
[ "Apache-2.0" ]
null
null
null
org_opencv.bzl
chris-blay/bazel
21ea699a0a6ec2f56be52ca7ed78d5964aab3c27
[ "Apache-2.0" ]
null
null
null
def sample(name, custom_package): native.android_binary( name = name, deps = [":sdk"], srcs = native.glob(["samples/" + name + "/src/**/*.java"]), custom_package = custom_package, manifest = "samples/" + name + "/AndroidManifest.xml", resource_files = native.glob(["sa...
35.8
72
0.550279
0
0
0
0
0
0
0
0
85
0.23743
8004c7034a1064cc38f2bbc44ad4467b6a218067
2,909
py
Python
deeplodocus/callbacks/overwatch.py
samuelwestlake/deeplodocus-dev
12b283ca4eb39abf13ddc56eabc78e01e90627ff
[ "MIT" ]
null
null
null
deeplodocus/callbacks/overwatch.py
samuelwestlake/deeplodocus-dev
12b283ca4eb39abf13ddc56eabc78e01e90627ff
[ "MIT" ]
null
null
null
deeplodocus/callbacks/overwatch.py
samuelwestlake/deeplodocus-dev
12b283ca4eb39abf13ddc56eabc78e01e90627ff
[ "MIT" ]
null
null
null
from deeplodocus.utils.generic_utils import get_corresponding_flag from deeplodocus.utils.notification import Notification from deeplodocus.flags import * from typing import Union class OverWatch(object): """ AUTHORS: -------- :author: Alix Leroy DESCRIPTION: ------------ Metric to ove...
29.383838
95
0.588518
2,725
0.936748
0
0
183
0.062908
0
0
556
0.191131
8006430bdd0d52a353c5652143e970dab52dd84f
2,483
py
Python
_utils/merge.py
louiscklaw/kicad-automation-scripts
1ac8780a5cedb89b5bc5099488b95847b75ff1e1
[ "Apache-2.0" ]
null
null
null
_utils/merge.py
louiscklaw/kicad-automation-scripts
1ac8780a5cedb89b5bc5099488b95847b75ff1e1
[ "Apache-2.0" ]
null
null
null
_utils/merge.py
louiscklaw/kicad-automation-scripts
1ac8780a5cedb89b5bc5099488b95847b75ff1e1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # reference build https://travis-ci.org/louiscklaw/test_git_repo/builds/625335510 # https://docs.travis-ci.com/user/environment-variables/ import os, re, subprocess import slack from fabric.api import local, shell_env, lcd, run, settings SLACK_TOKEN = os.environ['SLACK_TOKEN'] BRANCH_TO_MERGE...
40.048387
212
0.733387
0
0
0
0
0
0
0
0
780
0.314136
800672400ab002d273b97749a1115a2fe16e3cc8
876
py
Python
config.py
StuartSul/SampyoNet
a24e15e8b6c9d330fa84e1570778839d9fb5fe26
[ "MIT" ]
null
null
null
config.py
StuartSul/SampyoNet
a24e15e8b6c9d330fa84e1570778839d9fb5fe26
[ "MIT" ]
null
null
null
config.py
StuartSul/SampyoNet
a24e15e8b6c9d330fa84e1570778839d9fb5fe26
[ "MIT" ]
null
null
null
## Built-in packages import getopt import json import os import sys ## Third-party packages from PIL import Image import joblib import numpy as np import tqdm ## Tensorflow from tensorflow.keras.layers import BatchNormalization from tensorflow.keras.layers import Dense from tensorflow.keras.layers import Dropout from...
22.461538
54
0.833333
0
0
0
0
0
0
0
0
129
0.14726
80067fa86a93ff0387d74613770e2eaa71c29680
7,715
py
Python
src/unpackaged/abm/AnimationBehaviour/model8.py
agdturner/geog5990m
b6417820e6aaff7f0c785415c0d63eae3753a098
[ "Apache-2.0" ]
null
null
null
src/unpackaged/abm/AnimationBehaviour/model8.py
agdturner/geog5990m
b6417820e6aaff7f0c785415c0d63eae3753a098
[ "Apache-2.0" ]
null
null
null
src/unpackaged/abm/AnimationBehaviour/model8.py
agdturner/geog5990m
b6417820e6aaff7f0c785415c0d63eae3753a098
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __version__ 1.0.0 """ import csv import agentframework7 as af import random import matplotlib.pyplot as pyplot from sys import argv import matplotlib.animation as anim import os from multiprocessing import Process import time ''' Step 1: Initialise parameters ''' prin...
32.280335
100
0.628905
0
0
239
0.030979
0
0
0
0
3,631
0.470642
80083e1dfe6103dbfacdadbdcb511c7186bad38a
26
py
Python
password_policies/tests/__init__.py
manuerux/django-password-policies-iplweb
5bab0277671fb8c853cec9c8aad64d92195030e9
[ "BSD-3-Clause" ]
5
2018-06-21T14:18:56.000Z
2021-07-08T17:50:02.000Z
password_policies/tests/__init__.py
manuerux/django-password-policies-iplweb
5bab0277671fb8c853cec9c8aad64d92195030e9
[ "BSD-3-Clause" ]
20
2018-01-25T22:01:25.000Z
2022-03-15T13:26:47.000Z
password_policies/tests/__init__.py
manuerux/django-password-policies-iplweb
5bab0277671fb8c853cec9c8aad64d92195030e9
[ "BSD-3-Clause" ]
19
2018-01-25T21:04:09.000Z
2022-03-01T11:26:35.000Z
from ..receivers import *
13
25
0.730769
0
0
0
0
0
0
0
0
0
0
8008fc7a56eccf641872f78a3c91511e15979ffd
3,156
py
Python
manubot/cite/tests/test_citekey.py
olgabot/manubot
ddd099516d58d1428f92d91a69e4b7295de13335
[ "BSD-3-Clause" ]
1
2020-01-08T20:17:51.000Z
2020-01-08T20:17:51.000Z
manubot/cite/tests/test_citekey.py
olgabot/manubot
ddd099516d58d1428f92d91a69e4b7295de13335
[ "BSD-3-Clause" ]
null
null
null
manubot/cite/tests/test_citekey.py
olgabot/manubot
ddd099516d58d1428f92d91a69e4b7295de13335
[ "BSD-3-Clause" ]
null
null
null
"""Tests rest of functions in manubot.cite, not covered by test_citekey_api.py.""" import pytest from manubot.cite.citekey import ( citekey_pattern, shorten_citekey, infer_citekey_prefix, inspect_citekey, ) @pytest.mark.parametrize("citation_string", [ ('@doi:10.5061/dryad.q447c/1'), ('@arxi...
31.247525
91
0.667934
0
0
0
0
2,913
0.923004
0
0
1,668
0.528517
8009a4111e57ce8f5e9c9514ac216b855ebf01d1
1,727
py
Python
test/main_page_tests.py
savvagen/playwright-pytest-example
acf4e89d0a7dcc1b71b1eb012366b1393f515b41
[ "Apache-2.0" ]
19
2020-11-15T16:37:51.000Z
2022-03-23T02:41:38.000Z
test/main_page_tests.py
cjydayang/playwright-pytest-example
acf4e89d0a7dcc1b71b1eb012366b1393f515b41
[ "Apache-2.0" ]
2
2021-01-03T21:38:37.000Z
2021-01-27T08:32:00.000Z
test/main_page_tests.py
cjydayang/playwright-pytest-example
acf4e89d0a7dcc1b71b1eb012366b1393f515b41
[ "Apache-2.0" ]
8
2020-11-05T23:27:37.000Z
2022-03-16T08:07:00.000Z
import pytest from playwright.sync_api import Page from pages.main_page.main_page import MainPage from test.test_base import * import logging import re logger = logging.getLogger("test") @pytest.mark.only_browser("chromium") def test_find_element_list(page: Page): main_page = MainPage(base_url, page) main_pa...
38.377778
84
0.672264
0
0
0
0
1,536
0.889404
0
0
594
0.343949
8009f7a8792ab3c1e109b6ae68aa8435914b6d9f
5,703
py
Python
tfumap/parametric_tsne.py
EhsanKA/ParametricUMAP_paper
14b6ef3ba6e46a8cc666e22eb9f9a4a1611d3c51
[ "MIT" ]
124
2020-09-27T23:59:01.000Z
2022-03-22T06:27:35.000Z
tfumap/parametric_tsne.py
EhsanKA/ParametricUMAP_paper
14b6ef3ba6e46a8cc666e22eb9f9a4a1611d3c51
[ "MIT" ]
2
2021-02-05T18:13:13.000Z
2021-11-01T14:55:08.000Z
tfumap/parametric_tsne.py
EhsanKA/ParametricUMAP_paper
14b6ef3ba6e46a8cc666e22eb9f9a4a1611d3c51
[ "MIT" ]
16
2020-09-28T07:43:21.000Z
2022-03-21T00:31:34.000Z
### based on https://github.com/kylemcdonald/Parametric-t-SNE/blob/master/Parametric%20t-SNE%20(Keras).ipynb import numpy as np from tensorflow.keras import backend as K from tensorflow.keras.losses import categorical_crossentropy from tqdm.autonotebook import tqdm import tensorflow as tf def Hbeta(D, beta): ""...
34.98773
108
0.593898
0
0
0
0
0
0
0
0
2,481
0.435034
800afe51edd1ad15aa21801c91bf0ec428b48bda
3,466
py
Python
test/unit/git_class/gitmerge_commits_diff.py
deepcoder42/git-lib
7f5736ea71d6592390222a214b0e51cd3c3151f8
[ "MIT" ]
null
null
null
test/unit/git_class/gitmerge_commits_diff.py
deepcoder42/git-lib
7f5736ea71d6592390222a214b0e51cd3c3151f8
[ "MIT" ]
null
null
null
test/unit/git_class/gitmerge_commits_diff.py
deepcoder42/git-lib
7f5736ea71d6592390222a214b0e51cd3c3151f8
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: gitmerge_commits_diff.py Description: Unit testing of gitmerge.commits_diff in git_class.py. Usage: test/unit/git_class/gitmerge_commits_diff.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version...
19.91954
78
0.613099
2,877
0.830063
0
0
0
0
0
0
1,556
0.448932
800d28c1f91ca5044c0a8edd4c02b62977545c76
500
py
Python
Chapter04/code/func_perf3.py
PacktPublishing/IPython-7-Cookbook
8b08b1de8b1b1ac75116873d820ed289d4173327
[ "MIT" ]
2
2019-03-30T02:44:37.000Z
2021-10-04T17:56:42.000Z
Chapter04/code/func_perf3.py
PacktPublishing/IPython-7-Cookbook
8b08b1de8b1b1ac75116873d820ed289d4173327
[ "MIT" ]
null
null
null
Chapter04/code/func_perf3.py
PacktPublishing/IPython-7-Cookbook
8b08b1de8b1b1ac75116873d820ed289d4173327
[ "MIT" ]
1
2019-01-30T01:59:44.000Z
2019-01-30T01:59:44.000Z
import random import string def test_append(lst): ret_val = [] for w in lst: ret_val.append(w.lower( )) return ret_val def test_map(lst): ret_val = map(str.lower, lst) return ret_val def run_tests(n): for i in range(n): tst = ''.join(random.choices(string.ascii_uppercase + str...
19.230769
85
0.622
0
0
0
0
0
0
0
0
12
0.024
800e0260e131b801268f2e316c8771b9b824cfe5
4,826
py
Python
mhmd-driver/parse_mtrees.py
cnasikas/smpc-analytics
bf663c38911b57c4b004498341a7882a57a21be2
[ "MIT" ]
12
2019-10-14T14:42:52.000Z
2022-01-10T10:24:29.000Z
mhmd-driver/parse_mtrees.py
cnasikas/smpc-analytics
bf663c38911b57c4b004498341a7882a57a21be2
[ "MIT" ]
null
null
null
mhmd-driver/parse_mtrees.py
cnasikas/smpc-analytics
bf663c38911b57c4b004498341a7882a57a21be2
[ "MIT" ]
1
2021-03-10T08:45:23.000Z
2021-03-10T08:45:23.000Z
import os import sys import json import argparse from huepy import * parser = argparse.ArgumentParser() parser.add_argument('file', help= 'File with mtrees data (CSV or JSON)') parser.add_argument('--mtrees', help = 'File with the mesh dictionary to be created (names to ids).', default = 'mhmd-driver/m.json') parser.a...
37.703125
155
0.561542
0
0
0
0
0
0
0
0
1,932
0.400332
800e44a4c6050f23f945f1f76634a4002f79fc45
1,157
py
Python
gen_art/graphics/Context.py
shnupta/SeeMyFeels
0a37acc3e628d69f96197907db1c2ebd30b78469
[ "MIT" ]
3
2021-04-01T21:16:35.000Z
2022-03-12T21:17:51.000Z
gen_art/graphics/Context.py
shnupta/SeeMyFeels
0a37acc3e628d69f96197907db1c2ebd30b78469
[ "MIT" ]
null
null
null
gen_art/graphics/Context.py
shnupta/SeeMyFeels
0a37acc3e628d69f96197907db1c2ebd30b78469
[ "MIT" ]
null
null
null
import cairo from uuid import uuid4 from gen_art.graphics.Helpers import does_path_exist, open_file from os import path from datetime import datetime class DrawContext: def __init__(self, width, height, output_path, open_bool): self.open_bool = open_bool self.width = width self.height = he...
26.906977
87
0.666379
1,004
0.867761
0
0
144
0.12446
0
0
48
0.041487
800e7bf42d2e64bac20018e9d06f0084d64e4d99
19,080
py
Python
WISH/WISH.py
quantumopticslkb/phase_retrieval
5bb7820d72aa4ba8a227753029738a5cfb2a581f
[ "MIT" ]
null
null
null
WISH/WISH.py
quantumopticslkb/phase_retrieval
5bb7820d72aa4ba8a227753029738a5cfb2a581f
[ "MIT" ]
null
null
null
WISH/WISH.py
quantumopticslkb/phase_retrieval
5bb7820d72aa4ba8a227753029738a5cfb2a581f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author : Tangui ALADJIDI After the Matlab code from Yicheng WU """ import numpy as np import matplotlib.pyplot as plt from LightPipes import * from PIL import Image from time import time from mpl_toolkits.axes_grid1 import make_axes_locatable import time import sys import configparser fro...
45.645933
143
0.56782
15,173
0.795231
0
0
0
0
0
0
7,611
0.398899
80108f12068f5412f0cd647b2c7a236979e1bd0d
8,635
py
Python
sunpy/net/jsoc/tests/test_jsoc.py
s0nskar/sunpy
60ca4792ded4c3938a78da7055cf2c20e0e8ccfd
[ "MIT" ]
null
null
null
sunpy/net/jsoc/tests/test_jsoc.py
s0nskar/sunpy
60ca4792ded4c3938a78da7055cf2c20e0e8ccfd
[ "MIT" ]
null
null
null
sunpy/net/jsoc/tests/test_jsoc.py
s0nskar/sunpy
60ca4792ded4c3938a78da7055cf2c20e0e8ccfd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 26 20:17:06 2014 @author: stuart """ import os import tempfile import datetime import astropy.table import astropy.time import astropy.units as u import pytest from sunpy.time import parse_time from sunpy.net.jsoc import JSOCClient, JSOCResponse from sunpy.net.vso.vso im...
37.707424
192
0.626288
0
0
0
0
4,244
0.491488
0
0
2,436
0.282108
80116cc041c16e4efbe2e37276ff9ca9425b882b
293
py
Python
turtle_lib/colorful_spiral.py
PitPietro/pascal-triangle
eb81e9fc4728f4e09a631922c470201a9f897195
[ "MIT" ]
1
2020-03-11T10:20:53.000Z
2020-03-11T10:20:53.000Z
turtle_lib/colorful_spiral.py
PitPietro/python-structure
eb81e9fc4728f4e09a631922c470201a9f897195
[ "MIT" ]
1
2020-07-06T15:45:01.000Z
2020-07-06T15:50:32.000Z
turtle_lib/colorful_spiral.py
PitPietro/python-structure
eb81e9fc4728f4e09a631922c470201a9f897195
[ "MIT" ]
1
2020-07-02T05:21:58.000Z
2020-07-02T05:21:58.000Z
import turtle if __name__ == '__main__': colors = ['red', 'green', 'yellow', 'purple', 'blue', 'orange'] turtle.bgcolor('black') for i in range(360): turtle.pencolor(colors[i % 6]) turtle.width(int(i / 100 + 1)) turtle.forward(i) turtle.left(59)
22.538462
67
0.56314
0
0
0
0
0
0
0
0
59
0.201365
8012691c1adce7b34dee33223df2c745e8a1cd12
5,830
py
Python
tests/test_ref_numpy.py
kuraisle/multipletau
0321de77616f05ca90106075f7f6ecd137437be7
[ "BSD-3-Clause" ]
10
2017-01-25T15:47:06.000Z
2022-01-07T10:08:48.000Z
tests/test_ref_numpy.py
kuraisle/multipletau
0321de77616f05ca90106075f7f6ecd137437be7
[ "BSD-3-Clause" ]
7
2016-02-10T10:19:22.000Z
2018-11-30T23:21:04.000Z
tests/test_ref_numpy.py
kuraisle/multipletau
0321de77616f05ca90106075f7f6ecd137437be7
[ "BSD-3-Clause" ]
4
2018-08-22T07:19:52.000Z
2018-11-05T09:16:52.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Compare to numpy data""" import sys import numpy as np import multipletau from test_correlate import get_sample_arrays_cplx def test_corresponds_ac(): myframe = sys._getframe() myname = myframe.f_code.co_name print("running ", myname) a = np.concatenate...
33.125
71
0.456089
0
0
0
0
0
0
0
0
1,089
0.186792
801269a1716f4f173be7b06c27dd2d4ed41ac1c7
2,613
py
Python
fedlearner/platform/trainer_master/leader_tm.py
melong007/fedlearner
69738daf8272148781cfe3c93fb41d2ac67faad7
[ "Apache-2.0" ]
null
null
null
fedlearner/platform/trainer_master/leader_tm.py
melong007/fedlearner
69738daf8272148781cfe3c93fb41d2ac67faad7
[ "Apache-2.0" ]
null
null
null
fedlearner/platform/trainer_master/leader_tm.py
melong007/fedlearner
69738daf8272148781cfe3c93fb41d2ac67faad7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The FedLearner 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...
41.47619
77
0.707616
787
0.301186
0
0
0
0
0
0
929
0.35553
8012bbcd8fca728c35b24ea46da9f760928eac9b
1,753
py
Python
comics_webscrapper.py
WittyShiba/Comics-Webscrapping
ef073dc52954975419fb45da72271906bb075f4f
[ "MIT" ]
null
null
null
comics_webscrapper.py
WittyShiba/Comics-Webscrapping
ef073dc52954975419fb45da72271906bb075f4f
[ "MIT" ]
null
null
null
comics_webscrapper.py
WittyShiba/Comics-Webscrapping
ef073dc52954975419fb45da72271906bb075f4f
[ "MIT" ]
null
null
null
# Homework 7 # Write a python program that will download the latest 10 comic images from https://www.gocomics.com/pearlsbeforeswine/ # Navigate to the latest page by clicking 'Read More'. import requests import bs4 import os url = 'https://www.gocomics.com/pearlsbeforeswine/2019/08/21' for i in range(10): res = r...
51.558824
164
0.654877
0
0
0
0
0
0
0
0
961
0.548203
8015157b8348b958cf26b731db3111632a7f60c1
2,106
py
Python
cohesity_management_sdk/models/tenant_proxy.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/tenant_proxy.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/tenant_proxy.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class TenantProxy(object): """Implementation of the 'TenantProxy' model. Specifies the data for tenant proxy which has been deployed in tenant's enviroment. Attributes: constituent_id (long|int): Specifies the constituent id of the prox...
29.661972
81
0.606363
2,046
0.97151
0
0
936
0.444444
0
0
1,224
0.581197
8015962c36f7108badf443ec7534f5753cd6e921
2,101
py
Python
test/test_cores/test_video/test_lt24lcdsys.py
meetps/rhea
f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0
[ "MIT" ]
1
2022-03-16T23:56:09.000Z
2022-03-16T23:56:09.000Z
test/test_cores/test_video/test_lt24lcdsys.py
meetps/rhea
f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0
[ "MIT" ]
null
null
null
test/test_cores/test_video/test_lt24lcdsys.py
meetps/rhea
f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0
[ "MIT" ]
null
null
null
from __future__ import print_function from argparse import Namespace # a video display model to check timing import pytest from myhdl import Signal, intbv, instance, delay, StopSimulation, now from rhea.system import Clock, Reset, Global from rhea.cores.video.lcd import LT24Interface from rhea.models.video import ...
26.2625
83
0.640647
0
0
1,383
0.658258
524
0.249405
0
0
170
0.080914
80178d726d35bfda33f77aca84b7fdccd2b6d2ea
253
py
Python
src/fl_simulation/server/aggregation/__init__.py
microsoft/fl-simulation
d177d329c82559c7efe82deae8dea8f9baa49495
[ "MIT" ]
5
2021-12-14T02:21:53.000Z
2021-12-26T07:45:13.000Z
src/fl_simulation/server/aggregation/__init__.py
microsoft/fl-simulation
d177d329c82559c7efe82deae8dea8f9baa49495
[ "MIT" ]
1
2022-01-04T04:51:20.000Z
2022-01-04T04:51:20.000Z
src/fl_simulation/server/aggregation/__init__.py
microsoft/fl-simulation
d177d329c82559c7efe82deae8dea8f9baa49495
[ "MIT" ]
null
null
null
"""Utilities and implementation for model aggregation on the central server.""" from .aggregator import * from .fedavg import * from .fedprox import * from .scaffold import * from .aggregator_with_dropouts import * from .multi_model_aggregator import *
31.625
79
0.790514
0
0
0
0
0
0
0
0
79
0.312253
801a9b75ed3372642f8c99366580172389900495
9,912
py
Python
neurolang/frontend/neurosynth_utils.py
gzanitti/NeuroLang
497d3d28b640329771e34d92ccec93f984c3f784
[ "BSD-3-Clause" ]
1
2021-01-07T02:00:22.000Z
2021-01-07T02:00:22.000Z
neurolang/frontend/neurosynth_utils.py
NeuroLang/NeuroLang
282457a48722741d577b69980be0a46f69c9954f
[ "BSD-3-Clause" ]
207
2020-11-04T12:51:10.000Z
2022-03-30T13:42:26.000Z
neurolang/frontend/neurosynth_utils.py
jonasrenault/NeuroLang
497d3d28b640329771e34d92ccec93f984c3f784
[ "BSD-3-Clause" ]
6
2020-11-04T13:59:35.000Z
2021-03-19T05:28:10.000Z
from pathlib import Path from typing import Optional import numpy as np import pandas as pd from nilearn.datasets.utils import _fetch_files from scipy import sparse class StudyID(str): pass class TfIDf(float): pass NS_DATA_URL = "https://github.com/neurosynth/neurosynth-data/raw/master/" def fetch_stud...
29.58806
97
0.617736
56
0.00565
0
0
0
0
0
0
5,753
0.580408
801c4a110403ae871b4a443a0d0c405bac55da7d
957
py
Python
lib/sqlalchemy/util/typing.py
immerrr/sqlalchemy
995fb577a64061a9cbab62b481c65a4c4d3e5a67
[ "MIT" ]
1
2020-07-21T16:06:40.000Z
2020-07-21T16:06:40.000Z
lib/sqlalchemy/util/typing.py
taogeYT/sqlalchemy
e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f
[ "MIT" ]
4
2020-04-23T19:00:28.000Z
2021-09-28T18:14:58.000Z
lib/sqlalchemy/util/typing.py
taogeYT/sqlalchemy
e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f
[ "MIT" ]
null
null
null
from typing import Any from typing import Generic from typing import overload from typing import Type from typing import TypeVar from . import compat if compat.py38: from typing import Literal from typing import Protocol from typing import TypedDict else: from typing_extensions import Literal # noqa ...
21.75
63
0.679206
388
0.405434
0
0
330
0.344828
0
0
34
0.035528
801d29ea0f445cc4a015a6b4894791ed1ccb9a07
563
py
Python
ep_ws/build/catkin_generated/order_packages.py
fsrlab/FSR_ROS_SIM
f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62
[ "MIT" ]
null
null
null
ep_ws/build/catkin_generated/order_packages.py
fsrlab/FSR_ROS_SIM
f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62
[ "MIT" ]
null
null
null
ep_ws/build/catkin_generated/order_packages.py
fsrlab/FSR_ROS_SIM
f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = '/home/sim2real/ep_ws/src' whitelisted_packages = ''.split(';') if '' != '' else [] blacklisted_packages = ''.split(';') if '' != '' else [] underlay_workspaces = '/home/sim2real/carto_ws/devel_isolated/cartographer_rviz;/home/sim2rea...
93.833333
335
0.756661
0
0
0
0
0
0
0
0
400
0.71048
801d907dbd6651a1c3f1baa79169bbd085c486ee
2,682
py
Python
request_signer/tests/test_response.py
imtapps/django-request-signer
b059d021b6e068245030ab682c2cff4318c83ca6
[ "BSD-2-Clause" ]
1
2017-01-23T19:21:23.000Z
2017-01-23T19:21:23.000Z
request_signer/tests/test_response.py
imtapps/django-request-signer
b059d021b6e068245030ab682c2cff4318c83ca6
[ "BSD-2-Clause" ]
14
2016-01-21T17:18:21.000Z
2022-02-09T19:21:59.000Z
request_signer/tests/test_response.py
imtapps/django-request-signer
b059d021b6e068245030ab682c2cff4318c83ca6
[ "BSD-2-Clause" ]
3
2016-01-25T19:32:21.000Z
2016-08-23T15:37:38.000Z
import six if six.PY3: from unittest import mock from io import StringIO else: import mock from cStringIO import StringIO from http.client import responses import json from django import test from request_signer.client.generic import Response class ResponseTests(test.TestCase): def setUp(self): ...
42.571429
96
0.751305
2,419
0.901939
0
0
590
0.219985
0
0
209
0.077927
801e841d4330b508f4fb6db780e54413e2c8e289
3,373
py
Python
rl_groundup/temporal_difference_methods/n_step_tree_backup.py
TristanBester/rl_groundup
2e981667e21330a35a6ab2a642e278aaaf4dca84
[ "MIT" ]
1
2021-04-20T00:43:43.000Z
2021-04-20T00:43:43.000Z
rl_groundup/temporal_difference_methods/n_step_tree_backup.py
TristanBester/rl_groundup
2e981667e21330a35a6ab2a642e278aaaf4dca84
[ "MIT" ]
null
null
null
rl_groundup/temporal_difference_methods/n_step_tree_backup.py
TristanBester/rl_groundup
2e981667e21330a35a6ab2a642e278aaaf4dca84
[ "MIT" ]
null
null
null
# Created by Tristan Bester. import sys import numpy as np sys.path.append('../') from envs import GridWorld from itertools import product from utils import print_episode, eps_greedy_policy, test_policy ''' n-step Tree Backup used to estimate the optimal policy for the gridworld environment defined on page 48 of "Rein...
33.39604
83
0.54877
0
0
0
0
0
0
0
0
592
0.175511
801ef5016fb2c51cff05eabfc2b10dedfdd933d5
240
py
Python
setup.py
deephyper/metalgpy
73393335c910757f2289414cdf807766e579e1e2
[ "BSD-2-Clause" ]
null
null
null
setup.py
deephyper/metalgpy
73393335c910757f2289414cdf807766e579e1e2
[ "BSD-2-Clause" ]
null
null
null
setup.py
deephyper/metalgpy
73393335c910757f2289414cdf807766e579e1e2
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup, find_packages # What packages are required for this module to be executed? REQUIRED = [ "dm-tree", "numpy", "scipy" ] setup(name="metalgpy", packages=find_packages(), install_requires=REQUIRED)
18.461538
75
0.716667
0
0
0
0
0
0
0
0
93
0.3875
80212ffcd9bb037dec9bef2eb1d68bc81a8baec9
1,722
py
Python
src/numbasub/nonumba.py
ptooley/numbasub
b58e66f02672650d87477a0dc92a179060a710b3
[ "MIT" ]
3
2018-07-26T16:42:25.000Z
2022-01-18T02:15:01.000Z
src/numbasub/nonumba.py
ptooley/numbasub
b58e66f02672650d87477a0dc92a179060a710b3
[ "MIT" ]
null
null
null
src/numbasub/nonumba.py
ptooley/numbasub
b58e66f02672650d87477a0dc92a179060a710b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import functools #https://stackoverflow.com/questions/3888158 def optional_arg_decorator(fn): @functools.wraps(fn) def wrapped_decorator(*args, **kwargs): # is_bound_method = hasattr(args[0], fn.__name__) if args else False # if is_bound_method: # klass = args[...
18.923077
75
0.621951
0
0
0
0
821
0.476771
0
0
472
0.2741
8022f771c37a2c17506b1b5ad623309f807eb9bd
1,552
py
Python
setup.py
FoxNerdSaysMoo/HomeAssistantAPI
69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a
[ "MIT" ]
null
null
null
setup.py
FoxNerdSaysMoo/HomeAssistantAPI
69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a
[ "MIT" ]
null
null
null
setup.py
FoxNerdSaysMoo/HomeAssistantAPI
69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a
[ "MIT" ]
null
null
null
from setuptools import setup from homeassistant_api import __version__ with open("README.md", "r") as f: read = f.read() setup( name="HomeAssistant API", url="https://github.com/GrandMoff100/HomeassistantAPI", description="Python Wrapper for Homeassistant's REST API", version=__version__, keyw...
34.488889
71
0.631443
0
0
0
0
0
0
0
0
927
0.597294
8023bf2679045e3bcb91e9b2173b66025aa99f9a
2,316
py
Python
analogy/collision_detection/triangle_col_detect.py
gandalf15/analogy
a687496e45557084676c430a61e6dfd0e8233018
[ "BSD-3-Clause" ]
1
2019-05-06T09:57:21.000Z
2019-05-06T09:57:21.000Z
analogy/collision_detection/triangle_col_detect.py
gandalf15/analogy
a687496e45557084676c430a61e6dfd0e8233018
[ "BSD-3-Clause" ]
null
null
null
analogy/collision_detection/triangle_col_detect.py
gandalf15/analogy
a687496e45557084676c430a61e6dfd0e8233018
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import ctypes import os CURRENT_PATH = os.path.dirname(os.path.abspath(__file__)) C_MOLLERS = ctypes.CDLL(os.path.join(CURRENT_PATH, 'build/mollers_tri_tri.so')) C_DEVILLERS = ctypes.CDLL( os.path.join(CURRENT_PATH, 'build/devillers_tri_tri.so')) def mollers_alg(tri_1, tri_2): """ ...
38.6
79
0.643351
0
0
0
0
0
0
0
0
822
0.354922
802596ce6179e23a0644ac73971b6f2da0840b1d
5,381
py
Python
atomic_reactor/plugins/check_and_set_platforms.py
qixiang/atomic-reactor
050325f6be43f6b9399bf5472b87190ada8305bd
[ "BSD-3-Clause" ]
113
2015-07-23T21:37:07.000Z
2019-05-28T18:58:26.000Z
atomic_reactor/plugins/check_and_set_platforms.py
qixiang/atomic-reactor
050325f6be43f6b9399bf5472b87190ada8305bd
[ "BSD-3-Clause" ]
921
2015-07-13T14:25:48.000Z
2019-05-31T14:57:39.000Z
atomic_reactor/plugins/check_and_set_platforms.py
qixiang/atomic-reactor
050325f6be43f6b9399bf5472b87190ada8305bd
[ "BSD-3-Clause" ]
42
2015-07-17T12:48:25.000Z
2019-03-29T07:48:57.000Z
""" Copyright (c) 2018 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. Query the koji build target, if any, to find the enabled architectures. Remove any excluded architectures, and return the resulting list. """ fr...
42.370079
99
0.65564
4,774
0.887196
0
0
0
0
0
0
1,571
0.291953
80259a6aaef5b03b1f4997396bef339696417324
4,876
py
Python
py_work/spider/request/GetMolculeUnderTarget.py
kotori-y/kotori_work
51ebfdf49571ae34c246dc5b37cc86e25f4ccf3d
[ "MIT" ]
6
2020-05-14T09:47:04.000Z
2021-06-05T03:03:45.000Z
py_work/spider/request/GetMolculeUnderTarget.py
kotori-y/kotori_work
51ebfdf49571ae34c246dc5b37cc86e25f4ccf3d
[ "MIT" ]
null
null
null
py_work/spider/request/GetMolculeUnderTarget.py
kotori-y/kotori_work
51ebfdf49571ae34c246dc5b37cc86e25f4ccf3d
[ "MIT" ]
4
2020-04-20T13:17:27.000Z
2021-08-07T19:44:50.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 14 13:33:17 2020 @Author: Zhi-Jiang Yang, Dong-Sheng Cao @Institution: CBDD Group, Xiangya School of Pharmaceutical Science, CSU, China @Homepage: http://www.scbdd.com @Mail: yzjkid9@gmail.com; oriental-cds@163.com @Blog: https://blog.iamkotori.com ♥I love Princess Zelda...
33.170068
245
0.578138
3,769
0.772336
0
0
0
0
0
0
2,275
0.466189
8025bd0c1885c3866fd320401f51ffbcd535cb06
1,954
py
Python
lr_schedulers/flatten_cosanneal.py
yumatsuoka/SofNDLTeches
1b36e8f99068e8dd25ebccd4a60ab9375609f359
[ "MIT" ]
null
null
null
lr_schedulers/flatten_cosanneal.py
yumatsuoka/SofNDLTeches
1b36e8f99068e8dd25ebccd4a60ab9375609f359
[ "MIT" ]
null
null
null
lr_schedulers/flatten_cosanneal.py
yumatsuoka/SofNDLTeches
1b36e8f99068e8dd25ebccd4a60ab9375609f359
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # It's written by https://github.com/yumatsuoka from __future__ import print_function import math from torch.optim.lr_scheduler import _LRScheduler class FlatplusAnneal(_LRScheduler): def __init__(self, optimizer, max_iter, step_size=0.7, eta_min=0, last_epoch=-1):...
28.735294
85
0.599795
752
0.384852
0
0
0
0
0
0
468
0.239509
8025e5f72fc9d4b3c01001445187f2773b458389
15,270
py
Python
pysnmp-with-texts/CISCOSB-RMON.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCOSB-RMON.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCOSB-RMON.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCOSB-RMON (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-RMON # Produced by pysmi-0.3.4 at Wed May 1 12:23:18 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
171.573034
1,487
0.806418
0
0
0
0
0
0
0
0
7,114
0.465881
8026986bb4d58676af3e3f51afb0da5721b218c2
604
py
Python
script/lib/git.py
ymmuse/electron-libcc
364cf9c6044912dc3725f12e7136730937d1a96d
[ "MIT" ]
null
null
null
script/lib/git.py
ymmuse/electron-libcc
364cf9c6044912dc3725f12e7136730937d1a96d
[ "MIT" ]
null
null
null
script/lib/git.py
ymmuse/electron-libcc
364cf9c6044912dc3725f12e7136730937d1a96d
[ "MIT" ]
2
2019-09-05T03:27:45.000Z
2019-10-03T13:02:48.000Z
"""Git helper functions. Everything in here should be project agnostic, shouldn't rely on project's structure, and make any assumptions about the passed arguments or calls outcomes. """ import subprocess def apply(repo, patch_path, reverse=False): args = ['git', 'apply', '--directory', repo, '...
24.16
85
0.64404
0
0
0
0
0
0
0
0
289
0.478477
8027a68653b6898390007ff7b04b6f4c5243c2d2
4,308
py
Python
model/A2J/a2j_utilities/post_processing.py
NVIDIA-AI-IOT/realtime_handpose_3d
3f5ae9ccbf07defc39de7ce9e8b2213dda3be375
[ "MIT" ]
7
2021-01-29T19:45:55.000Z
2021-12-07T01:23:15.000Z
model/A2J/a2j_utilities/post_processing.py
puruBHU/realtime_handpose_3d
3f5ae9ccbf07defc39de7ce9e8b2213dda3be375
[ "MIT" ]
null
null
null
model/A2J/a2j_utilities/post_processing.py
puruBHU/realtime_handpose_3d
3f5ae9ccbf07defc39de7ce9e8b2213dda3be375
[ "MIT" ]
2
2021-03-05T11:02:17.000Z
2021-05-22T02:26:44.000Z
''' Copyright (c) 2019 Boshen Zhang Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. 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 t...
53.85
460
0.710074
2,674
0.620706
0
0
0
0
0
0
2,318
0.538069
8028cc8cedb341229fafd5bad60d6172a2708e24
713
py
Python
edge.py
s1nisteR/opencv-practice
d55e83d39b0d6a1fe7994cb0ac8010b04b6a36a5
[ "MIT" ]
null
null
null
edge.py
s1nisteR/opencv-practice
d55e83d39b0d6a1fe7994cb0ac8010b04b6a36a5
[ "MIT" ]
null
null
null
edge.py
s1nisteR/opencv-practice
d55e83d39b0d6a1fe7994cb0ac8010b04b6a36a5
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np img = cv.imread('Photos/park.jpg') cv.imshow('Original', img) grayscale = cv.cvtColor(img, cv.COLOR_BGR2GRAY) cv.imshow("Jesmin", grayscale) #Condition for Laplacian: Cannot take negative values #Laplacian Edge Detection lap = cv.Laplacian(grayscale, cv.CV_64F) absouluteLap = np.u...
23.766667
53
0.755961
0
0
0
0
0
0
0
0
201
0.281907
8028fc69fc3f5261adc18f715036830ed0ee818b
1,204
py
Python
examples/regression.py
laudv/bitboost
85caa1163a36e2099d0251caa912b28ad5d39f14
[ "Apache-2.0" ]
11
2019-07-10T12:50:52.000Z
2021-08-18T03:27:28.000Z
examples/regression.py
laudv/bitboost
85caa1163a36e2099d0251caa912b28ad5d39f14
[ "Apache-2.0" ]
null
null
null
examples/regression.py
laudv/bitboost
85caa1163a36e2099d0251caa912b28ad5d39f14
[ "Apache-2.0" ]
null
null
null
import sys import os import timeit # use local python package rather than the system install sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../python")) from bitboost import BitBoostRegressor import numpy as np import sklearn.metrics nfeatures = 5 nexamples = 10000 data = np.random.choice(np.array([0.0,...
30.1
80
0.695183
0
0
0
0
0
0
0
0
138
0.114618
802907f21f2a3f816bad8d47fc8fb19d552566fb
676
py
Python
src/pyth2/io/BinaryStream.py
gnomeberry/pyth2
532d89e4ed22b4f9427069bf187ab836e2c2f538
[ "MIT" ]
null
null
null
src/pyth2/io/BinaryStream.py
gnomeberry/pyth2
532d89e4ed22b4f9427069bf187ab836e2c2f538
[ "MIT" ]
null
null
null
src/pyth2/io/BinaryStream.py
gnomeberry/pyth2
532d89e4ed22b4f9427069bf187ab836e2c2f538
[ "MIT" ]
null
null
null
''' Created on 2015/11/07 @author: _ ''' from types import NoneType from pyth2.contracts import TypeValidator as tv from pyth2.io.Stream import Stream, StreamDirection class BinaryStream(Stream): @tv.forms(object, StreamDirection) def __init__(self, direction): super(BinaryStream, self).__init_...
24.142857
64
0.678994
503
0.744083
0
0
442
0.653846
0
0
75
0.110947
802a2589990d23e2d91111185701c08442085e13
4,633
py
Python
app/bin/dltk/test/dltk_deployment.py
splunk/deep-learning-toolkit
84f9c978d9859a96f6ba566737a5c7102738d13c
[ "Apache-2.0" ]
11
2020-10-13T05:27:59.000Z
2021-09-23T02:56:32.000Z
app/bin/dltk/test/dltk_deployment.py
splunk/deep-learning-toolkit
84f9c978d9859a96f6ba566737a5c7102738d13c
[ "Apache-2.0" ]
48
2020-10-15T09:53:36.000Z
2021-07-05T15:33:24.000Z
app/bin/dltk/test/dltk_deployment.py
splunk/deep-learning-toolkit
84f9c978d9859a96f6ba566737a5c7102738d13c
[ "Apache-2.0" ]
4
2020-12-04T08:51:35.000Z
2022-03-27T09:42:20.000Z
import unittest import os import logging import time import re import splunklib.client as client import splunklib.results as results from splunklib.binding import HTTPError from . import dltk_api from . import splunk_api from . import dltk_environment level_prog = re.compile(r'level=\"([^\"]*)\"') msg_prog = re.comp...
31.951724
111
0.550399
0
0
0
0
0
0
0
0
1,237
0.266998
802aa95cd6ad4a3dbc07c2c9c9a4f9fabd942f52
302
py
Python
examples/example_dc/example_dc.py
OlivierKamers/PyDC
51a1ded9d067694968dd5855a3c20fc39df882f3
[ "Apache-2.0" ]
3
2019-03-21T13:07:18.000Z
2022-03-31T12:24:59.000Z
examples/example_dc/example_dc.py
OlivierKamers/PyDC
51a1ded9d067694968dd5855a3c20fc39df882f3
[ "Apache-2.0" ]
null
null
null
examples/example_dc/example_dc.py
OlivierKamers/PyDC
51a1ded9d067694968dd5855a3c20fc39df882f3
[ "Apache-2.0" ]
3
2019-02-27T11:12:38.000Z
2020-07-26T20:41:54.000Z
from pydc import DC def main(): dc = DC("example_dc.pl", 200) #default is 0 sample (will produce nan if later on no n_samples provided) prob1 = dc.query("drawn(1)~=1") print(prob1) prob2 = dc.query("drawn(1)~=1", n_samples=2000) print(prob2) if __name__ == "__main__": main()
25.166667
107
0.639073
0
0
0
0
0
0
0
0
124
0.410596
802b03d8a8f74e07591150e943daaff1c7cc2c3e
826
py
Python
adet/modeling/DTInst/DTE/__init__.py
shuaiqi361/AdelaiDet
35d944033a8d2f7aa623ad607b57bd8a1fe88b43
[ "BSD-2-Clause" ]
null
null
null
adet/modeling/DTInst/DTE/__init__.py
shuaiqi361/AdelaiDet
35d944033a8d2f7aa623ad607b57bd8a1fe88b43
[ "BSD-2-Clause" ]
null
null
null
adet/modeling/DTInst/DTE/__init__.py
shuaiqi361/AdelaiDet
35d944033a8d2f7aa623ad607b57bd8a1fe88b43
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .MaskLoader import MaskLoader from .utils import IOUMetric, fast_ista, prepare_distance_transform_from_mask, \ prepare_overlay_DTMs_from_mask, prepare_extended_DTMs_from_mask, prepare_augmented_distance_transform_from_mask, \ prepare_di...
68.833333
130
0.825666
0
0
0
0
0
0
0
0
383
0.46368
802b20d5dcc6e53ad2602168453ebf276324e2c7
143
py
Python
Lms_Arpita/DatabaseConnectivity/MongoConnection.py
hcmuleva/personal-profile
051b5a2f36b927951691f48abe584beb8bc25440
[ "MIT" ]
null
null
null
Lms_Arpita/DatabaseConnectivity/MongoConnection.py
hcmuleva/personal-profile
051b5a2f36b927951691f48abe584beb8bc25440
[ "MIT" ]
3
2020-07-13T17:46:32.000Z
2020-07-26T10:30:59.000Z
Lms_Arpita/DatabaseConnectivity/MongoConnection.py
hcmuleva/personal-profile
051b5a2f36b927951691f48abe584beb8bc25440
[ "MIT" ]
null
null
null
from pymongo import MongoClient def path(): client = MongoClient('mongodb://localhost:27017/') db = client['UserBook'] return db
17.875
54
0.678322
0
0
0
0
0
0
0
0
38
0.265734
802cdedc55b19a30eabaf8043c64d8287cf38eb3
1,064
py
Python
example/exc/client.py
so1n/rap
e4e3f4fab9df6190793ec97008bccb669546f207
[ "Apache-2.0" ]
3
2020-12-24T14:42:49.000Z
2022-03-23T07:28:58.000Z
example/exc/client.py
so1n/rap
e4e3f4fab9df6190793ec97008bccb669546f207
[ "Apache-2.0" ]
1
2021-01-20T10:24:49.000Z
2021-01-30T07:52:47.000Z
example/exc/client.py
so1n/rap
e4e3f4fab9df6190793ec97008bccb669546f207
[ "Apache-2.0" ]
null
null
null
import asyncio import time from rap.client import Client from rap.common.exceptions import FuncNotFoundError client: Client = Client("example", [{"ip": "localhost", "port": "9000"}]) # in register, must use async def... @client.register() async def raise_msg_exc(a: int, b: int) -> int: pass # in register, mus...
23.130435
105
0.662594
0
0
0
0
161
0.151316
499
0.468985
178
0.167293
802cfac0d8c03fbbb9f5e792cb2a2873b402427e
3,544
py
Python
openapi/spec/ext/spec/base.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
1
2020-08-30T07:47:57.000Z
2020-08-30T07:47:57.000Z
openapi/spec/ext/spec/base.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
null
null
null
openapi/spec/ext/spec/base.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
null
null
null
import os from ..utils.log import log from ..utils.yaml import read_yaml, write_yaml class BaseSpec: COMPONENTS = 'components' REF_FIELD = '$ref' def __init__(self, path, read_func=read_yaml, write_func=write_yaml): self.path = path self.path_dir = os.path.dirname(path...
29.781513
77
0.582957
3,449
0.973194
939
0.264955
0
0
0
0
129
0.0364
802f2d6813fe3fdbbab4b7f3e7b7c3d02dc46145
2,750
py
Python
code/task6_step1_train_model.py
p-koo/exponential_activations
7e48054b64a565364439c45932338a09eb2eb4d3
[ "MIT" ]
1
2021-09-18T04:09:07.000Z
2021-09-18T04:09:07.000Z
code/task6_step1_train_model.py
koo-lab/exponential_activations
9032a360c1abb0f07b824e3ce6d20707efe306fd
[ "MIT" ]
null
null
null
code/task6_step1_train_model.py
koo-lab/exponential_activations
9032a360c1abb0f07b824e3ce6d20707efe306fd
[ "MIT" ]
4
2020-08-03T02:08:42.000Z
2021-10-01T18:46:47.000Z
import os import numpy as np from six.moves import cPickle from tensorflow import keras from tensorflow import keras import helper from tfomics import utils, metrics, explain #------------------------------------------------------------------------ model_names = ['residualbind'] activations = ['exponential', 'relu']...
37.162162
90
0.552727
0
0
0
0
0
0
0
0
697
0.253455
802f9b17bf794ac63d1cddf593f5ad25c1f4a96b
6,564
py
Python
ensemble_detectors/src/Algorithm_1_matchfilter/ortho_correction.py
satish1901/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
27
2020-06-11T21:59:54.000Z
2022-03-22T03:10:50.000Z
ensemble_detectors/src/Algorithm_1_matchfilter/ortho_correction.py
N-NSH/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
7
2020-09-25T22:41:18.000Z
2022-02-09T23:41:04.000Z
ensemble_detectors/src/Algorithm_1_matchfilter/ortho_correction.py
N-NSH/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
4
2021-01-18T15:57:13.000Z
2022-03-12T20:51:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 21 14:15:38 2019 @author: Satish """ # doing the ortho-correction on the processed data from matchedFilter import os import numpy as np import spectral as spy import spectral.io.envi as envi import spectral.algorithms as algo from spectral.algorith...
37.084746
130
0.6688
0
0
0
0
0
0
0
0
2,633
0.401127
80300712704795c8083886af8ccc60e875ba3cce
1,519
py
Python
rmv_test.py
BenDoan/rmv
d6203d988faa44df238ecb4bf8f3770e1e5d315a
[ "MIT" ]
1
2015-04-02T05:24:10.000Z
2015-04-02T05:24:10.000Z
rmv_test.py
BenDoan/rmv
d6203d988faa44df238ecb4bf8f3770e1e5d315a
[ "MIT" ]
null
null
null
rmv_test.py
BenDoan/rmv
d6203d988faa44df238ecb4bf8f3770e1e5d315a
[ "MIT" ]
null
null
null
import unittest import os import shutil import subprocess from math import ceil TEST_DIR = "testdir" MOVE_DIR = "movedir" NUM_FILES = 100 class TestDefault(unittest.TestCase): def setUp(self): if os.path.exists(TEST_DIR): shutil.rmtree(TEST_DIR) os.makedirs(TEST_DIR) os.chdir(...
27.618182
72
0.597103
1,323
0.870968
0
0
0
0
0
0
165
0.108624
8031820bcdd231e70b0ca877db09b4495f4d4e66
2,155
py
Python
src/nuspacesim/data/RenoNu2TauTables/read_reno_nu2tautables.py
NuSpaceSim/nuSpaceSim
50d3878d37fc66ba3b275b9a71b6421eba5cdeb9
[ "BSD-3-Clause-Clear" ]
7
2021-12-07T16:09:30.000Z
2022-02-18T19:48:35.000Z
src/nuspacesim/data/RenoNu2TauTables/read_reno_nu2tautables.py
NuSpaceSim/nuSpaceSim
50d3878d37fc66ba3b275b9a71b6421eba5cdeb9
[ "BSD-3-Clause-Clear" ]
18
2021-10-12T20:04:46.000Z
2022-03-31T19:51:11.000Z
src/nuspacesim/data/RenoNu2TauTables/read_reno_nu2tautables.py
NuSpaceSim/nuSpaceSim
50d3878d37fc66ba3b275b9a71b6421eba5cdeb9
[ "BSD-3-Clause-Clear" ]
null
null
null
import math import h5py import numpy as np def extract_pexit_data(filename): infile = open(filename, "r") data = [line.split() for line in infile] b = [(math.pi * float(lne[0]) / 180.0) for lne in data] le = [math.log10(float(lne[1])) for lne in data] p = [math.log10(float(lne[-1])) for lne in da...
33.153846
86
0.632947
0
0
0
0
0
0
0
0
269
0.124826
8032277d46ee175709fb44ad0a48ddd9e2bd0bf3
4,443
py
Python
makePredictions.py
psyxusheng/csedm-Data-Challenge
d746fbd21421bf7c1e5500567dbd1f32a48307b3
[ "MIT" ]
null
null
null
makePredictions.py
psyxusheng/csedm-Data-Challenge
d746fbd21421bf7c1e5500567dbd1f32a48307b3
[ "MIT" ]
null
null
null
makePredictions.py
psyxusheng/csedm-Data-Challenge
d746fbd21421bf7c1e5500567dbd1f32a48307b3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import csv import tensorflow as tf from config import Config from DataFeeder import DataFeeder,TestData from model import DKT from sklearn.metrics import f1_score,precision_score,recall_score indices = [precision_score,recall_score,f1_score] def make_prediction(...
41.138889
100
0.55458
0
0
0
0
0
0
0
0
530
0.119289
80323c5cb03f15cf7a86b6b63c25945da75b4b63
1,579
py
Python
bianalyzer/relevance/similarity_matrix.py
luntos/bianalyzer
ce6c1efdf192c0e5e7ed648d6e9dd85be3c7b14b
[ "MIT" ]
4
2016-02-10T22:44:37.000Z
2019-02-26T04:57:11.000Z
bianalyzer/relevance/similarity_matrix.py
luntos/bianalyzer
ce6c1efdf192c0e5e7ed648d6e9dd85be3c7b14b
[ "MIT" ]
null
null
null
bianalyzer/relevance/similarity_matrix.py
luntos/bianalyzer
ce6c1efdf192c0e5e7ed648d6e9dd85be3c7b14b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..helpers import construct_similarity_matrix_via_profiles class SimilarityMatrix: def __init__(self, keywords, matrix): self.keywords = keywords self.matrix = matrix def construct_similarity_matrix(relevance_matrix, relevance_threshold=0.2): """ Constructs ke...
41.552632
111
0.733376
127
0.080431
0
0
0
0
0
0
554
0.350855
8032858404b723ecb11e6d7ac5febb5da3de0fd6
1,452
py
Python
src/block/mcmc.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
src/block/mcmc.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
src/block/mcmc.py
zeou1/maggot_models
4e1b518c2981ab1ca9607099c3813e8429d94ca4
[ "BSD-3-Clause" ]
null
null
null
# TODO write utilities for running MCMC stuff import networkx as nx from graph_tool.inference import minimize_blockmodel_dl from graph_tool import load_graph import numpy as np import pandas as pd import os from src.graph import MetaGraph def run_minimize_blockmodel(mg, temp_loc=None, weight_model=None): meta = ...
29.632653
86
0.694215
0
0
0
0
0
0
0
0
213
0.146694
803369c9001e4847c771fed5ca6b7aaff0451aac
2,832
py
Python
reo/migrations/0064_auto_20200616_1708.py
GUI/REopt_Lite_API
f2ade81b67c526cbe778c7bc584e3e1d616c1efc
[ "BSD-3-Clause" ]
41
2020-02-21T08:25:17.000Z
2022-01-14T23:06:42.000Z
reo/migrations/0064_auto_20200616_1708.py
GUI/REopt_Lite_API
f2ade81b67c526cbe778c7bc584e3e1d616c1efc
[ "BSD-3-Clause" ]
167
2020-02-17T17:26:47.000Z
2022-01-20T20:36:54.000Z
reo/migrations/0064_auto_20200616_1708.py
GUI/REopt_Lite_API
f2ade81b67c526cbe778c7bc584e3e1d616c1efc
[ "BSD-3-Clause" ]
31
2020-02-20T00:22:51.000Z
2021-12-10T05:48:08.000Z
# Generated by Django 2.2.10 on 2020-06-16 17:08 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reo', '0063_auto_20200521_1528'), ] operations = [ migrations.AddField( model_name='profi...
35.4
137
0.607345
2,700
0.95339
0
0
0
0
0
0
690
0.243644
80345a58636aa3864d7f2094b4e668ce2c2cd81a
2,378
py
Python
solo/losses/simclr.py
xwyzsn/solo-learn
16d021d8053439a3de205337ab2a11d191500b09
[ "MIT" ]
693
2021-05-31T15:48:32.000Z
2022-03-31T17:12:46.000Z
solo/losses/simclr.py
xwyzsn/solo-learn
16d021d8053439a3de205337ab2a11d191500b09
[ "MIT" ]
151
2021-06-15T00:22:57.000Z
2022-03-27T15:17:02.000Z
solo/losses/simclr.py
xwyzsn/solo-learn
16d021d8053439a3de205337ab2a11d191500b09
[ "MIT" ]
79
2021-06-02T10:31:15.000Z
2022-03-25T01:25:09.000Z
# Copyright 2021 solo-learn development team. # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to use, # copy, modify, merge, publ...
39.633333
92
0.722876
0
0
0
0
0
0
0
0
1,584
0.666106
803504701a3cf401c13dc50ffb64243deaa7a721
1,966
py
Python
shop/migrations/0001_initial.py
chidibede/Django-Ecommerce-Site
c3a139ccf6e67ea90ab3879afcb16528be008548
[ "MIT" ]
null
null
null
shop/migrations/0001_initial.py
chidibede/Django-Ecommerce-Site
c3a139ccf6e67ea90ab3879afcb16528be008548
[ "MIT" ]
null
null
null
shop/migrations/0001_initial.py
chidibede/Django-Ecommerce-Site
c3a139ccf6e67ea90ab3879afcb16528be008548
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-06-08 10:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Adult_Products', fields=[ ('id', models.AutoF...
38.54902
114
0.544761
1,875
0.953713
0
0
0
0
0
0
338
0.171923
803911ad68063ce4c7a23b2522b750059f50235b
21,773
py
Python
pin_kit/extras/pinplay/PinPoints/scripts/regions.py
sawansib/Sniper
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
[ "MIT" ]
1
2021-04-22T05:27:08.000Z
2021-04-22T05:27:08.000Z
pin_kit/extras/pinplay/PinPoints/scripts/regions.py
sawansib/SNIPER
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
[ "MIT" ]
null
null
null
pin_kit/extras/pinplay/PinPoints/scripts/regions.py
sawansib/SNIPER
45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497
[ "MIT" ]
null
null
null
#!/usr/bin/env python # BEGIN_LEGAL # BSD License # # Copyright (c)2014 Intel Corporation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above...
33.809006
123
0.606715
0
0
0
0
0
0
0
0
11,606
0.533046
803a46dade15dfe7d529009beb897901bfbdb1e7
2,918
py
Python
pydy/codegen/code.py
jcrist/pydy
ec139f0dcbeffba8242636b727b3be02091792b0
[ "BSD-3-Clause" ]
1
2019-06-27T05:30:36.000Z
2019-06-27T05:30:36.000Z
pydy/codegen/code.py
jcrist/pydy
ec139f0dcbeffba8242636b727b3be02091792b0
[ "BSD-3-Clause" ]
null
null
null
pydy/codegen/code.py
jcrist/pydy
ec139f0dcbeffba8242636b727b3be02091792b0
[ "BSD-3-Clause" ]
1
2019-06-27T05:29:50.000Z
2019-06-27T05:29:50.000Z
#!/usr/bin/env python """This module remains for backwards compatibility reasons and will be removed in PyDy 0.4.0.""" import warnings from .ode_function_generators import generate_ode_function as new_gen_ode_func with warnings.catch_warnings(): warnings.simplefilter('once') warnings.warn("This module, 'pyd...
39.972603
79
0.643934
358
0.122687
0
0
0
0
0
0
1,796
0.61549
803aabf6aa2864fa437dfdfe7d60ccff3ba16ead
12,795
py
Python
mle_hyperopt/utils/comms.py
RobertTLange/mle-hyperopt
692fee1e8e3d761962307c0894b308a00fa41d9c
[ "MIT" ]
3
2021-10-31T14:02:37.000Z
2021-11-03T11:22:19.000Z
mle_hyperopt/utils/comms.py
RobertTLange/mle-hyperopt
692fee1e8e3d761962307c0894b308a00fa41d9c
[ "MIT" ]
null
null
null
mle_hyperopt/utils/comms.py
RobertTLange/mle-hyperopt
692fee1e8e3d761962307c0894b308a00fa41d9c
[ "MIT" ]
1
2021-10-30T17:45:26.000Z
2021-10-30T17:45:26.000Z
from datetime import datetime import numpy as np from rich.console import Console from rich.table import Table from rich import box from rich.align import Align from typing import List, Optional, Union console_width = 80 def welcome_message( space_data: List[dict], search_type: str, fixed_params: Optiona...
36.452991
81
0.637124
0
0
0
0
0
0
0
0
6,480
0.504241
803c9afaa645ec27e821bad4d70d8355430146c8
4,009
py
Python
nn_ood/data/lastnames.py
dtch1997/SCOD
f79df5097989b4bfc1c7f4cb8f51c86f708f974c
[ "MIT" ]
10
2021-05-13T03:52:18.000Z
2022-03-23T19:34:35.000Z
nn_ood/data/lastnames.py
dtch1997/SCOD
f79df5097989b4bfc1c7f4cb8f51c86f708f974c
[ "MIT" ]
null
null
null
nn_ood/data/lastnames.py
dtch1997/SCOD
f79df5097989b4bfc1c7f4cb8f51c86f708f974c
[ "MIT" ]
4
2021-05-30T09:12:50.000Z
2021-11-09T23:56:11.000Z
from __future__ import unicode_literals, print_function, division from io import open import glob import os import torch import unicodedata import string import random import numpy as np def findFiles(path): return glob.glob(path) all_letters = string.ascii_letters + " .,;'" n_letters = len(all_letters) # Turn a U...
30.838462
92
0.641307
1,241
0.309554
0
0
0
0
0
0
1,222
0.304814
803e4182cc11eec12d785bce525dec0268a1a586
749
py
Python
sdk/identity/azure-identity/tests/test_imds_credential_async.py
anuchandy/azure-sdk-for-python
589b9890554ebf261aa2184e8f1c6507f01a207c
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/tests/test_imds_credential_async.py
anuchandy/azure-sdk-for-python
589b9890554ebf261aa2184e8f1c6507f01a207c
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/tests/test_imds_credential_async.py
anuchandy/azure-sdk-for-python
589b9890554ebf261aa2184e8f1c6507f01a207c
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from azure.identity.aio._credentials.managed_identity import ImdsCredential import pytest from helpers_async import AsyncMockTransport @pytest.mark.asyncio async def ...
24.16129
75
0.691589
0
0
0
0
456
0.608812
414
0.552737
147
0.196262
803e7af427386e573026718af646b210d5adc2f3
7,576
py
Python
imutils/Stitcher.py
sunjxan/pyimagesearch
6ba14f0fadb23364d9b320981c5984e4842be361
[ "Apache-2.0" ]
null
null
null
imutils/Stitcher.py
sunjxan/pyimagesearch
6ba14f0fadb23364d9b320981c5984e4842be361
[ "Apache-2.0" ]
null
null
null
imutils/Stitcher.py
sunjxan/pyimagesearch
6ba14f0fadb23364d9b320981c5984e4842be361
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np class Stitcher: def stitch(self, images, ratio=.75, reprojThresh=4.0, showMatches=False): imagesCount = len(images) if imagesCount == 0: return if imagesCount == 1: return images[0] result = images[-1] for i in range(ima...
36.956098
118
0.562302
8,495
0.996364
0
0
0
0
0
0
1,605
0.188248
803f3e78ea2014f7c662ee3a5d6517f238a79624
4,339
py
Python
tests/bugs/core_3365_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_3365_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_3365_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_3365 # title: Extend syntax for ALTER USER CURRENT_USER # decription: # Replaced old code: removed EDS from here as it is not needed at all: # we can use here trivial "connect '$(DSN)' ..." instead. # Non-privileg...
33.898438
108
0.567181
0
0
0
0
183
0.042176
0
0
3,862
0.890067
803fc0980572bedb582462a274dae0d462a1eb72
241
py
Python
sololearn/hovercraft.py
ehlodex/Python3
126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6
[ "MIT" ]
null
null
null
sololearn/hovercraft.py
ehlodex/Python3
126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6
[ "MIT" ]
null
null
null
sololearn/hovercraft.py
ehlodex/Python3
126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6
[ "MIT" ]
null
null
null
#!/usr/bin/env/ python3 """SoloLearn > Code Coach > Hovercraft""" sales = int(input('How many did you sell? ')) * 3 expense = 21 if sales > expense: print('Profit') elif sales < expense: print('Loss') else: print('Broke Even')
18.538462
49
0.630705
0
0
0
0
0
0
0
0
115
0.477178
8040774ec7da6d6e9a3a5ad4d793d25841c16e92
2,522
py
Python
RSAMessengerDapp/User/views.py
slothmanxyz/RSAMessengerDapp
3c5966196cac7749ea87ce0f42c47d159eb2ad14
[ "MIT" ]
null
null
null
RSAMessengerDapp/User/views.py
slothmanxyz/RSAMessengerDapp
3c5966196cac7749ea87ce0f42c47d159eb2ad14
[ "MIT" ]
null
null
null
RSAMessengerDapp/User/views.py
slothmanxyz/RSAMessengerDapp
3c5966196cac7749ea87ce0f42c47d159eb2ad14
[ "MIT" ]
1
2021-04-05T13:27:02.000Z
2021-04-05T13:27:02.000Z
from django.http import HttpResponse from django.shortcuts import render, redirect from django.contrib.auth import login, logout, authenticate from django.contrib.auth.forms import AuthenticationForm from web3 import Web3 from .forms import SignupForm from Key.models import Key #The views and templates in this app a...
34.081081
104
0.657811
0
0
0
0
0
0
0
0
441
0.174861
8041201eb138a5c9f79a0273b50738c537af71ad
398
py
Python
app/__init__.py
Paulvitalis200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
null
null
null
app/__init__.py
Paulvitalis200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
4
2018-10-21T18:28:03.000Z
2018-10-24T12:48:24.000Z
app/__init__.py
Paulstar200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
null
null
null
from flask import Flask, Blueprint from flask_jwt_extended import JWTManager def create_app(config): app = Flask(__name__) from instance.config import app_config app.config.from_object(app_config[config]) app.config['JWT_SECRET_KEY'] = 'jwt-secret-string' from .api.V1 import productsale_api as p...
22.111111
54
0.738693
0
0
0
0
0
0
0
0
35
0.08794
804199f0f26ad9829b5e2a973c124bc20bbb89c2
918
py
Python
scripts/MSP_IMPROV_to_12_folds.py
cnut1648/Multimodal-Transformer
8b86590b4d14dcd9e72ee2c9da9668a458780a16
[ "MIT" ]
null
null
null
scripts/MSP_IMPROV_to_12_folds.py
cnut1648/Multimodal-Transformer
8b86590b4d14dcd9e72ee2c9da9668a458780a16
[ "MIT" ]
null
null
null
scripts/MSP_IMPROV_to_12_folds.py
cnut1648/Multimodal-Transformer
8b86590b4d14dcd9e72ee2c9da9668a458780a16
[ "MIT" ]
null
null
null
""" preprocess MSP IMPROV csv run after MSP_IMPROV.py """ import os, torch, soundfile from pathlib import Path import librosa import pandas as pd ID2LABEL = { 0: "neu", 1: "sad", 2: "ang", 3: "hap" } pwd = Path(__file__).parent csv_dir = pwd / "../data/datasets/MSP-IMPROV" out_dir = pwd / "../data/datasets/MSP-IMP...
27
73
0.662309
0
0
0
0
0
0
0
0
283
0.308279
8043c3df7727468e10027ab3c916c11597ab2643
19,038
py
Python
User/User.py
howiemac/evoke4
5d7af36c9fb23d94766d54c9c63436343959d3a8
[ "BSD-3-Clause" ]
null
null
null
User/User.py
howiemac/evoke4
5d7af36c9fb23d94766d54c9c63436343959d3a8
[ "BSD-3-Clause" ]
null
null
null
User/User.py
howiemac/evoke4
5d7af36c9fb23d94766d54c9c63436343959d3a8
[ "BSD-3-Clause" ]
null
null
null
""" evoke base User object IHM 2/2/2006 and thereafter CJH 2012 and therafter gives session-based user validation The database users table must have an entry with uid==1 and id==guest. This is used to indicate no valid login. The database users table must have an entry with uid==2 . This is the sys admin user. R...
35.718574
193
0.643082
18,316
0.962076
0
0
3,263
0.171394
0
0
9,007
0.473106
804416e6e25ce3ed4c5dc637ff0b100cabf78eb4
242
py
Python
richcomments/templatetags/richcomments.py
praekelt/django-richcomments
e1b2e123bf46135fd2bdf8fa810e4995e641db72
[ "BSD-3-Clause" ]
2
2015-01-22T19:16:06.000Z
2015-04-28T19:12:45.000Z
richcomments/templatetags/richcomments.py
praekelt/django-richcomments
e1b2e123bf46135fd2bdf8fa810e4995e641db72
[ "BSD-3-Clause" ]
null
null
null
richcomments/templatetags/richcomments.py
praekelt/django-richcomments
e1b2e123bf46135fd2bdf8fa810e4995e641db72
[ "BSD-3-Clause" ]
null
null
null
from django import template from django.template.loader import render_to_string register = template.Library() @register.simple_tag def richcomments_static(): return render_to_string('richcomments/templatetags/richcomments_static.html')
26.888889
81
0.834711
0
0
0
0
129
0.533058
0
0
52
0.214876
80445a8b0077e05e95163bce0920494788da568d
1,203
py
Python
rosys/pathplanning/obstacle_map_demo.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
1
2022-02-20T08:21:07.000Z
2022-02-20T08:21:07.000Z
rosys/pathplanning/obstacle_map_demo.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
1
2022-03-08T12:46:09.000Z
2022-03-08T12:46:09.000Z
rosys/pathplanning/obstacle_map_demo.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from nicegui import ui import pylab as pl import numpy as np import time from rosys.world.pose import Pose from rosys.world.spline import Spline from grid import Grid from robot_renderer import RobotRenderer from obstacle_map import ObstacleMap import plot_tools as pt grid = Grid((30, 40, 36), (...
28.642857
85
0.682461
0
0
0
0
0
0
0
0
55
0.045719
8044c8aa6dbc56f89bc318d636c18413c449c80a
599
py
Python
code/modern-python/quadratic.py
dushyantkhosla/testing4ds
e6f69f7ff46225a491da00ac994e036633d0ca64
[ "MIT" ]
null
null
null
code/modern-python/quadratic.py
dushyantkhosla/testing4ds
e6f69f7ff46225a491da00ac994e036633d0ca64
[ "MIT" ]
null
null
null
code/modern-python/quadratic.py
dushyantkhosla/testing4ds
e6f69f7ff46225a491da00ac994e036633d0ca64
[ "MIT" ]
null
null
null
from math import sqrt from typing import Tuple def quadratic(a: float, b: float, c: float) -> Tuple[float, float]: '''Compute roots of the quadratic equation: a*x**2 + b*x + c = 0 For example: >>> x1, x2 = quadratic(a=4, b=11, c=7) >>> x1 -1.0 ...
23.96
67
0.42571
0
0
0
0
0
0
0
0
336
0.560935
804522328bccd7ddf45bddcd59e540005384feed
391
py
Python
Python/973.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/973.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/973.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
import heapq class Solution: def kClosest(self, points: List[List[int]], K: int) -> List[List[int]]: results = [] heap = [] for x, y in points: dist = x * x + y * y heapq.heappush(heap, (dist, x, y)) for i in range(K): point = heapq.heappop(heap) ...
32.583333
75
0.503836
377
0.964194
0
0
0
0
0
0
0
0
804795ddc70fcb743a2b2214a7d1fe74c8e9ad6c
2,236
py
Python
tests/test_sphnf.py
JohnEdChristensen/NiggliOptimize
e90b8c66e7b7e560c460502ee24991af775c625b
[ "MIT" ]
null
null
null
tests/test_sphnf.py
JohnEdChristensen/NiggliOptimize
e90b8c66e7b7e560c460502ee24991af775c625b
[ "MIT" ]
null
null
null
tests/test_sphnf.py
JohnEdChristensen/NiggliOptimize
e90b8c66e7b7e560c460502ee24991af775c625b
[ "MIT" ]
null
null
null
import pytest import numpy as np """ def test_mono_39(): from pg_comp.base_mono import * with open("tests/test_output/base_mono_1_200_n.out","r") as f: n_500 = int(f.readline().strip()) srHNFs = [] for n in range(1,201): temp = base_mono_37_39(n) for t in temp: if le...
27.268293
74
0.515206
0
0
0
0
0
0
0
0
2,201
0.984347