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
65e8c2b06a56311edf49d920f21df0bd1cab027c
708
py
Python
StationeersSaveFileDebugTools.py
lostinplace/StationeersSaveFileDebugTools
372a2fc86a9fc3af25044a56131271b577d4d97b
[ "MIT" ]
null
null
null
StationeersSaveFileDebugTools.py
lostinplace/StationeersSaveFileDebugTools
372a2fc86a9fc3af25044a56131271b577d4d97b
[ "MIT" ]
1
2021-01-10T21:12:41.000Z
2021-01-10T21:14:49.000Z
StationeersSaveFileDebugTools.py
lostinplace/StationeersSaveFileDebugTools
372a2fc86a9fc3af25044a56131271b577d4d97b
[ "MIT" ]
null
null
null
import click if __name__ == '__main__': cli()
26.222222
108
0.79661
65e9978ee2200931e2a3bf2760b84a179ae2b472
3,610
py
Python
RL/get_depthmaps.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
RL/get_depthmaps.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
RL/get_depthmaps.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
import sys from pathlib import Path from datetime import datetime import argparse import json import torch from torchvision.utils import save_image import torchvision import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn.metrics import pairwise_distances_argmin from sklea...
30.59322
95
0.645983
65e9a81560bd3bd5d8fd30d98016ea9c330e4eba
6,350
py
Python
monty/exts/info/global_source.py
onerandomusername/monty-python
fcd8b2827eb9bbb2a05d28f80ac9e215589f03f7
[ "MIT" ]
20
2021-12-31T10:17:20.000Z
2022-03-31T04:16:17.000Z
monty/exts/info/global_source.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
1
2022-03-13T22:34:33.000Z
2022-03-13T22:34:52.000Z
monty/exts/info/global_source.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
3
2022-01-02T15:21:46.000Z
2022-03-05T09:37:54.000Z
from __future__ import annotations import os from typing import TYPE_CHECKING, Final, List from urllib.parse import urldefrag import disnake from disnake.ext import commands, tasks from monty.log import get_logger from monty.utils.helpers import encode_github_link from monty.utils.messages import DeleteButton if T...
37.352941
120
0.601732
65edc49e48e5587c1006c65ecaf10e38136be5e1
18,608
py
Python
grr/core/grr_response_core/lib/rdfvalue_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
4,238
2015-01-01T15:34:50.000Z
2022-03-31T08:18:05.000Z
grr/core/grr_response_core/lib/rdfvalue_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
787
2015-01-02T21:34:24.000Z
2022-03-02T13:26:38.000Z
grr/core/grr_response_core/lib/rdfvalue_test.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
856
2015-01-02T02:50:11.000Z
2022-03-31T11:11:53.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """Tests for utility classes.""" import datetime import sys import unittest from absl import app from absl.testing import absltest from grr_response_core.lib import rdfvalue from grr.test_lib import test_lib long_string = ( "\n" "Lorem ipsum dolor sit amet, c...
39.591489
80
0.690294
028ccbb703922e522d9de79fd431e21d9aeac192
909
py
Python
src/main/python/server/test.py
areichmann-tgm/client_travis
c00163e6d7630ff4efaf28605b134e356e02a9d1
[ "MIT" ]
null
null
null
src/main/python/server/test.py
areichmann-tgm/client_travis
c00163e6d7630ff4efaf28605b134e356e02a9d1
[ "MIT" ]
null
null
null
src/main/python/server/test.py
areichmann-tgm/client_travis
c00163e6d7630ff4efaf28605b134e356e02a9d1
[ "MIT" ]
null
null
null
import pytest from server import rest def test_update(client): """res = client.put('/schuelerA',data={'schueler_id':'1000','usernameX':'Adrian','emailX':'adrian@new.at','picture':'-'})""" assert True
25.971429
133
0.667767
028dbb898943de5745b9b0587b4aecb405f08834
3,143
py
Python
helper-scripts/instrnocombine.py
felixaestheticus/realcode-validation
c599cc41797fc074bd2b71d205d6b2b904e1d64b
[ "BSD-3-Clause" ]
null
null
null
helper-scripts/instrnocombine.py
felixaestheticus/realcode-validation
c599cc41797fc074bd2b71d205d6b2b904e1d64b
[ "BSD-3-Clause" ]
null
null
null
helper-scripts/instrnocombine.py
felixaestheticus/realcode-validation
c599cc41797fc074bd2b71d205d6b2b904e1d64b
[ "BSD-3-Clause" ]
null
null
null
#combine.py, combines available dictionaries into one, and generates csv file for latex #f = open('dict_random') mem_ops = 'MOVS','MOV','LDR','LDRH','LDRB','LDRSH','LDRSB','LDM','STR','STRH','STRB','STM' ari_ops = 'ADDS','ADD','ADC','ADCS','ADR','SUBS','SUB','SBCS','RSBS','MULS','MUL','RSB','SBC' com_ops = 'CMP','CM...
25.144
119
0.602291
028e69371236efe13bb824f07b81ce319b9462f0
4,102
py
Python
ip_client.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
1
2021-09-04T05:34:51.000Z
2021-09-04T05:34:51.000Z
ip_client.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
ip_client.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
#from src.piclient import PiClient from src.streamclient import StreamClient import math options = { "boarddetector": { "prepare": { "resize": [512, 512] }, "corners": { "maxcorners": 500, "qualitylevel": 0.01, "mindistance": 20 }, ...
25.165644
105
0.455144
028e7466100505ca2d031073edf99db35fd3966b
2,773
py
Python
registration_eval/different_days/dd_compute_dense_transformation_error.py
mirestrepo/voxels-at-lems
df47d031653d2ad877a97b3c1ea574b924b7d4c2
[ "BSD-2-Clause" ]
2
2015-09-18T00:17:16.000Z
2019-02-06T04:41:29.000Z
registration_eval/different_days/dd_compute_dense_transformation_error.py
mirestrepo/voxels-at-lems
df47d031653d2ad877a97b3c1ea574b924b7d4c2
[ "BSD-2-Clause" ]
null
null
null
registration_eval/different_days/dd_compute_dense_transformation_error.py
mirestrepo/voxels-at-lems
df47d031653d2ad877a97b3c1ea574b924b7d4c2
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ compute_transformation_error.py Created by Maria Isabel Restrepo on 2012-09-24. Copyright (c) 2012 . All rights reserved. This script computes the distances betweeen an estimated similarity transformation and its ground trutrransformation is used to transform a "source" coor...
48.649123
200
0.695636
028f14718283c8b1eabad98e17db6f0ca1dee6eb
16,301
py
Python
migrations/versions/be21086640ad_country_added.py
anjinkristou/assistor
02d9b826b9d8844d475c11c33db48cf278282183
[ "MIT" ]
1
2022-01-29T14:00:32.000Z
2022-01-29T14:00:32.000Z
migrations/versions/be21086640ad_country_added.py
anjinkristou/assistor
02d9b826b9d8844d475c11c33db48cf278282183
[ "MIT" ]
null
null
null
migrations/versions/be21086640ad_country_added.py
anjinkristou/assistor
02d9b826b9d8844d475c11c33db48cf278282183
[ "MIT" ]
null
null
null
"""Country added Revision ID: be21086640ad Revises: 153f720f966f Create Date: 2021-11-09 15:34:04.306218 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'be21086640ad' down_revision = '153f720f966f' branch_labels = None depends_on = None naming_convention = { ...
55.070946
123
0.587081
0290a912952dfd6fc7b4ea5458b073ea88cdb834
26,718
py
Python
pyxrd/scripts/generate_default_phases.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/scripts/generate_default_phases.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/scripts/generate_default_phases.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
#!/usr/bin/python # coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. import os from pyxrd.data import settings from pyxrd.project.models import Project from pyxrd.phases.models import Component, Phase def generate_expan...
38.777939
165
0.606183
0291301e96c8737d3d86596ed9a5bcb7c2fdd30e
1,322
py
Python
data/kaggle_python/interview_prac/FizzBuzz.py
MohanKrishna-RC/Python-Necessities
c63fbac717a9bf7edd48ec20337c16de55f5b535
[ "FTL" ]
null
null
null
data/kaggle_python/interview_prac/FizzBuzz.py
MohanKrishna-RC/Python-Necessities
c63fbac717a9bf7edd48ec20337c16de55f5b535
[ "FTL" ]
8
2019-11-27T12:05:09.000Z
2019-11-27T12:05:18.000Z
data/kaggle_python/interview_prac/FizzBuzz.py
MohanKrishna-RC/Python-Necessities
c63fbac717a9bf7edd48ec20337c16de55f5b535
[ "FTL" ]
null
null
null
import sys """ Example : Input: 2 (Test cases) 3 (Size of array) 0 1 1 (input) 3 0 1 2 """ # To store no of test cases here (2). # To store input here (0 1 1) and (0 1 2). t = int(sys.stdin.readline()) # print(t) l = [] while t: #To store the size of array here (3). n = int(sys.stdin.readline()) ...
22.793103
98
0.519667
029137d82ad6128135f8644310a7387974e99f16
3,660
py
Python
wikipediabase/persistentkv.py
fakedrake/WikipediaBase
ab5aa92786bddcd7942ad3e3f1f4e433575ba3fb
[ "Apache-2.0" ]
1
2017-11-26T17:57:59.000Z
2017-11-26T17:57:59.000Z
wikipediabase/persistentkv.py
fakedrake/WikipediaBase
ab5aa92786bddcd7942ad3e3f1f4e433575ba3fb
[ "Apache-2.0" ]
34
2015-03-23T10:28:59.000Z
2021-12-13T20:16:48.000Z
wikipediabase/persistentkv.py
fakedrake/WikipediaBase
ab5aa92786bddcd7942ad3e3f1f4e433575ba3fb
[ "Apache-2.0" ]
2
2015-05-17T00:56:45.000Z
2015-06-27T22:10:59.000Z
""" Some persistent maps (gdbm) require special encoding of keys and/or values. This is an abstraction for these kinds of quirks. """ from itertools import imap import collections import gdbm as dbm import json from sqlitedict import SqliteDict import os """ Some info on performance: >>> import timeit >>> sqlkv ...
24.72973
76
0.650546
0291c411c4fb519a999596fb62a5c1bf748ff844
1,672
py
Python
SlidingWindows/Leetcode132.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
SlidingWindows/Leetcode132.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
SlidingWindows/Leetcode132.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': sol=Solution() # s='aammbbc' # s='bb' s="fifgbeajcacehiicccfecbfhhgfiiecdcjjffbghdidbhbdbfbfjccgbbdcjheccfbhafehieabbdfeigbiaggchaeghaijfbjhi" print(sol.minCut(s))
30.962963
108
0.423445
0292b6686b64612233e83af31cfc31f88384ed05
3,708
py
Python
widgets/component.py
peskaf/ramAIn
8eb1418007c925ac618e3bddd7de2c0520f5977a
[ "MIT" ]
null
null
null
widgets/component.py
peskaf/ramAIn
8eb1418007c925ac618e3bddd7de2c0520f5977a
[ "MIT" ]
null
null
null
widgets/component.py
peskaf/ramAIn
8eb1418007c925ac618e3bddd7de2c0520f5977a
[ "MIT" ]
null
null
null
from PySide6.QtGui import QColor from PySide6.QtWidgets import QFrame, QHBoxLayout, QWidget from PySide6.QtCore import Qt, QSettings, QEvent from utils import colors import pyqtgraph as pg import numpy as np
32.243478
102
0.650755
029490250183cbdb90fa4664ca45b602bbeae6f3
9,124
py
Python
Step 4 - Implement the tflite for raspberry pi/godlike_tflite_cam_script.py
monacotime/4.IoT-project-sem-5
ef14dfba33d308cb5307bbb07d2950fd9a34cfda
[ "MIT" ]
null
null
null
Step 4 - Implement the tflite for raspberry pi/godlike_tflite_cam_script.py
monacotime/4.IoT-project-sem-5
ef14dfba33d308cb5307bbb07d2950fd9a34cfda
[ "MIT" ]
null
null
null
Step 4 - Implement the tflite for raspberry pi/godlike_tflite_cam_script.py
monacotime/4.IoT-project-sem-5
ef14dfba33d308cb5307bbb07d2950fd9a34cfda
[ "MIT" ]
null
null
null
### IT WORKS BOIISSS WE DID IT!!!!### #------------------------------------------------------------- #Imports #------------------------------------------------------------- import tensorflow as tf import numpy as np from PIL import Image import cv2 import colorsys import random import time from googleapiclient.http i...
42.635514
130
0.551732
0295359e838ee62284e6df9935d33336b1756495
2,790
py
Python
maskrcnn_benchmark/modeling/backbone/res2net_builder.py
koseimori/Res2Net-maskrcnn
e205ff67855b52375f340ca70a08995069424e5c
[ "MIT" ]
31
2020-02-02T15:12:13.000Z
2022-03-18T08:09:17.000Z
maskrcnn_benchmark/modeling/backbone/res2net_builder.py
koseimori/Res2Net-maskrcnn
e205ff67855b52375f340ca70a08995069424e5c
[ "MIT" ]
4
2020-03-08T08:26:12.000Z
2021-03-08T11:30:52.000Z
maskrcnn_benchmark/modeling/backbone/res2net_builder.py
koseimori/Res2Net-maskrcnn
e205ff67855b52375f340ca70a08995069424e5c
[ "MIT" ]
17
2020-02-20T12:04:04.000Z
2021-06-06T07:26:23.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from collections import OrderedDict from torch import nn from maskrcnn_benchmark.modeling import registry from maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform from . import fpn as fpn_module from . import res2net # d...
34.875
83
0.699283
029644afd069012e2e180cddce470b4c75d102b6
608
py
Python
code/tmp_rtrip/test/memory_watchdog.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/memory_watchdog.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/memory_watchdog.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""Memory watchdog: periodically read the memory usage of the main test process and print it out, until terminated.""" import os import sys import time try: page_size = os.sysconf('SC_PAGESIZE') except (ValueError, AttributeError): try: page_size = os.sysconf('SC_PAGE_SIZE') except (ValueError, Attr...
28.952381
79
0.662829
02967401719aa2d8549023548710f426054a51b3
371
py
Python
tests/conftest.py
charles-cooper/crvfunder
63b4041ff06ff6ea943a7d69ae233719c4411bbd
[ "MIT" ]
6
2022-03-17T21:10:41.000Z
2022-03-27T04:38:53.000Z
tests/conftest.py
charles-cooper/crvfunder
63b4041ff06ff6ea943a7d69ae233719c4411bbd
[ "MIT" ]
null
null
null
tests/conftest.py
charles-cooper/crvfunder
63b4041ff06ff6ea943a7d69ae233719c4411bbd
[ "MIT" ]
2
2022-03-26T03:37:40.000Z
2022-03-28T22:01:20.000Z
import pytest pytest_plugins = ["fixtures.accounts", "fixtures.deployments"]
24.733333
62
0.749326
0297324475a0f71073a283c42e8668872ade345c
38,375
py
Python
sdk/python/pulumi_databricks/permissions.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_databricks/permissions.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_databricks/permissions.py
pulumi/pulumi-databricks
43580d4adbd04b72558f368ff0eef3d03432ebc1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
41.802832
279
0.645368
02974a7f2e55a4545889ad1727cb810be5d621b5
1,254
py
Python
file/txt2bin.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
file/txt2bin.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
file/txt2bin.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from file.file import file
31.35
77
0.369219
02982b64a64f41b7dc43e4d28a9770dcfad2d139
2,105
py
Python
PGPs_tensorflow/Examples/Airline.py
maziarraissi/ParametricGP
d5974c9e41a2cd761c0cfaff138c5b1722c006db
[ "MIT" ]
43
2017-04-12T10:43:21.000Z
2022-02-28T05:16:02.000Z
PGPs_tensorflow/Examples/Airline.py
arita37/ParametricGP
9c04f3166c22e787a92290fe4353ba4f918ed598
[ "MIT" ]
1
2018-05-25T00:26:10.000Z
2018-05-29T05:26:15.000Z
PGPs_tensorflow/Examples/Airline.py
arita37/ParametricGP
9c04f3166c22e787a92290fe4353ba4f918ed598
[ "MIT" ]
22
2017-04-12T02:22:08.000Z
2021-04-10T23:19:52.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Maziar Raissi """ import sys sys.path.insert(0, '../PGP/') import numpy as np import matplotlib.pyplot as plt import pandas as pd from parametric_GP import PGP if __name__ == "__main__": # Import the data data = pd.read_pickle('airline.pick...
25.059524
106
0.566271
029864a3d0017b3744cbc0ce2c0fdf1a9dd81484
2,081
py
Python
django_project/proj/settings/local.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
9
2018-10-03T00:30:57.000Z
2021-12-29T07:48:08.000Z
django_project/proj/settings/local.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
9
2020-02-10T17:08:01.000Z
2021-11-19T17:21:18.000Z
django_project/proj/settings/local.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
null
null
null
# # Author: Robert Abram <rabram991@gmail.com> # # This file is subject to the terms and conditions defined in the # file 'LICENSE', which is part of this source code package. # import os from proj.settings.base import * # # Logging # LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatter...
27.381579
86
0.475252
0298d15f0c2dd54fb30dc11d08603cd497ca28b4
3,426
py
Python
pyfos/utils/system_security/seccertmgmt_show.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
44
2017-11-17T12:03:11.000Z
2022-02-03T20:57:56.000Z
pyfos/utils/system_security/seccertmgmt_show.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
13
2018-10-09T15:34:15.000Z
2022-02-24T20:03:17.000Z
pyfos/utils/system_security/seccertmgmt_show.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
23
2017-12-14T18:08:33.000Z
2022-02-03T15:33:40.000Z
#!/usr/bin/env python3 # Copyright 2018 Brocade Communications Systems LLC. 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 also obtain a copy of the License at # http://www.apache.org/licenses/LICENS...
30.864865
83
0.694104
029a249ed3ef3d36cbd9d5a8a3e1445f10e3e29d
2,345
py
Python
tests/base.py
Suhail6inkling/bot
95ae05c773e753699e6899255783c1d7df936024
[ "MIT" ]
1
2022-01-01T17:33:48.000Z
2022-01-01T17:33:48.000Z
tests/base.py
Suhail6inkling/bot
95ae05c773e753699e6899255783c1d7df936024
[ "MIT" ]
null
null
null
tests/base.py
Suhail6inkling/bot
95ae05c773e753699e6899255783c1d7df936024
[ "MIT" ]
1
2020-11-01T19:57:00.000Z
2020-11-01T19:57:00.000Z
import logging import unittest from contextlib import contextmanager
34.485294
104
0.639659
029b069d68471e7fbe34c10e131ca57fcd80d3f5
892
py
Python
blog/app/admin/views.py
web-user/flask-blog
130f5dbcdb18b8f325c7aa8dd3d71cbc7190485a
[ "MIT" ]
null
null
null
blog/app/admin/views.py
web-user/flask-blog
130f5dbcdb18b8f325c7aa8dd3d71cbc7190485a
[ "MIT" ]
null
null
null
blog/app/admin/views.py
web-user/flask-blog
130f5dbcdb18b8f325c7aa8dd3d71cbc7190485a
[ "MIT" ]
null
null
null
from flask import Flask, render_template, session, redirect, url_for, request, flash, abort, current_app, make_response from flask_login import login_user, logout_user, login_required, current_user from . import admin from .. import db from ..models import User, Post from ..form import PostForm from functools import wr...
34.307692
119
0.690583
029c0dd5be38ab97f221e4b0ca039e07bafa37e8
2,561
py
Python
examples/get-set-params/robot.py
Tyler-Duckworth/robotpy-rev
d03829a4f8e47526e753f0edeafc1df888880775
[ "Apache-2.0" ]
1
2019-01-28T18:16:55.000Z
2019-01-28T18:16:55.000Z
examples/get-set-params/robot.py
Tyler-Duckworth/robotpy-rev
d03829a4f8e47526e753f0edeafc1df888880775
[ "Apache-2.0" ]
18
2019-01-09T08:35:48.000Z
2022-01-15T02:17:23.000Z
examples/get-set-params/robot.py
Tyler-Duckworth/robotpy-rev
d03829a4f8e47526e753f0edeafc1df888880775
[ "Apache-2.0" ]
9
2019-01-11T03:14:19.000Z
2022-01-13T00:51:48.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2018 FIRST. All Rights Reserved. # Open Source Software - may be modified and shared by FRC teams. The code # must be accompanied by the FIRST BSD license file in the root directory of # the project. # ------------------...
40.015625
88
0.632956
029cefa854d393945ca4f9769661f617a4a0cbfe
39,324
py
Python
pyclustering/nnet/som.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/nnet/som.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/nnet/som.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Neural Network: Self-Organized Feature Map @details Implementation based on paper @cite article::nnet::som::1, @cite article::nnet::som::2. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ import math import random import matplotlib.pyplot as pl...
39.402806
203
0.576416
029d25002fe312ac4b1cd506fc070aee02af1ff6
2,265
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
trajkd/Programming-a-Real-Self-Driving-Car
536377815a8dd907c59979f4a07d25b6d157dbaa
[ "MIT" ]
1
2021-08-17T11:19:34.000Z
2021-08-17T11:19:34.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
trajkd/Programming-a-Real-Self-Driving-Car
536377815a8dd907c59979f4a07d25b6d157dbaa
[ "MIT" ]
7
2020-09-26T01:07:12.000Z
2022-03-12T00:31:00.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
trajkd/Programming-a-Real-Self-Driving-Car
536377815a8dd907c59979f4a07d25b6d157dbaa
[ "MIT" ]
1
2021-08-06T17:24:26.000Z
2021-08-06T17:24:26.000Z
import rospy from styx_msgs.msg import TrafficLight import numpy as np from keras.models import Model from keras import applications from keras.models import load_model from keras.preprocessing import image as img_preprocessing import cv2 # load the trained model from keras.utils.generic_utils import CustomObjectScop...
36.532258
132
0.680795
029d60e7a021da261de9331901e5b18fe50fb799
2,080
py
Python
sktime/clustering/evaluation/_plot_clustering.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
5,349
2019-03-21T14:56:50.000Z
2022-03-31T11:25:30.000Z
sktime/clustering/evaluation/_plot_clustering.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
1,803
2019-03-26T13:33:53.000Z
2022-03-31T23:58:10.000Z
sktime/clustering/evaluation/_plot_clustering.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
911
2019-03-25T01:21:30.000Z
2022-03-31T04:45:51.000Z
# -*- coding: utf-8 -*- """Cluster plotting tools""" __author__ = ["Christopher Holder", "Tony Bagnall"] __all__ = ["plot_cluster_algorithm"] import pandas as pd from sktime.clustering.base._typing import NumpyOrDF from sktime.clustering.base.base import BaseClusterer from sktime.clustering.partitioning._lloyds_parti...
30.144928
88
0.703846
029ed725f1f2d111375bab605c9d49677c361f7c
2,858
py
Python
src/tests/crud/test_user.py
Behnam-sn/neat-backend
ba6e6356ee092eba27179f72fd2a15e25c68d1b8
[ "MIT" ]
1
2022-03-07T22:16:48.000Z
2022-03-07T22:16:48.000Z
src/tests/crud/test_user.py
Behnam-sn/neat-backend
ba6e6356ee092eba27179f72fd2a15e25c68d1b8
[ "MIT" ]
null
null
null
src/tests/crud/test_user.py
Behnam-sn/neat-backend
ba6e6356ee092eba27179f72fd2a15e25c68d1b8
[ "MIT" ]
1
2022-03-07T22:16:49.000Z
2022-03-07T22:16:49.000Z
from sqlalchemy.orm import Session from src import crud from src.core.security import verify_password from src.schemas.user import UserCreate, UserUpdate from src.tests.utils.user import create_random_user_by_api from src.tests.utils.utils import random_lower_string
26.220183
74
0.747726
02a1f0d97978ae4cf6f1fe28ed7cbca384a07bc2
1,062
py
Python
src/transductor/tests/test_forms.py
fga-gpp-mds/2016.2-Time07
44d78ce4f36b7cb535b9c775027b8a93972ba5e3
[ "MIT" ]
null
null
null
src/transductor/tests/test_forms.py
fga-gpp-mds/2016.2-Time07
44d78ce4f36b7cb535b9c775027b8a93972ba5e3
[ "MIT" ]
null
null
null
src/transductor/tests/test_forms.py
fga-gpp-mds/2016.2-Time07
44d78ce4f36b7cb535b9c775027b8a93972ba5e3
[ "MIT" ]
null
null
null
from django.test import TestCase from transductor.forms import EnergyForm from transductor.models import TransductorModel
25.902439
56
0.579096
02a2b904bf7cbd57601e581a0ffde8c156b2a583
3,729
py
Python
src/models/base.py
zhengzangw/pytorch-classification
3a6d95e3810015fa71c950492585c11dfe0b8b64
[ "MIT" ]
null
null
null
src/models/base.py
zhengzangw/pytorch-classification
3a6d95e3810015fa71c950492585c11dfe0b8b64
[ "MIT" ]
null
null
null
src/models/base.py
zhengzangw/pytorch-classification
3a6d95e3810015fa71c950492585c11dfe0b8b64
[ "MIT" ]
null
null
null
from typing import Any, List, Optional import hydra import torch import torchmetrics from omegaconf import DictConfig from pytorch_lightning import LightningModule from ..optimizer.scheduler import create_scheduler from ..utils import utils from ..utils.misc import mixup_data log = utils.get_logger(__name__)
31.601695
98
0.604452
02a48025dd5fe8b32b133893735d857d8b3b537a
11,122
py
Python
tea/balance.py
pcubillos/TEA
e3e4844de4cacef89b9f4a8b1673545726bfc42e
[ "BSD-4-Clause-UC" ]
25
2016-06-20T23:21:46.000Z
2022-02-06T18:57:33.000Z
tea/balance.py
pcubillos/TEA
e3e4844de4cacef89b9f4a8b1673545726bfc42e
[ "BSD-4-Clause-UC" ]
3
2015-06-04T16:56:26.000Z
2018-04-03T03:33:31.000Z
tea/balance.py
dzesmin/TEA
0ec66410f274d9deea7764d53d6363f9aaad3355
[ "BSD-4-Clause-UC" ]
19
2015-05-27T17:46:41.000Z
2021-08-05T10:54:59.000Z
#! /usr/bin/env python ############################# BEGIN FRONTMATTER ################################ # # # TEA - calculates Thermochemical Equilibrium Abundances of chemical species # # ...
45.958678
85
0.538482
02a4beb0015cd6725cf78ab2fb76439c197ecfc1
2,073
py
Python
sims/s251/calc-err.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
1
2019-12-19T16:21:13.000Z
2019-12-19T16:21:13.000Z
sims/s251/calc-err.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
null
null
null
sims/s251/calc-err.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
2
2020-01-08T06:23:33.000Z
2020-01-08T07:06:50.000Z
from pylab import * import tables fh = tables.openFile("s251-dg-diffuse-2d_q_1.h5") q = fh.root.StructGridField nx, ny, nc = q.shape dx = 2*pi/nx Xf = linspace(0, 2*pi-dx, nx) dy = 2*pi/ny Yf = linspace(0, 2*pi-dy, ny) XX, YY = meshgrid(Xf, Yf) Xhr = linspace(0, 2*pi, 101) Yhr = linspace(0, 2*pi, 101) XXhr, YYhr = me...
21.371134
65
0.578389
02a600c96645d56c182f0a175380bb6948a7e4b5
973
py
Python
PyCharm/Exercicios/Aula12/ex041.py
fabiodarice/Python
15ec1c7428f138be875111ac98ba38cf2eec1a93
[ "MIT" ]
null
null
null
PyCharm/Exercicios/Aula12/ex041.py
fabiodarice/Python
15ec1c7428f138be875111ac98ba38cf2eec1a93
[ "MIT" ]
null
null
null
PyCharm/Exercicios/Aula12/ex041.py
fabiodarice/Python
15ec1c7428f138be875111ac98ba38cf2eec1a93
[ "MIT" ]
null
null
null
# Importao de bibliotecas from datetime import date # Ttulo do programa print('\033[1;34;40mCLASSIFICAO DE CATEGORIAS PARA NATAO\033[m') # Objetos nascimento = int(input('\033[30mDigite o ano do seu nascimento:\033[m ')) idade = date.today().year - nascimento mirim = 9 infantil = 14 junior = 19 senior = 20 # Lgica i...
38.92
109
0.693731
02a632349d6da6f348ea1c189802c694c33a0241
1,681
py
Python
github-bot/harvester_github_bot/config.py
futuretea/bot
5f1f1a08e0fca6519e0126ff8f0b87fec23a38e3
[ "Apache-2.0" ]
null
null
null
github-bot/harvester_github_bot/config.py
futuretea/bot
5f1f1a08e0fca6519e0126ff8f0b87fec23a38e3
[ "Apache-2.0" ]
null
null
null
github-bot/harvester_github_bot/config.py
futuretea/bot
5f1f1a08e0fca6519e0126ff8f0b87fec23a38e3
[ "Apache-2.0" ]
null
null
null
from everett.component import RequiredConfigMixin, ConfigOptions from everett.manager import ConfigManager, ConfigOSEnv
64.653846
121
0.606782
02a66be9396c06d98dcd1e2835505651b29dc2d8
618
py
Python
scripts/MCA/1combine.py
jumphone/scRef
7308d8571c3e46f481c9432857de84fd13955166
[ "MIT" ]
10
2018-11-27T09:32:53.000Z
2022-03-21T02:42:54.000Z
scripts/MCA/1combine.py
jumphone/scRef
7308d8571c3e46f481c9432857de84fd13955166
[ "MIT" ]
null
null
null
scripts/MCA/1combine.py
jumphone/scRef
7308d8571c3e46f481c9432857de84fd13955166
[ "MIT" ]
2
2018-12-13T18:45:26.000Z
2020-06-20T07:18:19.000Z
import sys output=sys.argv[1] input_list=(sys.argv[2:]) EXP={} header=[] for input_file in input_list: fi=open(input_file) header=header+fi.readline().replace('"','').rstrip().split() for line in fi: seq=line.replace('"','').rstrip().split() if seq[0] in EXP: EXP[s...
16.263158
65
0.509709
02a84eeec97777f61185766e05077d7532adafbc
232
py
Python
pyramda/logic/any_pass.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
124
2015-07-30T21:34:25.000Z
2022-02-19T08:45:50.000Z
pyramda/logic/any_pass.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
37
2015-08-31T23:02:20.000Z
2022-02-04T04:45:28.000Z
pyramda/logic/any_pass.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
20
2015-08-04T18:59:09.000Z
2021-12-13T08:08:59.000Z
from pyramda.function.curry import curry from pyramda.function.always import always from pyramda.iterable.reduce import reduce from .either import either
23.2
47
0.784483
02ab52b832209102ceb109d8aa07a587d3c2d55e
817
py
Python
bio/scheduler/views.py
ZuluPro/bio-directory
4cdd3967e97363f59795d7b0fdb85998029370ff
[ "BSD-2-Clause" ]
null
null
null
bio/scheduler/views.py
ZuluPro/bio-directory
4cdd3967e97363f59795d7b0fdb85998029370ff
[ "BSD-2-Clause" ]
null
null
null
bio/scheduler/views.py
ZuluPro/bio-directory
4cdd3967e97363f59795d7b0fdb85998029370ff
[ "BSD-2-Clause" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.utils.timezone import now from schedule.models import Calendar from schedule.periods import Day from bio.scheduler import models
31.423077
74
0.684211
02ac373e21b06fce0640079ee711d2d820229c82
1,759
py
Python
src/undefined/1/try.py
ytyaru0/Python.Sqlite.framework.think.20180305101210
babb8f55183776a9cbed486613c4a1a7caa6daf2
[ "CC0-1.0" ]
null
null
null
src/undefined/1/try.py
ytyaru0/Python.Sqlite.framework.think.20180305101210
babb8f55183776a9cbed486613c4a1a7caa6daf2
[ "CC0-1.0" ]
null
null
null
src/undefined/1/try.py
ytyaru0/Python.Sqlite.framework.think.20180305101210
babb8f55183776a9cbed486613c4a1a7caa6daf2
[ "CC0-1.0" ]
null
null
null
try: import MyTable except NameError as e: print(e) import importlib importlib.import_module('Constraints') # locals() module Constraints.py # MyTableConstraints`from Constraints import PK,UK,FK,NN,D,C` # import sys, traceback exc_type, exc_value, exc_traceback = sys.exc_info()...
29.316667
75
0.665151
02aedbb634ecb4773466e66e6c16d7f09a8368bc
22,797
py
Python
trac/wiki/tests/admin.py
rjollos/trac
2bc0edd96b0eace18aaa8a2fe3cbeebdf1a88214
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/admin.py
rjollos/trac
2bc0edd96b0eace18aaa8a2fe3cbeebdf1a88214
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/admin.py
rjollos/trac
2bc0edd96b0eace18aaa8a2fe3cbeebdf1a88214
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
37.128664
79
0.605343
02aee1a4ed761847d16082b08939ec1e2b7eae92
2,646
py
Python
cli/cli.py
kandrio/toy-chord
c35b02f1e7d7ba44e14a86e1944acc8cee3cd5da
[ "Apache-2.0" ]
null
null
null
cli/cli.py
kandrio/toy-chord
c35b02f1e7d7ba44e14a86e1944acc8cee3cd5da
[ "Apache-2.0" ]
null
null
null
cli/cli.py
kandrio/toy-chord
c35b02f1e7d7ba44e14a86e1944acc8cee3cd5da
[ "Apache-2.0" ]
null
null
null
import click, requests, sys bootstrap_ip = '192.168.0.2' bootstrap_port = '8000' base_url = 'http://' + bootstrap_ip + ':' + bootstrap_port if __name__ == '__main__': toychord()
25.941176
77
0.628118
02b0025b6adb156b789fef5aff0bf34cd7804353
87
py
Python
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
1
2021-02-12T08:00:34.000Z
2021-02-12T08:00:34.000Z
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
null
null
null
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
null
null
null
from sportstrackeranalyzer.plugins.plugin_simple_distances import Plugin_SimpleDistance
87
87
0.942529
02b0d90057314fc93b4b1b7ec332876605dcadca
2,598
py
Python
migrations/versions/a12e86de073c_.py
ravenscroftj/harri_gttool
11e8e6b5e8c4bbfc62dc15c7d8b099d4a4fa1a5e
[ "MIT" ]
null
null
null
migrations/versions/a12e86de073c_.py
ravenscroftj/harri_gttool
11e8e6b5e8c4bbfc62dc15c7d8b099d4a4fa1a5e
[ "MIT" ]
4
2020-06-18T14:38:26.000Z
2021-12-13T19:54:55.000Z
migrations/versions/a12e86de073c_.py
ravenscroftj/harri_gttool
11e8e6b5e8c4bbfc62dc15c7d8b099d4a4fa1a5e
[ "MIT" ]
null
null
null
"""Initial creation of schema Revision ID: a12e86de073c Revises: Create Date: 2018-01-05 13:42:18.768932 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a12e86de073c' down_revision = None branch_labels = None depends_on = None
36.591549
90
0.681678
02b1a17a92fa82b80990e63f3f0d4e50c1738b1c
5,106
py
Python
takedown/__init__.py
zsxing99/Takedown-script
fcd0533ab71a1198651a6e53cd1d58039d4fa7fd
[ "MIT" ]
1
2021-01-06T00:23:03.000Z
2021-01-06T00:23:03.000Z
takedown/__init__.py
zsxing99/Takedown-script
fcd0533ab71a1198651a6e53cd1d58039d4fa7fd
[ "MIT" ]
4
2020-11-09T06:01:25.000Z
2020-12-17T06:39:30.000Z
takedown/__init__.py
zsxing99/Takedown-script
fcd0533ab71a1198651a6e53cd1d58039d4fa7fd
[ "MIT" ]
null
null
null
""" TakeDown v0.0.1 =============== author: Zesheng Xing email: zsxing@ucdavis.edu This Python project is to help people search on some client hosting contents that potential violate the their copyright. """ VERSION = "0.1.0" DESCRIPTION = "A python script that allows users to search potential copyright violated info...
60.785714
120
0.665883
02b1f2bbe7cd1537f8a13eba37e53d713c062a3c
977
py
Python
test/test_data.py
xoriath/py-cab
ab02faeaf69578bb9a0874632c610b27a9dd582f
[ "MIT" ]
null
null
null
test/test_data.py
xoriath/py-cab
ab02faeaf69578bb9a0874632c610b27a9dd582f
[ "MIT" ]
null
null
null
test/test_data.py
xoriath/py-cab
ab02faeaf69578bb9a0874632c610b27a9dd582f
[ "MIT" ]
null
null
null
import os.path CABEXTRACT_TEST_DIR = os.path.join(os.path.dirname(__file__), 'test-data', 'cabextract', 'cabs') CABEXTRACT_BUGS_DIR = os.path.join(os.path.dirname(__file__), 'test-data', 'cabextract', 'bugs') LIBMSPACK_TEST_DIR = os.path.join(os.path.dirname(__file__), 'test-data', 'libmspack')
36.185185
107
0.732856
02b2af84d188c97a9d4469b8353aba7b18703383
141
py
Python
utils/exception.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
2
2020-12-15T20:26:29.000Z
2020-12-15T20:27:26.000Z
utils/exception.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
null
null
null
utils/exception.py
Lolik-Bolik/Hashing_Algorithms
d3ba488cf575fc685d5ea603b1915de4d5fed713
[ "MIT" ]
null
null
null
""" Exceptions module """
11.75
44
0.64539
02b2cd966c362b3581d56d85cfd72c1cf6dfa614
1,212
py
Python
finetwork/plotter/_centrality_metrics.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
5
2021-12-07T22:14:10.000Z
2022-03-30T14:09:15.000Z
finetwork/plotter/_centrality_metrics.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
finetwork/plotter/_centrality_metrics.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
import networkx as nx
32.756757
72
0.615512
02b429e1598512b88fa03213426e6cd52e56ec98
3,558
py
Python
filters/incoming_filters.py
juhokokkala/podoco_juhokokkala
57709c539168b6aaddfc187b3a3610bef63bd68a
[ "MIT" ]
null
null
null
filters/incoming_filters.py
juhokokkala/podoco_juhokokkala
57709c539168b6aaddfc187b3a3610bef63bd68a
[ "MIT" ]
null
null
null
filters/incoming_filters.py
juhokokkala/podoco_juhokokkala
57709c539168b6aaddfc187b3a3610bef63bd68a
[ "MIT" ]
null
null
null
############################################################################### # Copyright (C) 2016 Juho Kokkala # This is part of Juho Kokkala's PoDoCo project. # # This file is licensed under the MIT License. ############################################################################### """ Particle filters for tra...
29.163934
79
0.559303
02b49f51a158d139c9f2c3154c3099e5edf9d8c5
2,610
py
Python
model/semantic_gcn.py
AndersonStra/Mucko
f630712ea5be5f3ce995958c050cd7b5398d31e0
[ "MIT" ]
2
2022-02-23T02:14:49.000Z
2022-03-23T13:27:44.000Z
model/semantic_gcn.py
AndersonStra/Mucko
f630712ea5be5f3ce995958c050cd7b5398d31e0
[ "MIT" ]
null
null
null
model/semantic_gcn.py
AndersonStra/Mucko
f630712ea5be5f3ce995958c050cd7b5398d31e0
[ "MIT" ]
1
2022-03-23T13:27:49.000Z
2022-03-23T13:27:49.000Z
import torch import torch.nn.functional as F from torch import nn import dgl import networkx as nx
31.071429
93
0.576245
02b57da73d7345d506383c6f3f8675776637aa80
3,808
py
Python
negentropy/scriptparser.py
shewitt-au/negentropy
40841e3f7d95f9124f4b59b0d591bf16e57ef312
[ "MIT" ]
4
2021-07-07T09:49:05.000Z
2021-11-14T04:17:11.000Z
negentropy/scriptparser.py
shewitt-au/negentropy
40841e3f7d95f9124f4b59b0d591bf16e57ef312
[ "MIT" ]
null
null
null
negentropy/scriptparser.py
shewitt-au/negentropy
40841e3f7d95f9124f4b59b0d591bf16e57ef312
[ "MIT" ]
1
2020-05-29T18:11:04.000Z
2020-05-29T18:11:04.000Z
from inspect import cleandoc from textwrap import indent from lark import Lark, Transformer from lark.exceptions import LarkError from .interval import Interval from . import errors
31.471074
99
0.541754
02b58fbea2e6f02fd5c603a709c877e0fd2cae0b
567
py
Python
Ex25.py
CarlosDouradoPGR/PythonBR-EstruturasDecs
727ab33f44c48e2d7026ea85d54791d1885c0bdc
[ "MIT" ]
null
null
null
Ex25.py
CarlosDouradoPGR/PythonBR-EstruturasDecs
727ab33f44c48e2d7026ea85d54791d1885c0bdc
[ "MIT" ]
null
null
null
Ex25.py
CarlosDouradoPGR/PythonBR-EstruturasDecs
727ab33f44c48e2d7026ea85d54791d1885c0bdc
[ "MIT" ]
null
null
null
print('Interrogando um suspeito: ') pg1 = str(input("Telefonou para a vtma?(S/N)\n").upper().strip()) pg2 = str(input('Esteve no local do crime?(S/N)\n').upper().strip()) pg3 = str(input('Mora perto da vtma?(S/N)\n').upper().strip()) pg4 = str(input('Devia para a vtma?(S/N)\n').upper().strip()) pg5 = str(input('J traba...
31.5
68
0.611993
02b6a5972aef51ad1a07e6ff7ba0827ae6cad8a4
2,235
py
Python
t/text_test.py
gsnedders/Template-Python
4081e4d820c1be0c0448a8dcb79e0703066da099
[ "Artistic-2.0" ]
null
null
null
t/text_test.py
gsnedders/Template-Python
4081e4d820c1be0c0448a8dcb79e0703066da099
[ "Artistic-2.0" ]
6
2015-10-13T13:46:10.000Z
2019-06-17T09:39:57.000Z
t/text_test.py
gsnedders/Template-Python
4081e4d820c1be0c0448a8dcb79e0703066da099
[ "Artistic-2.0" ]
3
2018-12-03T13:15:21.000Z
2019-03-13T09:12:09.000Z
from template import Template from template.test import TestCase, main DATA = r""" -- test -- This is a text block "hello" 'hello' 1/3 1\4 <html> </html> $ @ { } @{ } ${ } # ~ ' ! % *foo $a ${b} $c -- expect -- This is a text block "hello" 'hello' 1/3 1\4 <html> </html> $ @ { } @{ } ${ } # ~ ' ! % *foo $a ${b} $c ...
14.607843
71
0.503803
02b974ddbd9b73968df839c1e4fdda0cbb8567db
761
py
Python
research/destroyer.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/destroyer.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
research/destroyer.py
carrino/FrisPy
db9e59f465ee25d1c037d580c37da8f35b930b50
[ "MIT" ]
null
null
null
# Copyright (c) 2021 John Carrino import math from pprint import pprint import matplotlib.pyplot as plt from frispy import Disc from frispy import Discs model = Discs.destroyer mph_to_mps = 0.44704 v = 70 * mph_to_mps rot = -v / model.diameter * 1.2 x0 = [6, -3, 25] a, nose_up, hyzer = x0 disc = Disc(model, {"vx": ...
22.382353
112
0.638633
02b9d9f46387318db8e53a0fa38e85fa6e870ae5
6,200
py
Python
litex/soc/cores/clock/xilinx_common.py
suarezvictor/litex
d37ef60e70bd0ce8d28079143b6859d8b928395e
[ "ADSL" ]
1
2021-12-25T13:49:55.000Z
2021-12-25T13:49:55.000Z
litex/soc/cores/clock/xilinx_common.py
suarezvictor/litex
d37ef60e70bd0ce8d28079143b6859d8b928395e
[ "ADSL" ]
1
2022-02-11T14:39:50.000Z
2022-02-11T22:25:57.000Z
litex/soc/cores/clock/xilinx_common.py
suarezvictor/litex
d37ef60e70bd0ce8d28079143b6859d8b928395e
[ "ADSL" ]
1
2021-12-25T13:49:57.000Z
2021-12-25T13:49:57.000Z
# # This file is part of LiteX. # # Copyright (c) 2018-2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer from litex.build.io import DifferentialInput from litex.soc.interconnect.csr import * from li...
40.25974
105
0.528226
02ba8cd0ea54e5520bfcd504cff7483bc433ed10
3,044
py
Python
my_des/my_des.py
ipid/my-des
13340481c03113a23263ef824c119b3374028fe2
[ "MIT" ]
null
null
null
my_des/my_des.py
ipid/my-des
13340481c03113a23263ef824c119b3374028fe2
[ "MIT" ]
null
null
null
my_des/my_des.py
ipid/my-des
13340481c03113a23263ef824c119b3374028fe2
[ "MIT" ]
null
null
null
__all__ = ( 'des_encrypt', 'des_decrypt', ) from typing import List, Any from ._tools import * from ._constant import * from rich import print from rich.text import Text from rich.panel import Panel
30.138614
88
0.610053
02baf30e1ca8e8d64e8718657b516c4805fddd84
1,080
py
Python
Chromebook/setup.py
mahtuag/DistroSetup
8fb2b7351ea12163602a9a4c5a7b63fc87f326e2
[ "Apache-2.0" ]
3
2020-01-12T11:21:47.000Z
2021-09-16T06:43:22.000Z
Chromebook/setup.py
mahtuag/DistroSetup
8fb2b7351ea12163602a9a4c5a7b63fc87f326e2
[ "Apache-2.0" ]
2
2020-07-01T20:46:31.000Z
2020-07-01T21:10:09.000Z
Chromebook/setup.py
wingedrhino/DistroSetup
65edfda7dbded113bf5f3e6f53b331fc8aeaf1c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import subprocess import apt import sys cache = apt.cache.Cache() cache.update() cache.open() packages = [ 'git', 'curl', 'wget', 'software-properties-common', 'build-essential', 'automake', 'libtool', 'autoconf', 'pkg-config'...
18.305085
62
0.466667
02bb2ad5f8635de13653c1ed22f4978ec39fcfc6
377
py
Python
performance_test.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
performance_test.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
performance_test.py
alan-augustine/python_singly_linkedlist
f227a4154b22de8a273d319ecdd6329035d5d258
[ "MIT" ]
null
null
null
from time import time import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), 'src')) from singly_linkedlist.singly_linkedlist import SinglyLinkedList start = time() linked_list = SinglyLinkedList() for i in range(100000): linked_list.insert_head(111111111111) end = time() print("Took {0} sec...
23.5625
64
0.774536
02bdc143ddedce60ffc59109acab68856a9f8737
561
py
Python
python/leetcode/0001.py
bluewaitor/playground
330266ce28212dc5e32b0276c896f9ceffd35bf5
[ "MIT" ]
null
null
null
python/leetcode/0001.py
bluewaitor/playground
330266ce28212dc5e32b0276c896f9ceffd35bf5
[ "MIT" ]
null
null
null
python/leetcode/0001.py
bluewaitor/playground
330266ce28212dc5e32b0276c896f9ceffd35bf5
[ "MIT" ]
null
null
null
# 1. from typing import List, Optional if __name__ == '__main__': solution = Solution() print(solution.twoSum([2, 7, 11, 15], 9))
28.05
74
0.593583
02bea4753652cd78237dd184ed6e67ea923d42ea
454
py
Python
dataprocess/print_msg.py
lifelong-robotic-vision/openloris-scene-tools
ce6a4839f618bf036d3f3dbae14561bfc7413641
[ "MIT" ]
13
2021-03-27T15:49:21.000Z
2022-03-19T13:26:30.000Z
dataprocess/print_msg.py
lifelong-robotic-vision/openloris-scene-tools
ce6a4839f618bf036d3f3dbae14561bfc7413641
[ "MIT" ]
4
2021-03-30T10:40:43.000Z
2022-03-28T01:36:57.000Z
dataprocess/print_msg.py
lifelong-robotic-vision/openloris-scene-tools
ce6a4839f618bf036d3f3dbae14561bfc7413641
[ "MIT" ]
1
2022-02-16T13:42:32.000Z
2022-02-16T13:42:32.000Z
#!/usr/bin/env python2 import rosbag import sys filename = sys.argv[1] topics = sys.argv[2:] with rosbag.Bag(filename) as bag: for topic, msg, t in bag.read_messages(topics): print('%s @%.7f ----------------------------' % (topic, t.to_sec())) print(msg) print('Press ENTER to continue') ...
25.222222
76
0.497797
02beda4568a4663c141bf81401d0595971779e3a
1,011
py
Python
alegra/resources/invoice.py
okchaty/alegra
6c423b23a24650c9121da5f165f6f03669b98468
[ "MIT" ]
1
2022-03-31T03:44:50.000Z
2022-03-31T03:44:50.000Z
alegra/resources/invoice.py
okchaty/alegra
6c423b23a24650c9121da5f165f6f03669b98468
[ "MIT" ]
4
2020-03-24T17:54:03.000Z
2021-06-02T00:48:50.000Z
alegra/resources/invoice.py
okchaty/alegra
6c423b23a24650c9121da5f165f6f03669b98468
[ "MIT" ]
null
null
null
from alegra.api_requestor import APIRequestor from alegra.resources.abstract import CreateableAPIResource from alegra.resources.abstract import EmailableAPIResource from alegra.resources.abstract import ListableAPIResource from alegra.resources.abstract import UpdateableAPIResource from alegra.resources.abstract impor...
29.735294
68
0.681503
02bf002db0ba833a4cef03b49b9c37dba336934d
244
py
Python
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
1
2020-12-01T13:20:05.000Z
2020-12-01T13:20:05.000Z
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
"""Utilities for hyperparameter optimization. These estimators will operate in parallel. Their scalability depends on the underlying estimators being used. """ from dask_searchcv.model_selection import GridSearchCV, RandomizedSearchCV # noqa
34.857143
82
0.831967
02c06f0c429f92d5e5a68c4d5f561cf2b85e43c8
23
py
Python
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
x = 5 y = 6 print(x*y)
5.75
10
0.478261
02c10165e05312844fa4ea1cd0be76da5bd780bb
2,521
py
Python
whatrecord/tests/test_stcmd.py
ZLLentz/whatrecord
9f15da79e3063a64dbe6bb9678dbf52ebad46680
[ "BSD-3-Clause-LBNL" ]
2
2021-09-15T20:32:04.000Z
2021-12-17T16:46:10.000Z
whatrecord/tests/test_stcmd.py
ZLLentz/whatrecord
9f15da79e3063a64dbe6bb9678dbf52ebad46680
[ "BSD-3-Clause-LBNL" ]
92
2021-04-02T16:42:24.000Z
2022-03-31T22:24:52.000Z
whatrecord/tests/test_stcmd.py
ZLLentz/whatrecord
9f15da79e3063a64dbe6bb9678dbf52ebad46680
[ "BSD-3-Clause-LBNL" ]
2
2021-04-01T20:48:42.000Z
2021-09-08T18:51:34.000Z
import pytest from ..iocsh import IocshRedirect, IocshSplit, split_words
28.977011
77
0.410948
02c18f6d2d3ebb8100e01a783419de97602121b6
1,723
py
Python
code/generateElevationFile.py
etcluvic/sme.altm
ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea
[ "CC-BY-4.0" ]
null
null
null
code/generateElevationFile.py
etcluvic/sme.altm
ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea
[ "CC-BY-4.0" ]
null
null
null
code/generateElevationFile.py
etcluvic/sme.altm
ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea
[ "CC-BY-4.0" ]
null
null
null
from bs4 import BeautifulSoup from datetime import datetime from lxml import etree import time import codecs import pickle import os if __name__ == '__main__': doiPrefix = '10.7202' #erudit's doi prefix myTime = datetime.now().strftime('%Y-%m-%d_%H-%M-%S-%f') referencedDocs = '/mnt/smeCode/altm/code/out/' +...
22.671053
89
0.663958
02c1ec959e5357766a542721519334ad6dee8666
49,071
py
Python
MilightWifiBridge/MilightWifiBridge.py
K-Stefan/Milight-Wifi-Bridge-3.0-Python-Library
bcaf1e3a67ed56d9cedc3370d4b4d688f5d4b4fb
[ "MIT" ]
null
null
null
MilightWifiBridge/MilightWifiBridge.py
K-Stefan/Milight-Wifi-Bridge-3.0-Python-Library
bcaf1e3a67ed56d9cedc3370d4b4d688f5d4b4fb
[ "MIT" ]
null
null
null
MilightWifiBridge/MilightWifiBridge.py
K-Stefan/Milight-Wifi-Bridge-3.0-Python-Library
bcaf1e3a67ed56d9cedc3370d4b4d688f5d4b4fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Milight 3.0 (LimitlessLED Wifi Bridge v6.0) library: Control wireless lights (Milight 3.0) with Wifi Note that this library was tested with Milight Wifi iBox v1 and RGBW lights. It should work with any other lights and bridge using Milight 3.0 / LimitlessLED v6....
37.090703
163
0.610646
02c2fced0a87e7a137014b222d4278f9278017f9
2,602
py
Python
Homework/HW5/Test.py
zhufyaxel/ML_SaltyFish
84b839fa236c471e1fa8600093f0096ff79e4097
[ "MIT" ]
null
null
null
Homework/HW5/Test.py
zhufyaxel/ML_SaltyFish
84b839fa236c471e1fa8600093f0096ff79e4097
[ "MIT" ]
null
null
null
Homework/HW5/Test.py
zhufyaxel/ML_SaltyFish
84b839fa236c471e1fa8600093f0096ff79e4097
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from Base import Train, Predict if __name__ == "__main__": strProjectFolder = os.path.dirname(__file__) getTest(boolNormalize=True, boolDeep=False, boolBias=True, strProjectFolder=strProjectFolder)
35.643836
104
0.65834
02c3032f7fcf222c4dcbaeab9a4990232ced4e2b
3,948
py
Python
auxilium/__init__.py
sonntagsgesicht/auxilium
f4e34089d6230e4a2957cf8c2f462210c6c714f0
[ "Apache-2.0" ]
null
null
null
auxilium/__init__.py
sonntagsgesicht/auxilium
f4e34089d6230e4a2957cf8c2f462210c6c714f0
[ "Apache-2.0" ]
null
null
null
auxilium/__init__.py
sonntagsgesicht/auxilium
f4e34089d6230e4a2957cf8c2f462210c6c714f0
[ "Apache-2.0" ]
1
2020-03-12T22:51:27.000Z
2020-03-12T22:51:27.000Z
# -*- coding: utf-8 -*- # auxilium # -------- # Python project for an automated test and deploy toolkit. # # Author: sonntagsgesicht # Version: 0.2.8, copyright Friday, 14 January 2022 # Website: https://github.com/sonntagsgesicht/auxilium # License: Apache License 2.0 (see LICENSE file) from logging import log...
33.457627
79
0.636272
02c4f7ff3bc4a17aba2744ac9fa57ef882474bfa
7,875
py
Python
importtime_output_wrapper.py
Victor333Huesca/importtime-output-wrapper
15941ffe30a93a2d5ec1832e16df160caa1d51e4
[ "MIT" ]
1
2021-02-10T13:15:47.000Z
2021-02-10T13:15:47.000Z
importtime_output_wrapper.py
dominikwalk/importtime_output_wrapper
67c94371cd92ea66f4dbdd8840cf6120db4160c0
[ "MIT" ]
1
2021-09-01T19:25:33.000Z
2021-09-01T19:25:33.000Z
importtime_output_wrapper.py
dominikwalk/importtime_output_wrapper
67c94371cd92ea66f4dbdd8840cf6120db4160c0
[ "MIT" ]
null
null
null
import re import subprocess import shutil import sys import json import argparse from typing import List, NamedTuple, Optional, Sequence PATTERN_IMPORT_TIME = re.compile(r"^import time:\s+(\d+) \|\s+(\d+) \|(\s+.*)") def get_import_time(module: str) -> str: """ Call the importtime function as subprocess, ...
30.405405
117
0.590349
02c5550343d841d31714a9ed5ade721bffe3bee2
6,631
py
Python
test/unit/test_params.py
davvil/sockeye
188db761d314a913b88a5ff44395abb77797e5b9
[ "Apache-2.0" ]
1,117
2017-06-12T15:11:12.000Z
2022-03-23T00:53:51.000Z
test/unit/test_params.py
davvil/sockeye
188db761d314a913b88a5ff44395abb77797e5b9
[ "Apache-2.0" ]
553
2017-06-14T09:24:10.000Z
2022-03-31T20:17:23.000Z
test/unit/test_params.py
davvil/sockeye
188db761d314a913b88a5ff44395abb77797e5b9
[ "Apache-2.0" ]
369
2017-06-12T15:22:34.000Z
2022-03-30T19:32:27.000Z
# Copyright 2017--2019 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" fi...
47.028369
119
0.663248
02c5bed1bce16f210d130ab65cdc1e0b0a119b39
8,194
py
Python
code/utils/data_preparation.py
cltl/positive-interpretations
27640be255e8072b3333851f605c13c80e5d7ed3
[ "Apache-2.0" ]
null
null
null
code/utils/data_preparation.py
cltl/positive-interpretations
27640be255e8072b3333851f605c13c80e5d7ed3
[ "Apache-2.0" ]
null
null
null
code/utils/data_preparation.py
cltl/positive-interpretations
27640be255e8072b3333851f605c13c80e5d7ed3
[ "Apache-2.0" ]
null
null
null
import csv import collections import pandas as pd from random import shuffle from tqdm import tqdm def get_all_tokens_conll(conll_file): """ Reads a CoNLL-2011 file and returns all tokens with their annotations in a dataframe including the original sentence identifiers from OntoNotes """ all_toke...
45.522222
117
0.569929
02c6de12abd9a20df4664b77466fae5d81958b59
800
py
Python
{{ cookiecutter.project_name }}/setup.py
wlongxiang/cookiecutter-data-science
bbae41e22ac7db74430f3c6b457c2ff7f52537e1
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/setup.py
wlongxiang/cookiecutter-data-science
bbae41e22ac7db74430f3c6b457c2ff7f52537e1
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/setup.py
wlongxiang/cookiecutter-data-science
bbae41e22ac7db74430f3c6b457c2ff7f52537e1
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup import re VERSIONFILE = "{{ cookiecutter.project_name }}/__init__.py" with open(VERSIONFILE, "rt") as versionfle: verstrline = versionfle.read() version_re = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(version_re, verstrline, re.M) if mo: ver_str = mo.group(...
30.769231
77
0.6975
02c7a6f45d41d451a3a0c3c43389880ddc7a1852
8,759
py
Python
square/api/cards_api.py
codertjay/square-python-sdk
1f5f34bc792e31991db0fb2756d92c717f2dcfa4
[ "Apache-2.0" ]
1
2022-02-28T13:18:30.000Z
2022-02-28T13:18:30.000Z
square/api/cards_api.py
codertjay/square-python-sdk
1f5f34bc792e31991db0fb2756d92c717f2dcfa4
[ "Apache-2.0" ]
null
null
null
square/api/cards_api.py
codertjay/square-python-sdk
1f5f34bc792e31991db0fb2756d92c717f2dcfa4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from square.api_helper import APIHelper from square.http.api_response import ApiResponse from square.api.base_api import BaseApi
36.194215
120
0.612513
02c8b5302247d3f0de4a0fcfd8043adc64146600
1,564
py
Python
setup.py
nilp0inter/threadedprocess
0120d6e795782c9f527397490846cd214d9196e1
[ "PSF-2.0" ]
9
2018-03-21T22:19:10.000Z
2021-06-08T12:10:15.000Z
setup.py
nilp0inter/threadedprocess
0120d6e795782c9f527397490846cd214d9196e1
[ "PSF-2.0" ]
3
2019-09-18T19:57:28.000Z
2020-07-17T08:06:54.000Z
setup.py
nilp0inter/threadedprocess
0120d6e795782c9f527397490846cd214d9196e1
[ "PSF-2.0" ]
4
2018-03-24T23:10:38.000Z
2020-06-18T02:26:24.000Z
import os from setuptools import setup try: import concurrent.futures except ImportError: CONCURRENT_FUTURES_PRESENT = False else: CONCURRENT_FUTURES_PRESENT = True setup( name="threadedprocess", version="0.0.5", author="Roberto Abdelkader Martinez Perez", author_email="robertomartinezp@...
34
71
0.658568
02c90b77315d19cadcdffd4cbada1b9dd920626e
2,592
py
Python
coremltools/converters/mil/mil/passes/const_elimination.py
VadimLevin/coremltools
66c17b0fa040a0d8088d33590ab5c355478a9e5c
[ "BSD-3-Clause" ]
3
2018-10-02T17:23:01.000Z
2020-08-15T04:47:07.000Z
coremltools/converters/mil/mil/passes/const_elimination.py
holzschu/coremltools
5ece9069a1487d5083f00f56afe07832d88e3dfa
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/passes/const_elimination.py
holzschu/coremltools
5ece9069a1487d5083f00f56afe07832d88e3dfa
[ "BSD-3-Clause" ]
1
2021-05-07T15:38:20.000Z
2021-05-07T15:38:20.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import numpy as np from coremltools.converters.mil.mil import Builder as mb...
32
83
0.58179
02c92d6241ebe854f6a64f06a949f8d5440cd141
13,749
py
Python
matching/retrieval.py
Macielyoung/sentence_representation_matching
aa33147eb870a805f69dbc54c2177b11a94cf814
[ "Apache-2.0" ]
22
2022-01-24T10:08:39.000Z
2022-03-31T10:47:05.000Z
matching/retrieval.py
Macielyoung/sentence_representation_matching
aa33147eb870a805f69dbc54c2177b11a94cf814
[ "Apache-2.0" ]
3
2022-03-06T11:52:25.000Z
2022-03-15T06:32:17.000Z
matching/retrieval.py
Macielyoung/sentence_representation_matching
aa33147eb870a805f69dbc54c2177b11a94cf814
[ "Apache-2.0" ]
5
2022-02-28T09:13:04.000Z
2022-03-22T12:50:09.000Z
from simcse import SimCSE from esimcse import ESimCSE from promptbert import PromptBERT from sbert import SBERT from cosent import CoSent from config import Params from log import logger import torch from transformers import AutoTokenizer simcse_retrieval = SimCSERetrieval(Params.pretrained_model...
48.928826
128
0.630664
02c969f151e36baef658a4ae669ed82de7db3bc7
15,885
py
Python
Backend/src/awattprice/notifications.py
a8/AWattPrice
008df74b66f4790276f847eecb4e05536d66b518
[ "BSD-3-Clause" ]
null
null
null
Backend/src/awattprice/notifications.py
a8/AWattPrice
008df74b66f4790276f847eecb4e05536d66b518
[ "BSD-3-Clause" ]
1
2021-05-31T06:07:21.000Z
2021-05-31T06:07:21.000Z
Backend/src/awattprice/notifications.py
a8/AWattPrice
008df74b66f4790276f847eecb4e05536d66b518
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Check which users apply to receive certain notifications. Send notifications via APNs to those users. """ import asyncio import json from datetime import datetime from math import floor from pathlib import Path from typing import List, Optional, Tuple import arrow # type: ignore impor...
41.25974
174
0.629902
02ca7b014cd9960cd4ff5fbac17c8225edc804e1
821
py
Python
examples/charts/horizon.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
1
2015-07-17T13:57:01.000Z
2015-07-17T13:57:01.000Z
examples/charts/horizon.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
null
null
null
examples/charts/horizon.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
1
2021-08-01T08:38:53.000Z
2021-08-01T08:38:53.000Z
from collections import OrderedDict import pandas as pd from bokeh.charts import Horizon, output_file, show # read in some stock data from the Yahoo Finance API AAPL = pd.read_csv( "http://ichart.yahoo.com/table.csv?s=AAPL&a=0&b=1&c=2000&d=0&e=1&f=2010", parse_dates=['Date']) MSFT = pd.read_csv( "http://...
24.147059
77
0.662607
02cb62a1399f0fec841542f9ed5b1a63b1a1c4d2
4,023
py
Python
backend.py
CameronStollery/road-trip-planner
440207ccb9273123695c04ec3027b7822413bf2c
[ "MIT" ]
1
2020-08-18T13:21:00.000Z
2020-08-18T13:21:00.000Z
backend.py
CameronStollery/road-trip-planner
440207ccb9273123695c04ec3027b7822413bf2c
[ "MIT" ]
1
2020-08-11T10:24:49.000Z
2020-08-11T14:49:22.000Z
backend.py
CameronStollery/road-trip-planner
440207ccb9273123695c04ec3027b7822413bf2c
[ "MIT" ]
null
null
null
# from __future__ import print_function import pymzn import time from pprint import pprint from collections import OrderedDict import openrouteservice from openrouteservice.geocode import pelias_search from openrouteservice.distance_matrix import distance_matrix client = openrouteservice.Client(key='') # routes = cli...
34.384615
123
0.637584
02cbfb02bf42141ca374969c292f1c21a9ad8577
597
py
Python
examples/python/django/load-generator.py
ScriptBox99/pyroscope
fbf5bd297caf6a987f9fb6ffd0240ed804eaf9b4
[ "Apache-2.0" ]
5,751
2021-01-01T18:58:15.000Z
2022-03-31T19:19:39.000Z
examples/python/django/load-generator.py
ScriptBox99/pyroscope
fbf5bd297caf6a987f9fb6ffd0240ed804eaf9b4
[ "Apache-2.0" ]
913
2021-01-05T07:46:12.000Z
2022-03-31T20:04:39.000Z
examples/python/django/load-generator.py
admariner/pyroscope
e13afb40348914ae29b813881bfad0ca3b89f250
[ "Apache-2.0" ]
329
2021-01-11T06:25:55.000Z
2022-03-29T08:19:33.000Z
import random import requests import time HOSTS = [ 'us-east-1', 'us-west-1', 'eu-west-1', ] VEHICLES = [ 'bike', 'scooter', 'car', ] if __name__ == "__main__": print(f"starting load generator") time.sleep(15) print('done sleeping') while True: host = HOSTS[random.rand...
21.321429
64
0.582915
02cc889fddc76c8e78693be834e7b5343b8c87f5
3,148
py
Python
python/Multi-Service/content_moderator_cs.py
kyichii/cognitive-services-quickstart-code
a48549dd6b1fbb795fbe3cc5286c888306b6eb79
[ "MIT" ]
2
2020-12-06T18:05:30.000Z
2020-12-09T17:01:21.000Z
python/Multi-Service/content_moderator_cs.py
diberry/cognitive-services-quickstart-code
53972838ff64937e099c6886ff4a3c019b2ef346
[ "MIT" ]
null
null
null
python/Multi-Service/content_moderator_cs.py
diberry/cognitive-services-quickstart-code
53972838ff64937e099c6886ff4a3c019b2ef346
[ "MIT" ]
null
null
null
import os from pprint import pprint from msrest.authentication import CognitiveServicesCredentials from azure.cognitiveservices.vision.contentmoderator import ContentModeratorClient from azure.cognitiveservices.vision.contentmoderator.models import ( Evaluate, OCR, FoundFaces ) ''' This quickstart uses Content Modera...
39.35
115
0.750318
02cee01f37525203bf54b532eb16ee060a8b571e
1,498
py
Python
usda_nutrition/admin.py
danielnaab/django-usda-nutrition
ba05bf741844a1858ad4bc2474e0640cba42994c
[ "BSD-3-Clause" ]
11
2017-01-18T19:57:11.000Z
2021-06-19T08:03:21.000Z
usda_nutrition/admin.py
danielnaab/django-usda-nutrition
ba05bf741844a1858ad4bc2474e0640cba42994c
[ "BSD-3-Clause" ]
3
2017-09-24T01:09:42.000Z
2021-08-11T02:44:55.000Z
usda_nutrition/admin.py
danielnaab/django-usda-nutrition
ba05bf741844a1858ad4bc2474e0640cba42994c
[ "BSD-3-Clause" ]
8
2016-09-20T17:46:39.000Z
2020-04-24T16:20:44.000Z
from django.contrib import admin from . import models admin.site.register(models.DerivationCode, DerivationCodeAdmin) admin.site.register(models.FoodDescription, FoodDescriptionAdmin) admin.site.register(models.FoodGroup, FoodGroupAdmin) admin.site.register(models.Footnote, FootnoteAdmin) admin.site.registe...
28.264151
77
0.763017
02cf4f4a30c1e8ca50d5538321deac3fbf7ca247
1,779
py
Python
FisherExactTest/FisherExactTest.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/FisherExactTest.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/FisherExactTest.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
from decimal import Decimal def FisherExact(a: int, b: int, c: int, d: int) -> Decimal: """Calculate two-tailed Fisher's exact test for 2x2 continguency table Args: a: column 1 row 1 b: column 2 row 1 c: column 1 row 2 c: column 2 row 2 Returns: ...
21.962963
74
0.441821
02cfb28047d612da27deb76d6967a4e3c09ca214
1,528
py
Python
Signature Detection and Analysis/signprocessing.py
andrevks/Document-Forgery-Detection
77dcde3867732a55cd0f4604627d7bf67a5e79a5
[ "MIT" ]
null
null
null
Signature Detection and Analysis/signprocessing.py
andrevks/Document-Forgery-Detection
77dcde3867732a55cd0f4604627d7bf67a5e79a5
[ "MIT" ]
null
null
null
Signature Detection and Analysis/signprocessing.py
andrevks/Document-Forgery-Detection
77dcde3867732a55cd0f4604627d7bf67a5e79a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Mar 31 04:01:49 2018 @author: abhilasha """ #Team: GuardiansOfGalaxy from PIL import Image, ImageEnhance if __name__ == "__main__": filename = 'data\\Signature.jpg' img = Image.open(filename) enhance_signature(img) get_boxed_signature()
25.466667
86
0.623037
02d171270f0a756f0c3935d386245a162e597707
23,802
py
Python
crowdsource/views.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
5
2021-08-16T16:32:41.000Z
2022-02-22T03:47:49.000Z
crowdsource/views.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
7
2021-04-12T14:48:48.000Z
2022-02-14T08:30:57.000Z
crowdsource/views.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
1
2021-04-28T14:28:34.000Z
2021-04-28T14:28:34.000Z
from main.customdecorators import check_honeypot_conditional from django.core.files.uploadedfile import InMemoryUploadedFile from django.http.response import HttpResponseRedirect, JsonResponse from rest_framework.decorators import action from api.models import ObjectType from django.core.cache import cache from crowdso...
48.279919
150
0.56991
02d235dc4031cc79fd9ab325030c238874738554
2,232
py
Python
epochCiCdApi/ita/viewsOperations.py
matsumoto-epoch/epoch
c4b1982e68aa8cb108e6ae9b1c0de489d40d4db5
[ "Apache-2.0" ]
null
null
null
epochCiCdApi/ita/viewsOperations.py
matsumoto-epoch/epoch
c4b1982e68aa8cb108e6ae9b1c0de489d40d4db5
[ "Apache-2.0" ]
null
null
null
epochCiCdApi/ita/viewsOperations.py
matsumoto-epoch/epoch
c4b1982e68aa8cb108e6ae9b1c0de489d40d4db5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
28.987013
108
0.72043
02d4e6b3a3eee626ac3250b843b87270720d699e
56
py
Python
tests/test_init.py
keisuke-umezawa/chutil
df60440983c38a6dbbe4710019bcec5e83331904
[ "MIT" ]
1
2019-02-16T06:20:50.000Z
2019-02-16T06:20:50.000Z
tests/test_init.py
keisuke-umezawa/chutil
df60440983c38a6dbbe4710019bcec5e83331904
[ "MIT" ]
null
null
null
tests/test_init.py
keisuke-umezawa/chutil
df60440983c38a6dbbe4710019bcec5e83331904
[ "MIT" ]
null
null
null
import chutil as module
9.333333
23
0.714286
02d56efb28c0baac4d608dce2e0ed1e45b667e10
932
py
Python
src/service/uri_generator.py
HalbardHobby/git-LFS-for-Lambda
d19ba6fc4605d5dc2dba52acb4236c68787f8bde
[ "MIT" ]
null
null
null
src/service/uri_generator.py
HalbardHobby/git-LFS-for-Lambda
d19ba6fc4605d5dc2dba52acb4236c68787f8bde
[ "MIT" ]
null
null
null
src/service/uri_generator.py
HalbardHobby/git-LFS-for-Lambda
d19ba6fc4605d5dc2dba52acb4236c68787f8bde
[ "MIT" ]
null
null
null
"""Generates pre-signed uri's for blob handling.""" from boto3 import client import os s3_client = client('s3') def create_uri(repo_name, resource_oid, upload=False, expires_in=300): """Create a download uri for the given oid and repo.""" action = 'get_object' if upload: action = 'put_object' ...
31.066667
71
0.626609
02d7c80b9c168487db13fab6edd36bd30ed15c3d
4,919
py
Python
rnn/chatbot/chatbot.py
llichengtong/yx4
17de7a6257a9f0c38e12089b2d1947927ec54c90
[ "Apache-2.0" ]
128
2017-03-04T08:53:44.000Z
2020-06-05T11:19:16.000Z
rnn/chatbot/chatbot.py
github-jinwei/TensorFlowBook
17de7a6257a9f0c38e12089b2d1947927ec54c90
[ "Apache-2.0" ]
null
null
null
rnn/chatbot/chatbot.py
github-jinwei/TensorFlowBook
17de7a6257a9f0c38e12089b2d1947927ec54c90
[ "Apache-2.0" ]
120
2017-02-07T09:41:25.000Z
2022-03-17T00:57:59.000Z
# coding=utf8 import logging import os import random import re import numpy as np import tensorflow as tf from seq2seq_conversation_model import seq2seq_model from seq2seq_conversation_model import data_utils from seq2seq_conversation_model import tokenizer from seq2seq_conversation_model.seq2seq_conversation_model imp...
36.708955
98
0.645456
02d7c976dba252653f990cef7776c119996e55c4
5,986
py
Python
chip8_pygame_integration/config_test.py
Artoooooor/chip8
d5132348f3081aeb9af19814d8251084ae723379
[ "MIT" ]
null
null
null
chip8_pygame_integration/config_test.py
Artoooooor/chip8
d5132348f3081aeb9af19814d8251084ae723379
[ "MIT" ]
null
null
null
chip8_pygame_integration/config_test.py
Artoooooor/chip8
d5132348f3081aeb9af19814d8251084ae723379
[ "MIT" ]
null
null
null
import unittest import pygame from chip8_pygame_integration.config import get_config, KeyBind, to_text DEFAULT = [KeyBind(pygame.K_o, pygame.KMOD_CTRL, 'some_command')] if __name__ == '__main__': unittest.main()
36.278788
77
0.664885
02d8c4f8a25b42b9035c973df73101d47ff6f388
1,934
py
Python
Trees/Binary Trees/Preorder_Binary_Tree.py
jarvis-1805/DSAwithPYTHON
872073d1b8d0001ea8b1a54b5e327dd0c1c406f2
[ "Apache-2.0" ]
1
2021-03-21T18:54:34.000Z
2021-03-21T18:54:34.000Z
Trees/Binary Trees/Preorder_Binary_Tree.py
jarvis-1805/DSAwithPYTHON
872073d1b8d0001ea8b1a54b5e327dd0c1c406f2
[ "Apache-2.0" ]
null
null
null
Trees/Binary Trees/Preorder_Binary_Tree.py
jarvis-1805/DSAwithPYTHON
872073d1b8d0001ea8b1a54b5e327dd0c1c406f2
[ "Apache-2.0" ]
null
null
null
''' Preorder Binary Tree For a given Binary Tree of integers, print the pre-order traversal. Input Format: The first and the only line of input will contain the nodes data, all separated by a single space. Since -1 is used as an indication whether the left or right node data exist for root, it will not be a part of t...
21.977273
224
0.643226
02da14e11f8f22cf912a874caefb9a62ca916f39
1,693
py
Python
test/pages/base_pages.py
gordonnguyen/10fastfingers-auto-type
624a6667b67743904791929a36d12b0f12f50e05
[ "MIT" ]
null
null
null
test/pages/base_pages.py
gordonnguyen/10fastfingers-auto-type
624a6667b67743904791929a36d12b0f12f50e05
[ "MIT" ]
1
2021-03-16T13:31:33.000Z
2021-03-16T13:31:33.000Z
test/pages/base_pages.py
gordonnguyen/10fastfingers-auto-type
624a6667b67743904791929a36d12b0f12f50e05
[ "MIT" ]
null
null
null
''' Super classes for Page object Serve as a base template for page automating functions with selenium ''' from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from utils.best_buy.locators import Locators from utils.best_buy import urls
34.55102
106
0.705848
02db29d58f9fcbf982055980d5e6b51e86d8c020
2,419
py
Python
Form-Filler.py
Zaidtech/AUTOMATION-SCRIPTS
88c83e1edca02b0b86f3de4981a5f27f398b4441
[ "MIT" ]
4
2020-11-04T13:25:48.000Z
2022-03-29T01:21:49.000Z
Form-Filler.py
Zaidtech/AUTOMATION-SCRIPTS
88c83e1edca02b0b86f3de4981a5f27f398b4441
[ "MIT" ]
null
null
null
Form-Filler.py
Zaidtech/AUTOMATION-SCRIPTS
88c83e1edca02b0b86f3de4981a5f27f398b4441
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ This script has been tested on various custom google forms and other various forms with few alteratios .. Google forms which does include the input type "token" attribute are found to be safer than those who don't. Any form contains various fields. 1. input text fields 2. radio 3. checkb...
27.804598
107
0.653162
02dbc26cd1fbc18374360e0a5ad4732c9bed896a
1,306
py
Python
lektor_root_relative_path.py
a2csuga/lektor-root-relative-path
5c200bdae50a78a2a295a3c0bb5440004b7fa72a
[ "MIT" ]
2
2018-10-20T10:45:25.000Z
2019-08-12T08:53:11.000Z
lektor_root_relative_path.py
a2csuga/lektor-root-relative-path
5c200bdae50a78a2a295a3c0bb5440004b7fa72a
[ "MIT" ]
2
2018-09-21T14:35:33.000Z
2018-10-15T21:43:08.000Z
lektor_root_relative_path.py
a2csuga/lektor-root-relative-path
5c200bdae50a78a2a295a3c0bb5440004b7fa72a
[ "MIT" ]
1
2017-11-30T12:58:08.000Z
2017-11-30T12:58:08.000Z
# -*- coding: utf-8 -*- try: # py3 from urllib.parse import urljoin, quote except ImportError: # py2 from urlparse import urljoin from urllib import quote from lektor.pluginsystem import Plugin from furl import furl
31.853659
87
0.598009
02dbf3b5b09c9427c60b05103927121e020bab72
1,375
py
Python
controllers/main.py
dduarte-odoogap/odoo_jenkins
69bfcf088f75426c0e4b961a60b5c15a65b37979
[ "BSD-2-Clause" ]
5
2018-10-26T19:52:45.000Z
2021-11-04T03:59:22.000Z
controllers/main.py
dduarte-odoogap/odoo_jenkins
69bfcf088f75426c0e4b961a60b5c15a65b37979
[ "BSD-2-Clause" ]
null
null
null
controllers/main.py
dduarte-odoogap/odoo_jenkins
69bfcf088f75426c0e4b961a60b5c15a65b37979
[ "BSD-2-Clause" ]
6
2017-11-10T07:15:40.000Z
2021-02-24T10:55:15.000Z
# -*- coding: utf-8 -*- from odoo import http from odoo.http import request import jenkins
33.536585
95
0.611636
02dc9cb7558321b5cc7729d952a58e8fc90917a1
996
py
Python
attendance.py
mykbgwl/Students-Attendance
bd9aef8cd12edff7fc47326fdeca6131eef575a6
[ "Apache-2.0" ]
null
null
null
attendance.py
mykbgwl/Students-Attendance
bd9aef8cd12edff7fc47326fdeca6131eef575a6
[ "Apache-2.0" ]
1
2021-05-11T08:23:13.000Z
2021-05-11T08:23:13.000Z
attendance.py
mykbgwl/Students-Attendance
bd9aef8cd12edff7fc47326fdeca6131eef575a6
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import pyzbar.pyzbar as pyzbar import sys import time import pybase64 # Starting the webcam capt = cv2.VideoCapture(0) names = [] # Creating Attendees file fob = open('attendees.txt', 'a+') print('Reading code...') # Function of Data present or not whil...
17.473684
63
0.567269
02dcb415d51e0799783c6d81ac253913ae5ccdc0
19,562
py
Python
net.py
rishabnayak/SegAN
6f9415a079d8417ecebec3279338423286decf1c
[ "MIT" ]
null
null
null
net.py
rishabnayak/SegAN
6f9415a079d8417ecebec3279338423286decf1c
[ "MIT" ]
null
null
null
net.py
rishabnayak/SegAN
6f9415a079d8417ecebec3279338423286decf1c
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F import torch from numpy.random import normal from math import sqrt import argparse channel_dim = 3 ndf = 64
41.183158
86
0.517227
02dd42303eb7feb71bc2c94bd3f296e7b8ac9419
2,155
py
Python
karmagrambot/__init__.py
caiopo/karmagrambot
00935d0de228e516047bc3848344290be2cfcc0f
[ "MIT" ]
null
null
null
karmagrambot/__init__.py
caiopo/karmagrambot
00935d0de228e516047bc3848344290be2cfcc0f
[ "MIT" ]
null
null
null
karmagrambot/__init__.py
caiopo/karmagrambot
00935d0de228e516047bc3848344290be2cfcc0f
[ "MIT" ]
null
null
null
import dataset import logging from telegram.ext import Updater, CommandHandler, MessageHandler, Filters from .config import TOKEN, DB_URI from .commands import HANDLERS logging.basicConfig()
21.767677
73
0.620418
02dff69165c131d9f3101aa1c12186dc1957dfcb
647
py
Python
app/services/articles.py
StanislavRud/api-realword-app-test
9a49f299b02cec26d237f3bc4b363c8b93520b7b
[ "MIT" ]
1,875
2019-03-27T14:26:20.000Z
2022-03-31T14:52:50.000Z
app/services/articles.py
StanislavRud/api-realword-app-test
9a49f299b02cec26d237f3bc4b363c8b93520b7b
[ "MIT" ]
232
2019-04-11T11:05:48.000Z
2022-03-05T10:23:50.000Z
app/services/articles.py
StanislavRud/api-realword-app-test
9a49f299b02cec26d237f3bc4b363c8b93520b7b
[ "MIT" ]
433
2019-04-11T01:48:59.000Z
2022-03-31T10:33:42.000Z
from slugify import slugify from app.db.errors import EntityDoesNotExist from app.db.repositories.articles import ArticlesRepository from app.models.domain.articles import Article from app.models.domain.users import User
26.958333
85
0.775889
02e1c3bcb817bb01646a68ea5b10f1ece433f8ce
1,240
py
Python
tests/test_decoder.py
carlosmouracorreia/python_mp3_decoder
79ea61f3ceedc07a173a216538f4acbdf1c4c6c3
[ "MIT" ]
23
2016-06-22T14:18:28.000Z
2020-11-23T12:39:01.000Z
tests/test_decoder.py
carlosmouracorreia/python_mp3_decoder
79ea61f3ceedc07a173a216538f4acbdf1c4c6c3
[ "MIT" ]
3
2019-12-10T01:07:41.000Z
2021-03-29T14:40:29.000Z
tests/test_decoder.py
carlosmouracorreia/python_mp3_decoder
79ea61f3ceedc07a173a216538f4acbdf1c4c6c3
[ "MIT" ]
1
2019-10-29T11:55:08.000Z
2019-10-29T11:55:08.000Z
from pymp3decoder import Decoder import contextlib import os import math import pyaudio CHUNK_SIZE = 4096
24.313725
91
0.575806