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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2258db01c670eb29b690517709324afbc74e8b71 | 8,582 | py | Python | Kernel/kernel.py | y11en/BranchMonitoringProject | 5d3ca533338da919a1757562f3810d49296ebf48 | [
"MIT"
] | 122 | 2017-03-08T00:45:03.000Z | 2022-03-01T03:05:21.000Z | Kernel/kernel.py | y11en/BranchMonitoringProject | 5d3ca533338da919a1757562f3810d49296ebf48 | [
"MIT"
] | 3 | 2017-03-08T01:16:54.000Z | 2017-03-22T22:59:26.000Z | Kernel/kernel.py | y11en/BranchMonitoringProject | 5d3ca533338da919a1757562f3810d49296ebf48 | [
"MIT"
] | 42 | 2017-03-08T21:28:48.000Z | 2022-02-20T15:24:46.000Z | # Kernel introspection module to enrich branch collected data
# This code is part of BranchMonitoring framework
# Written by: Marcus Botacin - 2017
# Federal University of Parana (UFPR)
from xml.etree.ElementTree import ElementTree # Parse XML
import subprocess # Run dump tools
i... | 34.465863 | 105 | 0.53519 |
2258e4decef3126cb93f24dd49680df54adc84dc | 243 | py | Python | config/environments/__init__.py | mihail-ivanov/flask-init | 47f634f70bb8bd02db8f0a0a3a1955b08a249254 | [
"MIT"
] | null | null | null | config/environments/__init__.py | mihail-ivanov/flask-init | 47f634f70bb8bd02db8f0a0a3a1955b08a249254 | [
"MIT"
] | null | null | null | config/environments/__init__.py | mihail-ivanov/flask-init | 47f634f70bb8bd02db8f0a0a3a1955b08a249254 | [
"MIT"
] | null | null | null |
from .development import DevelopmentConfig
from .testing import TestingConfig
from .production import ProductionConfig
app_config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
}
| 20.25 | 42 | 0.773663 |
225b7caf45db6cf9057062f56f08950fb1b441f2 | 5,026 | py | Python | dialogs.py | rdbende/Sun-Valley-messageboxes | d6f2b0849caf63c609fc22ecd3909491e2f3ffcf | [
"MIT"
] | 5 | 2021-12-29T11:58:37.000Z | 2022-03-06T15:13:08.000Z | dialogs.py | rdbende/Sun-Valley-messageboxes | d6f2b0849caf63c609fc22ecd3909491e2f3ffcf | [
"MIT"
] | 1 | 2022-02-05T10:30:08.000Z | 2022-02-05T16:04:06.000Z | dialogs.py | rdbende/Sun-Valley-messageboxes | d6f2b0849caf63c609fc22ecd3909491e2f3ffcf | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter import ttk
from functools import partial
if __name__ == "__main__":
window = tk.Tk()
window.tk.call("source", "sun-valley.tcl")
window.tk.call("set_theme", "dark")
window.geometry("600x600")
show_message("No WiFi connection", "Check your connection and t... | 27.615385 | 87 | 0.591922 |
225c724f4896f9bddbbf401bf1a3929af43df247 | 94 | py | Python | enthought/endo/docerror.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/endo/docerror.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/endo/docerror.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from etsdevtools.endo.docerror import *
| 23.5 | 39 | 0.840426 |
225d1d06e227d6a8a3242fe225e574042e91441e | 12,591 | py | Python | troposphere/kendra.py | marinpurgar/troposphere | ec35854000ddfd5e2eecd251d5ecaf31979bd2d1 | [
"BSD-2-Clause"
] | null | null | null | troposphere/kendra.py | marinpurgar/troposphere | ec35854000ddfd5e2eecd251d5ecaf31979bd2d1 | [
"BSD-2-Clause"
] | null | null | null | troposphere/kendra.py | marinpurgar/troposphere | ec35854000ddfd5e2eecd251d5ecaf31979bd2d1 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from . import AWSProperty
from . import Tags
from .validators import boolean
from .... | 30.194245 | 76 | 0.669685 |
225fee4b672c69f3b564170c5c438a29025400e1 | 3,046 | py | Python | cv2/wxPython-CV-widget/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 140 | 2017-02-21T22:49:04.000Z | 2022-03-22T17:51:58.000Z | cv2/wxPython-CV-widget/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 5 | 2017-12-02T19:55:00.000Z | 2021-09-22T23:18:39.000Z | cv2/wxPython-CV-widget/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 79 | 2017-01-25T10:53:33.000Z | 2022-03-11T16:13:57.000Z | import wx
import cv2
#----------------------------------------------------------------------
# Panel to display image from camera
#----------------------------------------------------------------------
#----------------------------------------------------------------------
# Main Window
#---------------------------... | 30.158416 | 114 | 0.520026 |
2260413d47cac288ecaeb49a5d64f3b2f805bd94 | 580 | py | Python | src/inputbox.py | creikey/nuked-dashboard | 250f8af29570bca69394fd1328343917fa067543 | [
"MIT"
] | 1 | 2019-01-17T14:20:32.000Z | 2019-01-17T14:20:32.000Z | src/inputbox.py | creikey/nuked-dashboard | 250f8af29570bca69394fd1328343917fa067543 | [
"MIT"
] | 3 | 2019-01-19T01:33:10.000Z | 2019-01-19T01:35:35.000Z | src/inputbox.py | creikey/doomsdash | 250f8af29570bca69394fd1328343917fa067543 | [
"MIT"
] | null | null | null | import pynk
from pynk.nkpygame import NkPygame
| 34.117647 | 90 | 0.575862 |
226058992d51da3d32320a685665a445a8020b91 | 1,454 | py | Python | 01_demo/MLP_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | 2 | 2020-04-24T10:20:18.000Z | 2021-02-25T03:53:07.000Z | 01_demo/MLP_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | null | null | null | 01_demo/MLP_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | null | null | null | '''
Relu
'''
import tensorflow as tf
import numpy as np
import sys
sys.path.append("..")
from softmax_test import train_che3
from tensorflow.keras.datasets.fashion_mnist import load_data
#
(x_train,y_train),(x_test,y_test)=load_data()
batch_size=256
x_train=tf.cast(x_train,tf.float32)
x_test=tf.cast(x_... | 29.08 | 104 | 0.751719 |
22613f6d8ef797b79ce3c0bf426040fa5c8d5f9b | 1,704 | py | Python | ticketnum/ticket_numbering.py | phizzl3/PrintShopScripts | 26cf12d189836907370fd8671ef0d8eba7cd3411 | [
"MIT"
] | 1 | 2021-01-19T20:36:35.000Z | 2021-01-19T20:36:35.000Z | ticketnum/ticket_numbering.py | phizzl3/counter-calculator | 26cf12d189836907370fd8671ef0d8eba7cd3411 | [
"MIT"
] | null | null | null | ticketnum/ticket_numbering.py | phizzl3/counter-calculator | 26cf12d189836907370fd8671ef0d8eba7cd3411 | [
"MIT"
] | null | null | null | """
A simple script for numbering nUp tickets for the print shop.
"""
def numbering_main() -> None:
"""
Gets numbering sequences for nUp ticket numbering.
Gets the total number of tickets requested along with now many will fit on a
sheet (n_up) as well as the starting ticket number and prints the tic... | 33.411765 | 111 | 0.662559 |
2261d6d71d2909cadfc80285de61e3b9d29b7970 | 2,539 | py | Python | emergent ferromagnetism near three-quarters filling in twisted bilayer graphene/scripts/myTerrain.py | aaronsharpe/publication_archives | aabf1a7899b81c43fc27bdd05094f5a84e509e90 | [
"MIT"
] | null | null | null | emergent ferromagnetism near three-quarters filling in twisted bilayer graphene/scripts/myTerrain.py | aaronsharpe/publication_archives | aabf1a7899b81c43fc27bdd05094f5a84e509e90 | [
"MIT"
] | null | null | null | emergent ferromagnetism near three-quarters filling in twisted bilayer graphene/scripts/myTerrain.py | aaronsharpe/publication_archives | aabf1a7899b81c43fc27bdd05094f5a84e509e90 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon May 15 21:32:17 2017
@author: Aaron Sharpe
"""
import numpy as np
import os
from matplotlib.colors import LinearSegmentedColormap
| 30.590361 | 86 | 0.54549 |
2262f6ba6d8c2278a63ea0e571aa7725d2647bf8 | 11,843 | py | Python | plugin/taskmage2/project/projects.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | 1 | 2017-11-28T14:12:03.000Z | 2017-11-28T14:12:03.000Z | plugin/taskmage2/project/projects.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | 16 | 2017-08-13T18:01:26.000Z | 2020-11-17T04:55:43.000Z | plugin/taskmage2/project/projects.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | null | null | null | import os
import shutil
import tempfile
from taskmage2.utils import filesystem, functional
from taskmage2.asttree import asttree, renderers
from taskmage2.parser import iostream, parsers
from taskmage2.project import taskfiles
def archive_completed(self, filepath=None):
""" Archives all completed task-br... | 31.248021 | 125 | 0.548679 |
2263a0daf4d65f69a2ef1044b98efa275d27150f | 1,611 | py | Python | discord/ext/vbu/cogs/utils/converters/filtered_user.py | 6days9weeks/Novus | a21157f15d7a07669cb75b3f023bd9eedf40e40e | [
"MIT"
] | 2 | 2022-01-22T16:05:42.000Z | 2022-01-22T16:06:07.000Z | discord/ext/vbu/cogs/utils/converters/filtered_user.py | 6days9weeks/Novus | a21157f15d7a07669cb75b3f023bd9eedf40e40e | [
"MIT"
] | null | null | null | discord/ext/vbu/cogs/utils/converters/filtered_user.py | 6days9weeks/Novus | a21157f15d7a07669cb75b3f023bd9eedf40e40e | [
"MIT"
] | null | null | null | from discord.ext import commands
| 38.357143 | 82 | 0.664184 |
226437962414de4509b79b7a803dd031ebb02932 | 361 | py | Python | py/2017/3B.py | pedrotari7/advent_of_code | 98d5bc8d903435624a019a5702f5421d7b4ef8c8 | [
"MIT"
] | null | null | null | py/2017/3B.py | pedrotari7/advent_of_code | 98d5bc8d903435624a019a5702f5421d7b4ef8c8 | [
"MIT"
] | null | null | null | py/2017/3B.py | pedrotari7/advent_of_code | 98d5bc8d903435624a019a5702f5421d7b4ef8c8 | [
"MIT"
] | null | null | null | a = 289326
coords = [(1, 0), (1, -1), (0, -1), (-1, -1), (-1, 0), (-1, 1), (0, 1), (1, 1)]
x,y = (0,0)
dx,dy = (1,0)
M = {(x,y):1}
while M[(x, y)] < a:
x, y = x+dx, y+dy
M[(x, y)] = sum([M[(x+ox, y+oy)] for ox,oy in coords if (x+ox,y+oy) in M])
if (x == y) or (x > 0 and x == 1-y) or (x < 0 and x == -y):
... | 24.066667 | 79 | 0.382271 |
226749a06c765ec39cc633d7c553b9c567992420 | 811 | py | Python | q.py | Akatsuki1910/tokuron | 2f5b05dc1c1395f30e738a0d5749ac32d46e5379 | [
"MIT"
] | null | null | null | q.py | Akatsuki1910/tokuron | 2f5b05dc1c1395f30e738a0d5749ac32d46e5379 | [
"MIT"
] | null | null | null | q.py | Akatsuki1910/tokuron | 2f5b05dc1c1395f30e738a0d5749ac32d46e5379 | [
"MIT"
] | null | null | null | """ Q learning """
import numpy as np
import plot
Q = np.array(np.zeros([11, 3]))
GAMMA = 0.9
ALPHA = 0.1
def action_select(s_s):
""" action select """
return np.random.choice([i for i in range(1, 4) if i + s_s < 11])
for i in range(10000):
S_STATE = 0
while S_STATE != 10:
a_state = acti... | 21.918919 | 69 | 0.557337 |
226990cee4efe4dbfe653dc0472db81ab56d2396 | 390 | py | Python | videogame_project/videogame_app/models.py | cs-fullstack-fall-2018/django-form-post1-R3coTh3Cod3r | 3e44b737425fe347757a50f30aa5df021057bfde | [
"Apache-2.0"
] | null | null | null | videogame_project/videogame_app/models.py | cs-fullstack-fall-2018/django-form-post1-R3coTh3Cod3r | 3e44b737425fe347757a50f30aa5df021057bfde | [
"Apache-2.0"
] | null | null | null | videogame_project/videogame_app/models.py | cs-fullstack-fall-2018/django-form-post1-R3coTh3Cod3r | 3e44b737425fe347757a50f30aa5df021057bfde | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.utils import timezone | 26 | 60 | 0.707692 |
226a5ca3cf4445179f1951c272dd77866530bcb2 | 4,296 | py | Python | tests/test_estimate_r.py | lo-hfk/epyestim | ca2ca928b744f324dade248c24a40872b69a5222 | [
"MIT"
] | 11 | 2021-01-10T22:37:26.000Z | 2022-03-14T10:46:21.000Z | tests/test_estimate_r.py | lo-hfk/epyestim | ca2ca928b744f324dade248c24a40872b69a5222 | [
"MIT"
] | null | null | null | tests/test_estimate_r.py | lo-hfk/epyestim | ca2ca928b744f324dade248c24a40872b69a5222 | [
"MIT"
] | 4 | 2021-03-26T23:43:03.000Z | 2021-11-21T15:16:05.000Z | import unittest
from datetime import date
import numpy as np
import pandas as pd
from numpy.testing import assert_array_almost_equal
from scipy.stats import gamma
from epyestim.estimate_r import overall_infectivity, sum_by_split_dates, estimate_r, gamma_quantiles
if __name__ == '__main__':
unittest.main()
| 34.926829 | 106 | 0.571927 |
226bbbb2f75ccc059e2118af7b3e40bfe68eb6e9 | 3,355 | py | Python | tests/imagenet_classification_test.py | SanggunLee/edgetpu | d3cf166783265f475c1ddba5883e150ee84f7bfe | [
"Apache-2.0"
] | 2 | 2020-05-07T22:34:16.000Z | 2020-09-03T20:30:37.000Z | tests/imagenet_classification_test.py | SanggunLee/edgetpu | d3cf166783265f475c1ddba5883e150ee84f7bfe | [
"Apache-2.0"
] | null | null | null | tests/imagenet_classification_test.py | SanggunLee/edgetpu | d3cf166783265f475c1ddba5883e150ee84f7bfe | [
"Apache-2.0"
] | 1 | 2020-01-08T05:55:58.000Z | 2020-01-08T05:55:58.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 37.696629 | 80 | 0.701937 |
226d9e6adcc58d1700424bf4cff15de32eb71005 | 1,781 | py | Python | 11_testing_best_practices/generate_maze_faster.py | krother/maze_run | 2860198a2af7d05609d043de1b582cc0070aac09 | [
"MIT"
] | 7 | 2017-05-02T12:23:03.000Z | 2020-04-07T07:01:52.000Z | 11_testing_best_practices/generate_maze_faster.py | fengshao007P/maze_run | 2860198a2af7d05609d043de1b582cc0070aac09 | [
"MIT"
] | null | null | null | 11_testing_best_practices/generate_maze_faster.py | fengshao007P/maze_run | 2860198a2af7d05609d043de1b582cc0070aac09 | [
"MIT"
] | 21 | 2016-02-26T10:26:16.000Z | 2021-12-04T23:38:00.000Z |
# Improved version of the code from chapter 03
# created in chapter 11 to accelerate execution
import random
XMAX, YMAX = 19, 16
def create_grid_string(dots, xsize, ysize):
"""
Creates a grid of size (xx, yy)
with the given positions of dots.
"""
grid = ""
for y in range(ysize):
f... | 25.811594 | 74 | 0.601909 |
226ee0a94d2c674c5419d2b1671a6c420a52ce80 | 98 | py | Python | flask-backend/create_database.py | amlannandy/OpenMF | da5f474bb3002084f3e5bc9ceb18b32efdf34107 | [
"Apache-2.0"
] | null | null | null | flask-backend/create_database.py | amlannandy/OpenMF | da5f474bb3002084f3e5bc9ceb18b32efdf34107 | [
"Apache-2.0"
] | null | null | null | flask-backend/create_database.py | amlannandy/OpenMF | da5f474bb3002084f3e5bc9ceb18b32efdf34107 | [
"Apache-2.0"
] | null | null | null | from api.models.models import User
from api import db, create_app
db.create_all(app=create_app()) | 24.5 | 34 | 0.806122 |
226f3f6717063fd8afff828ee410784d07c44bf7 | 1,820 | py | Python | src/UQpy/Distributions/baseclass/DistributionContinuous1D.py | marrov/UQpy | b04a267b3080e3d4d38e876547ba0d3b979734f3 | [
"MIT"
] | 132 | 2018-03-13T13:56:33.000Z | 2022-03-21T13:59:17.000Z | src/UQpy/Distributions/baseclass/DistributionContinuous1D.py | marrov/UQpy | b04a267b3080e3d4d38e876547ba0d3b979734f3 | [
"MIT"
] | 140 | 2018-05-21T13:40:01.000Z | 2022-03-29T14:18:01.000Z | src/UQpy/Distributions/baseclass/DistributionContinuous1D.py | marrov/UQpy | b04a267b3080e3d4d38e876547ba0d3b979734f3 | [
"MIT"
] | 61 | 2018-05-02T13:40:05.000Z | 2022-03-06T11:31:21.000Z | import numpy as np
import scipy.stats as stats
from UQpy.Distributions.baseclass.Distribution import Distribution
| 45.5 | 108 | 0.647253 |
226fb3b836b4a323bba46bf26d01dbf892dfb882 | 1,666 | py | Python | bridge/models/basic/layers.py | JTT94/schrodinger_bridge | 71841f2789c180a23d4b4641f160da5c0288a337 | [
"MIT"
] | null | null | null | bridge/models/basic/layers.py | JTT94/schrodinger_bridge | 71841f2789c180a23d4b4641f160da5c0288a337 | [
"MIT"
] | null | null | null | bridge/models/basic/layers.py | JTT94/schrodinger_bridge | 71841f2789c180a23d4b4641f160da5c0288a337 | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
import math
from functools import partial
| 34.708333 | 121 | 0.630852 |
2270789e36e09bf77f3225fa068413436f325de3 | 10,920 | py | Python | chessbot.py | UbiLabsChessbot/tensorflow_chessbot | 5112d9213d0224dc7acc373a7048167b7e6da6ce | [
"MIT"
] | null | null | null | chessbot.py | UbiLabsChessbot/tensorflow_chessbot | 5112d9213d0224dc7acc373a7048167b7e6da6ce | [
"MIT"
] | null | null | null | chessbot.py | UbiLabsChessbot/tensorflow_chessbot | 5112d9213d0224dc7acc373a7048167b7e6da6ce | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Finds submissions with chessboard images in them,
# use a tensorflow convolutional neural network to predict pieces and return
# a lichess analysis link and FEN diagram of chessboard
import praw
import collections
import os
import time
from datetime import datetime
from praw.... | 36.891892 | 154 | 0.677747 |
2271553668c1d9c135110d311fde305c56e23bd6 | 1,557 | py | Python | Tools/english_word/src/spider.py | pynickle/awesome-python-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 21 | 2019-06-02T01:55:14.000Z | 2022-01-08T22:35:31.000Z | Tools/english_word/src/spider.py | code-nick-python/awesome-daily-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 3 | 2019-06-02T01:55:17.000Z | 2019-06-14T12:32:06.000Z | Tools/english_word/src/spider.py | code-nick-python/awesome-daily-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 16 | 2019-06-23T13:00:04.000Z | 2021-09-18T06:09:58.000Z | import requests
import re
import time
import random
import pprint
import os
headers = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3858.0 Safari/537.36"}
if __name__ == "__main__":
main()
| 32.4375 | 173 | 0.552987 |
22727c318ff129b6243d715f6523dbfa7a528208 | 769 | py | Python | NFCow/malls/migrations/0001_initial.py | jojoriveraa/titulacion-NFCOW | 643f7f2cbe9c68d9343f38d12629720b12e9ce1e | [
"Apache-2.0"
] | null | null | null | NFCow/malls/migrations/0001_initial.py | jojoriveraa/titulacion-NFCOW | 643f7f2cbe9c68d9343f38d12629720b12e9ce1e | [
"Apache-2.0"
] | 11 | 2016-01-09T06:27:02.000Z | 2016-01-10T05:21:05.000Z | NFCow/malls/migrations/0001_initial.py | jojoriveraa/titulacion-NFCOW | 643f7f2cbe9c68d9343f38d12629720b12e9ce1e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-23 08:44
from __future__ import unicode_literals
from django.db import migrations, models
| 27.464286 | 87 | 0.572172 |
22749bf06e02c8354fb9677be5d2215d3d9afe0c | 16,406 | py | Python | mmdnn/conversion/examples/tensorflow/extractor.py | ferriswym/MMdnn | dc204cdba58a6cba079816715ac766d94bd87732 | [
"MIT"
] | null | null | null | mmdnn/conversion/examples/tensorflow/extractor.py | ferriswym/MMdnn | dc204cdba58a6cba079816715ac766d94bd87732 | [
"MIT"
] | null | null | null | mmdnn/conversion/examples/tensorflow/extractor.py | ferriswym/MMdnn | dc204cdba58a6cba079816715ac766d94bd87732 | [
"MIT"
] | null | null | null | #----------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#------------------------------------------------------------------... | 50.018293 | 146 | 0.581007 |
22752bc484df5df4799f2011d63b6f5871537908 | 2,546 | py | Python | nostrint/command_line.py | zevtyardt/no-strint | 47583d55e3c4cd12f00f46902d2fd7d5138c3275 | [
"MIT"
] | 13 | 2019-03-13T04:14:45.000Z | 2020-04-05T09:13:21.000Z | nostrint/command_line.py | zevtyardt/no-strint | 47583d55e3c4cd12f00f46902d2fd7d5138c3275 | [
"MIT"
] | null | null | null | nostrint/command_line.py | zevtyardt/no-strint | 47583d55e3c4cd12f00f46902d2fd7d5138c3275 | [
"MIT"
] | 6 | 2019-03-22T04:48:59.000Z | 2020-08-07T17:09:20.000Z | from redat import __version__
import argparse as _argparse
import sys as _sys
| 72.742857 | 193 | 0.710919 |
22754cccad56e7c435e32fdb50e3fc9c09afbc92 | 15,435 | py | Python | simple_lib.py | rcmorehead/simplanets | 3d9b3d1273a4f1a32ce656bdf5e9d6c6c38e3f7b | [
"MIT"
] | null | null | null | simple_lib.py | rcmorehead/simplanets | 3d9b3d1273a4f1a32ce656bdf5e9d6c6c38e3f7b | [
"MIT"
] | null | null | null | simple_lib.py | rcmorehead/simplanets | 3d9b3d1273a4f1a32ce656bdf5e9d6c6c38e3f7b | [
"MIT"
] | null | null | null | """
Useful classes and functions for SIMPLE.
"""
import numpy as np
import warnings
import math
from scipy import integrate
r_sun_au = 0.004649
r_earth_r_sun = 0.009155
day_hrs = 24.0
#@profile
def impact_parameter(a, e, i, w, r_star):
"""
Compute the impact parameter at for a transiting planet.
Paramet... | 27.464413 | 94 | 0.579981 |
2275883293755489ec49ada67afba2a65cceb970 | 179 | py | Python | y10m/join.lines.py | goodagood/story | 99dd959f4be44070144fe87313cf51595d928a11 | [
"Apache-2.0"
] | 3 | 2019-12-03T02:08:55.000Z | 2021-05-30T14:02:21.000Z | y10m/join.lines.py | goodagood/story | 99dd959f4be44070144fe87313cf51595d928a11 | [
"Apache-2.0"
] | null | null | null | y10m/join.lines.py | goodagood/story | 99dd959f4be44070144fe87313cf51595d928a11 | [
"Apache-2.0"
] | 1 | 2020-08-07T23:09:45.000Z | 2020-08-07T23:09:45.000Z |
#inputFile = 'sand.407'
inputFile = 'sand.407'
outputFile= 'sand.out'
with open(inputFile) as OF:
lines = OF.readlines()
print(lines[0:3])
| 11.1875 | 27 | 0.631285 |
227598bb20ab74c029eb76f22348999ce40f32c0 | 718 | py | Python | web_programming/fetch_github_info.py | JB1959/Python | b6ca263983933c3ecc06ed0083dd11b6faf870c8 | [
"MIT"
] | 14 | 2020-10-03T05:43:48.000Z | 2021-11-01T21:02:26.000Z | web_programming/fetch_github_info.py | JB1959/Python | b6ca263983933c3ecc06ed0083dd11b6faf870c8 | [
"MIT"
] | 3 | 2020-06-08T07:03:15.000Z | 2020-06-08T08:41:22.000Z | web_programming/fetch_github_info.py | JB1959/Python | b6ca263983933c3ecc06ed0083dd11b6faf870c8 | [
"MIT"
] | 12 | 2020-10-03T05:44:19.000Z | 2022-01-16T05:37:54.000Z | #!/usr/bin/env python3
"""
Created by sarathkaul on 14/11/19
Basic authentication using an API password is deprecated and will soon no longer work.
Visit https://developer.github.com/changes/2020-02-14-deprecating-password-auth
for more information around suggested workarounds and removal dates.
"""
import requests... | 26.592593 | 86 | 0.71727 |
2275d1ae20d552ba2f46265e141e463daa5307b3 | 1,362 | py | Python | ACM ICPC/Sorting/Merge Sort/Python/Merge_Sort.py | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | ACM ICPC/Sorting/Merge Sort/Python/Merge_Sort.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | ACM ICPC/Sorting/Merge Sort/Python/Merge_Sort.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z |
if __name__ == "__main__":
i = MergeSort([5, 4, 3, 2, 1])
i.sort()
print(i.show())
| 30.266667 | 68 | 0.509545 |
2277a209f052632755ba80cff0004cf66a4c0551 | 3,952 | py | Python | nightly.py | insolar/insolar-jepsen | f95e05fdf0b3d28756f60de9aef1b8c44ef0d030 | [
"Apache-2.0"
] | 6 | 2019-03-26T10:02:54.000Z | 2019-09-13T15:31:39.000Z | nightly.py | insolar/insolar-jepsen | f95e05fdf0b3d28756f60de9aef1b8c44ef0d030 | [
"Apache-2.0"
] | 17 | 2019-06-04T10:55:42.000Z | 2020-03-10T09:22:52.000Z | nightly.py | insolar/insolar-jepsen | f95e05fdf0b3d28756f60de9aef1b8c44ef0d030 | [
"Apache-2.0"
] | 3 | 2019-11-22T10:41:00.000Z | 2021-02-18T12:03:38.000Z | #!/usr/bin/env python3
# vim: set ai et ts=4 sw=4:
import os
import subprocess
import argparse
import time
import calendar
import re
parser = argparse.ArgumentParser(
description='Run nightly Insolar Jepsen-like tests')
parser.add_argument(
'-b', '--branch', metavar='B', type=str, default='master',
hel... | 34.365217 | 83 | 0.605263 |
2277e005db07cac1472613b25b5759c8831551c6 | 7,195 | py | Python | ecart/ecart.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | null | null | null | ecart/ecart.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | null | null | null | ecart/ecart.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | null | null | null | import redis
import copy
from functools import wraps
from .exception import ErrorMessage
from .decorators import raise_exception
from .serializer import Serializer
TTL = 604800
def __get_user_redis_key_prefix(self):
"""
Generate the prefix for the user's redis key.
"""
return... | 34.927184 | 120 | 0.624739 |
2278e9e4e492d486947a4dea8110d0c980581f65 | 1,172 | py | Python | app/tests/test_transaction.py | geometry-labs/icon-filter-registration | 5ac93268465a529be453a51447805a65f2e23415 | [
"Apache-2.0"
] | null | null | null | app/tests/test_transaction.py | geometry-labs/icon-filter-registration | 5ac93268465a529be453a51447805a65f2e23415 | [
"Apache-2.0"
] | 1 | 2021-03-02T22:41:58.000Z | 2021-03-11T16:44:26.000Z | app/tests/test_transaction.py | geometry-labs/icon-filter-registration | 5ac93268465a529be453a51447805a65f2e23415 | [
"Apache-2.0"
] | null | null | null | import pytest
from app.main import app
from app.models import TransactionRegistration
from app.settings import settings
from httpx import AsyncClient
from tests.conftest import RequestCache
registration = TransactionRegistration(
to_address="cx0000000000000000000000000000000000000001",
from_address="cx00000000... | 28.585366 | 69 | 0.729522 |
22793242be75fa797dece7e56ce733139032b7be | 33,565 | py | Python | oslo_messaging/tests/rpc/test_server.py | ox12345/oslo.messaging | bdb21c0bcddfb2dac1e0f4d926e7df53d975bf0c | [
"Apache-1.1"
] | null | null | null | oslo_messaging/tests/rpc/test_server.py | ox12345/oslo.messaging | bdb21c0bcddfb2dac1e0f4d926e7df53d975bf0c | [
"Apache-1.1"
] | null | null | null | oslo_messaging/tests/rpc/test_server.py | ox12345/oslo.messaging | bdb21c0bcddfb2dac1e0f4d926e7df53d975bf0c | [
"Apache-1.1"
] | null | null | null |
# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 36.404555 | 79 | 0.601847 |
227a7fa4744296865be9c842b020f4d289542d47 | 3,683 | py | Python | 3.03-pdDataOps.py | pgiardiniere/notes-PythonDataScienceHandbook | ddb6662d2fbeedd5b6b09ce4d8ddee55813ec589 | [
"MIT"
] | 2 | 2019-05-01T02:23:02.000Z | 2019-05-04T03:26:39.000Z | 3.03-pdDataOps.py | pgiardiniere/notes-PythonDataScienceHandbook | ddb6662d2fbeedd5b6b09ce4d8ddee55813ec589 | [
"MIT"
] | null | null | null | 3.03-pdDataOps.py | pgiardiniere/notes-PythonDataScienceHandbook | ddb6662d2fbeedd5b6b09ce4d8ddee55813ec589 | [
"MIT"
] | null | null | null | # Recall material on NP Universal Functions from Ch2
# PD builds on ufuncs functionality a few ways:
# first, for unary operations (negation / trig funcs), ufuncs preserve
# index and column labels in the output
# second, for binary operations (addition / multiplication) PD aligns
# indices when passing objects to th... | 32.59292 | 77 | 0.688298 |
227b1e1bc0c209d9e1b5a1176eb8edcc2f765f16 | 1,286 | py | Python | cogs/feelings.py | Surice/dc_sophie | fa42f457b7b9d68a156a4b6db41e3d849238384c | [
"MIT"
] | null | null | null | cogs/feelings.py | Surice/dc_sophie | fa42f457b7b9d68a156a4b6db41e3d849238384c | [
"MIT"
] | null | null | null | cogs/feelings.py | Surice/dc_sophie | fa42f457b7b9d68a156a4b6db41e3d849238384c | [
"MIT"
] | null | null | null | from itertools import chain
from components.config import getConfig
from components.convert import fetchUser, pretRes
import discord
from discord import channel
from discord.ext import commands
| 33.842105 | 105 | 0.681182 |
227bae7ab6f777a68303a1c49a615d5f64a02cfd | 2,400 | py | Python | Solutions/arrays/Median_of_Two_Sorted_Arrays.py | HuitingZhengAvery/Leetcode-solutions | ac21cef395717abab188e76895ad83cf212fd60f | [
"MIT"
] | 1 | 2019-06-21T16:28:59.000Z | 2019-06-21T16:28:59.000Z | Solutions/arrays/Median_of_Two_Sorted_Arrays.py | HuitingZhengAvery/Leetcode-solutions | ac21cef395717abab188e76895ad83cf212fd60f | [
"MIT"
] | null | null | null | Solutions/arrays/Median_of_Two_Sorted_Arrays.py | HuitingZhengAvery/Leetcode-solutions | ac21cef395717abab188e76895ad83cf212fd60f | [
"MIT"
] | null | null | null | '''
There are two sorted arrays nums1 and nums2 of size m and n respectively.
Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
You may assume nums1 and nums2 cannot be both empty.
'''
### Nature: the meaning of MEDIAN, is that, the number of elements less than it,
##... | 36.923077 | 97 | 0.542083 |
227c213f9c9f02d257d21830222edf425fe68721 | 781 | py | Python | carl/envs/mario/mario_game.py | automl/genRL | b7382fec9006d7da768ad7252194c6c5f1b2bbd7 | [
"Apache-2.0"
] | 27 | 2021-09-13T21:50:10.000Z | 2022-03-30T15:35:38.000Z | carl/envs/mario/mario_game.py | automl/genRL | b7382fec9006d7da768ad7252194c6c5f1b2bbd7 | [
"Apache-2.0"
] | 35 | 2021-09-15T07:20:29.000Z | 2022-03-02T15:14:31.000Z | carl/envs/mario/mario_game.py | automl/genRL | b7382fec9006d7da768ad7252194c6c5f1b2bbd7 | [
"Apache-2.0"
] | 2 | 2022-01-13T11:13:12.000Z | 2022-03-14T06:11:13.000Z | from abc import ABC, abstractmethod
| 19.525 | 85 | 0.62484 |
227c29400ceb467de41b94027e6c73ad4c909b28 | 16,832 | py | Python | sec5.2/train.py | Z-T-WANG/ConvergentDQN | 1b7f1857e33bc0a41b16ed6fe3251cb78220c691 | [
"MIT"
] | 1 | 2021-08-20T11:38:58.000Z | 2021-08-20T11:38:58.000Z | sec5.2/train.py | Z-T-WANG/ConvergentDQN | 1b7f1857e33bc0a41b16ed6fe3251cb78220c691 | [
"MIT"
] | null | null | null | sec5.2/train.py | Z-T-WANG/ConvergentDQN | 1b7f1857e33bc0a41b16ed6fe3251cb78220c691 | [
"MIT"
] | null | null | null | import torch
import torch.optim as optim
import torch.nn.functional as F
import optimizers
import time, os, random
import numpy as np
import math, copy
from collections import deque
from common.utils import epsilon_scheduler, beta_scheduler, update_target, print_log, load_model, print_args
from model import DQN
fro... | 49.798817 | 172 | 0.649774 |
227d0c74c72ef68b3f928e3787684e5cdd3c8d18 | 6,290 | py | Python | tests/broker/test_update_chassis.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 7 | 2015-07-31T05:57:30.000Z | 2021-09-07T15:18:56.000Z | tests/broker/test_update_chassis.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 115 | 2015-03-03T13:11:46.000Z | 2021-09-20T12:42:24.000Z | tests/broker/test_update_chassis.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 13 | 2015-03-03T11:17:59.000Z | 2021-09-09T09:16:41.000Z | #!/usr/bin/env python
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2012,2013,2015,2016,2017,2018 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#... | 43.082192 | 109 | 0.592687 |
97d3b4402a419951038455ac0b5764d606d2b2b1 | 11,289 | py | Python | label_propagation/label_propagation.py | lujiaxuan0520/NAIC-ReID-2020-contest | 51953a6927afb71733e39845fec9723210d37a1b | [
"MIT"
] | 1 | 2020-12-13T12:39:30.000Z | 2020-12-13T12:39:30.000Z | label_propagation/label_propagation.py | lujiaxuan0520/NAIC-ReID-2020-contest | 51953a6927afb71733e39845fec9723210d37a1b | [
"MIT"
] | null | null | null | label_propagation/label_propagation.py | lujiaxuan0520/NAIC-ReID-2020-contest | 51953a6927afb71733e39845fec9723210d37a1b | [
"MIT"
] | null | null | null | #########################################################################################
# semi-supervised learning: use label propagation to make pseudo labels for no label data
# This is not the parallel implement of label propagation, may requires a lot of time
# Author: Jiaxuan Lu
#################################... | 37.257426 | 129 | 0.652582 |
97d3d479f4d7bb607ee11ef3af9de4bcb2b193c7 | 12,781 | py | Python | tests/helpers/test_file.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | null | null | null | tests/helpers/test_file.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | null | null | null | tests/helpers/test_file.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | null | null | null | """
The tool to check the availability or syntax of domain, IP or URL.
::
Tests of the file helper.
Author:
Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
Special... | 26.627083 | 88 | 0.606838 |
97d574a37c2dcf1ccbae57ff4f4d838393dd694f | 1,938 | py | Python | malaya_speech/supervised/unet.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 111 | 2020-08-31T04:58:54.000Z | 2022-03-29T15:44:18.000Z | malaya_speech/supervised/unet.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 14 | 2020-12-16T07:27:22.000Z | 2022-03-15T17:39:01.000Z | malaya_speech/supervised/unet.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 29 | 2021-02-09T08:57:15.000Z | 2022-03-12T14:09:19.000Z | from malaya_speech.utils import (
check_file,
load_graph,
generate_session,
nodes_session,
)
from malaya_speech.model.tf import UNET, UNETSTFT, UNET1D
| 25.168831 | 69 | 0.609391 |
97d6b1b1207de186f313949afee6fd694df16691 | 4,618 | py | Python | scripts/GUI_restart.py | zainamir-98/bioradar | b826ed869a58778a321153dae3c93f17f40d2f7a | [
"MIT"
] | null | null | null | scripts/GUI_restart.py | zainamir-98/bioradar | b826ed869a58778a321153dae3c93f17f40d2f7a | [
"MIT"
] | null | null | null | scripts/GUI_restart.py | zainamir-98/bioradar | b826ed869a58778a321153dae3c93f17f40d2f7a | [
"MIT"
] | null | null | null | # Use this command if numpy import fails: sudo apt-get install python-dev libatlas-base-dev
# If this doesn't work, uninstall both numpy and scipy. Thonny will keep an older default version of numpy.
# Install an older version of scipy that corresponds to the correct version of numpy.
from guizero import App, PushButt... | 39.470085 | 154 | 0.731919 |
97da085bfcfa86877a3a5eae743b983ac785a5f4 | 1,182 | py | Python | pyFileFixity/lib/distance/distance/_lcsubstrings.py | hadi-f90/pyFileFixity | 2cb3dd6225a6b062a98fa2d61c4a0a29d8010428 | [
"MIT"
] | null | null | null | pyFileFixity/lib/distance/distance/_lcsubstrings.py | hadi-f90/pyFileFixity | 2cb3dd6225a6b062a98fa2d61c4a0a29d8010428 | [
"MIT"
] | 1 | 2022-01-19T13:46:55.000Z | 2022-01-19T13:46:55.000Z | pyFileFixity/lib/distance/distance/_lcsubstrings.py | hadi-f90/pyFileFixity | 2cb3dd6225a6b062a98fa2d61c4a0a29d8010428 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from array import array
def lcsubstrings(seq1, seq2, positions=False):
"""Find the longest common substring(s) in the sequences `seq1` and `seq2`.
If positions evaluates to `True` only their positions will be returned,
together with their length, in a tuple:
(length, [(start pos in s... | 22.730769 | 76 | 0.583756 |
97db509debe2b8503920910c68f09fde1efdca62 | 6,072 | py | Python | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Defines the unit tests for the :mod:`colour.models.rgb.transfer_functions.\
panasonic_vlog` module.
"""
import numpy as np
import unittest
from colour.models.rgb.transfer_functions import (
log_encoding_VLog,
log_decoding_VLog,
)
from colour.utilities import domain_range_scale, ign... | 31.138462 | 78 | 0.640316 |
97db587e34c2af72ba15568d5a03261d228ebb29 | 3,546 | py | Python | test/IECoreRI/All.py | gcodebackups/cortex-vfx | 72fa6c6eb3327fce4faf01361c8fcc2e1e892672 | [
"BSD-3-Clause"
] | 5 | 2016-07-26T06:09:28.000Z | 2022-03-07T03:58:51.000Z | test/IECoreRI/All.py | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | null | null | null | test/IECoreRI/All.py | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | 3 | 2015-03-25T18:45:24.000Z | 2020-02-15T15:37:18.000Z | ##########################################################################
#
# Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redis... | 36.183673 | 76 | 0.758037 |
97dd0689130d6bd5ed6a18fd645d0dcff177ddd3 | 2,164 | py | Python | molecool/tests/test_measure.py | pavankum/molecool | 0aa4fe5423aa91cb59fb603e3293d89741cb87a6 | [
"MIT"
] | null | null | null | molecool/tests/test_measure.py | pavankum/molecool | 0aa4fe5423aa91cb59fb603e3293d89741cb87a6 | [
"MIT"
] | null | null | null | molecool/tests/test_measure.py | pavankum/molecool | 0aa4fe5423aa91cb59fb603e3293d89741cb87a6 | [
"MIT"
] | null | null | null | """
Unit tests for measure
"""
# Import package, test suite, and other packages as needed
import numpy as np
import molecool
import pytest
def test_calculate_distance():
"""Sample test to check calculate_distance is working """
r1 = np.array([1, 0, 0])
r2 = np.array([3, 0, 0])
expected_dist... | 30.914286 | 129 | 0.652033 |
97dd106f5157a62375f9741a6b7c0edb0c3a8dee | 1,240 | py | Python | tests/test_util_matrix.py | PeerHerholz/pyrsa | 994007086c59de93d86b982f1fff73fe6a8ea929 | [
"MIT"
] | 4 | 2015-08-10T18:34:21.000Z | 2018-05-15T20:43:15.000Z | tests/test_util_matrix.py | PeerHerholz/pyrsa | 994007086c59de93d86b982f1fff73fe6a8ea929 | [
"MIT"
] | null | null | null | tests/test_util_matrix.py | PeerHerholz/pyrsa | 994007086c59de93d86b982f1fff73fe6a8ea929 | [
"MIT"
] | 2 | 2018-03-26T03:02:07.000Z | 2021-11-10T21:09:48.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
test_util_matrix
@author: jdiedrichsen
"""
import unittest
import pyrsa.util as rsu
import numpy as np
if __name__ == '__main__':
unittest.main()
| 24.313725 | 50 | 0.592742 |
97de7958e0a043ea00870086f0a3a9e86192755c | 6,999 | py | Python | custom_components/smartthinq_washer/wideq/washer.py | Golab/ha-smartthinq-washer | 92e4589a9be143f9b167853e2b5a1607631c1c42 | [
"Apache-2.0"
] | 1 | 2020-04-13T14:09:28.000Z | 2020-04-13T14:09:28.000Z | custom_components/smartthinq_washer/wideq/washer.py | Golab/ha-smartthinq-washer | 92e4589a9be143f9b167853e2b5a1607631c1c42 | [
"Apache-2.0"
] | null | null | null | custom_components/smartthinq_washer/wideq/washer.py | Golab/ha-smartthinq-washer | 92e4589a9be143f9b167853e2b5a1607631c1c42 | [
"Apache-2.0"
] | null | null | null | """------------------for Washer"""
import datetime
import enum
import time
import logging
from typing import Optional
from .device import (
Device,
DeviceStatus,
STATE_UNKNOWN,
STATE_OPTIONITEM_ON,
STATE_OPTIONITEM_OFF,
)
from .washer_states import (
STATE_WASHER,
STATE_WASHER_ERROR,
W... | 27.555118 | 84 | 0.603658 |
97df4a022eaff541facbf55fa41d937b36722e9a | 375 | py | Python | year2020/day17/reader.py | Sebaestschjin/advent-of-code | 5fd708efa355483fc0ccddf7548b62682662bcc8 | [
"MIT"
] | null | null | null | year2020/day17/reader.py | Sebaestschjin/advent-of-code | 5fd708efa355483fc0ccddf7548b62682662bcc8 | [
"MIT"
] | null | null | null | year2020/day17/reader.py | Sebaestschjin/advent-of-code | 5fd708efa355483fc0ccddf7548b62682662bcc8 | [
"MIT"
] | null | null | null | from pathlib import Path
| 22.058824 | 48 | 0.597333 |
97e1339259b947d5c260266bb5a742c74a8323da | 4,644 | py | Python | squad/base/argument_parser.py | uwnlp/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 89 | 2018-08-25T07:59:07.000Z | 2021-05-04T06:37:27.000Z | squad/base/argument_parser.py | seominjoon/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 11 | 2018-09-28T17:33:27.000Z | 2019-11-27T23:34:45.000Z | squad/base/argument_parser.py | uwnlp/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 10 | 2018-09-19T06:48:06.000Z | 2020-04-14T20:42:06.000Z | import argparse
import os
| 50.478261 | 120 | 0.644703 |
97e32ebe567c88c97e005c959868e8ed6406d1eb | 2,210 | py | Python | getml/loss_functions.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | getml/loss_functions.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | getml/loss_functions.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | # Copyright 2019 The SQLNet Company GmbH
# 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, copy, modify, merge, publish, ... | 32.985075 | 80 | 0.619005 |
97e4ff9556a184829362cc46861ffd16d6689ddb | 870 | py | Python | transit/helpers.py | moredatarequired/python-stitch-client | 222ba24e34614d3acecab41cd78a5c78ab8ea782 | [
"Apache-2.0"
] | 71 | 2015-01-03T07:55:33.000Z | 2021-10-30T16:52:09.000Z | transit/helpers.py | moredatarequired/python-stitch-client | 222ba24e34614d3acecab41cd78a5c78ab8ea782 | [
"Apache-2.0"
] | 27 | 2015-01-02T06:10:25.000Z | 2022-02-20T21:54:13.000Z | transit/helpers.py | moredatarequired/python-stitch-client | 222ba24e34614d3acecab41cd78a5c78ab8ea782 | [
"Apache-2.0"
] | 20 | 2015-01-05T04:07:52.000Z | 2022-02-20T19:08:15.000Z | ## Copyright 2014 Cognitect. 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... | 27.1875 | 75 | 0.725287 |
97e737d9c2d51a5e35ef3bbd28e5bc15aadb06de | 1,779 | py | Python | part4/matplotlib/seoul_to_cn_gb_kw.py | tls1403/PythonTest | 069f23b25ec655aa199d13aef9c14d2e33366861 | [
"MIT"
] | null | null | null | part4/matplotlib/seoul_to_cn_gb_kw.py | tls1403/PythonTest | 069f23b25ec655aa199d13aef9c14d2e33366861 | [
"MIT"
] | null | null | null | part4/matplotlib/seoul_to_cn_gb_kw.py | tls1403/PythonTest | 069f23b25ec655aa199d13aef9c14d2e33366861 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
#
from matplotlib import font_manager,rc
font_path ="D:/5674-833_4th/part4/malgun.ttf"
font_name = font_manager.FontProperties(fname=font_path).get_name()
rc('font',family = font_name)
df = pd.read_excel('D:/5674-833_4th/part4/ .xlsx',engine = 'openpyxl',header =... | 30.672414 | 90 | 0.675098 |
97e73f20826e580f553c50fa8510c0e35ee9a048 | 365 | py | Python | blsqpy/query.py | BLSQ/blsqpy | 52fcbd655780e78eccceb2a61280262194c2416c | [
"MIT"
] | null | null | null | blsqpy/query.py | BLSQ/blsqpy | 52fcbd655780e78eccceb2a61280262194c2416c | [
"MIT"
] | 7 | 2018-12-18T10:11:34.000Z | 2019-03-27T07:09:38.000Z | blsqpy/query.py | BLSQ/blsqpy | 52fcbd655780e78eccceb2a61280262194c2416c | [
"MIT"
] | 2 | 2018-12-12T12:31:40.000Z | 2019-02-25T12:34:48.000Z | import os
from jinja2 import Environment, FileSystemLoader
QUERIES_DIR = os.path.dirname(os.path.abspath(__file__))
| 36.5 | 94 | 0.715068 |
97e7b0008c9dde06dac12b270121649a12a1ff61 | 8,507 | py | Python | SINE.py | EduardoMCF/SINE | 061960b65164ae612a5cb63c540eb8a488505073 | [
"MIT"
] | null | null | null | SINE.py | EduardoMCF/SINE | 061960b65164ae612a5cb63c540eb8a488505073 | [
"MIT"
] | null | null | null | SINE.py | EduardoMCF/SINE | 061960b65164ae612a5cb63c540eb8a488505073 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import pyaudio, wave
import numpy as np
from collections import OrderedDict as OD
from struct import pack
from math import fmod
from os import system
pi = np.pi
p = pyaudio.PyAudio()
octaves = {
'C0': 16.35, 'C#0': 17.32, 'D0': 18.35, 'D#0': 19.45, 'E0': 20.6, 'F0': 21.83, 'F#0': 2... | 48.611429 | 288 | 0.611379 |
97e7c3ef3fb80b92eda0926518e235c327df3ae0 | 1,603 | py | Python | setup.py | lkylych/lagom | 64777be7f09136072a671c444b5b3fbbcb1b2f18 | [
"MIT"
] | null | null | null | setup.py | lkylych/lagom | 64777be7f09136072a671c444b5b3fbbcb1b2f18 | [
"MIT"
] | null | null | null | setup.py | lkylych/lagom | 64777be7f09136072a671c444b5b3fbbcb1b2f18 | [
"MIT"
] | null | null | null | from setuptools import setup
from setuptools import find_packages
from lagom.version import __version__
# Read content of README.md
with open('README.md', 'r') as f:
long_description = f.read()
setup(name='lagom',
version=__version__,
author='Xingdong Zuo',
author_email='zuoxingdong@hotmail.co... | 37.27907 | 114 | 0.5733 |
97e804ef9c7c1c0635aab0477304f63f5daafe96 | 2,046 | py | Python | plugins_inactive/plugin_wikipediasearch.py | ademaro/Irene-Voice-Assistant | 34a71892258d993dc227e6653281444f091e86ae | [
"MIT"
] | null | null | null | plugins_inactive/plugin_wikipediasearch.py | ademaro/Irene-Voice-Assistant | 34a71892258d993dc227e6653281444f091e86ae | [
"MIT"
] | null | null | null | plugins_inactive/plugin_wikipediasearch.py | ademaro/Irene-Voice-Assistant | 34a71892258d993dc227e6653281444f091e86ae | [
"MIT"
] | null | null | null | import os
import time
import pyautogui
# from voiceassmain import play_voice_assistant_speech
from vacore import VACore
# based on EnjiRouz realization https://github.com/EnjiRouz/Voice-Assistant-App/blob/master/app.py
#
| 33.540984 | 118 | 0.655425 |
97e922fd511e37dd6ba6caa81bbded4c80d22dc7 | 316 | py | Python | todo/management/urls.py | Sanguet/todo-challenge | 8eabc02081e7ce6b33408558d4a4a39edee3944c | [
"MIT"
] | null | null | null | todo/management/urls.py | Sanguet/todo-challenge | 8eabc02081e7ce6b33408558d4a4a39edee3944c | [
"MIT"
] | null | null | null | todo/management/urls.py | Sanguet/todo-challenge | 8eabc02081e7ce6b33408558d4a4a39edee3944c | [
"MIT"
] | null | null | null | # Django
from django.urls import include, path
# Django REST Framework
from rest_framework.routers import DefaultRouter
# Views
from .views import tasks as task_views
router = DefaultRouter()
router.register(r'tasks', task_views.TaskViewSet, basename='task')
urlpatterns = [
path('', include(router.urls))
]
| 19.75 | 66 | 0.762658 |
97e9830408b6514215e19bea044829eb96f15f7c | 7,936 | py | Python | dnd5e/items.py | MegophrysNasuta/dnd5e | 431c0c219052ddf5c62a500bd14f17fab3574648 | [
"MIT"
] | null | null | null | dnd5e/items.py | MegophrysNasuta/dnd5e | 431c0c219052ddf5c62a500bd14f17fab3574648 | [
"MIT"
] | null | null | null | dnd5e/items.py | MegophrysNasuta/dnd5e | 431c0c219052ddf5c62a500bd14f17fab3574648 | [
"MIT"
] | null | null | null | import enum
from typing import Any, List, Optional, Tuple
RangeIncrement = Tuple[int, int]
def __str__(self):
str_rep = ['<%s: %s']
str_rep_contents = [self.__class__.__name__, self.name]
if self.has_range:
str_rep.append(' %s')
str_rep_contents.append(self.ra... | 33.344538 | 79 | 0.606981 |
97eb5eb44132b5d87929c59ff9f174afa27e84b4 | 7,094 | py | Python | dbd/cli/dbdcli.py | AlexRogalskiy/dbd | ac2c6fb673861321b23fbf2a57d9e39fa5cb5352 | [
"BSD-3-Clause"
] | 33 | 2022-01-09T09:32:17.000Z | 2022-03-05T18:52:11.000Z | dbd/cli/dbdcli.py | zsvoboda/dbd | ac2c6fb673861321b23fbf2a57d9e39fa5cb5352 | [
"BSD-3-Clause"
] | 2 | 2022-02-16T19:14:13.000Z | 2022-02-16T19:14:34.000Z | dbd/cli/dbdcli.py | zsvoboda/dbd | ac2c6fb673861321b23fbf2a57d9e39fa5cb5352 | [
"BSD-3-Clause"
] | null | null | null | import importlib.metadata
import logging
import os
import shutil
from typing import Dict, Any, List
import click
from sqlalchemy import text
from dbd.log.dbd_exception import DbdException
from dbd.config.dbd_profile import DbdProfile
from dbd.config.dbd_project import DbdProject
from dbd.executors.model_executor impo... | 34.436893 | 116 | 0.623203 |
97eb87e8a632182f8518b1d3afd5e6530ac981a5 | 9,901 | py | Python | bestiary/serializers.py | Itori/swarfarm | 7192e2d8bca093b4254023bbec42b6a2b1887547 | [
"Apache-2.0"
] | 66 | 2017-09-11T04:46:00.000Z | 2021-03-13T00:02:42.000Z | bestiary/serializers.py | Itori/swarfarm | 7192e2d8bca093b4254023bbec42b6a2b1887547 | [
"Apache-2.0"
] | 133 | 2017-09-24T21:28:59.000Z | 2021-04-02T10:35:31.000Z | bestiary/serializers.py | Itori/swarfarm | 7192e2d8bca093b4254023bbec42b6a2b1887547 | [
"Apache-2.0"
] | 28 | 2017-08-30T19:04:32.000Z | 2020-11-16T04:09:00.000Z | from rest_framework import serializers
from bestiary import models
| 31.233438 | 122 | 0.620644 |
97ec6821afa2d1990aea0fcfa7884edc560b6cc4 | 56,761 | py | Python | Code/ConvNetAbel.py | abel-gr/AbelNN | e9f54a6a3844a504ff82e4bae97d43064834e90a | [
"MIT"
] | 1 | 2021-11-05T16:01:15.000Z | 2021-11-05T16:01:15.000Z | Code/ConvNetAbel.py | abel-gr/AbelNN | e9f54a6a3844a504ff82e4bae97d43064834e90a | [
"MIT"
] | null | null | null | Code/ConvNetAbel.py | abel-gr/AbelNN | e9f54a6a3844a504ff82e4bae97d43064834e90a | [
"MIT"
] | null | null | null | # Copyright Abel Garcia. All Rights Reserved.
# https://github.com/abel-gr/AbelNN
import numpy as np
import copy as copy
import random
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from pylab import text
import math
| 37.590066 | 233 | 0.448847 |
97ef61709a2ecbbabd5edf5fdc1f79875ed56c5b | 1,365 | py | Python | trading_ig/config.py | schwankner/ig-markets-api-python-library | 7a6add860e0abefcc252da232524e8ad0be86692 | [
"BSD-3-Clause"
] | 1 | 2021-03-01T09:51:59.000Z | 2021-03-01T09:51:59.000Z | trading_ig/config.py | schwankner/ig-markets-api-python-library | 7a6add860e0abefcc252da232524e8ad0be86692 | [
"BSD-3-Clause"
] | null | null | null | trading_ig/config.py | schwankner/ig-markets-api-python-library | 7a6add860e0abefcc252da232524e8ad0be86692 | [
"BSD-3-Clause"
] | 1 | 2022-01-04T21:17:10.000Z | 2022-01-04T21:17:10.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
import logging
ENV_VAR_ROOT = "IG_SERVICE"
CONFIG_FILE_NAME = "trading_ig_config.py"
logger = logging.getLogger(__name__)
try:
from trading_ig_config import config
logger.info("import config from %s" % CONFIG_FILE_NAME)
except Exception:
logger.wa... | 29.673913 | 78 | 0.650549 |
97ef67beb062520b730797c508d9465eec545451 | 6,434 | py | Python | train.py | jmlipman/MedicDeepLabv3Plus | 4eb5c6c21765db24502d434d01c0ee9b9fd66b27 | [
"MIT"
] | 1 | 2021-11-23T16:41:24.000Z | 2021-11-23T16:41:24.000Z | train.py | jmlipman/MedicDeepLabv3Plus | 4eb5c6c21765db24502d434d01c0ee9b9fd66b27 | [
"MIT"
] | null | null | null | train.py | jmlipman/MedicDeepLabv3Plus | 4eb5c6c21765db24502d434d01c0ee9b9fd66b27 | [
"MIT"
] | 1 | 2021-09-08T02:02:11.000Z | 2021-09-08T02:02:11.000Z | # Example usage:
# python train.py --device cuda --epochs 10 --input /home/miguelv/data/in/train/ --output /home/miguelv/data/out/delete/test/25/
import os, time, torch, json
import numpy as np
import nibabel as nib
from lib.utils import *
from lib.losses import Loss
from torch.utils.data import DataLoader
from dateti... | 38.526946 | 164 | 0.63553 |
97efd3b3f7f5f7bf285460221c0433426399a499 | 2,053 | py | Python | src/graph_util.py | oonat/inverse-distance-weighted-trust-based-recommender | 3f559f3e7dbc565da373f6297362ddf307b2d0ec | [
"BSD-3-Clause"
] | null | null | null | src/graph_util.py | oonat/inverse-distance-weighted-trust-based-recommender | 3f559f3e7dbc565da373f6297362ddf307b2d0ec | [
"BSD-3-Clause"
] | null | null | null | src/graph_util.py | oonat/inverse-distance-weighted-trust-based-recommender | 3f559f3e7dbc565da373f6297362ddf307b2d0ec | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from toml_parser import Parser
from scipy.sparse.csgraph import dijkstra, csgraph_from_dense
from sklearn.metrics.pairwise import nan_euclidean_distances
from math import sqrt
| 26.320513 | 113 | 0.754506 |
97efd442d5baa89669000d346b5c499ecd9f4c0b | 203 | py | Python | qtapps/skrf_qtwidgets/analyzers/analyzer_rs_zva.py | mike0164/scikit-rf | 0af25754b097ee24089ea7e0eacde426a51df563 | [
"BSD-3-Clause"
] | 379 | 2015-01-25T12:19:19.000Z | 2022-03-29T14:01:07.000Z | qtapps/skrf_qtwidgets/analyzers/analyzer_rs_zva.py | mike0164/scikit-rf | 0af25754b097ee24089ea7e0eacde426a51df563 | [
"BSD-3-Clause"
] | 456 | 2015-01-06T19:15:55.000Z | 2022-03-31T06:42:57.000Z | qtapps/skrf_qtwidgets/analyzers/analyzer_rs_zva.py | mike0164/scikit-rf | 0af25754b097ee24089ea7e0eacde426a51df563 | [
"BSD-3-Clause"
] | 211 | 2015-01-06T17:14:06.000Z | 2022-03-31T01:36:00.000Z | from skrf.vi.vna import rs_zva
| 20.3 | 44 | 0.665025 |
97efe95631dbd9f43d8fc44a21511eb903a34116 | 1,507 | py | Python | rules/taxonomic_classification/utils.py | dahak-metagenomics/taco-taxonomic-classification | 854cae4f1b2427746a1faa6a0e0aefbfb11c5523 | [
"BSD-3-Clause"
] | null | null | null | rules/taxonomic_classification/utils.py | dahak-metagenomics/taco-taxonomic-classification | 854cae4f1b2427746a1faa6a0e0aefbfb11c5523 | [
"BSD-3-Clause"
] | null | null | null | rules/taxonomic_classification/utils.py | dahak-metagenomics/taco-taxonomic-classification | 854cae4f1b2427746a1faa6a0e0aefbfb11c5523 | [
"BSD-3-Clause"
] | null | null | null | def container_image_is_external(biocontainers, app):
"""
Return a boolean: is this container going to be run
using an external URL (quay.io/biocontainers),
or is it going to use a local, named Docker image?
"""
d = biocontainers[app]
if (('use_local' in d) and (d['use_local'] is True)):
... | 33.488889 | 75 | 0.606503 |
97f060a2b95bbc614a022bf67e45afe532ebb45d | 37,531 | py | Python | Contents/Libraries/Shared/guessit/rules/properties/episodes.py | slvxstar/Kinopoisk.bundle | dcb96c870c3a96fcf33b8d13d79d47f0a7cbf5fb | [
"MIT"
] | 7 | 2021-02-11T08:03:00.000Z | 2022-01-23T22:33:32.000Z | Contents/Libraries/Shared/guessit/rules/properties/episodes.py | slvxstar/Kinopoisk.bundle | dcb96c870c3a96fcf33b8d13d79d47f0a7cbf5fb | [
"MIT"
] | null | null | null | Contents/Libraries/Shared/guessit/rules/properties/episodes.py | slvxstar/Kinopoisk.bundle | dcb96c870c3a96fcf33b8d13d79d47f0a7cbf5fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
episode, season, disc, episode_count, season_count and episode_details properties
"""
import copy
from collections import defaultdict
from rebulk import Rebulk, RemoveMatch, Rule, AppendMatch, RenameMatch
from rebulk.match import Match
from rebulk.remodule import re
fr... | 43.640698 | 119 | 0.588154 |
97f09a874f39695917154d611858caf14ea0be1a | 76,767 | py | Python | cwinpy/heterodyne/heterodyne.py | nigeltrc72/cwinpy | f90cf46e20c4d5abd09dc0540d4694ca6d5d9b42 | [
"MIT"
] | 5 | 2021-02-25T13:04:43.000Z | 2022-01-15T22:37:33.000Z | cwinpy/heterodyne/heterodyne.py | nigeltrc72/cwinpy | f90cf46e20c4d5abd09dc0540d4694ca6d5d9b42 | [
"MIT"
] | 4 | 2021-02-24T12:17:50.000Z | 2021-12-09T16:41:33.000Z | cwinpy/heterodyne/heterodyne.py | nigeltrc72/cwinpy | f90cf46e20c4d5abd09dc0540d4694ca6d5d9b42 | [
"MIT"
] | 1 | 2021-02-24T11:40:32.000Z | 2021-02-24T11:40:32.000Z | """
Run heterodyne pre-processing of gravitational-wave data.
"""
import ast
import configparser
import copy
import os
import shutil
import signal
import sys
import tempfile
from argparse import ArgumentParser
import cwinpy
import numpy as np
from bilby_pipe.bilbyargparser import BilbyArgParser
from bilby_pipe.job_cr... | 40.746815 | 116 | 0.524809 |
97f1c05811bbe3176ddd3d2e0d9d3415c269f3fe | 5,787 | py | Python | timpani/webserver/webhelpers.py | ollien/Timpani | 0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb | [
"MIT"
] | 3 | 2015-10-16T11:26:53.000Z | 2016-08-28T19:28:52.000Z | timpani/webserver/webhelpers.py | ollien/timpani | 0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb | [
"MIT"
] | 22 | 2015-09-14T23:00:07.000Z | 2016-07-22T08:39:39.000Z | timpani/webserver/webhelpers.py | ollien/timpani | 0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb | [
"MIT"
] | null | null | null | import flask
import functools
import bs4
import urllib.parse
from .. import auth
from .. import themes
from .. import settings
INVALID_PERMISSIONS_FLASH_MESSAGE = "Sorry, you don't have permission to view that page."
#Decorator which checks if a user logged in and capable of using the specified permissions.
#If redir... | 43.511278 | 140 | 0.644375 |
97f1ce8901d8660f5836035727b480380b3d1fc2 | 1,542 | py | Python | bot/plugins/keyboard/__init__.py | grahamtito/TelegramFiletoCloud | 63ac4a173102ee73615aa5bcf996e545746a1c27 | [
"Unlicense"
] | null | null | null | bot/plugins/keyboard/__init__.py | grahamtito/TelegramFiletoCloud | 63ac4a173102ee73615aa5bcf996e545746a1c27 | [
"Unlicense"
] | null | null | null | bot/plugins/keyboard/__init__.py | grahamtito/TelegramFiletoCloud | 63ac4a173102ee73615aa5bcf996e545746a1c27 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# This is bot coded by Abhijith N T and used for educational purposes only
# https://github.com/AbhijithNT
# Copyright ABHIJITH N T
# Thank you https://github.com/pyrogram/pyrogram
from pyrogram.types import (
InlineKeyboardMarkup,
InlineKeyboardButton
)
| 23.723077 | 74 | 0.485084 |
97f1fff136972b7db73eca847e9e3cb4870be823 | 4,022 | py | Python | django_storymarket/forms.py | jacobian/django-storymarket | ec43318ddb9964e67220f6fa9675389b637422ce | [
"BSD-3-Clause"
] | 1 | 2019-01-12T10:05:59.000Z | 2019-01-12T10:05:59.000Z | django_storymarket/forms.py | jacobian/django-storymarket | ec43318ddb9964e67220f6fa9675389b637422ce | [
"BSD-3-Clause"
] | null | null | null | django_storymarket/forms.py | jacobian/django-storymarket | ec43318ddb9964e67220f6fa9675389b637422ce | [
"BSD-3-Clause"
] | null | null | null | import logging
import operator
import storymarket
from django import forms
from django.core.cache import cache
from django.conf import settings
from .models import SyncedObject
# Timeout for choices cached from Storymarket. 5 minutes.
CHOICE_CACHE_TIMEOUT = 600
log = logging.getLogger('django_storymarket') | 43.717391 | 96 | 0.544008 |
97f201e4bc64fac90fde4b3a05b02b6bc4e482f8 | 5,773 | py | Python | revisum/snippet.py | medariox/revisum | e92afa047ec66ef80bf3f27e6be81b1505f7151e | [
"MIT"
] | null | null | null | revisum/snippet.py | medariox/revisum | e92afa047ec66ef80bf3f27e6be81b1505f7151e | [
"MIT"
] | null | null | null | revisum/snippet.py | medariox/revisum | e92afa047ec66ef80bf3f27e6be81b1505f7151e | [
"MIT"
] | null | null | null | import pickle
from collections import OrderedDict
from datetime import datetime
from .chunk import Chunk
from .review import Review
from .tokenizer import LineTokenizer
from .utils import norm_path
from .database.snippet import maybe_init, Snippet as DataSnippet
def _serialize_ids(self):
return pickle.du... | 29.01005 | 77 | 0.580634 |
97f20ba0590c9d144a0c17683ec4a0a88ea21ea6 | 46 | py | Python | ainnovation_dcim/workflow/__init__.py | ltxwanzl/ainnovation_dcim | b065489e2aa69729c0fd5142cf75d8caa7788b31 | [
"Apache-2.0"
] | null | null | null | ainnovation_dcim/workflow/__init__.py | ltxwanzl/ainnovation_dcim | b065489e2aa69729c0fd5142cf75d8caa7788b31 | [
"Apache-2.0"
] | null | null | null | ainnovation_dcim/workflow/__init__.py | ltxwanzl/ainnovation_dcim | b065489e2aa69729c0fd5142cf75d8caa7788b31 | [
"Apache-2.0"
] | null | null | null | # default_app_config = '.apps.WorkflowConfig'
| 23 | 45 | 0.782609 |
97f2191d807924b9920f7ca4379d337e4f2f9d92 | 6,361 | py | Python | examples/api-samples/inc_samples/sample33.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/sample33.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/sample33.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | ####<i>This sample will show how to convert several HTML documents to PDF and merge them to one document</i>
#Import of classes from libraries
import base64
import os
import shutil
import random
import time
from pyramid.renderers import render_to_response
from groupdocs.StorageApi import StorageApi
from groupdocs.Asy... | 43.868966 | 111 | 0.562962 |
97f2ebb10db5b5ba4727a38411b745fbfd41201b | 2,503 | py | Python | silver/api/pagination.py | DocTocToc/silver | f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5 | [
"Apache-2.0"
] | 222 | 2017-01-15T10:30:57.000Z | 2022-03-08T20:34:46.000Z | silver/api/pagination.py | DocTocToc/silver | f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5 | [
"Apache-2.0"
] | 141 | 2017-01-11T10:56:49.000Z | 2021-10-12T11:51:00.000Z | silver/api/pagination.py | DocTocToc/silver | f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5 | [
"Apache-2.0"
] | 76 | 2017-01-10T13:50:27.000Z | 2022-03-25T21:37:00.000Z | # Copyright (c) 2015 Presslabs SRL
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 37.924242 | 79 | 0.691171 |
97f305739c9556bc7a629078425a1949c86c0361 | 3,117 | py | Python | process_filing_headers.py | jsfenfen/fec2file | 541a7dc40eb4ebf51d1c610ee19fdefc030fc7e3 | [
"MIT"
] | 1 | 2019-04-24T16:45:07.000Z | 2019-04-24T16:45:07.000Z | process_filing_headers.py | jsfenfen/fec2file | 541a7dc40eb4ebf51d1c610ee19fdefc030fc7e3 | [
"MIT"
] | null | null | null | process_filing_headers.py | jsfenfen/fec2file | 541a7dc40eb4ebf51d1c610ee19fdefc030fc7e3 | [
"MIT"
] | null | null | null | import os
import fecfile
import json
import csv
import sys
from settings import RAW_ELECTRONIC_DIR, MASTER_HEADER_ROW, HEADER_DUMP_FILE
START_YEAR = 2019
ERROR_HEADERS = ['path', 'error', ]
if __name__ == '__main__':
outfile = open(HEADER_DUMP_FILE, 'w')
dw = csv.DictWriter(outfile, fieldnames=MASTER_H... | 33.159574 | 111 | 0.62881 |
97f379ae1f9f041646342228c2bcfc62e5962980 | 331 | py | Python | src/python/collector/urls.py | swqqn/django-collector | 014e5974c8c6dda38682a7ae7eb1d4f0295679b8 | [
"MIT"
] | 3 | 2015-11-05T13:42:15.000Z | 2020-01-15T08:00:58.000Z | src/python/collector/urls.py | rentalita/django-collector | 8646e514d26820e317b2b59828dc0e506a19c780 | [
"MIT"
] | null | null | null | src/python/collector/urls.py | rentalita/django-collector | 8646e514d26820e317b2b59828dc0e506a19c780 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('collector.views',
url(r'^blob404/$', 'blob404'),
url(r'^deleted/$', 'deleted'),
url(r'^$', 'create'),
url(r'^(?P<uid>\w+)/$', 'delete'),
)
# Local Variables:
# indent-tabs-mode: nil
# End:
# vim: ai et... | 20.6875 | 51 | 0.586103 |
97f5869664190ff99134b09c60ba7139b7a21527 | 7,658 | py | Python | cdisp/core.py | felippebarbosa/cdisp | d9a612c252495ab017bffccdd7e82bbb555e07dd | [
"BSL-1.0"
] | null | null | null | cdisp/core.py | felippebarbosa/cdisp | d9a612c252495ab017bffccdd7e82bbb555e07dd | [
"BSL-1.0"
] | null | null | null | cdisp/core.py | felippebarbosa/cdisp | d9a612c252495ab017bffccdd7e82bbb555e07dd | [
"BSL-1.0"
] | null | null | null | #-*- coding: utf-8 -*-
"""
Dispersion calculation functions
"""
import numpy # module for array manipulation
import pandas # module for general data analysis
import os # module for general OS manipulation
import scipy # module for scientific manipulation and analysis
##
def set_transverse_mo... | 48.77707 | 177 | 0.657482 |
97f8adb75c2bfb4df0070282016a4be3b8f42059 | 1,280 | py | Python | appname/predict.py | Lambda-ds-31/build_week_spotify | ba5c77b457f8180f80883c61a5011eb3b38ffc95 | [
"MIT"
] | null | null | null | appname/predict.py | Lambda-ds-31/build_week_spotify | ba5c77b457f8180f80883c61a5011eb3b38ffc95 | [
"MIT"
] | 1 | 2021-10-20T20:50:04.000Z | 2021-10-20T20:50:04.000Z | appname/predict.py | Lambda-ds-31/build_week_spotify | ba5c77b457f8180f80883c61a5011eb3b38ffc95 | [
"MIT"
] | 1 | 2022-02-18T13:51:29.000Z | 2022-02-18T13:51:29.000Z | import numpy as np
from data_prep import data
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
from os import getenv
client_id = getenv('CLIENT_ID')
client_id_secret = getenv('CLIENT_ID_SECRET')
manager = SpotifyClientCredentials(
client_id = client_id,
client_secret= client_id_secret)
... | 27.826087 | 71 | 0.630469 |
97f988da234108443107eea262cb4a176c0459c9 | 176 | py | Python | tests/cpydiff/modules_array_deletion.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 692 | 2016-12-19T23:25:35.000Z | 2022-03-31T14:20:48.000Z | tests/cpydiff/modules_array_deletion.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 509 | 2017-03-28T19:37:18.000Z | 2022-03-31T20:31:43.000Z | tests/cpydiff/modules_array_deletion.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 228 | 2016-12-19T05:03:30.000Z | 2022-03-22T18:13:00.000Z | """
categories: Modules,array
description: Array deletion not implemented
cause: Unknown
workaround: Unknown
"""
import array
a = array.array('b', (1, 2, 3))
del a[1]
print(a)
| 16 | 43 | 0.715909 |
97fa4f4535ac67853dbadcc3ffdf0124a1fb7efd | 10,001 | py | Python | jaysblog/models.py | cRiii/jaysblog | f96ecd82f17750a47147ae3c5e72cf1320be21e5 | [
"MIT"
] | 5 | 2019-10-14T01:51:02.000Z | 2019-11-07T15:01:14.000Z | jaysblog/models.py | cRiii/jaysblog | f96ecd82f17750a47147ae3c5e72cf1320be21e5 | [
"MIT"
] | 1 | 2019-11-07T06:58:26.000Z | 2019-11-07T06:58:26.000Z | jaysblog/models.py | cRiii/jaysblog | f96ecd82f17750a47147ae3c5e72cf1320be21e5 | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@Time : 2019/9/17 15:07
@Author : Jay Chen
@FileName: models.py
@GitHub : https://github.com/cRiii
"""
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from jaysblog.extensions import db
from flask_login... | 35.97482 | 107 | 0.633137 |
97fa5c7d0604d6e2fc363a4c15650e9b99bf74f3 | 602 | py | Python | 112_Path Sum.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 112_Path Sum.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 112_Path Sum.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 28.666667 | 68 | 0.521595 |
97faabe77e17c6e2ce8553519c92f2c578ef3f08 | 1,509 | py | Python | telemanom/_globals.py | tonyzeng2019/telemanom | ee1c9252c6ffc9581995aaf479f0d79cf0a2e914 | [
"Apache-2.0"
] | null | null | null | telemanom/_globals.py | tonyzeng2019/telemanom | ee1c9252c6ffc9581995aaf479f0d79cf0a2e914 | [
"Apache-2.0"
] | null | null | null | telemanom/_globals.py | tonyzeng2019/telemanom | ee1c9252c6ffc9581995aaf479f0d79cf0a2e914 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import yaml
import json
import sys
import os
sys.path.append('../venv/lib/python3.5/site-packages')
from elasticsearch import Elasticsearch
sys.path.append('../telemanom') | 27.944444 | 82 | 0.561299 |
97fbc7c518483b22e3bd3fb0a4313e038f0a4e05 | 508 | py | Python | nanome/_internal/_network/_commands/_serialization/_open_url.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | nanome/_internal/_network/_commands/_serialization/_open_url.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | nanome/_internal/_network/_commands/_serialization/_open_url.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | from nanome._internal._util._serializers import _StringSerializer
from nanome._internal._util._serializers import _TypeSerializer
| 25.4 | 65 | 0.720472 |
97fd1501d115786d6770847e5c0def668bf7ecbe | 196 | py | Python | questoes/questao1.py | raulbarcelos/Lista-de-Exercicios-PO | 70933896108b5f9fbdbf541c389ab9354d6ceaf2 | [
"MIT"
] | null | null | null | questoes/questao1.py | raulbarcelos/Lista-de-Exercicios-PO | 70933896108b5f9fbdbf541c389ab9354d6ceaf2 | [
"MIT"
] | null | null | null | questoes/questao1.py | raulbarcelos/Lista-de-Exercicios-PO | 70933896108b5f9fbdbf541c389ab9354d6ceaf2 | [
"MIT"
] | null | null | null | print("********************************")
print("********** QUESTO 01 **********")
print("********************************")
print("******** RAUL BARCELOS *********")
print()
print("Ol mundo")
| 24.5 | 41 | 0.30102 |
97fdbd42de4debdf4f69ae07026eb489c9f50129 | 2,772 | py | Python | CorpusToolkit/ply_parser/test.py | howl-anderson/tools_for_corpus_of_people_daily | 8178d9a62c356f83723d42ced60f8269eed84861 | [
"Apache-2.0"
] | 243 | 2018-09-12T01:05:03.000Z | 2022-03-30T11:25:59.000Z | CorpusToolkit/ply_parser/test.py | nkkkyyy/tools_for_corpus_of_people_daily | 8178d9a62c356f83723d42ced60f8269eed84861 | [
"Apache-2.0"
] | 3 | 2018-10-18T10:13:07.000Z | 2020-09-10T06:34:40.000Z | CorpusToolkit/ply_parser/test.py | nkkkyyy/tools_for_corpus_of_people_daily | 8178d9a62c356f83723d42ced60f8269eed84861 | [
"Apache-2.0"
] | 56 | 2018-09-11T12:56:20.000Z | 2021-11-09T04:02:00.000Z | import logging
from CorpusToolkit.ply_parser import make_parser, lexer
logging.basicConfig(
level=logging.DEBUG,
filename="parselog.txt",
filemode="w",
format="%(filename)10s:%(lineno)4d:%(message)s"
)
log = logging.getLogger()
test_data = (
"19980101-01-001-002/m /nt /n /wu /n /n /nrf /nr... | 72.947368 | 1,579 | 0.533911 |
97fdbe6160aa3872cb3be14af73e7667fe00624c | 978 | py | Python | homeassistant/components/hue/v2/helpers.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/hue/v2/helpers.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/hue/v2/helpers.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Helper functions for Philips Hue v2."""
from __future__ import annotations
def normalize_hue_brightness(brightness: float | None) -> float | None:
"""Return calculated brightness values."""
if brightness is not None:
# Hue uses a range of [0, 100] to control brightness.
brightness = float((... | 32.6 | 76 | 0.682004 |
97fe866f84f325af30eccf7ed7f76920a2b9b84a | 186 | py | Python | incapsula/__init__.py | zanachka/incapsula-cracker-py3 | be1738d0e649e91de75583b694372bc04547fa85 | [
"Unlicense"
] | null | null | null | incapsula/__init__.py | zanachka/incapsula-cracker-py3 | be1738d0e649e91de75583b694372bc04547fa85 | [
"Unlicense"
] | null | null | null | incapsula/__init__.py | zanachka/incapsula-cracker-py3 | be1738d0e649e91de75583b694372bc04547fa85 | [
"Unlicense"
] | null | null | null | from .errors import IncapBlocked, MaxRetriesExceeded, RecaptchaBlocked
from .parsers import ResourceParser, WebsiteResourceParser, IframeResourceParser
from .session import IncapSession
| 46.5 | 80 | 0.876344 |
97feddd1f63ca0959b0312d053d59692a6f28e9d | 3,646 | py | Python | sdk/python/pulumi_civo/get_network.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-04T12:27:02.000Z | 2022-03-14T13:16:43.000Z | sdk/python/pulumi_civo/get_network.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2020-08-17T19:03:57.000Z | 2022-03-25T19:17:57.000Z | sdk/python/pulumi_civo/get_network.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2020-08-04T12:27:03.000Z | 2022-03-24T00:56:24.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 31.162393 | 120 | 0.620954 |
97ff07ce80697d0e69e6e48e82606287cb5eb7ee | 744 | py | Python | Hard/longest_valid_parentheses.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | Hard/longest_valid_parentheses.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | Hard/longest_valid_parentheses.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | from collections import deque | 32.347826 | 57 | 0.424731 |
97ff3603368750b9661b92eb04ae9042db5bd4fc | 2,358 | py | Python | IMFlask/config.py | iml1111/IMFlask | 96af28460365c305e92ca2720fe6b015713c578f | [
"MIT"
] | 2 | 2020-09-07T11:33:41.000Z | 2020-09-08T14:47:40.000Z | IMFlask/config.py | iml1111/IMFlask | 96af28460365c305e92ca2720fe6b015713c578f | [
"MIT"
] | 1 | 2020-09-07T11:29:00.000Z | 2022-03-31T10:01:06.000Z | IMFlask/config.py | iml1111/IMFlask | 96af28460365c305e92ca2720fe6b015713c578f | [
"MIT"
] | 2 | 2020-10-06T18:25:46.000Z | 2021-09-09T16:00:07.000Z | '''
Flask Application Config
'''
import os
from logging.config import dictConfig
BASEDIR = os.path.abspath(os.path.dirname(__file__))
config = {
'development':DevelopmentConfig,
'production':ProductionConfig,
'testing':TestingConfig,
'default':DevelopmentConfig,
}
| 26.2 | 87 | 0.54665 |
97ff714eac7c0cc920b3005424b8958af7aec6ce | 1,066 | py | Python | cnn/conv_average_pooling.py | nforesperance/Tensorflow-Keras | 12fa74e01c7081b2f5ef899ee9123498ef541483 | [
"MIT"
] | 1 | 2021-01-07T11:05:07.000Z | 2021-01-07T11:05:07.000Z | cnn/conv_average_pooling.py | nforesperance/Tensorflow-Keras | 12fa74e01c7081b2f5ef899ee9123498ef541483 | [
"MIT"
] | null | null | null | cnn/conv_average_pooling.py | nforesperance/Tensorflow-Keras | 12fa74e01c7081b2f5ef899ee9123498ef541483 | [
"MIT"
] | null | null | null | # example of average pooling
from numpy import asarray
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import AveragePooling2D
# define input data
data = [[0, 0, 0, 1, 1, 0, 0, 0],
[0, 0, 0, 1, 1, 0, 0, 0],
[0, 0, 0, 1, 1, 0, 0, 0],
[0, 0, 0, 1, 1, 0, 0, 0],
[0, 0, 0, 1, 1,... | 30.457143 | 69 | 0.594747 |
3f000581137f7e8d12b07f946dab58d61d19c246 | 13,127 | py | Python | acquisitions/models.py | 18F/acqstackdb | 7d939e7deb1cb8749f16fe6b6bc092f5db5c4469 | [
"CC0-1.0"
] | 2 | 2016-06-03T16:33:34.000Z | 2016-07-22T12:10:31.000Z | acquisitions/models.py | 18F/acqstackdb | 7d939e7deb1cb8749f16fe6b6bc092f5db5c4469 | [
"CC0-1.0"
] | 26 | 2016-06-02T11:21:15.000Z | 2016-07-18T14:10:03.000Z | acquisitions/models.py | 18F/acqstackdb | 7d939e7deb1cb8749f16fe6b6bc092f5db5c4469 | [
"CC0-1.0"
] | 2 | 2017-07-14T08:33:32.000Z | 2021-02-15T10:16:18.000Z | from django.db import models
from django.core.validators import RegexValidator, ValidationError
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from smart_selects.db_fields import ChainedForeignKey, ChainedManyToManyField
from ordered_model.models import OrderedModel
... | 37.505714 | 80 | 0.63198 |
3f0006363bb84a90ae81c6bd90ba3b9c73aecdc7 | 714 | py | Python | app/kobo/forms.py | wri/django_kobo | 505d52fc0d49d875af068e58ad959b95d1464dd5 | [
"MIT"
] | 1 | 2018-12-20T07:59:55.000Z | 2018-12-20T07:59:55.000Z | app/kobo/forms.py | wri/django_kobo | 505d52fc0d49d875af068e58ad959b95d1464dd5 | [
"MIT"
] | 9 | 2018-11-06T01:51:28.000Z | 2018-12-21T22:19:42.000Z | app/kobo/forms.py | wri/django_kobo | 505d52fc0d49d875af068e58ad959b95d1464dd5 | [
"MIT"
] | 2 | 2018-11-21T15:13:32.000Z | 2020-02-19T08:39:37.000Z | from django import forms
from .models import Connection, KoboUser, KoboData
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.db.models import Q
| 31.043478 | 165 | 0.644258 |
3f01198a019097c1976dc940001aed540d4f3634 | 713 | py | Python | old/dea/aws/__init__.py | robbibt/odc-tools | e2df2c9ef65dbd5652d97cd88617989b4b724814 | [
"Apache-2.0"
] | null | null | null | old/dea/aws/__init__.py | robbibt/odc-tools | e2df2c9ef65dbd5652d97cd88617989b4b724814 | [
"Apache-2.0"
] | null | null | null | old/dea/aws/__init__.py | robbibt/odc-tools | e2df2c9ef65dbd5652d97cd88617989b4b724814 | [
"Apache-2.0"
] | null | null | null | from odc.aws import (
ec2_metadata,
ec2_current_region,
botocore_default_region,
auto_find_region,
make_s3_client,
s3_url_parse,
s3_fmt_range,
s3_ls,
s3_ls_dir,
s3_find,
get_boto_session,
get_creds_with_retry,
s3_fetch,
)
from odc.aws._find import (
s3_file_info,... | 16.97619 | 30 | 0.647966 |
3f0241d966136442d63f54ae450fa5bbf000c236 | 883 | py | Python | systems/stage.py | will-nickson/starter_system | bce669250fc58c3966c71e84020e078871a79e4f | [
"MIT"
] | null | null | null | systems/stage.py | will-nickson/starter_system | bce669250fc58c3966c71e84020e078871a79e4f | [
"MIT"
] | null | null | null | systems/stage.py | will-nickson/starter_system | bce669250fc58c3966c71e84020e078871a79e4f | [
"MIT"
] | null | null | null | from log.logger import logger
| 22.641026 | 71 | 0.571914 |
3f02d35a7926f58cae17ffac0f474623fde43a2e | 37,840 | py | Python | pybind/slxos/v17r_2_00/mpls_state/rsvp/igp_sync/link/lsp/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/mpls_state/rsvp/igp_sync/link/lsp/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/mpls_state/rsvp/igp_sync/link/lsp/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 66.737213 | 754 | 0.742072 |