hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
0d10c86dafeed929c1872fcc51e0ca638cea38e6
1,585
py
Python
tests/test_policyengine_deviceManager.py
Brewgarten/c4-policy-engine
4f39f21448952a994d0cbb24f2d02e622fbaa320
[ "MIT" ]
null
null
null
tests/test_policyengine_deviceManager.py
Brewgarten/c4-policy-engine
4f39f21448952a994d0cbb24f2d02e622fbaa320
[ "MIT" ]
1
2017-10-16T16:04:07.000Z
2017-10-16T16:04:07.000Z
tests/test_policyengine_deviceManager.py
Brewgarten/c4-policy-engine
4f39f21448952a994d0cbb24f2d02e622fbaa320
[ "MIT" ]
null
null
null
import logging import pytest from c4.devices.policyengine import PolicyEngineManager from c4.messaging import Router, RouterClient from c4.system.configuration import States, Roles from c4.system.deviceManager import DeviceManager from c4.system.messages import (LocalStartDeviceManager, LocalStopDeviceManager, ...
33.020833
104
0.719874
0d13f252a44ac30eabb61fd5ab7b47904eed9525
3,113
py
Python
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst from copy import deepcopy import pytest import numpy as np from astropy import wcs from . helper import SimModelTAB
22.395683
63
0.641182
0d150ae27d6a08f38d400e708a1891dd25859e78
11,560
py
Python
services/dts/tests/unit/test_physical_appliance.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
services/dts/tests/unit/test_physical_appliance.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
services/dts/tests/unit/test_physical_appliance.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. import os import random import shutil import string import tempfile import unittest try: import unittest.mock as mock except ImportError: import mock from OpenSSL import crypto from services.dts.src.oci_cli_dts.a...
48.368201
121
0.716696
0d168a4c61af1ef7a21e7295eab4769153682c76
7,544
py
Python
collect.py
peitur/colag
7ffefaa1a622a12718e94439f77b6e47db7c4452
[ "MIT" ]
1
2019-09-02T18:28:07.000Z
2019-09-02T18:28:07.000Z
collect.py
peitur/colag
7ffefaa1a622a12718e94439f77b6e47db7c4452
[ "MIT" ]
5
2019-01-05T12:51:37.000Z
2021-11-12T10:53:13.000Z
collect.py
peitur/colag
7ffefaa1a622a12718e94439f77b6e47db7c4452
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys,re,os,re, datetime import requests import json import hashlib import getopt from pprint import pprint from pathlib import Path ################################################################################ ## Hashing large files ####################################################...
32.943231
139
0.4943
0d19256930f4495b8add0763a8be0add5773382d
151
py
Python
common.py
camillescott/explotiv
649285c73cdbb85cd55285e4c3920051efd7f89d
[ "BSD-3-Clause" ]
1
2016-08-25T02:46:25.000Z
2016-08-25T02:46:25.000Z
common.py
camillescott/explotiv
649285c73cdbb85cd55285e4c3920051efd7f89d
[ "BSD-3-Clause" ]
null
null
null
common.py
camillescott/explotiv
649285c73cdbb85cd55285e4c3920051efd7f89d
[ "BSD-3-Clause" ]
null
null
null
import os pkg_path = os.path.dirname(__file__) static_folder = os.path.join(pkg_path, 'static') template_folder = os.path.join(pkg_path, 'templates')
25.166667
53
0.768212
0d1974a13ecd52da41d57fd5cb8316c87eb40657
2,421
py
Python
ALDS/ALDS1_12_C.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
1
2020-01-08T16:33:46.000Z
2020-01-08T16:33:46.000Z
ALDS/ALDS1_12_C.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
ALDS/ALDS1_12_C.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
import sys import io import time import pprint input_txt = """ 10 0 2 1 1 2 3 1 2 3 3 2 1 2 2 3 1 6 10 3 1 4 1 4 1 7 1 5 2 3 1 6 1 6 2 3 1 8 1 7 2 5 1 8 4 8 1 9 100000 9 0 """ #sys.stdin = open("ALDS1_11_D_in11.txt","r")#io.StringIO(input_txt) #sys.stdin = io.StringIO(input_txt) sys.stdin = ope...
27.202247
102
0.576621
0d19939c79927199a00a6644497c9b26cbcdaa17
1,103
py
Python
ejercicios/mayores_de_edad.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
4
2021-12-14T23:51:25.000Z
2022-03-24T11:14:00.000Z
ejercicios/mayores_de_edad.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/mayores_de_edad.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
5
2021-11-10T06:49:50.000Z
2022-03-24T01:42:28.000Z
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython # ------------------------ REDACCION ORIGINAL ------------------------ 1. Crear un programa que pida un nmero entero e imprimirlo, si no se ingresa deber preguntar otra vez por el nmero entero hasta que ingrese un nmero positivo. 2. Crear una lista que alm...
33.424242
77
0.574796
0d1a17352a3f05296cc6555c34672a19c51dc19a
2,523
py
Python
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py
Polidea/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
427
2018-05-29T14:21:02.000Z
2022-03-16T03:17:54.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
25
2018-07-23T08:34:15.000Z
2021-11-05T07:13:36.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
52
2018-07-19T19:57:32.000Z
2022-03-11T16:05:38.000Z
""" Test expression command options. Test cases: o test_expr_options: Test expression command options. """ from __future__ import print_function import os import time import lldb import lldbsuite.test.lldbutil as lldbutil from lldbsuite.test.lldbtest import *
31.148148
71
0.664685
0d1a377e75b203d7f18a99dc9d5d200921019cc3
1,724
py
Python
lib_bgp_data/collectors/mrt/mrt_base/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
16
2018-09-24T05:10:03.000Z
2021-11-29T19:18:59.000Z
lib_bgp_data/collectors/mrt/mrt_base/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
4
2019-10-09T18:54:17.000Z
2021-03-05T14:02:50.000Z
lib_bgp_data/collectors/mrt/mrt_base/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
3
2018-09-17T17:35:18.000Z
2020-03-24T16:03:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module contains class MRT_Announcements_Table Announcements_Table inherits from the Generic_Table class. The Generic_Table class allows for the conection to a database upon initialization. Also upon initialization the _create_tables function is called to initiali...
32.528302
76
0.707077
0d1a4439199c9ef84e882067c41f55f763548eaa
4,138
py
Python
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
234
2015-01-05T17:09:08.000Z
2021-11-15T09:52:43.000Z
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
54
2015-02-13T08:06:32.000Z
2021-05-19T14:07:03.000Z
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
35
2015-04-13T09:10:38.000Z
2022-02-15T01:43:03.000Z
# coding=utf-8 """ Logical permission backends module """ from permission.conf import settings from permission.utils.handlers import registry from permission.utils.permissions import perm_to_permission __all__ = ('PermissionBackend',)
33.918033
80
0.61479
0d1b4daa79d88bc89d8bb4d70a65c117aac274ea
50,782
py
Python
watex/core/erp.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
watex/core/erp.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
watex/core/erp.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021 Kouadio K. Laurent, zju-ufhb # This module is part of the WATex core package, which is released under a # MIT- licence. """ =============================================================================== Copyright (c) 2021 Kouadio K. Laurent Permission is hereby granted, f...
38.413011
100
0.490666
0d1b7c2182554a8a0f1a06812e62cc4dae4383a2
122
py
Python
py_tdlib/constructors/location.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/location.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/location.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type
17.428571
35
0.680328
0d1d498ac11ac88aa3a027d6cc2474196fa5251f
1,816
py
Python
Task2G.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
Task2G.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
Task2G.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
from floodsystem.flood import stations_level_over_threshold from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.analysis import polyfit from floodsystem.datafetcher import fetch_measure_levels from floodsystem.utils import sorted_by_key import numpy as np from datetime import ti...
31.310345
110
0.639317
0d1d8f3ba1cb047658f3bd978f75518c9dd50942
3,514
py
Python
simplecoin_rpc_client/scheduler.py
uingei/simplecoin_rpc_client_20171208
10ebea80b70db15944c8200923b41f78480d7f68
[ "0BSD" ]
2
2015-01-02T21:34:59.000Z
2018-10-17T15:54:47.000Z
simplecoin_rpc_client/scheduler.py
uingei/simplecoin_rpc_client_20171208
10ebea80b70db15944c8200923b41f78480d7f68
[ "0BSD" ]
2
2015-03-26T00:08:55.000Z
2015-06-06T21:31:17.000Z
simplecoin_rpc_client/scheduler.py
uingei/simplecoin_rpc_client_20171208
10ebea80b70db15944c8200923b41f78480d7f68
[ "0BSD" ]
6
2015-01-03T08:20:17.000Z
2019-06-23T15:55:12.000Z
import logging import os import sqlalchemy import setproctitle import argparse import yaml from apscheduler.scheduler import Scheduler from cryptokit.rpc_wrapper import CoinRPC from simplecoin_rpc_client.sc_rpc import SCRPCClient logger = logging.getLogger('apscheduler.scheduler') os_root = os.path.abspath(os.path.di...
30.293103
87
0.628913
0d1e5454f292c59dd72eec135f4dab6607754ce9
716
py
Python
SpeakyTo/interfaces/irc2.py
SpeakyTo/SCORE
244f7e732a40a0d29e796f38823aab57d31ce786
[ "Apache-2.0" ]
null
null
null
SpeakyTo/interfaces/irc2.py
SpeakyTo/SCORE
244f7e732a40a0d29e796f38823aab57d31ce786
[ "Apache-2.0" ]
null
null
null
SpeakyTo/interfaces/irc2.py
SpeakyTo/SCORE
244f7e732a40a0d29e796f38823aab57d31ce786
[ "Apache-2.0" ]
null
null
null
from iconservice import *
18.358974
71
0.597765
0d20b57c8cffa9b2d57ee77c2abe05ad04d2a179
8,686
py
Python
io_import_planar_code.py
tsurutana/planer_code-importer-blender
409423277adc56f7d7dda9429de4d5ae807226e4
[ "MIT" ]
null
null
null
io_import_planar_code.py
tsurutana/planer_code-importer-blender
409423277adc56f7d7dda9429de4d5ae807226e4
[ "MIT" ]
null
null
null
io_import_planar_code.py
tsurutana/planer_code-importer-blender
409423277adc56f7d7dda9429de4d5ae807226e4
[ "MIT" ]
null
null
null
bl_info = { "name": "Import Planar Code", "author": "Naoya Tsuruta", "version": (1, 0), "blender": (2, 80, 0), "location": "File > Import > Planar Code", "description": "Import planar code and construct mesh by assigning vertex positions.", "warning": "", "support": "TESTING", ...
31.70073
91
0.489523
0d2173d31093a043314df76aaf701045b2fe730c
1,233
py
Python
webtool/server/models/equipment.py
wodo/WebTool3
1582a03d619434d8a6139f705a1b5860e9b5b8b8
[ "BSD-2-Clause" ]
13
2018-12-16T21:01:24.000Z
2019-07-03T06:23:41.000Z
webtool/server/models/equipment.py
dav-kempten/WebTool3
859f39df67cb0f853c7fe33cb5d08b999d8692fc
[ "BSD-2-Clause" ]
26
2019-07-07T06:44:06.000Z
2021-09-07T07:28:34.000Z
webtool/server/models/equipment.py
dav-kempten/WebTool3
859f39df67cb0f853c7fe33cb5d08b999d8692fc
[ "BSD-2-Clause" ]
3
2017-06-18T06:22:52.000Z
2019-07-03T06:21:05.000Z
# -*- coding: utf-8 -*- from django.db import models from .mixins import SeasonsMixin from .time_base import TimeMixin from . import fields
22.833333
55
0.634225
0d22a9dd7d5f467850b8900e066974665ef38818
2,394
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/draw_vulkan_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/draw_vulkan_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/draw_vulkan_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension NV.draw_vulkan_image This module customises the behaviour of the OpenGL.raw.GL.NV.draw_vulkan_image to provide a more Python-friendly API Overview (from the spec) This extension provides a new function, DrawVkImageNV(), allowing applications to draw a screen-aligned rectangle displa...
45.169811
77
0.789474
0d246003e8c49782d663db0652fc20c6c7b5ad5f
426
py
Python
orders/urls.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
4
2021-11-25T15:45:31.000Z
2022-01-11T21:31:56.000Z
orders/urls.py
KwabenaYeboah/kobbyshop
850a04b24fafa8aa538fdbf039a0e8fafc3ebfc2
[ "MIT" ]
1
2021-12-30T08:18:28.000Z
2021-12-30T08:18:28.000Z
orders/urls.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
2
2021-12-26T05:11:00.000Z
2021-12-30T08:18:13.000Z
from django.urls import path from django.utils.translation import gettext_lazy as _ from .views import create_order_view, order_detail_view, generate_order_pdf_view urlpatterns = [ path('admin/order/<int:order_id>/', order_detail_view, name='admin_order_detail'), path('admin/order/<int:order_id>/pdf/', genera...
38.727273
96
0.7723
0d264d356130367d822124ae49b5e060a6d3d6dd
21,781
py
Python
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
null
null
null
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
null
null
null
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
1
2020-08-04T23:59:26.000Z
2020-08-04T23:59:26.000Z
import logging import matplotlib import pickle matplotlib.use('Agg') import matplotlib.colors as mcolors import numpy as np import matplotlib.pyplot as plt plt.ioff() font = {# 'family' : 'serif', # Times (source: https://matplotlib.org/tutorials/introductory/customizing.html) 'family': 'sans-serif', # Helvetic...
36.301667
169
0.618567
0d26782c58b3c4b8dcb10b8b861fb7a599e50c84
2,272
py
Python
gsh/plugins/executors/ssh.py
varunl/gsh
f0b4eb404afead35195d72a1abe4250c693b1e7c
[ "MIT" ]
23
2015-01-30T04:16:58.000Z
2021-07-28T22:31:01.000Z
gsh/plugins/executors/ssh.py
varunl/gsh
f0b4eb404afead35195d72a1abe4250c693b1e7c
[ "MIT" ]
2
2015-04-21T06:55:44.000Z
2016-03-29T22:29:15.000Z
gsh/plugins/executors/ssh.py
varunl/gsh
f0b4eb404afead35195d72a1abe4250c693b1e7c
[ "MIT" ]
5
2015-04-21T06:43:58.000Z
2018-11-03T10:14:35.000Z
import gevent from gevent.queue import Queue, Empty from gevent_subprocess import Popen, PIPE from gsh.plugin import BaseExecutor, BaseInnerExecutor
33.910448
116
0.556778
0d269caf9870407b800e22ac3a36faa1d6165a79
656
py
Python
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
null
null
null
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
7
2021-03-10T10:08:30.000Z
2022-03-02T07:38:13.000Z
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
1
2020-04-17T19:15:06.000Z
2020-04-17T19:15:06.000Z
from models.indicators import Indicators import numpy as np import matplotlib.pyplot as plt
26.24
78
0.692073
0d26a577889f50bd86268acdd8f4b35667d26c74
4,318
py
Python
app/db_worker.py
ryan-rushton/Basement
69e1ee78b430a98069d1039f7e833151704fba86
[ "Unlicense" ]
5
2016-11-14T18:05:49.000Z
2018-07-17T11:40:44.000Z
app/db_worker.py
ryan-rushton/Basement
69e1ee78b430a98069d1039f7e833151704fba86
[ "Unlicense" ]
null
null
null
app/db_worker.py
ryan-rushton/Basement
69e1ee78b430a98069d1039f7e833151704fba86
[ "Unlicense" ]
4
2016-12-21T12:42:23.000Z
2018-12-14T17:39:30.000Z
from multiprocessing import Process, Queue from app.es_search import add_to_es, delete_all_es, reindex_es, delete_from_es from logging import getLogger from flask_sqlalchemy import SQLAlchemy import sys from app import app from .models import Paste logger = getLogger(__name__) def delete_by_date_paste(date): """...
32.223881
118
0.583372
0d273c1d1f4925a594d10dc698fbd7f793d46ab3
449
py
Python
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
null
null
null
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
5
2017-08-25T20:43:16.000Z
2019-10-18T16:49:43.000Z
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
null
null
null
""" Unit Test for strings.basic problems """ from unittest import TestCase from strings.basic import alphabetize
22.45
99
0.714922
0d281e7eb3d40eae3e191f01e52cfee3344410ff
6,162
py
Python
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
1
2019-11-28T08:50:26.000Z
2019-11-28T08:50:26.000Z
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2019-11-22T04:23:47.000Z
2019-11-30T07:11:24.000Z
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2018-03-19T05:20:44.000Z
2019-11-22T00:56:31.000Z
#This script is going to be used API calls but first it will serve as a testing script. from IOTA_Module import * from Configuration_Module import * from Tools_Module import * from UserProfile_Module import * from Cryptography_Module import * from NodeFinder_Module import * from DynamicPublicLedger_Module import * imp...
35.618497
152
0.648815
0d2a081f35a5539acf6a7c3973e88ead36b9c6c5
2,230
py
Python
clickctl/cli.py
ciscochina/click-demo
ed26c34dc14a761b3eb94c0f0896bd22dd81079e
[ "Apache-2.0" ]
7
2017-03-06T08:23:29.000Z
2021-12-15T12:12:31.000Z
clickctl/cli.py
ciscochina/click-demo
ed26c34dc14a761b3eb94c0f0896bd22dd81079e
[ "Apache-2.0" ]
null
null
null
clickctl/cli.py
ciscochina/click-demo
ed26c34dc14a761b3eb94c0f0896bd22dd81079e
[ "Apache-2.0" ]
3
2018-04-02T15:36:08.000Z
2021-12-15T06:06:51.000Z
# Copyright 2017 Cisco Systems, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
28.227848
81
0.625561
0d2a6256b8a5f3ec748bace05b5caa68782cdbfb
653
py
Python
database/Database.py
TADebastiani/SistemasEspecialistas
09b925ca44d9d8a1145b9cb253ce8879bf8400f0
[ "MIT" ]
null
null
null
database/Database.py
TADebastiani/SistemasEspecialistas
09b925ca44d9d8a1145b9cb253ce8879bf8400f0
[ "MIT" ]
null
null
null
database/Database.py
TADebastiani/SistemasEspecialistas
09b925ca44d9d8a1145b9cb253ce8879bf8400f0
[ "MIT" ]
null
null
null
import sqlite3 from pathlib import Path
24.185185
77
0.600306
0d2eef0e6b41c739ce4208807368ff89025b240e
358
py
Python
setup.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
setup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
setup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
#!/usr/bin/env python from distutils.core import setup setup( name="python-tdlib", version="1.4.0", author="andrew-ld", license="MIT", url="https://github.com/andrew-ld/python-tdlib", packages=["py_tdlib", "py_tdlib.constructors", "py_tdlib.factory"], install_requires=["werkzeug", "simplej...
23.866667
71
0.656425
0d2f27a4418e1470048e931eb3e58013861b8b5e
30,937
py
Python
viz_funcs.py
cjsmith015/phytochemical-diversity-cannabis
4f71fec4e6c662dbb6aaafad23f01cef9b9aa8b5
[ "CC0-1.0" ]
null
null
null
viz_funcs.py
cjsmith015/phytochemical-diversity-cannabis
4f71fec4e6c662dbb6aaafad23f01cef9b9aa8b5
[ "CC0-1.0" ]
null
null
null
viz_funcs.py
cjsmith015/phytochemical-diversity-cannabis
4f71fec4e6c662dbb6aaafad23f01cef9b9aa8b5
[ "CC0-1.0" ]
null
null
null
import numpy as np import pandas as pd import scipy.stats as scs import itertools from collections import defaultdict import textwrap import pingouin as pg from statsmodels.stats.multicomp import pairwise_tukeyhsd from sklearn.neighbors import NearestNeighbors from sklearn.decomposition import PCA from sklearn.cluster...
33.922149
155
0.56809
0d2f4d0205d878f2318704a83c9245cfde3dc957
39,442
py
Python
app.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
16
2020-12-29T11:23:01.000Z
2022-01-01T01:55:42.000Z
app.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
null
null
null
app.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
4
2020-12-27T14:43:35.000Z
2021-02-26T09:35:03.000Z
from flask import Flask, request, abort from linebot import (LineBotApi, WebhookHandler) from linebot.exceptions import (InvalidSignatureError) from linebot.models import * import json import os from linebot.exceptions import LineBotApiError from flask_sqlalchemy import SQLAlchemy from sqlalchemy.exc import IntegrityE...
48.514145
299
0.571168
0d2fbfa96bb0ce534111ac7e21349a1c716d99fa
637
py
Python
PyOpenWorm/quantity.py
nheffelman/pyopdata
5cc3042b004f167dbf18acc119474ea48b47810d
[ "MIT" ]
null
null
null
PyOpenWorm/quantity.py
nheffelman/pyopdata
5cc3042b004f167dbf18acc119474ea48b47810d
[ "MIT" ]
null
null
null
PyOpenWorm/quantity.py
nheffelman/pyopdata
5cc3042b004f167dbf18acc119474ea48b47810d
[ "MIT" ]
null
null
null
import pint as Q #alias call to string __str__ = serialize
21.233333
62
0.601256
0d3113fefbcc2c8c41ba544c0d489f999a22dfe6
4,752
py
Python
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
null
null
null
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
12
2018-03-21T02:26:45.000Z
2018-05-09T07:12:55.000Z
rhapsody_web/models.py
wbadart/rhapsody
433a376b4a3881d4b12bebbbbdf08194c62fa8a2
[ "MIT" ]
null
null
null
from itertools import chain from django.db import models from random import choices
31.058824
77
0.666877
0d315a6eab2cc3aa2454ad8e379488130a26267e
1,076
py
Python
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
1
2021-03-07T15:29:48.000Z
2021-03-07T15:29:48.000Z
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
null
null
null
examples/kddcup2011/track1.py
zenogantner/MML-KDD
4c66101439d83bdcd15a464bf95c7ae74f1abbed
[ "BSD-3-Clause" ]
3
2015-03-17T20:22:48.000Z
2019-11-20T06:25:55.000Z
#!/usr/bin/env ipy import clr clr.AddReference("MyMediaLite.dll") clr.AddReference("MyMediaLiteExperimental.dll") from MyMediaLite import * train_file = "trainIdx1.firstLines.txt" validation_file = "validationIdx1.firstLines.txt" test_file = "testIdx1.firstLines.txt" # load the data training_data = IO.K...
29.888889
118
0.77974
0d315c941d5c258d24b3ce3f264e4496447f3b10
754
py
Python
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/resources/kb/mapping.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
"""KB mapping resource.""" from __future__ import absolute_import, division, print_function, unicode_literals from ..base import BaseResource
32.782609
98
0.676393
0d330685451bd90d18d6890bfb83c6bc7d79a1c5
1,293
py
Python
wavshape.py
IngoKl/wavlength
700b1f14dabd552b2ccf63a1651c469def023468
[ "MIT" ]
null
null
null
wavshape.py
IngoKl/wavlength
700b1f14dabd552b2ccf63a1651c469def023468
[ "MIT" ]
null
null
null
wavshape.py
IngoKl/wavlength
700b1f14dabd552b2ccf63a1651c469def023468
[ "MIT" ]
null
null
null
"""Scans a given path (folder) for .wav files recursively and plots them all into files.""" from pathlib import Path, PurePath import matplotlib.pyplot as plt import numpy as np from numpy import fft as fft import click import scipy.io.wavfile from wavlength import get_files, plot_wav def analyze_and_plot(wavfile, ou...
34.026316
91
0.673627
0d3413bac5a6aea2f9f7fe0d6f905b5180d47e91
456
py
Python
lib/ocr.py
jabbalaci/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
73
2015-03-31T01:12:26.000Z
2021-07-10T19:45:04.000Z
lib/ocr.py
doc22940/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
2
2017-01-06T17:17:42.000Z
2017-08-23T18:35:55.000Z
lib/ocr.py
doc22940/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
27
2015-01-03T18:51:23.000Z
2020-11-15T11:49:51.000Z
#!/usr/bin/env python3 """ OCR with the Tesseract engine from Google this is a wrapper around pytesser (http://code.google.com/p/pytesser/) """ import config as cfg from lib.process import get_simple_cmd_output def image_file_to_string(fname): """Convert an image file to text using OCR.""" cmd = "{tesseract...
24
70
0.701754
0d34f19c13621e0ed06e9108be40f56911d2c61d
4,848
py
Python
geiger-counter/remote-logging.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
2
2018-07-03T12:34:25.000Z
2019-02-22T14:44:59.000Z
geiger-counter/remote-logging.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
geiger-counter/remote-logging.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import gimpbbio.gpio as gpio import serial import re import http.client import urllib import threading import queue import sys import datetime import time import socket import logging import logging.handlers import argparse import Adafruit_BMP.BMP085 as BMP085 parser = argparse.ArgumentParser(d...
27.862069
184
0.72731
0d34f30b476694738f42f03846398937a9cf92fc
852
py
Python
migrations/versions/0e26a2d71475_.py
Toluwalemi/flask-audiofile-server
548d90aa8f25a58cd3647f08975e9ac6a679087d
[ "Unlicense" ]
null
null
null
migrations/versions/0e26a2d71475_.py
Toluwalemi/flask-audiofile-server
548d90aa8f25a58cd3647f08975e9ac6a679087d
[ "Unlicense" ]
null
null
null
migrations/versions/0e26a2d71475_.py
Toluwalemi/flask-audiofile-server
548d90aa8f25a58cd3647f08975e9ac6a679087d
[ "Unlicense" ]
1
2021-04-07T13:46:22.000Z
2021-04-07T13:46:22.000Z
"""empty message Revision ID: 0e26a2d71475 Revises: Create Date: 2021-03-19 00:13:23.019330 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0e26a2d71475' down_revision = None branch_labels = None depends_on = None
25.818182
65
0.687793
0d350e50046900dd997c091b0cd94feb9afe2441
9,510
py
Python
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
2_functions.py
codernayeem/python-cheat-sheet
ec6fe9f33e9175251df65899cef89f65219b9cb4
[ "MIT" ]
null
null
null
# Functions print("************* Function ***********") # Simple function without any arguments/parameters # Simple function with arguments/parameters say_helo('Nayeem', 18) # passing args as positional args say_helo(age=19, name='Sami') # passing args as keyword args (if you mismatch the serial, use keywor...
35.222222
161
0.674238
0d35cf0c049dbda0c7224db51ed6f0b36f88de1d
3,763
py
Python
Learning Scripts/helper.py
n3urovirtual/EyeTracking_Experiment
00a534540a524db8606d54e33ebc43de49a959ac
[ "MIT" ]
2
2021-11-18T16:59:43.000Z
2022-02-11T18:25:03.000Z
Learning Scripts/helper.py
n3urovirtual/EyeTracking_Experiment
00a534540a524db8606d54e33ebc43de49a959ac
[ "MIT" ]
null
null
null
Learning Scripts/helper.py
n3urovirtual/EyeTracking_Experiment
00a534540a524db8606d54e33ebc43de49a959ac
[ "MIT" ]
null
null
null
screen_resX=1920 screen_resY=1080 img_id=['1.JPG_HIGH_', '2.JPG_HIGH_', '7.JPG_HIGH_', '12.JPG_HIGH_', '13.JPG_HIGH_', '15.JPG_HIGH_', '19.JPG_HIGH_', '25.JPG_HIGH_', '27.JPG_HIGH_', '29.JPG_HIGH_', '41.JPG_HIGH_', '42.JPG_HIGH_',...
25.773973
83
0.545841
0d365cc37f818437b854ee723afc0abb9a2d8fa4
3,219
py
Python
twython_auth/views.py
tsaylor/nepal
452669dc8f301cbfab5cdf804292246ff91ed65f
[ "MIT" ]
null
null
null
twython_auth/views.py
tsaylor/nepal
452669dc8f301cbfab5cdf804292246ff91ed65f
[ "MIT" ]
2
2021-03-19T21:47:22.000Z
2021-06-10T17:44:44.000Z
twython_auth/views.py
tsaylor/nepal
452669dc8f301cbfab5cdf804292246ff91ed65f
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login, logout as django_logout from django.contrib.auth import get_user_model from django.http import HttpResponseRedirect from django.conf import settings from django.core.urlresolvers import reverse from twython import Twython from profiles.models import Profile def log...
38.321429
100
0.720721
0d37e90dca95e3985986b6fc950f40dc1aa89c2b
140
py
Python
hello.py
alee8542/cs3240-labdemo
f80a8f1dae79167cb13c3e176e14e3942852d04e
[ "MIT" ]
null
null
null
hello.py
alee8542/cs3240-labdemo
f80a8f1dae79167cb13c3e176e14e3942852d04e
[ "MIT" ]
null
null
null
hello.py
alee8542/cs3240-labdemo
f80a8f1dae79167cb13c3e176e14e3942852d04e
[ "MIT" ]
null
null
null
import helper from helper import greeting if __name__ == '__main__': main()
15.555556
27
0.714286
0d38684afecb14d8b612ceb8af67630b80b4ff71
989
py
Python
Multidimensional_Lists/05_square_with_maximum_sum.py
MihailMarkovski/Python-Advanced-2020
8edea78cbe5588a409ba9bc3767861250f58c1a6
[ "MIT" ]
4
2020-09-19T13:53:19.000Z
2020-11-01T18:34:53.000Z
Multidimensional_Lists/05_square_with_maximum_sum.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
Multidimensional_Lists/05_square_with_maximum_sum.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
rows_count, cols_count = [int(x) for x in input().split(', ')] matrix = create_matrix(rows_count) best_pos = 0, 0 best_sum = get_square_sum(0, 0, matrix) for r in range(rows_count - 1): for c in range(cols_count - 1): current_pos = r, c current_sum = get_square_sum(r, c, matrix) if curr...
26.026316
62
0.604651
0d394051cbe789e0a2cdb86b79de18a4fdfcc0a4
756
py
Python
algorithms/Python/sorting/selection_sort.py
Tanmoy07tech/DSA
f88c9cbf58bedb006e4401502507982cf4f52260
[ "MIT" ]
247
2020-12-24T05:06:41.000Z
2022-03-30T19:32:17.000Z
algorithms/Python/sorting/selection_sort.py
k2491p/DSA
ea01662f90a6913ca6b7faa88319afefb5f8d296
[ "MIT" ]
518
2020-12-23T14:19:19.000Z
2022-03-31T17:45:08.000Z
algorithms/Python/sorting/selection_sort.py
k2491p/DSA
ea01662f90a6913ca6b7faa88319afefb5f8d296
[ "MIT" ]
356
2020-12-24T08:12:31.000Z
2022-03-28T11:28:09.000Z
''' Find the largest element and place that element at the bottom of the list. Repeat for each sub-array. O(n^2) time complexity. ''' from string import ascii_letters arrays = ( [12, 3, 7, 22, -12, 100, 1], [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0], [4, 1, 3, 9, 7], [0, -1.5, 1.5, 1.3, -1.3, -1.01, 1.01], list(revers...
20.432432
69
0.579365
0d3f74b53d1976c4b1197848cb8716e04cb65c67
2,535
py
Python
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
null
null
null
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
2
2019-02-17T22:15:40.000Z
2019-02-20T22:40:21.000Z
djangocms_html_tags/cms_plugins.py
radity/djangocms-html-tags
d9d8d8b2609685d896e05af8fc9e2271c1dc0c26
[ "MIT" ]
2
2019-02-01T09:03:52.000Z
2020-01-14T12:56:52.000Z
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ from djangocms_html_tags.forms import HTMLTextInputForm, HTMLFormForm, HTMLTextareaForm from djangocms_html_tags.models import HTMLTag, HTMLText from djangocms_html_tags.utils impor...
26.40625
89
0.740039
0d4067eb03baa5149bcc67a886187a2fa8a7e860
4,659
py
Python
handlers/rights_users.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/rights_users.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/rights_users.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
# " " from aiogram.types import Message, CallbackQuery, ReplyKeyboardRemove from filters import IsAdmin from loader import dp, db, bot from keyboards.inline.callback_data import change_button_data from keyboards.inline.callback_data import set_status_data from keyboards.inline.callback_data import group_users_data ...
37.272
166
0.691994
0d40d5a5294c9c8290f11ed2656dfcbf8016ab4e
12,878
py
Python
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
null
null
null
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
39
2020-10-11T02:31:14.000Z
2020-12-15T20:18:56.000Z
qa327/frontend/sessions.py
rickyzhangca/CISC-327
e419caafa6ae3fe77aa411228b6b58b237fe6a61
[ "MIT" ]
1
2020-10-17T02:44:43.000Z
2020-10-17T02:44:43.000Z
import helpers import exceptions import datetime as dt ''' This is the sessions module: ''' ''' Base class with the basic structure of all frontend sessions. ''' ''' Base class for sessions that required login. ''' ''' Base class for sessions that does not required login. ''' ''' Landing page that displays user...
38.100592
218
0.650101
0d426d8765e77fea1c98581ceb39c83d5c0fb5f4
215
py
Python
parts/edag_diodes.py
baryluk/edag
675107e2078bcecb30768a5e96c7431104352024
[ "BSL-1.0" ]
null
null
null
parts/edag_diodes.py
baryluk/edag
675107e2078bcecb30768a5e96c7431104352024
[ "BSL-1.0" ]
null
null
null
parts/edag_diodes.py
baryluk/edag
675107e2078bcecb30768a5e96c7431104352024
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python3 # Diodes "1N4148" "1N5817G" "BAT43" # Zener "1N457" # bc junction of many transistors can also be used as dioded, i.e. 2SC1815, 2SA9012, etc. with very small leakage current (~1pA at -4V).
21.5
136
0.702326
0d42aee94bc382588eed7920090962df76b33a83
1,574
py
Python
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
PageObjectLibrary/loginpage_v2_using_composition.py
rama-bornfree/simple-pageobject
6a66a256867f7b1604005818b12e7c9f8dc6c027
[ "Apache-2.0" ]
null
null
null
from pageobject import PageObject from homepage import HomePage from locatormap import LocatorMap from robot.api import logger
32.122449
70
0.65629
0d442d2358091616d21b759e490009907755740d
2,569
py
Python
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot-controller/bin/ButtonMapper.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
'''Maps buttons for the Reefbot control.''' import roslib; roslib.load_manifest('reefbot-controller') import rospy
32.935897
78
0.651615
0d44e5e6d9f36901e93c880a5e517173d618c59a
159
py
Python
env.py
Code-Institute-Submissions/Lordph8-Project3
fdefe7ffb7c53e8cb2d70b8c760e4efd27bb4517
[ "MIT" ]
null
null
null
env.py
Code-Institute-Submissions/Lordph8-Project3
fdefe7ffb7c53e8cb2d70b8c760e4efd27bb4517
[ "MIT" ]
null
null
null
env.py
Code-Institute-Submissions/Lordph8-Project3
fdefe7ffb7c53e8cb2d70b8c760e4efd27bb4517
[ "MIT" ]
null
null
null
import os os.environ.setdefault("MONGO_URI", "mongodb+srv://root:Thisisarandompassword@myfirstcluster-qpzww.mongodb.net/theRecipe?retryWrites=true&w=majority")
79.5
149
0.836478
0d451f62800e63abede99f96599f3535638b9e60
1,482
py
Python
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v1/test_synthetics_test_config.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import absolute_import import sys import unittest im...
30.244898
108
0.762483
0d45995076dc8988bcc58b7a91a3417a1a1f526d
1,803
py
Python
parlai/tasks/saferdialogues/agents.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-03-13T21:02:22.000Z
2022-03-13T21:02:22.000Z
parlai/tasks/saferdialogues/agents.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-01-18T09:14:27.000Z
2022-01-18T09:14:27.000Z
parlai/tasks/saferdialogues/agents.py
twstewart42/ParlAI
db8dc7b684a089427ab5338a67fe50220d2fa622
[ "MIT" ]
1
2022-03-30T14:05:29.000Z
2022-03-30T14:05:29.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional from parlai.core.params import ParlaiParser from parlai.core.opt import Opt import os impo...
31.631579
80
0.645591
0d475beab3b1cd6b2f3e149dfdb979b4179e340d
614
py
Python
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
FatherSon/HelloWorld2_source_code/listing_7-1.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
# Listing_7-1.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Using comparison operators num1 = float(raw_input("Enter the first number: ")) num2 = float(raw_input("Enter the second ...
34.111111
82
0.63355
0d48928ed6b737fd788b3269ad8bbc5084f62d61
6,658
py
Python
landmark.py
Ank221199/cnn-facial-landmark
5b6db58c59e36a4851917c86a5d252230d228b2c
[ "MIT" ]
null
null
null
landmark.py
Ank221199/cnn-facial-landmark
5b6db58c59e36a4851917c86a5d252230d228b2c
[ "MIT" ]
null
null
null
landmark.py
Ank221199/cnn-facial-landmark
5b6db58c59e36a4851917c86a5d252230d228b2c
[ "MIT" ]
1
2019-07-20T01:37:29.000Z
2019-07-20T01:37:29.000Z
""" Convolutional Neural Network for facial landmarks detection. """ import argparse import cv2 import numpy as np import tensorflow as tf from model import LandmarkModel # Add arguments parser to accept user specified arguments. parser = argparse.ArgumentParser() parser.add_argument('--train_record', default='train...
34.14359
79
0.658306
0d492d307402409cd402271070306ff0cee7ae12
2,593
py
Python
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
read_testdata.py
veralily/MLKD-mission3-resentForIC
f652f80ad848fca321f912e9c1594517f1942e42
[ "MIT" ]
null
null
null
import skimage.io # bug. need to import this before tensorflow import skimage.transform # bug. need to import this before tensorflow from resnet_train import train from resnet import inference import tensorflow as tf import time import os import sys import re import numpy as np from image_processing import image_pre...
22.745614
74
0.600463
0d4e4c53bfb40749ea8ec2131b648151af59d377
2,305
py
Python
userbot/plugins/thordp.py
indianSammy07/Wolf
aba9ecce1860f86f81a52722062531590521ad7f
[ "MIT" ]
null
null
null
userbot/plugins/thordp.py
indianSammy07/Wolf
aba9ecce1860f86f81a52722062531590521ad7f
[ "MIT" ]
null
null
null
userbot/plugins/thordp.py
indianSammy07/Wolf
aba9ecce1860f86f81a52722062531590521ad7f
[ "MIT" ]
null
null
null
import os from datetime import datetime from PIL import Image, ImageDraw, ImageFont from pySmartDL import SmartDL from telethon.tl import functions from uniborg.util import admin_cmd import asyncio import shutil import random, re FONT_FILE_TO_USE = "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf" #Add telegraph ...
40.438596
122
0.633839
0d4e981d336496f51c5ebd89178a51218846e23a
514
py
Python
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
visualize/preprocess.py
peitaosu/SpectralClustering
5c679ce0f9f2974fa7be2abe9caa1265dbbd4a2c
[ "MIT" ]
null
null
null
import os, sys
25.7
65
0.478599
0d51a39dc3763222336d58785130ec15857fbfe1
34,938
py
Python
cogs/information.py
BioKZM/Colonist
ab3872c01b1bdc235e80065530fbed9953952919
[ "MIT" ]
5
2021-11-20T12:30:55.000Z
2022-02-02T15:34:23.000Z
cogs/information.py
BioKZM/Colonist
ab3872c01b1bdc235e80065530fbed9953952919
[ "MIT" ]
null
null
null
cogs/information.py
BioKZM/Colonist
ab3872c01b1bdc235e80065530fbed9953952919
[ "MIT" ]
null
null
null
# import discord # import asyncio # import json # from discord.ext import commands # from discord.utils import get # # from cogs.personalPoint import PersonalPoint # from main import client # from discord_ui import UI,Button # from functions.userClass import User,experiences,levelNames # from cogs.rank import getSorted...
41.642431
373
0.382563
0d51ae17ec18a17c3026a04979a7cfd4797e2e95
1,680
py
Python
infoblox_netmri/api/remote/models/wireless_hot_standby_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/wireless_hot_standby_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/wireless_hot_standby_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability
21.265823
62
0.491071
0d52e3e144e777e66888716d6fd11de6d57fc9e0
11,717
py
Python
tests/test_geometric_tests.py
mxrie-eve/Pyrr
34802ba0393a6e7752cf55fadecd0d7824042dc0
[ "Unlicense" ]
null
null
null
tests/test_geometric_tests.py
mxrie-eve/Pyrr
34802ba0393a6e7752cf55fadecd0d7824042dc0
[ "Unlicense" ]
null
null
null
tests/test_geometric_tests.py
mxrie-eve/Pyrr
34802ba0393a6e7752cf55fadecd0d7824042dc0
[ "Unlicense" ]
null
null
null
from pyrr.geometric_tests import ray_intersect_sphere try: import unittest2 as unittest except: import unittest import numpy as np from pyrr import geometric_tests as gt from pyrr import line, plane, ray, sphere if __name__ == '__main__': unittest.main()
36.962145
104
0.581804
0d530a1783161928697682724069d35b73f59b12
6,462
py
Python
python/tvm/micro/base.py
uwsampl/tvm
29a85eb8f75dbd3a338db0b28c2121ca997eb2a4
[ "Apache-2.0" ]
2
2019-12-27T04:50:01.000Z
2021-02-04T09:54:21.000Z
python/tvm/micro/base.py
uwsampl/tvm
29a85eb8f75dbd3a338db0b28c2121ca997eb2a4
[ "Apache-2.0" ]
null
null
null
python/tvm/micro/base.py
uwsampl/tvm
29a85eb8f75dbd3a338db0b28c2121ca997eb2a4
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.100559
93
0.630919
0d5399e828d26c68b909576d4808a3578d5cec48
1,807
py
Python
tests/test_connect_nets.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
1
2021-11-18T10:45:26.000Z
2021-11-18T10:45:26.000Z
tests/test_connect_nets.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
null
null
null
tests/test_connect_nets.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 EnICS Labs, Bar-Ilan University. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import sys, os sys.path.append(os.path.abspath('..')) from salamandra import * if __name__ == '__main__': main()
26.970149
74
0.624792
0d539b5ac601361cf9fe4062ce887af4d40cacd7
4,109
py
Python
rl_dobot/algos/learn.py
sandipan1/rl_dobot
2317c171f73ae6714c13a6e85cff3d894b242687
[ "MIT" ]
2
2018-11-09T19:31:46.000Z
2020-01-28T11:20:08.000Z
rl_dobot/algos/learn.py
sandipan1/rl_dobot
2317c171f73ae6714c13a6e85cff3d894b242687
[ "MIT" ]
null
null
null
rl_dobot/algos/learn.py
sandipan1/rl_dobot
2317c171f73ae6714c13a6e85cff3d894b242687
[ "MIT" ]
null
null
null
''' update rule for the DQN model is defined ''' ''' Preprocessing : give only hsv value or masked end efforctor image Downsample pixel and convert RGB to grayscale Use nn.functional where there is no trainable parameter like relu or maxpool Try pooling vs not pooling In Atari they consider multiple frames to find dir...
36.6875
120
0.696276
0d53c344e253ec5b2dbe3d8a0ac3fa6d4a976325
923
py
Python
backend/app/utils.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
2
2020-11-23T13:38:49.000Z
2021-08-17T15:37:04.000Z
backend/app/utils.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
backend/app/utils.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
from .protocol import Resp from flask import make_response import pandas as pd
31.827586
79
0.619718
0d55391048b46c947199f64898343316208f90a7
2,626
py
Python
app/recipe/views.py
juancarestre/recipe-app-api2
7f93a2a01ebe811cba84526f0c1202dca7800b7a
[ "MIT" ]
null
null
null
app/recipe/views.py
juancarestre/recipe-app-api2
7f93a2a01ebe811cba84526f0c1202dca7800b7a
[ "MIT" ]
null
null
null
app/recipe/views.py
juancarestre/recipe-app-api2
7f93a2a01ebe811cba84526f0c1202dca7800b7a
[ "MIT" ]
null
null
null
from rest_framework import viewsets, mixins from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated import redis import os import json from core.models import Tag, Ingredient from recipe import serializers # Connect to our Redis instance redis_instance = r...
35.972603
79
0.653085
0d55d639ae3cbd3fbf923acfe2653d7ccc5a7c72
2,468
py
Python
torchbenchmark/models/mlp_larger/__init__.py
VectorInstitute/benchmark
1cd8ff536aeddf3ebcafd4837d91684a1d9e58d2
[ "BSD-3-Clause" ]
1
2022-01-19T15:46:20.000Z
2022-01-19T15:46:20.000Z
torchbenchmark/models/mlp_larger/__init__.py
VectorInstitute/benchmark
1cd8ff536aeddf3ebcafd4837d91684a1d9e58d2
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/mlp_larger/__init__.py
VectorInstitute/benchmark
1cd8ff536aeddf3ebcafd4837d91684a1d9e58d2
[ "BSD-3-Clause" ]
null
null
null
import random import numpy as np import torch from torch import nn from torchbenchmark.tasks import OTHER from ...util.model import BenchmarkModel torch.manual_seed(1337) random.seed(1337) np.random.seed(1337) # pretend we are using MLP to predict CIFAR images if __name__ == '__main__': for device in ['cpu'...
26.826087
77
0.547407
b48fbff20842d5dc1be80ae2543317f479252cd3
99
py
Python
args.py
NiranjanVRam/spotify-downloader
f20580dbb6fa6ebc00e7935f233f5a87e9762d18
[ "MIT" ]
7
2020-12-27T13:38:38.000Z
2022-03-06T16:34:18.000Z
args.py
NiranjanVRam/spotify-downloader
f20580dbb6fa6ebc00e7935f233f5a87e9762d18
[ "MIT" ]
2
2021-10-03T10:56:12.000Z
2021-10-10T23:43:14.000Z
args.py
NiranjanVRam/spotify-downloader
f20580dbb6fa6ebc00e7935f233f5a87e9762d18
[ "MIT" ]
5
2021-03-31T11:38:59.000Z
2021-12-30T02:36:40.000Z
clientId = 'CLIENT_ID' clientSecret = 'CLIENT_SECRET' geniusToken = 'GENIUS_TOKEN' bitrate = '320'
19.8
30
0.757576
b4903e0e49fe00b8a065406698071247bb86a02d
654
py
Python
experiments/experiments_2/bs3_exp11_2_runner.py
petrroll/msc-neuro
cdfb5f0ad1a6974fdde6ac9760364d5545d70690
[ "MIT" ]
1
2019-10-26T19:38:42.000Z
2019-10-26T19:38:42.000Z
experiments/experiments_2/bs3_exp11_2_runner.py
petrroll/msc-neuro
cdfb5f0ad1a6974fdde6ac9760364d5545d70690
[ "MIT" ]
null
null
null
experiments/experiments_2/bs3_exp11_2_runner.py
petrroll/msc-neuro
cdfb5f0ad1a6974fdde6ac9760364d5545d70690
[ "MIT" ]
1
2021-03-23T14:54:04.000Z
2021-03-23T14:54:04.000Z
import os import sys sys.path.append(os.getcwd()) import utils.runners as urun # # Dropout is `keep_prob` probability not `dropout rate` (as in TF2.x) # if __name__ == "__main__": exp_folder = "experiments_2" exp = "bs3_exp11" exp_rev = "2" runner = urun.get_runner(sys.argv[1]) run = 0 for h...
25.153846
124
0.544343
b495cef87e530613f2c8277610c653f49cd1a833
2,003
py
Python
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
2
2020-10-06T15:55:26.000Z
2021-04-01T04:09:01.000Z
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
null
null
null
library/aq6315.py
mjasperse/telepythic
fbf24a885cb195dc5cecf78e112b8ff4b993043d
[ "BSD-3-Clause" ]
null
null
null
""" AQ6315E DATA EXTRACTOR Extracts all visible traces from Ando AQ-6315E Optical Spectrum Analyser Usage: ./aq6315.py [filename] If specified, extracted data is saved to CSV called "filename" Relevant list of commands available at http://support.us.yokogawa.com/downloads/TMI/COMM/AQ6317B/AQ6317B%20R0101.pdf ...
32.306452
81
0.6665
b49746c535ff505d70174da7005a75abdaab6aa0
1,707
py
Python
src/test_uint8.py
disconnect3d/PicoBlade-asm
f4c1c5966f71ac9b11118dc0df1a6dd93699b4a2
[ "MIT" ]
4
2018-07-26T21:16:06.000Z
2021-07-02T17:07:01.000Z
src/test_uint8.py
disconnect3d/PicoBlade-asm
f4c1c5966f71ac9b11118dc0df1a6dd93699b4a2
[ "MIT" ]
1
2016-11-09T22:47:05.000Z
2017-01-19T23:34:50.000Z
src/test_uint8.py
disconnect3d/PicoBlade-asm
f4c1c5966f71ac9b11118dc0df1a6dd93699b4a2
[ "MIT" ]
null
null
null
from src.uint8 import uint8
22.168831
52
0.565319
b497aee10348953dd46616dc98824f2c3d70953e
1,042
py
Python
tests/lid_driven_cavity/test.py
nazmas/SNaC
e928adc142df5bbe1a7941907c35add6ea6f1ff0
[ "MIT" ]
null
null
null
tests/lid_driven_cavity/test.py
nazmas/SNaC
e928adc142df5bbe1a7941907c35add6ea6f1ff0
[ "MIT" ]
null
null
null
tests/lid_driven_cavity/test.py
nazmas/SNaC
e928adc142df5bbe1a7941907c35add6ea6f1ff0
[ "MIT" ]
null
null
null
#!/usr/bin/env python if __name__ == "__main__": test_ldc() print("Passed!")
47.363636
98
0.643954
b4987682eaca1ee3d36ee754283c8f4e42d74219
638
py
Python
zoom/_assets/standard_apps/icons/index.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
8
2017-04-10T09:53:15.000Z
2020-08-16T09:53:14.000Z
zoom/_assets/standard_apps/icons/index.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
49
2017-04-13T22:51:48.000Z
2019-08-15T22:53:25.000Z
zoom/_assets/standard_apps/icons/index.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
12
2017-04-11T04:16:47.000Z
2019-08-10T21:41:54.000Z
""" icons index """ import zoom main = zoom.dispatch(MyView)
23.62963
73
0.589342
b4992dbe930e0e9eeb52ad731345b2e5829711bc
1,096
py
Python
python/AI/data/zero_mean.py
Vahegian/GiantTrader
67a1acd8c52e2277ae8919834563775e59b6e6ce
[ "MIT" ]
10
2020-05-12T13:41:42.000Z
2022-03-24T17:32:09.000Z
python/AI/data/zero_mean.py
Vahegian/GiantTrader
67a1acd8c52e2277ae8919834563775e59b6e6ce
[ "MIT" ]
18
2020-09-26T00:57:28.000Z
2021-06-02T01:31:35.000Z
python/AI/data/zero_mean.py
Vahegian/GiantTrader
67a1acd8c52e2277ae8919834563775e59b6e6ce
[ "MIT" ]
3
2021-01-03T07:44:09.000Z
2021-11-20T18:44:24.000Z
''' This script takes one 'npy' file that contains market data of multiple markets and produces 3 files "train.npy", "test.npy", "val.npy". The script calculates the mean image of the dataset and substracts it from each image. ''' import numpy as np _FILE = "data/private/cnn_data.npy" _FILE = np.load(_FILE, allow...
28.102564
107
0.696168
b49a302baad4a4b82d1403cf60a8484fa3cbece9
8,352
py
Python
src/JobManager/Tasks.py
ROOSTER-fleet-management/rooster_fleet_manager
93a41ea1ec0af2eda57957dde7d996929bfc057a
[ "Apache-2.0" ]
6
2020-10-30T11:24:34.000Z
2022-01-11T18:52:06.000Z
src/JobManager/Tasks.py
ROOSTER-fleet-management/rooster_fleet_manager
93a41ea1ec0af2eda57957dde7d996929bfc057a
[ "Apache-2.0" ]
null
null
null
src/JobManager/Tasks.py
ROOSTER-fleet-management/rooster_fleet_manager
93a41ea1ec0af2eda57957dde7d996929bfc057a
[ "Apache-2.0" ]
8
2020-10-30T11:25:03.000Z
2021-09-07T12:54:27.000Z
#! /usr/bin/env python import rospy import actionlib from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal from tf.transformations import quaternion_from_euler from std_msgs.msg import UInt8 from enum import Enum #region ################## TODOLIST ######################## # DONE 1. Add Task class and make othe...
43.274611
181
0.637452
b49a5576e004df9c62a3ab2a288cc819b3c00b9c
1,426
py
Python
user.py
sdress/dojo-users
13f10f0efcd0e9e5ad7ed8c20d991524636cf37f
[ "MIT" ]
null
null
null
user.py
sdress/dojo-users
13f10f0efcd0e9e5ad7ed8c20d991524636cf37f
[ "MIT" ]
null
null
null
user.py
sdress/dojo-users
13f10f0efcd0e9e5ad7ed8c20d991524636cf37f
[ "MIT" ]
null
null
null
# import the function that will return an instance of a connection from mysqlconnection import connectToMySQL # model the class after the friend table from our database
44.5625
157
0.648668
b49af5e43de48fcf3cf24608acee75fdd5d449fb
21,488
py
Python
tiktokpy/client/user.py
returnWOW/tiktokpy
14e1fb2ef0c4f2f0abe2bdfa7c156a33f6cd92d2
[ "MIT" ]
1
2021-11-15T15:35:14.000Z
2021-11-15T15:35:14.000Z
tiktokpy/client/user.py
returnWOW/tiktokpy
14e1fb2ef0c4f2f0abe2bdfa7c156a33f6cd92d2
[ "MIT" ]
1
2022-03-12T13:12:37.000Z
2022-03-12T13:12:37.000Z
tiktokpy/client/user.py
returnWOW/tiktokpy
14e1fb2ef0c4f2f0abe2bdfa7c156a33f6cd92d2
[ "MIT" ]
null
null
null
import os import asyncio from typing import List import traceback import pyppeteer from pyppeteer.page import Page from tqdm import tqdm import pdb import time from tiktokpy.client import Client from tiktokpy.utils.client import catch_response_and_store, catch_response_info, get_dt_str, trans_char from t...
36.114286
180
0.526526
b49b84a57a5a0d4b3d8673371b1ea49d228a6368
2,927
py
Python
amazon-top-results.py
dlameter/amazon-top-results
f4437512f872a4f8c427042770a76cd51eba2f5c
[ "MIT" ]
null
null
null
amazon-top-results.py
dlameter/amazon-top-results
f4437512f872a4f8c427042770a76cd51eba2f5c
[ "MIT" ]
null
null
null
amazon-top-results.py
dlameter/amazon-top-results
f4437512f872a4f8c427042770a76cd51eba2f5c
[ "MIT" ]
null
null
null
import json import time import sys from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_con...
28.980198
98
0.688077
b49ba128005050a703dec74a0221d62f301b5b8c
1,656
py
Python
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
plugins/vpn.py
alobbs/autome
faf4c836ccb896d03020aa0dbb2c1332ffc791a2
[ "MIT" ]
null
null
null
import os import plugin import pluginconf util = plugin.get("util") FILE_COUNTER = "~/.vpn_counter" FILE_VPN_SH = "~/.vpn_sh" EXPECT_SCRIPT = """#!/usr/bin/expect spawn {cmd} expect -exact "Enter Auth Username:" send -- "{user}\\n" expect -exact "Enter Auth Password:" send -- "{password}\\n" interact """
24.352941
84
0.577899
b49bc707c55e530402f7bf7501d6b84e68f26a0e
7,321
py
Python
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
7
2018-04-04T02:56:48.000Z
2021-09-23T01:34:57.000Z
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
3
2018-07-31T08:56:56.000Z
2022-03-04T01:03:03.000Z
jasypt4py/generator.py
fareliner/jasypt4py
6ea7cdbb4ee1e3249cc9dcadfa3c54e603614458
[ "Apache-2.0" ]
4
2018-07-31T08:04:01.000Z
2021-07-07T01:55:34.000Z
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) from abc import ABCMeta, abstractmethod from Crypto import Random from jasypt4py.exceptions import ArgumentError
30.377593
106
0.584483
b49c1ea0938a5f26e07c3b56e99b431ee0d681c5
2,862
py
Python
__init__.py
zznop/bn-kconfig-recover
3e30cc6b3e5e273674a3ce6bca6c3bc60ac22f11
[ "MIT" ]
18
2022-01-02T16:48:25.000Z
2022-03-16T12:52:39.000Z
__init__.py
zznop/bn-kconfig-recover
3e30cc6b3e5e273674a3ce6bca6c3bc60ac22f11
[ "MIT" ]
null
null
null
__init__.py
zznop/bn-kconfig-recover
3e30cc6b3e5e273674a3ce6bca6c3bc60ac22f11
[ "MIT" ]
3
2022-01-02T16:48:43.000Z
2022-01-04T17:08:11.000Z
""" Binary Ninja plugin for recovering kernel build configuration settings using BNIL """ import argparse import logging from binaryninja import (BinaryViewType, BinaryView, PluginCommand, SaveFileNameField, get_form_input, BackgroundTaskThread) def run_from_ui(view: BinaryView) -> None: ...
29.8125
91
0.667016
b49d1896b18fa3dac7c56c26e4f2b64e748d5ed2
182
py
Python
openapi_core/schema/operations/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/operations/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/operations/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
from openapi_core.schema.exceptions import OpenAPIMappingError
18.2
62
0.835165
b49f409da0defa952f5265984dc68c10a3ae4ba5
1,811
py
Python
rlkit/envs/non_mujoco_half_cheetah_vel.py
hammer-wang/FOCAL-ICLR
4d19149f86acc1d6b987c93cdd3a9d957535c5e3
[ "MIT" ]
24
2021-03-24T07:14:52.000Z
2022-03-17T08:15:44.000Z
rlkit/envs/non_mujoco_half_cheetah_vel.py
hammer-wang/FOCAL-ICLR
4d19149f86acc1d6b987c93cdd3a9d957535c5e3
[ "MIT" ]
4
2021-06-18T16:38:38.000Z
2022-03-18T11:04:45.000Z
rlkit/envs/non_mujoco_half_cheetah_vel.py
hammer-wang/FOCAL-ICLR
4d19149f86acc1d6b987c93cdd3a9d957535c5e3
[ "MIT" ]
6
2021-04-12T18:49:47.000Z
2021-09-07T05:33:22.000Z
import numpy as np from gym import spaces from gym import Env #from rlkit.envs.mujoco.half_cheetah import HalfCheetahEnv from rlkit.envs import register_env
28.746032
89
0.605191
b49f48a21b3b551b45af59b6469d669944ac7823
6,812
py
Python
src/openprocurement/planning/api/validation.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
3
2020-03-13T06:44:23.000Z
2020-11-05T18:25:29.000Z
src/openprocurement/planning/api/validation.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
2
2021-03-25T23:29:58.000Z
2022-03-21T22:18:37.000Z
src/openprocurement/planning/api/validation.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
3
2020-10-16T16:25:14.000Z
2021-05-22T12:26:20.000Z
# -*- coding: utf-8 -*- from openprocurement.api.validation import ( validate_json_data, validate_data, validate_accreditation_level, validate_accreditation_level_mode, ) from openprocurement.api.utils import update_logging_context, error_handler, upload_objects_documents from openprocurement.planning.a...
39.375723
112
0.708456
b4a04bd98861d4add44fe78a70e2497100399370
1,176
py
Python
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2020/Ejemplos/clase-2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
# Importando libreras from numpy import array # Listas y arreglos a = array(['h', 101, 'l', 'l', 'o']) x = ['h', 101, 'l', 'l', 'o'] print(a) print(x) print("Tamao: ", len(x)) # Condicionales if isinstance(x[1], int): x[1] = chr(x[1]) elif isinstance(x[1], str): pass else: raise TypeError("Tipo no sopor...
17.294118
73
0.593537
b4a0c7230303a692bcc4f7d71deebfb17b27263a
3,751
py
Python
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
constants.py
lanthony42/Snek
e463b58eeba32bd26279a57fd3a523f4fb773da7
[ "MIT" ]
null
null
null
import math SCREEN_WIDTH = 1400 SCREEN_HEIGHT = 800 TEXT = (5, 5) FPS = 60 BASE_SIZE = 10 EYE_SIZE = 4 PUPIL_SIZE = EYE_SIZE - 2 BASE_SPEED = 2 MIN_DISTANCE = 1 MAX_DISTANCE = MIN_DISTANCE + 3 SIZE_INC = 15 EYE_INC = SIZE_INC * 4 PUPIL_INC = SIZE_INC * 8 GROWTH_INC = SIZE_INC * 20 BOOST_MIN = 10 BOOST_FACTOR = 2 BOO...
22.327381
94
0.564916
b4a0edc51d50de306ea838cb4bc96583019d8526
831
py
Python
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
app/routers/auth.py
nicolunardi/travela-server
79537ed428c01bac90d078216c7513411b7695ad
[ "CNRI-Python" ]
null
null
null
from fastapi import APIRouter, Depends, status from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from app.controllers.authControllers import login_user, register_user from app.schemas.users import UserCreate from app.schemas.tokens import Token from app.config.database import get...
24.441176
69
0.749699
b4a48258b4b4da01eee0072c9a89c865191a602a
2,222
py
Python
clib/links/model/recognition/vggnet.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
1
2017-08-27T00:01:27.000Z
2017-08-27T00:01:27.000Z
clib/links/model/recognition/vggnet.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
49
2017-08-20T02:09:26.000Z
2017-12-31T11:58:27.000Z
clib/links/model/recognition/vggnet.py
Swall0w/clib
46f659783d5a0a6ec5994c3c707c1cc8a7934385
[ "MIT" ]
1
2017-12-08T08:31:38.000Z
2017-12-08T08:31:38.000Z
import chainer import chainer.functions as F import chainer.links as L
35.83871
72
0.559406
b4a6dc56ed919c7cf17e22c60123ac3000343e48
2,147
py
Python
scraper.py
TheLady/say_what
22b187e000b0ab13606c73804db0af89b945751d
[ "MIT" ]
null
null
null
scraper.py
TheLady/say_what
22b187e000b0ab13606c73804db0af89b945751d
[ "MIT" ]
null
null
null
scraper.py
TheLady/say_what
22b187e000b0ab13606c73804db0af89b945751d
[ "MIT" ]
null
null
null
import sqlite3 import requests from bs4 import BeautifulSoup from login import keys import config ARTICLE_SEARCH_URL = 'http://api.nytimes.com/svc/search/v2/articlesearch.json?api-key={key}' SUNLIGHT_CONGRESS_URL = 'http://congress.api.sunlightfoundation.com/{method}?{query}&apikey={key}' if __name__ == '__main__...
31.573529
98
0.566372
b4a6ed73413c10935d4c8fa52b9e4361216bd892
850
py
Python
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/entity/MapTestplay.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
# load modules from dataclasses import dataclass from typing import Union from ...beatsaver.entity import UserDetail # definition class # definition function def gen(response): if response is not None: instance = MapTestplay( createdAt=response.get('createdAt'), feedback=respon...
21.25
54
0.628235
b4a997475aae508c6542885c908cb30034b6fc05
1,425
py
Python
django_settings_diff/cli.py
GreenBankObservatory/django-settings-diff
7940ddb6dd42e1464ae58814b8acd504b3824aaf
[ "MIT" ]
null
null
null
django_settings_diff/cli.py
GreenBankObservatory/django-settings-diff
7940ddb6dd42e1464ae58814b8acd504b3824aaf
[ "MIT" ]
null
null
null
django_settings_diff/cli.py
GreenBankObservatory/django-settings-diff
7940ddb6dd42e1464ae58814b8acd504b3824aaf
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """docstring""" from __future__ import print_function, unicode_literals import argparse import sys from .settingsdiff import dump_settings, diff_settings if __name__ == "__main__": main()
26.886792
86
0.605614
b4a9a2a19510f8c534dd1f30edf649c69077292a
5,283
py
Python
Project 1-1/evaluate.py
marridG/2020-EI339_Team_Project
013cd1bf596f8079886809caee65757ecc870dfe
[ "MIT" ]
null
null
null
Project 1-1/evaluate.py
marridG/2020-EI339_Team_Project
013cd1bf596f8079886809caee65757ecc870dfe
[ "MIT" ]
null
null
null
Project 1-1/evaluate.py
marridG/2020-EI339_Team_Project
013cd1bf596f8079886809caee65757ecc870dfe
[ "MIT" ]
null
null
null
import os import types import typing import numpy as np import constants import environment import policy import update if "__main__" == __name__: epsilon_values = [0.6, ] evaluate_rounds = 10000 test_eval_env_obj = EvaluateEnv(show_details=True) # # Q-Learning # test_policy_func = policy.Act...
38.562044
115
0.571266
b4abd48fdafccf895445255273d39c4cebef4513
502
py
Python
axelrod/tests/unit/test_mock_player.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_mock_player.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_mock_player.py
dashiellfryer/Axelrod
0d684b3273d15e3e0ecf70be8e893fffc5277c84
[ "MIT" ]
null
null
null
import unittest from axelrod import Action, MockPlayer, Player C, D = Action.C, Action.D
23.904762
52
0.591633
b4ac8299434ea398cb53c3d22c8f3e7ec3f42e87
10,870
py
Python
covidtracker/writer_flatcurve.py
mfkasim91/covid19-gradient-tracker
a25d245ef35782052d5ab179d431c6079074b047
[ "MIT" ]
2
2020-05-25T16:06:31.000Z
2020-07-22T06:42:38.000Z
covidtracker/writer_flatcurve.py
mfkasim91/covid19-gradient-tracker
a25d245ef35782052d5ab179d431c6079074b047
[ "MIT" ]
null
null
null
covidtracker/writer_flatcurve.py
mfkasim91/covid19-gradient-tracker
a25d245ef35782052d5ab179d431c6079074b047
[ "MIT" ]
1
2020-07-22T06:47:11.000Z
2020-07-22T06:47:11.000Z
import os import datetime import numpy as np from jinja2 import Template from scipy.stats import hypergeom import matplotlib.pyplot as plt import covidtracker as ct from covidtracker.dataloader import DataLoader from covidtracker.models import update_samples from covidtracker.plotter import plot_interval if __name__ =...
35.639344
233
0.626127
b4acdc0ec67a2e7b7290b7d91f3ae5eb0dcf9fcf
359
py
Python
SNDG/BioMongo/Model/exceptions.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
null
null
null
SNDG/BioMongo/Model/exceptions.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
null
null
null
SNDG/BioMongo/Model/exceptions.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
1
2020-09-01T15:57:54.000Z
2020-09-01T15:57:54.000Z
''' Created on Jun 15, 2016 @author: eze '''
16.318182
61
0.537604
b4ae5a006f917cb0bbbc0e033064a28351e9c257
782
py
Python
Strings/tablePrinter.py
shoalcellos/AutomateTheBoringStuff
76d4ead2d41caaa96943cc64000da88c34bef75e
[ "MIT" ]
null
null
null
Strings/tablePrinter.py
shoalcellos/AutomateTheBoringStuff
76d4ead2d41caaa96943cc64000da88c34bef75e
[ "MIT" ]
null
null
null
Strings/tablePrinter.py
shoalcellos/AutomateTheBoringStuff
76d4ead2d41caaa96943cc64000da88c34bef75e
[ "MIT" ]
null
null
null
# Solution to the practise problem # https://automatetheboringstuff.com/chapter6/ # Table Printer def printTable(tableList): """Prints the list of list of strings with each column right justified""" colWidth = 0 for row in tableList: colWidth = max(colWidth, max([len(x) for x in row])) col...
30.076923
81
0.602302
b4af056b2e6592ec3909fe81f77a486c195eff3f
4,727
py
Python
src/layers/layers.py
jabalazs/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
10
2019-04-08T02:09:37.000Z
2021-05-04T10:30:44.000Z
src/layers/layers.py
lizezhonglaile/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
null
null
null
src/layers/layers.py
lizezhonglaile/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
4
2019-09-24T14:24:25.000Z
2021-09-02T14:41:38.000Z
import torch import torch.nn as nn from ..utils.torch import pack_forward from .pooling import GatherLastLayer
33.524823
84
0.635287
b4af1aab669bbf7ec4facbb4437773d39076d0e0
7,458
py
Python
backend/handlers/graphql/mutation_utils/mutationmethod.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
null
null
null
backend/handlers/graphql/mutation_utils/mutationmethod.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
8
2017-10-11T13:26:10.000Z
2021-12-13T20:27:52.000Z
backend/handlers/graphql/mutation_utils/mutationmethod.py
ispras/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
4
2017-07-27T12:25:42.000Z
2018-01-28T02:06:26.000Z
import json import uuid from dataclasses import dataclass from typing import Callable, Sequence, Any, Optional, Tuple, Union, List, Generic, TypeVar from serflag import SerFlag from handlers.graphql.graphql_handler import ContextProtocol from handlers.graphql.utils.string import camelcase from xenadapter.task import ge...
42.375
181
0.622017
b4af6bcde4fcd433d18c5597fca9f5e7a83c63f7
3,383
py
Python
infra/utils.py
BrandoZhang/alis
9699eba112eda2ea27d6023221df2df9dc270b7f
[ "CC-BY-2.0" ]
176
2021-04-15T05:28:59.000Z
2022-03-30T07:06:00.000Z
infra/utils.py
BrandoZhang/alis
9699eba112eda2ea27d6023221df2df9dc270b7f
[ "CC-BY-2.0" ]
12
2021-04-17T20:20:53.000Z
2022-03-19T07:04:58.000Z
infra/utils.py
BrandoZhang/alis
9699eba112eda2ea27d6023221df2df9dc270b7f
[ "CC-BY-2.0" ]
22
2021-04-16T02:05:41.000Z
2022-03-03T12:23:10.000Z
import os import shutil import subprocess from distutils.dir_util import copy_tree from shutil import copyfile from typing import List, Optional import click import git from omegaconf import DictConfig def create_symlinks(target_dir: os.PathLike, symlinks_to_create: List[os.PathLike]): """ Creates symlinks ...
32.528846
124
0.670706
b4b34142fa2eee3e44e12513d4714643f5cc5f2d
2,011
py
Python
App/templatetags/app_extras.py
kholdarbekov/Petrol
7d683def3ade380b0323e42a1d9ef8190bcc68ba
[ "MIT" ]
null
null
null
App/templatetags/app_extras.py
kholdarbekov/Petrol
7d683def3ade380b0323e42a1d9ef8190bcc68ba
[ "MIT" ]
null
null
null
App/templatetags/app_extras.py
kholdarbekov/Petrol
7d683def3ade380b0323e42a1d9ef8190bcc68ba
[ "MIT" ]
null
null
null
from django import template from django.utils import timezone register = template.Library()
21.623656
93
0.625062