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
ec01276c37a7b31604c880dcb9890eab8f123340
876
py
Python
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
null
null
null
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
6
2021-09-02T18:50:40.000Z
2022-02-27T11:06:31.000Z
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
null
null
null
arr=[123,321,487,908,123,465,987,46,762,12389] print(radix(arr))
21.365854
57
0.515982
ec029f2e7581e96d907379e0c7b77a55feafa39c
577
py
Python
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
2
2021-12-31T22:14:31.000Z
2021-12-31T22:14:34.000Z
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( UserLoginView, UserLogoutView, UserSignupView, UserUpdateView, UserDeleteView, UserProfileView, ) app_name = "user" urlpatterns = [ path("signup", UserSignupView.as_view(), name="signup"), path("update", UserUpdateView.as_view(), name=...
26.227273
63
0.679376
ec037e8ff41b312d1239dc04d766e9f4b8fe7357
391
py
Python
petstagram/core/views.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
1
2021-07-20T12:16:34.000Z
2021-07-20T12:16:34.000Z
petstagram/core/views.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
petstagram/core/views.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
from django.views import View
21.722222
45
0.606138
ec03beeeb8e83dd9401f7dcd95618bf9eb96ca5c
7,232
py
Python
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
3
2017-12-09T16:16:18.000Z
2020-05-05T12:01:53.000Z
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
null
null
null
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
null
null
null
import io import cv2 import numpy as np import tensorflow as tf from PIL import Image from keras.models import model_from_json import dlib def get_smile_label(self, img_face): """Predict smile on a face and return label (0 for neutral and 1 for smiling face) Parameters: img_face: ndarr...
33.953052
86
0.552683
ec04ace165066b72928eb9637889dba57eabd704
498
py
Python
dumbtils/_c1.py
paaksing/dumbtils
6d19bf5daa4f87b0f732ebbbec90a7327b672da9
[ "MIT" ]
null
null
null
dumbtils/_c1.py
paaksing/dumbtils
6d19bf5daa4f87b0f732ebbbec90a7327b672da9
[ "MIT" ]
null
null
null
dumbtils/_c1.py
paaksing/dumbtils
6d19bf5daa4f87b0f732ebbbec90a7327b672da9
[ "MIT" ]
null
null
null
import sys import signal from functools import partial if __name__ == '__main__': main()
19.92
66
0.626506
ec05ae5f172a76ae27b1aab78fa3fe888df7828e
30,898
py
Python
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
1
2021-02-12T01:10:51.000Z
2021-02-12T01:10:51.000Z
# region [Imports] # * Standard Library Imports ----------------------------------------------------------------------------> import os import asyncio from io import BytesIO from pathlib import Path from datetime import datetime from tempfile import TemporaryDirectory # * Third Party Imports ------------------------...
49.122417
214
0.643472
ec085bbbaef39f0640fc7171919973e59bcfe3fd
885
py
Python
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
reserva = list() principal = list() maior = menor = 0 while True: reserva.append(str(input('Nome: '))) reserva.append(float(input('Peso: '))) if len(principal) == 0: maior = menor = reserva[1] else: if reserva[1] > maior: maior = reserva[1] if reserva[1] < menor: ...
26.818182
69
0.542373
ec09685680a3107d366ed078bdbf9404ece34bc4
1,560
py
Python
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
24.761905
76
0.604487
ec09fbb6283c15ce280ed78dbf9c0d4cee3fc770
691
py
Python
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
2
2022-01-16T02:34:40.000Z
2022-02-26T01:31:54.000Z
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
null
null
null
view/inputs.py
gabrielfelipecsk/searchport
aa1f9067a5d1f59d9913b172cc99e933255a0824
[ "MIT" ]
null
null
null
from .colors import Colorize from .banners import banner
53.153846
122
0.720695
ec0b058f553343a897e71eea532d993fcfa42a8b
926
py
Python
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
import boto3 from Bootstrap.add_record_id import lambda_handler from moto import mock_s3
37.04
155
0.708423
ec0bb06346d0c766db6b7559f79689b68488b806
523
py
Python
utils/redis.py
lq411122/fast-methods
0bca39c37abc4c9dac9a194e635641848c128b1b
[ "MIT" ]
null
null
null
utils/redis.py
lq411122/fast-methods
0bca39c37abc4c9dac9a194e635641848c128b1b
[ "MIT" ]
null
null
null
utils/redis.py
lq411122/fast-methods
0bca39c37abc4c9dac9a194e635641848c128b1b
[ "MIT" ]
null
null
null
import redis REDIS_CACHE = { "host": '192.168.196.129', "port": '6379', "db": 0, "password": '' } redis = RedisClient(REDIS_CACHE)
17.433333
75
0.596558
ec0bbf6fa340a30833399fb89ab800ad2004fd7e
8,517
py
Python
src/rest-api/tests/routes/v1/test_dex.py
geometry-labs/craft-multi-token-api
e533fd02c928c4857076ee11e14d8c0608bf367d
[ "Apache-2.0" ]
null
null
null
src/rest-api/tests/routes/v1/test_dex.py
geometry-labs/craft-multi-token-api
e533fd02c928c4857076ee11e14d8c0608bf367d
[ "Apache-2.0" ]
null
null
null
src/rest-api/tests/routes/v1/test_dex.py
geometry-labs/craft-multi-token-api
e533fd02c928c4857076ee11e14d8c0608bf367d
[ "Apache-2.0" ]
null
null
null
from fastapi.testclient import TestClient from app.core.config import settings
29.470588
100
0.628977
ec0c6262fe29bd601bf3b54997ca27eee3386b1b
1,785
py
Python
dissertation/code/mouse-data/DecodeMouseData.py
spanners/dissertation
e7f0cbf681d2341ecb2e00d40557e4e34f8b7209
[ "MIT" ]
2
2015-09-09T16:53:46.000Z
2019-04-03T01:19:48.000Z
dissertation/code/mouse-data/DecodeMouseData.py
spanners/dissertation
e7f0cbf681d2341ecb2e00d40557e4e34f8b7209
[ "MIT" ]
null
null
null
dissertation/code/mouse-data/DecodeMouseData.py
spanners/dissertation
e7f0cbf681d2341ecb2e00d40557e4e34f8b7209
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 import json import sys if __name__ == "__main__": dmd = DecodeMouseData() print dmd.getDictPrettyPrint(dmd.getFilesTimeClickDict(sys.argv[1:])) timeAndClicks = dmd.getFilesTimeClickDict(sys.argv[1:]) total = 0 for filename in timeAndClicks: total += timeAndClicks[file...
31.315789
75
0.60056
ec0ebec4153df6eb77466725e0c8fd3afb8e6d9e
2,604
py
Python
telemetry/telemetry/internal/platform/cast_platform_backend.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/platform/cast_platform_backend.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/platform/cast_platform_backend.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import from telemetry.core import platform as telemetry_platform from telemetry.internal.platform import cast_device from te...
25.281553
72
0.75768
ec0f9ff9cd997919f338a2ecbd614e9c94929507
828
py
Python
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
null
null
null
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
6
2021-04-26T16:12:48.000Z
2021-04-29T17:05:33.000Z
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By from utilities import find_all_contains_text from utilities import find_one_present from utilities import wait
30.666667
89
0.669082
ec109640aff1646df46aa0a6708a27349d22a4e5
1,731
py
Python
tests/test_2_cnv_annotation.py
jakob-he/TADA
8db4e0af19b4a32c7071c175a21bbafe3b02cb31
[ "MIT" ]
3
2021-12-24T18:40:14.000Z
2022-03-05T22:22:38.000Z
tests/test_2_cnv_annotation.py
jakob-he/TADA
8db4e0af19b4a32c7071c175a21bbafe3b02cb31
[ "MIT" ]
1
2020-11-30T09:49:08.000Z
2021-05-14T12:28:04.000Z
tests/test_2_cnv_annotation.py
jakob-he/TADA
8db4e0af19b4a32c7071c175a21bbafe3b02cb31
[ "MIT" ]
2
2021-12-07T17:25:55.000Z
2021-12-24T18:40:16.000Z
"""Test the annotation of CNVs""" import io import sys import unittest import pickle import pathlib import yaml import tadacnv.lib.utils as utils import tadacnv.lib.preprocessing as preprocessing from tadacnv.annotate_cnvs import annotate
41.214286
292
0.697285
ec115fe1a2a4d72124bd94bbcc8e5a9b7e0ee2de
30,311
py
Python
pysnmp/BTI7800-INVENTORY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BTI7800-INVENTORY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BTI7800-INVENTORY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BTI7800-INVENTORY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BTI7800-INVENTORY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:24:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
114.381132
4,847
0.769853
ec12e98cc644839d7e6aaadb7ca7b24595f6ffa0
8,897
py
Python
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
#_*_ coding: UTF-8 _*_ from flask import request, redirect, render_template from application import app import wtforms import db import data_models import mailer import renderers import properties import views from role_types import RoleType import urls from . import grants from . import purchases STATE_REQUESTED =...
46.098446
112
0.725188
ec13fe98492730273c7c459f9bb522087bca7d2e
889
py
Python
patient_app/migrations/0006_auto_20200909_1921.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
1
2021-01-29T16:57:42.000Z
2021-01-29T16:57:42.000Z
patient_app/migrations/0006_auto_20200909_1921.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
null
null
null
patient_app/migrations/0006_auto_20200909_1921.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1 on 2020-09-09 19:21 import datetime from django.db import migrations, models
29.633333
109
0.605174
ec1403cf6f7b91861d5877a772a1b93da4045f15
2,332
py
Python
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
5
2022-03-21T12:39:01.000Z
2022-03-31T06:02:01.000Z
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
null
null
null
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
1
2022-03-26T02:58:58.000Z
2022-03-26T02:58:58.000Z
from dataclasses import dataclass from typing import Callable, Optional import numpy as np from scipy.spatial import Delaunay from ...data import TimeEncoder from ...domain import ( BoundaryAnglePredicate, CellPredicate, Domain, select_boundary_mesh_cells, ) def sample_mesh( config: MeshConfig,...
27.435294
85
0.690823
ec15071df1bf9ea9d459a13a9ce32f102c847633
1,245
py
Python
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
import os import community import pandas as pd import networkx as nx graphdf = pd.read_csv(os.path.join("..", "NetworkData", "fetchcontent.csv")) G = nx.from_pandas_edgelist(graphdf) partition = community.best_partition(G) # following code comes from https://medium.com/@adityagandhi.7/network-analysis-and-community-...
36.617647
162
0.767871
ec18386bf1e4f992e71d8f27e8056dac7297cb93
1,404
py
Python
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
import os import cv2 getFileList()
29.87234
92
0.581909
ec18cd1695ba62deebb499631731dcc890f6543b
7,647
py
Python
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# # transform.py -- coordinate transforms for Ginga # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import numpy as np from ginga import trcalc __all__ = ['TransformError', 'BaseTransform', 'ComposedTransform', 'CanvasWindowTransform', 'Cartes...
28.427509
78
0.613574
ec19b37d7cd7097b5f677c5e778aa0038e22318d
1,179
py
Python
problems/098.Validate_Binary_Search_Tree/li_inorder.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/098.Validate_Binary_Search_Tree/li_inorder.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/098.Validate_Binary_Search_Tree/li_inorder.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
# coding=utf-8 # Author: Jianghan LI # Question: 098.Validate_Binary_Search_Tree # Date: 2017-04-17 # Simple inorder traversal is quite slow.. # Yes, O(n) guaranteed, but do we have chance to "short circuit" as soon as # we find the incorrect ordering while doing the inOrder(). # So I modified the solution. # https:/...
26.2
84
0.619169
ec1afc2d097e9ba6dee27be5f9ffabe63e509327
1,179
py
Python
cronsense/main.py
nicwaller/cronsense
f8eebaf6604edb30c770380a798c2173041eb0fa
[ "MIT" ]
null
null
null
cronsense/main.py
nicwaller/cronsense
f8eebaf6604edb30c770380a798c2173041eb0fa
[ "MIT" ]
null
null
null
cronsense/main.py
nicwaller/cronsense
f8eebaf6604edb30c770380a798c2173041eb0fa
[ "MIT" ]
null
null
null
'''A cron wrapper that tells you more about your cron jobs ''' from __future__ import absolute_import from __future__ import print_function from .config import config from .logger import logger if __name__ == '__main__': main()
34.676471
103
0.69296
ec1cb933ea83bd23033b713c50c654940e1a7f32
1,771
py
Python
runtimes/alibi-explain/mlserver_alibi_explain/explainers/white_box_runtime.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
191
2020-06-16T18:07:27.000Z
2022-03-29T05:56:23.000Z
runtimes/alibi-explain/mlserver_alibi_explain/explainers/white_box_runtime.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
347
2020-08-21T02:22:04.000Z
2022-03-31T12:27:26.000Z
runtimes/alibi-explain/mlserver_alibi_explain/explainers/white_box_runtime.py
alexander-manley/MLServer
42eac4715f208f028a8920c984ab296830d90f08
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
56
2020-06-22T14:29:25.000Z
2022-03-25T21:58:48.000Z
from abc import ABC from typing import Any, Type from alibi.api.interfaces import Explainer from mlserver import ModelSettings from mlserver_alibi_explain.common import AlibiExplainSettings from mlserver_alibi_explain.runtime import AlibiExplainRuntimeBase
37.680851
82
0.722191
ec1e30101ec04ff986f4f441cf6da3dbede160cc
13,178
py
Python
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
Bhaskers-Blu-Org2/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
8
2019-08-05T20:28:45.000Z
2021-09-02T09:20:59.000Z
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
Bhaskers-Blu-Org2/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
3
2019-07-31T10:12:52.000Z
2021-09-13T12:01:51.000Z
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
easterapps/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
11
2019-07-31T12:58:14.000Z
2021-09-13T12:50:21.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39.573574
113
0.635074
ec1ec45da4dd0341da0c46ea4e27eea53aabbec2
676
py
Python
H01/Semaphore.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
H01/Semaphore.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
H01/Semaphore.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: h03.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """ import threading import time semaphore = threading.Semaphore(10) if __name__ == '__main__': ...
18.777778
79
0.640533
ec1ee81ce412cde25b50543e502ef0e9f4204892
16,523
py
Python
portal/models/intervention.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/models/intervention.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/models/intervention.py
uwcirg/truenth-portal
459a0d157982f010175c50b9cccd860a61790370
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
"""Intervention Module""" from flask import current_app from sqlalchemy import and_ from sqlalchemy.dialects.postgresql import ENUM from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm.exc import NoResultFound from werkzeug.exceptions import BadRequest from ..database import db from ..dict_tools impor...
38.159353
79
0.651516
ec1f0874784570485a2cb6d70a6752e769ab9710
3,156
py
Python
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
371
2018-03-15T00:26:23.000Z
2022-03-30T14:32:48.000Z
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
14
2018-03-23T08:03:02.000Z
2022-02-06T18:39:05.000Z
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
81
2018-03-15T00:54:46.000Z
2021-12-07T16:09:58.000Z
# DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited. # # This material is based upon work supported by the Assistant Secretary of Defense for Research and # Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, # findings, conclusions or recommendat...
36.697674
100
0.695501
ec1f28c2ec9b0b2ceb318ed55956b42468f20f98
491
py
Python
app/schemas.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/schemas.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
app/schemas.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
from .models import VirusData from app import ma # init marshmallow schema data_schema = DataSchema() datas_schema = DataSchema(many=True)
20.458333
42
0.682281
ec1feb9807faf84631629db4a3a466c150882506
14,080
py
Python
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
import sys import collections from queue import PriorityQueue from itertools import count from ai_solutions.graph_node import GraphNode """ points to pay attention - set is not serializable so use list at last step - checking advance debugging in python """ # source: https://towardsdatascience.com/a-star-a-search-alg...
34.594595
100
0.464063
ec212b4bab89667f0bd94d6a9a7ed05d39f3098c
4,998
py
Python
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
107
2020-09-07T01:06:37.000Z
2022-03-31T04:16:51.000Z
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
9
2020-09-09T06:49:03.000Z
2022-03-25T18:19:57.000Z
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
29
2020-09-10T16:26:33.000Z
2022-03-16T08:15:41.000Z
import argparse from distutils.util import strtobool import json import os import pickle import numpy as np import tensorflow as tf import pdb from softlearning.environments.utils import get_environment_from_params from softlearning.policies.utils import get_policy_from_variant # from softlearning.samplers import rol...
31.2375
88
0.622649
ec21a2f2b80af73693b16e92ab450451f7f0d1b4
2,566
py
Python
test_mask_rcnn_bdd.py
sxhxliang/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-12-17T14:18:00.000Z
2019-12-17T14:18:00.000Z
test_mask_rcnn_bdd.py
sxhxliang/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-04-29T04:05:51.000Z
2019-04-29T04:05:51.000Z
test_mask_rcnn_bdd.py
AaronLeong/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-04-28T11:53:40.000Z
2019-04-28T11:53:40.000Z
from matplotlib import pyplot as plt from gluoncv import model_zoo, data, utils import mxnet as mx import numpy as np from PIL import Image import json from tqdm import tqdm # epoch = 1 save_path = '/data1/datasets/bdd100k/testB_result/' test_path = '/data1/datasets/bdd100k/images/100k/test2018/' test_json = [] CLAS...
33.763158
111
0.622759
ec21accf9670823d9e86649f1391298f34bb5e19
300
py
Python
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
3
2018-03-11T14:10:59.000Z
2019-01-23T12:34:27.000Z
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
null
null
null
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': input = int(input()) output = 0 temp = input while True: temp = temp % 10 * 10 + (int(temp / 10) + temp % 10) % 10 output += 1 if input == temp: break print(output)
18.75
65
0.43
ec21d79eb0f508eab1e4d4b450e489d5d2153f80
1,222
py
Python
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import absolute_import import scipy.misc import glob import scipy import utils import tensorflow as tf """ param """ epoch = 50 batch_size = 64 lr = 0.0002 z_dim = 100 n_critic = 5 gpu_id = 3 ''' data ''' # you should prepare yo...
22.62963
117
0.739771
ec2292a307aabbcf6f5e4ccd767c69ef19ef7823
153
py
Python
gifts/urls.py
Sahil1515/First-Wish-Website
de973f2a5c682b142c6faba4b127e4d83291dac5
[ "MIT" ]
null
null
null
gifts/urls.py
Sahil1515/First-Wish-Website
de973f2a5c682b142c6faba4b127e4d83291dac5
[ "MIT" ]
null
null
null
gifts/urls.py
Sahil1515/First-Wish-Website
de973f2a5c682b142c6faba4b127e4d83291dac5
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from gifts import views urlpatterns = [ path('', views.gifts, name='gifts') ]
12.75
39
0.69281
ec22caa7cd01e65afec1f8798f9973d911f36787
3,824
py
Python
seymour/accounts/models.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
seymour/accounts/models.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
seymour/accounts/models.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
import datetime from django.db import models, connection from seymour.feeds.models import Feed, Item, AccountFeed
37.490196
131
0.613494
ec2449d25cfbee043e9bd16a7015de541580d5ac
1,098
py
Python
examples/spring_mass/mcmc_verify/spring_mass_mcmc.py
HarshilShrivastava/SMCPy
e3c958023aab3f3143e70de5a52e3c195e536dd1
[ "NASA-1.3" ]
1
2020-02-11T22:37:43.000Z
2020-02-11T22:37:43.000Z
examples/spring_mass/mcmc_verify/spring_mass_mcmc.py
HarshilShrivastava/SMCPy
e3c958023aab3f3143e70de5a52e3c195e536dd1
[ "NASA-1.3" ]
null
null
null
examples/spring_mass/mcmc_verify/spring_mass_mcmc.py
HarshilShrivastava/SMCPy
e3c958023aab3f3143e70de5a52e3c195e536dd1
[ "NASA-1.3" ]
null
null
null
import numpy as np from smcpy.smc.smc_sampler import SMCSampler from smcpy.mcmc.mcmc_sampler import MCMCSampler import sys sys.path.append('../') from spring_mass_model import SpringMassModel # Initialize model state0 = [0., 0.] #initial conditions measure_t_grid = np.arange(0., 5., 0.2) #tim...
27.45
79
0.696721
ec24678a1a7f721fdf069408e673247022f3c8a5
4,463
py
Python
dqn/AutoEncoder/simple_replay_memory.py
NoListen/ERL
6216cccd5144fc3514db890d343fd4187f275c81
[ "MIT" ]
16
2017-07-03T06:48:17.000Z
2021-09-02T04:42:04.000Z
dqn/AutoEncoder/simple_replay_memory.py
NoListen/ERL
6216cccd5144fc3514db890d343fd4187f275c81
[ "MIT" ]
1
2018-01-08T15:26:52.000Z
2018-01-08T18:37:35.000Z
dqn/AutoEncoder/simple_replay_memory.py
NoListen/ERL
6216cccd5144fc3514db890d343fd4187f275c81
[ "MIT" ]
4
2017-07-26T22:34:01.000Z
2020-04-11T15:04:02.000Z
""" This if for autoencoder not the RL-agent to learn Just Serve as one buffer """ import os import random import logging import numpy as np from dqn.utils import save_npy, load_npy # At first fill the replay buffer, then sample to learn. import numpy as np
33.810606
99
0.588618
ec25c2f31a3bb3c2ba005535c0d2769771012650
932
py
Python
run_attack_classification.py
justusmattern/dist-embeds
2a5fd97bcfc3eed5c7f11e76d82c4ff49709cbe8
[ "MIT" ]
null
null
null
run_attack_classification.py
justusmattern/dist-embeds
2a5fd97bcfc3eed5c7f11e76d82c4ff49709cbe8
[ "MIT" ]
null
null
null
run_attack_classification.py
justusmattern/dist-embeds
2a5fd97bcfc3eed5c7f11e76d82c4ff49709cbe8
[ "MIT" ]
null
null
null
import os # for wordLSTM target command = 'python attack_classification.py --dataset_path data/mr/test.txt ' \ '--target_model wordLSTM --batch_size 128 ' \ '--target_model_path model_nondist.pt ' \ '--word_embeddings_path data/glove.6B.200d.txt ' \ '--counter_fitting_embedd...
42.363636
81
0.664163
ec2aed547019ea718fa0b562ff4098ff83dbf1cb
3,242
py
Python
tests/test_ideal_gas_flow.py
aanish94/apsCFD
51ac84926d691ec80a46e877302ccbe47281f8f4
[ "MIT" ]
4
2021-01-22T14:17:17.000Z
2021-01-23T16:29:41.000Z
tests/test_ideal_gas_flow.py
aanish94/apsCFD
51ac84926d691ec80a46e877302ccbe47281f8f4
[ "MIT" ]
4
2018-02-01T05:40:09.000Z
2018-02-02T07:35:11.000Z
tests/test_ideal_gas_flow.py
aanish94/apsCFD
51ac84926d691ec80a46e877302ccbe47281f8f4
[ "MIT" ]
1
2021-01-22T02:14:49.000Z
2021-01-22T02:14:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Test ideal gas flow calculations """ import unittest from utils.utils import deg_to_rad from ideal_gas_flow import (isentropic, normal_shock, rayleigh, prandtl_meyer, oblique_shock) if __name__ == "__main__": unittest.main()
33.081633
95
0.639729
ec2b8f23f26b48259c53767971ede949f67de8b4
3,221
py
Python
xcube/core/gen2/local/writer.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
97
2018-06-26T13:02:55.000Z
2022-03-26T21:03:13.000Z
xcube/core/gen2/local/writer.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
524
2018-11-09T12:00:08.000Z
2022-03-31T17:00:13.000Z
xcube/core/gen2/local/writer.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
15
2019-07-09T08:46:03.000Z
2022-02-07T18:47:34.000Z
# The MIT License (MIT) # Copyright (c) 2021 by the xcube development team and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation...
43.527027
81
0.671531
ec2c1d965129d29e1fe37c940c1a59e29fefae6c
3,276
py
Python
dimension_reduction_techniques/n_49300.py
benstear/vae-scRNA
5fb4d0fd38810d86bd69130b911817432cb6facc
[ "MIT" ]
null
null
null
dimension_reduction_techniques/n_49300.py
benstear/vae-scRNA
5fb4d0fd38810d86bd69130b911817432cb6facc
[ "MIT" ]
null
null
null
dimension_reduction_techniques/n_49300.py
benstear/vae-scRNA
5fb4d0fd38810d86bd69130b911817432cb6facc
[ "MIT" ]
1
2022-01-30T17:54:30.000Z
2022-01-30T17:54:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Oct 17 19:57:23 2018 @author: dawnstear """ from sklearn.manifold import TSNE from sklearn.decomposition import PCA import pandas as pd from matplotlib.pyplot import scatter, figure, subplot, savefig import matplotlib.pyplot as plt from sklearn.utils i...
31.2
148
0.657509
ec2f222af58da2bc64e5b28bba59ebdceae5e124
4,148
py
Python
tests/test_subspaces.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
33
2019-12-05T15:20:26.000Z
2022-03-27T17:53:57.000Z
tests/test_subspaces.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
12
2020-03-23T08:54:32.000Z
2021-11-07T14:33:04.000Z
tests/test_subspaces.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
16
2019-12-05T14:10:57.000Z
2021-07-30T14:12:10.000Z
from unittest import TestCase import numpy as np from athena.subspaces import Subspaces
32.40625
72
0.5892
ec300133e36d8c7c6858a83eca5e80abaa22a5dc
1,131
py
Python
premium/backend/src/baserow_premium/api/license/urls.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
1
2022-01-24T15:12:02.000Z
2022-01-24T15:12:02.000Z
premium/backend/src/baserow_premium/api/license/urls.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
premium/backend/src/baserow_premium/api/license/urls.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
from django.conf.urls import re_path from .views import ( AdminLicensesView, AdminLicenseView, AdminLicenseFillSeatsView, AdminRemoveAllUsersFromLicenseView, AdminLicenseUserView, AdminLicenseLookupUsersView, AdminCheckLicense, ) app_name = "baserow_premium.api.license" urlpatterns = [ ...
25.133333
75
0.591512
ec330b8bd3eee04a448cd277aee3a50bec98e49d
2,052
py
Python
redirect_server/main.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
2
2022-03-16T10:18:38.000Z
2022-03-16T13:08:51.000Z
redirect_server/main.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
1
2022-03-16T12:52:28.000Z
2022-03-16T13:08:30.000Z
redirect_server/main.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
4
2022-03-16T09:33:05.000Z
2022-03-30T05:46:58.000Z
""" This is redirect server for https://oauth.gitflic.ru/oauth/authorize Base URL: https://gitflic.santaspeen.ru/ Author: @SantaSpeen License: MIT """ import json import random from string import ascii_letters, digits from flask import Flask, request, redirect, abort app = Flask("gitflic oauth redirec...
28.109589
107
0.615984
ec344b7aa9b7b7dc268010d8de19cfb167034b6e
5,241
py
Python
applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/extras/packaging/language/cpanm.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
1
2020-10-14T00:06:54.000Z
2020-10-14T00:06:54.000Z
applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/extras/packaging/language/cpanm.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
null
null
null
applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/extras/packaging/language/cpanm.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
2
2015-08-06T07:45:48.000Z
2017-01-04T17:47:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Franck Cuny <franck@lumberjaph.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the L...
33.170886
126
0.672582
ec34fcd27c4d0849f4617b2ff48d291c0d3e7793
5,877
py
Python
python/pong.py
rajszym/Pong
ddf6e3a9853ce9d3487636f32b408677b4487210
[ "MIT" ]
null
null
null
python/pong.py
rajszym/Pong
ddf6e3a9853ce9d3487636f32b408677b4487210
[ "MIT" ]
null
null
null
python/pong.py
rajszym/Pong
ddf6e3a9853ce9d3487636f32b408677b4487210
[ "MIT" ]
null
null
null
import os, sys, pygame White = (0xFF, 0xFF, 0xFF) Red = (0xFF, 0x00, 0x00) Yellow = (0xFF, 0xFF, 0x00) Green = (0x00, 0xFF, 0x00) Blue = (0x00, 0x00, 0xFF) Black = (0x00, 0x00, 0x00) BKG = Black def showInfo(): font = pygame.font.Font(None, 24) text = font.render(str(score), 1, White) rect = text.get_...
26.835616
75
0.652714
ec36f77c91a8f8042240f5809fbfdc767c72da16
46
py
Python
game/components/__init__.py
MarsRaptor/battleships
81e0a595c05f627de568dad49904be99f0cbf6ac
[ "MIT" ]
null
null
null
game/components/__init__.py
MarsRaptor/battleships
81e0a595c05f627de568dad49904be99f0cbf6ac
[ "MIT" ]
null
null
null
game/components/__init__.py
MarsRaptor/battleships
81e0a595c05f627de568dad49904be99f0cbf6ac
[ "MIT" ]
null
null
null
from .ships import * from .battlegrid import *
23
25
0.76087
ec375bc4d8ef16784bec0fbac23a1ea72eb34608
13,406
py
Python
RL-snake/main.py
Yashprime1/RL--Snake
9eb1a6306bad83c263f2fec7752d2d772860990c
[ "MIT" ]
null
null
null
RL-snake/main.py
Yashprime1/RL--Snake
9eb1a6306bad83c263f2fec7752d2d772860990c
[ "MIT" ]
null
null
null
RL-snake/main.py
Yashprime1/RL--Snake
9eb1a6306bad83c263f2fec7752d2d772860990c
[ "MIT" ]
null
null
null
import pygame import random import random import itertools import json import os import matplotlib.pyplot as plt from IPython import display plt.ion() ###### Initialization ###### # For screen dimension_x=200 dimension_y=200 # For snake snake_color=(0,0,255) #blue head_x=int(dimension_x/2) head_y=int(dimensio...
31.84323
292
0.635313
ec39ff5313fd7c3fd2b71acde83c9cf8579b9481
4,999
py
Python
backend/boards/models.py
xelam11/TaskPlanner
c1e940d2a9babba7721c0f2d261e1c7df9c48581
[ "BSD-3-Clause" ]
null
null
null
backend/boards/models.py
xelam11/TaskPlanner
c1e940d2a9babba7721c0f2d261e1c7df9c48581
[ "BSD-3-Clause" ]
null
null
null
backend/boards/models.py
xelam11/TaskPlanner
c1e940d2a9babba7721c0f2d261e1c7df9c48581
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from users.models import CustomUser
34.475862
77
0.468894
ec3a1ba3d6ddeb0aa249439a8c2888cd61f0d04f
1,605
py
Python
extractcondo.py
mattyschell/geodatabase-buildings-condoetl
b9be05f749d3c1d7c7dec2f86bbc8776141a93bf
[ "CC0-1.0" ]
null
null
null
extractcondo.py
mattyschell/geodatabase-buildings-condoetl
b9be05f749d3c1d7c7dec2f86bbc8776141a93bf
[ "CC0-1.0" ]
4
2021-08-31T18:27:25.000Z
2021-09-17T20:26:43.000Z
extractcondo.py
mattyschell/geodatabase-buildings-condoetl
b9be05f749d3c1d7c7dec2f86bbc8776141a93bf
[ "CC0-1.0" ]
null
null
null
import os import logging import time import pathlib import condo if __name__ == '__main__': psourcesdeconn = os.environ['SDEFILE'] timestr = time.strftime("%Y%m%d-%H%M%S") retval = 1 try: targetlog = os.path.join(os.environ['TARGETLOGDIR'] ,'extra...
25.887097
87
0.545794
ec3aa0d2e05680652a1c6c5556aeb676e5bb64da
141
py
Python
sahi/scripts/predict_fiftyone.py
agat59/sahil6
1f413d3cba7fe058f663f8e0ff8c72981817c325
[ "MIT" ]
11
2022-02-21T23:00:02.000Z
2022-03-11T02:55:07.000Z
sahi/scripts/predict_fiftyone.py
agat59/sahil6
1f413d3cba7fe058f663f8e0ff8c72981817c325
[ "MIT" ]
1
2022-03-11T13:48:28.000Z
2022-03-11T13:48:28.000Z
sahi/scripts/predict_fiftyone.py
Kazuhito00/sahi-yolox-onnx-sample
2019a35522d6b1add49fce6933def860bed39bc2
[ "MIT" ]
1
2021-12-01T12:01:05.000Z
2021-12-01T12:01:05.000Z
import fire from sahi.predict import predict_fiftyone if __name__ == "__main__": main()
11.75
41
0.70922
ec3ac3aaff08cf33fd3407062e48c690f394ad7a
149
py
Python
reagent/test/environment/__init__.py
cts198859/ReAgent
20f3d333821bad364fd567cce97de51c44123484
[ "BSD-3-Clause" ]
1
2020-06-30T16:57:47.000Z
2020-06-30T16:57:47.000Z
reagent/test/environment/__init__.py
OregonWebSells/ReAgent
866f91785ca86db32fb67744aa063fe77791ff21
[ "BSD-3-Clause" ]
null
null
null
reagent/test/environment/__init__.py
OregonWebSells/ReAgent
866f91785ca86db32fb67744aa063fe77791ff21
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging logger = logging.getLogger(__name__)
21.285714
71
0.758389
ec3b0f1dfb39b25fc236995951ab1bc52cc30f8b
690
py
Python
MarketData/testMKup.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/testMKup.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/testMKup.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Sep 27 08:11:48 2014 @author: space_000 """ from scipy.io import loadmat from WindPy import w import pymongo as mg from wsiTools import findDate from mgWsi import upiter d=loadmat('D:\FieldSHSZ') Field=d['Field'].tolist() stride=100 numF=range(len(Field))[::stride] dt=load...
20.294118
124
0.678261
ec3c2240f0d4e50a74ef174a4b79ed9be0810b76
1,976
py
Python
test_regress.py
irskep/zhang-shasha
b108f6bb14409b87c44bf45ffd9a038475a9379a
[ "BSD-3-Clause" ]
1
2021-08-12T19:38:44.000Z
2021-08-12T19:38:44.000Z
test_regress.py
irskep/zhang-shasha
b108f6bb14409b87c44bf45ffd9a038475a9379a
[ "BSD-3-Clause" ]
null
null
null
test_regress.py
irskep/zhang-shasha
b108f6bb14409b87c44bf45ffd9a038475a9379a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Author: Tim Henderson #Email: tim.tadh@hackthology.com #For licensing see the LICENSE file in the top level directory. import unittest, os, sys, base64, itertools, random, time, copy import copy, collections from random import randint, seed, shuffle from zss import compa...
22.202247
63
0.480769
ec3e15a3f0d2a5295e65513f4e182448baf2f725
180
py
Python
tracardi/process_engine/destination/rabbitmq_connector.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
null
null
null
tracardi/process_engine/destination/rabbitmq_connector.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
null
null
null
tracardi/process_engine/destination/rabbitmq_connector.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
null
null
null
from tracardi.process_engine.destination.connector import Connector
18
67
0.755556
ec3ed91b0547d338c06ce42617025e071787d68a
4,585
py
Python
dokdo/api/beta_3d_plot.py
sbslee/dokdo
a528a830b3347c39e1dc415b0f3e2c6ad60b0a1d
[ "MIT" ]
23
2020-11-01T21:55:30.000Z
2021-12-05T14:03:05.000Z
dokdo/api/beta_3d_plot.py
sbslee/dokdo
a528a830b3347c39e1dc415b0f3e2c6ad60b0a1d
[ "MIT" ]
25
2020-11-25T23:24:23.000Z
2022-03-30T04:40:45.000Z
dokdo/api/beta_3d_plot.py
sbslee/dokdo
a528a830b3347c39e1dc415b0f3e2c6ad60b0a1d
[ "MIT" ]
7
2020-11-27T06:46:47.000Z
2021-09-25T03:26:07.000Z
from . import common import pandas as pd import matplotlib.pyplot as plt from skbio.stats.ordination import OrdinationResults from qiime2 import Artifact def beta_3d_plot( artifact, metadata=None, hue=None, azim=-60, elev=30, s=80, ax=None, figsize=None, hue_order=None ): """ Create a 3D scatter plot ...
32.062937
114
0.532606
ec3edfbe3bdf65ebc6cecba5e84ff7e63361940c
9,682
py
Python
Human-Falling-Detect-Tracks/Actionsrecognition/Models.py
mathemusician/IncidenceReporting
d1cb747ecdbad641276981133a78813f878c89f3
[ "MIT" ]
2
2021-10-02T19:56:32.000Z
2021-10-02T21:31:26.000Z
Human-Falling-Detect-Tracks/Actionsrecognition/Models.py
mathemusician/IncidenceReporting
d1cb747ecdbad641276981133a78813f878c89f3
[ "MIT" ]
null
null
null
Human-Falling-Detect-Tracks/Actionsrecognition/Models.py
mathemusician/IncidenceReporting
d1cb747ecdbad641276981133a78813f878c89f3
[ "MIT" ]
1
2021-10-02T21:46:08.000Z
2021-10-02T21:46:08.000Z
### Reference from: https://github.com/yysijie/st-gcn/tree/master/net import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from Actionsrecognition.Utils import Graph
37.527132
92
0.575088
ec3fe1d1b9136cf779530748aa16a309021ed5cb
4,572
py
Python
baselines_pharmaco_nontrainable.py
francescobarbara/idad
7931daeec5ae7db0c212d0b13f3c13d4784ecfdb
[ "MIT" ]
3
2021-11-03T07:30:16.000Z
2021-12-18T16:26:14.000Z
baselines_pharmaco_nontrainable.py
francescobarbara/idad
7931daeec5ae7db0c212d0b13f3c13d4784ecfdb
[ "MIT" ]
null
null
null
baselines_pharmaco_nontrainable.py
francescobarbara/idad
7931daeec5ae7db0c212d0b13f3c13d4784ecfdb
[ "MIT" ]
3
2022-01-31T10:21:38.000Z
2022-03-04T23:56:58.000Z
import os import math import argparse from tqdm import tqdm import pandas as pd import torch import torch.nn as nn import pyro import mlflow from pharmacokinetic import Pharmacokinetic from experiment_tools.pyro_tools import auto_seed from experiment_tools.output_utils import get_mlflow_meta from estimators.mi import...
33.617647
88
0.667323
ec424d0484b0678464ceb56aac0631a916e0e37d
311
py
Python
bot/config.py
i-dubits/tg-bot-style
798b42b2892307a668cc676be216634e7a7cf7de
[ "BSD-3-Clause" ]
null
null
null
bot/config.py
i-dubits/tg-bot-style
798b42b2892307a668cc676be216634e7a7cf7de
[ "BSD-3-Clause" ]
null
null
null
bot/config.py
i-dubits/tg-bot-style
798b42b2892307a668cc676be216634e7a7cf7de
[ "BSD-3-Clause" ]
null
null
null
TOKEN = '' # your token should be here file_path_to_download = './images/' checkpoint_dir = './scripts/checkpoints/' nst_state_dict = './nst/vgg19-dcbb9e9d.pth' # you should download an vgg19 dict from here https://download.pytorch.org/models/vgg19-dcbb9e9d.pth
28.272727
144
0.639871
ec4317b372f61389880e4f9eb445952855478c5e
1,126
py
Python
app/errors/__init__.py
vnappmob/vapi
ab7e8ecdb459227084c8f1dd65e18f5d668b1c43
[ "MIT" ]
null
null
null
app/errors/__init__.py
vnappmob/vapi
ab7e8ecdb459227084c8f1dd65e18f5d668b1c43
[ "MIT" ]
null
null
null
app/errors/__init__.py
vnappmob/vapi
ab7e8ecdb459227084c8f1dd65e18f5d668b1c43
[ "MIT" ]
null
null
null
"""app/errors.py""" from flask import render_template, Blueprint, make_response, jsonify from werkzeug.http import HTTP_STATUS_CODES bp = Blueprint('errors', __name__) #pylint: disable=C def error_response(status_code, message=None): """error_response""" payload = { 'error': str(status_code)...
22.52
68
0.675844
ec431f839118040109012d9dbffe4ec8364d62fb
3,700
py
Python
bglcapi/bgapi/sm/cmd.py
edgebr/python-bgapi
0aeb525edf605e892b20f5c3fb11269cce0c5bdf
[ "MIT" ]
null
null
null
bglcapi/bgapi/sm/cmd.py
edgebr/python-bgapi
0aeb525edf605e892b20f5c3fb11269cce0c5bdf
[ "MIT" ]
null
null
null
bglcapi/bgapi/sm/cmd.py
edgebr/python-bgapi
0aeb525edf605e892b20f5c3fb11269cce0c5bdf
[ "MIT" ]
null
null
null
from struct import pack from bglcapi.base_command import command from bglcapi.types import (MessageType, MessageClass)
29.6
65
0.73027
ec437c281a42860d829cd0668161ff24325efb64
363
py
Python
products/migrations/0003_rename_uodated_at_product_updated_at.py
flyguy21206/Price-Comparison-Group3-BE-1
7e03e1fc99892baf0da714bde1767a5e1060a714
[ "MIT" ]
null
null
null
products/migrations/0003_rename_uodated_at_product_updated_at.py
flyguy21206/Price-Comparison-Group3-BE-1
7e03e1fc99892baf0da714bde1767a5e1060a714
[ "MIT" ]
1
2021-07-26T00:06:07.000Z
2021-07-26T00:06:07.000Z
products/migrations/0003_rename_uodated_at_product_updated_at.py
flyguy21206/Price-Comparison-Group3-BE-1
7e03e1fc99892baf0da714bde1767a5e1060a714
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-07-14 20:25 from django.db import migrations
19.105263
47
0.584022
ec43f38ce7e8616b6ecbb84b8e45c133aaf66327
2,849
py
Python
blog/projectCode.py
iloveyougit/ylink2
a87d8fde79ab259012cd6486299fcf86e1afc740
[ "MIT" ]
null
null
null
blog/projectCode.py
iloveyougit/ylink2
a87d8fde79ab259012cd6486299fcf86e1afc740
[ "MIT" ]
null
null
null
blog/projectCode.py
iloveyougit/ylink2
a87d8fde79ab259012cd6486299fcf86e1afc740
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from django.shortcuts import render from django.utils import timezone from .models import Post,views from django.shortcuts import render, get_object_or_404 from .forms import PostForm import youtube_dl from django.core.files import File from .models import FileSaver import codecs...
32.747126
100
0.531064
ec442408ef5cfbb32ec2566e55d4fa5067d76b3e
1,042
py
Python
tests/test_helper.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
8
2019-10-30T08:07:44.000Z
2020-11-13T08:02:36.000Z
tests/test_helper.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
342
2019-02-14T15:53:31.000Z
2020-11-03T18:11:27.000Z
tests/test_helper.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
5
2021-04-28T17:05:16.000Z
2022-03-31T23:11:22.000Z
"""Small helper classes for testing.""" import typing as tp import plumbum as pb from benchbuild.source import Variant, FetchableSource
26.717949
69
0.652591
ec45f10d301fdd0d325a8177f688357eddd958d5
33,366
py
Python
reference_kernels/PetFinder Slow and Steady Feature Building.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
1
2019-01-24T04:22:39.000Z
2019-01-24T04:22:39.000Z
reference_kernels/PetFinder Slow and Steady Feature Building.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
null
null
null
reference_kernels/PetFinder Slow and Steady Feature Building.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
null
null
null
''' If you find this useful, please give a thumbs up! Thanks! - Claire & Alhan https://github.com/alhankeser/kaggle-petfinder ''' # External libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # from sklearn.linear_model import LogisticRegression from sklearn.ensemb...
35.723769
102
0.543457
ec4649677b2490023b21a9d452d053eff7e18fef
58,219
py
Python
bin/backup.py
TechGeek01/BackDrop
9f72bcc4027df6bfa64b645cd6eb0e4148ae5557
[ "MIT" ]
49
2020-09-12T13:04:40.000Z
2022-03-04T16:48:26.000Z
bin/backup.py
TechGeek01/BackDrop
9f72bcc4027df6bfa64b645cd6eb0e4148ae5557
[ "MIT" ]
1
2021-03-12T03:14:31.000Z
2021-03-12T03:14:31.000Z
bin/backup.py
TechGeek01/BackDrop
9f72bcc4027df6bfa64b645cd6eb0e4148ae5557
[ "MIT" ]
1
2021-03-21T19:01:13.000Z
2021-03-21T19:01:13.000Z
from tkinter import messagebox import os import itertools from datetime import datetime import shutil import pickle from bin.fileutils import human_filesize, get_directory_size from bin.color import bcolor from bin.threadmanager import ThreadManager from bin.config import Config from bin.status import Status
51.796263
279
0.571892
ec4668ea105fe43b89baef884539542d10b494a5
1,134
py
Python
From Another World/bullet.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
From Another World/bullet.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
From Another World/bullet.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
import pygame from pygame.sprite import Sprite
34.363636
90
0.638448
ec4acbb13573dbfd3ec65423e098e4ec53a68a25
20
py
Python
test/try.py
realjiangjiapeng/killing-time
ad9c60953b623e6701170a4d823afb492f6a0140
[ "Apache-2.0" ]
null
null
null
test/try.py
realjiangjiapeng/killing-time
ad9c60953b623e6701170a4d823afb492f6a0140
[ "Apache-2.0" ]
null
null
null
test/try.py
realjiangjiapeng/killing-time
ad9c60953b623e6701170a4d823afb492f6a0140
[ "Apache-2.0" ]
null
null
null
print ('HELLO JJP')
10
19
0.65
ec4d41b5339a13570027a14f5668646325d52607
1,648
py
Python
tcc_rpi/adafruit_mcp3008.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
1
2016-09-29T22:39:31.000Z
2016-09-29T22:39:31.000Z
tcc_rpi/adafruit_mcp3008.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
null
null
null
tcc_rpi/adafruit_mcp3008.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
null
null
null
import time import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) # read SPI data from MCP3008 chip, 8 possible adc's (0 thru 7) # change these as desired - they're the pins connected from the # SPI port on the ADC to the Cobbler SPICLK = 11 SPIMISO = 9 SPIMOSI = 10 SPICS = 22 GPIO.setwarnings(False) # set up t...
21.684211
66
0.695995
ec4ed3cf60eb8edf8d45b20754549aa35c4fac16
237
py
Python
core/templatetags/core_tags.py
samshultz/techbitsdata
753309cbfee7bfa9a08804786f29b37f2b058436
[ "BSD-3-Clause" ]
null
null
null
core/templatetags/core_tags.py
samshultz/techbitsdata
753309cbfee7bfa9a08804786f29b37f2b058436
[ "BSD-3-Clause" ]
null
null
null
core/templatetags/core_tags.py
samshultz/techbitsdata
753309cbfee7bfa9a08804786f29b37f2b058436
[ "BSD-3-Clause" ]
null
null
null
from django import template from ..models import HomePage register = template.Library()
19.75
45
0.734177
ec50387d2267d7e50a0c69f978fb2011b6de161c
1,720
py
Python
apps/poker/views/settings.py
deniskrumko/izyan-poker
ce70c9c8f761409adad289809e5220237b312407
[ "MIT" ]
6
2019-08-05T07:37:52.000Z
2021-12-30T20:07:01.000Z
apps/poker/views/settings.py
deniskrumko/izyan-poker
ce70c9c8f761409adad289809e5220237b312407
[ "MIT" ]
8
2019-10-25T11:07:03.000Z
2021-06-10T18:43:42.000Z
apps/poker/views/settings.py
deniskrumko/izyan-poker
ce70c9c8f761409adad289809e5220237b312407
[ "MIT" ]
1
2019-10-07T15:44:26.000Z
2019-10-07T15:44:26.000Z
from core.views import BaseView, LoginRequiredMixin from ..models import PokerMember, PokerRoom
29.655172
77
0.591279
ec514a23b742340bf44e16e67b44d06088405dd5
31
py
Python
hyperhdr/__init__.py
mjoshd/hypehdr-py
3810c53c9fe886f24709ef84dd8f18cb73ed5ef6
[ "MIT" ]
null
null
null
hyperhdr/__init__.py
mjoshd/hypehdr-py
3810c53c9fe886f24709ef84dd8f18cb73ed5ef6
[ "MIT" ]
null
null
null
hyperhdr/__init__.py
mjoshd/hypehdr-py
3810c53c9fe886f24709ef84dd8f18cb73ed5ef6
[ "MIT" ]
null
null
null
"""HyperHDR Client package."""
15.5
30
0.677419
ec545f5cfc4fcdee419e0c7a9b54b019429904f9
6,268
py
Python
test/phase_descriptor_test.py
frankalicious/openhtf
f74740065eac9b1af96638f100b816ec773f084b
[ "Apache-2.0" ]
null
null
null
test/phase_descriptor_test.py
frankalicious/openhtf
f74740065eac9b1af96638f100b816ec773f084b
[ "Apache-2.0" ]
null
null
null
test/phase_descriptor_test.py
frankalicious/openhtf
f74740065eac9b1af96638f100b816ec773f084b
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google 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 required by applicable law or agre...
32.989474
80
0.757339
ec58e48e50bae8cea63a104f2bb6e36683806f7e
954
py
Python
eureka/lib/models_c/py_func/fixipmapping.py
iancrossfield/Eureka
88b178d1b830c16915045b6387cf91955e0071e2
[ "MIT" ]
null
null
null
eureka/lib/models_c/py_func/fixipmapping.py
iancrossfield/Eureka
88b178d1b830c16915045b6387cf91955e0071e2
[ "MIT" ]
null
null
null
eureka/lib/models_c/py_func/fixipmapping.py
iancrossfield/Eureka
88b178d1b830c16915045b6387cf91955e0071e2
[ "MIT" ]
null
null
null
def fixipmapping(ipparams, posflux, etc = [], retbinflux = False, retbinstd = False): """ This function returns the fixed best-fit intra-pixel mapping. Parameters ---------- ipparams : tuple unused bestmip : 1D array, size = # of measurements Best-fit ip mapping ...
26.5
85
0.584906
ec5935855d0506591f11a5c9e27865542c48e32b
528
py
Python
tests/wrapper/testsuite.py
gimbas/openinput
9cbb4b22aebe46dfc33ae9c56b164baa6c1fe693
[ "MIT" ]
38
2020-05-11T10:54:15.000Z
2022-03-30T13:19:09.000Z
tests/wrapper/testsuite.py
gimbas/openinput
9cbb4b22aebe46dfc33ae9c56b164baa6c1fe693
[ "MIT" ]
45
2020-04-21T23:52:22.000Z
2022-02-19T20:29:27.000Z
tests/wrapper/testsuite.py
gimbas/openinput
9cbb4b22aebe46dfc33ae9c56b164baa6c1fe693
[ "MIT" ]
5
2020-08-29T02:10:42.000Z
2021-08-31T03:12:15.000Z
# SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2021 Filipe Lans <lains@riseup.net> from typing import List, Set import _testsuite import pages
22
66
0.617424
6b4d9a6e0e5c5d86e75fae6c447399df838120d1
1,899
py
Python
tests/test_api_custom_records.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
44
2017-03-18T08:08:04.000Z
2021-11-10T16:11:15.000Z
tests/test_api_custom_records.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
22
2017-04-04T21:20:31.000Z
2022-03-09T19:05:30.000Z
tests/test_api_custom_records.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
5
2017-07-07T02:56:56.000Z
2020-09-30T20:10:49.000Z
import gfapy import unittest
35.166667
77
0.685097
6b4e1b1bc987c52d6c0e7593fd09888aadeb2e7c
2,562
py
Python
apps/pet/models.py
glenjasper/cobija-web
9a623daae9fba1b423b8fd690a25139ed8d06d7c
[ "MIT" ]
null
null
null
apps/pet/models.py
glenjasper/cobija-web
9a623daae9fba1b423b8fd690a25139ed8d06d7c
[ "MIT" ]
null
null
null
apps/pet/models.py
glenjasper/cobija-web
9a623daae9fba1b423b8fd690a25139ed8d06d7c
[ "MIT" ]
null
null
null
from django.db import models from auditlog.registry import auditlog from apps.core.models import ( TypePet, PetSize, PetColor, ) from apps.partner.models import Partner auditlog.register(Pet) auditlog.register(PetPhoto)
44.172414
149
0.684621
6b4fc78528b44e95eeb827b77773dc7dd92da655
42
py
Python
src/asphalt/__main__.py
agronholm/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
226
2015-08-19T16:57:32.000Z
2022-03-31T22:28:18.000Z
src/asphalt/__main__.py
Asphalt-framework/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
31
2015-09-05T11:18:33.000Z
2019-03-25T10:51:17.000Z
src/asphalt/__main__.py
Asphalt-framework/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
11
2015-09-04T21:43:34.000Z
2017-12-08T19:06:20.000Z
from asphalt.core.cli import main main()
10.5
33
0.761905
6b50bc21a879c10d78635d8cfc74815310051f21
171
py
Python
examples/todo_app/app/main/__init__.py
MarkoShiva/quart
f6709c6082a3cab9dffdcd937122f4d65a5990f7
[ "MIT" ]
1,085
2017-11-12T10:56:50.000Z
2022-03-31T15:14:26.000Z
examples/todo_app/app/main/__init__.py
MarkoShiva/quart
f6709c6082a3cab9dffdcd937122f4d65a5990f7
[ "MIT" ]
139
2017-12-04T09:22:48.000Z
2022-03-26T08:34:07.000Z
examples/todo_app/app/main/__init__.py
MarkoShiva/quart
f6709c6082a3cab9dffdcd937122f4d65a5990f7
[ "MIT" ]
92
2017-12-08T09:55:02.000Z
2022-03-29T20:45:44.000Z
from quart import Blueprint main = Blueprint( "main", __name__, template_folder="templates", static_folder="static", static_url_path="/main" ) from .routes import *
21.375
98
0.74269
6b51ed2276c15330f34681cdb67ebc37a03da0b9
19,172
py
Python
instalation.py
hizulu/distributed-messaging-ZeroMQ-Pipeline
801fc36db4d6d6db32c8303d555173ff6b509a1d
[ "MIT" ]
null
null
null
instalation.py
hizulu/distributed-messaging-ZeroMQ-Pipeline
801fc36db4d6d6db32c8303d555173ff6b509a1d
[ "MIT" ]
null
null
null
instalation.py
hizulu/distributed-messaging-ZeroMQ-Pipeline
801fc36db4d6d6db32c8303d555173ff6b509a1d
[ "MIT" ]
null
null
null
from DatabaseConnection import DatabaseConnection import string import random # autotrigger = Instalation("localhost", "db_coba", 'rama', 'ramapradana24') # autotrigger.dropAllTrigger() # autotrigger.createSyncTable() # autotrigger.generateDefaultTrigger() # autotrigger.addUnixTimestampColumnToEveryTable() # autotri...
38.344
223
0.566086
6b52404b34e800022dd365893740527732762f87
1,846
py
Python
board.py
Jonathantm0000/CSC_120_Tic_Tac_Toe
0cd3931356ad666069e035725eefaf7c62a5147e
[ "MIT" ]
null
null
null
board.py
Jonathantm0000/CSC_120_Tic_Tac_Toe
0cd3931356ad666069e035725eefaf7c62a5147e
[ "MIT" ]
null
null
null
board.py
Jonathantm0000/CSC_120_Tic_Tac_Toe
0cd3931356ad666069e035725eefaf7c62a5147e
[ "MIT" ]
null
null
null
rows = [['-', '-', '-'], ['-', '-', '-'], ['-', '-', '-']] turn = 'o' win = False while not win: turncount = 0 printboard() if turn == 'x': turn = 'o' else: turn = 'x' print("It is", turn, "turn") movec = int(input("Enter the column you want")) mover = int(input("Enter ...
29.774194
58
0.514626
6b53c82a899931d14d8bb93ef6af1dd5a044eb99
1,267
py
Python
Desafios/desafio033.py
VanessaCML/python
56133b9000ba89154f37038e11a3c2d1aa6d1094
[ "MIT" ]
null
null
null
Desafios/desafio033.py
VanessaCML/python
56133b9000ba89154f37038e11a3c2d1aa6d1094
[ "MIT" ]
null
null
null
Desafios/desafio033.py
VanessaCML/python
56133b9000ba89154f37038e11a3c2d1aa6d1094
[ "MIT" ]
null
null
null
'''n1 = int(input('Digite um nmero: ')) n2 = int(input('Digite outro: ')) n3 = int(input('Digite mais um nmero: ')) maior = n1 if n2 > n1 and n2 > n3: maior = n2 if n3 > n1 and n3 > n2: maior = n3 menor = n1 if n2 < n1 and n2 < 3: menor = n2 if n3 < n1 and n3 < n2: menor = n3 print(f'O maior {maior}.')...
26.395833
63
0.633781
6b5777218307549903cb2345128d7e8e433b52f0
20,289
py
Python
opencoverage/clients/scm/gitlab.py
everfighter/opencoverage
7a01c2d11d1ad70aa41cca8c7b050af996a54b8a
[ "MIT" ]
1
2021-03-19T06:20:49.000Z
2021-03-19T06:20:49.000Z
opencoverage/clients/scm/gitlab.py
everfighter/opencoverage
7a01c2d11d1ad70aa41cca8c7b050af996a54b8a
[ "MIT" ]
null
null
null
opencoverage/clients/scm/gitlab.py
everfighter/opencoverage
7a01c2d11d1ad70aa41cca8c7b050af996a54b8a
[ "MIT" ]
null
null
null
import time from datetime import datetime, timedelta, timezone from typing import ( Any, AsyncIterator, Dict, List, Optional, cast, ) import aiohttp_client import jwt import pydantic from cryptography.hazmat.backends import default_backend from opencoverage.settings import Settings from openco...
33.315271
115
0.555818
6b57fc39f4fd2e01c5a6e624252774aacda18038
2,578
py
Python
samples/summarize-bot/dialogs/main_dialog.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
samples/summarize-bot/dialogs/main_dialog.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
samples/summarize-bot/dialogs/main_dialog.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Main dialog. """ from botbuilder.dialogs import ( ComponentDialog, WaterfallDialog, WaterfallStepContext, DialogTurnResult, ) from botbuilder.dialogs.prompts import TextPrompt, PromptOptions from botbuilder....
39.661538
135
0.689294
6b5832f803883a22182b709c9785af4bb2e2a7ee
3,642
py
Python
handroll/composers/__init__.py
mblayman/handroll
42703cf5c969dccd0eb0715402ab84056ab65e22
[ "BSD-2-Clause" ]
null
null
null
handroll/composers/__init__.py
mblayman/handroll
42703cf5c969dccd0eb0715402ab84056ab65e22
[ "BSD-2-Clause" ]
null
null
null
handroll/composers/__init__.py
mblayman/handroll
42703cf5c969dccd0eb0715402ab84056ab65e22
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2014, Matt Layman import filecmp import os import shutil import warnings from pkg_resources import iter_entry_points from handroll import logger from handroll.i18n import _
36.787879
78
0.643053
6b5996da8b34c0a4be0d4d087a09cebecb6f4856
1,656
py
Python
tests/test_volunteer.py
MissionBit/MB_Portal
a8bbde9c25b0863a193cb4adb7a419493dd322ff
[ "PostgreSQL" ]
1
2019-08-12T01:57:11.000Z
2019-08-12T01:57:11.000Z
tests/test_volunteer.py
MissionBit/MB_Portal
a8bbde9c25b0863a193cb4adb7a419493dd322ff
[ "PostgreSQL" ]
35
2019-06-25T01:09:43.000Z
2022-02-10T08:13:09.000Z
tests/test_volunteer.py
MissionBit/MB_Portal
a8bbde9c25b0863a193cb4adb7a419493dd322ff
[ "PostgreSQL" ]
2
2019-07-02T17:25:42.000Z
2019-07-18T00:05:58.000Z
from django.test import TestCase, RequestFactory from volunteer.views import * from django.contrib.auth.models import User, Group from django.urls import reverse from rest_framework import status """ class BaseTestCase(TestCase): def create_authenticated_volunteer_user(self): user = User.objects.create_use...
36
76
0.677536
6b5b594a8ddc22e1ab3c6c0d7edc6fdc3c650bfc
14,791
py
Python
git_jdime.py
xai/jdime-utils
b5978a4572afbeaa3e4a9f72cfdccc0a14ee0cf8
[ "MIT" ]
null
null
null
git_jdime.py
xai/jdime-utils
b5978a4572afbeaa3e4a9f72cfdccc0a14ee0cf8
[ "MIT" ]
null
null
null
git_jdime.py
xai/jdime-utils
b5978a4572afbeaa3e4a9f72cfdccc0a14ee0cf8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2017 Olaf Lessenich import argparse import csv import os import sys import tempfile import time import signal import statistics import psutil from plumbum import colors from plumbum import local from plumbum.cmd import grep from plumbum.commands.processes import ProcessExecutio...
38.719895
114
0.423366
6b5ba9e7cc299303aeb45f7e67c51d27bbdf3426
3,863
py
Python
wagtail_automatic_redirects/signal_handlers.py
tbrlpld/wagtail-automatic-redirects
70ff04c7aeb64916f6827c4b84616a4c96d64a5e
[ "BSD-3-Clause" ]
13
2020-02-13T20:55:32.000Z
2021-12-11T21:20:20.000Z
wagtail_automatic_redirects/signal_handlers.py
tbrlpld/wagtail-automatic-redirects
70ff04c7aeb64916f6827c4b84616a4c96d64a5e
[ "BSD-3-Clause" ]
6
2020-05-19T21:06:20.000Z
2021-05-28T13:31:09.000Z
wagtail_automatic_redirects/signal_handlers.py
tbrlpld/wagtail-automatic-redirects
70ff04c7aeb64916f6827c4b84616a4c96d64a5e
[ "BSD-3-Clause" ]
4
2020-05-19T13:40:05.000Z
2021-03-03T21:36:48.000Z
from wagtail import VERSION as WAGTAIL_VERSION if WAGTAIL_VERSION >= (2, 0): from wagtail.core.signals import page_published from wagtail.contrib.redirects.models import Redirect if WAGTAIL_VERSION >= (2, 10): from wagtail.core.signals import post_page_move else: post_page_move = None ...
39.418367
79
0.683407
6b5c6925b389b1b726a316fd95e267319608e4ab
1,377
py
Python
main.py
tegarimansyah/download-folder-manager
1c93e5a513107fd65ac74ec5afb5f203d739b75e
[ "MIT" ]
null
null
null
main.py
tegarimansyah/download-folder-manager
1c93e5a513107fd65ac74ec5afb5f203d739b75e
[ "MIT" ]
null
null
null
main.py
tegarimansyah/download-folder-manager
1c93e5a513107fd65ac74ec5afb5f203d739b75e
[ "MIT" ]
null
null
null
import os import glob import pprint from pathlib import Path # Setup pp = pprint.PrettyPrinter(indent=4) # All variable DOWNLOAD_FOLDER_PATH = os.path.join( # add trailing slash os.getenv('DOWNLOAD_FOLDER_PATH', f'{Path.home()}/Downloads/') # get from env ) if __name__ == "__main__": filepaths = glob.glob(DO...
28.6875
97
0.69281
6b5c790a442c8ec83937f33d65197c87f874fb7f
4,295
py
Python
dane/handlers/RabbitMQHandler.py
CLARIAH/DANE-util
8a3edec69be18ac3bdee476b65059409af05c1bb
[ "Apache-2.0" ]
2
2020-11-24T11:03:14.000Z
2021-03-25T13:25:35.000Z
DANE/handlers/RabbitMQHandler.py
CLARIAH/DANE
c27b11d6fe6dc1da5097d90b32bcee64fdc27837
[ "Apache-2.0" ]
1
2019-12-11T19:46:20.000Z
2019-12-11T21:30:38.000Z
DANE/handlers/RabbitMQHandler.py
CLARIAH/DANE
c27b11d6fe6dc1da5097d90b32bcee64fdc27837
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-present, Netherlands Institute for Sound and Vision (Nanne van Noord) # # 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 # #...
37.675439
86
0.56298
6b5f1427746108b86dc7e91797ab19861fcd228b
947
py
Python
src/Exercise_3/src/plots.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
src/Exercise_3/src/plots.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
src/Exercise_3/src/plots.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
"""" The goal of this module is to implement all the visualization tools needed to graph the data and results of the computations for the Task 3 from the coding homeworks in the Machine Learning course on coursera.com. """ import numpy as np import matplotlib.pyplot as plt def display_random_grid(x: np.ndarray, n: i...
27.057143
100
0.658923
6b5fc469401c2f362fdf002998b116a3986b767e
708
py
Python
backend/schemas.py
gfoo/EcoPart-demo
d358df3187c442a0dacf455d49e274e2e9184a48
[ "Unlicense" ]
null
null
null
backend/schemas.py
gfoo/EcoPart-demo
d358df3187c442a0dacf455d49e274e2e9184a48
[ "Unlicense" ]
null
null
null
backend/schemas.py
gfoo/EcoPart-demo
d358df3187c442a0dacf455d49e274e2e9184a48
[ "Unlicense" ]
null
null
null
from datetime import datetime from pydantic import BaseModel
13.111111
35
0.69774
6b5fd207e69fc80407e2e9f565ac8467717e39c5
986
py
Python
dit/object_detection/adaptive_binarize.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
1
2021-11-07T00:30:05.000Z
2021-11-07T00:30:05.000Z
dit/object_detection/adaptive_binarize.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
dit/object_detection/adaptive_binarize.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
import argparse import os import cv2 import tqdm if __name__ == '__main__': """ Now only feasible for trackA_XX """ parser = argparse.ArgumentParser() parser.add_argument('--root_dir', default="../datasets/icdar2019/at_trackA_archival") args = parser.parse_args() for fdname in os.listdi...
29
100
0.649087
6b6059c1ae8d47bd945bfad33b428be5907af739
1,233
py
Python
3. Numbers/numbers-python.py
guruawate/PYTHON-CODEBASE
1a8eff9e81a49a2fc3ca99d26588c15a97cbe379
[ "MIT" ]
4
2017-03-29T17:03:22.000Z
2018-10-17T11:50:43.000Z
3. Numbers/numbers-python.py
guruawate/PYTHON-CODEBASE
1a8eff9e81a49a2fc3ca99d26588c15a97cbe379
[ "MIT" ]
null
null
null
3. Numbers/numbers-python.py
guruawate/PYTHON-CODEBASE
1a8eff9e81a49a2fc3ca99d26588c15a97cbe379
[ "MIT" ]
2
2017-09-13T18:17:22.000Z
2018-10-17T11:50:44.000Z
message = """\n\nThere are 3 types of numbers in python-3 Now we will see python-3 numbers, namely: int, float & complex. (there is no need for long) ints are whole numbers and floats are real numbers. w...
26.234043
93
0.547445
6b61dd6ba514fdd5aff437d1bd860e1a3aa68538
109
py
Python
angr/procedures/libc/setvbuf.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/procedures/libc/setvbuf.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/procedures/libc/setvbuf.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import angr
18.166667
44
0.669725
6b62a1b0dff941851becc78ed4922a7c9853d341
3,685
py
Python
src/mode/modeopening3.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
2
2017-05-14T06:37:14.000Z
2022-03-07T02:25:32.000Z
src/mode/modeopening3.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
2
2017-10-08T19:41:18.000Z
2021-04-08T04:40:50.000Z
src/mode/modeopening3.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
null
null
null
import random from collections import deque import pygame import constants import shared from monster import Monster from .modeintroduction0 import ModeIntroduction0 from .modeopening import ModeOpening
34.439252
94
0.617096
6b630feef7b82478ebf730437b4ab760f83635c1
1,651
py
Python
onadata/apps/logger/management/commands/sync_deleted_instances_fix.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/logger/management/commands/sync_deleted_instances_fix.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/logger/management/commands/sync_deleted_instances_fix.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 fileencoding=utf-8 # coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import import json from django.conf import settings from django.core.management import BaseCommand from django.utils import timezone from django.utils.datep...
36.688889
82
0.63295