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
665956b19edea097158d528d01890795f973fee1
19,404
py
Python
app/apps/address/migrations/0001_initial.py
brsrtc/mini-erp-docker
f5c37c71384c76e029a26e89f4771a59ed02f925
[ "MIT" ]
1
2021-01-18T07:11:31.000Z
2021-01-18T07:11:31.000Z
app/apps/address/migrations/0001_initial.py
brsrtc/mini-erp-docker
f5c37c71384c76e029a26e89f4771a59ed02f925
[ "MIT" ]
null
null
null
app/apps/address/migrations/0001_initial.py
brsrtc/mini-erp-docker
f5c37c71384c76e029a26e89f4771a59ed02f925
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-12-05 17:27 import django.db.models.deletion from django.conf import settings from django.db import migrations, models import core.cache
59.521472
93
0.44563
665bab55df7c6bcde1b85c9c43014205b79501eb
2,984
py
Python
pybf/image_settings.py
Sergio5714/pybf
bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc
[ "Apache-2.0" ]
1
2021-11-02T09:54:41.000Z
2021-11-02T09:54:41.000Z
pybf/image_settings.py
Sergio5714/pybf
bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc
[ "Apache-2.0" ]
null
null
null
pybf/image_settings.py
Sergio5714/pybf
bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc
[ "Apache-2.0" ]
2
2020-04-17T10:50:06.000Z
2021-11-02T09:54:47.000Z
""" Copyright (C) 2020 ETH Zurich. All rights reserved. Author: Sergei Vostrikov, ETH Zurich 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/LI...
31.410526
101
0.655831
665ca8b455ad5fa005ae44eb4ff2f68155d6d9ba
9,912
py
Python
pre-receive.d/net.twistedbytes.gitlab-protector.py
andgeno/GitLab-Protector
b05f39a23213bd832cbbf30bc63731aca1fce18d
[ "MIT" ]
7
2020-12-14T10:05:13.000Z
2021-11-25T15:14:26.000Z
pre-receive.d/net.twistedbytes.gitlab-protector.py
andgeno/GitLab-Protector
b05f39a23213bd832cbbf30bc63731aca1fce18d
[ "MIT" ]
1
2021-04-19T13:47:12.000Z
2021-04-24T12:39:47.000Z
pre-receive.d/net.twistedbytes.gitlab-protector.py
andgeno/GitLab-Protector
b05f39a23213bd832cbbf30bc63731aca1fce18d
[ "MIT" ]
1
2021-04-19T14:06:54.000Z
2021-04-19T14:06:54.000Z
#!/usr/bin/env python import sys import os import re import subprocess from enum import Enum GitLabProtector()
38.123077
161
0.602502
665d3713837abc4149228da527c02f71d0d908ef
1,151
py
Python
tests/test_cli.py
joshbduncan/word-search-generator
3c527f0371cbe4550a24403c660d1c6511b4cf79
[ "MIT" ]
4
2021-09-18T21:21:54.000Z
2022-03-02T03:53:54.000Z
tests/test_cli.py
joshbduncan/word-search-generator
3c527f0371cbe4550a24403c660d1c6511b4cf79
[ "MIT" ]
4
2021-09-18T21:50:33.000Z
2022-03-22T04:29:33.000Z
tests/test_cli.py
joshbduncan/word-search-generator
3c527f0371cbe4550a24403c660d1c6511b4cf79
[ "MIT" ]
1
2021-11-17T14:53:50.000Z
2021-11-17T14:53:50.000Z
import os import pathlib import tempfile TEMP_DIR = tempfile.TemporaryDirectory()
26.159091
84
0.709818
665d77836b64427e5626b7f66bfbf1c6d819e02b
1,167
py
Python
karas/__init__.py
TuXiaokang/karas
2549502424b2d4c67047b867b0315f33b2e997c5
[ "MIT" ]
3
2019-02-28T13:53:48.000Z
2022-01-18T12:53:37.000Z
karas/__init__.py
TuXiaokang/karas
2549502424b2d4c67047b867b0315f33b2e997c5
[ "MIT" ]
null
null
null
karas/__init__.py
TuXiaokang/karas
2549502424b2d4c67047b867b0315f33b2e997c5
[ "MIT" ]
1
2022-01-18T12:53:42.000Z
2022-01-18T12:53:42.000Z
import pickle from karas.version import __version__
22.442308
60
0.548415
665e40e33fdd973b30b29de0d4999dd092a29402
681
py
Python
calc.py
fja05680/calc
6959bdd740722c7e3024f4e5a9a21607ad5ffccf
[ "MIT" ]
null
null
null
calc.py
fja05680/calc
6959bdd740722c7e3024f4e5a9a21607ad5ffccf
[ "MIT" ]
null
null
null
calc.py
fja05680/calc
6959bdd740722c7e3024f4e5a9a21607ad5ffccf
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import calc if __name__ == '__main__': main()
23.482759
46
0.444934
666446282fcb45a4a20b926c54fc47be65a01ac8
8,534
py
Python
aiida_environ/workflows/pw/grandcanonical.py
environ-developers/aiida-environ
c39ac70227a41e084b74df630c3cb4b4caa27094
[ "MIT" ]
null
null
null
aiida_environ/workflows/pw/grandcanonical.py
environ-developers/aiida-environ
c39ac70227a41e084b74df630c3cb4b4caa27094
[ "MIT" ]
1
2021-12-07T17:03:44.000Z
2021-12-07T17:03:44.000Z
aiida_environ/workflows/pw/grandcanonical.py
environ-developers/aiida-environ
c39ac70227a41e084b74df630c3cb4b4caa27094
[ "MIT" ]
null
null
null
import numpy as np from aiida.common import AttributeDict from aiida.engine import WorkChain, append_ from aiida.orm import Dict, List, StructureData from aiida.orm.nodes.data.upf import get_pseudos_from_structure from aiida.orm.utils import load_node from aiida.plugins import WorkflowFactory from aiida_quantumespresso...
44.915789
88
0.664284
6664aaeb4a16b83003b59cd285e9bdc4f631fdb5
6,481
py
Python
tabnet/utils.py
huangyz0918/tabnet
a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4
[ "MIT" ]
1
2021-06-17T04:47:41.000Z
2021-06-17T04:47:41.000Z
tabnet/utils.py
huangyz0918/tabnet
a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4
[ "MIT" ]
null
null
null
tabnet/utils.py
huangyz0918/tabnet
a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4
[ "MIT" ]
null
null
null
import torch import numpy as np import pandas as pd from collections import OrderedDict def generate_categorical_to_ordinal_map(inputs): if isinstance(inputs, pd.Series): inputs = inputs.values uq_inputs = np.unique(inputs) return dict(zip(list(uq_inputs), list(range(len(uq_inputs))))) def ma...
33.755208
91
0.577843
6664d9c361d76731e630fab7db18a3314ba27f7a
699
py
Python
ex022.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
1
2021-11-23T21:41:25.000Z
2021-11-23T21:41:25.000Z
ex022.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
ex022.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
# Analisador de textos # Crie um programa que leia o nome completo de uma pessoa e mostre: # - O nome com todas as letras maisculas e minsculas. # - Quantas letras ao todo (sem considerar espaos). print('=*'*20, 'CADASTRO', '=*'*20) nome = str(input('Nome Completo:')).strip()#Para ler com letras maisculas print('Ana...
34.95
102
0.703863
66654d5cfc565e697020cd64524f69662efe7ca5
312
py
Python
urls.py
stephenmcd/gamblor
a12f43339e2a6d34e4ed5ea3d02a3629ed5b8616
[ "BSD-2-Clause" ]
12
2015-06-09T02:31:43.000Z
2021-12-11T21:35:38.000Z
urls.py
binarygrrl/gamblor
a12f43339e2a6d34e4ed5ea3d02a3629ed5b8616
[ "BSD-2-Clause" ]
null
null
null
urls.py
binarygrrl/gamblor
a12f43339e2a6d34e4ed5ea3d02a3629ed5b8616
[ "BSD-2-Clause" ]
9
2016-11-14T23:56:51.000Z
2021-04-14T07:47:44.000Z
from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from core import game admin.autodiscover() game.autodiscover() urlpatterns = patterns("", ("^admin/", include(admin.site.urls)), url("", include("social_auth.urls")), url("", include("core.urls")), )
18.352941
60
0.692308
666552755de681921ce121bf7878b38237804c08
3,258
py
Python
DCGAN/train.py
drone911/Mnist-GANs
6b5ffc6ecf5070522ebcb6a41374cfffd674b684
[ "MIT" ]
null
null
null
DCGAN/train.py
drone911/Mnist-GANs
6b5ffc6ecf5070522ebcb6a41374cfffd674b684
[ "MIT" ]
null
null
null
DCGAN/train.py
drone911/Mnist-GANs
6b5ffc6ecf5070522ebcb6a41374cfffd674b684
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 13 20:11:22 2019 @author: drone911 """ from helper import * from models import * import numpy as np from keras.datasets import mnist from tqdm import tqdm import warnings if __name__=="__main__": warnings.filterwarnings("ignore") (train_images, train_lab...
41.240506
116
0.612339
6666b27d9a32939d312fcb0f1e04eb3582ec3f56
275
py
Python
03 - Types/3.2 - InbuiltTypes-ListsTuples/07-method-errors-index.py
python-demo-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
2
2019-08-23T06:05:55.000Z
2019-08-26T03:56:07.000Z
03 - Types/3.2 - InbuiltTypes-ListsTuples/07-method-errors-index.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
null
null
null
03 - Types/3.2 - InbuiltTypes-ListsTuples/07-method-errors-index.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
4
2020-10-01T07:16:07.000Z
2021-07-17T07:55:08.000Z
# HEAD # DataType - List method -index() Usage Error # DESCRIPTION # Describes index method of lists # and its error incase item is not there # RESOURCES # lists = ['hello', 'hi', 'howdy', 'heyas'] # returns an error - ValueError print(lists.index('hello hello'))
21.153846
46
0.676364
6667684709a7e3192cfea4fd79e3ee7e997e694d
2,418
py
Python
Model/predictor-dl-model/tests/experiments/7day_variance_uckey_weight_in_slotid.py
rangaswamymr/blue-marlin
2ab39a6af01e14f40386f640fe087aeb284b5524
[ "Apache-2.0" ]
null
null
null
Model/predictor-dl-model/tests/experiments/7day_variance_uckey_weight_in_slotid.py
rangaswamymr/blue-marlin
2ab39a6af01e14f40386f640fe087aeb284b5524
[ "Apache-2.0" ]
null
null
null
Model/predictor-dl-model/tests/experiments/7day_variance_uckey_weight_in_slotid.py
rangaswamymr/blue-marlin
2ab39a6af01e14f40386f640fe087aeb284b5524
[ "Apache-2.0" ]
null
null
null
from pyspark import SparkContext, SparkConf, SQLContext from pyspark.sql.functions import count, lit, col, udf, expr, collect_list, explode from pyspark.sql.types import IntegerType, StringType, MapType, ArrayType, BooleanType, FloatType from pyspark.sql import HiveContext from datetime import datetime, timedelta from ...
37.78125
158
0.706369
66698e346f68c9e447122b0d937db33190f58a61
4,443
py
Python
tests/test_metrohash.py
thihara/pyfasthash
20a53f9bb7bf15f98e3e549f523b49e1e0f62e15
[ "Apache-2.0" ]
234
2015-02-05T13:41:58.000Z
2022-03-30T08:55:23.000Z
tests/test_metrohash.py
thihara/pyfasthash
20a53f9bb7bf15f98e3e549f523b49e1e0f62e15
[ "Apache-2.0" ]
50
2015-03-19T05:53:34.000Z
2022-03-30T16:20:17.000Z
tests/test_metrohash.py
thihara/pyfasthash
20a53f9bb7bf15f98e3e549f523b49e1e0f62e15
[ "Apache-2.0" ]
44
2015-04-23T18:51:43.000Z
2022-03-30T21:07:57.000Z
import pytest import pyhash
39.669643
83
0.765699
66698ee5453f94b084a237ee9ea9e607d1b0395c
9,922
py
Python
main_fed.py
berserkersss/FL_CNN_Diff_Acc
f78651b426ff700108b62f2afbd99134b30af1e6
[ "MIT" ]
null
null
null
main_fed.py
berserkersss/FL_CNN_Diff_Acc
f78651b426ff700108b62f2afbd99134b30af1e6
[ "MIT" ]
null
null
null
main_fed.py
berserkersss/FL_CNN_Diff_Acc
f78651b426ff700108b62f2afbd99134b30af1e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import copy import numpy as np from torchvision import datasets, transforms import torch import math from utils.sampling import mnist_iid, mnist_noniid, cifar_iid from utils.opti...
36.884758
141
0.651078
666a08a2699afb54d288c230c2b9f22bf4716df5
1,375
py
Python
scaner/controllers/communities.py
dearbornlavern/scaner
401de0ec7caef5c5a23aedec106db136bd4e4658
[ "Apache-2.0" ]
12
2016-09-30T12:43:44.000Z
2022-02-17T17:17:02.000Z
scaner/controllers/communities.py
dearbornlavern/scaner
401de0ec7caef5c5a23aedec106db136bd4e4658
[ "Apache-2.0" ]
null
null
null
scaner/controllers/communities.py
dearbornlavern/scaner
401de0ec7caef5c5a23aedec106db136bd4e4658
[ "Apache-2.0" ]
7
2016-09-28T09:48:48.000Z
2020-05-15T04:56:11.000Z
from flask import current_app from scaner.utils import add_metadata import json # PRUEBA EXTRACION USUARIOS # @add_metadata() # def get(userId, fields=None, *args, **kwargs): # #get_task = current_app.tasks.get_users_from_twitter.delay() # get_task = current_app.tasks.execute_metrics.delay() # return {'res...
39.285714
87
0.749818
666ce6df66f28481199af4b25376a59418b9191f
395
py
Python
cct/cases/create_snapshot.py
LmangoLemon/mind
1b269acca41f840c5c71cb6c92ec92ecfb977ad4
[ "Apache-2.0" ]
null
null
null
cct/cases/create_snapshot.py
LmangoLemon/mind
1b269acca41f840c5c71cb6c92ec92ecfb977ad4
[ "Apache-2.0" ]
null
null
null
cct/cases/create_snapshot.py
LmangoLemon/mind
1b269acca41f840c5c71cb6c92ec92ecfb977ad4
[ "Apache-2.0" ]
null
null
null
import logging from time import sleep from cct.case import Case logger = logging.getLogger(__file__)
17.173913
62
0.668354
666d3c5b51416d64a4d8d00ca1cc2533f85b4bf8
296
py
Python
venv/Lib/site-packages/IPython/terminal/ptshell.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
venv/Lib/site-packages/IPython/terminal/ptshell.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
venv/Lib/site-packages/IPython/terminal/ptshell.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
raise DeprecationWarning("""DEPRECATED: After Popular request and decision from the BDFL: `IPython.terminal.ptshell` has been moved back to `IPython.terminal.interactiveshell` during the beta cycle (after IPython 5.0.beta3) Sorry about that. This file will be removed in 5.0 rc or final. """)
32.888889
85
0.777027
6670c507913d776c7f3759690ef2c0ab2aa02880
591
py
Python
ex078.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
ex078.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
ex078.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
lista = [] for n in range(0, 5): lista.append(int(input(f'Digite um valor para a posio {n}: '))) print('=-=' * 10) print(f'Voc digitou os valores {lista}') maior = lista[0] menor = lista[0] for n in lista: if maior < n: maior = n if menor > n: menor = n print(f'O maior valor digitado foi {m...
26.863636
69
0.575296
6674228e20201842275a8416c646d65895ba336f
6,461
py
Python
chb/x86/opcodes/X86RotateLeftCF.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/x86/opcodes/X86RotateLeftCF.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/x86/opcodes/X86RotateLeftCF.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020 Henny Si...
40.130435
80
0.629005
6674ff922f4c82dfa03dc7390843f76b68565580
283
py
Python
error_handlers/access_token.py
Egor2005l/cho
c7cb165394089b277be5c306edde0b8fb42e466d
[ "MIT" ]
null
null
null
error_handlers/access_token.py
Egor2005l/cho
c7cb165394089b277be5c306edde0b8fb42e466d
[ "MIT" ]
null
null
null
error_handlers/access_token.py
Egor2005l/cho
c7cb165394089b277be5c306edde0b8fb42e466d
[ "MIT" ]
null
null
null
from asyncio import sleep from vkbottle.exceptions import VKError from vkbottle.framework.blueprint.user import Blueprint user = Blueprint( name='access_token_error_blueprint' )
20.214286
56
0.756184
667689203557923536a76893ffda9eef2e58e85a
2,135
py
Python
test_challenges.py
UPstartDeveloper/Graph-Applications
45a3fa83f9e3fff243be35dd169edfcfd020f1a1
[ "MIT" ]
null
null
null
test_challenges.py
UPstartDeveloper/Graph-Applications
45a3fa83f9e3fff243be35dd169edfcfd020f1a1
[ "MIT" ]
null
null
null
test_challenges.py
UPstartDeveloper/Graph-Applications
45a3fa83f9e3fff243be35dd169edfcfd020f1a1
[ "MIT" ]
null
null
null
import challenges import unittest if __name__ == '__main__': unittest.main()
26.6875
79
0.516628
66769c379769d62d8db4f6ca3c7ed84d674f3460
1,293
py
Python
2020-08-month-long-challenge/day06.py
jkbockstael/leetcode
8ef5c907fb153c37dc97f6524493ceca2044ea38
[ "Unlicense" ]
null
null
null
2020-08-month-long-challenge/day06.py
jkbockstael/leetcode
8ef5c907fb153c37dc97f6524493ceca2044ea38
[ "Unlicense" ]
null
null
null
2020-08-month-long-challenge/day06.py
jkbockstael/leetcode
8ef5c907fb153c37dc97f6524493ceca2044ea38
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # Day 6: Find All Duplicates in an Array # # Given an array of integers, 1 a[i] n (n = size of array), some elements # appear twice and others appear once. # Find all the elements that appear twice in this array. # Could you do it without extra space and in O(n) runtime? # Test assert Solutio...
40.40625
79
0.608662
66776ed63d7e38eb38a9559cc44798e48137c63c
10,519
py
Python
napari/_vispy/experimental/tiled_image_visual.py
harripj/napari
7a284b1efeb14b1f812f0d98c608f70f0dd66ad2
[ "BSD-3-Clause" ]
null
null
null
napari/_vispy/experimental/tiled_image_visual.py
harripj/napari
7a284b1efeb14b1f812f0d98c608f70f0dd66ad2
[ "BSD-3-Clause" ]
null
null
null
napari/_vispy/experimental/tiled_image_visual.py
harripj/napari
7a284b1efeb14b1f812f0d98c608f70f0dd66ad2
[ "BSD-3-Clause" ]
null
null
null
"""TiledImageVisual class A visual that draws tiles using a texture atlas. """ from typing import List, Set import numpy as np from ...layers.image.experimental.octree_util import OctreeChunk from ..vendored import ImageVisual from ..vendored.image import _build_color_transform from .texture_atlas import TextureAtla...
35.537162
79
0.64027
6683c0d1956dae22490efd4a21cbb16c9e118a7c
339
py
Python
tf_prac.py
akapoorx00/machinelearning-stuff
53184019b77d3387fd15b13d3bfa75529b8ed003
[ "Apache-2.0" ]
null
null
null
tf_prac.py
akapoorx00/machinelearning-stuff
53184019b77d3387fd15b13d3bfa75529b8ed003
[ "Apache-2.0" ]
null
null
null
tf_prac.py
akapoorx00/machinelearning-stuff
53184019b77d3387fd15b13d3bfa75529b8ed003
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf x = tf.constant(35, name='x') print(x) y = tf.Variable(x+5, name='y') with tf.Session() as session: merged = tf.summary.merge_all() writer = tf.summary.FileWriter("output", session.graph) model = tf.global_variables_initializer() session.run(model) print (session.run(y)) ...
21.1875
59
0.672566
6683d7523bb35e6eea7af58dcc94e299c8b5221f
523
py
Python
patterns/adapter/app.py
mattskone/head-first-design-patterns
3f0d3a5c39475b418f09e2c45505f88fa673dd41
[ "MIT" ]
null
null
null
patterns/adapter/app.py
mattskone/head-first-design-patterns
3f0d3a5c39475b418f09e2c45505f88fa673dd41
[ "MIT" ]
1
2015-01-13T17:19:19.000Z
2015-03-11T16:02:28.000Z
patterns/adapter/app.py
mattskone/head-first-design-patterns
3f0d3a5c39475b418f09e2c45505f88fa673dd41
[ "MIT" ]
null
null
null
#!/usr/bin/env python from implementations import MallardDuck, WildTurkey, TurkeyAdapter if __name__ == '__main__': d = MallardDuck() print '\nThe Duck says...' d.quack() d.fly() t = WildTurkey() print '\nThe Turkey says...' t.gobble() t.fly() # Now we use the adapter to show how...
23.772727
67
0.625239
66849fe8ffb1c558532c4307c57805110b8abc4c
134
py
Python
app/config/task.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2020-08-02T10:06:19.000Z
2022-03-29T06:10:57.000Z
app/config/task.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
null
null
null
app/config/task.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2019-02-03T15:44:02.000Z
2021-03-09T07:30:28.000Z
CELERY_BROKER_URL = 'redis://localhost:6379/0' CELERY_RESULT_BACKEND = 'redis://localhost:6379/0' CELERY_IMPORTS=('app.users.tasks')
26.8
50
0.768657
6684d6354c57bdba0d562fbf5c959a7bb01edb22
5,697
py
Python
GCR.py
goodot/character-recognition
71cd3664670ec2d672d344e8b1842ce3c3ff47d5
[ "Apache-2.0" ]
1
2019-04-25T10:34:21.000Z
2019-04-25T10:34:21.000Z
GCR.py
goodot/character-recognition
71cd3664670ec2d672d344e8b1842ce3c3ff47d5
[ "Apache-2.0" ]
null
null
null
GCR.py
goodot/character-recognition
71cd3664670ec2d672d344e8b1842ce3c3ff47d5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from PIL import Image from numpy import array import sqlite3 import tkMessageBox import matplotlib.pyplot as plt from pybrain.tools.shortcuts import buildNetwork from pybrain.datasets import SupervisedDataSet from pybrain.supervised.trainers import BackpropTrainer from pybrain.structure.module...
22.429134
110
0.566438
6686b772848e4502d8bad3bd405870762f442216
2,966
py
Python
grano/logic/projects.py
ANCIR/grano
cee2ec1974df5df2bc6ed5e214f6bd5d201397a4
[ "MIT" ]
30
2018-08-23T15:42:17.000Z
2021-11-16T13:11:36.000Z
grano/logic/projects.py
ANCIR/grano
cee2ec1974df5df2bc6ed5e214f6bd5d201397a4
[ "MIT" ]
null
null
null
grano/logic/projects.py
ANCIR/grano
cee2ec1974df5df2bc6ed5e214f6bd5d201397a4
[ "MIT" ]
5
2019-05-30T11:36:53.000Z
2021-08-11T16:17:14.000Z
import colander from datetime import datetime from grano.core import app, db, celery from grano.logic.validation import database_name from grano.logic.references import AccountRef from grano.plugins import notify_plugins from grano.model import Project def save(data, project=None): """ Create or update a proje...
31.892473
76
0.650371
6686c68bcf9dc01f99b52c42230df5b834e570c1
63
py
Python
code/yahoo_procon2019_qual_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/yahoo_procon2019_qual_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/yahoo_procon2019_qual_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
N,K=map(int,input().split()) print("YES" if N>=2*K-1 else "NO")
31.5
34
0.603175
668a69950d894c5be476b21543db749add8b52d5
180
py
Python
allauth/socialaccount/providers/pivotaltracker/urls.py
rawjam/django-allauth
2daa33178aa1ab749581c494f4c39e1c72ad5c7b
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/pivotaltracker/urls.py
rawjam/django-allauth
2daa33178aa1ab749581c494f4c39e1c72ad5c7b
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/pivotaltracker/urls.py
rawjam/django-allauth
2daa33178aa1ab749581c494f4c39e1c72ad5c7b
[ "MIT" ]
null
null
null
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from provider import PivotalTrackerProvider urlpatterns = default_urlpatterns(PivotalTrackerProvider)
30
75
0.888889
668cea27bdbc4f6209d2380260dbf5312ca4bad1
2,944
py
Python
Dorta/sales_modification/wizard/sale_order_popup.py
aaparicio87/Odoo12
25cfc349b2e85fa1b5f5846ffe693029f77b3b7d
[ "MIT" ]
null
null
null
Dorta/sales_modification/wizard/sale_order_popup.py
aaparicio87/Odoo12
25cfc349b2e85fa1b5f5846ffe693029f77b3b7d
[ "MIT" ]
null
null
null
Dorta/sales_modification/wizard/sale_order_popup.py
aaparicio87/Odoo12
25cfc349b2e85fa1b5f5846ffe693029f77b3b7d
[ "MIT" ]
null
null
null
from odoo import fields, models, api, _ from odoo.exceptions import UserError
42.057143
116
0.567935
668da6a3dfe98b38ca927b8c9945a7980761c6b8
830
py
Python
tyson-py/udp-echo.py
asheraryam/tyson
44317a4e3367ef4958c3bb8d3ad538a3908a4566
[ "MIT" ]
null
null
null
tyson-py/udp-echo.py
asheraryam/tyson
44317a4e3367ef4958c3bb8d3ad538a3908a4566
[ "MIT" ]
null
null
null
tyson-py/udp-echo.py
asheraryam/tyson
44317a4e3367ef4958c3bb8d3ad538a3908a4566
[ "MIT" ]
null
null
null
"""UDP hole punching server.""" from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor import sys DEFAULT_PORT = 4000 if __name__ == '__main__': if len(sys.argv) < 2: print("Usage: ./server.py PORT") port = DEFAULT_PORT # sys.exit(1) else: ...
28.62069
73
0.631325
668e417b3a6306ecd6bbd0fcf013eefd855c3921
12,972
py
Python
src/fhir_types/FHIR_StructureMap_Source.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
src/fhir_types/FHIR_StructureMap_Source.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
src/fhir_types/FHIR_StructureMap_Source.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Literal, TypedDict from .FHIR_Address import FHIR_Address from .FHIR_Age import FHIR_Age from .FHIR_Annotation import FHIR_Annotation from .FHIR_Attachment import FHIR_Attachment from .FHIR_CodeableConcept import FHIR_CodeableConcept from .FHIR_Coding import FHIR_Coding from .FHIR_Contact...
56.4
836
0.712458
668f3e390bdd48e5a8dc955598a92ec70a35392d
2,484
py
Python
ip/ip/ecommerce/views.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
1
2021-02-17T06:06:50.000Z
2021-02-17T06:06:50.000Z
ip/ip/ecommerce/views.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
null
null
null
ip/ip/ecommerce/views.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.decorators import login_required from .models import * from .forms import address_form from django.http import JsonResponse from .utils import cartData,guestobj import json,datetime
28.883721
84
0.67029
6690a37ed9d0e2c4e7eeabdedc6f1bdca84bc1a4
2,899
py
Python
ecogdata/expconfig/config_decode.py
miketrumpis/ecogdata
ff65820198e69608634c12686a86b97ac3a77558
[ "BSD-3-Clause" ]
null
null
null
ecogdata/expconfig/config_decode.py
miketrumpis/ecogdata
ff65820198e69608634c12686a86b97ac3a77558
[ "BSD-3-Clause" ]
null
null
null
ecogdata/expconfig/config_decode.py
miketrumpis/ecogdata
ff65820198e69608634c12686a86b97ac3a77558
[ "BSD-3-Clause" ]
null
null
null
import os from ecogdata.util import Bunch __all__ = ['Parameter', 'TypedParam', 'BoolOrNum', 'NSequence', 'NoneOrStr', 'Path', 'parse_param', 'uniform_bunch_case'] def parse_param(name, command, table): p = table.get(name.lower(), Parameter)(command) return p.value() def uniform_bunch_cas...
25.883929
99
0.58089
66941e3ed65b1efe5312473285b552d665a56ecc
29,897
py
Python
lpjguesstools/lgt_createinput/main.py
lukasbaumbach/lpjguesstools
f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3
[ "BSD-3-Clause" ]
2
2020-08-03T11:33:00.000Z
2021-07-05T21:00:46.000Z
lpjguesstools/lgt_createinput/main.py
lukasbaumbach/lpjguesstools
f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3
[ "BSD-3-Clause" ]
8
2020-08-03T12:45:31.000Z
2021-02-23T19:51:32.000Z
lpjguesstools/lgt_createinput/main.py
lukasbaumbach/lpjguesstools
f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3
[ "BSD-3-Clause" ]
2
2020-08-03T12:11:43.000Z
2022-01-29T10:59:00.000Z
"""FILE lgt_createinput.main.py This script creates condensed LPJ netcdf files for landforms and soil properties landforms.nc: - lfcnt (landid) number of landforms in cell - frac (landid, lfid/ standid) area fraction this landform represents - slope (landid, lfid/ standid) - elevation (landid, lfid/ standid) avg...
36.282767
135
0.596247
66942000229050463aff5906c4c70265c74740a1
4,379
py
Python
html_parsing/www_dns_shop_ru/check_update_price_date__QWebEnginePage_bs4.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
html_parsing/www_dns_shop_ru/check_update_price_date__QWebEnginePage_bs4.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
html_parsing/www_dns_shop_ru/check_update_price_date__QWebEnginePage_bs4.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' """ http://www.dns-shop.ru/""" # # http://stackoverflow.com/a/37755811/5909792 # def get_html(url, check_content_func=None): # # from PyQt5.QtCore import QUrl # # from PyQt5.QtWidgets import QApplication # # from PyQt5.QtWe...
26.70122
78
0.58575
6696f698bff747564601f269987739a28d5abfe1
12,918
py
Python
tests/test_adapters.py
Shelestova-Anastasia/cutadapt
6e239b3b8e20d17fdec041dc1d967ec2a3cfe770
[ "MIT" ]
null
null
null
tests/test_adapters.py
Shelestova-Anastasia/cutadapt
6e239b3b8e20d17fdec041dc1d967ec2a3cfe770
[ "MIT" ]
null
null
null
tests/test_adapters.py
Shelestova-Anastasia/cutadapt
6e239b3b8e20d17fdec041dc1d967ec2a3cfe770
[ "MIT" ]
null
null
null
import pytest from dnaio import Sequence from cutadapt.adapters import ( RemoveAfterMatch, RemoveBeforeMatch, FrontAdapter, BackAdapter, PrefixAdapter, SuffixAdapter, LinkedAdapter, MultipleAdapters, IndexedPrefixAdapters, IndexedSuffixAdapters, ) def test_linke...
27.780645
88
0.618517
66992cf30daf9b3de5a678f20db0b9dc5b3fafdf
7,561
py
Python
archABM/event_model.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
8
2021-07-19T11:54:00.000Z
2022-03-29T01:45:07.000Z
archABM/event_model.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
null
null
null
archABM/event_model.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
1
2021-08-19T23:56:56.000Z
2021-08-19T23:56:56.000Z
import copy import random from .parameters import Parameters def new(self): """Generates a :class:`~archABM.event_model.EventModel` copy, with reset count and noise Returns: EventModel: cloned instance """ self.count = 0 self.noise = None return copy.co...
33.455752
112
0.547943
669c0767b2a56157d94adbe410e078a0a3045bd9
13,297
py
Python
tests/test_photokit.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
656
2019-08-14T14:10:44.000Z
2022-03-28T15:25:42.000Z
tests/test_photokit.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
557
2019-10-14T19:00:02.000Z
2022-03-28T00:48:30.000Z
tests/test_photokit.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
58
2019-12-27T01:39:33.000Z
2022-02-26T22:18:49.000Z
""" test photokit.py methods """ import os import pathlib import tempfile import pytest from osxphotos.photokit import ( LivePhotoAsset, PhotoAsset, PhotoLibrary, VideoAsset, PHOTOS_VERSION_CURRENT, PHOTOS_VERSION_ORIGINAL, PHOTOS_VERSION_UNADJUSTED, ) skip_test = "OSXPHOTOS_TEST_EXPORT"...
31.360849
88
0.670828
669c4ded1d39066ae7e38bea807e79c4ad3272ab
2,764
py
Python
parse_json_script/lib_parse_json.py
amane-uehara/fitbit-fetcher
2a949016933dbcac5f949c8b552c7998b2aadd8c
[ "MIT" ]
null
null
null
parse_json_script/lib_parse_json.py
amane-uehara/fitbit-fetcher
2a949016933dbcac5f949c8b552c7998b2aadd8c
[ "MIT" ]
null
null
null
parse_json_script/lib_parse_json.py
amane-uehara/fitbit-fetcher
2a949016933dbcac5f949c8b552c7998b2aadd8c
[ "MIT" ]
null
null
null
import os import sys import json
23.827586
102
0.599132
669d3d5f4966f2fc9848beb0d7bd023a928904e0
4,251
py
Python
utils/tfds_preprocess.py
chansoopark98/tf_keras-Unknown-grasping
be0f68280ba0b293940a08732fd4a31e89a272cd
[ "MIT" ]
null
null
null
utils/tfds_preprocess.py
chansoopark98/tf_keras-Unknown-grasping
be0f68280ba0b293940a08732fd4a31e89a272cd
[ "MIT" ]
null
null
null
utils/tfds_preprocess.py
chansoopark98/tf_keras-Unknown-grasping
be0f68280ba0b293940a08732fd4a31e89a272cd
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow_datasets as tfds import numpy as np import random from utils.dataset_processing import grasp, image import matplotlib.pyplot as plt dataset_path = './tfds/' train_data, meta = tfds.load('Jacquard', split='train', with_info=True, shuffle_files=False) BATCH_SIZE = 1 number_trai...
26.735849
139
0.604799
669f60ed987d448932641383a9784e17ffb52883
836
py
Python
tests/scheduler_test.py
peng4217/scylla
aa5133d7c6d565c95651fc75b26ad605da0982cd
[ "Apache-2.0" ]
3,556
2018-04-28T22:59:40.000Z
2022-03-28T22:20:07.000Z
tests/scheduler_test.py
peng4217/scylla
aa5133d7c6d565c95651fc75b26ad605da0982cd
[ "Apache-2.0" ]
120
2018-05-20T11:49:00.000Z
2022-03-07T00:08:55.000Z
tests/scheduler_test.py
peng4217/scylla
aa5133d7c6d565c95651fc75b26ad605da0982cd
[ "Apache-2.0" ]
518
2018-05-27T01:42:25.000Z
2022-03-25T12:38:32.000Z
import pytest from scylla.scheduler import Scheduler, cron_schedule
23.885714
78
0.744019
669ffe2b5e6215275de00b66a4a28e352cc9a091
2,063
py
Python
ch16_ex.py
DexHunter/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
24
2019-05-07T15:11:28.000Z
2022-03-02T04:50:28.000Z
ch16_ex.py
Dekzu/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
null
null
null
ch16_ex.py
Dekzu/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
19
2019-08-05T20:59:04.000Z
2022-03-07T05:13:32.000Z
def mul_time(t, n): '''Multiple time t by n n: int Returns a time tr ''' return int_to_time(time_to_int(t) * n) def increment(t, sec): '''Writes a inc function does not contain any loops #for the second exercise of writing a pure function, I think you can just create a new object by copy.deepcopy(t) and ...
20.838384
248
0.652448
66a0075c55665ddddee62ce3c5592465d9e8004b
200
py
Python
knowit/providers/__init__.py
labrys/knowit
eea9ac18e38c930230cf81b5dca4a9af9fb10d4e
[ "MIT" ]
null
null
null
knowit/providers/__init__.py
labrys/knowit
eea9ac18e38c930230cf81b5dca4a9af9fb10d4e
[ "MIT" ]
null
null
null
knowit/providers/__init__.py
labrys/knowit
eea9ac18e38c930230cf81b5dca4a9af9fb10d4e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Provider package.""" from __future__ import unicode_literals from .enzyme import EnzymeProvider from .ffmpeg import FFmpegProvider from .mediainfo import MediaInfoProvider
25
40
0.785
66a03a53035c1596664c882408ebdf47aa3afc54
304
py
Python
python-mundo3/ex077.py
abm-astro/estudos-python
c0dcd71489e528d445efa25d4986bf2fd08f8fe6
[ "MIT" ]
1
2021-08-15T18:18:43.000Z
2021-08-15T18:18:43.000Z
python-mundo3/ex077.py
abm-astro/estudos-python
c0dcd71489e528d445efa25d4986bf2fd08f8fe6
[ "MIT" ]
null
null
null
python-mundo3/ex077.py
abm-astro/estudos-python
c0dcd71489e528d445efa25d4986bf2fd08f8fe6
[ "MIT" ]
null
null
null
list = ('APRENDER', 'PROGRAMAR', 'LINGUAGEM', 'PYTHON', 'CURSO', 'GRATIS', 'ESTUDAR', 'PRATICAR', 'TRABALHAR', 'MERCADO', 'PROGRAMADOR', 'FUTURO') for p in list: print(f'\nNa palavra {p} temos: ', end='') for l in p: if l.lower() in 'aeiou': print(l.lower(), end=' ')
38
85
0.546053
66a1405cb275e20463fb6f972194333959f1c8d7
1,449
py
Python
src/DataParser/odmdata/variable.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
2
2015-02-25T01:12:51.000Z
2017-02-08T22:54:41.000Z
src/DataParser/odmdata/variable.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
48
2015-01-12T18:01:56.000Z
2021-06-10T20:05:26.000Z
src/DataParser/odmdata/variable.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
null
null
null
from sqlalchemy import * from sqlalchemy.orm import relationship from base import Base from unit import Unit
45.28125
102
0.718427
66a4535ff16536c58c62bd0252d04c6087d6613d
7,751
py
Python
pandas/pandastypes.py
pyxll/pyxll-examples
e8a1cba1ffdb346191f0c80bea6877cbe0291957
[ "Unlicense" ]
93
2015-04-27T14:44:02.000Z
2022-03-03T13:14:49.000Z
pandas/pandastypes.py
samuelpedrini/pyxll-examples
ce7f839b4ff4f4032b78dffff2357f3feaadc3a1
[ "Unlicense" ]
4
2019-12-13T11:32:17.000Z
2022-03-03T14:07:02.000Z
pandas/pandastypes.py
samuelpedrini/pyxll-examples
ce7f839b4ff4f4032b78dffff2357f3feaadc3a1
[ "Unlicense" ]
53
2015-04-27T14:44:14.000Z
2022-01-23T05:26:52.000Z
""" Custom excel types for pandas objects (eg dataframes). For information about custom types in PyXLL see: https://www.pyxll.com/docs/udfs.html#custom-types For information about pandas see: http://pandas.pydata.org/ Including this module in your pyxll config adds the following custom types that can be used as retu...
31.897119
95
0.632047
66a463bd296e2375b0d9a6abd3ff5e747d929dcd
10,912
py
Python
liveDataApp/views.py
subahanii/COVID19-tracker
b7d30ff996974755e78393f0777d6cf623c4d654
[ "MIT" ]
7
2020-04-28T12:34:42.000Z
2021-05-17T06:20:51.000Z
liveDataApp/views.py
subahanii/COVID19-tracker
b7d30ff996974755e78393f0777d6cf623c4d654
[ "MIT" ]
1
2020-07-09T18:17:32.000Z
2020-07-10T13:56:01.000Z
liveDataApp/views.py
subahanii/COVID19-tracker
b7d30ff996974755e78393f0777d6cf623c4d654
[ "MIT" ]
null
null
null
from django.shortcuts import render import requests from bs4 import BeautifulSoup import re from collections import defaultdict as dfd from .models import * from datetime import date from datetime import timedelta from django.db.models import Sum from django.db.models import Count from django.db.models.functions impor...
26.421308
129
0.640121
66a65924a1e2768d7469c1f8356205da9b3cbe9a
89
py
Python
project/healthcheck.py
permallotment/allotment3
0eb390086cc8f48ba6817541c6c70c06dfc83058
[ "CC0-1.0" ]
null
null
null
project/healthcheck.py
permallotment/allotment3
0eb390086cc8f48ba6817541c6c70c06dfc83058
[ "CC0-1.0" ]
null
null
null
project/healthcheck.py
permallotment/allotment3
0eb390086cc8f48ba6817541c6c70c06dfc83058
[ "CC0-1.0" ]
null
null
null
from django.http import HttpResponse
17.8
36
0.764045
66a6d482011b0d35775a7523319647c543ff9fb5
11,829
py
Python
src/algo/baselines/randomP/randomP.py
Lukeeeeee/CE7490-Group-Project-Python
840a655bcb8cebbe3d39e5d3f3d68a01936a6283
[ "MIT" ]
null
null
null
src/algo/baselines/randomP/randomP.py
Lukeeeeee/CE7490-Group-Project-Python
840a655bcb8cebbe3d39e5d3f3d68a01936a6283
[ "MIT" ]
null
null
null
src/algo/baselines/randomP/randomP.py
Lukeeeeee/CE7490-Group-Project-Python
840a655bcb8cebbe3d39e5d3f3d68a01936a6283
[ "MIT" ]
1
2020-10-20T07:06:18.000Z
2020-10-20T07:06:18.000Z
from src.core import Basic import networkx as nx
37.792332
95
0.481951
66a846d0d120e378d227803f5adec0334b4d67ff
1,336
py
Python
stations/heathen/migrations/0003_auto_20161128_0519.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/migrations/0003_auto_20161128_0519.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/migrations/0003_auto_20161128_0519.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-11-28 05:19 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
30.363636
115
0.577844
66aa16869b2a00e5d9cde4a253891d698c5527b2
2,437
py
Python
src/observers/simple_observer.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
src/observers/simple_observer.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
src/observers/simple_observer.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
from gym import spaces import numpy as np from bark.models.dynamic import StateDefinition from modules.runtime.commons.parameters import ParameterServer import math import operator from src.commons.spaces import BoundedContinuous, Discrete from src.observers.observer import StateObserver
30.848101
77
0.672959
66aa1e9b55b1f6a0fc3a8c730d67ac565985ed59
9,610
py
Python
cosilico/base/scatter.py
cosilico/cosilico
983373139aeaf459271c559a47a6439939ec93a5
[ "MIT" ]
null
null
null
cosilico/base/scatter.py
cosilico/cosilico
983373139aeaf459271c559a47a6439939ec93a5
[ "MIT" ]
null
null
null
cosilico/base/scatter.py
cosilico/cosilico
983373139aeaf459271c559a47a6439939ec93a5
[ "MIT" ]
null
null
null
import altair as alt import pandas as pd def scatterplot(x, y, data, hue=None, color=None, opacity=1., x_autoscale=True, y_autoscale=True): """Display a basic scatterplot. Parameters ---------- x : str Column in data to be used for x-axis y : str Column in data to be used ...
29.478528
87
0.591467
66abb66cbd60706f6fbdf7789edf198d10295b85
12,103
py
Python
flappy_env.py
timlaroche/FlapPyBird
cffc7bb76daad67957a8b5778c1f2c7d82da1514
[ "MIT" ]
null
null
null
flappy_env.py
timlaroche/FlapPyBird
cffc7bb76daad67957a8b5778c1f2c7d82da1514
[ "MIT" ]
null
null
null
flappy_env.py
timlaroche/FlapPyBird
cffc7bb76daad67957a8b5778c1f2c7d82da1514
[ "MIT" ]
null
null
null
import gym from gym import spaces from itertools import cycle import random import sys import os import pygame from pygame.locals import * import flappy import numpy as np import cv2 # GLOBALS FPS = 30 SCREENWIDTH = 288 SCREENHEIGHT = 512 PIPEGAPSIZE = 100 # gap between upper and lower part of pipe BASEY ...
32.799458
130
0.673635
66aded0365be403ed572fa925d74446e3fe43e79
4,587
py
Python
vkmini/group/group_longpoll.py
Elchinchel/vkmini
378ee3893c5826563a19198fd532df47aaa03350
[ "MIT" ]
2
2021-08-12T20:22:40.000Z
2022-02-06T18:13:38.000Z
vkmini/group/group_longpoll.py
Elchinchel/vkmini
378ee3893c5826563a19198fd532df47aaa03350
[ "MIT" ]
null
null
null
vkmini/group/group_longpoll.py
Elchinchel/vkmini
378ee3893c5826563a19198fd532df47aaa03350
[ "MIT" ]
3
2020-07-31T17:19:20.000Z
2021-12-11T11:38:23.000Z
from typing import AsyncGenerator, List, Union, Any from aiohttp.client import ClientSession from vkmini.utils import AbstractLogger from vkmini.request import longpoll_get, default_session from vkmini.exceptions import TokenInvalid from vkmini import VkApi
28.849057
79
0.58535
66af18eea69ccb8397ca09f7ca83656cd98f0584
1,162
py
Python
aswan/tests/unit/test_migrations.py
papsebestyen/aswan
ed1b2a3dae6a8b7de355edd75de8d4ad577c97cd
[ "MIT" ]
1
2021-04-28T23:08:07.000Z
2021-04-28T23:08:07.000Z
aswan/tests/unit/test_migrations.py
papsebestyen/aswan
ed1b2a3dae6a8b7de355edd75de8d4ad577c97cd
[ "MIT" ]
1
2022-01-22T22:02:55.000Z
2022-01-22T22:02:55.000Z
aswan/tests/unit/test_migrations.py
papsebestyen/aswan
ed1b2a3dae6a8b7de355edd75de8d4ad577c97cd
[ "MIT" ]
2
2022-01-05T10:01:22.000Z
2022-02-16T10:58:46.000Z
import tarfile import pandas as pd import sqlalchemy as db from aswan import AswanConfig, ProdConfig, Project from aswan.migrate import pull, push from aswan.models import Base from aswan.object_store import get_object_store
24.723404
62
0.683305
66b02efea9465e74c9e2945b8ff0942e0ed6931f
82
py
Python
backend/src/apps/test/apps.py
LucienLuc/project-sts
02ad13b515bcefe1c1ef30f0c06104359bff613e
[ "MIT" ]
null
null
null
backend/src/apps/test/apps.py
LucienLuc/project-sts
02ad13b515bcefe1c1ef30f0c06104359bff613e
[ "MIT" ]
null
null
null
backend/src/apps/test/apps.py
LucienLuc/project-sts
02ad13b515bcefe1c1ef30f0c06104359bff613e
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16.4
33
0.743902
66b23735ac5dd60f24c047d430921a774e2c8f6b
1,055
py
Python
booking.py
kurkurzz/AdminDashboard-BookingWithTimeslot
aa34fef7bc0e1f8cabb602adc6d69af925436e5d
[ "MIT" ]
null
null
null
booking.py
kurkurzz/AdminDashboard-BookingWithTimeslot
aa34fef7bc0e1f8cabb602adc6d69af925436e5d
[ "MIT" ]
null
null
null
booking.py
kurkurzz/AdminDashboard-BookingWithTimeslot
aa34fef7bc0e1f8cabb602adc6d69af925436e5d
[ "MIT" ]
null
null
null
import datetime as dt
31.029412
118
0.559242
66b3e370acc80eb4f8fc537add6850404fc19250
148
py
Python
problems/incorrect_division_method.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
problems/incorrect_division_method.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
problems/incorrect_division_method.py
stereoabuse/codewars
d6437afaef38c3601903891b8b9cb0f84c108c54
[ "MIT" ]
null
null
null
## Incorrect division method ## 8 kyu ## https://www.codewars.com/kata/54d1c59aba326343c80000e7
21.142857
59
0.682432
66b517ab0ecf7dee82c7b5fd1f3ac99536fb011e
1,927
py
Python
launch_notebooks.py
srivnamrata/openvino
aea76984a731fa3e81be9633dc8ffc702fb4e207
[ "Apache-2.0" ]
null
null
null
launch_notebooks.py
srivnamrata/openvino
aea76984a731fa3e81be9633dc8ffc702fb4e207
[ "Apache-2.0" ]
null
null
null
launch_notebooks.py
srivnamrata/openvino
aea76984a731fa3e81be9633dc8ffc702fb4e207
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import subprocess import sys from pathlib import Path import os pythonpath = sys.executable curdir = Path(__file__).parent.resolve() parentdir = curdir.parent # If openvino_env is already activated, launch jupyter lab # This will also start if openvino_env_2 is activated instead of openvino_env...
39.326531
82
0.632071
66b64a14727f525c1e5bbd7f0c1785592ad8eed7
1,143
py
Python
update_last_date.py
ankschoubey/testblog
f74e93f0f85edaee9c5adbe402e8e4a5252cc64d
[ "Apache-2.0" ]
1
2021-07-26T00:58:53.000Z
2021-07-26T00:58:53.000Z
update_last_date.py
ankschoubey/testblog
f74e93f0f85edaee9c5adbe402e8e4a5252cc64d
[ "Apache-2.0" ]
15
2020-03-28T05:27:53.000Z
2022-01-07T17:44:08.000Z
update_last_date.py
ankschoubey/testblog
f74e93f0f85edaee9c5adbe402e8e4a5252cc64d
[ "Apache-2.0" ]
3
2021-05-08T19:59:02.000Z
2021-05-11T17:14:45.000Z
import os.path, os, time from datetime import datetime from os import listdir from os.path import isfile, join path = "_posts" onlyfiles = [f for f in listdir(path) if isfile(join(path, f))] #print(onlyfiles) for i in onlyfiles: completePath = f"{path}/{i}" updatePost(completePath)
30.078947
69
0.601925
66b70f0759d9cb9c2433981c7b3e962dee37c367
4,032
py
Python
basic/19-brownie/brownie_test/tests/exchange/test_eth_to_token.py
xiangzhengfeng/Dapp-Learning
813fe6e52898206046842d10ecf9eb68b7f336a1
[ "MIT" ]
987
2021-12-19T09:57:18.000Z
2022-03-31T15:39:45.000Z
basic/19-brownie/brownie_test/tests/exchange/test_eth_to_token.py
xiangzhengfeng/Dapp-Learning
813fe6e52898206046842d10ecf9eb68b7f336a1
[ "MIT" ]
30
2021-12-20T03:13:29.000Z
2022-03-31T15:00:23.000Z
basic/19-brownie/brownie_test/tests/exchange/test_eth_to_token.py
xiangzhengfeng/Dapp-Learning
813fe6e52898206046842d10ecf9eb68b7f336a1
[ "MIT" ]
207
2021-12-19T08:40:38.000Z
2022-03-31T13:10:02.000Z
from brownie import (accounts, web3)
51.692308
117
0.705109
66b7938b4ce230cf1fa2893cf38e7f737bacfde6
49
py
Python
hello.py
Lifereborn/cs3240-labdemo
20db420273e78b4a905ec7e3a21fc717d71dc301
[ "MIT" ]
null
null
null
hello.py
Lifereborn/cs3240-labdemo
20db420273e78b4a905ec7e3a21fc717d71dc301
[ "MIT" ]
null
null
null
hello.py
Lifereborn/cs3240-labdemo
20db420273e78b4a905ec7e3a21fc717d71dc301
[ "MIT" ]
null
null
null
from helper import greetings greetings("hi!")
8.166667
28
0.734694
66b88bc537b297b0b6ea48d2a39575fd0626f252
232
py
Python
setup.py
h-rub/manzip
875e4ed75e08bd06b0d50698ecf1744ab3723e4c
[ "MIT" ]
null
null
null
setup.py
h-rub/manzip
875e4ed75e08bd06b0d50698ecf1744ab3723e4c
[ "MIT" ]
null
null
null
setup.py
h-rub/manzip
875e4ed75e08bd06b0d50698ecf1744ab3723e4c
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="manzip", version='1.0.0', py_modules=['manzip'], install_requires=[ 'Click', ], entry_points=''' [console_scripts] manzip=app:main ''', )
16.571429
28
0.547414
66b95f7f1063980cc02f05f543cab0abf0bce28b
199
py
Python
tests/test_mmhelloworld.py
manasm11/mmhelloworld
2e6907ac0962de90764a036d14046861b5f47521
[ "MIT" ]
null
null
null
tests/test_mmhelloworld.py
manasm11/mmhelloworld
2e6907ac0962de90764a036d14046861b5f47521
[ "MIT" ]
null
null
null
tests/test_mmhelloworld.py
manasm11/mmhelloworld
2e6907ac0962de90764a036d14046861b5f47521
[ "MIT" ]
null
null
null
from mmhelloworld import say_hello
19.9
53
0.738693
66b9ec6f54ec8e5b78556e4fbb86bde48b9e1d35
1,167
py
Python
bann/b_container/functions/print_init_net_state.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann/b_container/functions/print_init_net_state.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann/b_container/functions/print_init_net_state.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" from typing import TypeVar from bann.b_container.states.general.interface.init_state import InitState from bann.b_container.states.general.interface.net_state import NetState from bann.b_container.functions.dict_str_repr import dict_string_repr from rewowr.p...
44.884615
99
0.77892
66baa831bc3a0b5f4c002eec9ab7e86c9dd317b9
4,578
py
Python
PythonCodes/ScientificPlotting/FigGen_Py_wolfel/Fig3.py
Nicolucas/C-Scripts
2608df5c2e635ad16f422877ff440af69f98f960
[ "MIT" ]
null
null
null
PythonCodes/ScientificPlotting/FigGen_Py_wolfel/Fig3.py
Nicolucas/C-Scripts
2608df5c2e635ad16f422877ff440af69f98f960
[ "MIT" ]
null
null
null
PythonCodes/ScientificPlotting/FigGen_Py_wolfel/Fig3.py
Nicolucas/C-Scripts
2608df5c2e635ad16f422877ff440af69f98f960
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt plt.style.use('science') import os, sys, time sys.path.insert(0,"/import/freenas-m-03-geodynamics/jhayek/petsc-3.12.5/lib/petsc/bin/") sys.path.insert(0,"/import/freenas-m-03-geodynamics/jhayek/TEAR/se2wave/utils/python") sys.path.insert(0,"/import/freenas-m-03-geod...
41.243243
159
0.68851
66bba8495cc9b2de4fa5d89e4f271bf43563f4b0
3,560
py
Python
setup.py
fkie/rosrepo
13cdf89e32f0c370d106a61540b0cd102675daf9
[ "Apache-2.0" ]
5
2016-09-06T08:02:10.000Z
2018-06-10T20:45:21.000Z
setup.py
fkie/rosrepo
13cdf89e32f0c370d106a61540b0cd102675daf9
[ "Apache-2.0" ]
2
2019-03-11T21:44:50.000Z
2020-03-17T09:20:47.000Z
setup.py
fkie/rosrepo
13cdf89e32f0c370d106a61540b0cd102675daf9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # # ROSREPO # Manage ROS workspaces with multiple Gitlab repositories # # Author: Timo Rhling # # Copyright 2016 Fraunhofer FKIE # # 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...
40
129
0.692416
66bcb0ae9b3366b6b0c297fee8c32430261239e3
2,948
py
Python
structural/decorator_and_proxy/example/proxy.py
BruceWW/python_designer_pattern
c5f8b5ee32c8984401b4a217fa35364170331063
[ "Apache-2.0" ]
1
2020-08-29T09:17:12.000Z
2020-08-29T09:17:12.000Z
structural/decorator_and_proxy/example/proxy.py
BruceWW/python_design_pattern
c5f8b5ee32c8984401b4a217fa35364170331063
[ "Apache-2.0" ]
null
null
null
structural/decorator_and_proxy/example/proxy.py
BruceWW/python_design_pattern
c5f8b5ee32c8984401b4a217fa35364170331063
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @Date : 2020/8/30 # @Author : Bruce Liu /Lin Luo # @Mail : 15869300264@163.com def trans(source_card: Card, target_card: Card, trans_num: int): """ :param source_card: :param target_card: :param trans_num: :return: """ print(f'trans ...
27.045872
129
0.587517
66bccd1b00412b945cbbdb0f6a0be3ab3a3ef37f
158
py
Python
tests/cli.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
9,908
2020-06-06T01:06:50.000Z
2022-03-31T21:22:57.000Z
tests/cli.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
423
2020-05-30T11:44:37.000Z
2022-03-18T03:15:30.000Z
tests/cli.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
714
2020-06-09T20:24:41.000Z
2022-03-29T15:28:53.000Z
import subprocess from sys import exit result = subprocess.check_output(["ciphey", "-q", "-t 'hello'"]) if "hello" in result: exit(0) else: exit(1)
15.8
64
0.651899
66bd2091216a58b01f3847f7b8145c69c89e49b7
13,057
py
Python
macro_benchmark/SegLink/seglink/unit_tests.py
songhappy/ai-matrix
901078e480c094235c721c49f8141aec7a84e70e
[ "Apache-2.0" ]
180
2018-09-20T07:27:40.000Z
2022-03-19T07:55:42.000Z
macro_benchmark/SegLink/seglink/unit_tests.py
songhappy/ai-matrix
901078e480c094235c721c49f8141aec7a84e70e
[ "Apache-2.0" ]
80
2018-09-26T18:55:56.000Z
2022-02-10T02:03:26.000Z
macro_benchmark/SegLink/seglink/unit_tests.py
songhappy/ai-matrix
901078e480c094235c721c49f8141aec7a84e70e
[ "Apache-2.0" ]
72
2018-08-30T00:49:15.000Z
2022-02-15T23:22:40.000Z
import math import os import tensorflow as tf import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import ops import utils import model_fctd import data import config import visualizations as vis FLAGS = tf.app.flags.FLAGS if __name__ == '__main__': # test_encode_decod...
34.726064
103
0.635138
66bdffeb1d31a5333d1015ec0693dc331a8aaed7
1,432
py
Python
setup.py
thefossgeek/packer.py
deda7a708e1968f6a206a939e97149c7aefc1c02
[ "Apache-2.0" ]
24
2018-03-24T00:06:04.000Z
2022-01-29T19:25:32.000Z
setup.py
thefossgeek/packer.py
deda7a708e1968f6a206a939e97149c7aefc1c02
[ "Apache-2.0" ]
7
2018-03-24T00:12:06.000Z
2021-07-01T23:29:28.000Z
setup.py
thefossgeek/packer.py
deda7a708e1968f6a206a939e97149c7aefc1c02
[ "Apache-2.0" ]
7
2018-10-10T00:36:25.000Z
2022-01-27T15:02:17.000Z
""" Copyright 2018 Matthew Aynalem Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
34.095238
82
0.692039
66be0ddd5abfb03dffd9214bd347839460bf60b7
39,732
py
Python
pyreach/impl/logs_directory_client_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
13
2021-09-01T01:10:22.000Z
2022-03-05T10:01:52.000Z
pyreach/impl/logs_directory_client_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
null
null
null
pyreach/impl/logs_directory_client_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
6
2021-09-20T21:17:53.000Z
2022-03-14T18:42:48.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.652695
80
0.55892
66bff38e64bc42b7572591b13e17cd3a431e4073
1,007
py
Python
SoftLayer/CLI/file/duplicate_convert_status.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
SoftLayer/CLI/file/duplicate_convert_status.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
SoftLayer/CLI/file/duplicate_convert_status.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
"""Get status for split or move completed percentage of a given file duplicate volume.""" # :license: MIT, see LICENSE for more details. import click import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import formatting
32.483871
112
0.713009
66c4abe639069bea0f557f4dba81d69a1839cf18
392
py
Python
apps/saas/forms.py
lucaslucyk/sigec
cdf65868e2f8ead35b005603611fcd20446633c7
[ "MIT" ]
null
null
null
apps/saas/forms.py
lucaslucyk/sigec
cdf65868e2f8ead35b005603611fcd20446633c7
[ "MIT" ]
7
2020-02-12T03:10:01.000Z
2021-06-10T19:30:50.000Z
apps/saas/forms.py
lucaslucyk/sigec
cdf65868e2f8ead35b005603611fcd20446633c7
[ "MIT" ]
null
null
null
from django import forms #from pagedown.widgets import PagedownWidget from apps.saas.models import Offer
21.777778
69
0.742347
66c4c0ab19cb9fa1cb71b15b0da8a32e24b51bb6
5,491
py
Python
Linuxu.py
Jefferson-Hsu/Linuxu-shell
2bbc42248e05ac01f8d3466479bb8106833c7ab1
[ "MIT" ]
1
2022-03-04T05:53:33.000Z
2022-03-04T05:53:33.000Z
Linuxu.py
Jefferson-Hsu/Linuxu-shell
2bbc42248e05ac01f8d3466479bb8106833c7ab1
[ "MIT" ]
null
null
null
Linuxu.py
Jefferson-Hsu/Linuxu-shell
2bbc42248e05ac01f8d3466479bb8106833c7ab1
[ "MIT" ]
null
null
null
#library import os #string aphoto print(" _ _ _ _ __ __ _ _ .____ .__ ") print("| | | | ___| | | __\\ \\ / /__ _ __| | __| | | | |__| ____ __ _____ _____ __ ") print("| |_| |/ _ \\ | |/ _ \\ \\ /\\ / / _ \\|...
44.282258
152
0.24094
66c7e494275971e9a3a3aa777ced7402edea752a
1,237
py
Python
src/test.py
williamyang1991/TET-GAN
bdfca141fc14c5917fd9be8d2bc23870f9ad3288
[ "MIT" ]
86
2019-01-02T06:20:09.000Z
2022-03-23T01:16:32.000Z
src/test.py
williamyang1991/TET-GAN
bdfca141fc14c5917fd9be8d2bc23870f9ad3288
[ "MIT" ]
5
2019-01-22T06:18:26.000Z
2021-12-16T02:01:34.000Z
src/test.py
williamyang1991/TET-GAN
bdfca141fc14c5917fd9be8d2bc23870f9ad3288
[ "MIT" ]
24
2019-01-03T09:36:54.000Z
2021-12-14T10:04:11.000Z
from options import TestOptions import torch from models import TETGAN from utils import load_image, to_data, to_var, visualize, save_image import os #os.environ["CUDA_VISIBLE_DEVICES"] = "0" if __name__ == '__main__': main()
25.770833
68
0.609539
66cc342e6fa18c2dd06d530c8ed54f8e34f04274
1,853
py
Python
scripts/bulkLoadUrls.py
conveyal/gtfs-data-manager
e7269fc1660f1816da269b1c116b43bdf758900b
[ "MIT" ]
25
2015-02-11T19:20:07.000Z
2021-03-10T07:53:29.000Z
scripts/bulkLoadUrls.py
conveyal/gtfs-data-manager
e7269fc1660f1816da269b1c116b43bdf758900b
[ "MIT" ]
53
2015-01-07T20:30:56.000Z
2016-10-10T12:47:22.000Z
scripts/bulkLoadUrls.py
conveyal/gtfs-data-manager
e7269fc1660f1816da269b1c116b43bdf758900b
[ "MIT" ]
3
2015-01-03T10:17:34.000Z
2015-11-10T10:44:27.000Z
#!/usr/bin/python # load many feeds to the GTFS data manager, from a csv with fields name and url # usage: bulkLoadFeeds.py file.csv http://server.example.com/ import csv from getpass import getpass from sys import argv import json from cookielib import CookieJar import urllib2 from urllib import urlencode if len(arg...
25.736111
115
0.611981
66ce81273371c8d4fdeb7dac39c7d81c55ecac89
5,962
py
Python
EQUATIONS/FOR_RESOLUTION_STUDY/BuoyancyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
4
2019-04-22T11:43:47.000Z
2020-09-16T00:28:15.000Z
EQUATIONS/FOR_RESOLUTION_STUDY/BuoyancyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
34
2019-07-01T09:11:00.000Z
2022-03-30T13:35:43.000Z
EQUATIONS/FOR_RESOLUTION_STUDY/BuoyancyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
1
2020-09-16T00:28:17.000Z
2020-09-16T00:28:17.000Z
import numpy as np from scipy import integrate import matplotlib.pyplot as plt from UTILS.Calculus import Calculus from UTILS.SetAxisLimit import SetAxisLimit from UTILS.Tools import Tools from UTILS.Errors import Errors import sys # Theoretical background https://arxiv.org/abs/1401.5176 # Mocak, Meakin, Viallet, Ar...
32.939227
122
0.548306
66d0333de9cb88854cae7ea5468d3e9e83ace47c
953
py
Python
quokka/ext/weasyprint.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
1
2020-10-31T03:57:07.000Z
2020-10-31T03:57:07.000Z
quokka/ext/weasyprint.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
null
null
null
quokka/ext/weasyprint.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import logging from flask import url_for logger = logging.getLogger() try: from flask_weasyprint import render_pdf import_error = False except (ImportError, OSError) as e: # print(""" # Error importing flask-weasyprint! # PDF support...
25.756757
74
0.684155
66d0fa4f73c90e59d6dc87d8a6c39b035c3b58f1
392
py
Python
jupyter_server_terminals/__init__.py
blink1073/jupyter_server_terminals
cc0363421ab50fded26c8519ea4694bf1a391fce
[ "BSD-3-Clause-Clear" ]
3
2021-12-30T23:55:47.000Z
2022-02-18T01:14:54.000Z
jupyter_server_terminals/__init__.py
blink1073/jupyter_server_terminals
cc0363421ab50fded26c8519ea4694bf1a391fce
[ "BSD-3-Clause-Clear" ]
5
2021-12-26T21:27:11.000Z
2022-03-03T11:37:04.000Z
jupyter_server_terminals/__init__.py
blink1073/jupyter_server_terminals
cc0363421ab50fded26c8519ea4694bf1a391fce
[ "BSD-3-Clause-Clear" ]
4
2021-12-26T21:25:45.000Z
2022-01-27T02:47:10.000Z
from ._version import __version__ # noqa:F401 try: from .app import TerminalsExtensionApp except ModuleNotFoundError: import warnings warnings.warn("Could not import submodules")
21.777778
59
0.663265
66d19b6566c778e3d204fad20cbbd324cf9a6a61
5,256
py
Python
CommandsToFunction.py
destruc7i0n/CommandsToFunction
f1c29c6280524c54cc5876b966c1ff36ab1c2d27
[ "MIT" ]
1
2018-03-10T21:09:04.000Z
2018-03-10T21:09:04.000Z
CommandsToFunction.py
destruc7i0n/CommandsToFunction
f1c29c6280524c54cc5876b966c1ff36ab1c2d27
[ "MIT" ]
null
null
null
CommandsToFunction.py
destruc7i0n/CommandsToFunction
f1c29c6280524c54cc5876b966c1ff36ab1c2d27
[ "MIT" ]
null
null
null
# By TheDestruc7i0n https://thedestruc7i0n.ca # MrGarretto for the code for traversing the command block chain https://mrgarretto.com import mcplatform import codecs __version__ = "V1.4.1" displayName = "Commands to Function" inputs = ( ("Converts a command block chain into a function.", "label"), ("The fil...
39.818182
180
0.562976
66d42f1fdcd91d122cd938babcc3fe924510d04e
2,147
py
Python
src/admin/godmode/actions/base.py
aimanow/sft
dce87ffe395ae4bd08b47f28e07594e1889da819
[ "Apache-2.0" ]
280
2016-07-19T09:59:02.000Z
2022-03-05T19:02:48.000Z
godmode/actions/base.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
3
2016-07-20T05:36:49.000Z
2018-12-10T16:16:19.000Z
godmode/actions/base.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
20
2016-07-20T10:51:34.000Z
2022-01-12T23:15:22.000Z
import json from flask import g, request, render_template from flask.views import View from godmode import logging from godmode.acl import ACL from godmode.audit_log import audit_log from godmode.exceptions import AccessDenied log = logging.getLogger(__name__)
26.182927
98
0.583605
66d880a9b64fd73b407a720c9fa6817d2609e5bf
16,001
py
Python
forever/Warframe.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Warframe.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Warframe.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
import discord import asyncio import time import aiohttp import re import pathlib import os import json from bs4 import BeautifulSoup from datetime import datetime from models.UpdatedMessage import UpdatedMessage from models.EmbedTemplate import EmbedTemplate from models.BotMention import BotMention from f...
41.778068
159
0.645272
66d8ba6f365049a80533d4986a5c2cf0bb77bfb0
2,561
py
Python
config/jupyter/jupyterhub_config.py
mhwasil/jupyterhub-on-gcloud
9cfe935772d7599fa36c5b998cebb87c17e24277
[ "MIT" ]
3
2018-10-06T20:35:08.000Z
2019-03-02T08:04:52.000Z
config/jupyter/jupyterhub_config.py
mhwasil/jupyterhub-on-gcloud
9cfe935772d7599fa36c5b998cebb87c17e24277
[ "MIT" ]
4
2019-05-15T11:36:43.000Z
2019-07-23T09:34:45.000Z
config/jupyter/jupyterhub_config.py
mhwasil/jupyterhub-on-gcloud
9cfe935772d7599fa36c5b998cebb87c17e24277
[ "MIT" ]
2
2020-01-09T21:03:44.000Z
2020-11-22T16:47:00.000Z
c = get_config() c.JupyterHub.ip = u'127.0.0.1' c.JupyterHub.port = 8000 c.JupyterHub.cookie_secret_file = u'/srv/jupyterhub/jupyterhub_cookie_secret' c.JupyterHub.db_url = u'/srv/jupyterhub/jupyterhub.sqlite' #c.JupyterHub.proxy_auth_token = u'/srv/jupyterhub/proxy_auth_token' c.ConfigurableHTTPProxy.auth_token = u'/s...
31.617284
78
0.643108
66d95353965e38496015e85b754a89803b392d87
11,908
py
Python
legacy/Environment.py
LaoKpa/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
7
2020-09-28T23:36:40.000Z
2022-02-22T02:00:32.000Z
legacy/Environment.py
LaoKpa/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
4
2020-11-13T18:48:52.000Z
2022-02-10T01:29:47.000Z
legacy/Environment.py
lzcaisg/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
3
2020-11-23T17:31:59.000Z
2021-04-08T10:55:03.000Z
import datetime import warnings import pandas as pd import numpy as np from MongoDBUtils import * from scipy.optimize import fsolve import pymongo TRADING_FEE = 0.008 EARLIEST_DATE = datetime.datetime(2014, 10, 17) LATEST_DATE = datetime.datetime(2019, 10, 17) # In any cases, we shouldn't know today's and future val...
36.527607
141
0.570037
66d9e2205d4a01f644f0a6147e2760e0d6b2de38
579
py
Python
examples/Titanic/titanic.py
mlflow/mlflow-torchserve
91663b630ef12313da3ad821767faf3fc409345b
[ "Apache-2.0" ]
40
2020-11-13T02:08:10.000Z
2022-03-27T07:41:57.000Z
examples/Titanic/titanic.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
23
2020-11-16T11:28:01.000Z
2021-09-23T11:28:24.000Z
examples/Titanic/titanic.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
15
2020-11-13T10:25:25.000Z
2022-02-01T10:13:20.000Z
import torch.nn as nn
30.473684
64
0.62867
66db0c7061bb9a75d8373490465f8ef60bcc3200
426
py
Python
api/tacticalrmm/agents/migrations/0049_agent_agents_agen_monitor_df8816_idx.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
api/tacticalrmm/agents/migrations/0049_agent_agents_agen_monitor_df8816_idx.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
api/tacticalrmm/agents/migrations/0049_agent_agents_agen_monitor_df8816_idx.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-04-18 14:29 from django.db import migrations, models
23.666667
98
0.65493
66dcca39ba0172f5d72111b99f2df6a26ed3cb02
6,431
py
Python
src/Datasets.py
fauxneticien/bnf_cnn_qbe-std
ab7dcb9c9d3d8969f1f17aaa87b7337d3ccfcc30
[ "MIT" ]
4
2021-03-26T17:18:59.000Z
2022-03-21T18:28:56.000Z
src/Datasets.py
fauxneticien/bnf_cnn_qbe-std
ab7dcb9c9d3d8969f1f17aaa87b7337d3ccfcc30
[ "MIT" ]
1
2021-11-02T17:29:46.000Z
2021-11-02T17:29:46.000Z
src/Datasets.py
fauxneticien/bnf_cnn_qbe-std
ab7dcb9c9d3d8969f1f17aaa87b7337d3ccfcc30
[ "MIT" ]
1
2020-11-11T05:04:55.000Z
2020-11-11T05:04:55.000Z
import os import torch import numpy as np import pandas as pd from torch.utils.data import Dataset, DataLoader from scipy.spatial.distance import cdist import logging
51.448
133
0.640647
66de338a8afcfc34368f70df12c0187b512a7430
3,209
py
Python
dmz/store.py
yuvipanda/edit-stats
fb096715f18df999b4af4fb116e6c4130f24c2ec
[ "MIT" ]
null
null
null
dmz/store.py
yuvipanda/edit-stats
fb096715f18df999b4af4fb116e6c4130f24c2ec
[ "MIT" ]
null
null
null
dmz/store.py
yuvipanda/edit-stats
fb096715f18df999b4af4fb116e6c4130f24c2ec
[ "MIT" ]
null
null
null
"""Implements a db backed storage area for intermediate results""" import sqlite3
38.662651
111
0.600499
66e356546289b5293424a7a6ad3ffb4afce031ec
7,074
py
Python
main.py
usdot-its-jpo-data-portal/metadata-query-function
589e5df691fab82e264ce74196dd797b9eb17f5e
[ "Apache-2.0" ]
null
null
null
main.py
usdot-its-jpo-data-portal/metadata-query-function
589e5df691fab82e264ce74196dd797b9eb17f5e
[ "Apache-2.0" ]
null
null
null
main.py
usdot-its-jpo-data-portal/metadata-query-function
589e5df691fab82e264ce74196dd797b9eb17f5e
[ "Apache-2.0" ]
1
2021-12-14T18:00:20.000Z
2021-12-14T18:00:20.000Z
import boto3 import dateutil import glob import json import logging import os import queue import time from queries import MetadataQueries USE_LOCAL_DATA = True # whether to load data from S3 (false) or locally (true) LOCAL_DATA_REPOSITORY = "s3data/usdot-its-cvpilot-public-data" # path to local directory containing s...
46.235294
227
0.669918
66e36f3c188b5158455460f11322fdc4021ffe06
1,070
py
Python
example_config/SecretConfig.py
axiegamingph-dev/discordaxieqrbot
fac9b3f325b98d21ece12445ec798c125d06f788
[ "MIT" ]
null
null
null
example_config/SecretConfig.py
axiegamingph-dev/discordaxieqrbot
fac9b3f325b98d21ece12445ec798c125d06f788
[ "MIT" ]
null
null
null
example_config/SecretConfig.py
axiegamingph-dev/discordaxieqrbot
fac9b3f325b98d21ece12445ec798c125d06f788
[ "MIT" ]
2
2022-01-13T18:45:26.000Z
2022-03-03T11:50:43.000Z
Managers = ['Shim', 'Mike', 'Ryan', 'Kevin', 'Wessa', 'ser0wl'] # google spreedsheet id ISKO_SPREADSHEET_ID = '' # the list of names with discord ID ISKO_DiscordAccount = 'DiscordAccount!A2:B100' # the list of Names, ronin address, ronin private keys # eg: # Name | Address | Privat...
33.4375
94
0.699065
66e44acc59d85966cbb8120b35805a421dccdbf1
566
py
Python
world/dominion/migrations/0011_organization_theories.py
stesla/arxcode
a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a
[ "MIT" ]
5
2019-03-16T08:26:53.000Z
2019-11-27T15:42:16.000Z
world/dominion/migrations/0011_organization_theories.py
stesla/arxcode
a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a
[ "MIT" ]
7
2018-09-29T05:08:15.000Z
2021-06-10T21:35:32.000Z
world/dominion/migrations/0011_organization_theories.py
stesla/arxcode
a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a
[ "MIT" ]
7
2018-09-19T21:11:29.000Z
2019-11-19T12:46:14.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-08-19 03:52 from __future__ import unicode_literals from django.db import migrations, models
25.727273
108
0.637809
66e492eef799f5d354e84f2867ee89f9c4cd7b7a
200
py
Python
tests/button_test.py
almasgai/Drone
1223375976baf79d0f4362d42287d1a4039ba1e9
[ "MIT" ]
null
null
null
tests/button_test.py
almasgai/Drone
1223375976baf79d0f4362d42287d1a4039ba1e9
[ "MIT" ]
null
null
null
tests/button_test.py
almasgai/Drone
1223375976baf79d0f4362d42287d1a4039ba1e9
[ "MIT" ]
null
null
null
from gpiozero import Button import os from time import sleep button = Button(2) i = 0 while True: if button.is_pressed: print(i, ". I've been pressed") i += 1 sleep(0.1)
15.384615
39
0.61
66e5419754e56410c068112926f27e01cdae86bb
820
py
Python
reprojection.py
ekrell/nir2watermap
5253f2cde142a62103eb06fb2931c9aed6431211
[ "MIT" ]
null
null
null
reprojection.py
ekrell/nir2watermap
5253f2cde142a62103eb06fb2931c9aed6431211
[ "MIT" ]
null
null
null
reprojection.py
ekrell/nir2watermap
5253f2cde142a62103eb06fb2931c9aed6431211
[ "MIT" ]
null
null
null
import rasterio from rasterio.plot import show, reshape_as_raster, reshape_as_image, adjust_band from rasterio import warp import numpy as np
37.272727
91
0.680488
66e80248874252f8ee1fc31cfa1763523a5f99eb
4,034
py
Python
opentsdb/push_thread.py
razvandimescu/opentsdb-py
61c15302468769121f94323493e88cb51efcea15
[ "MIT" ]
48
2016-12-27T10:11:41.000Z
2021-11-15T16:05:24.000Z
opentsdb/push_thread.py
razvandimescu/opentsdb-py
61c15302468769121f94323493e88cb51efcea15
[ "MIT" ]
8
2017-10-08T16:20:30.000Z
2022-02-23T08:36:52.000Z
opentsdb/push_thread.py
razvandimescu/opentsdb-py
61c15302468769121f94323493e88cb51efcea15
[ "MIT" ]
17
2017-10-01T01:14:55.000Z
2021-11-15T16:05:24.000Z
from logging import getLogger from queue import Empty import threading import random import time logger = getLogger('opentsdb-py')
32.015873
119
0.617005
66e8dfd4ed77fb442ea81a851f7a9c4e599b1de3
465
py
Python
projects/generate_pdf/main.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-03-17T07:20:24.000Z
2019-03-31T05:47:09.000Z
projects/generate_pdf/main.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
null
null
null
projects/generate_pdf/main.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-01-28T13:09:48.000Z
2019-03-17T07:20:37.000Z
from xlrd import open_workbook wb = open_workbook(r"C:\Users\Lenovo\Documents\excel converter.xlsx") for s in wb.sheets(): #print 'Sheet:',s.name values = [] for row in range(s.nrows): col_value = [] for col in range(s.ncols): value = (s.cell(row,col).value) ...
31
70
0.572043
66ebd223e34af9e0e97db29c5f0febdca09f52fb
3,068
py
Python
apitaxdrivers/Openstack.py
Apitax/Drivers
35b2c2f4c8ce8b98615f42fc30f04111d7b9bffe
[ "Apache-2.0" ]
null
null
null
apitaxdrivers/Openstack.py
Apitax/Drivers
35b2c2f4c8ce8b98615f42fc30f04111d7b9bffe
[ "Apache-2.0" ]
4
2018-08-03T20:01:57.000Z
2018-10-22T15:32:27.000Z
apitaxdrivers/Openstack.py
Apitax/Drivers
35b2c2f4c8ce8b98615f42fc30f04111d7b9bffe
[ "Apache-2.0" ]
null
null
null
from apitax.drivers.Driver import Driver from apitax.utilities.Files import getAllFiles from apitax.ah.Options import Options from pathlib import Path from apitax.ah.Credentials import Credentials from apitax.utilities.Json import read from apitax.ah.State import State from apitax.utilities.Files import getPath
35.264368
118
0.601695