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
639ecc093e44120c4662cc5f7f988b58d3a293ce
5,365
py
Python
test/test_parity_accounts.py
ad360io/python-ethereum-client
93c111f20ea2f7297d4462edc500cfecb1f289e0
[ "Apache-2.0" ]
3
2019-03-28T18:56:44.000Z
2020-12-30T17:00:15.000Z
test/test_parity_accounts.py
thezedwards/python-ethereum-client
93c111f20ea2f7297d4462edc500cfecb1f289e0
[ "Apache-2.0" ]
null
null
null
test/test_parity_accounts.py
thezedwards/python-ethereum-client
93c111f20ea2f7297d4462edc500cfecb1f289e0
[ "Apache-2.0" ]
null
null
null
from test_base import TestBase
39.448529
92
0.704753
639f02b61ea216bdda84b7ae424cd5d8a516bacb
1,955
py
Python
stats/management/commands/import_historical_daily_compute_ligo.py
ARCCA/cogs3
bcfe4397e1c91607e231f97df7d05b924e6598da
[ "MIT" ]
1
2020-03-28T23:55:02.000Z
2020-03-28T23:55:02.000Z
stats/management/commands/import_historical_daily_compute_ligo.py
ARCCA/cogs3
bcfe4397e1c91607e231f97df7d05b924e6598da
[ "MIT" ]
60
2018-04-16T13:40:23.000Z
2020-06-05T18:02:01.000Z
stats/management/commands/import_historical_daily_compute_ligo.py
ARCCA/cogs3
bcfe4397e1c91607e231f97df7d05b924e6598da
[ "MIT" ]
10
2018-03-14T22:25:50.000Z
2020-01-09T21:32:22.000Z
import os from datetime import datetime from django.core.management.base import BaseCommand from . import find_date_range_of_ligo_file
34.298246
88
0.547315
639f2d1a51d2e5c95491eb21f78d303d6cbf9833
2,949
py
Python
xero_python/payrolluk/models/benefits.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/benefits.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/benefits.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.4.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel
24.172131
83
0.587657
63a01e092685c700f3b8dba69aaebf5daf1ae324
67
py
Python
supplychainpy/reporting/blueprints/contact/templates/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
supplychainpy/reporting/blueprints/contact/templates/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
supplychainpy/reporting/blueprints/contact/templates/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
from supplychainpy.reporting.blueprints.contact.views import about
33.5
66
0.880597
63a078f73cd02a7639b3fb8a84f7a96fd200a95a
390
py
Python
harmony/harmony_checker/migrations/0018_auto_20191230_1247.py
ecxia/harmony-checker
78b198fa091bd8175a8ad8f233053b34654c3a09
[ "MIT" ]
null
null
null
harmony/harmony_checker/migrations/0018_auto_20191230_1247.py
ecxia/harmony-checker
78b198fa091bd8175a8ad8f233053b34654c3a09
[ "MIT" ]
null
null
null
harmony/harmony_checker/migrations/0018_auto_20191230_1247.py
ecxia/harmony-checker
78b198fa091bd8175a8ad8f233053b34654c3a09
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-12-30 18:47 from django.db import migrations, models
20.526316
55
0.602564
63a0c556655cbddce507c8203d32acd238d0abbf
11,486
py
Python
Meters/IEC/crm_getter.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
Meters/IEC/crm_getter.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
Meters/IEC/crm_getter.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
import json try: from .Helpers.create_logger import create_logger except ImportError: from Helpers.create_logger import create_logger try: from .emhmeter import * except ModuleNotFoundError: from emhmeter import * from time import sleep import datetime class RedistoJob: log_dir = "/var/log/eg" ...
34.911854
141
0.562946
63a10e3867c93ef6e2a403378b7afcbe977b5a3c
172
py
Python
panel/widgets/__init__.py
arianon/panel
634d9b65fe7973f7875b827a22ef18fc74120725
[ "MIT" ]
null
null
null
panel/widgets/__init__.py
arianon/panel
634d9b65fe7973f7875b827a22ef18fc74120725
[ "MIT" ]
null
null
null
panel/widgets/__init__.py
arianon/panel
634d9b65fe7973f7875b827a22ef18fc74120725
[ "MIT" ]
null
null
null
from ..widget import Widget from .bitcoin import bitcoin from .clock import clock, calendar from .music import music from .volume import volume from .memory import memory
21.5
34
0.802326
63a1738a8546e5c03125ba171676d6c0f49767de
1,280
py
Python
custom_components/vivint/lock.py
cameroncockrell/hacs-vivint
e0d3b053a2247d7b506e8e3edfbdc4b5f6de7e0b
[ "MIT" ]
25
2021-02-08T16:13:38.000Z
2022-02-22T01:32:31.000Z
custom_components/vivint/lock.py
cameroncockrell/hacs-vivint
e0d3b053a2247d7b506e8e3edfbdc4b5f6de7e0b
[ "MIT" ]
37
2021-01-24T22:37:25.000Z
2022-03-16T03:08:09.000Z
custom_components/vivint/lock.py
cameroncockrell/hacs-vivint
e0d3b053a2247d7b506e8e3edfbdc4b5f6de7e0b
[ "MIT" ]
1
2021-09-02T18:49:06.000Z
2021-09-02T18:49:06.000Z
"""Support for Vivint door locks.""" from homeassistant.components.lock import LockEntity from vivintpy.devices.door_lock import DoorLock from .const import DOMAIN from .hub import VivintEntity
27.826087
77
0.657813
63a25b18c73a26d39d698b2c55164a02e5eac2cc
1,482
py
Python
fastapi-master-api/app/service/adapters.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
1
2021-12-25T09:19:25.000Z
2021-12-25T09:19:25.000Z
fastapi-master-api/app/service/adapters.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
fastapi-master-api/app/service/adapters.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
import json from typing import List, Union from app.domain.adapter import ( Adapter, CreateVolvoCaretrackAdapter, CreateWackerNeusonKramerAdapter, ) from app.repository.database.adapters import PolymorphicAdaptersBase, adapters_repo from kafka import KafkaProducer from sqlalchemy.orm import Session
26.945455
83
0.662618
63a466972fbe138345c3a144affd2ff678d1060a
592
py
Python
gamabr.py
shalahuddin/sketch
e8c051e09d48348bab1594e9538f719940fba52e
[ "Unlicense" ]
null
null
null
gamabr.py
shalahuddin/sketch
e8c051e09d48348bab1594e9538f719940fba52e
[ "Unlicense" ]
3
2020-07-13T09:59:41.000Z
2020-07-13T10:24:34.000Z
gamabr.py
shalahuddin/sketch
e8c051e09d48348bab1594e9538f719940fba52e
[ "Unlicense" ]
null
null
null
import cv2 import sys # do instal modul opencv-python image = cv2.imread("gambar.jpg") grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) grayImageInv = 255 - grayImage grayImageInv = cv2.GaussianBlur(grayImageInv, (21, 21), 0) output = cv2.divide(grayImage, 255-grayImageInv, scale = 256.0) resizeImg = cv2.resize(ou...
31.157895
63
0.760135
63a544bf153a8063e56192d1b7de1591ce27ac14
2,111
py
Python
ioe_api/user/token.py
mohsinalimat/frappe_ioe_api
d21941ac6050644c8ccbcc21a9ccc24f1a432712
[ "MIT" ]
1
2021-02-24T13:48:01.000Z
2021-02-24T13:48:01.000Z
ioe_api/user/token.py
mohsinalimat/frappe_ioe_api
d21941ac6050644c8ccbcc21a9ccc24f1a432712
[ "MIT" ]
1
2019-12-16T09:08:20.000Z
2019-12-17T08:10:50.000Z
ioe_api/user/token.py
mohsinalimat/frappe_ioe_api
d21941ac6050644c8ccbcc21a9ccc24f1a432712
[ "MIT" ]
3
2020-05-31T21:08:56.000Z
2021-12-22T10:42:21.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Dirk Chang and contributors # For license information, please see license.txt # # Api for user.token # from __future__ import unicode_literals import frappe import uuid from ioe_api.helper import throw
20.104762
89
0.670298
63a5feffe2c2078e241a498bb5eb36898788c2b3
1,608
py
Python
Lab5/RobieLavy - AICV LAB 5/Task-2.py
kubabujak48/AICV_LABS
75468410a56252de28c256f1d7a732c51a7239fb
[ "MIT" ]
null
null
null
Lab5/RobieLavy - AICV LAB 5/Task-2.py
kubabujak48/AICV_LABS
75468410a56252de28c256f1d7a732c51a7239fb
[ "MIT" ]
null
null
null
Lab5/RobieLavy - AICV LAB 5/Task-2.py
kubabujak48/AICV_LABS
75468410a56252de28c256f1d7a732c51a7239fb
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np from random import randrange ######################################################### # Load images img1 = cv.imread('lena.png', 0) img2 = cv.imread('pic.png', 0) # Copy one of the images (select one) img = img1.copy() #img = img2.copy() cv.imshow('Original image', img) ...
18.697674
57
0.567164
63a7115e0b5bdec7a35652d52dc76e2f6f175302
726
py
Python
marner/core.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
marner/core.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
marner/core.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
"""Core functions to integrate the gui and the backup.""" import logging from .gui import App, tk from .backup import collect_emails, ImapRuntimeError logging.basicConfig( level=logging.INFO, ) root = tk.Tk() app = App(root, callback=_do_backup) root.mainloop()
18.615385
57
0.677686
63a73b69fb793b77e0ad6523894415a1d427ed75
172
py
Python
any_response_redirect_middleware/tests/__init__.py
hzdg/django-any-response-redirect-middleware
1b832a35b14566b0c7aa99e17cfcdbe4835a269c
[ "MIT" ]
null
null
null
any_response_redirect_middleware/tests/__init__.py
hzdg/django-any-response-redirect-middleware
1b832a35b14566b0c7aa99e17cfcdbe4835a269c
[ "MIT" ]
null
null
null
any_response_redirect_middleware/tests/__init__.py
hzdg/django-any-response-redirect-middleware
1b832a35b14566b0c7aa99e17cfcdbe4835a269c
[ "MIT" ]
null
null
null
from .basic import BasicRedirectMiddlewareTests from .django_cms import RedirectMiddlewareTestsWithDjangoCMS from .wagtail_cms import RedirectMiddlewareTestsWithWagtailCMS
43
62
0.912791
63a75ebd32da30f3a8d2044144db3a414d9879d2
265
py
Python
api/serializers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
1
2020-11-28T12:55:56.000Z
2020-11-28T12:55:56.000Z
api/serializers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
null
null
null
api/serializers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import CustomUser
22.083333
50
0.649057
63a76f1c1a9231b2370d39956bed3335b3730a64
2,302
py
Python
natural-computing/genetic-programming/constants.py
ramongonze/ufmg-practical-assignments
d85821e330a0f089a7601168bbbf8b4aef174f27
[ "MIT" ]
null
null
null
natural-computing/genetic-programming/constants.py
ramongonze/ufmg-practical-assignments
d85821e330a0f089a7601168bbbf8b4aef174f27
[ "MIT" ]
null
null
null
natural-computing/genetic-programming/constants.py
ramongonze/ufmg-practical-assignments
d85821e330a0f089a7601168bbbf8b4aef174f27
[ "MIT" ]
null
null
null
import math import operator import random # Seed used to control the tests random.seed() # A set of nodes composes a binary tree # The representation of an individual ################## CONSTANTS #################### MAX_DEPTH = 7 # Max depth of an individual, a binary tree SIGMA = 15000 # Limit to calculate de rel...
37.129032
113
0.670721
63a7dc72e2d08886f4dcef0209986deb895e47ef
1,290
py
Python
LeetCode/python-R1/0005-最长回文子串D/V2.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
4
2019-08-27T11:28:03.000Z
2020-12-24T07:10:22.000Z
LeetCode/python-R1/0005-最长回文子串D/V2.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
null
null
null
LeetCode/python-R1/0005-最长回文子串D/V2.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
4
2019-09-20T09:44:01.000Z
2020-12-24T07:10:23.000Z
""" @Author: huuuuusy @GitHub: https://github.com/huuuuusy Ubuntu 18.04 IDE: VS Code 1.36 python == 3.7.3 """ """ : 868 ms, Python3 82.03% : 13.7 MB, Python3 19.28% """ if __name__ == "__main__": s = "babad" answer = Solution().longestPalindrome(s) print(answer)
25.8
92
0.489922
63aa61e1d8acde8bc8dcb47698d79a9564703801
210
py
Python
tuples.py
joshavenue/python_notebook
8d46ba88ef4f05dea6801364bc134edb981df02e
[ "Unlicense" ]
null
null
null
tuples.py
joshavenue/python_notebook
8d46ba88ef4f05dea6801364bc134edb981df02e
[ "Unlicense" ]
null
null
null
tuples.py
joshavenue/python_notebook
8d46ba88ef4f05dea6801364bc134edb981df02e
[ "Unlicense" ]
null
null
null
x = (1,2,3,4) y = (1,2,'abc',[1,2,3]) // Only can change data with a list, other cannot be change y[3][1] = 22 print(y) x = 1,2,3,4,5 tuple(x) // You can create a tuple this way
19.090909
90
0.509524
63aafba5bd8bdfc6df640fba8aa9924fc93ada56
2,359
py
Python
Wrappers/Python/cil/optimisation/operators/DiagonalOperator.py
ClaireDelplancke/CCPi-Framework
3f0cb9dd363ac386832d3034717f022c3b2952a1
[ "Apache-2.0" ]
30
2021-05-18T08:54:01.000Z
2022-03-24T17:42:31.000Z
Wrappers/Python/cil/optimisation/operators/DiagonalOperator.py
ClaireDelplancke/CCPi-Framework
3f0cb9dd363ac386832d3034717f022c3b2952a1
[ "Apache-2.0" ]
301
2021-05-07T12:28:15.000Z
2022-03-31T17:16:26.000Z
Wrappers/Python/cil/optimisation/operators/DiagonalOperator.py
ClaireDelplancke/CCPi-Framework
3f0cb9dd363ac386832d3034717f022c3b2952a1
[ "Apache-2.0" ]
7
2021-09-05T20:45:11.000Z
2022-03-10T21:16:37.000Z
# -*- coding: utf-8 -*- # This work is part of the Core Imaging Library (CIL) developed by CCPi # (Collaborative Computational Project in Tomographic Imaging), with # substantial contributions by UKRI-STFC and University of Manchester. # Licensed under the Apache License, Version 2.0 (the "License"); # you...
38.048387
84
0.648156
63acb591d68fc2c9434a33512ffeb95aa93fdd10
1,284
py
Python
repos/system_upgrade/el7toel8/models/vsftpdfacts.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/el7toel8/models/vsftpdfacts.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/el7toel8/models/vsftpdfacts.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
from leapp.models import Model, fields from leapp.topics import SystemInfoTopic
40.125
93
0.731308
63ad66c77ea48cbf7d452c7ca127eea43619e80f
426
py
Python
solutions/python/2017/makeArrayConsecutive.py
lucifer1198/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
2
2020-12-21T22:09:26.000Z
2021-01-01T15:40:01.000Z
solutions/python/2017/makeArrayConsecutive.py
nsu1210/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
null
null
null
solutions/python/2017/makeArrayConsecutive.py
nsu1210/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
1
2021-01-28T18:15:02.000Z
2021-01-28T18:15:02.000Z
""" Given an array of integers, we need to fill in the "holes" such that it contains all the integers from some range. Example For sequence = [6, 2, 3, 8], the output should be makeArrayConsecutive(sequence) = [4, 5, 7]. """
22.421053
114
0.626761
63ae651d3be857f3edd0aaef054f1eeeb0a39829
6,141
py
Python
findy/utils/request.py
doncat99/FinanceDataCenter
1538c8347ed5bff9a99a3cca07507a7605108124
[ "MIT" ]
null
null
null
findy/utils/request.py
doncat99/FinanceDataCenter
1538c8347ed5bff9a99a3cca07507a7605108124
[ "MIT" ]
null
null
null
findy/utils/request.py
doncat99/FinanceDataCenter
1538c8347ed5bff9a99a3cca07507a7605108124
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from http import client from retrying import retry import requests from aiohttp import ClientSession, ClientTimeout, TCPConnector # from aiohttp_client_cache import CachedSession, SQLiteBackend # from findy.interface import RunMode # from findy.utils.cache import hashable_lru l...
37.674847
131
0.623351
63aef9c2f41a87230a16543f6b852c81c6bc1313
1,290
py
Python
tools/export_weights.py
hlld/classification
327a67661ac2fc6302809dc8caab12b7a8195c64
[ "MIT" ]
7
2021-07-29T09:05:38.000Z
2021-07-29T11:01:03.000Z
tools/export_weights.py
zhaojiankuan/classification
f5e90107aadb35be7056d75b6b01d48bd1370800
[ "MIT" ]
null
null
null
tools/export_weights.py
zhaojiankuan/classification
f5e90107aadb35be7056d75b6b01d48bd1370800
[ "MIT" ]
4
2021-07-29T09:05:40.000Z
2021-07-29T10:51:50.000Z
import argparse import sys import os import torch import struct from pathlib import Path sys.path.append('../') from classification.tools import load_model if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--weights', type=str, default='', help='weigh...
32.25
70
0.589147
63b061c19fd581caa93d0fedc228b0c213f72200
1,153
py
Python
pytrivia/__helpers.py
Dnewman9/Python-Trivia-API
0af7f999cc4ab278fb0ac6fd64733ab168984e60
[ "MIT" ]
6
2018-01-15T15:17:56.000Z
2021-06-16T19:48:14.000Z
pytrivia/__helpers.py
MaT1g3R/Python-Trivia-API
0af7f999cc4ab278fb0ac6fd64733ab168984e60
[ "MIT" ]
null
null
null
pytrivia/__helpers.py
MaT1g3R/Python-Trivia-API
0af7f999cc4ab278fb0ac6fd64733ab168984e60
[ "MIT" ]
7
2017-05-15T23:41:43.000Z
2021-07-10T01:09:09.000Z
import binascii from base64 import b64decode from aiohttp import ClientResponseError, ClientSession from requests import get def decode_dict(d): """ Recursivly decode all strings in a dict :param d: the input dict :return: a dict with all its vals decoded """ if isinstance(d, int): re...
23.06
76
0.630529
63b125702a1b2571faf102a9e6061df6610c3d1e
1,213
py
Python
Network.py
LonglongaaaGo/CNN-python
02b0f9e0e5044796bc858b75421cbc4e2e3cc653
[ "MIT" ]
null
null
null
Network.py
LonglongaaaGo/CNN-python
02b0f9e0e5044796bc858b75421cbc4e2e3cc653
[ "MIT" ]
null
null
null
Network.py
LonglongaaaGo/CNN-python
02b0f9e0e5044796bc858b75421cbc4e2e3cc653
[ "MIT" ]
null
null
null
from Layer import *
28.209302
65
0.538335
63b1840d56f09a5d5a9c20bc118d0207eadb7b11
1,882
py
Python
spyder/plugins/statusbar/container.py
ximion/spyder
50911555cefd95947c887f8a412a58ad96ff8d9e
[ "MIT" ]
1
2021-03-13T04:36:43.000Z
2021-03-13T04:36:43.000Z
spyder/plugins/statusbar/container.py
ximion/spyder
50911555cefd95947c887f8a412a58ad96ff8d9e
[ "MIT" ]
null
null
null
spyder/plugins/statusbar/container.py
ximion/spyder
50911555cefd95947c887f8a412a58ad96ff8d9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Status bar container. """ # Third-party imports from qtpy.QtCore import Signal # Local imports from spyder.api.widgets import PluginMainContainer ...
30.354839
65
0.635494
63b3401ea17e27ce0e9f4bb65e298c006a065ac2
589
py
Python
yaga_ga/evolutionary_algorithm/selectors/ranking.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
yaga_ga/evolutionary_algorithm/selectors/ranking.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
yaga_ga/evolutionary_algorithm/selectors/ranking.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
from typing import Iterable, Sequence, Tuple, TypeVar, Generic from yaga_ga.evolutionary_algorithm.details import Comparable from yaga_ga.evolutionary_algorithm.individuals import IndividualType ScoreType = TypeVar("ScoreType", bound=Comparable)
32.722222
69
0.748727
63b34b23e85c1cc079fa60870ca4a94cacd21c1e
10
py
Python
venv/lib/python3.8/site-packages/spaceone/tester/conf/global_conf.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/tester/conf/global_conf.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/tester/conf/global_conf.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
LOG = { }
3.333333
7
0.3
63b46e49e3698a981c3b277c71021abeaf2bfdc6
957
py
Python
algorithms/show_permutations_fast.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/show_permutations_fast.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/show_permutations_fast.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
if __name__ == '__main__': show_permutations_anti_lexicographic_fast(length=3)
29
126
0.597701
63b82fdab1655334ee890b5f03a53544fb79bd9a
2,774
py
Python
blog/migrations/0001_squashed_0010_auto_20180604_2248.py
n2o/dpb
9e44ef91dc25782a12150e1001983aeee62bc566
[ "MIT" ]
3
2020-11-05T10:09:04.000Z
2021-03-13T11:27:05.000Z
blog/migrations/0001_squashed_0010_auto_20180604_2248.py
n2o/dpb
9e44ef91dc25782a12150e1001983aeee62bc566
[ "MIT" ]
31
2015-07-26T13:53:26.000Z
2020-09-28T06:08:03.000Z
blog/migrations/0001_squashed_0010_auto_20180604_2248.py
n2o/dpb
9e44ef91dc25782a12150e1001983aeee62bc566
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-25 19:40 import autoslug.fields import django.db.models.deletion from django.conf import settings from django.db import migrations, models
47.827586
119
0.583273
63b8f2381a48d0a34e089f59b031e0d0cf2ef305
5,548
py
Python
serene_schema/serene_schema/helpers/markdown.py
NICTA/serene-etl
1d446012c0d08a95b8fbbbe8237735320a2fe2a4
[ "Apache-2.0" ]
null
null
null
serene_schema/serene_schema/helpers/markdown.py
NICTA/serene-etl
1d446012c0d08a95b8fbbbe8237735320a2fe2a4
[ "Apache-2.0" ]
null
null
null
serene_schema/serene_schema/helpers/markdown.py
NICTA/serene-etl
1d446012c0d08a95b8fbbbe8237735320a2fe2a4
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__" and __package__ is None: #use the local version of schema import sys, os if os.getcwd().endswith('serene_schema'): sys.path.insert(0, os.getcwd()) elif os.getcwd().endswith('helpers'): sys.path.insert(0, os.path.join(os.getcwd(), '..', '..')) from serene_schem...
33.421687
151
0.556957
63b90808230e3a349c223887dc7145428b84feb5
640
py
Python
r2lldb/backend/trace.py
nowsecure/r2lldb
29cf97bf96f68d5a78060ea63504112b4a2fb3df
[ "MIT" ]
57
2016-07-06T18:04:19.000Z
2022-01-13T09:38:21.000Z
r2lldb/backend/trace.py
Maijin/r2lldb
5aaadba59d19a584b63735d37827ae1e5a152ade
[ "MIT" ]
4
2016-08-11T15:35:47.000Z
2019-01-25T15:39:35.000Z
r2lldb/backend/trace.py
Maijin/r2lldb
5aaadba59d19a584b63735d37827ae1e5a152ade
[ "MIT" ]
16
2016-07-14T04:07:07.000Z
2021-12-15T08:07:58.000Z
# TODO: implement tracing helpers here traces = {}
14.222222
46
0.5625
63b9f726456ae2875c8836c2389ad5af6fa15ef2
609
py
Python
test/model/test_driver.py
Petro31/zwave-js-server-python
ed766f054d2ef2f6a6fa01fa431484da12d05eca
[ "Apache-2.0" ]
null
null
null
test/model/test_driver.py
Petro31/zwave-js-server-python
ed766f054d2ef2f6a6fa01fa431484da12d05eca
[ "Apache-2.0" ]
null
null
null
test/model/test_driver.py
Petro31/zwave-js-server-python
ed766f054d2ef2f6a6fa01fa431484da12d05eca
[ "Apache-2.0" ]
null
null
null
"""Test the driver model.""" import json from zwave_js_server.event import Event from zwave_js_server.model import driver as driver_pkg from .. import load_fixture def test_from_state(): """Test from_state method.""" ws_msgs = load_fixture("basic_dump.txt").strip().split("\n") driver = driver_pkg.Drive...
26.478261
69
0.665025
63ba13266acfe77823f64100997d3843e282a41e
9,342
py
Python
features_extractions.py
AIKICo/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
1
2019-03-25T07:20:05.000Z
2019-03-25T07:20:05.000Z
features_extractions.py
MohMehrnia/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
1
2020-01-29T07:12:02.000Z
2020-01-29T07:12:02.000Z
features_extractions.py
MohMehrnia/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
null
null
null
import numpy as np import math as ma import os from pywt import wavedec from pyeeg import hfd, pfd from scipy.io import wavfile as wav from python_speech_features.sigproc import framesig from python_speech_features import mfcc, fbank, logfbank from python_speech_features.base import delta from pandas import DataFrame f...
45.130435
165
0.652644
63bc2d0d047391a080297053dfaf4fe899a6e18a
252
py
Python
src/chapter10/soft.py
ManuelA1000/BCS-2021
0bdf8a165b6e9e79c33257919a44b4be3cd49a57
[ "MIT" ]
null
null
null
src/chapter10/soft.py
ManuelA1000/BCS-2021
0bdf8a165b6e9e79c33257919a44b4be3cd49a57
[ "MIT" ]
null
null
null
src/chapter10/soft.py
ManuelA1000/BCS-2021
0bdf8a165b6e9e79c33257919a44b4be3cd49a57
[ "MIT" ]
null
null
null
txt = 'but soft what light in yonder window breaks' words = txt.split () t = list () for word in words: t.append ((len (word), word)) print(t) t.sort (reverse = True) print(t) res = list () for length, word in t: res.append (word) print (res)
18
51
0.638889
63bce539de4f9c34cc18cec63222346a4f46825b
3,923
py
Python
workspaces/voyage/server/src/core/rediscover.py
raychorn/svn_hp-projects
d5547906354e2759a93b8030632128e8c4bf3880
[ "CC0-1.0" ]
null
null
null
workspaces/voyage/server/src/core/rediscover.py
raychorn/svn_hp-projects
d5547906354e2759a93b8030632128e8c4bf3880
[ "CC0-1.0" ]
null
null
null
workspaces/voyage/server/src/core/rediscover.py
raychorn/svn_hp-projects
d5547906354e2759a93b8030632128e8c4bf3880
[ "CC0-1.0" ]
null
null
null
''' Created on Oct 18, 2011 @author: IslamM ''' from logging import getLogger log = getLogger(__name__) from util import catalog from util.config import config from portlets.collector import Collector, remove_collector from core.uim import UIManager from urlparse import urlparse from threading import Thr...
39.626263
158
0.567678
63bd3e2bbbdf441ba8d0ab08f9a5c6b52a9e7b44
13,798
py
Python
sem/__init__.py
YoannDupont/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
22
2016-11-13T21:08:58.000Z
2021-04-26T07:04:54.000Z
sem/__init__.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
15
2016-11-15T10:21:07.000Z
2021-11-08T10:08:05.000Z
sem/__init__.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
8
2016-11-15T10:21:41.000Z
2022-03-04T21:28:05.000Z
#-*- encoding: utf-8-*- """ file: __init__.py author: Yoann Dupont MIT License Copyright (c) 2018 Yoann Dupont Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wi...
46.302013
334
0.582983
63c122508ef3b38e3a6c1356ea1d1720457824fb
77
py
Python
Set/1.Create-Define-a-aset.py
manish1822510059/Python-1000-program
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
1
2021-03-06T03:33:42.000Z
2021-03-06T03:33:42.000Z
Set/1.Create-Define-a-aset.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
Set/1.Create-Define-a-aset.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
myset ={"C","C++","Python","Shap","Ruby","Java"} print("Set Content:",myset)
38.5
49
0.584416
63c2b7aa2638b5f2da8a026a57c38590a6974584
6,539
py
Python
d_parser/d_spider_29dui.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
d_parser/d_spider_29dui.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
2
2018-03-28T19:47:46.000Z
2021-12-13T20:56:31.000Z
d_parser/d_spider_29dui.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
import re from d_parser.d_spider_common import DSpiderCommon from d_parser.helpers.re_set import Ree from helpers.url_generator import UrlGenerator from d_parser.helpers.stat_counter import StatCounter as SC VERSION = 29 # Warn: Don't remove task argument even if not use it (it's break grab and spider crashed) # W...
36.327778
128
0.564765
63c65035704dd82d0e35220cf5d131d497f11b32
133
py
Python
output/models/sun_data/attr_decl/ad_name/ad_name00110m/ad_name00110m7_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00110m/ad_name00110m7_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00110m/ad_name00110m7_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.sun_data.attr_decl.ad_name.ad_name00110m.ad_name00110m7_xsd.ad_name00110m7 import Root __all__ = [ "Root", ]
22.166667
105
0.796992
63c6855c80193d1b3280b06dc0b0691722907cfc
1,444
py
Python
data/process.py
jbchouinard/untitled-word-game
dc4433318d9d811c3e9d47d51934fed608d96522
[ "MIT" ]
null
null
null
data/process.py
jbchouinard/untitled-word-game
dc4433318d9d811c3e9d47d51934fed608d96522
[ "MIT" ]
null
null
null
data/process.py
jbchouinard/untitled-word-game
dc4433318d9d811c3e9d47d51934fed608d96522
[ "MIT" ]
null
null
null
if __name__ == "__main__": make_word_list("scrabble.txt", "scrabble4.py", 4) make_word_list("scrabble.txt", "scrabble5.py", 5) make_word_list("scrabble.txt", "scrabble6.py", 6) make_word_list("scrabble.txt", "scrabble7.py", 7) make_word_list("scrabble.txt", "scrabble8.py", 8) make_word_list(...
32.818182
59
0.608033
63c68621abf624a4f16177142cfd89a3892f13a1
1,459
py
Python
megatron/fp16_deprecated/loss_scaler.py
adammoody/Megatron-DeepSpeed
972211163608818fe9e5ba821246f18d0a5dc264
[ "MIT" ]
2,869
2019-03-22T04:45:32.000Z
2022-03-31T14:47:42.000Z
megatron/fp16_deprecated/loss_scaler.py
adammoody/Megatron-DeepSpeed
972211163608818fe9e5ba821246f18d0a5dc264
[ "MIT" ]
161
2019-04-23T21:00:16.000Z
2022-03-27T15:33:17.000Z
megatron/fp16_deprecated/loss_scaler.py
adammoody/Megatron-DeepSpeed
972211163608818fe9e5ba821246f18d0a5dc264
[ "MIT" ]
567
2019-04-05T22:17:47.000Z
2022-03-31T04:45:25.000Z
# coding=utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. 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 # # ...
36.475
80
0.662097
63c724cd0c9b172541c1859415974b49037ba195
415
py
Python
ParsingProject/movie/migrations/0005_alter_movie_photo.py
rzhvn1/Parsing-APi
3e22c5a0fabbdc733ec2263e71eb885fb901a65e
[ "MIT" ]
null
null
null
ParsingProject/movie/migrations/0005_alter_movie_photo.py
rzhvn1/Parsing-APi
3e22c5a0fabbdc733ec2263e71eb885fb901a65e
[ "MIT" ]
null
null
null
ParsingProject/movie/migrations/0005_alter_movie_photo.py
rzhvn1/Parsing-APi
3e22c5a0fabbdc733ec2263e71eb885fb901a65e
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-09 14:46 from django.db import migrations, models
21.842105
73
0.609639
63c74a7746328169f8af4e57a44eb64b67d34e0f
3,485
py
Python
mosfit/modules/transforms/diffusion_csm.py
bxg682/MOSFiT
c65ab943bd0024b3d72c992c01a19f4f82956e98
[ "MIT" ]
25
2017-05-01T10:26:00.000Z
2021-12-29T09:36:06.000Z
mosfit/modules/transforms/diffusion_csm.py
bxg682/MOSFiT
c65ab943bd0024b3d72c992c01a19f4f82956e98
[ "MIT" ]
156
2016-09-19T21:06:42.000Z
2022-02-07T02:32:39.000Z
mosfit/modules/transforms/diffusion_csm.py
bxg682/MOSFiT
c65ab943bd0024b3d72c992c01a19f4f82956e98
[ "MIT" ]
48
2016-10-05T20:32:31.000Z
2022-02-16T16:57:56.000Z
"""Definitions for the `DiffusionCSM` class.""" from collections import OrderedDict import numpy as np from scipy.interpolate import interp1d from mosfit.constants import C_CGS, DAY_CGS, M_SUN_CGS, AU_CGS from mosfit.modules.transforms.transform import Transform # Important: Only define one ``Module`` class per fil...
38.722222
79
0.573314
63c7c198233f90418ed5f82dcfeaec9570780535
5,905
py
Python
preprocess.py
floydhub/textutil-preprocess-text
9cf4e29004970a45ed2f35c63b8cb3d66ac063a9
[ "MIT" ]
null
null
null
preprocess.py
floydhub/textutil-preprocess-text
9cf4e29004970a45ed2f35c63b8cb3d66ac063a9
[ "MIT" ]
null
null
null
preprocess.py
floydhub/textutil-preprocess-text
9cf4e29004970a45ed2f35c63b8cb3d66ac063a9
[ "MIT" ]
null
null
null
""" Preprocess text """ from __future__ import absolute_import, division, print_function, unicode_literals import argparse import codecs import csv import textacy def str2bool(val): """ Helper method to convert string to bool """ if val is None: return False val = val.lower().strip() if...
43.419118
113
0.594073
63c8dabc395502393e558d6b73692e6820ae740d
5,013
py
Python
main.py
faluciano/travel-tinder
634a1e16288c02e8ef399e77728eef5725098203
[ "CC-BY-3.0" ]
null
null
null
main.py
faluciano/travel-tinder
634a1e16288c02e8ef399e77728eef5725098203
[ "CC-BY-3.0" ]
null
null
null
main.py
faluciano/travel-tinder
634a1e16288c02e8ef399e77728eef5725098203
[ "CC-BY-3.0" ]
null
null
null
from flask import Flask, render_template, request, url_for, redirect,session from datetime import timedelta from flask_sqlalchemy import SQLAlchemy import os import googlemaps import json app = Flask(__name__) seckey = os.urandom(12) app.secret_key=seckey key = os.environ["googleapikey"] app.permanent_session_lifeti...
35.553191
235
0.603631
63c915d5906220490ace40f167a3f374fce27916
1,411
py
Python
src/exabgp/bgp/message/update/attribute/bgpls/node/lterid.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
1,560
2015-01-01T08:53:05.000Z
2022-03-29T20:22:43.000Z
src/exabgp/bgp/message/update/attribute/bgpls/node/lterid.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
818
2015-01-01T17:38:40.000Z
2022-03-30T07:29:24.000Z
src/exabgp/bgp/message/update/attribute/bgpls/node/lterid.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
439
2015-01-06T21:20:41.000Z
2022-03-19T23:24:25.000Z
# encoding: utf-8 """ nodename.py Created by Evelio Vila on 2016-12-01. Copyright (c) 2014-2017 Exa Networks. All rights reserved. """ from exabgp.protocol.ip import IP from exabgp.bgp.message.notification import Notify from exabgp.bgp.message.update.attribute.bgpls.linkstate import LinkState # | 1028 | I...
29.395833
83
0.537916
63c98447c20ad02d24ae44cfb39b2b5fe1101422
641
py
Python
tests/test_performance.py
ramonhagenaars/nptying
99927e1007b5d5d14fbd57559ec3ad2f7c352478
[ "MIT" ]
null
null
null
tests/test_performance.py
ramonhagenaars/nptying
99927e1007b5d5d14fbd57559ec3ad2f7c352478
[ "MIT" ]
null
null
null
tests/test_performance.py
ramonhagenaars/nptying
99927e1007b5d5d14fbd57559ec3ad2f7c352478
[ "MIT" ]
null
null
null
from timeit import Timer from unittest import TestCase import numpy as np from nptyping import ( Float, NDArray, Shape, )
23.740741
72
0.669267
63c9dc1c7d3d8ba098eeeb8725c6567c3b999e8b
5,185
py
Python
aws_log_parser/models.py
dpetzold/aws-log-parser
a36ea99696f332d25879a7faa24f6d922ad11370
[ "Apache-2.0" ]
17
2020-05-04T00:35:14.000Z
2022-03-17T06:05:26.000Z
aws_log_parser/models.py
dpetzold/aws-log-parser
a36ea99696f332d25879a7faa24f6d922ad11370
[ "Apache-2.0" ]
14
2019-10-24T03:08:17.000Z
2021-12-07T19:13:41.000Z
aws_log_parser/models.py
dpetzold/aws-log-parser
a36ea99696f332d25879a7faa24f6d922ad11370
[ "Apache-2.0" ]
8
2020-05-04T12:23:16.000Z
2022-03-19T13:30:13.000Z
import datetime import typing from enum import ( Enum, auto, ) from dataclasses import dataclass from http import cookies class LoadBalancerErrorReason(Enum): AuthInvalidCookie = auto() AuthInvalidGrantError = auto() AuthInvalidIdToken = auto() AuthInvalidStateParam = auto() AuthInval...
24.457547
58
0.707811
63ca287602c1af9c49104b0c48b37549ad2032ff
3,596
py
Python
__init__.py
rhammond17/Blender2MSFS2
51ed5e6624e6e072ee03bb7123013ccce4159fbd
[ "Apache-2.0" ]
25
2021-07-01T04:48:08.000Z
2022-03-15T00:20:55.000Z
__init__.py
rhammond17/Blender2MSFS2
51ed5e6624e6e072ee03bb7123013ccce4159fbd
[ "Apache-2.0" ]
9
2021-10-14T12:58:11.000Z
2022-03-22T05:10:05.000Z
__init__.py
rhammond17/Blender2MSFS2
51ed5e6624e6e072ee03bb7123013ccce4159fbd
[ "Apache-2.0" ]
4
2021-12-18T22:26:00.000Z
2022-03-16T14:00:27.000Z
################################################################################################### # # Copyright 2020 Otmar Nitsche # # 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 # # htt...
32.690909
203
0.626808
63ca797f894cb6d4d5eb308094d39bb41a5d11cc
6,250
py
Python
bin/calendar_builder/process/read_calc_request_queue.py
rsterbin/liturgicalendar
9ac1d779cf9bedaaeeb00eea83deff98445d0af2
[ "MIT" ]
2
2016-09-17T09:03:41.000Z
2018-02-24T03:09:38.000Z
bin/calendar_builder/process/read_calc_request_queue.py
rsterbin/liturgicalendar
9ac1d779cf9bedaaeeb00eea83deff98445d0af2
[ "MIT" ]
null
null
null
bin/calendar_builder/process/read_calc_request_queue.py
rsterbin/liturgicalendar
9ac1d779cf9bedaaeeb00eea83deff98445d0af2
[ "MIT" ]
null
null
null
import argparse import boto3 import datetime import dateutil import json import logging import signal from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.engine.url import URL import sys import time from ..fetch.calculated import Calculated from ..fetch.overrides import Overrid...
32.552083
123
0.61792
63ca9a094cf1438ed29a52f8444164667fcea641
1,330
py
Python
apps/Messaging/build/process_style_output.py
Keneral/apackages
af6a7ffde2e52d8d4e073b4030244551246248ad
[ "Unlicense" ]
null
null
null
apps/Messaging/build/process_style_output.py
Keneral/apackages
af6a7ffde2e52d8d4e073b4030244551246248ad
[ "Unlicense" ]
null
null
null
apps/Messaging/build/process_style_output.py
Keneral/apackages
af6a7ffde2e52d8d4e073b4030244551246248ad
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # Copyright (C) 2015 The Android Open Source Project # # 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 req...
34.102564
112
0.696992
63cb2c56d23fea40ba77a5d5c270072879d21082
2,609
py
Python
aiotruenas_client/websockets/interfaces.py
colemamd/aiotruenas-client
26f754fcceadbacbfc87a19465d5a8d035e4bd00
[ "MIT" ]
11
2020-12-30T00:33:01.000Z
2022-01-25T07:56:55.000Z
aiotruenas_client/websockets/interfaces.py
colemamd/aiotruenas-client
26f754fcceadbacbfc87a19465d5a8d035e4bd00
[ "MIT" ]
35
2020-09-29T07:45:49.000Z
2022-03-29T15:02:52.000Z
aiotruenas_client/websockets/interfaces.py
colemamd/aiotruenas-client
26f754fcceadbacbfc87a19465d5a8d035e4bd00
[ "MIT" ]
3
2020-12-30T18:19:03.000Z
2021-09-18T17:32:22.000Z
from __future__ import annotations import asyncio from abc import ABC, abstractmethod from typing import Any, List, Optional from ..job import Job, TJobId from ..machine import Machine
28.358696
92
0.637026
63cde583e31d98eb0acd90cf10aba92b87ffc53d
6,409
py
Python
greparl/SearchEngine/backend/similarity/similarity_manager.py
GeorgeVasiliadis/GreParl
10c085c9892ff156aeb13401063c9e0e20d0baff
[ "MIT" ]
null
null
null
greparl/SearchEngine/backend/similarity/similarity_manager.py
GeorgeVasiliadis/GreParl
10c085c9892ff156aeb13401063c9e0e20d0baff
[ "MIT" ]
null
null
null
greparl/SearchEngine/backend/similarity/similarity_manager.py
GeorgeVasiliadis/GreParl
10c085c9892ff156aeb13401063c9e0e20d0baff
[ "MIT" ]
null
null
null
import pickle import typing from dataclasses import dataclass import numpy as np class SimilarityManager: def __init__(self, matrix_file_name="similarity/matrix.pkl", names_file_name="similarity/names.csv"): self.similarity_matrix = pickle.load(open(matrix_file_name, "rb")) # Dictionary matchi...
46.442029
118
0.688407
63cea53033390cd1b8049400439d92676e1209c5
607
py
Python
substrabac/libs/versioning.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/libs/versioning.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/libs/versioning.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
from rest_framework import exceptions from rest_framework.utils.mediatypes import _MediaType from rest_framework.versioning import AcceptHeaderVersioning
37.9375
102
0.7743
63d0bbce5f3e728a7a5ac833c26d4513a4af7fbd
503
py
Python
travelling/migrations/0050_trip_maps_location.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0050_trip_maps_location.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0050_trip_maps_location.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-29 08:52 from django.db import migrations import django_google_maps.fields
25.15
136
0.662028
63d2d0462174b9a239ed087ce1d36b74f3a8a55d
1,445
py
Python
processor/lib/logging.py
Torbay-Tech/sbkup
5da307db5dc5b47c3ba11b1c4e53113cbc34bfca
[ "0BSD" ]
null
null
null
processor/lib/logging.py
Torbay-Tech/sbkup
5da307db5dc5b47c3ba11b1c4e53113cbc34bfca
[ "0BSD" ]
null
null
null
processor/lib/logging.py
Torbay-Tech/sbkup
5da307db5dc5b47c3ba11b1c4e53113cbc34bfca
[ "0BSD" ]
null
null
null
import logging import os import sys from lib.readCfg import ConfigReader ''' Simple Logger utility add this line to py file log = logging.getLogger(__file__) and use the log object by calling log.error("My error message") log.info("My info message") '''
36.125
89
0.636678
63d2fa5f2f28f8b7f760b3c3cb14ecd0069dc120
15,789
py
Python
Ball-in-Maze/Tut-Ball-in-Maze.py
francholi/PandaExamples
729674387cc482f25296f08bbb5fb571e59fc4ea
[ "MIT" ]
null
null
null
Ball-in-Maze/Tut-Ball-in-Maze.py
francholi/PandaExamples
729674387cc482f25296f08bbb5fb571e59fc4ea
[ "MIT" ]
null
null
null
Ball-in-Maze/Tut-Ball-in-Maze.py
francholi/PandaExamples
729674387cc482f25296f08bbb5fb571e59fc4ea
[ "MIT" ]
null
null
null
# Author: Shao Zhang, Phil Saltzman # Last Updated: 5/2/2005 # # This tutorial shows how to detect and respond to collisions. It uses solids # create in code and the egg files, how to set up collision masks, a traverser, # and a handler, how to detect collisions, and how to dispatch function based # on the collisions....
49.495298
80
0.699981
63d4c063bbe7c148a20e0a5fe25d62de6c6aae65
626
py
Python
source/code/preprocessing/wordtovectransformer.py
IooHooI/NEURAL_NETWORKS
1fff41658f01ebd61dc26745ad377d86f4716d30
[ "Unlicense" ]
null
null
null
source/code/preprocessing/wordtovectransformer.py
IooHooI/NEURAL_NETWORKS
1fff41658f01ebd61dc26745ad377d86f4716d30
[ "Unlicense" ]
null
null
null
source/code/preprocessing/wordtovectransformer.py
IooHooI/NEURAL_NETWORKS
1fff41658f01ebd61dc26745ad377d86f4716d30
[ "Unlicense" ]
null
null
null
import gensim import numpy as np from sklearn.base import BaseEstimator, TransformerMixin
31.3
120
0.65655
63d4f1afadb072b78a9829303ff58b7feeb731b4
1,766
py
Python
simplectf/__main__.py
alberttxu/simplectf
719ceccd9c1e5b0b868f2e9a7e342d3fe2a7c664
[ "MIT" ]
1
2020-10-29T04:43:24.000Z
2020-10-29T04:43:24.000Z
simplectf/__main__.py
alberttxu/simplectf
719ceccd9c1e5b0b868f2e9a7e342d3fe2a7c664
[ "MIT" ]
null
null
null
simplectf/__main__.py
alberttxu/simplectf
719ceccd9c1e5b0b868f2e9a7e342d3fe2a7c664
[ "MIT" ]
null
null
null
import argparse import time from . import CTFModel, find_ctf if __name__ == "__main__": main()
32.703704
85
0.669309
63d5fb092f0cc24e2c27f0886b0cd5ba71e075d6
4,033
py
Python
tests/test_hvac.py
joro75/mytoyota
405f7d84b3737846124aac6e7692aa6da52838a1
[ "MIT" ]
null
null
null
tests/test_hvac.py
joro75/mytoyota
405f7d84b3737846124aac6e7692aa6da52838a1
[ "MIT" ]
1
2022-02-12T16:46:48.000Z
2022-02-12T16:46:48.000Z
tests/test_hvac.py
joro75/mytoyota
405f7d84b3737846124aac6e7692aa6da52838a1
[ "MIT" ]
null
null
null
"""pytest tests for mytoyota.models.hvac.Hvac""" from mytoyota.models.hvac import Hvac # pylint: disable=no-self-use def test_hvac_legacy(self): """Test legacy Hvac""" hvac = self._create_example_legacy_data() assert hvac.legacy is True assert hvac.current_temperature == 22 ...
31.023077
60
0.521944
63d63032b91f57211f0ecc481533bc76092d870f
414
py
Python
TWO D ARRAY MANIPULATION.py
Vedakeerthi/Python-programs
91f3f21211bfaba576d1ce5981166e356fc36b38
[ "MIT" ]
null
null
null
TWO D ARRAY MANIPULATION.py
Vedakeerthi/Python-programs
91f3f21211bfaba576d1ce5981166e356fc36b38
[ "MIT" ]
null
null
null
TWO D ARRAY MANIPULATION.py
Vedakeerthi/Python-programs
91f3f21211bfaba576d1ce5981166e356fc36b38
[ "MIT" ]
null
null
null
import numpy as np # EXTRACTING SOME COLUMNS OR ROWS OF THE 2D ARRAY arr1 = np.arange(36).reshape(6,6) print("THE 2D ARRAY : ",arr1) ex = np.array(arr1) print("EXTRACTION OF THE 4 ROW AND 5 ROW : ", ex[3:5]) # FINDING THE SUM OF THE COLUMNS arr2 = np.array([[1,3,5,6],[3,6,7,3],[2,3,6,6],[4,5,8,5]]) prin...
29.571429
66
0.628019
63d731aa59cc13a2b71fa76d81924363872807c5
1,125
py
Python
tests/102_projectstarter/002_validate.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
13
2016-05-19T15:18:41.000Z
2022-03-22T15:37:32.000Z
tests/102_projectstarter/002_validate.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
38
2016-04-07T00:30:58.000Z
2022-02-28T13:29:33.000Z
tests/102_projectstarter/002_validate.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
3
2016-05-20T09:21:57.000Z
2020-10-12T10:56:49.000Z
# -*- coding: utf-8 -*- import pytest from boussole.exceptions import SettingsInvalidError
17.578125
53
0.458667
891ecd9b4c5792da34f463d0d4884a7fedddb4b9
883
py
Python
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/importHelper.py
chsamala2/PowerShell-DSC-for-Linux
5cac971f1877dd545c71be50b0ffd29199ac1acc
[ "MIT" ]
110
2019-05-06T21:17:02.000Z
2022-03-27T12:57:57.000Z
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/importHelper.py
chsamala2/PowerShell-DSC-for-Linux
5cac971f1877dd545c71be50b0ffd29199ac1acc
[ "MIT" ]
82
2019-05-09T00:41:23.000Z
2022-03-22T07:35:26.000Z
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/importHelper.py
chsamala2/PowerShell-DSC-for-Linux
5cac971f1877dd545c71be50b0ffd29199ac1acc
[ "MIT" ]
65
2019-05-21T21:37:26.000Z
2022-03-19T01:25:38.000Z
#!/usr/bin/env python # ==================================== # Copyright (c) Microsoft Corporation. All rights reserved. # ==================================== PY_MAJOR_VERSION = 0 PY_MINOR_VERSION = 2 CONFIGPARSER_KEY = "configparser" QUEUE_KEY = "queue" import sys def install_aliases(): """ Imports the rel...
26.757576
109
0.640997
89211948f7b76ec3184dd80009cdf870aed75612
1,917
py
Python
docs/examples/immutable-field.py
rolepoint/flump
37603387afa7a4af64fe93c03dfd4f389833178b
[ "MIT" ]
17
2016-03-04T00:54:12.000Z
2019-07-17T08:42:34.000Z
docs/examples/immutable-field.py
rolepoint/flump
37603387afa7a4af64fe93c03dfd4f389833178b
[ "MIT" ]
35
2016-03-04T18:02:59.000Z
2017-12-06T15:14:34.000Z
docs/examples/immutable-field.py
rolepoint/flump
37603387afa7a4af64fe93c03dfd4f389833178b
[ "MIT" ]
2
2016-11-30T16:12:29.000Z
2018-09-30T12:39:32.000Z
from collections import namedtuple import uuid from flask import Flask from flump import FlumpBlueprint, FlumpView, OrmIntegration, Fetcher from flump.validators import Immutable from marshmallow import fields, Schema # Our non-persistent "database" INSTANCES = [] # The "model" we will be storing in our "database" U...
24.576923
76
0.679708
8921919e62754476a6b499fb99cccaec5396399a
416
py
Python
01_introductory_problems/10_trailing_zeroes.py
hariharanragothaman/CSES
fa3478a71fbf66f695673e2a644d84084f6a3b90
[ "MIT" ]
1
2021-06-17T17:14:13.000Z
2021-06-17T17:14:13.000Z
01_introductory_problems/10_trailing_zeroes.py
hariharanragothaman/CSES
fa3478a71fbf66f695673e2a644d84084f6a3b90
[ "MIT" ]
null
null
null
01_introductory_problems/10_trailing_zeroes.py
hariharanragothaman/CSES
fa3478a71fbf66f695673e2a644d84084f6a3b90
[ "MIT" ]
null
null
null
""" Calculate the number of trailing zeroes in a factorial """ """ Solution approaches: > Consider prime factors of n! - 2's and 5's contribute to zeroes. if we count the number of 2's and 5's we can count zeroes. - If we can count the number of 5's we should be done - since number of 2's will always be more ni fac...
18.086957
108
0.663462
8922370796ea430aa932d199eb3e29be90edb535
6,410
py
Python
study/python/pyqt/demo/signup.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
10
2016-09-28T03:22:41.000Z
2020-06-16T08:42:25.000Z
study/python/pyqt/demo/signup.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
12
2017-04-18T08:41:04.000Z
2020-06-10T02:54:58.000Z
study/python/pyqt/demo/signup.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
8
2016-09-28T03:03:32.000Z
2019-09-16T04:22:01.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow.ui' # # Created by: PyQt5 UI code...
43.605442
615
0.680811
89246eeb031a4daaf956547c2a82f3969d7ebdc9
1,267
py
Python
globality_black/jupyter_formatter.py
globality-corp/globality-black
24817b8d8f25300d166e13c38cf96c01dbc0e75e
[ "MIT" ]
2
2020-12-11T19:59:48.000Z
2022-01-17T15:01:11.000Z
globality_black/jupyter_formatter.py
globality-corp/globality-black
24817b8d8f25300d166e13c38cf96c01dbc0e75e
[ "MIT" ]
4
2021-02-10T10:10:40.000Z
2021-12-09T17:57:43.000Z
globality_black/jupyter_formatter.py
globality-corp/globality-black
24817b8d8f25300d166e13c38cf96c01dbc0e75e
[ "MIT" ]
null
null
null
"""Helper class to use with `jupyterlab_code_formatter` Jupyter extension. See README for details""" import logging import black from jupyterlab_code_formatter.formatters import BaseFormatter, handle_line_ending_and_magic from globality_black.reformat_text import reformat_text
35.194444
100
0.719811
89248949c4bf2e73af24eb041ea87a139342c58e
2,530
py
Python
tests/unit/test_role_repository.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
tests/unit/test_role_repository.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
21
2019-01-26T20:39:34.000Z
2019-06-20T10:09:57.000Z
tests/unit/test_role_repository.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
from app.role.models.role import Role from app.role.repositories.role_repository import RoleRepository def test_update(session): """ Test the role repository update function. """ # Arrange test_model = RoleRepository.create(Role(name='Super User')) test_model_id = test_model.id update_fiel...
25.049505
77
0.687747
8925352e9bd235c372978fa797a57bca0150adfc
7,661
py
Python
python/craftassist/ttad-annotate/process_results.py
satyamedh/craftassist
d97cbc14bc25149d3ef41737231ab9f3cb7e392a
[ "MIT" ]
626
2019-07-18T18:40:44.000Z
2022-03-29T17:34:43.000Z
python/craftassist/ttad-annotate/process_results.py
satyamedh/craftassist
d97cbc14bc25149d3ef41737231ab9f3cb7e392a
[ "MIT" ]
42
2019-07-27T11:04:15.000Z
2021-02-23T03:15:14.000Z
python/craftassist/ttad-annotate/process_results.py
satyamedh/craftassist
d97cbc14bc25149d3ef41737231ab9f3cb7e392a
[ "MIT" ]
89
2019-07-19T15:07:39.000Z
2022-02-15T18:44:24.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. """ import csv import argparse import json from collections import defaultdict, Counter import re from ttad_annotate import MAX_WORDS def fix_spans_due_to_empty_words(action_dict, words): """Return modified (action_dict, words)""" # remove trailing...
30.521912
94
0.531784
892751e84a7f6a1e839a96fb0ef3b05f1a088251
9,110
py
Python
lanzou/gui/others.py
akalasysx/lanzou-gui
4eea55828954ce372de1491288df44ad279994de
[ "MIT" ]
1
2020-12-29T20:58:39.000Z
2020-12-29T20:58:39.000Z
lanzou/gui/others.py
akalasysx/lanzou-gui
4eea55828954ce372de1491288df44ad279994de
[ "MIT" ]
null
null
null
lanzou/gui/others.py
akalasysx/lanzou-gui
4eea55828954ce372de1491288df44ad279994de
[ "MIT" ]
null
null
null
''' ''' import os from PyQt5.QtCore import Qt, pyqtSignal, QTimer, QSize from PyQt5.QtGui import QTextDocument, QAbstractTextDocumentLayout, QPalette, QFontMetrics, QIcon from PyQt5.QtWidgets import (QApplication, QAbstractItemView, QStyle, QListView, QLineEdit, QTableView, QPushButton, Q...
35.585938
112
0.641493
89279f2c5ae2941cabd43bcd029a5a17b5f9cae4
30,355
py
Python
fltk/synthpriv/attacks/nasr.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
fltk/synthpriv/attacks/nasr.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
fltk/synthpriv/attacks/nasr.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
""" Membership inference attack based on https://github.com/privacytrustlab/ml_privacy_meter/blob/master/ml_privacy_meter/attack/meminf.py """ import datetime from itertools import zip_longest import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np import torch import torch.nn.funct...
37.154223
134
0.602306
892a2f69832448fa92e158619e9bc1ae462b36c7
1,183
py
Python
examples/routes.py
StanislavMitrofanov/fastapi-admin
844d982c6c80dc7a313e2540cc043d6265646ba6
[ "Apache-2.0" ]
null
null
null
examples/routes.py
StanislavMitrofanov/fastapi-admin
844d982c6c80dc7a313e2540cc043d6265646ba6
[ "Apache-2.0" ]
null
null
null
examples/routes.py
StanislavMitrofanov/fastapi-admin
844d982c6c80dc7a313e2540cc043d6265646ba6
[ "Apache-2.0" ]
null
null
null
from fastapi import Depends, HTTPException from starlette.requests import Request from starlette.responses import RedirectResponse from starlette.status import HTTP_303_SEE_OTHER, HTTP_404_NOT_FOUND from examples.models import Config from fastapi_admin.app import app from fastapi_admin.depends import get_resources fro...
31.972973
95
0.723584
892b5e79e284470ebd59bd46fdb143b8b121f246
670
py
Python
solutions/p015.py
xianlinfeng/project_euler_python3
77eca44eb2b1d13bc70d6dc0258b737449d43a23
[ "MIT" ]
2
2019-12-10T17:10:02.000Z
2020-07-04T10:30:19.000Z
p015.py
pranayjoshi/projecteuler
238a7844654e214dff9c2f8b596af470b828113c
[ "Apache-2.0" ]
null
null
null
p015.py
pranayjoshi/projecteuler
238a7844654e214dff9c2f8b596af470b828113c
[ "Apache-2.0" ]
1
2020-01-13T17:44:40.000Z
2020-01-13T17:44:40.000Z
# # Solution to Project Euler problem 15 # Copyright (c) Project Nayuki. All rights reserved. # # https://www.nayuki.io/page/project-euler-solutions # https://github.com/nayuki/Project-Euler-solutions # import eulerlib # This is a classic combinatorics problem. To get from the top left corner to the bottom right ...
31.904762
117
0.758209
892ba219404b4a36c279e6259dff3417d0449bd6
435
py
Python
LeetCode_Python/graph_algorithms/breadthfirst_printer.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
LeetCode_Python/graph_algorithms/breadthfirst_printer.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
LeetCode_Python/graph_algorithms/breadthfirst_printer.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
# nlantau, 2022-01-01 from collections import deque g = { 'a' : ['b', 'c'], 'b' : ['d'], 'c' : ['e'], 'd' : ['f'], 'e' : [], 'f' : [] } if __name__ == "__main__": breadth_depth_print(g, 'a')
15.535714
39
0.498851
892c1c86b81f563a72783ae080f4de286ab23459
100
py
Python
gym_invaders/ai_invader/model/__init__.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
4
2020-05-15T11:17:09.000Z
2020-06-30T01:11:41.000Z
gym_invaders/ai_invader/model/__init__.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
10
2020-05-16T10:45:32.000Z
2020-07-27T07:17:02.000Z
gym_invaders/ai_invader/model/__init__.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
null
null
null
from .basemodel import BaseModel from .dqncnn import DQNCNN from .evolutionary import EvolutionaryAI
33.333333
40
0.86
892cb1bece9f2a7a57ecaff6febef2e19d2db6be
8,360
py
Python
util/call_differential_mods.py
ritututeja/HAMR
a299f402365c34ec3447f584fd9de5c498a6b315
[ "MIT" ]
2
2020-04-17T04:27:46.000Z
2020-06-22T15:46:07.000Z
util/call_differential_mods.py
ritututeja/HAMR
a299f402365c34ec3447f584fd9de5c498a6b315
[ "MIT" ]
2
2021-05-25T16:51:41.000Z
2021-07-13T01:35:08.000Z
util/call_differential_mods.py
ritututeja/HAMR
a299f402365c34ec3447f584fd9de5c498a6b315
[ "MIT" ]
1
2021-06-09T15:53:20.000Z
2021-06-09T15:53:20.000Z
#!/bin/python2.7 # # Copyright (c) 2013 University of Pennsylvania # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use...
43.769634
236
0.616866
892dc54a723d08d5259a8460a94c096a75910404
3,660
py
Python
ark_nlp/nn/biaffine_bert.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
1
2022-03-23T05:10:55.000Z
2022-03-23T05:10:55.000Z
ark_nlp/nn/biaffine_bert.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
null
null
null
ark_nlp/nn/biaffine_bert.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 DataArk Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
29.756098
74
0.646175
892e48833b5baafde56ca7f950f5d8a10d6829a8
278
py
Python
src/py/fi3201/intro/for-nested.py
butiran/butiran.github.io
bf99f55819a140190e5bda8f9675109ef607eb9d
[ "MIT" ]
null
null
null
src/py/fi3201/intro/for-nested.py
butiran/butiran.github.io
bf99f55819a140190e5bda8f9675109ef607eb9d
[ "MIT" ]
2
2020-08-08T13:57:20.000Z
2020-08-08T14:18:05.000Z
src/py/fi3201/intro/for-nested.py
butiran/butiran.github.io
bf99f55819a140190e5bda8f9675109ef607eb9d
[ "MIT" ]
1
2020-08-08T13:54:23.000Z
2020-08-08T13:54:23.000Z
# # for-nested.py # Use nested for to display numbers in Python 3.7 # # Sparisoma Viridi | https://github.com/dudung # # Execute: python3.7 for.py # # 20210122 # 0933 Create this example, test it, and it works. # for i in range(1, 5): for j in range(1, 4): print(i, j)
17.375
50
0.654676
8931c54e93c9c10297df6cda39f1b73fb07b65c6
1,463
py
Python
volttron/platform/lib/kwonlyargs.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
2
2019-10-03T17:00:34.000Z
2019-10-03T17:00:38.000Z
volttron/platform/lib/kwonlyargs.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
2
2018-08-29T13:45:17.000Z
2018-09-06T12:34:23.000Z
volttron/platform/lib/kwonlyargs.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
1
2019-10-21T12:56:38.000Z
2019-10-21T12:56:38.000Z
'''Support functions for implementing keyword-only arguments. This module is designed to make it easy to support keyword-only arguments in Python 2.7 while providing the same kind of exceptions one would see with Python 3.x. Basic usage: .. code-block:: python def foo(arg1, *args, **kwargs): # Use requi...
30.479167
79
0.659604
8931f5e36e69dfcbd54c87e3f84f28cc88a8724d
2,509
py
Python
pyomrx/tests/test_examples.py
ShaunHowell/py-omrx
dc76a2a286488de1ad1fe131ca552f556583b0b3
[ "X11" ]
null
null
null
pyomrx/tests/test_examples.py
ShaunHowell/py-omrx
dc76a2a286488de1ad1fe131ca552f556583b0b3
[ "X11" ]
5
2021-03-31T20:44:39.000Z
2022-02-16T10:54:11.000Z
pyomrx/tests/test_examples.py
ShaunHowell/py-omrx
dc76a2a286488de1ad1fe131ca552f556583b0b3
[ "X11" ]
null
null
null
import os import pytest from pathlib import Path from pyomrx.core.form_maker import FormMaker from pyomrx.core.omr_factory import OmrFactory import pandas as pd from pyomrx.utils.test_utils import * if __name__ == '__main__': pytest.main(['-s'])
39.825397
84
0.749701
89322cf303e8c5a843e0f5f0b11c5853b5ee35f7
13,871
py
Python
moldesign/geom/constraints.py
Autodesk/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
147
2016-07-15T18:53:55.000Z
2022-01-30T04:36:39.000Z
moldesign/geom/constraints.py
cherishyli/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
151
2016-07-15T21:35:11.000Z
2019-10-10T08:57:29.000Z
moldesign/geom/constraints.py
cherishyli/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
33
2016-08-02T00:04:51.000Z
2021-09-02T10:05:04.000Z
from __future__ import print_function, absolute_import, division from future.builtins import * from future import standard_library standard_library.install_aliases() # Copyright 2017 Autodesk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with ...
34.591022
103
0.635426
8934c9215b91bf26ad0e501197779b64c284834c
6,407
py
Python
loldib/getratings/models/NA/na_poppy/na_poppy_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_poppy/na_poppy_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_poppy/na_poppy_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings
15.364508
46
0.761667
8935615b837a49fef702e885fe7f7711b2999e69
5,910
py
Python
trainer/task.py
estherGomezCantarero/DLProductionKSchool
4e6c0fe366e533403163c9820bb1f49a5fe8546f
[ "Apache-2.0" ]
null
null
null
trainer/task.py
estherGomezCantarero/DLProductionKSchool
4e6c0fe366e533403163c9820bb1f49a5fe8546f
[ "Apache-2.0" ]
null
null
null
trainer/task.py
estherGomezCantarero/DLProductionKSchool
4e6c0fe366e533403163c9820bb1f49a5fe8546f
[ "Apache-2.0" ]
null
null
null
"""A simple main file to showcase the template.""" '''Modulo por defecto para poner linea de comandos es argparse''' import logging.config import argparse import os import time import sys import tensorflow as tf from tensorflow.keras import datasets from tensorflow.keras import models from tensorflow.keras import laye...
35.178571
124
0.692217
8936f5392f9c16187ea3e034a6f07baffa5228d7
6,188
py
Python
orm/sql.py
ChanthMiao/inSpyder
4916e944d675094fc812cfbd9a5d7c283a1fc64a
[ "MIT" ]
3
2019-06-16T13:07:52.000Z
2019-10-16T13:29:52.000Z
orm/sql.py
ChanthMiao/inSpyder
4916e944d675094fc812cfbd9a5d7c283a1fc64a
[ "MIT" ]
null
null
null
orm/sql.py
ChanthMiao/inSpyder
4916e944d675094fc812cfbd9a5d7c283a1fc64a
[ "MIT" ]
1
2020-03-15T18:48:17.000Z
2020-03-15T18:48:17.000Z
# encoding="utf-8" from sqlalchemy import Integer, String from sqlalchemy import Column, create_engine, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship Base = declarative_base()
34.377778
79
0.506949
8938bff55d9a25b0a08b3653bc1b868f9bcab4d6
716
py
Python
30_days_of_Code/15_linked_list.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/15_linked_list.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/15_linked_list.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 mylist= Solution() T=int(input()) head=None for i in range(T): data=int(input()) head=mylist.insert(head, data) mylist.display(head);
20.457143
40
0.519553
893b3513d5d0f6590aeea57f9fde89eef1fb1744
19,636
py
Python
Author_Template/TexScanner.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
1
2019-09-18T08:10:25.000Z
2019-09-18T08:10:25.000Z
Author_Template/TexScanner.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
10
2019-09-29T13:55:38.000Z
2021-12-27T16:23:49.000Z
Author_Template/TexScanner.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
3
2020-10-05T19:10:22.000Z
2021-12-25T09:51:07.000Z
#!/usr/bin/env python # T e x S c a n n e r . p y # # Defines a TexScanner class that can be used to extract LaTeX directives # from a .tex file. Call SetFile() to supply a reference to an already # open .tex file, then use successive calls to GetNextTexCommand() to get # all the tex directive...
45.24424
80
0.557242
893cd792efe2e1b8b3a79e8bc57f11210491e2f5
446
py
Python
perceus.py
Naman-Biswajit/Discord-Bot-Perceus
338826e085653e3cd4f972bfb156a7ca129c1f49
[ "MIT" ]
null
null
null
perceus.py
Naman-Biswajit/Discord-Bot-Perceus
338826e085653e3cd4f972bfb156a7ca129c1f49
[ "MIT" ]
null
null
null
perceus.py
Naman-Biswajit/Discord-Bot-Perceus
338826e085653e3cd4f972bfb156a7ca129c1f49
[ "MIT" ]
null
null
null
import os from discord.ext import commands perceus = commands.Bot(command_prefix = '$', description = 'A demo Discord Chat Bot built using Discord.py') perceus.remove_command('help') token = '' for cog in os.listdir('./cogs'): if cog.endswith('.py') and not cog.startswith('_'): perceus.load_extension(f'co...
27.875
108
0.650224
893db583f78ea487b4e94e5b59e694fb51ec16c7
1,231
py
Python
src/simulations/sim_relay.py
m-rubik/Grow-Space
f87673cf13498e4dc8266cf29a7b61c857e54894
[ "BSD-2-Clause", "BSD-3-Clause" ]
2
2020-01-06T19:26:03.000Z
2021-06-03T18:31:25.000Z
src/simulations/sim_relay.py
m-rubik/Grow-Space
f87673cf13498e4dc8266cf29a7b61c857e54894
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/simulations/sim_relay.py
m-rubik/Grow-Space
f87673cf13498e4dc8266cf29a7b61c857e54894
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
"""! This code is for the simulation of relays. """ import atexit
23.673077
72
0.575142
893e33d2fc8008166eb18fef3e6dac851364c38c
1,386
py
Python
tests/test_primer/SPARQLEndpoints.py
cmungall/PyShEx
43026c4b0393362e770b868794c5d9071e691d6f
[ "CC0-1.0" ]
25
2018-01-11T10:59:16.000Z
2021-07-02T03:44:02.000Z
tests/test_primer/SPARQLEndpoints.py
cmungall/PyShEx
43026c4b0393362e770b868794c5d9071e691d6f
[ "CC0-1.0" ]
66
2018-03-12T01:12:02.000Z
2022-03-18T07:56:31.000Z
tests/test_primer/SPARQLEndpoints.py
cmungall/PyShEx
43026c4b0393362e770b868794c5d9071e691d6f
[ "CC0-1.0" ]
12
2018-04-06T11:29:40.000Z
2021-12-17T22:48:07.000Z
from pyshex.shex_evaluator import ShExEvaluator from pyshex.user_agent import SlurpyGraphWithAgent from pyshex.utils.sparql_query import SPARQLQuery # SPARQL Endpoint endpoint = 'http://wifo5-04.informatik.uni-mannheim.de/drugbank/sparql' # SPARQL Query sparql = """ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-synta...
30.8
104
0.63925
893ef1393e385b20f7f7b4980d592e7f0b87d1b2
59
py
Python
mlflow/version.py
rstudio/mlflow-original
4eb703bc9af5f5bb6c63b8772ccde590624cf73d
[ "Apache-2.0" ]
2
2019-08-31T10:18:47.000Z
2022-02-13T13:34:14.000Z
mlflow/version.py
rstudio/mlflow-original
4eb703bc9af5f5bb6c63b8772ccde590624cf73d
[ "Apache-2.0" ]
5
2018-08-29T00:46:14.000Z
2018-08-31T07:17:58.000Z
mlflow/version.py
rstudio/mlflow-original
4eb703bc9af5f5bb6c63b8772ccde590624cf73d
[ "Apache-2.0" ]
2
2019-11-06T23:26:40.000Z
2020-12-18T08:59:20.000Z
# Copyright 2018 Databricks, Inc. VERSION = '0.5.2.dev0'
11.8
33
0.677966
89423055c6b1874719a9ee46af208da9b3e24736
16,641
py
Python
report.py
reniericorreia/MTVCodeSmellCheck
4f1deb7f117effcdffbf7cff49047d153319769d
[ "MIT" ]
null
null
null
report.py
reniericorreia/MTVCodeSmellCheck
4f1deb7f117effcdffbf7cff49047d153319769d
[ "MIT" ]
null
null
null
report.py
reniericorreia/MTVCodeSmellCheck
4f1deb7f117effcdffbf7cff49047d153319769d
[ "MIT" ]
3
2018-05-14T20:25:31.000Z
2020-07-23T01:27:36.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import csv import pandas as pd
69.627615
104
0.728802
8943e67f4389bee0dec96ce61196abd28cab6ae4
795
py
Python
setup.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
351
2018-06-08T14:36:35.000Z
2022-03-29T22:03:04.000Z
setup.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
315
2018-06-08T14:35:08.000Z
2022-03-31T15:45:27.000Z
setup.py
possibilities/CQ-editor
dc950180b365ae39840f6787c8f5a061492734ed
[ "Apache-2.0" ]
71
2018-06-19T02:00:24.000Z
2022-03-25T08:55:02.000Z
import codecs import os.path from setuptools import setup, find_packages setup(name='CQ-editor', version=get_version('cq_editor/_version.py'), packages=find_packages(), entry_points={ 'gui_scripts': [ 'cq-editor = cq_editor.__main__:main', 'CQ-editor = cq_editor...
28.392857
62
0.613836
894465f77a8695d4a865a00f4d256f8d49f18108
2,231
py
Python
entitas/entity_index.py
Aenyhm/entitas-python
016e88b65cb231a6130bf4e9b1192a31c36b89df
[ "MIT" ]
43
2017-02-13T08:06:35.000Z
2022-03-22T03:54:21.000Z
src/entitas/entity_index.py
UpUpLiu/python_entitas
91878683f00811fa3afd0e5ab707b5054d832fec
[ "MIT" ]
null
null
null
src/entitas/entity_index.py
UpUpLiu/python_entitas
91878683f00811fa3afd0e5ab707b5054d832fec
[ "MIT" ]
6
2017-12-05T14:12:21.000Z
2021-08-12T09:07:41.000Z
from abc import ABCMeta, abstractmethod from .exceptions import EntitasException
27.8875
79
0.649485
8947a64d2eb4e66159f5e366be84fcf1c2c358d7
1,358
py
Python
appengine/findit/handlers/test/process_flake_analysis_request_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/handlers/test/process_flake_analysis_request_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/handlers/test/process_flake_analysis_request_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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 mock import pickle import re from google.appengine.ext import testbed import webapp2 import webtest from testing_utils import testing from handlers...
33.95
79
0.734168
894a5779f5981fbc1930b87d14c0f1e033ccc8d3
35,418
py
Python
tests/test_interface_ats.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
4
2015-04-24T20:36:56.000Z
2021-05-03T20:21:54.000Z
tests/test_interface_ats.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
1
2019-07-14T07:07:21.000Z
2019-07-14T07:07:21.000Z
tests/test_interface_ats.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
3
2015-04-24T20:37:04.000Z
2017-03-02T15:14:46.000Z
# -*- coding: utf-8 -*- import pytest from pynetworking.Device import Device ats_supported_sw_version = '3.0.0.44' ats_supported_boot_version = '1.0.1.07' ats_basic_supported_model = 'AT-8000S' ats_supported_model = [ats_basic_supported_model + '/' + '24', ats_basic_supported_model + '/' + '48'] ats_model_port_number...
38.372698
138
0.448557
894be86795043b9676120c0bf240a9230a6cf62e
2,809
py
Python
generated_python_code/ball_collector/ballcollector/scripts/auxiliary_subsystem_camera.py
mfigat/public_rshpn_tool
3555cb8f1eb35ef12441b9aef63dae8f578c2aa7
[ "BSD-3-Clause" ]
null
null
null
generated_python_code/ball_collector/ballcollector/scripts/auxiliary_subsystem_camera.py
mfigat/public_rshpn_tool
3555cb8f1eb35ef12441b9aef63dae8f578c2aa7
[ "BSD-3-Clause" ]
null
null
null
generated_python_code/ball_collector/ballcollector/scripts/auxiliary_subsystem_camera.py
mfigat/public_rshpn_tool
3555cb8f1eb35ef12441b9aef63dae8f578c2aa7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2019, Robot Control and Pattern Recognition Group, Warsaw University of Technology All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions...
39.56338
98
0.721609
894c3833caea3640946da0558f06c859beb0aaf4
4,146
py
Python
MNIST&Fashion/adv/blackModel.py
LX-doctorAI/LR1
bd4377058c8806b3ff332ca2aaf5473c2b1e6efb
[ "MIT" ]
1
2022-01-03T09:12:47.000Z
2022-01-03T09:12:47.000Z
MNIST&Fashion/adv/blackModel.py
ZhangAIPI/LR_Experiment
46b7d7be9a739139eee4f3038e3a6ee3e5e5687d
[ "MIT" ]
null
null
null
MNIST&Fashion/adv/blackModel.py
ZhangAIPI/LR_Experiment
46b7d7be9a739139eee4f3038e3a6ee3e5e5687d
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable from torch.autograd import Function import torch.nn as nn import torch.nn.functional as F import numpy as np from abc import ABCMeta, abstractmethod from torchvision import datasets, transforms from torch.utils.data import DataLoader from tqdm import tqdm import os from ...
37.351351
114
0.655813
894d9b261427db31b6c579aab4844bc8a92709a8
1,012
py
Python
src/utils/formatters.py
silvexis/serverless-slack
f5d242c241a8656af515a0bd2f2f6681bd53f967
[ "BSD-3-Clause" ]
null
null
null
src/utils/formatters.py
silvexis/serverless-slack
f5d242c241a8656af515a0bd2f2f6681bd53f967
[ "BSD-3-Clause" ]
null
null
null
src/utils/formatters.py
silvexis/serverless-slack
f5d242c241a8656af515a0bd2f2f6681bd53f967
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016-present, CloudZero, Inc. All rights reserved. # Licensed under the BSD-style license. See LICENSE file in the project root for full license information. from datetime import datetime from decimal import Decimal from enum import Enum import simplejson as json def markdown...
24.682927
106
0.636364
894f3fc69273e878e3689fd473a5d926384286e8
325
py
Python
Algorithms/Sorting/Insertion_Sort_Part2.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
1
2017-12-02T14:23:44.000Z
2017-12-02T14:23:44.000Z
Algorithms/Sorting/Insertion_Sort_Part2.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
Algorithms/Sorting/Insertion_Sort_Part2.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
n = int(input()) ar = [int(ar_temp) for ar_temp in input().strip().split(' ')] for i in range(n): temp = ar[i] j = i while j > 0 and ar[j-1] > temp: ar[j] = ar[j-1] j -= 1 ar[j] = temp if i > 0: for k in ar: print (k, end=' ') print () ...
23.214286
62
0.396923