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
bb3e5f410096d8a3a8f7893008fe019a234faa83
536
py
Python
src/tests/test_schema.py
DmytroKaminskiy/hillel-rest-tutorial
b1d87a3e2bc59bf1cda8de5bc55b30667afc4a5f
[ "Apache-2.0" ]
null
null
null
src/tests/test_schema.py
DmytroKaminskiy/hillel-rest-tutorial
b1d87a3e2bc59bf1cda8de5bc55b30667afc4a5f
[ "Apache-2.0" ]
null
null
null
src/tests/test_schema.py
DmytroKaminskiy/hillel-rest-tutorial
b1d87a3e2bc59bf1cda8de5bc55b30667afc4a5f
[ "Apache-2.0" ]
null
null
null
from django.urls import reverse import pytest
22.333333
58
0.666045
bb3ef60db6f9ff267ee2587cc672fa115e129028
867
py
Python
note/views.py
DisMosGit/Dodja
0bcafede607df921b53f6ed501842d4cd03f65d6
[ "Apache-2.0" ]
null
null
null
note/views.py
DisMosGit/Dodja
0bcafede607df921b53f6ed501842d4cd03f65d6
[ "Apache-2.0" ]
null
null
null
note/views.py
DisMosGit/Dodja
0bcafede607df921b53f6ed501842d4cd03f65d6
[ "Apache-2.0" ]
null
null
null
from rest_framework import request from rest_framework.viewsets import ModelViewSet from django.db.models import Q from docker_host.permissions import IsHostOperationAllowed, HostOperationMixin from .models import Note from .serializer import NoteSerializer
32.111111
79
0.723183
bb3f58422eb03a9b411601162c584c280cece858
1,260
py
Python
build_correlation_network.py
1kc2/Minimal-Correlation-Portfolio
d661d39201a5d3da7d10a664ffd93f8a15eb72ed
[ "MIT" ]
4
2020-12-26T09:12:59.000Z
2022-02-04T06:43:33.000Z
build_correlation_network.py
1kc2/Minimal-Correlation-Portfolio
d661d39201a5d3da7d10a664ffd93f8a15eb72ed
[ "MIT" ]
null
null
null
build_correlation_network.py
1kc2/Minimal-Correlation-Portfolio
d661d39201a5d3da7d10a664ffd93f8a15eb72ed
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import preprocess as pre import detrend as dtr import networkx as nx import distance_correlation as dc if __name__ == "__main__": build_network()
27.391304
100
0.669841
bb42b2c399fb32ccdd27e8f20079c0860eabc916
1,952
py
Python
rcsworld/rcs/point.py
Indeximal/RailControlSystemV3
4be7a368660f0ddb0830a0cfeba555b0559274aa
[ "MIT" ]
null
null
null
rcsworld/rcs/point.py
Indeximal/RailControlSystemV3
4be7a368660f0ddb0830a0cfeba555b0559274aa
[ "MIT" ]
null
null
null
rcsworld/rcs/point.py
Indeximal/RailControlSystemV3
4be7a368660f0ddb0830a0cfeba555b0559274aa
[ "MIT" ]
null
null
null
from typing import Tuple import numpy as np
23.518072
62
0.573258
bb4365a01dbad1b2b19030bedd47cf890a7de254
1,014
py
Python
analysis/NumpyFunctionLoop.py
clearyb1/COVIDDataViz
e3001afafaf67d2447181268d8ca796c27a6df13
[ "MIT" ]
null
null
null
analysis/NumpyFunctionLoop.py
clearyb1/COVIDDataViz
e3001afafaf67d2447181268d8ca796c27a6df13
[ "MIT" ]
null
null
null
analysis/NumpyFunctionLoop.py
clearyb1/COVIDDataViz
e3001afafaf67d2447181268d8ca796c27a6df13
[ "MIT" ]
null
null
null
import numpy as np #create array of weekly vaccination numbers from https://opendata-geohive.hub.arcgis.com/datasets/0101ed10351e42968535bb002f94c8c6_0.csv?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D a= np.array([3946, 43856, 52659, 49703, 51381, 56267, 32176, 86434, 88578, 88294, 91298, 64535, 133195, ...
12.518519
194
0.710059
bb44631e394af313f273110dc22a3affea46815e
1,136
py
Python
mExports.py
SkyLined/mProductVersionAndLicense
89bfe34add2eb3d5866f4ead43ef3b650841cd8d
[ "CC-BY-4.0" ]
3
2018-03-28T12:05:13.000Z
2021-01-30T07:26:52.000Z
mExports.py
SkyLined/mProductDetails
c5aed22b409f01ea509deb00d0a2440ae7afdacf
[ "CC-BY-4.0" ]
null
null
null
mExports.py
SkyLined/mProductDetails
c5aed22b409f01ea509deb00d0a2440ae7afdacf
[ "CC-BY-4.0" ]
null
null
null
from .cLicenseServer import cLicenseServer; from .cProductDetails import cProductDetails; from .faoGetLicensesFromFile import faoGetLicensesFromFile; from .faoGetLicensesFromRegistry import faoGetLicensesFromRegistry; from .faoGetProductDetailsForAllLoadedModules import faoGetProductDetailsForAllLoadedModules; from .fo...
45.44
99
0.876761
bb4497e1dbd4469ddda01ec170a2a76d6300d046
456
py
Python
Python Programs/perfect-number.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
2
2021-06-26T21:50:59.000Z
2021-09-18T04:55:51.000Z
Python Programs/perfect-number.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
Python Programs/perfect-number.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
Perfect Number Given a positive integer N as the input, the program must print yes if N is a perfect number. Else no must be printed. Input Format: The first line contains N. Output Format: The first line contains yes or no Boundary Conditions: 1 <= N <= 999999 Example Input/Output 1: Input: 6 Output: yes Example Input...
22.8
118
0.710526
bb4710283645bda64f43d05dc175b4aaa04fccdc
560,577
py
Python
line/f_CallService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
1
2020-08-20T08:00:23.000Z
2020-08-20T08:00:23.000Z
line/f_CallService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
null
null
null
line/f_CallService.py
winbotscript/LineService
4c79029648e858e567378485e75276f865c1f73f
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Frugal Compiler (3.4.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # from threading import Lock from frugal.middleware import Method from frugal.exceptions import TApplicationExceptionType from frugal.exceptions import TTransportExceptionType from frugal.processor impo...
35.637444
231
0.586207
bb4740d461fb0ee93b6018cfd9a391d770aa07ed
3,152
py
Python
gs_nosql.py
accidentalrebel/GameSparks-NoSQL-Python-Library
c278adf8cc3638c2c435157cc6514fdd12b22402
[ "MIT" ]
null
null
null
gs_nosql.py
accidentalrebel/GameSparks-NoSQL-Python-Library
c278adf8cc3638c2c435157cc6514fdd12b22402
[ "MIT" ]
null
null
null
gs_nosql.py
accidentalrebel/GameSparks-NoSQL-Python-Library
c278adf8cc3638c2c435157cc6514fdd12b22402
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import requests import json AUTH_URL = 'https://auth.gamesparks.net/restv2/auth' GAME_URL = 'https://config2.gamesparks.net/restv2/game/' access_token = None stage_base_url = None jwt_token = None api_key = None
31.838384
100
0.660216
bb48724011f3e8bc30eb54127e0afe722aa24a7f
2,819
py
Python
chroma_core/migrations/0025_createsnapshotjob_destroysnapshotjob.py
intel-hpdd/-intel-manager-for-lustre
f8a6f61205b42cc62f4bbcb8d81214ad4f215cd6
[ "MIT" ]
52
2018-09-13T03:26:23.000Z
2022-03-25T16:51:37.000Z
chroma_core/migrations/0025_createsnapshotjob_destroysnapshotjob.py
intel-hpdd/-intel-manager-for-lustre
f8a6f61205b42cc62f4bbcb8d81214ad4f215cd6
[ "MIT" ]
1,264
2018-06-15T19:50:57.000Z
2022-03-28T08:19:04.000Z
chroma_core/migrations/0025_createsnapshotjob_destroysnapshotjob.py
whamcloud/intel-manager-for-lustre
f8a6f61205b42cc62f4bbcb8d81214ad4f215cd6
[ "MIT" ]
27
2018-06-18T08:51:59.000Z
2022-03-16T15:35:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2020-09-10 14:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
37.586667
113
0.476765
bb49ee088fa33d9f59b710ec0865860ddf2f7c81
564
py
Python
easy/maximum number of words you can type/solurion.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
4
2021-06-03T22:19:13.000Z
2021-10-05T18:14:12.000Z
easy/maximum number of words you can type/solurion.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
null
null
null
easy/maximum number of words you can type/solurion.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
null
null
null
s = Solution() print(s.canBeTypedWords("hello world", "ad")) print(s.canBeTypedWords("leet code", "lt")) print(s.canBeTypedWords("leet code", "e")) print(s.canBeTypedWords("assembly is the best", "z"))
29.684211
68
0.585106
bb4a1d807e1313ea7404bae917bc86516df32ec4
33
py
Python
instance/config.py
adriankiprono/pitches_project
a3102a7b1d618ad35b981414049c3ead0b5ecc3c
[ "MIT" ]
null
null
null
instance/config.py
adriankiprono/pitches_project
a3102a7b1d618ad35b981414049c3ead0b5ecc3c
[ "MIT" ]
null
null
null
instance/config.py
adriankiprono/pitches_project
a3102a7b1d618ad35b981414049c3ead0b5ecc3c
[ "MIT" ]
null
null
null
SECRET_KEY='qweasdzxc1234567890'
16.5
32
0.878788
bb4b8157e261a0832a9e966f89cdc5296ba0e45e
1,368
py
Python
setup.py
thatch/bace
218850f80601e63d75a2aaa5fddd8dff2dd0df8a
[ "MIT" ]
8
2017-04-10T07:59:07.000Z
2018-02-12T15:27:31.000Z
setup.py
thatch/bace
218850f80601e63d75a2aaa5fddd8dff2dd0df8a
[ "MIT" ]
4
2019-07-02T22:54:03.000Z
2020-05-21T02:41:53.000Z
setup.py
thatch/bace
218850f80601e63d75a2aaa5fddd8dff2dd0df8a
[ "MIT" ]
5
2017-04-08T15:03:49.000Z
2018-06-22T09:02:05.000Z
#!/usr/bin/env python from setuptools import setup, find_packages #if sys.argv[-1] == 'publish': # os.system('python setup.py sdist upload') # sys.exit() with open('bace/__init__.py') as fid: for line in fid: if line.startswith('__version__'): VERSION = line.strip().split()[-1][1:-1] ...
27.918367
64
0.611842
bb4c7a68c92fe62fc48b2e44096956a575e1519a
8,856
py
Python
extract/wav2spec_utils.py
daisukelab/uclser20
da8eb234c1329915a6ee7029afd7c4aadec887fa
[ "MIT" ]
79
2020-11-17T07:29:53.000Z
2022-02-22T04:43:59.000Z
extract/wav2spec_utils.py
daisukelab/uclser20
da8eb234c1329915a6ee7029afd7c4aadec887fa
[ "MIT" ]
2
2021-02-19T06:17:19.000Z
2022-03-13T14:57:49.000Z
extract/wav2spec_utils.py
daisukelab/uclser20
da8eb234c1329915a6ee7029afd7c4aadec887fa
[ "MIT" ]
7
2020-12-28T08:06:16.000Z
2022-01-20T10:54:08.000Z
import os import numpy as np import scipy import librosa import soundfile import matplotlib.pyplot as plt import glob ######################################################################### # Some of these functions have been inspired on the DCASE UTIL framework by Toni Heittola # https://dcase-repo.github.io/dcase_...
36.295082
120
0.554539
bb4cdd39d562af80eec1fd9d4f4f182501855f5a
1,424
py
Python
modules/convertpng.py
winosli/SuperPDF
52424244e25c98cbf1b068536f4975087ca67be3
[ "Apache-2.0" ]
1
2020-04-16T07:55:22.000Z
2020-04-16T07:55:22.000Z
modules/convertpng.py
winosli/SuperPDF
52424244e25c98cbf1b068536f4975087ca67be3
[ "Apache-2.0" ]
null
null
null
modules/convertpng.py
winosli/SuperPDF
52424244e25c98cbf1b068536f4975087ca67be3
[ "Apache-2.0" ]
null
null
null
import os from pdf2image import convert_from_path, convert_from_bytes from os import path from glob import glob from wand.image import Image from modules.mytools import MyTools
34.731707
104
0.571629
bb4cfd593d68297c5e8a27f4736ac37d6705f0c8
2,503
py
Python
contrib/stack/alosStack/estimate_swath_offset.py
yuankailiu/isce2
c2567a33b3f96cc264f49972682c869fa36b9054
[ "ECL-2.0", "Apache-2.0" ]
1,133
2022-01-07T21:24:57.000Z
2022-01-07T21:33:08.000Z
contrib/stack/alosStack/estimate_swath_offset.py
yuankailiu/isce2
c2567a33b3f96cc264f49972682c869fa36b9054
[ "ECL-2.0", "Apache-2.0" ]
276
2019-02-10T07:18:28.000Z
2022-03-31T21:45:55.000Z
contrib/stack/alosStack/estimate_swath_offset.py
yuankailiu/isce2
c2567a33b3f96cc264f49972682c869fa36b9054
[ "ECL-2.0", "Apache-2.0" ]
235
2019-02-10T05:00:53.000Z
2022-03-18T07:37:24.000Z
#!/usr/bin/env python3 # # Author: Cunren Liang # Copyright 2015-present, NASA-JPL/Caltech # import os import glob import datetime import numpy as np import isce, isceobj from isceobj.Alos2Proc.runSwathOffset import swathOffset from StackPulic import loadTrack from StackPulic import acquisitionModesAlos2 def cmdL...
28.770115
112
0.623652
bb4db26251eb639d46ce3715d1158347bc8822e9
864
py
Python
examples/main.py
vnpnh/Pyvalo
ca9594ab4eb5620c0c5ef4d0fe0e139353986520
[ "MIT" ]
null
null
null
examples/main.py
vnpnh/Pyvalo
ca9594ab4eb5620c0c5ef4d0fe0e139353986520
[ "MIT" ]
null
null
null
examples/main.py
vnpnh/Pyvalo
ca9594ab4eb5620c0c5ef4d0fe0e139353986520
[ "MIT" ]
null
null
null
import valorant from valorant.utils.gameplay import check_buy_phase from valorant.utils.gameplay import enemy_score_info, own_score_info import time from valorant.utils.helper import apply_config # default config # valo = valorant.config() # custom config valo = valorant.config(tesseract=r'D:\Program Files\Tesseract...
27
81
0.753472
bb4e5523639c4a91fc5222ca7f3564f00d36171e
436
py
Python
login/migrations/0005_employee_username.py
mankek/Time-Tracker
4e8c3eaf669ca75d290eeb5a8bb7d9e23fc959bb
[ "MIT" ]
6
2019-01-30T06:05:37.000Z
2022-01-28T10:52:06.000Z
login/migrations/0005_employee_username.py
mankek/Time-Tracker
4e8c3eaf669ca75d290eeb5a8bb7d9e23fc959bb
[ "MIT" ]
1
2021-03-03T14:25:21.000Z
2022-03-23T13:36:42.000Z
login/migrations/0005_employee_username.py
mankek/Time-Tracker
4e8c3eaf669ca75d290eeb5a8bb7d9e23fc959bb
[ "MIT" ]
5
2019-01-30T06:05:37.000Z
2022-03-01T13:12:06.000Z
# Generated by Django 2.1 on 2018-10-10 22:21 from django.db import migrations, models
21.8
66
0.600917
bb4ec2e57f170b2c266284ccaebad0155125e3f7
3,342
py
Python
qtpyvcp/widgets/qtdesigner/stylesheet.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
71
2018-12-13T20:31:18.000Z
2022-03-26T08:44:22.000Z
qtpyvcp/widgets/qtdesigner/stylesheet.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
78
2019-01-10T18:16:33.000Z
2022-03-18T19:30:49.000Z
qtpyvcp/widgets/qtdesigner/stylesheet.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
38
2018-10-10T19:02:26.000Z
2022-01-30T04:38:14.000Z
# Copyright (c) 2017-2018, SLAC National Accelerator Laboratory # This file has been adapted from PyDM, and can be redistributed and/or # modified in accordance with terms in conditions set forth in the BSD # 3-Clause License. You can find the complete licence text in the LICENCES # directory. # Links: # PyDM Proje...
30.381818
101
0.662178
bb4f0b5189297ced72a44239391b43d52db3d9ea
3,470
py
Python
ElevatorBot/commands/a_destiny/lfg/create.py
TheDescend/elevatorbot
0909ec9ba213480bdf7f790c3d115dd8c4f3ae17
[ "MIT" ]
null
null
null
ElevatorBot/commands/a_destiny/lfg/create.py
TheDescend/elevatorbot
0909ec9ba213480bdf7f790c3d115dd8c4f3ae17
[ "MIT" ]
41
2022-01-12T11:10:40.000Z
2022-03-22T09:47:25.000Z
ElevatorBot/commands/a_destiny/lfg/create.py
TheDescend/elevatorbot
0909ec9ba213480bdf7f790c3d115dd8c4f3ae17
[ "MIT" ]
null
null
null
import asyncio from dis_snek import InteractionContext, Modal, OptionTypes, ParagraphText, slash_command, slash_option from ElevatorBot.commandHelpers import autocomplete from ElevatorBot.commandHelpers.optionTemplates import ( autocomplete_activity_option, default_time_option, get_timezone_choices, ) fro...
33.365385
122
0.64755
bb4f6cecef3858e27583257bcccf7772bacf1898
3,345
py
Python
datapack/data/scripts/custom/6667_ClanManager/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
datapack/data/scripts/custom/6667_ClanManager/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
datapack/data/scripts/custom/6667_ClanManager/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
import sys from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance from com.l2jfrozen.gameserver.model.actor.instance import L2NpcInstance from java.util import Iterator from com.l2jfrozen.util.database import L2DatabaseFactory from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gam...
40.301205
164
0.577578
bb4ffa08cc41d161ce32e5f9a9042ee114198b47
3,219
py
Python
tests/functions/test_get_referencing_foreign_keys.py
tteaka/sqlalchemy-utils
4754a9e93d661144dfffb674fd762becb607514b
[ "BSD-3-Clause" ]
879
2015-01-01T12:06:35.000Z
2022-03-27T16:13:05.000Z
tests/functions/test_get_referencing_foreign_keys.py
tteaka/sqlalchemy-utils
4754a9e93d661144dfffb674fd762becb607514b
[ "BSD-3-Clause" ]
418
2015-01-02T08:43:43.000Z
2022-03-25T15:49:21.000Z
tests/functions/test_get_referencing_foreign_keys.py
tteaka/sqlalchemy-utils
4754a9e93d661144dfffb674fd762becb607514b
[ "BSD-3-Clause" ]
295
2015-01-06T14:19:33.000Z
2022-03-26T16:20:50.000Z
import pytest import sqlalchemy as sa from sqlalchemy_utils import get_referencing_foreign_keys class TestGetReferencingFksWithInheritance(object): def test_with_declarative_class(self, Admin, TextItem): fks = get_referencing_foreign_keys(Admin) assert TextItem.__table__.foreign_keys == fks ...
30.657143
72
0.593973
bb5006edc83591fcb6fd014b194938e915e15b68
9,487
py
Python
python/oskar/vis_header.py
happyseayou/OSKAR
3fb995ed39deb6b11da12524e8e30f0ca8f9c39b
[ "BSD-3-Clause" ]
46
2015-12-15T14:24:16.000Z
2022-01-24T16:54:49.000Z
python/oskar/vis_header.py
happyseayou/OSKAR
3fb995ed39deb6b11da12524e8e30f0ca8f9c39b
[ "BSD-3-Clause" ]
37
2016-08-04T17:53:03.000Z
2022-03-10T10:22:01.000Z
python/oskar/vis_header.py
happyseayou/OSKAR
3fb995ed39deb6b11da12524e8e30f0ca8f9c39b
[ "BSD-3-Clause" ]
32
2016-05-09T10:30:11.000Z
2022-01-26T07:55:27.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2016-2020, The University of Oxford # All rights reserved. # # 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...
40.370213
79
0.702013
bb509520eb36dfa653be1437a9e354a8199a2546
5,399
py
Python
test/test_client.py
pastchick3/aioclient
1aca2049d99ff2d38afe61a7457da1782ca96877
[ "MIT" ]
null
null
null
test/test_client.py
pastchick3/aioclient
1aca2049d99ff2d38afe61a7457da1782ca96877
[ "MIT" ]
null
null
null
test/test_client.py
pastchick3/aioclient
1aca2049d99ff2d38afe61a7457da1782ca96877
[ "MIT" ]
null
null
null
import asyncio import logging import os from time import time from yarl import URL from ..client.client import Client from ..client.request import HTTPMethod, Request from .asynctest import AsyncTest
36.234899
104
0.534729
bb50e02bc10595ee7f37c2f2681f792e846833f4
1,815
py
Python
mars/serialization/arrow.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/serialization/arrow.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/serialization/arrow.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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 a...
30.762712
74
0.671625
bb513c7cb4cfaba75c9bb580d5d1718b16468f02
463
py
Python
etc/setup.py
c4s4/mysql_commando
def44e111e4e6438d7bc4e0f407c38af86e98880
[ "Apache-2.0" ]
2
2016-07-27T12:59:47.000Z
2019-11-30T14:24:56.000Z
etc/setup.py
c4s4/mysql_commando
def44e111e4e6438d7bc4e0f407c38af86e98880
[ "Apache-2.0" ]
null
null
null
etc/setup.py
c4s4/mysql_commando
def44e111e4e6438d7bc4e0f407c38af86e98880
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: UTF-8 from distutils.core import setup setup( name = 'mysql_commando', version = 'VERSION', author = 'Michel Casabianca', author_email = 'casa@sweetohm.net', packages = ['mysql_commando'], url = 'http://pypi.python.org/pypi/mysql_commando/', license = 'Apa...
27.235294
69
0.680346
bb5151b151a88cf883e38cff4144c5a51b6a33c4
20,935
py
Python
codes/models/MWGAN_model.py
RyanXingQL/MW-GAN
562199344e322919a108048acd55b0dd8820df55
[ "MIT" ]
2
2021-11-05T09:21:54.000Z
2021-11-14T06:03:16.000Z
codes/models/MWGAN_model.py
RyanXingQL/MW-GAN
562199344e322919a108048acd55b0dd8820df55
[ "MIT" ]
2
2021-06-05T02:53:30.000Z
2021-06-06T03:05:44.000Z
codes/models/MWGAN_model.py
RyanXingQL/MW-GAN
562199344e322919a108048acd55b0dd8820df55
[ "MIT" ]
null
null
null
import logging from collections import OrderedDict import torch import torch.nn as nn from torch.nn.parallel import DataParallel, DistributedDataParallel import models.networks as networks import models.lr_scheduler as lr_scheduler from .base_model import BaseModel from models.modules.loss import GANLoss, Charb...
48.460648
163
0.52749
bb53be5d9535e67e41679bc0cccd687e1f49ef89
8,349
py
Python
3rdPartyLibraries/FuXi-master/test/SPARQL/test.py
mpetyx/pyrif
2f7ba863030d7337bb39ad502d1e09e26ac950d2
[ "MIT" ]
null
null
null
3rdPartyLibraries/FuXi-master/test/SPARQL/test.py
mpetyx/pyrif
2f7ba863030d7337bb39ad502d1e09e26ac950d2
[ "MIT" ]
null
null
null
3rdPartyLibraries/FuXi-master/test/SPARQL/test.py
mpetyx/pyrif
2f7ba863030d7337bb39ad502d1e09e26ac950d2
[ "MIT" ]
null
null
null
# """ # FuXi Harness for W3C SPARQL1.1 Entailment Evaluation Tests # """ # import unittest # from pprint import pprint # from urllib2 import urlopen # from FuXi.Rete.RuleStore import SetupRuleStore # from FuXi.Horn.HornRules import HornFromN3 # from FuXi.Rete.Proof import ImmutableDict # from FuXi.SPARQL.BackwardChain...
38.474654
102
0.543538
bb54dd743272c66fa05ae9d165ff7620f4013ada
381
py
Python
ood_samplefree/datasets/utils.py
jm-begon/ood_samplefree
2c659fa8f2d15487f78c811c3fdeded1b1cfe91c
[ "BSD-3-Clause" ]
2
2021-09-14T12:54:30.000Z
2021-10-24T02:23:39.000Z
ood_samplefree/datasets/utils.py
jm-begon/ood_samplefree
2c659fa8f2d15487f78c811c3fdeded1b1cfe91c
[ "BSD-3-Clause" ]
null
null
null
ood_samplefree/datasets/utils.py
jm-begon/ood_samplefree
2c659fa8f2d15487f78c811c3fdeded1b1cfe91c
[ "BSD-3-Clause" ]
null
null
null
from torch.utils.data import DataLoader, ConcatDataset, Subset
38.1
62
0.748031
bb55f44fdeca3f86beb5aab433c93abe40e987b1
72
py
Python
tests/test_environment.py
frankenstien-831/mantaray
a2d51dce67cf6491ab7f527087835abea514c026
[ "Apache-2.0" ]
17
2018-11-21T09:57:11.000Z
2020-01-08T10:43:53.000Z
tests/test_environment.py
frankenstien-831/mantaray
a2d51dce67cf6491ab7f527087835abea514c026
[ "Apache-2.0" ]
48
2018-11-07T14:31:49.000Z
2019-05-27T07:47:56.000Z
tests/test_environment.py
oceanprotocol/mantaray
9fd05decd5baae9ab849cb48e7ec807b703e97ad
[ "Apache-2.0" ]
5
2019-02-13T20:24:47.000Z
2020-05-29T15:57:18.000Z
import squid_py
12
31
0.777778
bb56847f495526be62702ea16d0c653b7419510a
147
py
Python
python/ql/test/3/library-tests/modules/general/main.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/test/3/library-tests/modules/general/main.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/test/3/library-tests/modules/general/main.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
import package import helper import package.assistant #We expect that 'a' below will be 1 not a module. from confused_elements import a import sys
21
49
0.809524
bb58ba0f491c210148b7b90b9abe97b2078c4465
1,031
py
Python
utils/yaml_helper.py
jiaqi-w/machine_learning
faf21f355d1d6d9de720ae77cbff3442db5cebc7
[ "MIT" ]
1
2018-10-29T16:55:07.000Z
2018-10-29T16:55:07.000Z
utils/yaml_helper.py
jiaqi-w/machine_learning
faf21f355d1d6d9de720ae77cbff3442db5cebc7
[ "MIT" ]
null
null
null
utils/yaml_helper.py
jiaqi-w/machine_learning
faf21f355d1d6d9de720ae77cbff3442db5cebc7
[ "MIT" ]
null
null
null
import yaml
34.366667
82
0.643065
bb5a4a304b4822606cb8420489013996cae942be
1,163
py
Python
setup.py
simon-ball/nqo-mfs
54bc84deb6ac0ab1dec724fee69c0d7b7c0ce3e9
[ "MIT" ]
null
null
null
setup.py
simon-ball/nqo-mfs
54bc84deb6ac0ab1dec724fee69c0d7b7c0ce3e9
[ "MIT" ]
1
2020-10-23T11:10:23.000Z
2020-10-23T11:10:23.000Z
setup.py
simon-ball/nqo-mfs
54bc84deb6ac0ab1dec724fee69c0d7b7c0ce3e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) with open('README.md') as readme_file: readme = readme_file.read() with open(path.join(here, 'requirements.txt')) as f: requirements = f.read().split() ...
27.690476
79
0.647463
bb5a643a203a5d1a28e75015990ec3ae9e61281d
1,833
py
Python
Utilities/AWS/Ocean/ECS/Misc/ecs_update_service_desiredCount_based_on_running.py
spotinst/spotinst-examples
a99dda50ae0910d9b98daff19fff977fc512b801
[ "Apache-2.0" ]
14
2019-06-11T07:28:01.000Z
2022-02-24T06:15:03.000Z
Utilities/AWS/Ocean/ECS/Misc/ecs_update_service_desiredCount_based_on_running.py
spotinst/spotinst-examples
a99dda50ae0910d9b98daff19fff977fc512b801
[ "Apache-2.0" ]
1
2022-02-24T06:13:39.000Z
2022-02-24T06:13:39.000Z
Utilities/AWS/Ocean/ECS/Misc/ecs_update_service_desiredCount_based_on_running.py
spotinst/spotinst-examples
a99dda50ae0910d9b98daff19fff977fc512b801
[ "Apache-2.0" ]
7
2019-07-10T14:05:22.000Z
2022-01-10T14:04:01.000Z
######################################### ## Written by steven.feltner@spot.io ## Script to update the desiredCount (# of tasks) for all services have less running than desired. ######################################### ### Parameters ### cluster = '' region = '' desiredCount = 0 # AWS Profile Name (Optional) profil...
33.944444
109
0.652482
bb5a673684a9f6feb55f8f7a0216913522c44b45
8,832
py
Python
deeppavlov/models/go_bot/dto/dataset_features.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
5,893
2018-02-01T18:13:20.000Z
2022-03-31T19:22:21.000Z
deeppavlov/models/go_bot/dto/dataset_features.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
749
2018-01-31T11:36:02.000Z
2022-03-30T07:24:22.000Z
deeppavlov/models/go_bot/dto/dataset_features.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
1,155
2018-02-01T10:52:15.000Z
2022-03-29T02:12:15.000Z
from typing import List import numpy as np # todo remove boilerplate duplications # todo comments # todo logging # todo naming from deeppavlov.models.go_bot.nlu.dto.nlu_response import NLUResponse from deeppavlov.models.go_bot.policy.dto.digitized_policy_features import DigitizedPolicyFeatures from deeppavlov.models...
34.100386
119
0.718637
bb5ad40703c73c8e0aaa4353388354ffb2cc3641
33
py
Python
common/common/middleware/__init__.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
7
2020-09-01T21:52:37.000Z
2022-02-25T16:00:08.000Z
common/common/middleware/__init__.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
4
2021-09-10T22:15:09.000Z
2022-03-25T22:17:43.000Z
common/common/middleware/__init__.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
9
2020-09-01T21:53:39.000Z
2022-03-30T12:03:04.000Z
from . import length, middleware
16.5
32
0.787879
bb5b5017cb12ad0f4579f52027ab2d800fd1a1dd
1,035
py
Python
recipe_modules/python/tests/infra_failing_step.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
1
2021-04-24T04:03:01.000Z
2021-04-24T04:03:01.000Z
recipe_modules/python/tests/infra_failing_step.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
null
null
null
recipe_modules/python/tests/infra_failing_step.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Tests for api.python.infra_failing_step.""" from recipe_engine import post_process DEPS = [ 'python', 'step', ]
25.243902
75
0.674396
bb5c048667a0292288c7bd98af21da085db5a478
8,880
py
Python
app/ws.py
javi-cortes/music_ws
7ca60e481f16d71ee6d3ff61e112ba12e9c7db8f
[ "MIT" ]
null
null
null
app/ws.py
javi-cortes/music_ws
7ca60e481f16d71ee6d3ff61e112ba12e9c7db8f
[ "MIT" ]
null
null
null
app/ws.py
javi-cortes/music_ws
7ca60e481f16d71ee6d3ff61e112ba12e9c7db8f
[ "MIT" ]
null
null
null
import json from datetime import timedelta import dateutil.parser from flask import Blueprint, request from app.models.main import Channel, Performer, Song, Play # Response codes CODE_KO = 1 CODE_OK = 0 music_ws = Blueprint('music_ws', __name__) # INGESTION # REQUEST # Helpers def _parse_date_helper...
31.714286
117
0.601689
246d97b601c5bd5a2c4ed52accec7c24dfdc27f3
1,265
py
Python
3er Elemento/insertar_multiples_registros.py
Antonio985/SeminarioDeProgramacion
a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465
[ "Unlicense" ]
null
null
null
3er Elemento/insertar_multiples_registros.py
Antonio985/SeminarioDeProgramacion
a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465
[ "Unlicense" ]
null
null
null
3er Elemento/insertar_multiples_registros.py
Antonio985/SeminarioDeProgramacion
a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465
[ "Unlicense" ]
null
null
null
# Realizar la importacion del modulo postgres sql import psycopg2 # Realizar conexion a base de datos conexion = psycopg2.connect(user='postgres', password='admin', host='127.0.0.1', port='5432', database='t...
34.189189
68
0.651383
246e0a5f8b17a9b0843c7beecad945fa0daad6a6
307
py
Python
03.Complete Python Developer - Zero to Mastery - AN/05.Advanced Python Decorators/decorators3.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
3
2020-06-01T04:17:18.000Z
2020-12-18T03:05:55.000Z
03.Complete Python Developer - Zero to Mastery - AN/05.Advanced Python Decorators/decorators3.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
1
2020-04-25T08:01:59.000Z
2020-04-25T08:01:59.000Z
03.Complete Python Developer - Zero to Mastery - AN/05.Advanced Python Decorators/decorators3.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
7
2020-04-26T10:02:36.000Z
2021-06-08T05:12:46.000Z
#Decorator Pattern hello('yo yo', '<3')
23.615385
48
0.589577
246f42b9ab1dca2ee51900cb7e5757551282b861
635
py
Python
src/senders/telegram_sender.py
maticardenas/football_api_notif
81f9e265d4effb7545e3d9ad80ee1109cd9b8edf
[ "MIT" ]
null
null
null
src/senders/telegram_sender.py
maticardenas/football_api_notif
81f9e265d4effb7545e3d9ad80ee1109cd9b8edf
[ "MIT" ]
null
null
null
src/senders/telegram_sender.py
maticardenas/football_api_notif
81f9e265d4effb7545e3d9ad80ee1109cd9b8edf
[ "MIT" ]
null
null
null
from config.notif_config import NotifConfig from src.api.telegram_client import TelegramClient
37.352941
85
0.733858
2470580f12ad7e77f7142433165253a58596f390
1,552
py
Python
01-PythonAlgorithms/strings/matching_brackets.py
spendyala/deeplearning-docker
1dcd03e2e65cb1897daf9dfffeab018f97fc0780
[ "MIT" ]
null
null
null
01-PythonAlgorithms/strings/matching_brackets.py
spendyala/deeplearning-docker
1dcd03e2e65cb1897daf9dfffeab018f97fc0780
[ "MIT" ]
1
2021-02-02T22:47:32.000Z
2021-02-02T22:47:32.000Z
01-PythonAlgorithms/strings/matching_brackets.py
spendyala/deeplearning-docker
1dcd03e2e65cb1897daf9dfffeab018f97fc0780
[ "MIT" ]
null
null
null
""" Write a function to detect if a string is valid or not "abc_123{}" "{abc_123}" "abc_{1}23" "abc_123{()}()" "abc_123{()}[()]&" invalid "}abc_123{" "abc_123{" "ab{[}]" Raise exception which has the position at which the error occured. """ def validate(text): """ >>> validate('abc_123') True >...
21.859155
92
0.567655
247082659fc75104497197168be41753057b14d3
88
py
Python
tester.py
sritzow/sritzow.github.io
10eb5d30ed425020154dbc9aeaecf2bfbe911b87
[ "MIT" ]
null
null
null
tester.py
sritzow/sritzow.github.io
10eb5d30ed425020154dbc9aeaecf2bfbe911b87
[ "MIT" ]
null
null
null
tester.py
sritzow/sritzow.github.io
10eb5d30ed425020154dbc9aeaecf2bfbe911b87
[ "MIT" ]
null
null
null
import pymongo conn = pymongo.MongoClient() db = conn.tweets db.tweets.dropDatabase()
12.571429
28
0.761364
2471c9234eb8114dd8d4ec58d9eb18647349ea19
425
py
Python
base/definitions.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
base/definitions.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
base/definitions.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Definitions commonly used on apps """ # django from django.utils.translation import ugettext_lazy as _ MONTHS = ( (0, _(u'January')), (1, _(u'February')), (2, _(u'March')), (3, _(u'April')), (4, _(u'May')), (5, _(u'June')), (6, _(u'July')), (7, _(u'August')),...
21.25
55
0.496471
247312d285b054cd39227aef99a3e1dffd566287
522
py
Python
src/simfoni/apps/revenue/models/revenue_group.py
django-stars/simfoni-test
eaca4adc8177505e7c53e708456fd0dbb6be0b71
[ "MIT" ]
null
null
null
src/simfoni/apps/revenue/models/revenue_group.py
django-stars/simfoni-test
eaca4adc8177505e7c53e708456fd0dbb6be0b71
[ "MIT" ]
null
null
null
src/simfoni/apps/revenue/models/revenue_group.py
django-stars/simfoni-test
eaca4adc8177505e7c53e708456fd0dbb6be0b71
[ "MIT" ]
4
2018-04-26T17:43:24.000Z
2018-05-10T14:11:09.000Z
from django.core.validators import MinValueValidator from django.db import models from django.utils.translation import ugettext_lazy as _ from core.models import AbstractBaseModel
43.5
117
0.791188
2474676875cc2c935504da7b72bf8c3ba2c468ac
542
py
Python
crawl.py
audrummer15/motif-crawler
4f3f05ef7304c258c41e5f4e61e13e834a6eb56c
[ "MIT" ]
null
null
null
crawl.py
audrummer15/motif-crawler
4f3f05ef7304c258c41e5f4e61e13e834a6eb56c
[ "MIT" ]
null
null
null
crawl.py
audrummer15/motif-crawler
4f3f05ef7304c258c41e5f4e61e13e834a6eb56c
[ "MIT" ]
null
null
null
import os import subprocess import pycurl from bs4 import BeautifulSoup from bs4 import SoupStrainer from lib.MotifAuthorizationManager import MotifAuthorizationManager from lib.RequestHandler import RequestHandler from lib.SettingsManager import SettingsManager COOKIEJAR = os.path.join("build", "cookies.txt") sm =...
24.636364
90
0.800738
24747539fd8ac22a7c135fadd0de950c9f614794
1,060
py
Python
examples/asg-only/stack.tf.py
steve-stonehouse/terraform-aws-asg-pipeline
281a857a232cabb58cfaf6a302a96b1a27781cd6
[ "MIT" ]
1
2021-02-20T10:36:40.000Z
2021-02-20T10:36:40.000Z
examples/asg-only/stack.tf.py
steve-stonehouse/terraform-aws-asg-pipeline
281a857a232cabb58cfaf6a302a96b1a27781cd6
[ "MIT" ]
1
2021-05-13T13:58:13.000Z
2021-05-13T13:58:13.000Z
examples/asg-only/stack.tf.py
steve-stonehouse/terraform-aws-asg-pipeline
281a857a232cabb58cfaf6a302a96b1a27781cd6
[ "MIT" ]
4
2021-01-07T10:10:44.000Z
2021-10-15T21:16:35.000Z
""" This file is used by Pretf to generate stack.tf.json. The reason for using Pretf is that our AWS profiles have MFA prompts, which is not supported by Terraform. We're using multiple AWS profiles in these examples to manage resources in multiple AWS accounts, so we can't use simple environment variables for AWS cre...
35.333333
73
0.726415
2475dede311738c11a698f61d9c18ddd93bd1b1b
1,972
py
Python
hgw_frontend/hgw_frontend/__init__.py
crs4/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
5
2018-05-16T22:58:01.000Z
2020-01-14T11:12:17.000Z
hgw_frontend/hgw_frontend/__init__.py
PhilanthroLab/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
10
2018-04-13T15:56:49.000Z
2019-12-05T08:57:47.000Z
hgw_frontend/hgw_frontend/__init__.py
PhilanthroLab/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
6
2019-10-02T08:39:12.000Z
2020-06-23T00:18:03.000Z
# Copyright (c) 2017-2018 CRS4 # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to use, # copy, modify, merge, publish, distribut...
48.097561
104
0.766227
24774b2c66fc88ede2b3c42400a1a0a76a09eaf8
11,609
py
Python
python/pynamics/vector.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2018-08-20T22:01:18.000Z
2021-04-19T00:50:56.000Z
python/pynamics/vector.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
3
2017-10-24T03:10:17.000Z
2017-10-24T03:15:27.000Z
python/pynamics/vector.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2017-03-03T23:04:17.000Z
2021-03-20T20:33:53.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes Email: danaukes<at>gmail.com Please see LICENSE for full license. """ import sympy import pynamics
34.757485
127
0.553536
24777626ecc3432512182ddd00d3df2a0858c543
5,070
py
Python
code/attacks/syn_flood.py
LTKills/TCC-Course-Conclusion-Thesis
9f0f9f7796020e7d49d0b2e0ab76e20692e5f3a4
[ "MIT" ]
null
null
null
code/attacks/syn_flood.py
LTKills/TCC-Course-Conclusion-Thesis
9f0f9f7796020e7d49d0b2e0ab76e20692e5f3a4
[ "MIT" ]
null
null
null
code/attacks/syn_flood.py
LTKills/TCC-Course-Conclusion-Thesis
9f0f9f7796020e7d49d0b2e0ab76e20692e5f3a4
[ "MIT" ]
null
null
null
# Developed by GABRIEL PEREIRA PINHEIRO and VICTOR ARAUJO VIEIRA # In the University of Brasilia on 2017 # Atack SYN flood #All copyrights to Gabriel Pereira Pinheiro and Victor Araujo Vieira import socket, sys, random from struct import * from threading import Thread import time flag_encerra_threads = False # ch...
28.644068
124
0.619132
24779120f2fb70a303e87b2558dd2ff75366f03a
152
py
Python
tr_sys/tr_ars/__init__.py
jdr0887/Relay
323b954033dc7fc6bd9acc52cfec7133594ee59a
[ "MIT" ]
4
2020-02-06T17:15:46.000Z
2021-08-30T14:16:40.000Z
tr_sys/tr_ars/__init__.py
jdr0887/Relay
323b954033dc7fc6bd9acc52cfec7133594ee59a
[ "MIT" ]
109
2020-04-27T21:07:13.000Z
2022-02-18T18:34:53.000Z
tr_sys/tr_ars/__init__.py
jdr0887/Relay
323b954033dc7fc6bd9acc52cfec7133594ee59a
[ "MIT" ]
23
2020-01-14T17:02:20.000Z
2022-02-11T16:20:00.000Z
import logging logger = logging.getLogger(__name__) logger.debug('Initializing module %s...' % __name__) import pymysql pymysql.install_as_MySQLdb()
16.888889
52
0.782895
2477e99d42671a5856b6477a89453acfc665aa72
1,453
py
Python
src/pipeformer/__init__.py
awslabs/pipeformer
bf7f4f15b4c3698cd7c361a9d376a46980dd2a00
[ "Apache-2.0" ]
10
2019-03-31T13:46:07.000Z
2020-08-26T22:40:58.000Z
src/pipeformer/__init__.py
amazon-archives/pipeformer
bf7f4f15b4c3698cd7c361a9d376a46980dd2a00
[ "Apache-2.0" ]
39
2019-03-13T09:08:25.000Z
2020-12-14T23:08:09.000Z
src/pipeformer/__init__.py
awslabs/pipeformer
bf7f4f15b4c3698cd7c361a9d376a46980dd2a00
[ "Apache-2.0" ]
8
2019-03-11T22:25:11.000Z
2020-05-27T20:45:15.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
33.022727
103
0.741225
2478ca648fedf246d69a5e00ab4529cc5ae395e3
282
py
Python
shop/urls.py
ArRosid/ECommerceAPI
f683eed52e3591f6f45b955fb14f34154fa434ca
[ "MIT" ]
null
null
null
shop/urls.py
ArRosid/ECommerceAPI
f683eed52e3591f6f45b955fb14f34154fa434ca
[ "MIT" ]
null
null
null
shop/urls.py
ArRosid/ECommerceAPI
f683eed52e3591f6f45b955fb14f34154fa434ca
[ "MIT" ]
1
2022-02-16T08:21:39.000Z
2022-02-16T08:21:39.000Z
from django.urls import path, include from rest_framework import routers from . import views router = routers.DefaultRouter() router.register("category", views.CategoryViewSet) router.register("product", views.ProductViewSet) urlpatterns = [ path("", include(router.urls)) ]
21.692308
50
0.769504
2479249245b96690766fb314269d4683227d8748
1,679
py
Python
ML/02_CandidateElimination/candidateElimination.py
shaansubbaiah/CSE-3rd-Year-Labs
a173ef1dbed061471dcb6b2fe2d9db0a5bdbd165
[ "MIT" ]
2
2021-07-02T14:47:20.000Z
2021-09-25T13:43:35.000Z
ML/02_CandidateElimination/candidateElimination.py
shaansubbaiah/CSE-3rd-Year-Labs
a173ef1dbed061471dcb6b2fe2d9db0a5bdbd165
[ "MIT" ]
null
null
null
ML/02_CandidateElimination/candidateElimination.py
shaansubbaiah/CSE-3rd-Year-Labs
a173ef1dbed061471dcb6b2fe2d9db0a5bdbd165
[ "MIT" ]
5
2020-09-23T17:09:34.000Z
2022-01-22T12:02:16.000Z
import numpy as np import pandas as pd data = pd.DataFrame(data=pd.read_csv('enjoysport.csv')) concepts = np.array(data.iloc[:,0:-1]) print('Concepts:', concepts) target = np.array(data.iloc[:,-1]) print('Target:', target) s_final, g_final = learn(concepts, target) print("\n Final specific_h:", s_final, s...
37.311111
98
0.488386
24799ab06e386f33cd646c2ff0499a35c9322e1a
2,651
py
Python
runners/stylegan_runner.py
bytedance/Hammer
388ed20b3d9b34f33f5357d75f8fe5d726782ec8
[ "MIT" ]
97
2022-02-08T09:00:57.000Z
2022-03-23T05:33:35.000Z
runners/stylegan_runner.py
bytedance/Hammer
388ed20b3d9b34f33f5357d75f8fe5d726782ec8
[ "MIT" ]
null
null
null
runners/stylegan_runner.py
bytedance/Hammer
388ed20b3d9b34f33f5357d75f8fe5d726782ec8
[ "MIT" ]
7
2022-02-08T15:13:02.000Z
2022-03-19T19:11:13.000Z
# python3.7 """Contains the runner for StyleGAN.""" from copy import deepcopy from .base_runner import BaseRunner __all__ = ['StyleGANRunner']
36.315068
80
0.602791
247bb0fcb6c8c1435c8ad5d645cceffb1235621f
9,965
py
Python
mininet/p4_mininet.py
ghostli123/p4factory
87ca095036d2023b52e42a8f1e2602f23f7adebe
[ "Apache-2.0" ]
205
2015-04-08T13:35:19.000Z
2022-03-28T09:22:47.000Z
mininet/p4_mininet.py
ghostli123/p4factory
87ca095036d2023b52e42a8f1e2602f23f7adebe
[ "Apache-2.0" ]
97
2015-04-16T00:41:05.000Z
2022-01-26T22:08:34.000Z
mininet/p4_mininet.py
ghostli123/p4factory
87ca095036d2023b52e42a8f1e2602f23f7adebe
[ "Apache-2.0" ]
150
2015-04-02T18:49:15.000Z
2022-02-10T23:16:26.000Z
# Copyright 2013-present Barefoot Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
35.845324
81
0.535575
247f7da578c2c7835ef7958b1e46d2e8d1732190
3,663
py
Python
code/DALI/main.py
kastnerkyle/DALI
ed13dface8194e8a1564452205d617e31f623d1c
[ "AFL-3.0" ]
1
2019-05-22T07:16:07.000Z
2019-05-22T07:16:07.000Z
code/DALI/main.py
kastnerkyle/DALI
ed13dface8194e8a1564452205d617e31f623d1c
[ "AFL-3.0" ]
null
null
null
code/DALI/main.py
kastnerkyle/DALI
ed13dface8194e8a1564452205d617e31f623d1c
[ "AFL-3.0" ]
null
null
null
"""LOADING DALI DATASET FUNCTIONS: Functions for loading the Dali dataset. GABRIEL MESEGUER-BROCAL 2018 """ from . import utilities as ut # from .Annotations import Annotations # ------------------------ READING INFO ------------------------ def generator_folder(folder_pth, skip=[], keep=[]): """Create the f...
32.415929
78
0.621622
2482074f10e8565981ef5f29b1f4fe169b0567b5
238
py
Python
Academic/Simple/ex_13.py
LookThisCode/Python-Basic-001
ad9749e14864c2114d454d5984de62542eb7152a
[ "Apache-2.0" ]
null
null
null
Academic/Simple/ex_13.py
LookThisCode/Python-Basic-001
ad9749e14864c2114d454d5984de62542eb7152a
[ "Apache-2.0" ]
null
null
null
Academic/Simple/ex_13.py
LookThisCode/Python-Basic-001
ad9749e14864c2114d454d5984de62542eb7152a
[ "Apache-2.0" ]
null
null
null
__author__ = 'nickbortolotti' from sys import argv script, firts, second, third = argv print "El scrip lleva por nombre", script print "La variable uno lleva por nombre", firts print "La variable 2", second print "la variable 3", third
23.8
47
0.752101
248389e0ebff67d83729ac2a6e448da6f7770dc0
17,425
py
Python
utils/frontera_eficiente.py
philwebsurfer/ITAM-QuantFinance
9d4e69ae43f7dd13e1d0b2cd2e2daab1de38f1c8
[ "Apache-2.0" ]
null
null
null
utils/frontera_eficiente.py
philwebsurfer/ITAM-QuantFinance
9d4e69ae43f7dd13e1d0b2cd2e2daab1de38f1c8
[ "Apache-2.0" ]
null
null
null
utils/frontera_eficiente.py
philwebsurfer/ITAM-QuantFinance
9d4e69ae43f7dd13e1d0b2cd2e2daab1de38f1c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ####################################### #-------------------------------------# # Module: Frontera Eficiente # #-------------------------------------# # Creado: # # 20. 04. 2019 # # Ult. modificacion: ...
38.296703
159
0.593113
2484641686c9e401e0c6f1d4e5155e7bdadc8ed6
406
py
Python
stats-backend/collector/migrations/0024_node_benchmarked_at.py
cryptobench/golem-stats-backend
567e98873bff6282415ecbdc075c27dab75d805a
[ "MIT" ]
null
null
null
stats-backend/collector/migrations/0024_node_benchmarked_at.py
cryptobench/golem-stats-backend
567e98873bff6282415ecbdc075c27dab75d805a
[ "MIT" ]
4
2021-03-28T16:42:41.000Z
2022-01-01T14:48:46.000Z
stats-backend/collector/migrations/0024_node_benchmarked_at.py
golemfactory/golem-stats-backend
95467749a13e4496032150cf08a9a3686ef213d3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-13 11:30 from django.db import migrations, models
21.368421
62
0.610837
2485899215eba7de1613032ee5bbf06ee6604e0f
2,624
py
Python
system_monitor/src/system_monitor/monitor.py
MosHumanoid/bitbots_misc
0435dd2875cde68d625932a4408423958865c502
[ "MIT" ]
null
null
null
system_monitor/src/system_monitor/monitor.py
MosHumanoid/bitbots_misc
0435dd2875cde68d625932a4408423958865c502
[ "MIT" ]
null
null
null
system_monitor/src/system_monitor/monitor.py
MosHumanoid/bitbots_misc
0435dd2875cde68d625932a4408423958865c502
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket import rospy from system_monitor.msg import Workload as WorkloadMsg from system_monitor import cpus, memory, network_interfaces def validate_params(): """@rtype bool""" def validate_single_param(param_name, required_type): """@rtype bool""" inner_result = ...
39.757576
134
0.636814
24861f309020ff46af9c06dcbf5bee19b5d98038
632
py
Python
Project1/task1_4/p1_4_main.py
saikat-roy/Uni-Bonn-Pattern-Recognition
43608b3ecec87f438bed8444b748aa7f823c10ad
[ "Apache-2.0" ]
1
2021-03-22T07:34:44.000Z
2021-03-22T07:34:44.000Z
Project1/task1_4/p1_4_main.py
saikat-roy/Uni-Bonn-Pattern-Recognition
43608b3ecec87f438bed8444b748aa7f823c10ad
[ "Apache-2.0" ]
null
null
null
Project1/task1_4/p1_4_main.py
saikat-roy/Uni-Bonn-Pattern-Recognition
43608b3ecec87f438bed8444b748aa7f823c10ad
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.linalg import norm as lpnorm if __name__ == "__main__": N = 1000 # Precision p = 0.5 # p-norm # Discretize unit-circle angles = np.linspace(0, 2*np.pi, N) # Create unit-circle points points = np.stack((np.cos(angles), np.sin(...
30.095238
76
0.620253
248630c333547d480ed84c90947e296fc0fc3449
8,662
py
Python
joulescope/usb/api.py
tadodotcom/pyjoulescope
ab9645a2774cf5d5355dee4c1e60a566419b0e00
[ "Apache-2.0" ]
29
2018-12-19T22:42:09.000Z
2022-01-31T12:26:52.000Z
joulescope/usb/api.py
tadodotcom/pyjoulescope
ab9645a2774cf5d5355dee4c1e60a566419b0e00
[ "Apache-2.0" ]
23
2019-07-21T23:44:46.000Z
2022-03-11T13:29:11.000Z
joulescope/usb/api.py
tadodotcom/pyjoulescope
ab9645a2774cf5d5355dee4c1e60a566419b0e00
[ "Apache-2.0" ]
9
2019-07-22T00:07:53.000Z
2021-11-26T11:46:19.000Z
# Copyright 2018 Jetperch 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,...
38.497778
118
0.659317
2487863ba324b7b7923b1f6034f757b5ac0dc8de
2,106
py
Python
AI 이노베이션 스퀘어 언어지능 과정/20190502/02.py
donddog/AI_Innovation_Square_Codes
a04d50db011d25e00d8486146c24124c50242aa7
[ "MIT" ]
1
2021-02-11T16:45:21.000Z
2021-02-11T16:45:21.000Z
AI 이노베이션 스퀘어 언어지능 과정/20190502/02.py
donddog/AI_Innovation_Square_Codes
a04d50db011d25e00d8486146c24124c50242aa7
[ "MIT" ]
null
null
null
AI 이노베이션 스퀘어 언어지능 과정/20190502/02.py
donddog/AI_Innovation_Square_Codes
a04d50db011d25e00d8486146c24124c50242aa7
[ "MIT" ]
null
null
null
<<<<<<< HEAD import requests from urllib import request, error, parse header = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36"} #html = download("http://httpbin.org/get", {"Key":"Value"}) html = download("https://www.crawler-test.com...
33.967742
142
0.641975
2488933d1e85456a9fe0765d9d099790b1aa570c
334
py
Python
easy/771.py
nkwib/leetcode
73f7492ba208417d8bf8340b6bf9dc68a6ded7f7
[ "MIT" ]
null
null
null
easy/771.py
nkwib/leetcode
73f7492ba208417d8bf8340b6bf9dc68a6ded7f7
[ "MIT" ]
null
null
null
easy/771.py
nkwib/leetcode
73f7492ba208417d8bf8340b6bf9dc68a6ded7f7
[ "MIT" ]
null
null
null
J = "aAB" S = "aAAbbbb" print(Solution().numJewelsInStones(J, S))
23.857143
55
0.494012
248b58cb4625736f2cb0396f27150679a31d86b4
3,155
py
Python
tomomibot/commands/status.py
adzialocha/tomomibot
ed3964223bd63340f28d36daa014865f61aaf571
[ "MIT" ]
28
2018-07-26T09:47:32.000Z
2022-01-24T10:38:13.000Z
tomomibot/commands/status.py
adzialocha/tomomibot
ed3964223bd63340f28d36daa014865f61aaf571
[ "MIT" ]
null
null
null
tomomibot/commands/status.py
adzialocha/tomomibot
ed3964223bd63340f28d36daa014865f61aaf571
[ "MIT" ]
5
2018-08-11T08:07:23.000Z
2021-12-23T14:47:40.000Z
import os import click from tomomibot.audio import all_inputs, all_outputs from tomomibot.cli import pass_context from tomomibot.const import GENERATED_FOLDER, MODELS_FOLDER from tomomibot.utils import line, check_valid_voice, check_valid_model
31.237624
77
0.559429
248c70fc15f6f7e34634c4bd3b90f8b9c838674d
889
py
Python
src/models/user.py
solnsumei/fastapi-template
a25a81f24ebe198ea2a49657da83b534260afdc7
[ "MIT" ]
3
2021-04-19T06:46:48.000Z
2021-09-16T15:00:05.000Z
src/models/user.py
solnsumei/fastapi-template
a25a81f24ebe198ea2a49657da83b534260afdc7
[ "MIT" ]
null
null
null
src/models/user.py
solnsumei/fastapi-template
a25a81f24ebe198ea2a49657da83b534260afdc7
[ "MIT" ]
null
null
null
from passlib.context import CryptContext from src.models.base.basemodel import ModelWithStatus, fields pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
25.4
81
0.713161
248dd00379a9a5fcc1e0fac52c0ce739c75bd072
10,739
py
Python
api/tests/opentrons/protocol_engine/state/test_motion_view.py
knownmed/opentrons
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/protocol_engine/state/test_motion_view.py
knownmed/opentrons
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/protocol_engine/state/test_motion_view.py
knownmed/opentrons
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
[ "Apache-2.0" ]
null
null
null
"""Test state getters for retrieving motion planning views of state.""" import pytest from decoy import Decoy from dataclasses import dataclass, field from typing import Optional from opentrons.types import Point, MountType from opentrons.hardware_control.types import CriticalPoint from opentrons.protocols.geometry.pl...
31.037572
88
0.657789
248e389537c1e124f37acb38cfa8e80d785e8aa9
3,102
py
Python
pyhodl/updater/markets/bitfinex.py
sirfoga/pyhodl
6a8088de30dfc0f5b854db8a04ce98a0169ef07d
[ "MIT" ]
6
2018-09-23T20:57:01.000Z
2021-10-31T07:50:54.000Z
pyhodl/updater/markets/bitfinex.py
sirfoga/pyhodl
6a8088de30dfc0f5b854db8a04ce98a0169ef07d
[ "MIT" ]
8
2018-01-02T15:28:18.000Z
2019-04-15T18:38:20.000Z
pyhodl/updater/markets/bitfinex.py
sirfoga/pyhodl
6a8088de30dfc0f5b854db8a04ce98a0169ef07d
[ "MIT" ]
4
2018-01-03T18:48:25.000Z
2018-09-23T20:57:04.000Z
# !/usr/bin/python3 # coding: utf_8 """ Updates local Bitfinex data """ from pyhodl.updater.models import ExchangeUpdater, INT_32_MAX from pyhodl.utils.network import handle_rate_limits, get_and_sleep
25.016129
67
0.509349
248f8478191ca82cba04da4c94936d6c605f25f9
2,735
py
Python
deepx/nn/stats.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
74
2015-11-13T02:26:37.000Z
2021-07-29T11:00:45.000Z
deepx/nn/stats.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
21
2015-12-12T20:33:55.000Z
2019-04-03T02:49:42.000Z
deepx/nn/stats.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
19
2015-11-23T10:07:01.000Z
2021-08-30T17:06:00.000Z
import numpy as np from .. import T from ..layer import ShapedLayer from ..initialization import initialize_weights from .full import Linear from .. import stats __all__ = ['Gaussian', 'Bernoulli', 'IdentityVariance']
31.436782
86
0.609872
249033ea477e66aafa5d9a09c2840e1dbce46b7f
224
py
Python
gbe/views/view_summer_act_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
1
2021-03-14T11:56:47.000Z
2021-03-14T11:56:47.000Z
gbe/views/view_summer_act_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
180
2019-09-15T19:52:46.000Z
2021-11-06T23:48:01.000Z
gbe/views/view_summer_act_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
null
null
null
from gbe.forms import ( SummerActForm, ) from gbe.views import ViewActView
18.666667
37
0.745536
24908e5bcbccbb113c46014441ec08a078260d01
101
py
Python
001146StepikPyBegin/Stepik001146PyBeginсh07p03st11С07__20200421.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh07p03st11С07__20200421.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh07p03st11С07__20200421.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
n = int(input()) sum1 = 0 for i in range(1, n + 1): if n % i == 0: sum1 += i print(sum1)
14.428571
25
0.465347
2494ce7acc85768e320105780c75c15f78dc92ae
1,702
py
Python
pbs/implementation/forms.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
null
null
null
pbs/implementation/forms.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
12
2019-10-22T23:16:38.000Z
2022-03-11T23:17:45.000Z
pbs/implementation/forms.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
5
2019-12-19T06:18:42.000Z
2022-01-07T01:16:18.000Z
from django import forms from pbs.implementation.models import BurningPrescription, EdgingPlan, LightingSequence from pbs.forms import HelperModelForm, WideTextarea
37
104
0.683901
249527376fc3fc9354ce420e6f4ee3bce7d7d193
777
py
Python
main.py
luizcartolano2/reinforcement-learning-dqn-cart-pole
caca97554273afbd213c9e40c9ff2d68342c34e8
[ "MIT" ]
null
null
null
main.py
luizcartolano2/reinforcement-learning-dqn-cart-pole
caca97554273afbd213c9e40c9ff2d68342c34e8
[ "MIT" ]
null
null
null
main.py
luizcartolano2/reinforcement-learning-dqn-cart-pole
caca97554273afbd213c9e40c9ff2d68342c34e8
[ "MIT" ]
null
null
null
import os # first we need to download the libs try: os.system('pip3 install -r requirements.txt') except: print("Check your Python3 and Pip installations.") # import libs import gym import math import random import numpy as np import matplotlib import matplotlib.pyplot as plt # from collections import namedtuple fr...
20.447368
69
0.772201
24956ea92fc62e0f8fb21dbe9885cc8032b1251e
571
py
Python
many_to_many/server.py
Abhinav1004/Network_Programming
d647021fd7b6c2b445a30d941dcc4c3472792a11
[ "MIT" ]
null
null
null
many_to_many/server.py
Abhinav1004/Network_Programming
d647021fd7b6c2b445a30d941dcc4c3472792a11
[ "MIT" ]
null
null
null
many_to_many/server.py
Abhinav1004/Network_Programming
d647021fd7b6c2b445a30d941dcc4c3472792a11
[ "MIT" ]
null
null
null
import socket import time host = '127.0.0.1' port = 5000 clients = [] s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind((host,port)) s.setblocking(0) quitting = False print "Server Started." while not quitting: try: data, addr = s.recvfrom(1024) if "Quit" in str(data): quit...
18.419355
69
0.58669
2495d28bed0397782cf935e677a1c24cddbc7aa5
2,245
py
Python
dex/tools/list_debuggers/Tool.py
jmorse/dexter
79cefa890d041dfc927aea2a84737aa704ddd35c
[ "MIT" ]
null
null
null
dex/tools/list_debuggers/Tool.py
jmorse/dexter
79cefa890d041dfc927aea2a84737aa704ddd35c
[ "MIT" ]
null
null
null
dex/tools/list_debuggers/Tool.py
jmorse/dexter
79cefa890d041dfc927aea2a84737aa704ddd35c
[ "MIT" ]
null
null
null
# DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # # Copyright (c) 2018 by SN Systems Ltd., Sony Interactive Entertainment Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
40.089286
79
0.732294
249635b07005285661c799b9a552e7382eada4ba
25,334
py
Python
app/routes_toxic.py
CMUSTRUDEL/flask-browser
35729fbc34d116f45ac3ac8cc3f0a8973de8d7f8
[ "MIT" ]
1
2020-07-28T23:26:18.000Z
2020-07-28T23:26:18.000Z
app/routes_toxic.py
CMUSTRUDEL/flask-browser
35729fbc34d116f45ac3ac8cc3f0a8973de8d7f8
[ "MIT" ]
1
2020-09-16T04:44:34.000Z
2020-09-23T03:01:23.000Z
app/routes_toxic.py
CMUSTRUDEL/flask-browser
35729fbc34d116f45ac3ac8cc3f0a8973de8d7f8
[ "MIT" ]
2
2020-06-17T23:48:53.000Z
2020-07-13T19:23:07.000Z
""" Foo """ from flask import render_template, flash, redirect, url_for, abort from flask import request from werkzeug.urls import url_parse from flask_paginate import Pagination, get_page_parameter, get_page_args from flask_login import current_user, login_required from app import app from app import db, pmongo from a...
40.405104
148
0.547288
24977e0b3947b40551c5151514de8641694c6c36
4,338
py
Python
scripts/dpp.py
EdoPro98/FERS-5200-DataConverter
2a4f02431beafdf49fd64f7804016a87b9eee7de
[ "MIT" ]
3
2021-07-22T12:17:48.000Z
2021-07-27T07:22:54.000Z
scripts/dpp.py
EdoPro98/FERS-5200-DataConverter
2a4f02431beafdf49fd64f7804016a87b9eee7de
[ "MIT" ]
38
2021-07-14T15:41:04.000Z
2022-03-29T14:18:20.000Z
scripts/dpp.py
EdoPro98/FERS-5200-DataConverter
2a4f02431beafdf49fd64f7804016a87b9eee7de
[ "MIT" ]
7
2021-07-21T12:00:33.000Z
2021-11-13T10:45:30.000Z
import numpy as np from matplotlib import pyplot as plt import numba as nb import sys, mplhep from iminuit.cost import ExtendedUnbinnedNLL from iminuit import Minuit from numba_stats import norm_pdf from scipy.stats import norm from time import time plt.style.use(mplhep.style.ATLAS) GUI = False if "plot" in sys.argv:...
33.369231
119
0.520516
249852694970ead7821411859a291e0c0fde0a31
173
py
Python
src/typeDefs/wbes/schDataRow.py
nagasudhirpulla/wr_rtm_dem_corr_dashboard
d2b9bdd5c76fcec01537af36f86e1c06524a2169
[ "MIT" ]
null
null
null
src/typeDefs/wbes/schDataRow.py
nagasudhirpulla/wr_rtm_dem_corr_dashboard
d2b9bdd5c76fcec01537af36f86e1c06524a2169
[ "MIT" ]
null
null
null
src/typeDefs/wbes/schDataRow.py
nagasudhirpulla/wr_rtm_dem_corr_dashboard
d2b9bdd5c76fcec01537af36f86e1c06524a2169
[ "MIT" ]
null
null
null
import datetime as dt from typing import TypedDict
15.727273
29
0.705202
249d4d9ba8d9ee7a62b73cf1f1164631e3a4f0ef
614
py
Python
migrations/versions/0c2841d4cfcd_.py
perna/podigger
5aa1a507ec6d5d96b41cb43eceb820ebd8f21fa1
[ "MIT" ]
5
2016-08-02T22:37:57.000Z
2020-12-02T12:38:59.000Z
migrations/versions/0c2841d4cfcd_.py
perna/podigger
5aa1a507ec6d5d96b41cb43eceb820ebd8f21fa1
[ "MIT" ]
null
null
null
migrations/versions/0c2841d4cfcd_.py
perna/podigger
5aa1a507ec6d5d96b41cb43eceb820ebd8f21fa1
[ "MIT" ]
1
2016-07-07T02:15:54.000Z
2016-07-07T02:15:54.000Z
"""empty message Revision ID: 0c2841d4cfcd Revises: 34d97cbc759e Create Date: 2016-07-28 20:19:00.866339 """ # revision identifiers, used by Alembic. revision = '0c2841d4cfcd' down_revision = '34d97cbc759e' from alembic import op import sqlalchemy as sa
22.740741
86
0.69544
24a25d7f1c86026e738c9065a462753437f8da59
3,520
py
Python
tests/test_forests.py
veneres/gef
07912d01040ca0169977ddd49839050c81ec2349
[ "MIT" ]
2
2022-02-16T08:02:15.000Z
2022-02-16T13:07:53.000Z
tests/test_forests.py
veneres/gef
07912d01040ca0169977ddd49839050c81ec2349
[ "MIT" ]
null
null
null
tests/test_forests.py
veneres/gef
07912d01040ca0169977ddd49839050c81ec2349
[ "MIT" ]
null
null
null
# simple script to create and load test forests for LightGBM, skLearn and XGBoost from typing import Tuple import numpy import numpy as np import os from gamexplainer.datasets import dataset_from_fun, fun_interaction import matplotlib.pyplot as plt import joblib import pandas as pd import lightgbm as lgbm from sklearn...
34.509804
118
0.707102
24a412413e36803f77e81c6d8b52524ead3e34b3
142
py
Python
app/models/Base.py
krisnantobi/flask-python
d0da39d7c7f6e6d3b35def6e61c658ef279811e9
[ "MIT" ]
null
null
null
app/models/Base.py
krisnantobi/flask-python
d0da39d7c7f6e6d3b35def6e61c658ef279811e9
[ "MIT" ]
null
null
null
app/models/Base.py
krisnantobi/flask-python
d0da39d7c7f6e6d3b35def6e61c658ef279811e9
[ "MIT" ]
null
null
null
from mongoengine.document import Document
23.666667
41
0.640845
24a55eced86573e218221a3b3467c66df61d5a29
461
py
Python
django_workflow_system/api/tests/factories/workflows/workflow_image.py
eikonomega/django-workflow-system
dc0e8807263266713d3d7fa46e240e8d72db28d1
[ "MIT" ]
2
2022-01-28T12:35:42.000Z
2022-03-23T16:06:05.000Z
django_workflow_system/api/tests/factories/workflows/workflow_image.py
eikonomega/django-workflow-system
dc0e8807263266713d3d7fa46e240e8d72db28d1
[ "MIT" ]
10
2021-04-27T20:26:32.000Z
2021-07-21T15:34:31.000Z
django_workflow_system/api/tests/factories/workflows/workflow_image.py
eikonomega/django-workflow-system
dc0e8807263266713d3d7fa46e240e8d72db28d1
[ "MIT" ]
1
2021-11-13T14:30:34.000Z
2021-11-13T14:30:34.000Z
import django_workflow_system.models as models from factory.django import DjangoModelFactory __all__ = ["WorkflowImageTypeFactory", "WorkflowImageFactory"]
25.611111
62
0.752711
24a61d233f3e2d9fe257f8cc2aa8bb5e7883863c
4,095
py
Python
scratch/check_bins.py
AdriJD/cmb_sst_ksw
635f0627a3c8a36c743cdf8955e3671352ab6d90
[ "MIT" ]
null
null
null
scratch/check_bins.py
AdriJD/cmb_sst_ksw
635f0627a3c8a36c743cdf8955e3671352ab6d90
[ "MIT" ]
null
null
null
scratch/check_bins.py
AdriJD/cmb_sst_ksw
635f0627a3c8a36c743cdf8955e3671352ab6d90
[ "MIT" ]
null
null
null
''' Test binning ''' import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt import sys import os import numpy as np from scipy.special import spherical_jn sys.path.insert(0,'./../') from sst import Fisher opj = os.path.join def bin_test(parity, bins=None, lmin=2, lmax=23): ''' Init bins, run...
37.227273
90
0.406349
24a9d193850ef9de315e00eae6af3dbda90f9774
2,025
py
Python
tests/test_create_color.py
Nazime/coloring
4e519a5b440bb4af628048ec9cef2b8698128db6
[ "MIT" ]
22
2020-07-28T19:45:32.000Z
2022-03-09T04:48:51.000Z
tests/test_create_color.py
Nazime/coloring
4e519a5b440bb4af628048ec9cef2b8698128db6
[ "MIT" ]
null
null
null
tests/test_create_color.py
Nazime/coloring
4e519a5b440bb4af628048ec9cef2b8698128db6
[ "MIT" ]
1
2021-11-12T19:23:59.000Z
2021-11-12T19:23:59.000Z
import pytest from coloring import create_color from coloring.consts import *
25
88
0.665185
24aa006d233c620b0597e9f7761d173920a6910a
4,439
py
Python
abitly/tests/link/test_bp.py
AlexisNava/ABitly-Services
5fd0edb4ea9ec64b058a616d64965674480023e3
[ "Apache-2.0" ]
null
null
null
abitly/tests/link/test_bp.py
AlexisNava/ABitly-Services
5fd0edb4ea9ec64b058a616d64965674480023e3
[ "Apache-2.0" ]
null
null
null
abitly/tests/link/test_bp.py
AlexisNava/ABitly-Services
5fd0edb4ea9ec64b058a616d64965674480023e3
[ "Apache-2.0" ]
null
null
null
import pytest from flask import json # Flask App from abitly import create_app def test_create_link_should_responds_created(client): """Should responds Created when makes a request with a valid request body """ request_body = { 'originalUrl': 'https://discordapp.com/' } headers = { ...
33.126866
77
0.678531
24aa0ebbb2409847c48f11303a52becd3e107ff8
4,214
py
Python
server/rest/community.py
jjojala/results
bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f
[ "Apache-2.0" ]
null
null
null
server/rest/community.py
jjojala/results
bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f
[ "Apache-2.0" ]
7
2015-11-25T22:26:25.000Z
2016-10-18T22:14:35.000Z
server/rest/community.py
jjojala/results
bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from flask import request from flask_restful import Resource, reqparse from .notification import CREATED, UPDATED, PATCHED, REMOVED import rest.timeservice as timeservice from util.patch import patch, PatchConflict communities = [ ] _NOTIFICATION_ARG = "notifications" _API_ARG = "api" _TYPE =...
36.964912
90
0.451115
24aa3f1a556ebd529138ea8d6ade589932df4c02
11,875
py
Python
global_resources/models.py
Stephen-X/grumblr-microblogging
a01a22d31d9d4d37bce8acd092880ef2ed3f1e1e
[ "MIT" ]
1
2020-02-19T23:58:41.000Z
2020-02-19T23:58:41.000Z
global_resources/models.py
Stephen-X/grumblr-microblogging
a01a22d31d9d4d37bce8acd092880ef2ed3f1e1e
[ "MIT" ]
7
2020-02-11T21:44:51.000Z
2021-09-07T23:36:39.000Z
global_resources/models.py
Stephen-X/grumblr-microblogging
a01a22d31d9d4d37bce8acd092880ef2ed3f1e1e
[ "MIT" ]
null
null
null
""" Global models for the grumblr site. Unfortunately we have to create a separate app for global models instead of putting it in the project directory ("grumblr_site"), as models can only be recognized by editing the "INSTALLED_APPS" setting. Remember to run <code>manage.py migrate</code> every time this file is mod...
42.109929
157
0.586274
24aa8f560b392033f0cda69c67e78410a3543017
8,039
py
Python
tests/test_003_pastastore.py
ArtesiaWater/pastastore
27a70b667bbb5a6dc657004430f419a45e2a0ed1
[ "MIT" ]
null
null
null
tests/test_003_pastastore.py
ArtesiaWater/pastastore
27a70b667bbb5a6dc657004430f419a45e2a0ed1
[ "MIT" ]
null
null
null
tests/test_003_pastastore.py
ArtesiaWater/pastastore
27a70b667bbb5a6dc657004430f419a45e2a0ed1
[ "MIT" ]
null
null
null
import os import warnings import numpy as np import pandas as pd import pastas as ps import pytest from numpy import allclose from pytest_dependency import depends with warnings.catch_warnings(): warnings.simplefilter(action="ignore", category=FutureWarning) import pastastore as pst def tes...
28.608541
78
0.66563
24aaa027a369814fc245e15cc638702d426aa217
429
py
Python
setup.py
3lLobo/embed
d77c2af78e88908afc5f81a1f681a9b3e4c5d6d6
[ "MIT" ]
1
2020-10-12T12:12:28.000Z
2020-10-12T12:12:28.000Z
setup.py
3lLobo/embed
d77c2af78e88908afc5f81a1f681a9b3e4c5d6d6
[ "MIT" ]
null
null
null
setup.py
3lLobo/embed
d77c2af78e88908afc5f81a1f681a9b3e4c5d6d6
[ "MIT" ]
1
2020-12-21T18:24:26.000Z
2020-12-21T18:24:26.000Z
from setuptools import setup setup(name='embed', version='0.1', description='Basic immplementation of knowledge graph embedding. ', url='https://github.com/pbloem/embed', author='Peter Bloem', author_email='embed@peterbloem.nl', license='MIT', packages=['embed'], install...
26.8125
73
0.58042
24acec681811db64e60da3851d4c18f5b44b73fe
9,193
py
Python
tests/test_mdp_sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
null
null
null
tests/test_mdp_sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
1
2021-06-02T16:55:33.000Z
2021-06-04T14:30:54.000Z
tests/test_mdp_sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
2
2021-03-22T14:46:49.000Z
2021-03-31T16:12:12.000Z
import os import sys import unittest # Make sure the path of the framework is included in the import path sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src/'))) # Framework imports from mdp import Sokoban, SokobanBuilder
39.454936
107
0.448602
24aef0b0ce3bfedb64766068a9e2f5bab3601df1
269
py
Python
pacote-download/ex014.py
LeticiaTr/Exerc-cios-em-Python
97f62ad36f958ce6f1386a55a7473adc85ddf415
[ "MIT" ]
null
null
null
pacote-download/ex014.py
LeticiaTr/Exerc-cios-em-Python
97f62ad36f958ce6f1386a55a7473adc85ddf415
[ "MIT" ]
null
null
null
pacote-download/ex014.py
LeticiaTr/Exerc-cios-em-Python
97f62ad36f958ce6f1386a55a7473adc85ddf415
[ "MIT" ]
null
null
null
#Escreva um programa que converta uma temperatura digitando em graus Celsius e converta para graus Fahrenheit. cels= float(input('Digite uma temperatura em Celsius ')) print (f'Sua temperatura em celsius {cels} na converso para Fahrenheit { cels * 1.8 + 32 :.2f}')
89.666667
110
0.765799
24af9833e7956b43907075b72979dec2f5e98119
3,709
py
Python
verificator.py
Adalann/verificator
7327a47e00ffcf04e2daff0c37240d60f1d98241
[ "MIT" ]
null
null
null
verificator.py
Adalann/verificator
7327a47e00ffcf04e2daff0c37240d60f1d98241
[ "MIT" ]
null
null
null
verificator.py
Adalann/verificator
7327a47e00ffcf04e2daff0c37240d60f1d98241
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import getopt import hashlib import os import platform import re import shutil import sys if __name__ == "__main__": try: opts, args = getopt.getopt(sys.argv[1:], "hu:p:", ["help", "url", "path"]) url = None path = None for opt, arg in opts: ...
27.072993
121
0.565921
24b074035a2ee27584cb43aeb963e311d3388a92
2,115
py
Python
dryxPython/htmlframework/code.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
2
2015-08-01T16:00:44.000Z
2017-02-24T21:06:50.000Z
dryxPython/htmlframework/code.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
null
null
null
dryxPython/htmlframework/code.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/bin/python # encoding: utf-8 """ *Code elements for TBS htmlframework* :Author: David Young :Date Created: April 16, 2013 :dryx syntax: - ``xxx`` = come back here and do some more work - ``_someObject`` = a 'private' object that should only be changed for debugging :Notes: - If you ...
29.375
97
0.35461
24b1ebe0c8d29dadb47ee2e8f6e7e3ae263e2517
1,577
py
Python
code/translate_to_2010_tracts.py
stuartlynn/census_2020_response_rates
8bb6c556c76340d0b5a1db9076265a10d39d9fc4
[ "Apache-2.0" ]
3
2020-04-07T15:42:32.000Z
2020-10-11T01:57:30.000Z
code/translate_to_2010_tracts.py
stuartlynn/NYC_Census_2020_response_rates
8bb6c556c76340d0b5a1db9076265a10d39d9fc4
[ "Apache-2.0" ]
3
2021-03-31T19:36:19.000Z
2021-12-13T20:36:02.000Z
code/translate_to_2010_tracts.py
stuartlynn/NYC_Census_2020_response_rates
8bb6c556c76340d0b5a1db9076265a10d39d9fc4
[ "Apache-2.0" ]
5
2020-04-05T01:14:36.000Z
2020-10-11T02:00:00.000Z
import pandas as pd import geopandas as gp from pathlib import Path import os ROOT_PATH = os.path.dirname(os.path.realpath(__file__)) if __name__ == '__main__': translate_counts_to_2010()
39.425
186
0.615726
24b1f9ec5f919bdb1ef1f683673501508c9b17c1
553
py
Python
benchmarks/query_benchmarks/query_dates/benchmark.py
deepakdinesh1123/actions
859455c8582f6e3fc4d65b7266163f4276d04127
[ "MIT" ]
null
null
null
benchmarks/query_benchmarks/query_dates/benchmark.py
deepakdinesh1123/actions
859455c8582f6e3fc4d65b7266163f4276d04127
[ "MIT" ]
null
null
null
benchmarks/query_benchmarks/query_dates/benchmark.py
deepakdinesh1123/actions
859455c8582f6e3fc4d65b7266163f4276d04127
[ "MIT" ]
null
null
null
from ...utils import bench_setup from .models import Book
34.5625
65
0.641953
24b2fdcbe73c1c9de863f5b3a7ead799978d1b4f
6,253
py
Python
examples/antlr2tlang/antlr2tlang.py
aeftimia/tlang
2ab4fb9b72dffd1dd0d394667d12ee8c1a3efcf8
[ "MIT" ]
null
null
null
examples/antlr2tlang/antlr2tlang.py
aeftimia/tlang
2ab4fb9b72dffd1dd0d394667d12ee8c1a3efcf8
[ "MIT" ]
null
null
null
examples/antlr2tlang/antlr2tlang.py
aeftimia/tlang
2ab4fb9b72dffd1dd0d394667d12ee8c1a3efcf8
[ "MIT" ]
null
null
null
# Transpile antlr4 spec into tlang import os import tlang from immutables import Map newline = tlang.Terminal("\n") not_newline = newline.inv() not_newlines = tlang.pgreedy(not_newline) whitespace = tlang.Terminal("\n") / " " / "\t" / "\r" / "\f" whitespaces = tlang.pgreedy(whitespace) remove_whitespaces = whit...
29.219626
82
0.657444
24b33fb8d27d7a568697a9e22bd1335447c19606
391
py
Python
tests/test_axial_att_block.py
Siyuan89/self-attention-cv
b39cde2fb68e05351bf3bc8048f4af13bbab256a
[ "MIT" ]
759
2021-02-11T12:49:04.000Z
2022-03-31T20:40:54.000Z
self-attention-cv-main/tests/test_axial_att_block.py
TJUdyk/renet
5d066e4e08e412b1f880c63743edfdb72bdc7138
[ "MIT" ]
14
2021-03-02T17:04:00.000Z
2022-03-21T09:34:30.000Z
self-attention-cv-main/tests/test_axial_att_block.py
TJUdyk/renet
5d066e4e08e412b1f880c63743edfdb72bdc7138
[ "MIT" ]
97
2021-02-11T23:47:23.000Z
2022-03-29T03:51:16.000Z
import torch from self_attention_cv import AxialAttentionBlock
30.076923
76
0.69821
24b3c94a85f034f08cfb324fe8395f252b2866af
4,866
py
Python
nb_strip_paths/__main__.py
bdice/nb-strip-paths
b76d0ebffae09fb320ffd68d02535921798b86fe
[ "MIT" ]
4
2021-02-09T21:35:37.000Z
2021-02-26T17:48:45.000Z
nb_strip_paths/__main__.py
bdice/nb-strip-paths
b76d0ebffae09fb320ffd68d02535921798b86fe
[ "MIT" ]
null
null
null
nb_strip_paths/__main__.py
bdice/nb-strip-paths
b76d0ebffae09fb320ffd68d02535921798b86fe
[ "MIT" ]
null
null
null
"""Strip user paths from Jupyter notebook.""" import json import os import re import sys from pathlib import Path from typing import Iterator, Mapping, Optional, Sequence from nb_strip_paths.cmdline import CLIArgs from nb_strip_paths.find_root import find_project_root EXCLUDES = ( r"/(" r"\.direnv|\.eggs|\.g...
26.883978
92
0.62536
24b62e0fc473c84a416b454f895c5c95bb5b4121
713
py
Python
bin/cat_main.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
1
2015-04-18T16:48:48.000Z
2015-04-18T16:48:48.000Z
bin/cat_main.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
bin/cat_main.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
# # Copyright Michael Groys, 2014 # import sys from bin_utils import * usage = "Usage: cat <file>..." if len(sys.argv) <= 1: files = ["-"] elif sys.argv[1] in ["-h", "--help"]: print usage sys.exit() else: files = sys.argv[1:] reopenFileInBinMode(sys.stdout) openMode = "rb" ...
19.805556
47
0.54979