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
45ab9ea2dc5f4b23d74ac29f8266f535d3be4159
2,703
py
Python
KeystrokeDynamics.py
lupoermeyo/Behavioural-Biometrics
0212f1de39412476f8eb852315eb2775f8e9e454
[ "Apache-2.0" ]
null
null
null
KeystrokeDynamics.py
lupoermeyo/Behavioural-Biometrics
0212f1de39412476f8eb852315eb2775f8e9e454
[ "Apache-2.0" ]
null
null
null
KeystrokeDynamics.py
lupoermeyo/Behavioural-Biometrics
0212f1de39412476f8eb852315eb2775f8e9e454
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ * @file KeystrokeDynamics.py * @brief Keystroke generator capture for L. Antichi Thesis * * @author Leonardo Antichi (<leo.antichi@sutd.uniroma3.it>) * @version 1.7 * @since 1.0 * * @copyright Copyright (c) 2017-2018 Roma Tre, Italy * @copyright Apache License, Version 2.0 """ import win32a...
32.963415
151
0.660007
45abcd25079db97a67b489f518bd398d367931de
423
py
Python
portfolio/admin.py
mucahitnezir/django-starter
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
[ "MIT" ]
5
2019-01-09T13:17:09.000Z
2021-04-12T19:26:11.000Z
portfolio/admin.py
mucahitnezir/django-blog
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
[ "MIT" ]
9
2019-06-10T18:52:42.000Z
2021-06-10T17:36:44.000Z
portfolio/admin.py
mucahitnezir/django-blog
2b5b571da19c37941ae1634d0bd26ac8b0063b7d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Portfolio
30.214286
79
0.678487
45af13113748b76dff6737ce6168b834565ba369
737
py
Python
cpias/cli/__init__.py
CellProfiling/cpias
e2d9426436573b40625287101570b849ce9f4a38
[ "Apache-2.0" ]
null
null
null
cpias/cli/__init__.py
CellProfiling/cpias
e2d9426436573b40625287101570b849ce9f4a38
[ "Apache-2.0" ]
null
null
null
cpias/cli/__init__.py
CellProfiling/cpias
e2d9426436573b40625287101570b849ce9f4a38
[ "Apache-2.0" ]
null
null
null
# type: ignore """Provide a CLI.""" import logging import click from cpias import __version__ from cpias.cli.client import run_client from cpias.cli.server import start_server SETTINGS = dict(help_option_names=["-h", "--help"]) cli.add_command(start_server) cli.add_command(run_client)
23.03125
81
0.717775
45b1387d07ded17b27c38254744ea03c4ab7dcf9
1,368
py
Python
server/config.py
knrdl/casa
411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180
[ "MIT" ]
40
2022-01-08T18:33:33.000Z
2022-01-17T11:52:40.000Z
server/config.py
knrdl/casa
411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180
[ "MIT" ]
null
null
null
server/config.py
knrdl/casa
411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180
[ "MIT" ]
3
2022-01-10T03:05:45.000Z
2022-01-10T16:17:29.000Z
import os from typing import Literal, get_args, Final, Set, Dict AUTH_API_URL = os.getenv('AUTH_API_URL') AUTH_API_FIELD_USERNAME = os.getenv('AUTH_API_FIELD_USERNAME', 'username') AUTH_API_FIELD_PASSWORD = os.getenv('AUTH_API_FIELD_PASSWORD', 'password') if not AUTH_API_URL: raise Exception('please provide AUTH_A...
41.454545
103
0.681287
45b2b23d27a2e53c3f068def849224f1c8fabece
4,347
py
Python
fanuc_planning/src/scripts/workspace/scene.py
oaghub/FMS
f3a4836fcb993903d239935fe05b878f3fe1f874
[ "MIT" ]
null
null
null
fanuc_planning/src/scripts/workspace/scene.py
oaghub/FMS
f3a4836fcb993903d239935fe05b878f3fe1f874
[ "MIT" ]
null
null
null
fanuc_planning/src/scripts/workspace/scene.py
oaghub/FMS
f3a4836fcb993903d239935fe05b878f3fe1f874
[ "MIT" ]
null
null
null
#! /usr/bin/env python import sys import copy import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg from math import pi from std_msgs.msg import String from moveit_commander.conversions import pose_to_list from geometry_msgs.msg import Pose, PoseStamped # Initializing the node represent...
28.227273
130
0.731079
45b5fa70386d8105f33dc75fae82e50e32e78e74
502
py
Python
loaf/projects/migrations/0004_project_apt.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
loaf/projects/migrations/0004_project_apt.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
loaf/projects/migrations/0004_project_apt.py
phj95304/loaf_django
da3dd778fc11f4cd5583c4f4537a9bf8760756b9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-09-08 09:03 import django.contrib.postgres.fields from django.db import migrations, models
25.1
131
0.655378
45b65bda8190d8c14bc4023732f98de599eb5be5
959
py
Python
effective_python/pythonic_thought/str_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
1
2018-12-19T22:07:56.000Z
2018-12-19T22:07:56.000Z
effective_python/pythonic_thought/str_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
12
2020-03-14T05:32:26.000Z
2022-03-12T00:08:49.000Z
effective_python/pythonic_thought/str_demo.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
1
2018-12-19T22:08:00.000Z
2018-12-19T22:08:00.000Z
""" @author: magician @date: 2019/12/10 @file: str_demo.py """ import os def to_str(bytes_or_str): """ to_str(python2, python3) :param bytes_or_str: :return: """ if isinstance(bytes_or_str, bytes): value = bytes_or_str.decode('utf-8') else: value = bytes_or_str ...
17.759259
53
0.595412
45b98152e1ec2d40f01789e515fcc68c070f6c42
2,452
py
Python
src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py
arve0/example_lessons
56ce7f386df2478165f4583a86b462974f5e19ec
[ "CC0-1.0" ]
2
2017-02-19T21:31:34.000Z
2019-06-27T07:55:50.000Z
src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py
arve0/example_lessons
56ce7f386df2478165f4583a86b462974f5e19ec
[ "CC0-1.0" ]
null
null
null
src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py
arve0/example_lessons
56ce7f386df2478165f4583a86b462974f5e19ec
[ "CC0-1.0" ]
null
null
null
from random import * import tkinter from pokeapi import * smallFont = ["Ariel" , 10] mediumFont = ["Ariel" , 14] bigFont = ["Ariel" , 24] #function to display data for a pokemon number #create the main window window = tkinter.Tk() window.config(bg="#e0e0ff") window.title("Pokedex") #button to show a random pokemon...
31.844156
98
0.745514
45bb4339df10b2c504d23e3c5f87aad73571f0d8
551
py
Python
PythonExercicios/ex092.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex092.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex092.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
from datetime import date info = dict() info['nome'] = str(input('Nome: ')) ano = int(input('Ano de Nascimento: ')) info['idade'] = date.today().year - ano info['ctps'] = int(input('Carteira de Trabalho (0 no tem): ')) if info['ctps'] > 0: info['contratao'] = int(input('Ano de contratao: ')) info['Salrio'] = fl...
36.733333
63
0.618875
45bb5f01972a0422e197939fbc86dcc3efd9e8cf
2,547
py
Python
src/words/compiler/compile.py
DavidStrootman/ATP
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
2
2021-08-20T17:56:15.000Z
2021-08-21T01:04:08.000Z
src/words/compiler/compile.py
DavidStrootman/Words
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
null
null
null
src/words/compiler/compile.py
DavidStrootman/Words
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Callable, Dict, List, Type, Iterator from words.lexer.lex import Lexer from words.parser.parse import Parser from words.parser.parse_util import Program from words.token_types.lexer_token import LexerToken from words.token_types.parser_token import ParserToken, VariableParse...
29.964706
97
0.650962
45bb63a16d11fc1ffe3d85d5f0903a0791235525
666
py
Python
digger/modules/load.py
fxxkrlab/Digger
b69e23aee1f2a8eac4989badd354bd128d35100e
[ "MIT" ]
null
null
null
digger/modules/load.py
fxxkrlab/Digger
b69e23aee1f2a8eac4989badd354bd128d35100e
[ "MIT" ]
null
null
null
digger/modules/load.py
fxxkrlab/Digger
b69e23aee1f2a8eac4989badd354bd128d35100e
[ "MIT" ]
null
null
null
import os, logging, toml _cfgFile_RAW = os.path.abspath(os.path.join("conf.toml")) _cfg = toml.load(_cfgFile_RAW) ''' log setting ''' if _cfg['Servers']['server']['CONSOLE'] == 'DEBUG': logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.DEBUG, ) e...
28.956522
125
0.564565
45bb66efdc59c469de7d495c36cb9e1d35bdedf1
793
py
Python
src/contact/models.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
src/contact/models.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
src/contact/models.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _
34.478261
74
0.686003
45bbcaa18c9d8b0af41194ae911dd0604064bd55
11,982
py
Python
rados_deploy/internal/remoto/modules/rados_install.py
MariskaIJpelaar/rados-deploy
4ffb467211c2b05d17d76c2423c72c0ee4d4ec99
[ "MIT" ]
null
null
null
rados_deploy/internal/remoto/modules/rados_install.py
MariskaIJpelaar/rados-deploy
4ffb467211c2b05d17d76c2423c72c0ee4d4ec99
[ "MIT" ]
null
null
null
rados_deploy/internal/remoto/modules/rados_install.py
MariskaIJpelaar/rados-deploy
4ffb467211c2b05d17d76c2423c72c0ee4d4ec99
[ "MIT" ]
1
2022-02-08T10:47:14.000Z
2022-02-08T10:47:14.000Z
import os import subprocess import tempfile import urllib.request def install_ceph_deploy(location, silent=False): '''Install ceph-deploy on the admin node. Warning: Assumes `git` is installed and available. Warning: This only has to be executed on 1 node, which will be designated the `ceph admin node`. ...
54.963303
227
0.647304
45bc17edfd4d56c459c035506d016dde933b4b38
1,539
py
Python
segment.py
jorjao81/zh-learn
9d14033361918a759dd245984c35c1cb8aa3f24f
[ "MIT" ]
2
2020-12-04T16:23:02.000Z
2021-12-25T12:54:45.000Z
segment.py
jorjao81/zh-learn
9d14033361918a759dd245984c35c1cb8aa3f24f
[ "MIT" ]
null
null
null
segment.py
jorjao81/zh-learn
9d14033361918a759dd245984c35c1cb8aa3f24f
[ "MIT" ]
1
2021-12-22T20:17:08.000Z
2021-12-22T20:17:08.000Z
from pysubparser import parser from pysubparser.util import time_to_millis from pydub import AudioSegment # find segments of conversation import sys FIVE_SECONDS = 5000 audio_filename = sys.argv[1] subtitle_filename = sys.argv[2] subtitles = parser.parse(subtitle_filename) segments = get_segments(subtitles) song...
22.632353
104
0.622482
45bc4038c9107e889c840e27905e254cabf514d3
4,766
py
Python
bot.py
BinaryWorld0101201/RSS_Feederbot
177c175fc309645661d2dd804e76f5dc8c5d726e
[ "MIT" ]
1
2019-05-14T11:34:40.000Z
2019-05-14T11:34:40.000Z
bot.py
BinaryWorld0101201/RSS_Feederbot
177c175fc309645661d2dd804e76f5dc8c5d726e
[ "MIT" ]
null
null
null
bot.py
BinaryWorld0101201/RSS_Feederbot
177c175fc309645661d2dd804e76f5dc8c5d726e
[ "MIT" ]
null
null
null
try: import feedparser, html2text, asyncio, json, datetime, telepot from loguru import logger from telepot.aio.loop import MessageLoop from telepot.aio.delegate import per_chat_id, create_open, pave_event_space except ImportError: print("Failed to import required modules.") if __name__ == "__main...
42.936937
110
0.563785
45bcfaeb97ed0ff8e530ddacc88395a26d3c7e57
617
py
Python
medimg/dcm/__init__.py
arokem/nimsdata
9aba149969a4d86d18cf0d731fbd562cc0e8bfeb
[ "MIT" ]
2
2016-03-26T09:43:55.000Z
2016-11-15T11:22:06.000Z
medimg/dcm/__init__.py
arokem/nimsdata
9aba149969a4d86d18cf0d731fbd562cc0e8bfeb
[ "MIT" ]
null
null
null
medimg/dcm/__init__.py
arokem/nimsdata
9aba149969a4d86d18cf0d731fbd562cc0e8bfeb
[ "MIT" ]
1
2017-11-18T10:06:57.000Z
2017-11-18T10:06:57.000Z
""" nimsdata.medimg.dcm =================== TODO: docs? here? yes. Currently supported dicoms include the following Manufacturers and SOPs SUPPORTED_MFR - 'GE MEDICAL SYSTEMS' - 'SIEMENS' SUPPORTED_SOP - '1.2.840.10008.5.1.4.1.1.4' MR Image - '1.2.840.10008.5.1.4.1.1.7' Secondary Capture...
26.826087
81
0.583468
45bdb36510e854f6de6cd3293f787a5c8f33e5a3
3,475
py
Python
tests/test_file_stream.py
cglewis/pyais
541fcc8a9edd5a826635273fc818587dbfb7ec42
[ "MIT" ]
51
2019-10-07T11:26:56.000Z
2022-03-16T10:45:15.000Z
tests/test_file_stream.py
cglewis/pyais
541fcc8a9edd5a826635273fc818587dbfb7ec42
[ "MIT" ]
57
2019-10-14T07:50:00.000Z
2022-03-28T06:52:27.000Z
tests/test_file_stream.py
cglewis/pyais
541fcc8a9edd5a826635273fc818587dbfb7ec42
[ "MIT" ]
31
2019-10-13T17:17:56.000Z
2022-03-26T16:46:54.000Z
import pathlib import unittest from unittest.case import skip from pyais.stream import FileReaderStream, should_parse from pyais.messages import NMEAMessage
43.987342
118
0.673094
45bdba9e5dd956513cc7f98d220c282da5cc1f1f
6,354
py
Python
i2c_max6639.py
glitchub/plio
5746dfa10fcd74d65e14d554b59883412bfc5bb4
[ "Unlicense" ]
1
2020-02-18T04:46:01.000Z
2020-02-18T04:46:01.000Z
i2c_max6639.py
glitchub/plio
5746dfa10fcd74d65e14d554b59883412bfc5bb4
[ "Unlicense" ]
null
null
null
i2c_max6639.py
glitchub/plio
5746dfa10fcd74d65e14d554b59883412bfc5bb4
[ "Unlicense" ]
null
null
null
# Driver for MAX 6639 fan controller # In normal operation: # reset() possibly with options # set_fan_ config() for each fan # set_pwm_mode() or set_rpm_mode() for each fan. from __future__ import print_function try: from i2c import i2c except: from .i2c import i2c if __name__ == "__main__": import time ...
43.520548
126
0.567202
45be769f411fd4437219b4961db9cd7cef98434f
1,423
py
Python
Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py
OrangePeelFX/Python-Tutorial
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
null
null
null
Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py
OrangePeelFX/Python-Tutorial
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
1
2021-06-02T00:28:17.000Z
2021-06-02T00:28:17.000Z
Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py
florianwns/python-scripts
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
1
2020-01-13T11:08:18.000Z
2020-01-13T11:08:18.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Effet de dphasage la Barberpole. Cet exemple utilise deux dphaseurs (bass sur une modulation complexe) dcalant linairement le contenu frquentiel d'un son. Le dcalage de frquence est similaire la modulation en anneaux, sauf que les bandes latrales suprieures et infr...
25.410714
79
0.668306
45bebfee1fc6c99b8d76516c463bc09140a29f6d
8,885
py
Python
odfdo/paragraph_base.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
odfdo/paragraph_base.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
odfdo/paragraph_base.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Jrme Dumonteil # Copyright (c) 2009-2013 Ars Aperta, Itaapy, Pierlis, Talend. # # 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...
31.39576
79
0.538323
45bfe5c078f298141870f59d4be7cfb5f40df620
659
py
Python
myUnittest/case_way/case_drive_config.py
ChenJiR/MyPyUnittest
77ecde87218a0ca7482e4d1dfebd403e2325165a
[ "MIT" ]
null
null
null
myUnittest/case_way/case_drive_config.py
ChenJiR/MyPyUnittest
77ecde87218a0ca7482e4d1dfebd403e2325165a
[ "MIT" ]
null
null
null
myUnittest/case_way/case_drive_config.py
ChenJiR/MyPyUnittest
77ecde87218a0ca7482e4d1dfebd403e2325165a
[ "MIT" ]
null
null
null
import os DRIVER_DB = 'db_to_case' DRIVER_EXCEL = 'excel_to_case' DRIVER_TXT = 'txt_to_case' db_case_config = { 'host': '127.0.0.1', 'username': 'root', 'password': 'root', 'port': 3306, 'db': 'test', } excel_case_config = { 'path': os.path.dirname(__file__) + str('/excel_case/'), 'defaul...
17.810811
60
0.654021
45c03052ca9a5026e2efea8fa7acae8f6c0c55cc
3,634
py
Python
manage/sawtooth_manage/node.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2017-08-04T10:31:00.000Z
2017-08-04T10:31:00.000Z
core/sawtooth/manage/node.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2021-12-09T23:11:26.000Z
2021-12-09T23:11:26.000Z
core/sawtooth/manage/node.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
26.333333
80
0.63869
45c0e8bae3f25948b5b8cba3047d88441aee1315
1,253
py
Python
Python/Zelle/Chapter8_LoopStructuresBooleans/ProgrammingExercises/4_SyracuseSequence/syracuseSequence.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
Python/Zelle/Chapter8_LoopStructuresBooleans/ProgrammingExercises/4_SyracuseSequence/syracuseSequence.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
Python/Zelle/Chapter8_LoopStructuresBooleans/ProgrammingExercises/4_SyracuseSequence/syracuseSequence.py
jeffvswanson/CodingPractice
9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb
[ "MIT" ]
null
null
null
# syracuseSequence.py # A program that prints a Syracuse sequence. """The Syracuse (also called "Collatz" or "Hailstone") sequence is generated by starting with a natural number and repeatedly applying the following function until reaching 1: syr(x) = x/2 (if x is even), 3x + 1 (if x is odd) For example, the Syracu...
30.560976
79
0.630487
45c2208cd42d48ae80a6876c9b2e2896638c303c
731
py
Python
setup.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
setup.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
setup.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup setup( name = "todo-flask", version = "0.0.1", author = "Wayne Werner", author_email = "waynejwerner@gmail.com", description = "A sample todo app written with Flask, unittest, and sqlite", license = "BSD", keywords = "example flask unittest", url = "https://...
30.458333
82
0.632011
45c2d3a01088393fc4acdc16b9de54511df97676
17,834
py
Python
reveries/maya/pipeline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
reveries/maya/pipeline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
reveries/maya/pipeline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import logging import avalon.maya import avalon.io from collections import defaultdict from avalon.maya.pipeline import ( AVALON_CONTAINER_ID, AVALON_CONTAINERS, containerise, ) from maya import cmds from . import lib from .vendor import sticker from .capsule import namespaced, nodes_locker from...
29.236066
79
0.618313
45c440eae6695f819733ad7666e871c73dcc0582
2,697
py
Python
app.py
kmr2/vefferk5
5fe8604781ed65f62a6be8e71381296693215343
[ "MIT" ]
null
null
null
app.py
kmr2/vefferk5
5fe8604781ed65f62a6be8e71381296693215343
[ "MIT" ]
null
null
null
app.py
kmr2/vefferk5
5fe8604781ed65f62a6be8e71381296693215343
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, session, redirect, url_for import pyrebase app = Flask(__name__) app.config['SECRET_KEY'] = 'covid_19' config = { "apiKey": "AIzaSyB6L9PLOIa-y8spupA2UFiegQGN7gmp12E", "authDomain": "vefferk5.firebaseapp.com", "databaseURL": "https://vefferk5.firebaseio.c...
26.70297
88
0.622914
45c45593e29f001e140d37954419e1ef43c370f9
2,511
py
Python
pax/utils.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
17
2016-04-24T12:02:03.000Z
2021-07-19T19:39:47.000Z
pax/utils.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
300
2016-04-01T15:29:57.000Z
2021-01-03T23:59:45.000Z
pax/utils.py
jacr20/pax
d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940
[ "BSD-3-Clause" ]
20
2016-04-14T15:11:26.000Z
2021-09-18T06:39:09.000Z
"""Helper routines needed in pax Please only put stuff here that you *really* can't find any other place for! e.g. a list clustering routine that isn't in some standard, library but several plugins depend on it """ import re import sys import inspect import random import string import logging import time import os im...
26.15625
103
0.657905
45c86dc6e97cf9f5c6efe3cc3e929be95a0cc82d
3,251
py
Python
app/auth/forms.py
austinmcconnell/myflaskapp
79223c0480387fd95e8dd26620bf0cd50659161c
[ "BSD-3-Clause" ]
null
null
null
app/auth/forms.py
austinmcconnell/myflaskapp
79223c0480387fd95e8dd26620bf0cd50659161c
[ "BSD-3-Clause" ]
41
2018-01-21T22:49:43.000Z
2022-01-21T19:11:52.000Z
app/auth/forms.py
austinmcconnell/myflaskapp
79223c0480387fd95e8dd26620bf0cd50659161c
[ "BSD-3-Clause" ]
1
2018-02-14T23:27:56.000Z
2018-02-14T23:27:56.000Z
from flask_babel import _, lazy_gettext as _l from flask_wtf import FlaskForm from wtforms import PasswordField, StringField, SubmitField from wtforms.validators import DataRequired, Email, EqualTo, Length from app.user.models import User
37.802326
116
0.62996
45c8bb81a03ef5a3614a21fdea7815af182bb4cc
674
py
Python
tock/session/memory.py
elebescond/tock-py
2addcaa671be4a7af7cdf9bc061c707bbcf7128a
[ "MIT" ]
4
2020-09-05T10:08:34.000Z
2021-10-05T05:38:59.000Z
tock/session/memory.py
elebescond/tock-py
2addcaa671be4a7af7cdf9bc061c707bbcf7128a
[ "MIT" ]
16
2020-09-03T14:13:24.000Z
2021-03-22T09:54:08.000Z
tock/session/memory.py
elebescond/tock-py
2addcaa671be4a7af7cdf9bc061c707bbcf7128a
[ "MIT" ]
3
2020-09-15T09:04:06.000Z
2021-03-04T12:40:27.000Z
# -*- coding: utf-8 -*- from typing import List from tock.session.storage import Storage from tock.session.session import Session from tock.models import UserId
26.96
54
0.648368
45c8f3a70c973964d6c049db2cb9fbfddac2a6fa
2,607
py
Python
tests/tests.py
hamedrb/pystripe
8ffd6f64f9074562d2c8b293b57cc795bfdcc196
[ "MIT" ]
null
null
null
tests/tests.py
hamedrb/pystripe
8ffd6f64f9074562d2c8b293b57cc795bfdcc196
[ "MIT" ]
null
null
null
tests/tests.py
hamedrb/pystripe
8ffd6f64f9074562d2c8b293b57cc795bfdcc196
[ "MIT" ]
null
null
null
import numpy as np import unittest import os import tempfile # import matplotlib.pyplot as plt from pystripe import core # def plot_fft(data, fdata): # plt.subplot(121) # plt.imshow(data) # plt.subplot(122) # plt.imshow(np.sqrt(np.real(fdata) ** 2 + np.imag(fdata) ** 2)) # plt.show() if __...
31.409639
108
0.628308
45ca35a0fa15eddc046aeaf9cbdd5eec81b1f362
47
py
Python
classifier/fracture_detector/callback/__init__.py
MIPT-Oulu/DeepWrist
9c26ee8639d748671f30a7a45487885989c53fa1
[ "MIT" ]
2
2021-03-03T12:38:15.000Z
2022-03-16T10:57:28.000Z
classifier/fracture_detector/callback/__init__.py
MIPT-Oulu/DeepWrist
9c26ee8639d748671f30a7a45487885989c53fa1
[ "MIT" ]
2
2022-03-07T20:03:42.000Z
2022-03-09T10:47:42.000Z
classifier/fracture_detector/callback/__init__.py
MIPT-Oulu/DeepWrist
9c26ee8639d748671f30a7a45487885989c53fa1
[ "MIT" ]
null
null
null
from ._callback_ptl import ReleaseAfterCallback
47
47
0.914894
45cb875e47bdd91ec509e33643403788946586df
288
py
Python
setup.py
mrshurik/mean_average_precision
36634422426ab598918d0f7449bcbc8201cf4381
[ "MIT" ]
119
2017-08-25T00:59:22.000Z
2022-01-04T11:08:38.000Z
setup.py
mrshurik/mean_average_precision
36634422426ab598918d0f7449bcbc8201cf4381
[ "MIT" ]
22
2017-10-04T03:42:43.000Z
2021-01-16T15:43:30.000Z
setup.py
mrshurik/mean_average_precision
36634422426ab598918d0f7449bcbc8201cf4381
[ "MIT" ]
46
2017-10-17T18:38:00.000Z
2021-04-09T17:47:44.000Z
from distutils.core import setup from setuptools import find_packages setup( name='mean_average_precision', version='0.1', packages=find_packages(), url='', license='MIT', author='Mathieu Garon', author_email='mathieugaron91@gmail.com', description='' )
19.2
44
0.6875
45cd3bffb17086c822a03c780110bdb0ff225e07
38
py
Python
OctaHomeNagios/OctaFiles/__init__.py
Tomcuzz/OctaHomeAutomation
4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e
[ "MIT" ]
4
2016-08-14T22:07:03.000Z
2020-10-05T14:43:03.000Z
OctaHomeNagios/OctaFiles/__init__.py
Tomcuzz/OctaHomeAutomation
4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e
[ "MIT" ]
null
null
null
OctaHomeNagios/OctaFiles/__init__.py
Tomcuzz/OctaHomeAutomation
4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e
[ "MIT" ]
null
null
null
from menus import * from urls import *
19
19
0.763158
45cd8cd79b7985a77b217cfc932114de4167b993
8,854
py
Python
third_party/lid_adversarial_subspace_detection/adaptive_attacks.py
ptrcarta/neural-fingerprinting
01fa8cb592f6fa7497c6884861adf7680ffa7f29
[ "BSD-3-Clause" ]
29
2018-03-10T04:33:25.000Z
2022-03-18T13:03:37.000Z
third_party/lid_adversarial_subspace_detection/adaptive_attacks.py
ptrcarta/neural-fingerprinting
01fa8cb592f6fa7497c6884861adf7680ffa7f29
[ "BSD-3-Clause" ]
2
2019-07-22T20:59:01.000Z
2019-11-17T07:00:00.000Z
third_party/lid_adversarial_subspace_detection/adaptive_attacks.py
StephanZheng/neural-fingerprinting
57e93e487ef324427456b14d1d81bc9e08483d27
[ "BSD-3-Clause" ]
20
2018-03-14T14:01:55.000Z
2021-09-17T19:19:56.000Z
from __future__ import absolute_import from __future__ import print_function import copy from collections import defaultdict import numpy as np import tensorflow as tf from tqdm import tqdm from six.moves import xrange import sys sys.path.append('../../.') from cleverhans.utils import other_classes from cl...
35.99187
106
0.583465
45cdb841e19bbd7ee0c6ca21d0ef0accbb5b6f9d
2,009
py
Python
pykit/ir/pretty.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
9
2015-06-23T00:13:49.000Z
2022-02-23T02:46:43.000Z
pykit/ir/pretty.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
1
2017-08-30T08:13:12.000Z
2017-08-31T06:36:32.000Z
pykit/ir/pretty.py
ContinuumIO/pyk
1730d7b831e0cf12a641ac23b5cf03e17e0dc550
[ "BSD-3-Clause" ]
7
2015-05-08T10:17:47.000Z
2021-04-01T15:00:57.000Z
# -*- coding: utf-8 -*- """ Pretty print pykit IR. """ from __future__ import print_function, division, absolute_import from pykit.utils import hashable prefix = lambda s: '%' + s indent = lambda s: '\n'.join(' ' + s for s in s.splitlines()) ejoin = "".join sjoin = " ".join ajoin = ", ".join njoin = "\n".join...
25.75641
86
0.594823
45cea41fbca701da0133eaa849e6902c4fa1ad42
9,059
py
Python
parser.py
JonahSussman/closure-language
9cbe9e381e81dc645c8e82096366fd50a60a6d32
[ "MIT" ]
null
null
null
parser.py
JonahSussman/closure-language
9cbe9e381e81dc645c8e82096366fd50a60a6d32
[ "MIT" ]
null
null
null
parser.py
JonahSussman/closure-language
9cbe9e381e81dc645c8e82096366fd50a60a6d32
[ "MIT" ]
null
null
null
from expr import Expr from stmt import Stmt
24.286863
85
0.610001
45d0300dc539119af7cf8c40a9178087f5bac8ed
332
py
Python
layers/modules/__init__.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
1
2021-03-07T01:09:33.000Z
2021-03-07T01:09:33.000Z
layers/modules/__init__.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
null
null
null
layers/modules/__init__.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
null
null
null
from .multibox_tf_loss import MultiBoxLoss_tf_source from .knowledge_distillation_loss import KD_loss from .imprinted_object import search_imprinted_weights from .multibox_tf_loss_target import MultiBoxLoss_tf_target __all__ = ['MultiBoxLoss_tf_source', 'KD_loss', 'search_imprinted_weights', 'MultiBoxLoss_...
36.888889
64
0.840361
45d222639670f52b0e3c20513666dbe93a9ab705
549
py
Python
lab4.py
kayla-koyne/ia241-github-1
b731725ed6aabddf123713a5fe963cef53a0d2e4
[ "MIT" ]
null
null
null
lab4.py
kayla-koyne/ia241-github-1
b731725ed6aabddf123713a5fe963cef53a0d2e4
[ "MIT" ]
null
null
null
lab4.py
kayla-koyne/ia241-github-1
b731725ed6aabddf123713a5fe963cef53a0d2e4
[ "MIT" ]
null
null
null
''' lab4 ''' #3.1 my_dict= { 'name':'Tom', 'id':123 } print(my_dict) #3.2 print(my_dict.values()) print(my_dict.keys()) #3.3 my_id='321' print(my_id) #3.4 my_dict.pop('name') print(my_dict) #3.5 my_tweet= { "tweet_id":1138, "coordinates": (-75, 40), "visited_countries": ["GR", "HK", "MY"] } print(my_twee...
10.98
46
0.639344
45d40de792c24807854989ee3810dccce94912de
945
py
Python
src/TeaRoom/urls.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
null
null
null
src/TeaRoom/urls.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
15
2015-05-20T12:55:13.000Z
2022-03-11T23:26:40.000Z
src/TeaRoom/urls.py
graipher/TeaRoom
0beb8c2c889b8685d5b7a463206de41947c2d669
[ "MIT" ]
2
2016-11-17T11:07:41.000Z
2017-07-07T11:18:36.000Z
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static import profiles.urls import accounts.urls import courses.urls import uploader.urls from . import views # Links URLs to views urlpatterns = patterns( '', ...
36.346154
76
0.71746
45d46add472272ae767f9079eea6562c74ec4a68
2,546
py
Python
app/models.py
barbaramootian/personal_blog
0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6
[ "Unlicense", "MIT" ]
null
null
null
app/models.py
barbaramootian/personal_blog
0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6
[ "Unlicense", "MIT" ]
null
null
null
app/models.py
barbaramootian/personal_blog
0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6
[ "Unlicense", "MIT" ]
null
null
null
from datetime import datetime from . import db, login_manager from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash class Post(db.Model): id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(255), nullable=False) content = db.Column...
34.876712
81
0.692852
45d79374760aed11ea1437698d8d2f46c96c56da
1,741
py
Python
hg/tests/test_tip.py
pakit/test_staging
9be9a6aa392c33926edb6f6ea6af64b4d23224ee
[ "BSD-3-Clause" ]
1
2020-10-06T02:26:24.000Z
2020-10-06T02:26:24.000Z
hg/tests/test_tip.py
pakit/test_staging
9be9a6aa392c33926edb6f6ea6af64b4d23224ee
[ "BSD-3-Clause" ]
null
null
null
hg/tests/test_tip.py
pakit/test_staging
9be9a6aa392c33926edb6f6ea6af64b4d23224ee
[ "BSD-3-Clause" ]
null
null
null
'''Test output of {tip}.''' from nose import * from util import *
22.320513
56
0.598507
45d7d0388364df4712cd375ea072f369e100ecba
3,542
py
Python
oocran/django/operators/views.py
howls90/oocran
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-12-12T10:32:16.000Z
2022-02-07T19:46:10.000Z
oocran/django/operators/views.py
howls90/oocran
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
1
2017-01-11T06:56:35.000Z
2017-01-11T06:58:44.000Z
oocran/django/operators/views.py
howls90/OOCRAN
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
[ "Apache-2.0", "BSD-3-Clause" ]
6
2017-05-29T03:34:23.000Z
2022-02-07T19:46:11.000Z
""" Open Orchestrator Cloud Radio Access Network 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...
34.38835
115
0.709486
45d7eeb536d9afa54b424f98a4bd81f25efce2fc
2,066
py
Python
ad2dispatch/news/views.py
cetaSYN/ad2dispatch
a3fa7585aaf18905d7914faaa5d1d6f584c2dab4
[ "Apache-2.0" ]
null
null
null
ad2dispatch/news/views.py
cetaSYN/ad2dispatch
a3fa7585aaf18905d7914faaa5d1d6f584c2dab4
[ "Apache-2.0" ]
29
2019-01-25T16:05:58.000Z
2020-03-21T21:18:58.000Z
ad2dispatch/news/views.py
cetaSYN/ad2dispatch
a3fa7585aaf18905d7914faaa5d1d6f584c2dab4
[ "Apache-2.0" ]
4
2019-01-25T15:55:04.000Z
2019-01-25T17:33:02.000Z
import markdown from django.http import Http404 from django.shortcuts import render from pages.models import get_top_pages from userprofiles.models import Volunteer from .models import Article
29.514286
102
0.631171
45d824fccee32ba7826f0cbb0aaa47b2a5382c06
727
py
Python
src/python/zquantum/core/history/recording_functions_with_gradient_test.py
kottmanj/z-quantum-core
21752e92e79aafedbfeb6e7ae196bdc2fd5803e4
[ "Apache-2.0" ]
null
null
null
src/python/zquantum/core/history/recording_functions_with_gradient_test.py
kottmanj/z-quantum-core
21752e92e79aafedbfeb6e7ae196bdc2fd5803e4
[ "Apache-2.0" ]
null
null
null
src/python/zquantum/core/history/recording_functions_with_gradient_test.py
kottmanj/z-quantum-core
21752e92e79aafedbfeb6e7ae196bdc2fd5803e4
[ "Apache-2.0" ]
null
null
null
"""Test cases for recording functions with gradients.""" import pytest import numpy as np from .example_functions import function_1, Function2, Function5 from .recorder import recorder from ..interfaces.functions import CallableWithGradient
31.608696
77
0.72077
45da00cb76f03be18a89a07dd9e8e2426fff0cf4
15,085
py
Python
optical/converter/utils.py
hashtagml/optical
1ed11c403b5041497e5b795681b962280c4723d8
[ "MIT" ]
10
2021-04-11T04:45:54.000Z
2022-02-17T07:49:48.000Z
optical/converter/utils.py
hashtagml/optical
1ed11c403b5041497e5b795681b962280c4723d8
[ "MIT" ]
9
2021-04-13T18:09:38.000Z
2021-05-05T13:21:20.000Z
optical/converter/utils.py
hashtagml/optical
1ed11c403b5041497e5b795681b962280c4723d8
[ "MIT" ]
null
null
null
""" __author__: HashTagML license: MIT Created: Sunday, 28th March 2021 """ import json import io import os import shutil import warnings from pathlib import Path, PosixPath from typing import Any, Callable, Dict, Optional, Union import pandas as pd from lxml import etree as xml from PIL import Image import xml.etree...
34.284091
115
0.628638
45daf2ba13dd10d36a72a6b2b05dc29e34435812
2,960
py
Python
bad_requests/request.py
Ben435/BensLoadTestTool
039c28a6c46cc8b7d6284fffdbf3a5c95158daed
[ "Apache-2.0" ]
1
2018-03-08T07:09:12.000Z
2018-03-08T07:09:12.000Z
bad_requests/request.py
Ben435/BensLoadTestTool
039c28a6c46cc8b7d6284fffdbf3a5c95158daed
[ "Apache-2.0" ]
null
null
null
bad_requests/request.py
Ben435/BensLoadTestTool
039c28a6c46cc8b7d6284fffdbf3a5c95158daed
[ "Apache-2.0" ]
null
null
null
import socket import ssl from bad_requests.response import Response HTTP_STANDARD_PORTS = [80] HTTPS_STANDARD_PORTS = [443, 8080] BUFFERSIZE = 1024
30.515464
113
0.529392
45db1ddc9bbef6c02d6ebbfcea0de3c07ec3bc2b
2,055
py
Python
tests/status_test.py
araines/supervisor-newrelic
8061ced419e1603367272a42b729414a7a51ac35
[ "MIT" ]
4
2019-02-11T03:17:45.000Z
2022-01-17T19:53:03.000Z
tests/status_test.py
araines/supervisor-newrelic
8061ced419e1603367272a42b729414a7a51ac35
[ "MIT" ]
3
2016-12-24T07:30:32.000Z
2017-07-11T11:12:51.000Z
tests/status_test.py
araines/supervisor-newrelic
8061ced419e1603367272a42b729414a7a51ac35
[ "MIT" ]
2
2018-11-27T08:31:23.000Z
2021-03-04T16:59:13.000Z
import mock import unittest from StringIO import StringIO from supervisor_newrelic.status import Status return MockResponse({}, 404)
36.052632
87
0.66618
45ddecfc6b040befb28c16618390c57c59d78c8c
11,100
py
Python
tuning.py
grdavis/college-basketball-elo
b26518d3114012bac8b1994f82e7dc93099f15bf
[ "MIT" ]
6
2022-02-07T01:07:57.000Z
2022-03-28T05:49:37.000Z
tuning.py
grdavis/college-basketball-elo
b26518d3114012bac8b1994f82e7dc93099f15bf
[ "MIT" ]
4
2022-03-01T21:55:24.000Z
2022-03-29T18:49:45.000Z
tuning.py
grdavis/college-basketball-elo
b26518d3114012bac8b1994f82e7dc93099f15bf
[ "MIT" ]
2
2022-02-25T01:32:53.000Z
2022-03-03T03:45:36.000Z
import numpy as np from tqdm import tqdm import elo import utils import random import plotly.graph_objects as go from sklearn.metrics import r2_score from scipy.stats import linregress import pandas as pd from predictions import predict_tournament, ROUNDS ERRORS_START = 4 #after 4 seasons (starts counting errors 20141...
49.333333
202
0.697117
45dfa94f9d32503706cf8aacffa0d5d22fe3e19c
3,075
py
Python
aula4/classifica_junto.py
davidpvilaca/TEP
decbf61a96863d76e1b84dc097aa37b12038aa75
[ "MIT" ]
2
2017-08-28T18:24:47.000Z
2019-08-29T03:34:15.000Z
aula4/classifica_junto.py
davidpvilaca/TEP
decbf61a96863d76e1b84dc097aa37b12038aa75
[ "MIT" ]
null
null
null
aula4/classifica_junto.py
davidpvilaca/TEP
decbf61a96863d76e1b84dc097aa37b12038aa75
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Aug 19 13:21:45 2017 @author: davidpvilaca """ import matplotlib.pyplot as plt import numpy as np import cv2 if __name__ == '__main__': main()
27.954545
113
0.506341
45dfb1283861c5bba5c59b6a90a79e3eb6fa9f46
8,005
py
Python
package_management/package_manager.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
null
null
null
package_management/package_manager.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
null
null
null
package_management/package_manager.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
null
null
null
import copy import json import logging import os import shutil from distutils.version import LooseVersion from threading import Lock from typing import List, Dict, Optional from zipfile import ZipFile import aiofiles from tornado.ioloop import IOLoop from package_management.constants import zpspec_filename, package_n...
41.262887
132
0.713679
45e14d9917c6a309e9123db8edeb4be716e89467
631
py
Python
wordsToQubits/encoding/word_to_binar.py
VoicuTomut/Qountry
841467eca5704fd24c49000668f739cae8155b59
[ "MIT" ]
null
null
null
wordsToQubits/encoding/word_to_binar.py
VoicuTomut/Qountry
841467eca5704fd24c49000668f739cae8155b59
[ "MIT" ]
null
null
null
wordsToQubits/encoding/word_to_binar.py
VoicuTomut/Qountry
841467eca5704fd24c49000668f739cae8155b59
[ "MIT" ]
null
null
null
""" encode the word on a pure state. """ import pennylane as qml def put_word_on_qubits(word_rep, qubits, base="X"): """ :param word_rep: "00..10..0" :param qubits: :param base: """ word_rep = str(word_rep) if base == "X": for i in range(len(word_rep)): if word_rep[i]...
22.535714
51
0.496038
45e194e23cc8440b698a5029bc927b2512c3eb9c
17,667
py
Python
cell2location/models/base/_pyro_mixin.py
jjhong922/cell2location
2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9
[ "Apache-2.0" ]
null
null
null
cell2location/models/base/_pyro_mixin.py
jjhong922/cell2location
2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9
[ "Apache-2.0" ]
null
null
null
cell2location/models/base/_pyro_mixin.py
jjhong922/cell2location
2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9
[ "Apache-2.0" ]
null
null
null
from datetime import date from functools import partial import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd import pyro import torch from pyro import poutine from pyro.infer.autoguide import AutoNormal, init_to_mean from scipy.sparse import issparse from scvi import _CONSTANTS from...
35.263473
119
0.582159
45e2441449b8a57f4c898888fafc70417c101445
570
py
Python
mayan/apps/sources/literals.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/sources/literals.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/sources/literals.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
114
2015-01-08T20:21:05.000Z
2018-12-10T19:07:53.000Z
import os from django.conf import settings DEFAULT_BINARY_SCANIMAGE_PATH = '/usr/bin/scanimage' DEFAULT_SOURCES_BACKEND_ARGUMENTS = { 'mayan.apps.sources.source_backends.SourceBackendSANEScanner': { 'scanimage_path': DEFAULT_BINARY_SCANIMAGE_PATH } } DEFAULT_SOURCES_CACHE_STORAGE_BACKEND = 'django.cor...
30
85
0.815789
45e3e43df6217404133f05bdb8876753107b0f86
3,050
py
Python
test/test14_advanced_search.py
kyu-su/pixplusPlus
2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8
[ "MIT" ]
null
null
null
test/test14_advanced_search.py
kyu-su/pixplusPlus
2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8
[ "MIT" ]
null
null
null
test/test14_advanced_search.py
kyu-su/pixplusPlus
2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8
[ "MIT" ]
null
null
null
import warnings import time import random import util from test_base import TestCase
32.795699
99
0.639672
45e52e60e920306770881bdab0e81dba6a9ab8d4
511
py
Python
cogs/help/onHelpMessage.py
Narzaru/AiShindou
01daa4e51c5d19b0fa39ab7dff24adad6d764976
[ "BSD-2-Clause" ]
null
null
null
cogs/help/onHelpMessage.py
Narzaru/AiShindou
01daa4e51c5d19b0fa39ab7dff24adad6d764976
[ "BSD-2-Clause" ]
null
null
null
cogs/help/onHelpMessage.py
Narzaru/AiShindou
01daa4e51c5d19b0fa39ab7dff24adad6d764976
[ "BSD-2-Clause" ]
null
null
null
import discord from discord.ext import commands from service.utils import TemplateColours
36.5
114
0.716243
45e5abbbfec147ed3e87c908305dea56797ae5b0
461
py
Python
setup.py
AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli
f924757bd51e6ebb3e7565166c617921cb73c9f6
[ "MIT" ]
null
null
null
setup.py
AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli
f924757bd51e6ebb3e7565166c617921cb73c9f6
[ "MIT" ]
null
null
null
setup.py
AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli
f924757bd51e6ebb3e7565166c617921cb73c9f6
[ "MIT" ]
null
null
null
from setuptools import setup setup( name = "awslambdacicd-cli", version = "0.1.2", author = "Janos Potecki", license = "MIT", packages = [ "awslambdacontinuousdelivery.cli", "awslambdacontinuousdelivery.cli.templates.python" ], entry_points = { ...
27.117647
78
0.548807
afd77d47937da5ad76e9e4fe3eba28dc639a3d40
3,587
py
Python
tools/WBDSP/UI_InputSignal.py
ptracton/wb_dsp
73586b10141952e26bbbfb2213b2ccaa1ddbcd39
[ "MIT" ]
null
null
null
tools/WBDSP/UI_InputSignal.py
ptracton/wb_dsp
73586b10141952e26bbbfb2213b2ccaa1ddbcd39
[ "MIT" ]
null
null
null
tools/WBDSP/UI_InputSignal.py
ptracton/wb_dsp
73586b10141952e26bbbfb2213b2ccaa1ddbcd39
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from PyQt4 import QtGui import Signal
39.417582
70
0.681628
afd7c2fda2691bfb467438d74810d6aea8783977
1,790
py
Python
python/tests/test_stacks.py
daveeS987/data-structures-and-algorithms
e2fc060a558bdf8696331ddeaf317259a56e36a3
[ "MIT" ]
null
null
null
python/tests/test_stacks.py
daveeS987/data-structures-and-algorithms
e2fc060a558bdf8696331ddeaf317259a56e36a3
[ "MIT" ]
null
null
null
python/tests/test_stacks.py
daveeS987/data-structures-and-algorithms
e2fc060a558bdf8696331ddeaf317259a56e36a3
[ "MIT" ]
1
2021-04-06T02:03:31.000Z
2021-04-06T02:03:31.000Z
import pytest from stacks.stacks import Stack ###################### # Fixtures ######################
22.375
72
0.694413
afd810b8d49ea85961df9d02610ae8c6179f739e
1,941
py
Python
api_v1/api_generate_token.py
China-jp/leancloud-medical
18b3cdf6474cf8c667c546a898285318c92d2df9
[ "MIT" ]
null
null
null
api_v1/api_generate_token.py
China-jp/leancloud-medical
18b3cdf6474cf8c667c546a898285318c92d2df9
[ "MIT" ]
null
null
null
api_v1/api_generate_token.py
China-jp/leancloud-medical
18b3cdf6474cf8c667c546a898285318c92d2df9
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from flask.ext.restful import abort from leancloud.errors import LeanCloudError from leancloud.query import Query from leancloud.user import User from handlers import request_validator from models.auth_token import AuthToken import datetime import uuid __author__ = 'Panmax' from flask import re...
35.944444
125
0.563112
afd967c3188fbb324693e3925d0624ce1f560347
1,044
py
Python
ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py
crankycoder/ichnaea
fb54000e92c605843b7a41521e36fd648c11ae94
[ "Apache-2.0" ]
1
2018-01-18T16:02:43.000Z
2018-01-18T16:02:43.000Z
ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py
crankycoder/ichnaea
fb54000e92c605843b7a41521e36fd648c11ae94
[ "Apache-2.0" ]
null
null
null
ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py
crankycoder/ichnaea
fb54000e92c605843b7a41521e36fd648c11ae94
[ "Apache-2.0" ]
1
2018-01-19T17:56:48.000Z
2018-01-19T17:56:48.000Z
"""Extend api keys with sample_store columns. Revision ID: cad2875fd8cb Revises: 385f842b2526 Create Date: 2017-02-22 11:52:47.837989 """ import logging from alembic import op import sqlalchemy as sa log = logging.getLogger('alembic.migration') revision = 'cad2875fd8cb' down_revision = '385f842b2526'
24.27907
63
0.672414
afdbf4b87bacf33c9e03d4659cab0141ad61a3a5
1,870
py
Python
sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.4
82
0.642781
afdccd4d644296589a91c7378dac649e2358df5a
11,059
py
Python
backUp/jd_jxz.py
ZelZhu/faker3
4d1f2aff532211da9f356119c9f8273c3d0796dd
[ "MIT" ]
68
2021-11-19T09:28:04.000Z
2022-03-25T07:06:01.000Z
backUp/jd_jxz.py
ZelZhu/faker3
4d1f2aff532211da9f356119c9f8273c3d0796dd
[ "MIT" ]
2
2022-03-09T12:26:22.000Z
2022-03-10T03:00:49.000Z
backUp/jd_jxz.py
ZelZhu/faker3
4d1f2aff532211da9f356119c9f8273c3d0796dd
[ "MIT" ]
83
2021-11-19T08:27:05.000Z
2022-03-23T07:32:01.000Z
#!/usr/bin/python3 # -*- coding: utf8 -*- """ cron: 30 9 * * * new Env(''); ->(-> 500 """ # TureFalse isNotice = True # UA , UA UserAgent = '' import asyncio import json import random import os, re, sys try: import requests except Exception as e: print(e, "\nrequests python3 -m pip install requests") ex...
31.962428
353
0.559996
afdcedd441d4f48bbd1a4d60e657e73de3e6409b
1,726
py
Python
SRTM/convert_hgt.py
iDigBio/guoda-datasets
abcba7b03b27e641cd96825dde64f2180a65d978
[ "MIT" ]
6
2016-06-24T09:47:22.000Z
2018-04-10T20:04:58.000Z
SRTM/convert_hgt.py
iDigBio/guoda-datasets
abcba7b03b27e641cd96825dde64f2180a65d978
[ "MIT" ]
14
2016-06-17T20:29:21.000Z
2019-06-13T13:17:21.000Z
SRTM/convert_hgt.py
iDigBio/guoda-datasets
abcba7b03b27e641cd96825dde64f2180a65d978
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import, print_function import os import csv import re import sys import numpy as np import multiprocessing re_split = re.compile("([NS])(\d+)([EW])(\d+)") SAMPLES = 1201 if __name__ == '__main__': main()
25.382353
98
0.479722
afe3dfd5642f95aed4d378dd2cc6de57d8567659
5,361
py
Python
rtsc_correlation.py
Bushell-lab/StructureFold2
bdeb7643e15aec92c5c56f6285bf7ed7f2dabe2c
[ "MIT" ]
13
2017-10-09T21:55:53.000Z
2021-12-13T03:07:38.000Z
rtsc_correlation.py
Bushell-lab/StructureFold2
bdeb7643e15aec92c5c56f6285bf7ed7f2dabe2c
[ "MIT" ]
4
2019-05-21T03:04:42.000Z
2020-11-07T05:19:52.000Z
rtsc_correlation.py
Bushell-lab/StructureFold2
bdeb7643e15aec92c5c56f6285bf7ed7f2dabe2c
[ "MIT" ]
9
2019-07-11T19:42:56.000Z
2020-01-30T17:01:39.000Z
#!/usr/bin/env python ''' Reformats <.rtsc> files such that correlation may be easily caluclated, either genome-wide or on a per transcript basis. Output is a <.csv>. You may filter output by using a coverage overlap. where you only want to get the correlation between transcripts mutually above a certain threshold. Yo...
40.613636
149
0.656594
afe45f4906350be6c265277d8a549116790aeb73
895
py
Python
iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
2
2020-09-19T22:28:15.000Z
2020-10-03T01:44:53.000Z
iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
null
null
null
iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
1
2020-10-03T01:43:30.000Z
2020-10-03T01:43:30.000Z
root = TreeNode(1) root.right = TreeNode(3) root.right.left = TreeNode(2) s = Solution() print(s.getMinimumDifference(root))
24.189189
58
0.532961
afe5ca73833ae0ee033f6a28eef4827d929c8ec5
3,744
py
Python
test_random_bscs.py
lordofhyphens/cpp-pysim
ac7532ab781cffe447e7e50bd2cd3d80c619eb0e
[ "MIT" ]
null
null
null
test_random_bscs.py
lordofhyphens/cpp-pysim
ac7532ab781cffe447e7e50bd2cd3d80c619eb0e
[ "MIT" ]
null
null
null
test_random_bscs.py
lordofhyphens/cpp-pysim
ac7532ab781cffe447e7e50bd2cd3d80c619eb0e
[ "MIT" ]
null
null
null
from trojan import Trojan, parasite from cktnet import read_bench_file, write_bench_file, get_partitions from random_bsc_partition import repartition_ckt import copy import argparse import random import os.path as path try: import cPickle as pickle except ImportError: import pickle parser = argparse.ArgumentParse...
52
138
0.673611
afe5cfafb8008bc831b95a3a68e90c4bb129626a
2,964
py
Python
barbante/utils/tests/test_text.py
hypermindr/barbante
40056e9e4f4564461294b3a1d9afc855062350ac
[ "MIT" ]
10
2015-06-01T21:48:16.000Z
2021-08-20T20:18:48.000Z
barbante/utils/tests/test_text.py
hypermindr/barbante
40056e9e4f4564461294b3a1d9afc855062350ac
[ "MIT" ]
null
null
null
barbante/utils/tests/test_text.py
hypermindr/barbante
40056e9e4f4564461294b3a1d9afc855062350ac
[ "MIT" ]
2
2015-06-03T21:54:32.000Z
2015-11-24T23:13:05.000Z
""" Test module for barbante.text. """ import nose.tools import barbante.utils.text as text def test_calculate_tf_en(): """ Tests calculate_tf for English contents. """ language = "english" contents = "Cooks who don't love cooking don't cook well." results = text.calculate_tf(language, contents)...
36.146341
89
0.610999
afe5dba68241cb5dd2453af805ca160811228622
3,365
py
Python
YouTubeDownloader/views.py
gabzin/django-ytdownloader
e59e728aeac459b73fd4fb9ca663560855af19fd
[ "MIT" ]
27
2021-11-18T22:01:26.000Z
2022-01-08T14:10:32.000Z
YouTubeDownloader/views.py
gabzin/django-ytdownloader
e59e728aeac459b73fd4fb9ca663560855af19fd
[ "MIT" ]
1
2021-11-21T13:28:00.000Z
2021-11-21T15:05:42.000Z
YouTubeDownloader/views.py
gabzin/django-ytdownloader
e59e728aeac459b73fd4fb9ca663560855af19fd
[ "MIT" ]
5
2021-11-20T07:16:54.000Z
2021-12-16T10:44:38.000Z
#Imports from django.http.response import HttpResponse from django.shortcuts import render from django.contrib import messages from .forms import DownloadForm from pytube import YouTube from math import pow, floor, log from datetime import timedelta from requests import get # Your YouTube V3 Api Key KEY = "" # Conver...
37.388889
142
0.581278
afe75e37643caa6a9af81c6d249b336b0e5aca17
45,429
py
Python
fhirzeug/fhirspec.py
skalarsystems/fhir-zeug
19973438823c41247e3efb5b1d35e8942ae01fdb
[ "Apache-2.0" ]
10
2020-04-23T18:13:13.000Z
2020-11-25T07:45:26.000Z
fhirzeug/fhirspec.py
skalarsystems/fhir-zeug
19973438823c41247e3efb5b1d35e8942ae01fdb
[ "Apache-2.0" ]
71
2020-05-20T09:11:22.000Z
2020-10-26T14:01:03.000Z
fhirzeug/fhirspec.py
skalarsystems/fhir-zeug
19973438823c41247e3efb5b1d35e8942ae01fdb
[ "Apache-2.0" ]
1
2020-06-03T11:55:47.000Z
2020-06-03T11:55:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os import re import json import datetime from pathlib import Path import stringcase # type: ignore from typing import Any, Dict, List, Optional, Union, TYPE_CHECKING from .logger import logger from . import fhirclass if TYPE_CHECKING: from .generato...
36.964199
173
0.585133
afeb8ca338393a94ffd02cdee2ec1716df4a8337
731
py
Python
hutils/tests.py
dreamplatform/haltu-utils
6308d032791b09e5a46bdb98cfc4d99c96da96d7
[ "BSD-3-Clause" ]
null
null
null
hutils/tests.py
dreamplatform/haltu-utils
6308d032791b09e5a46bdb98cfc4d99c96da96d7
[ "BSD-3-Clause" ]
null
null
null
hutils/tests.py
dreamplatform/haltu-utils
6308d032791b09e5a46bdb98cfc4d99c96da96d7
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.db import models from hutils.managers import QuerySetManager
24.366667
74
0.740082
afecd187c7058a489009b41d8ff819203ecdac2f
1,868
py
Python
src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
118
2019-08-31T04:33:18.000Z
2022-03-28T21:12:14.000Z
src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
15
2019-12-05T01:29:46.000Z
2022-02-18T17:13:46.000Z
src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
28
2019-09-07T04:11:05.000Z
2022-02-07T18:31:40.000Z
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from typing import Tuple, Any, Callable from protocolbuffer...
36.627451
125
0.697002
afee559bb9619fc76eddbb0de5034b9cc836e90b
1,923
py
Python
build_an_ai_startup_demo/app/views/main.py
bbueno5000/BuildAnAIStartUpDemo
f70371802a2546530c34b7f04e2b644cd1faec8a
[ "MIT" ]
null
null
null
build_an_ai_startup_demo/app/views/main.py
bbueno5000/BuildAnAIStartUpDemo
f70371802a2546530c34b7f04e2b644cd1faec8a
[ "MIT" ]
null
null
null
build_an_ai_startup_demo/app/views/main.py
bbueno5000/BuildAnAIStartUpDemo
f70371802a2546530c34b7f04e2b644cd1faec8a
[ "MIT" ]
null
null
null
""" DOCSTRING """ import app import flask import keras import numpy import os import random
27.869565
86
0.658346
aff0af697d2bc3a3686bb3de8766a23a8b175f26
437
py
Python
section4/summarychallenge.py
jgyy/python-masterclass
20b3dd49b2b2d3a9dccba0b0c52a261828c6cfd5
[ "Unlicense" ]
null
null
null
section4/summarychallenge.py
jgyy/python-masterclass
20b3dd49b2b2d3a9dccba0b0c52a261828c6cfd5
[ "Unlicense" ]
null
null
null
section4/summarychallenge.py
jgyy/python-masterclass
20b3dd49b2b2d3a9dccba0b0c52a261828c6cfd5
[ "Unlicense" ]
null
null
null
""" Challenge to choose options from lists """ CHOICE = "-" while CHOICE != "0": if CHOICE in "12345": print("You chose {}".format(CHOICE)) else: print("Please choose your option from the list below:") print("1:\tLearn Python") print("2:\tLearn Java") print("3:\tGo Swimmi...
24.277778
63
0.553776
aff5059c5098386517f47226d8e0e39141c4a8f9
3,001
py
Python
MGCosmoPop/posteriors/prior.py
nicoborghi/MGCosmoPop
ebf07744caed1ac6694e7c750c1147ac30442fe5
[ "BSD-3-Clause" ]
4
2022-01-31T02:00:30.000Z
2022-03-22T08:00:00.000Z
MGCosmoPop/posteriors/prior.py
nicoborghi/MGCosmoPop
ebf07744caed1ac6694e7c750c1147ac30442fe5
[ "BSD-3-Clause" ]
null
null
null
MGCosmoPop/posteriors/prior.py
nicoborghi/MGCosmoPop
ebf07744caed1ac6694e7c750c1147ac30442fe5
[ "BSD-3-Clause" ]
5
2021-12-13T03:33:48.000Z
2022-03-22T08:00:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 4 11:31:43 2021 @author: Michi """ import numpy as np
30.313131
94
0.539154
aff87a478cf339ba0cf9786a79d5da65b9d037b5
682
py
Python
pid_discreto.py
lodaniel/teoria_de_controle
97d9350f1c5534e11bfc891f32ec604d6a7ace33
[ "Apache-2.0" ]
null
null
null
pid_discreto.py
lodaniel/teoria_de_controle
97d9350f1c5534e11bfc891f32ec604d6a7ace33
[ "Apache-2.0" ]
null
null
null
pid_discreto.py
lodaniel/teoria_de_controle
97d9350f1c5534e11bfc891f32ec604d6a7ace33
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt tfinal = 10 T = 0.1 N = int(tfinal/T) t = np.linspace(0,tfinal,N) t[1] = T t[2] = 2*T y = np.linspace(0,tfinal,N) y[1] = 0 y[2] = 0 u = np.linspace(0,tfinal,N) u[1] = 0 u[2] = 0 r = np.linspace(0,tfinal,N) r[1] = 1 r[2] = 1 e = np.linspace(0,tfinal,N) e[1] = r[1] - y[1...
18.944444
51
0.526393
aff8c4003c708639ad7c4f72b3b09d1135fb4817
4,058
py
Python
mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
from typing import Iterable, Optional, Tuple, Union import torch from pytorch3d.structures import Meshes from mmhuman3d.core.cameras import MMCamerasBase from .base_renderer import BaseRenderer from .builder import RENDERER, build_shader from .utils import normalize
36.558559
79
0.575899
aff8e664de9e8a592be6d93982dd50a72c78e151
7,131
py
Python
bot.py
0xsmoos/PMD
049ef60f9a4c44b635fc4dc88c5096685d78b5b7
[ "MIT" ]
3
2021-04-22T17:00:05.000Z
2021-08-19T05:33:37.000Z
bot.py
0xsmoos/PMD
049ef60f9a4c44b635fc4dc88c5096685d78b5b7
[ "MIT" ]
4
2021-04-24T10:46:03.000Z
2022-01-06T14:36:00.000Z
bot.py
0xsmoos/PMD
049ef60f9a4c44b635fc4dc88c5096685d78b5b7
[ "MIT" ]
1
2021-05-06T17:12:52.000Z
2021-05-06T17:12:52.000Z
# -*- coding: utf-8 -*- # filename : bot.py # description : Discord bot interface for interacting with the server # author : LikeToAccess # email : liketoaccess@protonmail.com # date : 08-01-2021 # version : v2.0 # usage : python main.py # notes ...
29.345679
98
0.680409
affae23e9d7b59854ff8ab5e58706d9252734abf
12,277
py
Python
rq1and3_localness/happiness/compute_happiness.py
joh12041/chi-2016-localness
a7048015aac417217d23fccb5f49971922af6322
[ "MIT" ]
4
2016-11-06T21:55:51.000Z
2019-07-23T19:39:00.000Z
rq1and3_localness/happiness/compute_happiness.py
joh12041/chi-2016-localness
a7048015aac417217d23fccb5f49971922af6322
[ "MIT" ]
null
null
null
rq1and3_localness/happiness/compute_happiness.py
joh12041/chi-2016-localness
a7048015aac417217d23fccb5f49971922af6322
[ "MIT" ]
null
null
null
"""RQ3: Happiness algorithm as impacted by localness""" import csv import os import argparse import sys from collections import OrderedDict import numpy from scipy.stats import spearmanr from scipy.stats import wilcoxon sys.path.append("./utils") import bots LOCALNESS_METRICS = ['nday','plurality'] HAPPINESS_EVALU...
49.108
194
0.564144
affb5675ca38a4b1d3c3c74ee6838fd7720f8076
4,239
py
Python
rubix-stress/workload_runner.py
raunaqmorarka/presto-rubix
3149b6385f6685f5fe934551126b6593f59da9c8
[ "Apache-2.0" ]
162
2016-07-04T05:03:52.000Z
2022-03-29T03:31:59.000Z
rubix-stress/workload_runner.py
raunaqmorarka/presto-rubix
3149b6385f6685f5fe934551126b6593f59da9c8
[ "Apache-2.0" ]
381
2016-07-25T04:09:36.000Z
2022-02-11T11:39:27.000Z
rubix-stress/workload_runner.py
raunaqmorarka/presto-rubix
3149b6385f6685f5fe934551126b6593f59da9c8
[ "Apache-2.0" ]
64
2016-07-13T05:47:14.000Z
2022-03-10T09:03:35.000Z
import logging import random import time import threading from threading import Event from patched_commands import PrestoCommand
39.616822
137
0.624912
afff826c89cf84dbe2b809d9f7fa9ddb7ae851a3
86
py
Python
chainerltr/evaluation/__init__.py
rjagerman/chainerltr
1fdb6a0a304a465d27149011951a01a5e3de4bbc
[ "MIT" ]
1
2019-04-10T03:18:23.000Z
2019-04-10T03:18:23.000Z
chainerltr/evaluation/__init__.py
rjagerman/chainerltr
1fdb6a0a304a465d27149011951a01a5e3de4bbc
[ "MIT" ]
null
null
null
chainerltr/evaluation/__init__.py
rjagerman/chainerltr
1fdb6a0a304a465d27149011951a01a5e3de4bbc
[ "MIT" ]
null
null
null
from chainerltr.evaluation.ndcg import ndcg from chainerltr.evaluation.dcg import dcg
28.666667
43
0.860465
afffc8cbd42fd63be0b6fa9742ef2ac0df2a388d
2,509
py
Python
avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
1
2021-09-15T13:57:27.000Z
2021-09-15T13:57:27.000Z
avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
from typing import List, Tuple, Dict from avalanche.benchmarks.datasets.imagenet_data import ( IMAGENET_TORCHVISION_WNID_TO_IDX, IMAGENET_TORCHVISION_CLASSES, ) MINI_IMAGENET_WNIDS: List[str] = [ "n02110341", "n01930112", "n04509417", "n04067472", "n04515003", "n02120079", "n039246...
19.3
78
0.606218
b3016f8c0af4fa861d8eee4ecfb546c16c631c0a
465
py
Python
scripts/09.py
hstern2/pet-fish-eric
38cf51613d8a4256bc0c3248fb5c114b83307972
[ "MIT" ]
null
null
null
scripts/09.py
hstern2/pet-fish-eric
38cf51613d8a4256bc0c3248fb5c114b83307972
[ "MIT" ]
null
null
null
scripts/09.py
hstern2/pet-fish-eric
38cf51613d8a4256bc0c3248fb5c114b83307972
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ### while loops #a = 10 #while a <= 100000: # a *= 10 # print(a) #print('this is no longer in the loop because not indented') #a = 10 #while a > 0: # print(a) # if a == 5: # break # a -= 1 #a = 10 #while a > 0: # a -= 1 # if a % 2 == 0: # continue # skip if ...
14.090909
60
0.464516
b303231d165ddfd087f7fd53fc036372e39d8b6b
1,991
py
Python
core/tests/test_trezor.crypto.rfc6979.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
null
null
null
core/tests/test_trezor.crypto.rfc6979.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
1
2019-02-08T00:22:42.000Z
2019-02-13T09:41:54.000Z
core/tests/test_trezor.crypto.rfc6979.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
2
2019-02-07T23:57:09.000Z
2020-10-21T07:07:27.000Z
from common import * from trezor.crypto import rfc6979 from trezor.crypto.hashlib import sha256 if __name__ == '__main__': unittest.main()
48.560976
223
0.719237
b30543d6bc96edaac43450d48578207ded1283f4
2,585
py
Python
src/commands/debug.py
mdabessa/discordbot
37f605c5218f55365d4a82914ba604f8c62266e3
[ "MIT" ]
5
2021-03-11T01:47:12.000Z
2022-01-18T05:33:18.000Z
src/commands/debug.py
mdabessa/discordbot
37f605c5218f55365d4a82914ba604f8c62266e3
[ "MIT" ]
null
null
null
src/commands/debug.py
mdabessa/discordbot
37f605c5218f55365d4a82914ba604f8c62266e3
[ "MIT" ]
null
null
null
import modules.database as db import modules.entity as entity category = 'Depurao' entity.Command.newcategory(category, 'Depurao',is_visible=False) entity.Command(name='exec', func=exe , category=category, desc=f'Executar um comando atravs do bot.', args=[['comando', '*'], ['parametros do comando', '']], perm=2) en...
41.031746
191
0.677369
b30ec77ef09bdffed154fe1328bf919b56c53f19
2,877
py
Python
tests/test_amqp_transport.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
tests/test_amqp_transport.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
tests/test_amqp_transport.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
import os import signal import pytest from typing import Any from tomodachi.transport.amqp import AmqpTransport, AmqpException from run_test_service_helper import start_service
42.308824
138
0.75113
b30f1e158c5e65ac948bbdec93ad290aa5c96a51
3,451
py
Python
enteletaor_lib/modules/redis/__init__.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
159
2016-03-05T09:57:19.000Z
2022-02-20T02:45:03.000Z
enteletaor_lib/modules/redis/__init__.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
8
2016-03-06T13:02:45.000Z
2020-06-12T08:19:16.000Z
enteletaor_lib/modules/redis/__init__.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
30
2016-03-06T16:52:42.000Z
2021-03-31T09:46:39.000Z
# -*- coding: utf-8 -*- # # Enteletaor - https://github.com/cr0hn/enteletaor # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of con...
38.344444
118
0.753115
b310e606ad80d3783d14d15dfa55c2d7051109dd
628
py
Python
libs/asyncio/windows_events.py
klmp200/sublime_db
d7fdb3e27d4520c9d65473c061b6ac3be40f9cb2
[ "MIT" ]
1
2019-01-21T17:37:32.000Z
2019-01-21T17:37:32.000Z
libs/asyncio/windows_events.py
klmp200/sublime_db
d7fdb3e27d4520c9d65473c061b6ac3be40f9cb2
[ "MIT" ]
null
null
null
libs/asyncio/windows_events.py
klmp200/sublime_db
d7fdb3e27d4520c9d65473c061b6ac3be40f9cb2
[ "MIT" ]
null
null
null
"""Selector and proactor event loops for Windows.""" from . import events from . import selector_events from . import windows_utils __all__ = ['SelectorEventLoop', 'DefaultEventLoopPolicy', ] SelectorEventLoop = _WindowsSelectorEventLoop DefaultEventLoopPolicy = _WindowsDefaultEventLoopPoli...
24.153846
72
0.773885
b31211dcdebcd9d087794655b7c39c4690abb81c
1,110
py
Python
handler.py
altbdoor/legend-of-8ball-bot
d6be034bc6e440c2b99cfbf2c7f608f15af3f537
[ "WTFPL" ]
null
null
null
handler.py
altbdoor/legend-of-8ball-bot
d6be034bc6e440c2b99cfbf2c7f608f15af3f537
[ "WTFPL" ]
null
null
null
handler.py
altbdoor/legend-of-8ball-bot
d6be034bc6e440c2b99cfbf2c7f608f15af3f537
[ "WTFPL" ]
null
null
null
import random import time
27.073171
81
0.502703
b3129e2827a5d1653cdcb5e64182818266d524f0
518
py
Python
main.py
gruporofex/alexa_rofex
338eb1e08da37a45f44eaab70a633e255d4b2be7
[ "Apache-2.0" ]
null
null
null
main.py
gruporofex/alexa_rofex
338eb1e08da37a45f44eaab70a633e255d4b2be7
[ "Apache-2.0" ]
null
null
null
main.py
gruporofex/alexa_rofex
338eb1e08da37a45f44eaab70a633e255d4b2be7
[ "Apache-2.0" ]
1
2019-06-02T14:17:14.000Z
2019-06-02T14:17:14.000Z
import logging from configuration.config import LOGGING_LEVEL from alexa_handlers.AlexaForRFXHandler import AlexaForRFXHandler """ Main entry point for the Lambda function. """ logging.basicConfig(format='%(asctime)s %(message)s') logging.getLogger().setLevel(LOGGING_LEVEL)
21.583333
78
0.787645
b3132fe7d6b452962cc26ebd5ca01167a2bec067
265
py
Python
nfsmain/admin.py
Kirkkonen/NetForSpeech
d4e7aee3003c88cb7afa21802ca724f55dc10604
[ "Apache-2.0" ]
null
null
null
nfsmain/admin.py
Kirkkonen/NetForSpeech
d4e7aee3003c88cb7afa21802ca724f55dc10604
[ "Apache-2.0" ]
18
2015-02-21T14:38:41.000Z
2015-04-27T08:23:21.000Z
nfsmain/admin.py
kromkrom/NetForSpeech
d4e7aee3003c88cb7afa21802ca724f55dc10604
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin import nfsmain.models # Register your models here. admin.site.register(nfsmain.models.Organisation) admin.site.register(nfsmain.models.Speech) admin.site.register(nfsmain.models.Interview) admin.site.register(nfsmain.models.Event)
29.444444
48
0.833962
b314cd99dbfe61e94cec61ba01708bcc90cd79e7
236
py
Python
course/source/exercises/E001/test.py
sebastian-mutz/integrate
ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8
[ "MIT" ]
2
2021-05-17T14:23:50.000Z
2021-08-24T13:07:42.000Z
course/source/exercises/E001/test.py
sebastian-mutz/integrate
ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8
[ "MIT" ]
null
null
null
course/source/exercises/E001/test.py
sebastian-mutz/integrate
ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8
[ "MIT" ]
1
2021-08-24T13:04:01.000Z
2021-08-24T13:04:01.000Z
# wow. such script. many calculation. wow. # let's do some operations and save the results in variables a=20 + 22 b=2077 - 93 c=578 * 4 d=1332/2 e=16**2 print(a, b, c, d, e) # tell the computer to show us the values of each variable
21.454545
80
0.686441
b314d4941924cad54312d588bb8f7d87deb0ff9c
3,384
py
Python
app/ui/ui_modify_env.py
ctpbee/bee-box
6aa7339cdf04c54cca6bd0ae9908883c39402526
[ "MIT" ]
2
2020-08-17T01:59:51.000Z
2022-02-11T05:57:22.000Z
app/ui/ui_modify_env.py
ctpbee/bee-box
6aa7339cdf04c54cca6bd0ae9908883c39402526
[ "MIT" ]
null
null
null
app/ui/ui_modify_env.py
ctpbee/bee-box
6aa7339cdf04c54cca6bd0ae9908883c39402526
[ "MIT" ]
2
2020-03-18T02:28:38.000Z
2022-02-11T05:57:23.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'modify_env.ui', # licensing of 'modify_env.ui' applies. # # Created: Wed Dec 25 11:08:05 2019 # by: pyside2-uic running on PySide2 5.13.2 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtGui, QtWi...
49.043478
115
0.714243
b3153fee022b4111953bc5fe49844890599569bd
593
py
Python
webarm/facilities/models.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/facilities/models.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/facilities/models.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
from django.db import models # TODO: from django.contrib.gis.db.models import RasterField from companies.models import Company
29.65
91
0.715008
b315b6f3d8230ef919a037f3cf78113e344d7733
421
py
Python
Ex_74.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_74.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_74.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
#Crie um programa que vai gerar cinco nmeros aleatrios e colocar em um tupla #Depois, mostra a listagem de nmeros gerados e tambem indique o menor e o maior valor que esto na tupla from random import randint n = (randint(1,10),randint(1,10),randint(1,10),randint(1,10),randint(1,10)) print(f'Sorteei os valores {n}'...
35.083333
106
0.733967
b3171b0e547151b36dca4c7d117c611b0459a447
5,070
py
Python
scripts/test_script.py
OmoooJ/gluon-facex
c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54
[ "MIT" ]
257
2018-12-28T12:02:28.000Z
2021-11-25T08:43:52.000Z
scripts/test_script.py
OmoooJ/gluon-facex
c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54
[ "MIT" ]
37
2019-01-10T02:31:12.000Z
2020-11-09T03:09:40.000Z
scripts/test_script.py
OmoooJ/gluon-facex
c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54
[ "MIT" ]
57
2018-12-29T01:18:31.000Z
2021-09-14T14:41:35.000Z
# -*- coding: utf-8 -*- # Author: pistonyang@gmail.com import argparse import os import mxnet as mx import sklearn import numpy as np from mxnet import gluon, nd from mxnet.gluon.data import DataLoader from mxnet.gluon.data.vision import transforms from gluonfr.model_zoo import get_model from gluonfr.data import get_r...
44.867257
104
0.65641
b317c5d6b720147d41037a618b469ae428deb28e
7,043
py
Python
gamepyd/readPad.py
Marceline/PyXinput
fa60e215e99b8c0fe95767c21fd9ba239a0719bd
[ "Unlicense" ]
2
2020-11-26T09:23:35.000Z
2020-11-27T13:36:46.000Z
gamepyd/readPad.py
Marceline/PyXinput
fa60e215e99b8c0fe95767c21fd9ba239a0719bd
[ "Unlicense" ]
7
2020-10-03T16:38:26.000Z
2020-10-03T17:17:00.000Z
gamepyd/readPad.py
Marceline/PyXinput
fa60e215e99b8c0fe95767c21fd9ba239a0719bd
[ "Unlicense" ]
1
2021-06-04T17:44:55.000Z
2021-06-04T17:44:55.000Z
"""Read the current state of Xbox Controllers""" from ctypes import * import pandas as pd from time import time_ns # Xinput DLL try: _xinput = windll.xinput1_4 except OSError as err: _xinput = windll.xinput1_3 def main(): """Test the functionality of the rPad object""" from time import sleep ...
31.868778
129
0.552321
b317e8c8116cb267c95a2dc4fd78e3aa0e010d1f
31,470
py
Python
lib/tool_shed/scripts/check_repositories_for_functional_tests.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/scripts/check_repositories_for_functional_tests.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/scripts/check_repositories_for_functional_tests.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:03:18.000Z
2020-07-25T21:03:18.000Z
#!/usr/bin/env python import os, sys, logging, tempfile new_path = [ os.path.join( os.getcwd(), "lib" ), os.path.join( os.getcwd(), "test" ) ] new_path.extend( sys.path[1:] ) sys.path = new_path log = logging.getLogger() log.setLevel( 10 ) log.addHandler( logging.StreamHandler( sys.stdout ) ) from galaxy import egg...
57.743119
167
0.56584
b317eed8bc3c7f37020ba36b17b2500b5686a571
4,433
py
Python
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
21
2015-03-21T14:20:29.000Z
2020-04-20T02:12:03.000Z
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
13
2016-09-01T11:58:24.000Z
2017-11-19T17:01:51.000Z
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
7
2016-08-31T16:19:42.000Z
2017-11-16T17:27:45.000Z
""" .. currentmodule:: clifford.taylor_expansions ===================================================== taylor_expansions (:mod:`clifford.taylor_expansions`) ===================================================== .. versionadded:: 1.4.0 This file implements various Taylor expansions for useful functions of multivecto...
26.866667
109
0.606361
b318c21ad0eb2b6e95186d57efe3b7d26ec2e237
175
py
Python
FlaskApp/extensions.py
re0phimes/FlaskTest
43144766cb09201b27168a3a0b369116dc1a51d3
[ "MIT" ]
1
2019-05-14T08:18:44.000Z
2019-05-14T08:18:44.000Z
FlaskApp/extensions.py
re0phimes/FlaskTest
43144766cb09201b27168a3a0b369116dc1a51d3
[ "MIT" ]
null
null
null
FlaskApp/extensions.py
re0phimes/FlaskTest
43144766cb09201b27168a3a0b369116dc1a51d3
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect # from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy # bootstrp = Bootstrap() db = SQLAlchemy()
25
50
0.811429
b318fb68451b5682ff5190f3321869e6da4e8c1a
2,521
py
Python
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
import json import scrapy import time import requests from ..items import TecentItem if __name__ == '__main__': spider = TencentSpider() print(spider.get_pagen(spider.get_timestamp(), 'python')) # print(spider.get_timestamp())
42.016667
219
0.659262