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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6e87832836db722cb4f55a3e89485349b743a75 | 859 | py | Python | LaneTracking-master/main.py | cmflannery/openvision | 884ae95325dba1db0d428179796efe03964d5f5b | [
"MIT"
] | null | null | null | LaneTracking-master/main.py | cmflannery/openvision | 884ae95325dba1db0d428179796efe03964d5f5b | [
"MIT"
] | null | null | null | LaneTracking-master/main.py | cmflannery/openvision | 884ae95325dba1db0d428179796efe03964d5f5b | [
"MIT"
] | null | null | null | from __future__ import division
import cv2
import track
import detect
| 23.861111 | 115 | 0.571595 |
d6e8a2cccf8950f95f736755d08af27a34195960 | 368 | py | Python | app_server/config.py | brdavs/faker-trader | 6681bb65bab6d024e2f9dffec62a7decf64c76cd | [
"MIT"
] | null | null | null | app_server/config.py | brdavs/faker-trader | 6681bb65bab6d024e2f9dffec62a7decf64c76cd | [
"MIT"
] | null | null | null | app_server/config.py | brdavs/faker-trader | 6681bb65bab6d024e2f9dffec62a7decf64c76cd | [
"MIT"
] | null | null | null | SEECRET = 'Extremely secretive seecret. You could not guess this one if your life depended on it.'
DATABASE = 'db/data.db'
DATABASE_PRICES = 'db/prices.db'
SESSION_TTL = 240
WEBSOCKETS_PORT= 7334
WEBSOCKETS_URI = 'ws://localhost:' + str(WEBSOCKETS_PORT)
DEFAULT_LEDGER = {
'value': 10000,
'asset_id': 1
}
DEFAU... | 24.533333 | 98 | 0.73913 |
d6e8aa9357aa361fc5853ac40c9c73710411ae7e | 6,349 | py | Python | telas/telaEditUser.py | JedersonLuz/BibWorld | c5638a57c35bdfcdaa6b66d7e2244e33afd5ae97 | [
"MIT"
] | null | null | null | telas/telaEditUser.py | JedersonLuz/BibWorld | c5638a57c35bdfcdaa6b66d7e2244e33afd5ae97 | [
"MIT"
] | null | null | null | telas/telaEditUser.py | JedersonLuz/BibWorld | c5638a57c35bdfcdaa6b66d7e2244e33afd5ae97 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'telas/telaEditUser.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QMessageBox
import PyrebaseConnector as P... | 41.769737 | 113 | 0.673807 |
d6e9fedf25e708c35ea19099181ea08ee2952f97 | 1,303 | py | Python | tests/unit/testing/test_scenarios.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | 3 | 2018-11-27T15:45:19.000Z | 2018-12-21T20:32:10.000Z | tests/unit/testing/test_scenarios.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | 18 | 2018-12-02T18:38:59.000Z | 2020-02-05T22:09:37.000Z | tests/unit/testing/test_scenarios.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | null | null | null | import pytest
from edera import Condition
from edera import Task
from edera.exceptions import TargetVerificationError
from edera.testing import DefaultScenario
from edera.testing import ScenarioWithProvidedStubs
| 19.742424 | 56 | 0.603991 |
d6eb33dfcb899869dc176ac912f3e58fd02bafeb | 1,604 | py | Python | nova/tests/unit/conductor/tasks/test_base.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2016-04-28T16:20:38.000Z | 2021-04-25T11:19:03.000Z | nova/tests/unit/conductor/tasks/test_base.py | woraser/nova | fc3890667e4971e3f0f35ac921c2a6c25f72adec | [
"Apache-2.0"
] | 132 | 2017-03-27T11:31:52.000Z | 2022-03-30T08:45:02.000Z | nova/tests/unit/conductor/tasks/test_base.py | woraser/nova | fc3890667e4971e3f0f35ac921c2a6c25f72adec | [
"Apache-2.0"
] | 8 | 2017-03-27T07:50:38.000Z | 2020-02-14T16:55:56.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 29.703704 | 78 | 0.666459 |
d6ec2af6465219bbbd1c415984736e30d5b7e368 | 2,160 | py | Python | flarmfuncs.py | acasadoalonso/RealTimeScoring | 843fd151a9a963851f79549b8c9117ac37779578 | [
"MIT"
] | null | null | null | flarmfuncs.py | acasadoalonso/RealTimeScoring | 843fd151a9a963851f79549b8c9117ac37779578 | [
"MIT"
] | null | null | null | flarmfuncs.py | acasadoalonso/RealTimeScoring | 843fd151a9a963851f79549b8c9117ac37779578 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import MySQLdb
from ognddbfuncs import getognchk
unkglider = []
# -----------------------------------------------------------
# -----------------------------------------------------------
| 44.081633 | 121 | 0.572685 |
d6ec4b20c2057ab10ad8e413862f2137de3b2c8f | 1,916 | py | Python | sf2_webapp/__main__.py | EdinburghGenomics/sf2-webapp | 7deab0a6513f8586646e16edacbc19bcfc3b18ad | [
"MIT"
] | null | null | null | sf2_webapp/__main__.py | EdinburghGenomics/sf2-webapp | 7deab0a6513f8586646e16edacbc19bcfc3b18ad | [
"MIT"
] | null | null | null | sf2_webapp/__main__.py | EdinburghGenomics/sf2-webapp | 7deab0a6513f8586646e16edacbc19bcfc3b18ad | [
"MIT"
] | null | null | null | """Edinburgh Genomics Online SF2 web application.
examples:
To start the tornado server:
$ start_sf2_webapp
More information is available at:
- http://gitlab.genepool.private/hdunnda/sf2-webapp
"""
__version__="0.0.1"
import os
import tornado.options
from tornado.options import define, options
import sf2... | 34.214286 | 166 | 0.740605 |
d6ed4a83976491832fc89d30d7ac8104322085ec | 828 | py | Python | tesseractApi/blur.py | MTES-MCT/Dossier-Facile-API | 7b6dd5ae96b28fb1b2b3dffbd5e1bf9c92f2ae48 | [
"MIT"
] | 2 | 2021-05-31T10:14:08.000Z | 2022-03-02T10:28:06.000Z | tesseractApi/blur.py | MTES-MCT/Dossier-Facile-API | 7b6dd5ae96b28fb1b2b3dffbd5e1bf9c92f2ae48 | [
"MIT"
] | 6 | 2021-12-14T13:29:41.000Z | 2022-02-17T10:33:13.000Z | tesseractApi/blur.py | MTES-MCT/Dossier-Facile-API | 7b6dd5ae96b28fb1b2b3dffbd5e1bf9c92f2ae48 | [
"MIT"
] | 3 | 2021-05-31T10:14:20.000Z | 2022-03-02T10:28:47.000Z | #!/usr/bin/env python
# coding:utf-8
import cv2
from PIL import Image
from PyPDF2 import PdfFileReader
import logging
Image.MAX_IMAGE_PIXELS = None
log = logging.getLogger(__name__)
| 26.709677 | 66 | 0.725845 |
d6efdd858055997f80aafaaffde2d0f802fbcec1 | 216 | py | Python | copyImage.py | MauricioQueiros/dealingWithFiles | 1a99753f928e5dbc4202d93c61ecce3f235f2344 | [
"MIT"
] | null | null | null | copyImage.py | MauricioQueiros/dealingWithFiles | 1a99753f928e5dbc4202d93c61ecce3f235f2344 | [
"MIT"
] | null | null | null | copyImage.py | MauricioQueiros/dealingWithFiles | 1a99753f928e5dbc4202d93c61ecce3f235f2344 | [
"MIT"
] | null | null | null | #Copy a image | 30.857143 | 49 | 0.62037 |
d6f068d6c5eae56035d6b920c42bb8ee0fe1c621 | 1,705 | py | Python | ppcd/utils/loss_compute.py | geoyee/PdRSCD | 4a1a7256320f006c15e3e5b5b238fdfba8198853 | [
"Apache-2.0"
] | 44 | 2021-04-21T02:41:55.000Z | 2022-03-09T03:01:16.000Z | ppcd/utils/loss_compute.py | MinZHANG-WHU/PdRSCD | 612976225201d78adc7ff99529ada17b41fedc5d | [
"Apache-2.0"
] | 2 | 2021-09-30T07:52:47.000Z | 2022-02-12T09:05:35.000Z | ppcd/utils/loss_compute.py | MinZHANG-WHU/PdRSCD | 612976225201d78adc7ff99529ada17b41fedc5d | [
"Apache-2.0"
] | 6 | 2021-07-23T02:18:39.000Z | 2022-01-14T01:15:50.000Z | # import paddle
| 39.651163 | 96 | 0.567155 |
d6f151a961ded81e75f0e5f337aec384c9bf1232 | 28,150 | py | Python | aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py | adegomme/aiida-bigdft-plugin | dfd17f166a8cd547d3e581c7c3c9f4eb32bd2aab | [
"MIT"
] | 2 | 2020-06-10T02:45:59.000Z | 2020-08-05T18:55:05.000Z | aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py | mikiec84/aiida-bigdft-plugin | ce6ddc69def97977fe0209861ea7f1637090b60f | [
"MIT"
] | 6 | 2019-12-15T19:35:34.000Z | 2021-05-07T15:32:18.000Z | aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py | mikiec84/aiida-bigdft-plugin | ce6ddc69def97977fe0209861ea7f1637090b60f | [
"MIT"
] | 1 | 2020-08-05T18:55:21.000Z | 2020-08-05T18:55:21.000Z |
import numpy as np
from futile.Utils import write
HaeV = 27.21138386
def _occ_and_virt(log):
"""
Extract the number of occupied and empty orbitals from a logfile
"""
norb = log.log['Total Number of Orbitals']
if log.log['Spin treatment'] == 'Averaged':
norbv = log.evals[0].info[0]-norb
... | 37.383798 | 79 | 0.590515 |
d6f34e314e7e198246f5d865ff9cf3535ca580d5 | 1,290 | py | Python | pi-pytorch/tutorials/sensor/eval.py | tongni1975/stackup-workshops | d83f1d5adcc0b133b10e22d1db295020af967bac | [
"MIT"
] | 12 | 2018-07-21T14:38:55.000Z | 2020-08-18T07:27:39.000Z | pi-pytorch/tutorials/sensor/eval.py | tongni1975/stackup-workshops | d83f1d5adcc0b133b10e22d1db295020af967bac | [
"MIT"
] | 1 | 2019-07-28T03:17:44.000Z | 2019-12-14T09:01:18.000Z | pi-pytorch/tutorials/sensor/eval.py | tongni1975/stackup-workshops | d83f1d5adcc0b133b10e22d1db295020af967bac | [
"MIT"
] | 10 | 2018-06-12T07:54:07.000Z | 2020-08-18T07:31:47.000Z | import torch
from torch.autograd import Variable
from sklearn.metrics import confusion_matrix, classification_report
import numpy as np
import time
# import our model and data
from rnn import RNN
from data import get_data
hidden_size = 10
learning_rate = 0.01
num_layers = 2
num_epochs = 1000
sequence_length = 10
batc... | 24.807692 | 67 | 0.712403 |
d6f3a4cb8ec73baf05b168d49488b8ba1e024e77 | 357 | py | Python | semesterIII/FADP/Exp2.py | ShreerajRaul/ghriet | 4ff8372ced0c871f019a61b735c60725b6d373d4 | [
"MIT"
] | null | null | null | semesterIII/FADP/Exp2.py | ShreerajRaul/ghriet | 4ff8372ced0c871f019a61b735c60725b6d373d4 | [
"MIT"
] | null | null | null | semesterIII/FADP/Exp2.py | ShreerajRaul/ghriet | 4ff8372ced0c871f019a61b735c60725b6d373d4 | [
"MIT"
] | null | null | null | # Solve the quadratic equation ax**2 + bx + c = 0
# import complex math module
import cmath
a=int(input("Enter a:"))
b=int(input("Enter b:"))
c=int(input("Enter c:"))
# calculate the discriminant
d = (b**2) - (4*a*c)
# find two solutions
sol1 = (-b-cmath.sqrt(d))/(2*a)
sol2 = (-b+cmath.sqrt(d))/(2*a)
print('The solutio... | 29.75 | 55 | 0.641457 |
d6f3ad28cff5e5298f763872e2703f17b36665e5 | 712 | py | Python | very_scratch/dl_vs_vbo.py | ibrahemesam/Fos | f2f284a2c7bdc24dafafebb8aa3141ebf225e451 | [
"BSD-3-Clause"
] | 2 | 2016-08-03T10:33:08.000Z | 2021-06-23T18:50:14.000Z | scratch/very_scratch/dl_vs_vbo.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | null | null | null | scratch/very_scratch/dl_vs_vbo.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | 1 | 2021-07-11T00:16:46.000Z | 2021-07-11T00:16:46.000Z | import numpy as np
from fos.core.scene import Scene
from fos.core.plots import Plot
from fos.core.tracks import Tracks
from fos.core.points import Points
#data=200*np.random.rand(1000000,3)
#colors=np.random.rand(1000000,4)
data=[200*np.random.rand(int(np.round(30*np.random.rand()))+1,3).astype('float32') for i in... | 24.551724 | 106 | 0.698034 |
d6f4d7ce78ee83568625e15f5b3230cc4dd9e69a | 419 | py | Python | src/ipyradiant/visualization/__init__.py | dfreeman06/ipyradiant | 6298889eb0d28c0dda01c4fc9d422814b9858878 | [
"BSD-3-Clause"
] | null | null | null | src/ipyradiant/visualization/__init__.py | dfreeman06/ipyradiant | 6298889eb0d28c0dda01c4fc9d422814b9858878 | [
"BSD-3-Clause"
] | 7 | 2020-07-21T12:48:13.000Z | 2020-07-24T15:27:26.000Z | src/ipyradiant/visualization/__init__.py | dfreeman06/ipyradiant | 6298889eb0d28c0dda01c4fc9d422814b9858878 | [
"BSD-3-Clause"
] | 1 | 2020-07-20T20:45:49.000Z | 2020-07-20T20:45:49.000Z | """vis widgets
"""
# Copyright (c) 2020 ipyradiant contributors.
# Distributed under the terms of the Modified BSD License.
__all__ = [
"CytoscapeVisualizer",
"DatashaderVisualizer",
"VisualizerBase",
"LayoutSelector",
"NXBase",
]
from .base import NXBase, VisualizerBase
from .cytoscape import Cyto... | 24.647059 | 58 | 0.75895 |
d6f5093886a911828813b1cbd57ad326b9f81128 | 11,780 | py | Python | src/cascade/stats/compartmental.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | src/cascade/stats/compartmental.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | src/cascade/stats/compartmental.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | r"""
.. _compartmental-modeling-tools:
Compartmental Modeling Tools
----------------------------
These functions build theoretical distributions with which to understand
how Dismod-AT works, and how disease processes work.
1. Specify a disease process by making simple Python functions that
return disease rates ... | 29.672544 | 107 | 0.655178 |
d6f5c1437a7d4728359f187da5b4e39080bc257e | 722 | py | Python | apps/badge/migrations/0010_auto_20161112_2017.py | lestrato/badgepack | 7432c0ead1d5f63dd509620a0bb06bd76828b590 | [
"MS-PL"
] | 3 | 2016-10-21T01:35:46.000Z | 2020-11-07T01:20:05.000Z | apps/badge/migrations/0010_auto_20161112_2017.py | lestrato/badgepack | 7432c0ead1d5f63dd509620a0bb06bd76828b590 | [
"MS-PL"
] | 31 | 2016-10-31T19:28:53.000Z | 2017-01-19T16:55:49.000Z | apps/badge/migrations/0010_auto_20161112_2017.py | lestrato/badgepack | 7432c0ead1d5f63dd509620a0bb06bd76828b590 | [
"MS-PL"
] | 1 | 2020-11-07T01:20:07.000Z | 2020-11-07T01:20:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-13 01:17
from __future__ import unicode_literals
from django.db import migrations, models
import randomslugfield.fields
| 26.740741 | 122 | 0.628809 |
d6f5c7c92dd0905f3aec94fff3ac8b43d06bc4f8 | 2,084 | py | Python | pynars/utils/tools.py | AIxer/PyNARS | 443b6a5e1c9779a1b861df1ca51ce5a190998d2e | [
"MIT"
] | null | null | null | pynars/utils/tools.py | AIxer/PyNARS | 443b6a5e1c9779a1b861df1ca51ce5a190998d2e | [
"MIT"
] | null | null | null | pynars/utils/tools.py | AIxer/PyNARS | 443b6a5e1c9779a1b861df1ca51ce5a190998d2e | [
"MIT"
] | null | null | null | import sys
from typing import Callable, List
try:
sys.getsizeof(0)
getsizeof = lambda x: sys.getsizeof(x)
except:
# import resource
getsizeof = lambda _: 1#resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
def get_size(obj, seen=None):
"""Recursively finds size of objects"""
size = getsizeof(... | 33.079365 | 374 | 0.640595 |
d6f7adc0b1077f898d2e6f6848ac5efb072221fd | 7,331 | py | Python | funwalk/hyphae.py | cameronmartino/funwalk | 24d4bcf6790322f53c0e066492303b4fd2e0980e | [
"MIT"
] | null | null | null | funwalk/hyphae.py | cameronmartino/funwalk | 24d4bcf6790322f53c0e066492303b4fd2e0980e | [
"MIT"
] | null | null | null | funwalk/hyphae.py | cameronmartino/funwalk | 24d4bcf6790322f53c0e066492303b4fd2e0980e | [
"MIT"
] | 1 | 2019-12-16T19:45:03.000Z | 2019-12-16T19:45:03.000Z | from __future__ import division
import numpy as np
import pandas as pd
import math
from tqdm import tqdm
from matplotlib.colors import rgb2hex | 47.915033 | 116 | 0.506343 |
d6f9290567678db771e6a8c50fd70341df8c77a3 | 1,636 | py | Python | Tree/(CODECHEF) Binary_Operations.py | XitizVerma/Data-Structures-and-Algorithms-Advanced | 610225eeb7e0b4ade229ec86355901ad1ca38784 | [
"MIT"
] | 1 | 2020-08-27T06:59:52.000Z | 2020-08-27T06:59:52.000Z | Tree/(CODECHEF) Binary_Operations.py | XitizVerma/Data-Structures-and-Algorithms-Advanced | 610225eeb7e0b4ade229ec86355901ad1ca38784 | [
"MIT"
] | null | null | null | Tree/(CODECHEF) Binary_Operations.py | XitizVerma/Data-Structures-and-Algorithms-Advanced | 610225eeb7e0b4ade229ec86355901ad1ca38784 | [
"MIT"
] | null | null | null | import sys
sys.setrecursionlimit(10**6)
root = None
main(int(input())) | 27.266667 | 81 | 0.56846 |
d6fa1a37daf66eeb44908ffa65e9185aef668bb0 | 814 | py | Python | kubernetes/generate.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | kubernetes/generate.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | kubernetes/generate.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | from kubernetes import client, config
import json
# YML
if __name__ == '__main__':
main()
| 22 | 73 | 0.443489 |
d6fb376cc1a2cdba245a1630f216a970be324900 | 1,680 | py | Python | manim/animation/update.py | philschatz/manim | e3359a571d9a02a08979b3e037ddada3e874eb7c | [
"MIT"
] | 5 | 2019-02-22T14:10:08.000Z | 2022-03-13T01:03:49.000Z | manim/animation/update.py | philschatz/manim | e3359a571d9a02a08979b3e037ddada3e874eb7c | [
"MIT"
] | 17 | 2021-04-10T13:47:17.000Z | 2021-05-17T21:25:30.000Z | manim/animation/update.py | philschatz/manim | e3359a571d9a02a08979b3e037ddada3e874eb7c | [
"MIT"
] | 1 | 2021-03-31T20:46:51.000Z | 2021-03-31T20:46:51.000Z | """Animations that update mobjects."""
__all__ = ["UpdateFromFunc", "UpdateFromAlphaFunc", "MaintainPositionRelativeTo"]
import operator as op
import typing
from ..animation.animation import Animation
if typing.TYPE_CHECKING:
from ..mobject.mobject import Mobject
| 28.965517 | 81 | 0.674405 |
d6fb8c0182b842a2a3c6c84fa4f6e7466f61a46b | 5,583 | py | Python | nets/mobilenet.py | DanielWong0623/Dog-Face-Recognition-PyTorch | 70920a65617d9b6de59919d8920e4a1a133d58d3 | [
"MIT"
] | null | null | null | nets/mobilenet.py | DanielWong0623/Dog-Face-Recognition-PyTorch | 70920a65617d9b6de59919d8920e4a1a133d58d3 | [
"MIT"
] | null | null | null | nets/mobilenet.py | DanielWong0623/Dog-Face-Recognition-PyTorch | 70920a65617d9b6de59919d8920e4a1a133d58d3 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
# ----------------------
# MobileNetV1
# ----------------------
# +BN+ReLU
# DW++BN+ReLU
# ----------------------
# MobileNet V2
# ----------------------
if __name__ == '__main__':
model = MobileNetV2()
# model = MobileNetV1()
input = t... | 30.675824 | 105 | 0.51818 |
d6fc1bb2c513a94df13f8c3502baea0cf10d6404 | 538 | py | Python | xbrr/edinet/reader/aspects/stock.py | 5laps2go/xbrr | 4c0824b53bfe971111d60e6c1ff4e36f4f4845a3 | [
"MIT"
] | null | null | null | xbrr/edinet/reader/aspects/stock.py | 5laps2go/xbrr | 4c0824b53bfe971111d60e6c1ff4e36f4f4845a3 | [
"MIT"
] | null | null | null | xbrr/edinet/reader/aspects/stock.py | 5laps2go/xbrr | 4c0824b53bfe971111d60e6c1ff4e36f4f4845a3 | [
"MIT"
] | null | null | null | from xbrr.base.reader.base_parser import BaseParser
from xbrr.edinet.reader.element_value import ElementValue
| 38.428571 | 96 | 0.665428 |
d6fc289ed39bfadb67662fbe1b9dc0d8849d8f8c | 2,031 | py | Python | ClusterAuthors.py | wjs018/JitaChat | 0b289f7f6e65c1a8b0627e7c3573307580042d1c | [
"MIT"
] | null | null | null | ClusterAuthors.py | wjs018/JitaChat | 0b289f7f6e65c1a8b0627e7c3573307580042d1c | [
"MIT"
] | null | null | null | ClusterAuthors.py | wjs018/JitaChat | 0b289f7f6e65c1a8b0627e7c3573307580042d1c | [
"MIT"
] | null | null | null | """This program first reads in the sqlite database made by ParseAuthors.py.
Then, after just a little data cleaning, it undergoes PCA decomposition.
After being decomposed via PCA, the author data is then clustered by way of a
K-means clustering algorithm. The number of clusters can be set by changing
the value of n_cl... | 31.734375 | 89 | 0.690793 |
d6fcc73481c40c481a1a9aa8423bcb41c20526de | 718 | py | Python | Leetcode/304. Range Sum Query 2D - Immutable/solution1.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | Leetcode/304. Range Sum Query 2D - Immutable/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | null | null | null | Leetcode/304. Range Sum Query 2D - Immutable/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z |
# Your NumMatrix object will be instantiated and called as such:
# obj = NumMatrix(matrix)
# param_1 = obj.sumRegion(row1,col1,row2,col2)
| 42.235294 | 116 | 0.568245 |
d6fd117c0e7ff9f0666672a6e3ed6dee73755e6c | 2,951 | py | Python | backend/app/ColorConsole.py | GJCav/thywy | 3c458bccdd23bab78b6a8bd65603c7845e643d70 | [
"MIT"
] | 8 | 2022-01-23T07:30:06.000Z | 2022-02-15T03:39:25.000Z | backend/app/ColorConsole.py | Dr-Left/thuwy | 3c458bccdd23bab78b6a8bd65603c7845e643d70 | [
"MIT"
] | 5 | 2022-01-21T03:31:22.000Z | 2022-03-04T00:01:59.000Z | backend/app/ColorConsole.py | Dr-Left/thuwy | 3c458bccdd23bab78b6a8bd65603c7845e643d70 | [
"MIT"
] | 2 | 2022-01-23T08:09:46.000Z | 2022-02-24T05:55:02.000Z | """
\033[0m ->
\033[;;m ->
0 -
1 -
4 -
5 -
7 -
8 -
30 -
31 -
32 -
33 -
34 -
35 -
36 -
37 -
:
40 -
+10
"""
from copy import copy as _copy
METHOD_DEFAULT = -1
METHOD_BOLD = 1
METHOD_UNDERLINE = 4
METHOD_... | 22.18797 | 83 | 0.689597 |
ba334945cd720fa1ed44ce5324c0dde69e532940 | 5,765 | py | Python | src/pnmol/kernels.py | schmidtjonathan/pnmol-experiments | e07396079e2f2038011f3a377022482991090c5a | [
"MIT"
] | 1 | 2022-02-24T18:25:43.000Z | 2022-02-24T18:25:43.000Z | src/pnmol/kernels.py | schmidtjonathan/pnmol-experiments | e07396079e2f2038011f3a377022482991090c5a | [
"MIT"
] | null | null | null | src/pnmol/kernels.py | schmidtjonathan/pnmol-experiments | e07396079e2f2038011f3a377022482991090c5a | [
"MIT"
] | null | null | null | import abc
from functools import cached_property, partial
import jax
import jax.numpy as jnp
def __add__(self, other):
return Lambda(pairwise_new)
class Lambda(_PairwiseKernel):
def duplicate(kernel, num):
"""Create a stack of kernels such that the Gram matrix becomes block diagonal.
... | 27.193396 | 88 | 0.640937 |
ba3469f6edcb9686d5729fdce8d6db4a402b74d8 | 148 | py | Python | pkgs/ops-pkg/src/genie/libs/ops/msdp/ios/msdp.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 94 | 2018-04-30T20:29:15.000Z | 2022-03-29T13:40:31.000Z | pkgs/ops-pkg/src/genie/libs/ops/msdp/ios/msdp.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 67 | 2018-12-06T21:08:09.000Z | 2022-03-29T18:00:46.000Z | pkgs/ops-pkg/src/genie/libs/ops/msdp/ios/msdp.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 49 | 2018-06-29T18:59:03.000Z | 2022-03-10T02:07:59.000Z | # super class
from genie.libs.ops.msdp.iosxe.msdp import Msdp as MsdpXE
| 18.5 | 58 | 0.601351 |
ba3553670d430c80e3adc22fd5128171a993576f | 740 | py | Python | tests/api/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | 5 | 2020-09-24T20:29:08.000Z | 2022-03-17T14:50:56.000Z | tests/api/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | 126 | 2020-10-01T23:38:34.000Z | 2022-03-31T08:26:28.000Z | tests/api/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | 5 | 2020-09-29T21:29:46.000Z | 2021-07-27T20:34:58.000Z | import aiohttp
import pytest
from aiohttp import web
from virtool_workflow.api.client import JobApiHttpSession
from tests.api.mocks.mock_api import mock_routes
| 21.764706 | 76 | 0.768919 |
ba389c274378dda4739cb2b43943f78e0f632ed1 | 1,359 | py | Python | src/pbn_api/migrations/0021_auto_20210808_1204.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/pbn_api/migrations/0021_auto_20210808_1204.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/pbn_api/migrations/0021_auto_20210808_1204.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.14 on 2021-08-08 10:04
from django.db import migrations, models
| 29.543478 | 74 | 0.557763 |
ba38dbf48279ca33d67ba94668726fa34f3bcd92 | 11,047 | py | Python | all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py | Heroku-elasa/-heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | null | null | null | all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py | Heroku-elasa/-heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | 15 | 2021-03-18T20:25:13.000Z | 2022-03-02T14:54:33.000Z | all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py | Heroku-elasa/heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | 1 | 2017-03-04T16:48:55.000Z | 2017-03-04T16:48:55.000Z | """Unit test for google.py"""
__author__ = "Mark Pilgrim (f8dy@diveintomark.org)"
__version__ = "$Revision: 1.4 $"
__date__ = "$Date: 2004/02/06 21:00:53 $"
__copyright__ = "Copyright (c) 2002 Mark Pilgrim"
__license__ = "Python"
import google
import unittest
import sys, os
import GoogleSOAPFacade
from StringIO impor... | 37.962199 | 111 | 0.650674 |
ba38dbf6245155e0bd5d6fb74ada7b2d40f61c9a | 1,591 | py | Python | services/processdata/processdata/server.py | matheusmercadante/space-hub | 6956d4fad5c92f2ce5903852bdd77e124d7941ef | [
"RSA-MD"
] | null | null | null | services/processdata/processdata/server.py | matheusmercadante/space-hub | 6956d4fad5c92f2ce5903852bdd77e124d7941ef | [
"RSA-MD"
] | null | null | null | services/processdata/processdata/server.py | matheusmercadante/space-hub | 6956d4fad5c92f2ce5903852bdd77e124d7941ef | [
"RSA-MD"
] | null | null | null | import sys
import asyncio
import tornado.ioloop
from classes.rabbitmq_tornado import TornadoAdapter
from tornado import gen
from services.read_sheet import read_sheet
RABBIT_URI = "amqp://guest:guest@localhost:5672/"
if __name__ == "__main__":
if sys.platform == 'win32':
asyncio.set_event_loop_policy(as... | 30.596154 | 109 | 0.615336 |
ba3a19f10a71c2771193a02d9bae8cb86fc3ea41 | 16,428 | py | Python | second-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | null | null | null | second-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | 1 | 2021-06-02T03:55:13.000Z | 2021-06-02T03:55:13.000Z | second-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import json
import argparse
import re
import datetime
import paramiko
import requests
# cmd ['ssh', 'smart',
# 'mkdir -p /home/levabd/smart-home-temp-humidity-monitor;
# cat - > /home/levabd/smart-home-temp-humidity-monitor/lr.json']
from btlewrap import available_backends, Blu... | 40.562963 | 126 | 0.623204 |
ba3ad00158e6db261842bb50d50fbeca583ec7db | 2,880 | py | Python | swot_simulator/error/orbital.py | CNES/swot_simulator | 92d0bb4a274ec9923265567968beea3be4283e61 | [
"BSD-3-Clause"
] | 17 | 2020-05-28T08:20:11.000Z | 2022-03-25T07:40:48.000Z | swot_simulator/error/orbital.py | CNES/swot_simulator | 92d0bb4a274ec9923265567968beea3be4283e61 | [
"BSD-3-Clause"
] | 7 | 2021-07-21T02:15:52.000Z | 2021-11-14T10:46:41.000Z | swot_simulator/error/orbital.py | CNES/swot_simulator | 92d0bb4a274ec9923265567968beea3be4283e61 | [
"BSD-3-Clause"
] | 8 | 2020-05-17T13:53:43.000Z | 2022-03-25T07:40:58.000Z | # Copyright (c) 2021 CNES/JPL
#
# All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""
Orbital error
-------------
"""
from typing import Dict, Tuple
#
import dask.array as da
import numpy as np
#
from .. import random_signal
from .. import setti... | 30.315789 | 77 | 0.587847 |
ba3d14185541e8c15e9893b318d33f3a291b4fb0 | 20,940 | py | Python | backend/mlarchive/archive/thread.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 6 | 2022-03-09T23:10:28.000Z | 2022-03-21T05:32:40.000Z | backend/mlarchive/archive/thread.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 5 | 2022-03-11T09:39:47.000Z | 2022-03-30T16:48:09.000Z | backend/mlarchive/archive/thread.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 4 | 2022-03-04T15:36:19.000Z | 2022-03-28T23:45:44.000Z | '''This module implements the Zawinksi threading algorithm.
https://www.jwz.org/doc/threading.html
The main function is process(), which takes a queryset, ie. all messages
in a list, and returns the root_node of a container tree representing
the thread. Use root_node.walk() to walk the container tree.
NOTE: There ar... | 33.397129 | 86 | 0.600621 |
ba3d64caf9b23b40b170a7ff0947a7ebfbb45f53 | 105 | py | Python | app.py | dhain/sample-flask | 0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0 | [
"MIT"
] | null | null | null | app.py | dhain/sample-flask | 0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0 | [
"MIT"
] | null | null | null | app.py | dhain/sample-flask | 0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
| 11.666667 | 23 | 0.609524 |
ba3d6d86036397b9fc9ae01e0520c0aaed2cc04e | 2,942 | py | Python | AIRtaxi-server/taxi.py | manuelnaranjo/AIRtaxi | a168c3f239b01274bc5c85dbe1e05ddd28fb4596 | [
"Apache-2.0"
] | 1 | 2015-09-19T06:45:23.000Z | 2015-09-19T06:45:23.000Z | AIRtaxi-server/taxi.py | manuelnaranjo/AIRtaxi | a168c3f239b01274bc5c85dbe1e05ddd28fb4596 | [
"Apache-2.0"
] | null | null | null | AIRtaxi-server/taxi.py | manuelnaranjo/AIRtaxi | a168c3f239b01274bc5c85dbe1e05ddd28fb4596 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011 Manuel Francisco Naranjo <manuel at aircable dot net>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.... | 23.725806 | 77 | 0.657716 |
ba3dee974a940c282171ed9e43e895bc5c1ce3fc | 370 | py | Python | mjpoll/__init__.py | DarkWizarD24/mjpoll | 877eb45ca713a2e03a84deff4765f282b870e635 | [
"MIT"
] | null | null | null | mjpoll/__init__.py | DarkWizarD24/mjpoll | 877eb45ca713a2e03a84deff4765f282b870e635 | [
"MIT"
] | null | null | null | mjpoll/__init__.py | DarkWizarD24/mjpoll | 877eb45ca713a2e03a84deff4765f282b870e635 | [
"MIT"
] | null | null | null | # coding: utf-8
from flask import Flask
from flask_babel import Babel
from flask_bootstrap import Bootstrap
app = Flask(__name__)
app.config.from_pyfile('application.cfg')
app.secret_key = '_\xeb\xaa9\xea\xb9&\xe8\xdfx\xd4oKu\x01\xf3\x94d\x08\xdeGs\x11<' #TODO get if from config
babel = Babel(app)
Bootstrap(app)
... | 19.473684 | 107 | 0.775676 |
ba3e99a2d1a0148697392807082e928f2f44d6e9 | 10,039 | py | Python | ci/scripts/python/nrf5_cmake/library.py | perfectco/cmake-nRF5x | 08b9158fa7bfa0c8641df468d48917dec46fb115 | [
"MIT"
] | 111 | 2017-11-21T06:21:18.000Z | 2022-03-30T07:40:03.000Z | ci/scripts/python/nrf5_cmake/library.py | perfectco/cmake-nRF5x | 08b9158fa7bfa0c8641df468d48917dec46fb115 | [
"MIT"
] | 41 | 2018-01-09T15:44:11.000Z | 2021-10-31T08:45:24.000Z | ci/scripts/python/nrf5_cmake/library.py | giuliocorradini/cmake-nRF5x | a5b5d489768dc397a7eddc57d4ad65e6b3039b08 | [
"MIT"
] | 39 | 2018-03-13T14:03:10.000Z | 2022-02-28T17:46:17.000Z | from __future__ import annotations
from unittest import TestCase
from enum import Enum
from typing import Dict, Iterable, Optional, Set, List
from jsonschema import validate as validate_json
from nrf5_cmake.property import Access, Property
from nrf5_cmake.version import Version
def set_prop(self, property_name... | 30.237952 | 87 | 0.526248 |
ba3fa1f81fc3f907994226a859f6bf6f9f5f75f2 | 1,149 | py | Python | Estacionamento/core/migrations/0007_auto_20180826_1328.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | 1 | 2018-08-21T12:26:02.000Z | 2018-08-21T12:26:02.000Z | Estacionamento/core/migrations/0007_auto_20180826_1328.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | null | null | null | Estacionamento/core/migrations/0007_auto_20180826_1328.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-26 13:28
from django.db import migrations, models
import django.db.models.deletion
| 30.236842 | 114 | 0.562228 |
ba3faff0153dfc6fc7c4666344478aeca4379d35 | 246 | py | Python | gamla/data.py | 0xnurl/gamla | f3903ef5138a6fd94b910abf6ee7665e744d8537 | [
"MIT"
] | null | null | null | gamla/data.py | 0xnurl/gamla | f3903ef5138a6fd94b910abf6ee7665e744d8537 | [
"MIT"
] | null | null | null | gamla/data.py | 0xnurl/gamla | f3903ef5138a6fd94b910abf6ee7665e744d8537 | [
"MIT"
] | null | null | null | import dataclasses
import json
import dataclasses_json
| 18.923077 | 74 | 0.691057 |
ba40978bf21bdd4277341b0362355d60c177f3a7 | 2,069 | py | Python | src/installer/src/tortuga/package/rpm.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 33 | 2018-03-02T17:07:39.000Z | 2021-05-21T18:02:51.000Z | src/installer/src/tortuga/package/rpm.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 201 | 2018-03-05T14:28:24.000Z | 2020-11-23T19:58:27.000Z | src/installer/src/tortuga/package/rpm.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 23 | 2018-03-02T17:21:59.000Z | 2020-11-18T14:52:38.000Z | # Copyright 2008-2018 Univa Corporation
#
# 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... | 31.348485 | 78 | 0.628323 |
ba41ba647531a6e0fb784e885f85d47c2246f90c | 1,022 | py | Python | where/estimation/rejectors/gnss_pdop_cov.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 16 | 2018-08-31T10:31:11.000Z | 2022-03-15T16:07:24.000Z | where/estimation/rejectors/gnss_pdop_cov.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 5 | 2018-07-13T14:04:24.000Z | 2021-06-17T02:14:44.000Z | where/estimation/rejectors/gnss_pdop_cov.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 15 | 2018-06-07T05:45:24.000Z | 2022-03-15T16:07:27.000Z | """Reject observations based on PDOP, which is based on estimated covariance matrix of unknowns
Description:
------------
Identifies observations from the dataset with PDOP greater than a configured limit.
"""
# External library imports
import numpy as np
# Midgard imports
from midgard.dev import plugins
# Where i... | 24.333333 | 95 | 0.726027 |
ba41f739b5b8880b18c2364e081ff83f4ded08cc | 1,248 | py | Python | main.py | TobisMa/GUI | b88ea203378be464f1daaad5c5d41baaecd43f82 | [
"MIT"
] | null | null | null | main.py | TobisMa/GUI | b88ea203378be464f1daaad5c5d41baaecd43f82 | [
"MIT"
] | null | null | null | main.py | TobisMa/GUI | b88ea203378be464f1daaad5c5d41baaecd43f82 | [
"MIT"
] | null | null | null | import pygame, time
from pygame.constants import QUIT, WINDOWCLOSE
#from src import *
win = pygame.display.set_mode([800,600], 16)
pygame.init()
quitcount = 0
while True:
win.fill([200, 200, 200])
for event in pygame.event.get():
if event.type in (
#pygame.QUIT,
#pygame.WINDOWCL... | 27.130435 | 95 | 0.559295 |
ba4270166ab265fb092eb79d9e9b77ce2ea5445d | 376 | py | Python | code/glucocheck/homepage/migrations/0009_auto_20210316_2008.py | kmcgreg5/Glucocheck | 4ab4ada7f967ae41c1241c94523d14e693e05dd4 | [
"FSFAP"
] | null | null | null | code/glucocheck/homepage/migrations/0009_auto_20210316_2008.py | kmcgreg5/Glucocheck | 4ab4ada7f967ae41c1241c94523d14e693e05dd4 | [
"FSFAP"
] | null | null | null | code/glucocheck/homepage/migrations/0009_auto_20210316_2008.py | kmcgreg5/Glucocheck | 4ab4ada7f967ae41c1241c94523d14e693e05dd4 | [
"FSFAP"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-16 20:08
from django.db import migrations, models
| 19.789474 | 48 | 0.590426 |
ba43ab4474fde3f20ff82136cb2e5742c53c8ff0 | 4,838 | py | Python | qc3/libpango/fonts.py | wtfo-guru/queconverter | fc3529e46d5af1d90840c52ed9f58fb3c255523b | [
"BSD-2-Clause"
] | null | null | null | qc3/libpango/fonts.py | wtfo-guru/queconverter | fc3529e46d5af1d90840c52ed9f58fb3c255523b | [
"BSD-2-Clause"
] | null | null | null | qc3/libpango/fonts.py | wtfo-guru/queconverter | fc3529e46d5af1d90840c52ed9f58fb3c255523b | [
"BSD-2-Clause"
] | null | null | null | #
# Copyright (C) 2016-2020 by Ihor E. Novikov
# Copyright (C) 2020 by Krzysztof Broski
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at y... | 30.427673 | 84 | 0.713725 |
ba43edc0fc43df598c8d46e089a42825fd6726ad | 2,137 | py | Python | runserver.py | charbec1/pokemapfuntimesyay | d8301930c7733041114ca33fe26117d7157d9149 | [
"MIT"
] | null | null | null | runserver.py | charbec1/pokemapfuntimesyay | d8301930c7733041114ca33fe26117d7157d9149 | [
"MIT"
] | null | null | null | runserver.py | charbec1/pokemapfuntimesyay | d8301930c7733041114ca33fe26117d7157d9149 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import logging
from threading import Thread
from pogom import config
from pogom.app import Pogom
from pogom.utils import get_args, insert_mock_data, load_credentials
from pogom.search import search_loop
from pogom.models import create_tables, Pokemon
from pogom.pgo... | 30.971014 | 109 | 0.697707 |
ba45bd44680c7dc2e0849f1579c858f34a20a5ed | 3,695 | py | Python | feature/plot/label_window.py | yatszhash/kaggle-grasp-and-lift-eeg-detection | fd1785d20234579ab75e8bc3aa987baf46678cc9 | [
"MIT"
] | null | null | null | feature/plot/label_window.py | yatszhash/kaggle-grasp-and-lift-eeg-detection | fd1785d20234579ab75e8bc3aa987baf46678cc9 | [
"MIT"
] | null | null | null | feature/plot/label_window.py | yatszhash/kaggle-grasp-and-lift-eeg-detection | fd1785d20234579ab75e8bc3aa987baf46678cc9 | [
"MIT"
] | null | null | null | import re
from multiprocessing.pool import Pool
from pathlib import Path
from typing import Union
import numpy as np
import pandas as pd
from google.cloud import storage
from feature.plot.to_images import PlotWriter
from utils.data.eegdataloader import EegDataLoader
gs_client = storage.Client()
LABEL_FILE_NAME = "ev... | 39.731183 | 105 | 0.660081 |
ba45fe8e373630e80ff13ce801d49d7f931b8428 | 1,244 | py | Python | volatility/contrib/plugins/disablewarnings.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | 2 | 2018-07-16T13:30:40.000Z | 2018-07-17T12:02:05.000Z | volatility/contrib/plugins/disablewarnings.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | volatility/contrib/plugins/disablewarnings.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | # Volatility
#
# Authors:
# Mike Auty <mike.auty@gmail.com>
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your op... | 34.555556 | 78 | 0.716238 |
ba461124d0a9ab2a2e0ef88850964f9e884cd6d4 | 1,471 | py | Python | tests/test_application_support.py | sturmianseq/thundra-agent-python | 4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56 | [
"Apache-2.0"
] | 22 | 2018-03-05T20:02:46.000Z | 2021-04-09T12:00:18.000Z | tests/test_application_support.py | sturmianseq/thundra-agent-python | 4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56 | [
"Apache-2.0"
] | 13 | 2018-03-26T07:57:57.000Z | 2021-06-29T14:22:52.000Z | tests/test_application_support.py | thundra-io/thundra-agent-python | 448e18c17d8730c381b2e2a773782cf80c5a7cfb | [
"Apache-2.0"
] | 3 | 2021-08-07T14:19:23.000Z | 2021-12-08T15:35:40.000Z | from thundra.application.application_info_provider import ApplicationInfoProvider
from thundra.config import config_names
from thundra.config.config_provider import ConfigProvider
| 33.431818 | 91 | 0.78518 |
ba47aae912bab03eeec32d53c9d7b3b8de1668c7 | 54,161 | py | Python | rubikscolorresolver/cube_555.py | jmsutariya/cube-tracker | 2296d68883acbd3430110318420d09f98c186e91 | [
"MIT"
] | 29 | 2017-03-03T23:47:53.000Z | 2021-12-20T19:43:35.000Z | rubikscolorresolver/cube_555.py | jmsutariya/cube-tracker | 2296d68883acbd3430110318420d09f98c186e91 | [
"MIT"
] | 6 | 2017-03-12T05:25:27.000Z | 2022-03-27T08:20:25.000Z | rubikscolorresolver/cube_555.py | jmsutariya/cube-tracker | 2296d68883acbd3430110318420d09f98c186e91 | [
"MIT"
] | 18 | 2017-08-31T13:28:58.000Z | 2021-12-20T19:43:09.000Z | corner_tuples = (
(1, 26, 105),
(5, 101, 80),
(21, 51, 30),
(25, 76, 55),
(126, 50, 71),
(130, 75, 96),
(146, 125, 46),
(150, 100, 121),
)
edge_orbit_id = {
2: 0,
3: 1,
4: 0,
6: 0,
11: 1,
16: 0,
10: 0,
15: 1,
20: 0,
22: 0,
23: 1,
24: 0, #... | 27.96128 | 44 | 0.255848 |
ba4893ab88ff1d7c68c6773f7219ebc4e78b9dfe | 697 | py | Python | icekit_events/migrations/0018_auto_20170314_1401.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 52 | 2016-09-13T03:50:58.000Z | 2022-02-23T16:25:08.000Z | icekit_events/migrations/0018_auto_20170307_1458.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 304 | 2016-08-11T14:17:30.000Z | 2020-07-22T13:35:18.000Z | icekit_events/migrations/0018_auto_20170314_1401.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 12 | 2016-09-21T18:46:35.000Z | 2021-02-15T19:37:50.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import colorful.fields
| 33.190476 | 317 | 0.61406 |
ba48ba24fda8aa0f77aea9998163750beb72aff6 | 566 | py | Python | staff_erp/models/salary_info.py | saurabh-0777/odoo_project | c400ce051fcb69e7649285231080f6f6eddb2f8f | [
"MIT"
] | null | null | null | staff_erp/models/salary_info.py | saurabh-0777/odoo_project | c400ce051fcb69e7649285231080f6f6eddb2f8f | [
"MIT"
] | null | null | null | staff_erp/models/salary_info.py | saurabh-0777/odoo_project | c400ce051fcb69e7649285231080f6f6eddb2f8f | [
"MIT"
] | null | null | null | from odoo import api, fields, models
| 33.294118 | 59 | 0.503534 |
ba495e193a583955eddeccb6fd82723a1f293193 | 1,217 | py | Python | backend/apps/accounts/models.py | tingyeeh/Full-Backend | a4338019ed7e6c7e5059cb3c6f805d3c589588b1 | [
"MIT"
] | null | null | null | backend/apps/accounts/models.py | tingyeeh/Full-Backend | a4338019ed7e6c7e5059cb3c6f805d3c589588b1 | [
"MIT"
] | null | null | null | backend/apps/accounts/models.py | tingyeeh/Full-Backend | a4338019ed7e6c7e5059cb3c6f805d3c589588b1 | [
"MIT"
] | null | null | null | from django.db import models
name = models.CharField(pgettext_lazy(
"Name of Account", "Name"), max_length=64)
email = models.EmailField()
phone = PhoneNumberField(null=True)
industry = models.CharField(
_("Industry Type"),
max_length=255, choices=INDCHOICES,
blank=True,... | 32.026316 | 108 | 0.685292 |
ba49b434abc0426d76176a6199f207345e908862 | 2,318 | py | Python | data/datagen/explicit_1d.py | verdverm/pypge | 7f94595735c08e147bd17056f15d944da61eec6d | [
"MIT"
] | 43 | 2015-09-09T21:22:01.000Z | 2021-05-04T08:15:10.000Z | data/datagen/explicit_1d.py | verdverm/pypge | 7f94595735c08e147bd17056f15d944da61eec6d | [
"MIT"
] | 10 | 2016-03-31T21:54:06.000Z | 2019-11-26T22:40:32.000Z | data/datagen/explicit_1d.py | verdverm/pypge | 7f94595735c08e147bd17056f15d944da61eec6d | [
"MIT"
] | 9 | 2016-06-13T16:14:32.000Z | 2020-02-26T14:26:42.000Z | from pypge.benchmarks import explicit
import numpy as np
# visualization libraries
import matplotlib.pyplot as plt
# Set your output directories
img_dir = "../img/explicit/"
data_dir = "../benchmarks/explicit/"
names = [
"koza_01",
"koza_02",
"koza_03",
"lipson_01",
"lipson_02",
"lipson_03",
"nguyen_01",
... | 21.462963 | 74 | 0.672994 |
ba4ba7e002ea6d31161dc21ca21b7718fc4b612c | 1,193 | py | Python | build.py | ShawnFrueh/actions_test | c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9 | [
"MIT"
] | null | null | null | build.py | ShawnFrueh/actions_test | c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9 | [
"MIT"
] | null | null | null | build.py | ShawnFrueh/actions_test | c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9 | [
"MIT"
] | null | null | null | from os import mkdir
from pathlib import Path
from shutil import rmtree
from zipfile import ZipFile, ZIP_DEFLATED
# Get the root path to this repo
repo_dir = Path(__file__).parent
# Get the kit directory
kit_dir = repo_dir / "test_kit"
# Get the build directory
build_dir = repo_dir / "build"
# Get the license file
lic... | 30.589744 | 92 | 0.732607 |
ba4bfbd9b48331c0a448707899792ff20164dd6d | 4,557 | py | Python | examples/salesforce_to_bigquery_example.py | Ressmann/starthinker | 301c5cf17e382afee346871974ca2f4ae905a94a | [
"Apache-2.0"
] | 138 | 2018-11-28T21:42:44.000Z | 2022-03-30T17:26:35.000Z | examples/salesforce_to_bigquery_example.py | Ressmann/starthinker | 301c5cf17e382afee346871974ca2f4ae905a94a | [
"Apache-2.0"
] | 36 | 2019-02-19T18:33:20.000Z | 2022-01-24T18:02:44.000Z | examples/salesforce_to_bigquery_example.py | Ressmann/starthinker | 301c5cf17e382afee346871974ca2f4ae905a94a | [
"Apache-2.0"
] | 54 | 2018-12-06T05:47:32.000Z | 2022-02-21T22:01:01.000Z | ###########################################################################
#
# Copyright 2021 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/l... | 42.194444 | 175 | 0.675664 |
ba4cb12b8de5610b0cb63dfb5d497fc87e99f2ea | 1,965 | py | Python | cortaswamp/authentication/models.py | parthakonda/cortaswamp-backend | 5e6875cbe994931cd747ac0d614250e3a6649500 | [
"MIT"
] | null | null | null | cortaswamp/authentication/models.py | parthakonda/cortaswamp-backend | 5e6875cbe994931cd747ac0d614250e3a6649500 | [
"MIT"
] | null | null | null | cortaswamp/authentication/models.py | parthakonda/cortaswamp-backend | 5e6875cbe994931cd747ac0d614250e3a6649500 | [
"MIT"
] | null | null | null | import uuid
from django.db import models
from cortaswamp import enums
from django.contrib.auth.models import AbstractBaseUser, UserManager
from django.contrib.postgres.fields import JSONField
| 33.87931 | 79 | 0.690076 |
ba4d573b166c76762e7e2415d9817e7041d732f6 | 341 | py | Python | tweetsender/util.py | Udomomo/tweetsender | ac26da8d43945031c62f194ee41652fa819ed02f | [
"MIT"
] | null | null | null | tweetsender/util.py | Udomomo/tweetsender | ac26da8d43945031c62f194ee41652fa819ed02f | [
"MIT"
] | 8 | 2019-01-15T02:15:02.000Z | 2021-06-25T15:33:11.000Z | tweetsender/util.py | Udomomo/tweetsender | ac26da8d43945031c62f194ee41652fa819ed02f | [
"MIT"
] | null | null | null | import os, json
CONFIG_PATH = os.path.expanduser('~') + os.sep + '.tweetsender_config.json' | 22.733333 | 75 | 0.618768 |
ba4e5a47df9a1c04c2352fe65ad51bdbf29bb5ea | 42 | py | Python | Blinkee/Utils/__init__.py | terenaa/is-blinkee-nearby | 0ebf4d3007395ebe6f9283dd09ab325b8f361be2 | [
"MIT"
] | 1 | 2019-09-18T03:30:59.000Z | 2019-09-18T03:30:59.000Z | Blinkee/Utils/__init__.py | terenaa/is-blinkee-nearby | 0ebf4d3007395ebe6f9283dd09ab325b8f361be2 | [
"MIT"
] | 3 | 2018-08-27T11:55:36.000Z | 2021-08-24T16:54:36.000Z | Blinkee/Utils/__init__.py | terenaa/is-blinkee-nearby | 0ebf4d3007395ebe6f9283dd09ab325b8f361be2 | [
"MIT"
] | null | null | null | from .Cache import *
from .Utils import *
| 14 | 20 | 0.714286 |
ba4ed8f42161c47e07364d23da358704878de3a9 | 539 | py | Python | app/controller/yushu_book.py | dollarkillerx/PyFlaskLearning | b2c7d76572f9ec4a5ad17541f47aa06d22a2d153 | [
"MIT"
] | null | null | null | app/controller/yushu_book.py | dollarkillerx/PyFlaskLearning | b2c7d76572f9ec4a5ad17541f47aa06d22a2d153 | [
"MIT"
] | null | null | null | app/controller/yushu_book.py | dollarkillerx/PyFlaskLearning | b2c7d76572f9ec4a5ad17541f47aa06d22a2d153 | [
"MIT"
] | null | null | null | from utils.http import HTTP
| 26.95 | 75 | 0.634508 |
ba4f1ca539168f2211232cbdac786ec39f55d895 | 2,724 | py | Python | data_management/test/test_network_data_prep/TestAddOrientationAngleToLines.py | conklinbd/solutions-geoprocessing-toolbox | 7afab793ea34b7e7cb7e32757e8a150b6637ffd2 | [
"Apache-2.0"
] | null | null | null | data_management/test/test_network_data_prep/TestAddOrientationAngleToLines.py | conklinbd/solutions-geoprocessing-toolbox | 7afab793ea34b7e7cb7e32757e8a150b6637ffd2 | [
"Apache-2.0"
] | null | null | null | data_management/test/test_network_data_prep/TestAddOrientationAngleToLines.py | conklinbd/solutions-geoprocessing-toolbox | 7afab793ea34b7e7cb7e32757e8a150b6637ffd2 | [
"Apache-2.0"
] | 1 | 2018-10-25T15:52:41.000Z | 2018-10-25T15:52:41.000Z | #------------------------------------------------------------------------------
# Copyright 2013 Esri
# 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/LICENS... | 33.62963 | 101 | 0.653451 |
ba502f35836768f2cffa7616e7935f29ca032480 | 623 | py | Python | learn/services/repetition.py | Aigrefin/py3learn | 8104315689caff2523bda3b4ad70a807f4a43fa7 | [
"MIT"
] | null | null | null | learn/services/repetition.py | Aigrefin/py3learn | 8104315689caff2523bda3b4ad70a807f4a43fa7 | [
"MIT"
] | 1 | 2021-06-10T19:05:49.000Z | 2021-06-10T19:05:49.000Z | learn/services/repetition.py | Aigrefin/py3learn | 8104315689caff2523bda3b4ad70a807f4a43fa7 | [
"MIT"
] | null | null | null | import datetime
import math
import django
from py3njection import inject
from learn.infrastructure.configuration import LearnConfiguration
from learn.learn_base_settings import available_settings
| 36.647059 | 110 | 0.760835 |
ba50f0e38be2ab31ee4582ffc578be5f6fbd27ec | 632 | py | Python | apps/publications/migrations/0026_title_type_data_migration.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | 1 | 2019-12-12T15:38:42.000Z | 2019-12-12T15:38:42.000Z | apps/publications/migrations/0026_title_type_data_migration.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | apps/publications/migrations/0026_title_type_data_migration.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-06-15 08:51
from django.db import migrations
| 25.28 | 95 | 0.681962 |
ba54fc81a6a32822f3703f1f0570b73ce483b245 | 196 | py | Python | torchtable/operator/__init__.py | keitakurita/torchtable | e3ae98b5c5b2e809a43787a111bb30ca7f0240b9 | [
"MIT"
] | 2 | 2019-05-14T13:23:58.000Z | 2020-01-16T03:50:24.000Z | torchtable/operator/__init__.py | keitakurita/torchtable | e3ae98b5c5b2e809a43787a111bb30ca7f0240b9 | [
"MIT"
] | null | null | null | torchtable/operator/__init__.py | keitakurita/torchtable | e3ae98b5c5b2e809a43787a111bb30ca7f0240b9 | [
"MIT"
] | 1 | 2019-04-28T20:13:43.000Z | 2019-04-28T20:13:43.000Z | from .core import *
__all__ = ["Operator", "LambdaOperator", "TransformerOperator",
"Normalize", "FillMissing", "Vocab", "Categorize",
"ToTensor", "UnknownCategoryError", ]
| 32.666667 | 63 | 0.637755 |
ba591954fd47661d8b51e8d547bd2d12229468b7 | 1,358 | py | Python | trainer/model.py | Antoine-BL/chess-ai.py | c68ca76063c14b1b8b91d338c8cead9f411521ca | [
"MIT"
] | 2 | 2019-08-21T15:52:29.000Z | 2021-09-11T23:07:17.000Z | trainer/model.py | Antoine-BL/chess-ai.py | c68ca76063c14b1b8b91d338c8cead9f411521ca | [
"MIT"
] | 5 | 2020-09-25T23:15:31.000Z | 2022-02-10T00:07:33.000Z | trainer/model.py | Antoine-BL/EuroTruck-ai.py | c68ca76063c14b1b8b91d338c8cead9f411521ca | [
"MIT"
] | null | null | null | from tensorflow.python.keras.layers import Lambda, Convolution2D, BatchNormalization, Flatten, Dense, Cropping2D
from tensorflow.python.keras.models import Sequential
from tensorflow.python.keras.optimizers import Adam
from trainer.util import normalize, resize
| 28.291667 | 112 | 0.67894 |
ba5a6263e9060a2bbe3f845d221d8dd4af1cb784 | 3,292 | py | Python | node/blockchain/utils/lock.py | thenewboston-developers/Node | e71a405f4867786a54dd17ddd97595dd3a630018 | [
"MIT"
] | 18 | 2021-11-30T04:02:13.000Z | 2022-03-24T12:33:57.000Z | node/blockchain/utils/lock.py | thenewboston-developers/Node | e71a405f4867786a54dd17ddd97595dd3a630018 | [
"MIT"
] | 1 | 2022-02-04T17:07:38.000Z | 2022-02-04T17:07:38.000Z | node/blockchain/utils/lock.py | thenewboston-developers/Node | e71a405f4867786a54dd17ddd97595dd3a630018 | [
"MIT"
] | 5 | 2022-01-31T05:28:13.000Z | 2022-03-08T17:25:31.000Z | import functools
import logging
import time
from typing import Optional
from django.conf import settings
from django.db import transaction
from pymongo.errors import DuplicateKeyError
from node.core.database import get_database
from node.core.exceptions import BlockchainIsNotLockedError, BlockchainLockingError, Block... | 29.132743 | 109 | 0.662515 |
ba5bd16d958d549e745c8628fc70adf5078acfe8 | 1,272 | py | Python | researches/ocr/textbox/tb_preset.py | loveorchids/sroie2019 | d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05 | [
"Apache-2.0"
] | 14 | 2019-05-06T11:28:29.000Z | 2020-05-18T22:36:09.000Z | researches/ocr/textbox/tb_preset.py | loveorchids/sroie2019 | d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05 | [
"Apache-2.0"
] | 3 | 2019-09-02T16:11:32.000Z | 2019-10-22T14:47:03.000Z | researches/ocr/textbox/tb_preset.py | whq-hqw/sroie2019 | d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05 | [
"Apache-2.0"
] | 5 | 2020-06-10T05:13:46.000Z | 2021-07-29T03:38:55.000Z |
PRESET = {
"general": GeneralPattern,
"unique": Unique_Patterns,
"runtime": Runtime_Patterns,
} | 28.266667 | 86 | 0.673742 |
ba5bf2bbd4612e848682a3b4059b75e3c19f0d5e | 5,243 | py | Python | src/ml_things/text_functions.py | techthiyanes/ml_things | ddeeb16c55cf1d55cf80963217a8d1bffd0913cc | [
"Apache-2.0"
] | 153 | 2020-10-10T05:12:16.000Z | 2022-03-17T07:48:42.000Z | src/ml_things/text_functions.py | techthiyanes/ml_things | ddeeb16c55cf1d55cf80963217a8d1bffd0913cc | [
"Apache-2.0"
] | 21 | 2020-09-15T22:52:43.000Z | 2022-02-21T15:27:16.000Z | src/ml_things/text_functions.py | techthiyanes/ml_things | ddeeb16c55cf1d55cf80963217a8d1bffd0913cc | [
"Apache-2.0"
] | 42 | 2020-10-11T07:33:32.000Z | 2022-03-11T01:43:54.000Z | # coding=utf-8
# Copyright 2020 George Mihaila.
#
# 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... | 37.719424 | 119 | 0.682815 |
ba5efff6aa38c2a1a87edc12bea27198aedf9cbd | 1,027 | py | Python | samples/timeit_3.py | thierrydecker/learning-python | d67242740c33037e1ff270a8e2107f915e0fd44a | [
"Apache-2.0"
] | 1 | 2020-11-05T13:34:30.000Z | 2020-11-05T13:34:30.000Z | samples/timeit_3.py | thierrydecker/learning-python | d67242740c33037e1ff270a8e2107f915e0fd44a | [
"Apache-2.0"
] | null | null | null | samples/timeit_3.py | thierrydecker/learning-python | d67242740c33037e1ff270a8e2107f915e0fd44a | [
"Apache-2.0"
] | 1 | 2019-01-21T08:46:37.000Z | 2019-01-21T08:46:37.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
import ssl
from urllib.request import Request, urlopen
if __name__ == '__main__':
main()
| 24.452381 | 88 | 0.642648 |
ba6167c779919c2246e1ee1cf2219ff1f87621e9 | 9,594 | py | Python | lib/plugins/pcap/pcapsummary.py | 7h3rAm/rudra | bfbd5b81e6b262052e0810574a59d99903170f6a | [
"CC-BY-4.0"
] | 22 | 2015-08-10T04:47:45.000Z | 2021-02-28T06:15:30.000Z | lib/plugins/pcap/pcapsummary.py | 7h3rAm/rudra | bfbd5b81e6b262052e0810574a59d99903170f6a | [
"CC-BY-4.0"
] | 2 | 2015-11-22T15:48:37.000Z | 2019-01-07T19:49:06.000Z | lib/plugins/pcap/pcapsummary.py | 7h3rAm/rudra | bfbd5b81e6b262052e0810574a59d99903170f6a | [
"CC-BY-4.0"
] | 19 | 2015-09-20T16:31:25.000Z | 2020-03-04T10:04:48.000Z | from lib.external.PluginManager import PluginInterface, Manager
from prettytable import PrettyTable
from aayudh import utils, fileutils
import sys
import os
current_dir = os.path.abspath(os.path.dirname(__file__))
root_dir = os.path.normpath(os.path.join(current_dir, ".."))
sys.path.insert(0, root_dir)
Manager().... | 52.42623 | 157 | 0.607046 |
ba61b5bc2650055217908e9853377121e0e5e11e | 5,321 | py | Python | wilson/translate/__init__.py | bednya/wilson | 2cd803bc298c3f967401aed119f617fc5d7ba5c0 | [
"MIT"
] | 24 | 2018-04-16T15:01:39.000Z | 2022-01-26T07:16:22.000Z | wilson/translate/__init__.py | bednya/wilson | 2cd803bc298c3f967401aed119f617fc5d7ba5c0 | [
"MIT"
] | 85 | 2018-04-27T08:17:00.000Z | 2022-02-22T16:47:14.000Z | wilson/translate/__init__.py | bednya/wilson | 2cd803bc298c3f967401aed119f617fc5d7ba5c0 | [
"MIT"
] | 17 | 2018-04-27T07:59:35.000Z | 2022-02-09T22:46:05.000Z | """Provides basis translators for SMEFT and and WET that can be used with the
`wcxf` Python package."""
from . import smeft, smeft_higgs
from . import wet
from wilson import wcxf
| 33.677215 | 77 | 0.7352 |
ba65bc096367d297da217b8327a7fdb4c4c548e9 | 7,928 | py | Python | tests/test_nakfa.py | fscm/multicurrency | 5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91 | [
"MIT"
] | 2 | 2021-03-26T18:19:57.000Z | 2021-07-27T01:15:50.000Z | tests/test_nakfa.py | fscm/multicurrency | 5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91 | [
"MIT"
] | null | null | null | tests/test_nakfa.py | fscm/multicurrency | 5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
#
# copyright: 2020-2022, Frederico Martins
# author: Frederico Martins <http://github.com/fscm>
# license: SPDX-License-Identifier: MIT
"""Tests for the Nakfa currency representation(s)."""
from decimal import Context
from pytest import raises
from multicurrency import Currency
from multicurr... | 34.620087 | 79 | 0.531282 |
ba672fe8169d4c84126ede0b40af978dffb4452d | 6,314 | py | Python | src/output/statements.py | williamstein/jpython | 31175f97f42381f612b0b9661beb6b5e5c356d5c | [
"BSD-2-Clause"
] | null | null | null | src/output/statements.py | williamstein/jpython | 31175f97f42381f612b0b9661beb6b5e5c356d5c | [
"BSD-2-Clause"
] | null | null | null | src/output/statements.py | williamstein/jpython | 31175f97f42381f612b0b9661beb6b5e5c356d5c | [
"BSD-2-Clause"
] | null | null | null | # vim:fileencoding=utf-8
# License: BSD Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
from __python__ import hash_literals
from ast import (
AST_Definitions, AST_Scope, AST_Method, AST_Except, AST_EmptyStatement,
AST_Statement, AST_Seq, AST_BaseCall, AST_Dot, AST_Sub, AST_ItemAccess,
AST_Condition... | 35.077778 | 118 | 0.605163 |
ba673bdb3cd7a82d7bc50d66607572efdb6a45e2 | 3,443 | py | Python | server.py | dataculturegroup/news-entity-server | e0726098a46b70dac5a97dcd927e5f39c68e68d1 | [
"MIT"
] | null | null | null | server.py | dataculturegroup/news-entity-server | e0726098a46b70dac5a97dcd927e5f39c68e68d1 | [
"MIT"
] | 1 | 2022-03-14T21:01:33.000Z | 2022-03-29T13:54:35.000Z | server.py | dataculturegroup/news-entity-server | e0726098a46b70dac5a97dcd927e5f39c68e68d1 | [
"MIT"
] | null | null | null | import logging
import os
from dotenv import load_dotenv
import sentry_sdk
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
from sentry_sdk.integrations.logging import ignore_logger
from typing import Optional
import helpers
import helpers.content as content
import helpers.entities as entities
from helpers... | 34.089109 | 174 | 0.689805 |
ba676614bbcce93369400054be1dfe970a2717d6 | 1,319 | py | Python | tele_saavn.py | rsoorajs/Champ | eb6811bcb5bd0aff3464b1f996514419465dabfd | [
"MIT"
] | 17 | 2018-06-28T03:17:46.000Z | 2021-07-15T13:22:35.000Z | tele_saavn.py | rsoorajs/Champ | eb6811bcb5bd0aff3464b1f996514419465dabfd | [
"MIT"
] | null | null | null | tele_saavn.py | rsoorajs/Champ | eb6811bcb5bd0aff3464b1f996514419465dabfd | [
"MIT"
] | 23 | 2018-09-10T08:02:43.000Z | 2021-09-09T07:07:18.000Z | from bs4 import BeautifulSoup
import requests
| 30.674419 | 195 | 0.666414 |
ba6793f0192c80fc3bbd8b3d89303af7d816aba0 | 17,457 | py | Python | obsolete/profile_vs_profile.py | 861934367/cgat | 77fdc2f819320110ed56b5b61968468f73dfc5cb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 87 | 2015-01-01T03:48:19.000Z | 2021-11-23T16:23:24.000Z | obsolete/profile_vs_profile.py | 861934367/cgat | 77fdc2f819320110ed56b5b61968468f73dfc5cb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 189 | 2015-01-06T15:53:11.000Z | 2019-05-31T13:19:45.000Z | obsolete/profile_vs_profile.py | CGATOxford/cgat | 326aad4694bdfae8ddc194171bb5d73911243947 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 56 | 2015-01-13T02:18:50.000Z | 2022-01-05T10:00:59.000Z | ################################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publish... | 37.063694 | 156 | 0.539955 |
ba69035771c043a913fe7ffd868ffbc5084fb0f1 | 386 | py | Python | myforum/usercenter/models.py | zalax303/test_django | 5728e26c7b6a6287d126ba4058ba54680a9bace4 | [
"Apache-2.0"
] | null | null | null | myforum/usercenter/models.py | zalax303/test_django | 5728e26c7b6a6287d126ba4058ba54680a9bace4 | [
"Apache-2.0"
] | null | null | null | myforum/usercenter/models.py | zalax303/test_django | 5728e26c7b6a6287d126ba4058ba54680a9bace4 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
from django.db import models
from django.contrib.auth.models import User
| 29.692308 | 60 | 0.797927 |
ba69a75af6fe44e2f9b818fc23054a99d5ef6411 | 6,735 | py | Python | bin/calc_word.py | hasibaasma/alfpy | c8c0c1300108015746320cede2207ac57e630d3e | [
"MIT"
] | 19 | 2017-02-20T17:42:02.000Z | 2021-12-16T19:07:17.000Z | bin/calc_word.py | eggleader/alfpy | e0782e9551458ef17ab29df8af13fc0f8925e894 | [
"MIT"
] | 3 | 2018-03-12T23:54:27.000Z | 2020-12-09T21:53:19.000Z | bin/calc_word.py | eggleader/alfpy | e0782e9551458ef17ab29df8af13fc0f8925e894 | [
"MIT"
] | 6 | 2016-12-06T09:12:04.000Z | 2021-09-24T14:40:47.000Z | #! /usr/bin/env python
# Copyright (c) 2016 Zielezinski A, combio.pl
import argparse
import sys
from alfpy import word_distance
from alfpy import word_pattern
from alfpy import word_vector
from alfpy.utils import distmatrix
from alfpy.utils import seqrecords
from alfpy.version import __version__
if __name__ == ... | 37.837079 | 79 | 0.580401 |
ba69c5e73ad4a27f76fcd447918d6d125e088cb9 | 357 | py | Python | Exercicio-03.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | Exercicio-03.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | Exercicio-03.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | # Fazer com que o interpretador leia duas notas de um aluno, calcule e mostre a sua mdia.
n1 = float(input('\nDigite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
media = (n1 + n2) / 2
print('\nA primeira nota : {:.1f}.'.format(n1))
print('A segunda nota : {:.1f}.'.format(n2))
print('Portanto, sua ... | 44.625 | 90 | 0.661064 |
ba6a125993c48f123b66d0160468797d1cdb1777 | 9,712 | py | Python | rels/relations.py | sobolevn/rels | 3b0afb11f2b4325c8ede961809f151dacfa257ef | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2015-04-05T19:21:06.000Z | 2018-11-04T06:06:42.000Z | rels/relations.py | sobolevn/rels | 3b0afb11f2b4325c8ede961809f151dacfa257ef | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2015-06-08T07:41:45.000Z | 2018-11-03T07:15:40.000Z | rels/relations.py | sobolevn/rels | 3b0afb11f2b4325c8ede961809f151dacfa257ef | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2015-06-17T11:35:11.000Z | 2018-11-03T07:12:43.000Z | # coding: utf-8
# TODO: check full mapping of one enum to another (is every value of mapped enum has pair and vice versa)
# TODO: pep8
# TODO: pylint
# TODO: generate docs
# TODO: rewrite exceptions texts & rename exception classes
import random
from rels import exceptions
def __deepcopy__(self, memo):
... | 33.034014 | 151 | 0.611717 |
ba6aeda61d95d834eae2422e11670a7111135c85 | 18,770 | py | Python | dd_pose/evaluation_helpers.py | kevinsu628/dd-pose | 889d117170fd0bc86e1ca7fd5b429c54b225f35b | [
"MIT"
] | null | null | null | dd_pose/evaluation_helpers.py | kevinsu628/dd-pose | 889d117170fd0bc86e1ca7fd5b429c54b225f35b | [
"MIT"
] | null | null | null | dd_pose/evaluation_helpers.py | kevinsu628/dd-pose | 889d117170fd0bc86e1ca7fd5b429c54b225f35b | [
"MIT"
] | null | null | null | import numpy as np
import zipfile
from io import StringIO
import os
import json
import pandas as pd
import transformations as tr
from multiprocess import Pool
import plotly
import plotly.graph_objs as go
from dd_pose.dataset_item import DatasetItem, StampedTransforms
# a coordinate frame which allows for identity tr... | 35.752381 | 190 | 0.533724 |
ba6b4ad51525e09923ed5cb2a1d71dc3c0634e6a | 1,376 | py | Python | fw-rde/mnist/test_adver.py | morgankohler/FrankWolfe.jl | b878dc2c2038a3b4486d5f7cec47f1a8e024192e | [
"MIT"
] | null | null | null | fw-rde/mnist/test_adver.py | morgankohler/FrankWolfe.jl | b878dc2c2038a3b4486d5f7cec47f1a8e024192e | [
"MIT"
] | null | null | null | fw-rde/mnist/test_adver.py | morgankohler/FrankWolfe.jl | b878dc2c2038a3b4486d5f7cec47f1a8e024192e | [
"MIT"
] | null | null | null | import os
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import tensorflow.keras.backend as K
from models import load_model, load_adfmodel
from PIL import Image
# GENERAL PARAMETERS
MODE = 'diag' # 'diag', 'half', or 'full'
# LOAD MODEL
print(os.getcwd())
adfmodel = load... | 27.52 | 96 | 0.653343 |
ba6bc29f591786e97baca19f293cddeea2e887b4 | 2,210 | py | Python | dataApp.py | gauravpgaurav/CS412_HW5 | 0aee3fed7f0f1314d1f67ca59c73f137335b05fc | [
"MIT"
] | null | null | null | dataApp.py | gauravpgaurav/CS412_HW5 | 0aee3fed7f0f1314d1f67ca59c73f137335b05fc | [
"MIT"
] | null | null | null | dataApp.py | gauravpgaurav/CS412_HW5 | 0aee3fed7f0f1314d1f67ca59c73f137335b05fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 29 20:03:22 2018
@author: gauravpant
"""
import numpy as np
import pandas as pd
df=pd.read_csv('data/responses.csv', sep=',',header=0)
#f = open('data/responses.csv')
#csv_f = csv.reader(f)
#
#headers = []
#data = []
#
#
#for i, row in enumerate(... | 26.309524 | 75 | 0.658824 |
ba6f8c76a23c650a23be073851e814f43b243d61 | 3,388 | py | Python | src/analysis/directionAnalysis.py | mortbopet/NetCracker | 8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0 | [
"MIT"
] | 9 | 2021-02-21T13:27:03.000Z | 2021-12-22T17:21:43.000Z | src/analysis/directionAnalysis.py | mortbopet/NetCracker | 8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0 | [
"MIT"
] | null | null | null | src/analysis/directionAnalysis.py | mortbopet/NetCracker | 8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0 | [
"MIT"
] | 5 | 2021-02-22T02:55:44.000Z | 2021-12-22T17:23:09.000Z | from src.switchbox import *
from src.point import *
from src.netcrackerformat import *
from src.sbhelper import *
from src.direction import *
from src.logger import *
from src.analysis.posBasedFilter import *
from src.analysis.analysispass import *
from src.analysis.directionAnalysis import *
# =====================... | 41.317073 | 111 | 0.61157 |
ba70c1544876182a4809d2b55655af0fcfecfac0 | 422 | py | Python | actions/get_project_components.py | AnushkaKamerkar/stackstorm-jira | 44063968dcfa2e117599b3afaa67007bade9e4ae | [
"Apache-2.0"
] | null | null | null | actions/get_project_components.py | AnushkaKamerkar/stackstorm-jira | 44063968dcfa2e117599b3afaa67007bade9e4ae | [
"Apache-2.0"
] | null | null | null | actions/get_project_components.py | AnushkaKamerkar/stackstorm-jira | 44063968dcfa2e117599b3afaa67007bade9e4ae | [
"Apache-2.0"
] | null | null | null | from lib.base import BaseJiraAction
from lib.formatters import to_project_dict
__all__ = [
'GetJiraProjectComponentsAction'
]
| 22.210526 | 64 | 0.78436 |
ba711fe318893ea8e97e7dc75d344bc0d3740047 | 2,773 | py | Python | mwcp_parsers/_blzpack.py | CybercentreCanada/assemblyline-service-configextractor | ab456ed6bac2ae60dea56890b0e5d0cc42c7c519 | [
"MIT"
] | 2 | 2021-06-18T14:53:21.000Z | 2021-07-03T11:45:42.000Z | mwcp_parsers/_blzpack.py | CybercentreCanada/assemblyline-service-configextractor | ab456ed6bac2ae60dea56890b0e5d0cc42c7c519 | [
"MIT"
] | 5 | 2020-11-04T16:06:38.000Z | 2022-01-28T16:17:38.000Z | mwcp_parsers/_blzpack.py | CybercentreCanada/assemblyline-service-configextractor | ab456ed6bac2ae60dea56890b0e5d0cc42c7c519 | [
"MIT"
] | 2 | 2021-05-30T11:37:25.000Z | 2021-06-24T12:57:35.000Z | #included from https://github.com/sysopfb/brieflz
import os
from ctypes import *
import binascii
import zlib
import struct
CURR_DIR = os.path.abspath(os.path.dirname(__file__))
LIB_PATH = os.path.join(CURR_DIR, 'blzpack_lib.so')
brieflz = cdll.LoadLibrary(LIB_PATH)
DEFAULT_BLOCK_SIZE = 1024 * 1024
if __name__ == "... | 36.973333 | 157 | 0.658853 |
ba7274fdeb109e756700ed964fe5bf59624cafdd | 27,897 | py | Python | reader/bidafv1/model.py | lixinsu/RCZoo | 37fcb7962fbd4c751c561d4a0c84173881ea8339 | [
"MIT"
] | 166 | 2018-08-07T03:35:02.000Z | 2022-01-11T10:40:09.000Z | reader/bidafv1/model.py | lixinsu/RCZoo | 37fcb7962fbd4c751c561d4a0c84173881ea8339 | [
"MIT"
] | 16 | 2018-08-17T09:53:37.000Z | 2019-06-17T12:58:00.000Z | reader/bidafv1/model.py | lixinsu/RCZoo | 37fcb7962fbd4c751c561d4a0c84173881ea8339 | [
"MIT"
] | 45 | 2018-08-27T06:38:42.000Z | 2021-01-17T11:12:39.000Z | #!/usr/bin/env python3
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""DrQA Document Reader model"""
import math
import random
import ipdb
import torch
import torch.optim as opt... | 39.570213 | 90 | 0.521633 |
ba73f67adbc8b73a37bc38ab585323628b65c5c4 | 414 | py | Python | firstApp/migrations/0006_alter_registration_degree.py | sayan706/SchoolWebsite | 8a3faea4582e3c15f0d33347e6c0793a78481c52 | [
"MIT"
] | null | null | null | firstApp/migrations/0006_alter_registration_degree.py | sayan706/SchoolWebsite | 8a3faea4582e3c15f0d33347e6c0793a78481c52 | [
"MIT"
] | null | null | null | firstApp/migrations/0006_alter_registration_degree.py | sayan706/SchoolWebsite | 8a3faea4582e3c15f0d33347e6c0793a78481c52 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-10 09:29
from django.db import migrations, models
| 21.789474 | 61 | 0.618357 |
ba74d6985832776a9d24326b66b17b4e74388e84 | 10,385 | py | Python | tests/reports/test_controls_reporter.py | FoxoTech/methylcheck | 881d14d78e6086aab184716e0b79cdf87e9be8bf | [
"MIT"
] | 2 | 2019-10-13T21:42:14.000Z | 2019-10-16T19:08:49.000Z | tests/reports/test_controls_reporter.py | FoxoTech/methylcheck | 881d14d78e6086aab184716e0b79cdf87e9be8bf | [
"MIT"
] | 11 | 2021-04-08T16:14:54.000Z | 2022-03-09T00:22:13.000Z | tests/reports/test_controls_reporter.py | LifeEGX/methQC | 2b4f960e7e5c7baca9dc778ca05ee332e2f27653 | [
"MIT"
] | 1 | 2020-01-09T14:26:02.000Z | 2020-01-09T14:26:02.000Z | from pathlib import Path
import pandas as pd
import numpy as np
import logging
#patching
import unittest
try:
# python 3.4+ should use builtin unittest.mock not mock package
from unittest.mock import patch
except ImportError:
from mock import patch
#app
import methylcheck
import methylprep
TESTPATH = 'te... | 68.774834 | 375 | 0.658739 |
ba7602227a8f014510f10efc052090714dcb5668 | 8,261 | py | Python | home-assistant/custom_components/yahoofinance/__init__.py | square-spade/SmartHouse | 1566fe6153321908ff4cda48f6ff5cdf5de8fe67 | [
"MIT"
] | 136 | 2019-06-27T08:11:47.000Z | 2022-03-11T12:26:53.000Z | home-assistant/custom_components/yahoofinance/__init__.py | square-spade/SmartHouse | 1566fe6153321908ff4cda48f6ff5cdf5de8fe67 | [
"MIT"
] | 5 | 2020-05-30T00:19:22.000Z | 2022-03-25T18:49:47.000Z | home-assistant/custom_components/yahoofinance/__init__.py | square-spade/SmartHouse | 1566fe6153321908ff4cda48f6ff5cdf5de8fe67 | [
"MIT"
] | 63 | 2019-07-15T21:11:58.000Z | 2022-03-13T09:43:24.000Z | """
The Yahoo finance component.
https://github.com/iprak/yahoofinance
"""
from datetime import timedelta
import logging
from typing import Union
import async_timeout
from homeassistant.const import CONF_SCAN_INTERVAL
from homeassistant.helpers import discovery
from homeassistant.helpers.aiohttp_client import async_... | 31.056391 | 89 | 0.642658 |
ba77c3decd45da528d69e289a995dee1a225f06b | 651 | py | Python | Exercicios/ex109 - Formatando moedas em python.py | anderdot/curso-em-video-python | ea295cf0afa914ff9ab9acb87c458d77e3fb62ad | [
"MIT"
] | null | null | null | Exercicios/ex109 - Formatando moedas em python.py | anderdot/curso-em-video-python | ea295cf0afa914ff9ab9acb87c458d77e3fb62ad | [
"MIT"
] | null | null | null | Exercicios/ex109 - Formatando moedas em python.py | anderdot/curso-em-video-python | ea295cf0afa914ff9ab9acb87c458d77e3fb62ad | [
"MIT"
] | null | null | null | # Desafio 109: Modifique as funes que form criadas no desafio 107 para que
# elas aceitem um parmetro a mais, informando se o valor retornado por elas
# vai ser ou no formatado pela funo moeda(), desenvolvida no desafio 108.
from rotinas import titulo
from modulos.ex109 import moeda as m
valor = int(input('Digite um... | 50.076923 | 80 | 0.709677 |
ba78d40a2e3b13b764928d8aba27030d20c5d6fc | 2,485 | py | Python | dev/backend/src/mod_audio_recognition/bean.py | dannyphan2910/music-lyrics | 19ca60793648a12f62ed92f3198c1e8cf12a4af4 | [
"MIT"
] | null | null | null | dev/backend/src/mod_audio_recognition/bean.py | dannyphan2910/music-lyrics | 19ca60793648a12f62ed92f3198c1e8cf12a4af4 | [
"MIT"
] | 6 | 2021-03-10T12:32:51.000Z | 2022-03-02T06:32:13.000Z | dev/backend/src/mod_audio_recognition/bean.py | dannyphan2910/music-lyrics | 19ca60793648a12f62ed92f3198c1e8cf12a4af4 | [
"MIT"
] | 1 | 2021-04-23T15:55:54.000Z | 2021-04-23T15:55:54.000Z | import json
import tempfile
from acrcloud.recognizer import ACRCloudRecognizeType
from acrcloud.recognizer import ACRCloudRecognizer
from mod_track_search.bean import get_track_id
from model.Track import Track
| 24.85 | 89 | 0.55171 |
ba7944516d0e09575b93381855069585973ab4f1 | 460 | py | Python | tests/test_timedelete.py | giuliocalzolari/pse_timecard | 5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c | [
"WTFPL"
] | 11 | 2019-08-21T09:21:53.000Z | 2022-02-06T21:41:34.000Z | tests/test_timedelete.py | giuliocalzolari/pse_timecard | 5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c | [
"WTFPL"
] | 22 | 2019-08-21T09:17:58.000Z | 2022-03-14T20:04:10.000Z | tests/test_timedelete.py | giuliocalzolari/pse_timecard | 5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c | [
"WTFPL"
] | 9 | 2019-08-21T11:43:34.000Z | 2021-11-08T15:36:24.000Z | from freezegun import freeze_time
from salesforce_timecard.core import TimecardEntry
import pytest
import json
| 27.058824 | 63 | 0.730435 |
ba7ad226bb8b4632a379714c4c4d790425eadeb6 | 390 | py | Python | OptimizationAlgorithms/LearningAlgorithm.py | AhmedHani/Python-Neural-Networks-API | ead1e53403e078bb807dafceca70d785514507e1 | [
"MIT"
] | 1 | 2015-05-01T00:56:53.000Z | 2015-05-01T00:56:53.000Z | OptimizationAlgorithms/LearningAlgorithm.py | AhmedHani/Python-Neural-Networks-API | ead1e53403e078bb807dafceca70d785514507e1 | [
"MIT"
] | null | null | null | OptimizationAlgorithms/LearningAlgorithm.py | AhmedHani/Python-Neural-Networks-API | ead1e53403e078bb807dafceca70d785514507e1 | [
"MIT"
] | 2 | 2017-08-11T17:02:52.000Z | 2018-07-21T10:40:43.000Z | __author__ = 'Ahmed Hani Ibrahim'
import abc
| 21.666667 | 58 | 0.597436 |
ba7c58e3f8b1ffafeeabbe872253fc40a288cb72 | 4,359 | py | Python | backend/app/app/api/api_v1/endpoints/auth.py | dmitritruf/distiller-django-react | ec4c3837194306e725d8a2437ace10a899a254d2 | [
"BSD-3-Clause"
] | 2 | 2021-11-04T16:27:33.000Z | 2021-11-04T20:09:19.000Z | backend/app/app/api/api_v1/endpoints/auth.py | OpenChemistry/distiller | 67da87672654555f9821590f42b108d70a55c1a6 | [
"BSD-3-Clause"
] | 70 | 2021-11-04T16:34:52.000Z | 2022-03-30T02:52:17.000Z | backend/app/app/api/api_v1/endpoints/auth.py | dmitritruf/distiller-django-react | ec4c3837194306e725d8a2437ace10a899a254d2 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime, timedelta, timezone
from typing import Optional
from fastapi import (APIRouter, Depends, HTTPException, Request, Response,
status)
from jose import JWTError, jwt
from sqlalchemy.orm import Session
from app.api.deps import get_current_user, get_db
from app.api.utils ... | 31.135714 | 88 | 0.699014 |
ba7d6a9e7d22a756e68ebfce9d1c8d488b047ed1 | 222 | py | Python | String/058. Length of Last Word.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | String/058. Length of Last Word.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | String/058. Length of Last Word.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | """
58. Length of Last Word
"""
| 18.5 | 39 | 0.45045 |
ba7f1880c2b90a49559f5960814c055b80809594 | 5,201 | py | Python | federatedscope/gfl/fedsageplus/utils.py | alibaba/FederatedScope | fcf6d237624769ea094cfd68803901622f14fc23 | [
"Apache-2.0"
] | 9 | 2022-03-24T07:59:37.000Z | 2022-03-31T06:47:52.000Z | federatedscope/gfl/fedsageplus/utils.py | alibaba/FederatedScope | fcf6d237624769ea094cfd68803901622f14fc23 | [
"Apache-2.0"
] | 1 | 2022-03-28T13:52:17.000Z | 2022-03-28T13:52:17.000Z | federatedscope/gfl/fedsageplus/utils.py | alibaba/FederatedScope | fcf6d237624769ea094cfd68803901622f14fc23 | [
"Apache-2.0"
] | null | null | null | import torch
from torch_geometric.data import Data
from torch_geometric.transforms import BaseTransform
from torch_geometric.utils import to_networkx, from_networkx
import networkx as nx
import numpy as np
from federatedscope.core.configs.config import global_cfg
| 38.813433 | 87 | 0.594886 |
ba808edd6b754acefb4ce6a96df843f114f8d03a | 4,259 | py | Python | samples/update_esxi_advanced_settings.py | whchoi98/whchoi_pyvmomi-community-samples | 4bc90d0780267d9c14382ae72b50ef3475a96e46 | [
"Apache-2.0"
] | null | null | null | samples/update_esxi_advanced_settings.py | whchoi98/whchoi_pyvmomi-community-samples | 4bc90d0780267d9c14382ae72b50ef3475a96e46 | [
"Apache-2.0"
] | null | null | null | samples/update_esxi_advanced_settings.py | whchoi98/whchoi_pyvmomi-community-samples | 4bc90d0780267d9c14382ae72b50ef3475a96e46 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# William Lam
# www.virtuallyghetto.com
"""
vSphere Python SDK program for updating ESXi Advanced Settings
Usage:
python update_esxi_advanced_settings.py -s 192.168.1.200 \
-u 'administrator@vsphere.local' \
-p VMware1! -c VSAN-Cluster -k VSAN.ClomRepairDelay -v 120
"""
import argpa... | 31.087591 | 76 | 0.532285 |