hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
8de07753d8112e17484865d9eb71f8e6d5d640f0
3,133
py
Python
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ api access for google sheets (and friends) Usage: googapis auth (sheets|docs|drive)... [options] [--drive-scope=<SCOPE>...] Examples: googapis auth sheets Options: --store-file=<PATH>... write to a specific store file -n --readonly set the readonly scope -...
27.973214
88
0.551867
1,768
0.564315
641
0.204596
748
0.238749
0
0
1,144
0.365145
8de1b7d242ca78d038847d03a2a25db0ebb7c8e2
517
py
Python
Leetcode/0484. Find Permutation/0484-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0484. Find Permutation/0484-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0484. Find Permutation/0484-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def findPermutation(self, s: str) -> List[int]: ans = [i for i in range(1, len(s) + 2)] # for each D* group (s[i..j]), reverse ans[i..j + 1] i = -1 j = -1 def getNextIndex(c: chr, start: int) -> int: for i in range(start, len(s)): if s[i] == c: return i ...
22.478261
56
0.477756
516
0.998066
0
0
0
0
0
0
58
0.112186
8de1d142174d05fb9706941c985835cf92bd890c
242
py
Python
allauth/account/admin.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
1
2015-11-05T15:17:10.000Z
2015-11-05T15:17:10.000Z
allauth/account/admin.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
null
null
null
allauth/account/admin.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
null
null
null
from django.contrib import admin # from models import PasswordReset # # class PasswordResetAdmin(admin.ModelAdmin): # list_display = ["user", "temp_key", "timestamp", "reset"] # # admin.site.register(PasswordReset, PasswordResetAdmin)
26.888889
63
0.747934
0
0
0
0
0
0
0
0
202
0.834711
8de28136620ecc67d3f38af5cae41d8092c4a0be
165
py
Python
src/wayscript/errors.py
wayscript/wayscript-python
55abcf4f22869fccf6dbc7853444b70339683f2a
[ "MIT" ]
17
2019-04-17T18:48:51.000Z
2022-01-28T08:47:07.000Z
src/wayscript/errors.py
Plataformaalgoritmica/wayscript-python
a0ddaf849b879631c2bab3ab1ea0878e3df10812
[ "MIT" ]
1
2019-11-13T18:11:00.000Z
2019-11-13T18:13:13.000Z
src/wayscript/errors.py
Plataformaalgoritmica/wayscript-python
a0ddaf849b879631c2bab3ab1ea0878e3df10812
[ "MIT" ]
9
2020-01-09T23:06:39.000Z
2022-01-01T12:02:51.000Z
""" WayScript Errors """ class MissingCredentialsError(Exception): """Error thrown when a workspace integration does not have requisite credentials""" pass
20.625
87
0.745455
138
0.836364
0
0
0
0
0
0
107
0.648485
8de62c242c479afad43ca797ee2384f022ddfbb5
10,112
py
Python
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
import numpy as np from itertools import product from tensorflow.keras.models import load_model from sklearn.feature_selection import SelectKBest, f_regression from joblib import load import random as rnd class Gridex: def __init__(self, target, name, ext, feat, steps, th, adap = None): print("GridEx -"...
36.114286
153
0.426721
9,906
0.979628
0
0
0
0
0
0
463
0.045787
8de91facddbd7d35bd7ba7937ee91b396276006a
630
py
Python
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
6
2020-04-07T21:29:42.000Z
2021-06-08T00:23:53.000Z
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
null
null
null
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
null
null
null
import xmltodict from browsers import load_firefox GOOGLE_SITEMAP_URL = "https://careers.google.com/jobs/sitemap" def get_xml(): browser = load_firefox() browser.get(GOOGLE_SITEMAP_URL) jobs_data = xmltodict.parse(browser.page_source) browser.quit() return jobs_data def get_jobs(): jobs_dat...
21
62
0.646032
0
0
0
0
0
0
0
0
79
0.125397
8deb27f0761e2aaaa60c41fe1b1bca80aaa1cfe7
9,162
py
Python
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
# Testing Upload image feature import tempfile import os from PIL import Image # ---------------- from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework import test from rest_framework.test import APIClient ...
35.238462
79
0.649967
7,598
0.829295
0
0
0
0
0
0
1,962
0.214145
8dee03510c0ac2b9c5008f158836e0b55eedc40e
1,666
py
Python
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
import requests from lxml import html import os import sys sys.path.append("..") header = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"} def adafruitScrape(link): link = link.strip() response = requests.get(link,headers=head...
37.863636
141
0.647659
0
0
0
0
0
0
0
0
460
0.27611
8def1994e3ba6e7b2d4593ea911ee13f3f4389a8
5,288
py
Python
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
1
2021-12-04T18:09:44.000Z
2021-12-04T18:09:44.000Z
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
import pdb import subprocess from functools import partial, wraps from math import prod from pathlib import Path from pprint import pprint from string import ( ascii_lowercase, digits as ascii_digits, ) from typing import Any, Callable, List, Iterable, Optional, Union from toolz import ( # type: ignore com...
27.398964
79
0.644667
0
0
0
0
0
0
0
0
1,963
0.371218
8def1e2453ca4173ec7af3b63bf0b6b393ac0493
349
py
Python
polymorhism/pol_testing/abc_class.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
polymorhism/pol_testing/abc_class.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
polymorhism/pol_testing/abc_class.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Abstract(ABC): PRICE = 0 @abstractmethod def __init__(self, name, age): self.name = name self.age = age @abstractmethod def show_name_capitalize(self): return self.name.title() @abstractmethod def show_price(self): ...
19.388889
35
0.644699
311
0.891117
0
0
259
0.74212
0
0
0
0
8def2c408250901fc2c3f380e46aa6707b949f5d
2,463
py
Python
git_commit/pyscreen-test.py
Asura-one/tools
669b59eb429f0503618f14618a73c0721d2bd8cc
[ "MIT" ]
null
null
null
git_commit/pyscreen-test.py
Asura-one/tools
669b59eb429f0503618f14618a73c0721d2bd8cc
[ "MIT" ]
null
null
null
git_commit/pyscreen-test.py
Asura-one/tools
669b59eb429f0503618f14618a73c0721d2bd8cc
[ "MIT" ]
null
null
null
import npyscreen import os import getpass import subprocess class mainform(npyscreen.ActionForm): def create(self): self.OSPath = "/SYS64 3.7/" self.full_path = os.getcwd() self.CurrentPath = "" self.dir_path = os.path.dirname(os.path.realpath(__file__)) opt_values = ["jdos...
36.220588
75
0.494925
2,322
0.942753
0
0
0
0
0
0
364
0.147787
8defd7400006559bffbbff0680b35455d86ade71
2,665
py
Python
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
76
2015-08-31T18:34:14.000Z
2021-10-16T13:33:52.000Z
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
41
2015-09-02T01:52:55.000Z
2022-02-28T21:50:31.000Z
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
43
2015-09-02T14:41:37.000Z
2021-12-01T16:52:08.000Z
#!/usr/bin/python # # Copyright (c) Facebook, Inc. and its affiliates. # # 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...
32.5
132
0.641651
1,701
0.638274
0
0
0
0
0
0
1,457
0.546717
8defe0931ec33c13ad662fc15043aa6c6f5e4581
3,209
py
Python
programa educativo de matematica.py
lucaslk122/Programa-de-matematica-basica-para-criancas
bd62ea8c1dd339290483b45b1a6f4a31a5c7e366
[ "MIT" ]
null
null
null
programa educativo de matematica.py
lucaslk122/Programa-de-matematica-basica-para-criancas
bd62ea8c1dd339290483b45b1a6f4a31a5c7e366
[ "MIT" ]
null
null
null
programa educativo de matematica.py
lucaslk122/Programa-de-matematica-basica-para-criancas
bd62ea8c1dd339290483b45b1a6f4a31a5c7e366
[ "MIT" ]
null
null
null
3# -*- coding: utf-8 -*- """ Created on Thu May 28 14:31:02 2020 @author: Lucas """ import random acertos = 0 erros = 0 perguntas = 0 print("Programa educativo matematico") print("""Digite a opção desejada [1] para Soma [2] para subtração [3] para divisão [4] para multiplicação""") opção = int...
35.263736
83
0.591773
0
0
0
0
0
0
0
0
1,303
0.396169
8df00c7b6abbb17febb26deca50443ccd300a865
4,763
py
Python
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
# taken largely from https://github.com/ianvonseggern1/note-prediction from pydub import AudioSegment import pydub.scipy_effects import numpy as np import scipy import matplotlib.pyplot as plt from solo_generation_esac import * from utils import frequency_spectrum, \ calculate_distance, \ classify_note_attemp...
35.81203
89
0.664707
0
0
0
0
0
0
0
0
1,641
0.344531
8df01847a7b4b8bed8f795d24425994dc853d3c0
2,720
py
Python
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
119
2020-10-06T16:27:05.000Z
2022-03-28T00:27:18.000Z
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
275
2020-10-07T22:32:53.000Z
2022-03-31T15:57:44.000Z
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
30
2020-10-08T23:00:01.000Z
2022-02-25T17:04:22.000Z
# Copyright 2021 The Trieste Contributors # # 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...
34
99
0.758088
0
0
0
0
0
0
0
0
614
0.225735
8df019add07d6cb9f3b378f45e28d9ed55ca4842
1,558
py
Python
BigChat/Contact/migrations/0001_initial.py
diannakan1998/BigChat
a87b2682c137c7de40288d68612c2ee15d47bcee
[ "MIT" ]
null
null
null
BigChat/Contact/migrations/0001_initial.py
diannakan1998/BigChat
a87b2682c137c7de40288d68612c2ee15d47bcee
[ "MIT" ]
2
2020-02-11T23:35:33.000Z
2020-06-05T19:36:53.000Z
BigChat/Contact/migrations/0001_initial.py
diannakan1998/BigChat
a87b2682c137c7de40288d68612c2ee15d47bcee
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-11-23 23:42 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ...
36.232558
143
0.564185
1,427
0.915918
0
0
0
0
0
0
236
0.151476
8df1c6f7606169d28d7470f55794f4e8e7d28814
493
py
Python
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
4
2020-06-19T20:51:36.000Z
2020-07-05T17:12:56.000Z
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
10
2020-04-24T09:05:52.000Z
2020-12-17T14:00:04.000Z
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
2
2020-10-22T18:12:52.000Z
2020-10-28T16:25:07.000Z
from compas_cloud import Proxy import time print("\n starting a new Proxy and by default starts a server in background") proxy = Proxy(background=True) time.sleep(3) print("\n restarting the background server and open a new one in a prompt console") proxy.background = False proxy.restart() time.sleep(3) print("\n ch...
24.65
83
0.760649
0
0
0
0
0
0
0
0
248
0.503043
8df1ebaaebb6455a233f57c92e803cc41ed159be
3,871
py
Python
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
#-----------------SUPERMARKET MANAGEMENT SYSTEM-------------------- items = [] while True: print('------------------Welcome to the supermarket------------------') print('1. View items\n2. Add items for sale\n3. Purchase items\n4. Search items \n5. Edit items\n6. Exit') choice = int(input('Enter the number o...
40.322917
110
0.453888
0
0
0
0
0
0
0
0
1,515
0.391372
8df2385af3f40cba7575f1c6c89a8a66c7739db0
23,993
py
Python
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
1
2020-06-18T21:11:57.000Z
2020-06-18T21:11:57.000Z
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
87
2019-09-30T08:28:00.000Z
2020-12-03T08:39:57.000Z
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
null
null
null
"""Contains the links that can be downloaded.""" from hashlib import sha1 import logging import os from pathlib import Path import re import warnings from bs4 import BeautifulSoup from requests import Response import unidecode from vcm.core.exceptions import AlgorithmFailureError, MoodleError, ResponseError from vcm....
30.681586
98
0.578919
23,342
0.972867
0
0
1,140
0.047514
0
0
5,183
0.216021
8df2655a19e924bcd99a2911fc97761b628649f1
7,472
py
Python
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
5
2021-04-29T21:07:18.000Z
2021-09-29T08:46:08.000Z
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
null
null
null
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
1
2018-04-07T12:26:21.000Z
2018-04-07T12:26:21.000Z
def main(): import pipedef pipe = pipedef.Pipeline() # ============================== GLOBAL PROPERTIES ================================= # global pipeline config pipe.config = { '_pipeline:_edge': {'capacity': 5}, } # ============================== INPUT FRAME LIST =============...
43.44186
111
0.636777
0
0
0
0
0
0
0
0
4,855
0.649759
8df37da869fe9f71df32fa2732b4a908910d89ba
1,918
py
Python
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, render_template import pandas as pd import joblib # Declare a Flask app app = Flask(__name__) def model_predict(i): if i==1: return "Normal" else: return "Abnormal" @app.route('/', methods=['GET', 'POST']) # Main function here def main(): # If a form...
38.36
316
0.67049
0
0
0
0
1,619
0.844108
0
0
587
0.306048
8df3d54be1b731de24ed84c4c006bd0811e68e83
864
py
Python
usersystem/urls.py
Kanciarzek/NkrsiSystem
ee3d19b1419ee64ccef05051a3892663e7d71625
[ "MIT" ]
null
null
null
usersystem/urls.py
Kanciarzek/NkrsiSystem
ee3d19b1419ee64ccef05051a3892663e7d71625
[ "MIT" ]
null
null
null
usersystem/urls.py
Kanciarzek/NkrsiSystem
ee3d19b1419ee64ccef05051a3892663e7d71625
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views urlpatterns = [ path('', views.index, name='index'), path('faq', views.faq, name='faq'), path('account/me/password/', views.change_password, name='user-password'), path('account/me/', views.view_user, name='user'), path('account/<int:user_id...
45.473684
120
0.681713
0
0
0
0
0
0
0
0
334
0.386574
8df499879e2e02643bddc0414a78f011539ed93e
424
py
Python
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
1
2020-06-26T13:28:43.000Z
2020-06-26T13:28:43.000Z
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
7
2021-11-18T19:46:08.000Z
2022-03-12T01:03:01.000Z
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
null
null
null
import unittest from dcp.leetcode.str.find_and_replace import findReplaceString class Test_FindAndReplace(unittest.TestCase): def test_case1(self): str_in = "jjievdtjfb" indexes, sources, targets = [4,6,1], ["md","tjgb","jf"], ["foe","oov","e"] actual = findReplaceString(str_in...
24.941176
82
0.639151
342
0.806604
0
0
0
0
0
0
51
0.120283
8df4c2e64e992b855a9e6d5e81533c702e3e464a
5,606
py
Python
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
import json from abc import ABCMeta, abstractmethod import six from moto.sts.models import ACCOUNT_ID @six.add_metaclass(ABCMeta) class TestConfig: """Provides the interface to use for creating test configurations. This class will provide the interface for what information will be needed for the SageMa...
29.197917
87
0.567428
5,462
0.974313
0
0
1,848
0.329647
0
0
1,763
0.314484
8df58a8ce58f2b9cb11cc66432ebc0ca83f1b1b9
22,904
py
Python
materials/_build/jupyter_execute/materials/lectures/04-virtual-environments.py
UBC-DSCI/reproducible-and-trustworthy-workflows-for-data-science
6676e628ec858acdfae43fbf5b27891849952e83
[ "CC-BY-4.0" ]
null
null
null
materials/_build/jupyter_execute/materials/lectures/04-virtual-environments.py
UBC-DSCI/reproducible-and-trustworthy-workflows-for-data-science
6676e628ec858acdfae43fbf5b27891849952e83
[ "CC-BY-4.0" ]
1
2022-01-06T00:23:55.000Z
2022-01-06T00:23:55.000Z
materials/_build/jupyter_execute/materials/lectures/04-virtual-environments.py
UBC-DSCI/reproducible-and-trustworthy-workflows-for-data-science
6676e628ec858acdfae43fbf5b27891849952e83
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Virtual environments # #### Attribution # # The conda virtual environment section of this guide # was originally published at http://geohackweek.github.io/ under a CC-BY license # and has been updated to reflect recent changes in conda, # as well as modified slightly to fit ...
43.215094
294
0.694464
0
0
0
0
0
0
0
0
22,375
0.976904
8df6d2cc3ef1b38f8dcb2b9e634dc513aa241c09
5,748
py
Python
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
1
2022-03-17T01:19:23.000Z
2022-03-17T01:19:23.000Z
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
import base64 import datetime, pytz from re import X import io from matplotlib import pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from scipy import spatial from skyfield.api import load, Star from skyfield.projections import build_stereographic_projection from ..astro.angdi...
33.034483
108
0.59499
0
0
0
0
0
0
0
0
946
0.164579
8df72be42a3ea83a7f917562f0ba78dd4aaeb72c
884
py
Python
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
2
2021-01-11T16:13:40.000Z
2022-03-02T02:03:46.000Z
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
# 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Ent...
32.740741
371
0.618778
0
0
0
0
0
0
0
0
482
0.545249
8df73822b76b3e31a9ba5cf5bb546df14eb33a80
38
py
Python
pipeline/__init__.py
tom-010/python-pipeline
6be08206b96d56b0c206f12384548e52f5075be6
[ "Apache-2.0" ]
null
null
null
pipeline/__init__.py
tom-010/python-pipeline
6be08206b96d56b0c206f12384548e52f5075be6
[ "Apache-2.0" ]
null
null
null
pipeline/__init__.py
tom-010/python-pipeline
6be08206b96d56b0c206f12384548e52f5075be6
[ "Apache-2.0" ]
null
null
null
from pipeline.pipeline import pipeline
38
38
0.894737
0
0
0
0
0
0
0
0
0
0
8df8715160af657554f13c94d21120b38964b96a
244
py
Python
tgbot/routers/user/__init__.py
djimboy/tgbot_template_djimbo
71ef5e1a600d4ca952d84efde238359c7af82dcd
[ "MIT" ]
null
null
null
tgbot/routers/user/__init__.py
djimboy/tgbot_template_djimbo
71ef5e1a600d4ca952d84efde238359c7af82dcd
[ "MIT" ]
null
null
null
tgbot/routers/user/__init__.py
djimboy/tgbot_template_djimbo
71ef5e1a600d4ca952d84efde238359c7af82dcd
[ "MIT" ]
null
null
null
# - *- coding: utf- 8 - *- from aiogram import Router from tgbot.routers.user.user_menu import router_user_menu # Подключение хендлеров для юзера def setup_user_handlers(user_router: Router): user_router.include_router(router_user_menu)
24.4
57
0.786885
0
0
0
0
0
0
0
0
87
0.319853
8df91c6b34032c0d6f4c0950b4b4025e8db29746
10,161
py
Python
orator/schema/grammars/sqlite_grammar.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
orator/schema/grammars/sqlite_grammar.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
orator/schema/grammars/sqlite_grammar.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .grammar import SchemaGrammar class SQLiteSchemaGrammar(SchemaGrammar): _modifiers = ['unsigned', 'nullable', 'default', 'increment'] _serials = ['big_integer', 'integer'] def compile_rename_column(self, blueprint, command, connection): """ Compile a rename...
28.382682
78
0.591674
10,098
0.9938
0
0
0
0
0
0
3,227
0.317587
8df9bcab6716a085d2b3d332fff681644b39144b
21,050
py
Python
pysnmp-with-texts/ASCEND-MIBVDSL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ASCEND-MIBVDSL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ASCEND-MIBVDSL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ASCEND-MIBVDSL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBVDSL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:28:53 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
186.283186
2,409
0.782043
42
0.001995
0
0
0
0
0
0
6,054
0.287601
8dfa54ed9ca447d258b8fa54b0c7ae8f6bd61598
262
py
Python
Vamei/std02/time1.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
5
2020-05-18T06:54:52.000Z
2021-05-29T23:17:41.000Z
Vamei/std02/time1.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
null
null
null
Vamei/std02/time1.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
1
2020-05-17T22:47:49.000Z
2020-05-17T22:47:49.000Z
import time print(time.time()) # DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead # print(time.clock()) print(time.process_time()) print(time.perf_counter())
37.428571
154
0.782443
0
0
0
0
0
0
0
0
175
0.667939
8dfb3c18acf930a5459dc67b4aafbbfd377ea76f
857
py
Python
strongr/clouddomain/test/testinterdomainevent.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/clouddomain/test/testinterdomainevent.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/clouddomain/test/testinterdomainevent.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
import unittest import strongr.clouddomain.model.gateways import strongr.core import strongr.core.domain.clouddomain class TestInterDomainEvent(unittest.TestCase): def test_salt_job_finished_escalation_to_inter(self): intra_domain_event_factory = strongr.clouddomain.model.gateways.Gateways.intra_domain_e...
42.85
138
0.782964
736
0.85881
0
0
0
0
0
0
83
0.096849
8dfbeae2983efd238f2b37ec8cf3300580b20ae7
967
py
Python
abandoned/gitNoteSync.py
fretboardfreak/code
0e9bc521e30684247d5d19717a5a938d31151fe3
[ "Apache-2.0" ]
1
2016-01-01T17:50:10.000Z
2016-01-01T17:50:10.000Z
abandoned/gitNoteSync.py
fretboardfreak/code
0e9bc521e30684247d5d19717a5a938d31151fe3
[ "Apache-2.0" ]
null
null
null
abandoned/gitNoteSync.py
fretboardfreak/code
0e9bc521e30684247d5d19717a5a938d31151fe3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Sync markdown notes with an external folder like dropbox. Notes will be named *.txt in the external folder and *.md in git. The script will use proper git commands to do things such as, delete or add new files to git and reflect any git-side changes in the external folder. This script is int...
25.447368
149
0.633919
0
0
0
0
0
0
0
0
476
0.492244
8dfbec677b19e5f32fef5dafd97ffba05416b93b
3,706
py
Python
catkit/emulators/ZwoCamera.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
1
2020-09-04T22:50:21.000Z
2020-09-04T22:50:21.000Z
catkit/emulators/ZwoCamera.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
2
2020-09-08T20:50:39.000Z
2020-09-14T17:52:27.000Z
catkit/emulators/ZwoCamera.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
null
null
null
import abc import logging import zwoasi from catkit.config import CONFIG_INI import catkit.hardware.zwo.ZwoCamera # Convert zwoasi module to a class such that it can be inherited. ZwoASI = type("ZwoASI", (), zwoasi.__dict__) class ZwoEmulator(ZwoASI): """ Class to emulate of the zwoasi library. """ imple...
32.79646
103
0.669185
3,473
0.937129
0
0
648
0.174852
0
0
1,152
0.310847
8dfe8011c2244a0ed87994c9abfc3f5206f12836
2,371
py
Python
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
47.42
118
0.657107
1,545
0.651624
0
0
0
0
0
0
1,559
0.657528
8dfedc56bd84754c0c189b0fb33868614416a159
276
py
Python
test/test_parse.py
rec/ascript
99975ca4e94c5791ee09864ce7cb23e2d43f7cd6
[ "MIT" ]
1
2021-08-04T18:06:37.000Z
2021-08-04T18:06:37.000Z
test/test_parse.py
rec/scripta
99975ca4e94c5791ee09864ce7cb23e2d43f7cd6
[ "MIT" ]
6
2020-06-25T16:16:36.000Z
2020-06-25T23:54:57.000Z
test/test_parse.py
rec/ascript
99975ca4e94c5791ee09864ce7cb23e2d43f7cd6
[ "MIT" ]
null
null
null
from .test_config import EMPTY from scripta import parse from unittest import TestCase class ParseTest(TestCase): def test_parse(self): actual = vars(parse.parse(['foo'])) expected = dict(EMPTY, sources=['foo'], svg='') assert actual == expected
25.090909
55
0.673913
186
0.673913
0
0
0
0
0
0
12
0.043478
5c0031226e3df4483ca669793e8975e7761b6bcd
1,502
py
Python
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
from pybithumb.core import * from pandas import DataFrame import pandas as pd import datetime import math class Bithumb: @staticmethod def _convert_unit(unit): try: unit = math.floor(unit * 10000) / 10000 return unit except: return 0 ...
26.350877
117
0.515313
1,427
0.921835
0
0
1,377
0.889535
0
0
447
0.28876
5c035191fd827575cca31684fe0d530f80a03da4
2,959
py
Python
wrpg/piaf/unpack.py
WalrusRPG/PIAF
d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7
[ "MIT" ]
null
null
null
wrpg/piaf/unpack.py
WalrusRPG/PIAF
d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7
[ "MIT" ]
null
null
null
wrpg/piaf/unpack.py
WalrusRPG/PIAF
d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7
[ "MIT" ]
null
null
null
import struct import zlib from wrpg.piaf.common import ( header_structure, file_entry_structure, file_entry_size, get_data_offset, header_size, header_check_size, header_data_size) class ParserError(Exception): pass class ParserMagicHeaderError(ParserError): pass class ParserCheck...
31.478723
80
0.644812
185
0.062521
0
0
0
0
0
0
203
0.068604
5c03ceb6ad67f78d52eb230df9a5bbd57c51a7c0
384
py
Python
mysite/myapp/migrations/0009_auto_20200506_2221.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
mysite/myapp/migrations/0009_auto_20200506_2221.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
mysite/myapp/migrations/0009_auto_20200506_2221.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-06 22:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0008_notificationmodel'), ] operations = [ migrations.AlterField( model_name='notificationmodel', name='ent...
20.210526
47
0.598958
291
0.757813
0
0
0
0
0
0
105
0.273438
5c05545589141fb82f106641f89a15eb131c03e9
301
py
Python
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np import cv2 img = cv2.imread('city2.jpg',0) rows,cols = img.shape M = cv2.getRotationMatrix2D((cols/2,rows/2),90,1) dst = cv2.warpAffine(img,M,(cols,rows)) cv2.imshow('image cv2',dst) cv2.waitKey(0) # to save the image # cv2.imwrite('image1.png',img) cv2.destroyAllWindows()
15.05
49
0.704319
0
0
0
0
0
0
0
0
72
0.239203
5c077ecb8a5382d71c5438b3e59abd26f0bd8969
1,160
py
Python
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
6
2021-06-28T05:52:15.000Z
2022-03-27T20:45:28.000Z
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
34.117647
74
0.649138
523
0.450862
0
0
0
0
0
0
906
0.781034
5c098a986f914f97ea7ebda89caf2268a601529a
239
py
Python
stock-index/main.py
tracholar/economics-data
bdb85d6baa663f7df0cf1193177f02a80aec407f
[ "MIT" ]
9
2019-04-13T01:07:20.000Z
2022-02-12T13:56:50.000Z
stock-index/main.py
tracholar/economics-data
bdb85d6baa663f7df0cf1193177f02a80aec407f
[ "MIT" ]
null
null
null
stock-index/main.py
tracholar/economics-data
bdb85d6baa663f7df0cf1193177f02a80aec407f
[ "MIT" ]
5
2019-04-13T01:07:21.000Z
2021-12-30T08:43:24.000Z
#coding:utf-8 import pandas as pd import matplotlib.pyplot as plt import pyecharts.options as opts from pyecharts.charts import Line df = pd.read_csv(u'标普500市盈率历史数据.txt', sep='\t') y = df['市盈率 (PE Ratio)'] plt.plot(y.values) plt.show()
19.916667
47
0.736402
0
0
0
0
0
0
0
0
76
0.288973
5c09acfc9fe04971c67a0bdfd0d292a35bdac0c5
3,510
py
Python
models/dw_shared.py
idrpambudi/SRN-Deblur
0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9
[ "MIT" ]
null
null
null
models/dw_shared.py
idrpambudi/SRN-Deblur
0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9
[ "MIT" ]
null
null
null
models/dw_shared.py
idrpambudi/SRN-Deblur
0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.contrib.slim as slim from util.util import * def generator(inputs, scope='g_net',n_levels=2): n, h, w, c = inputs.get_shape().as_list() x_unwrap = [] with tf.variable_scope(scope, reuse=tf.AUTO_REUSE): with slim.arg_scope([slim.conv2d, slim.conv2d_transpos...
54.84375
121
0.552991
0
0
0
0
0
0
0
0
410
0.116809
5c0a8ac8b62d83e8d8a3f27e5f22d32e0e0ea228
298
py
Python
.drafts/models.py
deknowny/polinfapi
93430d514e4be2881622aba10e515b0bf5c6dd0a
[ "MIT" ]
1
2022-02-04T06:44:21.000Z
2022-02-04T06:44:21.000Z
.drafts/models.py
deknowny/polinfapi
93430d514e4be2881622aba10e515b0bf5c6dd0a
[ "MIT" ]
null
null
null
.drafts/models.py
deknowny/polinfapi
93430d514e4be2881622aba10e515b0bf5c6dd0a
[ "MIT" ]
null
null
null
import dataclasses class RawCode(typing.NamedTuple): lang: str code: str @dataclasses.dataclass class TaskModel: raw_task: RawTask question: str answer: str gif_url: str raw_codes: typing.List[RawCode] input_data: str output_data: str
15.684211
36
0.64094
236
0.791946
0
0
197
0.661074
0
0
0
0
5c0b1af22a5316e17602db8cfb4f8b44f7bf9111
781
py
Python
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
10
2015-04-09T02:18:48.000Z
2021-02-22T09:27:08.000Z
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
2
2017-04-16T14:07:59.000Z
2020-01-31T02:25:53.000Z
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
5
2015-04-09T02:20:45.000Z
2022-01-17T10:38:10.000Z
from fit.messages import Message from fit.types.extended import Sport, WorkoutCapabilities, MessageIndex, \ Intensity, WktStepTarget, WktStepDuration from fit.types.general import UInt16, String, UInt32 class Workout(Message): msg_type = 26 sport = Sport(4) capabilities = WorkoutCapabilities(5) n...
27.892857
74
0.724712
568
0.727273
0
0
0
0
0
0
40
0.051216
5c0ce4192fe64603b53959af5cc740ca348b1497
1,335
py
Python
setup.py
cpkthompson/django-fake-bot-detector
5b04bbd7eb20ba5a15de8e661c78fd86af9c988f
[ "Apache-2.0" ]
5
2019-05-07T07:41:45.000Z
2021-06-08T13:30:17.000Z
setup.py
cpkthompson/django-fake-bot-detector
5b04bbd7eb20ba5a15de8e661c78fd86af9c988f
[ "Apache-2.0" ]
7
2020-06-12T17:27:54.000Z
2022-02-10T11:06:30.000Z
setup.py
cpkthompson/django-fake-bot-detector
5b04bbd7eb20ba5a15de8e661c78fd86af9c988f
[ "Apache-2.0" ]
1
2021-04-28T09:23:58.000Z
2021-04-28T09:23:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from fakebotdetector import __version__ def get_long_description(): """Return the README""" return open('README.md', 'r', encoding='utf8').read() setup( name='django-fake-bot-detector', version=__version__, url='https:/...
32.560976
70
0.637453
0
0
0
0
0
0
0
0
818
0.61136
5c0da5f77a085661e96a680ab4f4aace5c39d144
34
py
Python
venv-lib/lib/python3.7/__future__.py
migmaciasdiaz/venvs
bcdbb75931cb27fc4b5b30f12fc44be85952157e
[ "MIT" ]
2
2020-03-30T14:17:10.000Z
2020-10-04T12:33:00.000Z
venv-lib/lib/python3.7/__future__.py
migmaciasdiaz/venvs
bcdbb75931cb27fc4b5b30f12fc44be85952157e
[ "MIT" ]
1
2020-11-24T03:31:13.000Z
2020-11-24T03:31:13.000Z
venv/lib/python3.7/__future__.py
wensu425/aws-eb-webapp
4b149c75c11fe5b33c9a080313ec336fabb45824
[ "MIT" ]
1
2021-05-04T09:18:22.000Z
2021-05-04T09:18:22.000Z
/usr/lib64/python3.7/__future__.py
34
34
0.823529
0
0
0
0
0
0
0
0
0
0
5c0dcc445a82edfdc35b31cc9c086ddb8671e374
294
py
Python
pyez/get_config.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
117
2016-08-22T15:52:28.000Z
2022-01-08T00:53:28.000Z
pyez/get_config.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
12
2017-10-28T09:44:44.000Z
2018-11-21T15:12:42.000Z
pyez/get_config.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
78
2016-08-19T05:35:28.000Z
2022-03-13T07:16:27.000Z
from jnpr.junos import Device from lxml import etree dev = Device(host='xxxx', user='demo', password='demo123', gather_facts=False) dev.open() cnf = dev.rpc.get_config() #cnf = dev.rpc.get_config(filter_xml=etree.XML('<configuration><interfaces/></configuration>')) print etree.tostring(cnf)
29.4
95
0.751701
0
0
0
0
0
0
0
0
116
0.394558
5c10ee61d634ed5370e785cfb72db7af4ce9d4af
1,032
py
Python
images/core/context/free5gc/lib/nextepc/nas/support/cache/nas_msg_93.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-02-22T07:19:59.000Z
2022-02-22T07:19:59.000Z
images/core/context/free5gc/lib/nextepc/nas/support/cache/nas_msg_93.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-01-15T20:26:01.000Z
2022-01-15T20:26:01.000Z
images/core/context/free5gc/lib/nextepc/nas/support/cache/nas_msg_93.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-01-07T18:49:10.000Z
2022-01-07T18:49:10.000Z
ies = [] ies.append({ "iei" : "", "value" : "Selected NAS security algorithms", "type" : "security algorithms", "reference" : "9.9.3.23", "presence" : "M", "format" : "V", "length" : "1"}) ies.append({ "iei" : "", "value" : "NAS key set identifier", "type" : "key set identifier", "reference" : "9.9.3.21", "presence" : ...
114.666667
186
0.552326
0
0
0
0
0
0
0
0
707
0.685078
5c1434a7013b9bee370455ab2802787652471f6d
2,158
py
Python
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
1
2022-03-28T09:28:25.000Z
2022-03-28T09:28:25.000Z
import sys from hummingbot.core.api_throttler.data_types import RateLimit # REST endpoints BASE_PATH_URL = "https://api.kucoin.com" PUBLIC_WS_DATA_PATH_URL = "/api/v1/bullet-public" PRIVATE_WS_DATA_PATH_URL = "/api/v1/bullet-private" TICKER_PRICE_CHANGE_PATH_URL = "/api/v1/market/allTickers" EXCHANGE_INFO_PATH_URL = ...
43.16
108
0.810009
0
0
0
0
0
0
0
0
385
0.178406
5c147b1581c9e42ed038ee8839eff0846fb1f39f
3,586
py
Python
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
1,110
2016-06-02T23:58:41.000Z
2020-11-29T07:24:20.000Z
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
49
2016-08-14T22:58:41.000Z
2020-07-17T17:59:56.000Z
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
300
2016-06-13T23:06:55.000Z
2020-11-18T22:42:55.000Z
from PIL import Image import numpy as np from tqdm import tqdm def histogram_equalization(x): hist, bins = np.histogram(x.flatten(), 255, [0, 256]) cdf = hist.cumsum() cdf_m = np.ma.masked_equal(cdf,0) cdf_m = (cdf_m - cdf_m.min())*255.0/(cdf_m.max()-cdf_m.min()) cdf = np.ma.filled(cdf_m,0).astyp...
38.148936
123
0.583101
0
0
0
0
0
0
0
0
64
0.017847
5c165b43b1f198ab8d8542c8ff00784873352544
4,911
py
Python
simulations/exp_schapiro.py
nicktfranklin/EventSegmentation
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
14
2019-04-05T14:06:39.000Z
2022-03-26T19:11:42.000Z
simulations/exp_schapiro.py
nicktfranklin/SEM_paper_simulations
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
null
null
null
simulations/exp_schapiro.py
nicktfranklin/SEM_paper_simulations
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
2
2020-07-07T17:12:09.000Z
2021-01-15T23:30:16.000Z
import numpy as np from models import SEM, clear_sem from sklearn import metrics import pandas as pd from scipy.special import logsumexp def logsumexp_mean(x): return logsumexp(x) - np.log(len(x)) def batch_experiment(sem_kwargs, n_train=1400, n_test=600, progress_bar=True): # define the graph structure for ...
37.48855
119
0.591326
0
0
0
0
0
0
0
0
697
0.141926
5c17c5b7aabeab82c94531a8db0f717695069f5e
28,818
py
Python
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
8
2020-10-04T15:33:58.000Z
2020-11-24T15:10:18.000Z
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
5
2020-03-06T18:13:10.000Z
2022-03-12T00:52:48.000Z
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
null
null
null
""" The :mod:`mlshell.producers.dataset` contains examples of `Dataset` class for empty data object creation and `DataProducer` class for filling it. :class:`mlshell.Dataset` proposes unified interface to interact with underlying data. Intended to be used in :class:`mlshell.Workflow`. For new data formats no need to e...
36.804598
80
0.561906
27,773
0.963738
0
0
906
0.031439
0
0
16,509
0.572871
5c19e95ecbd605cd5bbe2f492605c45f95815362
53
py
Python
pindividual.py
IsSveshuD/lab_3
9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1
[ "MIT" ]
null
null
null
pindividual.py
IsSveshuD/lab_3
9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1
[ "MIT" ]
null
null
null
pindividual.py
IsSveshuD/lab_3
9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1
[ "MIT" ]
null
null
null
a, b = map(int, input().split()) print((a%b)*(b%a)+1)
26.5
32
0.528302
0
0
0
0
0
0
0
0
0
0
5c1ae1443f7fa73080c8c0a769854cb87fc44def
21,356
py
Python
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
""" this file contains tuned obs function and reward function fix ttc calculate """ import math import gym import numpy as np from smarts.core.agent import AgentSpec from smarts.core.agent_interface import AgentInterface from smarts.core.agent_interface import OGM, NeighborhoodVehicles from smarts.core.controllers im...
38.135714
106
0.631111
0
0
0
0
0
0
0
0
4,292
0.200974
5c1c78f65b55a91c212dbfb6fa80d719220b3e5d
1,156
py
Python
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
17
2015-04-01T13:51:25.000Z
2021-12-15T21:07:09.000Z
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
3
2018-09-05T04:34:24.000Z
2019-05-27T00:44:33.000Z
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
5
2018-05-19T23:50:44.000Z
2021-08-05T08:39:57.000Z
"""Test suite for optimizers.constant.""" from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import ast import pytest from pycc.asttools import parse from pycc.optimizers import constant source = """ ONE = 1 TWO = 2 T...
21.018182
59
0.694637
0
0
0
0
101
0.08737
0
0
425
0.367647
5c1ea40702594b065154a2ff625e0441b3a8faf9
2,079
py
Python
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'alsbi' from multiprocessing import Process from websockify import WebSocketProxy class Proxy(): port = {} @classmethod def get_port(cls, uuid): if uuid in Proxy.port: return Proxy.port[uuid] port = list(set(range(50000, ...
28.479452
94
0.526215
1,952
0.938913
0
0
272
0.130832
0
0
140
0.06734
5c1f238b6bcc670b2b5ec473a5f107f816b2ed4c
318
py
Python
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
76
2018-07-21T21:09:00.000Z
2022-03-17T06:56:03.000Z
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
59
2019-01-23T08:13:13.000Z
2022-03-13T16:39:05.000Z
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
63
2019-03-06T01:43:45.000Z
2022-02-14T20:16:19.000Z
from .massthings import MassThings __red_end_user_data_statement__ = ( "This cog does not persistently store data or metadata about users." # "<s>If you are using this cog, user data storage will probably be much less significant thing then API abuse</s>" ) def setup(bot): bot.add_cog(MassThings(bot))
28.909091
119
0.745283
0
0
0
0
0
0
0
0
183
0.575472
5c200dbfad013cbf8dd5260a6b61041a4ae56d9e
1,528
py
Python
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
1
2015-01-16T04:17:54.000Z
2015-01-16T04:17:54.000Z
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
null
null
null
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
null
null
null
# Copyright (c) 2010, individual contributors (see AUTHORS file) # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" ...
44.941176
74
0.725785
602
0.393979
0
0
0
0
0
0
834
0.545812
5c21f13b79aff05e74d7a6471705742eb1ef0d68
2,101
py
Python
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Copyright 2021 - Present Okta, 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 agreed to in ...
33.887097
86
0.654926
1,328
0.63208
0
0
0
0
0
0
866
0.412185
5c24da598237de3c027b9acde2ff873da368e571
3,203
py
Python
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import commands import json from utils import error, RARITY_DICT from parse_profile import get_profile_data from extract_ids import extract_internal_names # Create the master list! from text_files.accessory_list import talisman_upgrades # Get a list of all accessories ACCESSORIES = []...
42.144737
141
0.658445
2,400
0.749298
0
0
2,307
0.720262
2,224
0.694349
875
0.273181
5c256fbd08baa69454ac110542d3949899a3e62f
725
py
Python
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
import os import cv2 from lib import lib images_dir = "images" faces_dir = "images/faces" def main(): files = os.listdir(images_dir) for file_name in files: full_path = images_dir + "/" + file_name if not os.path.isfile(full_path): continue print("Processing " + full_pa...
23.387097
71
0.56
0
0
0
0
0
0
0
0
112
0.154483
5c269d3cc3c41b40147e84d450ece990b3c5b020
1,806
py
Python
libs/gsheets_logging.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
10
2016-03-01T01:42:39.000Z
2021-03-18T19:01:42.000Z
libs/gsheets_logging.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
96
2015-10-08T00:28:16.000Z
2021-09-08T02:32:41.000Z
libs/gsheets_logging.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
11
2015-10-07T23:26:11.000Z
2021-08-07T05:24:47.000Z
""" Google Sheets interaction lib. Configuration settings: [gapps] api_scope = https://www.googleapis.com/auth/spreadsheets spreadsheet_id = spreadsheet_range = """ import configparser import traceback from googleapiclient.discovery import build from httplib2 import Http from oauth2client import file, client, tools #...
29.129032
106
0.704873
0
0
0
0
0
0
0
0
838
0.464009
5c271332264e94d543256ede8fdcc6d30fbdd9a2
5,142
py
Python
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
import sys import pandas as pd from sqlalchemy import create_engine import re import numpy as np import nltk from nltk.corpus import stopwords from nltk.stem.wordnet import WordNetLemmatizer from nltk.tokenize import word_tokenize from nltk import pos_tag, ne_chunk nltk.download('punkt') nltk.download('stopwords') nl...
27.945652
119
0.669584
0
0
0
0
0
0
0
0
2,260
0.439518
5c275f2ec32045f61bf64ac2e62550759a730fd3
976
py
Python
plot_normballs.py
bkoyuncu/notes
0e660f46b7d17fdfddc2cad1bb60dcf847f5d1e4
[ "MIT" ]
191
2016-01-21T19:44:23.000Z
2022-03-25T20:50:50.000Z
plot_normballs.py
onurboyar/notes
2ec14820af044c2cfbc99bc989338346572a5e24
[ "MIT" ]
2
2018-02-18T03:41:04.000Z
2018-11-21T11:08:49.000Z
plot_normballs.py
onurboyar/notes
2ec14820af044c2cfbc99bc989338346572a5e24
[ "MIT" ]
138
2015-10-04T21:57:21.000Z
2021-06-15T19:35:55.000Z
import numpy as np import matplotlib as mpl import matplotlib.pylab as plt def norm_ball(p): step = np.pi/128 THETA = np.arange(0, 2*np.pi+step, step) X = np.mat(np.zeros((2,len(THETA)))) for i, theta in enumerate(THETA): x = (np.cos(theta), np.sin(theta)) a = (1/(np.abs(x[0])**p + np...
22.697674
59
0.57582
0
0
0
0
0
0
0
0
69
0.070697
5c295bb6517d1a649b68f680e1818e2aeefc213e
1,170
py
Python
fmcapi/api_objects/object_services/countries.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/object_services/countries.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/object_services/countries.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
from fmcapi.api_objects.apiclasstemplate import APIClassTemplate import logging import warnings class Countries(APIClassTemplate): """ The Countries Object in the FMC. """ VALID_JSON_DATA = ["id", "name", "iso2", "iso3"] VALID_FOR_KWARGS = VALID_JSON_DATA + [] URL_SUFFIX = "/object/countries"...
27.857143
80
0.64188
1,068
0.912821
0
0
0
0
0
0
402
0.34359
5c29a79bfc65dc7f4164e897bed8d0b6f6931bee
6,281
py
Python
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
def check_dependencies(settings): pyver = sys.version_info[:2] if pyver < PYTHON_2_MIN_VERSION or (3, 0) <= pyver < PYTHON_3_MIN_VERSION: dependency_error("Python %s or %s+ is required." % (PYTHON_2_MIN_VERSION_STR, PYTHON_3_MIN_VERSION_STR)) if not is_exe_in_path("node"): dependency_error("node (from NodeJS) wa...
54.617391
343
0.704824
0
0
0
0
0
0
0
0
3,500
0.557236
5c2a2a534d6e2ff772c61563fe0cf535ea1cac31
525
py
Python
app/BlogSite/logic/routers/templates.py
AbhijithGanesh/FastAPI-Blog
ba60f674fa0bf7dc7346768433886039d642830d
[ "BSD-3-Clause" ]
null
null
null
app/BlogSite/logic/routers/templates.py
AbhijithGanesh/FastAPI-Blog
ba60f674fa0bf7dc7346768433886039d642830d
[ "BSD-3-Clause" ]
1
2022-02-10T08:31:52.000Z
2022-02-10T08:31:52.000Z
app/BlogSite/logic/routers/templates.py
AbhijithGanesh/FastAPI-Blog
ba60f674fa0bf7dc7346768433886039d642830d
[ "BSD-3-Clause" ]
null
null
null
from fastapi import APIRouter, Request from fastapi.templating import Jinja2Templates from fastapi.responses import HTMLResponse from pathlib import Path TEMPLATES = ( str(Path(__file__).resolve().parent.parent.parent.parent) + r"\design\templates" ) templates_view = APIRouter() templates = Jinja2Temp...
29.166667
85
0.765714
0
0
0
0
171
0.325714
0
0
53
0.100952
5c2d166d1a318c22066043ec8eb64728c9a94729
528
py
Python
migrations/002_movies.py
mayurbhadrige/restpie3
23b55fdb86909dfe38dd1115f242ab1e99076ce9
[ "MIT" ]
80
2018-09-21T19:59:58.000Z
2022-03-20T03:26:05.000Z
migrations/002_movies.py
mayurbhadrige/restpie3
23b55fdb86909dfe38dd1115f242ab1e99076ce9
[ "MIT" ]
3
2019-07-01T08:38:49.000Z
2020-09-19T09:11:42.000Z
migrations/002_movies.py
mayurbhadrige/restpie3
23b55fdb86909dfe38dd1115f242ab1e99076ce9
[ "MIT" ]
26
2018-09-21T20:55:36.000Z
2022-02-25T07:16:40.000Z
# 002_movies.py def migrate(migrator, database, fake=False, **kwargs): # an example class for demonstrating CRUD... migrator.sql("""CREATE TABLE movies( id serial PRIMARY KEY NOT NULL, created timestamp not null default CURRENT_TIMESTAMP, modified timestamp not null default CURRENT_T...
22.956522
62
0.666667
0
0
0
0
0
0
0
0
366
0.693182
5c2d351ff240445b749489807879c9a82ce4996e
1,528
py
Python
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
from torch import nn from tqdm import tqdm import math from train.utils import get_batch, repackage_hidden def train(model, criterion, optimizer, num_tokens, train_data, epoch_no, epochs, batch_size=256, sequence_length=6): # Turn on training mode which enables dropout. assert num_tokens is not None...
39.179487
119
0.662304
0
0
0
0
0
0
0
0
392
0.256545
5c2f35124e182302dbaf9ddef40c95728068c056
225
py
Python
snippets/html2sql.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
snippets/html2sql.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
snippets/html2sql.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
import web if "__main__" == __name__: u = "https://www.ebay.de/sch/Mobel-Wohnen/11700/i.html?_from=R40&LH_BIN=1&_nkw=kaffeetisch&_dcat=38205&rt=nc&_mPrRngCbx=1&_udlo=4&_udhi=29" r = web.fetch(u) print r.status_code
32.142857
141
0.715556
0
0
0
0
0
0
0
0
145
0.644444
5c2fa77cba3144e55f33531814d2f04bc1677219
4,961
py
Python
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
"""Day 24: Lobby layout Coordinate system taken from https://www.redblobgames.com/grids/hexagons/#coordinates """ from collections import defaultdict from day23 import REAL_INPUT from typing import Dict, List, Tuple MOVES = { "e": [1, -1, 0], "w": [-1, 1, 0], "se": [0, -1, 1], "sw": [-1, 0, 1], ...
27.258242
86
0.599274
0
0
0
0
0
0
0
0
1,162
0.234227
5c32bff6da66b4fa728d03c16f79c609f2bc49ab
464
py
Python
ga4stpg/graph/__init__.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
null
null
null
ga4stpg/graph/__init__.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
5
2021-01-26T17:28:32.000Z
2021-03-14T13:46:48.000Z
ga4stpg/graph/__init__.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
1
2021-01-25T16:35:59.000Z
2021-01-25T16:35:59.000Z
# -*- coding: utf-8 -*- from .reader import SteinerTreeProblem, Reader, ReaderORLibrary from .graph import UndirectedWeightedGraph from .graph import UndirectedWeightedGraph as UWGraph from .graph import UndirectedWeightedGraph as Graph from .graph import UndirectedGraph from .graph import UndirectedGraph as UGra...
27.294118
64
0.721983
0
0
0
0
0
0
0
0
101
0.217672
5c3309eff3593cc991ca6b9ae1c54999360fde55
840
py
Python
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
"""create user table Revision ID: 37881a97d680 Revises: d8f500d9168 Create Date: 2014-02-10 15:52:50.366173 """ # revision identifiers, used by Alembic. revision = '37881a97d680' down_revision = 'd8f500d9168' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'users', ...
22.105263
62
0.625
0
0
0
0
0
0
0
0
287
0.341667
5c36603505642a938a1b3d00b8392601cbdd9272
2,235
py
Python
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import logging from pathlib import Path #from dotenv import find_dotenv, load_dotenv import pandas as pd import tqdm import numpy as np #@click.command() #@click.argument('input_filepath', type=click.Path(exists=True)) #@click.argument('output_filepath', type=click.Path()) def main...
32.391304
119
0.635347
0
0
0
0
0
0
0
0
1,220
0.544643
5c370945df28f172815f20a5fdc6617f23cc8f02
1,989
py
Python
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
null
null
null
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
2
2021-06-08T20:59:31.000Z
2021-09-08T01:49:50.000Z
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
null
null
null
import asyncio import time import zmq import zmq.asyncio from pymunk import Vec2d from zmq import Socket from .constants import SERVER_TICK from .events.events import PlayerEvent from .events.movement import apply_movement from .events.states import GameState, PlayerState async def main(): future = asyncio.Futu...
24.555556
74
0.635998
0
0
0
0
0
0
1,384
0.695827
78
0.039216
5c37be593a0269dff92c25f0ad69e5da28d88f99
1,045
py
Python
mds/urls.py
Polyconseil/django-mds
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
15
2019-01-02T13:44:29.000Z
2020-09-03T16:39:46.000Z
mds/urls.py
Polyconseil/django-mds
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
44
2018-11-30T11:04:03.000Z
2020-01-21T17:21:39.000Z
mds/urls.py
Polyconseil/midas
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
5
2019-04-23T16:22:49.000Z
2021-03-21T07:45:38.000Z
from django.conf.urls import include from django.contrib import admin from django.contrib.auth import views as auth_views from django.urls import path import mds.apis.agency_api.v0_3.urls import mds.authent.urls urlpatterns = [ # TODO(hcauwelier) Backwards compat, to remove with MDS 0.3 path( "mds/v0....
26.794872
82
0.582775
0
0
0
0
0
0
0
0
284
0.27177
5c37e14295bfcedd72a3433670777db43f247942
1,945
py
Python
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
2,020
2017-03-08T13:24:00.000Z
2022-03-30T19:46:02.000Z
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
281
2017-03-08T23:05:10.000Z
2022-03-25T01:37:04.000Z
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
171
2017-03-10T17:27:41.000Z
2022-03-16T06:43:34.000Z
from cerberus import errors from cerberus.tests import assert_fail, assert_success def test_schema(validator): field = 'a_dict' subschema_field = 'address' assert_success({field: {subschema_field: 'i live here', 'city': 'in my own town'}}) assert_fail( schema={ field: { ...
29.029851
87
0.515681
0
0
0
0
0
0
0
0
290
0.1491
5c3901f50ecda0c64af94d368538bfb5042b9562
4,216
py
Python
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
29
2018-12-10T22:40:07.000Z
2022-03-30T02:56:28.000Z
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
2
2020-02-21T09:48:37.000Z
2021-03-06T22:33:45.000Z
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
7
2019-08-09T09:19:12.000Z
2022-03-30T02:56:27.000Z
import logging logger = logging.getLogger(__name__) from .profiler import Profiler from . import config, resnet profiler = Profiler("classify.py") import os import cv2 import dlib import numpy as np import tensorflow as tf from imutils.face_utils import FaceAligner from imutils.face_utils import rect_to_bb profiler....
35.133333
100
0.58278
3,720
0.882353
0
0
0
0
0
0
230
0.054554
5c3bee353833391ba702d6ca5437765a929c642a
478
py
Python
test/test_samples/unittest/other_tests/test_add.py
LeonOnRoad/vscode-python-test-adapter
7eacfab4456c13caba1c0da631ce8a3eea200766
[ "MIT" ]
96
2018-10-23T20:49:30.000Z
2022-03-17T04:37:51.000Z
test/test_samples/unittest/other_tests/test_add.py
LeonOnRoad/vscode-python-test-adapter
7eacfab4456c13caba1c0da631ce8a3eea200766
[ "MIT" ]
169
2018-09-07T21:15:07.000Z
2022-03-19T06:24:51.000Z
test/test_samples/unittest/other_tests/test_add.py
LeonOnRoad/vscode-python-test-adapter
7eacfab4456c13caba1c0da631ce8a3eea200766
[ "MIT" ]
25
2018-09-14T15:02:34.000Z
2022-02-07T18:53:19.000Z
import unittest class AddTests(unittest.TestCase): def test_other_two_plus_one_is_three_passed(self): print("checking 2 + 1") self.assertEqual(3, 2 + 1) def test_other_two_plus_two_is_five_failed(self): print("checking 2 + 2") self.assertEqual(5, 2 + 2) @unittest.skip("Sk...
28.117647
57
0.671548
459
0.960251
0
0
175
0.366109
0
0
85
0.177824
5c3c1abdd5938c1500009922bfaa382eec74fe54
6,318
py
Python
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
4
2017-07-18T10:24:11.000Z
2018-02-19T12:43:47.000Z
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
null
null
null
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
1
2017-07-16T01:40:20.000Z
2017-07-16T01:40:20.000Z
import tensorflow as tf import argument_sr from os.path import join from PIL import Image import os from numpy import array """ fliker image data by pil """ def pil_batch_queue(): lrs ,hr2s , hr4s = argument_sr.options.get_pil_file_list() lrs = array(lrs) hr2s = array(hr2s) hr4s = array(hr4s) ...
33.252632
135
0.662235
0
0
0
0
0
0
0
0
598
0.092484
5c3e3ec43d50cbc88915e9537eb31041c9d2f0c2
483
py
Python
src/minisentry/constants.py
anti1869/minisentry
43b9685f33eeb55adbb78d3ec7afa05204e65f38
[ "Apache-2.0" ]
3
2021-07-02T01:54:03.000Z
2022-01-21T11:38:36.000Z
src/minisentry/constants.py
anti1869/minisentry
43b9685f33eeb55adbb78d3ec7afa05204e65f38
[ "Apache-2.0" ]
null
null
null
src/minisentry/constants.py
anti1869/minisentry
43b9685f33eeb55adbb78d3ec7afa05204e65f38
[ "Apache-2.0" ]
null
null
null
import logging LOG_LEVELS = { logging.NOTSET: 'sample', logging.DEBUG: 'debug', logging.INFO: 'info', logging.WARNING: 'warning', logging.ERROR: 'error', logging.FATAL: 'fatal', } DEFAULT_LOG_LEVEL = 'error' LOG_LEVELS_MAP = {v: k for k, v in LOG_LEVELS.items()} LEVEL_LABELS = { logging.N...
21
54
0.639752
0
0
0
0
0
0
0
0
97
0.200828
5c3f4f20d10436d040d5804e29572c8cb06bf2d7
15,927
py
Python
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
1
2022-01-04T14:34:33.000Z
2022-01-04T14:34:33.000Z
import os import logging import re from datetime import datetime from stat import ST_CTIME from zipfile import ZipFile from dipper import config from dipper.sources.Source import Source from dipper.models.Model import Model from dipper.models.assoc.InteractionAssoc import InteractionAssoc from dipper.models.Dataset i...
37.475294
108
0.54348
15,462
0.970804
0
0
5,189
0.325799
0
0
6,327
0.39725
5c429e9d7bfee87526f60bb5e280566fb358a202
80
py
Python
elabjournal/elabjournal/Experiments.py
matthijsbrouwer/elabjournal-python
4063b01993f0bf17ea2857009c1bedc5ace8b87b
[ "Apache-2.0" ]
2
2021-06-29T11:17:27.000Z
2022-01-11T18:41:49.000Z
elabjournal/elabjournal/Experiments.py
matthijsbrouwer/elabjournal-python
4063b01993f0bf17ea2857009c1bedc5ace8b87b
[ "Apache-2.0" ]
null
null
null
elabjournal/elabjournal/Experiments.py
matthijsbrouwer/elabjournal-python
4063b01993f0bf17ea2857009c1bedc5ace8b87b
[ "Apache-2.0" ]
1
2019-06-06T13:23:11.000Z
2019-06-06T13:23:11.000Z
from .eLABJournalPager import * class Experiments(eLABJournalPager): pass
13.333333
36
0.775
46
0.575
0
0
0
0
0
0
0
0
5c42f339ae5581206eeae13992fdf3c4eb5f4484
581
py
Python
machine/corpora/text_segment.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
2
2021-09-14T15:41:14.000Z
2021-09-14T15:53:46.000Z
machine/corpora/text_segment.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
2
2021-11-04T09:12:26.000Z
2021-11-08T08:35:36.000Z
machine/corpora/text_segment.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
1
2021-11-03T14:45:11.000Z
2021-11-03T14:45:11.000Z
from dataclasses import dataclass from typing import Any, Sequence @dataclass(eq=False, frozen=True) class TextSegment: text_id: str segment_ref: Any segment: Sequence[str] is_sentence_start: bool is_in_range: bool is_range_start: bool is_empty: bool def __repr__(self) -> str: ...
25.26087
64
0.629948
477
0.820998
0
0
511
0.879518
0
0
62
0.106713
5c42f7d286d116445c758adc9f9639297784a6e6
10,084
py
Python
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
null
null
null
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
1
2021-06-25T15:19:49.000Z
2021-06-25T15:19:49.000Z
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
1
2020-02-13T11:43:11.000Z
2020-02-13T11:43:11.000Z
# -*- coding: utf-8 -*- import os import unittest from StringIO import StringIO from mimecat import (Catalogue, _canonicalize_extension, _parse_file, _parse_line) TEST_MIME_TYPES = """ # This file maps Internet media types to unique file extension(s). # Although created for httpd, this file is us...
38.636015
80
0.671559
8,570
0.849861
0
0
545
0.054046
0
0
2,353
0.23334
5c446ee267037c9d8c49936f00e5937e160edc1a
374
py
Python
build/lib/pyks/_nbdev.py
JiaxiangBU/pyks
5a0c86922d0e120a221df08ee00dd2b346b0f4f1
[ "Apache-2.0", "MIT" ]
null
null
null
build/lib/pyks/_nbdev.py
JiaxiangBU/pyks
5a0c86922d0e120a221df08ee00dd2b346b0f4f1
[ "Apache-2.0", "MIT" ]
1
2019-07-23T03:10:42.000Z
2019-07-25T02:03:14.000Z
pyKS/_nbdev.py
JiaxiangBU/pyks
5a0c86922d0e120a221df08ee00dd2b346b0f4f1
[ "Apache-2.0", "MIT" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"summary": "00_core.ipynb", "plot": "00_core.ipynb", "perf": "00_core.ipynb"} modules = ["ks.py"] doc_url = "https://JiaxiangBU.github.io/pyks/" git_url = "https://github.com/fastai/pyks/...
24.933333
61
0.657754
0
0
0
0
0
0
0
0
235
0.628342
5c45f38fe38fa77cbec0c1601f2b98424a73d9e6
17,404
py
Python
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function """ Author: Emmanuel Salawu Email: dr.emmanuel.salawu@gmail.com Copyright 2016 Emmanuel Salawu 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 L...
38
458
0.579924
0
0
0
0
0
0
0
0
4,191
0.240807
5c46184c6fec988857f84fb1a16cfb0fcdf021e8
1,745
py
Python
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
from tunepy2 import Genome from tunepy2.interfaces import AbstractOptimizer, AbstractGenomeFactory, AbstractConvergenceCriterion class BasicOptimizer(AbstractOptimizer): """ A very simple optimizer that builds new Genomes until convergence is satisfied. """ def __init__( self, ...
31.160714
101
0.66533
1,613
0.924355
0
0
390
0.223496
0
0
642
0.367908
5c499791997ea36839195aeb1485030e5ba2db60
4,759
py
Python
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
7
2018-07-18T16:08:51.000Z
2020-12-09T07:18:35.000Z
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
3
2018-04-13T11:44:59.000Z
2018-04-19T13:58:06.000Z
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
6
2018-07-22T01:54:14.000Z
2021-08-04T16:01:38.000Z
from copy import deepcopy from .classic import ClassicGRN import numpy as np import tensorflow as tf class GPUGRN(ClassicGRN): def __init__(self): pass def reset(self): self.concentration = np.ones( len(self.identifiers)) * (1.0/len(self.identifiers)) self.tf_input_conc =...
41.382609
76
0.59046
4,655
0.978147
0
0
0
0
0
0
0
0
5c49b9a646a94f624602a019444beba6bd5601aa
10,892
py
Python
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
# modified for custom training and testing on GPU by Utkarsh Patel from classifiers import AbstractTokenizedDocumentClassifier from embeddings import WordEmbeddings from nnclassifiers import StackedLSTMTokenizedDocumentClassifier, CNNTokenizedDocumentClassifier from nnclassifiers_experimental import StructuredSelfAtte...
40.340741
182
0.689772
2,330
0.213918
0
0
0
0
0
0
2,490
0.228608
5c49e887144531963fcdded91cc7db493153872d
10,594
py
Python
tests/test_utilities.py
DevinCrowley/ardent
5e731947e58b8670463521abe6a52d4962d4221f
[ "Apache-2.0" ]
15
2019-07-16T19:33:14.000Z
2022-01-30T13:50:55.000Z
tests/test_utilities.py
DevinCrowley/ardent
5e731947e58b8670463521abe6a52d4962d4221f
[ "Apache-2.0" ]
20
2019-08-13T21:59:06.000Z
2022-03-15T13:40:57.000Z
tests/test_utilities.py
DevinCrowley/ardent
5e731947e58b8670463521abe6a52d4962d4221f
[ "Apache-2.0" ]
6
2019-08-22T03:42:46.000Z
2020-07-15T23:15:49.000Z
import pytest import numpy as np from ardent.utilities import _validate_scalar_to_multi from ardent.utilities import _validate_ndarray from ardent.utilities import _validate_xyz_resolution from ardent.utilities import _compute_axes from ardent.utilities import _compute_coords from ardent.utilities import _multiply_by...
38.245487
134
0.694638
0
0
0
0
0
0
0
0
1,583
0.149424
3083adebeba13826315956aee8985f1e8da7705d
1,550
py
Python
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
import requests, libvoikko, json, collections, sys if len(sys.argv) > 1: filename = sys.argv[1] else: print("Need a url that points to a text file") sys.exit(0) r = requests.get(filename) normalized = r.text.split() v = libvoikko.Voikko("fi") word_forms = [ (word, v.analyze(word)) for word in normal...
20.666667
84
0.556129
0
0
0
0
0
0
0
0
221
0.142581
3083e2c645cba7ab538bab70a7a1386f4a0020e4
208
py
Python
impysonator/npl/contants.py
guidiego/impysonator
df5b7a48818ead24ea6ec22b6829c643fab992aa
[ "MIT" ]
7
2018-03-28T18:05:09.000Z
2018-04-09T14:11:26.000Z
impysonator/npl/contants.py
guidiego/impysonator
df5b7a48818ead24ea6ec22b6829c643fab992aa
[ "MIT" ]
null
null
null
impysonator/npl/contants.py
guidiego/impysonator
df5b7a48818ead24ea6ec22b6829c643fab992aa
[ "MIT" ]
null
null
null
from re import compile IMPERSONAL_EXPRESSIONS = [ compile('^(\.*)nós[\s|\.|$]'), compile('Nos\s| nos[\s|$]|-nos[\s|$]'), compile('[N|(\.|\s)n]oss[a|o]'), compile('\w*[e|a]mos[,|\.|\s|$]') ]
20.8
43
0.480769
0
0
0
0
0
0
0
0
96
0.45933
3084f8f882e9fb444232a3f9dc40223a7c80dd37
1,648
py
Python
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
76
2018-09-02T17:04:41.000Z
2022-03-23T08:06:57.000Z
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
11
2018-12-28T16:30:05.000Z
2022-01-15T23:32:31.000Z
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
21
2019-01-15T23:08:35.000Z
2022-01-04T15:41:10.000Z
from .utils.compatibility import * from .utils.der import parse, encodeConstructed, encodePrimitive, DerFieldType from .utils.binary import hexFromByteString, byteStringFromHex, base64FromByteString, byteStringFromBase64 class Signature: def __init__(self, r, s, recoveryId=None): self.r = r self....
33.632653
106
0.677184
1,424
0.864078
0
0
694
0.421117
0
0
0
0
308610038479227c00fe97cec08a05b6df73bc37
28,636
py
Python
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
39.281207
100
0.531534
27,206
0.950063
0
0
0
0
0
0
10,208
0.356474
3086472fb9e3853923fb7e30229a986a449fd0f4
1,691
py
Python
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
1
2021-08-22T07:35:13.000Z
2021-08-22T07:35:13.000Z
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
"""Main module.""" import asyncio import logging from pathlib import Path from asynccpu import ProcessTaskPoolExecutor from showroompodcast import CONFIG from showroompodcast.archiving_task_manager import ArchivingTaskManager from showroompodcast.showroom_archiver import TIME_TO_FORCE_TARMINATION, ShowroomArchiver fr...
40.261905
117
0.746304
1,246
0.736842
0
0
0
0
338
0.199882
45
0.026611
308a170bee23a8817d6391c877b12dec983c3913
3,239
py
Python
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
# coding=utf-8 import requests from PyQt5.QtCore import QThread, pyqtSignal from urllib import request, parse from utils import LogTools sysLog = LogTools.SysLogs() class Http: signal = None # 括号里填写信号传递的参数 # init 初始化部分 def __init__(self): self.signal = pyqtSignal(object) # ===============...
25.912
108
0.543069
3,040
0.792286
0
0
0
0
0
0
1,738
0.452958
308b99133cba1b420b98e1026e82294464c485e7
6,293
py
Python
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
import re import typing import xml.etree.ElementTree as ET from unicodedata import name from typing import * from jinja2 import Template keylayout_file = 'keylayout_file' keylayout_xml = keylayout_file + '.xml' keylayout_html = keylayout_file + '.html' TOFU = '\ufffd' def mapindex_by_modifier(map_to_modifier: Dict[i...
38.607362
152
0.608613
0
0
0
0
0
0
0
0
2,358
0.374226