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
f8082f1e3f5f385cac811686714cd680277f4584
7,406
py
Python
repro_eval/__main__.py
irgroup/repro_eval
35a4cf083dbb5f4b29d6ef602a604f0686a537c9
[ "MIT" ]
8
2020-10-27T02:11:53.000Z
2022-03-02T11:00:10.000Z
repro_eval/__main__.py
irgroup/repro_eval
35a4cf083dbb5f4b29d6ef602a604f0686a537c9
[ "MIT" ]
2
2021-01-25T19:59:39.000Z
2021-12-07T09:29:01.000Z
repro_eval/__main__.py
irgroup/repro_eval
35a4cf083dbb5f4b29d6ef602a604f0686a537c9
[ "MIT" ]
1
2021-04-16T16:21:16.000Z
2021-04-16T16:21:16.000Z
""" Use repro_eval from the command line with e.g. python -m repro_eval -t rpd -q qrel_orig -r orig_b rpd_b python -m repro_eval -t rpd -q qrel_orig -r orig_b orig_a rpd_b rpd_a python -m repro_eval -t rpd -m rmse -q qrel_orig -r orig_b rpd_b python -m repro_eval -t rpl -q qrel_orig qrel_rpl -r orig_b rpl_b python...
43.309942
109
0.498785
f809139d6c632c257d27b2da4aee81ff3ca5dcc2
2,377
py
Python
main.py
juligreen/towerdefense-prototype
1cdac58acf697ca856a60dec6533caed17acf656
[ "MIT" ]
null
null
null
main.py
juligreen/towerdefense-prototype
1cdac58acf697ca856a60dec6533caed17acf656
[ "MIT" ]
null
null
null
main.py
juligreen/towerdefense-prototype
1cdac58acf697ca856a60dec6533caed17acf656
[ "MIT" ]
null
null
null
import math from game_objects import Turret, Troop players = [] def calculate_distance(entity1: Location, entity2: Location) -> float: # distance between vectors: https://brilliant.org/wiki/distance-formula/ distance = math.sqrt((entity1.x - entity2.x) ** 2 + (entity1.y + entity2.y) ** 2) return dista...
30.088608
94
0.636096
f8094b25e0893a5bce69fe2d108d090003595a0e
7,110
py
Python
bib_processing.py
GAIGResearch/GAIGResearch.github.io
90d0555348ad8f3f500b6480168ad65fa0226dce
[ "MIT" ]
null
null
null
bib_processing.py
GAIGResearch/GAIGResearch.github.io
90d0555348ad8f3f500b6480168ad65fa0226dce
[ "MIT" ]
null
null
null
bib_processing.py
GAIGResearch/GAIGResearch.github.io
90d0555348ad8f3f500b6480168ad65fa0226dce
[ "MIT" ]
2
2019-07-09T11:08:15.000Z
2020-12-04T14:55:00.000Z
import os from pathlib import Path from difflib import SequenceMatcher supported_bibtex_types = {"article", "book", "booklet", "inbook", "incollection", "inproceedings", "manual", "mastersthesis", "misc", "phdthesis", "proceedings", "techreport", "unpublished"} supported_fields = ["author",...
33.696682
119
0.568636
f80a066211d5845a2d19529db9ed13271bcad6dc
2,105
py
Python
browser.py
7Cortez7/instagram-giveaway-bot
43246e3ded06ea3a6cbf2ef20164b229fe90ee0e
[ "MIT" ]
null
null
null
browser.py
7Cortez7/instagram-giveaway-bot
43246e3ded06ea3a6cbf2ef20164b229fe90ee0e
[ "MIT" ]
null
null
null
browser.py
7Cortez7/instagram-giveaway-bot
43246e3ded06ea3a6cbf2ef20164b229fe90ee0e
[ "MIT" ]
null
null
null
from selenium import webdriver import time import userdata as udata import random randomUsers = set()
31.893939
121
0.59715
f80b2ee49671a1d6b544de429dd777345fa6df27
246
py
Python
HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py
accidentalgenius09/competitive-programming-solution
210746a7928dcd601ad9a735de52cf7135851070
[ "MIT" ]
8
2020-08-03T01:53:13.000Z
2022-01-09T14:47:58.000Z
HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py
accidentalgenius09/competitive-programming-solution
210746a7928dcd601ad9a735de52cf7135851070
[ "MIT" ]
null
null
null
HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py
accidentalgenius09/competitive-programming-solution
210746a7928dcd601ad9a735de52cf7135851070
[ "MIT" ]
4
2020-09-29T11:28:53.000Z
2021-06-02T15:34:55.000Z
''' Title : Linear Algebra Subdomain : Numpy Domain : Python Author : codeperfectplus Created : 10 May 2020 ''' import numpy n=int(input()) a=numpy.array([input().split() for _ in range(n)],float) print(round(numpy.linalg.det(a),2))
18.923077
56
0.670732
f80c608952146d7fe3d7ed75d5f4bc0dc27ba8ce
774
py
Python
pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
1,063
2020-04-21T12:42:05.000Z
2022-03-31T06:32:50.000Z
pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
39
2020-05-07T07:24:19.000Z
2022-02-02T23:49:23.000Z
pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
174
2020-04-26T04:33:11.000Z
2022-03-17T02:58:45.000Z
# -*- coding: utf-8 -*- import numpy as np from ..dim_processors_base import DimProcessorBase from ...registry import DIMPROCESSORS from sklearn.preprocessing import normalize from typing import Dict, List
27.642857
75
0.666667
f80ccbd3e3b59f33892aafb3cc6b1f95f360dd40
1,631
py
Python
test_csv_write.py
wandyrandy/Groupme-Group-Stats-Report
25a59b715a7555540695639de81db390f09eb122
[ "MIT" ]
2
2019-08-13T21:50:32.000Z
2019-08-14T00:49:29.000Z
test_csv_write.py
wandyrandy/Groupme-Group-Stats-Report
25a59b715a7555540695639de81db390f09eb122
[ "MIT" ]
null
null
null
test_csv_write.py
wandyrandy/Groupme-Group-Stats-Report
25a59b715a7555540695639de81db390f09eb122
[ "MIT" ]
null
null
null
import csv import person from random import randrange headers = ['Name', 'Messages', 'Char Count', 'Likes Given', 'Likes Received', 'Image URL'] #tester code people = ['bob', 'joe', 'gmo'] bob = person.Person(111, 'bob', 'www.bob.com', people) joe = person.Person(222, 'joe', 'www.joe.com', people) gmo = p...
31.980392
91
0.676272
f80e19316ce840fcc2138b746a64f522d8f4566b
866
py
Python
app/wqFull/G200/testAll.py
fkwai/geolearn
30cb4353d22af5020a48100d07ab04f465a315b0
[ "MIT" ]
null
null
null
app/wqFull/G200/testAll.py
fkwai/geolearn
30cb4353d22af5020a48100d07ab04f465a315b0
[ "MIT" ]
null
null
null
app/wqFull/G200/testAll.py
fkwai/geolearn
30cb4353d22af5020a48100d07ab04f465a315b0
[ "MIT" ]
2
2021-04-04T02:45:59.000Z
2022-03-19T09:41:39.000Z
import pandas as pd from hydroDL.data import usgs, gageII, gridMET, ntn, GLASS, transform, dbBasin import numpy as np import matplotlib.pyplot as plt from hydroDL.post import axplot, figplot from hydroDL import kPath, utils import json import os import importlib from hydroDL.master import basinFull from hydroDL.app.wa...
29.862069
78
0.706697
f80f8be872541cb1fed210e79dd3fff53a87f8a4
9,733
py
Python
tests/test_Dirichlet_NL_Poisson.py
bond-anton/BDPoisson1D
538cedc187ce83e90f340cc085738671d325d2e1
[ "Apache-2.0" ]
null
null
null
tests/test_Dirichlet_NL_Poisson.py
bond-anton/BDPoisson1D
538cedc187ce83e90f340cc085738671d325d2e1
[ "Apache-2.0" ]
2
2017-07-21T22:10:19.000Z
2018-07-14T21:39:07.000Z
tests/test_Dirichlet_NL_Poisson.py
bond-anton/BDPoisson1D
538cedc187ce83e90f340cc085738671d325d2e1
[ "Apache-2.0" ]
null
null
null
import math as m import numpy as np from BDMesh import Mesh1DUniform from BDFunction1D import Function from BDFunction1D.Functional import Functional from BDFunction1D.Interpolation import InterpolateFunction from BDPoisson1D.DirichletNonLinear import dirichlet_non_linear_poisson_solver_arrays from BDPoisson1D.Dirich...
44.646789
111
0.552348
f810064772dd89a3265f0776de267483682a707d
23,282
py
Python
trtools/dumpSTR/tests/test_dumpSTR.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
14
2020-04-20T15:38:52.000Z
2022-02-07T11:45:23.000Z
trtools/dumpSTR/tests/test_dumpSTR.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
74
2020-03-02T23:34:53.000Z
2022-03-21T18:32:10.000Z
trtools/dumpSTR/tests/test_dumpSTR.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
15
2018-10-29T19:41:33.000Z
2020-02-21T18:41:51.000Z
import argparse import gzip import os import pytest from ..dumpSTR import * from trtools.testsupport.utils import assert_same_vcf, assert_same_file # Set up base argparser # Test no such file or directory def test_WrongFile(args, testDumpSTRdir): fname = os.path.join(testDumpSTRdir, "test_non_existent.vcf") ...
34.038012
129
0.683489
f81030a9747b6fbce3be0c3890586bc3da2d99c2
27,895
py
Python
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2012 Andrew Bogott for the Wikimedia Foundation' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy ...
12.044473
174
0.578276
f81075d9a768c275f1cbe075abbbe7e3dce2e3c6
2,554
py
Python
src/weekly_contest_251/1946_largest-number-after-mutating-substring.py
dongminlee94/leetcode-practice
4d33816d66df8ab447087a04b76008f6bec51f23
[ "MIT" ]
null
null
null
src/weekly_contest_251/1946_largest-number-after-mutating-substring.py
dongminlee94/leetcode-practice
4d33816d66df8ab447087a04b76008f6bec51f23
[ "MIT" ]
null
null
null
src/weekly_contest_251/1946_largest-number-after-mutating-substring.py
dongminlee94/leetcode-practice
4d33816d66df8ab447087a04b76008f6bec51f23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 1946. Largest Number After Mutating Substring https://leetcode.com/problems/largest-number-after-mutating-substring/ Example 1: Input: num = "132", change = [9,8,5,0,3,6,4,2,6,8] Output: "832" Explanation: Replace the substring "1": - 1 maps to change[1] = 8. Thus, "132" becomes "832". "8...
30.047059
98
0.523101
f810c90f204568fd67dca941d0e6266424f5517d
261
py
Python
test/unit/bot/test_bot.py
kubicki14/BurtTheCardKing
d0854ea08ffdffee687830097b0645069e263d9d
[ "MIT" ]
null
null
null
test/unit/bot/test_bot.py
kubicki14/BurtTheCardKing
d0854ea08ffdffee687830097b0645069e263d9d
[ "MIT" ]
1
2020-03-04T04:39:20.000Z
2020-03-04T04:39:20.000Z
test/unit/bot/test_bot.py
kubicki14/BurtTheCardKing
d0854ea08ffdffee687830097b0645069e263d9d
[ "MIT" ]
null
null
null
import pytest from bot.bot import Bot
20.076923
75
0.659004
f8125fde876b086f96371a2951d0cf190eba3f48
1,437
py
Python
Hackerrank/30DaysOfCode/Day9-Recursion3.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
Hackerrank/30DaysOfCode/Day9-Recursion3.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
Hackerrank/30DaysOfCode/Day9-Recursion3.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
""" Hackerrank Day 9: Recursion 3 https://www.hackerrank.com/challenges/30-recursion/problem?h_r=email&unlock_token=bc6d5f3963afb26ed0b2f69c3f4f3ddb1826e1b2&utm_campaign=30_days_of_code_continuous&utm_medium=email&utm_source=daily_reminder Objective Today, we are learning about an algorithmic concept called recursion....
22.809524
205
0.76618
f8126dd049c2dae8dffb8bb81f37f683297e9ca7
408
py
Python
todolist/main/models.py
gda2048/TODOlist
cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f
[ "MIT" ]
1
2019-12-19T19:04:02.000Z
2019-12-19T19:04:02.000Z
todolist/main/models.py
gda2048/TODOlist
cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f
[ "MIT" ]
5
2020-02-12T02:57:13.000Z
2021-12-13T20:02:16.000Z
todolist/main/models.py
gda2048/TODOlist
cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f
[ "MIT" ]
null
null
null
from django.db import models
29.142857
68
0.70098
f812c1ff23e3b82b8ed9c4bca10c6b857649c53a
2,358
py
Python
src/qbrobot/util/log.py
jucuguru/crypto-robot-basic
3addaaff9fb2f41d8e9dcd66bae7ae7f75216704
[ "BSD-2-Clause" ]
null
null
null
src/qbrobot/util/log.py
jucuguru/crypto-robot-basic
3addaaff9fb2f41d8e9dcd66bae7ae7f75216704
[ "BSD-2-Clause" ]
null
null
null
src/qbrobot/util/log.py
jucuguru/crypto-robot-basic
3addaaff9fb2f41d8e9dcd66bae7ae7f75216704
[ "BSD-2-Clause" ]
null
null
null
import logging from qbrobot import qsettings try : from util import send_dingding except ImportError: DINGDING_CANUSE = False else: DINGDING_CANUSE = True """ class DingDingLogger pass all args to logger.method, and call dingding.send_msg() 1. debug message don't send to dingding. 2....
25.912088
116
0.651399
f81309425c4d43dc4fcef12218a6de6d14c72768
722
py
Python
Country cleaning/Chile/PRT/OfflineRB.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
Country cleaning/Chile/PRT/OfflineRB.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
Country cleaning/Chile/PRT/OfflineRB.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
# %% import os import pandas as pd import numpy as np import datetime # %% CARGA DE DATOS path = r'F:\Trabajo\Promotive\Chile\PRT\7\CSV\3' os.chdir(path) files = os.listdir(path) files # %% files_xls = [f for f in files if f[-3:] == 'csv'] files_xls # %% columnas = ['PPU', 'MARCA', 'MODELO', 'ANO_FABRICACION', 'NU...
17.609756
90
0.65651
f815471c4b7feac192ccd8f44032afcd4c9605be
3,850
py
Python
datasets/lfw_crop.py
laoreja/face-identity-transformer
5569d93017ad9371deae7e2b35564523c64b501e
[ "BSD-3-Clause" ]
13
2020-10-09T07:15:02.000Z
2022-03-28T20:51:30.000Z
datasets/lfw_crop.py
laoreja/face-identity-transformer
5569d93017ad9371deae7e2b35564523c64b501e
[ "BSD-3-Clause" ]
2
2021-03-03T15:04:51.000Z
2021-06-02T03:42:03.000Z
datasets/lfw_crop.py
laoreja/face-identity-transformer
5569d93017ad9371deae7e2b35564523c64b501e
[ "BSD-3-Clause" ]
5
2021-03-02T11:44:19.000Z
2021-07-09T16:42:02.000Z
import os.path as osp import numpy as np from PIL import Image import torch.utils.data as data import torch __all__ = ['LFW_CROP'] EXTENSION_FACTOR = 2
37.745098
114
0.540779
f816945723bd501f06ebbe8199fa11cd256a3a52
1,065
py
Python
test.py
JFF-Bohdan/pyimei
d881f4a11374d29828867e2de397d1fcc8413d25
[ "MIT" ]
1
2021-07-29T17:39:34.000Z
2021-07-29T17:39:34.000Z
test.py
JFF-Bohdan/pyimei
d881f4a11374d29828867e2de397d1fcc8413d25
[ "MIT" ]
null
null
null
test.py
JFF-Bohdan/pyimei
d881f4a11374d29828867e2de397d1fcc8413d25
[ "MIT" ]
3
2018-08-07T08:01:01.000Z
2020-03-24T17:14:31.000Z
from pyimei import ImeiSupport #testing classes ImeiSupport.test() valid_imeis = [ 356938035643809, 490154203237518, "356938035643809" ] invalid_imeis = [ 358065019104263, "357805023984941", 356938035643801 ] checkImeisArray(valid_imeis) checkImeisArray(invalid_imeis) pr...
23.152174
73
0.66385
f816d939ecc6c4f196c356dcf81afa3b4caf0b94
2,175
py
Python
aioauth/responses.py
grmnz/aioauth
e69c989bc81284d60798599816c39ff91074a24b
[ "MIT" ]
null
null
null
aioauth/responses.py
grmnz/aioauth
e69c989bc81284d60798599816c39ff91074a24b
[ "MIT" ]
null
null
null
aioauth/responses.py
grmnz/aioauth
e69c989bc81284d60798599816c39ff91074a24b
[ "MIT" ]
null
null
null
""" .. code-block:: python from aioauth import responses Response objects used throughout the project. ---- """ from dataclasses import dataclass, field from http import HTTPStatus from typing import Dict from .collections import HTTPHeaderDict from .constances import default_headers from .types import ErrorTyp...
20.518868
111
0.722299
f818d292ca6f1460d6aa1027f16f35e13ba6829c
5,441
py
Python
fipomdp/experiments/NYC_experiment.py
xbrlej/FiPOMDP
b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f
[ "MIT" ]
null
null
null
fipomdp/experiments/NYC_experiment.py
xbrlej/FiPOMDP
b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f
[ "MIT" ]
null
null
null
fipomdp/experiments/NYC_experiment.py
xbrlej/FiPOMDP
b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import platform import time from functools import partial from statistics import stdev from typing import List, Tuple, Dict, Union, Any import psutil from joblib import Parallel, delayed from fimdp.objectives import BUCHI from fipomdp import ConsPOMDP from fipomdp.energy_solvers ...
33.58642
147
0.695093
f818e9acfc35ef6a4d51efdba0e1aa6dcf47703d
399
py
Python
examples/connect_to_wifi.py
flaiming/TechFurMeet-Micropython
00ff427429dfc186e33aa5e77bafe39eb820b854
[ "MIT" ]
1
2018-01-19T12:05:32.000Z
2018-01-19T12:05:32.000Z
examples/connect_to_wifi.py
flaiming/TechFurMeet-Micropython
00ff427429dfc186e33aa5e77bafe39eb820b854
[ "MIT" ]
null
null
null
examples/connect_to_wifi.py
flaiming/TechFurMeet-Micropython
00ff427429dfc186e33aa5e77bafe39eb820b854
[ "MIT" ]
null
null
null
import network import time # deactivate AP ap = network.WLAN(network.AP_IF) ap.active(False) # activate static network wlan = network.WLAN(network.STA_IF) wlan.active(True) # connect to local WIFI wlan.connect('TFM-Attendees') # wait until connected while not wlan.isconnected(): print('connecting...') time....
19
49
0.736842
f8197ad55d7f3b5e1e727b66b9aaef3047efa623
3,317
py
Python
hikcamerabot/services/tasks/video.py
CamVipQ/hikvision-camera-bot
84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2
[ "MIT" ]
44
2019-03-07T00:25:44.000Z
2022-02-20T15:57:11.000Z
hikcamerabot/services/tasks/video.py
CamVipQ/hikvision-camera-bot
84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2
[ "MIT" ]
25
2019-02-17T13:37:27.000Z
2022-03-22T16:11:46.000Z
hikcamerabot/services/tasks/video.py
CamVipQ/hikvision-camera-bot
84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2
[ "MIT" ]
14
2019-06-28T05:40:10.000Z
2022-03-24T08:05:01.000Z
import asyncio import logging import os import time from addict import Addict from aiogram.types import Message from hikcamerabot.config.config import get_result_queue from hikcamerabot.constants import Event, VideoGifType from hikcamerabot.utils.utils import format_ts, gen_random_str
35.666667
88
0.621948
f81adf96e79c10244b5314e809ea884419299412
71,349
py
Python
HyperOXO/hypercube.py
drtjc/Hyper
83579186d915de603d27b8757dfc5a0f82c6770e
[ "MIT" ]
null
null
null
HyperOXO/hypercube.py
drtjc/Hyper
83579186d915de603d27b8757dfc5a0f82c6770e
[ "MIT" ]
null
null
null
HyperOXO/hypercube.py
drtjc/Hyper
83579186d915de603d27b8757dfc5a0f82c6770e
[ "MIT" ]
null
null
null
""" Provides functionalilty for working with celled hypercubes. Hypercubes are extensions of lines, squares and cubes into higher dimensions. Celled hypercubes can be thought as a grid or lattice structure. From this point, hypercubes is used to mean celled hypercubes. A hypercube can be described by its dimension a...
30.374202
116
0.510575
f81ca2ce592e84428e81a66ce38e515a6ee5edcf
42
py
Python
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
20
2017-08-05T08:44:51.000Z
2022-03-24T15:33:48.000Z
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
117
2016-10-26T15:31:48.000Z
2022-02-16T23:06:33.000Z
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
21
2017-03-13T15:16:03.000Z
2022-02-25T19:14:36.000Z
# Package version __version__ = "0.16.31"
14
23
0.714286
f81e6f765fb2c951a1b3a358bc3ab07fe69f4752
11,140
py
Python
simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py
IMSY-DKFZ/simpa
b8bddcf43a4bff2564f0ec208dc511b82e49bfb4
[ "MIT" ]
3
2022-03-14T15:40:09.000Z
2022-03-20T02:34:25.000Z
simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py
jgroehl/simpa
e56f0802e5a8555ee8bb139dd4f776025e7e9267
[ "MIT" ]
3
2022-03-18T07:19:12.000Z
2022-03-30T12:15:19.000Z
simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py
IMSY-DKFZ/simpa
b8bddcf43a4bff2564f0ec208dc511b82e49bfb4
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Division of Intelligent Medical Systems, DKFZ # SPDX-FileCopyrightText: 2021 Janek Groehl # SPDX-License-Identifier: MIT from simpa.core.device_digital_twins import SlitIlluminationGeometry, LinearArrayDetectionGeometry, PhotoacousticDevice from simpa import perform_k_wave_acoustic_forw...
48.859649
119
0.668223
f81ea939afded2dfd41116deec7708196341c5d1
10,881
py
Python
oc_ocdm/counter_handler/filesystem_counter_handler.py
arcangelo7/oc_ocdm
128d062ce9d858024aafd26d7d238c7a26cc8914
[ "0BSD" ]
1
2020-12-17T15:33:01.000Z
2020-12-17T15:33:01.000Z
oc_ocdm/counter_handler/filesystem_counter_handler.py
arcangelo7/oc_ocdm
128d062ce9d858024aafd26d7d238c7a26cc8914
[ "0BSD" ]
26
2021-01-08T08:32:23.000Z
2022-03-29T10:01:40.000Z
oc_ocdm/counter_handler/filesystem_counter_handler.py
arcangelo7/oc_ocdm
128d062ce9d858024aafd26d7d238c7a26cc8914
[ "0BSD" ]
3
2021-04-16T08:44:44.000Z
2022-02-15T11:09:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any purpose # with or without fee is hereby granted, provided that the above copyright notice # and this permission notice appear in all copies. ...
42.503906
111
0.637074
f81fb7d0b255f47fb45c7a694f335756c5c2bb24
3,823
py
Python
backend_app/serializers.py
ilveroluca/backend
91b80b154c4e1e45587797cc41bf2b2b75c23e68
[ "MIT" ]
null
null
null
backend_app/serializers.py
ilveroluca/backend
91b80b154c4e1e45587797cc41bf2b2b75c23e68
[ "MIT" ]
null
null
null
backend_app/serializers.py
ilveroluca/backend
91b80b154c4e1e45587797cc41bf2b2b75c23e68
[ "MIT" ]
null
null
null
from rest_framework import serializers from backend_app import models # RESPONSES SERIALIZERS
27.905109
96
0.698666
f820475f96913877c23f5aa594fcc87cf676cc00
1,296
py
Python
src/api_status_monitor/consumer/database_connection.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
src/api_status_monitor/consumer/database_connection.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
src/api_status_monitor/consumer/database_connection.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
"""The database connection manager. """ import logging import psycopg2
31.609756
86
0.500772
f8207cbc88a40509eaabe2f12c2e9fb96d02736a
1,154
py
Python
app/cvp.py
ekiminatorn/murmur-rest
594060264cd6ea594d5c07f40163782946f48eb2
[ "Unlicense", "MIT" ]
73
2015-01-08T19:58:36.000Z
2022-01-25T20:44:07.000Z
app/cvp.py
ekiminatorn/murmur-rest
594060264cd6ea594d5c07f40163782946f48eb2
[ "Unlicense", "MIT" ]
34
2015-01-08T19:52:34.000Z
2022-03-15T08:36:30.000Z
app/cvp.py
ekiminatorn/murmur-rest
594060264cd6ea594d5c07f40163782946f48eb2
[ "Unlicense", "MIT" ]
33
2015-01-08T19:22:40.000Z
2022-01-19T06:28:37.000Z
""" cvp.py Functions for generating CVP feeds. :copyright: (C) 2014 by github.com/alfg. :license: MIT, see README for more details. """ def cvp_player_to_dict(player): """ Convert a player object from a Tree to a CVP-compliant dict. """ return { "session": player.session, "userid": ...
26.837209
78
0.604853
f82135374f4390dc528fb4356d78faff21f4ca0a
5,951
py
Python
Tools/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
VincentWei/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
6
2017-05-31T01:46:45.000Z
2018-06-12T10:53:30.000Z
Tools/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
null
null
null
Tools/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
2
2017-07-17T06:02:42.000Z
2018-09-19T10:08:38.000Z
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
46.858268
175
0.682406
f8237a8940cd62de0269063bae0eb6296bc0aa2a
2,796
py
Python
data/classifier/general_test.py
alexv1/tensorflow_learn
ae936ffdc211a11403d6a06401a2115334b46402
[ "Apache-2.0" ]
null
null
null
data/classifier/general_test.py
alexv1/tensorflow_learn
ae936ffdc211a11403d6a06401a2115334b46402
[ "Apache-2.0" ]
null
null
null
data/classifier/general_test.py
alexv1/tensorflow_learn
ae936ffdc211a11403d6a06401a2115334b46402
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from skimage import transform import tensorflow as tf import numpy as np import glob import face_recognition as FR import os import shutil
27.96
87
0.672031
f8238013e026edf0a1b82a52242ee8f202d32c83
693
py
Python
func.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
null
null
null
func.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
null
null
null
func.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
1
2021-02-06T04:28:17.000Z
2021-02-06T04:28:17.000Z
print("Enter Values of cylindrical part of tent ") h = float(input("Height : ")) r = float(input("radius : ")) csa_cyl = cyl(h, r) l = float(input("Enter slant height ")) csa_con = con(r, l) canvas_area = csa_cyl + csa_con print("Area of canvas = ", canvas_area, " m^2") unit_price = float(input("Enter cost of 1 m^2 ")...
28.875
53
0.658009
f823c6094a403ab6a62faccb2e76b2e2b2d997a0
1,282
py
Python
pymoku/plotly_support.py
manekawije/Liquid
284991ceca70ec3fcd0cca7e19f4100463600a6c
[ "MIT" ]
null
null
null
pymoku/plotly_support.py
manekawije/Liquid
284991ceca70ec3fcd0cca7e19f4100463600a6c
[ "MIT" ]
null
null
null
pymoku/plotly_support.py
manekawije/Liquid
284991ceca70ec3fcd0cca7e19f4100463600a6c
[ "MIT" ]
null
null
null
# Plotly integration for the Moku:Lab Datalogger # Copyright 2016 Liquid Instruments Pty. Ltd. from pymoku import InvalidOperationException
26.163265
92
0.705148
f8277c470e26c658915e5f878e41e448502ec2a5
1,126
py
Python
test_publisher.py
cpgillem/markdown_publisher
a8e6bacea95196b9a18ad8fa2f85822c5d9c4e74
[ "MIT" ]
null
null
null
test_publisher.py
cpgillem/markdown_publisher
a8e6bacea95196b9a18ad8fa2f85822c5d9c4e74
[ "MIT" ]
3
2015-04-11T08:16:56.000Z
2015-04-11T08:17:32.000Z
test_publisher.py
cpgillem/markdown-publisher
a8e6bacea95196b9a18ad8fa2f85822c5d9c4e74
[ "MIT" ]
null
null
null
import publisher test_pdf_filename = "test/test.pdf" test_css_filename = "test/test.css" test_md_filename = "test/test.md" test_html_filename = "test/test.html" test_sender = "cpg@yakko.cs.wmich.edu" test_recipient = "cpgillem@gmail.com" test_md = "# Test heading\n\n- test item 1\n- test item 2" # The test case curr...
32.171429
87
0.781528
f82900deb38425b32b0150ae828a4448ba15499c
24
py
Python
src/train/__init__.py
gracengu/multinomial_classification
2346533415aff151d1774d36405360ca236cee3f
[ "MIT" ]
2
2021-11-16T12:52:58.000Z
2021-12-13T04:00:39.000Z
src/train/__init__.py
gracengu/multinomial_classification
2346533415aff151d1774d36405360ca236cee3f
[ "MIT" ]
null
null
null
src/train/__init__.py
gracengu/multinomial_classification
2346533415aff151d1774d36405360ca236cee3f
[ "MIT" ]
null
null
null
from .train import Train
24
24
0.833333
f82c17e0d48a8946b94491663089d67afc63ece3
1,185
py
Python
tracpro/msgs/migrations/0005_inboxmessage.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
5
2015-07-21T15:58:31.000Z
2019-09-14T22:34:00.000Z
tracpro/msgs/migrations/0005_inboxmessage.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
197
2015-03-24T15:26:04.000Z
2017-11-28T19:24:37.000Z
tracpro/msgs/migrations/0005_inboxmessage.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
10
2015-03-24T12:26:36.000Z
2017-02-21T13:08:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
38.225806
118
0.599156
f82d5b036daead0dff75c2761e785f8a14568edb
191
py
Python
src/Models/__init__.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
null
null
null
src/Models/__init__.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
null
null
null
src/Models/__init__.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
1
2021-04-22T15:14:21.000Z
2021-04-22T15:14:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- from .Contract import * from .Receivable import * from .Receipt import * from .Shop import * from .Statement import * from .Application import *
21.222222
26
0.701571
f82d7cf376b5b98be3742039b95afbfff6e6b1f8
1,630
py
Python
description tm.py
jfoerderer/lda-topic-modeling
998701f87df3a3d034d9208ff60266dcd6dc2b59
[ "MIT" ]
2
2017-09-02T09:00:24.000Z
2017-09-08T07:18:38.000Z
description tm.py
jfoerderer/lda-topic-modeling
998701f87df3a3d034d9208ff60266dcd6dc2b59
[ "MIT" ]
null
null
null
description tm.py
jfoerderer/lda-topic-modeling
998701f87df3a3d034d9208ff60266dcd6dc2b59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import csv from stop_words import get_stop_words from nltk.stem.porter import PorterStemmer from gensim import corpora import gensim import os import re from nltk.tokenize import RegexpTokenizer #SET PATH path = r'' inputname="" def remove_html_tags(text): """Remove html tags from a s...
26.721311
99
0.628834
f82ef0c0ee2c3fc021e7566fc3d68636a538299f
596
py
Python
scripts/load_sample_data.py
thobbs/logsandra
a17abc995dcb0573f3db2f714c1b47d3aff8b20a
[ "MIT" ]
7
2015-05-18T13:00:54.000Z
2018-08-06T08:27:57.000Z
scripts/load_sample_data.py
thobbs/logsandra
a17abc995dcb0573f3db2f714c1b47d3aff8b20a
[ "MIT" ]
null
null
null
scripts/load_sample_data.py
thobbs/logsandra
a17abc995dcb0573f3db2f714c1b47d3aff8b20a
[ "MIT" ]
4
2015-06-16T11:09:53.000Z
2020-04-27T19:25:57.000Z
#!/usr/bin/env python import sys import os sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src')) from random import randint from datetime import datetime, timedelta from logsandra.model.client import CassandraClient client = CassandraClient('test', 'localhost', 9160, 3) keywords = ['foo', 'bar', ...
28.380952
76
0.697987
f830e618925548200af372e7691ce927a36784c1
867
py
Python
registry/setup.py
fjrmoreews/bioshadock_client
26a1de6e130689b6385144253525c861d2a2199d
[ "Apache-2.0" ]
1
2015-11-25T19:03:58.000Z
2015-11-25T19:03:58.000Z
registry/setup.py
fjrmoreews/bioshadock_client
26a1de6e130689b6385144253525c861d2a2199d
[ "Apache-2.0" ]
2
2015-11-24T14:45:44.000Z
2015-11-26T15:28:30.000Z
registry/setup.py
fjrmoreews/bioshadock_client
26a1de6e130689b6385144253525c861d2a2199d
[ "Apache-2.0" ]
1
2015-11-27T10:57:15.000Z
2015-11-27T10:57:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( # name of the lib name='bioshadock_biotools', # version version='1.0.1', packages=find_packages(), author="Francois Moreews", description="Import tool for biotools from Dockerfile", i...
18.847826
59
0.575548
f831926e75acbe42ce6d5e5261d3946d9b9dfea1
1,176
py
Python
_example/xor_embedded/make.py
backwardn/go-tflite
30f5e2a268d2eb053f758636609c5c379a3016b5
[ "MIT" ]
3
2020-01-09T02:57:30.000Z
2020-07-17T15:56:50.000Z
_example/xor_embedded/make.py
backwardn/go-tflite
30f5e2a268d2eb053f758636609c5c379a3016b5
[ "MIT" ]
null
null
null
_example/xor_embedded/make.py
backwardn/go-tflite
30f5e2a268d2eb053f758636609c5c379a3016b5
[ "MIT" ]
null
null
null
import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.optimizers import RMSprop from tensorflow.lite.python import lite X_train = np.array([[0.0, 0.0], [1.0, 0.0], [0.0, 1.0], [1.0, ...
30.947368
75
0.662415
f835c7244c8f288b00b860e6cef6f64c28c3ea69
473
py
Python
app/sso/user/models.py
ChristianKreuzberger/django-oauth-sso
b019e2e8232ae141b50b8270e79e0617e24f54bb
[ "MIT" ]
null
null
null
app/sso/user/models.py
ChristianKreuzberger/django-oauth-sso
b019e2e8232ae141b50b8270e79e0617e24f54bb
[ "MIT" ]
null
null
null
app/sso/user/models.py
ChristianKreuzberger/django-oauth-sso
b019e2e8232ae141b50b8270e79e0617e24f54bb
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import ugettext_lazy as _
21.5
73
0.649049
f837af8b513ac4ce60f3ce335c72f8849a0bd813
1,710
py
Python
src/fusanet_utils/features/base.py
fusa-project/fusa-net-utils
b8740c67c0c789889b7abce477c894d77c70a20c
[ "MIT" ]
null
null
null
src/fusanet_utils/features/base.py
fusa-project/fusa-net-utils
b8740c67c0c789889b7abce477c894d77c70a20c
[ "MIT" ]
null
null
null
src/fusanet_utils/features/base.py
fusa-project/fusa-net-utils
b8740c67c0c789889b7abce477c894d77c70a20c
[ "MIT" ]
null
null
null
import logging from abc import ABC, abstractmethod from os.path import isfile, splitext import pathlib import torch from .waveform import get_waveform logger = logging.getLogger(__name__)
35.625
83
0.657895
f837f76576c4f735618a20e51681085aeb556de5
251
py
Python
led/hhh/rta2.py
tushar-tdm/osvi
813499162b7f487ccafa8c08d3e5bf6d05b074de
[ "CC-BY-3.0" ]
3
2020-02-21T01:16:26.000Z
2020-07-12T08:06:11.000Z
led/hhh/rta2.py
tushar-tdm/osvi
813499162b7f487ccafa8c08d3e5bf6d05b074de
[ "CC-BY-3.0" ]
6
2020-02-11T23:27:43.000Z
2022-03-11T23:34:39.000Z
led/hhh/rta2.py
tushar-tdm/osvi
813499162b7f487ccafa8c08d3e5bf6d05b074de
[ "CC-BY-3.0" ]
null
null
null
import os import sys import serial import time import struct ser = serial.Serial('/dev/ttyACM0',9600) led = sys.argv[1] act = sys.argv[2] l = str(led) """a = str(act)""" time.sleep(5) ser.write(struct.pack(l.encode()) """ ser.write(l.encode()) """
14.764706
40
0.661355
f838fea76677e89d488005a23aab7f853eac184d
11,397
py
Python
app.py
KendraObika/Froggit
3734d74de6b7febabb6c1645b61e42928203cf63
[ "MIT" ]
null
null
null
app.py
KendraObika/Froggit
3734d74de6b7febabb6c1645b61e42928203cf63
[ "MIT" ]
null
null
null
app.py
KendraObika/Froggit
3734d74de6b7febabb6c1645b61e42928203cf63
[ "MIT" ]
null
null
null
""" Primary module for Froggit This module contains the main controller class for the Froggit application. There is no need for any additional classes in this module. If you need more classes, 99% of the time they belong in either the lanes module or the models module. If you are unsure about where a new class should...
41.443636
87
0.668246
f83913edc4b000ba4986205d63145c52269b4655
1,252
py
Python
utils.py
rsoorajs/deecubes-telegram-bot
223710eb117c1333fefcff22bcf473e89e41c769
[ "MIT" ]
2
2017-10-08T19:02:01.000Z
2020-05-16T21:55:18.000Z
utils.py
rsoorajs/deecubes-telegram-bot
223710eb117c1333fefcff22bcf473e89e41c769
[ "MIT" ]
null
null
null
utils.py
rsoorajs/deecubes-telegram-bot
223710eb117c1333fefcff22bcf473e89e41c769
[ "MIT" ]
3
2018-08-05T18:36:58.000Z
2020-05-16T21:55:19.000Z
import logging from functools import wraps from PIL import Image, ImageFont, ImageDraw from config import LIST_ALLOWED_USERS
25.04
90
0.683706
f83abdd41d8480514557524b539c95519e6c83ef
152
py
Python
__init__.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
6
2019-11-04T07:04:24.000Z
2021-02-10T21:35:00.000Z
__init__.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
null
null
null
__init__.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
2
2020-08-07T09:29:41.000Z
2021-02-10T21:35:05.000Z
from .Camera import * from .GloveBox import * from .Microscope import * from .Stage import * from .UserInterface import * from .NeuralNetwork import *
25.333333
28
0.756579
f83ba25f5a20e6c46fa842756d48009b7d4b11f6
4,444
py
Python
neural_semigroups/mace4_semigroups_dataset.py
zarebulic/neural-semigroup-experiment
c554acb17d264ba810009f8b86c35ee9f8c4d1f4
[ "Apache-2.0" ]
6
2020-04-05T23:24:54.000Z
2021-11-15T11:17:09.000Z
neural_semigroups/mace4_semigroups_dataset.py
zarebulic/neural-semigroup-experiment
c554acb17d264ba810009f8b86c35ee9f8c4d1f4
[ "Apache-2.0" ]
23
2020-03-15T09:09:54.000Z
2022-03-29T22:32:23.000Z
neural_semigroups/mace4_semigroups_dataset.py
zarebulic/neural-semigroup-experiment
c554acb17d264ba810009f8b86c35ee9f8c4d1f4
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019-2021 Boris Shminke Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
34.71875
78
0.617912
f83bb94361c259b35e4ff208fa028f2496100f01
7,501
py
Python
samples/data_inspect_utils.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
samples/data_inspect_utils.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
samples/data_inspect_utils.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
from __future__ import absolute_import, division, print_function import cv2 import random import numpy as np import colorsys import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.patches import Polygon from skimage.measure import find_contours def log(text, array=None): """Prints a...
35.382075
94
0.55046
f83bc822a6f47feb415380dd8f541756419c1e6c
265
py
Python
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
import pytest
33.125
82
0.784906
f83c3a927ff9df79fe83f0ce7fdfd551b1c6f921
7,741
py
Python
dapy/filters/particle.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/filters/particle.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/filters/particle.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Particle filters for inference in state space models.""" import abc from typing import Tuple, Dict, Callable, Any, Optional import numpy as np from numpy.random import Generator from scipy.special import logsumexp from scipy.sparse import csr_matrix from dapy.filters.base import AbstractEnsembleFilter from dapy.mod...
44.745665
88
0.689058
f83d223baea30c7408f539bf887906161d4b99ea
1,477
py
Python
pokemon.py
bran-almeida/Pokemon_Game
061c9e1b53d8cbaa7366634535288bb2868d6885
[ "MIT" ]
null
null
null
pokemon.py
bran-almeida/Pokemon_Game
061c9e1b53d8cbaa7366634535288bb2868d6885
[ "MIT" ]
null
null
null
pokemon.py
bran-almeida/Pokemon_Game
061c9e1b53d8cbaa7366634535288bb2868d6885
[ "MIT" ]
null
null
null
import random
27.867925
83
0.564658
f83da86dbe71993fb962e0b2187a7e3ca515bae8
2,254
py
Python
recipes/Python/577563_Vectorize_Operation/recipe-577563.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/577563_Vectorize_Operation/recipe-577563.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/577563_Vectorize_Operation/recipe-577563.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
""" Copyright 2011 Shao-Chuan Wang <shaochuan.wang AT gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
40.25
81
0.732476
f83f6977354074227de8507f3a2a55a87f9d6abe
5,752
py
Python
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six def to_str(self)...
29.497436
113
0.595271
f840464edc80ddc50844d1de4a6669b63272a7ea
1,156
py
Python
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
162
2017-01-27T02:54:17.000Z
2022-03-03T09:06:28.000Z
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
79
2017-02-17T08:58:39.000Z
2021-05-29T09:24:31.000Z
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
43
2017-02-23T10:58:42.000Z
2022-01-17T10:29:31.000Z
from click.testing import CliRunner import unittest from mock import patch, Mock, PropertyMock from floyd.cli.version import upgrade
32.111111
98
0.702422
f8423088619bdfe61a95a3f318f27fab6ca0c75a
4,181
py
Python
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
2
2020-08-31T15:45:07.000Z
2021-09-26T22:15:43.000Z
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
17
2020-06-02T02:29:48.000Z
2021-10-13T23:47:44.000Z
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
3
2020-05-31T23:17:10.000Z
2022-03-09T22:23:22.000Z
"""Contains HelpCommand class.""" import discord from discord.ext import commands from offthedialbot import utils def short(self, command, doc=True): """List the command as a one-liner.""" sig = self.get_command_signature(command) if not doc else f'{self.clean_prefix}{command}' return f'...
38.712963
165
0.577613
f8430cf263194ac34b0078e29e9eec8808714370
255
py
Python
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
def is_anagram ( word1, word2 ): ''' Returns True if word1 is 'anagram' of word2 or False if otherwise. word1: str word2: str ''' return sorted(word1) == sorted(word2) print(is_anagram("silence", "listen"))
19.615385
70
0.576471
f8433cd21799446edb00e1ccf569de9f138f3e9c
3,017
py
Python
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
import torch from torch import nn as nn from learning.modules.blocks import ResBlock, ResBlockConditional
46.415385
86
0.552536
f8459ec6a60f2e71cf7db3476a3460a08e1783eb
110
wsgi
Python
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
8
2019-05-14T02:41:34.000Z
2021-11-25T08:07:22.000Z
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
null
null
null
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
2
2019-05-14T20:20:07.000Z
2021-11-25T08:07:24.000Z
# Used for deploying on Apache with mod_wsgi from cryptovote.app import create_app application = create_app()
27.5
44
0.818182
f845c07a85b4945884e014911b73cc010e95c5c2
802
py
Python
problems/203_remove-linked-list-elements.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/203_remove-linked-list-elements.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/203_remove-linked-list-elements.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=203 lang=python3 # # [203] Remove Linked List Elements # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next # @lc code=end
23.588235
67
0.55985
f8470708904f8b5b4aa1dabc0a1785bf58a61c23
7,178
py
Python
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
2
2022-03-22T12:16:37.000Z
2022-03-22T12:48:46.000Z
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
null
null
null
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
null
null
null
""" A module that defines the QLearning Agent for the pricing game as a class. Note that we have a numba version (for speed) which inherits everything from QLearningAgentBase. """ import numpy as np from numba import float64 from numba import int32 from numba import njit from numba.experimental import jitclass from ....
31.621145
97
0.633185
f848ba579a50c6fd3ee1c43bc3d139711769e3be
2,825
py
Python
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
#!/usr/bin/python # with help from teleop_keyboard.py, # https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py # Graylin Trevor Jay and Austin Hendrix, BSD licensed import roslib; #roslib.load_manifest('teleop_move') import rospy from geometry_msgs.msg import Twist import sys, ...
25
92
0.524602
f84a7601115fccffa87d1679d8be58c1f83890a1
1,561
py
Python
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
""" File: shrink.py ame: Wilson Wang 2020/08/05 ------------------------------- Create a new "out" image half the width and height of the original. Set pixels at x=0 1 2 3 in out , from x=0 2 4 6 in original, and likewise in the y direction. """ from simpleimage import SimpleImage def shrink(filename): ...
31.857143
95
0.632287
f84a986b558a36ee9782c5da91c77b0601aa7b43
15,349
py
Python
src/genie/libs/parser/iosxe/show_ip_dhcp.py
komurzak-cisco/genieparser
e6cd6bb133bab7260b2b82da198fd14a4dec66c7
[ "Apache-2.0" ]
1
2021-07-26T02:56:27.000Z
2021-07-26T02:56:27.000Z
src/genie/libs/parser/iosxe/show_ip_dhcp.py
zhangineer/genieparser
d6abcb49bf6d39092d835d9490d817452920ae98
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_ip_dhcp.py
zhangineer/genieparser
d6abcb49bf6d39092d835d9490d817452920ae98
[ "Apache-2.0" ]
null
null
null
""" show ip dhcp database show ip dhcp snooping database show ip dhcp snooping database detail """ # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import (Schema, Any, Optional, Or, And, Default, Use) # Pa...
37.436585
133
0.485699
f84ba2d7e5aa592c0ac62dbc711d229b2f13adeb
848
py
Python
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
import os import sys import json import ipaddress import paramiko br=sys.argv[1] r=sys.argv[2] IP=sys.argv[3] func_createcont(br,r,IP)
33.92
78
0.650943
f84d7afc084777032cfb27a9f3d492736584d51d
1,051
py
Python
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
1
2021-05-11T04:08:58.000Z
2021-05-11T04:08:58.000Z
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
11
2021-04-06T15:22:47.000Z
2021-06-01T05:13:43.000Z
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
null
null
null
### flaskr/__init__.py import os from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()
26.948718
104
0.698382
f84fd6a36061acc80024ef6237230dcd9e8feabc
7,228
py
Python
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
1
2020-02-21T07:40:46.000Z
2020-02-21T07:40:46.000Z
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
null
null
null
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
null
null
null
import boto3 import time if __name__ == "__main__": ec2 = AwsEc2("", "") res = ec2.get_instance_by_resource('xxxxxx') for i in res: print(i.placement)
34.419048
119
0.445075
f851380879e61799e28a7ffd91239a32f370bf71
2,299
py
Python
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
2
2021-03-08T02:30:58.000Z
2021-03-17T12:57:33.000Z
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
null
null
null
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
null
null
null
import control import speech_recognition as sr def recognize_speech_from_mic(recognizer, microphone): """Transcribe speech from recorded from `microphone`. Returns a dictionary with three keys: "success": a boolean indicating whether or not the API request was successful "error": `Non...
33.808824
104
0.653763
f85295b6cbccfde4504d51121948d6ed5ff3e3c4
6,721
py
Python
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
2
2018-01-18T13:22:29.000Z
2018-02-03T13:10:20.000Z
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
from .consts import * # Object matching by classid OBJECTS_CLSID_RULES = [ {'type' : RULETYPE_EQUAL, 'text' : 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', 'entities' : [ {'name' : 'web:tech/flash'} ] }, {'type' : RULETYPE_EQUAL, 'text' : 'clsid:d27cdb6e-ae6d-11cf-96b8-44455354...
30.139013
112
0.494867
f856a06399d0483aa5762d750435935c90b3dd55
6,020
py
Python
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
6
2020-10-14T07:22:31.000Z
2022-02-13T23:17:56.000Z
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
10
2020-04-29T12:29:43.000Z
2021-07-31T10:35:36.000Z
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
1
2021-08-07T03:23:41.000Z
2021-08-07T03:23:41.000Z
# Why does this file exist, and why not put this in `__main__`? # # You might be tempted to import things from `__main__` later, # but that will cause problems: the code will get executed twice: # # - When you run `python -m failprint` python will execute # `__main__.py` as a script. That means there won't be any # ...
36.707317
126
0.635382
f858848401df27fd04f2c1792b618ab879328af0
1,112
py
Python
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
1
2021-08-07T12:48:02.000Z
2021-08-07T12:48:02.000Z
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
null
null
null
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
4
2021-01-16T06:14:58.000Z
2022-02-07T06:36:41.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, RC and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document
37.066667
116
0.732914
f859b964e5f9c3a181c35199baa7176223613982
1,308
py
Python
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
1
2019-01-05T12:35:51.000Z
2019-01-05T12:35:51.000Z
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
null
null
null
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
null
null
null
# coding:utf-8 # author:MurphyWan # www.py """ controller.py/index.py from flask import Blueprint route_index = Blueprint('index_page', __name__) @route_index.route("/") def index(): return "Hello World" """ from application import app ''' ''' from web.interceptors.Authinterceptor import * ''' url ''' from ...
29.727273
65
0.798165
f85a24e0d9a829e5ba4097a173e5c180ffe2795f
1,410
py
Python
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #path of the data file- path data=pd.read_csv(path) data["Gender"].replace("-","Agender",inplace=True) gender_count=data.Gender.value_counts() gender_count.plot(kind="bar") #Code starts here # ---...
20.434783
53
0.698582
f85c11db5b31e7e4088a63d0697d91e4986e3c85
6,962
py
Python
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
48
2019-09-16T09:49:54.000Z
2022-02-09T20:59:10.000Z
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
18
2019-10-15T04:17:35.000Z
2021-05-25T00:12:52.000Z
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
8
2019-10-15T17:27:41.000Z
2022-01-26T20:42:07.000Z
#!/usr/bin/env python3 #MIT License #Copyright (c) 2018 The University of Michigan #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights ...
44.063291
418
0.668342
f85e27ad10e7814b11be2c93c0c4dca76deac4ea
2,222
py
Python
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
9
2019-04-07T06:17:50.000Z
2021-07-11T14:31:36.000Z
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
1
2019-05-17T01:57:07.000Z
2019-11-19T01:57:05.000Z
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
6
2019-04-15T07:17:26.000Z
2019-08-04T02:55:36.000Z
# coding: utf-8 # In[35]: import matplotlib.pyplot as plt from pylab import * import numpy as np main_image=plt.figure(figsize=(10,10)) subplots_adjust(hspace=0.3,wspace=0.3)# #1- x_0=np.linspace(0,2*np.pi,20) #X sub_image_1=plt.subplot(2,2,1) plt.xlabel('X value') plt.ylabel('Sin value') plt.grid(True) sub_image...
32.676471
165
0.729973
f85ead752c9700ddc5fb73af13b5441235631493
2,190
py
Python
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
1
2022-02-24T22:57:37.000Z
2022-02-24T22:57:37.000Z
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
5
2022-02-24T21:32:24.000Z
2022-03-23T15:52:25.000Z
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
null
null
null
"""Generated class for event_audit.json""" from .common import Entry
23.548387
77
0.648402
f85f1ff5fdc55f6eaa86305ff1243afdf2c3c231
7,624
py
Python
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
1
2019-06-27T11:32:48.000Z
2019-06-27T11:32:48.000Z
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ RGB Colourspace Transformations =============================== Defines the *RGB* colourspace transformations: - :func:`XYZ_to_RGB` - :func:`RGB_to_XYZ` - :func:`RGB_to_RGB` See Also -------- `RGB Colourspaces IPython Notebook <http://nbviewer.ipython.org/gith...
31.766667
115
0.613458
f85f4b7c7b491177a0f091a1844ac24655fff102
1,768
py
Python
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
from typing import List import pandas as pd import pytest from preprocessing.assign_folds import assign_folds testdata = [ [ [ "patient1", "patient2", "patient3", "patient4", "patient5", "patient6", "patient7", ...
24.901408
99
0.526584
f85fde926cda35a9fc74acc2b0acaa097f44bc32
456
py
Python
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from apps.tags.models import Tag
26.823529
72
0.736842
f86011337ef051c071ef0fd89e5bf4792bb54439
1,116
py
Python
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
399
2020-08-31T21:13:07.000Z
2022-03-31T18:54:26.000Z
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
157
2020-09-01T18:59:56.000Z
2022-03-25T07:14:19.000Z
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
53
2020-09-01T07:35:59.000Z
2022-03-28T23:21:16.000Z
"""Tests for __main__.py.""" # import logging from unittest.mock import MagicMock, patch import pytest import viseron.__main__ def test_init(simple_config, mocked_viseron): """Test init.""" viseron.__main__.main() # viseron.__main__.LOGGER.info("testing") with patch.object(viseron.__main__, "main",...
27.219512
74
0.606631
f8626522d55b3754f7c28ddbfd44245ded575b28
11,950
py
Python
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
41
2015-01-29T20:10:48.000Z
2022-01-26T10:04:28.000Z
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
46
2015-01-19T17:46:52.000Z
2021-12-19T01:22:47.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
33.194444
78
0.573138
f8629eacf541222ae1970586720f609c2d762f08
1,105
py
Python
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
1
2015-07-17T19:20:45.000Z
2015-07-17T19:20:45.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
33
2015-07-18T02:31:51.000Z
2015-08-04T02:07:41.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
7
2015-07-17T16:29:18.000Z
2021-08-31T01:03:53.000Z
from flask import session, redirect, url_for from flask.json import jsonify from api import app, oauth from api import models
27.625
83
0.656109
f863fdd49bdc9fc91c5a6863a1a6f2c9cb1fed2c
418
py
Python
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
1
2018-09-19T06:27:14.000Z
2018-09-19T06:27:14.000Z
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': column_generator()
34.833333
91
0.586124
f86413e599720995225d5a002a0228bfbc9b7ed7
22,250
py
Python
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
1
2019-02-25T10:27:41.000Z
2019-02-25T10:27:41.000Z
# -*- coding: utf-8 -*- """ This file contains language-specific implementation for an Afrikaans voice. The idea is that this file contains subclassed Voice and Phoneset implementations. This package ttslab/voices may then also contain speaker specific implementations e.g. "afrikaans_SPEAKER.py" """ fr...
52.352941
177
0.465573
f865843e860d96b7840567719ae0919a197d73ae
144,813
py
Python
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
1
2020-01-14T21:40:29.000Z
2020-01-14T21:40:29.000Z
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module contains analysis done for the Ocean iodide (Oi!) project This includes presentation at conferences etc... """ import numpy as np import pandas as pd import sparse2spatial as s2s import sparse2spatial.utils as utils import matplotlib import matplotlib.pyplot...
38.048607
340
0.57818
f8675dfd4e125d168dde1ba9e29185bd73af107b
4,331
py
Python
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
null
null
null
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
null
null
null
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
1
2021-01-24T17:07:37.000Z
2021-01-24T17:07:37.000Z
import pandas as pd from . import cashUtils as utils
36.091667
93
0.484184
f8683ceaf922240bb0a9b5391ea9deb94effc25d
253
py
Python
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
from distutils.core import Extension, setup from Cython.Build import cythonize from Cython.Compiler import Options Options.docstrings = False ext = Extension(name="cyt_module", sources=["cyt_module.pyx"]) setup( ext_modules = cythonize(ext), )
18.071429
62
0.766798
f86cbd077218ced0fe45ca2c5ef698554acc3ecd
18,995
py
Python
server_code.py
johnr0/TaleBrush-backend
f7429e10f328087444647d5dc6bf1f3a22ccfcce
[ "BSD-3-Clause" ]
1
2022-02-25T18:36:16.000Z
2022-02-25T18:36:16.000Z
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
from flask import request, url_for from flask_api import FlaskAPI, status, exceptions from flask_cors import CORS, cross_origin import torch import json import numpy as np import torch from modeling_gptneo import GPTNeoForCausalLM from modeling_gpt2 import GPT2LMHeadModel from transformers import ( GPTNeoConfig...
41.025918
140
0.588944
f86d0468889ac52f5ce1040fe21e913a6db95f94
20,391
py
Python
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
""" post_bands: post_bands extract data from static-o_DS3_EBANDS.agr and it will build the kpoints length: xcoord_k from the high symmetry line and the corresponding basis for reciprocal space. b1 = 1 / a1, b2 = 1 / a2 and b3 = 1 / a3. """ import os import numpy as np import matplotlib.pypl...
51.492424
142
0.529106
f86d356d798352c0185a9ec2592dc21b131a7ed8
337
py
Python
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
import logging import logging.config logging.config.fileConfig('./instance/logging.conf') # create logger logger = logging.getLogger('Cognitive-API') # 'application' code ''' logger.debug('debug message') logger.info('info message') logger.warning('warn message') logger.error('error message') logger.critical('criti...
19.823529
52
0.756677
f86db685725dd6affbd6d16efda49f2dd028eb93
1,735
py
Python
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
2
2017-11-21T10:00:47.000Z
2018-02-02T04:40:09.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
1
2018-10-31T06:56:22.000Z
2018-11-01T00:58:16.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
5
2017-12-14T01:07:21.000Z
2020-04-29T02:21:46.000Z
import json import unittest from buter.app.services import load_from_file, detect_app_name from buter.server import docker from buter.util.Utils import unzip from config import getConfig if __name__ == '__main__': unittest.main()
30.982143
109
0.609222
f86f8495a3b204ecbbc51199ca2187879cae3c8e
397
py
Python
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8-*- __author__ = 'Mason' import re import zipfile z = zipfile.ZipFile('channel.zip', mode='r') number = '90052' comments = [] while True: text = z.read(number + '.txt') number = re.findall('([0-9]+)', text) print number try: number = number[0] comments.append(z.getinfo...
19.85
59
0.594458
f870be2bd112b621b44e0d7642b1d268ee31edf5
728
py
Python
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
from products.product import Product from notifications.notification import Notification from clients.client import Client
33.090909
67
0.696429
f871c0ad8b9204fef05550a10cc4ceb534586079
654
py
Python
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
# https://atcoder.jp/contests/joi2008yo/tasks/joi2008yo_e R, C = list(map(int, input().split())) senbei_pos = [] ans = 0 for _ in range(R): pos = list(map(int, input().split())) senbei_pos.append(pos) for bit in range(2**R): total = 0 copied_pos = senbei_pos[:] # R101020 flip_row_pos = list(for...
29.727273
66
0.59633
f8724ce5a5705922dd55fcf91b7512b691dc8ab7
2,850
py
Python
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2018-03-27T00:08:26.000Z
2018-03-27T00:08:26.000Z
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
null
null
null
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2020-06-04T02:49:20.000Z
2020-06-04T02:49:20.000Z
#!/usr/env python3 import requests import os import glob import telegram from time import sleep token = "token" bot = telegram.Bot(token=token) # , bash youtube-dl -x --audio-format mp3 <link>, mp3 mp3_bot = BotHandler(token) if __name__ == '__main__': try: main() except KeyboardInter...
30.978261
138
0.597895
f873639a13e98ee3a4151d1be3542d91c969ac64
530
py
Python
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
1
2020-05-11T08:00:49.000Z
2020-05-11T08:00:49.000Z
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from djangobmf.views import ModuleCreateView from djangobmf.views import ModuleUpdateView from djangobmf.views import ModuleDetailView from .forms import BMFTeamUpdateForm from .forms import BMFTeamCreateForm
22.083333
44
0.828302
f873731d39e77de62eb053df48244e290afd54de
1,038
py
Python
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function import sys, os, glob, time, warnings, gc # import matplotlib.pyplot as plt import numpy as np from astropy.table import Table, vstack, hstack import fitsio from astropy.io import fits from scipy.interpolate import interp1d output_path = '/global/cfs/cdirs/desi/users/ro...
33.483871
116
0.706166
f87515fbbdca8d3d26053fb65bc3d5ece4d188b8
290
py
Python
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
import telepot # No criei um bot no telegram ainda, dessa forma este codigo no funciona # TODO: Criar bot no telegram e pegar chave bot = telepot.Bot("Aqui vai minha chave do Telegram") bot.message_loop(recebendoMsg) while True: pass
20.714286
74
0.741379
f875e138fd658884c3bfbd92197a369b04338ea0
4,590
py
Python
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
null
null
null
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
15
2018-08-30T13:56:27.000Z
2021-07-21T08:58:03.000Z
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
null
null
null
# Support for english (EN) language helper_commands = { "AUTHORIZE": "Usage:\n/authorize @<username>\n/authorize <user id>", "DEAUTHORIZE": "Usage:\n/deauthorize @<username>\n/deauthorize <user id>", "GIVEN": "Usage:\n/given <amount> @<username> <description>", "SPENT": "Usage:\n/spent <amount> <description>.\nPay...
49.891304
144
0.70305