hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
9712a3e94e27eb26ea65554b310f650bc2e8048f
4,107
py
Python
sagbescheid/notifiers/ircnotifier.py
cedricpim/systemon
cb3fb027c94146f73fbef70f7a8546050e0de408
[ "MIT" ]
8
2017-03-23T17:19:31.000Z
2022-01-10T08:21:24.000Z
sagbescheid/notifiers/ircnotifier.py
cedricpim/systemon
cb3fb027c94146f73fbef70f7a8546050e0de408
[ "MIT" ]
2
2015-11-20T23:10:40.000Z
2018-09-15T10:59:32.000Z
sagbescheid/notifiers/ircnotifier.py
cedricpim/systemon
cb3fb027c94146f73fbef70f7a8546050e0de408
[ "MIT" ]
3
2016-09-13T20:56:43.000Z
2022-01-10T08:34:18.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright © 2015, 2016, 2017, 2018 Wieland Hoffmann # License: MIT, see LICENSE for details from ..notifier import INotifier from ..version import version from functools import wraps from twisted.internet import protocol, reactor from twisted.plugin import IPlugin from twisted.wo...
25.196319
80
0.595569
3,356
0.816943
0
0
2,190
0.533106
0
0
1,309
0.318647
9713a29a49b88c9107c1462a864743e09d61110c
4,221
py
Python
bot.py
Ashkar2001/shareurlbotv1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
3
2021-04-22T19:37:01.000Z
2022-03-28T09:09:19.000Z
bot.py
krbishnoi46/ShareurlbotV1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
null
null
null
bot.py
krbishnoi46/ShareurlbotV1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
2
2021-05-02T14:32:52.000Z
2021-09-13T19:42:02.000Z
import urllib from pyrogram import Client, filters from pyrogram.types import (InlineKeyboardButton, InlineKeyboardMarkup, InlineQueryResultArticle, InputTextMessageContent) from config import Config bot = Client( 'shareurl-generator', bot_token = Config.BOT_TOKEN, api_id = Config.API_ID, api_hash = Co...
55.539474
654
0.683487
0
0
0
0
3,911
0.915925
0
0
1,984
0.464637
9714d810307fa953764fccad45ba80c5500ed6fb
6,745
py
Python
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
import collections import copy import http.client import json import re import sys import urllib.parse import bs4 import requests from geomet import wkt """ Based on conversation and code from https://github.com/openaddresses/machine/issues/580 """ BEACON_HEADERS = { "Content-Type": "application/json", "User...
31.666667
88
0.648184
0
0
0
0
0
0
0
0
2,049
0.303781
97176fec2bfad5af9c57f1ea37398060856e772d
22,033
py
Python
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt """Basic Error checker from the basic checker.""" from __future__ import annotations import iter...
38.318261
89
0.591113
19,014
0.862978
0
0
5,561
0.252394
0
0
6,918
0.313984
9717e91cb315ebe35fe1860cce1799a4251fd302
526
py
Python
Leetcode/Python/_46.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
1
2021-11-28T15:03:32.000Z
2021-11-28T15:03:32.000Z
Leetcode/Python/_46.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_46.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
class Solution: result = [] def backtrack(self, current, nums): if current == len(nums): self.result.append(nums[:]) return for i in range(current, len(nums)): nums[i], nums[current] = nums[current], nums[i] self.backtrack(current + 1, nums) ...
29.222222
59
0.536122
525
0.998099
0
0
0
0
0
0
0
0
9717ef5319c02295a09cebf35c34878e1c442673
194
py
Python
cards/cards.py
coord-e/lottery-backend
4e1136ea62c471c98871ae28ad6b5144657151b4
[ "MIT" ]
3
2019-03-17T12:53:25.000Z
2020-06-28T07:05:47.000Z
cards/cards.py
coord-e/lottery-backend
4e1136ea62c471c98871ae28ad6b5144657151b4
[ "MIT" ]
297
2018-06-23T09:48:04.000Z
2021-09-08T00:06:11.000Z
cards/cards.py
Sakuten/lottery-backend
4e1136ea62c471c98871ae28ad6b5144657151b4
[ "MIT" ]
3
2019-03-07T15:38:19.000Z
2019-03-30T08:00:14.000Z
class card: """the QR card object. """ qr_path = '' public_id = '' def __init__(self, qr_path, public_id): self.qr_path = qr_path self.public_id = public_id
19.4
43
0.572165
193
0.994845
0
0
0
0
0
0
34
0.175258
9719dd0b81d1b9075b3a1e4a0b04e81cb9f0f034
915
py
Python
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
null
null
null
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
12
2015-01-08T14:50:19.000Z
2017-11-29T19:37:53.000Z
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
mikecb/ggrc-core
1cda560cb0920021416e07740c6cca1acba56268
[ "ECL-2.0", "Apache-2.0" ]
1
2015-01-08T13:25:09.000Z
2015-01-08T13:25:09.000Z
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: dan@reciprocitylabs.com # Maintained By: dan@reciprocitylabs.com """Person.email must be unique Revision ID: 2bf7c04016c9 Revises: d3af6d071ef Cre...
28.59375
78
0.727869
0
0
0
0
0
0
0
0
662
0.723497
971abf76c98ab4aa78f28ff46f0d741cb4ec54f3
11,484
py
Python
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
null
null
null
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
null
null
null
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
3
2018-12-12T23:35:51.000Z
2018-12-15T23:52:32.000Z
import os import sys import string import yaml from argparse import ArgumentParser import time # default setting traces = {} realblobfiles = {} limitamount = 1500 # 24 32 48 64 warmupthreads = 1 # number of total clients hotratio = 0.25 #nondedupreplicas = 2 replicalevel = 1 wait = True dir = '/home/nannan/docker-pe...
38.152824
158
0.572362
0
0
0
0
0
0
0
0
5,371
0.467694
971bccd2014298cba9295d6dd03cd7d5f6c9e5d5
12,539
py
Python
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
""" Train and eval functions used in main.py """ import os import torch from torch.utils.data import DataLoader, DistributedSampler import math import sys import time import datetime from typing import Iterable from pathlib import Path import json import random import numpy as np import torch import wandb from datase...
31.037129
87
0.670229
20
0.001595
0
0
0
0
0
0
1,241
0.098971
971c3238d99d6b81b26f0ad03df611e633858062
511
py
Python
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
1
2017-12-28T17:54:55.000Z
2017-12-28T17:54:55.000Z
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
null
null
null
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-19 19:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='category', options={'verbose_name_plural'...
22.217391
58
0.577299
420
0.821918
0
0
0
0
0
0
120
0.234834
971ea22b4f898d7b945a3d66e55c054fd8c1a0fd
10,581
py
Python
awx/main/tests/functional/api/test_webhooks.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
17
2021-04-03T01:40:17.000Z
2022-03-03T11:45:20.000Z
awx/main/tests/functional/api/test_webhooks.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
24
2021-05-18T21:13:35.000Z
2022-03-29T10:23:52.000Z
awx/main/tests/functional/api/test_webhooks.py
hostinger/awx
dac01b14e2c04c201a162ea03ef8386d822e3923
[ "Apache-2.0" ]
24
2020-11-27T08:37:35.000Z
2021-03-08T13:27:15.000Z
import pytest from awx.api.versioning import reverse from awx.main.models.mixins import WebhookTemplateMixin from awx.main.models.credential import Credential, CredentialType @pytest.mark.django_db @pytest.mark.parametrize( "user_role, expect", [ ('superuser', 200), ('org admin', 200), ('...
40.54023
113
0.671865
0
0
0
0
10,375
0.980531
0
0
1,737
0.164162
971eb594799cf95db900e61f4da391f8dbcd3b67
14,667
py
Python
App_TESS/app.py
mikedcurry/TESS_Flask_App
e20b4fc84b8d85cb20c388534899cf9be36e9b86
[ "MIT" ]
null
null
null
App_TESS/app.py
mikedcurry/TESS_Flask_App
e20b4fc84b8d85cb20c388534899cf9be36e9b86
[ "MIT" ]
1
2020-09-26T00:11:55.000Z
2020-09-26T00:11:55.000Z
App_TESS/app.py
mikedcurry/TESS_Flask_App
e20b4fc84b8d85cb20c388534899cf9be36e9b86
[ "MIT" ]
2
2019-09-23T16:46:13.000Z
2019-09-26T15:53:44.000Z
"""Main Application and routing Logic for TESS Flask App""" from decouple import config from flask import Flask, render_template, request from flask_sqlalchemy import SQLAlchemy import pickle from sklearn.pipeline import make_pipeline from sklearn.impute import SimpleImputer from sklearn.preprocessing import RobustScal...
45.834375
101
0.577214
0
0
0
0
6,179
0.421286
0
0
8,786
0.599032
9721be068a8518541b5cace614456bd0b705d2e4
1,231
py
Python
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
import logging import scipy.optimize class MotionOptimizer(object): def __init__(self, motion, evaluator): self.logger = logging.getLogger(__name__) self.motion = motion self.evaluator = evaluator def obj(self, x): self.counter += 1 self.motion.set_params(x) co...
33.27027
72
0.523964
1,191
0.967506
0
0
0
0
0
0
250
0.203087
9722181f821ec59cdca98344a53584317eddeb5f
66
py
Python
setup.py
bhrutledge/track-ma-ballot
b09db2c15708a674ad65587ac890c9a0df94a745
[ "MIT" ]
1
2020-10-21T11:10:58.000Z
2020-10-21T11:10:58.000Z
setup.py
bhrutledge/track-ma-ballot
b09db2c15708a674ad65587ac890c9a0df94a745
[ "MIT" ]
null
null
null
setup.py
bhrutledge/track-ma-ballot
b09db2c15708a674ad65587ac890c9a0df94a745
[ "MIT" ]
1
2020-10-21T11:11:14.000Z
2020-10-21T11:11:14.000Z
# type: ignore # noqa: D100 import setuptools setuptools.setup()
11
18
0.742424
0
0
0
0
0
0
0
0
26
0.393939
97223e918d7ed3c66e5db364f3b9dcfe0630ba1d
64,626
py
Python
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. # See https://nomad-lab.eu for further info. # # 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/lic...
52.033816
262
0.512781
52,597
0.813867
0
0
0
0
0
0
21,644
0.334912
9722c58ffd556781f330720efd82b006fd5b1e87
2,164
py
Python
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
import traceback from functools import wraps from collections import namedtuple from .constants import HttpStatusCodes from . import lambda_errors from .lambda_proxy_response import LambdaProxyResponse KNOWN_ERRORS = [lambda_errors.AlreadyExistsError, lambda_errors.NotFoundError, lamb...
34.903226
104
0.695933
0
0
0
0
353
0.163124
0
0
773
0.357209
9723dfd188ebc676983837f7b0d623a43502f121
3,540
py
Python
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
1
2022-01-22T14:40:22.000Z
2022-01-22T14:40:22.000Z
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
null
null
null
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
null
null
null
import os import numpy as np from PIL import Image import cv2 class ImageMaskUtil: # RGB Color Maps for labelling label_color_map = { 'background': (0, 0, 0), # background 'apple': (224, 0, 224), # apple } def __init__(self, img_dir=None, mask_dir=None, transforms=None): pri...
37.263158
107
0.620339
3,475
0.981638
0
0
484
0.136723
0
0
880
0.248588
9724a53e6036c425eed527609249dc5e837db6a6
685
py
Python
Catalan_Numbers/Python/jcla1/catalan.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
1,184
2015-01-01T14:11:29.000Z
2022-03-21T19:40:47.000Z
Catalan_Numbers/Python/jcla1/catalan.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
89
2015-01-01T15:49:17.000Z
2021-12-05T19:11:38.000Z
Catalan_Numbers/Python/jcla1/catalan.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
388
2015-01-02T03:26:17.000Z
2022-03-24T14:36:10.000Z
def catalan_direct(n): return factorial(2 * n) / (factorial(n + 1) * factorial(n)) def catalan_binomial(n): if n == 0: return 1 return binomial_coefficient(2 * n, n) - binomial_coefficient(2 * n, n - 1) def catalan_sum(n): return sum([binomial_coefficient(n, i) ** 2 for i in xrange(n + 1)]) / (n + 1) ...
32.619048
82
0.633577
0
0
0
0
0
0
0
0
63
0.091971
97265f76f9295dbfffcf1f1e54d2fcd3f6836b66
4,340
py
Python
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
null
null
null
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
7
2021-08-10T22:56:47.000Z
2022-02-16T13:56:47.000Z
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
null
null
null
from az.cli import az import os, configparser def checkVars(config): required_vars = { 'AADclientID': False, 'AADtenantID': False, 'AADsecret': False, 'AADGroupName': False, 'VoltTenantApiToken': False, 'VoltTenantTokenName': False, 'VoltTenantName': False, ...
40.560748
192
0.654608
0
0
0
0
0
0
0
0
2,003
0.461521
9726974206475436bf6ec6fcd8ca28dbc44033c4
710
py
Python
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
from pacotes import ex109 print('\033[36;40mExercício Python #109​ - Formatando Moedas em Python\033[m\n') v = float(input('Digite o valor: ')) escolhaMoeda = False while True: escolha = str(input('Ele devera ser formatado como moeda? [s/n]: ')).strip().lower()[0] if escolha == 's' or escolha == 'n': ...
33.809524
91
0.647887
0
0
0
0
0
0
0
0
417
0.582402
97270c66567bd64adf1db520a0022c4279280b69
1,473
py
Python
cv/templatetags/cv_extras.py
radoslawdabrowski/personal-website-framework
c33f16811caa2aafdfd84c22af8c37ee0ab97720
[ "Apache-2.0" ]
1
2021-11-06T15:22:15.000Z
2021-11-06T15:22:15.000Z
cv/templatetags/cv_extras.py
radoslawdabrowski/personal-website-framework
c33f16811caa2aafdfd84c22af8c37ee0ab97720
[ "Apache-2.0" ]
92
2019-12-04T22:24:35.000Z
2022-03-12T00:11:21.000Z
cv/templatetags/cv_extras.py
radoslawdabrowski/personal-website
b3d4f92ea51b40b104449259a376134aeb11766b
[ "MIT" ]
1
2019-05-07T21:23:57.000Z
2019-05-07T21:23:57.000Z
from django import template from django.utils.translation import ugettext as _ from cv.views import education_view_context, experience_view_context, interests_view_context, skills_view_context from cv.views import skill_view_context, school_view_context, hobby_view_context, job_view_context from cv.views import date_v...
26.303571
113
0.792261
0
0
0
0
1,046
0.710115
0
0
280
0.190088
9727bc8aa30eb95d9ede8bcd086222c6a52129c5
296
py
Python
conditional_statements_advanced/exercise/cinema.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
conditional_statements_advanced/exercise/cinema.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
conditional_statements_advanced/exercise/cinema.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
screeing_type = input() rows = int(input()) colums = int(input()) if screeing_type == 'Premiere': print(f'{rows * colums * 12:.2f} leva') elif screeing_type == 'Normal': print(f'{rows * colums * 7.5:.2f} leva') elif screeing_type == 'Discount': print(f'{rows * colums * 5:.2f} leva')
29.6
44
0.628378
0
0
0
0
0
0
0
0
124
0.418919
9728ac0573f8175100d55ffa0754e092810cb584
662
py
Python
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
11
2018-10-29T06:50:43.000Z
2022-03-28T14:26:09.000Z
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
1
2022-03-01T13:46:25.000Z
2022-03-01T13:46:25.000Z
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
6
2019-02-05T20:01:53.000Z
2020-09-04T12:30:00.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains list of APIs for Development model """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)' # Index INDEX = '/index' # Environment params NUM_UES = '/num_ues' NUM_APS = '/num_aps' AP_LIST = '/ap_list' AP_INFO = '/ap_info/' BR_LIS...
22.066667
76
0.702417
0
0
0
0
0
0
0
0
408
0.616314
972a0a5762d3deb9a9df476c3af14b3fb2051949
961
py
Python
lxd/exa/bgp.py
eololab/rpki-lab
3390699142b1bfc65f4982023f03b6fb2ab166b7
[ "MIT" ]
null
null
null
lxd/exa/bgp.py
eololab/rpki-lab
3390699142b1bfc65f4982023f03b6fb2ab166b7
[ "MIT" ]
null
null
null
lxd/exa/bgp.py
eololab/rpki-lab
3390699142b1bfc65f4982023f03b6fb2ab166b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import time import struct import socket messages = [] messages.append('announce route 66.185.112.0/24 next-hop self as-path [174,2914,42]') messages.append('announce route 144.41.0.0/16 next-hop self as-path [174,553]') messages.append('announce route 193.16.4.0/22 next-hop self as-p...
38.44
98
0.73153
0
0
0
0
0
0
0
0
618
0.64308
972a2b2e21605641fa0b11bb08a11cacd4d680ed
9,349
py
Python
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
from optparse import OptionParser import os import tempfile from git import Repo from python_terraform import * import logging import json import re import copy logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO) tf = Terraform() default_git_user=os.getenv('GIT_USER') default_git_token=os.get...
57.355828
244
0.708525
0
0
0
0
0
0
0
0
4,293
0.459193
972cb8d5d6817e9274b9009a061e7f62e70b9c3c
543
py
Python
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
1
2021-01-31T00:14:08.000Z
2021-01-31T00:14:08.000Z
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
null
null
null
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
null
null
null
# Get a string, print a list of chars and the indices of those chars user_input = input() str_order = list(user_input) str_dict = {} str_dict = {key: [] for key in str_order} for key in str_dict.keys(): start_index = 0 while True: try: start_index = user_input.index(key, start_index) ...
28.578947
73
0.61326
0
0
0
0
0
0
0
0
80
0.14733
972d6292a88fb5c55480bbdced96a910e37ff845
1,323
py
Python
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
1
2021-03-21T17:54:26.000Z
2021-03-21T17:54:26.000Z
import numpy as np import matplotlib.pyplot as plt plt.rcParams.update({'font.size': 22}) # marker size n = 10 x = np.arange(1, 100, 10) # x = np.arange(1, 7) algo_dict = {'RMS+Bankers': r'$ALG_1$', 'EDF+Bankers': r'$ALG_2$', 'RMS+wound wait': r'$ALG_3$', 'RMS+wait die': r'$ALG...
26.46
75
0.617536
0
0
0
0
0
0
0
0
511
0.386243
972f8b6751c5b2afa662f260119fde2fc1802242
3,633
py
Python
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
1,153
2016-06-02T09:57:22.000Z
2021-05-14T13:02:35.000Z
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
515
2016-06-02T10:03:10.000Z
2021-05-14T14:37:08.000Z
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
274
2016-06-13T12:31:20.000Z
2021-04-13T02:20:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from ykdl.extractor import VideoExtractor from ykdl.videoinfo import VideoInfo from ykdl.util.html import get_content, add_header from ykdl.util.match import match1 from ykdl.compact import urlencode from .iqiyi.util import get_macid import json import time import random...
30.529412
83
0.512524
2,437
0.667488
0
0
0
0
0
0
714
0.195563
972f8ed6b2d100533532ffdbd0b3aa1f19d0289c
12,825
py
Python
C_Tut/tutorials/views.py
jaydeep11/C-tutorial-web-application
3ec0225efda834fe93a678d887044906124de59b
[ "MIT" ]
null
null
null
C_Tut/tutorials/views.py
jaydeep11/C-tutorial-web-application
3ec0225efda834fe93a678d887044906124de59b
[ "MIT" ]
null
null
null
C_Tut/tutorials/views.py
jaydeep11/C-tutorial-web-application
3ec0225efda834fe93a678d887044906124de59b
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect from django.template.loader import render_to_string from django.contrib.auth.decorators import login_required from django.views.decorators.cache import never_cache from home.models import CPerson,student from django...
37.066474
393
0.589708
0
0
0
0
970
0.075634
0
0
2,489
0.194074
9730235a2588992f4dab3fea8ad9fcef5294af5c
2,086
py
Python
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc import dash_html_components as html def Navbar(current_program=None): if not current_program: brand_title = "Tree House Explorer" else: brand_title = f"Tree House Explorer: {current_program}" navbar = dbc.NavbarSimple( children=[ h...
32.59375
63
0.370086
0
0
0
0
0
0
0
0
472
0.22627
97325c37bd3759407fc051583513adc0103085dc
784
py
Python
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
def mat_exp(mat, p, mod): """ Fast Matrix Exponentiation with modulo Parameters ---------- mat: numpy matrix The matrix to exponentiate. It must be a matrix that supports the * operator. p: int The power to raise the matrix to. mod: int The modulo value used t...
23.058824
75
0.468112
0
0
0
0
0
0
0
0
408
0.520408
9733165a2c2800de7fed4fd918055591257301d4
3,276
py
Python
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
2
2021-05-28T10:02:10.000Z
2021-06-10T09:02:08.000Z
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
1
2020-09-20T06:12:06.000Z
2020-09-20T06:12:06.000Z
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
2
2021-06-12T08:54:49.000Z
2022-01-06T23:28:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- class Unit(object): """ The smallest unit. """ def __init__(self, value): if not isinstance(value, (float, int)): raise TypeError( f"@value must be integer or float value, but {value} was applied.") self._value ...
22.438356
83
0.537851
2,411
0.735958
50
0.015263
114
0.034799
0
0
1,483
0.452686
97340d2d28590597d1a93c772426eaebb769394a
2,101
py
Python
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
1
2015-03-08T18:20:30.000Z
2015-03-08T18:20:30.000Z
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
null
null
null
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
null
null
null
from ansi.colour.rgb import rgb256 from ansi.colour.fx import reset class TextImage(): def __init__(self, original, palette): self.original = original self.palette = palette self.lines = self._build_lines() self.text = self._build_text() def _build_text(self): result = ...
25.011905
65
0.576392
1,623
0.772489
0
0
0
0
0
0
306
0.145645
9734144a99f5d18b0e4f695d09c169677a34f2e4
1,070
py
Python
python/Redis/get_100W_user.py
jokimina/miscellany
a2b80befb8037dc04cdbbe8185c5f7830976c837
[ "MIT" ]
1
2018-12-15T02:12:37.000Z
2018-12-15T02:12:37.000Z
python/Redis/get_100W_user.py
oldthreefeng/miscellany
8d3c7a14b53929d752c7356c85ae6681000cd526
[ "MIT" ]
null
null
null
python/Redis/get_100W_user.py
oldthreefeng/miscellany
8d3c7a14b53929d752c7356c85ae6681000cd526
[ "MIT" ]
2
2018-12-10T12:55:38.000Z
2019-01-04T07:43:55.000Z
#!/user/bin python # -*- coding:utf-8 -*- ''' @Author: xiaodong @Email: fuxd@jidongnet.com @DateTime: 2015-12-16 17:01:58 @Description: 加勒比 安卓平台遍历全区 搜索100W以上钻石的玩家 ''' import redis import sys import json redisList = [6510,6520,6530,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,6552,655...
28.157895
178
0.670093
0
0
0
0
0
0
0
0
391
0.342982
97344ad23f706ec259299413e63f1f8749dc6a20
14,126
py
Python
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
1
2018-06-25T01:08:52.000Z
2018-06-25T01:08:52.000Z
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
6
2018-06-20T20:13:25.000Z
2019-01-13T00:08:08.000Z
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=protected-access # pylint: disable=no-self-use # pylint: disable=missing-docstring # pylint: disable=too-many-public-methods import time import threading import unittest import apocrypha.client from apocrypha.exceptions import DatabaseError from apocrypha.server import Server...
29.864693
79
0.580348
13,510
0.956392
0
0
4,121
0.291732
0
0
3,605
0.255203
9734571150ae79e21863d08655f64ceb72d55ed2
4,556
py
Python
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
#!/usr/bin/env python import unittest from unittest.mock import Mock from genie.conf import Genie from genie.conf.base import Testbed, Device, Link, Interface from genie.libs.conf.l2vpn import Xconnect from genie.libs.conf.bgp import RouteTarget class test_xconnect(unittest.TestCase): def test_init(self): ...
40.318584
130
0.643986
4,256
0.934153
0
0
0
0
0
0
827
0.181519
97348f780608c2e22491e403239f8bc0672b5b08
3,006
py
Python
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
29
2015-02-23T07:59:13.000Z
2015-04-05T09:49:53.000Z
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # import libs import unittest import json import sys import os from types import DictType # import classes import analytics.utils.misc as misc import analytics.exceptions.exceptions as ex import analytics.service as service import projectpaths as paths from analytics.loading.jsonloader import Jso...
32.673913
74
0.657685
1,950
0.648703
0
0
0
0
0
0
368
0.122422
973968d98509e3e04d9d5ab44db4e2d6ef0a29e6
552
py
Python
psme/subcommand.py
claymcleod/psme
220f99085a5d3857ff0b48243923a8f0ba7a6822
[ "MIT" ]
null
null
null
psme/subcommand.py
claymcleod/psme
220f99085a5d3857ff0b48243923a8f0ba7a6822
[ "MIT" ]
null
null
null
psme/subcommand.py
claymcleod/psme
220f99085a5d3857ff0b48243923a8f0ba7a6822
[ "MIT" ]
null
null
null
import argparse from abc import ABC, abstractmethod from typing import Any, Dict class BaseSubcommand(ABC): @abstractmethod def name(self): """The name of the subcommand, recommended to be a single, kebab-cased word.""" pass @abstractmethod def register_args(self, subparser: argparse...
25.090909
87
0.668478
467
0.846014
0
0
424
0.768116
0
0
187
0.338768
973ab068516510d55017d4d9e5b92353475eda35
36,287
py
Python
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
2
2018-01-29T18:50:25.000Z
2018-06-18T23:41:43.000Z
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
95
2017-05-25T13:12:14.000Z
2018-09-24T10:33:11.000Z
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
3
2017-06-13T10:10:50.000Z
2018-06-08T12:35:57.000Z
"""Input/output functions.""" import astropy.io.fits as fits from astropy.table import Table import numpy as np import astropy.units as u from astropy.coordinates import ( EarthLocation, AltAz, Angle, ICRS, GCRS, SkyCoord, get_sun, ) import os from astropy.time import Time import warnings fr...
30.988044
79
0.584534
0
0
0
0
0
0
0
0
10,464
0.288368
973acfd3901ad069b2fdfb5a8915dd3eb1316973
187
py
Python
vis_utils/tb_logging.py
lknak/tigr
614a6435c483a25cb8183c08184d140120053a4f
[ "MIT" ]
null
null
null
vis_utils/tb_logging.py
lknak/tigr
614a6435c483a25cb8183c08184d140120053a4f
[ "MIT" ]
null
null
null
vis_utils/tb_logging.py
lknak/tigr
614a6435c483a25cb8183c08184d140120053a4f
[ "MIT" ]
2
2022-01-21T07:49:27.000Z
2022-02-05T13:23:18.000Z
from torch.utils.tensorboard import SummaryWriter TENSORBOARD_LOGGER : SummaryWriter TRAINING_LOG_STEP = 0 AUGMENTATION_LOG_STEP = 0 TI_LOG_STEP = 0 DEBUG_LOG_STEP = 0 LOG_INTERVAL = -1
20.777778
49
0.828877
0
0
0
0
0
0
0
0
0
0
973cf34dab4ee39dd0d909e99162d9d5963e92b5
3,946
py
Python
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
10
2020-12-14T21:36:03.000Z
2021-11-24T10:59:14.000Z
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
2
2021-01-06T09:57:27.000Z
2021-12-16T06:41:18.000Z
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
2
2021-11-24T08:34:32.000Z
2021-12-02T03:15:52.000Z
#!/usr/bin/env python3 # coding=utf-8 import gc import logging import os import sys sys.path.append( # Figure out the path of the evaluation directory os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) ) from evals.base_evaluate import experiments_directory, get_evaluation_...
31.31746
110
0.601368
0
0
0
0
0
0
0
0
993
0.251583
973d1b5356acbed0a6077bf8229582c98e28ac4c
177
py
Python
icon-pycon/home/<USERNAME>/Desktop/DTbkp.d/1-SAVING/SAVE_desktop_layout.py
moof-moof/Icon-pycon
3f14af7d0a3e30bea1b67ea6c34ff71c9ebedcf8
[ "Unlicense" ]
null
null
null
icon-pycon/home/<USERNAME>/Desktop/DTbkp.d/1-SAVING/SAVE_desktop_layout.py
moof-moof/Icon-pycon
3f14af7d0a3e30bea1b67ea6c34ff71c9ebedcf8
[ "Unlicense" ]
null
null
null
icon-pycon/home/<USERNAME>/Desktop/DTbkp.d/1-SAVING/SAVE_desktop_layout.py
moof-moof/Icon-pycon
3f14af7d0a3e30bea1b67ea6c34ff71c9ebedcf8
[ "Unlicense" ]
null
null
null
import sys sys.path.append('/home/user/path/to/0-defs/') # sys.path.append('/home/xneb/Skrivbord/DTbkp.d/0-defs/') import icons_pycons icons_pycons.SAVE_current_layout()
13.615385
57
0.740113
0
0
0
0
0
0
0
0
85
0.480226
973ea41ad870c8e44dccf1cf26f6c10aba40fa1a
6,814
py
Python
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
2
2022-03-02T15:56:49.000Z
2022-03-09T16:15:37.000Z
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
null
null
null
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions in order to make complex overpass query through osmnx. Use get_filter_graphs to get graph for specific filter, then create the union with compose_graph. Is a proxy of the lack of "or" syntax between keys, only able to make "or" inside keys or "and" between keys. """ import osmnx a...
41.803681
106
0.533607
0
0
0
0
0
0
0
0
3,158
0.463458
973fb9aea59fde514b3cd0e87df8930e02f5134e
340
py
Python
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
"""POST URLS""" from django.urls import path # Views from posts import views urlpatterns = [ path(route = '', view=views.PostsFeedView.as_view(), name='feed'), path(route = 'posts/new/', view = views.PostCreateView.as_view(), name='create'), path(route='posts<int:pk>', view=views.PostDetailView.as_view(...
24.285714
85
0.676471
0
0
0
0
0
0
0
0
73
0.214706
97420ee00a60c2531a89c2990102430b05c0989b
1,168
py
Python
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ HGVS Variants ~~~~~~~~~~~~~ For example, the node :code:`p(HGNC:GSK3B, var(p.Gly123Arg))` is represented with the following: .. code:: { FUNCTION: PROTEIN, NAMESPACE: 'HGNC', NAME: 'GSK3B', VARIANTS: [ { KIND: HGVS, ...
22.901961
132
0.626712
0
0
0
0
0
0
0
0
756
0.64726
9743466cb5125ec3881d32d72b7b6f465fa359a6
887
py
Python
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
12
2020-10-09T18:12:30.000Z
2021-03-23T16:17:40.000Z
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
1
2020-08-11T17:11:43.000Z
2020-08-11T17:29:58.000Z
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from campi import serializers class GetSerializerClassMixin(object): def get_queryset(self): try: return self.queryset_action_classes[self.action] except (KeyError, A...
31.678571
72
0.70124
731
0.824126
0
0
0
0
0
0
9
0.010147
97438315739c116902edf21da46316c314d7c58a
397
py
Python
lib/n1ql_exceptions.py
sumedhpb/TAF
fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449
[ "Apache-2.0" ]
9
2019-02-19T05:55:00.000Z
2022-01-20T10:37:28.000Z
lib/n1ql_exceptions.py
sumedhpb/TAF
fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449
[ "Apache-2.0" ]
2
2019-02-19T07:28:54.000Z
2019-06-18T11:22:29.000Z
lib/n1ql_exceptions.py
sumedhpb/TAF
fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449
[ "Apache-2.0" ]
155
2018-11-13T14:57:07.000Z
2022-03-28T11:53:22.000Z
class N1qlException(object): CasMismatchException = "CAS mismatch" DocumentExistsException = "document already exists" DocumentNotFoundException = "document not found" DocumentAlreadyExistsException = "Duplicate Key" AtrNotFoundException = "atr not found" SyncWriteInProgressException = "durable ...
49.625
62
0.775819
397
1
0
0
0
0
0
0
151
0.380353
97444736c5b2cdc9d119e90cdabf47e85026939c
4,453
py
Python
example.py
jml/pyhazard
ba4985c6052dcd16d8e03ee971e2fead4c8d77c8
[ "Apache-2.0" ]
null
null
null
example.py
jml/pyhazard
ba4985c6052dcd16d8e03ee971e2fead4c8d77c8
[ "Apache-2.0" ]
null
null
null
example.py
jml/pyhazard
ba4985c6052dcd16d8e03ee971e2fead4c8d77c8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Jonathan M. Lange <jml@mumak.net> # # 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...
29.296053
78
0.660229
0
0
0
0
0
0
0
0
1,512
0.339546
9744fdec5f804af7a4c49433b6de9937927e1e26
1,044
py
Python
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
# -*- Mode: Python3; coding: utf-8; indent-tabs-mpythoode: nil; tab-width: 4 -*- import os import numpy as np from matplotlib import pyplot as plt, colors as colors PATH = "../Images/" RED = 0 GREEN = 1 BLUE = 2 def view(data, X, Y, title="2D histogram"): c = ["RED", "GREEN", "BLUE"] dataX = data[:, :, X]...
18.642857
80
0.564176
0
0
0
0
0
0
0
0
207
0.198276
9745bee63f21db8a2f15dbf9443e575995c9a601
4,931
py
Python
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
30
2021-11-29T19:09:09.000Z
2022-03-15T01:59:36.000Z
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
31
2021-11-18T09:42:27.000Z
2022-03-28T06:21:30.000Z
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
6
2021-12-05T22:00:00.000Z
2022-02-18T13:31:54.000Z
"""Config Flow to configure WeatherFlow Integration.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_API_TOKEN, CONF_ID from homeassistant.core import callback from homeassistant.helpers.aiohttp_client import a...
32.873333
84
0.601095
4,124
0.836342
0
0
174
0.035287
3,596
0.729264
390
0.079091
9749b44259b93b94209924f8e12c6a9a0ca07292
4,436
py
Python
Model/manifest.py
llmay98/WSI-online-analysis-framework
1f2ee084b7ed87d22f9fbf041a6101c600104bfc
[ "Apache-2.0" ]
2
2020-01-07T04:22:04.000Z
2021-05-06T11:10:15.000Z
Model/manifest.py
llmay98/WSI-online-analysis-framework
1f2ee084b7ed87d22f9fbf041a6101c600104bfc
[ "Apache-2.0" ]
4
2021-06-02T13:19:46.000Z
2022-03-12T00:11:11.000Z
Model/manifest.py
llmay98/WSI-online-analysis-framework
1f2ee084b7ed87d22f9fbf041a6101c600104bfc
[ "Apache-2.0" ]
1
2021-06-03T04:48:00.000Z
2021-06-03T04:48:00.000Z
import mysql.connector import configparser import os import uuid class Manifest: def __init__(self): config_file = os.getcwd() + '/config.ini' self.config = configparser.ConfigParser() self.config.read(config_file, encoding='utf-8') db = self.db_connect() db.close() de...
32.144928
113
0.578449
4,368
0.984671
0
0
0
0
0
0
710
0.160054
974ba423ea4fb5779929e4b07f704b1d42077fa3
678
py
Python
giocomo_lab_to_nwb/conversion_tools/nwb_gui.py
jordanhickman/giocomo-lab-to-nwb
1d0eb0efc2f3b6d881405b08d7bc0232e0cd79d5
[ "BSD-3-Clause" ]
null
null
null
giocomo_lab_to_nwb/conversion_tools/nwb_gui.py
jordanhickman/giocomo-lab-to-nwb
1d0eb0efc2f3b6d881405b08d7bc0232e0cd79d5
[ "BSD-3-Clause" ]
4
2019-07-30T00:57:41.000Z
2019-11-03T20:14:03.000Z
giocomo_lab_to_nwb/conversion_tools/nwb_gui.py
ben-dichter-consulting/giocomo-lab-to-nwb
a096cdea15291f77793ca334de1eaaa762685c58
[ "BSD-3-Clause" ]
2
2020-06-12T20:44:11.000Z
2020-08-06T02:02:12.000Z
# Opens the NWB conversion GUI # authors: Luiz Tauffer and Ben Dichter # written for Giocomo Lab # ------------------------------------------------------------------------------ from nwbn_conversion_tools.gui.nwbn_conversion_gui import nwbn_conversion_gui metafile = 'metafile.yml' conversion_module = 'conversion_modul...
29.478261
80
0.653392
0
0
0
0
0
0
0
0
317
0.467552
974c1455e15872002bcd7d434f9a4adca9b3db79
6,276
py
Python
tests/cosrlibtests/document/html/test_base.py
commonsearch/cosr-back
28ca0c1b938dde52bf4f59a835c98dd5ab22cad6
[ "Apache-2.0" ]
141
2016-02-17T14:27:57.000Z
2021-12-27T02:56:48.000Z
tests/cosrlibtests/document/html/test_base.py
commonsearch/cosr-back
28ca0c1b938dde52bf4f59a835c98dd5ab22cad6
[ "Apache-2.0" ]
69
2016-02-20T02:06:59.000Z
2017-01-29T22:23:46.000Z
tests/cosrlibtests/document/html/test_base.py
commonsearch/cosr-back
28ca0c1b938dde52bf4f59a835c98dd5ab22cad6
[ "Apache-2.0" ]
38
2016-02-25T04:40:07.000Z
2020-06-11T07:22:44.000Z
from cosrlib.document.html import HTMLDocument def test_get_title(): assert HTMLDocument( """<html><head><title>Test title</title></head><body>x</body></html>""" ).parse().get_title() == "Test title" assert HTMLDocument( """<html><title>Test title</title>XX</html>""" ).parse().get_tit...
40.490323
120
0.6203
0
0
0
0
0
0
0
0
3,699
0.589388
974c8da6edc73ac8e72215e9d759fa65c00213a0
26
py
Python
cphttp/__init__.py
computePods/simpleHttpReloadServer
81dee9128a7e3b1a397378d89f7f76835e120720
[ "Apache-2.0" ]
null
null
null
cphttp/__init__.py
computePods/simpleHttpReloadServer
81dee9128a7e3b1a397378d89f7f76835e120720
[ "Apache-2.0" ]
null
null
null
cphttp/__init__.py
computePods/simpleHttpReloadServer
81dee9128a7e3b1a397378d89f7f76835e120720
[ "Apache-2.0" ]
null
null
null
from .cphttp import cphttp
26
26
0.846154
0
0
0
0
0
0
0
0
0
0
974d884bdfa3addd83d2c9e41abdc6a7827099cf
2,975
py
Python
server/workers/tests/test_helpers.py
chreman/Headstart
5d8b956faac4389c649f3072b5ac55aaa01644c6
[ "MIT" ]
111
2016-12-10T17:27:46.000Z
2022-03-29T02:57:19.000Z
server/workers/tests/test_helpers.py
chreman/Headstart
5d8b956faac4389c649f3072b5ac55aaa01644c6
[ "MIT" ]
338
2016-12-04T17:43:28.000Z
2022-03-04T15:50:33.000Z
server/workers/tests/test_helpers.py
chreman/Headstart
5d8b956faac4389c649f3072b5ac55aaa01644c6
[ "MIT" ]
32
2016-12-19T12:48:00.000Z
2022-02-12T17:47:47.000Z
import os import json import uuid import pathlib import redis import pandas as pd from nltk.corpus import stopwords from tqdm import tqdm from .conftest import RANDOM from ..api.src.apis.utils import get_key # connect via nginx to APIs and submit tests def get_stopwords(lang): try: loc = pathlib.Path(__p...
30.670103
84
0.655798
0
0
0
0
0
0
0
0
531
0.178487
974de7e9ef11df44462edd9f4f62ba2943c48f7c
2,446
py
Python
nvim/pythonx/r_snippet_helpers.py
ryan-heslin/dotfiles
f447bcb10156044171ab6bf123decce515649dde
[ "MIT" ]
null
null
null
nvim/pythonx/r_snippet_helpers.py
ryan-heslin/dotfiles
f447bcb10156044171ab6bf123decce515649dde
[ "MIT" ]
null
null
null
nvim/pythonx/r_snippet_helpers.py
ryan-heslin/dotfiles
f447bcb10156044171ab6bf123decce515649dde
[ "MIT" ]
null
null
null
import re from regex import sub as rsub from all_snippet_helpers import * # Produce roxygen documentation def render_roxygen(snip, args, signature, line): mark = "#'" # Only generate argument tabstops if function actually has them args_text = ( [mark + " @param " + arg + " $" + str(num + 6) for num...
33.506849
87
0.513083
0
0
0
0
0
0
0
0
733
0.299673
974e0906f60952202f09db80d093bc5842202e9c
982
py
Python
tests/test_loader.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
tests/test_loader.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
tests/test_loader.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from os import path import tempfile from textwrap import dedent from c7n import loader from .common import BaseTest class TestSourceLocator(BaseTest): def test_yaml_file(self): with tempfile.TemporaryDirectory() as tmpdirnam...
31.677419
68
0.5611
783
0.797352
0
0
0
0
0
0
421
0.428717
974eb9da087e6259717b8a906569a4f8425cdd9a
2,635
py
Python
Sensor_Hat/src/mod_thread.py
carlodones/thread_SenseHat_2
0824a718542b9a42159073190e7498288dc57c3a
[ "Apache-2.0" ]
null
null
null
Sensor_Hat/src/mod_thread.py
carlodones/thread_SenseHat_2
0824a718542b9a42159073190e7498288dc57c3a
[ "Apache-2.0" ]
null
null
null
Sensor_Hat/src/mod_thread.py
carlodones/thread_SenseHat_2
0824a718542b9a42159073190e7498288dc57c3a
[ "Apache-2.0" ]
1
2018-07-13T08:44:50.000Z
2018-07-13T08:44:50.000Z
import threading import time import mod_measure_list import mod_sense_hat # Classe per l'avvio dei thread class ThreadManager(threading.Thread): def __init__(self, channel, delay, source, measure_list): threading.Thread.__init__(self) self.channel = channel # Canale di acquisizione ...
35.133333
119
0.554459
2,528
0.959029
0
0
0
0
0
0
1,692
0.641882
974eec00dee959b5d38def6fdb40830000173ec8
66
py
Python
notebooks/_solutions/case2_biodiversity_analysis13.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
65
2017-03-21T09:15:40.000Z
2022-02-01T23:43:08.000Z
notebooks/_solutions/case2_biodiversity_analysis13.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
100
2016-12-15T03:44:06.000Z
2022-03-07T08:14:07.000Z
notebooks/_solutions/case2_biodiversity_analysis13.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
52
2016-12-19T07:48:52.000Z
2022-02-19T17:53:48.000Z
survey_data = survey_data_unique.dropna(subset=['species']).copy()
66
66
0.787879
0
0
0
0
0
0
0
0
9
0.136364
9755d328b0477713a97ca1a400e325ba08ea0b28
316
py
Python
testCluster.py
Jubas/index-cost-sim
e99a6142b1d76ec12c957b84fd256cf61c30b3ea
[ "MIT" ]
1
2021-02-09T06:49:45.000Z
2021-02-09T06:49:45.000Z
testCluster.py
Jubas/index-cost-sim
e99a6142b1d76ec12c957b84fd256cf61c30b3ea
[ "MIT" ]
null
null
null
testCluster.py
Jubas/index-cost-sim
e99a6142b1d76ec12c957b84fd256cf61c30b3ea
[ "MIT" ]
null
null
null
import ClusterCreator import math c = ClusterCreator.ClusterCreator(35484770, 100, 30, 30, 20, math.floor(131072 / 132)) leaders, clusters, l, c_id = c.create_clusters() print(len(leaders)) print(len(clusters)) print("---") print(clusters[0].count) n = 0 for i in clusters: n += i.count print(n)
21.066667
87
0.677215
0
0
0
0
0
0
0
0
5
0.015823
975623b461dce10bee7524337b62f5692bc20bae
770
py
Python
136. Single Number(XOR-ed).py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-02-26T09:12:19.000Z
2019-06-07T13:38:10.000Z
136. Single Number(XOR-ed).py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
1
2018-12-24T07:03:34.000Z
2018-12-24T07:03:34.000Z
136. Single Number(XOR-ed).py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-12-24T07:01:03.000Z
2019-06-07T13:38:07.000Z
# copy from Leetcode, really a good way! class Solution: def singleNumber(self, nums): # using XOR method single_num = 0 for n in nums: single_num ^= n return single_num ''' if two number is different like 1010 and 1010 1010 xor 1010 = 0 so when a group of number ...
32.083333
55
0.658442
176
0.228571
0
0
0
0
0
0
607
0.788312
975aceff3bfddebb1d1b1672bcd24556fb99e1af
630
py
Python
galaxy_selenium/__init__.py
jmchilton/galaxy-selenium
fa1c4d0d71001399efc54ae432aea04947c47df1
[ "CC-BY-3.0" ]
null
null
null
galaxy_selenium/__init__.py
jmchilton/galaxy-selenium
fa1c4d0d71001399efc54ae432aea04947c47df1
[ "CC-BY-3.0" ]
null
null
null
galaxy_selenium/__init__.py
jmchilton/galaxy-selenium
fa1c4d0d71001399efc54ae432aea04947c47df1
[ "CC-BY-3.0" ]
null
null
null
"""Top-level of library designed to ease use of Selenium targetting Galaxy. galaxy_selenium is purposes being designed to depend on Python selenium, six, pyyaml, and optional pyvirtualdisplay but not galaxy-lib (or any of Galaxy or Galaxy's test stuff) currently. """ __version__ = '17.9.0.dev0' PROJECT_NAME = "galax...
35
79
0.773016
0
0
0
0
0
0
0
0
452
0.71746
975afa8d06b3b9c7712ca708d7fed99f0a1cdb6b
8,367
py
Python
thornode_client/thornode_client/api/tx_api.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
thornode_client/thornode_client/api/tx_api.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
thornode_client/thornode_client/api/tx_api.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
# coding: utf-8 """ THORChain API This documentation outlines the API for THORChain. NOTE: This document is a **work in progress**. # noqa: E501 OpenAPI spec version: Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # no...
37.186667
123
0.60643
7,927
0.947412
0
0
0
0
0
0
4,256
0.508665
975cf0d24d9f18d9395f61092ba84bd2deba8dbb
1,570
py
Python
src/regression_handler.py
bruggerl/gdp-height
e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d
[ "MIT" ]
null
null
null
src/regression_handler.py
bruggerl/gdp-height
e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d
[ "MIT" ]
null
null
null
src/regression_handler.py
bruggerl/gdp-height
e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression import constants as c class RegressionHandler: """ This class encapsulates the logic for calculating and plotting a linear regression. """ @staticmethod def plot_regression(dataframe, sex=c.Sex.MALE): """ ...
40.25641
132
0.663057
1,463
0.931847
0
0
1,330
0.847134
0
0
778
0.495541
975e0b8ba97e0a156a85f8001f92c9651a62a699
561
py
Python
server/utils/load_utils.py
caiodeberaldini/intelligent-systems-project
f97d480a7e51c76b0d6335d4ae8d5e6451321fb0
[ "MIT" ]
null
null
null
server/utils/load_utils.py
caiodeberaldini/intelligent-systems-project
f97d480a7e51c76b0d6335d4ae8d5e6451321fb0
[ "MIT" ]
null
null
null
server/utils/load_utils.py
caiodeberaldini/intelligent-systems-project
f97d480a7e51c76b0d6335d4ae8d5e6451321fb0
[ "MIT" ]
null
null
null
import os import sys import pickle from dotenv import load_dotenv _ = load_dotenv() def load_utils(): MODEL_PATH = os.getenv("MODEL_PATH") VECTORIZER_PATH = os.getenv("VECTORIZER_PATH") LABEL_ENC_PATH = os.getenv("LABEL_ENC_PATH") with open(MODEL_PATH, 'rb') as f: model = pickle.load(f) ...
19.344828
50
0.627451
0
0
0
0
0
0
0
0
57
0.101604
975e3531e40dee1ce2f945f944351cd7dfba2e8c
117
py
Python
lightreid/models/architectures/__init__.py
nataliamiccini/light-reid
1bd823849e4a40c9a17497bb7d7ec6097635f4d6
[ "MIT" ]
296
2020-07-20T02:11:34.000Z
2022-03-27T12:42:11.000Z
lightreid/models/architectures/__init__.py
nataliamiccini/light-reid
1bd823849e4a40c9a17497bb7d7ec6097635f4d6
[ "MIT" ]
33
2020-08-27T03:20:43.000Z
2022-03-14T11:25:07.000Z
lightreid/models/architectures/__init__.py
nataliamiccini/light-reid
1bd823849e4a40c9a17497bb7d7ec6097635f4d6
[ "MIT" ]
61
2020-07-20T06:19:22.000Z
2022-03-28T07:10:39.000Z
from .build import ARCHs_REGISTRY from .base_arch import BaseReIDModel from .reduction_arch import ReductionReIDModel
39
46
0.880342
0
0
0
0
0
0
0
0
0
0
975feafbb3d220a6ca357a35f22233d761a71bf9
31
py
Python
tests/__init__.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
1,816
2018-02-14T01:59:51.000Z
2022-03-31T17:09:20.000Z
tests/__init__.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
340
2018-02-11T00:27:26.000Z
2022-03-21T12:00:24.000Z
tests/__init__.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
144
2018-03-18T00:08:16.000Z
2022-02-26T01:51:58.000Z
from .TestCase import TestCase
15.5
30
0.83871
0
0
0
0
0
0
0
0
0
0
9760ac4b7c9df5edcac3c9facafdb4273c11312d
1,297
py
Python
server.py
kiduyu-klaus/k-books
1909100aa03e14d5f60e6bc4500b6226a3ce2552
[ "MIT" ]
2
2019-08-21T08:35:57.000Z
2021-07-03T19:35:58.000Z
server.py
kiduyu-klaus/k-books
1909100aa03e14d5f60e6bc4500b6226a3ce2552
[ "MIT" ]
1
2019-08-21T08:42:24.000Z
2019-08-21T08:42:24.000Z
server.py
kiduyu-klaus/k-books
1909100aa03e14d5f60e6bc4500b6226a3ce2552
[ "MIT" ]
null
null
null
import telegram import tornado.ioloop import tornado.web from tornado.options import define, options from settings import WEBHOOK_URL, TELEGRAM_ACCESS_TOKEN from core import bot_handler define("port", default=5000, help="run on the given port", type=int) class IndexHandler(tornado.web.RequestHandler): def get(s...
25.94
68
0.683115
702
0.541249
0
0
0
0
0
0
179
0.138011
9764e3ad21b80a26ed1998bb62b14b203c54a3ac
516
py
Python
utility/i2cutil.py
zjcers/ecohawks-battery
dd214584fc141aca64702d1093f218a3238ab22a
[ "MIT" ]
2
2016-11-16T05:53:03.000Z
2017-09-27T15:12:20.000Z
utility/i2cutil.py
zjcers/ecohawks-battery
dd214584fc141aca64702d1093f218a3238ab22a
[ "MIT" ]
2
2016-04-29T01:38:30.000Z
2016-09-21T15:41:20.000Z
utility/i2cutil.py
zjcers/ecohawks-battery
dd214584fc141aca64702d1093f218a3238ab22a
[ "MIT" ]
null
null
null
#!/usr/bin/python #Original Author: Zane J Cersovsky #Original Date: Mar 6 2016 #Last Modified By: Zane J Cersovsky #Last Modified On: Mar 7 2016 import bitstring def reverse_word(word): r""" Takes in a int and reverse its bytes """ assert type(word) == int assert word >= 0 and word < 65536 msb = word >> 8 lsb =...
23.454545
66
0.70155
0
0
0
0
0
0
0
0
264
0.511628
9765225a4e13a87c2f5b956717cfeffe36f729ff
6,454
py
Python
certbot_azure/dns_azure_test.py
vladwing/certbot-azure
85e0da499d313431bcd47ae39e0e4c88bf2c2561
[ "MIT" ]
24
2019-01-17T20:32:02.000Z
2021-07-06T15:34:55.000Z
certbot_azure/dns_azure_test.py
vladwing/certbot-azure
85e0da499d313431bcd47ae39e0e4c88bf2c2561
[ "MIT" ]
5
2020-04-27T19:55:45.000Z
2021-12-03T10:26:15.000Z
certbot_azure/dns_azure_test.py
vladwing/certbot-azure
85e0da499d313431bcd47ae39e0e4c88bf2c2561
[ "MIT" ]
11
2020-10-28T16:02:26.000Z
2021-10-17T20:46:09.000Z
"""Tests for certbot_azure.authenticator.""" import os import unittest import mock import json from certbot import errors from certbot.plugins import dns_test_common_lexicon from certbot.plugins.dns_test_common import DOMAIN from certbot.tests import util as test_util from requests import Response from msrestazure....
37.964706
95
0.627053
5,989
0.927952
0
0
971
0.150449
0
0
1,094
0.169507
97681a1718c4a517019e57b4ad483c882fcd2d37
1,797
py
Python
tests/test_models/test_users.py
30ideas-Software-Factory/readIT
74b5e1391b88d6919786f1f93e723913a73e9efe
[ "Unlicense" ]
5
2021-05-28T22:49:46.000Z
2021-07-02T22:17:37.000Z
tests/test_models/test_users.py
30ideas-Software-Factory/readIT
74b5e1391b88d6919786f1f93e723913a73e9efe
[ "Unlicense" ]
12
2021-05-29T18:57:14.000Z
2021-06-08T14:24:13.000Z
tests/test_models/test_users.py
30ideas-Software-Factory/readIT
74b5e1391b88d6919786f1f93e723913a73e9efe
[ "Unlicense" ]
7
2021-06-20T22:11:14.000Z
2021-06-28T18:58:30.000Z
#!/usr/bin/python3 """ Contains the Test User class """ from models.users import User from models.baseModel import BaseModel import unittest class TestUser(unittest.TestCase): """Test the User class""" def test_is_subclass(self): """Test that User is a subclass of BaseModel""" user = User() ...
36.673469
72
0.601002
1,653
0.919866
0
0
0
0
0
0
507
0.282137
97688b09bfb61fdf6e74155a50fefad44a0d8884
306
py
Python
Python/Introduction/Python Print/solution.py
aesavas/HackerRank
c1ffecc92e3e3db923f94594b9115f650dc2983a
[ "MIT" ]
null
null
null
Python/Introduction/Python Print/solution.py
aesavas/HackerRank
c1ffecc92e3e3db923f94594b9115f650dc2983a
[ "MIT" ]
null
null
null
Python/Introduction/Python Print/solution.py
aesavas/HackerRank
c1ffecc92e3e3db923f94594b9115f650dc2983a
[ "MIT" ]
null
null
null
""" author : Ali Emre SAVAS Link : https://www.hackerrank.com/challenges/python-print/problem """ if __name__ == '__main__': n = int(input()) number = "" # n+1 -> Because in range function, n+1 is not in the range. for i in range(1, n+1): number += str(i) print(number)
25.5
69
0.588235
0
0
0
0
0
0
0
0
177
0.578431
976907f333c9c096d9fd70e01fdfc99447224539
2,532
py
Python
YatzyPy/data.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
YatzyPy/data.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
YatzyPy/data.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
# data.py import numpy as np from itertools import product, combinations from . func import * from . const import * # totally 31 hold options in two dimentional array all_hold_options = np.array([list(combinations([0,1,2,3,4], r=repeat)) for repeat in range(1, 6)]) # plus one empty option, makes it 32 options all_hol...
45.214286
148
0.639021
0
0
0
0
0
0
0
0
899
0.355055
97691d01b0dc17a421afe81d680dd368bc4cb43f
2,841
py
Python
17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py
g2gcio/course-demo
b0d00a6ac7a6a6a17af963cee67cf13dc5941e95
[ "MIT" ]
276
2016-04-04T20:57:36.000Z
2022-03-12T02:42:46.000Z
17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py
g2gcio/course-demo
b0d00a6ac7a6a6a17af963cee67cf13dc5941e95
[ "MIT" ]
37
2016-10-13T12:04:27.000Z
2020-11-22T10:36:53.000Z
17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py
g2gcio/course-demo
b0d00a6ac7a6a6a17af963cee67cf13dc5941e95
[ "MIT" ]
163
2016-10-03T02:10:00.000Z
2022-03-25T03:43:01.000Z
from sqlalchemy.orm import joinedload from blue_yellow_app.data.album import Album from blue_yellow_app.data.dbsession import DbSessionFactory from blue_yellow_app.data.track import Track class AlbumsService: @staticmethod def get_albums(): session = DbSessionFactory.create_session() albums ...
35.962025
89
0.515312
2,649
0.932418
0
0
2,606
0.917283
0
0
795
0.279831
976edec8e9c1b856d33be95bedc79d5a511c5930
1,229
py
Python
mysite/calls/migrations/0003_auto_20190130_1853.py
gurupratap-matharu/django-calls-registration-app
6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524
[ "MIT" ]
null
null
null
mysite/calls/migrations/0003_auto_20190130_1853.py
gurupratap-matharu/django-calls-registration-app
6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524
[ "MIT" ]
4
2021-04-08T20:34:00.000Z
2021-09-22T19:41:24.000Z
mysite/calls/migrations/0003_auto_20190130_1853.py
gurupratap-matharu/django-calls-registration-app
6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-30 18:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('calls', '0002_auto_20190130_1811'), ] operations = [ migrations.CreateModel( name='Type', ...
30.725
156
0.566314
1,103
0.897478
0
0
0
0
0
0
247
0.200976
976efa5b7a4cfc7372d6598e6e598ede5da9f96e
5,230
py
Python
ooobuild/lo/util/duration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/duration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/duration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
27.671958
313
0.585277
4,412
0.843595
0
0
1,662
0.317782
0
0
2,268
0.433652
976fcbf14dd7896daf4f8d49416555bf79ddb30f
1,250
py
Python
utils/distance_functions.py
inesnolas/Rank-based-loss_ICASSP22
3ebe7345dc26b8fa74543725a51b43b7170c58cc
[ "MIT" ]
null
null
null
utils/distance_functions.py
inesnolas/Rank-based-loss_ICASSP22
3ebe7345dc26b8fa74543725a51b43b7170c58cc
[ "MIT" ]
1
2022-03-10T04:08:49.000Z
2022-03-10T04:08:49.000Z
utils/distance_functions.py
inesnolas/Rank-based-loss_ICASSP22
3ebe7345dc26b8fa74543725a51b43b7170c58cc
[ "MIT" ]
null
null
null
import torch def compute_pairwise_cosine_distances(minibatch_embeddings, full_matrix=False): # cosine_distance = 1 - cosine_similarity # cosine similarity (A,B)= cos(theta) = (A . B ) / (||A||*||B||) , # constrainining embeddings into a hypersphere (unit-sphere) so all norms are 1 reduces this to a matr...
39.0625
129
0.7008
0
0
0
0
0
0
0
0
320
0.256
97719823db82abe3944497ea3132f94495350607
14,309
py
Python
python/model.py
jakelong0509/Song_Detector
57ac4b206b985f2c9e40423a9f79deacbc88f64e
[ "MIT" ]
3
2018-11-09T17:56:58.000Z
2019-05-15T19:43:58.000Z
python/model.py
jakelong0509/Song_Detector
57ac4b206b985f2c9e40423a9f79deacbc88f64e
[ "MIT" ]
1
2018-11-09T17:45:12.000Z
2018-11-09T23:12:21.000Z
python/model.py
jakelong0509/Song_Detector
57ac4b206b985f2c9e40423a9f79deacbc88f64e
[ "MIT" ]
null
null
null
import numpy as np import os import sys import progressbar import gc import pickle import matplotlib.pyplot as plt from LSTM import LSTM from wrapper import Bidirectional from Regularization import regularization from attention_model import attention_model from data_preprocessing import song_preprocessing from function...
42.20944
137
0.624991
13,879
0.969949
0
0
0
0
0
0
1,685
0.117758
97736b42eb349e18d83972c1a24aef06f993ff03
763
py
Python
tests/test_demo.py
jsam/demo
d644c6a8c4a4e04538abb1c506b00da29429eaa9
[ "MIT" ]
null
null
null
tests/test_demo.py
jsam/demo
d644c6a8c4a4e04538abb1c506b00da29429eaa9
[ "MIT" ]
null
null
null
tests/test_demo.py
jsam/demo
d644c6a8c4a4e04538abb1c506b00da29429eaa9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from click.testing import CliRunner from demo import cli import os import pytest def test_import_toplevel(): try: import demo except ImportError: pytest.fail("Unable to import `demo`.") def test_fail_env():...
24.612903
70
0.697248
0
0
0
0
0
0
0
0
172
0.225426
97742d434f756859171175e1ee026361918f8086
3,151
py
Python
blueprints/portfolio/build.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
blueprints/portfolio/build.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
blueprints/portfolio/build.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
from hausse import Hausse from hausse.plugins import ( Assets, DiscoverPartials, Drop, Handlebars, Markdown, MetadataMarkdown, Relations, Collection, Collections ) # Collections preparations # By default, all files in "src/formations" folder will be grouped in this collection Links...
41.460526
96
0.70676
0
0
0
0
0
0
0
0
2,367
0.75119
97748de95cef6ee43f337f0e5e20ea4c436fc422
601
py
Python
tools/metrics/ukm/codegen_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/metrics/ukm/codegen_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/metrics/ukm/codegen_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import codegen class CodegenTest(unittest.TestCase): def testHash(self): # Must match those in //base/metrics/...
28.619048
72
0.760399
334
0.55574
0
0
0
0
0
0
277
0.460899
9774e07a56017bb3a9a3d7425a808039862c2b58
13
py
Python
json_editor/ui/__init__.py
eyalk11/json-editor
3a865ee04befaee3c258adacf22a15cbabfe2753
[ "MIT" ]
7
2019-07-31T22:26:44.000Z
2021-03-31T07:38:31.000Z
tool_dock/ui/__init__.py
rBrenick/tool-dock
cedd012bcdb138f10982f74ab6a1d10cbc50cb15
[ "MIT" ]
null
null
null
tool_dock/ui/__init__.py
rBrenick/tool-dock
cedd012bcdb138f10982f74ab6a1d10cbc50cb15
[ "MIT" ]
5
2019-07-31T06:59:55.000Z
2021-10-17T23:27:00.000Z
# content
2.6
9
0.538462
0
0
0
0
0
0
0
0
9
0.692308
977547a86441dd2f34137210aaba3cb7c65a05a6
716
py
Python
yahoo_fin/ex01.py
stormabq/python-examples
1c1acfc3863a2cf1a9e202c9299f3a526858eb34
[ "MIT" ]
1
2021-12-12T04:39:53.000Z
2021-12-12T04:39:53.000Z
yahoo_fin/ex01.py
stormabq/python-examples
1c1acfc3863a2cf1a9e202c9299f3a526858eb34
[ "MIT" ]
null
null
null
yahoo_fin/ex01.py
stormabq/python-examples
1c1acfc3863a2cf1a9e202c9299f3a526858eb34
[ "MIT" ]
6
2020-05-05T17:21:28.000Z
2021-12-12T04:39:57.000Z
from yahoo_fin.stock_info import ( get_data, tickers_sp500, tickers_nasdaq, tickers_other, get_quote_table, ) """ pull historical data for Netflix (NFLX) """ # nflx = get_data("NFLX") """ pull data for Apple (AAPL) """ """case sensitivity does not matter""" # aapl = get_data("aapl") """ get list ...
24.689655
61
0.698324
0
0
0
0
0
0
0
0
507
0.708101
97770588e1dec8dd9dbd77471c7aa4e18adc3dbe
1,158
py
Python
performancetests/extract_useful_stats.py
phillbarber/polling-vs-sockets
c777c19359c76abfcd13e5ebb55938b03aef11e8
[ "MIT" ]
null
null
null
performancetests/extract_useful_stats.py
phillbarber/polling-vs-sockets
c777c19359c76abfcd13e5ebb55938b03aef11e8
[ "MIT" ]
null
null
null
performancetests/extract_useful_stats.py
phillbarber/polling-vs-sockets
c777c19359c76abfcd13e5ebb55938b03aef11e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import os import sys directory = os.getcwd() + "/" + sys.argv[1] print ("Stats for" + directory) def getTxBytes(json): return json["networks"]["eth0"]["tx_bytes"] def getRxBytes(json): return json["networks"]["eth0"]["rx_bytes"] def getCPUUsage(json): return json["cp...
28.95
94
0.653713
0
0
0
0
0
0
0
0
280
0.241796
97777e3bdfdec7925db3bd47283e2b2cd170c9f4
3,657
py
Python
arenarobot/video_call/__init__.py
DaAwesomeP/ARENA-robot
ff771c4f5f587fda1bcc79ae165301129a6b1458
[ "BSD-3-Clause" ]
null
null
null
arenarobot/video_call/__init__.py
DaAwesomeP/ARENA-robot
ff771c4f5f587fda1bcc79ae165301129a6b1458
[ "BSD-3-Clause" ]
null
null
null
arenarobot/video_call/__init__.py
DaAwesomeP/ARENA-robot
ff771c4f5f587fda1bcc79ae165301129a6b1458
[ "BSD-3-Clause" ]
null
null
null
""" __init__.py: Definitions for the video call client. Created by Perry Naseck on 7/1/21. Copyright (c) 2021, The CONIX Research Center All rights reserved. This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree. """ # Some code originally fr...
33.861111
126
0.654361
2,943
0.804758
0
0
581
0.158873
0
0
1,511
0.41318
977874df3b07698f1618d522fb5395d30d8fd9da
212
py
Python
annotate/processing/base_annotation.py
dojo-modeling/dojo
8abc71790cbb8639a56c89791535b3df59c725ac
[ "MIT" ]
3
2022-01-28T01:43:30.000Z
2022-02-24T21:42:13.000Z
annotate/processing/base_annotation.py
dojo-modeling/dojo
8abc71790cbb8639a56c89791535b3df59c725ac
[ "MIT" ]
8
2022-01-12T16:39:57.000Z
2022-01-31T19:05:45.000Z
annotate/processing/base_annotation.py
dojo-modeling/dojo
8abc71790cbb8639a56c89791535b3df59c725ac
[ "MIT" ]
null
null
null
import typing import pandas as pd class BaseProcessor: @staticmethod def run( input_data: typing.Any, context: typing.Dict[str, typing.Any] ) -> pd.DataFrame: raise NotImplemented()
19.272727
69
0.669811
175
0.825472
0
0
150
0.707547
0
0
0
0
97793cb16f646ed93a1d2a99e624885f86ec02c8
2,006
py
Python
ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py
sherrytp/bc_f19_econ
0d393e54441fd38faba275bb3e718704fbd18d0d
[ "Apache-2.0" ]
null
null
null
ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py
sherrytp/bc_f19_econ
0d393e54441fd38faba275bb3e718704fbd18d0d
[ "Apache-2.0" ]
null
null
null
ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py
sherrytp/bc_f19_econ
0d393e54441fd38faba275bb3e718704fbd18d0d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 23 00:14:38 2019 @author: RV Purpose: use Ridge, Lasso and Elastic Net models on Titanic data """ #%% Lasso from sklearn.linear_model import Lasso useAlpha = 0.00001 lasso_1 = Lasso(alpha = useAlpha).fit(X, y) print(lasso_1.coef_) # OK, got the coefficie...
27.108108
99
0.70339
0
0
0
0
0
0
0
0
462
0.230309
977b336843e723764b4e53b212ee10afac5dc75c
5,340
py
Python
pyperformance/_pythoninfo.py
oraluben/pyperformance
74acfa5fbf801ce79fdadc9e92355c99460e91e4
[ "MIT" ]
255
2016-08-27T05:38:56.000Z
2019-05-27T16:15:38.000Z
pyperformance/_pythoninfo.py
oraluben/pyperformance
74acfa5fbf801ce79fdadc9e92355c99460e91e4
[ "MIT" ]
43
2016-08-30T15:22:01.000Z
2019-05-24T10:59:54.000Z
pyperformance/_pythoninfo.py
oraluben/pyperformance
74acfa5fbf801ce79fdadc9e92355c99460e91e4
[ "MIT" ]
55
2016-08-30T15:19:45.000Z
2019-05-20T12:41:02.000Z
# A utility library for getting information about a Python executable. # # This may be used as a script. import importlib.util import json import os import os.path import sys import sysconfig INFO = { # sys 'executable (sys)': 'sys.executable', 'executable (sys;realpath)': 'executable_realpath', 'pre...
33.584906
81
0.618352
0
0
0
0
0
0
0
0
2,246
0.420599
977e62242d714831dab5e11c9d9d90c83359ac05
43
py
Python
crypt_interface/driver_interfaces/exceptions.py
xyder/crypt-interface
ade60389dab5e47c786ccc9fee783b14f338e207
[ "MIT" ]
null
null
null
crypt_interface/driver_interfaces/exceptions.py
xyder/crypt-interface
ade60389dab5e47c786ccc9fee783b14f338e207
[ "MIT" ]
null
null
null
crypt_interface/driver_interfaces/exceptions.py
xyder/crypt-interface
ade60389dab5e47c786ccc9fee783b14f338e207
[ "MIT" ]
null
null
null
class DriverException(Exception): pass
14.333333
33
0.767442
42
0.976744
0
0
0
0
0
0
0
0
977f46612fc386542c357d0fedcedfdd08752149
592
py
Python
alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py
pchudzik/tweet
1938dae6be1359d73a8140b994c3db39d2b336da
[ "MIT" ]
null
null
null
alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py
pchudzik/tweet
1938dae6be1359d73a8140b994c3db39d2b336da
[ "MIT" ]
null
null
null
alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py
pchudzik/tweet
1938dae6be1359d73a8140b994c3db39d2b336da
[ "MIT" ]
null
null
null
"""tokens table Revision ID: 6d2dd11ac2fb Revises: 908de7ed5813 Create Date: 2019-03-07 20:42:36.328479 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6d2dd11ac2fb' down_revision = '908de7ed5813' branch_labels = None depends_on = None def upgrade(): op....
19.733333
69
0.697635
0
0
0
0
0
0
0
0
230
0.388514
9780b9be1e720e56671d5b30ede7867d5f95129a
127
py
Python
day1/part1.py
MatejBabis/AdventOfCode2k18
859044b132079a9bcc0cc6456c255dc3a70e1fbf
[ "MIT" ]
2
2018-12-17T22:02:50.000Z
2018-12-20T14:30:59.000Z
day1/part1.py
MatejBabis/AdventOfCode2k18
859044b132079a9bcc0cc6456c255dc3a70e1fbf
[ "MIT" ]
null
null
null
day1/part1.py
MatejBabis/AdventOfCode2k18
859044b132079a9bcc0cc6456c255dc3a70e1fbf
[ "MIT" ]
null
null
null
f = open("input.txt") total = 0 for number in f.readlines(): total += int(number[:-1]) f.close() print("Answer:", total)
14.111111
29
0.606299
0
0
0
0
0
0
0
0
20
0.15748
97816564e1874e02b5c0cd54d1cf752b6659b9a3
768
py
Python
graphtiny/api.py
Canicio/pyqtgraph-tiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
1
2018-03-17T12:36:56.000Z
2018-03-17T12:36:56.000Z
graphtiny/api.py
Canicio/pyqtgraph-tiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
1
2017-08-08T18:31:31.000Z
2017-08-08T18:31:31.000Z
graphtiny/api.py
Canicio/graphtiny
b88ebe8a2e6ad860ca4857b527adccbbde14851d
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from numpy.core.records import ndarray from graphtiny.domain import Chart, DataStreamWindow class IChart(metaclass=ABCMeta): @abstractmethod def set_data_stream(self, chart: Chart, x: ndarray, y: ndarray) -> None: """ Introduces data stream in the chart...
29.538462
76
0.684896
630
0.820313
0
0
543
0.707031
0
0
355
0.46224
97817d510af0a172a3fa90c3a96fd9cbcae0aadb
1,307
py
Python
mailmorth/app/api_version/v1/__init__.py
lintosh/mailship
ce02962a8928417c5837524a63f414498da2b49f
[ "MIT" ]
null
null
null
mailmorth/app/api_version/v1/__init__.py
lintosh/mailship
ce02962a8928417c5837524a63f414498da2b49f
[ "MIT" ]
null
null
null
mailmorth/app/api_version/v1/__init__.py
lintosh/mailship
ce02962a8928417c5837524a63f414498da2b49f
[ "MIT" ]
null
null
null
#~ version one of the mailMorth api which would hold all the functionalities of our version one #(@: Name): "mailMorth" #(@:Description): "email Management, and automation api code" #(@:Author): "inteliJence development team" #under the license of Apache License 2.0 and intelijence Protective Rights please ed...
35.324324
129
0.554705
0
0
0
0
0
0
0
0
1,024
0.783474
97817fb679923c526b028329f844109b22f3d6ae
1,655
py
Python
pineboolib/fllegacy/FLSettings.py
Miguel-J/pineboo-buscar
41a2f3ee0425d163619b78f32544c4b4661d5fa7
[ "MIT" ]
null
null
null
pineboolib/fllegacy/FLSettings.py
Miguel-J/pineboo-buscar
41a2f3ee0425d163619b78f32544c4b4661d5fa7
[ "MIT" ]
null
null
null
pineboolib/fllegacy/FLSettings.py
Miguel-J/pineboo-buscar
41a2f3ee0425d163619b78f32544c4b4661d5fa7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore from pineboolib.flcontrols import ProjectClass from pineboolib import decorators class FLSettings(ProjectClass): s = QtCore.QSettings(QtCore.QSettings.NativeFormat, QtCore.QSettings.UserScope, "Eneboo", "Pineboo") @decorators.BetaIm...
26.269841
73
0.569184
1,520
0.918429
0
0
568
0.343202
0
0
204
0.123263
97818d041346c51355d6a36de188f9622c855abf
35,874
py
Python
kernel/tracker/tracking.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/tracker/tracking.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/tracker/tracking.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Tianmian Tech. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.682773
135
0.616073
33,121
0.922899
0
0
2,669
0.07437
0
0
6,000
0.167187
9783ca48fe51d9ac60d3e96b2b562fca5f560392
12
py
Python
Utils/kalman_utils/kf_template.mako.py
martinjaymckee/Chandra-HAL
337a0cc5d19b20af979145c07cf1d7351754bb27
[ "MIT" ]
null
null
null
Utils/kalman_utils/kf_template.mako.py
martinjaymckee/Chandra-HAL
337a0cc5d19b20af979145c07cf1d7351754bb27
[ "MIT" ]
null
null
null
Utils/kalman_utils/kf_template.mako.py
martinjaymckee/Chandra-HAL
337a0cc5d19b20af979145c07cf1d7351754bb27
[ "MIT" ]
null
null
null
class ${KF}
6
11
0.583333
0
0
0
0
0
0
0
0
0
0
97849e29d8bc30894785e486625de3eacbf655df
570
py
Python
src/odontology/person/migrations/0008_patient_date_created.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
2
2016-06-23T15:35:29.000Z
2022-01-11T00:55:21.000Z
src/odontology/person/migrations/0008_patient_date_created.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
27
2016-06-24T12:28:01.000Z
2022-01-13T00:37:25.000Z
src/odontology/person/migrations/0008_patient_date_created.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('person', '0007_auto_20160214_2019'), ] operations = [ migrations.AddFi...
24.782609
124
0.64386
407
0.714035
0
0
0
0
0
0
79
0.138596
97856bbd18162d533ea54eb1abdafde5f0b28d54
1,358
py
Python
Sensor_Debug/TestCase/test_01_Openapp.py
sdwfclcyk1/AutoTestCase
63a6a6a4acf2a9dc572bd917b186638eae65aee7
[ "MIT" ]
1
2018-09-28T11:35:07.000Z
2018-09-28T11:35:07.000Z
Sensor_Debug/TestCase/test_01_Openapp.py
sdwfclcyk1/AutoTestCase
63a6a6a4acf2a9dc572bd917b186638eae65aee7
[ "MIT" ]
null
null
null
Sensor_Debug/TestCase/test_01_Openapp.py
sdwfclcyk1/AutoTestCase
63a6a6a4acf2a9dc572bd917b186638eae65aee7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/6/25 18:59 # @Author : Kay # @Site : # @File : test_01_openapp.py # @Software: PyCharm Community Edition import uiautomator2 as u2 import unittest from Public.Decorator import * from Public.BasePage import BasePage from Public.ReadConfig import Rea...
24.690909
71
0.715022
758
0.556535
0
0
696
0.511013
0
0
213
0.156388
97875158322222de017110d6d1abc2e7a57acacd
1,077
py
Python
makePlane.py
dluman/NaNoGenMo-2017-2
d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0
[ "Unlicense" ]
null
null
null
makePlane.py
dluman/NaNoGenMo-2017-2
d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0
[ "Unlicense" ]
null
null
null
makePlane.py
dluman/NaNoGenMo-2017-2
d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0
[ "Unlicense" ]
null
null
null
import random class Plane(): name = None bearing = None captain = None origin = None destination = None img = None squawk = None def __init__(self): self.name = self.createName() self.bearing = self.setBearing() self.captain = self.createCaptain() self.origin = self.setOrigin() self.destination = s...
23.413043
90
0.680594
1,061
0.985144
0
0
0
0
0
0
238
0.220984
97876bdf9ec44c4e43b01948ef9cb05a7a5c62d7
2,157
py
Python
species/__init__.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
species/__init__.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
species/__init__.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
from species.analysis.fit_model import FitModel from species.analysis.fit_spectrum import FitSpectrum from species.analysis.photometry import SyntheticPhotometry # from species.analysis.retrieval import AtmosphericRetrieval from species.read.read_calibration import ReadCalibration from species.read.read_filter imp...
30.814286
61
0.66064
0
0
0
0
0
0
0
0
254
0.117756