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
d41a817115527c10936523c9881e84ea18dab888
670
py
Python
install.py
mattgonley/YoutubeDownloader
a355bf5253ac51c4d38f2687d8bb914b0a2453f4
[ "MIT" ]
null
null
null
install.py
mattgonley/YoutubeDownloader
a355bf5253ac51c4d38f2687d8bb914b0a2453f4
[ "MIT" ]
null
null
null
install.py
mattgonley/YoutubeDownloader
a355bf5253ac51c4d38f2687d8bb914b0a2453f4
[ "MIT" ]
null
null
null
import re import subprocess import os dir_path = os.path.dirname(os.path.realpath(__file__)) os.chdir(dir_path) os.system("pip install -r requirements.txt") output = subprocess.Popen("pip show pytube3", shell=True, stdout=subprocess.PIPE) location = str(output.stdout.read()) location = location.split("Location: ")[1]...
25.769231
81
0.659701
d41adddec32389df490b08b3e064b902485f5140
81
py
Python
__init__.py
Alex2Yang97/recommender
03802928d36187fb2343ccfabdda3e4cd9f5052c
[ "MIT" ]
null
null
null
__init__.py
Alex2Yang97/recommender
03802928d36187fb2343ccfabdda3e4cd9f5052c
[ "MIT" ]
null
null
null
__init__.py
Alex2Yang97/recommender
03802928d36187fb2343ccfabdda3e4cd9f5052c
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- """ @Author: Zhirui(Alex) Yang @Date: 2021/4/25 11:07 """
16.2
26
0.580247
d41c246eefc15d8d3083a747dabb628f9d6509fa
15,258
py
Python
achievements/admin.py
kaduuuken/achievementsystem
40ae93193c5f4b6968161d94eeda56455ec700e4
[ "BSD-2-Clause" ]
1
2017-01-30T13:38:48.000Z
2017-01-30T13:38:48.000Z
achievements/admin.py
kaduuuken/achievementsystem
40ae93193c5f4b6968161d94eeda56455ec700e4
[ "BSD-2-Clause" ]
null
null
null
achievements/admin.py
kaduuuken/achievementsystem
40ae93193c5f4b6968161d94eeda56455ec700e4
[ "BSD-2-Clause" ]
null
null
null
from models import Achievement, Category, Trophy, CollectionAchievement, Progress, ProgressAchievement, Task, TaskAchievement, TaskProgress from django.contrib import admin from django import forms from django.core.exceptions import ValidationError from django.contrib.admin.widgets import FilteredSelectMultiple from dj...
52.253425
152
0.577402
d41c8c0be9a5740cf81ee2596760f90253aa73e4
6,072
py
Python
tests/test_tracing_trace.py
rgstephens/opentracing-decorator
b69f4e8f998509dd51f4e27b16fcf6f6a069cd22
[ "MIT" ]
4
2021-01-26T14:07:57.000Z
2021-06-19T04:25:53.000Z
tests/test_tracing_trace.py
rgstephens/opentracing-decorator
b69f4e8f998509dd51f4e27b16fcf6f6a069cd22
[ "MIT" ]
null
null
null
tests/test_tracing_trace.py
rgstephens/opentracing-decorator
b69f4e8f998509dd51f4e27b16fcf6f6a069cd22
[ "MIT" ]
2
2021-06-15T07:25:08.000Z
2021-06-28T20:06:39.000Z
import numbers import unittest import uuid from unittest.mock import MagicMock, create_autospec from opentracing.mocktracer import MockTracer from opentracing_decorator.tracing import Tracing
30.512563
105
0.626318
d41ed59bce4a8a7da74b24c4a6a147cb2104a9b5
2,652
py
Python
gamestonk_terminal/economy/yfinance_model.py
jbushago/GamestonkTerminal
73a2b419664bf62bbdc59aa8402c8cd6a913a518
[ "MIT" ]
1
2022-03-19T23:53:38.000Z
2022-03-19T23:53:38.000Z
gamestonk_terminal/economy/yfinance_model.py
jbushago/GamestonkTerminal
73a2b419664bf62bbdc59aa8402c8cd6a913a518
[ "MIT" ]
null
null
null
gamestonk_terminal/economy/yfinance_model.py
jbushago/GamestonkTerminal
73a2b419664bf62bbdc59aa8402c8cd6a913a518
[ "MIT" ]
null
null
null
""" Yahoo Finance Model """ __docformat__ = "numpy" import logging import pandas as pd import yfinance as yf from gamestonk_terminal.decorators import log_start_end from gamestonk_terminal.rich_config import console logger = logging.getLogger(__name__) INDICES = { "sp500": {"name": "S&P 500", "ticker": "^GSPC"...
30.482759
84
0.595777
d41ef94acb52f3afd84b6e9a9e73f60066eab1a9
655
py
Python
practise.py
purva-saxena/Python-programming
9458ddca9fc890eeb1fb3a16ceed74cedfcb116d
[ "MIT" ]
14
2020-09-29T07:29:33.000Z
2020-11-03T04:26:39.000Z
practise.py
purva-saxena/Python-programming
9458ddca9fc890eeb1fb3a16ceed74cedfcb116d
[ "MIT" ]
4
2020-10-23T18:10:50.000Z
2020-10-29T18:39:20.000Z
practise.py
purva-saxena/Python-programming
9458ddca9fc890eeb1fb3a16ceed74cedfcb116d
[ "MIT" ]
5
2020-10-15T23:49:29.000Z
2020-10-28T20:16:42.000Z
# # example string # string = 'cat' # width = 5 # print right justified string # print(string.rjust(width)) # print(string.rjust(width)) # # example string # string = 'cat' # width = 5 # fillchar = '*' # # print right justified string # print(string.rjust(width, fillchar)) # # .centre function # string = "Python ...
17.702703
54
0.638168
d422b7cb06b483493c18a2de3e449c2ec2e0806e
3,929
py
Python
ooobuild/lo/awt/end_docking_event.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/awt/end_docking_event.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/awt/end_docking_event.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.29661
234
0.662764
d422e2f11fc3f08a2a812b8405d9e3224cdf112d
1,375
py
Python
XSD/XSDValidator.py
ghajba/python
ac46c4df869827f70d4e0802c473d7e2912873a8
[ "MIT" ]
3
2015-04-08T05:48:31.000Z
2018-03-05T07:59:49.000Z
XSD/XSDValidator.py
ghajba/python
ac46c4df869827f70d4e0802c473d7e2912873a8
[ "MIT" ]
null
null
null
XSD/XSDValidator.py
ghajba/python
ac46c4df869827f70d4e0802c473d7e2912873a8
[ "MIT" ]
null
null
null
# Simple XML against XSD Validator for Python 2.7 - 3.2 # to run this script you need additionally: lxml (http://lxml.de) # author: Gabor Laszlo Hajba, 2013 import sys from lxml import etree xsd_files = [] xml_files = [] def validate_files(): """ validates every xml file against every schema file""" for ...
29.891304
75
0.571636
d4233942f4bd4c720e840913a88f6f374b525e6a
112
py
Python
auxiliary/templatetags/hashtag.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
69
2015-02-03T12:02:56.000Z
2022-02-16T13:08:01.000Z
auxiliary/templatetags/hashtag.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
446
2015-01-01T11:10:33.000Z
2021-11-01T08:15:39.000Z
auxiliary/templatetags/hashtag.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
67
2015-01-01T09:13:58.000Z
2021-11-01T07:51:08.000Z
from django import template register = template.Library()
16
29
0.732143
d4246e25860579a29b30485c3d1b321ea8dadcaf
275
py
Python
questao6.py
higorcastro17/Avaliacao1
30d727d9c85fd532a6a6264fa50eee7d34a57bbf
[ "Apache-2.0" ]
null
null
null
questao6.py
higorcastro17/Avaliacao1
30d727d9c85fd532a6a6264fa50eee7d34a57bbf
[ "Apache-2.0" ]
null
null
null
questao6.py
higorcastro17/Avaliacao1
30d727d9c85fd532a6a6264fa50eee7d34a57bbf
[ "Apache-2.0" ]
null
null
null
turno = input('M-matutino, V-vespertino, N-noturno: ') if (turno == 'M')or(turno == 'm') : print ('Bom Dia') if (turno == 'V')or(turno == 'v'): print ('Boa Tarde') if (turno == 'N')or(turno == 'n'): print ('Boa Noite') else: print ('Valor invlido')
27.5
55
0.527273
d4249f69da262cb3a39e11f79c9b161bcd9b7173
48
py
Python
tests/components/luftdaten/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/luftdaten/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/luftdaten/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Define tests for the Luftdaten component."""
24
47
0.729167
d42502013a724d256a3f3b74c173fa598ca64b62
490
py
Python
b0mb3r/services/webbankir.py
Superior0/b0mb3r_r
216b1851303f5101b09457ba31749b63e4d0d5e8
[ "Apache-2.0" ]
null
null
null
b0mb3r/services/webbankir.py
Superior0/b0mb3r_r
216b1851303f5101b09457ba31749b63e4d0d5e8
[ "Apache-2.0" ]
null
null
null
b0mb3r/services/webbankir.py
Superior0/b0mb3r_r
216b1851303f5101b09457ba31749b63e4d0d5e8
[ "Apache-2.0" ]
null
null
null
from b0mb3r.services.service import Service
28.823529
58
0.512245
d4254df5226f1fbca945831c16a37f0346ea800a
511
py
Python
login.py
sgravrock/flickr-to-go
42badc3c08acfb834505ea31e76a50b7b81aec31
[ "MIT" ]
null
null
null
login.py
sgravrock/flickr-to-go
42badc3c08acfb834505ea31e76a50b7b81aec31
[ "MIT" ]
null
null
null
login.py
sgravrock/flickr-to-go
42badc3c08acfb834505ea31e76a50b7b81aec31
[ "MIT" ]
null
null
null
import os import sys import flickr_api from flickr_api import auth a = auth.AuthHandler(key=os.environ['FLICKR_API_KEY'], secret=os.environ['FLICKR_API_SECRET'], callback='oob') print("Open this in your browser: " + a.get_authorization_url('read')) print("Once you finish logging in, enter the code from the browser: ")...
30.058824
110
0.759295
d4254f76dfd5ea2d8a20ec85e3bc7b40b5572cba
244
py
Python
cupyx/scipy/special/_statistics.py
Pandinosaurus/cupy
c98064928c8242d0c6a07e2c714e6c811f684a4e
[ "MIT" ]
1
2021-05-16T11:52:30.000Z
2021-05-16T11:52:30.000Z
cupyx/scipy/special/_statistics.py
Pandinosaurus/cupy
c98064928c8242d0c6a07e2c714e6c811f684a4e
[ "MIT" ]
8
2019-02-11T17:20:01.000Z
2021-09-08T01:14:51.000Z
cupyx/scipy/special/_statistics.py
Pandinosaurus/cupy
c98064928c8242d0c6a07e2c714e6c811f684a4e
[ "MIT" ]
1
2021-01-08T14:16:53.000Z
2021-01-08T14:16:53.000Z
from cupy import _core ndtr = _core.create_ufunc( 'cupyx_scipy_ndtr', ('f->f', 'd->d'), 'out0 = normcdf(in0)', doc='''Cumulative distribution function of normal distribution. .. seealso:: :meth:`scipy.special.ndtr` ''')
20.333333
67
0.631148
d425877abba4e1d9027f49ed030c5510ffa8f6f2
827
py
Python
zshoes/articles/models.py
andresgz/zshoes
a9c2a11a0059558719cb5694b168022c9a18d24e
[ "BSD-3-Clause" ]
null
null
null
zshoes/articles/models.py
andresgz/zshoes
a9c2a11a0059558719cb5694b168022c9a18d24e
[ "BSD-3-Clause" ]
null
null
null
zshoes/articles/models.py
andresgz/zshoes
a9c2a11a0059558719cb5694b168022c9a18d24e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from zshoes.stores.models import Store
28.517241
61
0.732769
d425a87d278fdb1d8bc123af1626c4050e1112e2
1,465
py
Python
Cousins_in_Binary_Tree.py
raniyer/Learning-competitive-coding
e79ab7f1cd74bd635ccc1d817db65d8101289c9c
[ "MIT" ]
2
2020-05-16T03:38:32.000Z
2020-06-04T13:41:28.000Z
Cousins_in_Binary_Tree.py
raniyer/30daysofcode-May-leetcode
e79ab7f1cd74bd635ccc1d817db65d8101289c9c
[ "MIT" ]
null
null
null
Cousins_in_Binary_Tree.py
raniyer/30daysofcode-May-leetcode
e79ab7f1cd74bd635ccc1d817db65d8101289c9c
[ "MIT" ]
null
null
null
""" In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. Two nodes of a binary tree are cousins if they have the same depth, but have different parents. We are given the root of a binary tree with unique values, and the values x and y of two different nodes in the tree. R...
31.170213
117
0.6
d425fc5115d843da5d542a9a1da650d07eb3e7e7
5,901
py
Python
main.py
Smaniac1/02-Text-adeventure
e6b408cc346c6eb6075392234dc417cb0b2e914a
[ "MIT" ]
null
null
null
main.py
Smaniac1/02-Text-adeventure
e6b408cc346c6eb6075392234dc417cb0b2e914a
[ "MIT" ]
null
null
null
main.py
Smaniac1/02-Text-adeventure
e6b408cc346c6eb6075392234dc417cb0b2e914a
[ "MIT" ]
2
2020-02-04T16:33:35.000Z
2020-02-07T04:02:38.000Z
#!/usr/bin/env python3 import sys, os, json import random # Check to make sure we are running the correct version of Python assert sys.version_info >= (3,7), "This script requires at least Python 3.7" # The game and item description files (in the same folder as this script) game_file = 'game.json' # Load the content...
42.76087
190
0.583799
d42991c0d12b55b22c402b0c3a599dfe5b5b8cdb
1,637
py
Python
tests/fixtures/defxmlschema/chapter16/example1607.py
nimish/xsdata
7afe2781b66982428cc1731f53c065086acd35c1
[ "MIT" ]
null
null
null
tests/fixtures/defxmlschema/chapter16/example1607.py
nimish/xsdata
7afe2781b66982428cc1731f53c065086acd35c1
[ "MIT" ]
null
null
null
tests/fixtures/defxmlschema/chapter16/example1607.py
nimish/xsdata
7afe2781b66982428cc1731f53c065086acd35c1
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from tests.fixtures.defxmlschema.chapter22.example2207 import ( ProductType, )
19.034884
63
0.48931
d42a0af3f17b3dbc0f8ef130a5ff8a3db39f80c0
1,860
py
Python
pydisco/disco/modutil.py
jseppanen/disco
23ef8badfc7c539672e8834875d9908974b646dc
[ "BSD-3-Clause" ]
2
2016-05-09T17:03:08.000Z
2016-07-19T11:27:54.000Z
pydisco/disco/modutil.py
jseppanen/disco
23ef8badfc7c539672e8834875d9908974b646dc
[ "BSD-3-Clause" ]
null
null
null
pydisco/disco/modutil.py
jseppanen/disco
23ef8badfc7c539672e8834875d9908974b646dc
[ "BSD-3-Clause" ]
null
null
null
import re, struct, sys, os, imp, modulefinder import functools from os.path import abspath, dirname from opcode import opname from disco.error import ModUtilImportError
35.09434
88
0.63871
d42b94352b7c3c7e5fe8e652dabf68483b72d935
524
py
Python
structures/cycle.py
TheBiggerFish/fishpy
632a7c603a33ad694650aa2bed058931775a4259
[ "MIT" ]
null
null
null
structures/cycle.py
TheBiggerFish/fishpy
632a7c603a33ad694650aa2bed058931775a4259
[ "MIT" ]
null
null
null
structures/cycle.py
TheBiggerFish/fishpy
632a7c603a33ad694650aa2bed058931775a4259
[ "MIT" ]
null
null
null
""" This module provides a sequence class which can be used for cyclic values """ from typing import Generic, TypeVar T = TypeVar('T')
24.952381
73
0.65458
d42e0ce8da4215b15f40a373a9f844993869adf9
3,003
py
Python
SerialLogger_spectro.py
szajakubiak/SerialLogger_spectro
ddb6da31955b6a5ff34d96555bd3000863378396
[ "MIT" ]
null
null
null
SerialLogger_spectro.py
szajakubiak/SerialLogger_spectro
ddb6da31955b6a5ff34d96555bd3000863378396
[ "MIT" ]
null
null
null
SerialLogger_spectro.py
szajakubiak/SerialLogger_spectro
ddb6da31955b6a5ff34d96555bd3000863378396
[ "MIT" ]
null
null
null
""" Read and save data from the SparkFun Triad Spectroscopy Sensor by Szymon Jakubiak Twitter: @SzymonJakubiak LinkedIn: https://www.linkedin.com/in/szymon-jakubiak-495442127/ """ import serial, time from datetime import datetime # Specify serial port device_port = "COM194" # Specify output file ...
29.441176
166
0.642025
d42e217f0e3b4b173a405214d76e0e8bf0d90bff
875
py
Python
djangoq_demo/order_reminder/migrations/0001_initial.py
forance/django-q
2b42fb173ab374760260692eda5b5445c7121e90
[ "MIT" ]
null
null
null
djangoq_demo/order_reminder/migrations/0001_initial.py
forance/django-q
2b42fb173ab374760260692eda5b5445c7121e90
[ "MIT" ]
null
null
null
djangoq_demo/order_reminder/migrations/0001_initial.py
forance/django-q
2b42fb173ab374760260692eda5b5445c7121e90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-17 12:32 from __future__ import unicode_literals from django.db import migrations, models
32.407407
118
0.614857
d42e87a70daf7c5c21ab93e0d8ceaff49c1c9d92
3,155
py
Python
src/algorithms/05-tic-tac-toe/test_board.py
SamVanhoutte/python-musings
18e9b6b366af6c072a5d928f95f30ea88f01f540
[ "MIT" ]
null
null
null
src/algorithms/05-tic-tac-toe/test_board.py
SamVanhoutte/python-musings
18e9b6b366af6c072a5d928f95f30ea88f01f540
[ "MIT" ]
null
null
null
src/algorithms/05-tic-tac-toe/test_board.py
SamVanhoutte/python-musings
18e9b6b366af6c072a5d928f95f30ea88f01f540
[ "MIT" ]
null
null
null
############################################### # Sam Vanhoutte - PG Applied AI - Programming # Unit tests, for the graph algorithms ############################################### import unittest # unit testing ftw from board import Board import numpy as np import play
32.193878
89
0.409826
d43249d872053b3e214cf2a595c7a9acd99c13ea
134
py
Python
vulture/pipelines.py
aksiksi/vulture
5b5a198b64e3a4ce2822e71ba148c50e0ea29b9a
[ "MIT" ]
null
null
null
vulture/pipelines.py
aksiksi/vulture
5b5a198b64e3a4ce2822e71ba148c50e0ea29b9a
[ "MIT" ]
null
null
null
vulture/pipelines.py
aksiksi/vulture
5b5a198b64e3a4ce2822e71ba148c50e0ea29b9a
[ "MIT" ]
null
null
null
from scrapy.exceptions import DropItem
22.333333
41
0.746269
d435307fb7e6fe7161d6d680690a18d1e1b777c2
1,365
py
Python
qcfractal/dashboard/index.py
radical-cybertools/QCFractal
676997ef4bc267ae9adfe0064843c42a5701dcf4
[ "BSD-3-Clause" ]
null
null
null
qcfractal/dashboard/index.py
radical-cybertools/QCFractal
676997ef4bc267ae9adfe0064843c42a5701dcf4
[ "BSD-3-Clause" ]
null
null
null
qcfractal/dashboard/index.py
radical-cybertools/QCFractal
676997ef4bc267ae9adfe0064843c42a5701dcf4
[ "BSD-3-Clause" ]
null
null
null
import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from . import dash_managers, dash_queue, dash_service from .app import app from .navbar import navbar body = dbc.Container( [ dbc.Row([ dbc...
27.857143
91
0.541392
d435461f6446f8bd12567862d756a7056de51c60
5,442
py
Python
xgboost_algorithm/CreateDataSet.py
SmileOfHeart/xgboostTrain_accuracyStop
3d3526dd772ec9e6c017192660cb759a35d86b58
[ "MIT" ]
3
2020-11-02T12:52:16.000Z
2021-07-09T22:29:56.000Z
xgboost_algorithm/CreateDataSet.py
SmileOfHeart/xgboostTrain_accuracyStop
3d3526dd772ec9e6c017192660cb759a35d86b58
[ "MIT" ]
null
null
null
xgboost_algorithm/CreateDataSet.py
SmileOfHeart/xgboostTrain_accuracyStop
3d3526dd772ec9e6c017192660cb759a35d86b58
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 8 11:09:33 2019 @author: 10365 """ #CreateDataSet import numpy as np import sys sys.path.append('../subway_system') sys.path.append('../ato_agent') import TrainAndRoadCharacter as trc import trainRunningModel as trm import pandas as pds import matplotlib.pyplot as pl...
29.416216
94
0.55384
d43584562055e451dc250df38860917c6f212609
907
py
Python
inventory.py
justinwatkinson/ecs-weave-demo
ceb546f8bdf8ca5403ab3bc9864ac82409fef395
[ "MIT" ]
null
null
null
inventory.py
justinwatkinson/ecs-weave-demo
ceb546f8bdf8ca5403ab3bc9864ac82409fef395
[ "MIT" ]
null
null
null
inventory.py
justinwatkinson/ecs-weave-demo
ceb546f8bdf8ca5403ab3bc9864ac82409fef395
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import boto3 import json if __name__ == '__main__': ec2_client = boto3.client('ec2') ec2_filter = [{'Name': 'tag:role', 'Values': ['ecs-cluster']}] instances=ec2_client.describe_tags(Filters=ec2_filter) #get only the instance_ids instance_ids = [] for i in instances['Tags'...
30.233333
92
0.670342
d436a15bb829f11eeddbeb85790fd845c784bd6a
1,115
py
Python
examples/surface.py
pedromxavier/svg-motion
016d95d3302b5519954b89e489f7394bb64eeea9
[ "MIT" ]
null
null
null
examples/surface.py
pedromxavier/svg-motion
016d95d3302b5519954b89e489f7394bb64eeea9
[ "MIT" ]
null
null
null
examples/surface.py
pedromxavier/svg-motion
016d95d3302b5519954b89e489f7394bb64eeea9
[ "MIT" ]
null
null
null
from cstream import stdwar from svgen import Point, Vector, SVG, Figure, Camera, Domain, Map, Surface, Animation from math import radians, sin, cos, pi, hypot, sqrt import sys from tqdm import tqdm from svgen.svglib.math import Transform COLOR = "#3703b3" if len(sys.argv) > 1 and sys.argv[1] == "-o": proj = C...
19.910714
85
0.596413
d439037ffb5d79c61b4fbc99b0bc04b3e553d76d
1,493
py
Python
samples/vis_amass_and_h36m.py
zaverichintan/mocap
43db09af5be092b73ce5d1df1d1834a865d62441
[ "MIT" ]
22
2019-04-17T13:42:47.000Z
2022-03-03T23:48:16.000Z
samples/vis_amass_and_h36m.py
zaverichintan/mocap
43db09af5be092b73ce5d1df1d1834a865d62441
[ "MIT" ]
5
2019-04-17T13:57:25.000Z
2021-04-16T12:31:38.000Z
samples/vis_amass_and_h36m.py
zaverichintan/mocap
43db09af5be092b73ce5d1df1d1834a865d62441
[ "MIT" ]
3
2020-08-27T19:32:40.000Z
2021-02-24T08:52:23.000Z
import sys sys.path.insert(0, '../') from mocap.settings import get_amass_validation_files, get_amass_test_files from mocap.math.amass_fk import rotmat2euclidean, exp2euclidean from mocap.visualization.sequence import SequenceVisualizer from mocap.math.mirror_smpl import mirror_p3d from mocap.datasets.dataset import Li...
27.145455
102
0.734092
d43e75fb89304bc9b1ab29d6bf1e74be0ea2345f
1,222
py
Python
review/tests/test_review_model.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
16
2021-09-22T19:08:28.000Z
2022-03-18T18:57:02.000Z
review/tests/test_review_model.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-09-30T12:36:02.000Z
2022-03-18T22:18:00.000Z
review/tests/test_review_model.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-12-06T02:04:51.000Z
2022-03-13T14:38:14.000Z
from django.test import TestCase from review.models import Review
27.772727
85
0.58347
d43edfd68011c8d5534ee2b154094bc55dd24e36
146
py
Python
app.py
BodhisattwaMandal/wembedder
dd384db9a021cb7e3682f4153226d5fe53d05c9f
[ "Apache-2.0", "MIT" ]
42
2017-08-15T20:51:40.000Z
2021-07-01T15:33:58.000Z
app.py
BodhisattwaMandal/wembedder
dd384db9a021cb7e3682f4153226d5fe53d05c9f
[ "Apache-2.0", "MIT" ]
17
2017-07-07T17:46:34.000Z
2021-07-31T19:54:03.000Z
app.py
BodhisattwaMandal/wembedder
dd384db9a021cb7e3682f4153226d5fe53d05c9f
[ "Apache-2.0", "MIT" ]
11
2017-09-10T09:02:14.000Z
2021-07-02T08:50:46.000Z
"""Script to start webserving.""" from wembedder.app import create_app app = create_app() if __name__ == '__main__': app.run(debug=True)
13.272727
36
0.691781
d43f5fac407ab9b3be82deb729884bcc04eb0392
837
py
Python
src/openprocurement/tender/esco/procedure/serializers/bid.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/esco/procedure/serializers/bid.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/esco/procedure/serializers/bid.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from openprocurement.tender.core.procedure.serializers.base import ListSerializer from openprocurement.tender.core.procedure.serializers.document import ConfidentialDocumentSerializer from openprocurement.tender.core.procedure.serializers.parameter import ParameterSerializer from openprocurement.tender.esco.procedure.s...
52.3125
101
0.833931
d43f83ab5c2744fdc647f132c26f7230c9704e59
11,807
py
Python
lib/model/config.py
Li-Chengyang/MSDS-RCNN
9f141d7d381e81c915043f5b41949d462a47a570
[ "MIT" ]
56
2018-11-12T11:34:48.000Z
2022-03-22T12:10:47.000Z
lib/model/config.py
buyiasd/MSDS-RCNN
9f141d7d381e81c915043f5b41949d462a47a570
[ "MIT" ]
16
2018-11-23T10:14:20.000Z
2020-07-20T10:22:57.000Z
lib/model/config.py
buyiasd/MSDS-RCNN
9f141d7d381e81c915043f5b41949d462a47a570
[ "MIT" ]
19
2018-12-14T08:38:41.000Z
2021-09-07T14:40:08.000Z
# ------------------------------------------------------------------------- # MSDS R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Chengyang Li, based on code from Ross Girshick and Xinlei Chen # ------------------------------------------------------------------------- from __future__ impo...
27.978673
90
0.717456
d440eef1ac6ed0041cd5b7754c67ef56462ba998
1,876
py
Python
tensorflow_federated/python/core/impl/bindings_utils/data_conversions.py
RyanMarten/federated
43169e4224b169ad58927b783c680f4ff52d743a
[ "Apache-2.0" ]
1,918
2019-02-22T21:17:28.000Z
2022-03-30T14:49:53.000Z
tensorflow_federated/python/core/impl/bindings_utils/data_conversions.py
RyanMarten/federated
43169e4224b169ad58927b783c680f4ff52d743a
[ "Apache-2.0" ]
999
2019-02-22T21:47:44.000Z
2022-03-31T11:06:42.000Z
tensorflow_federated/python/core/impl/bindings_utils/data_conversions.py
RyanMarten/federated
43169e4224b169ad58927b783c680f4ff52d743a
[ "Apache-2.0" ]
498
2019-02-22T21:17:56.000Z
2022-03-29T02:54:15.000Z
# Copyright 2021, The TensorFlow Federated Authors. # # 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 o...
45.756098
79
0.703092
d442c238e8821d0cdc0c3f3b94495eca939a45ec
2,987
py
Python
app/routes.py
mattkantor/basic-flask-app
ec893ca44b1c9c4772c24b81394b58644fefd29a
[ "MIT" ]
null
null
null
app/routes.py
mattkantor/basic-flask-app
ec893ca44b1c9c4772c24b81394b58644fefd29a
[ "MIT" ]
null
null
null
app/routes.py
mattkantor/basic-flask-app
ec893ca44b1c9c4772c24b81394b58644fefd29a
[ "MIT" ]
null
null
null
from app.api.feed import FeedController from app.api.follows import FollowController from .api import apiv1, app_routes from .api.news import * from .api.user import * from .api.group import * from .api.auth import get_auth_token, register
50.627119
143
0.667559
d443ffc231ba1b4079b706e3c986d5f57cc7a0ea
9,178
py
Python
openmdao/solvers/brent.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
17
2018-01-11T20:13:59.000Z
2022-03-22T03:46:05.000Z
openmdao/solvers/brent.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
6
2017-10-19T23:14:14.000Z
2020-11-22T17:30:57.000Z
openmdao/solvers/brent.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
10
2018-04-12T22:13:33.000Z
2020-05-07T10:02:59.000Z
""" Brent Nonlinear solver.""" from six import iteritems from math import isnan import numpy as np from scipy.optimize import brentq from openmdao.core.system import AnalysisError from openmdao.solvers.solver_base import NonLinearSolver from openmdao.util.record_util import update_local_meta, create_local_meta
40.610619
188
0.629113
d44457cad4c1eeebb68fdcd9caeebd3c842c0840
1,943
py
Python
uvu/test_retinanet.py
fabianfallasmoya/semi_supervised_v1
6e93c3a332a4a76cff6d0acdcdaae40a5123d1db
[ "Apache-2.0" ]
null
null
null
uvu/test_retinanet.py
fabianfallasmoya/semi_supervised_v1
6e93c3a332a4a76cff6d0acdcdaae40a5123d1db
[ "Apache-2.0" ]
null
null
null
uvu/test_retinanet.py
fabianfallasmoya/semi_supervised_v1
6e93c3a332a4a76cff6d0acdcdaae40a5123d1db
[ "Apache-2.0" ]
null
null
null
from typing import List import argparse from detectron2.evaluation import COCOEvaluator, inference_on_dataset from detectron2.config import get_cfg from detectron2 import model_zoo from detectron2.data.datasets import register_coco_instances from detectron2.data import build_detection_test_loader from trainers import...
36.660377
110
0.749357
d444f8f9a121cff708ebf20104289ad67bbd2b60
1,382
py
Python
pixiedust/display/streamingDisplay.py
elgalu/pixiedust
e98b91b6ae5a974cbcda985fa305d0cb25b88ba0
[ "Apache-2.0" ]
598
2018-07-18T08:02:49.000Z
2022-03-29T06:22:10.000Z
pixiedust/display/streamingDisplay.py
elgalu/pixiedust
e98b91b6ae5a974cbcda985fa305d0cb25b88ba0
[ "Apache-2.0" ]
236
2016-08-15T20:25:35.000Z
2017-06-23T17:13:39.000Z
pixiedust/display/streamingDisplay.py
elgalu/pixiedust
e98b91b6ae5a974cbcda985fa305d0cb25b88ba0
[ "Apache-2.0" ]
87
2018-07-24T14:43:39.000Z
2022-03-06T15:31:50.000Z
# ------------------------------------------------------------------------------- # Copyright IBM Corp. 2017 # # 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/licens...
44.580645
81
0.672214
d447f78a081c9de7b7d86d0bb7a218a3eb7c227e
2,576
py
Python
repl.py
PostCenter/botlang
09f59cc4f8870507fab6101aecea65b316a347e8
[ "MIT" ]
1
2016-08-29T15:18:54.000Z
2016-08-29T15:18:54.000Z
repl.py
PostCenter/botlang
09f59cc4f8870507fab6101aecea65b316a347e8
[ "MIT" ]
null
null
null
repl.py
PostCenter/botlang
09f59cc4f8870507fab6101aecea65b316a347e8
[ "MIT" ]
null
null
null
from botlang import Evaluator from botlang.interpreter import BotlangSystem from botlang.parser import Parser if __name__ == '__main__': BotlangREPL.run()
25.254902
76
0.519022
d448253fd36b0f18b3b060f1981126a0797ec2c8
1,598
py
Python
main.py
LN-24111/RPC_Sim
976dcc7f2acd533fe788347be3ed875ae418d766
[ "MIT" ]
null
null
null
main.py
LN-24111/RPC_Sim
976dcc7f2acd533fe788347be3ed875ae418d766
[ "MIT" ]
null
null
null
main.py
LN-24111/RPC_Sim
976dcc7f2acd533fe788347be3ed875ae418d766
[ "MIT" ]
null
null
null
from tournament import * from strategies import * resultSetPoints = {} resultSetWins = {} observer = Documenter() for i in range(100): if i % 100 == 0: print (i//100) participants = [] # participants.append(WaPlayer1()) # participants.append(Adam()) # participants.append(Rock()) # participants.append(Paper()) ...
27.084746
80
0.721527
d4484ad6bf63fa89fa298eca8eea4369a0042fe5
7,795
py
Python
npc/gui/uis/new_character.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
null
null
null
npc/gui/uis/new_character.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
null
null
null
npc/gui/uis/new_character.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'npc/gui/uis/new_character.ui' # # Created by: PyQt5 UI code generator 5.7.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
61.377953
130
0.751123
d44927253825e1c5d306c639c38985c68db197c9
2,111
py
Python
tests/integration/test_dataframe_logging.py
mbseid/rubicon
d48d34e4b6580ef29bb8dbe6a8ed473b954af087
[ "Apache-2.0" ]
null
null
null
tests/integration/test_dataframe_logging.py
mbseid/rubicon
d48d34e4b6580ef29bb8dbe6a8ed473b954af087
[ "Apache-2.0" ]
null
null
null
tests/integration/test_dataframe_logging.py
mbseid/rubicon
d48d34e4b6580ef29bb8dbe6a8ed473b954af087
[ "Apache-2.0" ]
null
null
null
import pandas as pd import pytest from dask import dataframe as dd from rubicon.exceptions import RubiconException
31.044118
112
0.720985
d449f83e2eb0a2d2d6d61b2e3a88d0cfd7006157
39,855
py
Python
820.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
820.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
820.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
# S A # ["time", "me", "bell"] S = "time#bell#" indexes = [0, 2, 5] # S "#" # # # # : words = ["time", "me", "bell"] # : 10 # : S = "time#bell#" indexes = [0, 2, 5] # # # 1 <= words.length<= 2000 # 1 <=words[i].length<= 7 # # LeetCode # https://leetcode-cn.com/problems/shor...
19.1795
87
0.325254
d44ada6e7253afc80766dd1dd14faf5ae21cedd3
837
py
Python
src/constants.py
tiefenauer/ip9
4d50ee288f8a00f64a6f4a7d80639d3dc89df4e8
[ "MIT" ]
4
2019-06-02T02:56:38.000Z
2021-11-06T02:29:26.000Z
src/constants.py
tiefenauer/ip9
4d50ee288f8a00f64a6f4a7d80639d3dc89df4e8
[ "MIT" ]
null
null
null
src/constants.py
tiefenauer/ip9
4d50ee288f8a00f64a6f4a7d80639d3dc89df4e8
[ "MIT" ]
null
null
null
import os from os.path import abspath, dirname, join SRC_DIR = dirname(abspath(__file__)) # absolute path to project ./src/ directory ROOT_DIR = abspath(join(SRC_DIR, os.pardir)) # absolute path to project root directory ASSETS_DIR = join(ROOT_DIR, 'assets') LS_RAW = "/media/daniel/Data/corpus/librispeech-raw" LS_...
31
87
0.772999
d44c23f4260429a2ed754abb9b2f421c367d9fa9
2,753
py
Python
app/core/migrations/0001_initial.py
Uniquode/uniquode2
385f3e0b26383c042d8da64b52350e82414580ea
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
Uniquode/uniquode2
385f3e0b26383c042d8da64b52350e82414580ea
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
Uniquode/uniquode2
385f3e0b26383c042d8da64b52350e82414580ea
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-19 02:59 from django.conf import settings from django.db import migrations, models import django.db.models.manager import markdownx.models import components
46.661017
158
0.603342
d44d3d981f82a0cdf972455e9d88a4445545d2f0
161
py
Python
livestock/slaughtering/doctype/chicken_co_packing/test_chicken_co_packing.py
jayan13/livestock
75f4ccb246818d9cd55400d88fefbb36c168c713
[ "MIT" ]
null
null
null
livestock/slaughtering/doctype/chicken_co_packing/test_chicken_co_packing.py
jayan13/livestock
75f4ccb246818d9cd55400d88fefbb36c168c713
[ "MIT" ]
null
null
null
livestock/slaughtering/doctype/chicken_co_packing/test_chicken_co_packing.py
jayan13/livestock
75f4ccb246818d9cd55400d88fefbb36c168c713
[ "MIT" ]
null
null
null
# Copyright (c) 2022, alantechnologies and Contributors # See license.txt # import frappe import unittest
17.888889
55
0.801242
d44e45e9b90fc8e34b0ae5fc97646b84ba004c81
670
py
Python
tests/utils/environment_vars.py
alanverresen/django-keys
bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38
[ "MIT" ]
null
null
null
tests/utils/environment_vars.py
alanverresen/django-keys
bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38
[ "MIT" ]
null
null
null
tests/utils/environment_vars.py
alanverresen/django-keys
bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Contains a context manager for temporarily introducing an environment var. import os import contextlib
25.769231
76
0.707463
d44e934fa1525818148b189132b9513d98218d03
25,355
py
Python
data/analyzer.py
morelab/teseo2014
568ff66cf25bf7017dd371cf503f6b99df462fff
[ "Apache-2.0" ]
null
null
null
data/analyzer.py
morelab/teseo2014
568ff66cf25bf7017dd371cf503f6b99df462fff
[ "Apache-2.0" ]
null
null
null
data/analyzer.py
morelab/teseo2014
568ff66cf25bf7017dd371cf503f6b99df462fff
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 22 08:55:14 2014 @author: aitor """ import mysql.connector import networkx as nx from networkx.generators.random_graphs import barabasi_albert_graph import json import os.path import numpy as np import pandas as pd from pandas import Series from pandas import DataFrame i...
32.885863
221
0.559771
d453eb393dd54ae2eef12fe9e70bae23ed170871
1,076
py
Python
user_service/user/schema/user_schema.py
ss-o-furda/part_of_proj-user_service
20553eebaa2189cd47b08119850cd17ab0b1cd20
[ "CC0-1.0" ]
null
null
null
user_service/user/schema/user_schema.py
ss-o-furda/part_of_proj-user_service
20553eebaa2189cd47b08119850cd17ab0b1cd20
[ "CC0-1.0" ]
1
2021-06-02T02:43:39.000Z
2021-06-02T02:43:39.000Z
user_service/user/schema/user_schema.py
ss-o-furda/part_of_proj-user_service
20553eebaa2189cd47b08119850cd17ab0b1cd20
[ "CC0-1.0" ]
null
null
null
from marshmallow import fields, validate, validates_schema, ValidationError from user import MARSHMALLOW from user.models.user_model import User
33.625
75
0.750929
d454419e3e6cdb058ce6e7d5edb4c86210ee2dd2
7,751
py
Python
primal_dual_models.py
louisenaud/pytorch_primal_dual
05e212729299174e918b6f53f380f78986bcc135
[ "MIT" ]
2
2019-04-01T03:39:24.000Z
2022-03-12T01:13:38.000Z
primal_dual_models.py
louisenaud/pytorch_primal_dual
05e212729299174e918b6f53f380f78986bcc135
[ "MIT" ]
null
null
null
primal_dual_models.py
louisenaud/pytorch_primal_dual
05e212729299174e918b6f53f380f78986bcc135
[ "MIT" ]
null
null
null
""" Project: pytorch_primal_dual File: primal_dual_models.py Created by: louise On: 29/11/17 At: 4:00 PM """ import numpy as np from numpy import random from torch.autograd import Variable import torch import torch.nn as nn import torch.nn.functional as F from torchvision import transforms fr...
34.602679
103
0.608051
d455611f97cde8ae042a94f5b98d6334789fdf55
485
py
Python
.venv/lib/python3.6/site-packages/pyglet/media/sources/__init__.py
FedericoFontana/ray
5a7feae15f8c74d5d196fea6697c1827008018f3
[ "Apache-2.0" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
.venv/lib/python3.6/site-packages/pyglet/media/sources/__init__.py
FedericoFontana/ray
5a7feae15f8c74d5d196fea6697c1827008018f3
[ "Apache-2.0" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
.venv/lib/python3.6/site-packages/pyglet/media/sources/__init__.py
FedericoFontana/ray
5a7feae15f8c74d5d196fea6697c1827008018f3
[ "Apache-2.0" ]
1
2020-11-06T18:46:35.000Z
2020-11-06T18:46:35.000Z
"""Sources for media playback.""" # Collect public interface from .loader import load, have_avbin from .base import AudioFormat, VideoFormat, AudioData, SourceInfo from .base import Source, StreamingSource, StaticSource, SourceGroup # help the docs figure out where these are supposed to live (they live here) __all__ ...
23.095238
76
0.727835
d456f3b47a248e0295ccdf21c066772afa558733
3,074
py
Python
regexport/views/histogram2.py
jonnykohl/ABBA-QuPath-RegistrationAnalysis
d164d619117b400b2de524887fb598b966319518
[ "MIT" ]
2
2021-09-26T21:48:11.000Z
2022-02-09T03:02:59.000Z
regexport/views/histogram2.py
jonnykohl/ABBA-QuPath-RegistrationAnalysis
d164d619117b400b2de524887fb598b966319518
[ "MIT" ]
2
2022-01-28T14:40:20.000Z
2022-01-31T10:14:27.000Z
regexport/views/histogram2.py
jonnykohl/ABBA-QuPath-RegistrationAnalysis
d164d619117b400b2de524887fb598b966319518
[ "MIT" ]
1
2021-11-30T15:27:25.000Z
2021-11-30T15:27:25.000Z
import matplotlib import matplotlib.pyplot as plt import numpy as np from PySide2.QtWidgets import QVBoxLayout, QWidget from traitlets import HasTraits, Instance, Bool, directional_link from regexport.model import AppState from regexport.views.utils import HasWidget matplotlib.use('Qt5Agg') from matplotlib.backends...
34.155556
111
0.591087
d457ee3cfd1e0db55001718ecea3c52991bf2068
410
py
Python
tests/plot/test_layouts.py
akrherz/pyIEM
ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364
[ "MIT" ]
29
2015-09-02T15:53:48.000Z
2022-02-04T19:47:49.000Z
tests/plot/test_layouts.py
akrherz/pyIEM
ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364
[ "MIT" ]
531
2015-01-13T20:58:33.000Z
2022-03-30T13:59:14.000Z
tests/plot/test_layouts.py
akrherz/pyIEM
ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364
[ "MIT" ]
7
2015-02-28T22:34:32.000Z
2020-12-06T05:16:13.000Z
"""Test pyiem.plot.layouts.""" # third party import pytest # local from pyiem.plot.layouts import figure_axes
21.578947
52
0.658537
d457f75e99a83dac762342d37904956309e359c4
235
py
Python
python_sets/set_elements_sum.py
antonarnaudov/python-tigers-2021-02
8af6c121e4d373b7d98bf76dc1777753587262ef
[ "MIT" ]
null
null
null
python_sets/set_elements_sum.py
antonarnaudov/python-tigers-2021-02
8af6c121e4d373b7d98bf76dc1777753587262ef
[ "MIT" ]
null
null
null
python_sets/set_elements_sum.py
antonarnaudov/python-tigers-2021-02
8af6c121e4d373b7d98bf76dc1777753587262ef
[ "MIT" ]
null
null
null
ll = [1, 2, 3, 4, 5] ll2 = [3, 4, 5, 6, 7] print(set_elements_sum(ll, ll2)) # [4, 6, 8, 10, 12]
14.6875
32
0.489362
d459e29c6a334d3cb9c48312eadf040e7da6485c
3,543
py
Python
src/view/api.py
NKUST-ITC/NKUST-AP-API
96b5961170fb99f87490be9abdf869a8556c25d3
[ "MIT" ]
7
2020-01-20T14:32:45.000Z
2020-11-17T03:05:10.000Z
src/view/api.py
NKUST-ITC/NKUST-AP-API
96b5961170fb99f87490be9abdf869a8556c25d3
[ "MIT" ]
71
2019-07-10T13:23:42.000Z
2020-09-18T18:14:18.000Z
src/view/api.py
NKUST-ITC/NKUST-AP-API
96b5961170fb99f87490be9abdf869a8556c25d3
[ "MIT" ]
6
2019-10-13T15:17:11.000Z
2020-09-18T08:45:23.000Z
import datetime import json import falcon import redis from auth import jwt_auth from cache import ap_cache, api_cache from utils import config, error_code from utils.util import max_body, randStr red_auth_token = redis.StrictRedis.from_url( url=config.REDIS_URL, db=6, charset="utf-8", decode_responses=True) ...
33.11215
145
0.604008
d45a0cfea1607de8bf86aa4544c8ebb14855a180
213
py
Python
tests/pie.py
Sup3rGeo/allure-docx
54ad0c3ee57596658f97f49e45914ff4d18df140
[ "MIT" ]
25
2018-06-14T08:18:39.000Z
2021-08-04T07:42:24.000Z
tests/pie.py
Sup3rGeo/allure-docx
54ad0c3ee57596658f97f49e45914ff4d18df140
[ "MIT" ]
33
2018-05-18T11:33:21.000Z
2021-12-03T12:09:53.000Z
tests/pie.py
Sup3rGeo/allure-docx
54ad0c3ee57596658f97f49e45914ff4d18df140
[ "MIT" ]
9
2019-02-26T15:55:28.000Z
2021-05-18T19:06:03.000Z
from allure_docx.piechart import create_piechart data = { "broken": 1, "failed": 2, "skipped": 3, "passed": 4, } create_piechart(data, "C:\\Users\\victo\\Desktop\\piechart.png")
17.75
64
0.586854
d45bdb2824eae91d040e46999d119ed75d27d738
22,288
py
Python
numba/typeinfer.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
numba/typeinfer.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
null
null
null
numba/typeinfer.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
null
null
null
""" Type inference base on CPA. The algorithm guarantees monotonic growth of type-sets for each variable. Steps: 1. seed initial types 2. build constrains 3. propagate constrains 4. unify types Constrain propagation is precise and does not regret (no backtracing). Constrains push types forward followi...
35.434022
81
0.566897
d45d7e6465cdb57bb0b7929627529fa6ecb8698d
1,059
py
Python
examples/_pweave.py
erelsgl/prtpy
1404623f10164929fab1f8c09ebe4780e885b123
[ "MIT" ]
2
2022-02-27T11:28:05.000Z
2022-03-12T20:16:14.000Z
examples/_pweave.py
erelsgl/prtpy
1404623f10164929fab1f8c09ebe4780e885b123
[ "MIT" ]
null
null
null
examples/_pweave.py
erelsgl/prtpy
1404623f10164929fab1f8c09ebe4780e885b123
[ "MIT" ]
null
null
null
""" Run all the example files and convert them to markdown files containing the output. Uses `pweave`. It is not installed by default. To install: pip install pweave """ import pweave, datetime, glob, os if __name__ == "__main__": for python_file in glob.glob("*.py"): print(python_file) if...
35.3
193
0.691218
d45e0abbc1b60250ad55d017c7df68087d2d533a
388
py
Python
Course.py
timot3/uiuc-course-api
468043724532f6cc85c2e24dc8d11cd7819f7381
[ "MIT" ]
6
2021-12-21T21:32:52.000Z
2021-12-22T04:11:33.000Z
Course.py
timot3/uiuc-course-api
468043724532f6cc85c2e24dc8d11cd7819f7381
[ "MIT" ]
null
null
null
Course.py
timot3/uiuc-course-api
468043724532f6cc85c2e24dc8d11cd7819f7381
[ "MIT" ]
null
null
null
from dataclasses import dataclass import json
35.272727
120
0.608247
d45e91dbb62c867d411f2c3492ce392f573d7768
3,450
py
Python
mlops/parallelm/mlops/config_info.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
7
2019-04-08T02:31:55.000Z
2021-11-15T14:40:49.000Z
mlops/parallelm/mlops/config_info.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
31
2019-02-22T22:23:26.000Z
2021-08-02T17:17:06.000Z
mlops/parallelm/mlops/config_info.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
8
2019-03-15T23:46:08.000Z
2020-02-06T09:16:02.000Z
import os from parallelm.mlops.mlops_env_constants import MLOpsEnvConstants from parallelm.mlops.constants import Constants
44.805195
114
0.671304
d45f1586c5630bca9421e3233108ec6725f2dae3
27,344
py
Python
pyupdater/vendor/PyInstaller/hooks/hookutils.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
null
null
null
pyupdater/vendor/PyInstaller/hooks/hookutils.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
null
null
null
pyupdater/vendor/PyInstaller/hooks/hookutils.py
rsumner31/PyUpdater1
d9658000472e57453267ee8fa174ae914dd8d33c
[ "BSD-2-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this softwa...
36.851752
102
0.656378
d45faf437d036c5cd58c229b732627af92d8d453
2,087
py
Python
gpu_disk_monitor.py
alicfeng/node-gpu-exporter
b4e5b4b4a2c0c6f5993301c255c9438c904778ba
[ "MIT" ]
null
null
null
gpu_disk_monitor.py
alicfeng/node-gpu-exporter
b4e5b4b4a2c0c6f5993301c255c9438c904778ba
[ "MIT" ]
null
null
null
gpu_disk_monitor.py
alicfeng/node-gpu-exporter
b4e5b4b4a2c0c6f5993301c255c9438c904778ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pynvml import psutil import time import os while True: time.sleep(int(os.getenv("PLUGIN_PROM_INTERVAL", 5))) try: # nvml pynvml.nvmlInit() # GPU DeviceCount = pynvml.nvmlDeviceGetCount() GpuData = "" for i in range(DeviceCount): ...
42.591837
116
0.567322
d46085e0d6d11f501fc918c06a8f8a78a767953c
7,113
py
Python
src/siliqua/util.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
8
2019-10-31T19:16:08.000Z
2021-12-04T00:09:24.000Z
src/siliqua/util.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
null
null
null
src/siliqua/util.py
Matoking/siliqua
b943822631ab18dde85e95d1731ebd7ffd7ef14a
[ "CC0-1.0" ]
1
2019-11-01T19:27:48.000Z
2019-11-01T19:27:48.000Z
import binascii import uuid from collections import UserDict from functools import cmp_to_key, wraps from nanolib import Block as RawBlock from nanolib import nbase32_to_bytes, get_account_id __all__ = ( "RawBlock", "BlockProxy", "Callbacks", "CallbackSlot", "AccountIDDict" ) def account_id_to_bytes(account_...
28.914634
79
0.624631
d4609e8f44efe020f44060fbdd7755f9870ce65b
756
py
Python
similarity/io/kv_storage.py
diepdaocs/redis-minhash-es
e570fabd05730375af3e91c7830044cc0413fd9d
[ "Apache-2.0" ]
1
2020-10-06T15:40:46.000Z
2020-10-06T15:40:46.000Z
similarity/io/kv_storage.py
diepdaocs/redis-minhash-es
e570fabd05730375af3e91c7830044cc0413fd9d
[ "Apache-2.0" ]
null
null
null
similarity/io/kv_storage.py
diepdaocs/redis-minhash-es
e570fabd05730375af3e91c7830044cc0413fd9d
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from redis import StrictRedis
20.432432
74
0.628307
d460e2f959cb6961dc11dea40e4ea754a972cf2f
15,252
py
Python
canvasxpress/config/collection.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
4
2021-03-18T17:23:40.000Z
2022-02-01T19:07:01.000Z
canvasxpress/config/collection.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
8
2021-04-30T20:46:57.000Z
2022-03-10T07:25:31.000Z
canvasxpress/config/collection.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
1
2022-02-03T00:35:14.000Z
2022-02-03T00:35:14.000Z
import json from copy import deepcopy from functools import total_ordering from typing import List, Any, Union from canvasxpress.config.type import CXConfig, CXString, CXInt, CXFloat, CXBool, \ CXList, CXDict, CXRGBColor, CXRGBAColor from canvasxpress.data.convert import CXDictConvertable, CXListConvertable
32.177215
82
0.464201
d460fb43915a4c1a25003b0d50dc8bd4eaf7ce2f
5,444
py
Python
make_error_table_1plus1D.py
rtimms/asymptotic-pouch-cell
da2cfee87411125b084c4ca5854b68d01f9d0b70
[ "BSD-3-Clause" ]
2
2020-10-28T18:20:15.000Z
2021-08-03T15:48:31.000Z
make_error_table_1plus1D.py
rtimms/asymptotic-pouch-cell
da2cfee87411125b084c4ca5854b68d01f9d0b70
[ "BSD-3-Clause" ]
null
null
null
make_error_table_1plus1D.py
rtimms/asymptotic-pouch-cell
da2cfee87411125b084c4ca5854b68d01f9d0b70
[ "BSD-3-Clause" ]
1
2020-08-12T13:30:44.000Z
2020-08-12T13:30:44.000Z
# # Check convergence of 1+1D model to full 2D model # import pybamm import sys import pickle from pprint import pprint import shared import numpy as np # increase recursion limit for large expression trees sys.setrecursionlimit(100000) pybamm.set_logging_level("INFO") # choose npts for comparison npts = [4, 8, 16,...
34.455696
88
0.619214
d461962c359417f2fa58c7c7c548359f386ff1e8
665
py
Python
dpy_firestore_manager/structures/document.py
ming-suhi/dpy-firestore-manager
9c0eca46a1db08a4955f081d8529e2cbd8b4be9a
[ "MIT" ]
2
2021-06-24T12:32:11.000Z
2021-06-25T10:39:30.000Z
dpy_firestore_manager/structures/document.py
ming-suhi/dpy-firestore-manager
9c0eca46a1db08a4955f081d8529e2cbd8b4be9a
[ "MIT" ]
null
null
null
dpy_firestore_manager/structures/document.py
ming-suhi/dpy-firestore-manager
9c0eca46a1db08a4955f081d8529e2cbd8b4be9a
[ "MIT" ]
null
null
null
from .database import Database
15.113636
53
0.618045
d462cfa4f4831e5253a0564fc15f691201c2c792
2,837
py
Python
people/migrations/0001_initial.py
David5627/instagram-clone
f9c4db320d59e757303f247ebc2ff5666b715d0d
[ "MIT" ]
null
null
null
people/migrations/0001_initial.py
David5627/instagram-clone
f9c4db320d59e757303f247ebc2ff5666b715d0d
[ "MIT" ]
null
null
null
people/migrations/0001_initial.py
David5627/instagram-clone
f9c4db320d59e757303f247ebc2ff5666b715d0d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-17 15:24 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion
44.328125
141
0.59711
d463d9c0f6d6f7152fed820bc41a2196a8aa9a63
2,506
py
Python
jobs/models.py
soheltarir/django-es-test
2cdce24fb0288f16f2526b38d139359dbe8472f5
[ "MIT" ]
5
2019-12-01T13:06:55.000Z
2020-01-22T04:21:54.000Z
jobs/models.py
soheltarir/django-es-test
2cdce24fb0288f16f2526b38d139359dbe8472f5
[ "MIT" ]
2
2020-06-06T00:15:11.000Z
2022-02-10T11:24:31.000Z
jobs/models.py
soheltarir/django-elastic-postgres
2cdce24fb0288f16f2526b38d139359dbe8472f5
[ "MIT" ]
null
null
null
from django.conf import settings from django.db import models, connection from elasticsearch import Elasticsearch from jobs.managers import BaseManager def from_elastic(self): """ Fetches the instance document from Elasticsearch :return: Instance data in Dict :raises ElasticNotFou...
30.560976
117
0.660016
d4641766041568962ab232301857e545daabd61b
165
py
Python
1 - Beginner/1132.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
1
2020-09-09T12:48:09.000Z
2020-09-09T12:48:09.000Z
1 - Beginner/1132.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
1 - Beginner/1132.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
# URI Online Judge 1133 X = int(input()) Y = int(input()) soma = 0 if Y < X: X, Y = Y, X for i in range(X,Y+1): if i%13!=0: soma += i print(soma)
11.785714
23
0.50303
d465635fd625119bd10e862528a33efb5abc7880
532
py
Python
1051 - Imposto de Renda.py
CalixtoNeto/UriOnlineJudge
6c732ad3ad6f0b535210707654443e2f20a2871c
[ "MIT" ]
null
null
null
1051 - Imposto de Renda.py
CalixtoNeto/UriOnlineJudge
6c732ad3ad6f0b535210707654443e2f20a2871c
[ "MIT" ]
null
null
null
1051 - Imposto de Renda.py
CalixtoNeto/UriOnlineJudge
6c732ad3ad6f0b535210707654443e2f20a2871c
[ "MIT" ]
null
null
null
salario = float(input()) if (salario >= 0 and salario <= 2000.00): print('Isento') elif (salario >= 2000.01 and salario <= 3000.00): resto = salario - 2000 resul = resto * 0.08 print('R$ {:.2f}'.format(resul)) elif (salario >= 3000.01 and salario <= 4500.00): resto = salario - 3000 resul = (res...
33.25
58
0.567669
d465ea6aa469a0eeda3cef9959419393fecf5aa6
4,764
py
Python
qt-creator-opensource-src-4.6.1/tests/system/shared/suites_qtta.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
5
2018-12-22T14:49:13.000Z
2022-01-13T07:21:46.000Z
qt-creator-opensource-src-4.6.1/tests/system/shared/suites_qtta.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
null
null
null
qt-creator-opensource-src-4.6.1/tests/system/shared/suites_qtta.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
8
2018-07-17T03:55:48.000Z
2021-12-22T06:37:53.000Z
############################################################################ # # Copyright (C) 2016 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in # accordance with the co...
49.113402
119
0.68283
d467d5c267087c0c788c3e90841bd2462cc88eda
4,519
py
Python
import_3dm/converters/curve.py
jesterKing/import_3dm
c6493fced83d3df04d4de035f129d64f8322689f
[ "MIT" ]
167
2018-10-19T19:50:44.000Z
2022-03-30T22:13:14.000Z
import_3dm/converters/curve.py
mnmly/import_3dm
95ab13e38a27cf0309dc5c0a2dcd116bba05c504
[ "MIT" ]
83
2018-10-25T05:45:32.000Z
2022-03-23T19:36:26.000Z
import_3dm/converters/curve.py
mnmly/import_3dm
95ab13e38a27cf0309dc5c0a2dcd116bba05c504
[ "MIT" ]
33
2018-10-23T21:33:17.000Z
2022-03-28T07:41:33.000Z
# MIT License # Copyright (c) 2018-2019 Nathan Letwory, Joel Putnam, Tom Svilans, Lukas Fertig # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limita...
27.387879
101
0.664749
d467f165c17cdbdb661057295ad4cfbadbb5bf8d
1,636
py
Python
subtitle-audio-transfer/audio-transfer.py
iwalton3/media-scripts
6264c27054038e7f65ae35ee7519ff5cee9f0c7a
[ "MIT" ]
31
2020-04-02T21:30:51.000Z
2022-03-06T05:23:11.000Z
subtitle-audio-transfer/audio-transfer.py
iwalton3/media-scripts
6264c27054038e7f65ae35ee7519ff5cee9f0c7a
[ "MIT" ]
3
2020-05-13T03:52:28.000Z
2021-09-28T22:18:55.000Z
subtitle-audio-transfer/audio-transfer.py
iwalton3/media-scripts
6264c27054038e7f65ae35ee7519ff5cee9f0c7a
[ "MIT" ]
2
2020-05-23T02:05:25.000Z
2021-03-11T15:05:58.000Z
#!/usr/bin/env python3 import sys import subprocess from align_videos_by_soundtrack.align import SyncDetector, cli_common remove = [] remove_specified = False remove_all = False add = [] add_specified = False copy_subtitles = False files = [] print_offset_only = False for argument in sys.argv[1:]: if argument == ...
24.787879
69
0.646699
d468b4040e163972a066288b8759fdddb7630bcc
138
py
Python
nailgun-client/py/__init__.py
h4l/nailgun
84f3b051e99f7be17260b1cae8da0217be0bb0a4
[ "Apache-2.0" ]
362
2017-10-16T18:51:28.000Z
2022-03-29T00:44:30.000Z
nailgun-client/py/__init__.py
h4l/nailgun
84f3b051e99f7be17260b1cae8da0217be0bb0a4
[ "Apache-2.0" ]
88
2017-10-30T22:52:49.000Z
2022-03-04T21:56:39.000Z
nailgun-client/py/__init__.py
h4l/nailgun
84f3b051e99f7be17260b1cae8da0217be0bb0a4
[ "Apache-2.0" ]
89
2017-10-16T18:51:29.000Z
2022-03-18T00:52:28.000Z
# Copyright 2004-2015, Martian Software, Inc. # Copyright 2017-Present Facebook, Inc. from ng import NailgunConnection, NailgunException
27.6
50
0.804348
d4695c56307183db636d9bc503efb46f23c4be19
7,831
py
Python
WaveNetClassifier.py
Yeok-c/audio_data_augment
bb096cd3ebf3f4aca0f65759f97be8832815d8d8
[ "MIT" ]
null
null
null
WaveNetClassifier.py
Yeok-c/audio_data_augment
bb096cd3ebf3f4aca0f65759f97be8832815d8d8
[ "MIT" ]
null
null
null
WaveNetClassifier.py
Yeok-c/audio_data_augment
bb096cd3ebf3f4aca0f65759f97be8832815d8d8
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import sys import tensorflow as tf from keras.layers import Input, Dense, Lambda, Flatten, Reshape, Activation, Dropout, Add, TimeDistributed, Multiply, Conv1D, Conv2D, MaxPooling1D, AveragePooling1D from keras.models import Model, Sequential, load_model from keras import backend ...
41.215789
183
0.650619
d469c0222f63a84b0e954f5e839ba9f76753383c
1,004
py
Python
tagify_project/music/migrations/old/0001_initial.py
Krayonn/tagify
5ee7efce3cacfa23a344e4c02070a365f50136a8
[ "MIT" ]
null
null
null
tagify_project/music/migrations/old/0001_initial.py
Krayonn/tagify
5ee7efce3cacfa23a344e4c02070a365f50136a8
[ "MIT" ]
null
null
null
tagify_project/music/migrations/old/0001_initial.py
Krayonn/tagify
5ee7efce3cacfa23a344e4c02070a365f50136a8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-03-08 10:44 from django.db import migrations, models
30.424242
114
0.547809
d46aaebb90fff0b9c22011f6ee273bc91bc79ad5
561
py
Python
tf_saving_restore/restore.py
simonfong6/micro-projects
5be195ea72ce117df6da041446f11c18e102b5df
[ "MIT" ]
null
null
null
tf_saving_restore/restore.py
simonfong6/micro-projects
5be195ea72ce117df6da041446f11c18e102b5df
[ "MIT" ]
null
null
null
tf_saving_restore/restore.py
simonfong6/micro-projects
5be195ea72ce117df6da041446f11c18e102b5df
[ "MIT" ]
null
null
null
# restore.py import tensorflow as tf tf.reset_default_graph() # Create some variables. v1 = tf.get_variable("v1", [3], initializer = tf.zeros_initializer) v2 = tf.get_variable("v2", [5], initializer = tf.zeros_initializer) # Add ops to save and restore only `v2` using the name "v2" saver = tf.train.Saver({"v2": v2})...
26.714286
67
0.684492
d46c4ef30fe9039fd1e58bc4503658746a51b2b8
2,266
py
Python
pysite/views/staff/jams/forms/questions_edit.py
gatarelib/site
81c71a58b949cb346e6af95d2cc3a7c4a71f36fe
[ "MIT" ]
null
null
null
pysite/views/staff/jams/forms/questions_edit.py
gatarelib/site
81c71a58b949cb346e6af95d2cc3a7c4a71f36fe
[ "MIT" ]
null
null
null
pysite/views/staff/jams/forms/questions_edit.py
gatarelib/site
81c71a58b949cb346e6af95d2cc3a7c4a71f36fe
[ "MIT" ]
null
null
null
import json from flask import redirect, request, url_for from werkzeug.exceptions import BadRequest, NotFound from pysite.base_route import RouteView from pysite.constants import ALL_STAFF_ROLES from pysite.decorators import csrf, require_roles from pysite.mixins import DBMixin REQUIRED_KEYS = ["title", "date_start"...
29.815789
78
0.631951
d46e84399f4a786d2d9417ea41788e945de9b9f8
1,223
py
Python
intrepyd/colors.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
2
2021-04-25T17:38:03.000Z
2022-03-20T20:48:50.000Z
intrepyd/colors.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
1
2016-11-30T22:25:00.000Z
2017-01-16T22:43:39.000Z
intrepyd/colors.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (C) 2017 Roberto Bruttomesso <roberto.bruttomesso@gmail.com> This file is distributed under the terms of the 3-clause BSD License. A copy of the license can be found in the root directory or at https://opensource.org/licenses/BSD-3-Clause. Author: Roberto Bruttomesso <roberto.bruttomesso@gmail.com> Da...
21.839286
70
0.670482
d46f8fddd21b1839176a48181a312306a1f12441
372
py
Python
instagram_api/response/model/direct_expiring_summary.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
instagram_api/response/model/direct_expiring_summary.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
instagram_api/response/model/direct_expiring_summary.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
from ..mapper import PropertyMapper, ApiInterfaceBase from ..mapper.types import Timestamp, AnyType __all__ = ['DirectExpiringSummary', 'DirectExpiringSummaryInterface']
23.25
76
0.803763
d46f9cdaa97cb7c58424bb09eee06de910375f45
288
py
Python
unmasked/m3/read_serial.py
saber-collection/saber-collection
b3cbf340c168c8c79a8b2371649934fa90c8be30
[ "CC0-1.0" ]
3
2021-07-27T09:01:04.000Z
2022-01-14T03:21:54.000Z
unmasked/m3/read_serial.py
saber-collection/saber-collection
b3cbf340c168c8c79a8b2371649934fa90c8be30
[ "CC0-1.0" ]
2
2021-12-10T08:59:07.000Z
2022-01-20T15:04:33.000Z
unmasked/m3/read_serial.py
saber-collection/saber-collection
b3cbf340c168c8c79a8b2371649934fa90c8be30
[ "CC0-1.0" ]
1
2022-01-07T07:39:45.000Z
2022-01-07T07:39:45.000Z
#!/usr/bin/env python3 import platform import serial import sys from config import Settings dev = serial.Serial(Settings.SERIAL_DEVICE, Settings.BAUD_RATE) print("> Returned data:", file=sys.stderr) while True: x = dev.read() sys.stdout.buffer.write(x) sys.stdout.flush()
18
63
0.729167
d46fbe250fb29497d273442d706752fcbb677fe4
15,893
py
Python
python/haystack.py
ssorj/haystack
c8ab821c1e1fd3f7c52f289491034679d6a2d140
[ "Apache-2.0" ]
null
null
null
python/haystack.py
ssorj/haystack
c8ab821c1e1fd3f7c52f289491034679d6a2d140
[ "Apache-2.0" ]
null
null
null
python/haystack.py
ssorj/haystack
c8ab821c1e1fd3f7c52f289491034679d6a2d140
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
28.079505
81
0.592777
d4706eaf9ed2710b50c2c8816b8e27ab7db167ac
2,460
py
Python
src/train_and_save.py
shifty21/neural-numpy
85c97f19c830f82b92b43986bdc2efcb6e114076
[ "MIT" ]
null
null
null
src/train_and_save.py
shifty21/neural-numpy
85c97f19c830f82b92b43986bdc2efcb6e114076
[ "MIT" ]
null
null
null
src/train_and_save.py
shifty21/neural-numpy
85c97f19c830f82b92b43986bdc2efcb6e114076
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import numpy as np np.random.seed(1337) from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.layers.core import Dense, Flatten from keras.models import Sequential from keras.optimizers import SGD from logger import Logger from utils import utils as u ...
34.166667
112
0.65
d471ec6ff3af56ea13084f104d2cab2e60990ed0
786
py
Python
lib/lecture.py
kfkonrad/py-stundenplan
83df034d176cf67e3ca7e8a25111e715a349c03b
[ "MIT" ]
null
null
null
lib/lecture.py
kfkonrad/py-stundenplan
83df034d176cf67e3ca7e8a25111e715a349c03b
[ "MIT" ]
null
null
null
lib/lecture.py
kfkonrad/py-stundenplan
83df034d176cf67e3ca7e8a25111e715a349c03b
[ "MIT" ]
null
null
null
from typing import List, NoReturn from lib.t import T
26.2
66
0.501272
d472bfcdd59367d1ed14df00006f9db40ba1e325
924
py
Python
planner/migrations/0008_lawnproduct.py
pmontgo33/lawn-care-planner
0b79a07a301eeb9a15ff1f4f461bdd364151f86a
[ "MIT" ]
7
2016-12-07T18:34:42.000Z
2021-08-03T15:22:35.000Z
planner/migrations/0008_lawnproduct.py
pmontgo33/lawn-care-planner
0b79a07a301eeb9a15ff1f4f461bdd364151f86a
[ "MIT" ]
35
2016-11-23T15:40:46.000Z
2017-05-18T22:58:17.000Z
planner/migrations/0008_lawnproduct.py
pmontgo33/lawn-care-planner
0b79a07a301eeb9a15ff1f4f461bdd364151f86a
[ "MIT" ]
1
2017-04-13T15:13:01.000Z
2017-04-13T15:13:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-12-06 03:59 from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields
34.222222
201
0.599567
d47400120d802a6bd315f61f2623a53e8363df9a
2,464
py
Python
gdc_client/__init__.py
di2ag/gdc_client
fb8348ce8b416084959ab50dd84848e6e5250adf
[ "Apache-2.0" ]
null
null
null
gdc_client/__init__.py
di2ag/gdc_client
fb8348ce8b416084959ab50dd84848e6e5250adf
[ "Apache-2.0" ]
null
null
null
gdc_client/__init__.py
di2ag/gdc_client
fb8348ce8b416084959ab50dd84848e6e5250adf
[ "Apache-2.0" ]
null
null
null
""" Initialization file for a GDC API client. """ from copy import copy import types from .client import BaseClient # Aliases COMMON_ALIASES = { "_get_cases": 'get_cases', "_get_mappings": 'get_mappings', "_get_genes": 'get_genes', "_get_ssm_occurrences": 'get_ssm_occurrences', } # API speci...
30.419753
125
0.643669
d47599305c1d1b7b8d20de48c506ff172cde37a3
5,173
py
Python
pyaz/search/service/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/search/service/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/search/service/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage Azure Search services. ''' from ... pyaz_utils import _call_az def list(resource_group): ''' Required Parameters: - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` ''' return _call_az("az search service list...
49.740385
312
0.715832
d476d8dd1be2c7313c00dcab49d959a864de8726
352
py
Python
codeforces.com/1560B/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
codeforces.com/1560B/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
codeforces.com/1560B/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
for i in range(int(input())): a, b, c = map(int, input().split()) mi = min(a, b) ma = max(a, b) half_circle_people = (ma - mi) full_circle_people = 2 * half_circle_people if ma > half_circle_people * 2 or c > full_circle_people: print(-1) else: print((c - half_circle_people...
27.076923
68
0.59375
d476da1bc58d7a1e677fb40a03e596a33fb0f3e3
44
py
Python
first_step.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
first_step.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
first_step.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
import get_hwnd get_hwnd.prt_hwnd_title()
8.8
25
0.818182
d47c7410ad2e1d295e58a4e424616eb38492c3d3
3,502
py
Python
care_batch/train.py
amedyukhina/care_batch
7670eb7bbd9339dcc580cf8686c79900253392eb
[ "Apache-2.0" ]
null
null
null
care_batch/train.py
amedyukhina/care_batch
7670eb7bbd9339dcc580cf8686c79900253392eb
[ "Apache-2.0" ]
null
null
null
care_batch/train.py
amedyukhina/care_batch
7670eb7bbd9339dcc580cf8686c79900253392eb
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, unicode_literals, absolute_import, division import os import matplotlib.pyplot as plt from csbdeep.io import load_training_data from csbdeep.models import Config, CARE from csbdeep.utils import axes_dict, plot_history from csbdeep.utils.tf import limit_gpu_memory def train(dat...
41.690476
114
0.679326
d47d11c0c073b62a10d841b78daf123c81e25219
553
py
Python
204.Count_Primes.py
wanxin-code/leetcode
524d744202c4c887fda0a60861f80b30d706da67
[ "MIT" ]
1
2019-10-17T10:39:27.000Z
2019-10-17T10:39:27.000Z
204.Count_Primes.py
wanxin-code/leetcode
524d744202c4c887fda0a60861f80b30d706da67
[ "MIT" ]
null
null
null
204.Count_Primes.py
wanxin-code/leetcode
524d744202c4c887fda0a60861f80b30d706da67
[ "MIT" ]
null
null
null
import math
34.5625
149
0.481013
d4810d64f0d8b918e9d775353759ccbef353fe0f
4,173
py
Python
packages/auto-nlp-workflow-lib/src/tagflip/model/mlflow/huggingface/huggingface_sequenceclassification_savable.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
4
2021-10-05T17:34:02.000Z
2022-03-23T07:33:19.000Z
packages/auto-nlp-workflow-lib/src/tagflip/model/mlflow/huggingface/huggingface_sequenceclassification_savable.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
11
2022-03-01T14:37:52.000Z
2022-03-31T05:11:23.000Z
packages/auto-nlp-workflow-lib/src/tagflip/model/mlflow/huggingface/huggingface_sequenceclassification_savable.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
1
2022-01-29T13:32:22.000Z
2022-01-29T13:32:22.000Z
import logging from typing import Any, Dict, List, NewType import mlflow import numpy as np import pandas as pd import torch import transformers from mlflow.models import ModelSignature from mlflow.pyfunc import PythonModel from mlflow.types import ColSpec, DataType, Schema, TensorSpec from mlflow.utils.environment im...
38.284404
110
0.632159
d4814e225cb9b6a3ed36a170b51a2e4e97d4ba16
2,657
py
Python
src/my_py_pkg/my_py_pkg/action_client.py
devis12/ros2_ws_src
3a3552a2240767a2d6776c424681b70cad83e989
[ "Apache-2.0" ]
1
2021-06-14T11:30:55.000Z
2021-06-14T11:30:55.000Z
src/my_py_pkg/my_py_pkg/action_client.py
devis12/ros2_ws_src
3a3552a2240767a2d6776c424681b70cad83e989
[ "Apache-2.0" ]
null
null
null
src/my_py_pkg/my_py_pkg/action_client.py
devis12/ros2_ws_src
3a3552a2240767a2d6776c424681b70cad83e989
[ "Apache-2.0" ]
null
null
null
import rclpy from rclpy.action import ActionClient from rclpy.node import Node from functools import partial from my_robot_interfaces.action import Test if __name__ == '__main__': main()
34.506494
123
0.656379
d48194f7f641e86ac8eb4f438a9abb848f3f7681
965
py
Python
img/cards/cardify_driv.py
ETHproductions/mkt
3f580fa6191c88cdc2cee19d0b79208c2e80fb82
[ "MIT" ]
null
null
null
img/cards/cardify_driv.py
ETHproductions/mkt
3f580fa6191c88cdc2cee19d0b79208c2e80fb82
[ "MIT" ]
null
null
null
img/cards/cardify_driv.py
ETHproductions/mkt
3f580fa6191c88cdc2cee19d0b79208c2e80fb82
[ "MIT" ]
null
null
null
import sys from PIL import Image from os import listdir for rarity in "Normal", "Rare", "Ultra": imfiles = [i for i in listdir("adj_drivers/" + rarity) if i[-4:] == ".png" and i[0] != '_'] print(imfiles) im_base = Image.open("../frames/" + rarity + "DriverBase.png") im_frame = Image.open("../frames/" + rari...
28.382353
93
0.603109
d48253284557462c50068a4ee14dab1e8cdaa744
623
py
Python
weather_bot/generate_audio_files.py
tinalimbudev/weather-bot
6e59420cac3a6b31d52983287c42ef9f4feb3422
[ "MIT" ]
null
null
null
weather_bot/generate_audio_files.py
tinalimbudev/weather-bot
6e59420cac3a6b31d52983287c42ef9f4feb3422
[ "MIT" ]
null
null
null
weather_bot/generate_audio_files.py
tinalimbudev/weather-bot
6e59420cac3a6b31d52983287c42ef9f4feb3422
[ "MIT" ]
null
null
null
import os from gtts import gTTS from pathlib import Path if __name__ == "__main__": # Replace with list of tuples. # E.g. [("Please could you repeat that?", "pardon")] texts_and_file_names = [] for text, file_name in texts_and_file_names: generate_audio_file_from_text(text, file_name)
22.25
61
0.701445
d4831cb1233c25b64c8427e8a7e41ee32b1bfca1
2,917
py
Python
app.py
sohje/__flask_psgr
4d8b201b93b72f55965cbaa030fcfb062b818803
[ "MIT" ]
null
null
null
app.py
sohje/__flask_psgr
4d8b201b93b72f55965cbaa030fcfb062b818803
[ "MIT" ]
null
null
null
app.py
sohje/__flask_psgr
4d8b201b93b72f55965cbaa030fcfb062b818803
[ "MIT" ]
null
null
null
import os from sqlalchemy import (create_engine, MetaData, Table, Column, Integer, Text, String, DateTime) from flask import Flask, request, jsonify, g from mock_session import session_info_retriever app = Flask(__name__) # config.DevelopmentConfig -> sqlite://testing.db # config.ProductionConfig -> postgresql:/...
31.031915
82
0.685979
d483cac4baa895087753c91d39105d8e693ca7b5
608
py
Python
08/08.py
stevenpclark/aoc2019
a02815c751a2cb2eea2b7648795ed7c6cf41190f
[ "MIT" ]
null
null
null
08/08.py
stevenpclark/aoc2019
a02815c751a2cb2eea2b7648795ed7c6cf41190f
[ "MIT" ]
null
null
null
08/08.py
stevenpclark/aoc2019
a02815c751a2cb2eea2b7648795ed7c6cf41190f
[ "MIT" ]
null
null
null
import numpy as np with open('input.txt', 'r') as f: s = f.read().strip() #s = '0222112222120000' nr = 6 nc = 25 x = [int(c) for c in s] d = np.array(x) d = np.reshape(d, (-1, nr, nc)) nb = d.shape[0] tups = [] for b in range(nb): band = d[b,:,:] unique, counts = np.unique(band, return_counts=True) ...
16.888889
56
0.493421
d4863d12f47858c604c5d9a2bca60d6a8dccaf31
84
py
Python
tests/acceptance/test_project/ignored.py
wo0dyn/raincoat
56fb9624c92bc11690975b12efc192402ca334a4
[ "MIT" ]
18
2016-10-13T10:16:49.000Z
2017-10-20T07:54:11.000Z
tests/acceptance/test_project/ignored.py
wo0dyn/raincoat
56fb9624c92bc11690975b12efc192402ca334a4
[ "MIT" ]
18
2016-10-13T11:37:47.000Z
2017-10-20T20:59:34.000Z
tests/acceptance/test_project/ignored.py
wo0dyn/raincoat
56fb9624c92bc11690975b12efc192402ca334a4
[ "MIT" ]
2
2016-11-21T16:54:01.000Z
2017-04-11T10:29:17.000Z
# Raincoat: pypi package: raincoat==0.1.4 path: raincoat/_acceptance_test.py # noqa
42
83
0.761905
d488b45de299bd292d25b6ff91c6ea9e5d97612a
2,164
py
Python
configs/recognition/tpn/inference_tpn_slowonly_rpl.py
Cogito2012/DEAR
97d0e8f191da0f20dcc9721280af48171dabef5e
[ "Apache-2.0" ]
47
2021-09-02T10:42:29.000Z
2022-03-31T01:37:49.000Z
configs/recognition/tpn/inference_tpn_slowonly_rpl.py
Cogito2012/DEAR
97d0e8f191da0f20dcc9721280af48171dabef5e
[ "Apache-2.0" ]
2
2021-12-05T02:28:42.000Z
2022-01-05T06:46:10.000Z
configs/recognition/tpn/inference_tpn_slowonly_rpl.py
Cogito2012/DEAR
97d0e8f191da0f20dcc9721280af48171dabef5e
[ "Apache-2.0" ]
6
2021-09-19T16:31:32.000Z
2022-03-03T06:57:34.000Z
# model settings model = dict( type='Recognizer3DRPL', backbone=dict( type='ResNet3dSlowOnly', depth=50, pretrained='torchvision://resnet50', lateral=False, out_indices=(2, 3), conv1_kernel=(1, 7, 7), conv1_stride_t=1, pool1_stride_t=1, inf...
31.362319
78
0.583641