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
38d68c3be83a3f35ee2c9d807898670a1ff4278e
575
py
Python
test/helpers/pylint/findWarnings.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
1
2021-12-19T15:11:09.000Z
2021-12-19T15:11:09.000Z
test/helpers/pylint/findWarnings.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
null
null
null
test/helpers/pylint/findWarnings.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
null
null
null
from .helpers import get_pylint_output, write_output from ..automation_tools import read_json def find_warnings(): print('Generating warnings in all of pygsti. This takes around 30 seconds') config = read_json('config/pylint_config.json') blacklist = config['blacklisted-warnings'] command...
44.230769
79
0.633043
0
0
0
0
0
0
0
0
215
0.373913
38d7b65bf66287fe4e9a38e2e928310e83dfbed0
47,316
py
Python
orangecontrib/esrf/syned/widgets/extension/ow_ebs.py
oasys-esrf-kit/OASYS1-ESRF-Extensions
5df1ac01a1319d900380196c850504e09e36f9d6
[ "MIT" ]
null
null
null
orangecontrib/esrf/syned/widgets/extension/ow_ebs.py
oasys-esrf-kit/OASYS1-ESRF-Extensions
5df1ac01a1319d900380196c850504e09e36f9d6
[ "MIT" ]
null
null
null
orangecontrib/esrf/syned/widgets/extension/ow_ebs.py
oasys-esrf-kit/OASYS1-ESRF-Extensions
5df1ac01a1319d900380196c850504e09e36f9d6
[ "MIT" ]
1
2020-06-22T05:46:07.000Z
2020-06-22T05:46:07.000Z
import os, sys import numpy import scipy.constants as codata from syned.storage_ring.magnetic_structures.undulator import Undulator from syned.storage_ring.magnetic_structures import insertion_device from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QMessageBox, QApplication from PyQt5.QtC...
45.715942
207
0.622897
45,616
0.964071
0
0
0
0
0
0
9,115
0.192641
38d929d0301c7b6e0ff15401a2613c1800d9088f
139
py
Python
test_project/test_app/urls.py
ninemoreminutes/django-trails
fabe179fc4b5829f8c73805faa027f5e866ade7c
[ "BSD-3-Clause" ]
2
2018-10-18T19:34:40.000Z
2019-11-13T16:00:53.000Z
test_project/test_app/urls.py
ninemoreminutes/django-trails
fabe179fc4b5829f8c73805faa027f5e866ade7c
[ "BSD-3-Clause" ]
4
2020-02-11T23:21:07.000Z
2020-06-05T19:21:05.000Z
test_project/test_app/urls.py
ninemoreminutes/django-trails
fabe179fc4b5829f8c73805faa027f5e866ade7c
[ "BSD-3-Clause" ]
null
null
null
# Django from django.urls import re_path # Test App from .views import index urlpatterns = [ re_path(r'^$', index, name='index'), ]
12.636364
40
0.669065
0
0
0
0
0
0
0
0
30
0.215827
38da00d41601d677e1dec72d26270b4ae74fa86c
5,927
py
Python
bin/analysis/ipa/constraints/node.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
6
2015-09-19T18:22:33.000Z
2020-11-29T15:21:17.000Z
bin/analysis/ipa/constraints/node.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2015-08-04T08:03:46.000Z
2015-08-04T08:03:46.000Z
bin/analysis/ipa/constraints/node.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2019-12-09T08:27:09.000Z
2019-12-09T08:27:09.000Z
# Copyright 2011 Nicholas Bray # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
26.698198
153
0.713683
5,222
0.881053
0
0
0
0
0
0
1,091
0.184073
38da46eb39dadf4a7638b1ed59d690feefc47f80
3,655
py
Python
levels/7/initialize_db.py
industrydive/stripe-ctf-2-vm
1987516471957a791ed02c70ac4ae6b7aeb72b69
[ "Apache-2.0" ]
36
2015-05-11T20:22:55.000Z
2021-09-26T07:36:49.000Z
levels/7/initialize_db.py
industrydive/stripe-ctf-2-vm
1987516471957a791ed02c70ac4ae6b7aeb72b69
[ "Apache-2.0" ]
null
null
null
levels/7/initialize_db.py
industrydive/stripe-ctf-2-vm
1987516471957a791ed02c70ac4ae6b7aeb72b69
[ "Apache-2.0" ]
16
2016-03-08T16:25:46.000Z
2022-03-16T06:28:51.000Z
#!/usr/bin/env python import sys from datetime import datetime from random import SystemRandom import bcrypt import sqlite3 import client import db import settings conn = db.DB(settings.database) conn.debug = True c = conn.cursor db.rewrite_entropy_file(settings.entropy_file) rand = SystemRandom() def rand_choice...
28.115385
75
0.631464
0
0
0
0
0
0
0
0
1,311
0.358687
38dbca903f2a85d1301cee64efa4e83e79d5c1ce
112
py
Python
jp.atcoder/abc251/abc251_a/31673235.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc251/abc251_a/31673235.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc251/abc251_a/31673235.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
def main() -> None: s = input() print(s * (6 // len(s))) if __name__ == "__main__": main()
14
29
0.446429
0
0
0
0
0
0
0
0
10
0.089286
38dbed609de1a2695c5a854a2a4f693c2e1e7e38
286
py
Python
day3/classwork/1.py
LencoDigitexer/AI
e22f5e63df46c56b57da5191d9536e00c5c50782
[ "MIT" ]
null
null
null
day3/classwork/1.py
LencoDigitexer/AI
e22f5e63df46c56b57da5191d9536e00c5c50782
[ "MIT" ]
null
null
null
day3/classwork/1.py
LencoDigitexer/AI
e22f5e63df46c56b57da5191d9536e00c5c50782
[ "MIT" ]
null
null
null
''' Вводится последовательность из N чисел. Найти произведение и количество положительных среди них чисел ''' proizvedenie = 1 a = input().split(" ") for i in range(0, len(a)): proizvedenie *= int(a[i]) print("Произведение " + str(proizvedenie)) print("Кол-во чисел " + str(len(a)))
28.6
60
0.695804
0
0
0
0
0
0
0
0
251
0.635443
38dcfaea3f6eeb906d708162cee888578263698d
553
py
Python
Codes/Liam/001_two_sum.py
liuxiaohui1221/algorithm
d80e64185ceb4798ac5389bfbd226dc1d406f6b5
[ "Apache-2.0" ]
256
2017-10-25T13:02:15.000Z
2022-02-25T13:47:59.000Z
Codes/Liam/001_two_sum.py
liuxiaohui1221/algorithm
d80e64185ceb4798ac5389bfbd226dc1d406f6b5
[ "Apache-2.0" ]
56
2017-10-27T01:34:20.000Z
2022-03-01T00:20:55.000Z
Codes/Liam/001_two_sum.py
liuxiaohui1221/algorithm
d80e64185ceb4798ac5389bfbd226dc1d406f6b5
[ "Apache-2.0" ]
83
2017-10-25T12:51:53.000Z
2022-02-15T08:27:03.000Z
# 执行用时 : 348 ms # 内存消耗 : 13 MB # 方案:哈希表 class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ # 创建哈希表{value:idx} record = {} # 遍数组 for idx, value in enumerate(nums): ...
23.041667
52
0.486438
601
0.893016
0
0
0
0
0
0
334
0.496285
38deced1bd0383a7623b3e0121291bf13f2bd046
9,939
py
Python
ckanext/doi/lib/metadata.py
NINAnor/ckanext-doi
2f93c03545885ae0795cea78f49aac66295df763
[ "MIT" ]
16
2015-01-15T17:20:33.000Z
2021-04-28T04:26:02.000Z
ckanext/doi/lib/metadata.py
NINAnor/ckanext-doi
2f93c03545885ae0795cea78f49aac66295df763
[ "MIT" ]
34
2015-02-18T16:44:06.000Z
2022-03-03T19:05:11.000Z
ckanext/doi/lib/metadata.py
NINAnor/ckanext-doi
2f93c03545885ae0795cea78f49aac66295df763
[ "MIT" ]
14
2015-04-17T10:36:42.000Z
2022-03-01T08:13:55.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # This file is part of ckanext-doi # Created by the Natural History Museum in London, UK import logging from ckan.lib.helpers import lang as ckan_lang from ckan.model import Package from ckan.plugins import PluginImplementations, toolkit from ckanext.doi.interfaces import I...
32.06129
100
0.598652
0
0
0
0
0
0
0
0
3,885
0.390884
38e09a14bcf404479b71e05553e37caf4d388eb7
3,417
py
Python
oo/carros.py
AdnirJunior/pythonbirds
bdc848291c3c6f22e6647768103bf7bd2863145b
[ "MIT" ]
null
null
null
oo/carros.py
AdnirJunior/pythonbirds
bdc848291c3c6f22e6647768103bf7bd2863145b
[ "MIT" ]
null
null
null
oo/carros.py
AdnirJunior/pythonbirds
bdc848291c3c6f22e6647768103bf7bd2863145b
[ "MIT" ]
null
null
null
"""Voce deve criar uma classe carro que vai assumir dois atributos compostos por duas classes: 1) Motor 2) Direcao O motor terá a responsabilidade de controlar a velocidade. Ele Oferece os seguintes atributos: 1) Atribuo de dado velocidade 2) Método acelerar, que deverá incrementar 1 unidade 3) Médoto freardecrement...
21.903846
94
0.625988
1,356
0.396144
0
0
0
0
0
0
2,025
0.591586
38e2780c1d8295a2aa1e5df333294d92a0dd54a1
3,482
py
Python
src/icon/exception.py
goldworm-icon/gw-iconsdk
b54722b0d19f286c0d0b8d751ff8cbcabd29f86a
[ "Apache-2.0" ]
2
2019-05-28T22:37:49.000Z
2020-01-07T11:40:15.000Z
src/icon/exception.py
goldworm-icon/gw-iconsdk
b54722b0d19f286c0d0b8d751ff8cbcabd29f86a
[ "Apache-2.0" ]
1
2020-02-04T12:05:31.000Z
2020-02-04T12:05:31.000Z
src/icon/exception.py
goldworm-icon/gw-iconsdk
b54722b0d19f286c0d0b8d751ff8cbcabd29f86a
[ "Apache-2.0" ]
1
2019-08-01T08:42:15.000Z
2019-08-01T08:42:15.000Z
# -*- coding: utf-8 -*- from enum import IntEnum, unique from typing import Optional, Any class SDKException(Exception): @unique class Code(IntEnum): OK = 0 KEY_STORE_ERROR = 1 ADDRESS_ERROR = 2 BALANCE_ERROR = 3 DATA_TYPE_ERROR = 4 JSON_RPC_ERROR = 5 Z...
30.017241
82
0.681505
3,355
0.963527
0
0
593
0.170304
0
0
397
0.114015
38e34f16224fab03d0d16ac00cd37fd07c95962e
528
py
Python
test/test_add_movie.py
Dananas732/php4dvd_lyzlov
9fa3deb51eda7406475fdc4cf8faec8eb84aa61e
[ "Apache-2.0" ]
null
null
null
test/test_add_movie.py
Dananas732/php4dvd_lyzlov
9fa3deb51eda7406475fdc4cf8faec8eb84aa61e
[ "Apache-2.0" ]
null
null
null
test/test_add_movie.py
Dananas732/php4dvd_lyzlov
9fa3deb51eda7406475fdc4cf8faec8eb84aa61e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from model.movie import Movie from model.user import User from fixture.selenium_fixture import app def test_add_movie(app): app.session.login(User.Admin()) old_list = app.movie.get_movie_list() app.movie.add_movie(Movie(film_name='name', film_year='2016')) new_list = app.movie....
26.4
66
0.721591
0
0
0
0
0
0
0
0
35
0.066288
38e58db88d17dcc51ab2794712747a7a6f27aee6
3,752
py
Python
main.py
dashdeckers/Wildfire-Control-Python
8ace34e389b4d177b84efe964e8d327a82eb3ed6
[ "MIT" ]
2
2019-03-21T12:37:00.000Z
2021-04-11T13:38:57.000Z
main.py
dashdeckers/Wildfire-Control-Python
8ace34e389b4d177b84efe964e8d327a82eb3ed6
[ "MIT" ]
3
2020-01-28T22:37:00.000Z
2022-02-10T00:15:14.000Z
main.py
dashdeckers/Wildfire-Control-Python
8ace34e389b4d177b84efe964e8d327a82eb3ed6
[ "MIT" ]
null
null
null
# Argument handling import argparse parser = argparse.ArgumentParser() parser.add_argument("-r", "--run", action="store_true", help="Start the learning process") parser.add_argument("-m", "--memories", type=int, default=100, help="Number of runs of demonstration data to...
36.427184
88
0.61194
0
0
0
0
0
0
0
0
1,366
0.364072
38e5c75c5a33d505486249e9804993dae69406b3
20,561
py
Python
util/job_launching/procman.py
LauXy/accel-sim-framework
4c2bf09a79d6b57bb10fe1898700930a5dd5531f
[ "BSD-2-Clause" ]
88
2020-07-15T22:07:38.000Z
2022-03-29T03:52:55.000Z
util/job_launching/procman.py
LauXy/accel-sim-framework
4c2bf09a79d6b57bb10fe1898700930a5dd5531f
[ "BSD-2-Clause" ]
68
2020-08-12T13:44:59.000Z
2022-03-28T19:34:56.000Z
util/job_launching/procman.py
LauXy/accel-sim-framework
4c2bf09a79d6b57bb10fe1898700930a5dd5531f
[ "BSD-2-Clause" ]
54
2020-07-24T21:05:56.000Z
2022-03-31T13:28:23.000Z
#!/usr/bin/env python # 2020 (c) Tim Rogers, Purdue University # 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 copyright notice, this # list of conditions and the fo...
41.453629
127
0.594961
6,914
0.336268
0
0
0
0
0
0
6,559
0.319002
38e6e2acda50235d67dfac9f5ec598d66c8ddcc1
2,005
py
Python
nabu/processing/tfreaders/numpy_float_array_as_tfrecord_reader.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
18
2017-10-16T13:12:46.000Z
2022-02-15T01:20:00.000Z
nabu/processing/tfreaders/numpy_float_array_as_tfrecord_reader.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
null
null
null
nabu/processing/tfreaders/numpy_float_array_as_tfrecord_reader.py
Darleen2019/Nabu-MSSS
5e862cbf846d45b8a317f87588533f3fde9f0726
[ "MIT" ]
9
2017-10-03T18:10:10.000Z
2020-11-13T08:26:31.000Z
'''@file numpy_float_array_as_tfrecord_reader.py contains the NumpyFloatArrayAsTfrecordReader class''' import os import numpy as np import tensorflow as tf import tfreader import pdb class NumpyFloatArrayAsTfrecordReader(tfreader.TfReader): '''reader for numpy float arrays''' def _read_metadata(self, datadir...
30.378788
78
0.613965
1,819
0.907232
0
0
0
0
0
0
941
0.469327
38e9981ca280b378dc3584ec5d46dac7194e4dbd
643
py
Python
apps/telegram_bot/bot/filters.py
alena-kono/bot-valley
e8403f75bcd4e4b3f84bbe8c00a53d763e7c9776
[ "MIT" ]
null
null
null
apps/telegram_bot/bot/filters.py
alena-kono/bot-valley
e8403f75bcd4e4b3f84bbe8c00a53d763e7c9776
[ "MIT" ]
1
2022-03-01T12:18:11.000Z
2022-03-01T12:18:11.000Z
apps/telegram_bot/bot/filters.py
alena-kono/bot-valley
e8403f75bcd4e4b3f84bbe8c00a53d763e7c9776
[ "MIT" ]
null
null
null
import telegram from telegram.ext.filters import MessageFilter from apps.telegram_bot.preferences import global_preferences class CryptoCurrencyFilter(MessageFilter): """A custom MessageFilter that filters telegram text messages by the condition of entering the list of BUTTONS_CRYPTO_CURRENCIES_FROM. """...
33.842105
82
0.735614
515
0.800933
0
0
0
0
0
0
187
0.290824
c7f9c8239458c9257f86279f06d4314af6312cd7
2,664
py
Python
functest/func_py_custom_renderer.py
mitsuba-rei/lightmetrica-v3
db5b7d5a9a245fb7c0d25124433c38d09b62813e
[ "MIT" ]
null
null
null
functest/func_py_custom_renderer.py
mitsuba-rei/lightmetrica-v3
db5b7d5a9a245fb7c0d25124433c38d09b62813e
[ "MIT" ]
null
null
null
functest/func_py_custom_renderer.py
mitsuba-rei/lightmetrica-v3
db5b7d5a9a245fb7c0d25124433c38d09b62813e
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.2.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## Custom renderer in P...
24.218182
93
0.582958
1,268
0.475976
0
0
1,303
0.489114
0
0
764
0.286787
c7fa73d5a956f1ec56de8229d7e06f9ce5ec0668
668
py
Python
Ingest/Reddit.py
andersonpaac/Credd
b22f86167d6a2ced080b159a5ab822eba5faa791
[ "MIT" ]
null
null
null
Ingest/Reddit.py
andersonpaac/Credd
b22f86167d6a2ced080b159a5ab822eba5faa791
[ "MIT" ]
7
2020-03-24T17:05:52.000Z
2022-03-11T23:47:42.000Z
Ingest/Reddit.py
andersonpaac/Creddit
b22f86167d6a2ced080b159a5ab822eba5faa791
[ "MIT" ]
null
null
null
import json import praw from Analysis.Common import Constants def get_reddit_instance(config_json_fname: str = Constants.CONFIG_FNAME): """ Given path to a file containing the credentials for reddit API's client_id, secret, user agent. This will return the praw instance. :param config_json_fname: ...
33.4
116
0.684132
0
0
0
0
0
0
0
0
232
0.347305
c7fbbec52e6a6987d6dd31cf694220a3b9b2bd09
301
py
Python
web crawler functions/get_next_target.py
akshaynagpal/python_web_crawler
a74af25db4c9f819105621868a6a9a7337a2a770
[ "MIT" ]
1
2022-03-06T21:00:45.000Z
2022-03-06T21:00:45.000Z
web crawler functions/get_next_target.py
akshaynagpal/python_web_crawler
a74af25db4c9f819105621868a6a9a7337a2a770
[ "MIT" ]
null
null
null
web crawler functions/get_next_target.py
akshaynagpal/python_web_crawler
a74af25db4c9f819105621868a6a9a7337a2a770
[ "MIT" ]
null
null
null
def get_next_target(page): start_link = page.find('<a href=') if start_link == -1: return None,0 else: start_quote = page.find('"', start_link) end_quote = page.find('"', start_quote + 1) url = page[start_quote + 1:end_quote] return url, end_quote
27.363636
51
0.58804
0
0
0
0
0
0
0
0
16
0.053156
c7fbc823f8a546465b13ed0456c3ae2fd7b2cfaf
3,249
py
Python
botwinick_math/maths/aggregate.py
dbotwinick/python-botwinick-math
52f038c277e27243f82aed2000137fb2ee6f1dae
[ "BSD-3-Clause" ]
null
null
null
botwinick_math/maths/aggregate.py
dbotwinick/python-botwinick-math
52f038c277e27243f82aed2000137fb2ee6f1dae
[ "BSD-3-Clause" ]
null
null
null
botwinick_math/maths/aggregate.py
dbotwinick/python-botwinick-math
52f038c277e27243f82aed2000137fb2ee6f1dae
[ "BSD-3-Clause" ]
null
null
null
# author: Drew Botwinick, Botwinick Innovations # title: occasionally trivial support functions for aggregating data for python 2/3 [only numpy as dependency] # NOTE: these functions are generally tested meant for 1D although they may apply or be easily extended to nd # license: 3-clause BSD import numpy as np flat_m...
39.144578
128
0.711296
0
0
0
0
0
0
0
0
2,242
0.690058
c7fd3ba288c68945f082fd623cdb47c96e4e8977
1,485
py
Python
leetcode-algorithms/107. Binary Tree Level Order Traversal II/107.binary-tree-level-order-traversal-ii.py
cnyy7/LeetCode_EY
44e92f102b61f5e931e66081ed6636d7ecbdefd4
[ "MIT" ]
null
null
null
leetcode-algorithms/107. Binary Tree Level Order Traversal II/107.binary-tree-level-order-traversal-ii.py
cnyy7/LeetCode_EY
44e92f102b61f5e931e66081ed6636d7ecbdefd4
[ "MIT" ]
null
null
null
leetcode-algorithms/107. Binary Tree Level Order Traversal II/107.binary-tree-level-order-traversal-ii.py
cnyy7/LeetCode_EY
44e92f102b61f5e931e66081ed6636d7ecbdefd4
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=107 lang=python3 # # [107] Binary Tree Level Order Traversal II # # https://leetcode.com/problems/binary-tree-level-order-traversal-ii/description/ # # algorithms # Easy (48.66%) # Likes: 1105 # Dislikes: 201 # Total Accepted: 289.3K # Total Submissions: 572.4K # Testcase Example: '[3,9,2...
21.521739
81
0.552862
568
0.378414
0
0
0
0
0
0
881
0.586942
c7feef185f3cd2a9de34cd9ca911002e06e8cf12
3,383
py
Python
openrave/python/examples/tutorial_iklookat.py
jdsika/TUM_HOly
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
2
2015-11-13T16:40:57.000Z
2017-09-15T15:37:19.000Z
openrave/python/examples/tutorial_iklookat.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
1
2016-06-13T01:29:51.000Z
2016-06-14T00:38:27.000Z
openrave/python/examples/tutorial_iklookat.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2009-2011 Rosen Diankov (rosen.diankov@gmail.com) # # 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/li...
42.2875
153
0.688738
0
0
0
0
834
0.246527
0
0
1,368
0.404375
c7ff80b02f36412b36398e9a909bcd286ba8d17e
2,328
py
Python
notebooks/calcs/rating.py
pcejrowski/iwi
89111b589e7d9ccf0b60269fc98daf7e50f7d95f
[ "MIT" ]
null
null
null
notebooks/calcs/rating.py
pcejrowski/iwi
89111b589e7d9ccf0b60269fc98daf7e50f7d95f
[ "MIT" ]
null
null
null
notebooks/calcs/rating.py
pcejrowski/iwi
89111b589e7d9ccf0b60269fc98daf7e50f7d95f
[ "MIT" ]
null
null
null
import metrics def rate(artToCatSim, label, membershipData, categoryTree, artNamesDict, catNamesDict): # countBefore1 = artToCatSim.count_nonzero() # for article in membershipData: # id_and_categories = article.split('\t') # articleId = int(id_and_categories[0]) # del id_and_categories...
35.815385
97
0.64433
0
0
0
0
0
0
0
0
1,165
0.50043
2a0163abf280cb04a1d37410665435dd6e038977
495
py
Python
tests/test_socfaker_application.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
122
2020-02-21T16:06:54.000Z
2022-03-21T13:53:03.000Z
tests/test_socfaker_application.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
13
2020-01-29T16:37:05.000Z
2022-01-27T21:30:10.000Z
tests/test_socfaker_application.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
20
2020-04-10T11:59:29.000Z
2022-02-10T09:20:26.000Z
def test_socfaker_application_status(socfaker_fixture): assert socfaker_fixture.application.status in ['Active', 'Inactive', 'Legacy'] def test_socfaker_application_account_status(socfaker_fixture): assert socfaker_fixture.application.account_status in ['Enabled', 'Disabled'] def test_socfaker_name(socfaker_f...
45
82
0.842424
0
0
0
0
0
0
0
0
45
0.090909
2a029f302b32cd792495b8fa2cc70f93a578db3c
1,241
py
Python
test.py
OSSome01/ekalavya
30933c94308afd86d2135ea9b131005c88042df4
[ "MIT" ]
2
2021-06-12T07:43:10.000Z
2021-06-12T15:10:50.000Z
test.py
OSSome01/ekalavya
30933c94308afd86d2135ea9b131005c88042df4
[ "MIT" ]
null
null
null
test.py
OSSome01/ekalavya
30933c94308afd86d2135ea9b131005c88042df4
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import roslib roslib.load_manifest('begineer_tutorial') import sys import rospy import cv2 import numpy as np from std_msgs.msg import String from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError class image_converter: def __init_...
25.326531
84
0.720387
705
0.56809
0
0
0
0
0
0
232
0.186946
2a0340d6bee8c182f82274f58caefa62290e5be1
461
py
Python
configs/retinanet/retinanet_r50_fpn_1x_bdd100k.py
XDong18/mmdetection
482ada168a644f350d51d85783d309677441eeb0
[ "Apache-2.0" ]
null
null
null
configs/retinanet/retinanet_r50_fpn_1x_bdd100k.py
XDong18/mmdetection
482ada168a644f350d51d85783d309677441eeb0
[ "Apache-2.0" ]
null
null
null
configs/retinanet/retinanet_r50_fpn_1x_bdd100k.py
XDong18/mmdetection
482ada168a644f350d51d85783d309677441eeb0
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/retinanet_r50_fpn.py', '../_base_/datasets/bdd100k_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] # optimizer optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001) # model model = dict( bbox_head=dict( num_c...
20.954545
72
0.665944
0
0
0
0
0
0
0
0
226
0.490239
2a06d2484aaf8403e4a1aedc38951691db8afbda
1,278
py
Python
questions/max-number-of-k-sum-pairs/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/max-number-of-k-sum-pairs/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/max-number-of-k-sum-pairs/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" You are given an integer array nums and an integer k. In one operation, you can pick two numbers from the array whose sum equals k and remove them from the array. Return the maximum number of operations you can perform on the array.   Example 1: Input: nums = [1,2,3,4], k = 5 Output: 2 Explanation: Starting with ...
25.56
108
0.544601
478
0.373438
0
0
0
0
0
0
799
0.624219
2a0c441daafd819f5e8b9d51026c63ee758e4a18
8,377
py
Python
tests/core/service_test.py
dnephin/Tron
bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a
[ "Apache-2.0" ]
null
null
null
tests/core/service_test.py
dnephin/Tron
bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a
[ "Apache-2.0" ]
null
null
null
tests/core/service_test.py
dnephin/Tron
bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a
[ "Apache-2.0" ]
null
null
null
import mock from testify import setup, assert_equal, TestCase, run from testify.assertions import assert_not_equal from tests.assertions import assert_mock_calls from tests.testingutils import autospec_method from tron.core import service, serviceinstance from tron import node, command_context, event, eventloop from t...
42.308081
83
0.718515
7,962
0.95046
0
0
2,290
0.273368
0
0
87
0.010386
2a0c50108ad0d192b72ca77b3ab58cf9d7e8b047
113
py
Python
constants.py
mattdeitke/allenact-1
70f106b32a38424e862399a76d84f607838063be
[ "MIT" ]
1
2020-09-10T13:09:14.000Z
2020-09-10T13:09:14.000Z
constants.py
mattdeitke/allenact-1
70f106b32a38424e862399a76d84f607838063be
[ "MIT" ]
null
null
null
constants.py
mattdeitke/allenact-1
70f106b32a38424e862399a76d84f607838063be
[ "MIT" ]
null
null
null
import os from pathlib import Path ABS_PATH_OF_TOP_LEVEL_DIR = os.path.abspath(os.path.dirname(Path(__file__)))
22.6
76
0.814159
0
0
0
0
0
0
0
0
0
0
2a0dc668b21a91832f8ec31e1a4ff4f191731611
4,558
py
Python
Implementation/eshopee.py
AchuthaVVyas/259902_Ltts_StepIN-
8dca06479a1c163e9bc971be97f34b09c9aa5aad
[ "Unlicense" ]
null
null
null
Implementation/eshopee.py
AchuthaVVyas/259902_Ltts_StepIN-
8dca06479a1c163e9bc971be97f34b09c9aa5aad
[ "Unlicense" ]
null
null
null
Implementation/eshopee.py
AchuthaVVyas/259902_Ltts_StepIN-
8dca06479a1c163e9bc971be97f34b09c9aa5aad
[ "Unlicense" ]
null
null
null
import tkinter as tk from tkinter.font import Font from tkinter import * from tkinter import messagebox from models.Store import Store from models.ShoppingCart import ShoppingCart import datetime def viewStore(): global storeWindow storeLabelFrame = LabelFrame(storeWindow, text="Store Items",) storeLabel...
34.793893
122
0.630759
0
0
0
0
0
0
0
0
775
0.170031
2a0dc67bade2117bf57ad1386621e32344ab2ab8
15,919
py
Python
atomate/vasp/database.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
atomate/vasp/database.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
atomate/vasp/database.py
Zhuoying/atomate
067023f0f740d3abac47b7ae7743c1c31eff8a06
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" This module defines the database classes. """ import json import zlib from typing import Any import gridfs from bson import ObjectId from maggma.stores.aws import S3Store from monty.dev import deprecated from monty.json import MontyEncoder from pymatgen.electronic_structure.bandstructure import ( BandStructur...
36.179545
116
0.597839
13,819
0.868082
0
0
113
0.007098
0
0
7,241
0.454865
2a0e1ca9345564e019c758529a1cb3634a3a9fae
296
py
Python
ergoservice/dashboard/models.py
damirmedakovic/ergoapp
38dec32aa2dbdd3ec27a8e911fc233dff7c7c499
[ "MIT" ]
null
null
null
ergoservice/dashboard/models.py
damirmedakovic/ergoapp
38dec32aa2dbdd3ec27a8e911fc233dff7c7c499
[ "MIT" ]
5
2020-06-05T23:32:29.000Z
2021-06-10T18:58:29.000Z
ergoservice/dashboard/models.py
damirmedakovic/ergoapp
38dec32aa2dbdd3ec27a8e911fc233dff7c7c499
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Case(models.Model): name = models.CharField(max_length =100) email = models.EmailField(max_length=100, unique=True) message = models.CharField(max_length=500, blank=True) created_at = models.DateTimeField(auto_now_add=True)
22.769231
55
0.773649
233
0.787162
0
0
0
0
0
0
26
0.087838
2a0fe0131e7b0ce2b0125eb0c7c09663dccc2793
3,032
py
Python
BaseFeaturizer.py
dsbrown1331/HardRLWithYoutube
33f72a5473c46841b77468b6902489c0fd812795
[ "MIT" ]
34
2018-10-16T16:09:07.000Z
2021-10-19T06:21:03.000Z
BaseFeaturizer.py
dsbrown1331/HardRLWithYoutube
33f72a5473c46841b77468b6902489c0fd812795
[ "MIT" ]
5
2019-01-31T16:31:13.000Z
2019-06-26T01:13:04.000Z
BaseFeaturizer.py
dsbrown1331/HardRLWithYoutube
33f72a5473c46841b77468b6902489c0fd812795
[ "MIT" ]
9
2018-12-04T11:39:43.000Z
2021-04-02T19:17:11.000Z
from abc import ABCMeta, abstractmethod # Required to create an abstract class import numpy as np from scipy import spatial # For nearest neighbour lookup import tensorflow as tf class BaseFeaturizer(metaclass=ABCMeta): """Interface for featurizers Featurizers take images that are potentially from different v...
41.534247
101
0.685356
2,852
0.940633
0
0
308
0.101583
0
0
975
0.32157
2a101d90d02ecf24ffa04bb3238bffdbcd08a712
897
py
Python
101-200/101-110/106-binaryTreeFromInPostOrder/binaryTreeFromInPostOrder.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
101-200/101-110/106-binaryTreeFromInPostOrder/binaryTreeFromInPostOrder.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
101-200/101-110/106-binaryTreeFromInPostOrder/binaryTreeFromInPostOrder.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def buildTree(self, inorder, postorder): """ :type preorder: List[int] :type inorder: List[int] :rt...
32.035714
85
0.565217
858
0.956522
0
0
0
0
0
0
143
0.15942
2a108ae249c4fe5e282fb02c6ca69143383b433a
477
py
Python
csv2ofx/mappings/starling.py
mibanescu/csv2ofx
df9328bbf39348ebd6781701855c0b71592bb7ea
[ "MIT" ]
153
2015-03-27T05:44:45.000Z
2022-03-07T04:15:22.000Z
csv2ofx/mappings/starling.py
mibanescu/csv2ofx
df9328bbf39348ebd6781701855c0b71592bb7ea
[ "MIT" ]
74
2015-11-29T13:03:05.000Z
2022-01-23T20:00:24.000Z
csv2ofx/mappings/starling.py
mibanescu/csv2ofx
df9328bbf39348ebd6781701855c0b71592bb7ea
[ "MIT" ]
94
2015-03-10T17:54:32.000Z
2022-03-27T09:50:44.000Z
from __future__ import ( absolute_import, division, print_function, unicode_literals) from operator import itemgetter def fixdate(ds): dmy = ds.split('/') # BUG (!?): don't understand but stolen from ubs-ch-fr.py return '.'.join((dmy[1], dmy[0], dmy[2])) mapping = { 'has_header': True, 'date...
25.105263
64
0.639413
0
0
0
0
0
0
0
0
148
0.310273
2a112329bea0c737e5460d8489595b646350f0f7
732
py
Python
logtf_analyser/tests/test_convert_id3_to_id64.py
cob16/logtf_analyzer
d7398da4fcf0dc64e2dfa7078e036a8189c81b77
[ "MIT" ]
null
null
null
logtf_analyser/tests/test_convert_id3_to_id64.py
cob16/logtf_analyzer
d7398da4fcf0dc64e2dfa7078e036a8189c81b77
[ "MIT" ]
null
null
null
logtf_analyser/tests/test_convert_id3_to_id64.py
cob16/logtf_analyzer
d7398da4fcf0dc64e2dfa7078e036a8189c81b77
[ "MIT" ]
null
null
null
from unittest import TestCase from parameterized import parameterized from logtf_analyser.utils import convert_id3_to_id64 class TestConvert_id3_to_id64(TestCase): def test_convert_id3_to_id64(self): id64 = convert_id3_to_id64("[U:1:22202]") self.assertEqual(id64, 76561197960287930) @param...
28.153846
52
0.693989
604
0.825137
0
0
253
0.345628
0
0
65
0.088798
2a114ce8d5ef6e2e85c7b5e7e1ac2b3ca629ebdb
14,191
py
Python
aiida_lsmo/workchains/cp2k_binding_energy.py
mbercx/aiida-lsmo
0999ccec3e445cfd0dfd37a65ab013299a5f7d51
[ "MIT" ]
2
2020-06-23T12:50:02.000Z
2022-03-21T08:11:10.000Z
aiida_lsmo/workchains/cp2k_binding_energy.py
mbercx/aiida-lsmo
0999ccec3e445cfd0dfd37a65ab013299a5f7d51
[ "MIT" ]
59
2019-11-26T15:25:36.000Z
2022-02-22T12:37:18.000Z
aiida_lsmo/workchains/cp2k_binding_energy.py
mbercx/aiida-lsmo
0999ccec3e445cfd0dfd37a65ab013299a5f7d51
[ "MIT" ]
6
2019-12-04T14:43:28.000Z
2022-01-20T18:08:12.000Z
# -*- coding: utf-8 -*- """Binding energy workchain""" from copy import deepcopy from aiida.common import AttributeDict from aiida.engine import append_, while_, WorkChain, ToContext from aiida.engine import calcfunction from aiida.orm import Dict, Int, SinglefileData, Str, StructureData, Bool from aiida.plugins impo...
50.682143
120
0.640758
12,212
0.860545
0
0
4,276
0.301318
0
0
5,191
0.365795
2a11e07673a89b3a3b7bcf3915b416ec6d3dad8d
5,716
py
Python
apps/blog/editer_user.py
jhjguxin/blogserver
7873e1a94d05859650ce88d50e241456f4ab43ed
[ "MIT" ]
3
2015-11-17T16:16:41.000Z
2018-07-07T13:34:18.000Z
apps/blog/editer_user.py
jhjguxin/blogserver
7873e1a94d05859650ce88d50e241456f4ab43ed
[ "MIT" ]
null
null
null
apps/blog/editer_user.py
jhjguxin/blogserver
7873e1a94d05859650ce88d50e241456f4ab43ed
[ "MIT" ]
1
2020-06-08T02:46:07.000Z
2020-06-08T02:46:07.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.utils.translation import ugettext as _ from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestCont...
33.426901
172
0.646956
0
0
0
0
0
0
0
0
3,490
0.610567
2a145ab11f78cc5615c8d4ed402ea232a50a31a2
297
py
Python
exercises/ja/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# spaCyをインポートし、日本語のnlpオブジェクトを作成 import spacy nlp = spacy.blank("ja") # テキストを処理 doc = nlp("私はツリーカンガルーとイッカクが好きです。") # 「ツリーカンガルー」のスライスを選択 tree_kangaroos = doc[2:4] print(tree_kangaroos.text) # 「ツリーカンガルーとイッカク」のスライスを選択 tree_kangaroos_and_narwhals = doc[2:6] print(tree_kangaroos_and_narwhals.text)
18.5625
39
0.787879
0
0
0
0
0
0
0
0
292
0.612159
2a15f841c908a1dfe49e0cb148931bd74de7aa9f
841
py
Python
Source/Tools/BindTool/writer.py
ssinai1/rbfx
e69a7093d153667e3d8dd3270449d3d594c1c1a8
[ "MIT" ]
441
2018-12-26T14:50:23.000Z
2021-11-05T03:13:27.000Z
Source/Tools/BindTool/writer.py
ssinai1/rbfx
e69a7093d153667e3d8dd3270449d3d594c1c1a8
[ "MIT" ]
221
2018-12-29T17:40:23.000Z
2021-11-06T21:41:55.000Z
Source/Tools/BindTool/writer.py
ssinai1/rbfx
e69a7093d153667e3d8dd3270449d3d594c1c1a8
[ "MIT" ]
101
2018-12-29T13:08:10.000Z
2021-11-02T09:58:37.000Z
class InterfaceWriter(object): def __init__(self, output_path): self._output_path_template = output_path + '/_{key}_{subsystem}.i' self._fp = { 'pre': {}, 'post': {}, } def _write(self, key, subsystem, text): subsystem = subsystem.lower() fp = se...
30.035714
119
0.567182
839
0.997622
0
0
0
0
0
0
53
0.06302
2a186bff39afa1d9b54a01c7714b0ec21b096dfa
10,757
py
Python
setix/backends/b_numpy.py
dustymugs/python-setix
1ea5e122c616abffcac64f770c5f6f5644240a28
[ "MIT" ]
3
2016-01-26T07:18:54.000Z
2018-08-02T01:43:39.000Z
setix/backends/b_numpy.py
dustymugs/python-setix
1ea5e122c616abffcac64f770c5f6f5644240a28
[ "MIT" ]
null
null
null
setix/backends/b_numpy.py
dustymugs/python-setix
1ea5e122c616abffcac64f770c5f6f5644240a28
[ "MIT" ]
1
2020-11-27T16:32:40.000Z
2020-11-27T16:32:40.000Z
import numpy import numbers import math import struct from six.moves import zip from .. import SetIntersectionIndexBase, SearchResults, EmptySearchResults def _check_numpy (): missing = [] for fn in ("zeros", "empty", "digitize", "resize", "concatenate", "unique", "bincount", "argsort"): if not getatt...
32.59697
125
0.524217
10,223
0.950358
996
0.092591
635
0.059031
0
0
786
0.073069
2a1b32d6549e142ab87a8c6dd798f43bdbbe5e9f
685
py
Python
gitzer/director/migrations/0001_initial.py
IgnisDa/Gitzer
6810ee7ca6b9d86d7d87745342850a8be58d1865
[ "Apache-2.0" ]
2
2021-01-24T07:44:28.000Z
2021-01-30T22:12:43.000Z
gitzer/director/migrations/0001_initial.py
IgnisDa/Gitzer
6810ee7ca6b9d86d7d87745342850a8be58d1865
[ "Apache-2.0" ]
null
null
null
gitzer/director/migrations/0001_initial.py
IgnisDa/Gitzer
6810ee7ca6b9d86d7d87745342850a8be58d1865
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-16 08:15 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Repository', fields=[ ('id', models.AutoFie...
29.782609
134
0.617518
592
0.864234
0
0
0
0
0
0
183
0.267153
2a1c70b9d1e40d06c382598343320ee23443054f
2,668
py
Python
model_based/svms/test_model_compression.py
vohoaiviet/tag-image-retrieval
0a257560581f702cd394f3f28c9e0f6202827ce8
[ "MIT" ]
50
2015-11-04T15:53:09.000Z
2022-01-03T14:46:17.000Z
model_based/svms/test_model_compression.py
vohoaiviet/tag-image-retrieval
0a257560581f702cd394f3f28c9e0f6202827ce8
[ "MIT" ]
2
2018-03-07T09:51:50.000Z
2018-10-13T11:05:13.000Z
model_based/svms/test_model_compression.py
vohoaiviet/tag-image-retrieval
0a257560581f702cd394f3f28c9e0f6202827ce8
[ "MIT" ]
17
2015-10-26T03:41:49.000Z
2021-08-23T08:11:05.000Z
import sys import os import time from basic.common import ROOT_PATH,checkToSkip,makedirsforfile from basic.util import readImageSet from simpleknn.bigfile import BigFile, StreamFile from basic.annotationtable import readConcepts,readAnnotationsFrom from basic.metric import getScorer if __name__ == "__main__": t...
31.388235
141
0.687031
0
0
0
0
0
0
0
0
190
0.071214
2a1e4ea3df7a438ae1d54be3a54f23a971889c67
24,369
py
Python
tonnikala/languages/python/generator.py
tetframework/Tonnikala
d69e7c71d323221ad749082c4e653654bd63e819
[ "Apache-2.0" ]
13
2015-11-09T21:11:49.000Z
2021-12-26T20:36:02.000Z
tonnikala/languages/python/generator.py
tetframework/Tonnikala
d69e7c71d323221ad749082c4e653654bd63e819
[ "Apache-2.0" ]
3
2016-10-04T19:51:38.000Z
2017-08-28T05:58:39.000Z
tonnikala/languages/python/generator.py
tetframework/Tonnikala
d69e7c71d323221ad749082c4e653654bd63e819
[ "Apache-2.0" ]
3
2015-09-06T13:44:43.000Z
2021-01-25T10:04:26.000Z
import ast from ast import * from collections.abc import Iterable from .astalyzer import FreeVarFinder from ..base import LanguageNode, ComplexNode, BaseGenerator from ...helpers import StringWithLocation from ...runtime.debug import TemplateSyntaxError import sys try: # pragma: no cover import sysconfig ...
28.369034
86
0.577414
19,536
0.801674
0
0
0
0
0
0
3,040
0.124749
2a1fc79d624fe31282ea8ff5726da6d9664343bd
389
py
Python
training_data.py
zestdoc/echoAI
2ef96dbd156c94fff0c1d8ff90d0e1706864185e
[ "MIT" ]
null
null
null
training_data.py
zestdoc/echoAI
2ef96dbd156c94fff0c1d8ff90d0e1706864185e
[ "MIT" ]
null
null
null
training_data.py
zestdoc/echoAI
2ef96dbd156c94fff0c1d8ff90d0e1706864185e
[ "MIT" ]
null
null
null
# Format of training prompt defaultPrompt = """I am a Cardiologist. My patient asked me what this means: Input: Normal left ventricular size and systolic function. EF > 55 %. Normal right ventricular size and systolic function. Normal valve structure and function Output: Normal pumping function of the left and right ...
29.923077
158
0.766067
0
0
0
0
0
0
0
0
371
0.953728
2a20c2f2ce75008bda8bbed62280c06d1b9e0a6b
682
py
Python
db/src/scrape/programs.py
tomquirk/uq-api
1a856d8b8e5fe8a94986d6c687e885bae642067b
[ "MIT" ]
8
2017-06-14T00:11:49.000Z
2021-02-03T23:58:10.000Z
db/src/scrape/programs.py
tomquirk/uq-api
1a856d8b8e5fe8a94986d6c687e885bae642067b
[ "MIT" ]
2
2020-07-16T15:44:23.000Z
2021-05-08T00:42:12.000Z
db/src/scrape/programs.py
tomquirk/uq-catalogue-api
1a856d8b8e5fe8a94986d6c687e885bae642067b
[ "MIT" ]
7
2017-05-11T05:25:16.000Z
2021-02-02T15:57:57.000Z
""" Programs scraper """ import re import src.scrape.util.helpers as helpers import src.settings as settings from src.logger import get_logger _LOG = get_logger("programs_scraper") def programs(): """ Scrapes list of programs :return: List, of program codes """ _LOG.debug("scraping list of progra...
22.733333
85
0.695015
0
0
0
0
0
0
0
0
245
0.359238
2a2228848cab06332324e3506158b74866879860
2,219
py
Python
wagtail_review/forms.py
jacobtoppm/wagtail-review
23b81d7e5699ecb843a99da1aa207775a8b85bd6
[ "BSD-3-Clause" ]
44
2018-12-17T16:37:16.000Z
2022-03-06T15:09:23.000Z
wagtail_review/forms.py
jacobtoppm/wagtail-review
23b81d7e5699ecb843a99da1aa207775a8b85bd6
[ "BSD-3-Clause" ]
33
2019-01-07T18:03:14.000Z
2021-12-15T08:46:57.000Z
wagtail_review/forms.py
jacobtoppm/wagtail-review
23b81d7e5699ecb843a99da1aa207775a8b85bd6
[ "BSD-3-Clause" ]
19
2019-01-08T14:08:15.000Z
2021-10-19T03:16:30.000Z
from django import forms from django.conf import settings from django.core.exceptions import ImproperlyConfigured, ValidationError from django.forms.formsets import DELETION_FIELD_NAME from django.utils.module_loading import import_string from django.utils.translation import ugettext import swapper from wagtail_revie...
30.39726
109
0.671924
1,096
0.493916
0
0
0
0
0
0
613
0.276251
2a2538f0dcb641072614c3ea490a7e3d7705aa5a
20,466
py
Python
metrics.py
giacoballoccu/Explanation-Quality-CPGPR
3ec199d17e24154f8766e3af760b1e1486d135a6
[ "MIT" ]
null
null
null
metrics.py
giacoballoccu/Explanation-Quality-CPGPR
3ec199d17e24154f8766e3af760b1e1486d135a6
[ "MIT" ]
null
null
null
metrics.py
giacoballoccu/Explanation-Quality-CPGPR
3ec199d17e24154f8766e3af760b1e1486d135a6
[ "MIT" ]
null
null
null
import numpy as np from myutils import * from easydict import EasyDict as edict def dcg_at_k(r, k, method=1): r = np.asfarray(r)[:k] if r.size: if method == 0: return r[0] + np.sum(r[1:] / np.log2(np.arange(2, r.size + 1))) elif method == 1: return np.sum(r / np.log2(np....
38.908745
153
0.664077
0
0
0
0
0
0
0
0
2,924
0.142871
2a2632dc493ea2bda2dbffcc144253e2dd95b604
987
py
Python
config/setting.py
SihongHo/Vehicles-Dispatch-Simulator
3ad80fb25fdce10db46a2b3825e45a28d7f72891
[ "MIT" ]
19
2020-11-24T08:52:24.000Z
2022-03-05T15:38:02.000Z
config/setting.py
SihongHo/Vehicles-Dispatch-Simulator
3ad80fb25fdce10db46a2b3825e45a28d7f72891
[ "MIT" ]
4
2020-12-24T07:21:03.000Z
2022-02-26T16:57:52.000Z
config/setting.py
SihongHo/Vehicles-Dispatch-Simulator
3ad80fb25fdce10db46a2b3825e45a28d7f72891
[ "MIT" ]
15
2020-12-23T03:18:27.000Z
2022-03-29T09:31:27.000Z
import numpy as np #Simulater Setting #------------------------------ MINUTES=60000000000 TIMESTEP = np.timedelta64(10*MINUTES) PICKUPTIMEWINDOW = np.timedelta64(10*MINUTES) #It can enable the neighbor car search system to determine the search range according to the set search distance and the size of the grid. #It u...
30.84375
138
0.763931
0
0
0
0
0
0
0
0
528
0.534954
2a2702efe481d78052c5c978e6d0aa3a68bf3f5e
4,716
py
Python
samples/heksekraft.py
clayboone/ursina
9aebd9403b924af260fbefbfd7cef5ad82feeff7
[ "MIT" ]
1
2020-09-04T14:32:33.000Z
2020-09-04T14:32:33.000Z
samples/heksekraft.py
clayboone/ursina
9aebd9403b924af260fbefbfd7cef5ad82feeff7
[ "MIT" ]
null
null
null
samples/heksekraft.py
clayboone/ursina
9aebd9403b924af260fbefbfd7cef5ad82feeff7
[ "MIT" ]
1
2020-09-04T14:32:41.000Z
2020-09-04T14:32:41.000Z
from ursina import * from copy import copy class MinecraftClone(Entity): def __init__(self): super().__init__() c = Cylinder(6, height=1, start=-.5) verts = c.vertices tris = c.triangles vertices = list() triangles = list() colors = list() # for z...
31.44
120
0.47201
4,371
0.926845
0
0
0
0
0
0
910
0.19296
2a291bb3879db1c009a0ad3fab6dd256c7e79e33
1,646
py
Python
gemini/bin/gemini_python.py
codes1gn/gemini
4b173ea583f2578244d1d0fb482ccb77818f7558
[ "MIT" ]
null
null
null
gemini/bin/gemini_python.py
codes1gn/gemini
4b173ea583f2578244d1d0fb482ccb77818f7558
[ "MIT" ]
null
null
null
gemini/bin/gemini_python.py
codes1gn/gemini
4b173ea583f2578244d1d0fb482ccb77818f7558
[ "MIT" ]
null
null
null
import sys import traceback import copy import importlib from gemini.gemini_compiler import * from gemini.utils import * def main(argv=sys.argv[1:]): print('gemini compiler entry point') filename = copy.deepcopy(argv[0]) arguments = copy.deepcopy(argv[1:]) compiler = GeminiCompiler() src_code = ...
27.433333
76
0.655529
0
0
0
0
0
0
0
0
509
0.309235
2a29410e6bfdb975ab115a17e1c90cb3b363e11d
4,513
py
Python
modules/quiet-scan-threaded.py
ChristopherBilg/cse-545-PCTF-team-31
24061a26b1d239605720a5e31d3cb1bfc288317a
[ "MIT" ]
null
null
null
modules/quiet-scan-threaded.py
ChristopherBilg/cse-545-PCTF-team-31
24061a26b1d239605720a5e31d3cb1bfc288317a
[ "MIT" ]
1
2021-02-07T19:51:32.000Z
2021-02-07T19:51:32.000Z
modules/quiet-scan-threaded.py
ChristopherBilg/cse-545-PCTF-team-31
24061a26b1d239605720a5e31d3cb1bfc288317a
[ "MIT" ]
3
2021-02-17T15:44:39.000Z
2022-01-29T03:18:49.000Z
#!/usr/bin/env python3 import subprocess import sys, getopt, os import threading import argparse cwd = os.getcwd() path = cwd + "/port_scanner_files/" ip_list_file = path + "input/IP_list.txt" nmap_output_file = path + "temp_output/nmap_output" #the scorchedearth option runs every nmap scan that doesn't require an ad...
35.535433
254
0.645025
0
0
0
0
0
0
0
0
1,669
0.369821
2a2949f385ec93a057a10d2a09d0bd12596b5253
1,535
py
Python
veselin-angelov-ekatte/create_database.py
veselin-angelov/training-projects
f02a29eed57d60720fe66e76af483d2b1f689bfd
[ "Apache-2.0" ]
null
null
null
veselin-angelov-ekatte/create_database.py
veselin-angelov/training-projects
f02a29eed57d60720fe66e76af483d2b1f689bfd
[ "Apache-2.0" ]
null
null
null
veselin-angelov-ekatte/create_database.py
veselin-angelov/training-projects
f02a29eed57d60720fe66e76af483d2b1f689bfd
[ "Apache-2.0" ]
null
null
null
from helpers import create_connection, execute_query connection = create_connection( "postgres", "postgres", "admin", "127.0.0.1", "5432" ) create_database_query = "CREATE DATABASE ekatte" execute_query(connection, create_database_query) connection = create_connection( "ekatte", "postgres", "admin", "127.0.0...
31.326531
106
0.672964
0
0
0
0
0
0
0
0
1,079
0.702932
2a294c8c332d0308530bc30b08c40aaea110d61c
1,964
py
Python
src/isaw.events/setup.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
null
null
null
src/isaw.events/setup.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
405
2015-03-12T18:20:25.000Z
2022-03-07T18:44:16.000Z
src/isaw.events/setup.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
1
2016-11-07T21:18:49.000Z
2016-11-07T21:18:49.000Z
# -*- coding: utf-8 -*- """ This module contains the tool of Events """ import os from setuptools import setup, find_packages def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() version = '0.2' long_description = ( read('README.txt') + '\n' + 'Change history\n' ...
26.540541
83
0.571283
0
0
0
0
0
0
0
0
987
0.502546
2a29f26fbea0a3dc55f5442506c8f8e9d6c38803
1,053
py
Python
api/model.py
thomashusken/img-class
0ceead70f4e30face409069fb49d02fb927abc03
[ "MIT" ]
null
null
null
api/model.py
thomashusken/img-class
0ceead70f4e30face409069fb49d02fb927abc03
[ "MIT" ]
2
2022-01-13T01:20:18.000Z
2022-03-11T23:50:06.000Z
api/model.py
thomashusken/img-class
0ceead70f4e30face409069fb49d02fb927abc03
[ "MIT" ]
null
null
null
from torchvision import models import json import numpy as np import torch from collections import OrderedDict from operator import itemgetter import os def return_top_5(processed_image): # inception = models.inception_v3(pretrained=True) inception = models.inception_v3() inception.load_state_dict(torch.lo...
31.909091
84
0.698955
0
0
0
0
0
0
0
0
225
0.213675
2a2a7803fb377912b3cfe716d9faf1491cd16671
816
py
Python
2015/day-09/day9.py
smolsbs/aoc
558cc68b94ead332190e14ad7a9ecd6ca5c4aa5a
[ "Unlicense" ]
1
2019-12-02T20:20:41.000Z
2019-12-02T20:20:41.000Z
2015/day-09/day9.py
smolsbs/aoc
558cc68b94ead332190e14ad7a9ecd6ca5c4aa5a
[ "Unlicense" ]
null
null
null
2015/day-09/day9.py
smolsbs/aoc
558cc68b94ead332190e14ad7a9ecd6ca5c4aa5a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from collections import defaultdict from itertools import permutations def main(): places = defaultdict(lambda: {}) with open('input', 'r') as fp: for line in fp.read().split('\n'): a = line.split(' ') places[a[0]][a[2]] = int(a[4]) places[a[2...
27.2
66
0.541667
0
0
0
0
0
0
0
0
49
0.060049
2a2b13313d1d275974a44eab41c48c672b2ad06a
504
py
Python
tests/test_generator.py
reesmanp/typedpy
eca9e002b6c9edae19f803cef55447926f502309
[ "MIT" ]
null
null
null
tests/test_generator.py
reesmanp/typedpy
eca9e002b6c9edae19f803cef55447926f502309
[ "MIT" ]
null
null
null
tests/test_generator.py
reesmanp/typedpy
eca9e002b6c9edae19f803cef55447926f502309
[ "MIT" ]
null
null
null
import pickle from pytest import raises from typedpy import Structure, serialize from typedpy.fields import Generator class Foo(Structure): g: Generator def test_generator_wrong_type(): with raises(TypeError): Foo(g=[]) def test_generator(): foo = Foo(g=(i for i in range(5))) assert sum(...
18
40
0.666667
38
0.075397
0
0
0
0
0
0
0
0
2a2c9906dc961361309d725a8c8106f33e523ad9
5,624
py
Python
stateflow/stateclass.py
frolenkov-nikita/django-stateflow
0a5d75e42606b662c7d510b5d5ef7cb996cf185b
[ "BSD-3-Clause" ]
null
null
null
stateflow/stateclass.py
frolenkov-nikita/django-stateflow
0a5d75e42606b662c7d510b5d5ef7cb996cf185b
[ "BSD-3-Clause" ]
null
null
null
stateflow/stateclass.py
frolenkov-nikita/django-stateflow
0a5d75e42606b662c7d510b5d5ef7cb996cf185b
[ "BSD-3-Clause" ]
null
null
null
""" Workflow based on Python classes """ class StateMetaclass(type): def __init__(cls, name, bases, dict): super(StateMetaclass, cls).__init__(name, bases, dict) abstract = dict.pop('abstract', False) if not abstract: cls.forward_transitions = [] cls.backward_transi...
27.038462
77
0.634068
5,549
0.986664
0
0
2,026
0.360242
0
0
1,370
0.243599
2a2d6edb0fce651f5c81ecdcc1654544c63224b4
254
py
Python
src/app/admin/__init__.py
schwetzen/liblr
408235a4f539a05f54f0376dbf9dbcd83957db03
[ "Apache-2.0" ]
null
null
null
src/app/admin/__init__.py
schwetzen/liblr
408235a4f539a05f54f0376dbf9dbcd83957db03
[ "Apache-2.0" ]
1
2018-12-07T22:15:28.000Z
2018-12-07T22:15:28.000Z
src/app/admin/__init__.py
schwetzen/liblr
408235a4f539a05f54f0376dbf9dbcd83957db03
[ "Apache-2.0" ]
2
2018-12-07T20:59:53.000Z
2018-12-17T21:02:21.000Z
from django.contrib import admin from app.models import * from app.admin.tip import ReadingTipAdmin from app.admin.user import UserAdmin # Register your models here. admin.site.register(User, UserAdmin) admin.site.register(ReadingTip, ReadingTipAdmin)
25.4
48
0.818898
0
0
0
0
0
0
0
0
28
0.110236
2a2ef0f35e15ed911d8da568d2fb240bfd2a6fd8
5,551
py
Python
ppobyter/marketplace/abilities.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
ppobyter/marketplace/abilities.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
ppobyter/marketplace/abilities.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
abilities = {1: 'Stench', 2: 'Drizzle', 3: 'Speed Boost', 4: 'Battle Armor', 5: 'Sturdy', 6: 'Damp', 7: 'Limber', 8: 'Sand Veil', 9: 'Static', 10: 'Volt Absorb', 11: 'Water Absorb', 12: 'Oblivious', 13: 'Cloud Nine', 14: 'Compound Eyes', 15: 'Insomnia', 16: 'Color Change', 17: 'Immunity', 18: ...
108.843137
120
0.566384
0
0
0
0
0
0
0
0
3,140
0.565664
2a2fc5a472dc2313204790421e750c0201901553
1,371
py
Python
handler.py
jocafneto/Insurance-All-Cross-Sell
ab67200854a70d39c85459fab9b441fbfc31c7e4
[ "MIT" ]
null
null
null
handler.py
jocafneto/Insurance-All-Cross-Sell
ab67200854a70d39c85459fab9b441fbfc31c7e4
[ "MIT" ]
null
null
null
handler.py
jocafneto/Insurance-All-Cross-Sell
ab67200854a70d39c85459fab9b441fbfc31c7e4
[ "MIT" ]
null
null
null
from crypt import methods import os import pickle import pandas as pd import lightgbm from flask import Flask, request, Response from healthinsurance.HealthInsurance import HealthInsurance # loading model model = pickle.load( open( 'model/LGBM_Model.pkl', 'rb' ) ) # initialize API app = Flask( __name__ ) @app.route(...
28.5625
77
0.623632
0
0
0
0
951
0.693654
0
0
271
0.197666
2a3122b28ce578dad33591fd4205e3edee9aea4c
2,490
py
Python
python_scripts/video_pipeline.py
MichlF/scikit-learn-mooc
31fd171c9e3f75bd19f3709e1f5345a75a7d22ab
[ "CC-BY-4.0" ]
1
2022-01-25T19:20:21.000Z
2022-01-25T19:20:21.000Z
python_scripts/video_pipeline.py
gmash24/scikit-learn-mooc
b58f051efb591a38859a4242369c9494ccac6a17
[ "CC-BY-4.0" ]
null
null
null
python_scripts/video_pipeline.py
gmash24/scikit-learn-mooc
b58f051efb591a38859a4242369c9494ccac6a17
[ "CC-BY-4.0" ]
null
null
null
# %% [markdown] # # How to define a scikit-learn pipeline and visualize it # %% [markdown] # The goal of keeping this notebook is to: # - make it available for users that want to reproduce it locally # - archive the script in the event we want to rerecord this video with an # update in the UI of scikit-learn in a f...
25.151515
90
0.725703
0
0
0
0
0
0
0
0
1,284
0.515663
2a32589106ff6dd9c86ebca030f230c0c1716f14
23,423
py
Python
generator_configuration.py
mariaangelapellegrino/virtual_assistant_generator
b8b31c38797ded888f201c30b38771e861747eff
[ "MIT" ]
2
2020-08-10T23:05:20.000Z
2021-06-09T05:46:08.000Z
generator_configuration.py
lewismc/virtual_assistant_generator
b8b31c38797ded888f201c30b38771e861747eff
[ "MIT" ]
5
2020-08-10T23:05:16.000Z
2021-08-31T21:35:59.000Z
generator_configuration.py
lewismc/virtual_assistant_generator
b8b31c38797ded888f201c30b38771e861747eff
[ "MIT" ]
3
2020-08-10T23:05:25.000Z
2021-05-19T17:14:13.000Z
from nltk.corpus import wordnet as wn import json from pyinflect import getAllInflections, getInflection import re import inflect import urllib.parse from SPARQLWrapper import SPARQLWrapper, JSON from urllib.parse import quote from py_thesaurus import Thesaurus import sys, getopt WN_NOUN = 'n' WN_VERB = 'v' WN_ADJECTI...
31.652703
187
0.597191
0
0
0
0
0
0
0
0
7,169
0.306041
2a326bdb7af710f5433ff63b32a58d49b24260c8
3,951
py
Python
strictdoc/backend/sdoc/grammar/grammar.py
BenGardiner/strictdoc
c927872a8f080ca1f86cdb7e99767fb25398dbd5
[ "Apache-2.0" ]
null
null
null
strictdoc/backend/sdoc/grammar/grammar.py
BenGardiner/strictdoc
c927872a8f080ca1f86cdb7e99767fb25398dbd5
[ "Apache-2.0" ]
3
2022-02-21T10:57:01.000Z
2022-02-21T13:22:23.000Z
strictdoc/backend/sdoc/grammar/grammar.py
BenGardiner/strictdoc
c927872a8f080ca1f86cdb7e99767fb25398dbd5
[ "Apache-2.0" ]
null
null
null
STRICTDOC_GRAMMAR = r""" Document[noskipws]: '[DOCUMENT]' '\n' // NAME: is deprecated. Both documents and sections now have TITLE:. (('NAME: ' name = /.*$/ '\n') | ('TITLE: ' title = /.*$/ '\n')?) (config = DocumentConfig)? ('\n' grammar = DocumentGrammar)? free_texts *= SpaceThenFreeText section_contents...
20.365979
78
0.638826
0
0
0
0
0
0
0
0
3,930
0.994685
2a33d0eec1f385f2483bfafb27af77afb0c18924
1,683
py
Python
app/extensions/api/__init__.py
ssfdust/full-stack-flask-smorest
a0bdbd3a7d314b82bb43b265578aba7bbd175e51
[ "Apache-2.0" ]
33
2019-09-25T02:19:43.000Z
2022-03-25T01:58:19.000Z
app/extensions/api/__init__.py
ssfdust/full-stack-flask-rest-api
a0bdbd3a7d314b82bb43b265578aba7bbd175e51
[ "Apache-2.0" ]
null
null
null
app/extensions/api/__init__.py
ssfdust/full-stack-flask-rest-api
a0bdbd3a7d314b82bb43b265578aba7bbd175e51
[ "Apache-2.0" ]
6
2020-01-12T15:18:07.000Z
2021-06-01T16:30:26.000Z
# Copyright 2019 RedLotus <ssfdust@gmail.com> # Author: RedLotus <ssfdust@gmail.com> # # 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 # # Unles...
30.6
87
0.674985
686
0.391329
0
0
0
0
0
0
1,063
0.606389
2a3542de3a20f0796eef0e90a172db6862e950d4
1,236
py
Python
bot.py
donmbelembe/dino-auto-play
bfcdb31696b7a2bfa25fd43377732967062fa07c
[ "MIT" ]
null
null
null
bot.py
donmbelembe/dino-auto-play
bfcdb31696b7a2bfa25fd43377732967062fa07c
[ "MIT" ]
4
2021-03-19T01:40:43.000Z
2022-03-11T23:50:45.000Z
bot.py
donmbelembe/dino-auto-play
bfcdb31696b7a2bfa25fd43377732967062fa07c
[ "MIT" ]
null
null
null
# https://www.youtube.com/watch?v=bf_UOFFaHiY # http://www.trex-game.skipser.com/ from PIL import ImageGrab, ImageOps import pyautogui import time from numpy import * class Cordinates(): replayBtn = (962, 530) dinosaur = (664, 536) # dinaosaur standing # dinosaur = (686, 548) # dinosaur down #730= x co...
24.72
57
0.617314
200
0.161812
0
0
0
0
0
0
341
0.27589
2a37076e9a1081b1644f5c10b693cd623705219d
735
py
Python
cybox/objects/win_event_object.py
Mattlk13/python-cybox
ee82c7da40ca4638e3ca8d70766150c0dace1b55
[ "BSD-3-Clause" ]
40
2015-03-05T18:22:51.000Z
2022-03-06T07:29:25.000Z
cybox/objects/win_event_object.py
Mattlk13/python-cybox
ee82c7da40ca4638e3ca8d70766150c0dace1b55
[ "BSD-3-Clause" ]
106
2015-01-12T18:52:20.000Z
2021-04-25T22:57:52.000Z
cybox/objects/win_event_object.py
Mattlk13/python-cybox
ee82c7da40ca4638e3ca8d70766150c0dace1b55
[ "BSD-3-Clause" ]
30
2015-03-25T07:24:40.000Z
2021-07-23T17:10:11.000Z
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. from mixbox import entities from mixbox import fields import cybox.bindings.win_event_object as win_event_binding from cybox.objects.win_handle_object import WinHandle from cybox.common import ObjectProperties, Str...
33.409091
66
0.779592
408
0.555102
0
0
0
0
0
0
208
0.282993
2a3762ff9f2942b988ba9f4529ccc38f94cea111
1,883
py
Python
cfgov/cfgov/settings/production.py
cyVR/aur
269dad2e659f7366e6eea037110d38ab41e3ad53
[ "CC0-1.0" ]
null
null
null
cfgov/cfgov/settings/production.py
cyVR/aur
269dad2e659f7366e6eea037110d38ab41e3ad53
[ "CC0-1.0" ]
null
null
null
cfgov/cfgov/settings/production.py
cyVR/aur
269dad2e659f7366e6eea037110d38ab41e3ad53
[ "CC0-1.0" ]
null
null
null
from .base import * # Sends an email to developers in the ADMIN_EMAILS list if Debug=False for errors LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'filters': [], 'class': 'django.utils.log.AdminEma...
31.915254
85
0.51248
0
0
0
0
0
0
0
0
838
0.445035
2a377186c5cffd5cbf92c4375d940a280d7978d4
163
py
Python
Lab5/try.py
HelloYeew/helloyeew-lab-computer-programming-
92f643deadcec39ffdf2af2cba43626d40f925cd
[ "MIT" ]
1
2022-01-02T00:47:28.000Z
2022-01-02T00:47:28.000Z
Lab5/try.py
HelloYeew/helloyeew-lab-computer-programming-ii
92f643deadcec39ffdf2af2cba43626d40f925cd
[ "MIT" ]
null
null
null
Lab5/try.py
HelloYeew/helloyeew-lab-computer-programming-ii
92f643deadcec39ffdf2af2cba43626d40f925cd
[ "MIT" ]
null
null
null
import tkinter as tk root = tk.Tk() def motion(event): x, y = event.x, event.y print('{}, {}'.format(x, y)) root.bind('<Motion>', motion) root.mainloop()
18.111111
32
0.601227
0
0
0
0
0
0
0
0
18
0.110429
2a37a23903a55c44659c456a27c899c5c9c44baa
3,552
py
Python
deprecated/nexus_server/nexus_db.py
utarsuno/quasar_source
634fcd71ad78cd99cca4f1852693a02acae3107d
[ "MIT" ]
7
2017-07-11T04:40:49.000Z
2020-10-22T04:43:08.000Z
deprecated/nexus_server/nexus_db.py
utarsuno/quasar_source
634fcd71ad78cd99cca4f1852693a02acae3107d
[ "MIT" ]
2
2020-07-07T19:52:42.000Z
2021-03-09T03:26:35.000Z
deprecated/nexus_server/nexus_db.py
utarsuno/quasar_source
634fcd71ad78cd99cca4f1852693a02acae3107d
[ "MIT" ]
1
2018-11-14T06:08:50.000Z
2018-11-14T06:08:50.000Z
# coding=utf-8 """This module, nexus_db.py, defines a basic started database for the Nexus Server.""" import pika import json import time from scripts.docker.wait_for_rabbit_host import WaitForRabbitMQHost from libraries.database_abstraction.sql.sqlite import sqlite_db from libraries.database_abstraction.sql.sqlite i...
47.36
90
0.728604
1,777
0.500282
0
0
0
0
0
0
868
0.244369
2a37bb94944073ebefda7ff352df1e712e016066
7,429
py
Python
tdcsm/cli.py
tdcoa/usage
408091f77360fe29e14186b60746fd7d60713e42
[ "MIT" ]
null
null
null
tdcsm/cli.py
tdcoa/usage
408091f77360fe29e14186b60746fd7d60713e42
[ "MIT" ]
4
2020-07-21T18:42:22.000Z
2020-10-14T00:50:45.000Z
tdcsm/cli.py
tdcoa/usage
408091f77360fe29e14186b60746fd7d60713e42
[ "MIT" ]
1
2020-08-05T20:09:41.000Z
2020-08-05T20:09:41.000Z
#! /usr/bin/env python "tdcsm command-line interface" import argparse from pathlib import Path from typing import Any, Sequence, Callable, List, Optional from logging import getLogger from .tdgui import coa as tdgui from .tdcoa import tdcoa from .model import load_filesets, load_srcsys, dump_srcsys, SrcSys, FileSet, ...
34.235023
146
0.70171
0
0
0
0
0
0
0
0
2,112
0.284291
2a38d7dfa0cafc127e2193d495cf4f0ef572b6e1
12,247
py
Python
cogs/Musica.py
Borgotto/discord_bot
dd86d5a321e1aa9bf0bfc84a70f2174c35fcfdd2
[ "MIT" ]
null
null
null
cogs/Musica.py
Borgotto/discord_bot
dd86d5a321e1aa9bf0bfc84a70f2174c35fcfdd2
[ "MIT" ]
null
null
null
cogs/Musica.py
Borgotto/discord_bot
dd86d5a321e1aa9bf0bfc84a70f2174c35fcfdd2
[ "MIT" ]
1
2021-11-09T11:52:17.000Z
2021-11-09T11:52:17.000Z
import itertools import asyncio from async_timeout import timeout from functools import partial from youtube_dl import YoutubeDL from discord.ext import commands from discord import Embed, FFmpegPCMAudio, HTTPException, PCMVolumeTransformer, Color ytdlopts = { 'format': 'bestaudio/best', 'extractaudio': True, ...
35.809942
157
0.617539
11,348
0.925084
0
0
7,551
0.615554
8,605
0.701476
2,912
0.237385
2a394b04ac8e33befbcd55f3ea716e30d44e735b
2,584
py
Python
kipy/fileobjs/sch/sheet.py
Arie001/klonor-kicad
c916ae4cdac5072803e12f530ef32230732b30d7
[ "MIT" ]
2
2016-05-17T13:10:52.000Z
2018-09-03T15:18:30.000Z
kipy/fileobjs/sch/sheet.py
Arie001/klonor-kicad
c916ae4cdac5072803e12f530ef32230732b30d7
[ "MIT" ]
1
2016-08-03T09:31:39.000Z
2016-08-03T11:19:19.000Z
kipy/fileobjs/sch/sheet.py
Arie001/klonor-kicad
c916ae4cdac5072803e12f530ef32230732b30d7
[ "MIT" ]
1
2018-09-04T16:32:13.000Z
2018-09-04T16:32:13.000Z
''' Classes based on SchItem for parsing and rendering $Sheet sub-sheets inside a .sch file. ''' from .schitem import SchItem class Sheet(SchItem): keyword = '$Sheet' _by_keyword = {} def render(self, linelist): linelist.append(self.keyword) self.S.render(self, linelist) self.U.ren...
31.13253
90
0.592879
2,447
0.946981
0
0
1,276
0.493808
0
0
173
0.06695
2a3aa00e1e605b1a991cede3b58b1dc8bfec0c42
1,988
py
Python
PyBullet_experiments/experiments/plot_return.py
AnonymousLaBER/LaBER
af9da8ffda0654e2021de20cb162ef71dc9b9d6c
[ "MIT" ]
3
2021-10-11T22:25:02.000Z
2022-03-04T20:00:56.000Z
PyBullet_experiments/experiments/plot_return.py
AnonymousLaBER/LaBER
af9da8ffda0654e2021de20cb162ef71dc9b9d6c
[ "MIT" ]
null
null
null
PyBullet_experiments/experiments/plot_return.py
AnonymousLaBER/LaBER
af9da8ffda0654e2021de20cb162ef71dc9b9d6c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import pickle import json import argparse from collections import defaultdict import tensorflow as tf import numpy as np import matplotlib.pyplot as plt parser = argparse.ArgumentParser() parser.add_argument('path', help="Tf path to event files from which to extract variables") parse...
26.157895
90
0.654427
0
0
0
0
0
0
0
0
276
0.138833
2a3b07acb290992d78e2cb48fb5c7452dc6ca1c9
551
py
Python
helper/policy.py
icesiv/webstaurantstore
79b5f32625a6be38e42d525c74537d01fde82e26
[ "MIT" ]
null
null
null
helper/policy.py
icesiv/webstaurantstore
79b5f32625a6be38e42d525c74537d01fde82e26
[ "MIT" ]
null
null
null
helper/policy.py
icesiv/webstaurantstore
79b5f32625a6be38e42d525c74537d01fde82e26
[ "MIT" ]
null
null
null
from rotating_proxies.policy import BanDetectionPolicy class MyPolicy(BanDetectionPolicy): def response_is_ban(self, request, response): # use default rules, but also consider HTTP 200 responses # a ban if there is 'captcha' word in response body. ban = super(MyPolicy, self).response_is_ban...
42.384615
70
0.709619
495
0.898367
0
0
0
0
0
0
181
0.328494
2a3cf567574bc6e1ccbbf93b58791ade2b96a58a
8,162
py
Python
training/scripts/trainer/src/convert/convert.py
TommyTeaVee/training
ecbd86d5137d5b639d79824661c58792d4ce177c
[ "MIT" ]
2,442
2019-02-10T03:37:16.000Z
2021-05-23T05:33:10.000Z
training/scripts/trainer/src/convert/convert.py
TommyTeaVee/training
ecbd86d5137d5b639d79824661c58792d4ce177c
[ "MIT" ]
189
2019-02-11T11:34:27.000Z
2021-04-23T19:05:49.000Z
training/scripts/trainer/src/convert/convert.py
TommyTeaVee/training
ecbd86d5137d5b639d79824661c58792d4ce177c
[ "MIT" ]
459
2019-02-10T09:34:55.000Z
2021-05-25T14:20:12.000Z
import os import argparse import numpy as np import tensorflow as tf from tensorflow.python.platform import gfile from tensorflow.python.framework import dtypes from tensorflow.python.tools import strip_unused_lib tf.enable_eager_execution() parser = argparse.ArgumentParser() # export types parser.add_argument("-...
32.779116
88
0.604019
0
0
0
0
4,262
0.522176
0
0
1,838
0.22519
2a3d04876b6b65c8918ff882255667977b529bb1
3,594
py
Python
packages/Python/lldbsuite/test/lang/swift/private_decl_name/TestSwiftPrivateDeclName.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
2
2019-05-24T14:10:24.000Z
2019-05-24T14:27:38.000Z
packages/Python/lldbsuite/test/lang/swift/private_decl_name/TestSwiftPrivateDeclName.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
packages/Python/lldbsuite/test/lang/swift/private_decl_name/TestSwiftPrivateDeclName.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
# TestSwiftPrivateDeclName.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 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...
36.673469
80
0.665832
2,768
0.770173
0
0
2,436
0.677796
0
0
774
0.215359
2a3de723ee6980cbdbd514d26ca2d35bda76c165
195
py
Python
tests/test_input_laplace_time_ebcs.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
tests/test_input_laplace_time_ebcs.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
tests/test_input_laplace_time_ebcs.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
2
2019-01-14T03:12:34.000Z
2021-05-25T11:44:50.000Z
input_name = '../examples/diffusion/laplace_time_ebcs.py' output_name_trunk = 'test_laplace_time_ebcs' from tests_basic import TestInputEvolutionary class Test(TestInputEvolutionary): pass
24.375
57
0.825641
43
0.220513
0
0
0
0
0
0
68
0.348718
2a3f420858525afd3b6e496ae0a3136e8d138627
518
py
Python
boto3_exceptions/iot1click-devices.py
siteshen/boto3_exceptions
d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b
[ "MIT" ]
2
2021-06-22T00:00:35.000Z
2021-07-15T03:25:52.000Z
boto3_exceptions/iot1click-devices.py
siteshen/boto3_exceptions
d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b
[ "MIT" ]
null
null
null
boto3_exceptions/iot1click-devices.py
siteshen/boto3_exceptions
d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b
[ "MIT" ]
null
null
null
import boto3 exceptions = boto3.client('iot1click-devices').exceptions ForbiddenException = exceptions.ForbiddenException InternalFailureException = exceptions.InternalFailureException InvalidRequestException = exceptions.InvalidRequestException PreconditionFailedException = exceptions.PreconditionFailedException Ran...
43.166667
70
0.903475
0
0
0
0
0
0
0
0
19
0.03668
2a4151beaa3590019a94a7fe55fcae4fc19b8066
1,826
py
Python
IMfunctions.py
KartoffelCheetah/personal-website-001
c0700687ef90cc9a8a26c13af158fc91ee30a647
[ "MIT" ]
null
null
null
IMfunctions.py
KartoffelCheetah/personal-website-001
c0700687ef90cc9a8a26c13af158fc91ee30a647
[ "MIT" ]
7
2017-10-04T15:22:23.000Z
2018-02-08T18:31:21.000Z
IMfunctions.py
KartoffelCheetah/personal-website-001
c0700687ef90cc9a8a26c13af158fc91ee30a647
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.5 #-*- coding:utf-8 -*- """Functions handling images.""" import subprocess import os # supported ImageMagic Formats? def getDateTimeOriginal(filePath) : """If image has DateTimeOriginal then returns it as a string. If it's missing or there isn't EXIF at all then returns empty string.""" ...
58.903226
234
0.727273
0
0
0
0
0
0
0
0
934
0.511501
2a4164567c21ed5336f207306a71b8f7e94eae41
18,415
py
Python
plugins/modules/oci_resource_manager_template.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_resource_manager_template.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_resource_manager_template.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
38.686975
160
0.645072
3,767
0.204561
0
0
0
0
0
0
12,312
0.668585
2a419057ed32d0d72a2ab5830767804b84e6235c
2,259
py
Python
test.py
alexanderAustin/PythonGame
9a3da340ffa426d3c6d59b5c2eb3f2a68792164f
[ "Apache-2.0" ]
null
null
null
test.py
alexanderAustin/PythonGame
9a3da340ffa426d3c6d59b5c2eb3f2a68792164f
[ "Apache-2.0" ]
null
null
null
test.py
alexanderAustin/PythonGame
9a3da340ffa426d3c6d59b5c2eb3f2a68792164f
[ "Apache-2.0" ]
null
null
null
# This was built from the tutorial https://www.raywenderlich.com/24252/beginning-game-programming-for-teens-with-python import pygame, math, random from pygame.locals import * import pyganim # 2 - Initialize the game pygame.init() width, height = 640, 480 screen=pygame.display.set_mode((width, height)) pygame.display...
30.945205
119
0.683046
0
0
0
0
0
0
0
0
885
0.391766
2a42be1c9cc44039b76455cddf90f7e4297f5a21
322
py
Python
Python diye Programming sekha 1st/List to string.py
mitul3737/My-Python-Programming-journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
ca2c15c597a64e5a7689ba3a44ce36a1c0828194
[ "MIT" ]
1
2021-05-02T20:30:33.000Z
2021-05-02T20:30:33.000Z
Python diye Programming sekha 1st/List to string.py
Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
c19d84dfe6dcf496ff4527724f92e228579b6456
[ "MIT" ]
null
null
null
Python diye Programming sekha 1st/List to string.py
Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
c19d84dfe6dcf496ff4527724f92e228579b6456
[ "MIT" ]
1
2021-05-02T20:30:29.000Z
2021-05-02T20:30:29.000Z
li=["a","b","d"] print(li) str="".join(li)#adding the lists value together print(str) str=" ".join(li)#adding the lists value together along with a space print(str) str=",".join(li)#adding the lists value together along with a comma print(str) str="&".join(li)#adding the lists value together along with a & print(st...
23
67
0.708075
0
0
0
0
0
0
0
0
201
0.624224
2a4394188059b503b596278b8e6a7e6db8a33d8a
240
py
Python
src/classes/demo.py
daninarvaezr/SeleniumInmofianza
51d488043188b87199dbf28b9f7ef6d43f5163d9
[ "MIT" ]
1
2021-12-17T05:18:47.000Z
2021-12-17T05:18:47.000Z
src/classes/demo.py
daninarvaezr/SeleniumInmofianza
51d488043188b87199dbf28b9f7ef6d43f5163d9
[ "MIT" ]
null
null
null
src/classes/demo.py
daninarvaezr/SeleniumInmofianza
51d488043188b87199dbf28b9f7ef6d43f5163d9
[ "MIT" ]
null
null
null
import os file=open("C:/Users/michael.duran\OneDrive - Thomas Greg/Documents/Audisoft/Thomas/Inmofianza/TeamQA/SeleniumInmofianza/src/classes/datos.txt","w") file.write("Primera línea" + os.linesep) file.write("Segunda línea") file.close()
48
148
0.783333
0
0
0
0
0
0
0
0
167
0.690083
2a43cb149706d93e473e58a6de1f4b209d11723a
1,962
py
Python
src/egyptian_data_generator/finance.py
mahmoudahmedd/Egyptian-Data-Generator
d7bea688a7c7f8604908f302917267d795aa40a2
[ "MIT" ]
9
2020-11-25T10:45:32.000Z
2020-11-29T12:42:09.000Z
src/egyptian_data_generator/finance.py
mahmoudahmedd/Egyptian-Data-Generator
d7bea688a7c7f8604908f302917267d795aa40a2
[ "MIT" ]
null
null
null
src/egyptian_data_generator/finance.py
mahmoudahmedd/Egyptian-Data-Generator
d7bea688a7c7f8604908f302917267d795aa40a2
[ "MIT" ]
null
null
null
from egyptian_data_generator.helpers import Helpers class Finance: def americanexpressCreditCardNumber(self): return self.generateCreditCardNumber("americanexpress") def discoverCreditCardNumber(self): return self.generate("discover") def mastercardCreditCardNumber(se...
33.827586
87
0.514271
1,899
0.96789
0
0
0
0
0
0
116
0.059123
2a471148f06d620927af2a6aa7cde9846676eac8
349
py
Python
modulo_exclusao/limpa_tableWidget_tela_pedido.py
kallif003/Sistema-Delivery
b9c68e3a02ff0d60c7513dd09c08d722e76b138b
[ "MIT" ]
null
null
null
modulo_exclusao/limpa_tableWidget_tela_pedido.py
kallif003/Sistema-Delivery
b9c68e3a02ff0d60c7513dd09c08d722e76b138b
[ "MIT" ]
null
null
null
modulo_exclusao/limpa_tableWidget_tela_pedido.py
kallif003/Sistema-Delivery
b9c68e3a02ff0d60c7513dd09c08d722e76b138b
[ "MIT" ]
null
null
null
def limpar(*args): telaPrincipal = args[0] cursor = args[1] banco10 = args[2] sql_limpa_tableWidget = args[3] telaPrincipal.valorTotal.setText("Valor Total:") telaPrincipal.tableWidget_cadastro.clear() telaPrincipal.desconto.clear() telaPrincipal.acrescimo.clear() sql_limpa_tableW...
26.846154
52
0.719198
0
0
0
0
0
0
0
0
14
0.040115
2a49bbb320a2f3a0c0ad1fe1ec309514aaf3de0f
1,736
py
Python
src/app.py
borjlp/the-real-devops-challenge
6571c4ea2d08f421e92d319b08e7b15dcdb6393c
[ "Apache-2.0" ]
null
null
null
src/app.py
borjlp/the-real-devops-challenge
6571c4ea2d08f421e92d319b08e7b15dcdb6393c
[ "Apache-2.0" ]
null
null
null
src/app.py
borjlp/the-real-devops-challenge
6571c4ea2d08f421e92d319b08e7b15dcdb6393c
[ "Apache-2.0" ]
null
null
null
from os import environ import logging from bson.objectid import ObjectId from bson.errors import InvalidId from flask import Flask, jsonify, abort from flask_pymongo import PyMongo from typing import List, Dict from pymongo import MongoClient, errors from mongoflask import MongoJSONEncoder, find_restaurants app = Fla...
25.15942
67
0.68318
0
0
0
0
1,128
0.64977
0
0
255
0.146889
2a49c06bdd89022dc1ff091683808f803c67b7b5
434
py
Python
.ycm_extra_conf.py
baileyforrest/calico
68f859d244e1dc62b1b690349263cb51e1c19bce
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
baileyforrest/calico
68f859d244e1dc62b1b690349263cb51e1c19bce
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
baileyforrest/calico
68f859d244e1dc62b1b690349263cb51e1c19bce
[ "MIT" ]
null
null
null
import subprocess def Settings( **kwargs ): flags = [ '-x', 'c++', '-Wall', '-Wextra', '-Wno-unused-parameter', '-std=c++14', '-I', '.', '-I', 'third_party/googletest/googletest/include', '-I', 'third_party/abseil-cpp', '-I', 'third_party/libbcf', '-pthread', ] ...
17.36
80
0.529954
0
0
0
0
0
0
0
0
215
0.495392
2a4a2838e188c76f4a2cd11bbdf6a1bfab7e4da2
101
py
Python
python/lookout/__init__.py
meyskens/lookout-sdk
805d0d61ca97120a257283780790ff2458a6ef29
[ "Apache-2.0" ]
5
2018-12-17T11:22:31.000Z
2019-03-14T02:50:43.000Z
python/lookout/__init__.py
meyskens/lookout-sdk
805d0d61ca97120a257283780790ff2458a6ef29
[ "Apache-2.0" ]
64
2018-08-31T10:41:36.000Z
2019-12-14T15:01:13.000Z
python/lookout/__init__.py
meyskens/lookout-sdk
805d0d61ca97120a257283780790ff2458a6ef29
[ "Apache-2.0" ]
16
2018-08-30T20:33:55.000Z
2021-08-09T05:37:06.000Z
"""Lookout - Assisted Code Review""" import pkg_resources pkg_resources.declare_namespace(__name__)
20.2
41
0.811881
0
0
0
0
0
0
0
0
36
0.356436
2a4c66a611b82e5e3fffe75e8ee7a205db523d36
789
py
Python
Examples/Example_2.py
jmwerner/iPython_Parser
82c2c14af7b312a7735c7ae6ae28d8a3f2c8b876
[ "MIT" ]
3
2015-01-29T04:20:43.000Z
2015-02-08T05:02:02.000Z
Examples/Example_2.py
jmwerner/iPython_Parser
82c2c14af7b312a7735c7ae6ae28d8a3f2c8b876
[ "MIT" ]
4
2015-01-29T18:15:20.000Z
2015-02-03T23:58:20.000Z
Examples/Example_2.py
jmwerner/txt2pynb
82c2c14af7b312a7735c7ae6ae28d8a3f2c8b876
[ "MIT" ]
null
null
null
# can I have a comment here? import re a = 538734 print(re.search('a', "helalo") != None) print(re.search('a', "hallo") != None) a = 30 * 25 for i in range(0,5): print(i) ''' This is a sigma $\sigma$ symbol in markdown and a forall $\forall$ symbol too! Here's some mathematics $ 1 + 2 - 3 * 5 / 15$ and "qu...
12.725806
78
0.598226
0
0
0
0
0
0
0
0
503
0.637516
2a4c8d2566e58f41d640706fecad5ae122f31804
2,061
py
Python
test/test_phones.py
tnurtdinov-st/python_traning
a5204b073101a9c7870b3219ba7ceff321cf6b41
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
tnurtdinov-st/python_traning
a5204b073101a9c7870b3219ba7ceff321cf6b41
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
tnurtdinov-st/python_traning
a5204b073101a9c7870b3219ba7ceff321cf6b41
[ "Apache-2.0" ]
null
null
null
import re from random import randrange def test_phones_on_homepage(app): contact_from_homepage = app.contact.get_contact_list()[0] contact_from_editpage = app.contact.get_contact_info_from_edit_page(0) assert contact_from_homepage.all_phones_from_homepage == merge_phones_like_on_homepage(contact_from_editp...
55.702703
181
0.802523
0
0
0
0
0
0
0
0
22
0.010674
2a4ee98d7d60b26fe472280ddb00dfeca8c8d165
8,352
py
Python
data_analysis/data_analysis.py
marcoscale98/emojinet
07f3d87c2b6e1b8dfdcc225691f97cc839117611
[ "Apache-2.0" ]
null
null
null
data_analysis/data_analysis.py
marcoscale98/emojinet
07f3d87c2b6e1b8dfdcc225691f97cc839117611
[ "Apache-2.0" ]
null
null
null
data_analysis/data_analysis.py
marcoscale98/emojinet
07f3d87c2b6e1b8dfdcc225691f97cc839117611
[ "Apache-2.0" ]
1
2020-06-21T08:02:28.000Z
2020-06-21T08:02:28.000Z
import argparse import logging import sys import json import plotly.offline import plotly.graph_objs as go sys.path.append(sys.path[0] + "/..") from utils.fileprovider import FileProvider from preprocessing.reader import EvalitaDatasetReader from nltk.tokenize import TweetTokenizer logging.getLogger().setLevel(loggi...
54.588235
151
0.629909
0
0
0
0
0
0
0
0
1,689
0.202227
2a4f5e8b3a87fc69bf24b06e6f4c3bf065e18088
6,596
py
Python
examples/pytorch/rgcn/entity_classify.py
shengwenLeong/dgl
40ffa29a1dcd1639b1c41fa3b43e7339c1c187e7
[ "Apache-2.0" ]
2
2020-05-05T13:59:09.000Z
2020-07-25T10:09:34.000Z
examples/pytorch/rgcn/entity_classify.py
shengwenLeong/dgl
40ffa29a1dcd1639b1c41fa3b43e7339c1c187e7
[ "Apache-2.0" ]
null
null
null
examples/pytorch/rgcn/entity_classify.py
shengwenLeong/dgl
40ffa29a1dcd1639b1c41fa3b43e7339c1c187e7
[ "Apache-2.0" ]
null
null
null
""" Modeling Relational Data with Graph Convolutional Networks Paper: https://arxiv.org/abs/1703.06103 Code: https://github.com/tkipf/relational-gcn Difference compared to tkipf/relation-gcn * l2norm applied to all weights * remove nodes that won't be touched """ import argparse import numpy as np import time import ...
38.348837
117
0.640085
896
0.13584
0
0
0
0
0
0
1,440
0.218314
2a4f98ac2abb3fb715cc59e4d4ffee24c83452b6
2,992
py
Python
setup.py
DanielIzquierdo/osisoftpy
c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276
[ "Apache-2.0" ]
10
2018-09-10T20:58:47.000Z
2021-06-24T21:55:55.000Z
setup.py
DanielIzquierdo/osisoftpy
c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276
[ "Apache-2.0" ]
null
null
null
setup.py
DanielIzquierdo/osisoftpy
c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276
[ "Apache-2.0" ]
7
2018-07-01T00:31:58.000Z
2021-03-10T05:05:40.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import re from glob import glob from io import open from os.path import basename from os.path import splitext import setuptools from os import path # Single sourcing the version - def read(*n...
31.166667
74
0.606952
0
0
0
0
0
0
0
0
1,547
0.517045
2a4fbd7855bed7d6e0f4a700d61e26a1d38e94eb
11,080
py
Python
tests/test.py
JostMigenda/hop-SNalert-app
55c907bf07b1c8df2d5a9b3f7c648106b03406b9
[ "BSD-3-Clause" ]
null
null
null
tests/test.py
JostMigenda/hop-SNalert-app
55c907bf07b1c8df2d5a9b3f7c648106b03406b9
[ "BSD-3-Clause" ]
null
null
null
tests/test.py
JostMigenda/hop-SNalert-app
55c907bf07b1c8df2d5a9b3f7c648106b03406b9
[ "BSD-3-Clause" ]
null
null
null
import subprocess from hop import Stream from hop.auth import Auth from hop import auth from hop.io import StartPosition from hop.models import GCNCircular import argparse import random import threading import time from functools import wraps import datetime import numpy import uuid from dotenv import load_dotenv impor...
32.97619
164
0.582852
8,167
0.737094
0
0
369
0.033303
0
0
4,262
0.384657
2a5062017f7cc51174da9372c129642a7f1b6002
992
py
Python
iotkit/led.py
dhrg/iot-edison
d1a4eed659891ecbebe45e4e2fcf55c7828d01e7
[ "CC-BY-4.0" ]
null
null
null
iotkit/led.py
dhrg/iot-edison
d1a4eed659891ecbebe45e4e2fcf55c7828d01e7
[ "CC-BY-4.0" ]
null
null
null
iotkit/led.py
dhrg/iot-edison
d1a4eed659891ecbebe45e4e2fcf55c7828d01e7
[ "CC-BY-4.0" ]
null
null
null
import mraa # For accessing the GPIO import time # For sleeping between blinks global led def init_led(pin): global led led = mraa.Gpio(pin) # Get the LED pin object led.dir(mraa.DIR_OUT) # Set the direction as output led.write(0) def write_led(signal): global led led.wri...
24.8
61
0.556452
0
0
0
0
0
0
0
0
312
0.314516
2a51385674b04ab4c7bc2dc4e750a01f918e381a
1,511
py
Python
Assignments/Exam Preparation/Python Advanced Exam - 27 June 2020/03. List Manipulator.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
Assignments/Exam Preparation/Python Advanced Exam - 27 June 2020/03. List Manipulator.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
Assignments/Exam Preparation/Python Advanced Exam - 27 June 2020/03. List Manipulator.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
from collections import deque def list_manipulator(numbers, *args): numbers = deque(numbers) action = args[0] direction = args[1] if action == 'add': parameters = [int(x) for x in args[2:]] if direction == 'beginning': [numbers.appendleft(x) for x in parameters[::-1]] ...
32.847826
66
0.544011
0
0
0
0
0
0
0
0
177
0.117141
2a522cf24383152e1f43899c4fe827f5c6c726b0
6,738
py
Python
mayan/apps/documents/tests/test_links.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/documents/tests/test_links.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/documents/tests/test_links.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
114
2015-01-08T20:21:05.000Z
2018-12-10T19:07:53.000Z
from django.urls import reverse from ..links.document_file_links import ( link_document_file_delete, link_document_file_download_quick ) from ..links.favorite_links import ( link_document_favorites_add, link_document_favorites_remove ) from ..links.trashed_document_links import link_document_restore from ..mod...
35.650794
82
0.723212
6,096
0.90472
0
0
0
0
0
0
0
0
2a52a6d200cba48f11a709eb7672ab1b68768cc1
218
py
Python
cogs/anime.py
TheLastNever/discord_bot
b4bb5513a70ebd0f6f794b035f498de3ae6f9a8f
[ "MIT" ]
null
null
null
cogs/anime.py
TheLastNever/discord_bot
b4bb5513a70ebd0f6f794b035f498de3ae6f9a8f
[ "MIT" ]
null
null
null
cogs/anime.py
TheLastNever/discord_bot
b4bb5513a70ebd0f6f794b035f498de3ae6f9a8f
[ "MIT" ]
null
null
null
import discord from discord.ext import commands class anime(commands.Cog): def __init__(self, bot): self.bot = bot self._last_member = None def setup(bot): bot.add_cog(anime(bot))
14.533333
32
0.637615
111
0.509174
0
0
0
0
0
0
0
0
2a5311bf4850a13f8b1d521e223d6d0f9a689146
1,770
py
Python
tests/controller/templates_manager/local_temp/bridge.py
threefoldtech/0-templates
4106bb3d4d1de305557bf4748a7d77ffeb302abb
[ "Apache-2.0" ]
1
2019-01-20T17:50:53.000Z
2019-01-20T17:50:53.000Z
tests/controller/templates_manager/local_temp/bridge.py
threefoldtech/0-templates
4106bb3d4d1de305557bf4748a7d77ffeb302abb
[ "Apache-2.0" ]
192
2018-08-01T13:31:16.000Z
2020-05-29T09:41:06.000Z
tests/controller/templates_manager/local_temp/bridge.py
threefoldtech/0-templates
4106bb3d4d1de305557bf4748a7d77ffeb302abb
[ "Apache-2.0" ]
1
2018-08-09T12:30:52.000Z
2018-08-09T12:30:52.000Z
from jumpscale import j from zerorobot.service_collection import ServiceNotFoundError from testconfig import config import random class BrigeManager: def __init__(self, parent, service_name=None): self.bridge_template = 'github.com/threefoldtech/0-templates/bridge/0.0.1' self._parent = parent ...
36.875
124
0.651977
1,639
0.925989
0
0
202
0.114124
0
0
202
0.114124