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
1e350c126295c7a9490e115d40fcf878c26c63ed
5,756
py
Python
tutorials/01-basics/pytorch_basics/main.py
zhangyang1997/pytorch-tutorial
3d7dfb516ab8c3eaa99a81b448efc4a8aad10b11
[ "MIT" ]
null
null
null
tutorials/01-basics/pytorch_basics/main.py
zhangyang1997/pytorch-tutorial
3d7dfb516ab8c3eaa99a81b448efc4a8aad10b11
[ "MIT" ]
null
null
null
tutorials/01-basics/pytorch_basics/main.py
zhangyang1997/pytorch-tutorial
3d7dfb516ab8c3eaa99a81b448efc4a8aad10b11
[ "MIT" ]
null
null
null
import torch import torchvision import torch.nn as nn import numpy as np import torchvision.transforms as transforms # ================================================================== # # # # =============================================================...
25.469027
77
0.437109
1e35c32ef63c48b1ca0a41c93b46faa23eaeb61c
275
py
Python
tests/projects/flask1/main.py
mblackgeo/lambdarado_py
9a1e8538b569bbfdf0b0de11b42e97290812c826
[ "MIT" ]
4
2021-05-11T03:50:57.000Z
2022-01-20T14:20:44.000Z
tests/projects/flask1/main.py
mblackgeo/lambdarado_py
9a1e8538b569bbfdf0b0de11b42e97290812c826
[ "MIT" ]
1
2022-01-20T14:21:56.000Z
2022-01-20T14:22:54.000Z
tests/projects/flask1/main.py
mblackgeo/lambdarado_py
9a1e8538b569bbfdf0b0de11b42e97290812c826
[ "MIT" ]
1
2022-02-28T10:06:35.000Z
2022-02-28T10:06:35.000Z
from flask import Flask from lambdarado import start print("RUNNING main.py") start(get_app)
12.5
28
0.589091
1e39d91975ce69d2c9a8a4f9b337534b2818f717
30,006
py
Python
iati/tests/test_version.py
akmiller01/pyIATI
394bc8b62782bc5617603b1770bdaf73a718e1f2
[ "MIT" ]
5
2018-09-13T13:13:06.000Z
2021-09-28T15:54:39.000Z
iati/tests/test_version.py
akmiller01/pyIATI
394bc8b62782bc5617603b1770bdaf73a718e1f2
[ "MIT" ]
95
2017-10-19T13:16:41.000Z
2021-12-13T19:35:36.000Z
iati/tests/test_version.py
akmiller01/pyIATI
394bc8b62782bc5617603b1770bdaf73a718e1f2
[ "MIT" ]
5
2017-11-07T17:27:40.000Z
2019-06-25T16:20:16.000Z
"""A module containing tests for the pyIATI representation of Standard metadata.""" import copy import math import operator import pytest import iati.tests.utilities from iati.tests.fixtures.versions import iativer, semver, split_decimal, split_iativer, split_semver class TestVersionModification: """A container...
49.270936
213
0.724022
1e3b390506f4f42cc6868431a17b0ab8d24bbe9b
1,487
py
Python
006 - Simple Netcat Replacement/victim_client.py
Danziger/Pluralsight-Network-Penetration-Testing-Using-Python-and-Kali-Linux
040acfb55470f97a3a1c6e6d392cd0cdfc84eff8
[ "MIT" ]
5
2017-11-12T12:53:28.000Z
2020-11-02T06:16:45.000Z
006 - Simple Netcat Replacement/victim_client.py
cyborix/Pluralsight-Network-Penetration-Testing-Using-Python-and-Kali-Linux
5bcbc41889c6bd65aaad312b9b429dc189b8d0d1
[ "MIT" ]
null
null
null
006 - Simple Netcat Replacement/victim_client.py
cyborix/Pluralsight-Network-Penetration-Testing-Using-Python-and-Kali-Linux
5bcbc41889c6bd65aaad312b9b429dc189b8d0d1
[ "MIT" ]
6
2016-06-20T00:27:31.000Z
2019-02-14T14:28:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess import socket import argparse if __name__ == '__main__': main()
20.652778
103
0.612643
1e3c1dd9c86f7c8cf4c2d93e5bb0dcb96cc42bb8
7,801
py
Python
src/tests/test_inputCheck.py
retsilagracias/horoscope-cli
fcbaf11a4db21fcf609b480f9800943c8cc37815
[ "MIT" ]
null
null
null
src/tests/test_inputCheck.py
retsilagracias/horoscope-cli
fcbaf11a4db21fcf609b480f9800943c8cc37815
[ "MIT" ]
null
null
null
src/tests/test_inputCheck.py
retsilagracias/horoscope-cli
fcbaf11a4db21fcf609b480f9800943c8cc37815
[ "MIT" ]
null
null
null
from horoscopecli.inputCheck import validInputCategoryOption, validInputSign, validInputDateOption
31.840816
98
0.692475
1e3d93cbe8939102d52b6741448b666d75a4d165
1,080
py
Python
r_freeze/cli.py
tullur/r_freeze
e93f682d129ed47e6005df553ab170ede75cd688
[ "MIT" ]
1
2021-01-13T04:10:54.000Z
2021-01-13T04:10:54.000Z
r_freeze/cli.py
tullur/r_freeze
e93f682d129ed47e6005df553ab170ede75cd688
[ "MIT" ]
5
2020-10-03T14:07:40.000Z
2021-02-13T13:30:08.000Z
r_freeze/cli.py
tullur/r_freeze
e93f682d129ed47e6005df553ab170ede75cd688
[ "MIT" ]
1
2020-10-03T17:26:35.000Z
2020-10-03T17:26:35.000Z
"""Console script for r_freeze.""" import argparse import sys from r_freeze.r_freeze import get_packages, write_package_file def main(): """Console script for r_freeze.""" parser = argparse.ArgumentParser() parser.add_argument("dir", type=str, help="Directory to look for") parser.add_argument( ...
28.421053
72
0.644444
1e3ded7081e85b35a4fbf753c68286902ee63b1d
557
py
Python
develop/models/Token.py
zero-shubham/permissions_system
d9e882d9a5531e63790157054422f160c3b2dc3a
[ "MIT" ]
4
2020-08-06T14:40:30.000Z
2021-11-08T20:06:36.000Z
develop/models/Token.py
zero-shubham/permissions_system
d9e882d9a5531e63790157054422f160c3b2dc3a
[ "MIT" ]
null
null
null
develop/models/Token.py
zero-shubham/permissions_system
d9e882d9a5531e63790157054422f160c3b2dc3a
[ "MIT" ]
null
null
null
import sqlalchemy from application import metadata Token = sqlalchemy.Table( "tokens", metadata, sqlalchemy.Column("user_id", sqlalchemy.ForeignKey( '_ps_users.id', ondelete="CASCADE"), primary_key=True), sqlalchemy.Column("token", sqlalchemy.String(length=1000), nullable...
29.315789
64
0.666068
1e3e05a4d0ae3f4fac38d36e9b6a8e99175ebd6a
2,268
py
Python
deep_recommend/recommend/ctr/fm/fm.py
yingxinff-source/DeepRecSys
bf781e112492563631e89fb1fba3431601f1331c
[ "MIT" ]
null
null
null
deep_recommend/recommend/ctr/fm/fm.py
yingxinff-source/DeepRecSys
bf781e112492563631e89fb1fba3431601f1331c
[ "MIT" ]
null
null
null
deep_recommend/recommend/ctr/fm/fm.py
yingxinff-source/DeepRecSys
bf781e112492563631e89fb1fba3431601f1331c
[ "MIT" ]
null
null
null
""" @Description: Factorization Machines @version: @License: MIT @Author: Wang Yao @Date: 2020-12-03 18:01:05 @LastEditors: Wang Yao @LastEditTime: 2020-12-03 20:33:26 """ import tensorflow as tf from tensorflow.keras.layers import Layer from tensorflow.keras.models import Model from tensorflow.keras.metrics import AU...
33.352941
90
0.63448
1e4561bd0a6c402816c8ef1d8a3713895e1842df
2,037
py
Python
pyirf/irf/background.py
jsitarek/pyirf
c5dd8c09563e6074eab956d93049df9aa7828245
[ "MIT" ]
6
2021-03-02T13:50:49.000Z
2021-09-20T07:33:20.000Z
pyirf/irf/background.py
jsitarek/pyirf
c5dd8c09563e6074eab956d93049df9aa7828245
[ "MIT" ]
168
2020-05-20T12:25:13.000Z
2022-03-10T12:54:10.000Z
pyirf/irf/background.py
jsitarek/pyirf
c5dd8c09563e6074eab956d93049df9aa7828245
[ "MIT" ]
19
2020-05-27T17:06:52.000Z
2021-11-26T14:53:38.000Z
import astropy.units as u import numpy as np from ..utils import cone_solid_angle #: Unit of the background rate IRF BACKGROUND_UNIT = u.Unit('s-1 TeV-1 sr-1') def background_2d(events, reco_energy_bins, fov_offset_bins, t_obs): """ Calculate background rates in radially symmetric bins in the field of view....
34.525424
103
0.691703
1e45a7b508c34e99dfc2f6db040d93b78f1ec5f8
2,637
py
Python
flaskapp1.py
aamazie/RSSReader1
8b17007a8976bbd67cb47bb684cd74bb91cd4b20
[ "MIT" ]
null
null
null
flaskapp1.py
aamazie/RSSReader1
8b17007a8976bbd67cb47bb684cd74bb91cd4b20
[ "MIT" ]
null
null
null
flaskapp1.py
aamazie/RSSReader1
8b17007a8976bbd67cb47bb684cd74bb91cd4b20
[ "MIT" ]
null
null
null
import feedparser, redis from flask import Flask, render_template from flask_caching import Cache config = { "DEBUG": False, # some Flask specific configs "CACHE_TYPE": "redis", # Flask-Caching related configs "CACHE_DEFAULT_TIMEOUT": 300 } app = Flask(__name__) app.config.from_mapping(c...
36.123288
158
0.697383
1e46eb8e3ba2d18143073b54d12710fbb6774894
204
py
Python
rex/rechunk_h5/__init__.py
psusmars/rex
1891e1e41f899e5f479545ff8d8e9fc76a1929e6
[ "BSD-3-Clause" ]
8
2020-11-18T19:42:55.000Z
2022-01-12T04:24:05.000Z
rex/rechunk_h5/__init__.py
psusmars/rex
1891e1e41f899e5f479545ff8d8e9fc76a1929e6
[ "BSD-3-Clause" ]
57
2020-05-01T14:33:34.000Z
2022-02-18T17:52:49.000Z
rex/rechunk_h5/__init__.py
psusmars/rex
1891e1e41f899e5f479545ff8d8e9fc76a1929e6
[ "BSD-3-Clause" ]
4
2020-08-20T16:46:15.000Z
2022-02-22T19:46:23.000Z
# -*- coding: utf-8 -*- """ .h5 rechunking tool """ from .chunk_size import ArrayChunkSize, TimeseriesChunkSize from .combine_h5 import CombineH5 from .rechunk_h5 import RechunkH5, get_dataset_attributes
25.5
59
0.779412
1e47243cc9af97ba63a1e8a1f03dd63d9afbf94d
6,419
py
Python
db/one_hour_candle_db.py
SpiralDevelopment/RSI-divergence-detector
de88eea98d002fa86d28d96ef1f4e9e3349632ac
[ "MIT" ]
7
2022-03-23T14:44:23.000Z
2022-03-31T10:44:44.000Z
db/one_hour_candle_db.py
b1nhm1nh/RSI-divergence-detector
de88eea98d002fa86d28d96ef1f4e9e3349632ac
[ "MIT" ]
null
null
null
db/one_hour_candle_db.py
b1nhm1nh/RSI-divergence-detector
de88eea98d002fa86d28d96ef1f4e9e3349632ac
[ "MIT" ]
1
2022-03-26T08:04:15.000Z
2022-03-26T08:04:15.000Z
import pymysql import pandas as pd import logging import traceback logger = logging.getLogger(__name__) TABLE_CANDLE_PATTERN = "CREATE TABLE IF NOT EXISTS {table}(" \ " id int(11) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, " \ " time DATETIME UNIQUE," \ ...
35.464088
114
0.458794
1e4760c42d92eb8588629d5fa0d2b93b95e12c74
178
py
Python
etc/ChokudaiSpeedrun002/f.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
3
2019-06-25T06:17:38.000Z
2019-07-13T15:18:51.000Z
etc/ChokudaiSpeedrun002/f.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
etc/ChokudaiSpeedrun002/f.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
N = int(input()) A, B = ( zip(*(map(int, input().split()) for _ in range(N))) if N else ((), ()) ) ans = len({(min(a, b), max(a, b)) for a, b in zip(A, B)}) print(ans)
17.8
65
0.477528
1e4852f9f102bcb68ed58fe7a5a38d41a0ac662d
439
py
Python
app/serializer.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
app/serializer.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
app/serializer.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import News, User
24.388889
50
0.687927
1e4bd3839eab345fc45832ae908f28c4ea53ff3c
1,052
py
Python
edmunds/profiler/drivers/basedriver.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
4
2017-09-07T13:39:50.000Z
2018-05-31T16:14:50.000Z
edmunds/profiler/drivers/basedriver.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
103
2017-03-19T15:58:21.000Z
2018-07-11T20:36:17.000Z
edmunds/profiler/drivers/basedriver.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
2
2017-10-14T15:20:11.000Z
2018-04-20T09:55:44.000Z
from edmunds.globals import abc, ABC
30.057143
79
0.495247
1e4d08a3857894ad1e97df4d555dfd3f9fe6e16d
707
py
Python
circles/migrations/0014_auto_20200506_2128.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-04-30T16:19:33.000Z
2020-04-30T16:19:33.000Z
circles/migrations/0014_auto_20200506_2128.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
43
2020-05-01T23:48:01.000Z
2022-03-12T00:35:32.000Z
circles/migrations/0014_auto_20200506_2128.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-05-04T20:07:16.000Z
2020-05-04T20:07:16.000Z
# Generated by Django 3.0.6 on 2020-05-06 19:28 from django.conf import settings from django.db import migrations, models
30.73913
78
0.729844
1e4e265f4b5185e301756bee8b6f5969431615cb
567
py
Python
tests/test_application.py
aibotsoft/python-micro-template
f3f5f10e6b898a8a1f90884f32e7788106968971
[ "MIT" ]
null
null
null
tests/test_application.py
aibotsoft/python-micro-template
f3f5f10e6b898a8a1f90884f32e7788106968971
[ "MIT" ]
null
null
null
tests/test_application.py
aibotsoft/python-micro-template
f3f5f10e6b898a8a1f90884f32e7788106968971
[ "MIT" ]
null
null
null
import pytest from starlette.testclient import TestClient from main import app client = TestClient(app)
27
66
0.684303
1e4f422ab5c25cb00d8aea3348b3be2a94dfde12
9,773
py
Python
test.py
tesaho/vehicle_tracking
aa88982ca24a325c3cf678fd696a63fa7444514b
[ "MIT" ]
3
2020-04-26T05:48:33.000Z
2022-01-21T11:59:40.000Z
test.py
tesaho/vehicle_tracking
aa88982ca24a325c3cf678fd696a63fa7444514b
[ "MIT" ]
null
null
null
test.py
tesaho/vehicle_tracking
aa88982ca24a325c3cf678fd696a63fa7444514b
[ "MIT" ]
null
null
null
from __future__ import division from models import Darknet from utils.utils import * from utils.data_loader import * from utils.parse_config import * from terminaltables import AsciiTable import os import time import argparse import json import pandas as pd import torch from torch.utils.data import DataLoader from to...
41.944206
121
0.596951
1e4ff65181755cf22c2236500e498e5141c9d0c1
349
py
Python
src/secrets.template.py
Inciclopedia/status-monitors
8eec2b548311b3be2f7b6cac5112d9ba2dedb98e
[ "BSD-3-Clause" ]
null
null
null
src/secrets.template.py
Inciclopedia/status-monitors
8eec2b548311b3be2f7b6cac5112d9ba2dedb98e
[ "BSD-3-Clause" ]
null
null
null
src/secrets.template.py
Inciclopedia/status-monitors
8eec2b548311b3be2f7b6cac5112d9ba2dedb98e
[ "BSD-3-Clause" ]
null
null
null
URLS = [ "url1" ] STATUSPAGE_API_KEY = "" STATUSPAGE_PAGE_ID = "" STATUSPAGE_METRICS = { "url": "metric_id" } STATUSPAGE_COMPONENTS = { "url": "component_id" } PING_WEBHOOKS = [] STATUS_WEBHOOKS = [] ESCALATION_IDS = [] POLL_TIME = 60 OUTAGE_CHANGE_AFTER = 10 DRY_MODE = False DEGRADED_PERFORMANCE_TARGET_PIN...
17.45
38
0.713467
1e504a5b5c5d4acfa54f1f3b5a915886ad803336
510
py
Python
app.py
andrequeiroz2/api-tags
ccc84c6b1ca5a6f907ea4c36db49a763c7d50445
[ "MIT" ]
null
null
null
app.py
andrequeiroz2/api-tags
ccc84c6b1ca5a6f907ea4c36db49a763c7d50445
[ "MIT" ]
null
null
null
app.py
andrequeiroz2/api-tags
ccc84c6b1ca5a6f907ea4c36db49a763c7d50445
[ "MIT" ]
null
null
null
import os from flask import Flask from tags import database from tags.api.tags.tags_route import init_tags_api from flask_restful import Api
19.615385
87
0.647059
1e5268950470311876f7f86a137de61245cf0a46
12,443
py
Python
venv/Lib/site-packages/pymessenger/bot.py
shivamsahni/Bot-to-live
7b02e02012965bae873ae042aafe0ba76e12e7f5
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pymessenger/bot.py
shivamsahni/Bot-to-live
7b02e02012965bae873ae042aafe0ba76e12e7f5
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pymessenger/bot.py
shivamsahni/Bot-to-live
7b02e02012965bae873ae042aafe0ba76e12e7f5
[ "Apache-2.0" ]
null
null
null
import json import requests from requests_toolbelt import MultipartEncoder from pymessenger.graph_api import FacebookGraphApi import pymessenger.utils as utils
32.831135
102
0.486699
1e52d79750e18e2bd4ae1e73601136e17e9b15a7
862
py
Python
tests/test_delete.py
ppinard/dataclasses-sql
8f2eeaf090887985f8fd9853adb763883906bed6
[ "MIT" ]
4
2020-08-17T21:24:58.000Z
2021-06-28T19:27:37.000Z
tests/test_delete.py
adsharma/dataclasses-sql
f2b1a7e0e63a0dc5a46713c12972aac4009436a6
[ "MIT" ]
3
2020-06-07T16:00:50.000Z
2020-11-02T01:44:09.000Z
tests/test_delete.py
adsharma/dataclasses-sql
f2b1a7e0e63a0dc5a46713c12972aac4009436a6
[ "MIT" ]
2
2020-11-02T01:37:52.000Z
2020-11-21T05:43:42.000Z
"""""" # Standard library modules. # Third party modules. import pytest import sqlalchemy # Local modules. import dataclasses_sql # Globals and constants variables.
21.02439
64
0.708817
1e5388a338ee79c0983e77ee1bfcd18dd8023b2e
244
py
Python
codigo/Live171/exemplo_04.py
BrunoPontesLira/live-de-python
da6e463a89ed90d9efaa1c34088ab6460e949de1
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live171/exemplo_04.py
BrunoPontesLira/live-de-python
da6e463a89ed90d9efaa1c34088ab6460e949de1
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live171/exemplo_04.py
BrunoPontesLira/live-de-python
da6e463a89ed90d9efaa1c34088ab6460e949de1
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
d = {'a': 1, 'c': 3} match d: case {'a': chave_a, 'b': _}: print(f'chave A {chave_a=} + chave B') case {'a': _} | {'c': _}: print('chave A ou C') case {}: print('vazio') case _: print('No sei')
20.333333
46
0.418033
1e53dd376aaf61514bd9d98d45793bfdafdb09eb
2,204
py
Python
vb2py/PythonCard/samples/multicolumnexample/multicolumnexample.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/samples/multicolumnexample/multicolumnexample.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/samples/multicolumnexample/multicolumnexample.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
{ 'application':{ 'type':'Application', 'name':'MulticolumnExample', 'backgrounds': [ { 'type':'Background', 'name':'bgMulticolumnExample', 'title':'Multicolumn Example PythonCard Application', 'size':( 620, 500 ), 'menubar': { 'type':'MenuBar', 'menus': ...
19.504425
57
0.4451
1e53fed9bc34f67fcde5d88e2788fc25426657d8
326
py
Python
Data_Science/grafico-bar-evitar.py
maledicente/cursos
00ace48da7e48b04485e4ca97b3ca9ba5f33a283
[ "MIT" ]
1
2021-05-03T22:59:38.000Z
2021-05-03T22:59:38.000Z
Data_Science/grafico-bar-evitar.py
maledicente/cursos
00ace48da7e48b04485e4ca97b3ca9ba5f33a283
[ "MIT" ]
null
null
null
Data_Science/grafico-bar-evitar.py
maledicente/cursos
00ace48da7e48b04485e4ca97b3ca9ba5f33a283
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt mentions = [500, 505] years = [2013, 2014] plt.bar([2012.6, 2013.6], mentions, 0.8) plt.xticks(years) plt.ylabel("# de vezes que ouvimos algum dizer 'data science'") plt.ticklabel_format(useOffset=False) plt.axis([2012.5,2014.5,499,506]) plt.title("Olhe o Grande Aumento!") plt.s...
23.285714
64
0.720859
1e54324c83d7632c21e244fadff2630d67738ec7
652
py
Python
tests/_utils/uniqueue.py
ssfdust/smorest-sfs
139f6817989ab041c81761d183169de20a26597e
[ "Apache-2.0" ]
8
2020-05-11T07:11:03.000Z
2022-03-25T01:58:18.000Z
tests/_utils/uniqueue.py
ssfdust/smorest-sfs
139f6817989ab041c81761d183169de20a26597e
[ "Apache-2.0" ]
null
null
null
tests/_utils/uniqueue.py
ssfdust/smorest-sfs
139f6817989ab041c81761d183169de20a26597e
[ "Apache-2.0" ]
2
2020-05-11T03:53:38.000Z
2021-03-25T01:11:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import annotations import queue from typing import TYPE_CHECKING, TypeVar T = TypeVar("T") if TYPE_CHECKING: SimpleQueue = queue.SimpleQueue else:
20.375
68
0.654908
1e55b79a5473e9aecdfba3270696b5d5cc02b816
629
py
Python
udp-client.py
fionahiklas/udp-broadcast-examples
c5a2ccee8cd567eed688dd5bb0838f6db937ffcc
[ "MIT" ]
null
null
null
udp-client.py
fionahiklas/udp-broadcast-examples
c5a2ccee8cd567eed688dd5bb0838f6db937ffcc
[ "MIT" ]
null
null
null
udp-client.py
fionahiklas/udp-broadcast-examples
c5a2ccee8cd567eed688dd5bb0838f6db937ffcc
[ "MIT" ]
null
null
null
import socket, traceback host = '255.255.255.255' # Bind to all interfaces port = 2081 print "Creating socker on port: ", port s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #print "Setting REUSEADDR option" #s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) print "Setting ...
22.464286
79
0.685215
1e5a8715bccc107087af7b2797ee7c1fb9b9b2a5
634
py
Python
tournament.py
maxhuebner/scrim-tool
0babe8e25adcf8ee4f9a0d49f17c983c04cfff72
[ "MIT" ]
1
2022-03-25T10:39:37.000Z
2022-03-25T10:39:37.000Z
tournament.py
maxhuebner/scrim-tool
0babe8e25adcf8ee4f9a0d49f17c983c04cfff72
[ "MIT" ]
null
null
null
tournament.py
maxhuebner/scrim-tool
0babe8e25adcf8ee4f9a0d49f17c983c04cfff72
[ "MIT" ]
null
null
null
import requests import os from dotenv import load_dotenv load_dotenv() RITO_API = os.getenv('RITO_API')
25.36
121
0.705047
1e5bac36fdef3169b96c9187c9f1835382b15650
1,015
py
Python
imdb_id.py
chethan25/tv-series-file-renamer
75f306c5fa789461d0fc3fb5ecd840f796341a6d
[ "MIT" ]
null
null
null
imdb_id.py
chethan25/tv-series-file-renamer
75f306c5fa789461d0fc3fb5ecd840f796341a6d
[ "MIT" ]
null
null
null
imdb_id.py
chethan25/tv-series-file-renamer
75f306c5fa789461d0fc3fb5ecd840f796341a6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Module to get imdb id of the tv series using omdbapi """ import json import requests from main import tv_series_name # Omdbapi website url url = f'https://www.omdbapi.com/?t={tv_series_name}&apikey=f64b87dd' headers = { 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0)\ ...
29
69
0.724138
1e5c414c9596bddab6137c7c0d788734d49dba78
2,653
py
Python
web/tracker/models.py
webisteme/punkmoney
79253f8a37c80789e22c5c63eb6c88ccade61286
[ "MIT" ]
1
2018-10-01T11:41:57.000Z
2018-10-01T11:41:57.000Z
web/tracker/models.py
webisteme/punkmoney
79253f8a37c80789e22c5c63eb6c88ccade61286
[ "MIT" ]
null
null
null
web/tracker/models.py
webisteme/punkmoney
79253f8a37c80789e22c5c63eb6c88ccade61286
[ "MIT" ]
null
null
null
from django.db import models
42.111111
73
0.720694
1e5cbd933bc42956551bf162c1843d5c031ddb90
3,041
py
Python
scanner/sample_port_scanner.py
andradjp/hacktools
912d09eaa9c39bff20606c0653a1e7f83507d80c
[ "MIT" ]
null
null
null
scanner/sample_port_scanner.py
andradjp/hacktools
912d09eaa9c39bff20606c0653a1e7f83507d80c
[ "MIT" ]
null
null
null
scanner/sample_port_scanner.py
andradjp/hacktools
912d09eaa9c39bff20606c0653a1e7f83507d80c
[ "MIT" ]
null
null
null
#! /usr/bin/python3 """ __Version__: 0.1 __Author__: Joo Paulo Andrade Data: 15/02/2020 Description: Sample scrip for scan host ports with only buit-in functions This code just works with addresses of v4 family. Python 3.x """ # Import modules import socket import sys import errno import os import argparse import ipad...
38.987179
120
0.571851
1e5d0515db94e5b2af48b2083b8a5e93feb06991
101
py
Python
Python_Network_Automation_II/chapter15_codes/print_hello_friend.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
Python_Network_Automation_II/chapter15_codes/print_hello_friend.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
Python_Network_Automation_II/chapter15_codes/print_hello_friend.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
#print_hello_friend.py from datetime import datetime print(datetime.now()) print("G'day Mate!")
20.2
30
0.742574
1e5d1f030ef487f5a8c16a40984905085d52689d
978
py
Python
kamera.py
ThomasHangstoerfer/pyHomeCtrl
0a52512308bb0e13eb110543c04030889af341ac
[ "Apache-2.0" ]
null
null
null
kamera.py
ThomasHangstoerfer/pyHomeCtrl
0a52512308bb0e13eb110543c04030889af341ac
[ "Apache-2.0" ]
2
2021-02-08T20:34:10.000Z
2021-06-02T00:29:53.000Z
kamera.py
ThomasHangstoerfer/pyHomeCtrl
0a52512308bb0e13eb110543c04030889af341ac
[ "Apache-2.0" ]
null
null
null
from kivy.app import App from kivy.lang import Builder from kivy.uix.boxlayout import BoxLayout import time Builder.load_string(''' <CameraClick>: orientation: 'vertical' Camera: id: camera resolution: (640, 480) play: False ToggleButton: text: 'Play' on_press: camer...
21.26087
62
0.603272
1e62e34a7efe456d41a5eeb8545478b39db4767e
6,612
py
Python
sionna/channel/apply_time_channel.py
NVlabs/sionna
488e6c3ff6ff2b3313d0ca0f94e4247b8dd6ff35
[ "Apache-2.0" ]
163
2022-03-22T19:47:47.000Z
2022-03-31T23:56:45.000Z
sionna/channel/apply_time_channel.py
Maryammhsnv/sionna
527d0f7866b379afffad34a6bef7ed3bf6f33ad2
[ "Apache-2.0" ]
2
2022-03-24T12:43:07.000Z
2022-03-29T07:17:16.000Z
sionna/channel/apply_time_channel.py
Maryammhsnv/sionna
527d0f7866b379afffad34a6bef7ed3bf6f33ad2
[ "Apache-2.0" ]
19
2022-03-23T02:31:22.000Z
2022-03-30T06:35:12.000Z
# # SPDX-FileCopyrightText: Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # """Layer for applying channel responses to channel inputs in the time domain""" import tensorflow as tf import numpy as np import scipy from sionna.utils import insert_di...
39.831325
154
0.611313
1e636172e223fdc1a10ed1f86beeb2c089a9b7dd
104
py
Python
yolox_backbone/utils/utils.py
developer0hye/YOLOX-Backbone
83c4c2d7eff2dafb6aaffcc59bdce10b8e209fb4
[ "Apache-2.0" ]
20
2021-08-13T05:02:00.000Z
2022-03-11T07:53:18.000Z
yolox_backbone/utils/utils.py
developer0hye/YOLOX-Backbone
83c4c2d7eff2dafb6aaffcc59bdce10b8e209fb4
[ "Apache-2.0" ]
1
2021-09-15T12:00:32.000Z
2021-09-16T22:21:23.000Z
yolox_backbone/utils/utils.py
developer0hye/YOLOX-Backbone
83c4c2d7eff2dafb6aaffcc59bdce10b8e209fb4
[ "Apache-2.0" ]
4
2021-08-21T03:51:28.000Z
2021-11-01T07:46:00.000Z
from urllib import request
26
38
0.798077
1e640e2c7cee849ccd241323b8eb0dced4faf828
7,811
py
Python
testfore.py
eearrth/projectTelecom-4T
3c776a1c6b4f744517ffe13bd97c3076847ce86d
[ "BSD-2-Clause" ]
null
null
null
testfore.py
eearrth/projectTelecom-4T
3c776a1c6b4f744517ffe13bd97c3076847ce86d
[ "BSD-2-Clause" ]
null
null
null
testfore.py
eearrth/projectTelecom-4T
3c776a1c6b4f744517ffe13bd97c3076847ce86d
[ "BSD-2-Clause" ]
null
null
null
import time import numpy as np import pickle from numpy import * from matplotlib import * from scipy.io import * from sklearn.metrics import mean_squared_error from pylab import * t = time.time() from itertools import chain # function Normalize #seterr(divide='ignore', invalid='ignore') # rescale of TEC function ####...
28.097122
120
0.593394
1e644cef7cba4c85e3f86b90cf0dc4c1d1385fb4
1,196
py
Python
boxplots.py
wrightaprilm/plaus
ace7e008fc76f83d75e2219a2cb9ed2ddf776775
[ "MIT" ]
null
null
null
boxplots.py
wrightaprilm/plaus
ace7e008fc76f83d75e2219a2cb9ed2ddf776775
[ "MIT" ]
null
null
null
boxplots.py
wrightaprilm/plaus
ace7e008fc76f83d75e2219a2cb9ed2ddf776775
[ "MIT" ]
null
null
null
import pandas as pd import os import re import dendropy from dendropy.utility.fileutils import find_files import matplotlib.pyplot as plt plt.style.use('ggplot') default = pd.read_csv('./d.csv') uniform = pd.read_csv('./1.csv') exp = pd.read_csv('./e.csv') fixed = pd.read_csv('./2.csv') uniform.columns = ['a','uni', ...
30.666667
86
0.658863
1e645c13a0829341024ad7a9c2cc7fd0efc82650
556
py
Python
src/transitions/sudden.py
Addono/TekniBridge
5411f6ae7903ac9383e11e9e3e42895862dbe955
[ "BSD-2-Clause" ]
null
null
null
src/transitions/sudden.py
Addono/TekniBridge
5411f6ae7903ac9383e11e9e3e42895862dbe955
[ "BSD-2-Clause" ]
null
null
null
src/transitions/sudden.py
Addono/TekniBridge
5411f6ae7903ac9383e11e9e3e42895862dbe955
[ "BSD-2-Clause" ]
null
null
null
from typing import List from led import Led from transitions import AbstractTransition
26.47619
70
0.697842
1e64ce0f434fa8c4560c935663521ee4a611d5c4
51
py
Python
ktrain/graph/stellargraph/version.py
happy-machine/ktrain
221e7ce91f8cfdc280fc733083e901fcedb9f7e5
[ "MIT" ]
null
null
null
ktrain/graph/stellargraph/version.py
happy-machine/ktrain
221e7ce91f8cfdc280fc733083e901fcedb9f7e5
[ "MIT" ]
null
null
null
ktrain/graph/stellargraph/version.py
happy-machine/ktrain
221e7ce91f8cfdc280fc733083e901fcedb9f7e5
[ "MIT" ]
null
null
null
# Global version information __version__ = "0.7.2"
17
28
0.745098
1e6550da3a7499c75d7cd365b082b1c51bbaa97e
1,421
py
Python
network.py
jackwang0108/mnist
8d3740f86aac804519a60b94d92783742febfa27
[ "MIT" ]
1
2022-03-22T09:34:18.000Z
2022-03-22T09:34:18.000Z
network.py
jackwang0108/LeNet
8d3740f86aac804519a60b94d92783742febfa27
[ "MIT" ]
null
null
null
network.py
jackwang0108/LeNet
8d3740f86aac804519a60b94d92783742febfa27
[ "MIT" ]
null
null
null
import torch import torch.nn as nn if __name__ == "__main__": LeNet()
34.658537
103
0.581985
1e657c2e5f863e3999265f3d0441a87d13476271
3,410
py
Python
2015/21/solve.py
lamperi/aoc
1781dcbac0be18a086c10a9b76fb6a2d3595523c
[ "MIT" ]
null
null
null
2015/21/solve.py
lamperi/aoc
1781dcbac0be18a086c10a9b76fb6a2d3595523c
[ "MIT" ]
null
null
null
2015/21/solve.py
lamperi/aoc
1781dcbac0be18a086c10a9b76fb6a2d3595523c
[ "MIT" ]
null
null
null
import operator as op import itertools with open("input.txt") as file: data = file.read() shop = """Weapons: Cost Damage Armor Dagger 8 4 0 Shortsword 10 5 0 Warhammer 25 6 0 Longsword 40 7 0 Greataxe 74 8 0 Armor: Cost Damage Armor...
34.795918
192
0.580059
1e660f5d2460327ad9c421563dc4a94eb1209172
5,678
py
Python
main.py
rtli/AccountBook
55fc783f71edb4931057d81157de82abc897fb07
[ "MIT" ]
null
null
null
main.py
rtli/AccountBook
55fc783f71edb4931057d81157de82abc897fb07
[ "MIT" ]
null
null
null
main.py
rtli/AccountBook
55fc783f71edb4931057d81157de82abc897fb07
[ "MIT" ]
null
null
null
import sys import os from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox, QDialog from PyQt5.QtCore import pyqtSignal from mainUi import Ui_Form from sortUi import sortUi from functools import partial import csvIssue if __name__ == "__main__": app = QApplication(sys.argv) myWin = MyMainForm(...
34.412121
79
0.589468
1e66c677ddf91468564650a9956d8af23cde2f1e
347
py
Python
back-end/src/handler/util/user_util_test.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
1
2022-03-13T04:24:00.000Z
2022-03-13T04:24:00.000Z
back-end/src/handler/util/user_util_test.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
back-end/src/handler/util/user_util_test.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
import unittest import uuid from . import user_util
23.133333
74
0.654179
1e678c3dc5352fc822740f8558e00375177acaa0
1,284
py
Python
ex042.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
ex042.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
ex042.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
# Refaa o desafio 035, acrescentando o recurso de mostrar que # tipo de tringulo ser formado: # - Equiltero: todos os lados iguais; # - Issceles: dois lados iguais; # - Escaleno: todos os lados diferentes. n1 = float(input('\033[34mMedida 1:\033[m ')) n2 = float(input('\033[31mMedida 2:\033[m ')) n3 = float(input('\033...
42.8
83
0.641745
1e698dcbf8b39e78eb99dae57a10881a374d2261
10,371
py
Python
yamtbx/dataproc/xds/xds_inp.py
harumome/kamo
060e6fbd9c5a30f86065cec7807ad3449027607e
[ "BSD-3-Clause" ]
null
null
null
yamtbx/dataproc/xds/xds_inp.py
harumome/kamo
060e6fbd9c5a30f86065cec7807ad3449027607e
[ "BSD-3-Clause" ]
null
null
null
yamtbx/dataproc/xds/xds_inp.py
harumome/kamo
060e6fbd9c5a30f86065cec7807ad3449027607e
[ "BSD-3-Clause" ]
null
null
null
""" (c) RIKEN 2015. All rights reserved. Author: Keitaro Yamashita This software is released under the new BSD License; see LICENSE. """ import os from yamtbx.dataproc import XIO from yamtbx.dataproc import cbf from yamtbx.dataproc.dataset import group_img_files_template # sensor_thickness_from_minicbf() # Referenc...
41.650602
101
0.686819
1e69c10ab3de38e681f2016898b847891518fb92
20,323
py
Python
servicecheckerdb2prometheus.py
bitsofinfo/swarm-traefik-state-analyzer
94166ee7e47f894aef53cf7a07722236658a0603
[ "Apache-2.0" ]
6
2018-05-21T15:44:33.000Z
2021-12-24T00:58:00.000Z
servicecheckerdb2prometheus.py
bitsofinfo/swarm-traefik-state-analyzer
94166ee7e47f894aef53cf7a07722236658a0603
[ "Apache-2.0" ]
1
2018-09-02T13:38:53.000Z
2018-09-02T13:38:53.000Z
servicecheckerdb2prometheus.py
bitsofinfo/swarm-traefik-state-analyzer
94166ee7e47f894aef53cf7a07722236658a0603
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from prometheus_client import start_http_server, Summary import random import argparse import time from prometheus_client import Counter from prometheus_client import Gauge from prometheus_client import Summary from prometheus_client import Histogram import sys import time import json import date...
44.567982
350
0.623874
1e6a919db6af8a314f38fe0572122cd620fabbd1
1,007
py
Python
coins.py
bmtgoncalves/UDD
db47ed29dc9462b3445b5567e86d612538cf5b3a
[ "MIT" ]
8
2017-09-07T16:01:08.000Z
2018-08-29T10:45:47.000Z
coins.py
bmtgoncalves/UDD
db47ed29dc9462b3445b5567e86d612538cf5b3a
[ "MIT" ]
4
2019-08-21T02:31:35.000Z
2022-02-26T04:38:11.000Z
coins.py
bmtgoncalves/IFISC2017
648a00ed38d98ab7581c6af857606c6fa9c0e41f
[ "MIT" ]
null
null
null
#!/usr/bin/env pythonw import numpy as np import matplotlib.pyplot as plt plt.plot(np.arange(100)/float(100), flip_coins(10)) plt.plot(np.arange(100)/float(100), flip_coins(100)) plt.plot(np.arange(100)/float(100), flip_coins(1000)) plt.plot(np.arange(100)/float(100), flip_coins(10000)) plt.plot(np.arange(100)/float(...
30.515152
73
0.666336
1e6b0d9235d8b1a1193601cbf06d5bfb7871ca2e
3,009
py
Python
fbssdc/ast.py
Eijebong/binjs-ref
52ba3ec9e9e2c439febc6a25f5f7952bd35dc539
[ "MIT" ]
391
2017-12-18T12:33:29.000Z
2022-03-09T10:11:57.000Z
fbssdc/ast.py
Eijebong/binjs-ref
52ba3ec9e9e2c439febc6a25f5f7952bd35dc539
[ "MIT" ]
297
2018-02-04T13:31:14.000Z
2021-01-03T21:06:50.000Z
fbssdc/ast.py
Eijebong/binjs-ref
52ba3ec9e9e2c439febc6a25f5f7952bd35dc539
[ "MIT" ]
31
2018-02-12T16:57:50.000Z
2020-12-26T16:28:53.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import doctest import json import os import subprocess import idl BINJS_SIGNATURE = b'BINJS\x02' # Map ASTs to some...
27.605505
81
0.689598
1e6bf1e56cf42fdaa101b04a72b5da693d8050f9
10,012
py
Python
nutrition_labels/ensemble_model.py
wellcometrust/nutrition-labels
fe43d37ed595c1abe3ca8fd0eefb82bf8448fa08
[ "MIT" ]
2
2020-09-21T11:40:20.000Z
2021-02-26T09:44:05.000Z
nutrition_labels/ensemble_model.py
wellcometrust/nutrition-labels
fe43d37ed595c1abe3ca8fd0eefb82bf8448fa08
[ "MIT" ]
38
2020-06-29T11:23:11.000Z
2021-08-25T11:58:00.000Z
nutrition_labels/ensemble_model.py
wellcometrust/nutrition-labels
fe43d37ed595c1abe3ca8fd0eefb82bf8448fa08
[ "MIT" ]
null
null
null
""" 1. Ensemble model to predict unseen grants data 2. Calculate metrics for ensemble model """ import pandas as pd import numpy as np from sklearn.metrics import accuracy_score, classification_report, f1_score, precision_score, recall_score import os import re import ast from datetime import datetime from nutritio...
42.067227
147
0.671894
1e6cc497643b78aaa624414e02c48540bbc6c219
11,654
py
Python
examples/mnist.py
kellylab/Fireworks
ff027cd8d1b8ce5eec6a37d786e7de675d8c0849
[ "MIT" ]
9
2019-05-01T01:22:10.000Z
2020-12-08T15:41:13.000Z
examples/mnist.py
smk508/Fireworks
ff027cd8d1b8ce5eec6a37d786e7de675d8c0849
[ "MIT" ]
53
2019-01-20T17:02:38.000Z
2019-03-24T18:00:08.000Z
examples/mnist.py
smk508/Fireworks
ff027cd8d1b8ce5eec6a37d786e7de675d8c0849
[ "MIT" ]
4
2019-07-04T15:39:46.000Z
2021-08-17T04:59:25.000Z
#%% from fireworks import PyTorch_Model, Message, HookedPassThroughPipe, Experiment from fireworks.toolbox import ShufflerPipe, TensorPipe, BatchingPipe, FunctionPipe from fireworks.toolbox.preprocessing import train_test_split from fireworks.extensions import IgniteJunction from fireworks.core import PyTorch_Model im...
46.616
210
0.701648
1e6cd32f0c6f61344d02fd5a57184f431d3600e5
2,660
py
Python
main.py
tigran-ericyan/Python-Organizer
764fdbc81a4042a421ffa1d2ed208f7be7364cba
[ "MIT" ]
null
null
null
main.py
tigran-ericyan/Python-Organizer
764fdbc81a4042a421ffa1d2ed208f7be7364cba
[ "MIT" ]
null
null
null
main.py
tigran-ericyan/Python-Organizer
764fdbc81a4042a421ffa1d2ed208f7be7364cba
[ "MIT" ]
null
null
null
import os import shutil video_files = ['.webm', '.mkv', '.vob', '.gif', '.avi', '.amv', '.mp4',] audio_files = ['.aif','.cda', '.mid', '.mp3', '.mpa', '.ogg', ] image_files = ['.tif', '.tiff', '.bmp', '.jpg', '.jpeg', '.gif', '.png', '.eps', '.raw', '.cr2', '.nef', '.orf', '.sr2', '.ico'] setup_files = ['....
34.545455
129
0.493233
1e6cdba039fca9528b2df2743a34f70463eb4c02
2,900
py
Python
zag/tests/unit/worker_based/test_dispatcher.py
ToolsForHumans/taskflow
ce13d65e70213cb50ef19a714581997793b4e5fb
[ "Apache-2.0" ]
1
2018-11-06T16:17:21.000Z
2018-11-06T16:17:21.000Z
zag/tests/unit/worker_based/test_dispatcher.py
ToolsForHumans/zag
ce13d65e70213cb50ef19a714581997793b4e5fb
[ "Apache-2.0" ]
45
2018-11-07T21:35:55.000Z
2021-01-08T06:26:50.000Z
zag/tests/unit/worker_based/test_dispatcher.py
ToolsForHumans/taskflow
ce13d65e70213cb50ef19a714581997793b4e5fb
[ "Apache-2.0" ]
3
2018-11-05T16:07:45.000Z
2019-09-01T07:52:16.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2014 Yahoo! Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
35.802469
78
0.674483
1e6dbd7c00d8efd5e25104104afc209cad2575e9
530
py
Python
Histogram of Oriented Gradients (HOG)/Showing the HOG features.py
ahmadhabib5/Computer_Vision_Bootcamp_with_Python_OpenCV_YOLO_SSD
d06dc6dd4d56a14e2af70dee1c15bdf38afbc7a3
[ "MIT" ]
null
null
null
Histogram of Oriented Gradients (HOG)/Showing the HOG features.py
ahmadhabib5/Computer_Vision_Bootcamp_with_Python_OpenCV_YOLO_SSD
d06dc6dd4d56a14e2af70dee1c15bdf38afbc7a3
[ "MIT" ]
null
null
null
Histogram of Oriented Gradients (HOG)/Showing the HOG features.py
ahmadhabib5/Computer_Vision_Bootcamp_with_Python_OpenCV_YOLO_SSD
d06dc6dd4d56a14e2af70dee1c15bdf38afbc7a3
[ "MIT" ]
null
null
null
from skimage import data, feature import matplotlib.pyplot as plt image = plt.imread('images/mohammad-salah.jpg') hog_vector, hog_image = feature.hog(image, orientations=9, pixels_per_cell=(8,8), cells_per_block=(2,2), block_norm='L2', visualize=...
31.176471
83
0.632075
1e6f2d58304d5eb5325638020d4ad0a24bf5cc38
2,441
py
Python
CountingGridsPy/tests/time_models/time_gpuvscpu.py
microsoft/browsecloud
434f0d7e071306659cc9d6066149d3f1b0bdcb32
[ "MIT" ]
159
2019-06-30T17:51:29.000Z
2022-03-24T10:01:32.000Z
CountingGridsPy/tests/time_models/time_gpuvscpu.py
microsoft/browsecloud
434f0d7e071306659cc9d6066149d3f1b0bdcb32
[ "MIT" ]
6
2019-08-12T04:04:28.000Z
2022-03-02T04:57:15.000Z
CountingGridsPy/tests/time_models/time_gpuvscpu.py
microsoft/browsecloud
434f0d7e071306659cc9d6066149d3f1b0bdcb32
[ "MIT" ]
18
2019-07-01T05:22:58.000Z
2020-12-22T09:02:07.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import unittest import numpy as np import torch import os import cProfile from CountingGridsPy.models import CountingGridModel, CountingGridModelWithGPU if __name__ == "__main__": o = TimeGPUvsCPU() o.run_withlayer...
29.409639
78
0.584187
1e6f53f22427895238f581e8e9e288f9b5fd6b34
1,400
py
Python
make_standalone_html.py
peli-pro/coldcard_address_generator
a4c3b53145a8886d4803932504b5f0b493b5c89d
[ "MIT" ]
1
2019-11-20T09:23:52.000Z
2019-11-20T09:23:52.000Z
make_standalone_html.py
peli-pro/coldcard_address_generator
a4c3b53145a8886d4803932504b5f0b493b5c89d
[ "MIT" ]
null
null
null
make_standalone_html.py
peli-pro/coldcard_address_generator
a4c3b53145a8886d4803932504b5f0b493b5c89d
[ "MIT" ]
2
2019-11-20T09:23:55.000Z
2021-06-03T23:48:41.000Z
from pathlib import Path ''' This script creates a new html that has placed the javascript code inline to make a standalone html ''' src = Path.cwd() / 'coldcard_address_generator_html.html' dest = Path.cwd() / 'coldcard_address_generator_html_standalone.html' dest2 = Path.cwd() / 'index.html' # for github pages ...
25.925926
151
0.624286
1e701bb934720b93940c271d10980e3bdf8b28a0
1,963
py
Python
cash-donations.py
davidciani/taxtools
c94f477988eb199096d837fee8fb4ab9991c82a1
[ "MIT" ]
null
null
null
cash-donations.py
davidciani/taxtools
c94f477988eb199096d837fee8fb4ab9991c82a1
[ "MIT" ]
null
null
null
cash-donations.py
davidciani/taxtools
c94f477988eb199096d837fee8fb4ab9991c82a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import logging from csv import DictReader from datetime import date, datetime from pathlib import Path logger = logging.getLogger(__name__) header = """V042 ATaxTool Donations 0.4 D{date:%Y-%m-%d} ^ """ record_layout_1 = """TD N280 C1 L1 ${amount:0.2f} X{payee} ({ein}) ^ """ r...
24.234568
77
0.51299
1e7134f2c2c9991f667c83bc9558dfc8470c2fc4
6,401
py
Python
movieClass.py
qedseung/Movie-Classifier
a20615f9c910d123f8772dbcc922eee16a9b6958
[ "MIT" ]
null
null
null
movieClass.py
qedseung/Movie-Classifier
a20615f9c910d123f8772dbcc922eee16a9b6958
[ "MIT" ]
null
null
null
movieClass.py
qedseung/Movie-Classifier
a20615f9c910d123f8772dbcc922eee16a9b6958
[ "MIT" ]
null
null
null
import sys, numpy from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.ensemble import RandomForestClassifier from sklearn.naive_bayes import MultinomialNB #0=drama,1=comedy,2=animated,3=action/adventure rts=[ "When Dipper and Mabel Pines get sent to their great-uncle Stan's shop in Gravity F...
57.151786
680
0.678332
1e7191811954cb2d296f7fee8f8ae911aba1152c
3,921
py
Python
calaccess_scraped/management/commands/scrapecalaccesscandidates.py
california-civic-data-coalition/django-calaccess-scraped-data
ba5b2c81fa4e28e5028990e93ce2c579a3f88dbb
[ "MIT" ]
1
2017-10-31T23:05:25.000Z
2017-10-31T23:05:25.000Z
calaccess_scraped/management/commands/scrapecalaccesscandidates.py
california-civic-data-coalition/django-calaccess-scraped-data
ba5b2c81fa4e28e5028990e93ce2c579a3f88dbb
[ "MIT" ]
23
2017-06-26T16:31:11.000Z
2022-02-10T08:00:43.000Z
calaccess_scraped/management/commands/scrapecalaccesscandidates.py
california-civic-data-coalition/django-calaccess-scraped-data
ba5b2c81fa4e28e5028990e93ce2c579a3f88dbb
[ "MIT" ]
1
2017-11-02T04:04:14.000Z
2017-11-02T04:04:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Run all scraper commands. """ # Files import re import os import csv import glob from bs4 import BeautifulSoup from calaccess_scraped import get_data_directory, get_html_directory # Django from calaccess_scraped.management.commands import CalAccessCommand
36.64486
118
0.519765
1e72bf736fee8395ea58d44ceed5c258914b0f8a
2,889
py
Python
rpi_client/run.py
daniellamb2208/Face-Recogniztion-and-Internet-of-Thing
6a8d6c65c777e3ccc0b917c84b060586d768c46a
[ "MIT" ]
null
null
null
rpi_client/run.py
daniellamb2208/Face-Recogniztion-and-Internet-of-Thing
6a8d6c65c777e3ccc0b917c84b060586d768c46a
[ "MIT" ]
null
null
null
rpi_client/run.py
daniellamb2208/Face-Recogniztion-and-Internet-of-Thing
6a8d6c65c777e3ccc0b917c84b060586d768c46a
[ "MIT" ]
null
null
null
import cv2 from picamera import PiCamera from picamera.array import PiRGBArray import numpy as np import json import requests import time import RPi.GPIO as io import os io.setmode(io.BOARD) io.setup(11, io.OUT) count = 0 try: os.mkdir('testing') except FileExistsError: count = len(os.listdir('testing')) c...
33.988235
160
0.507096
1e7349005521f955a834174f1d5dba20a6e96f33
5,335
py
Python
api/views/view_users.py
AlanZhl/NodUleS
868792d7af91b6b2d42cf065653c1ea1160922c1
[ "MIT" ]
null
null
null
api/views/view_users.py
AlanZhl/NodUleS
868792d7af91b6b2d42cf065653c1ea1160922c1
[ "MIT" ]
null
null
null
api/views/view_users.py
AlanZhl/NodUleS
868792d7af91b6b2d42cf065653c1ea1160922c1
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, request, session from pymongo import DESCENDING from api.views import users from api import collection_users
42.34127
131
0.574133
1e73a3f5003bc04637fc57d0d750073e6fcadb8d
1,700
py
Python
journal_club/sound.py
philastrophist/journal_club
017a4b8dbd0d4e0d6a5d5535a08ed2913124f8da
[ "MIT" ]
null
null
null
journal_club/sound.py
philastrophist/journal_club
017a4b8dbd0d4e0d6a5d5535a08ed2913124f8da
[ "MIT" ]
null
null
null
journal_club/sound.py
philastrophist/journal_club
017a4b8dbd0d4e0d6a5d5535a08ed2913124f8da
[ "MIT" ]
null
null
null
import time import os import pyglet from gtts import gTTS from pydub import AudioSegment import traceback if __name__ == '__main__': from journal_club import where_jc play_sound(os.path.join(where_jc, 'countdown.wav')) play_text('hello')
30.357143
73
0.556471
1e73c2add48c20fe5c43b5ce0c4067b41b3c86c2
2,131
py
Python
ansible-devel/test/units/utils/test_display.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/utils/test_display.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/utils/test_display.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # (c) 2020 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type from units.compat.mock import MagicMock import pytest from ansible.module_...
32.287879
92
0.704833
1e744d2a9768775a762dc0670443f52bc8289280
11,797
py
Python
plugins/modules/oci_network_byoip_range_actions.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_byoip_range_actions.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_byoip_range_actions.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
36.076453
157
0.62838
1e7511d443f59d368f6c1b20379fd9fed48d9b34
7,491
py
Python
vapor/fn.py
xiaket/vapor
1c2c5dc85ac0c84571f8903733d3eadaf0a05d3c
[ "MIT" ]
null
null
null
vapor/fn.py
xiaket/vapor
1c2c5dc85ac0c84571f8903733d3eadaf0a05d3c
[ "MIT" ]
null
null
null
vapor/fn.py
xiaket/vapor
1c2c5dc85ac0c84571f8903733d3eadaf0a05d3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Models that maps to Cloudformation functions. """ def replace_fn(node): """Iteratively replace all Fn/Ref in the node""" if isinstance(node, list): return [replace_fn(item) for item in node] if isinstance(node, dict): return {name: replace_fn(value) for name, val...
23.409375
85
0.579762
1e76e898c35137a547e7cb6cdc28e4957557d84f
3,010
py
Python
adapters.py
umautobots/sim_traj
0354b0a06c0efa06c564b143222d13e9b035e41c
[ "MIT" ]
1
2020-11-23T05:48:46.000Z
2020-11-23T05:48:46.000Z
adapters.py
umautobots/sim_traj
0354b0a06c0efa06c564b143222d13e9b035e41c
[ "MIT" ]
null
null
null
adapters.py
umautobots/sim_traj
0354b0a06c0efa06c564b143222d13e9b035e41c
[ "MIT" ]
2
2020-06-29T20:38:42.000Z
2020-11-24T10:19:29.000Z
import numpy as np import pandas as pd def batch_df2batch(df, evaluate_ids=(), n_obs=-1, tform=np.eye(3), is_vehicles_evaluated=False): """ Convert dataframe to SGAN input :param df: :param evaluate_ids: :param n_obs: number of timesteps observed :param tform: :param is_vehicles_evaluat...
33.444444
96
0.577076
1e789078e52f00f46c0cd236933246f1a80c7cb5
183
py
Python
Beginner/SolutionByJagmeet_CheckEvenOdd.py
man21/IOSD-UIETKUK-HacktoberFest-Meetup-2019
8ca1a8bf95ee98d303d3a909c448288fa5992210
[ "Apache-2.0" ]
22
2019-10-02T16:48:10.000Z
2020-11-14T23:28:41.000Z
Beginner/SolutionByJagmeet_CheckEvenOdd.py
man21/IOSD-UIETKUK-HacktoberFest-Meetup-2019
8ca1a8bf95ee98d303d3a909c448288fa5992210
[ "Apache-2.0" ]
46
2019-10-01T03:53:30.000Z
2020-10-20T16:34:37.000Z
Beginner/SolutionByJagmeet_CheckEvenOdd.py
man21/IOSD-UIETKUK-HacktoberFest-Meetup-2019
8ca1a8bf95ee98d303d3a909c448288fa5992210
[ "Apache-2.0" ]
415
2019-10-01T03:48:22.000Z
2021-02-27T04:57:28.000Z
checkEvenOdd(113)
20.333333
40
0.480874
1e78de85b0f494c647173c61fac986263e3b7b1e
3,051
py
Python
Speaker_Verification/src/run.py
TaeYoon2/KerasSpeakerEmbedding
a4a53ac0c209a283cab4969d61305f056a99b6c3
[ "MIT" ]
4
2019-12-24T03:03:01.000Z
2021-04-12T01:38:36.000Z
Speaker_Verification/src/run.py
TaeYoon2/KerasSpeakerEmbedding
a4a53ac0c209a283cab4969d61305f056a99b6c3
[ "MIT" ]
null
null
null
Speaker_Verification/src/run.py
TaeYoon2/KerasSpeakerEmbedding
a4a53ac0c209a283cab4969d61305f056a99b6c3
[ "MIT" ]
null
null
null
import os import json import argparse import configparser import warnings import datetime from ge2e import * warnings.simplefilter(action='ignore', category=FutureWarning) # arguments # ckpt example : '/path/to/your/ckpt/cp-{:06d}.ckpt' parser = argparse.ArgumentParser() parser.add_argument("--mode") parser.add_argume...
33.527473
110
0.646018
1e790a5c06895bbe81bc5d5e5648146f1b0f7b48
16,876
py
Python
service/build/openstack/s3p_openstack_tools.py
matt-welch/docker-devstack
e7f1902c21cdd506239a6270813c422a058e037b
[ "Apache-2.0" ]
4
2017-05-18T23:24:51.000Z
2018-04-09T02:47:34.000Z
service/build/openstack/s3p_openstack_tools.py
matt-welch/docker-devstack
e7f1902c21cdd506239a6270813c422a058e037b
[ "Apache-2.0" ]
null
null
null
service/build/openstack/s3p_openstack_tools.py
matt-welch/docker-devstack
e7f1902c21cdd506239a6270813c422a058e037b
[ "Apache-2.0" ]
1
2020-09-30T20:12:12.000Z
2020-09-30T20:12:12.000Z
#!/usr/bin/env python from openstack import connection import errno import os import hashlib import pdb from time import sleep FLAVOR_NAME='cirros256' SEC_GRP_NAME='s3p_secgrp' IMAGE_NAME='cirros-0.3.4-x86_64-uec' debug_mode=False default_image="" default_flavor="" default_secgrp="" """ Utilities """ def debug_prin...
36.528139
98
0.675456
1e7af734f787f539bb408cb7fe22f61fdf7e00a2
420
py
Python
Task/XML-XPath/Python/xml-xpath-3.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
5
2021-01-29T20:08:05.000Z
2022-03-22T06:16:05.000Z
Task/XML-XPath/Python/xml-xpath-3.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/XML-XPath/Python/xml-xpath-3.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2021-04-13T04:19:31.000Z
2021-04-13T04:19:31.000Z
from lxml import etree xml = open('inventory.xml').read() doc = etree.fromstring(xml) doc = etree.parse('inventory.xml') # or load it directly # Return first item item1 = doc.xpath("//section[1]/item[1]") # Print each price for p in doc.xpath("//price"): print "{0:0.2f}".format(float(p.text)) # could raise ex...
26.25
113
0.683333
1e7c46ec324829705f6f197419b2fe5770318755
1,364
py
Python
src/landing/views.py
drwatson88/django-leon-shop
41a54784921e86ae7ec085522b74bfb577502d91
[ "MIT" ]
null
null
null
src/landing/views.py
drwatson88/django-leon-shop
41a54784921e86ae7ec085522b74bfb577502d91
[ "MIT" ]
1
2017-12-01T05:39:37.000Z
2017-12-01T05:39:37.000Z
src/landing/views.py
dvsidorov/django-leon-shop
41a54784921e86ae7ec085522b74bfb577502d91
[ "MIT" ]
null
null
null
# coding: utf-8 from django.http import Http404 from .base import LandingBaseView, LandingParamsValidatorMixin
25.735849
118
0.642962
1e7c650d6d80b2875b02f52d7b6f49e86d63364a
3,822
bzl
Python
lib/private/directory_path.bzl
alexeagle/bazel-lib
02be4c5f47b476e686943f53ddd47a672a51a265
[ "Apache-2.0" ]
16
2021-11-08T15:03:49.000Z
2022-03-23T19:38:32.000Z
lib/private/directory_path.bzl
alexeagle/bazel-lib
02be4c5f47b476e686943f53ddd47a672a51a265
[ "Apache-2.0" ]
29
2021-11-15T16:27:25.000Z
2022-03-31T04:03:16.000Z
lib/private/directory_path.bzl
alexeagle/bazel-lib
02be4c5f47b476e686943f53ddd47a672a51a265
[ "Apache-2.0" ]
3
2021-12-09T00:27:42.000Z
2022-03-30T20:14:00.000Z
"""Rule and corresponding provider that joins a label pointing to a TreeArtifact with a path nested within that directory """ load("//lib:utils.bzl", _to_label = "to_label") DirectoryPathInfo = provider( doc = "Joins a label pointing to a TreeArtifact with a path nested within that directory.", fields = { ...
28.736842
108
0.606489
1e7c67e0a9f238cd366a07d35c3544885629f78b
372
py
Python
flashtext/flashtextDemo.py
polarbear0330/i_like_demos
e713b9833da4d2126657fe7605537fd4aaee11ef
[ "Apache-2.0" ]
1
2017-05-09T09:28:35.000Z
2017-05-09T09:28:35.000Z
flashtext/flashtextDemo.py
polarbear0330/i_like_demos
e713b9833da4d2126657fe7605537fd4aaee11ef
[ "Apache-2.0" ]
null
null
null
flashtext/flashtextDemo.py
polarbear0330/i_like_demos
e713b9833da4d2126657fe7605537fd4aaee11ef
[ "Apache-2.0" ]
null
null
null
from flashtext import KeywordProcessor keywordProcessor = KeywordProcessor() keywordProcessor.add_keyword_from_file("keywords.txt") keywordProcessor.add_keyword("orange", "watermelon") print(" ") print(keywordProcessor.get_all_keywords()) print(keywordProcessor.extract_keywords("I like apple and Banana!")) print(...
26.571429
68
0.817204
1e7c883cf25b8c576632aac93552052d4d021b8f
1,606
py
Python
scheduling/create_scheduling_data/agent.py
CORE-Robotics-Lab/Personalized_Neural_Trees
3e8dd12fe4fc850be65c96c847eb143ef3bcdc2e
[ "MIT" ]
3
2021-05-22T19:25:01.000Z
2021-12-01T07:59:56.000Z
scheduling/create_scheduling_data/agent.py
CORE-Robotics-Lab/Personalized_Neural_Trees
3e8dd12fe4fc850be65c96c847eb143ef3bcdc2e
[ "MIT" ]
null
null
null
scheduling/create_scheduling_data/agent.py
CORE-Robotics-Lab/Personalized_Neural_Trees
3e8dd12fe4fc850be65c96c847eb143ef3bcdc2e
[ "MIT" ]
null
null
null
import random import numpy as np from scheduling.create_scheduling_data.constants import *
26.327869
87
0.610212
1e7dca62a40ed40aaef4866b124c0ecada169029
5,238
py
Python
rinnaicontrolr/base.py
explosivo22/rinnaicontrol-r
e5e976da8fcaa92d2c201f66ad0b66dd380cfab2
[ "Apache-2.0" ]
7
2021-01-04T15:44:22.000Z
2021-10-21T01:48:01.000Z
rinnaicontrolr/base.py
explosivo22/rinnaicontrol-r
e5e976da8fcaa92d2c201f66ad0b66dd380cfab2
[ "Apache-2.0" ]
3
2021-06-27T14:38:09.000Z
2021-07-02T16:47:43.000Z
rinnaicontrolr/base.py
explosivo22/rinnaicontrol-r
e5e976da8fcaa92d2c201f66ad0b66dd380cfab2
[ "Apache-2.0" ]
2
2021-06-26T19:10:37.000Z
2021-09-08T23:52:50.000Z
""" base.py -- client for the base Rinnai API """ import datetime, json, logging, time import requests from rinnaicontrolr.aws_srp import AWSSRP LOGGER = logging.getLogger('rinnaicontrolr') from rinnaicontrolr.const import ( POOL_ID, CLIENT_ID, POOL_REGION, GRAPHQL_ENDPOINT, SHADOW_ENDPOINT, ...
38.233577
96
0.645666
1e80fa4c9af5ba451330f474048f47351ddea636
1,658
py
Python
0x07-Session_authentication/api/v1/auth/session_db_auth.py
JoseAVallejo12/holbertonschool-web_back_end
eb514784772352b8e4873d1f648726815ab69592
[ "MIT" ]
null
null
null
0x07-Session_authentication/api/v1/auth/session_db_auth.py
JoseAVallejo12/holbertonschool-web_back_end
eb514784772352b8e4873d1f648726815ab69592
[ "MIT" ]
null
null
null
0x07-Session_authentication/api/v1/auth/session_db_auth.py
JoseAVallejo12/holbertonschool-web_back_end
eb514784772352b8e4873d1f648726815ab69592
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ SessionDBAuth class to manage API authentication """ from api.v1.auth.session_exp_auth import SessionExpAuth from models.user_session import UserSession from os import getenv from datetime import datetime, timedelta
31.283019
68
0.604946
1e81c4c89fc725598694857a973e6932f60c90ef
571
py
Python
profile/migrations/0003_globalalert.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
15
2017-04-03T14:01:44.000Z
2022-03-18T06:38:56.000Z
profile/migrations/0003_globalalert.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
87
2016-10-13T01:53:38.000Z
2022-02-11T03:39:55.000Z
profile/migrations/0003_globalalert.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
8
2017-10-19T18:30:48.000Z
2021-04-03T02:26:01.000Z
# Generated by Django 2.1.3 on 2019-02-12 19:18 from django.db import migrations, models
25.954545
114
0.574431
1e821600f426b0031e0126caa9f2a682bf5c9465
1,029
py
Python
agent/src/agent/pipeline/config/validators.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
null
null
null
agent/src/agent/pipeline/config/validators.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
null
null
null
agent/src/agent/pipeline/config/validators.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
null
null
null
import click from agent.pipeline.validators import elastic_query, jdbc_query from agent import source def get_config_validator(source_type: str) -> BaseValidator: if source_type == source.TYPE_ELASTIC: return ElasticValidator() if source_type in [source.TYPE_MYSQL, source.TYPE_POSTGRES, source.TYP...
27.810811
114
0.71137
1e82a2e65e1b2723a928d80fb55eaebd1e00c3cf
157
py
Python
recette/__init__.py
pennacchio/recette
1749b0d7763498420102588e377d1c68fd0df19f
[ "MIT" ]
null
null
null
recette/__init__.py
pennacchio/recette
1749b0d7763498420102588e377d1c68fd0df19f
[ "MIT" ]
null
null
null
recette/__init__.py
pennacchio/recette
1749b0d7763498420102588e377d1c68fd0df19f
[ "MIT" ]
null
null
null
from recette.steps import prep_step_dummy, prep_step_other from recette.utils import combine # Package version single source of truth __version__ = "0.2.1"
26.166667
58
0.815287
1e83cc5ace6389d49515b8bb52aa92f497f1598a
2,103
py
Python
others/process.py
MaxMorning/DigitalLogicFinalProject
d1db9239141f22571ec31baf9ee38f65452f1046
[ "MIT" ]
3
2021-06-02T06:02:42.000Z
2022-03-24T03:06:03.000Z
others/process.py
MaxMorning/Handwritting-number-distinguishing-with-DNN-by-Nexys-4-DDR-in-Verilog-HDL
d1db9239141f22571ec31baf9ee38f65452f1046
[ "MIT" ]
null
null
null
others/process.py
MaxMorning/Handwritting-number-distinguishing-with-DNN-by-Nexys-4-DDR-in-Verilog-HDL
d1db9239141f22571ec31baf9ee38f65452f1046
[ "MIT" ]
null
null
null
import numpy as npy file = open('16bit.coe', 'w') file_str = "memory_initialization_radix=16;\nmemory_initialization_vector=\n" # fc1 params fc1_w = npy.load('dense_kernel_0.npy') for r in range(128): cnt_128 = 0 unit_128_8 = '' for c in range(1024): unit_128_8 += convert(fc1_w[c][r]) if ...
23.897727
77
0.539705
1e83cf7e8c71fadb797ac164daf1d631592fe738
3,232
py
Python
src/illumidesk/spawners/spawner.py
1kastner/illumidesk
d4b3a6b964d7cf9f705ff70513491247e01e701f
[ "MIT" ]
null
null
null
src/illumidesk/spawners/spawner.py
1kastner/illumidesk
d4b3a6b964d7cf9f705ff70513491247e01e701f
[ "MIT" ]
1
2020-04-24T16:58:52.000Z
2020-04-24T16:58:52.000Z
src/illumidesk/spawners/spawner.py
netoisc/illumidesk
41b99594ac576247f3432b750157c6384b93bc47
[ "MIT" ]
null
null
null
import os import shutil from dockerspawner import DockerSpawner
38.47619
85
0.623762
1e841dc895711459461cf19b50a2ec4264cab0f1
2,664
py
Python
index_server/containers/bgsplit_trainer/test.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
1
2020-12-01T23:25:58.000Z
2020-12-01T23:25:58.000Z
index_server/containers/bgsplit_trainer/test.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
2
2020-10-07T01:03:06.000Z
2020-10-12T19:08:55.000Z
index_server/containers/bgsplit_trainer/test.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
from main import TrainingJob import threading import os.path if __name__ == "__main__": main()
106.56
1,858
0.771396
1e8567be9870d63385b355af8801e4fe48be9f55
2,491
py
Python
app_code/models.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
app_code/models.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
app_code/models.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
from django.db import models from app_asset.models import Host # Create your models here.
38.323077
81
0.747491
1e87910226616d3fa7c8ac22c9ed3299c7eed97d
2,681
py
Python
validation_multi.py
angelnew/biblioeater
b4da9235f845c9256f1b8d35e8a93df8b07cfb5e
[ "MIT" ]
4
2019-03-08T05:37:45.000Z
2019-04-27T10:22:14.000Z
validation_multi.py
angelnew/biblioeater
b4da9235f845c9256f1b8d35e8a93df8b07cfb5e
[ "MIT" ]
5
2020-01-28T22:38:33.000Z
2021-08-25T15:28:29.000Z
validation_multi.py
angelnew/biblioeater
b4da9235f845c9256f1b8d35e8a93df8b07cfb5e
[ "MIT" ]
null
null
null
import os from constants import * from the_logger import nlp_logger from padder import pad from book import Book import pickle import numpy as np # Load the books pym = Book("Arthur Gordon Pym") tom = Book("Tom Sawyer") eureka = Book("Eureka") huck = Book("Huckleberry Finn") pym.from_file(PYM_FILE) tom.from_file(TO...
34.818182
96
0.737038
1e87a340fe677994ba73b659883de9bb7ca0a836
11,022
py
Python
project/views.py
Ylmz42/asdfasdf
31ddeb659773abc1bbefb6d34c8486a02b1ae4b0
[ "MIT" ]
null
null
null
project/views.py
Ylmz42/asdfasdf
31ddeb659773abc1bbefb6d34c8486a02b1ae4b0
[ "MIT" ]
1
2021-06-10T21:53:30.000Z
2021-06-10T21:53:30.000Z
project/views.py
Ylmz42/asdfasdf
31ddeb659773abc1bbefb6d34c8486a02b1ae4b0
[ "MIT" ]
2
2019-08-21T07:59:15.000Z
2019-08-26T10:40:26.000Z
from django.contrib.auth import authenticate, login from django.contrib.auth import logout from django.http import HttpResponse, JsonResponse from django.shortcuts import render, get_object_or_404 from django.db.models import Q from .forms import ProjectForm, ApplicationForm, UserForm from .models import Project, Appli...
33.603659
191
0.647705
1e89cbffc4a91ed54b3053c35f0260697741a47e
2,618
py
Python
git_diff_ssr2_osm_wrapper.py
obtitus/ssr2_to_osm
3674b3d78666e79306af237630782d6892986853
[ "WTFPL" ]
1
2018-04-02T13:04:43.000Z
2018-04-02T13:04:43.000Z
git_diff_ssr2_osm_wrapper.py
obtitus/ssr2_to_osm
3674b3d78666e79306af237630782d6892986853
[ "WTFPL" ]
null
null
null
git_diff_ssr2_osm_wrapper.py
obtitus/ssr2_to_osm
3674b3d78666e79306af237630782d6892986853
[ "WTFPL" ]
null
null
null
#/usr/bin/env python import sys import logging logger = logging.getLogger('utility_to_osm.ssr2.git_diff') import utility_to_osm.file_util as file_util from osmapis_stedsnr import OSMstedsnr if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG) # diff is called by git with 7 parameters: ...
37.4
113
0.590145
1e8ad64286a3ee8ba55afc96aafdce9505635ffd
14,490
py
Python
civismlext/test/test_hyperband.py
viacheslav-m/civisml-extensions
e33dba67d39ec1d94bde1a0471ceb20d308d2fb7
[ "BSD-3-Clause" ]
null
null
null
civismlext/test/test_hyperband.py
viacheslav-m/civisml-extensions
e33dba67d39ec1d94bde1a0471ceb20d308d2fb7
[ "BSD-3-Clause" ]
null
null
null
civismlext/test/test_hyperband.py
viacheslav-m/civisml-extensions
e33dba67d39ec1d94bde1a0471ceb20d308d2fb7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from __future__ import division import pytest from scipy.stats import expon, randint, rankdata import numpy as np from sklearn.base import BaseEstimator, ClassifierMixin try: from sklearn.utils._testing import assert_array_equal except ModuleNotFoundError: from sklearn.u...
36.870229
79
0.594479
1e8b170787a661b47b55daff06b3f3213a1a7b64
389
py
Python
test-data/mkpasswd.py
colorshifter/lsd-members
2b8516eb5ef890e7f0dba456246e0448f2150c2c
[ "MIT" ]
1
2016-08-22T20:43:06.000Z
2016-08-22T20:43:06.000Z
test-data/mkpasswd.py
colorshifter/lsd-members
2b8516eb5ef890e7f0dba456246e0448f2150c2c
[ "MIT" ]
2
2017-12-07T08:55:18.000Z
2018-09-10T12:02:48.000Z
test-data/mkpasswd.py
colorshifter/lsd-members
2b8516eb5ef890e7f0dba456246e0448f2150c2c
[ "MIT" ]
2
2016-11-21T11:06:20.000Z
2018-06-14T07:28:31.000Z
#!/usr/bin/env python3 import uuid from passlib.hash import pbkdf2_sha512 password = input('Enter password: ') password_parts = pbkdf2_sha512.encrypt(password, salt_size=32).split('$') password = password_parts[4] salt = password_parts[3] print('Password: ' + convert_b64(password)) print('Salt: ' + convert_b64(sal...
20.473684
73
0.717224
1e8b5e801fb33480ceaca4540478760d9fe24dde
1,480
py
Python
SVassembly/__init__.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
null
null
null
SVassembly/__init__.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
null
null
null
SVassembly/__init__.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
1
2019-01-22T19:16:24.000Z
2019-01-22T19:16:24.000Z
from SVassembly import bedpe2window_f from bedpe2window_f import bedpe2window from SVassembly import get_shared_bcs_f from get_shared_bcs_f import get_shared_bcs from SVassembly import assign_sv_haps_f from assign_sv_haps_f import assign_sv_haps from SVassembly import count_bcs_f from count_bcs_f import count_bcs #c...
31.489362
75
0.877703
1e8b7a87cd18bdcc0ff56d000a8a800cceb9a789
476
py
Python
setup.py
uofuseismo/shakemap-aqms
228dc31fa987c71e48c70896946c54677497ce4a
[ "CC0-1.0" ]
null
null
null
setup.py
uofuseismo/shakemap-aqms
228dc31fa987c71e48c70896946c54677497ce4a
[ "CC0-1.0" ]
null
null
null
setup.py
uofuseismo/shakemap-aqms
228dc31fa987c71e48c70896946c54677497ce4a
[ "CC0-1.0" ]
null
null
null
from distutils.core import setup import os.path setup(name='shakemap_aqms', version='1.0', description='AQMS Modules for ShakeMap', author='Bruce Worden', author_email='cbworden@usgs.gov', url='http://github.com/cbworden/shakemap-aqms', packages=['shakemap_aqms', 's...
25.052632
56
0.57563
1e8dbb3b55ccce05313b9ede8833517462017519
2,446
py
Python
exercicios-Python/ex071.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex071.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex071.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
# Programa Simulador de Caixa Eletrnico # O caixa possui cdulas de 50, 20, 10 e 1 # Forma 1 = MINHA FORMA, COMPLICADA, MEIO NO CHUTE print('=' * 50) print('{:^50}'.format(' BANCO SIMES ')) print('=' * 50) valor = int(input('Qual valor voc quer sacar: R$')) while True: if valor % 50 != 1: if valor // 50 > ...
39.451613
119
0.563369
1e8e9df20ccdcd4d2401718bd824b567efdf4520
1,583
py
Python
external/lemonade/dist/examples/calc/calc.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
964
2015-09-24T15:02:05.000Z
2022-03-29T21:41:21.000Z
external/lemonade/dist/examples/calc/calc.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
435
2015-09-23T16:46:58.000Z
2020-04-19T12:32:03.000Z
external/lemonade/dist/examples/calc/calc.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
86
2015-10-24T20:08:30.000Z
2021-08-09T13:53:00.000Z
import sys # generate and import our grammar exec generateGrammar() in globals() # # the lexer # tokenType = { '+': PLUS, '-': MINUS, '/': DIVIDE, '*': TIMES, } # # the delegate # p = Parser(Delegate()) #p.trace(sys.stdout, "# ") if len(sys.argv) == 2: p.parse(tokenize(sys.argv[1])) ...
18.195402
64
0.576121
1e900a65b6846f2a1190992044167004788fc442
6,531
py
Python
netlist.py
phdbreak/netlist_parser.py
579a10592442ed27179ea7c56d33b6cbd72230d0
[ "Apache-2.0" ]
11
2019-05-18T08:22:29.000Z
2022-01-23T01:05:39.000Z
netlist.py
phdbreak/netlist_parser.py
579a10592442ed27179ea7c56d33b6cbd72230d0
[ "Apache-2.0" ]
null
null
null
netlist.py
phdbreak/netlist_parser.py
579a10592442ed27179ea7c56d33b6cbd72230d0
[ "Apache-2.0" ]
3
2017-10-26T08:03:34.000Z
2018-04-09T21:30:04.000Z
# Parent tree # design # |---> module # |-----> port/wire # |-----> instance # |-----> pin # def __eq__(self, other): # equal = True # if not (self.name == other.name): # equal = False # if not __eq_dict__(self.ports, other.ports): # ...
34.739362
166
0.562089
1e903a5ee13f21d7e469c538e10d7d3cff2f1d80
1,606
py
Python
scripts/test_publisher_twist_stamped.py
nbfigueroa-rlic/robot_kinematics_kdl
6f471c4e8f781e87c4309f348104a0fd299f66ce
[ "MIT" ]
null
null
null
scripts/test_publisher_twist_stamped.py
nbfigueroa-rlic/robot_kinematics_kdl
6f471c4e8f781e87c4309f348104a0fd299f66ce
[ "MIT" ]
null
null
null
scripts/test_publisher_twist_stamped.py
nbfigueroa-rlic/robot_kinematics_kdl
6f471c4e8f781e87c4309f348104a0fd299f66ce
[ "MIT" ]
1
2020-06-02T17:31:42.000Z
2020-06-02T17:31:42.000Z
#!/usr/bin/env python # # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA) # # 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/li...
32.77551
93
0.767746
1e9111a357422a83f99959f2213dfd317b897e61
683
py
Python
vector_nba/nba_api.py
rsforbes/vector-nba
ccd5a52d8e43635778c2b6c67d5d4a73328248a7
[ "BSD-2-Clause" ]
1
2022-02-12T01:19:27.000Z
2022-02-12T01:19:27.000Z
vector_nba/nba_api.py
rsforbes/vector-nba
ccd5a52d8e43635778c2b6c67d5d4a73328248a7
[ "BSD-2-Clause" ]
null
null
null
vector_nba/nba_api.py
rsforbes/vector-nba
ccd5a52d8e43635778c2b6c67d5d4a73328248a7
[ "BSD-2-Clause" ]
null
null
null
import datetime from nba_api.stats.endpoints import Scoreboard from nba_api.stats.library.parameters import LeagueID from nba_api.stats.library.data import teams
32.52381
66
0.670571
1e91ee4ed75cd5684a09cdfca97600ada996bdc1
2,347
py
Python
code/parallel.py
RuthAngus/kepler_ages
23a184c91dbe6437412e3db7650b62972444e701
[ "MIT" ]
null
null
null
code/parallel.py
RuthAngus/kepler_ages
23a184c91dbe6437412e3db7650b62972444e701
[ "MIT" ]
null
null
null
code/parallel.py
RuthAngus/kepler_ages
23a184c91dbe6437412e3db7650b62972444e701
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import sys import numpy as np import pandas as pd import h5py import tqdm import emcee import stardate as sd from stardate.lhf import age_model from isochrones import get_ichrone mist = get_ichrone('mist') from multiprocessing import Pool # Necessary to add cwd to path when script run #...
31.293333
78
0.622071
1e91f972e08fae3277b408073143e123c8f24ebf
1,241
py
Python
Sort/20_stack_sort.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Sort/20_stack_sort.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Sort/20_stack_sort.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# Find algorithm that sorts the stack of size n in O(log(n)) time. It is allowed to use operations # provided only by the stack interface: push(), pop(), top(), isEmpty() and additional stacks. T = [7, 10, 7, 87, 5, 53, 10, 15, 49, 1, 73, 14, 8, 68, 2, 32, 23, 41, 35, 98, 26] stack = create_stack(T) print(sort_sta...
24.82
98
0.601128
1e92a9ea927a603d196aae37f60d76efeb6c0f78
4,170
py
Python
nvc-core/nvc/libs/utils.py
BiznetGIO/nvc-lite
018f144e0d37ddfca05e56b5b62e21814d63951f
[ "MIT" ]
null
null
null
nvc-core/nvc/libs/utils.py
BiznetGIO/nvc-lite
018f144e0d37ddfca05e56b5b62e21814d63951f
[ "MIT" ]
2
2021-04-20T17:08:44.000Z
2021-09-23T23:24:13.000Z
nvc-core/nvc/libs/utils.py
BiznetGIO/nvc-lite
018f144e0d37ddfca05e56b5b62e21814d63951f
[ "MIT" ]
null
null
null
import yaml import os import subprocess import coloredlogs import logging import psutil import shutil import hashlib import uuid import fileinput import requests from nvc import __appname__ from dotenv import load_dotenv import git app_root = os.path.dirname(os.path.abspath(__file__)) app_home = os.path.expanduser("~...
20.541872
67
0.594005
1e9379e5b3b2bc4ac79a3648f31470e66c317df6
376
py
Python
weeby/overlays.py
asheeeshh/weeby.py
3da48e55bd1f824902bb7b2f7d31675cdeb080b6
[ "MIT" ]
5
2021-10-19T11:46:47.000Z
2022-02-28T03:29:16.000Z
weeby/overlays.py
asheeeshh/weeby.py
3da48e55bd1f824902bb7b2f7d31675cdeb080b6
[ "MIT" ]
null
null
null
weeby/overlays.py
asheeeshh/weeby.py
3da48e55bd1f824902bb7b2f7d31675cdeb080b6
[ "MIT" ]
1
2021-12-09T08:53:43.000Z
2021-12-09T08:53:43.000Z
from . import config from .util import make_request, image_request
34.181818
67
0.662234
1e93ac91aee06f027f96435be13dad3be14c5158
3,128
py
Python
tests/lib/bes/cli/test_cli.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/cli/test_cli.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/cli/test_cli.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- from collections import namedtuple import os.path as path from bes.testing.program_unit_test import program_unit_test from bes.fs.file_util import file_util from bes.system.host import host if __name_...
28.962963
101
0.693734
1e959c7f5582470117ae527ddc48b7fe17a21dad
6,212
py
Python
Linked Lists/palindrome.py
henryoliver/cracking-coding-interview-solutions
240dc1d1676230e30363e931783f3166b2d69c28
[ "MIT" ]
2
2020-06-11T02:54:34.000Z
2021-06-28T20:21:08.000Z
Linked Lists/palindrome.py
henryoliver/cracking-coding-interview-solutions
240dc1d1676230e30363e931783f3166b2d69c28
[ "MIT" ]
null
null
null
Linked Lists/palindrome.py
henryoliver/cracking-coding-interview-solutions
240dc1d1676230e30363e931783f3166b2d69c28
[ "MIT" ]
null
null
null
import sys sys.path.append('../../Data Structures') from stack import Stack def isPalindrome(linkedList={}): ''' Solution 1 - Hash map Complexity Analysis O(n) time | O(n) space Check if a linked list is a palindrome dict: linkedList return: True if its palindrome ''' # Graceful...
31.85641
237
0.553767