hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
e72dedc6f276d06e4eeffe8f27a5436c09e1ef11
6,721
py
Python
Dark_Scripts/plot_MS-Figure_3_v1_DARK.py
zmlabe/ModelBiasesANN
df28842a8594870db3282682b1261af5058af832
[ "MIT" ]
1
2022-02-12T11:56:54.000Z
2022-02-12T11:56:54.000Z
Dark_Scripts/plot_MS-Figure_3_v1_DARK.py
zmlabe/ModelBiasesANN
df28842a8594870db3282682b1261af5058af832
[ "MIT" ]
null
null
null
Dark_Scripts/plot_MS-Figure_3_v1_DARK.py
zmlabe/ModelBiasesANN
df28842a8594870db3282682b1261af5058af832
[ "MIT" ]
null
null
null
""" Script to plot figure 3 Author : Zachary M. Labe Date : 7 July 2021 Version : 1 """ ### Import packages import sys import matplotlib.pyplot as plt import matplotlib.colors as c import numpy as np import palettable.cubehelix as cm import palettable.scientific.sequential as sss import palettable.carto...
38.626437
101
0.583544
a23b79c4e4e9bd0c126dc8162f163cbbe04ca528
3,820
py
Python
virtual/lib/python3.6/site-packages/pip/_internal/models/target_python.py
Ruterana/clone_instagram
a068587ef1d1a93ec8d1c08086bf11c0fb274b83
[ "MIT" ]
120
2019-11-12T19:22:44.000Z
2020-05-17T12:17:25.000Z
virtual/lib/python3.6/site-packages/pip/_internal/models/target_python.py
Ruterana/clone_instagram
a068587ef1d1a93ec8d1c08086bf11c0fb274b83
[ "MIT" ]
123
2019-09-10T14:48:01.000Z
2019-11-28T21:24:06.000Z
virtual/lib/python3.6/site-packages/pip/_internal/models/target_python.py
Krasivaya/Tracks
c18d1c9222dff39e4678d44495a8a7d9434339ff
[ "MIT" ]
98
2019-10-17T14:48:28.000Z
2022-01-21T03:33:38.000Z
import sys from pip._internal.pep425tags import get_supported, version_info_to_nodot from pip._internal.utils.misc import normalize_version_info from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Optional, Tuple from pip._internal.pep425tags import Pep425...
35.700935
76
0.610471
a74641bea6ae48f17f8a757c31b6bf0a10a4306b
1,540
py
Python
eggs/ZODB-4.1.0-py2.7.egg/ZODB/UndoLogCompatible.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
eggs/ZODB-4.1.0-py2.7.egg/ZODB/UndoLogCompatible.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
eggs/ZODB-4.1.0-py2.7.egg/ZODB/UndoLogCompatible.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
40.526316
78
0.551948
15bf5bf91fd0716fadb62386a93f248e0e406e1c
200
py
Python
Editor/updator/config.py
RangHo/pini-engine
e1407724de32a433b7b46e0ee2469240b70d960b
[ "MIT" ]
null
null
null
Editor/updator/config.py
RangHo/pini-engine
e1407724de32a433b7b46e0ee2469240b70d960b
[ "MIT" ]
null
null
null
Editor/updator/config.py
RangHo/pini-engine
e1407724de32a433b7b46e0ee2469240b70d960b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- config = None try: from conf import config_dev as config except ImportError: try: from conf import config_live as config except: print "con not find config py" pass
15.384615
40
0.705
8e34a6237cdfc1e34c5f128942ce88e5ff7584e2
45,506
py
Python
data_scripts/cityscapes/cityscapesscripts/viewer/cityscapesViewer.py
lupvasile/video-seg
d0b1f5ec75c49ee42ba08939451575580ce6f798
[ "MIT" ]
null
null
null
data_scripts/cityscapes/cityscapesscripts/viewer/cityscapesViewer.py
lupvasile/video-seg
d0b1f5ec75c49ee42ba08939451575580ce6f798
[ "MIT" ]
null
null
null
data_scripts/cityscapes/cityscapesscripts/viewer/cityscapesViewer.py
lupvasile/video-seg
d0b1f5ec75c49ee42ba08939451575580ce6f798
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ################# ## Import modules ################# from __future__ import print_function, absolute_import, division # get command line parameters import sys # walk directories import glob # access to OS functionality import os # call processes import subprocess # copy thi...
37.422697
142
0.58856
c9de4ffb21a986b82dbb8f892a05e59ed3884b9c
1,433
py
Python
readme.py
khushbooG9/nvm
c065af6ae1cb330cf0716d35bc4aebd46547888e
[ "MIT" ]
3
2020-11-18T11:04:03.000Z
2021-03-31T06:58:49.000Z
readme.py
khushbooG9/nvm
c065af6ae1cb330cf0716d35bc4aebd46547888e
[ "MIT" ]
null
null
null
readme.py
khushbooG9/nvm
c065af6ae1cb330cf0716d35bc4aebd46547888e
[ "MIT" ]
4
2019-07-23T04:42:55.000Z
2022-02-07T02:57:59.000Z
register_names = ["r0", "r1"] programs = { "myfirstprogram":""" ### computes logical-and of r0 and r1, overwriting r0 with result nop # do nothing sub and # call logical-and sub-routine exit # halt execution and: cmp r0 false # compare first conjunct to false ...
27.557692
82
0.655967
123216561ac776907a92673ff607efe113055d0e
54
py
Python
melomaniac/soundcloud/__init__.py
sdispater/melomaniac
26edeba844d4822bb1df287d996356786d6d7a38
[ "MIT" ]
18
2016-09-30T21:48:57.000Z
2022-01-10T12:58:01.000Z
melomaniac/gmusic/__init__.py
sdispater/melomaniac
26edeba844d4822bb1df287d996356786d6d7a38
[ "MIT" ]
3
2018-01-17T19:59:08.000Z
2020-10-09T01:00:39.000Z
melomaniac/gmusic/__init__.py
sdispater/melomaniac
26edeba844d4822bb1df287d996356786d6d7a38
[ "MIT" ]
4
2017-12-27T02:19:01.000Z
2019-07-20T18:07:59.000Z
# -*- coding: utf-8 -*- from .backend import Backend
13.5
28
0.62963
7d5e56a5186b48e5ace3644e73993ff01665b1f8
1,001
py
Python
app_user/models.py
ybedirhanpak/infinite-workout-server
ba23f6f568129c68b0e5166ce2960bde1c5d75f2
[ "MIT" ]
null
null
null
app_user/models.py
ybedirhanpak/infinite-workout-server
ba23f6f568129c68b0e5166ce2960bde1c5d75f2
[ "MIT" ]
1
2020-08-17T20:23:34.000Z
2020-08-17T20:23:34.000Z
app_user/models.py
ybedirhanpak/infinite-workout-server
ba23f6f568129c68b0e5166ce2960bde1c5d75f2
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from app_common.models import BaseModel from .managers import UserManager class User(PermissionsMixin, AbstractBaseUser, BaseModel): username = models.CharField(max_lengt...
37.074074
71
0.756244
a026c05a6d9b62216e89db9aca5ec4a0a0f04efc
1,298
py
Python
examples/official/IO/pcd_read.py
conica-cui/python-pcl
b54e80e7da94ac9e2279b95fdac597f1de7145d7
[ "BSD-3-Clause" ]
1,705
2015-01-08T08:25:12.000Z
2022-03-31T07:02:55.000Z
examples/official/IO/pcd_read.py
Sh4zKh4n/python-pcl
1d83d2d7ce9ce2c22ff5855249459bfc22025000
[ "BSD-3-Clause" ]
331
2015-01-03T12:31:01.000Z
2022-03-31T21:00:32.000Z
examples/official/IO/pcd_read.py
Sh4zKh4n/python-pcl
1d83d2d7ce9ce2c22ff5855249459bfc22025000
[ "BSD-3-Clause" ]
666
2015-01-15T03:42:49.000Z
2022-03-25T13:48:33.000Z
# -*- coding: utf-8 -*- # # #include <iostream> # #include <pcl/io/pcd_io.h> # #include <pcl/point_types.h> # # int main (int argc, char** argv) # { # pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>); # # if (pcl::io::loadPCDFile<pcl::PointXYZ> ("test_pcd.pcd", *cloud) == -1) //* load ...
28.844444
93
0.523883
68f4d0f73cdbde3d11574fb6e01b7e55988c27d7
105
py
Python
tests/integration/__init__.py
langrenn-sprint/photo-service
9383ec0a12f49247cb0ac2255012d0e87e896e4e
[ "Apache-2.0" ]
null
null
null
tests/integration/__init__.py
langrenn-sprint/photo-service
9383ec0a12f49247cb0ac2255012d0e87e896e4e
[ "Apache-2.0" ]
null
null
null
tests/integration/__init__.py
langrenn-sprint/photo-service
9383ec0a12f49247cb0ac2255012d0e87e896e4e
[ "Apache-2.0" ]
null
null
null
"""Integration test package. Modules: test_factory test_ping test_ready test_photos """
11.666667
28
0.67619
b26dd5fa2444ac01582801ccaef8e46766ef4fa2
5,815
py
Python
sdk/lusid_asyncio/models/atom_value_string.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/atom_value_string.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/atom_value_string.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3923 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
31.775956
141
0.604299
b8f7ba0dc35228c56b0d49a71cb8615c94f9c208
1,164
py
Python
test/vanilla/Expected/AcceptanceTests/ModelFlattening/setup.py
amrElroumy/autorest.python
b37af1779f6d53b4fa0d92da62151f8133006f98
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/ModelFlattening/setup.py
amrElroumy/autorest.python
b37af1779f6d53b4fa0d92da62151f8133006f98
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/ModelFlattening/setup.py
amrElroumy/autorest.python
b37af1779f6d53b4fa0d92da62151f8133006f98
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
30.631579
94
0.636598
1854aa0c272e66350d639503e53394931cd7f51a
572
py
Python
doc/integrations/pytorch/parlai/zoo/image_chat/transresnet_multimodal.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2020-09-27T05:00:06.000Z
2020-09-27T05:00:06.000Z
doc/integrations/pytorch/parlai/zoo/image_chat/transresnet_multimodal.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-08-04T11:17:39.000Z
2021-08-04T11:17:39.000Z
doc/integrations/pytorch/parlai/zoo/image_chat/transresnet_multimodal.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-05-03T13:27:14.000Z
2021-05-03T13:27:14.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. """ Pretrained Transresnet Multimodal model on the Image-Chat task. """ from parlai.core.build_data import down...
28.6
73
0.699301
fb824ba6936f7dc99213ac80caeb082489a2cdb0
8,051
py
Python
sethji/model/redis_handler.py
rohit01/aws-price-umbrella
109e94282ba94cf9c457887851109c2ff6333e99
[ "MIT" ]
null
null
null
sethji/model/redis_handler.py
rohit01/aws-price-umbrella
109e94282ba94cf9c457887851109c2ff6333e99
[ "MIT" ]
null
null
null
sethji/model/redis_handler.py
rohit01/aws-price-umbrella
109e94282ba94cf9c457887851109c2ff6333e99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 - # import gevent import gevent.monkey gevent.monkey.patch_all() import redis import time connection_pool = None class RedisHandler(object): def __init__(self, host=None, port=None, password=None, idle_timeout=None): global connection_pool if host is None: host ...
37.446512
94
0.624146
4f43bbc1a9560b8517060d00c3eaa956317262a6
2,773
py
Python
train.py
Reecer9714/NEATStocks
3bdcaad29149eb14cefc10a8026a0fbf51f630b8
[ "MIT" ]
null
null
null
train.py
Reecer9714/NEATStocks
3bdcaad29149eb14cefc10a8026a0fbf51f630b8
[ "MIT" ]
null
null
null
train.py
Reecer9714/NEATStocks
3bdcaad29149eb14cefc10a8026a0fbf51f630b8
[ "MIT" ]
null
null
null
import os from functools import partial from random import randint import neat import visualize import multiprocessing from config import * from simulator import StockSimulator from strategy import neat_strategy simulator = StockSimulator().load_data(stock_ticker) def calc_fitness(genome, config): starting_index...
40.188406
109
0.744681
d28ca8914568a48d0eb5e60447bd90c6dcbfb22c
1,084
py
Python
run_models.py
AineKiraboMbabazi/AIPND_Image_Classifier
7289adc5f1e811bf09144bd31dbb7c010a27dbc5
[ "MIT" ]
null
null
null
run_models.py
AineKiraboMbabazi/AIPND_Image_Classifier
7289adc5f1e811bf09144bd31dbb7c010a27dbc5
[ "MIT" ]
null
null
null
run_models.py
AineKiraboMbabazi/AIPND_Image_Classifier
7289adc5f1e811bf09144bd31dbb7c010a27dbc5
[ "MIT" ]
null
null
null
#!/bin/sh # */home/workspace/Image classifier/run_models.sh # # PROGRAMMER: Ainekirabo Mbabazi # DATE CREATED: 06/12/2019 # PURPOSE: Runs all three models # # # Usage: sh run_models.sh -- will run program fr...
57.052632
133
0.678967
766d4d8ea03c51ba4a9a0c1f137f2074d1d0c2f5
1,058
py
Python
opencv/misc/slides/hist/backproj/backproj.py
SSG-DRD-IOT/commercial-iot-security-system
0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9
[ "MIT" ]
null
null
null
opencv/misc/slides/hist/backproj/backproj.py
SSG-DRD-IOT/commercial-iot-security-system
0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9
[ "MIT" ]
null
null
null
opencv/misc/slides/hist/backproj/backproj.py
SSG-DRD-IOT/commercial-iot-security-system
0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9
[ "MIT" ]
3
2022-01-22T05:02:41.000Z
2022-03-31T08:13:06.000Z
import cv2 import numpy as np roi = cv2.imread('mtn1.jpg') hsv = cv2.cvtColor(roi, cv2.COLOR_BGR2HSV) target = cv2.imread('mtn2_lo.jpg') hsvt = cv2.cvtColor(target, cv2.COLOR_BGR2HSV) mask = np.zeros(np.shape(roi), np.uint8) mask[302:1000, 766:1617] = 255 #766 302, 1617, 1000 # calculating the object histogram roi...
30.228571
73
0.695652
2a597336a7836b14670691059e68aa614c04ff7b
68,811
py
Python
web/addons/mrp/mrp.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/mrp/mrp.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/mrp/mrp.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
55.004796
296
0.623127
68248ac2d1682f92f828c55915f6ad28252796d0
21,214
py
Python
kivymd/color_definitions.py
mahonec/KivyMD
6f1515112852e2b21ef227cd8df8f87910ed92b6
[ "MIT" ]
1
2020-07-01T12:39:51.000Z
2020-07-01T12:39:51.000Z
kivymd/color_definitions.py
mahonec/KivyMD
6f1515112852e2b21ef227cd8df8f87910ed92b6
[ "MIT" ]
1
2020-05-15T10:09:15.000Z
2020-05-15T10:09:15.000Z
kivymd/color_definitions.py
mahonec/KivyMD
6f1515112852e2b21ef227cd8df8f87910ed92b6
[ "MIT" ]
null
null
null
""" Themes/Color Definitions ======================== .. seealso:: `Material Design spec, The color system <https://material.io/design/color/the-color-system.html>`_ Material colors palette to use in :class:`kivymd.theming.ThemeManager`. :data:`~colors` is a dict-in-dict where the first key is a value from :data:...
22.448677
101
0.392995
8b9abb84b395bb95bd654e839b1d398e3d3a6b31
1,697
py
Python
server.py
namitkumar14/PythonSampler
1c8545b38560c59ae4eb5651fab4f018d88570ed
[ "MIT" ]
null
null
null
server.py
namitkumar14/PythonSampler
1c8545b38560c59ae4eb5651fab4f018d88570ed
[ "MIT" ]
null
null
null
server.py
namitkumar14/PythonSampler
1c8545b38560c59ae4eb5651fab4f018d88570ed
[ "MIT" ]
null
null
null
import os from flask import Flask, jsonify, render_template, request, redirect, session, url_for from requests_oauthlib import OAuth2Session app = Flask(__name__) # Get this information by registering your app at https://developer.id.me client_id = '910213c3a884ff8780ae8b40d95ff687' client_secret ...
33.94
104
0.701827
a4ed8757612ce8d0da023b344c0c06a870ad1846
2,224
py
Python
dmt/phat_wrap.py
arksch/fuzzy-eureka
b3511abcef5cdc6cd4d28253d9e69f5ad1a862ec
[ "MIT" ]
null
null
null
dmt/phat_wrap.py
arksch/fuzzy-eureka
b3511abcef5cdc6cd4d28253d9e69f5ad1a862ec
[ "MIT" ]
null
null
null
dmt/phat_wrap.py
arksch/fuzzy-eureka
b3511abcef5cdc6cd4d28253d9e69f5ad1a862ec
[ "MIT" ]
null
null
null
""" Wrapping PHAT """ import numpy as np import phat def persistence_diagram(boundary_matrix_csc, dimensions, filtration): """ Compute persistence diagram from a sparse matrix :param boundary_matrix_csc: Sparse matrix :param dimensions: Cell dimensions :param filtration: Filtration :returns: Pers...
39.714286
92
0.722572
87f7cc70def08e11f6405a30b6d37e5706600bcf
1,769
py
Python
napisi_tabelo_naprej.py
klarakresnik/Potapljanje-ladjic
0ffec3a3ba7f20cfa8851d7b30c7d85eb335ab98
[ "MIT" ]
null
null
null
napisi_tabelo_naprej.py
klarakresnik/Potapljanje-ladjic
0ffec3a3ba7f20cfa8851d7b30c7d85eb335ab98
[ "MIT" ]
null
null
null
napisi_tabelo_naprej.py
klarakresnik/Potapljanje-ladjic
0ffec3a3ba7f20cfa8851d7b30c7d85eb335ab98
[ "MIT" ]
null
null
null
import model def napisi_tabelo_naprej(datoteka, morje, velikost, st): vsebina = '' with open(datoteka, 'w', encoding='utf-8') as dat: dat.write("%rebase('base_za_sestavljanje_ladjic" + str(velikost) + ".tpl')\n") dat.write('Izberi si nadaljne kvadratke tvoje ladjice.\n') if st ==...
55.28125
214
0.542114
f97869c1c0a6a109415f72eb29da80ccd440da50
5,404
py
Python
lib/model/faster_rcnn/faster_rcnn_teacher.py
heekhero/MTOR
e0dbc22bb7f4bc864ed7a7d43ffeb22671d8fd40
[ "MIT" ]
3
2020-05-01T08:46:55.000Z
2022-03-10T11:07:12.000Z
lib/model/faster_rcnn/faster_rcnn_teacher.py
heekhero/MTOR
e0dbc22bb7f4bc864ed7a7d43ffeb22671d8fd40
[ "MIT" ]
null
null
null
lib/model/faster_rcnn/faster_rcnn_teacher.py
heekhero/MTOR
e0dbc22bb7f4bc864ed7a7d43ffeb22671d8fd40
[ "MIT" ]
null
null
null
import random import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torchvision.models as models from torch.autograd import Variable import numpy as np from model.utils.config import cfg from model.rpn.rpn import _RPN from torchvision.ops import RoIPool from torch...
41.569231
114
0.642857
2b7908bc69d412c34b9ffe0e592a1e1221b2d9d4
63
py
Python
script_generators/process_test.py
westernmarslab/tanager-feeder
59bc4d5deca474e2c915ea49aaba791f247de41f
[ "MIT" ]
null
null
null
script_generators/process_test.py
westernmarslab/tanager-feeder
59bc4d5deca474e2c915ea49aaba791f247de41f
[ "MIT" ]
null
null
null
script_generators/process_test.py
westernmarslab/tanager-feeder
59bc4d5deca474e2c915ea49aaba791f247de41f
[ "MIT" ]
1
2021-04-23T00:03:46.000Z
2021-04-23T00:03:46.000Z
for i in range(30): print("process(") print("sleep(5)")
21
21
0.571429
ecd8ff242f98596fde6c75bab2dcebf7bbe750dd
10,517
py
Python
SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py
zerosquadron/grove-weather-pi
05cab7836f831546cbb2a7cd2a260e2fe15de62b
[ "MIT" ]
1
2019-03-19T06:59:45.000Z
2019-03-19T06:59:45.000Z
SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py
zerosquadron/grove-weather-pi
05cab7836f831546cbb2a7cd2a260e2fe15de62b
[ "MIT" ]
null
null
null
SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py
zerosquadron/grove-weather-pi
05cab7836f831546cbb2a7cd2a260e2fe15de62b
[ "MIT" ]
null
null
null
# # # # SDL_Pi_WeatherRack.py - Raspberry Pi Python Library for SwitchDoc Labs WeatherRack. # # SparkFun Weather Station Meters # Argent Data Systems # Created by SwitchDoc Labs February 13, 2015 # Released into the public domain. # Version 1.3 - remove 300ms Bounce # Version 2.0 - Update for WeatherPiArdui...
26.829082
286
0.721689
9056942a9a4d1e2c190f46b76d564de2f7b0a336
101,119
py
Python
rstbx/slip_viewer/pyslip.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
rstbx/slip_viewer/pyslip.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
rstbx/slip_viewer/pyslip.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
# -*- mode: python; coding: utf-8; indent-tabs-mode: nil; python-indent: 2 -*- # # $Id$ """ A 'slippy map' widget for wxPython. So why is this widget called 'pySlip'? Well, in the OpenStreetMap world[1], a 'slippy map' is a browser map view served by a tile server that can be panned and zoomed in the same way as pop...
37.29952
104
0.544487
59b78fc2bbe8633851ad3b6c7acd28436858b8d6
1,058
py
Python
CONTENT/Resources/guides/__UNSORTED/281_zigzag_iterator/iterator.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
CONTENT/Resources/guides/__UNSORTED/281_zigzag_iterator/iterator.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/Resources/guides/__UNSORTED/281_zigzag_iterator/iterator.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
class ZigzagIterator(object): def __init__(self, v1, v2): """ Initialize your data structure here. :type v1: List[int] :type v2: List[int] """ self.index = 0 self.numbers = [v1, v2] self.positions = [0, 0] def next(self): """ :rtyp...
26.45
80
0.489603
2d669ff8db3da96c21a5b7b70a3dfc56772c04e1
10,170
py
Python
src/transformers/models/barthez/tokenization_barthez_fast.py
marcoabrate/transformers
3f77c26d74e1282955fefa8dfff2451e44f6d4a9
[ "Apache-2.0" ]
1
2021-02-22T02:52:17.000Z
2021-02-22T02:52:17.000Z
src/transformers/models/barthez/tokenization_barthez_fast.py
marcoabrate/transformers
3f77c26d74e1282955fefa8dfff2451e44f6d4a9
[ "Apache-2.0" ]
null
null
null
src/transformers/models/barthez/tokenization_barthez_fast.py
marcoabrate/transformers
3f77c26d74e1282955fefa8dfff2451e44f6d4a9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 Ecole Polytechnique and the HuggingFace Inc. team. # # 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 # # Unles...
44.217391
141
0.650246
56d83a80a5836531e7411aac3f6c255aafe651f6
138,151
py
Python
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
10
2020-06-30T06:43:48.000Z
2022-03-22T11:01:20.000Z
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
10
2019-12-28T21:31:19.000Z
2020-04-12T20:01:58.000Z
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
9
2020-03-30T02:11:52.000Z
2020-04-05T02:15:08.000Z
# Copyright 2017 The TensorFlow Authors. 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.0 # # Unless required by applica...
48.593387
80
0.710252
7df164673d3f1a0beb5c58712212dc28712f9f13
383
py
Python
SMS/wsgi.py
judeakinwale/SMS-backup
30636591b43bec94e7406f4c02fde402a5a2e38f
[ "MIT" ]
null
null
null
SMS/wsgi.py
judeakinwale/SMS-backup
30636591b43bec94e7406f4c02fde402a5a2e38f
[ "MIT" ]
null
null
null
SMS/wsgi.py
judeakinwale/SMS-backup
30636591b43bec94e7406f4c02fde402a5a2e38f
[ "MIT" ]
null
null
null
""" WSGI config for SMS project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_...
22.529412
78
0.780679
2696d82b55f444ee687c952a20b43ecb250e77b4
1,345
py
Python
tests/test_plots.py
louiskirsch/wandb
09ac34824180399a21e6d55ee18c80f5bdf93373
[ "Apache-2.0" ]
1
2020-08-20T14:02:47.000Z
2020-08-20T14:02:47.000Z
tests/test_plots.py
louiskirsch/wandb
09ac34824180399a21e6d55ee18c80f5bdf93373
[ "Apache-2.0" ]
null
null
null
tests/test_plots.py
louiskirsch/wandb
09ac34824180399a21e6d55ee18c80f5bdf93373
[ "Apache-2.0" ]
null
null
null
import pytest from sklearn.naive_bayes import MultinomialNB import wandb from wandb.plots.roc import roc from wandb.sklearn import learning_curve from wandb.plots.precision_recall import precision_recall from wandb.plots.heatmap import heatmap @pytest.fixture def dummy_classifier(request): nb = MultinomialNB() ...
32.804878
81
0.657993
70d9440325d7daf95649e1d34464028467326c0e
1,509
py
Python
euler/0/19.py
PandaDrunkard/proex
c303f051721d9f271d8187957a4458dc5f4558b1
[ "MIT" ]
null
null
null
euler/0/19.py
PandaDrunkard/proex
c303f051721d9f271d8187957a4458dc5f4558b1
[ "MIT" ]
null
null
null
euler/0/19.py
PandaDrunkard/proex
c303f051721d9f271d8187957a4458dc5f4558b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- days_of_month = { 1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6: 30, 7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12: 31, } def calculate(): c = 0 for d in iterate_days(): if d["year"] < 1901: continue ...
19.855263
61
0.444003
85c06b3e99b17d8e5deebf4663f207455364c1db
28,215
py
Python
tensorflow_probability/python/mcmc/internal/util.py
simeoncarstens/probability
054a720ff9f221dd9660acd7ce7fb38a1dbb1290
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/internal/util.py
simeoncarstens/probability
054a720ff9f221dd9660acd7ce7fb38a1dbb1290
[ "Apache-2.0" ]
2
2021-08-25T16:14:51.000Z
2022-02-10T04:47:11.000Z
tensorflow_probability/python/mcmc/internal/util.py
michalbrys/probability
054a720ff9f221dd9660acd7ce7fb38a1dbb1290
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # 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 o...
39.024896
110
0.671948
a932f0f76898ac06c45eb4c125cb8bb2c8ab054f
1,063
py
Python
Leetcode/0417. Pacific Atlantic Water Flow/0417.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0417. Pacific Atlantic Water Flow/0417.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0417. Pacific Atlantic Water Flow/0417.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def pacificAtlantic(self, heights: List[List[int]]) -> List[List[int]]: m = len(heights) n = len(heights[0]) dirs = [0, 1, 0, -1, 0] qP = deque() qA = deque() seenP = [[False] * n for _ in range(m)] seenA = [[False] * n for _ in range(m)] for i in range(m): qP.ap...
25.926829
86
0.4619
cc0bcceb460b5766a92238a74136043668625e7a
823
py
Python
Variado_GeekUniversity/guppe/deltas.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Variado_GeekUniversity/guppe/deltas.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Variado_GeekUniversity/guppe/deltas.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
""" Trabalhando com deltas de data e hora data_inicial = dd/mm/yyyy 12:55:34.9939329 data_final = dd/mm/yyyy 13:34.23.0948484 delta = data_final - data_inicial import datetime # Temos a data de hoje data_hoje = datetime.datetime.now() # Data para ocorrer um determinado evento no futuro aniversario = datetime.dat...
19.139535
96
0.771567
dddb6d79d92bbad951192c3cef5c2d3809fd9bf1
3,773
py
Python
code/1-development/train.py
zacharyclam/speaker_recognition
8daf3738b3ea7be03d7052112881df6885fbf1a5
[ "Apache-2.0" ]
37
2018-08-23T05:55:04.000Z
2021-06-10T13:39:36.000Z
code/1-development/train.py
zacharyclam/speaker_recognition
8daf3738b3ea7be03d7052112881df6885fbf1a5
[ "Apache-2.0" ]
8
2018-09-16T03:04:45.000Z
2021-03-14T07:49:19.000Z
code/1-development/train.py
zacharyclam/speaker_recognition
8daf3738b3ea7be03d7052112881df6885fbf1a5
[ "Apache-2.0" ]
15
2018-09-05T08:03:23.000Z
2020-11-20T07:00:28.000Z
#!/usr/env/python python3 # -*- coding: utf-8 -*- # @File : train.py # @Time : 2018/8/12 12:49 # @Software : PyCharm import os import tensorflow as tf from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, TensorBoard, ReduceLROnPlateau import keras.backend as K import numpy as np fro...
31.974576
115
0.655447
a5f76d8b50d0f2e40da60cbb39df2fdd0fd87f7d
5,814
py
Python
toontown/minigame/PurchaseBase.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/minigame/PurchaseBase.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/minigame/PurchaseBase.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from toontown.toonbase.ToontownBattleGlobals import * from toontown.toonbase import ToontownGlobals from direct.fsm import StateData from toontown.shtiker.PurchaseManagerConstants import * from direct.gui.DirectGui import * from panda3d.core import * from direct.task import Task from direct.fsm import State from direct...
40.943662
298
0.652907
0bd2b40a246df301b83bc1702e6f30cb75fcc469
5,613
py
Python
classification/mnist_bilinear.py
elviswf/pytorch_cv
a7f11f857a0c1d5e5a807aeed5e594659212fba0
[ "Apache-2.0" ]
null
null
null
classification/mnist_bilinear.py
elviswf/pytorch_cv
a7f11f857a0c1d5e5a807aeed5e594659212fba0
[ "Apache-2.0" ]
null
null
null
classification/mnist_bilinear.py
elviswf/pytorch_cv
a7f11f857a0c1d5e5a807aeed5e594659212fba0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time : 2018/2/5 15:48 @Author : Elvis CUDA_VISIBLE_DEVICES=7 python mnist_bilinear.py mnist_bilinear1 """ import os import argparse import torch from torch import nn import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable from torch...
32.258621
104
0.64796
f6e519f319356b5efa69a9093179070fdbf64855
1,797
py
Python
ende/Util.py
tmthydvnprt/ende
7f487c994f670f02174b6fdffbcf59e461329d7f
[ "MIT" ]
null
null
null
ende/Util.py
tmthydvnprt/ende
7f487c994f670f02174b6fdffbcf59e461329d7f
[ "MIT" ]
null
null
null
ende/Util.py
tmthydvnprt/ende
7f487c994f670f02174b6fdffbcf59e461329d7f
[ "MIT" ]
null
null
null
""" ende.Util - Random utility functions project : Ende version : 0.1.0 status : development modifydate : 2015-05-06 19:30:00 -0700 createdate : 2015-05-04 06:08:00 -0700 website : https://github.com/tmthydvnprt/ende author : tmthydvnprt email : tmthydvnprt@users.noreply.github.com maintainer : t...
24.283784
95
0.662215
e39f02bbf894512b5e64d8c7e5afd6328b5d574c
33,035
py
Python
nova/tests/unit/compute/test_compute_cells.py
adanin/nova
1f74441680b4376cd401ecc0b0449b464cf7a5fb
[ "Apache-2.0" ]
1
2019-04-22T06:25:26.000Z
2019-04-22T06:25:26.000Z
nova/tests/unit/compute/test_compute_cells.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_compute_cells.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 Rackspace Hosting # 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.0 # # Unless req...
44.046667
79
0.639534
1317f7e7b8f7b446f660a02247a2b29b878c80dc
54
py
Python
smsauth3/__init__.py
kwugfighter/sms-auth
183d3f279fd94e69b0c486612853cd5f4621bf9d
[ "MIT" ]
null
null
null
smsauth3/__init__.py
kwugfighter/sms-auth
183d3f279fd94e69b0c486612853cd5f4621bf9d
[ "MIT" ]
null
null
null
smsauth3/__init__.py
kwugfighter/sms-auth
183d3f279fd94e69b0c486612853cd5f4621bf9d
[ "MIT" ]
null
null
null
from .main import SMSAuthorizer __version__ = "0.1.2"
18
31
0.759259
4f933f664fef5ed60828fd3ae9f6d33675db8532
449
py
Python
gTTSwrapper.py
mytja/gTTS-wrapper
ed6452e1e870d913479252030ca343aa2a7742ca
[ "MIT" ]
1
2020-08-26T17:08:30.000Z
2020-08-26T17:08:30.000Z
gTTSwrapper.py
mytja/gTTS-wrapper
ed6452e1e870d913479252030ca343aa2a7742ca
[ "MIT" ]
null
null
null
gTTSwrapper.py
mytja/gTTS-wrapper
ed6452e1e870d913479252030ca343aa2a7742ca
[ "MIT" ]
null
null
null
# gTTS wrapper import io import pygame from gtts import gTTS # To play audio text-to-speech during execution def say(my_text, language="en", slo=False): with io.BytesIO() as f: gTTS(text=my_text, lang=language, slow=slo).write_to_fp(f) f.seek(0) pygame.mixer.init() pyga...
24.944444
67
0.621381
4c92ce244030df317c3a30e338dd9e45f85fd368
192
py
Python
data_collection/gazette/spiders/sc_chapeco.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
454
2018-04-07T03:32:57.000Z
2020-08-17T19:56:22.000Z
data_collection/gazette/spiders/sc_chapeco.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
254
2020-08-18T14:09:43.000Z
2022-03-28T11:30:51.000Z
data_collection/gazette/spiders/sc_chapeco.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
183
2018-04-11T15:09:37.000Z
2020-08-15T18:55:11.000Z
from gazette.spiders.base.fecam import FecamGazetteSpider class ScChapecoSpider(FecamGazetteSpider): name = "sc_chapeco" FECAM_QUERY = "cod_entidade:71" TERRITORY_ID = "4204202"
24
57
0.765625
3efecab3a6eb6928d1eb2053c2a9118989b01b38
17,195
py
Python
fairseq/data/indexed_dataset.py
Epsilon-Lee/fairseq-da
fbe7a39717afcb60dd4a3e1cd6abd3c763354fe1
[ "MIT" ]
35
2021-05-08T09:23:31.000Z
2022-03-25T06:19:48.000Z
fairseq/data/indexed_dataset.py
Epsilon-Lee/fairseq-da
fbe7a39717afcb60dd4a3e1cd6abd3c763354fe1
[ "MIT" ]
4
2021-06-12T05:02:03.000Z
2021-12-19T08:53:46.000Z
fairseq/data/indexed_dataset.py
Epsilon-Lee/fairseq-da
fbe7a39717afcb60dd4a3e1cd6abd3c763354fe1
[ "MIT" ]
4
2021-06-02T16:12:02.000Z
2022-02-28T12:18:24.000Z
# 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 os import shutil import struct from functools import lru_cache import numpy as np import torch from fairseq.data.fasta_dataset import ...
30.596085
84
0.594999
d65b8a350eed18deb03b4da4a00e2ca7b9c3efb8
2,700
py
Python
tools/doc/rename_folders.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
669
2018-12-03T22:00:31.000Z
2019-05-06T19:42:49.000Z
tools/doc/rename_folders.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
440
2018-12-03T21:09:56.000Z
2019-05-06T20:47:23.000Z
tools/doc/rename_folders.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
140
2018-12-03T21:15:28.000Z
2019-05-06T18:02:36.000Z
""" Github publishes the markdown documentation with jekyll enabled. This extension does not publish any folder starting with `_`. These folders need to be renamed. """ import os import re def rename_folder(root): """ Renames all folder starting with `_`. Returns the list of renamed folders. """ f...
31.764706
120
0.47037
7bf451ec8380449c011f8f4e9633427887dc3501
1,035
py
Python
kollect/middleware/auth.py
dcramer/kollect
a8586ec07f671e01e80df2336ad1fa5dfe4804e5
[ "Apache-2.0" ]
null
null
null
kollect/middleware/auth.py
dcramer/kollect
a8586ec07f671e01e80df2336ad1fa5dfe4804e5
[ "Apache-2.0" ]
null
null
null
kollect/middleware/auth.py
dcramer/kollect
a8586ec07f671e01e80df2336ad1fa5dfe4804e5
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import AnonymousUser from django.utils.functional import SimpleLazyObject from kollect.models import User from kollect.utils.auth import parse_token, security_hash def get_user(header): if not header.startswith("Token "): return AnonymousUser() token = header.split(" ...
26.538462
69
0.686957
18c4129c88b31757e09434697cbe2e94d1b89608
2,831
py
Python
src/arch/x86/isa/insts/simd512/floating_point/data_transfer/__init__.py
jyhuang91/gem5-avx
f988da46080f8db49beb39e20af437219f3aa4cb
[ "BSD-3-Clause" ]
2
2021-01-15T17:32:18.000Z
2021-12-21T02:53:58.000Z
src/arch/x86/isa/insts/simd512/floating_point/data_transfer/__init__.py
jyhuang91/gem5-avx
f988da46080f8db49beb39e20af437219f3aa4cb
[ "BSD-3-Clause" ]
3
2021-03-26T20:33:59.000Z
2022-01-24T22:54:03.000Z
src/arch/x86/isa/insts/simd512/floating_point/data_transfer/__init__.py
jyhuang91/gem5-avx
f988da46080f8db49beb39e20af437219f3aa4cb
[ "BSD-3-Clause" ]
3
2021-03-27T16:36:19.000Z
2022-03-28T18:32:57.000Z
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
34.950617
72
0.731544
4de8053074ae1c4460d57490daef1e89791fefee
28,669
py
Python
tests/test_datetime.py
jGaboardi/Fiona
d36e0c897c545e0e51fe759e540c85c117bf3fc1
[ "BSD-3-Clause" ]
778
2015-01-03T18:29:34.000Z
2022-03-31T03:17:53.000Z
tests/test_datetime.py
jGaboardi/Fiona
d36e0c897c545e0e51fe759e540c85c117bf3fc1
[ "BSD-3-Clause" ]
848
2015-01-07T17:16:10.000Z
2022-03-27T23:14:58.000Z
tests/test_datetime.py
jGaboardi/Fiona
d36e0c897c545e0e51fe759e540c85c117bf3fc1
[ "BSD-3-Clause" ]
195
2015-01-29T21:48:37.000Z
2022-03-25T15:18:24.000Z
""" See also test_rfc3339.py for datetime parser tests. """ from collections import OrderedDict import fiona from fiona._env import get_gdal_version_num, calc_gdal_version_num import pytest from fiona.errors import DriverSupportError from fiona.rfc3339 import parse_time, parse_datetime from .conftest import get_temp_f...
43.437879
119
0.569291
63db1990aa68a257710894f48b6c13126400c844
372
py
Python
submissions-api/app/main/encoder.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
submissions-api/app/main/encoder.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
submissions-api/app/main/encoder.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Genome Research Ltd. # # SPDX-License-Identifier: MIT from connexion.apps.flask_app import FlaskJSONEncoder from main.model import Base class JSONEncoder(FlaskJSONEncoder): include_nulls = False def default(self, o): if isinstance(o, Base): return o.to_dict...
23.25
53
0.717742
8a410d44c66e892332923e60f2f110228ce177c9
1,365
py
Python
Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/2doParcial/ApiMusicbrainz.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/2doParcial/ApiMusicbrainz.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/2doParcial/ApiMusicbrainz.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import sqlite3 import pprint import musicbrainzngs from ObjetoArtista import Artista def search(): musicbrainzngs.set_useragent('musicbrainzngs', '2.0') Art = musicbrainzngs.search_artists(area='Los Angeles', tag='[rock,metal]', country="US", limit=100) j = 0 for i in Art['artist-list']: id2 =...
31.022727
170
0.594872
e5ea2e1bf84a5f473d865d02f893af7632634567
6,335
py
Python
2019/day17/day17.py
mdelmage/advent2019
eae18fd8010c9816b22578d6eb8988139aef131d
[ "MIT" ]
2
2020-12-02T20:44:33.000Z
2020-12-09T23:35:35.000Z
2019/day17/day17.py
mdelmage/advent2019
eae18fd8010c9816b22578d6eb8988139aef131d
[ "MIT" ]
null
null
null
2019/day17/day17.py
mdelmage/advent2019
eae18fd8010c9816b22578d6eb8988139aef131d
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding: utf-8 import copy from collections import namedtuple WAKEUP_ADDR = 0 WAKEUP_CMD = 2 class IntcodeNode: Pointer = namedtuple('Pointer', 'address value') OPCODE_ADD = 1 OPCODE_MULTIPLY = 2 OPCODE_INPUT = 3 OPCODE_OUTPUT = 4 OPCODE_JIT = 5 OPCODE_...
37.264706
149
0.513181
89889a3c22c80d57c8a6e52e2ef51e20c48ce2ad
24,593
py
Python
tools/command_tester.py
kapkic/native_client
51c8bc8c249d55606232ae011bdfc8b4cab3d794
[ "BSD-3-Clause" ]
1
2021-12-23T00:36:43.000Z
2021-12-23T00:36:43.000Z
tools/command_tester.py
kapkic/native_client
51c8bc8c249d55606232ae011bdfc8b4cab3d794
[ "BSD-3-Clause" ]
null
null
null
tools/command_tester.py
kapkic/native_client
51c8bc8c249d55606232ae011bdfc8b4cab3d794
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Simple testing harness for running commands and checking expected output. This harness is used instead of shell scripts to e...
35.487734
80
0.668524
338e2e07ba4bd3ae471d823f71896f1a121927ab
402
py
Python
ravengis/cli.py
Zeitsperre/RavenGIS
730a82a8be0549fb5b954d7cbc0a2984fb2be86f
[ "MIT" ]
2
2021-08-05T14:20:58.000Z
2021-08-06T00:01:46.000Z
ravengis/cli.py
Zeitsperre/RavenGIS
730a82a8be0549fb5b954d7cbc0a2984fb2be86f
[ "MIT" ]
null
null
null
ravengis/cli.py
Zeitsperre/RavenGIS
730a82a8be0549fb5b954d7cbc0a2984fb2be86f
[ "MIT" ]
null
null
null
"""Console script for ravengis.""" import sys import click @click.command() def main(args=None): """Console script for ravengis.""" click.echo("Replace this message by putting your code into " "ravengis.cli.main") click.echo("See click documentation at https://click.palletsprojects.com/") ...
23.647059
79
0.664179
927433524f0d1e5ce2fbc85d5f398f774df8f448
2,161
py
Python
PyFunceble/engine/database/schemas/whois_record.py
fossabot/PyFunceble
4335cb31e6cf20cf8e10dd2cc6ac3afa50199ea4
[ "Apache-2.0" ]
null
null
null
PyFunceble/engine/database/schemas/whois_record.py
fossabot/PyFunceble
4335cb31e6cf20cf8e10dd2cc6ac3afa50199ea4
[ "Apache-2.0" ]
null
null
null
PyFunceble/engine/database/schemas/whois_record.py
fossabot/PyFunceble
4335cb31e6cf20cf8e10dd2cc6ac3afa50199ea4
[ "Apache-2.0" ]
null
null
null
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
31.318841
88
0.552059
dfa6b37e338aeee385a9b1ec65640ad438620a7a
11,268
py
Python
proxyshell_mod.py
aravazhimdr/ProxyShell-POC-Mod
03646720306b5dcd544c0a29388bda98020a07f0
[ "MIT" ]
6
2021-08-19T03:05:38.000Z
2021-12-15T11:39:12.000Z
proxyshell_mod.py
aravazhimdr/ProxyShell-POC-Mod
03646720306b5dcd544c0a29388bda98020a07f0
[ "MIT" ]
null
null
null
proxyshell_mod.py
aravazhimdr/ProxyShell-POC-Mod
03646720306b5dcd544c0a29388bda98020a07f0
[ "MIT" ]
2
2021-10-04T10:09:10.000Z
2022-02-17T19:54:18.000Z
#!/usr/bin/env python3 import argparse import base64 import struct import random import string import requests import threading import sys import time import re import xml.etree.ElementTree as ET from pypsrp.wsman import WSMan from pypsrp.powershell import PowerShell, RunspacePool """ ProxyShell POC - @aravazhimdr T...
33.238938
217
0.582357
0e9c115319243033cc0bd738bc9b06fe980f1204
936
py
Python
test/test_inline_response2004.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
test/test_inline_response2004.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
test/test_inline_response2004.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
# coding: utf-8 """ Metacore IoT Object Storage API Metacore Object Storage - IOT Core Services # noqa: E501 OpenAPI spec version: 1.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import metacore_api_python_cli fr...
23.4
103
0.720085
c1209c65c498ab62c54677e916c6769384eb87de
858
py
Python
tests/unit/test_add_to_set.py
bobgautier/rjgtoys-cli
9bfc689c230047b86c8fc9af9f7f446d18d54993
[ "MIT" ]
null
null
null
tests/unit/test_add_to_set.py
bobgautier/rjgtoys-cli
9bfc689c230047b86c8fc9af9f7f446d18d54993
[ "MIT" ]
null
null
null
tests/unit/test_add_to_set.py
bobgautier/rjgtoys-cli
9bfc689c230047b86c8fc9af9f7f446d18d54993
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from rjgtoys.cli._base import add_to_set, splitlist def test_simple(): p = ArgumentParser() p.add_argument('--item',help="Item to add", action=add_to_set,type=int) args = p.parse_args("--item 1 --item 2 --item 1".split(" ")) assert args.item == set((1,2)...
22.578947
64
0.617716
fe0be31f78075e8910206012b7f39aec1e36c35f
514
py
Python
command_module/command_module.py
albertaloop/T_SWE_2019_2020
9095b6b64b5ca03c62bef9347945919bf3b79ed4
[ "MIT" ]
null
null
null
command_module/command_module.py
albertaloop/T_SWE_2019_2020
9095b6b64b5ca03c62bef9347945919bf3b79ed4
[ "MIT" ]
22
2022-01-11T05:27:30.000Z
2022-03-29T02:34:13.000Z
command_module/command_module.py
albertaloop/T_SWE_2019_2020
9095b6b64b5ca03c62bef9347945919bf3b79ed4
[ "MIT" ]
null
null
null
import socket import struct from enum import IntEnum class Command(IntEnum): Start = 0 Stop = 1 class CommandManager: def __init__(self, ip_address, port): self.server = (ip_address, port) self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) def start(self): packet = ...
24.47619
68
0.653696
b704b885cb967997a7a8735b31f08a1537cf4a1c
30,221
py
Python
tensorflow/python/keras/optimizers.py
datanonymous/TFandroid
89927e863b1ad96184ab09188f62b7e391c896d9
[ "Apache-2.0" ]
3
2019-02-04T10:10:19.000Z
2019-12-29T08:09:37.000Z
tensorflow/python/keras/optimizers.py
datanonymous/TFandroid
89927e863b1ad96184ab09188f62b7e391c896d9
[ "Apache-2.0" ]
1
2019-07-27T16:45:02.000Z
2019-07-27T16:45:02.000Z
tensorflow/python/keras/optimizers.py
datanonymous/TFandroid
89927e863b1ad96184ab09188f62b7e391c896d9
[ "Apache-2.0" ]
6
2018-11-29T20:52:00.000Z
2021-02-19T22:43:32.000Z
# Copyright 2015 The TensorFlow Authors. 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.0 # # Unless required by applica...
35.387588
145
0.651865
c062f97c95e76a51c19732326cb41d645d78afe8
2,189
py
Python
tests/test_data.py
sarvjeets/lakshmi
8cd6e47f23a61c5b8c967f9fdc756df296f1e0d5
[ "MIT" ]
59
2021-09-07T05:19:30.000Z
2022-02-24T18:29:49.000Z
tests/test_data.py
sarvjeets/lakshmi
8cd6e47f23a61c5b8c967f9fdc756df296f1e0d5
[ "MIT" ]
4
2021-08-01T18:32:51.000Z
2022-02-26T19:14:37.000Z
tests/test_data.py
sarvjeets/lakshmi
8cd6e47f23a61c5b8c967f9fdc756df296f1e0d5
[ "MIT" ]
3
2021-08-01T04:35:07.000Z
2022-03-23T21:48:51.000Z
"""Tests for lakshmi/data directory. Simply checks if the files parses.""" import unittest from pathlib import Path import yaml import lakshmi class DataTest(unittest.TestCase): def parse_dict(self, filename, function): file_path = (Path(__file__).parents[1].absolute() / filename) d = yaml.load(...
34.203125
79
0.596619
b1195e0c9f4d85a50906b06f6c77195939bbdf9e
5,556
py
Python
check/tests.py
uktrade/cert-checker
7b8fc2c26fd162a10e847d05bc253c30659147c0
[ "MIT" ]
null
null
null
check/tests.py
uktrade/cert-checker
7b8fc2c26fd162a10e847d05bc253c30659147c0
[ "MIT" ]
1
2018-08-28T12:13:10.000Z
2018-08-28T12:13:10.000Z
check/tests.py
uktrade/cert-checker
7b8fc2c26fd162a10e847d05bc253c30659147c0
[ "MIT" ]
null
null
null
import datetime as dt from django.test import TestCase, RequestFactory from .models import Domain from .views import PingdomErrorView, PingdomWarningView, PingdomHealthCheckView def current_time(): return dt.datetime.now(dt.timezone.utc) def domain_factory(**kwargs): default = { 'last_checked': cu...
33.46988
105
0.689525
ba986819c04d1f2156504824ff4fb709cd23f41b
743
py
Python
client/verta/verta/_swagger/_public/uac/model/RoleActionEnumRoleServiceActions.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/uac/model/RoleActionEnumRoleServiceActions.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/uac/model/RoleActionEnumRoleServiceActions.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class RoleActionEnumRoleServiceActions(BaseType): _valid_values = [ "UNKNOWN", "ALL", "GET_BY_ID", "GET_BY_NAME", "CREATE", "UPDATE", "LIST", "DELETE", ] def __init__(self, val): if val n...
24.766667
98
0.709287
65fc4c6b08375688e7aa70ff86203458179f848c
1,322
py
Python
newsltd_etl/shared/schema/catalog/chronicle.py
telia-oss/birgitta-example-etl
8bb32aac94486b4edc1fee3964cf7d2dcf095020
[ "MIT" ]
8
2019-11-25T16:39:33.000Z
2022-03-31T12:48:54.000Z
newsltd_etl/shared/schema/catalog/chronicle.py
telia-oss/birgitta-example-etl
8bb32aac94486b4edc1fee3964cf7d2dcf095020
[ "MIT" ]
218
2019-09-09T11:11:59.000Z
2022-03-08T05:16:40.000Z
newsltd_etl/shared/schema/catalog/chronicle.py
telia-oss/birgitta-example-etl
8bb32aac94486b4edc1fee3964cf7d2dcf095020
[ "MIT" ]
4
2020-07-21T15:33:40.000Z
2021-12-22T11:32:45.000Z
from birgitta.fields.catalog import Catalog from ...schema.fixtures.values import chronicle as cv catalog = Catalog() catalog.add_field( 'groupid', example=cv.groupid(), description='Chronicle group id' ) catalog.add_field( 'accountid', example=cv.accountid(), description='Chronicle account i...
23.192982
101
0.71407
bbffe331ae78db1cb195eb77ac0e42dcb4014ea1
3,957
py
Python
yfinance/tickers.py
pchaganti/yfinance
8a8298044c117bb94bb48ccc85f6568516135465
[ "Apache-2.0" ]
null
null
null
yfinance/tickers.py
pchaganti/yfinance
8a8298044c117bb94bb48ccc85f6568516135465
[ "Apache-2.0" ]
null
null
null
yfinance/tickers.py
pchaganti/yfinance
8a8298044c117bb94bb48ccc85f6568516135465
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Yahoo! Finance market data downloader (+fix for Pandas Datareader) # https://github.com/ranaroussi/yfinance # # Copyright 2017-2019 Ran Aroussi # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
34.408696
74
0.575941
ec722b1aeed5106b395d1dfc9f31482926f0f34e
352
py
Python
ex3.py
Oliviaha/python-the-hardway
680ed0594878507b368ece0e58f87a6126746dcf
[ "MIT" ]
null
null
null
ex3.py
Oliviaha/python-the-hardway
680ed0594878507b368ece0e58f87a6126746dcf
[ "MIT" ]
1
2019-11-10T17:37:00.000Z
2019-11-10T17:37:26.000Z
ex3.py
Oliviaha/python-the-hardway
680ed0594878507b368ece0e58f87a6126746dcf
[ "MIT" ]
null
null
null
# -*-coding: utf-8 -*- print "닭을 세어 봅시다." print "암탉", 25+30 / 6 print "수탉", 100-25 * 3 % 4 print "이제 달걀도 세어 봅시다." print 3+2+1-5+4%2-1 / 4+6 print "3+2 < 5-7 는 참인가요?" print 3+2 <5-7 print "3+2 는 얼마죠?", 3+2 print "5-7은 얼마죠?", 5-7 print "아하 이게 False인 이유네요" print "더 해볼까요." print "더 큰가요??", 5 > -2 print "더 크거나 같나요?", 5...
17.6
26
0.551136
53e6b4d72a1b7b850319e10ac601ac47e1ed32ef
3,702
py
Python
django_frontend_tools/services/__init__.py
markfinger/django-frontend-tools
442f7e2267d96572ed0065ba192a906499ff3741
[ "MIT" ]
null
null
null
django_frontend_tools/services/__init__.py
markfinger/django-frontend-tools
442f7e2267d96572ed0065ba192a906499ff3741
[ "MIT" ]
null
null
null
django_frontend_tools/services/__init__.py
markfinger/django-frontend-tools
442f7e2267d96572ed0065ba192a906499ff3741
[ "MIT" ]
null
null
null
import os import sys import json import hashlib from django.utils import six from django.conf import settings from django_node import npm from django_node.base_service import BaseService from django_node.exceptions import NodeServiceError from ..settings import CACHE_AUTOPREFIXER, CACHE_LESS, CACHE_COMPRESSED_CSS, CACH...
30.85
118
0.667477
c5e17817820367d703e0a94146bd9418cb813849
1,371
py
Python
Route.py
axydavid/Maze-Robot
9cf26f4894ad735d6ba60bd8c5a3d991c77fb23a
[ "MIT" ]
null
null
null
Route.py
axydavid/Maze-Robot
9cf26f4894ad735d6ba60bd8c5a3d991c77fb23a
[ "MIT" ]
null
null
null
Route.py
axydavid/Maze-Robot
9cf26f4894ad735d6ba60bd8c5a3d991c77fb23a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 02 12:03:17 2015 @author: Dong """ class Route: def __init__(self, file_name): # "route.txt" self.file_name = file_name def get_routeList(self): count = 0 routeList = [] route = open(...
17.1375
63
0.355215
e70ae67a123615c05bfdccf47d34faa5e398506a
2,461
py
Python
tests/typing/resource.py
VKFisher/python-dependency-injector
c26b260c73ab36985e05e117af934ca6170ff9de
[ "BSD-3-Clause" ]
null
null
null
tests/typing/resource.py
VKFisher/python-dependency-injector
c26b260c73ab36985e05e117af934ca6170ff9de
[ "BSD-3-Clause" ]
null
null
null
tests/typing/resource.py
VKFisher/python-dependency-injector
c26b260c73ab36985e05e117af934ca6170ff9de
[ "BSD-3-Clause" ]
null
null
null
from typing import List, Iterator, Generator, AsyncIterator, AsyncGenerator, Optional from dependency_injector import providers, resources # Test 1: to check the return type with function def init1() -> List[int]: return [] provider1 = providers.Resource(init1) var1: List[int] = provider1() # Test 2: to chec...
23.438095
85
0.687525
32941effd5de1a1c804ca9eda3218d1cb7c7eae3
908
py
Python
tests/analyzers/test_annotation_detector.py
WebArchivCZ/WA-KAT
719f7607222f5a4d917c535b2da6371184222101
[ "MIT" ]
3
2017-03-23T12:59:21.000Z
2017-11-22T08:23:14.000Z
tests/analyzers/test_annotation_detector.py
WebArchivCZ/WA-KAT
719f7607222f5a4d917c535b2da6371184222101
[ "MIT" ]
89
2015-06-28T22:10:28.000Z
2017-01-30T16:06:05.000Z
tests/analyzers/test_annotation_detector.py
WebarchivCZ/WA-KAT
719f7607222f5a4d917c535b2da6371184222101
[ "MIT" ]
1
2015-12-17T02:56:59.000Z
2015-12-17T02:56:59.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== from wa_kat.analyzers.annotation_detector import get_annotation_tags # Variables =================================================================== TEST...
25.222222
79
0.511013
6c42d18b8d1ff317bfad416cf999065b8fa5f18c
4,614
py
Python
tests/sentry/tsdb/test_snuba.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
tests/sentry/tsdb/test_snuba.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/tsdb/test_snuba.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import pytz from datetime import datetime, timedelta from sentry.testutils.cases import OutcomesSnubaTest from sentry.tsdb.base import TSDBModel from sentry.tsdb.snuba import SnubaTSDB from sentry.utils.dates import to_timestamp from sentry.utils.outcomes import Outcome def fl...
40.473684
99
0.626355
bcb2df6db38cabb539b12a7a8150ce742b50fe59
4,602
py
Python
Lib/site-packages/unidecode/x05c.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
82
2020-03-28T02:24:38.000Z
2022-03-30T04:18:42.000Z
Lib/site-packages/unidecode/x05c.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
118
2020-03-14T17:34:11.000Z
2022-03-30T07:07:45.000Z
Lib/site-packages/unidecode/x05c.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
30
2020-06-20T15:31:53.000Z
2022-03-06T06:23:55.000Z
data = ( 'Po ', # 0x00 'Feng ', # 0x01 'Zhuan ', # 0x02 'Fu ', # 0x03 'She ', # 0x04 'Ke ', # 0x05 'Jiang ', # 0x06 'Jiang ', # 0x07 'Zhuan ', # 0x08 'Wei ', # 0x09 'Zun ', # 0x0a 'Xun ', # 0x0b 'Shu ', # 0x0c 'Dui ', # 0x0d 'Dao ', # 0x0e 'Xiao ', # 0x0f 'Ji ', # 0x10...
17.76834
19
0.389831
892885dbd6acfe44b6e8529e25a762fe30249854
662
py
Python
labrat/catcher.py
jangler/labrat
fd557cfd2d8f103072fd1366b50c42363eeb254d
[ "MIT" ]
null
null
null
labrat/catcher.py
jangler/labrat
fd557cfd2d8f103072fd1366b50c42363eeb254d
[ "MIT" ]
null
null
null
labrat/catcher.py
jangler/labrat
fd557cfd2d8f103072fd1366b50c42363eeb254d
[ "MIT" ]
null
null
null
""" This module provides a call wrapper for tkinter that displays exceptions in a messagebox. """ import traceback import tkinter import tkinter.messagebox class Catcher: """A call wrapper for tkinter that displays exceptions in a messagebox.""" def __init__(self, func, subst, widget): self.func = ...
23.642857
78
0.625378
fb10002562dac07ad1f28af904d77f8b8394301a
2,439
py
Python
kotori/userdata.py
jffifa/kyotogang-toolset
4c8e62e475b8f0a3885c03cce483d012bc267f6c
[ "MIT" ]
null
null
null
kotori/userdata.py
jffifa/kyotogang-toolset
4c8e62e475b8f0a3885c03cce483d012bc267f6c
[ "MIT" ]
null
null
null
kotori/userdata.py
jffifa/kyotogang-toolset
4c8e62e475b8f0a3885c03cce483d012bc267f6c
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: UTF-8 -*- import uuid import cPickle import os from gconf import GConf as gconf class UserData(object): """stage1st session """ def __init__(self): self.uuid = uuid.uuid3(uuid.NAMESPACE_DNS, gconf.BASE_URL) # encode a string password to big integer de...
30.111111
109
0.566626
e6bfbf303cca63c8f7174f60d7095967c78bff0d
5,018
py
Python
src/ddqn.py
shuyangw/cs682-final-project
ccc751fbf36380d37d90a6e51d6e7c27608b8506
[ "MIT" ]
null
null
null
src/ddqn.py
shuyangw/cs682-final-project
ccc751fbf36380d37d90a6e51d6e7c27608b8506
[ "MIT" ]
null
null
null
src/ddqn.py
shuyangw/cs682-final-project
ccc751fbf36380d37d90a6e51d6e7c27608b8506
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np class DDQNCNN(object): def __init__(self, state_size, action_size, lr, name="DDQN"): self.state_size = state_size self.action_size = action_size self.lr = lr self.name = name with tf.variable_scope(self.name): ...
41.131148
107
0.454564
67e88eb40dccaf389bcedef1bc66c18c6e32cc5d
3,035
py
Python
toshl/SimpleConsoleUI.py
pabadrubio/toshl_sync
40d7d3356b0e1be392091e1285de9cbb9a0c68a6
[ "Apache-2.0" ]
null
null
null
toshl/SimpleConsoleUI.py
pabadrubio/toshl_sync
40d7d3356b0e1be392091e1285de9cbb9a0c68a6
[ "Apache-2.0" ]
null
null
null
toshl/SimpleConsoleUI.py
pabadrubio/toshl_sync
40d7d3356b0e1be392091e1285de9cbb9a0c68a6
[ "Apache-2.0" ]
null
null
null
# Pablo Abad 2017 # # Toshl database program class SimpleConsoleUI(): def __init__(self, io, database): self.io = io self.database = database def classifyManually(self, bankEntry): # Show the entry: self.io.stdout('-----------------------------------------------') self....
41.013514
133
0.551895
f6e27834ba523d69a63dd13dd3dc4268cbe88b54
267
py
Python
manage.py
valarpirai/HobbyProject
072e75bdb9008788059f330f8fbaed6946a5ffad
[ "MIT" ]
2
2017-06-04T10:25:59.000Z
2020-08-07T09:05:10.000Z
manage.py
valarpirai/HobbyProject
072e75bdb9008788059f330f8fbaed6946a5ffad
[ "MIT" ]
2
2021-03-25T21:39:04.000Z
2021-06-01T21:44:33.000Z
manage.py
valarpirai/HobbyProject
072e75bdb9008788059f330f8fbaed6946a5ffad
[ "MIT" ]
null
null
null
from flask_script import Manager from myapp import app # print(dir(app)) manager = Manager(app.flask_app) @manager.command def hello(): print( "hello world") manager.add_command('runserver', app.flask_app.run()) if __name__ == "__main__": manager.run()
15.705882
53
0.715356
b7814bf33e5d4f7039478802591f6ae4e01ef09a
7,628
py
Python
test/functional/feature_assumevalid.py
joaquimsilva12/Q8bitcoin
10b5901120a0ef369e403f761323680f1b61f1bc
[ "MIT" ]
4
2019-07-29T15:20:16.000Z
2020-04-10T16:42:18.000Z
test/functional/feature_assumevalid.py
ExodusMovement/bitcoin-magnifier
ce6762030f814bc737bb0a097c17201e0b2edbc5
[ "MIT" ]
13
2018-07-16T18:14:02.000Z
2020-01-17T19:36:58.000Z
test/functional/feature_assumevalid.py
ExodusMovement/bitcoin-magnifier
ce6762030f814bc737bb0a097c17201e0b2edbc5
[ "MIT" ]
10
2019-05-23T03:15:07.000Z
2021-12-04T13:32:05.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test logic for skipping signature validation on old blocks. Test logic for skipping signature validati...
39.729167
107
0.654955
9a6321cae097fcfd27c9fd5fcd87d22d024f1720
1,536
py
Python
discord_notification_emailer/clusterer.py
csebra52/discord-notification-emailer
5e58ec73b6230f9ec81dcbb75471a85c9cd5018a
[ "MIT" ]
6
2019-05-04T01:31:37.000Z
2021-07-28T15:44:41.000Z
discord_notification_emailer/clusterer.py
dylngg/discord_notification_emailer
5e58ec73b6230f9ec81dcbb75471a85c9cd5018a
[ "MIT" ]
null
null
null
discord_notification_emailer/clusterer.py
dylngg/discord_notification_emailer
5e58ec73b6230f9ec81dcbb75471a85c9cd5018a
[ "MIT" ]
4
2021-02-20T20:58:45.000Z
2021-10-30T12:56:35.000Z
import threading import time class ClusterManager(): def __init__(self, callback, clustering_period=10): """Defines a cluster manager that allows for the clustering of objects in a period of time. After that period of time, a callback is called and the cluster is reset. :param ca...
32.680851
78
0.647786
bb2935a317554ff71265555008b275a301e6f81b
2,118
py
Python
osm_mon/dashboarder/dashboarder.py
TCSOSM-20/MON
06ad698093d4e39b199ba466617bf8cef6df5c42
[ "Apache-2.0" ]
null
null
null
osm_mon/dashboarder/dashboarder.py
TCSOSM-20/MON
06ad698093d4e39b199ba466617bf8cef6df5c42
[ "Apache-2.0" ]
null
null
null
osm_mon/dashboarder/dashboarder.py
TCSOSM-20/MON
06ad698093d4e39b199ba466617bf8cef6df5c42
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Whitestack, LLC # ************************************************************* # This file is part of OSM Monitoring module # All Rights Reserved to Whitestack, LLC # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
34.721311
75
0.65203
865e74f18242e153831029a057dbcbaa47588039
246
py
Python
keep_alive.py
Soulsender/scarabbot
0c92834c65579912643b95d8aa37b23a6cf08602
[ "MIT" ]
6
2021-06-15T01:26:46.000Z
2022-01-21T06:04:04.000Z
keep_alive.py
Soulsender/scarabbot
0c92834c65579912643b95d8aa37b23a6cf08602
[ "MIT" ]
10
2021-06-15T20:35:52.000Z
2022-02-07T03:04:43.000Z
keep_alive.py
Soulsender/scarabbot
0c92834c65579912643b95d8aa37b23a6cf08602
[ "MIT" ]
1
2021-07-12T09:25:53.000Z
2021-07-12T09:25:53.000Z
from flask import Flask from threading import Thread app = Flask('') @app.route('/') def home(): return "Bot is online and pinging" def run(): app.run(host='0.0.0.0',port=8080) def keep_alive(): t = Thread(target=run) t.start()
15.375
38
0.642276
66f5ec2e08cf5874e13a23b85e84906eb4c3f528
1,254
py
Python
libs/common.py
fangli/collector-fluentd
d96b7a9049a3e4bd0a73543f5cdab8b6b6d0b0f1
[ "Apache-2.0" ]
6
2015-01-27T04:31:45.000Z
2020-05-11T08:58:54.000Z
libs/common.py
fangli/collector-fluentd
d96b7a9049a3e4bd0a73543f5cdab8b6b6d0b0f1
[ "Apache-2.0" ]
null
null
null
libs/common.py
fangli/collector-fluentd
d96b7a9049a3e4bd0a73543f5cdab8b6b6d0b0f1
[ "Apache-2.0" ]
2
2017-03-02T09:02:15.000Z
2020-05-11T08:59:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- #*********************************************************# # @@ScriptName: common.py # @@Author: Felix Lee <surivlee@gmail.com> # @@Create Date: 12/26/2012 # @@Modify Date: 2013-12-06 18:22:40 # @@Function: #*********************************************************# __aut...
24.115385
111
0.486443
5bf3953ace7029c44ceccbd62e49334a892dca03
16,453
py
Python
toontown/town/TownLoader.py
TopDeveloper-333/opentoontownsrc
b2d956d1a40f5e3d40fa33a9f01862137e018347
[ "BSD-3-Clause" ]
null
null
null
toontown/town/TownLoader.py
TopDeveloper-333/opentoontownsrc
b2d956d1a40f5e3d40fa33a9f01862137e018347
[ "BSD-3-Clause" ]
null
null
null
toontown/town/TownLoader.py
TopDeveloper-333/opentoontownsrc
b2d956d1a40f5e3d40fa33a9f01862137e018347
[ "BSD-3-Clause" ]
null
null
null
from pandac.PandaModules import * from toontown.battle.BattleProps import * from toontown.battle.BattleSounds import * from toontown.distributed.ToontownMsgTypes import * from toontown.toonbase.ToontownGlobals import * from direct.gui.DirectGui import cleanupDialog from direct.directnotify import DirectNotifyGlobal fro...
43.297368
296
0.642436
cd28c675fcee3b17d75eab6f42f691a9b69ac45e
1,124
py
Python
kubernetes/test/test_v1alpha1_initializer_configuration_list.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
1
2018-10-20T19:37:57.000Z
2018-10-20T19:37:57.000Z
kubernetes/test/test_v1alpha1_initializer_configuration_list.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1alpha1_initializer_configuration_list.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
2
2018-07-27T19:39:34.000Z
2020-12-25T02:48:27.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
24.977778
120
0.75089
0c8c53ab65a9dd249925f4f1d5a3e51e82239b86
10,279
py
Python
products/views.py
tiagocordeiro/gomenu
b5cbf7edb52a88828815c7865f7870eb5a4b303a
[ "MIT" ]
4
2020-08-13T12:07:33.000Z
2022-02-20T11:18:54.000Z
products/views.py
tiagocordeiro/gomenu
b5cbf7edb52a88828815c7865f7870eb5a4b303a
[ "MIT" ]
246
2020-06-30T14:28:22.000Z
2022-03-27T14:51:58.000Z
products/views.py
tiagocordeiro/gomenu
b5cbf7edb52a88828815c7865f7870eb5a4b303a
[ "MIT" ]
1
2020-08-13T12:06:50.000Z
2020-08-13T12:06:50.000Z
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.forms import inlineformset_factory from django.http import JsonResponse from django.shortcuts import render, redirect, get_object_or_404 from django.views.decorators.http import require_POST from products.facade i...
37.652015
92
0.662321
66e2834200e3ca0ae61b80e17c25d56186bc1f94
2,053
py
Python
go-convert-v2.py
muzudho/ascii-based-floor-map-to-csv
b43f808a24358b3a9da5bb74bf4b5e8155ab752a
[ "MIT" ]
null
null
null
go-convert-v2.py
muzudho/ascii-based-floor-map-to-csv
b43f808a24358b3a9da5bb74bf4b5e8155ab752a
[ "MIT" ]
null
null
null
go-convert-v2.py
muzudho/ascii-based-floor-map-to-csv
b43f808a24358b3a9da5bb74bf4b5e8155ab752a
[ "MIT" ]
null
null
null
# # Note. # # Root directory: Visual studio code workspace root. # block_input_file = "./ascii-floor-map-to-csv/data/block-map.txt" table_input_file = "./ascii-floor-map-to-csv/data/table-number-map.txt" output_file_name = "./ascii-floor-map-to-csv/auto-generated/floor-map.csv" try: bl_file = open(block_input_file...
31.106061
74
0.512421
fff81170fef1dd1a1e1cfe94a912a5e9ae529aff
3,297
py
Python
pymanopt/tools/__init__.py
paulroujansky/pymanopt
7ec0f83b2cc1bf325bfbbc98d69188cf6b7ef0f1
[ "BSD-3-Clause" ]
null
null
null
pymanopt/tools/__init__.py
paulroujansky/pymanopt
7ec0f83b2cc1bf325bfbbc98d69188cf6b7ef0f1
[ "BSD-3-Clause" ]
null
null
null
pymanopt/tools/__init__.py
paulroujansky/pymanopt
7ec0f83b2cc1bf325bfbbc98d69188cf6b7ef0f1
[ "BSD-3-Clause" ]
null
null
null
import collections import functools def make_enum(name, fields): return collections.namedtuple(name, fields)(*range(len(fields))) class ndarraySequenceMixin: # The following attributes ensure that operations on sequences of # np.ndarrays with scalar numpy data types such as np.float64 don't attempt ...
34.34375
79
0.664847
2ea3e44dd42e146b8ad4b0d7c94df413e9dd7cc1
3,447
py
Python
tests/python/test_linear.py
lfdmn/xgboost
9150fdbd4d989767f7126c589f773649a594dbc3
[ "Apache-2.0" ]
null
null
null
tests/python/test_linear.py
lfdmn/xgboost
9150fdbd4d989767f7126c589f773649a594dbc3
[ "Apache-2.0" ]
1
2022-02-01T16:14:41.000Z
2022-02-01T16:14:41.000Z
tests/python/test_linear.py
lfdmn/xgboost
9150fdbd4d989767f7126c589f773649a594dbc3
[ "Apache-2.0" ]
null
null
null
import testing as tm from hypothesis import strategies, given, settings, note import xgboost as xgb parameter_strategy = strategies.fixed_dictionaries({ 'booster': strategies.just('gblinear'), 'eta': strategies.floats(0.01, 0.25), 'tolerance': strategies.floats(1e-5, 1e-2), 'nthread': strategies.intege...
41.53012
97
0.659994
57e6164f98fb4f53d2aa9e6e91f12266658b76fb
1,137
py
Python
setup.py
tumluliu/rap
2a44b337379e32e7739aacd1425197c28adad9e9
[ "MIT" ]
null
null
null
setup.py
tumluliu/rap
2a44b337379e32e7739aacd1425197c28adad9e9
[ "MIT" ]
null
null
null
setup.py
tumluliu/rap
2a44b337379e32e7739aacd1425197c28adad9e9
[ "MIT" ]
null
null
null
import re from codecs import open from setuptools import setup version = '' license = '' title = '' author = '' contact = '' with open('rap/__init__.py', 'r') as fd: file_content = fd.read() version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', file_content, re.MULTILINE).grou...
30.72973
78
0.525066
f75932eb992b566e7d07e4767d9068c74a653c1d
4,891
py
Python
codes/3_1.py
inspurer/ImageProcess
f826c36f3ae17bee5694c3f1748f9e5319a46fd9
[ "MIT" ]
1
2020-11-10T11:35:30.000Z
2020-11-10T11:35:30.000Z
codes/3_1.py
inspurer/ImageProcess
f826c36f3ae17bee5694c3f1748f9e5319a46fd9
[ "MIT" ]
null
null
null
codes/3_1.py
inspurer/ImageProcess
f826c36f3ae17bee5694c3f1748f9e5319a46fd9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pc_type lenovo # create_time: 2019/11/9 15:15 # file_name: 3_1.py import cv2 import numpy as np import matplotlib.pyplot as plt import seaborn as sns import random # 设置中文字体和负号正常显示 plt.rcParams['font.sans-serif'] = ['SimHei'] # 指定默认字体 plt.rcParams['axes.unicode_minus'] =...
28.436047
127
0.618074
1dea1511cf1c9b285abb0600be7448d703e83b22
4,151
py
Python
mvpa2/atlases/warehouse.py
mortonne/PyMVPA
98644c5cd9733edd39fac746ea7cf67398674645
[ "MIT" ]
null
null
null
mvpa2/atlases/warehouse.py
mortonne/PyMVPA
98644c5cd9733edd39fac746ea7cf67398674645
[ "MIT" ]
null
null
null
mvpa2/atlases/warehouse.py
mortonne/PyMVPA
98644c5cd9733edd39fac746ea7cf67398674645
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
32.685039
87
0.537943
fd47c9a972887917f554171af4090d2d4f1fca7e
5,090
py
Python
src/codplayer/test/test_serialize.py
petli/codplayer
172187b91662affd8e89f572c0db9be1c4257627
[ "MIT" ]
14
2015-04-27T20:40:46.000Z
2019-02-01T09:22:02.000Z
src/codplayer/test/test_serialize.py
petli/codplayer
172187b91662affd8e89f572c0db9be1c4257627
[ "MIT" ]
10
2015-01-05T18:11:28.000Z
2018-09-03T08:42:50.000Z
src/codplayer/test/test_serialize.py
petli/codplayer
172187b91662affd8e89f572c0db9be1c4257627
[ "MIT" ]
4
2017-03-03T16:59:39.000Z
2019-11-08T11:15:06.000Z
# codplayer - test the serialize module # # Copyright 2013 Peter Liljenberg <peter.liljenberg@gmail.com> # # Distributed under an MIT license, please see LICENSE in the top dir. import unittest import types from .. import serialize class DummyObject(object): pass class FOO(object): pass class BAR(object)...
26.510417
72
0.524361
9ebf6d1ccc37f6933a805fa7fdf7c7147e44e461
14,648
py
Python
plant_classification/data_utils.py
laramaktub/cookie_plant_classification
3fba329b19c3599f3f7334d56003927dd05ff42c
[ "MIT" ]
null
null
null
plant_classification/data_utils.py
laramaktub/cookie_plant_classification
3fba329b19c3599f3f7334d56003927dd05ff42c
[ "MIT" ]
null
null
null
plant_classification/data_utils.py
laramaktub/cookie_plant_classification
3fba329b19c3599f3f7334d56003927dd05ff42c
[ "MIT" ]
1
2018-11-30T20:07:09.000Z
2018-11-30T20:07:09.000Z
# -*- coding: utf-8 -*- """ Miscellanous functions manage data in image recognition. network. Author: Ignacio Heredia Date: September 2016 """ import os import sys from io import BytesIO import threading import Queue import numpy as np from PIL import Image, ImageEnhance import requests def data_splits(im_dir='/me...
38.751323
108
0.614145
5c71dd843ed45387db9266f95d3dd32129aea2ed
1,260
py
Python
djsani/dashboard/urls.py
carthagecollege/django-djsani
ad95158f443c9d4e0cd0cea2a99ebe7062d38ce5
[ "BSD-3-Clause" ]
1
2017-04-22T11:08:41.000Z
2017-04-22T11:08:41.000Z
djsani/dashboard/urls.py
carthagecollege/django-djsani
ad95158f443c9d4e0cd0cea2a99ebe7062d38ce5
[ "BSD-3-Clause" ]
10
2020-06-11T14:22:47.000Z
2021-07-08T14:05:27.000Z
djsani/dashboard/urls.py
carthagecollege/django-djsani
ad95158f443c9d4e0cd0cea2a99ebe7062d38ce5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """URLs for all views.""" from django.urls import path from django.views.generic import TemplateView from djsani.dashboard import views urlpatterns = [ path( 'success/', TemplateView.as_view(template_name='dashboard/success.html'), name='admin_success...
33.157895
77
0.649206
30eda8de5b211d49b8c4f3fb728c81ac58984920
2,528
py
Python
mayan/apps/documents/tests/test_document_version_views.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
4
2019-02-17T08:35:42.000Z
2019-03-28T06:02:11.000Z
mayan/apps/documents/tests/test_document_version_views.py
zhoubear/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
1
2018-10-11T13:01:34.000Z
2018-10-11T13:01:34.000Z
mayan/apps/documents/tests/test_document_version_views.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
3
2019-01-29T13:21:57.000Z
2019-10-27T03:20:15.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from ..permissions import ( permission_document_version_revert, permission_document_version_view, ) from .base import GenericDocumentViewTestCase from .literals import ( TEST_SMALL_DOCUMENT_PATH, TEST_VERSION_COMMENT ) class DocumentVersionTes...
31.209877
76
0.673655
00e8b0a28942bdc952adb5621866db271145ed70
326
py
Python
project files/model_conv.py
onkark98/Parkinsons_Predictor_Project
e34cfa01715a3ef9428a8d2751881581c3d4911d
[ "MIT" ]
null
null
null
project files/model_conv.py
onkark98/Parkinsons_Predictor_Project
e34cfa01715a3ef9428a8d2751881581c3d4911d
[ "MIT" ]
null
null
null
project files/model_conv.py
onkark98/Parkinsons_Predictor_Project
e34cfa01715a3ef9428a8d2751881581c3d4911d
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow import keras from tensorflow import lite keras_file = "/home/subhranil/Train_Models/weights-improvement-992-0.1720.hdf5" converter = lite.TocoConverter.from_keras_model_file(keras_file) tflite_model = converter.convert() open("demo.tflite","wb").write(tflite_m...
32.6
79
0.819018
2dd5c70e231448e686f07c88fd8d40992a65e4e9
23,482
py
Python
Examples/Infovis/Python/haruspex.py
b3c/VTK-5.8
9ad0280c669d2ad87a4ed521994f561cfa824337
[ "BSD-3-Clause" ]
2
2020-01-07T20:50:53.000Z
2020-01-29T18:22:02.000Z
Examples/Infovis/Python/haruspex.py
carthurs/VTK-5.8.0
fcaa03b2107687b72fa208b380a0134b10a0cedc
[ "BSD-3-Clause" ]
null
null
null
Examples/Infovis/Python/haruspex.py
carthurs/VTK-5.8.0
fcaa03b2107687b72fa208b380a0134b10a0cedc
[ "BSD-3-Clause" ]
2
2019-03-11T07:22:19.000Z
2019-12-12T11:25:04.000Z
############################################################ # Copyright 2010 Sandia Corporation. # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, # the U.S. Government retains certain rights in this software. ############################################################ # Contact: Philippe Pebay...
37.332273
119
0.551657
f35cef6e907251065f70168d1c83142b17183731
546
py
Python
parsechat.py
steamroller-airmash/statsbot-log-tools
ae062b195d3ef587ad6e61ba3e7b89890805903a
[ "MIT" ]
null
null
null
parsechat.py
steamroller-airmash/statsbot-log-tools
ae062b195d3ef587ad6e61ba3e7b89890805903a
[ "MIT" ]
null
null
null
parsechat.py
steamroller-airmash/statsbot-log-tools
ae062b195d3ef587ad6e61ba3e7b89890805903a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import logparser import sys if len(sys.argv) < 2: print("usage parsechat <logfile>") sys.exit(-1) with open(sys.argv[1], 'r', errors='ignore') as file: names = {} for entry in logparser.parse_log(file): if entry['record_type'] == "PLAYER_NEW": names[entry['id']...
26
60
0.57326
44b21ac1a9f9bd2dd64c0cf355c229a42813cef8
4,281
py
Python
docs/pyqt/widzety/gui_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
44
2015-02-11T19:10:37.000Z
2021-11-11T09:45:43.000Z
docs/pyqt/widzety/gui_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
9
2015-02-06T21:26:25.000Z
2022-03-31T10:44:22.000Z
docs/pyqt/widzety/gui_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
172
2015-06-13T07:16:24.000Z
2022-03-30T20:41:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import unicode_literals from ksztalty import Ksztalty, Ksztalt from PyQt5.QtWidgets import QHBoxLayout from PyQt5.QtWidgets import QCheckBox, QButtonGroup, QVBoxLayout from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QSlider, QLCDNumber, QSplitter from P...
36.279661
77
0.63957
241f32c80eb32955dc5e73fb9b33f38fc9dde4e4
552
py
Python
tools/rename.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
tools/rename.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
tools/rename.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
import os import sys walk_dir = sys.argv[1] for root, subdirs, files in os.walk(walk_dir): for filename in files: if filename.endswith((".pb.cc", ".pb.h")): filepath = os.path.join(root,filename) name = filename.split('.')[0] print(name) newName = "" ...
29.052632
53
0.512681
46c52454498ad961f6cbfb3b8893135ca5f97378
4,075
py
Python
neuron/factory.py
tomforge/Neuron
21278d125c9c507319ea01366eb44e46646e0926
[ "Apache-2.0" ]
null
null
null
neuron/factory.py
tomforge/Neuron
21278d125c9c507319ea01366eb44e46646e0926
[ "Apache-2.0" ]
21
2018-05-14T15:32:42.000Z
2018-07-22T06:36:38.000Z
neuron/factory.py
tomforge/Neuron
21278d125c9c507319ea01366eb44e46646e0926
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger("server") from autobahn.twisted.websocket import WebSocketServerFactory from neuron import utils class WSManagerFactory(WebSocketServerFactory): """ Manages all websocket clients and connections. All interactions with clients should be made through this class. ...
39.95098
91
0.600491