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
42e77bb6f8a615aa18b12b83385ee014877a332f
340
py
Python
fdp/__init__.py
cffbots/fairdatapoint
6142b31408b5746d1a7e9f59e61735b7ad8bfde9
[ "Apache-2.0" ]
9
2020-03-27T12:58:51.000Z
2021-01-21T16:22:46.000Z
fdp/__init__.py
MaastrichtU-IDS/fairdatapoint
f9f38903a629acbdb74a6a20014ac424cc3d3206
[ "Apache-2.0" ]
26
2016-05-26T22:22:34.000Z
2020-02-13T07:12:37.000Z
fdp/__init__.py
MaastrichtU-IDS/fairdatapoint
f9f38903a629acbdb74a6a20014ac424cc3d3206
[ "Apache-2.0" ]
4
2020-06-09T18:37:33.000Z
2020-12-16T08:05:01.000Z
# -*- coding: utf-8 -*- import logging from .__version__ import __version__ logging.getLogger(__name__).addHandler(logging.NullHandler()) __author__ = "Rajaram Kaliyaperumal, Arnold Kuzniar, Cunliang Geng, Carlos Martinez-Ortiz" __email__ = 'c.martinez@esciencecenter.nl' __status__ = 'beta' __license__ = 'Apache Li...
26.153846
90
0.770588
42e78c22b92189ac4df049c1a2d85684f40079f9
358
py
Python
my_site/blog/admin.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
my_site/blog/admin.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
my_site/blog/admin.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post,Author,Tag # Register your models here. admin.site.register(Post,PostAdmin) admin.site.register(Author) admin.site.register(Tag)
23.866667
43
0.72905
42e8e15830841aa965ec225fd7e1715fe1c14fdd
60,795
py
Python
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2018 Caleb Bell <Caleb.Andrew.Bell@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 ...
35.407688
108
0.607385
42ead0688f656228fb0df39a2d45d3c1dd001507
532
py
Python
iaso/migrations/0115_auto_20220124_1120.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/migrations/0115_auto_20220124_1120.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/migrations/0115_auto_20220124_1120.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
1
2022-03-23T16:44:12.000Z
2022-03-23T16:44:12.000Z
# Generated by Django 3.1.14 on 2022-01-24 11:20 from django.db import migrations, models
22.166667
58
0.565789
42eb0db02ed2cdde4c36688526176ef0796f32f2
1,370
py
Python
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
163
2021-03-06T12:01:06.000Z
2022-03-01T22:52:36.000Z
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
61
2021-03-06T07:00:39.000Z
2021-04-13T10:25:58.000Z
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
9
2021-03-07T17:52:57.000Z
2021-10-18T21:35:23.000Z
"""Delete command Author: Rory Byrne <rory@rory.bio> """ from typing import Any from git_plan.cli.commands.command import Command from git_plan.service.plan import PlanService from git_plan.util.decorators import requires_initialized, requires_git_repository
31.136364
92
0.687591
42ebcdfbf6dd3a3f1a79b5af4ed661e3aa7d93c1
347
py
Python
newspaper2/newspaper2/news/admin.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
newspaper2/newspaper2/news/admin.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
newspaper2/newspaper2/news/admin.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from newspaper2.news.models import News, Event admin.site.register(News, NewsAdmin) admin.site.register(Event, NewsAdmin)
23.133333
46
0.752161
42ef38196b7af8975b40694b6eb1954f2a48845e
1,926
py
Python
vision_module.py
seongdong2/GRADUATION
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
2
2021-09-19T13:52:05.000Z
2021-10-04T01:09:21.000Z
vision_module.py
seongdong2/graduation
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
1
2021-10-14T06:19:44.000Z
2021-10-14T06:19:44.000Z
vision_module.py
seongdong2/graduation
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
null
null
null
import numpy as np import cv2 CLASSES = ["background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"] net = cv2.dnn.readNetFromCaffe( ...
30.571429
106
0.555556
42efd3e55b344db382180d65f36b45d066baab96
618
py
Python
riccipy/metrics/lewis_papapetrou.py
cjayross/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
4
2019-08-17T04:28:06.000Z
2021-01-02T15:19:18.000Z
riccipy/metrics/lewis_papapetrou.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
3
2019-08-02T04:07:43.000Z
2020-06-18T07:49:38.000Z
riccipy/metrics/lewis_papapetrou.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
null
null
null
""" Name: Lewis Papapetrou References: Ernst, Phys. Rev., v167, p1175, (1968) Coordinates: Cartesian """ from sympy import Function, Rational, exp, symbols, zeros coords = symbols("t x y z", real=True) variables = () functions = symbols("k r s w", cls=Function) t, x, y, z = coords k, r, s, w = functions metric = zeros...
30.9
77
0.553398
42efdd1edf57c5e0230ae9edaa82d469b2ef9074
2,591
py
Python
product/admin.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
product/admin.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
product/admin.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
from django.contrib import admin from modeltranslation.admin import TranslationAdmin from product.models import (Category, Discount, Review, Product, Properity, ProperityOption, Image, ShoppingCart, Tag,Wishlist,Color) admin.site.register(Review, ReviewAdmin) admin.site.register(Category, Categ...
31.987654
93
0.703589
42eff7b73d4d9e9bde660bd60b5a65140cceb73c
3,009
py
Python
aikatsu_ranking.py
yokky21/aikatsu-ranking
10d8e4d827414120e721640d42874c26f25c4811
[ "MIT" ]
null
null
null
aikatsu_ranking.py
yokky21/aikatsu-ranking
10d8e4d827414120e721640d42874c26f25c4811
[ "MIT" ]
null
null
null
aikatsu_ranking.py
yokky21/aikatsu-ranking
10d8e4d827414120e721640d42874c26f25c4811
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 # vim: ts=4 sw=4 import requests, lxml.html, json, sys, os, configparser, re from datetime import datetime from mastodon import * ## Initializing host = 'https://bpnavi.jp' ua = 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko...
33.065934
154
0.599535
42f0f632b463ffb1c555335ca23b1393342b2700
1,091
py
Python
L11-LP-farm-example.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
10
2018-12-23T02:59:06.000Z
2021-12-07T11:55:21.000Z
L11-LP-farm-example.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
null
null
null
L11-LP-farm-example.py
jdherman/eci273
86828b2e075258afdd528e86295170e162cc99e3
[ "MIT" ]
7
2018-12-21T02:06:51.000Z
2021-12-11T02:36:47.000Z
import numpy as np import matplotlib.pyplot as plt from scipy import optimize # Lecture 11 2-user water allocation example # First approach: scipy.optimize.linprog # need matrix form: minimize c^T * x, subject to Ax <= b c = [-5, -3] # negative to maximize A = [[10,5], [1,1.5], [2,2], [-1,0], [0,-1]] b = [20, 3, 4.5...
23.717391
78
0.582035
42f12d3200ce4d7e07aaba09b537e0ff03fb831a
1,471
py
Python
prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
## This file used to be programmatically generated for converging to best fit Activity Dependent Inhibition curve. ## But that doesn't give decent result, so set by hand. import sys sys.path.extend(["../networks"]) ## do not import networkConstants as that imports this file, and it's circular then!!! from networkConst...
54.481481
114
0.755948
42f674ee12a896bdc6fefab4b830b689f09ef5e4
499
py
Python
agoge/__init__.py
Nintorac/agoge
0abe66e41e4fcd865854cc009374e2a52ef5671c
[ "MIT" ]
null
null
null
agoge/__init__.py
Nintorac/agoge
0abe66e41e4fcd865854cc009374e2a52ef5671c
[ "MIT" ]
null
null
null
agoge/__init__.py
Nintorac/agoge
0abe66e41e4fcd865854cc009374e2a52ef5671c
[ "MIT" ]
null
null
null
from .utils import defaults_f DEFAULTS = defaults_f({ 'ARTIFACTS_ROOT': '~/agoge/artifacts', 'TQDM_DISABLED': False, 'TRIAL_ROOT': 'Worker', 'BUCKET': 'nintorac_model_serving', 'BASE_URL': 'https://github.com/Nintorac/NeuralDX7-weights/raw/master' }) from .data_handler import DataHandler from .mod...
31.1875
74
0.771543
42f8e8791025cfd39e8878d6744a088d9902c8a3
1,206
py
Python
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
# * # ** # Python3 if __name__ == '__main__': print('Start test as main.') show_type() test_mutable()
19.451613
74
0.543118
42f979541235624972aa7beb6b4040036e613c33
951
py
Python
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from scrapystsytem.misc.commonspider import CommonSpider from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor as sle logger = logging.getLogger(__name__)
31.7
89
0.648791
42faa478c98edc7e43520c1e76c93b612e769679
560
py
Python
hurricane/base.py
ericflo/hurricane
c192b711b2b1c06a386d1a1a47f538b13a659cde
[ "BSD-3-Clause" ]
8
2015-02-21T17:59:41.000Z
2021-01-07T20:57:39.000Z
hurricane/base.py
ericflo/hurricane
c192b711b2b1c06a386d1a1a47f538b13a659cde
[ "BSD-3-Clause" ]
null
null
null
hurricane/base.py
ericflo/hurricane
c192b711b2b1c06a386d1a1a47f538b13a659cde
[ "BSD-3-Clause" ]
2
2016-07-09T16:06:23.000Z
2016-08-02T18:44:20.000Z
import uuid
23.333333
59
0.542857
42fb56f78da3eca5f6dfd2e9de1258342401faa4
469
py
Python
nbexchange/handlers/__init__.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
7
2020-04-30T20:16:18.000Z
2021-09-11T20:31:51.000Z
nbexchange/handlers/__init__.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
86
2020-03-06T15:34:55.000Z
2022-03-07T11:58:06.000Z
nbexchange/handlers/__init__.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
1
2020-07-25T23:04:51.000Z
2020-07-25T23:04:51.000Z
from nbexchange.handlers.assignment import Assignment, Assignments from nbexchange.handlers.collection import Collection, Collections from nbexchange.handlers.feedback import FeedbackHandler from nbexchange.handlers.pages import HomeHandler from nbexchange.handlers.submission import Submission, Submissions default_han...
27.588235
66
0.803838
42fe26b4d9e2cf96a145d2ebd3a33d07d37ab54e
2,476
py
Python
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
1
2021-12-01T17:43:38.000Z
2021-12-01T17:43:38.000Z
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
#!/bin/env python3 import operator from _operator import attrgetter, itemgetter from collections import defaultdict, Counter from functools import reduce, partial from itertools import chain from aocd import get_data EMPTY = type('EMPTY', (int,), dict(__repr__=(f := lambda s: 'EMPTY'), __str__=f))(10) heights = g...
26.340426
91
0.560582
42ff0390633d326bb027aa10d5b16efa20802940
1,343
py
Python
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
null
null
null
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
null
null
null
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
3
2021-12-17T04:28:02.000Z
2022-02-22T18:18:03.000Z
from detectron2.engine import DefaultPredictor from detectron2.data import MetadataCatalog from detectron2.config import get_cfg from detectron2.utils.visualizer import ColorMode, Visualizer from detectron2 import model_zoo import cv2 import numpy as np import requests # Load an image res = requests.get("h...
37.305556
191
0.737156
42ff644535c1107deafd0fab424dd9161db0897b
9,920
py
Python
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
28
2020-11-05T16:04:51.000Z
2021-02-16T22:58:10.000Z
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
43
2020-11-06T19:21:39.000Z
2021-02-25T19:04:42.000Z
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
4
2020-11-06T08:54:57.000Z
2021-01-18T03:26:00.000Z
import os import yaml import json import click import hydra.utils.constants as const from hydra.utils.git import check_repo from hydra.utils.utils import dict_to_string, inflate_options from hydra.cloud.local_platform import LocalPlatform from hydra.cloud.fast_local_platform import FastLocalPlatform from hydra.cloud.go...
44.684685
200
0.674698
6e001fac10af046d03ee8754375ce8c560a47171
773
py
Python
_estudoPython_solid/requests/request.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
_estudoPython_solid/requests/request.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
_estudoPython_solid/requests/request.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
'''requests biblioteca beaultiful solp para pginas web. ''' from builtins import print import requests '''compartilhando o cabeario http, vem junto com requesio cabecalho = {'User-agent': 'Windows 12', 'Referer': 'https://google.com.br'} meus_cookies = {'Ultima-visita': '10-10-2020'} meus_dado...
28.62963
67
0.641656
6e01596134dc9f1610c5e8f76e5d30c43961114c
23,738
py
Python
Tac Tac Toe/ttt_mobile_1080p.py
promitbasak/TicTacToe-Pygame
6114cee9498d70942f48a0b6eb360f02bcf72df0
[ "MIT" ]
3
2020-06-15T13:50:51.000Z
2021-08-18T05:10:17.000Z
Tac Tac Toe/ttt_mobile_1080p.py
promitbasak/TicTacToe-Pygame
6114cee9498d70942f48a0b6eb360f02bcf72df0
[ "MIT" ]
null
null
null
Tac Tac Toe/ttt_mobile_1080p.py
promitbasak/TicTacToe-Pygame
6114cee9498d70942f48a0b6eb360f02bcf72df0
[ "MIT" ]
1
2020-06-15T13:52:49.000Z
2020-06-15T13:52:49.000Z
import pygame import random import sys Xfactor = 1.35 Yfactor = 3.2 CELLS = 9 PLAYERS = 2 CORNERS = [1, 3, 7, 9] NON_CORNERS = [2, 4, 6, 8] board = {} for i in range(9): board[i + 1] = 0 signs = {0: " ", 1: "X", 2: "O"} winner = None boardX = 10 boardY = 464 icon = pygame.image.load("ttticon2.png"...
32.742069
95
0.433566
6e0596f60ea2aacca4a2e542940c06bbc4f394b7
25,458
py
Python
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/9/18 11:23 # @Author : DaiPuWei # @Email : 771830171@qq.com # @File : dataset_utils.py # @Software: PyCharm """ YOLO """ import cv2 import numpy as np from PIL import Image from matplotlib.colors import rgb_to_hsv, hsv_to_rgb from utils.model_utils import get_clas...
39.902821
112
0.439351
6e080db2602e0c90c09249fc8d6eeaeabeabd005
750
py
Python
caesar_cipher.py
DomirScire/Basic_Ciphers
7425b306f8d0ce9ceb5ba3a59e73a52892bee5ca
[ "MIT" ]
1
2021-03-31T23:29:00.000Z
2021-03-31T23:29:00.000Z
caesar_cipher.py
DomirScire/Ciphers_Py
127c82b14c9bd5595f924bc267b6bf238f654c22
[ "MIT" ]
null
null
null
caesar_cipher.py
DomirScire/Ciphers_Py
127c82b14c9bd5595f924bc267b6bf238f654c22
[ "MIT" ]
null
null
null
import string if __name__ == "__main__": print(caesar_cipher("meetMeAtOurHideOutAtTwo", 10)) print(caesar_cipher("woodWoKdYebRsnoYedKdDgy", 10, decrypt=True))
27.777778
70
0.630667
6e0977041deef6fa7bf74e2fadd3b0a89bcf73e3
6,953
py
Python
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
1
2018-02-18T15:51:57.000Z
2018-02-18T15:51:57.000Z
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
null
null
null
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
null
null
null
import json import logging from app.abc import StartError from app.device import DeviceApp, DeviceMessage from app.device.models import Device from app.hint import HintApp from app.hint.defs import HintMessage from util.storage import DataStore LOGGER = logging.getLogger(__name__)
38.414365
78
0.576154
6e0c62be30176a8297c1bf84eb84e82bffd0d9ee
3,281
py
Python
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
# # Author: Micha Borzcki # # This script creates empty files with study and data object metadata in # specified space and Oneprovider. It uses JSON files located in directories # `studies_dir` (= studies) and `data_object_dir` (= data_objects). Positional # arguments: # 1. Oneprovider location (IP address or domain)....
33.824742
102
0.643401
6e0cbccdccc4307ec0cd8efe2c3cb65f9c612951
1,925
py
Python
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
from flask import jsonify, request import backend.services.user as user_services from . import bp
27.112676
81
0.628052
6e0cf115db4bb95a08b1d4ece55fa11c8d6418e1
222
py
Python
src/mot/motion_models/__init__.py
neer201/Multi-Object-Tracking-for-Automotive-Systems-in-python
886cd9e87283982381713dbf2e4ef695030f81de
[ "Apache-2.0" ]
6
2021-11-21T10:47:01.000Z
2022-03-17T01:14:53.000Z
src/mot/motion_models/__init__.py
neer201/Multi-Object-Tracking-for-Automotive-Systems-in-python
886cd9e87283982381713dbf2e4ef695030f81de
[ "Apache-2.0" ]
3
2021-04-12T12:37:41.000Z
2021-04-30T14:29:53.000Z
src/mot/motion_models/__init__.py
neer201/Multi-Object-Tracking-for-Automotive-Systems-in-python
886cd9e87283982381713dbf2e4ef695030f81de
[ "Apache-2.0" ]
null
null
null
# flake8: noqa from mot.motion_models.base_motion_model import MotionModel from mot.motion_models.CT_motion_model import CoordinateTurnMotionModel from mot.motion_models.CV_motion_model import ConstantVelocityMotionModel
37
73
0.891892
6e0db8ed1374b74b17dc4c64dad644332a33ce07
7,205
py
Python
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
# modu # Copyright (c) 2006-2010 Phil Christensen # http://modu.bubblehouse.org # # # See LICENSE for details """ Datatypes for managing stringlike data. """ import time, datetime from zope.interface import implements from modu.editable import IDatatype, define from modu.util import form, tags, date from modu.persi...
28.82
106
0.658015
6e0dc799717432679f99b12ed1cdbf0dbbf71f58
829
py
Python
calculator.py
MateusLinharesDeAelencarLima/Calculator
44e836aa92fd76d21b4c5f0edfcb5419886f1df6
[ "CC0-1.0" ]
null
null
null
calculator.py
MateusLinharesDeAelencarLima/Calculator
44e836aa92fd76d21b4c5f0edfcb5419886f1df6
[ "CC0-1.0" ]
1
2021-09-10T21:13:16.000Z
2021-09-23T16:13:08.000Z
calculator.py
MateusLinharesDeAelencarLima/Calculator
44e836aa92fd76d21b4c5f0edfcb5419886f1df6
[ "CC0-1.0" ]
null
null
null
from functions.summation import summation from functions.subtraction import subtraction from functions.multiplication import multiplication from functions.division import division from functions.exponential import exponential from functions.root import root num1 = float(input('nmero 1: ')) num2 = float(input('nmero 2:...
34.541667
51
0.784077
6e0f3ad7fb4aa74ebb70351b2ab8036b7bfa68b3
2,949
py
Python
tests.py
suetAndTie/ekho
fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd
[ "MIT" ]
1
2019-01-31T19:17:01.000Z
2019-01-31T19:17:01.000Z
tests.py
suetAndTie/ekho
fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd
[ "MIT" ]
null
null
null
tests.py
suetAndTie/ekho
fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd
[ "MIT" ]
null
null
null
! pip install -q librosa nltk import torch import numpy as np import librosa import librosa.display import IPython from IPython.display import Audio # need this for English text processing frontend import nltk ! python -m nltk.downloader cmudict preset = "20180505_deepvoice3_ljspeech.json" checkpoint_path = "20180505...
32.406593
106
0.758901
6e10c0ea90829d65558f7e100bd54ed82664fe76
405
py
Python
lib/utils/checks.py
Matt-cloud/Discord.py-Template
4b2ac9f0897bb44dfd799d821e536fc34ef3064e
[ "MIT" ]
null
null
null
lib/utils/checks.py
Matt-cloud/Discord.py-Template
4b2ac9f0897bb44dfd799d821e536fc34ef3064e
[ "MIT" ]
null
null
null
lib/utils/checks.py
Matt-cloud/Discord.py-Template
4b2ac9f0897bb44dfd799d821e536fc34ef3064e
[ "MIT" ]
null
null
null
from discord.ext import commands from lib import exceptions import os import json configFile = os.path.join(os.getcwd(), "data", "config.json") with open(configFile, "rb") as f: config = json.load(f)
22.5
61
0.681481
6e11308aa80bc676e3ca2d21a4edcb18f890e752
1,649
py
Python
envs/fetch/interval.py
malikasng/Bbox_HGG_with_CTR_and_RRTstarFND
2b1aae6c347f544fefface0c9f26dc4ecde51108
[ "MIT" ]
1
2020-09-16T06:15:17.000Z
2020-09-16T06:15:17.000Z
envs/fetch/interval.py
malikasng/Bbox_HGG_with_CTR_and_RRTstarFND
2b1aae6c347f544fefface0c9f26dc4ecde51108
[ "MIT" ]
5
2020-09-26T01:30:01.000Z
2022-01-13T03:15:42.000Z
envs/fetch/interval.py
malikasng/Bbox_HGG_with_CTR_and_RRTstarFND
2b1aae6c347f544fefface0c9f26dc4ecde51108
[ "MIT" ]
null
null
null
import gym import numpy as np from torchvision.utils import save_image from .fixobj import FixedObjectGoalEnv
37.477273
149
0.726501
6e11fb05adb494991b86d4b22a22f936a7c8a876
1,908
py
Python
cactusbot/commands/magic/alias.py
CactusBot/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
23
2016-02-16T05:09:11.000Z
2016-09-20T14:22:51.000Z
cactusbot/commands/magic/alias.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
190
2016-09-30T05:31:59.000Z
2018-12-22T08:46:49.000Z
cactusbot/commands/magic/alias.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
16
2016-10-09T16:51:48.000Z
2017-10-25T05:29:10.000Z
"""Alias command.""" from . import Command from ...packets import MessagePacket
32.338983
78
0.545597
6e13a8102a55ae649fda3dcfedbae946ebff32c0
2,828
py
Python
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
import numpy as np def normalize(signal, minimum=None, maximum=None): """Normalize a signal to the range 0, 1. Uses the minimum and maximum observed in the data unless explicitly passed.""" signal = np.array(signal).astype('float') if minimum is None: minimum = np.min(signal) if maximum is None...
40.985507
132
0.597242
6e14c71363bc33135f20b63aec47306b9531737a
2,839
py
Python
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
17
2022-03-06T05:06:14.000Z
2022-03-31T00:25:06.000Z
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
6
2022-03-27T18:18:40.000Z
2022-03-31T17:35:34.000Z
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
1
2022-03-31T13:07:41.000Z
2022-03-31T13:07:41.000Z
import os import sys import hashlib import importlib if is_available_boto3(): import boto3 from botocore import UNSIGNED from botocore.client import Config else: raise ModuleNotFoundError("Please install boto3 with: `pip install boto3`.")
31.898876
80
0.610426
6e154f31690fe2c1e126dc21483f4d1d4a667900
348
py
Python
Python_Files/murach/book_apps/ch13/factorial_recursion.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
Python_Files/murach/book_apps/ch13/factorial_recursion.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
Python_Files/murach/book_apps/ch13/factorial_recursion.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
20.470588
39
0.514368
6e15e9506e9a75c167124e23e066dc0069217190
1,565
py
Python
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
9
2020-06-17T17:33:05.000Z
2022-03-30T17:32:05.000Z
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
28
2020-06-16T18:32:08.000Z
2020-11-12T17:51:20.000Z
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
4
2020-08-07T20:05:49.000Z
2021-10-21T01:43:00.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # 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 ag...
29.528302
78
0.705431
6e1651dd40e1ae6c43644b4a77456f4eb701c53a
1,054
py
Python
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
from sqlalchemy import * from sqlalchemy.orm import relationship from db import db def __update_id__(fleet): fleet.id = ':'.join([fleet.deployment_target_id, fleet.fleet_type_id, fleet.name])
30.114286
89
0.736243
6e17097d88bd49914581f2dfe02ed8fa34bee9d4
254
py
Python
backend/authentication/admin.py
jklewis99/hypertriviation
e12be87e978505fb3a73f4fc606173f41a3aee81
[ "MIT" ]
1
2022-03-27T19:39:07.000Z
2022-03-27T19:39:07.000Z
backend/authentication/admin.py
jklewis99/hypertriviation
e12be87e978505fb3a73f4fc606173f41a3aee81
[ "MIT" ]
5
2022-03-27T19:32:54.000Z
2022-03-31T23:25:44.000Z
backend/authentication/admin.py
jklewis99/hypertriviation
e12be87e978505fb3a73f4fc606173f41a3aee81
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import HypertriviationUser # Register your models here. admin.site.register(HypertriviationUser, HypertriviationUserAdmin)
25.4
66
0.838583
6e1773f3e2177f91fdf46e022af55af83edbbcb5
1,568
py
Python
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
26
2019-02-04T04:55:09.000Z
2021-09-22T14:58:46.000Z
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
2
2019-05-07T16:33:09.000Z
2021-02-13T18:25:35.000Z
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
27
2018-12-10T12:13:50.000Z
2020-10-11T17:43:22.000Z
################################################################### ######## Follow up email ############# ################################################################### """ followup_email.py This is special use case code written to assist bot developers. It consolidates to...
26.133333
122
0.646684
6e18dbf82c0ab208ca098975575465ec97248c7b
269
py
Python
backend/validators/authorization_val.py
NelsonM9/senaSoft
d72b5ed32b86a53aac962ec440d84ecce4555780
[ "Apache-2.0" ]
null
null
null
backend/validators/authorization_val.py
NelsonM9/senaSoft
d72b5ed32b86a53aac962ec440d84ecce4555780
[ "Apache-2.0" ]
null
null
null
backend/validators/authorization_val.py
NelsonM9/senaSoft
d72b5ed32b86a53aac962ec440d84ecce4555780
[ "Apache-2.0" ]
null
null
null
from marshmallow import validate, fields, Schema
38.428571
74
0.758364
6e1b6e602b092d059fb5b4b96bb130aa002770f4
1,213
py
Python
wiwo/sender.py
CoreSecurity/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
76
2015-08-01T23:24:43.000Z
2018-07-02T11:13:16.000Z
wiwo/sender.py
6e726d/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
1
2016-01-28T22:11:17.000Z
2016-02-03T22:14:46.000Z
wiwo/sender.py
6e726d/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
27
2015-08-11T07:24:42.000Z
2018-10-05T11:09:54.000Z
#!/usr/bin/env python # -*- coding: iso-8859-15 -*- # # Copyright 2003-2015 CORE Security Technologies # # 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/LIC...
28.880952
74
0.678483
6e1d05dba9a266286addc73ec4950cdeada8c0b4
1,581
py
Python
config.py
juanjtov/Twitter_PNL_PUBLIC
473eea0e7b030c8358aa86f6d3ff9d787c94abe6
[ "MIT" ]
null
null
null
config.py
juanjtov/Twitter_PNL_PUBLIC
473eea0e7b030c8358aa86f6d3ff9d787c94abe6
[ "MIT" ]
null
null
null
config.py
juanjtov/Twitter_PNL_PUBLIC
473eea0e7b030c8358aa86f6d3ff9d787c94abe6
[ "MIT" ]
null
null
null
import os
39.525
127
0.697027
6e1de2b972d3bacd17bc4fe230cc40342951d8ec
130
py
Python
code/helpers/__init__.py
briandesilva/discovery-of-physics-from-data
b79c34317f049c9b47aaf2cc4c54c5ec7219f3d7
[ "MIT" ]
11
2020-07-02T01:48:27.000Z
2022-03-29T18:23:32.000Z
code/helpers/__init__.py
briandesilva/discovery-of-physics-from-data
b79c34317f049c9b47aaf2cc4c54c5ec7219f3d7
[ "MIT" ]
null
null
null
code/helpers/__init__.py
briandesilva/discovery-of-physics-from-data
b79c34317f049c9b47aaf2cc4c54c5ec7219f3d7
[ "MIT" ]
3
2020-11-21T09:11:21.000Z
2022-03-29T18:23:58.000Z
from .library import * from .differentiation import * from .sindy_ball import SINDyBall from .tests import * from .utils import *
21.666667
33
0.776923
6e1fd593ca8661737d9d161ba6774b763dcdbb57
341
py
Python
users/models.py
diogor/desafio-backend
4264a843503cc51f635bcfb31a009d53ebe671d8
[ "MIT" ]
null
null
null
users/models.py
diogor/desafio-backend
4264a843503cc51f635bcfb31a009d53ebe671d8
[ "MIT" ]
null
null
null
users/models.py
diogor/desafio-backend
4264a843503cc51f635bcfb31a009d53ebe671d8
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser
21.3125
63
0.609971
6e1ff72ebc4c23799d24fd64dfc337c27cbb1d44
151
py
Python
python/glob/glob1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python/glob/glob1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python/glob/glob1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
#!/usr/bin/python import glob main()
13.727273
36
0.569536
6e201007363380e4d643bfc71a7961525d34bdc2
4,073
py
Python
email_scrapper/readers/gmail_reader.py
datmellow/email-scrapper
614e99a4b33f3a0d3d85d5eb9c359818991673a6
[ "MIT" ]
2
2018-01-07T23:12:28.000Z
2018-01-10T00:58:17.000Z
email_scrapper/readers/gmail_reader.py
LucasCoderT/email-scrapper
614e99a4b33f3a0d3d85d5eb9c359818991673a6
[ "MIT" ]
null
null
null
email_scrapper/readers/gmail_reader.py
LucasCoderT/email-scrapper
614e99a4b33f3a0d3d85d5eb9c359818991673a6
[ "MIT" ]
1
2019-12-09T17:01:08.000Z
2019-12-09T17:01:08.000Z
import base64 import datetime import email import logging import os import typing from email.message import Message from googleapiclient import errors from email_scrapper.models import Stores from email_scrapper.readers.base_reader import BaseReader logger = logging.getLogger(__name__)
41.141414
117
0.615762
6e218f16003cae78a4d29f7eb9e696aa4c77eb3e
187
py
Python
ClassCode/P2/HW - Copy.py
tsyet12/ClassCode
db1db97f71a6f31769d58739c6687863bc6b88c4
[ "MIT" ]
null
null
null
ClassCode/P2/HW - Copy.py
tsyet12/ClassCode
db1db97f71a6f31769d58739c6687863bc6b88c4
[ "MIT" ]
null
null
null
ClassCode/P2/HW - Copy.py
tsyet12/ClassCode
db1db97f71a6f31769d58739c6687863bc6b88c4
[ "MIT" ]
null
null
null
a=[1,2,3] b=[1,1,1] #d={1:"ONE", 2:"TWO", 3:"THREE", 4:"FOUR", 5:"FIVE", 6:"SIX"} f=[a[0]+b[0],a[1]+b[1],a[2]+b[2]] if f[0]==1: f[0]="ONE" elif f[0]==2: f[0]="TWO" print(f)
11.6875
61
0.417112
6e2255b8f77a18ad6776515831039d97cfa15e3a
748
py
Python
Advanced_algorithm/oj_test/test04.py
mndream/MyOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
1
2018-12-27T08:06:38.000Z
2018-12-27T08:06:38.000Z
Advanced_algorithm/oj_test/test04.py
mndream/MyPythonOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
null
null
null
Advanced_algorithm/oj_test/test04.py
mndream/MyPythonOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
null
null
null
''' A+B for Input-Output Practice (IV) Your task is to Calculate the sum of some integers. Input contains multiple test cases. Each test case contains a integer N, and then N integers follow in the same line. A test case starting with 0 terminates the input and this test case is not to be processed. For each group o...
24.933333
91
0.669786
6e22c62fbf96771a37ae5b157b23776e81cda2c5
2,421
py
Python
pre-processing/obtain_audio_spectrogram.py
GeWu-Lab/OGM-GE_CVPR2022
08b3f2498dd3e89f57fe9a12b5bf0c162eba1fbf
[ "MIT" ]
4
2022-03-06T17:57:24.000Z
2022-03-24T04:26:32.000Z
pre-processing/obtain_audio_spectrogram.py
GeWu-Lab/OGM-GE_CVPR2022
08b3f2498dd3e89f57fe9a12b5bf0c162eba1fbf
[ "MIT" ]
null
null
null
pre-processing/obtain_audio_spectrogram.py
GeWu-Lab/OGM-GE_CVPR2022
08b3f2498dd3e89f57fe9a12b5bf0c162eba1fbf
[ "MIT" ]
1
2022-03-31T08:12:15.000Z
2022-03-31T08:12:15.000Z
import multiprocessing import os import os.path import pickle import librosa import numpy as np from scipy import signal if __name__ == '__main__': # Establish communication queues tasks = multiprocessing.JoinableQueue() # Start consumers num_consumers = multiprocessing.cpu_count() print('Crea...
28.482353
106
0.646014
6e237945177ee47426cc1fcc873291dbba403f32
3,317
py
Python
src/protean/core/event_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
src/protean/core/event_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
src/protean/core/event_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
import inspect import logging from protean.container import Element, OptionsMixin from protean.core.event import BaseEvent from protean.exceptions import IncorrectUsageError from protean.utils import DomainObjects, derive_element_class, fully_qualified_name from protean.utils.mixins import HandlerMixin logger = loggi...
36.855556
114
0.619234
6e246664f07a32e8eef7dfd24b7f3cda19fa9734
7,508
py
Python
read_prepare_data.py
jlu-ilr-hydro/IPCC-Repots-Focus-Overview
bf631975eb6c3ea2cf2f8fe9382e3361ad700a6e
[ "Apache-2.0" ]
null
null
null
read_prepare_data.py
jlu-ilr-hydro/IPCC-Repots-Focus-Overview
bf631975eb6c3ea2cf2f8fe9382e3361ad700a6e
[ "Apache-2.0" ]
null
null
null
read_prepare_data.py
jlu-ilr-hydro/IPCC-Repots-Focus-Overview
bf631975eb6c3ea2cf2f8fe9382e3361ad700a6e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 17 10:12:26 2021 @author: Florian Jehn """ import os import pandas as pd import numpy as np def read_ipcc_counts_temp(): """reads all counts of temperatures for all reports and makes on df""" files = os.listdir(os.getcwd()+os.sep+"Results"+ os.sep + "temperature...
48.128205
300
0.683404
6e25342e23a32ed5b961b03bb3584a54058a2d5c
156
py
Python
tests/test_get_filesize.py
zevaverbach/zev
7330718f4eee28695fe57fb1107e506e6b0c9e4e
[ "MIT" ]
null
null
null
tests/test_get_filesize.py
zevaverbach/zev
7330718f4eee28695fe57fb1107e506e6b0c9e4e
[ "MIT" ]
1
2019-07-20T09:26:46.000Z
2019-07-20T09:26:46.000Z
tests/test_get_filesize.py
zevaverbach/zev
7330718f4eee28695fe57fb1107e506e6b0c9e4e
[ "MIT" ]
null
null
null
from pytest import fixture from zev.get_filesize import get_filesize
19.5
44
0.814103
6e253d478e601785b1142f2b0dc902543e75cdbc
179
py
Python
part1/03.py
jbaltop/57_Challenges
fa66ac584fc02761803fbd5692b737a73bd57983
[ "MIT" ]
31
2017-10-08T15:57:07.000Z
2021-06-16T11:55:05.000Z
part1/03.py
jbaltop/57_Challenges
fa66ac584fc02761803fbd5692b737a73bd57983
[ "MIT" ]
1
2021-04-30T20:39:01.000Z
2021-04-30T20:39:01.000Z
part1/03.py
jbaltop/57_Challenges
fa66ac584fc02761803fbd5692b737a73bd57983
[ "MIT" ]
7
2017-10-16T17:13:36.000Z
2019-07-03T16:24:01.000Z
main()
16.272727
58
0.502793
6e265824cd5b4d3d09aa3a85134608484df9ae21
1,151
py
Python
Integertask.py
Ainara12/Programing-Scripting-problems
1017c1a8a3aeabc040886f9bdab35b252e7e08ea
[ "MIT" ]
null
null
null
Integertask.py
Ainara12/Programing-Scripting-problems
1017c1a8a3aeabc040886f9bdab35b252e7e08ea
[ "MIT" ]
null
null
null
Integertask.py
Ainara12/Programing-Scripting-problems
1017c1a8a3aeabc040886f9bdab35b252e7e08ea
[ "MIT" ]
null
null
null
#This program calculates the successive values of the following # calculation: Next value by taking the positive integer added by user # and if it is even divide it by 2, if it is odd, multiply by #3 and add 1.Program ends if current value is 1. #First: I created variable "pnumber" which will be the positive integer ...
34.878788
100
0.701998
6e2666a6e406e4ebd7fe6e6904bdb4696b8d2f47
404
py
Python
has33.py
CombatPompano81/Python-Snippets-Galore
c2fb9c6ebef0477895749db9f2aa0f87132a72d6
[ "Apache-2.0" ]
null
null
null
has33.py
CombatPompano81/Python-Snippets-Galore
c2fb9c6ebef0477895749db9f2aa0f87132a72d6
[ "Apache-2.0" ]
null
null
null
has33.py
CombatPompano81/Python-Snippets-Galore
c2fb9c6ebef0477895749db9f2aa0f87132a72d6
[ "Apache-2.0" ]
null
null
null
# main function has33([1, 3, 3]) has33([3, 1, 3]) has33([3, 3, 3]) has33([1, 3, 1, 3])
22.444444
75
0.569307
6e26eeb7a1d51ccae528791cb9b9b4c924ad57bd
914
py
Python
proj/urls.py
vitali-rebkavets-itechart/students-lab
574ad0249ee40b799a2e8faaced3661915bee756
[ "MIT" ]
null
null
null
proj/urls.py
vitali-rebkavets-itechart/students-lab
574ad0249ee40b799a2e8faaced3661915bee756
[ "MIT" ]
26
2019-05-21T13:24:59.000Z
2019-06-13T10:24:29.000Z
proj/urls.py
vitali-r/students-lab
574ad0249ee40b799a2e8faaced3661915bee756
[ "MIT" ]
2
2019-05-21T12:55:23.000Z
2019-05-21T14:31:14.000Z
from django.contrib import admin from django.urls import path, include from django.conf.urls.static import static from django.conf import settings from products.views import (products, index, products_detail) from rest_framework_jwt.views import refresh_jwt_token from users.views import Obta...
35.153846
80
0.705689
6e2726ca9cbe233a3e8bac00017eecef8153cd91
17,692
py
Python
survos2/frontend/plugins/objects.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
4
2017-10-10T14:47:16.000Z
2022-01-14T05:57:50.000Z
survos2/frontend/plugins/objects.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
1
2022-01-11T21:11:12.000Z
2022-01-12T08:22:34.000Z
survos2/frontend/plugins/objects.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
2
2018-03-06T06:31:29.000Z
2019-03-04T03:33:18.000Z
from survos2.config import Config import numpy as np from numpy.lib.function_base import flip from qtpy import QtWidgets from qtpy.QtWidgets import QPushButton, QRadioButton from survos2.frontend.components.base import * from survos2.frontend.components.entity import ( SmallVolWidget, TableWidget, setup_en...
37.562633
111
0.603154
6e27e9a98e0663d5f4593b8e13414810400eac10
1,248
py
Python
src/calc_orientation.py
ouyang-lab/CAPC
e0fcc698da833b9195315d6769bd076646323289
[ "Apache-2.0" ]
5
2020-08-24T16:18:45.000Z
2021-07-07T16:54:32.000Z
src/calc_orientation.py
ouyang-lab/CAPC
e0fcc698da833b9195315d6769bd076646323289
[ "Apache-2.0" ]
null
null
null
src/calc_orientation.py
ouyang-lab/CAPC
e0fcc698da833b9195315d6769bd076646323289
[ "Apache-2.0" ]
1
2020-12-09T04:15:59.000Z
2020-12-09T04:15:59.000Z
import sys import gzip import numpy as np if __name__ == "__main__": f_names = sys.argv[1:] max_value = 100000 bin_size = 50 threshold = 0.01 data = [] total_bins = (max_value/bin_size)+1 for no, f_name in enumerate(f_names): #prefix = f_name.split("/")[-1].replace(".tx...
23.54717
72
0.491186
6e28319339ecb10a654afec47c04531f1e4fc2e5
5,459
py
Python
tests/benchmark/preprocess_img/preproc.py
mpascucci/AST-image-processing
54111e874237f0c146760d514eea96131177878a
[ "ECL-2.0", "Apache-2.0" ]
6
2020-11-24T15:55:35.000Z
2021-12-31T11:52:56.000Z
tests/benchmark/preprocess_img/preproc.py
mpascucci/AST-image-processing
54111e874237f0c146760d514eea96131177878a
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-24T15:46:15.000Z
2020-11-24T15:46:15.000Z
tests/benchmark/preprocess_img/preproc.py
mpascucci/AST-image-processing
54111e874237f0c146760d514eea96131177878a
[ "ECL-2.0", "Apache-2.0" ]
3
2021-02-04T10:08:43.000Z
2022-02-21T02:00:47.000Z
from tqdm import tqdm import os import glob import pickle import numpy as np from imageio import imread, imwrite import astimp from multiprocessing import Pool, cpu_count from functools import partial def preprocess_one_image(path): img = np.array(imread(path)) # load image ast = astimp.AST(img) c...
31.923977
98
0.596263
6e28b70b57732d2994e0b212e99122e11d61d96f
1,024
py
Python
src/main.py
Evelkos/PAM-and-CLARA
26fbb8d2d4a7924ce1d0d504c4b23bac38238c69
[ "MIT" ]
null
null
null
src/main.py
Evelkos/PAM-and-CLARA
26fbb8d2d4a7924ce1d0d504c4b23bac38238c69
[ "MIT" ]
null
null
null
src/main.py
Evelkos/PAM-and-CLARA
26fbb8d2d4a7924ce1d0d504c4b23bac38238c69
[ "MIT" ]
null
null
null
from clustering_algorithms import CLARA, PAM, get_initial_points from data_loaders import load_data from timer import Timer from visualizers import plot_data # FILENAME = "datasets/artificial/sizes3.arff" FILENAME = "datasets/artificial/zelnik4.arff" # FILENAME = "datasets/artificial/xclara.arff" # FILENAME = "dataset...
30.117647
88
0.709961
6e2927924bc2223cbcdf3f80649b9ddc5b016ea6
1,143
py
Python
module/test.py
yuxy000/PythonSyntax
efbfddbd62d88fa6768035d0155c9e8d17cb5670
[ "MIT" ]
null
null
null
module/test.py
yuxy000/PythonSyntax
efbfddbd62d88fa6768035d0155c9e8d17cb5670
[ "MIT" ]
null
null
null
module/test.py
yuxy000/PythonSyntax
efbfddbd62d88fa6768035d0155c9e8d17cb5670
[ "MIT" ]
null
null
null
from module import support from module import fibo import sys support.print_func("Runoob") fibo.fib(1000) print(fibo.fib2(100)) print(fibo.__name__) # fib = fibo.fib fib(10) """ fromimport Pythonfrom from modname import name1[, name2[, ... nameN]] fibo fib >>> from fibo import fib, fib2 >>> fib(500) 1 1 2 3 5...
19.05
85
0.726159
6e2a9766e0a79f77304a55be682d4bc167bde209
4,459
py
Python
src/utils.py
zimonitrome/AbstractionNet
a037b696ccac015936d60026cb1ac4ebafc68371
[ "MIT" ]
null
null
null
src/utils.py
zimonitrome/AbstractionNet
a037b696ccac015936d60026cb1ac4ebafc68371
[ "MIT" ]
null
null
null
src/utils.py
zimonitrome/AbstractionNet
a037b696ccac015936d60026cb1ac4ebafc68371
[ "MIT" ]
null
null
null
import torch from einops import rearrange import svgwrite ########################################### # Normalization / Standardization functions ########################################### def normalize_functional(tensor: torch.Tensor, mean: list, std: list): """ Standardizes tensor in the channel dimension...
36.54918
113
0.589146
6e2c7487821c1b466bfeb152a868353bd01ba3f7
3,742
py
Python
CellMQ.py
edjuaro/cell-migration-quantification
b6479cc8525a1ac8bdaf0abfc66dec57de0be21e
[ "MIT" ]
null
null
null
CellMQ.py
edjuaro/cell-migration-quantification
b6479cc8525a1ac8bdaf0abfc66dec57de0be21e
[ "MIT" ]
null
null
null
CellMQ.py
edjuaro/cell-migration-quantification
b6479cc8525a1ac8bdaf0abfc66dec57de0be21e
[ "MIT" ]
null
null
null
import cv2 import numpy as np from skimage import draw from skimage import io # Read image im_in = cv2.imread("analyses/MDA231_stopper_1_c3.tif", cv2.IMREAD_GRAYSCALE); # Threshold. # Set values equal to or above 220 to 0. # Set values below 220 to 255. th, im_th = cv2.threshold(im_in, 20, 255, cv2.THRESH_BINARY_...
27.925373
120
0.69829
6e2d9335521cea1ce24ba509b262882641d75542
1,344
py
Python
test/unit/messages/bloxroute/test_txs_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
12
2019-11-06T17:39:10.000Z
2022-03-01T11:26:19.000Z
test/unit/messages/bloxroute/test_txs_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
8
2019-11-06T21:31:11.000Z
2021-06-02T00:46:50.000Z
test/unit/messages/bloxroute/test_txs_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
5
2019-11-14T18:08:11.000Z
2022-02-08T09:36:22.000Z
from bxcommon.test_utils.abstract_test_case import AbstractTestCase from bxcommon.messages.bloxroute.txs_message import TxsMessage from bxcommon.models.transaction_info import TransactionInfo from bxcommon.test_utils import helpers from bxcommon.utils.object_hash import Sha256Hash
38.4
110
0.738095
6e2e387eef5e879a3d06801f9f8eb44b9b39bb68
712
py
Python
CursoEmVideo/Aula16 - Tuplas.py
caique-santana/CursoEmVideo-Curso_Python3
86bb67bbbf348544e1135d8657672d4e33fa70e2
[ "MIT" ]
1
2020-04-15T00:49:02.000Z
2020-04-15T00:49:02.000Z
CursoEmVideo/Aula16 - Tuplas.py
caique-santana/CursoEmVideo-Curso_Python3
86bb67bbbf348544e1135d8657672d4e33fa70e2
[ "MIT" ]
null
null
null
CursoEmVideo/Aula16 - Tuplas.py
caique-santana/CursoEmVideo-Curso_Python3
86bb67bbbf348544e1135d8657672d4e33fa70e2
[ "MIT" ]
null
null
null
lanche = ('Hambrguer', 'Suco', 'Pizza', 'Pudim', 'Batata Frita') # Tuplas so imutveis # lanche[1] = 'Refrigerante' - Esse comando no vai funcionar print(len(lanche)) print(sorted(lanche)) print(lanche) print(lanche[-3:]) for comida in lanche: print(f'Eu vou comer {comida}') for cont in range(0, len(lanche)): ...
22.25
65
0.644663
6e2ec7ad4cbde5fb55995e9127da176c9b74eb60
167
py
Python
app/config.py
akabbeke/sd44_server
7755567c7b273a5ac23b2aacc52477dd4a11d290
[ "MIT" ]
null
null
null
app/config.py
akabbeke/sd44_server
7755567c7b273a5ac23b2aacc52477dd4a11d290
[ "MIT" ]
null
null
null
app/config.py
akabbeke/sd44_server
7755567c7b273a5ac23b2aacc52477dd4a11d290
[ "MIT" ]
null
null
null
import yaml import os config_file = os.path.join(os.path.dirname(__file__), "config/config.yml") with open(config_file, 'r') as stream: CONFIG = yaml.load(stream)
27.833333
74
0.736527
6e2f62475e9654f761ab72ca7f65f8bb7603adef
921
py
Python
python/projects/jenkins_config_xml_parser/main.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/projects/jenkins_config_xml_parser/main.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/projects/jenkins_config_xml_parser/main.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
import xml.etree.ElementTree as ET tree = ET.parse('/Users/zhaoli/workspace/splunk/playground/var/lib/jenkins/jobs/Splunk/jobs/develop/jobs/platform/jobs/cli/jobs/trigger_cli_linux/config.xml') root = tree.getroot() # SPs = root.findall("properties/hudson.model.ParametersDefinitionProperty/parameterDefinitions/[huds...
27.909091
158
0.761129
6e2fe086028f0377c018ceee95df734b7ae1f811
986
py
Python
BLAST/make_fasta.py
cdiaza/bootcamp
2fda661a44930f70ac8ef15218cc99d099fc4019
[ "MIT" ]
1
2021-01-16T20:39:41.000Z
2021-01-16T20:39:41.000Z
BLAST/make_fasta.py
cdiaza/bootcamp
2fda661a44930f70ac8ef15218cc99d099fc4019
[ "MIT" ]
null
null
null
BLAST/make_fasta.py
cdiaza/bootcamp
2fda661a44930f70ac8ef15218cc99d099fc4019
[ "MIT" ]
1
2021-01-16T20:31:17.000Z
2021-01-16T20:31:17.000Z
import random def format_fasta(title, sequence): """ This formats a fasta sequence Input: title - String - Title of the sequence sequence - String - Actual sequence Output: String - Fully formatted fasta sequence """ fasta_width = 70 # Number of characters in one line n...
29.878788
81
0.631846
6e3054f23fea6a6c7c56f18a768f57df2c3c07ac
1,604
py
Python
unittesting/utils/output_panel.py
guillermooo/UnitTesting
04802c56d5ccea44043a241050d6fe331c6ff694
[ "MIT" ]
null
null
null
unittesting/utils/output_panel.py
guillermooo/UnitTesting
04802c56d5ccea44043a241050d6fe331c6ff694
[ "MIT" ]
null
null
null
unittesting/utils/output_panel.py
guillermooo/UnitTesting
04802c56d5ccea44043a241050d6fe331c6ff694
[ "MIT" ]
null
null
null
import sublime import os
32.08
79
0.639651
6e3246c7687554b238139dfec4bd2b58d1c2ba17
673
py
Python
main.py
jon-choi/hillsbarber
346e9cbe5de7c5bf8a9136e71981b058323784a1
[ "Apache-2.0" ]
null
null
null
main.py
jon-choi/hillsbarber
346e9cbe5de7c5bf8a9136e71981b058323784a1
[ "Apache-2.0" ]
null
null
null
main.py
jon-choi/hillsbarber
346e9cbe5de7c5bf8a9136e71981b058323784a1
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) app.config['DEBUG'] = True # Note: We don't need to call run() since our application is embedded within # the App Engine WSGI application server. # return render_template('bootstrap_cover.html', name=name) # @app.route('/rates') # def helloRates(name=...
29.26087
76
0.708767
6e330bec332cbcb5e47190df3547281fe5168a28
903
py
Python
tests/test_echo_server_contextvar.py
rednafi/think-async
3642afc0d8661b10affd953ce3b239f3e6b3009b
[ "MIT" ]
87
2021-04-14T09:51:30.000Z
2022-03-24T10:38:41.000Z
tests/test_echo_server_contextvar.py
rednafi/think-async
3642afc0d8661b10affd953ce3b239f3e6b3009b
[ "MIT" ]
3
2021-06-27T18:06:11.000Z
2022-03-24T19:56:38.000Z
tests/test_echo_server_contextvar.py
rednafi/think-async
3642afc0d8661b10affd953ce3b239f3e6b3009b
[ "MIT" ]
4
2021-05-12T01:36:14.000Z
2022-01-28T04:06:12.000Z
from unittest.mock import Mock, patch import pytest import patterns.echo_server_contextvar as main
25.8
77
0.743079
6e3355f7d36e6d39cee7c23d5acd90666f7629a8
693
py
Python
test.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
null
null
null
test.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
1
2017-09-15T13:27:09.000Z
2017-09-15T14:43:28.000Z
test.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Autor: rique_dev (rique_dev@hotmail.com) from SSLProxies24.Feed import Feed from SSLProxies24.Check import CheckProxy import time import gc # Recupera a listagem prx = Feed().PROXY_LIST # Inicia classe chk = CheckProxy() # Comea validao chk.validatelist(prx) # Ativa...
19.25
84
0.730159
6e33da3d320ddccf5c2863568bc4b5fb0505e125
577
py
Python
euler.py
user3719431/tna_lab1
183c34d927c39f502fea7d6a81f2945104d7b75b
[ "MIT" ]
null
null
null
euler.py
user3719431/tna_lab1
183c34d927c39f502fea7d6a81f2945104d7b75b
[ "MIT" ]
null
null
null
euler.py
user3719431/tna_lab1
183c34d927c39f502fea7d6a81f2945104d7b75b
[ "MIT" ]
null
null
null
import math as m
24.041667
60
0.363951
6e34180a8de5ed1a630ffd86a9a830130bbd1076
3,787
py
Python
src/b2d/hud_b2d.py
VgTajdd/neuroevolver
248c96b25ad936e15cfffc7a4223926db83ad540
[ "MIT" ]
null
null
null
src/b2d/hud_b2d.py
VgTajdd/neuroevolver
248c96b25ad936e15cfffc7a4223926db83ad540
[ "MIT" ]
null
null
null
src/b2d/hud_b2d.py
VgTajdd/neuroevolver
248c96b25ad936e15cfffc7a4223926db83ad540
[ "MIT" ]
null
null
null
## ========================================================================= ## ## Copyright (c) 2019 Agustin Durand Diaz. ## ## This code is licensed under the MIT license. ## ## hud_b2d.py ...
44.034884
108
0.520201
6e358277ee18f33ce73fddfacb850dc985cb0977
1,958
py
Python
grblc/search/gcn/parser/combine.py
youngsm/adsgrb
a89b56b371888deb67788a9f5a91300b281784a6
[ "MIT" ]
null
null
null
grblc/search/gcn/parser/combine.py
youngsm/adsgrb
a89b56b371888deb67788a9f5a91300b281784a6
[ "MIT" ]
null
null
null
grblc/search/gcn/parser/combine.py
youngsm/adsgrb
a89b56b371888deb67788a9f5a91300b281784a6
[ "MIT" ]
null
null
null
def get_final_txt(grb, tables, sentences, output_path): """ Combine the data from [grb]_final_sentences.txt and [grb]_final_tables.txt. If a piece of data in tables and another piece in sentecnes are originially from the same GCN. Put them in the same GCN in [grb]_final.txt. """ # Avoid modifyi...
36.943396
88
0.550051
6e35f3a7bd64997a4e302cd1d8e7454d8298b774
972
py
Python
hardware/headband.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/headband.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/headband.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
from solid import * from solid.utils import * import util from util import * from math import pi if __name__ == '__main__': export_scad()
31.354839
123
0.588477
6e362218fdee0a3ed3f2a33dd6f1acddc1fd9111
106
py
Python
native_shortuuid/apps.py
foundertherapy/django-nativeshortuuidfield
47e5a5d5c0f4caedbadb88ed6ac279f513ae522a
[ "MIT" ]
5
2020-09-30T00:21:05.000Z
2022-01-10T08:56:47.000Z
native_shortuuid/apps.py
foundertherapy/django-nativeshortuuidfield
47e5a5d5c0f4caedbadb88ed6ac279f513ae522a
[ "MIT" ]
1
2020-03-11T15:39:44.000Z
2020-03-11T15:39:44.000Z
native_shortuuid/apps.py
foundertherapy/django-nativeshortuuidfield
47e5a5d5c0f4caedbadb88ed6ac279f513ae522a
[ "MIT" ]
1
2021-03-03T12:49:52.000Z
2021-03-03T12:49:52.000Z
from django.apps import AppConfig
17.666667
39
0.792453
6e364089d40bdc8f90fe2c5aa5081ef11b937f59
3,482
py
Python
climlab/dynamics/meridional_advection_diffusion.py
nfeldl/climlab
2cabb49e2c3f54c1795f24338ef5ee44e49fc7e7
[ "BSD-3-Clause", "MIT" ]
160
2015-02-25T15:56:37.000Z
2022-03-14T23:51:23.000Z
climlab/dynamics/meridional_advection_diffusion.py
nfeldl/climlab
2cabb49e2c3f54c1795f24338ef5ee44e49fc7e7
[ "BSD-3-Clause", "MIT" ]
137
2015-12-18T17:39:31.000Z
2022-02-04T20:50:53.000Z
climlab/dynamics/meridional_advection_diffusion.py
nfeldl/climlab
2cabb49e2c3f54c1795f24338ef5ee44e49fc7e7
[ "BSD-3-Clause", "MIT" ]
54
2015-04-28T05:57:39.000Z
2022-02-17T08:15:11.000Z
r"""General solver of the 1D meridional advection-diffusion equation on the sphere: .. math:: \frac{\partial}{\partial t} \psi(\phi,t) &= -\frac{1}{a \cos\phi} \frac{\partial}{\partial \phi} \left[ \cos\phi ~ F(\phi,t) \right] \\ F &= U(\phi) \psi(\phi) -\frac{K(\phi)}{a} ~ \frac{\partial \psi}{\partial \phi}...
42.463415
143
0.661401
6e369cedee85dd513db727dff183f7bdbc8263b5
1,624
py
Python
gnes/service/grpc.py
micro-pixel/gnes
388d1ba718ec04eedaaff3ce34da43689c197ee7
[ "Apache-2.0" ]
1
2019-10-23T03:41:57.000Z
2019-10-23T03:41:57.000Z
gnes/service/grpc.py
cmy9068/gnes
44a54be4c80108ac65b2450b4af8deded6da3339
[ "Apache-2.0" ]
null
null
null
gnes/service/grpc.py
cmy9068/gnes
44a54be4c80108ac65b2450b4af8deded6da3339
[ "Apache-2.0" ]
1
2020-10-28T15:07:36.000Z
2020-10-28T15:07:36.000Z
# Tencent is pleased to support the open source community by making GNES available. # # Copyright (C) 2019 THL A29 Limited, a Tencent company. 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...
36.088889
86
0.711823
6e37060290900c339e29bf4d74171d48cbea8c69
3,508
py
Python
dhost/logs/models.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
null
null
null
dhost/logs/models.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
67
2021-07-06T11:50:25.000Z
2021-10-14T13:45:51.000Z
dhost/logs/models.py
dhost-project/dhost
ca6a4a76a737174b24165e20edeb1d1019a9424b
[ "MIT" ]
null
null
null
import uuid from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.db import models from django.utils import timezone from django.utils.timesince import timesince from django.utils.translation import gettext_lazy as _ from dhost.dapps.models import Dapp
35.434343
79
0.679019
6e397c403213c314186ad9c8dc4d66123671cfea
620
py
Python
Day14/main.py
dloibl/AOC2021
80672a7ee8ebc1a7970c155e4e15e0ed2351e085
[ "MIT" ]
null
null
null
Day14/main.py
dloibl/AOC2021
80672a7ee8ebc1a7970c155e4e15e0ed2351e085
[ "MIT" ]
null
null
null
Day14/main.py
dloibl/AOC2021
80672a7ee8ebc1a7970c155e4e15e0ed2351e085
[ "MIT" ]
null
null
null
data = open("input.txt", "r").readlines() polymer = data[0] pair_insertion = {} for line in data[2:]: [token, replacement] = line.strip().split(" -> ") pair_insertion[token] = replacement result = [i for i in polymer.strip()] for step in range(0, 10): next = [] for i, si in enumerate(result): ...
23.846154
63
0.596774
6e399f9876b8a0c8affd85f404dc546dcab1961f
1,199
py
Python
raster/migrations/0006_auto_20141016_0522.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
raster/migrations/0006_auto_20141016_0522.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
raster/migrations/0006_auto_20141016_0522.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
31.552632
236
0.539616
6e3ac431c3e1e4eb2271fa87cec379de652a2355
588
py
Python
tests/tests/test_analysis/test_utils.py
klavinslab/coral
17f59591211562a59a051f474cd6cecba4829df9
[ "MIT" ]
34
2015-12-26T22:13:51.000Z
2021-11-17T11:46:37.000Z
tests/tests/test_analysis/test_utils.py
klavinslab/coral
17f59591211562a59a051f474cd6cecba4829df9
[ "MIT" ]
13
2015-09-11T23:27:51.000Z
2018-06-25T20:44:28.000Z
tests/tests/test_analysis/test_utils.py
klavinslab/coral
17f59591211562a59a051f474cd6cecba4829df9
[ "MIT" ]
14
2015-10-08T17:08:48.000Z
2022-02-22T04:25:54.000Z
''' Tests for utils submodule of the analysis module. ''' from nose.tools import assert_equal, assert_raises from coral import analysis, DNA, RNA, Peptide
29.4
71
0.748299
6e3b1af1bee45ddc7a412b33a2fead806c9ec302
1,765
py
Python
djangorecipebook/templating.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
djangorecipebook/templating.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
djangorecipebook/templating.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
""" Carry out template-based replacements in project files """ import os import sys from string import Template def replace_name(path, mapping): """ Handles replacement strings in the file or directory name """ # look for replacement strings in filename f_split = list(os.path.spli...
25.214286
77
0.607932
6e3c23f713b7a54ba361ed5b6913012fed253e5e
1,747
py
Python
toHash.py
ElTarget/-
fcf774386514a7f070be25d643be7bbf1a92af1e
[ "MIT" ]
1
2022-02-22T02:39:52.000Z
2022-02-22T02:39:52.000Z
toHash.py
ElTarget/-
fcf774386514a7f070be25d643be7bbf1a92af1e
[ "MIT" ]
1
2022-03-08T04:46:17.000Z
2022-03-08T04:46:17.000Z
toHash.py
ElTarget/get_malware_bazaar
fcf774386514a7f070be25d643be7bbf1a92af1e
[ "MIT" ]
null
null
null
import hashlib import os # MD5 # SHA256 # MD5
23.293333
46
0.567258
6e3d50e4fe09a809ba48df4ba35365fe114afae0
609
py
Python
final/VolleyballClubHouse/backend/Python/fb_post_scraper.py
Sabalone87/wp1092
3da36f3f3ae7ebc175bf0b015838de2928b3b5b9
[ "MIT" ]
null
null
null
final/VolleyballClubHouse/backend/Python/fb_post_scraper.py
Sabalone87/wp1092
3da36f3f3ae7ebc175bf0b015838de2928b3b5b9
[ "MIT" ]
null
null
null
final/VolleyballClubHouse/backend/Python/fb_post_scraper.py
Sabalone87/wp1092
3da36f3f3ae7ebc175bf0b015838de2928b3b5b9
[ "MIT" ]
null
null
null
import os import sys from dotenv import load_dotenv from facebook_scraper import get_posts load_dotenv() print ("hi") result = [] for post in get_posts(group=os.environ.get("FacebookGroupId"), pages=1, credentials=(os.environ.get("FacebookUser"), os.environ.get("FacebookPassword"))): result....
25.375
102
0.609195
6e3ec2b42c30f989802844d030b6a4725567d1ae
442
py
Python
config.py
benperove/oneliner.sh
0c6eb25f2dd32cdd5cc275ef5849b5e12c76e9db
[ "Apache-2.0" ]
4
2019-02-15T01:35:17.000Z
2020-07-08T17:47:33.000Z
config.py
benperove/oneliner.sh
0c6eb25f2dd32cdd5cc275ef5849b5e12c76e9db
[ "Apache-2.0" ]
1
2019-05-24T21:00:37.000Z
2019-05-24T21:00:37.000Z
config.py
benperove/oneliner.sh
0c6eb25f2dd32cdd5cc275ef5849b5e12c76e9db
[ "Apache-2.0" ]
1
2020-04-10T08:03:16.000Z
2020-04-10T08:03:16.000Z
import os #github login SITE = 'https://api.github.com' CALLBACK = 'https://oneliner.sh/oauth2' AUTHORIZE_URL = 'https://github.com/login/oauth/authorize' TOKEN_URL = 'https://github.com/login/oauth/access_token' SCOPE = 'user' #redis config REDIS_HOST = os.environ['REDIS_HOST'] #REDIS_HOST = ...
26
61
0.68552
6e3f3c737da2c1c4948a6562ab3459af248d21f6
214
py
Python
npt/utils/__init__.py
chbrandt/gpt-neanias
aa7c2e88972f9af280b7f02ee11170df6c967b55
[ "MIT" ]
2
2020-09-28T08:22:54.000Z
2020-09-28T13:17:25.000Z
npt/utils/__init__.py
chbrandt/gpt-neanias
aa7c2e88972f9af280b7f02ee11170df6c967b55
[ "MIT" ]
null
null
null
npt/utils/__init__.py
chbrandt/gpt-neanias
aa7c2e88972f9af280b7f02ee11170df6c967b55
[ "MIT" ]
null
null
null
import json from npt import log from . import tmpdir def read_geojson(filename): """ Return JSON object from GeoJSON """ with open(filename, 'r') as fp: js = json.load(fp) return js
14.266667
35
0.621495
6e3fe2c168f62972f11479c2284c380956d44257
6,351
py
Python
apps/user/tests/user/test_users_crud.py
magocod/django_chat
9c7f82a3fdaa7a8f2f34062d8803b4f33f8c07b7
[ "MIT" ]
1
2019-10-01T01:39:37.000Z
2019-10-01T01:39:37.000Z
apps/user/tests/user/test_users_crud.py
magocod/django_chat
9c7f82a3fdaa7a8f2f34062d8803b4f33f8c07b7
[ "MIT" ]
18
2019-12-14T15:09:56.000Z
2022-01-02T16:22:41.000Z
apps/user/tests/user/test_users_crud.py
magocod/django_chat
9c7f82a3fdaa7a8f2f34062d8803b4f33f8c07b7
[ "MIT" ]
1
2020-02-10T18:00:16.000Z
2020-02-10T18:00:16.000Z
""" Prueba creacion de usuarios """ # import json from typing import Any, Dict import pytest from django.contrib.auth import get_user_model from apps.user.serializers import UserHeavySerializer # from django.contrib.auth.models import User User = get_user_model() pytestmark = [pytest.mark.django_db, pytest.mark...
26.135802
79
0.623366
6e4153ef83e21bf087ec6ed89dceeb002c6fc185
319
py
Python
examples/pybullet/examples/signedDistanceField.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
27
2018-05-21T14:28:10.000Z
2021-12-31T03:12:35.000Z
examples/pybullet/examples/signedDistanceField.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
1
2018-11-19T19:07:47.000Z
2018-11-19T19:07:47.000Z
examples/pybullet/examples/signedDistanceField.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
13
2019-11-08T12:48:44.000Z
2022-01-04T04:13:33.000Z
import pybullet as p import pybullet import time p.connect(p.GUI) p.loadURDF("toys/concave_box.urdf") p.setGravity(0,0,-10) for i in range (10): p.loadURDF("sphere_1cm.urdf",[i*0.02,0,0.5]) p.loadURDF("duck_vhacd.urdf") timeStep = 1./240. p.setTimeStep(timeStep) while (1): p.stepSimulation() time.sleep(timeStep)
21.266667
45
0.727273
6e415d21c97c8bf5b7c0199061ba4f235f80c0f3
2,472
py
Python
Old/TitleTable.py
StephanM87/Sofie-Herrmann-Praktikum
3fa7e715061e35aade8eb93756c30ebf10971059
[ "MIT" ]
null
null
null
Old/TitleTable.py
StephanM87/Sofie-Herrmann-Praktikum
3fa7e715061e35aade8eb93756c30ebf10971059
[ "MIT" ]
2
2021-10-04T08:22:40.000Z
2021-10-05T13:30:02.000Z
Old/TitleTable.py
StephanM87/Sofie-Herrmann-Praktikum
3fa7e715061e35aade8eb93756c30ebf10971059
[ "MIT" ]
null
null
null
from pylatex import Document, Tabular, Section, NoEscape, Command, MultiRow from Old.BioCatHubDatenmodell import DataModel first_name = "some firstname" last_name = "some lastname" e_mail = "some@adress.com" institution = "some institution" vessel_type = "some vessel" volume = int(42) vol_unit = "mol/l" add_attributes...
34.333333
76
0.552589
6e41787cb64edb79c7312a9c056163a1f57400e3
535
py
Python
Lab2/la2_4.py
ThomCruz/ImageAnalysisLab
6a524696ecf4aab96336931d22ead8e8c9ec9e30
[ "MIT" ]
null
null
null
Lab2/la2_4.py
ThomCruz/ImageAnalysisLab
6a524696ecf4aab96336931d22ead8e8c9ec9e30
[ "MIT" ]
null
null
null
Lab2/la2_4.py
ThomCruz/ImageAnalysisLab
6a524696ecf4aab96336931d22ead8e8c9ec9e30
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib.pyplot as plt pic = cv2.imread('image2.png',0) #pic = imageio.imread('img/parrot.jpg') gray = lambda rgb : np.dot(rgb[... , :3] , [0.299 , 0.587, 0.114]) gray = gray(pic) ''' log transform -> s = c*log(1+r) So, we calculate constant c to estimate s -> c = (L-1)/log(1+|...
20.576923
67
0.637383
6e41cc5519a39b51f1547eae6ffa40cae08fd9e3
493
py
Python
rabbit_mq_examples/new_task.py
audip/rabbitmq
f151dea427afa2a08a76fcdccf6fb99e6a81380f
[ "Apache-2.0" ]
null
null
null
rabbit_mq_examples/new_task.py
audip/rabbitmq
f151dea427afa2a08a76fcdccf6fb99e6a81380f
[ "Apache-2.0" ]
null
null
null
rabbit_mq_examples/new_task.py
audip/rabbitmq
f151dea427afa2a08a76fcdccf6fb99e6a81380f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import pika import sys connection = pika.BlockingConnection(pika.ConnectionParameters('localhost')) channel = connection.channel() channel.queue_declare(queue='task_queue', durable=True) message = ''.join(sys.argv[1:]) or 'Hello World!' for i in range(30): message = str(i)+' '+i*'.' ch...
25.947368
127
0.730223
6e45ae2f0c35533b4360de6c8858cfc005287327
4,100
py
Python
metafilter/model/__init__.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/model/__init__.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/model/__init__.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
from ConfigParser import SafeConfigParser from cStringIO import StringIO import sqlalchemy from sqlalchemy import create_engine from sqlalchemy import MetaData from sqlalchemy.orm import sessionmaker from os.path import sep from hashlib import md5 from datetime import datetime, timedelta import re import logging impo...
26.973684
83
0.621463
6e46d398600e4b5a657c138522f24f0eef1938e9
3,067
py
Python
manager/base.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T21:18:16.000Z
2020-03-13T16:45:57.000Z
manager/base.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T12:42:52.000Z
2020-03-16T03:49:09.000Z
manager/base.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-03-05T13:04:25.000Z
2020-03-13T16:46:03.000Z
from pathlib import Path from typing import Union import yaml
29.209524
103
0.538637
6e486d2de9698c2208f5c29100b107e8de344209
307
py
Python
007 - Intro List Comprehension.py/016 - Maior.py
rodrigoviannini/meus_Primeiros_Codigos
828dec1c4ce06889efd491145e631c30a45e858f
[ "MIT" ]
2
2021-07-22T23:26:54.000Z
2021-07-22T23:27:27.000Z
007 - Intro List Comprehension.py/016 - Maior.py
rodrigoviannini/meus_Primeiros_Codigos
828dec1c4ce06889efd491145e631c30a45e858f
[ "MIT" ]
null
null
null
007 - Intro List Comprehension.py/016 - Maior.py
rodrigoviannini/meus_Primeiros_Codigos
828dec1c4ce06889efd491145e631c30a45e858f
[ "MIT" ]
null
null
null
""" List Comprehension Aninhada OBJ: Encontrar o maior ou os maiores nmeros de uma lista e imprimir outra lista """ listaGenerica = [1, 2, 3, 4, 1, 2, 3, 4, 10, 10, 10, 5, 3, -4] listaMaior = [x for x in listaGenerica if not False in [True if x >= y else False for y in listaGenerica]] print(listaMaior)
30.7
106
0.693811
6e487df26dabde97ea3f1c6bd9a631bd068d4b7f
357
py
Python
thehardway/practice3.py
sunquan9301/pythonLearn
f10760a4e32c3ac267e39d835c08f45800d081b6
[ "Apache-2.0" ]
null
null
null
thehardway/practice3.py
sunquan9301/pythonLearn
f10760a4e32c3ac267e39d835c08f45800d081b6
[ "Apache-2.0" ]
null
null
null
thehardway/practice3.py
sunquan9301/pythonLearn
f10760a4e32c3ac267e39d835c08f45800d081b6
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
17
37
0.535014
6e4b454f9d9a661e964992d4f53efcc35fd88de8
651
py
Python
ipt/td1/3.3-nbracines.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
ipt/td1/3.3-nbracines.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
ipt/td1/3.3-nbracines.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 a = float(input("Entrez le coefficient dominant du trinome : ")) b = float(input("Entrez le coefficient d'ordre 1 du trinome : ")) c = float(input("Entrez la constante du trinome : ")) nbracines(a, b, c) nbracines(0, 3, 1) nbracines(1, 0.2, 0.01)
28.304348
140
0.537634